Author Archives: ronaldpringadi

Adding color to your tail

Tail is a very useful tool for monitoring an error stream. Sometimes the output from tail can have too much information, and its black-and-white monotone output can be hard to follow with the eyes. The basic: a Linux terminal has … Continue reading

Posted in Linux, Operating System, Ubuntu | Comments Off on Adding color to your tail

JSON Jumpstart

123456789101112131415161718192021222324252627282930313233343536373839404142434445/**  * In JSON, curly brackets mark a new object ({ or })  * Any variable inside the object — also known as the object’s attribute — is  * accessible using the dot syntax (object.attribute) or the bracket syntax  * … Continue reading

Posted in javascript, Web Development | Comments Off on JSON Jumpstart

Vodafone Group, AT&T, and Verizon are The Biggest Yielding Companies In November 2011

Vodafone Group, the telecom giant known for its land line and wireless services around the U.S and U.K, together with two other U.S based telecom giants AT&T and Verizon are one of the best yielding companies in Nov 2011. As … Continue reading

Posted in Investment, Stock Market | Comments Off on Vodafone Group, AT&T, and Verizon are The Biggest Yielding Companies In November 2011

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 | Comments Off on Biggest Companies in the USA (Top 30)

An nmap primer: scanning ports, fingerprinting hosts, and staying legal

If you just want a quick look at what’s listening on a Linux machine, the one-liner is: 1nmap -sS -O 127.0.0.1 That’s an nmap SYN scan with OS detection against your own loopback interface. If you’ve never used nmap before, … Continue reading

Posted in Linux, Operating System | Comments Off on An nmap primer: scanning ports, fingerprinting hosts, and staying legal

Find Files in Linux by Name

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

Posted in Linux | Comments Off on Find Files in Linux by Name

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 | Comments Off on Check For Loaded PHP Extensions

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 | Comments Off on Extending an Existing Javascript Function

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 | Comments Off on Map Network Drive using DOS command

Super Powerful Debugging Function in Javascript

Super powerful debugging function in JavaScript. This function will output your variable in question to the Firebug console or the HTML page. With it you can debug anything from an Object, array, string, integer, etc. It is also recursive-safe. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117/** … Continue reading

Posted in javascript, Web Development | Comments Off on Super Powerful Debugging Function in Javascript