19
May
2012

Professional Commitments Vs Personal Well-Being: The thin line in-between!!

Why do spend long hours at office trying to earn a few extra million for the organization, though we get paid in a few thousands? Why do we keep compromising with our family and personal life, trying to achieve suffocating deadlines, which would in turn ensure another promotion for our bosses? Why do we end up spending an obnoxiously higher amount of time with our office colleagues instead of at least a few hours of quality time with our family and kids? Why do we have to keep calling random people as ‘Boss’ and ‘Sirs’ , though many of them are intellectually , professionally and academically inferior to us? Why do we need to sacrifice on our personal time, just because our superiors are workaholic, and prefer working 24X7, with no particular interest in getting back home to an estranged family? Time and Productivity aren’t mutually dependent. Spending abnormal hours in office doesn’t necessarily mean extra productivity.
08
May
2012
29
Apr
2012

Reading/Comressing ZIP,JAR and TAR Files using java.util.jar / java.util.zip /Commons-Compress APIs

Java JAR Operations :

The JAR file format is based on the popular ZIP file format. Usually these file format is not only used for archiving and distribution the files, these are also used for implementing various libraries, components and plug-ins in java applications. Compiler and JVMs (Java Virtual Machine) can understand and implement these formats for java application.For mentioning the product information like vendor name, product version, date of creation of the product and many other things related to the product are mentioned in the manifest file. Such type of files are special which are mentioned in the jar file for making it executable for the application. This file format is to be used for collecting auxiliary files associated with the components.

Java JAR Operations :

The JAR file format is based on the popular ZIP file format. Usually these file format is not only used for archiving and distribution the files, these are also used for implementing various libraries, components and plug-ins in java applications. Compiler and JVMs (Java Virtual Machine) can understand and implement these formats for java application.For mentioning the product information like vendor name, product version, date of creation of the product and many other things related to the product are mentioned in the manifest file. Such type of files are special which are mentioned in the jar file for making it executable for the application. This file format is to be used for collecting auxiliary files associated with the components.

package com.soham.JavaCompressOperations;

import java.io.IOException;
import java.util.jar.Attributes;
import java.util.jar.Manifest;

/*
24
Apr
2012

Love,Live,Eat,Drink and Party...Theres No Tommorow !!

It’s time to party hard, squander all your wealth, go berserk, turn wild, get drunk, smoke your lungs black, loose your virginity, vent your well-guarded dissatisfaction towards the highly-esteemed snobbish clients, reply to over-demanding bosses in ethically framed inappropriately abusive queen’s English and desperately hope that Mr. Nostradamus stands correct with his prediction of the world coming to a sudden end in December, 2012. Nevertheless, if, by sheer ill-fate, the World continues to exist post 2012 and doesn’t face abrupt extinction, well…..Dude, you are screwed big time. A Rotten liver, burnt-out lung, not a penny to spare, no job, furious clients, broken home, hysteric managers and an earth that looks perfectly healthy.
 
07
Apr
2012

The "What-If" series................

“What-if” steamy Condom Commercials are back on Prime Time television?

27
Mar
2012

Raped,Violated and Mocked : A Cry For Justice !!


“Basanti. In Kutto ke samne mat nachna” …. Those were probably golden days when, a bunch of guys would be content with dancing heroines. A modern day “Basanti” under such circumstances would have been torn to pieces and left bleeding to die a slow humiliating death.
 
11
Mar
2012

Java : Comparable vs. Comparator...

The Comparable Interface :
 
Every bean class can have utmost one compareTo() method. Hence at a time we can have just one sorting mechanism in place.
We don't have a mechanism to explicitly specify a certain sorting condition while triggering a Collections.sort()

package com.soham.ComparableInterface;

import java.util.ArrayList;
import java.util.Collections;

public class ComparableExample {
	public static void main(String[] args) {
		ArrayList<EmployeeBean> li
The Comparable Interface :   Every bean class can have utmost one compareTo() method. Hence at a time we can have just one sorting mechanism in place. We don't have a mechanism to explicitly specify a certain sorting condition while triggering a Collections.sort()
package com.soham.ComparableInterface;

import java.util.ArrayList;
import java.util.Collections;

public class ComparableExample {
	public static void main(String[] args) {
		ArrayList listEmpBean=new ArrayList();
		listEmpBean.add(new EmployeeBean(12,"Soham","27"));
		listEmpBean.add(new EmployeeBean(11,"Paras","27"));
		listEmpBean.add(new EmployeeBean(100,"Saran","27"));
		listEmpBean.add(new EmployeeBean(1,"Rahul","27"));
		listEmpBean.add(new EmployeeBean(34,"Subho","27"));
		listEmpBean.add(new EmployeeBean(67,"Arko","27"));
02
Mar
2012

Usage of Commons-Validator module across Popular J2EE Frameworks : Spring/Struts/JSF

Last night , I was struck with utter repentance towards my certain deviation from technology posts and inclination towards the , as you know , the whacky posts. Hence , early morning , I sprang out of bed and decided to go all Techie. nevertheless , its equally fun with the Humorous articles too. "TechAllies" as the name suggests , should ideally be a tech website. However , I dint come up with much Tech stuff recently. Heres a new beginning.

The usage and configurations for Commons-Validator module across popular J2EE Frameworks.
 
STRUTS 2.1.6 :
 
The Struts 2 validation framework uses xml based configuration file. The file name should be <Your action class> -validation.xml within teh same package.
The XML would thereby validate all attributes mentioned in the Action Class i.e if they are mentioned as a part of the XML validation.

23
Feb
2012

Those Good Old days....

Those were golden days. The auspicious day in college, I had a severe wardrobe malfunction , after a futile attempt with the football, resulting in a slightly embarrassing torn jeans with my trademark blue underpants partially exposed. And No, it wasn’t a jockey and I wasn’t one of those undergarment models with chiseled body. Hence there wasn’t much of a visual pleasure involved.
 
16
Feb
2012

What is better synchronized block or the synchronized method?

Under the assumption:
  • That there exists only the critical section in the method body and nothing else.
  • It is guaranteed that client is smart and will not mess around with the monitor of the object.

I frankly did not know. I would prefer a block since it gives my tighter control, protects against mistakes maybe made by someone else in the future (say unknowingly invoking IO in a synchronized method) and finally nothing better than to explicitly highlight your critical section and kind of self-document this "shared variable" that needs protection. Person who might touch this code down the road will precisely know the critical section.
But setting aside personal favoritism, this question peaked my interest as I wanted to know who wins!
Part 1:
Google it… (that is easy!) .. Nothing was found other than usual stuff.
Part 2:

26
Jan
2012

Techies Vs Management : The ever debatable rift !!

 
 
Disclaimer :
The contents of the following post doesnot hint at any company,project or individual , living or dead (A dead manager asking for status updates would be just too scary to tolerate). So any coincidence what-soever is purely co-incidental.So all you techies and managers , please accept the article in the right spirit and participate sportingly. Well , I probably haven't been so modest and humble all this far.However, I agree and understand that its not wise to provoke flares from the management fraternity , since I plan to get married this year and a jobless guy isn't a suitable candidate for the same. So Peace Fellas !! Enjoy !!
 
08
Jan
2012

Heralding A New Phase...A New Chapter...A New Year 2012

"Stupid" – "Donkey Monkey" – "You Lousy Fucker" – "Screw You Son of a Bitch!!"
 
12
Dec
2011

Dead Victims of a Failed Society....

The government hospitals are in shambles irrespective of the political party in power. The private nursing homes are basking in financial glory. Pay hefty bills , undergo expensive non-required tests , stand in long queues , deal with super busy doctors , spend a few days in anxiety and finally live your life with the aftereffects of a wrong treatment altogether. If that wasn’t enough, see your near ones being dragged out of the nursing home, burnt, choked, suffocated, half naked, cold dead.
 
10
Dec
2011