Month: December 2017

  • Fix Django Grappelli Dropdown actions() not found / exists

    I found this issues already there quite sometimes. When opening Django admin Grappelli and found error: $(“tr input.action-select”).actions(); Here are checklist we should do: 1. Make sure we have right order in loading django-grappelli before `django.contrib.admin` 2. Correct STATICFILES_FINDERS : 1234567# List of finder classes that know how to find static files in # various […]

  • Postgresql list table size

    Here is a quick script to list all tables and sort by size content : 12345SELECT    relname as "Table",    pg_size_pretty(pg_total_relation_size(relid)) As "Size",    pg_size_pretty(pg_total_relation_size(relid) – pg_relation_size(relid)) as "External Size"    FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC;

  • How to Debugging Inspect Element Samsung Browser in Smartphone / Mobile

    How to Debugging Inspect Element Samsung Browser in Smartphone / Mobile

    When we develop mobile website, sometimes we found some bugs that only produced in Mobile Browser. For instance, Object.assign() is javascript method that may not supported in many mobile browser. If we want to debug or inspect element in smartphone browser, we can use Google Chrome Remote Debugging features.