0 comments 2010-02-12

As a web application developer, I tend to use XSLs very frequently, so I used the following technique to test my XSLs without spending money in buying professional XML/XSL editors like Oxygen. This trick will quickly allow you to test your XSL using XALAN's command line utility:

  1. Copy XML, XSL and XSLT processor jar in one folder. I am using XALAN(Download it from here) with jre 1.6(which should be installed on your machine). If you want to run this in many folders, you should put xalan.jar in one central location and add it to your CLASSPATH
  2. Run the following command in that directory 
  3. C:\test > java -cp c:\xalan.jar org.apache.xalan.xslt.Process -IN input.xml -XSL transformer.xsl -OUT output.xml
  4. output.xml is ready

To learn more about this command line utility, visit http://xml.apache.org/xalan-j/commandline.html and start saving money and time.

1 comments 2010-02-04

I owe you many laughs Mr Geatbong (aka. Arnab), but there is no price of happiness so can't pay you back in hard cash ;). Nevertheless many congratulations from my side for your book.

Now coming to the point why I have written this post, Greatbong is writing a book and he need publicity, so he has organized a contest in which I am participating and doing publicity of his book. Here are the rules:

The rules.
1. On your blog, provide a link to this page. (http://greatbong.net/book). Embedding the above picture in your blog would be nice but not needed.
2. Then write down your top 10 Hindi movie lines or top 10 English movie lines (You can do both if you want. Only one set is required for the contest). If you cannot think of top 10, make it top 5. Cannot think of even 5? Make it top 3. No problem. Only restriction: no two lines from same movie. This done to make it fair for other movies so that they dont get swamped by Gunda or Loha or Sholay.
3. Tag five friends to do the same.
4. Come over to the comment-space of this post and post your blog’s link so I can go and read it.
Remember: Before starting the tag, paste points 1 and 4 on your blog so that the rules are available to anyone who wishes to pick the tag up from your blog.
Here are some tags:
Aditi
Anyesha
BongoPondit
Diptakirti
Gaurav

Now all the formalities are done, and here comes my favorite dialogs, in no specific order...

Hindi
  1.  Naam hai mera Bulla, aur rakhta hoon mein hamesha Khullaaaa [Bashir Babbar ki jai ho!!]
  2. Teja mein hun, kyunki mera naam bhi teja hai. [Most logical dialog in any Hindi movie]
  3. Yeh to sirf hamare pipe ka kamaal tha, shukar hai tumne hamare rumaal ko haath nahi lagaaya, nahi to wahin dher ho jaate.[Very hard to choose just 1 dialog from 'Tiranga']
  4. Kisi desh ki unnati ki pehchan agar kisi cheez se hoti hai toh woh hai gutter. Woh gutter ke liye jiye. Aur gutter ke liye mare. Marte hue unke aakhri shabd the, GUTTER. [Well said Mr D'Mello from Jaane Bhi Do Yaaron]
  5. Rightey haand sey khaatey ho na tum log bread aur butter ?? [You have to watch Haasil to understand why everyone in our college remember those dialogs]
  6. Itni jaldi kya hai, thoda aaram aaram se peena chahiye, woh kehte hain na "Hold the Drink!" [I always remember this, especially after Khosla ka Ghosla].
  7. Dushmano ki lashon par bhangra karne waala kabhi langda nahi hota. [Don't remember this epic's name]
  8. Prem naam hai mera. Prem Chopra [Har shabd se kameenapan tapakta hai]
  9. Aur jab yeh Dhai kilo ka haath kisi par padhta hain na, to aadmi uthta nahi, uuth jata hain [One and only Sunny Paaji in Damini]
  10. Doodh, doodh, doodh. Mein mathura ka rehne waala hoon, isliye mein sirf doodh peeta hoon. [Vinod khanna in Farishtey]
Angrezi
  1. Nice Guy Eddie: C'mon, throw in a buck!
    Mr. Pink: Uh-uh, I don't tip.
    Nice Guy Eddie: You don't tip?
    Mr. Pink: Nah, I don't believe in it. [Mr Pink, I also don't believe in it :), from Reservoir dogs]
  2. Stan: Oh my God, you killed Kenny! Kyle: You bastard! [Vulgarity at its best, South Park: Bigger Longer & Uncut]
  3. Tuco: I like big fat men like you. When they fall they make more noise. And sometimes they don't get up. [One of mane memorable dialogs from The Good, The Bad and The Ugly]
  4. Rory Breaker: If you hold back anything, I'll kill ya. If you bend the truth or I think you're bending the truth, I'll kill ya. If you forget anything, I'll kill ya. In fact, you're gonna have to work very hard to stay alive, Nick. Now, do you understand everything I've said? 'Cause if you don't, I'll kill ya. [Best dialog to scare the shit out of your opponent, from Lock, Stock and Two Smoking Barrels]
  5. Jules: Say 'what' again. Say 'what' again, I dare you, I double dare you motherfucker, say what one more Goddamn time! [No one can say this better than Samuel Jackson, from Pulp Fiction]
  6. Gus: He got off before he got offed. [very witty dialog at crime scene, from Basic Instinct]
  7. President Merkin Muffley: Gentlemen, you can't fight in here! This is the War Room. [That's why Dr. Strangelove is the best black comedy]
  8. Harry Callahan: I know what you're thinking. "Did he fire six shots or only five?" Well, to tell you the truth, in all this excitement I kind of lost track myself. But being as this is a .44 Magnum, the most powerful handgun in the world, and would blow your head clean off, you've got to ask yourself one question: Do I feel lucky? Well, do ya, punk? [I always speak same dialog whenever I hold even a toy gun, just like Dirty Harry]
  9. The greatest trick the Devil ever pulled was convincing the world he didn't exist.[I agree. From Usual suspects]
  10. Sol: You ain't from this planet are you, Vincent? Who is gonna mug two black fellas, holding pistols, sat in a car that is worth less than your shirt?  [No one in Snatch looked like a sane man from planet earth]