Archive for October, 2008

Canada wireless frequency auction: consumers have lost again

Thursday, October 23rd, 2008

Without Prejudice
It is usually against my habits to write about the political or economical issues since this is a technical blog. However, I do make exceptions when there is certain overlap between the technical and political/economical sides of a problem that results in slowing down the technological progress. And this is the case, unfortunately. If [...]

Time calculations and conversions in Oracle and PL/SQL

Wednesday, October 22nd, 2008

This article summarizes the methods for performing simple date/time calculations in Oracle and PL/SQL.

The basics

First of all, there are two data types in Oracle: DATE and TIMESTAMP. The primary difference between two of them is that TIMESTAMP supports higher time precision - up to 10-9 seconds. DATE values can be created by parsing a string [...]

Understanding the primitive numeric type conversions in Java

Tuesday, October 21st, 2008

How difficult is to convert from long number to integer (int) in Java? Seems very simple - just do "(int)" and that’s all. How many times we blamed the irresponsible API designers using int type for the timeout value (in milliseconds) here and long value in other places, and so on? This subject is very [...]

Unblocking the java.util.concurrent’s blocking queues in Java

Tuesday, October 21st, 2008

The classes in java.util.concurrent package offer a bunch of nice and easy to use mechanisms to develop asynchronous application modules. One of these mechanism is BlockingQueue and its implementations. Unfortunately, one of the mechanisms Sun has forgotten to add to its API is the ability to gracefully shutdown the blocking queue. Lets consider the typical [...]