Javy Writes Here

January 4, 2008

Design Patterns used in JDK

Examples of the common design pattern strategies used in some of the core classes in Java SDK.

  • Creational Patterns
    • Singleton : java.lang.Runtime
  • Structural Patterns
    • Facade : JDBC framework
    • Flyweight : java.lang.String uses ‘pool of constants’.
    • Proxy : RMI Framework

Rotis and Rice, Soups and Sweets – 332 Indian recipes

Filed under: JustLikeThat — javywrites @ 4:41 am
Tags: , , ,

Dedicated to all budding homemakers: here’s a quick recipebook that landed into my inbox few years back – 332 Recipe Book

It has everything from  Kancheepuram Idli’s to Sindhi Saibhaji. Sadly the Author is unknown.

December 4, 2007

Zen Carbon : Few Pictures

Here are few snaps of the car

Right-door : View from rear

rightdoor_rearview.jpg

Interior : Front

inner_driverseat.jpg

Interior : Closer look at the leather interiors

inner_backseats.jpg

[ Others haven't come out well:(. Will post in a day or two ]

November 29, 2007

49-O in Constitution of India : I VOTE NOBODY

Did you know that there is a system in our constitution, as per the 1969 act, in section ” 49-O” that a person can go to the polling booth, confirm his identity, get his finger marked and convey the presiding election officer that he doesn’t want to vote anyone!

Yes such a feature is available, but obviously these seemingly notorious leaders have never disclosed it.
This is called “49-O”.
Why should you go and say ” I VOTE NOBODY”… because, in a ward, if a candidate wins, say by 123 votes, and that
particular ward has received “49-O” votes more than 123, then that polling will be cancelled and will have to be re-polled. Not only that, but the candidature of the contestants will be removed and they cannot contest the re-polling, since people had already expressed their decision on them. This would bring fear into parties and hence look for genuine candidates for their parties for election. This would change the way; of our whole political system… it is seemingly surprising why the election commission has not revealed such a feature to the public….

Please spread this news to as many as you know…
Seems to be a wonderful weapon against corrupt parties in India … show your power, expressing your desire not to
vote for anybody, is even more powerful than voting… so don’t miss your chance. So either vote, or vote not to vote (vote 49-O) and pass this info on…

Use your voting right for a better INDIA

Reference:
Website of Ministry of Law & Justice :  http://lawmin.nic.in/ld/subord/cer1.htm  : Search for ‘49-O’ in this page

November 26, 2007

Log4J : Why use isDebugEnabled() in your code

Filed under: Technology — javywrites @ 7:34 am
Tags: ,

When using log4j or apache logging, use

if (log.isDebugEnabled()) log.debug("My debug message " + makeOnlineMessagePart());

instead of

log.debug("My debug message " + makeOnlineMessagePart());

The rationale is that the first case doesn’t compose the whole message if the debug is not enabled. The second one does create a possibly expensive message for no purpose even if log4j configuration or underling logging subsystem disables debugging.Source:http://www.javalobby.org/java/forums/t18758.html

November 22, 2007

Reincarnation of Java objects : Serialization and Externalization

– In case of Serialization, the reconstruction ( de-serialization ) occurs using the bits from the stream used to reconstruct.
- In case of Externalization, the reconstruction happens in this order: the public no-arg constructor is called; then readExternal(..) is invoked.

However in case of serialization, when unpacking the object tree, if one of the superclass does not implement Serializable, then the constructor is invoked from that superclass and upwards.

November 8, 2007

Zen Carbon

Filed under: JustLikeThat — javywrites @ 4:34 pm
Tags: ,

I have been owning this black beauty from Maruti stable, for more than 3 years and man! it still ups my adrenaline when i take it out for a long drive.

Thinking of the crap review on mouthshut.com on this car, which I had come across when googling for information on this car – when I had set out to buy this few years back -  I guess the author  never had even driven it for 1 KM even or does not know what a sports car means!.

The best thing to the eye is the pleasing contrast  (black and brownish golden) of the leather interiors ( will post a picture of this soon ). What sets the adrenaline racing is the superb acceleration. The MPFI engine in Carbon is supposed  to quite different from ordinary Zen.The other cool thing about Carbon was the rear windows which open  45 degrees from the rear – giving it a stylish sporty  look.

I have seen only two other Zen Carbon around in Bangalore. Have to proudly admit that zooming amongst the  Santro’s, Getz’, Swift’s a Zen Carbon definitely invites more than a glance from the passersby :)

Java Security Technologies

Filed under: Interview Tips — javywrites @ 1:12 pm
Tags:

For a professional with atleast 3 years experience in areas of Java & Network Security, the following areas is a must to brush up, for an interview

  • JAAS
    • Good tutorial
    • Just concentrate on the basics and terminologies ..
  • JSSE
    • Overview:
    • Just get to know how and why SSL is used.

In general, security topics to cover would be

  • Cryptography
    • Symetric Key Cryptography
    • Public Key Cryptography

The above link for JSSE should be good enough to get an overview of the above too..( see “HOW SSL WORKS” in that page…)..

  • Java support for Cryptography: should mention about JCA ( java cryptography architecture..)

 

Here is a good overview doc…for all the above technologies

White Paper from SUN

October 31, 2007

Bangalore Chennai Land Route

Filed under: JustLikeThat — javywrites @ 4:12 am
Tags: , ,

Bangalore Chennai Route via Road

October 19, 2007

Mashups!

Filed under: Technology, Web Technologies — javywrites @ 1:07 pm
Tags:

A technical word that reads more like a slang expression ! I like this.

Well whats all this about Mashups?.
Mashups are presentation of a new service whose building blocks are smaller services pulled off from different sources.
Check this to get an whiff of how it looks like.

Although the idea is there since long, the usage of the term is gaining more popularity now.
Microsoft has even launched a free tool ( yeah , you heard it correct – FREE & from Microsoft !) called popfly to help develop mashups.

Speaking in GoF language, should I call ‘mashups’ a Decorator pattern or a Facade pattern ?.
Oh!. Wait a min.Where did I keep my Martin Fowlers :)

Here is an article from IBM on the topic.

Next Page »

Blog at WordPress.com.