Pressing “I” for interactive start-up does nothing

Writing by on Wednesday, 16 of July , 2008 at 6:15 pm

If at boot time you already know that you want an interactive start, and you know during CentOS boot process pressing “I” does nothing, here’s a trick.

At the grub boot screen press “a” (without quotes) to edit parameters
Append “confirm” (without quotes) to the kernel line

Leave a comment

Category: Linux,Tips and Tricks

Restart Windows via Remote Desktop (RDP)

Writing by on Wednesday, 16 of July , 2008 at 1:59 pm

If you’re RDP-ing to a Windows box and you want to restart or shut it down and only see the Log Off or Disconnect use the following trick.

For the Windows Security Dialog use these shortcut keys in the RDP session.

CTRL + ALT + END

For a forced restart from command prompt

shutdown -f -r

For a forced shutdown from command prompt.

shutdown -f -s

Leave a comment

Category: Tips and Tricks

Selectively Delete Firefox Saved Form Information

Writing by on Tuesday, 15 of July , 2008 at 11:51 pm

So you love the auto-complete feature but Firefox’s Clear Private Data deletes everything. But if you want to delete just selected entries (for example, if you had a typo in your login information etc. and want to delete just some selected entries) use the shortcut Shift+Del. On the page, click on the text field and let Firefox list appear. Use your arrow keys in the list of choices and navigate to the “bad” entry and hit Shift+Del. It will be removed.

Leave a comment

Category: Tips and Tricks

Excellent ANT Tutorial

Writing by on Friday, 11 of July , 2008 at 11:33 am

Here’s and excellent Hello World ANT Tutorial with which you could get started with a decent looking build.xml

Leave a comment

Category: Java

Sample Database for MySQL

Writing by on Wednesday, 9 of July , 2008 at 8:45 am

If you need a sample test database for personal testing and don’t want to create a database, MySQL provides you with these instructions to Set up the sample World database.

It comes with these three tables with enough data to get you started.

Country: Information about countries of the world.
City: Information about some of the cities in those countries.
CountryLanguage: Languages spoken in each country.

Leave a comment

Category: SQL DB

DOS command to show listing of Writable Files

Writing by on Tuesday, 24 of June , 2008 at 1:34 pm

Sometimes developers create new files and forget to add them into their VCS. Later they want to see what files are WRITABLE (not read only) that have been added (newly created) so they can be added to the version control system.

dir /a:-R /s /b *.java

The *.java above can be replaced with *.* to search for all writable files.

The Linux equivalent to find the list of writable files would be something like. You can tweak the grep and the maxdepth to suit your needs.

find . -maxdepth 100 -type f -writable | grep .java

Leave a comment

Category: Java

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.