Since 2003

A brilliant (sic) coalesce of Technology (where the emphasis is on Java), Internet, Blogging, Indic-blogging, current-affairs, politics, entertainment industry and topics that concern India.
Posts tagged "Java"
Writing custom XPath rules for PMD

Writing custom XPath rules for PMD

PMD comes with a set of handy rules, which more than often are sufficient for any project. However, in real life projects you also need some custom rules to be created. This article talks about writing custom PMD rules using XPath.

Migrating a Roller blog to WordPress

Ok I admit that I never made a formal announcement about it, but this blog has now moved to its new home at http://nullpointer.debashish.com. If you are reading this, you are at the right URL. This blog used to be happily hosted at the excellent free service provided by the JRoller people. Roller is one...

Piping problem

I recently had a task wherein I was required to call few Perl routines from inside my Java class. You must be saying, what’s the big deal? Runtime.exec is what one needs. You are dead right, this comes to rescue when ones needs to call a non-Java process or an executable. With this, I was...

Generics Preview

Generics is the most profound of changes envisaged in Tiger. Greg Travis has this nice preview on it. In summary Generics offer the following advantages as per Greg: Better compile-time type checking: With generics, the type casting is implicit in the instantiation you are using, and it’s done at compile-time. By using a particular instantiation, you...

The chunked problem

One of the J2ME applications I had been involved in emerged with a big problem when tested for boundary conditions. When the client was sending less than 2048 bytes, the server was able to handle it correctly. The content-length header was being set in the client correctly and was available at the server. The J2ME...

Sometimes you have to be evil!

Many times the most innocuous aspects of programming create lot of trouble. Take the innocent Properties file. These avatars of Hashtable are collections of key-value pairs, frequently used by applications for their need for external resources and configuration settings. Now pointers such as these tell you that reading the Properties file using java I/O is...