Posts

Showing posts from June, 2013

Google Maps CSS not displaying correctly (when using Twitter Bootstrap)

Image
The image of the zoom Control Set tools were distorted after introducing Twitter Bootstrap Was wondering why the Google Maps Control Set tools works displaying correctly on standalone page but not when the same snippet pasted in my project site. Took me a while to figure out its because of Twitter Bootstrap CSS interfering with Google Maps images. The simple workaround was posted in  Twitter Bootstrap Github Issue . <style type="text/css"> /** FIX for Bootstrap and Google Maps Info window styes problem **/ img[src*="gstatic.com/"], img[src*="googleapis.com/"] { max-width: none; } </style> Hope this helps! :)

Install MongoDB for PHP5.4 on MAMP

Image
1. Download mongo.so from  https://github.com/stennie/mongo-php-driver/downloads 2. Copy mongo.so to MAMP PHP folder. For example, mine is at /Applications/MAMP/bin/php/ php5.4.10 /lib/php/extensions/no-debug-non-zts-20100525/ Remember to select the correct PHP version. You can check your PHP version from your MAMP start page, e.g http://localhost/MAMP/phpinfo.php 3. Enable the extension in PHP Configuration file (php.ini). You can find the path to the file from the PHPInfo (see above example). To enable, add the following line in the " Dynamic Extension " section. extension=mongo.so 4. Restart your MAMP. You should see " mongo " section in PHPinfo .