Posted in From My Mind

When Developer Meets Tester….

In layman terms, a developer is a person who develops the application which could be an application a web-site or some other piece of work which runs in the background which end user cannot see. On the other hand, tester is a person who tests the application against customer requirements before delivering it to customer or we can say Testers basically verifies Developers work. How could be the relationship when developer meets tester… As per my experience being a developer I don’t like tester’s job much, I think their jobs doesn’t require much of brain. (No offense to Testers).Also, I don’t like someone find errors/bug in my work (code) and asked me to fix it again. And many times I had huge fight with testers during release of work. And what if a composed, prudent, amicable developer Aadi (Aditya) meets an egotist, diligent, ardent tester Smriti…. We know opposite poles attract each other; but how about in real life.

Smriti, a Punjabi gal moved into real time production after cleared her initial training. When she reported to her assigned manager; she asked Aadi to give her knowledge transfer session about the account, processes to be followed, and formalities to be completed for the on-boarding of her. Aadi as described above a composed person who already had two years of IT experience was working as developer. Smriti who just came into production was assigned as tester for the same project. First project for Smriti; believing on the fact – First Impression is last impression she completed her first release of work with full diligence. Due to ambiguous requirements from customer, Smriti raised so many defects/issues against Aadi. Generally, when a tester raises a defect it is against developer’s work not against developer. But sometimes or I would rather say most of the time developer think it is against him/her. In our performance goal settings, the maximum number of defects is allowed up to 2 or 3. And Smriti raised 17 defects against Aadi which results in poor appraisal rating for Aadi. However, it was because of improper requirements; many were because of data issues. But defects are defects – His manager statement. Aadi was expecting promotion but he couldn’t get it because of poor ratings. So, fight started between both of them and it turned into big arguments.
Due to course of time, again one more release came and this time also Aadi and Smriti were working as developer and tester. In corporate world, even though you don’t like people around you, you don’t want to work with them; then also you have to be gentle with them. This time Smriti acted sensibly; she proactively checked the requirements directly with client and again discussed with other team members. This times no defects. Aadi was happy. He was impressed with Smriti’s work. Everybody was sending appreciation mails to Smriti. Being a fresher, she completed the work on time and delivered with sincerity. Her quality work brings her into limelight. Nature’s rule – if you work well; everybody will like and start talking about you.

Quarter finished, here come the quarterly project party. Smriti even though looks very simple, but her simplicity was enough to catch any guy’s attention. She dressed very nice nicely for the party. Every guy in the team was talking about her. The way she walks, she talks, she carries herself etc. So somewhere bells starts ringing in Aadi’s heart. In his past life, he never liked any girl so much. After the party he couldn’t sleep whole night. Next day onwards, he started craving for Smriti’s attention. He wanted to spend more and more time with Smriti. But stars were not much favorable; she was always surrounded by her friends. Be it for lunch, for coffee, evening refreshment, and for weekends no chance. He starts getting insecure day by day.

Without any further delay, he proposed Smriti on Office Communicator. It was for the first time he was proposing a girl, not sure how to propose and what to exactly say, he proposed in a very lucid way; which I think girls generally don’t like. For Smriti it was not the first time, someone was proposing her. She thought it as prank and said “No”. I am not looking for any relationship or anything. He said we can be good friends. She replied bluntly I have enough friends. Sorry Aadi, Don’t waste my time. Please let me work. LLL  

You can close your eyes to things you don’t want to see, but you can’t close your heart to the things you don’t want to feel. – Author Unknown.

Day passed, months passed but nothing changed in the feelings of Aadi. With each passing day the intensity of his feelings was growing more and more. Finally a day came, when Smriti dropped a mail to whole team stating, Last Day in Hyderabad. She got transferred to Chandigarh. So Smriti’s team arranged a farewell for her on the same day. Smriti, was excited as she got what she desired for long time. On the other hand, Aadi was completely pulverized. He was confused not to know what to do, what to say, whether to go in the party or not. He thought let’s propose once again, you never know, maybe she agreed for the friendship. So, Aadi again proposed on the same day. Even she also wanted to talk to Aadi. Because she was thinking whatever happened in the past, it was prank from Aadi’s side. Before, Smriti could say something, Aadi immediately said Smriti, I don’t know what it is “But I think I love you and I have fallen for you”. While saying this tears rolled down from Aadi eyes and last line he said I am not liking this that you are going to Chandigarh, now I cannot see you and talk to you. And Aadi went from the party. Smriti totally speechless, now don’t know what to do. She likes Aadi but not the way Aadi likes her and relationship. She is Punjabi; Aadi is from south India, nothing is impossible, even though she gave thought about her relationship with Aadi. She left for Chandigarh next morning with mixed feeling. She dropped a message “Aadi you are a nice guy, I like you but not the way you like me. Even though I think about you, I know there is no future further. We hardly know each other. Good Bye. !!”

Trying to forget someone you love is like trying to remember someone you never met. – Cristina W.

 Aadi was not ready to forget Smriti, so he decided he will again try. Again chat started on communicator followed by late night sms chats. Aadi was not sure what is prevailing in Smriti’s mind. He thought of proposing again but when and where. It was 24th September 2011, Aadi’s birthday and Aadi wants to celebrate it with Smriti. So he booked the ticket. He flew to Chandigarh and directly went to office to meet Smriti. Smriti totally got surprised as she had no idea what Aadi is up to. It was third time, he was saying this thing to Smriti, I don’t know what it is “But I think I love you and I have fallen for you”. I generally don’t celebrate my birthday but this year I want to be with you on my birthday. This time Smriti also replied “I don’t know what it is but I think I like you, when you are not near I miss you , when you don’t pick my phone, I feel so insecure, I think I also love you and I have fallen for you.” Aadi wasn’t sure how to react. Generally it happens; when you want something and all of sudden you got that thing. You don’t know how to react. He thanks GOD, for giving the best birthday gift ever. As they both are from different states and cultures as well. It took more than 6 months for the both families to accept their relationship. Finally they got married in 24th April 2012. Their love story is nothing less than roller coaster ride.

Being deeply loved by someone gives you strength, while loving someone deeply gives you courage. –Lao Tzu

P.S. This is not a mere fiction, I know Aditya from very long time. Today 24th Septembeer 2012, on account of Aditya’s Birthday and their relationship anniversary I thought of writing this post. Hope you enjoyed the story.

Posted in Books

Parsing XML document using SAX Parser


import javax.xml.parsers.SAXParser;

import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.Attributes;

import org.xml.sax.ContentHandler;

import org.xml.sax.ErrorHandler;

import org.xml.sax.InputSource;

import org.xml.sax.Locator;

import org.xml.sax.SAXException;

import org.xml.sax.SAXParseException;

import org.xml.sax.XMLReader;

public class SAX_Parser_Example {

int batchSize = 0;

static public void main(String[] arg) {

// Give the file path of your system.

String filename = “C:\\Users\\WS\\POC_SPVTG\\POC_23Aug\\PEIS_DataSample.xml”;

// Create a new factory that will create the parser.

SAXParserFactory spf = SAXParserFactory.newInstance();

// Create the XMLReader to be used to parse the document.

long startTime = System.currentTimeMillis();

XMLReader reader = null;

try {

SAXParser parser = spf.newSAXParser();

reader = parser.getXMLReader();

} catch (Exception e) {




// Specify the error handler and the content handler.

reader.setErrorHandler(new MyErrorHandler());

reader.setContentHandler(new MyContentHandler());

// Use the XMLReader to parse the entire file.

try {

InputSource is = new InputSource(filename);


} catch (SAXException e) {


} catch (IOException e) {




long endTime = System.currentTimeMillis();

System.out.println(“Time taken to complete the parsing of document”+(endTime-startTime));



class MyContentHandler implements ContentHandler {

private Locator locator;

private StringBuffer curCharValue = new StringBuffer(1024);


* The name and of the SAX document and the current location within the

* document.


private int batchCount =0;

public void setDocumentLocator(Locator locator) {

this.locator = locator;


/** The parsing of a document has started.. */

public void startDocument() {


/** The parsing of a document has completed.. */

public void endDocument() {


/** The start of a namespace scope */

public void startPrefixMapping(String prefix, String uri) {


/** The end of a namespace scope */

public void endPrefixMapping(String prefix) {


/** The opening tag of an element. */

public void startElement(String namespaceURI, String localName,

String qName, Attributes atts) {




/** The closing tag of an element. */

public void endElement(String namespaceURI, String localName, String qName) {



/** Character data. */

public void characters(char[] ch, int start, int length) {

showCharacters(ch, start, length);


/** Ignorable whitespace character data. */

public void ignorableWhitespace(char[] ch, int start, int length) {

showCharacters(ch, start, length);


/** Processing Instruction */

public void processingInstruction(String target, String data) {


/** A skipped entity. */

public void skippedEntity(String name) {



* Internal method to format arrays of characters so the special whitespace

* characters will show.


public void showCharacters(char[] ch, int start, int length) {

for (int i = start; i < start + length; i++)

switch (ch[i]) {

case ‘\n’:


case ‘\r’:


case ‘\t’:




curCharValue.append(ch, start, length);



// System.out.println(“\””);



class MyErrorHandler implements ErrorHandler {

public void warning(SAXParseException e) throws SAXException {

show(“Warning”, e);

throw (e);


public void error(SAXParseException e) throws SAXException {

show(“Error”, e);

throw (e);


public void fatalError(SAXParseException e) throws SAXException {

show(“Fatal Error”, e);

throw (e);


private void show(String type, SAXParseException e) {

System.out.println(“System ID: ” + e.getSystemId());




Posted in Books

The Shack:Book Review

The Shack was written by a father for his children, to help them understand his relationship with God. William P. Young explains that he never intended to write a book, but that this story became the means of communicating the real conversations he had with God and with friends and family over several years. Though the story is fictional, it seems pretty clear that Young’s claim that the conversations were “all real, all true” is a claim that the words of God found in this book are true. Now, any work which claims to record divine speech needs to be read carefully and critically. Claims to speak for God must be treated with utmost seriousness.

Nothing makes us so lonely as our secrets – Paul Tournier

In this novel, the protagonist, Mackenzie Allen Phillips, receives an invitation from God to meet Him at a shack in the woods. It takes Mack a little while to decide to keep the appointment, but his curiosity and his pain eventually convince him to make the trip. When he arrives at the shack, the whole environment is transformed into an idealistic setting by the presence of God. Mack, too, undergoes a remarkable transformation,  although that change takes longer to accomplish. Four years earlier, Mack’s youngest daughter, Missy, had been kidnapped during a family outing. Her body had never been found, but the evidence pointed toward her murder at this abandoned shack in the Oregon wilderness at the hands of a serial pedophile. Mack had identified Missy’s bloody dress, found on the floor in front of the fireplace in the shack. As would be expected, these years had been difficult for Mack and the rest of the family, a period he describes as “The Great Sadness.” But, after spending a couple of days at the shack with God, Mack returns home a changed man. Through a series of conversations with God, he begins to understand how God’s love provides the basis of forgiveness and the power to change human lives. The trans formative power of redemption through forgiveness is the theme of the book; where tragedy confronts eternity.

It is an engaging story, even though it is very predictable. The horrific nightmare this family experienced is every parent’s worst fear and thus the story connects with the reader at a deep level. The author effectively uses word pictures, characterization, and plot development to probe deeply into the emotional recesses of the reader’s soul. The conversational tone draws the reader into the story, encouraging him or her to experience vicariously Mack’s spiritual transformation. The story stresses God’s love for His children, emphasizes human freedom as the cause of sin and evil, focuses on forgiveness and reconciliation as the solution to sin and evil, judgments, relationships, miracles of Jesus, stresses the hope of eternal life in God’s presence in a new creation, and encourages the reader to interact with the human characters and God in a deeply meaningful way. But the author’s portrayal of God is confusing at best and untrue at worst. Emotional appeal is missing. Portrayal of God is confusing in between. For instance, Jesus had no power within himself to heal anyone.

You can kiss your family and friends good-bye and put miles between you, but at the same you can carry them with you in your heart, your stomach, because you do not just live in a world but a world lives in you – Frederick Buechnner.


The quotes used in this post are from the book. While reading this book, I also came across very beautiful poem which I feel worth sharing.

Breathe in me…. Deep

That I might breath…. And live

And hold me close I might sleep

Soft held by all you give


Come kiss me, wind, and take my breathe

Till you and I are one

And we will dance among the tombs

Untill all death is gone


And no one knows that we exist

Wrapped in each other’s arm

Except the One who blew the breath

That hides me safe from harm


Come kiss me wind, take my breathe

Till you and I are one

And we will dance among the tombs

Untill all death is gone.

Posted in From My Mind

Maverick of the digital age –Steve Jobs

Undoubtedly, maverick of the digital age; who changed the face of technology; who made dent in the universe; whose mantra was “Simplicity is ultimate sophistication”; a successful business entrepreneur and an iconic figure in the computer industry. . none other than Steve Jobs, co-founder, Chairman and Chief executive officer of Apple Inc; but in personal, an aggressive, shrewd and demanding manager and an excellent team player, who strove to get better with each passing day by looking ahead of time and made a valuable contribution to the technological advancement in society.

Finally, I completed reading the biography of Steve Jobs; I must say it’s one of the amazing biographies which describes very well topsy-turvy life of Jobs. After reading the book I came to know about few facts which I think are worth sharing about Job’s life. These facts may be interesting, surprising, mysterious etc.

Jobs was adopted, and his biological father, Abdulfattah Jandali, was a Syrian unmarried man who went on to become a political science professor. Arabs embraced Jobs because of his Syrian roots, and alsoImage

known as “The Most Famous Arab in the World.” He was adopted by Clara and Paul Jobs, a middle-class American couple.

After completing his schooling, Steve Jobs was admitted to the Reed College in Portland, Oregon. He dropped out from college but continued with his calligraphy classes. This course would later help Jobs in creating multiple typefaces for Mac. This was perhaps a classic example of the fact that nothing learned is ever wasted!

As an eighth-grader, he called William Hewlett, co-founder of Hewlett-Packard, to inquire about a part missing from a frequency counter he was assembling, the New York Times reports. Hewlett reportedly spoke to Jobs for 20 minutes, and then offered him a bag of parts and a summer internship. He was forced to come in night shifts. The reason behind this decision was that he was on complete vegan diet he hardly takes shower and also avoided colognes; it was difficult for co-workers to work with him. Steve was vegan for his whole life. PETA also praised Jobs for his vegetarianism and support for animals.

He used to do LSD: Lysergic acid diethylamide(LSD can cause pupil dilation, reduced appetite and wakefulness) and he also claimed this is one of the important things he has done in his life. Also Jobs himself has suggested, LSD may have contributed to the “think different” approach that still puts Apple’s designs a head above the competition.

Jobs dated the folk singer when he was in his 20’s before marrying Poweell. Jobs met his wife, Laurene Powell, when he spoke at the Stanford Business School, where she was pursuing an MBA. She was a vegetarian, like Jobs, and a former investment banker. The two had an immediate connection. A year after Jobs ran across the Stanford parking lot to ask the blonde beauty to dinner. Both got married in 1991; also his marriage’s cake was without egg and milk; which was not even liked by guests.

Steve Job’s quest for spiritual enlightenment brought him to India in the summer of 1974. Jobs came to India with one of his best friends from Reed College, Dan Kottke. Deeply philosophical then, Jobs wanted to study and experience spiritualism and existentialism. In India, he wanted to visit the Neem Karoli Baba at his Kainchi Ashram. However, when they arrived they learnt that Baba has died.

Steve Jobs convinced Steve Wozniak to build some computers for sale. Jobs knew Wozniak for a long time. Both were members of Homebrew Computer Club. Wozniak was too shy to talk in public, on the contrary Jobs was smart enough to handle interviews; product launch events. Apple got its name because Steve Jobs was working at a hippie apple farm at the time, was on a fruit diet (lots of apples), and the word “apple” would come before “atari” in a phonebook. Apple only got off the ground when Steve Jobs convinced Mike Markkula to invest and loan the company some money (about $250,000 USD). Markkula also there to provide “adult supervision” as neither Wozniak nor Jobs have much corporate experience.

Steve Jobs hired John Sculley from PepsiCo in 1983 when Markkula decided he needed to step down and Sculley’s corporate history is good for the company. Markkula convinced Jobs to hire Mike Scott from National Semiconductors as CEO in 1978, but after a few years, when Scott fired almost half of the company, Markkula replaced Scott as CEO.

The idea behind Apple was to create world class products not to make profit.

He got pink slip from the company he co-founded. Jobs was ousted from Apple by John Sculley after a disagreement on how to run the company. Steve Jobs hired John Sculley from PepsiCo in 1983 when Markkula decided he needed to step down and Sculley’s corporate history is good for the company. However, he only hired John Sculley asking –“Do you want to sell soda water for rest of your life or you want to challenge yourself into different field.”After few months of this incident; Jobs founded NeXT Computer. Jobs sold all of his Apple stock and used the capital to found NeXT and still had money left over (which he then used to buy The Computer Graphics Group, which became Pixar later. Pixar has gone on to produce animated movies such as Toy Story (1995); A Bug’s Life (1998); Toy Story 2 (1999); Monsters, Inc. (2001); Finding Nemo (2003); and The Incredibles (2004). When Pixar shares went public in 1995, Jobs became a billionaire.

In 1995, Apple Computer was at its lowest point in history. The company was facing tough competition from Microsoft. Apple’s CEO, Gil Amelio, was desperately looking for a way to save the company. In December 1996, Amelio bought NeXT for $400 million and welcomed back the company’s founder, Jobs, as an ‘informal adviser’. Within eight months of the acquisition, Amelio was out and Steve Jobs became Apple’s interim CEO. In 2000, company dropped the word “interim”.

Post Pixar, he wanted another round of revolutionizing to do. This time it was the music industry. He introduced the iPod in 2003. Later he came up with iTunes, which was a digital jukebox. A million and a half iPods later, the music industry still does not know whether this invention will save it or destroy it. Apple has a great advertising track record and its ‘Rip, Mix, Burn‘ campaign was another feather in its cap. Now the industry uses a Mac to make the music and an iPod to store it.

In October 2003, Jobs was diagnosed with a rare type of pancreatic cancer treatable with surgery, but he hesitated about having the operation to the horror of the tiny circle of intimates in whom he’d confided; A Buddhist and vegetarian, Jobs decided instead to pursue alternative therapies and treat his cancer with a “natural diet.” He tried doing so for nine months, as the Apple board fretted, before finally having the surgery in July 2004, at which point the cancer might have spread and his chance of long-term survival been reduced.

In 2007, came Apple iPhone and 2010 saw the launc of Apple iPad. Both products continue to rule in their respective categories. Apple was the first company who comes up with the idea of making stores of their products and the design of stores was also based on simplicity (Point to note: All apple stores made of white ceiling and floors). And he also patented the glass staircase of Apple stores.
In 2009, Jobs announced that he would be going on a 6-month leave of absence and that Tim Cook would be the acting CEO of Apple. It was clear that Jobs had serious issues with his health. In June 2009, it was reported that Jobs had undergone a successful liver transplant. It looked like he would soon resume work. In 2011, after a brief leave of absence, Steve Jobs resigned. His resignation from the position of Apple CEO came as a shock to many. But he had always maintained that he would step down on the day he felt he wouldn’t be able to meet his duties and expections as the CEO. On October 5, 2011, he passed away. His innovation did distinguish him as a leader; a true leader who left behind a legacy; and whose invented products become status symbol.

You can’t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something – your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life. –  Steve Jobs.