Vote 1

How To Disable On-Demand CPU Scaling on Linux

September 3rd, 2008

Do you know that Linux automatically scales CPU utilization depending on processing requirements? This reduces power consumption and heat. However there are situations when CPU scaling monitor cannot properly identify CPU requirements. In such cases you may want to manually stop cpu speed daemon and restart it later again if required. Here are the required commands:

Read more (81 words) »

Vote 2

5 Most Useful Chrome Browser Shortcuts

September 3rd, 2008

Like GMail Chrome allows really useful shortcuts. Some of my favorites are:
Read more (170 words) »

Vote 6

How To Export MS Access Database To MySQL Database

August 30th, 2008

Here are few tips (with undocumented features) to help you export huge MS Access database (production database with real data) to MySQL.

Read more (340 words) »

Vote 2

Global Search & Replace Using vi Editor

August 30th, 2008

To perform a global search and replace in vi editor, use the search and replace command in command mode:
Read more (117 words) »

Vote 2

The Power of Ant (Build System)

August 27th, 2008

I am using Ant (Java based build system) for our project. Ant is an exceptionally powerful build system and should be the only build system you will ever need. You don't really need code monsters like Maven (or pile of …. as Bileblogger loves to say). With little effort here's what I achieved in few hours (aside from the obvious capability of compiling, running, building jar files etc.):
Read more (497 words) »

Vote 3

How To Twitter Using IM on Linux & Windows

August 27th, 2008

Many like to twitter using IM (Instant Messenger) because it is very simple and fast to tweet and simple to get continuous updates on your topics of interest.

In the good old days Twitter used to provide IM support. You could use any Instant Messenger supporting Jabber (XMPP protocol) to connect to Twitter buddy (twitter@twitter.com) on Gooogle GTalk server and twitter to your hearts content. For several months however Twitter has stopped supporting IM. How can we satiate our twitter crush during their downtime? There is a way.

Read more (389 words) »

Vote 3

Java Quiz: Why StringBuilder Should be Used Instead of StringBuffer?

August 23rd, 2008

First tell me what is the best way to concatenate large number of String objects? Is it a + b?

Most Java developers know not to use a + b (+ operator) because of huge performance problems, they use StringBuffer instead. In fact I did some tests in the past which confirms this folklore. However some of you may not know there is new kid on the block - StringBuilder. Read more (116 words) »

Vote 4

How To Delete Property From java.util.Properties

August 23rd, 2008

This isn't a trick question. For a long time you couldn't delete a property from java.util.Properties class. In the recent versions too Java doesn't reveal that it has added the functionality. However as java.util.Properties now extends Hashtable, you can delete a property by:

Read more (67 words) »

Vote 3

How To Hack Gmail Account & How To Protect Your Gmail Account

August 20th, 2008

1. How can you hack GMail account?
2. How can you protect your GMail account from hackers?
Hackers at Defcon demonstrated a tool to hack into GMail accounts by snooping unencrypted data (man-in-the-middle attack) with cookie which Google GMail uses for everything other than login by default.

Last week Google introduced the ability to optionally encrypt any transmission to / from GMail and not just the login sequence. Previously GMail used to encrypt the login sequence only. All other data was transmitted unencrypted over the wire making such hacking possible. Every email, every article that you are reading on your GMail account is transmitted unencrypted over the web. Read more (596 words) »

Vote 1

How To Post Long Meaningful URL in Twitter

August 20th, 2008

Twitter (you can follow me here) has the annoying habit of shortening your long and meaningful url to a short meaningless jumble using tinyurl, even when the full url and accompanying text fits into their 140 character limit. For example I posted this article on how you can include multiple jar files in a single jar file in Ant build tool. Twitter automatically shortened the url to this meaningless jumble - http://tinyurl.com/5uclnr. So how can you paste meaningfull url's in Twitter without jumbling?

Read more (352 words) »