Writing by shivdev 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
Category: Linux,Tips and Tricks
Writing by shivdev 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
Category: Tips and Tricks
Writing by shivdev 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.
Category: Tips and Tricks
Writing by shivdev 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
Category: Java
Writing by shivdev 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.
Category: SQL DB
Writing by shivdev 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
Category: Java