-
Archives
- May 2026
- April 2026
- November 2025
- September 2023
- March 2019
- March 2018
- June 2017
- May 2017
- November 2016
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- December 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- January 2014
- November 2013
- October 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
-
Meta
Monthly Archives: August 2011
Check For Loaded PHP Extensions
Sometimes you want to make sure a certain PHP extension is loaded or not. These extensions can be curl, xmlrpc, or ldap. After all, when you move your application from one server to another the configuration is not necessarily the … Continue reading
Posted in php, Web Development
Leave a comment
Extending an Existing Javascript Function
This is how you extend an existing javascript function. Assuming that you want to preserve the existing function and the “added algorithm” is somewhat only needed to be executed based on a certain environment only. 123456789101112function abc(){ alert(’abc is … Continue reading
Posted in javascript, Web Development
Leave a comment
Map Network Drive using DOS command
Create a batch file named mapdrive.bat and put the following inside it: 1234REM Map network drives net use j: \\server1\john_music net use p: \\server2\pdfs pause Explanation: Line 1 is a comment. Line 2 (and similarly line 3) maps the network … Continue reading
Posted in DOS
Leave a comment
Super Powerful Debugging Function in Javascript
Super powerful debugging function in javascript. This function will output your variable in question to firebug console or html page. With this function you can debug anything from Object, array, string, integer, etc. It is also recursive safe. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117/** * … Continue reading
Posted in javascript, Web Development
Leave a comment
Storage Speed Benchmark Using CrystalDiskMark
I have always been an enthusiast in computer hardware benchmark. Lately I been trying to increase my overall PC performance (both laptop and desktop). A speedy and responsive system does not only take a fast processor, but also enough RAM … Continue reading
Posted in Benchmark, Hardware
Leave a comment
Vacuum the Whole Database in Postgres
Postgres comes with a functionality called vacuum. Vacuum is intended to cleanup dead tuples or rows. This is how you cleanup the entire DB in PostgreSQL 1/usr/pg9/bin/vacuumdb –full –port=5433 –username=YOUR_USERNAME –password DB_NAME
Posted in Database, PostgreSQL
Leave a comment
Finding a String Inside Multiple Files in Linux
This is how you can find a text/string Proudly inside folder /var/www. The -H parameter is to show the filename and -R is to make grep look recursively. 1grep -H -R "Proudly" /var/www
Posted in Linux
Leave a comment
Edit default Gnome-Terminal
Every time I open a shell terminal in my Ubuntu, I always think that the window size is too small. I always ended up resizing the shell window manually using the mouse. If you’re having this problem here is how … Continue reading
Posted in Linux, Ubuntu
Leave a comment