Posted by: Manu on: July 28, 2008
-मनु
** Wrote this poem somewhere in 2002 during my early IIT days. After the recent filthy episode of parliament, I thought I’d share this crude version of poetry with you.
Posted by: Manu on: July 21, 2008
Posted by: Manu on: July 15, 2008
Today, while creating a xml entity resolver, i have got struck in a trifling situation. I was using the throws keyword for handling exception instead of try catch block at InputStream instance creation method for a particular url path-getInputStreamFromDB(String urlString), and due to that, in case of error, control was going to the ValidatingErrorHandler class (a error handler used by the parser), which was again pushing it to the ExternalEntityresolver class (an Entity Resolver) and this whole thing was going into a recursion.
code snippets to give an idea-
ExternalEntityResolver externalEntitityResolver = new ExternalEntityResolver();
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setAttribute(“http://java.sun.com/xml/jaxp/properties/schemaLanguage”, “http://www.w3.org/2001/XMLSchema”);
factory.setNamespaceAware(true);
factory.setValidating(true);
ValidatingErrorHandler validator = new ValidatingErrorHandler();
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
documentBuilder.setErrorHandler(validator);
documentBuilder.setEntityResolver(externalEntitityResolver);
privateInputStream getInputStreamFromDB(String urlString) throwsMalformedURLException, IOException {
InputStream inputStream = null;
String xmlPath= “D:\\eclipse workspace\\PIF_VALIDATION\\resource\\AddressBook-ZipToCityEPD.xsd”;
//xmlPath=new File(xmlPath).toURI().toString();
URL url = newURL(xmlPath); Origin of exception
URLConnection con = url.openConnection();
if(con != null){
inputStream = con.getInputStream();
}
returninputStream;
}
Later, when I have used try-catch block to check the stacktrace, encountered the real culprit- a fresh exception. This exception originates at the time of URL instance creation for a given path String.
try{
path= “D:\\eclipseworkspace
String \\PIF_VALIDATION\\resource\\AddressBook-ZipToCityEPD.xsd”;
URL url = new URL(path);
URLConnection con = url.openConnection();
if(con != null){
inputStream = con.getInputStream();
}
}catch (MalformedURLException e) {
e.printStackTrace();// TODO: handle exception
java.net.MalformedURLException: unknown protocol: d
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.XXX.xml.ExternalEntityResolver.getInputStreamFromDB(ExternalEntityResolver.java:80)
It seems as if String path is not interpreted as a file reference and because of this, it is throwing MalformedURLException with this “unkown protocol d” message. Preferably I feel it should be handled by URL class code by checking the format of the path String. For solving this problem, we need to create a valid URL in code itself.
Like-
Just put this line of code before the creation of URL instance-
path=new File(path).toURI().toString();
URL url = new URL(path);
There is one more way, more simpler one to achieve the purpose
Simply append “file:///” at the beginning of path String and it would solve the purpose.
Path=”file:/// “+path;
URL url = new URL(path);
Posted by: Manu on: July 14, 2008
One of the best stories, I have read till date- “Veerangana”.
A truly nice story, an impeccable blend of emotions, feelings, human relations and evocative message. I must say, Writer has an immense ability of character sketching with mere but intense words, and this story really deserves a round of applause. We are in the twenty first century; still I do notice these things in our social milieu. Gender biasing is still a concern; sometimes i feel our conformist mentality and void values are responsible for all these ill things. Now things are changing; I hope, someday we will be able to understand the role equivalence of man and woman in the society. Nilanjana character is very strongly created; especially conversations between Nilanjana and Montu (I prefer to call him by this name) are able to strike unswervingly one’s sensitivity strings. By this story, writer has reached the pinnacle of the character refinement.
A must read, if you are looking for good literary creations.
For story page, Please follow the URL given below -
URL: http://www.hindinest.com/visheshank/02samaj/samaj31.htm
With Luv,
Manu
Posted by: Manu on: June 7, 2008
IPL….
So as of now, the IPL fever is over, Cheers gals are no more moving their curves, I am trying to explore the state of affairs after this forty four days lengthy octagonal combat. Instead of getting into the thick of the sportiest things, let’s check the predictable activities of few nears and dears of this intensive profitable league.
The real cricket affectionate TV channel Set Max, BCCI and our beloved players are indubitably busy with their investment consultants to cope with this crunchy currency flood captivated by their bank accounts.
Our own self acclaimed badhshah of bollywood has got active with his about to failed “Kya aap pachvi pass se tej hai” venture and moving back to his honey dew romantic film projects, Thanks to Aditya Chopra for venturing into DDLJ 2.0.
Ness Wadia is a happy man now, in spite of his not so profitable bid in the form of kings XI Punjab. He is in relief as now he is the only one, who will receive pleasure of the heavenly jhaapi-shappi sessions of his truly generous gal friend Priety.
Once a Dada, Ganguly is trying his hand on some really juicy rosogolla making techniques as he has lot of time till next year IPL. Might be he will take this chore seriously as his next profession.
“Lord, save me by the rage of my fellow Bong Bhadraloks as after reading this post I don’t know if they will try to hit me hard.”
Dravid, what he is thinking now might be planning to adieu this Dana-dun cricket format. This is a million dollar question as I am still clueless about his entirely confuse ever gloomy face and void strategies through out the IPL. The fearful fanatic performance of disabled challengers has breached all the records of not so excited cricket
Sachin, Jaisuriya, Mcgrath, Pollock all are surely enjoying this occasion after defying the restricting rules of age over experience. Although Sachin was unable to perform that”Duniya Hila Denge” act but surely saved his team from a shameful exit.
Goni, Pathan (Yusuf), Patel these boys are now becomes the talk of the town because of their wonderful performance and they are enjoying these victorious days of glory.
The so-called number one bowler Show-ab Akhtar must be thinking about his next undertaking, as prevailing condition will give him one more chance to fly over the green field is certainly doubtful. Anyway he can write his autobiography and I am sure it will be a big hit with lots of masala film flavors or he can contact Mahesh Bhatt for a fresh start in a new field.
And here comes our hero Yum Yuch Dhonee from Jharkhand, with his fortitude and ever cool attitude. But this time he was not as lucky as in the last T-Twenty world cup. His sweet IPL dream has been gently shattered by Warne, Tanveer and Yusuf but how can we forget the hand of god in the form of ostensible fast bowling of Balajee with one pathetic wide in crucial last over and pitiable wicket keeping skills of our innocent looking wicket keeper Parthiv Patel.
Let’s don’t forget the new angry young sardar….man of cricket world, after awarding a tight slap to ferocious pacer turned cry baby Shree Santh, he is keeping himself busy with some yoga and meditation. But he deserve round of applause for the change in Shree turned Santh as now he is concentrating on his bowling only. I think, we need bhajji type guy in each and every sports team to improve their performance.
And never the last nor the least Shane Warne, after leaving international test and OD cricket, has written a new success story beside his drugs, three some and erotic emails tales. Once again, he has proved his mettle as his role in IPL as a captain and a sportsman is truly appraisable. From rags to riches, the chronicle of Royals is inspiring with a humble start and magnificent final victory.
Posted by: Manu on: May 25, 2008
मनु
Posted by: Manu on: May 22, 2008
Passion, an innocent, captivating seven letter word. I feel, in the real way it is an eternal quest for narcissistic hedonism. Sometimes due to itinerary of actions related to this passion, outcomes are favorable to others in a constructive way but in genuine sense passion is what, which really gives you that divine feeling of satisfaction, can’t expressed in words, it’s a short of self indulgence. You feel it, when you have it. No questions and answers before and after.
Posted by: Manu on: April 28, 2008
| About Me: If you are thinking here u will get some interesting stuff then just skip it because here i am trying to write few lines on about me? Which is evidently a query for me and may be boring for you. so you have been forewarned don’t blame me further……like millions of other guys, most of the time i am working for the elevation of self facade, sometimes trying to create a image which does not match with my silhouette. What I am and what i want to be, i do vacillate between these two points. I am slipshod want to be attentive, i am lethargic want to be energetic, I am this and i want that, always surrounded by the flood of wants, desires and word I. Well this is a human nature and i am too surrounded by this malady. Whenever i see any needy I want to help him/her and on the next very second I start thinking why they are needy are they really need help or they deserve the situation in which they are…..i used to make plans and tried some of them successfully, but in most of the cases in spite of favorable results I have not recieved that satisfaction which I had expected while planning. I start thinking what we are doing ? are we really here to do the same task on which we are giving our tremendous efforts and energy or till now we were moving in a mirage. I believe in almighty but in some situation act like an agnostic on the very next second I feel its sacred presence in myself,and feel that providing me the strength, motivation to fight with odd situations. Discovery is going on more I will go deeper more I will encounter, each and every day a new face, with new desires, aspirations, dreams. |
|
| Books that bind: Books..I am an avid reader, I can read anything language no bar..English..Hindi..Urdu (in learning phase)..the chosen ones are..The Alchemist by Paulo Coehlo, The Fountainhead by Ayn Rand, Straight from the Guts by Jack Welch, The Witch of Portobello by Paulo Coelho, Gitanjali by Rabindra Nath Tagore (going through), Bhism Shahni , Jenendra, Mannu Bhandari, Fanishwar Nath ‘Renu’, Prem Chand, Ghalib, Guljar literary creations… |
|
| A glutton’s delight: Mummy’s Kitchen..missing a lot..otherwise anything Vegetarian. |
|
| Music that saves my soul: Music ..again depends on mood..from Soft, Classic, Ghazals, Carnatic to hip hop pop and Rock.. |
|
| Movies that make me wild: lots of…..from action, sci-fi, thriller to romantic honey dew…List is endless..to named a few.. Titanic, Brave Heart, Vertical heights, MI-2, Matrix series,Euro Trip, 40 Days 40 Nites….. in Hindi..Deewar, Golmaal, All Rishikesh da hits…RDB,HDDCS, DDLJ….Sadma,Masoom… |
|
| My passions proclaim: Passion…hmmm…roaming aimlessly in the quest of narcisstic hedonism.. |
|
| I admire: Nature and its Creation……People who believe in their self, as i believe that self is a part of almighty, so its all about reliance…on that divine power… who is one, on your self … if u can’t believe on your self..then … .. |
|
| My fear factor: Fear is one of the most ancient malady, always attached with human. So i am not the exception, i do have…..but better left undisclosed. |
|
| I believe I can: I can I will….This is the punchline of brand Manu…..ha ha ha …jokes apart….But these four words have tremendous energy and i do believe in the philosophy behind these words…. |
|
| I’d be a better person if I: If…this word kills…If this then that..if that then..so i don’t want to fiddle with this nonsence word…. |
|
| My sixpence to the world: Love and Hope… |
“Whenever I tried to squeeze those ineffable, perplex, untouched thoughts or things…they tried to unearth some other channel to prove their existence in the surface of this so called real world. Sometimes myself able to conceal and sometimes not….i think that’s the human“
Manu
## This is an introductory form for the users of a newly launched blog site. I have recently joined this blog site.
** The picture is taken from the web. For original source please follow given link- http://www.daniellefrench.com/press/l_meMyselfI_CD.jpg
गुफ्तुगू ....