Straight from the Heart

The first milestone..

Posted by: Manu on: June 20, 2011

Done with the first hurdle, don’t know exactly how much I have performed, neither good nor bad…somewhere in between..I would say. The feeling I have, somewhere in my heart and mind is a positive one….I know , have done enough to clear the first hurdle….lets prepare for the next one…

The Shawshank Redemption

Posted by: Manu on: December 26, 2010

 Hope is a good thing may be the best of things and no good thing ever dies.

 

I went to my hometown for some important work; there I got a chance to watch this marvellous celluloid work by Frank Darabont- The Shawshank Redemption. I should admit that I am absolutely spellbound by the great script, impeccable performance of actors and apposite art direction of this movie. Above line in bold is one of the many unforgettable dialogs of this movie.

The film moves around an investment banker Andrew, acted by Tim Robbins, who is convicted of murdering his wife and sentenced to two consecutive life sentences at Shawshank State Penitentiary. As movie moves forward, Andrew gets friendly with Ellis Boyd played by Morgan Freeman, who is known for providing contrabands to jail inmates. In one of the scene, where jail inmates were performing the roof tarring task, Andrew uses his finance and legal acumen and helps the captain of the jail guards on his tax planning, and that becomes turning point of the movie; as later Andrew becomes the caretaker of prisoner’s library and also serves as a financial advisor to jail guards and most importantly to jail Warden Samuel Norton for running his money laundering scams. All these small scenes of the movie are well intentioned as these sequences provide a meaningful base to the script especially the climax when Andrew successfully manages to escape from the jail.

The director has sketched quite fruitfully the milieu of mid 20th century American jail, especially the intrinsic minutiae like the characters lingo, trading inside the prison in the form of cigarettes, corruption inside the jail and presence of red tapism in outside world. The character of Andrew’s inmate Elis Boyd (Red) is quite strong and portrays the ups and downs, the mental state of a prisoner who spent most of his life inside the prison. His body language is terrific and reflects the inexplicable anguish beats of his existence. The character of an elderly inmate Brooks Hatlen should be mentioned as it was small yet an important role and reveals the unsaid ghastly truth of prisoners’ rehabilitation.

The background score of the movie is impressive and composed by Thomas Newman; the score was also nominated for Academy Award for Best Original Score in 1994. Overall the movie is great and emphasized on the philosophy of hope and optimism. If you haven’t seen it yet, then got for it; a must watch.

** pic is taken from the net. for origianl source please refer this link-http://www2.bc.edu/~yanno/Shawshank%20Redemption.jpg

Tags:

10001

Posted by: Manu on: May 27, 2010

 

So finally an entry after a considerable hiatus, Though not a regular entry related to general topics on which I normally scribble to satisfy my urge of gratuitous or obligatory inscription and sharing things with you guys. 

Today morning, I noticed that my blog crossed the mark of 10000, current state is 10001, and I should accept honestly that I like the figure. Is it sounding juvenile, but for a moment I felt the same what I in-script. 

 Hope I will update this blog a bit regularly now. 

Happy Blogging. 

Manu

फिरदोस….

Posted by: Manu on: February 8, 2009

उनकी मु्स्कराहट, हमारे मासूम नतीजे,
थी जन्नत की चाहत, मिले दोजख के छींटे |

और लोग कहते खुदगर्जी इसे, खुदा देखता है……

 

गर ना हम होते शायर, तो अच्छा था,

दास्तान-ऐ-आशिकी तो न यूँ बयाँ करते |

छुपाने से जो चुप जाए वो मोहब्बत क्या है…………

मनु

जल्द ही आएगा वो दिन…

Posted by: Manu on: February 7, 2009

जल्द ही आएगा वो दिन,

बैठेंगे साथ हम दोनों…..

कुछ तुम अपनी सुनाना,

कुछ में अपनी बताऊंगा ….

आखों में होगी सिर्फ़ तुम,

और में जागते हुए सपने सजाऊंगा..

हाथों में तब दे देना हाथ तुम अपना,

और तुम्हारी खुशबू से में मन को भीगाउंगा ….

खामोश रह कर भी कह दूंगा सब,

जो कह न पाया हूँ अब तक, वह बानगी सुनाऊंगा …

कभी हो जो जाओगी नाराज तुम,

लगा कर अपने सीने से दिल की धड़कन सुनाऊंगा ..

तुम्हारी मुश्कराहट की बदली में ,

आस की बारिश बुलाउंगा…

बस तुम रहना सदा पास मेरे,

धुप, छाव, बारिश सब सह जाऊंगा…

जल्द ही आएगा वो दिन,

बैठेंगे साथ हम दोनों…..

कुछ तुम अपनी सुनाना,

कुछ में अपनी बताऊंगा ….

 मनु

Tags:

A Letter to someone special…..

Posted by: Manu on: January 3, 2009

Dear Gappu…

 

This life has never looked as good as it’s today…… and I’ve never been as happy as I am with you …Donno, if it is because of the warmness of you Love or because of some good deeds executed by me; Today… I have you as a soul mate and love of my life.

 

Inadvertently or purposefully…..if you are nice with someone, that altruistic act of yours get save as positive credits in your account….in the account of verve…I believe in this philosophy……may be because of my affinity with mathematics…I do so.

 

And when we have lot of positive credits in our account; Almighty fulfill our wishes, sometimes these wishes are latent, and we are unaware of, what we need…..as we always know what we want.

 

Your presence in my life is the result of such a dormant wish. I am an ordinary guy, who behaves indifferently sometimes, but somewhere close to my heart, I always have a warm feeling for you. Sometimes I reveal…..sometimes not.

 

Just want to tell you…You are Special to me.

 

Wish you all the good things of the world and a great year ahead. 

 

Love you…

 

Yours,
 Manu…….

 

Tags:

They call it crap…

Posted by: Manu on: December 16, 2008

Our life is a one way track as you move ahead. You will encounter some mile stones; you will notice some & some get unnoticed but whatever has passed….no point to anticipate the same. They won’t come in your path as the same way they came. So enjoy the journey as you never know….when this road will get block forever…

Manu

Dirty Pretty Things (2002)

Posted by: Manu on: November 6, 2008

 dirty_pretty_things

         

          Some things are too dangerous to keep secret; true indeed. After a significant hiatus; I watched an aesthetically nice piece of celluloid- Dirty Pretty Things. The story revolves around the two illegal immigrants in the city of London.  Director Stephen Frears has been pretty successful in his artistic attempt by sketching a sensitive movie plot with ingenuous portrayal of illegal immigrant’s life; their daily struggle, aspirations, exploitation and emotions are beautifully crafted by the different sequences. The main lead Okwe is an illegal Nigerian immigrant, and wanted by the Nigerian police in the charge of his wife’s murder. He came to London in the search of mental solace as he somewhere perceive himself a reason behind his wife’s death. In London, he met Senay Gelik (Audrey Tautou), a beautiful Turkish girl in her early twenties as she provides him shelter. Movie moves forward as Okwe discovers the ghastly side of London life. Chiwetel Ejiofor in the main lead as Okwe has done a great job as most of the times his eyes reflects the anguish beats of his wavy life. His acting skills are superb and dialog delivery is commendable. Audrey looks tempting through out the movie and his ingenious French accent provides a clear profundity to her character. In some of the scenes; she is too good as she has got diverse chances to show the true color of love, hate, damage, ecstasy and agony. Film was nominated for 2004 academy awards in the best writing/ screen play category; beside that this movie won many accolades. An honest attempt in the meadow of meaningful cinema, must watch.

  

** The picture is taken from the web.

Tags:

Some bits and pieces related to java Serialization

Posted by: Manu on: October 23, 2008

One of the interesting concepts of the java is Serialization. We all know in java we can create reusable objects in the memory as long as the JVM is in the running state. Serialization provides the flexibility of object persistence beyond JVM lifecycle.

 

In the short serialization is the process of saving state of an object in a file. For that purpose, that object should implement the Serializable interface; same we are doing in the class Sedan.

 

A simple example of serialization is as follows-

 

public class Sedan implements Serializable{

private double price=44000.0;

 

public Sedan(double price){

      this.price=price;

}

public double getPrice() {

      return price;

}

 

public void setPrice(double price) {

      this.price = price;

}

}

 

public class SerializeSedan {

      public static void main(String[] args) {

 

            Sedan sedanObject= new Sedan(55000.0);

            FileOutputStream outputStream;

            try {

                  System.out.println(sedanObject.getPrice());

                  outputStream = new FileOutputStream(“myTestFile.ser”);

                  ObjectOutputStream obystr= new ObjectOutputStream(outputStream);

                  obystr.writeObject(sedanObject);

                  obystr.close();

 

                  FileInputStream in= new FileInputStream(“myTestFile.ser”);

                  ObjectInputStream objin= new ObjectInputStream(in);

                  try {

                        sedanObject=(Sedan)objin.readObject();

                        System.out.println(sedanObject.getPrice());

                  } catch (ClassNotFoundException e) {

                        e.printStackTrace();

                  }

                  objin.close();

            } catch (FileNotFoundException e) {

                  e.printStackTrace();

            }catch (IOException exp) {

                  exp.printStackTrace();

            }

      }

}

 

 

Run the SerializeSedan Class. The output will be-

Before- 55000.0

After- 55000.0

 

 

Now change the Sedan a bit.

 

 

public class Sedan extends Car implements Serializable { private double price=44000.0;

private Gearbox gearbox=null;

 

public Sedan(double price, Gearbox gearbox){

      this.price=price;

      this.gearbox=gearbox;

}

public double getPrice() {

      return price;

}

 

public void setPrice(double price) {

      this.price = price;

}

public Gearbox getGearbox() {

      return gearbox;

}

public void setGearbox(Gearbox gearbox) {

      this.gearbox = gearbox;

}

}

 

public class Car implements Serializable{

      private int yearModel=2005;

 

      public int getModelyear() {

            return yearModel;

      }

 

      public void setModelyear(int modelyear) {

            this.yearModel = modelyear;

      }

     

}

 

public class Gearbox {

 

private int gearCaseNumber=0;

 

public int getGearCaseNumber() {

      return gearCaseNumber;

}

 

public void setGearCaseNumber(int gearCaseNumber) {

      this.gearCaseNumber = gearCaseNumber;

}

 

}

 

Now we have an instance variable of type Gearbox, now for serialization of Sedan object, Gearbox should also implement Serializable interface.

And what if the Gearbox itself had references to other objects? This gets fairly complex. If it were up to the programmer to know the internal structure of each object the Sedan referred to, so that the programmer could be sure to save all the state of all those objects…..Which is really difficult to achieve. The good thing about java is – java Serialization mechanism internally take care of the whole object graph. In the case, we are unaware of the structure of Gearbox class or Gearbox is not implementing Serializable interface and we are not able to the change code also.

We can create a sub class of Gearbox, which eventually implement Serializable interface and what if Gearbox is final class.

 

Here transient modifier comes in picture. Transient is used to skip an instance variable during serialization.

 

public class Sedan implements Serializable{

private double price=44000.0;

private transient Gearbox gearbox=null;

 

Now during serialization, variable gearbox will be skipped.  We are skipping the gearbox variable so we can not read the gearCaseNumber while reading the state of the object as it will throw a null pointer error while getting Gearbox object.

 

Java provides solution for that problem also, for that some change requires in the Sedan class.  Add these two methods in Sedan class and these methods will solve the purpose.

 

private void writeObject(ObjectOutputStream os)

      {                          

            try {

                  os.defaultWriteObject();                         

                  os.writeInt(gearbox.getGearCaseNumber());           

            } catch (Exception e) { e.printStackTrace(); }

      }

 

 

      private void readObject(ObjectInputStream is) {

            try {

                  is.defaultReadObject();                            

                  gearbox = new Gearbox(is.readInt());             

            } catch (Exception e) {

                  e.printStackTrace();

            }

      }

 

Now output is-

68686After- 55000.0

68686After- 55000.0

Here, when you invoke defaultWriteobject() from within writeObject() you’re telling the JVM to do the normal serialization process for this object. When implementing writeObject(), you will typically request the normal serialization process, and do some custom writing and reading too. Please read sun java doc for the clear understanding of methods related to ObjectOutputStream class.

This was just an introduction of the Serialization, Lots more to follow. Hope it helps.

Cheers,

Manu

Tags:

Love….

Posted by: Manu on: September 21, 2008

I read a post on this lovely creation of almighty.
.
Whatever the situation is, but the wondrous feeling of being in love is great, I feel strongly that everybody should fall in love at least once in a life time. Obviously we all are in love with our parents, siblings, our beloved things but to fall in love with a person you don’t have any prior association, truly ineffable. There is also a vital difference; generally we do love things because of the qualities they encompass or some genial association, but here situation is contradictory we love first without giving attention to acquisitive or non-materialistic qualities and sans any affable link and then comes in picture the penchant towards the persona of that individual, which is selfless, truly altruistic. Oceans of ink have been spilled in hopes of defining love in all its many facades but this voyage is eternal. In love, destination is not the key as joy is in the journey.

 

 
 
 

 

Translator

a

The Calendar..तारीख

January 2012
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

पन्ना

Pitara….पिटारा

हिसाब-किताब

  • 19,678 hits

Tashveerein.......तसवीरें

arrival

Death in Ojai

Four in a Row [Explored]

Osprey and Carp

Allure of the sea

Untitled

Wintericed

Boardwalk Dreams

Untitled

ahead

More Photos

Thanks for the Visit…आने का शुक्रिया

website statistics

Rumbling of Mind

  • and the new cricket world champion is INDIA !!!!!.............. 10 months ago
  • Wish you & your Loved ones a Very Happy and Prosperous New Year – 2011..... 1 year ago
  • Saturday morning..Office off..Delhi winter...Warmness of sunshine..Hot delectable breakfast....Awesome.. 1 year ago
  • nice cast, great music director, good director ....yet.a pathetic movie......no prize for guesses...raavan 1 year ago
  • Enjoying impeccable literary creation of “Renu”- with cookies and tea- great Sunday afternoon.. ..:O) 1 year ago

Aaate-Jaate..आते-जाते

Top Clicks..पसंदीदा

The Selected One's..चुनिन्दा

U come from..

Follow

Get every new post delivered to your Inbox.