Friday, December 11, 2009

Opera Mini 5 Beta 2

The new version of Opera Mini 5 Beta is out.  It's no longer called Opera Mini but Opera Mobile.  Either way, it's shaping up to be a really nice browser.  Gone are the days of it being a J2ME app.  It's now a native S60 application.  Speed increase is very noticeable.  Give it a go here: http://www.opera.com/mini/next/

Thursday, November 19, 2009

Using 'ps' to find CPU intensive processes

If you've been using 'top' to determine which processes use the most CPU resource, there's another way.  Use 'ps' and sort the output via CPU.  Here's the command:
ps aux --sort -cp

Thursday, October 15, 2009

Using whois To Search For Records

Here's a nice tip to search for relevant records from a DNS using whois:
whois -h "whois.apnic.net" -a "Google"
 This will search "whois.apnic.net" for all records matching "Google".  Good stuff :)

Sunday, October 11, 2009

Installing Virtualbox Guest Additions in Centos 5

To install VBox's Guest Additions in CentOS 5, simply run the following commands:
yum install gcc -y
yum install kernel sources -y
yum install kernel-devel -y
Reboot the system. Right after that, run the VBox additions .sh file.

Friday, October 9, 2009

XML Pretty Formatting

I've had this problem for a long time. A huge XML document which is not formatted. Finally found the simplest solution... HTML Tidy library. Grab the EXE from SourceForge: http://tidy.sourceforge.net/. Then run the following command:
tidy -xml -indent -quiet -o "output.xml" input.xml
This will read the input.xml file and treat it as a well formed XML. No additional output will be displayed on screen. Output file will be written to output.xml.

This thing is *fast*. It parsed an 8MB XML file within seconds.

Man... Don't know why I didn't figure this out earlier... Sheshh...