Author Archives: ronaldpringadi

Biggest Companies in the USA (Top 30)

If you ever get interested with the top 30 biggest companies in the USA you can visit this link: http://www.greenandredmarket.com/menu/biggestcompanies.htm I’m really surprised that Apple‘s Market Capitalization is almost twice bigger than Microsoft

Posted in Investment, Stock Market | Leave a comment

How to see open ports in Linux

How to see open ports in Linux 1nmap -sS -O 127.0.0.1

Posted in Linux, Operating System | Leave a comment

Find Files in Linux by Name

To find files in linux with a certain name portion or pattern we can issue a locate locate command. If locate is unable to find a matching file, then you might need to update your file index database. 12# locate … Continue reading

Posted in Linux | Leave a comment

Check For Loaded PHP Extensions

Sometimes you want to make sure a certain php extension is loaded or not. These extension can be curl, xmlrpc, or ldap. After all when you move your application from one server to another the configuration not necessarily the same. … Continue reading

Posted in php, Web Development | Leave a comment

Extending an Existing Javascript Function

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. … Continue reading

Posted in javascript, Web Development | Leave a comment

Map Network Drive using DOS command

Create a batch file named “mapdrive.bat” Write the following text into its content 1234REM Map network Drive net use j: \\server1\john_music net use p: \\server2\pdfs pause Explaination: Line 1 is to create a comment Line 2 (similar with line 3) … 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