Wednesday, September 28, 2005

Week of the year calculation in Oracle and Java

I was kinda surprised when I discovered that Oracle and Java calculated weeks of year differently - Java taking into account the day of week it is, whereas Oracle concerned only with the date.

For example, if the first day of the year is a Friday, Java will fetch Jan 1 to be week 1, Jan 2 too as weekday 1 and Jan 3 as weekday 2 (yeah it could also depend on what day you set as the start of a week). Oracle does not seem to care what day the first day of the year was. It just picks the first 7 days of the year as the first week of the year, next 7 days as the second week, and so on..

Now I know why they need a bridge to connect!

Tuesday, September 13, 2005

The New ipod Nano...

I ordered my nano the day it was announced by Apple. I got it 4 days later despite there being a weekend in between. That was quick!

Feature-wise, there's nothing to talk about if you already own any ipod. But the appearance, feel and size makes it extra-ordinarily impressive. Further, being a flash-memory based device makes it a little "different" from the earlier ipods. I said "different" and not better. You can make you own decision here http://www.storagesearch.com/semico-art1.html

If you already own an ipod, I don't see any other reason why you would want to go for a nano once the excitement dies down, other than to present it as a gift or to use it while running or in the gym. Its small size makes it extremely efficient as a portable storage device - its as small in length and width as a business card cut into half, and probably few millimeters thicker. Appearance-wise its unbeatable; cost and feature-wise its almost the same as an ipod, without the benefit of large storage. The black nano, although the better looking, will show visible marks of your fingerprints when you hold it in your hands for a few minutes. Make sure you get the nano-tubes as well, although it would no longer render your nano black anymore!