Wireless switch not working on Linux ? Try rfkill.

January 23rd, 2011 in Linux, Unix

I have been using Ubuntu on my laptop without any problems but recently ran into a weird issue- my wireless would not switch on. Usually turning off and turning on the wireless switch on my laptop used to solve this problem but this time that did not work. Next, I tried the usual ifconfig wlan0 [...]

Date/Time/Timezone manipulation and conversion in Java: a few examples

February 14th, 2010 in Java/J2EE

Java date/time manipulation, formatting and conversion can be very tricky with things getting even more complicated when timezones are taken into consideration. A lot of developers (even seasoned ones) often run into problems when playing with date/time values. Provided are a ready reference of some common date manipulation/formatting tricks that have been tested in java 1.5

5 common image manipulation tricks using ImageMagick

November 15th, 2009 in ImageMagick, Shell Scripting

Webmasters/Webdesigners often need to do repetitive image manipulation tasks like resizing for thumbnails, image borders etc. Even though a plethora of image manipulation software are available, nothing beats ImageMagick when you need to perform simple tasks, especially since it lends itself well to automation using shell scripts. We outline here 5 common image manipulation techniques with ImageMagick.

Pass values from a pop up (modal window) to parent page

November 1st, 2009 in Web UI Programming

Like it or not pop ups are there to stay and often values need to be passed from the pop up to the parent window. Although modal window based popups are currently less popular and being replaced by (slicker?) div based ‘pseudo’ popups, its still worthwhile to know how to pass values from a popup to its parent window.

JSTL and Struts logic tags iteration quick reference

October 19th, 2009 in Java/J2EE

Iterating through collections in jsp using JSTL and Struts tags can be confusing, especially since the attributes can be a little hard to figure out. Here’s a ready reference of some iteration examples that may help.

JSTL Error: Unable to find a value for property in object of class using operator “.”

September 30th, 2009 in Errors, Java Errors

Problem: You get this error while trying to access a property of an object in JSTL but you are absolutely sure that the property is present in the Class.
Solution: It is likely that the culprit is your getter method for the property or the way you are trying to access it in JSTL .

Shell script to remove spaces in file names

September 23rd, 2009 in Shell Scripting, Unix

Ever ftp’d Windows files into a unix box and then found that some of your scripts break because the file names have spaces in them? Here are couple of one liners that will help fix this by removing one or more spaces in the file names.

Connect to Oracle database and run SQL from a shell script

September 15th, 2009 in Shell Scripting, Unix

Although it is not usual (or preferred) to use a shell script to execute sql queries in Oracle, this recipe discusses how this can be done for those rare cases when you need to.

Mediawiki configuration: a quickstart tutorial

September 7th, 2009 in Mediawiki

This tutorial is a cheatsheet of post install customization of Mediawiki, covers user permissions configuration, look & feel customization and some basic editing configuration. Hopefully this will be of some help to other newbie Mediawiki admins like myself.

Eclipse error: java.util.Enumeration cannot be resolved

August 27th, 2009 in Eclipse Errors, Errors

Problem: you get an error during build saying “Build error java.util.Enumeration cannot be resolved” even though you have the correct import statement.
Solution: Set the compiler compliance level to 1.4 (window->preferences->Java->compiler) and rebuild.