Archive | January, 2010

java.sql.Date is not a real date

java.sql.Date stores only date information, not times. Converting a java.util.Date into a java.sql.Date will silently set the time to midnight. To store the date and time values to be manipulated (e.g. cases when you’re trying to calculate the Epoch/ UNIX time) as java.util.Date objects try using the following:

preparedStatement.setTimestamp(1, new java.sql.Timestamp(date.getTime()));

Read more at java.sql.Date is not a real date

Kalambo Consulting

I recently had to setup a WordPress site for an accounting professional who wanted his own web presence. The overall scope of the project included registering the domain name, managing the hosting of the site, setting up WordPress, utilizing a custom theme from the theme gallery, and setting up the taxonomy (categories) and folksonomy (tags) for the site. The primary plugins that were used include:

Fluency Admin – to provide a more user friendly admin screen.

Capability Manager – to manage the roles and capabilities for each user of the site.

Contact Form 7 – to manage the custom contact form used on the site.

Windows 7 Admin Mode

A nice tip from Paul Thurrott regarding a hidden feature in Windows 7. In essence, following the instructions below provides you with an easy way to update a number of settings in Windows 7.

To enable it:

  1. Create a new folder on your desktop (i.e. Right-click and click on New Folder).
  2. Right-click on the folder and click on Rename
  3. Copy and paste the following as the file name:SuperAdmin.{ED7BA470-8E54-465E-825C-99712043E01C}

    (As a side note, you can replace SuperAdmin with any other word of your choice)
  4. Double click on the folder and you should see the following list of choices: