LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Think Technology’ Category

clear dns cache in mac

dns might not have been cleared when changing dns entries in the /etc/file.
In mac,
dscacheutil -flushcache

git: finding file changed since certain date and upload a server

good old bash.

git log -p –since={2011-11-01} | grep “diff –git” | awk ‘{print $3}’ | sed ’s/^a\///g’ | sort -rn | uniq | while read s; do scp $s root@yourip:/server_path/$s; done;

Magento: Removing SSL After Installation

use magento_db;
UPDATE core_config_data SET value = 0 WHERE path=’web/secure/use_in_frontend’;
UPDATE core_config_data SET value = 0 WHERE path=’web/secure/use_in_adminhtml’;
might need to clear the cache and do hard refresh after that.

Magento: Adding Downloadable Product To A Bundle

After googling for ages, I could not find an answer to bundling downloadable product, as in the downloadable product will not appear under the bundle items search section. After some tough digging, I noticed magento community version 1.6 only accepts virtual and simple product in a bundle.
the config is at app/code/core/Mage/Bundle/etc/config.xml, about line 103.
To get [...]

Turning on Mac keyboard Backlit

If you find your mac keyboard not having any backlit, try apple -> system preferences -> keyboard -> illuminate keyboard in low light conditions.
Then try covering your fingers over the camera, the keyboard should be lit up.