<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Photography. Technology. Bakwas. Pseudophilosophy. Everything else.</description><title>K World</title><generator>Tumblr (3.0; @karteek)</generator><link>http://karteek.selfdabba.com/</link><item><title>There goes the third</title><description>&lt;p&gt;I’ve felt three Earth Quakes in my life. Yesterday was the third one. Just thought to write about my thoughts while the quake was going on …&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The first one, back in 2001, Madras&lt;/strong&gt;. It was around 9 in the night I guess. I was sitting before a my computer (yeah, I’m spoiled right from child hood) in a dark room and editing an image to create a funny image of some bad guy behind 9/11 to show my disapproval of the attacks. All of a sudden, my chair started rocking and the first thing in my mind was … “What the hell, I didn’t even finish editing, how did they find me. Or … is it a devil?”. Then I came out and mom, granny were watching TV and I slowly asked them … did you feel any tremors … thinking that they will think I’m crazy if I tell them that my chair rocked. They immediately replied … YES! and in my mind I thought “YES!! They dint find me, and it was not a devil, it was just an Earthquake”, after few seconds.. “Wow, EARTHQUAKE!!!” and then I called up all my friends and told them that I felt an Earthquake.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The second one, back in 2009, Santiago&lt;/strong&gt;. I working in the night/early morning 2-3AM on a package I was supposed to finish. I was very tired, but I just wanted to finish the package before I goto sleep. Then, as usual, all of a sudden there were strong tremors and the first thing in my mind was … “Am I dreaming or did I overload my brain?” .. then in couple of seconds … “Wow. Its an Earthquake and in 12 floor building which is rocking. Am I going to die today???”, then tremors stopped and I was relieved. Then &lt;a href="http://www.balachandar.com/"&gt;Bala&lt;/a&gt; came out of the bedroom and looked at me … waiting for me to confirm that it was an Earthquake. He was also relieved due to different reasons when I confirmed him that it was an Earthquake. Next thing I did was tweet about the quake, called up home and a friend.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The third one, yesterday, Madras&lt;/strong&gt;. Night 1AM, playing flash games and following a stream of worldcup USA vs UK match. Tremors -&gt; “Wow EARTHQUAKE, I should tweet about this before others do” -&gt; “Let me ask others online whether they felt anything” -&gt; “Did anyone else tweet about this, search.twitter.com”  -&gt; “Wow. Tsunami alert. Let me make fun of Anjali” -&gt; “Okay, now, let me see whats happening within the house” -&gt; “Hope all are safe in the affected areas” -&gt; “Wow, my third earthquake, I should blog about this tomorrow”&lt;/p&gt;
&lt;p&gt;And that’s how, the third one went in my mind.&lt;/p&gt;
&lt;p&gt;And … yeah, it took an Earth Quake for me to get back to blogging :P&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/693341327</link><guid>http://karteek.selfdabba.com/post/693341327</guid><pubDate>Sun, 13 Jun 2010 15:07:00 +0530</pubDate><category>Thoughts</category><category>Earthquake</category></item><item><title>... and he comes to rescue</title><description>&lt;p&gt;Day before yesterday, I went home in my car, which I wanted to do from a long time, drive home - which is around 150 km from the city where I work. One of my old friends joined me for that drive and everything went smooth. I reached there, spent time with my parents and the next day, it was the time for starting back to the city where I work.&lt;/p&gt;
&lt;p&gt;I took my backpack, and another bag with laptop, went to my car kept both of them on the backseat of my car. My pants had only one pocket which already had my mobile and wallet and there was no more space in them. Without thinking through, I kept my car keys on my laptop bag. Then my mom called me to give me some stuff which I’m supposed to deliver to my cousin in the city. I closed the door of my car, went to my mom and … *TADA* I realized that my car has a remote lock, and it locks all the doors automatically, if the key is not in keyhole. I ran back to the car, only to find out that its locked already.&lt;/p&gt;
&lt;p&gt;Then, my cousin and another friend called up few drivers and mechanics to find out whether they can pick the lock. Unfortunately or by good reason, it was tough to pick lock of my car and they failed badly. Then, the only other option in my mind was to get the spare key from Madras which is with my cousin.&lt;/p&gt;
&lt;p&gt;Then, and there, he comes to the rescue. All I had to do was call him and ask him to get my spare key, which is with my cousin. He didn’t ask a second question, there was no second thought. Started as soon as I asked, collected the key, came back to my town. &lt;a href="http://www.google.com/search?q=sathish+vc"&gt;Dude&lt;/a&gt;, you are the best, I’m really proud and lucky to be your friend.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/483435496</link><guid>http://karteek.selfdabba.com/post/483435496</guid><pubDate>Tue, 30 Mar 2010 10:13:00 +0530</pubDate><category>Friends</category><category>Misadventure</category><category>Thoughts</category></item><item><title>Oh boy, floating points really float</title><description>&lt;p&gt;I was reading a &lt;a href="http://news.ycombinator.com/item?id=1121932"&gt;thread&lt;/a&gt; on &lt;a href="http://news.ycombinator.com"&gt;Hackers News&lt;/a&gt; a while before and stumbled on a site &lt;a href="http://wtfjs.com/"&gt;wtfjs.com&lt;/a&gt;. The site points some crazy things done by JavaScript, at least, that is what I thought for a while before reading comments on the thread. Then, I read the comment that the author of wtfjs is just naive and doesn’t know about floating points. For a while, I thought it was just anomaly of JavaScript ( I never had any love for things that start with the word “java”) and was totally shocked to know that it’s not just Java Script, I just had no clue about the implementation - till now and this is very embarrassing.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_kxrok5Sbox1qas7hr.png"/&gt;&lt;/p&gt;
&lt;p&gt;The results were more like our democracy. All individuals are equal,  and few are just “more” equal. I’m glad that I know the problem and &lt;a title="Bloody Rounding Error" href="http://docs.sun.com/source/806-3568/ncg_goldberg.html"&gt;reason&lt;/a&gt; atleast now :D&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/386812154</link><guid>http://karteek.selfdabba.com/post/386812154</guid><pubDate>Sat, 13 Feb 2010 12:01:00 +0530</pubDate><category>Python</category><category>Float</category><category>RoundingError</category></item><item><title>Mathematics is the language of nature</title><description>&lt;p&gt;The last time I was on a small learning adventure was when I was solving challenges at &lt;a href="http://hax.tor.hu"&gt;&lt;a href="http://hax.tor.hu"&gt;http://hax.tor.hu&lt;/a&gt;&lt;/a&gt;, and I managed to finish it in couple of months. Then back to boring life without learning anything new. Then, life was the usual, 5 movies a week and regular work without real use of brain.&lt;/p&gt;
&lt;p&gt;Then, I remembered &lt;a href="http://hariflute.tumblr.com"&gt;Flute&lt;/a&gt;, one of my teamies was a big fan of one site named &lt;a href="http://projecteuler.net"&gt;Project Euler&lt;/a&gt;. The site is a community of people solving a bunch of math problems. Fun part, problems are challenging. To add little more to fun, you can compare your logic to others. What adds even more to fun is, those guys are crazy. Few guys solve those tough math problems in Assembly language. Yes. Assembly. And to make things even worse, for few problems, for which my code takes around 15 to 20 seconds to solve, there are logics, which solve the problem in half a second.&lt;/p&gt;
&lt;p&gt;So, I decided to start solving the problems, with couple of aims. First, solve atleast 100 problems in next 3 months (I’ve solved around 50 in the last week, but problems get tougher after that). Second being, try to solve them with logics that take as less time as possible rather than brute-forcing everything.&lt;/p&gt;
&lt;p&gt;Now, there is another site, which runs on similar basis, called &lt;a href="http://www.javaist.com/rosecode"&gt;RoseCode&lt;/a&gt;. There are few nice problems there too. If you enjoy solving Project Euler, you will probably enjoy this too.&lt;/p&gt;
&lt;p&gt;Just few moments before, I thought I will create a github repository with all solutions and later changed my mind of making them public and indexable. But anyway, if you happened to start solving Project Euler or Rose Code and want to compare your solutions with mine, I’m a &lt;a href="http://twitter.com/karteek"&gt;tweet&lt;/a&gt; away to send you my codes.&lt;/p&gt;
&lt;p&gt;By the way, you might want to register &lt;a href="http://www.wechall.net"&gt;WeChall&lt;/a&gt;, if you start solving RoseCode. WeChall is a global ranking site, which can let you fight with few nice coders/hackers etc. Also, my nickname in all the sites is &lt;a title="reduce(lambda x,y: x+y, map(chr, [108, 97, 122, 121, 105, 100, 105, 111, 116]))" href="http://www.python.org/"&gt;[108, 97, 122, 121, 105, 100, 105, 111, 116]&lt;/a&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/367427907</link><guid>http://karteek.selfdabba.com/post/367427907</guid><pubDate>Wed, 03 Feb 2010 02:29:00 +0530</pubDate><category>ProjectEuler</category><category>RoseCode</category><category>WeChall</category><category>Mathematics</category></item><item><title>It happens only in ...</title><description>&lt;p&gt;Of course India. So, the latest rumour is that &lt;a href="http://en.wikipedia.org/wiki/Mukesh_Ambani"&gt;Mukesh Ambani&lt;/a&gt; is behind &lt;a href="http://en.wikipedia.org/wiki/Y._S._Rajasekhara_Reddy"&gt;YSR&lt;/a&gt;’s chopper accident. Now, let’s go through the story.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One Russian website tells that that &lt;a href="http://en.wikipedia.org/wiki/Lawrence_Summers"&gt;Larry Summer&lt;/a&gt;’s ex-boss’s enemy is dead in Chopper crash. This article links to another article which tells ..     
&lt;ul&gt;
&lt;li&gt;Larry Summer’s ex-boss’s brother (&lt;a href="http://en.wikipedia.org/wiki/Anil_Ambani"&gt;Anil Ambani&lt;/a&gt;) chopper’s gearbox was tampered.&lt;/li&gt;
&lt;li&gt;Anil’s mechanic was killed in an accident.&lt;/li&gt;
&lt;li&gt;Anil suspected business rivals to have planned for the assassination.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mechanic who found that gearbox was tampered died in an accident two days later.&lt;/p&gt;
&lt;p&gt;Now, what Indian media made out of it.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Larry Summer’s ex-boss is Mukesh Ambani&lt;/li&gt;
&lt;li&gt;Mukesh Ambani and YSR had few differences&lt;/li&gt;
&lt;li&gt;So, Mukesh must be reason for YSR’s death&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now, this is my take -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One Russian Online Newspaper named “&lt;a href="http://exiledonline.com/"&gt;The Exiled&lt;/a&gt;” had an article written on &lt;b&gt;3rd September 2009&lt;/b&gt;, that YSR died in a mysterious accident. &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Seriously ???? Indian media is digging a column in &lt;b&gt;Russian&lt;/b&gt; newspaper, written by Mark Ames (an &lt;b&gt;American&lt;/b&gt; Journalist, who use to write articles for Playboy) after 4 long months.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;YSR had differences with Mukesh, Anil as well as their mother over gas deposits from Krishna-Godavari basin&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Yeah, YSR had differences with both the brothers who were fighting over price, and their mother, who was trying to settle it. It’s not like he took someone’s side. He was neutral, and he wanted central govt. to take decisions on the price.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;There was an assassination attempt on Anil, the medium was a helicopter. And Anil thought some “business rivals” planned this.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;So, the business rival was his own brother. How about the word “coincidence” ?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;These are the references from Exiled Online[&lt;a href="http://exiledonline.com/enemy-of-larry-summers-ex-boss-dies-in-mysterious-helicopter-crash/"&gt;1&lt;/a&gt;][&lt;a href="http://74.125.153.132/search?q=cache%3Ahttp%3A%2F%2Fexiledonline.com%2Fenemy-of-larry-summers-ex-boss-dies-in-mysterious-helicopter-crash%2F&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a"&gt;mirror&lt;/a&gt;], [&lt;a href="http://exiledonline.com/one-degree-of-larry-summers-meet-larry%E2%80%99s-ex-boss-a-billionaire-with-a-blood-feud"&gt;2&lt;/a&gt;][&lt;a href="http://74.125.153.132/search?q=cache%3Ahttp%3A%2F%2Fexiledonline.com%2Fone-degree-of-larry-summers-meet-larry%25E2%2580%2599s-ex-boss-a-billionaire-with-a-blood-feud%2F&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a"&gt;mirror&lt;/a&gt;]. Both articles attack Mukesh Ambani. Its obvious that none has any proofs till now and the author of article is just deducing stories by reading news items from other sources[&lt;a href="http://www.zimbio.com/Mukesh+Ambani/articles/226/Helicopter+sabotage+targets+Indian+billionaire"&gt;1&lt;/a&gt;][&lt;a href="http://www.nytimes.com/2009/04/30/business/global/30ambani.html?_r=1"&gt;2&lt;/a&gt;][&lt;a href="http://timesofindia.indiatimes.com/news/business/india-business/Ambani-MoU-has-mothers-views-on-gas/articleshow/4872875.cms"&gt;3&lt;/a&gt;][&lt;a href="http://blog.taragana.com/n/andhra-pradesh-seeks-due-share-of-reliance-gas-114635/"&gt;4&lt;/a&gt;].&lt;/p&gt;
&lt;p&gt;And the &lt;a href="http://news.rediff.com/report/2010/jan/07/mobs-attack-anil-ambanis-offices-in-andhra.htm"&gt;result&lt;/a&gt; of the above mess - Congress workers attack “Anil” Ambani’s offices in Hyderabad. Seriously ??? Anil Ambani, himself was a victim in the above story, and his offices are being attacked.&lt;/p&gt;
&lt;p&gt;So, TL;DR - One wannabe fiction writer, creates a conspiracy based on various articles. Hungry for sensation - Indian Media sensationalize the story after three months. Work-less political party workers attack younger brother’s offices even though the villain in the conspiracy is the elder brother.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/322046284</link><guid>http://karteek.selfdabba.com/post/322046284</guid><pubDate>Fri, 08 Jan 2010 02:27:00 +0530</pubDate><category>YSR</category><category>Mukesh Ambani</category><category>Conspiracy</category></item><item><title>LandMark, XSS and The Injection</title><description>&lt;p&gt;So, Landmark, a famous book/music/movies store in India is on the net at &lt;a href="http://www.landmarkonthenet.com/index.aspx"&gt;LandmarkOnTheNet.com&lt;/a&gt;. I was there to check whether they sell 3D glasses, even though there are some cheap paper glasses on ebay.in, but I want better quality. As usual, the bad habit of checking for SQL Injections and XSS tingled in my brain.&lt;/p&gt;
&lt;p&gt;Apparently, LandmarkOnTheNet has both the problems.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.landmarkonthenet.com/product/SearchList.aspx?code=%22)%3b+alert(%5B%22XSS:%22,document.cookie%5D.join())%3b(%22&amp;type=0&amp;num=0"&gt;&lt;img src="http://media.tumblr.com/tumblr_kvtbkjGJTt1qas7hr.png"/&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and for SQL Injection, I didn’t try much, just give a single quote as input in search, the server choked with an error in the SQL Query (it actually told what the error is and where the error is; what a away to configure the production server)&lt;/p&gt;
&lt;p&gt;So, there are many things you can have fun with above two, these are the keywords - My Account, Session Stealing, Gift Cards, SQL Injection, PIN Numbers, Free Shipping.&lt;/p&gt;
&lt;p&gt;If I were a landmark website user, I would ensure that my browser is Firefox with NoScript addon installed. If I were a landmark webmaster, I would buy a book on Web Security right now, ah nevermind, I would just search in Google for tips of fixing XSS and SQL Injection vulnerabilities and fix them ASAP. I might also feel very bad for &lt;a href="http://www.hotdesign.com/seybold/"&gt;using so many tables&lt;/a&gt; in my markup.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/319392499</link><guid>http://karteek.selfdabba.com/post/319392499</guid><pubDate>Wed, 06 Jan 2010 12:24:00 +0530</pubDate><category>Landmark</category><category>XSS</category><category>SQL Injection</category><category>They</category></item><item><title>It's a new decade</title><description>&lt;p&gt;And … Good Luck for that.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_kvk5q2dUNU1qas7hr.png"/&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/310930181</link><guid>http://karteek.selfdabba.com/post/310930181</guid><pubDate>Fri, 01 Jan 2010 13:09:00 +0530</pubDate><category>New Year</category><category>2010</category></item><item><title>Etherpad; Opensourced</title><description>&lt;p&gt;Etherpad is a lovely app which is bought by google and was opensourced 10 days before. Now, just to add a drop of water to the ocean.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;A small how-to on deploying Etherpad&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The package&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Etherpad source from &lt;a href="http://code.google.com/p/etherpad"&gt;&lt;a href="http://code.google.com/p/etherpad"&gt;http://code.google.com/p/etherpad&lt;/a&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Some minor fixes and changes, here and there&lt;/li&gt;
&lt;li&gt;File Imports [&lt;a href="https://gist.github.com/273835"&gt;gist&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;File exports to DOC/PDF/ODT using Oo.org [&lt;a href="http://gist.github.com/264968"&gt;gist&lt;/a&gt;]&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;How to compile, run and test&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Grab the code from my github repository&lt;br/&gt;$&lt;i&gt; git clone &lt;a href="http://github.com/karteek/etherpad"&gt;git://github.com/karteek/etherpad.git&lt;/a&gt;&lt;br/&gt;&lt;/i&gt;You can optionally do a &lt;i&gt;diff -r to above created clone with original clone to see the changes I’ve made to the code.&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set up the environment to compile the code. Open the provided env.sh, and look at the needed variables. Existing values are values from my MBP, and they most probably won’t work for you&lt;br/&gt;$&lt;i&gt; source env.sh&lt;/i&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a database “etherpad” on your MySQL database. Same time, create a user “etherpad” with password “password” and grant him all privileges on the database “etherpad”&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update etherpad.SQL_JDBC_URL, etherpad.SQL_USERNAME, etherpad.SQL_PASSWORD and etherpad.adminPass in the file &lt;i&gt;etherpad/etc/etherpad.localdev-default.properties&lt;/i&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;etherpad.SQL_JDBC_URL is the jdbc URL of your database (in our case, its &lt;i&gt;jdbc:mysql://localhost:3306/etherpad&lt;/i&gt; )&lt;/li&gt;
&lt;li&gt;etherpad.SQL_USERNAME is the username to connect to database (in our case, its &lt;i&gt;etherpad&lt;/i&gt;)&lt;/li&gt;
&lt;li&gt;etherpad.SQL_PASSWORD is the password to connect to database (in our case, its &lt;i&gt;password&lt;/i&gt;)&lt;/li&gt;
&lt;li&gt;etherpad.adminPass is the password needed to login to admin panel of Etherpad instance&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Change directory to etherpad, compile the jar, and start the server&lt;br/&gt;$ &lt;i&gt;cd etherpad&lt;/i&gt;&lt;br/&gt;$ &lt;i&gt;bin/rebuildjar.sh&lt;br/&gt;&lt;/i&gt;$ &lt;i&gt;bin/run-local.sh&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Now, fire up your browser, and visit http://localhost:9000 to play with your instance&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;File Imports&lt;br/&gt;&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;File Imports depend on com.oreilly.servlet (cos.jar found at &lt;a href="http://www.servlets.com/cos/"&gt;&lt;a href="http://www.servlets.com/cos/"&gt;http://www.servlets.com/cos/&lt;/a&gt;&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Check their license @ &lt;a href="http://www.servlets.com/cos/license.html"&gt;&lt;a href="http://www.servlets.com/cos/license.html"&gt;http://www.servlets.com/cos/license.html&lt;/a&gt;&lt;/a&gt;. If you are fine with their license, download cos.jar and copy it to &lt;i&gt;infrastructure/lib &lt;/i&gt;folder&lt;/li&gt;
&lt;li&gt;Search for locations where file upload related code is commented, and uncomment the code.&lt;br/&gt;$ &lt;i&gt;grep -r “REMOVED_COS_OF_COS” *&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Recompile the package&lt;br/&gt;$ &lt;i&gt;cd etherpad&lt;/i&gt;&lt;br/&gt;$ &lt;i&gt;bin/rebuildjar.sh&lt;/i&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;File Exports&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;File exports depend on Openoffice.org for conversion&lt;/li&gt;
&lt;li&gt;You need to start Oo.org as a service&lt;br/&gt;$ &lt;i&gt;/path/to/openoffice/soffice.bin -headless -nofirststartwizard               -accept=”socket,host=localhost,port=8100;urp;StarOffice.Service”&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Just make sure that &lt;i&gt;etherpad.soffice &lt;/i&gt;has some value in &lt;i&gt;etherpad/etc/etherpad.localdev-default.properties&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Check &lt;i&gt;infrastructure/com.etherpad.openofficeservice/importexport.scala&lt;/i&gt; for more information&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;How to deploy the same on example.com&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;a href="http://www.google.com/search?q=wild+card+dns"&gt;Wild card dns&lt;/a&gt; for your domain. Point *.example.com to same server where example.com resides. This is the server where you are deploying this instance.&lt;/li&gt;
&lt;li&gt;Make sure that your SMTP is working. Activation of Pro accounts happen over email, so its important.&lt;/li&gt;
&lt;li&gt;Open etherpad/src/main.js, and update domain in line #273&lt;/li&gt;
&lt;li&gt;Open etherpad/src/etherpad/globals.js and change the domain in variable  SUPERDOMAINS found at line #30&lt;/li&gt;
&lt;li&gt;Open etherpad/src/static/crossdomain.xml and add your domain to crossdomains.xml&lt;/li&gt;
&lt;li&gt;Look into &lt;i&gt;etherpad/src&lt;/i&gt; folder and search for &lt;i&gt;etherpad.com&lt;/i&gt;. You will find many locations, where your instance will be coded to mail from an @etherpad.com account. Update all of them to your domain. &lt;br/&gt;$ &lt;i&gt;grep -ir “etherpad.com” *&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Open &lt;i&gt;etherpad/etc/etherpad.localdev-default.properties&lt;/i&gt; and update                                      
&lt;ul&gt;
&lt;li&gt;devMode to false&lt;/li&gt;
&lt;li&gt;etherpad.isProduction to true&lt;/li&gt;
&lt;li&gt;listen to example.com:80&lt;/li&gt;
&lt;li&gt;etherpad.isPNE to true (only if you want to run in PNE mode)&lt;/li&gt;
&lt;li&gt;And ofcourse, change etherpad.adminPass&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;As long as you din’t change anything in &lt;i&gt;infrastructure&lt;/i&gt; folder, you need not recompile the jar. So, just go ahead and start the server. For starting a server on port numbers less than 1000, you will need to have root access on OS X.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;Running the instance behind Apache using mod_proxy&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Do the same as above from steps #1 to #7. &lt;/li&gt;
&lt;li&gt;In step #7, rather than changing listen to example.com:80, change it to localhost:9000 or just 9000&lt;/li&gt;
&lt;li&gt;Start the server using &lt;i&gt;bin/run-local.sh&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Your apache configuration might look like - &lt;br/&gt;&lt;pre&gt;&lt;VirtualHost *:80&gt;&lt;br/&gt;ServerName      &lt;a href="http://www.example.com"&gt;www.example.com&lt;/a&gt;&lt;br/&gt;ServerAlias       *.example.com&lt;br/&gt;ServerAdmin     admin@example.com&lt;br/&gt;ErrorLog        /var/log/apache2/etherpad.error.log&lt;br/&gt;LogLevel warn&lt;br/&gt;CustomLog /var/log/apache2/etherpad.access.log combined&lt;br/&gt;ServerSignature Off&lt;br/&gt;ProxyPass / http://localhost:9000/ &lt;br/&gt;ProxyPassReverse / http://localhost:9000/&lt;br/&gt;ProxyPreserveHost on&lt;br/&gt;  &lt;Proxy *&gt; &lt;br/&gt;    Options FollowSymLinks MultiViews&lt;br/&gt;    AllowOverride All&lt;br/&gt;    Order allow,deny&lt;br/&gt;    Allow from all&lt;br/&gt;  &lt;/Proxy&gt;&lt;br/&gt;&lt;/VirtualHost&gt;&lt;br/&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;This might or might not work for you. Anyway, I guess you got the idea. Check &lt;a href="http://httpd.apache.org/docs/2.0/mod/mod_proxy.html"&gt;manual&lt;/a&gt; for more information&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Well, the patch I wrote for enabling file exports so as this tutorial come with no warranty. Don’t ask me even if it breaks your bones. This is what I did, following it is completely your choice. Code from Etherpad is under the license they specified. The file import part depends on &lt;a href="http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartWrapper.html"&gt;MultipartWrapper&lt;/a&gt; and &lt;a href="http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartFilter.html"&gt;MultipartFilter&lt;/a&gt;. If you don’t like &lt;a href="http://www.servlets.com/cos/license.html"&gt;their license&lt;/a&gt;, its better to write your own code for doing their work.&lt;/p&gt;
&lt;p&gt;Feel free to ask any doubts and/or fix my bugs. There is a great &lt;a href="http://pauleira.com/13/installing-etherpad/"&gt;tutorial&lt;/a&gt; on installing Etherpad by &lt;a href="http://pauleira.com"&gt;Nuba Princigalli&lt;/a&gt;. Do check it, if you find any problems with my post.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/301488675</link><guid>http://karteek.selfdabba.com/post/301488675</guid><pubDate>Sat, 26 Dec 2009 23:18:00 +0530</pubDate><category>Etherpad</category><category>Tutorial</category><category>Patch</category></item><item><title>Zimbra and EC2</title><description>&lt;p&gt;Zimbra offers an awesome Open Source collaboration suite. EC2 is an awesome compute cloud service. The points I learned and did while deploying Zimbra on EC2.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Zimbra on Ubuntu is supported on Hardy (8.04), but not newer. Install only if you want an adventure. I didn’t want an adventure, and I love Hardy. &lt;/li&gt;
&lt;li&gt;Hardy EBS backed image was not available on Amazon (by today) So, I did &lt;a href="http://karteek.selfdabba.com/post/298564634/ebs-backed-ec2-life-made-easy"&gt;this&lt;/a&gt;, and got things ready. (If you want the AMI, let me know. I can share the same with you.)&lt;/li&gt;
&lt;li&gt;Download Zimbra Ubuntu package, unpack stuff and … wait.&lt;/li&gt;
&lt;li&gt;Zimbra uses LDAP for maintaining user registry, so, you need to know that Zimbra is going to install LDAP for you.&lt;/li&gt;
&lt;li&gt;But, LDAP has a weird habit of checking for host over DNS even if you install the LDAP server on same machine AND editing /etc/hosts file do not suffice.&lt;/li&gt;
&lt;li&gt;So, you need few entries in your DNS.&lt;ol&gt;
&lt;li&gt;MX Entry for your website. (MX entry tells which server will handle mails for that particular domain)&lt;/li&gt;
&lt;li&gt;A Entry for your MX server. (that particular mail server should be resolved to an IP)&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;This should solve your problems if your servers are connected to internet, but most of time, they do not. They will be behind a firewall, and they will have LAN IPs which won’t be same as your public IPs, and your server might not even know that it has a public IP (server will just know natted IP). This is just the case with EC2. &lt;/li&gt;
&lt;li&gt;So, now you need to configure a DNS server on your LAN to do the work for you. Follow &lt;a href="http://www.ubuntugeek.com/dns-server-setup-using-bind-in-ubuntu.html"&gt;this&lt;/a&gt; tutorial on how to create zones. It will help you to create proper entries on your Bind server. &lt;/li&gt;
&lt;li&gt;Confirm that your Bind server is working by doing. Replace example.com and mail.example.com with appropriate domain names.
&lt;ul&gt;
&lt;li&gt;dig @localhost example.com MX  - to see your server’s MX record&lt;/li&gt;
&lt;li&gt;dig @localhost mail.example.com A - to see your mail server’s A record&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once, local DNS is configured. Add an entry to your /etc/resolv.conf and also add mail.example.com xxx.xxx.xxx.xxx to your /etc/hosts. Replace domain and IP appropriately.&lt;/li&gt;
&lt;li&gt;Now, you can continue with installation of Zimbra. Just start the installation. And follow the steps. Zimbra installation, by itself is a fairly simple process. &lt;/li&gt;
&lt;li&gt;During the installation process, Zimbra will think that mail.example.com is the domain for which you are installing, and try to check MX record for it. As, we do not want email for our mail server (we dont want mail@mail.example.com, rather we want mail@example.com), we didn’t not create any MX entries for for mail.example.com. So, Zimbra will fail to check for MX record of mail.example.com and ask whether you want to change it. Now, change it to example.com&lt;/li&gt;
&lt;li&gt;And, finish installation.&lt;/li&gt;
&lt;li&gt;Last and important, goto your AWS console, Security Groups, and enable SMTP, SMTPS (IMAP, IMAPS, POP3, POP3S ports if needed)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now, as you are on EC2, there are some issues, you are going to face.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;EC2 doesn’t support reverse DNS, which means, your example.com will resolve to Amazon IP, but that amazon IP when nslookup’ed on, will return something like ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com rather than example.com. There is no way of changing this as of now. LittleScrewed.&lt;/li&gt;
&lt;li&gt;That means, some mail servers might not accept your mails, thinking that your spamming. Screwed.&lt;/li&gt;
&lt;li&gt;EC2 has very bad limit on sending outgoing emails from its SMTP ports. I got an email from EC2 abuse for sending 10 emails. Totally Screwed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But, as light at end of the tunnel, there are few things you can do.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You can use an external SMTP service to send email. For that you have to configure your MTA ie., Postfix here, to relay emails using that external SMTP service. Of course, the a reliable external SMTP service will add some weight to your bill.&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://spfwizard.com/"&gt;Configure&lt;/a&gt; a proper SPF on your DNS and pray that all mail servers accept your email.&lt;/li&gt;
&lt;li&gt;Rather than going for external SMTP, you can configure SPF and &lt;a href="http://aws.amazon.com/contact-us/ec2-email-limit-request/"&gt;request&lt;/a&gt; Amazon to increate your email limit and hope they approve.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But, because bad things always happen, few mail servers like my employers, throw you a &lt;a href="http://www.google.com/search?q=SMTP+554+error"&gt;554&lt;/a&gt; code when reverse DNS fail for your IP. Logically speaking, things should work when proper SPF is configured, but, this is practical world. Things are always beyond the control of standards. If you are an IE user, you would never know this.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/298633324</link><guid>http://karteek.selfdabba.com/post/298633324</guid><pubDate>Thu, 24 Dec 2009 22:00:22 +0530</pubDate><category>Zimbra</category><category>EC2</category><category>TechTips</category></item><item><title>EBS backed EC2 - Life made easy</title><description>&lt;p&gt;After Amazon launched EC2 back in 2006, they’ve been adding new features in regular intervals. On EC2, for starters, one thing that confuses a lot is the lack of persistent storage - in simple words, you lose all changes made and data once you reboot. There were options like S3 and EBS though to over come this problem. But, much configuration is needed, need for regular backups, booting was slower etc., etc.&lt;/p&gt;
&lt;p&gt;One of their recent addition to features list is &lt;a href="http://aws.typepad.com/aws/2009/12/new-amazon-ec2-feature-boot-from-elastic-block-store.html"&gt;EBS-backed&lt;/a&gt; AMI. It allows an EBS volume to be root device for an instance, in other words, one can boot an instance from EBS volume. Property of EBS is being persistent, which automatically makes your instance’s root persistant, which means, one can reboot their instance as much as they want without having to worry about losing changes they made to the settings or their data. So, conclusion is EBS backed EC2 is … cool.&lt;/p&gt;
&lt;p&gt;But, if you are an Ubuntu guy like me, you would be disappointed to see that there are only 4 (as of now) public EBS based Ubuntu Images on EC2 right now, and you would be even more disappointed to see that none of them is Hardy (8.04.3 LTS) image. No LTS image. But, Everything’s shiny captain, nothing to fret. One very nice tutorial and a kick-ass Python API for EC2 come to rescue.&lt;/p&gt;
&lt;p&gt;This tutorial on &lt;a href="http://www.elastician.com/2009/12/creating-ebs-backed-ami-from-s3-backed.html"&gt;Elastician&lt;/a&gt; which is based on &lt;a href="http://code.google.com/p/boto/"&gt;Boto&lt;/a&gt; comes to rescue and help you to create an EBS-backed AMI. Before going through and following that tutorial, just make sure that you have latest version of Boto (&gt;1.8d). Just make sure that the AMI which you are using to create an EBS-backed AMI is a reliable one.&lt;/p&gt;
&lt;p&gt;By the way, you can see an awesome list of available images at &lt;a href="http://thecloudmarket.com/"&gt;The Cloud Market&lt;/a&gt;.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/298564634</link><guid>http://karteek.selfdabba.com/post/298564634</guid><pubDate>Thu, 24 Dec 2009 20:54:00 +0530</pubDate><category>EC2</category><category>EBS</category><category>Boto</category></item><item><title>Migration of blog to Tumblr</title><description>&lt;p&gt;After two years of my &lt;a href="http://karteek.selfdabba.com/post/286133348/the-chronicles-of-migration"&gt;last migration &lt;/a&gt;from blogspot to wordpress, Here I am, after 3 years of blogging, migrated to third service. This time, moving out of self-hosted wordpress to a nice hosted solution Tumblr. You might haven’t seen many differences other than theme becoming extremely minimalistic.&lt;/p&gt;
&lt;p&gt;Well, there are the changes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Now, the service is no longer wordpress, its Tumblr :D&lt;/li&gt;
&lt;li&gt;All posts are migrated&lt;/li&gt;
&lt;li&gt;All comments are migrated to Disqus, a very good global comment system&lt;/li&gt;
&lt;li&gt;URLs of all posts are changed, but any time you can you use the search&lt;/li&gt;
&lt;li&gt;All bookmarks, external links, google indexed pages till re-indexing are broken. Boo Hoo.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Migration went smooth, but there was a small problem for doing the same. There were no softwares available to do the same. “Migration from Wordpress to Tumblr”. If any existed, they will certainly miss migrating the comments or the attachments you’ve done in your previous wordpress blog. And, it of course is a tedious task to migrate everything if you do that manually.&lt;/p&gt;
&lt;p&gt;So, on my way here, I wrote a small script for doing the same - Wordpress to Tumblr migration. I called it Wp2Tumblr.Py&lt;/p&gt;
&lt;p&gt;Well, it does the following things -&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Takes your wordpress extended rss archive and parses it&lt;/li&gt;
&lt;li&gt;Post all your wordpress posts to Tumblr&lt;/li&gt;
&lt;li&gt;While doing above step, it posts all your image uploads to Tumblr as Private post, extract the url of the image from Tumblr post, change the same in  your wordpress post.&lt;/li&gt;
&lt;li&gt;Migrate all the comments of the post to your disqus account and link them to your post&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Well, as I promised, I’m going to release all my personal code as opensource under WTFPL. So, if you’ve a similar requirement, you can clone the repo from &lt;a href="http://github.com/karteek/wp2tumblr.py"&gt;&lt;a href="http://github.com/karteek/wp2tumblr.py"&gt;http://github.com/karteek/wp2tumblr.py&lt;/a&gt; &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By the way, I didn’t tell you whats better in Tumblr than Wordpress yet. These are few I found as new&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Totally customizable themes. Of course, you can do same on self-hosted versions of wordpress. Paid feature on wordpress.com, I guess.&lt;/li&gt;
&lt;li&gt;Multiple of types of posts. Unnecessary in my opinion, but what the hell.&lt;/li&gt;
&lt;li&gt;Custom domain support. Self hosted wordpress, obvious. wordpress.com, its a paid feature.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Above all, the main reason, I wanted to move to a hosted service. Blogger is too messy. Comment system sucks there. Wordpress is nice, but I couldn’t get username ‘karteek’ and custom domains are not part of standard feature set and I was feeling all excited for an adventure :p&lt;/p&gt;
&lt;p&gt;I still think that Wordpress is the best blogging software available, but updating the codebase, payment to the hosting provider etc etc are few things you really are not supposed to be worrying about when you blog for fun. Tumblr made life easy, without losing my identity - karteek.selfdabba.com. All I had to do is point my subdomain’s A record to Tumblr’s server.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/290221263</link><guid>http://karteek.selfdabba.com/post/290221263</guid><pubDate>Sat, 19 Dec 2009 17:56:00 +0530</pubDate><category>Wordpress</category><category>Tumblr</category><category>Migration</category><category>Wp2Tumblr</category><category>TechTips</category><category>Chronicles</category></item><item><title>Its a year and ...</title><description>&lt;p&gt;&lt;p style="clear: both"&gt;Its been a year that Bombay was attacked by terrorists and killed a 166 innocent people. Well, whats happening after that. &lt;/p&gt;
&lt;p style="clear: both"&gt;- India has got a new guest. Terrorist Kasab. Yeah, Government has spent 31 crores for his safety&lt;br/&gt;- Pakistan is still playing blame game that India is not giving enough evidence to arrest Saeed, founder of a terrorist group Lashkar-e-Taiba&lt;br/&gt;- US is giving more and more aid to Pakistan to fight terrorism&lt;br/&gt;- India is expecting US to be headmaster and detain Pakistan&lt;br/&gt;- Pakistan is expecting US to be headmaster and force India to give Kashmir to Pakistan&lt;br/&gt;- US doesn’t care if Pakistan is sending terrorists to India as long as it kills the terrorists which are attacking the US.&lt;br/&gt;- Headmaster as well as both the kids know that things are not moving anywhere.&lt;/p&gt;
&lt;p style="clear: both"&gt;So, after all the crap that has happened in last one year, troubled remained troubled, terrorists remained terrorists, victims remained victims, and every one’s shitty life just remained shitty life. Just to find out what Google thinks about India and Pakistan, I took couple of screenshots - &lt;/p&gt;
&lt;p style="clear: both"&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286187489/1/tumblr_kur3y0JuYY1qaycuy" class="image-link"&gt;&lt;img class="linked-to-original" src="http://15.media.tumblr.com/tumblr_kur3y9DHYH1qaycuyo1_400.png" height="259" align="left" width="378" style=" display: inline; float: left; margin: 0 10px 10px 0;"/&gt;&lt;/a&gt; So, people who search Google think that India is the richest country in the world, in asia, a third world country, great, Afghanistan’s largest trading partner. They want to know what India is known for and which continent it is in.&lt;/p&gt;
&lt;p style="clear: both"&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286187347/1/tumblr_kur3xqTsLw1qaycuy" class="image-link"&gt;&lt;img class="linked-to-original" src="http://8.media.tumblr.com/tumblr_kur3ximzmP1qaycuyo1_400.png" height="250" align="left" width="379" style=" display: inline; float: left; margin: 0 10px 10px 0;"/&gt;&lt;/a&gt;And about Pakistan, they think that its failed state, dangerous, doomed, a problem and a mess and few think its better than India. Few want to know where it is located. &lt;/p&gt;
&lt;p style="clear: both"&gt;Well, as an Indian, I think Pakistan’s leaders are stupid, immature at the same time, Indian leaders are just stupid other than a few like Raj Thackeray. They are stupid as well as immature.&lt;/p&gt;
&lt;p style="clear: both"&gt;TL;DR - One year over after attacks. No progress, none punished. Pakistan leaders are stupid.&lt;/p&gt;
&lt;br class="final-break" style="clear: both"/&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286188676</link><guid>http://karteek.selfdabba.com/post/286188676</guid><pubDate>Sun, 29 Nov 2009 07:00:20 +0530</pubDate><category>India</category><category>Pakistan</category><category>Politicians</category><category>Terrorism</category></item><item><title>Diwali - Here and there</title><description>&lt;p&gt;&lt;p style="clear: both"&gt;The South Indian version of Diwali - Naraka, [Son of Lord Vishnu (Varaha avatar) and Bhudevi] got killed by Satyabhama (Sri Krishna’s wife, avatar of Bhudevi). Simple version, a pissed off reincarnated mom killed her son because he is an idiot.&lt;/p&gt;

The North Indian version of Diwali - Rama came back after killing Ravana and finishing 14 years exile. Simple version, an exploited poor son, who was exiled to a forest, fought with a villain for kidnapping his wife, rescued his wife from beautiful gardens of Lanka and came back home - soon to throw her back in forests.

The conspiracy version of Diwali - Bloody &lt;a href="http://en.wikipedia.org/wiki/Sivakasi" target="_blank"&gt;Sivakasi&lt;/a&gt; guys have created a fake festival to sell all those expensive crackers and fireworks.

The atheist version of Diwali - Holiday, Cool. Long weekend, AWESOME. What next ?

The insect world version of Diwali - Holy crap. Dooms Day. *cough* *cough* *death*
&lt;p style="clear: both"&gt;After all, the festival doesn’t give a lot of happiness to me, but at least a holiday. So, Happy Diwali. Have Fun.&lt;/p&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286186877</link><guid>http://karteek.selfdabba.com/post/286186877</guid><pubDate>Sat, 17 Oct 2009 12:29:30 +0530</pubDate><category>Diwali</category></item><item><title>Rediff and its chat app</title><description>&lt;p&gt;Title has Rediff, what else is it going to be ? Yet &lt;a target="_blank" href="http://karteek.selfdabba.com/tagged/Rediff/"&gt;another&lt;/a&gt; bug in their app. This time, the app is in their Chat Application. Background of the application is … they invite some celebrity or counsellor or some expert in some field and enable them chat with the usual rediff junta.&lt;/p&gt;
&lt;p&gt;Now, the app, doesn’t allow any two users to login with same username (even if you juggle with uppercase and lowercase). Well, Wow rediff. +1 for you.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286184294/1/tumblr_kur3rzwvPw1qaycuy"&gt;&lt;img class="linked-to-original" src="http://12.media.tumblr.com/tumblr_kur3ubHRUe1qaycuyo1_400.png" width="379" height="187"/&gt;&lt;/a&gt;Uhmm okay. Let me login as SRK for now. Now, this is the app.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286184040/1/tumblr_kur3rhaL9m1qaycuy"&gt;&lt;img class="linked-to-original" src="http://16.media.tumblr.com/tumblr_kur3tcae241qaycuyo1_400.png" width="378" height="182"/&gt;&lt;/a&gt;Now, the bug … You can see that, there are already few guys chatting there and I can type my question in a box on the bottom right corner. If you clearly see, thats a frame. Now, let me open that frame in a new tab.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286185137/1/tumblr_kur3tl5mFD1qaycuy"&gt;&lt;img class="linked-to-original" src="http://23.media.tumblr.com/tumblr_kur3rqyEUx1qaycuyo1_400.png" width="379" height="109"/&gt;&lt;/a&gt;Now, see the URL, my username is in the query. Of course, doing that is so reddity. Now, let me change that to some other name, uhmmm say Aftab.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286185368/1/tumblr_kur3u2GRYj1qaycuy"&gt;&lt;img class="linked-to-original" src="http://21.media.tumblr.com/tumblr_kur3ttlVoQ1qaycuyo1_400.png" width="375" height="116"/&gt;&lt;/a&gt;Note from the first image that there is already another user named logged in with id “AFTAB”. Now, Of course, you can post any message with his ID and make him wonder when did he do that.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286184859/1/tumblr_kur3t2KqdU1qaycuy"&gt;&lt;img class="linked-to-original" src="http://15.media.tumblr.com/tumblr_kur3sudQad1qaycuyo1_400.png" width="380" height="232"/&gt;&lt;/a&gt;Thats my message on top telling those guys that I’m not Aftab and the chat is NOT now, but tomorrow. Thats the story. Login and post as any user in one and only Rediff Live Chat. I didn’t want to check the possibilities of XSS there as there are few other people logged in and I don’t want to annoy them with my tests. Any way, rediff, I don’t expect you to fix the bug as … You didn’t really fix one of the bugs I reported TWO long years before. Come on, you must be kidding me. That’s your damn &lt;a target="_blank" href="http://shopping.rediff.com/product/%22;-alert%28document.cookie%29;%22"&gt;shopping portal&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286184446/1/tumblr_kur3s94dsF1qaycuy"&gt;&lt;img class="linked-to-original" src="http://22.media.tumblr.com/tumblr_kur3siYjwA1qaycuyo1_400.png" width="380" height="97"/&gt;&lt;/a&gt;There is a rule #0 for every web developer. Never trust the end user, always sanitize the content and that’s some thing I don’t know why rediff developers never do.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286186630</link><guid>http://karteek.selfdabba.com/post/286186630</guid><pubDate>Thu, 24 Sep 2009 03:01:00 +0530</pubDate><category>Rediff</category><category>They</category></item><item><title>Moved Karteek dot Net to App Engine</title><description>&lt;p&gt;&lt;p style="clear: both"&gt;I had a single landing page with links to my social networks and etc., while &lt;a href="http://www.krishashok.com" target="_blank"&gt;Ashok&lt;/a&gt; and &lt;a href="http://www.balachandar.com" target="_blank"&gt;Bala&lt;/a&gt; migrated their main blogs to Irresistible theme on wordpress. That’s an awesome theme with loads of features and both of them can use the features perfectly. I didn’t want to move my blog outside Selfdabba and did want to make use of Karteek dot Net for more than just a single landing page. &lt;/p&gt;
&lt;p style="clear: both"&gt;So, due to different set of requirements, and love for minimalist design for main website, I ended up coding a web application (a single page right now :P) using Google App Engine. And Google lets you host the same web app under Google Apps for free as long as the application stays under the free limits. The quota is too big for my need, so I decided to move.&lt;/p&gt;
&lt;p style="clear: both"&gt;For folks, of similar requirements, if you want, you can make use of the code. I always wanted to use &lt;a href="http://www.github.com" target="_blank"&gt;github&lt;/a&gt; for sharing code, and finally did the same. Here is the &lt;a href="http://github.com/karteek/karteek-dot-net/tree/master" target="_blank"&gt;code&lt;/a&gt; of current version of &lt;a href="http://www.karteek.net" target="_blank"&gt;Karteek dot Net&lt;/a&gt;. And about github, certainly looking forward to share more code in future.&lt;/p&gt;
&lt;br class="final-break" style="clear: both"/&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286183737</link><guid>http://karteek.selfdabba.com/post/286183737</guid><pubDate>Thu, 10 Sep 2009 09:38:27 +0530</pubDate><category>App Engine</category><category>Code</category></item><item><title>SRK and his detention</title><description>&lt;p style="clear: both"&gt;Shah Rukh Khan was detained for couple of hours in US lately, and the whole bollywood as well as normal junta are angry over the issue. And on the other hand, few sensible people are angry that bollywood is unnecessarily making an issue of a small thing. I’m not sure which side should I take, but this is what I think. Of course, US immigration should have some sense in detaining celebrities. SRK was on Newsweek’s most influential people list or something like that. If not the top, he is at least one of the top bollywood actors right now. Thats it. He isn’t anything more than an actor. But, wait, aren’t couple of our bollywood actors arrested for having links with Mafia ? One of them is also a top actor, Sanjay Dutt. It clearly indicates that being a top bollywood actor doesn’t mean that you are above the law. Forget US, not even India. &lt;/p&gt;
&lt;p style="clear: both"&gt;I accept that detaining SRK sounds like it was done on racial basis just because his name ends with Khan. Well, they did a boo boo and SRK is not wasting any of the chance to promote his new movie ‘My Name is Khan’. I think, we should just move on with the issue and suggest US Govt. to make sure that this kind of things doesn’t happen again, at least to Padma Shri winners (Kamal Haasan, Mammootty and now SRK) and start learning protocols with former Presidents of India.&lt;/p&gt;
&lt;p style="clear: both"&gt;On the lighter note, I was going through one &lt;a href="http://movies.rediff.com/report/2009/aug/15/it-is-like-brad-pitt-being-strip-searched-in-india.htm" target="_blank"&gt;article&lt;/a&gt; on Rediff (Oh yeah, rediff) and stumbled on a funny comment. Here is the comment.&lt;/p&gt;
&lt;blockquote style="clear: both"&gt;&lt;p&gt;&lt;em&gt; SRK as usual did not comb his hair and was dressed shabbily… &lt;br/&gt;&lt;br/&gt;&lt;/em&gt;Immigration officer: Who are you? &lt;br/&gt;SRK with a loud voice: ” Im KING KHAN “. &lt;br/&gt;Immigration officer: What……??? &lt;br/&gt;Other Immigration officer: Sir! He said he is KING KONG….. &lt;br/&gt;Immigration officer’s : Guys catch the monkey in disguise…… &lt;br/&gt;SRK: Maahaaa Maahaa Maahaa Maahaa Maahaa… &lt;br/&gt;Immigration officer: Sir…Howz the monkey sounding like a Goat????&lt;br/&gt;&lt;br/&gt;&lt;em&gt;So this is how SRK was caged in America…he he he&lt;/em&gt;&lt;br/&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p style="clear: both"&gt;Bollywood, Move on. In other countries, people might not recognize you. US, update your algorithms of ‘random’ selection of names for questioning - How about not detaining celebrities at least ? Yeah, they make quite a fuss when you do mistakes.&lt;/p&gt;
&lt;br class="final-break" style="clear: both"/&gt;</description><link>http://karteek.selfdabba.com/post/286182631</link><guid>http://karteek.selfdabba.com/post/286182631</guid><pubDate>Mon, 17 Aug 2009 13:56:24 +0530</pubDate><category>Bollywood</category><category>Detention</category><category>SRK</category><category>USA</category></item><item><title>Before buying a Magic</title><description>&lt;p&gt;In one of my &lt;a href="http://karteek.selfdabba.com/post/286179344/few-interesting-things-you-can-do-with-your-android"&gt;previous&lt;/a&gt; posts I mentioned few interesting things that can be done with your Android phone. Well, if you wanna go ‘Droid’ you better know few of these things.&lt;/p&gt;
&lt;p&gt;As of now - Tuesday, 11th of August 2009, 1.45 AM, few variants of HTC Magic phones are not rootable. Yeah, you cant root few models. No Root = No fancy stuff like your own distro or custom builds or Hero or Wifi Tether and many more things.&lt;/p&gt;

&lt;p&gt;Android phone will just yet another phone if you cannot root it. It will be just pretty icons. And as boring as a regular Nokia crappy phone if you cannot root it.&lt;/p&gt;

&lt;p&gt;So, remember these things before buying yourself an Android. This is especially for Indian folks, as Airtel is shipping HTC Magic in India.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Don’t buy Airtel branded HTC Magic. I don’t hate Airtel too much, but the technical reason is the board on Airtel branded HTC Magic has SPL hboot version 1.33.0010 As of &lt;b&gt;now&lt;/b&gt;, it is NOT rootable. The other SPLs which are not rootable are - 1.33.0006 and 1.33.0004. So, stay away from those Magic phones.&lt;/li&gt;
&lt;li&gt;Airtel branded phone doesn’t have Google applications in it. So - No Gmail, No Google Talk, No sync with Google contacts, No Google Maps/Latitude which S.U.X big time. I’m still not able to understand why would someone ship a half baked phone by crippling it without its basic important features. So, you are actually spending 25K INR on a phone which doesn’t do anything more than a regular phone.&lt;/li&gt;
&lt;li&gt;Android doesn’t support bluetooth transfer yet. Its a no biggie, but just for your information. Don’t complain later. People who share files over bluetooth, Sorry.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Well, just for recap - No buying HTC Magic with SPLs 1.33.0004 (HTC Magic Japan), 1.33.0006 (TMobile Mytouch 3G), 1.33.0010 (Many versions including Airtel HTC Magic) till they are rooted. You can check the progress at &lt;a target="_blank" href="http://forum.xda-developers.com/showthread.php?t=535221"&gt;xda-developers&lt;/a&gt; forum. Google Ion is rootable.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://21.media.tumblr.com/tumblr_kur3mqs9p01qaycuyo1_250.png" align="left" width="243" height="144"/&gt;In order to check the SPL of your mobile, turn off the mobile. Then turn it on by pressing the volume button down and power button together. It will take you to the fastboot screen. And you can find the board model in first line (32B, in this image). HBoot version in second line (1.33.0009 in this image). I think, if your model has SHIP S as OFF in the first line, thats a rootable model. So, if you can check, just check the SPL info before buying the phone.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;So, what if you had already bought the phone with one of the dreaded Perfect SPL ?&lt;/b&gt; Well, by now you would have understood that your phone doesn’t do anything more than an ordinary phone. This is especially about Airtel branded HTC Magic phones. They don’t even have the awesome Google stuff (I’m not sure about other brands). This is what you can do.&lt;/p&gt;
&lt;p&gt;As you have realized that there is no Android Market on your phone, there is no way of installing any applications on your phone. Actually, no. There is a method. But at the same time, there is a problem though, that you cannot install applications which require other libraries like PDF Apps or new IMEs or even applications dealing with Maps. For any installing any other app, you can follow this method. You will have to first goto Settings - Applications - Check install from Unknown Sources. And also, Enable USB debugging.&lt;/p&gt;

&lt;p&gt;Now, there are two options for you. One is &lt;a target="_blank" href="http://www.openmarket.co.za/get-it.aspx"&gt;Open Market&lt;/a&gt;. Another is searching for the applications online and installing them using the ADB command of the Android SDK tools. The first option gives you something similar the Android market.&lt;/p&gt;

&lt;p&gt;In the second option, you will have to download the application (Google is your friend) and install the application/the APK file by using the command &lt;b&gt;&lt;i&gt;adb install [Filename].apk&lt;/i&gt; &lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The second option can be made easier, if you can first install ‘&lt;a target="_blank" href="http://www.cyrket.com/package/com.metago.astro"&gt;Astro File Manager&lt;/a&gt;’ by using above command, then you can just copy the other applications to the SD card and install them using Astro.&lt;/p&gt;

&lt;p&gt;Now, your phone is far better than the stock phone Airtel had rubbed on you. Of course, this is just until some one releases a hack for the so called Perfect SPL. When that happens, your phone can be magically made into an Awesome Droid.&lt;/p&gt;

&lt;p&gt;Edit : Bala posted a nice illustration on how useful the current Airtel branded HTC Magic is to an end user. Check it &lt;a target="_blank" href="http://www.balachandar.com/2009/08/13/htc-magic-in-india-by-airtel-is-an-unadulterated-brick/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Update on 15 Aug 2009: For daredevils, Guys at XDA have released info on how to &lt;a target="_blank" href="http://forum.xda-developers.com/showthread.php?t=548218"&gt;fix Perfected SPL&lt;/a&gt;. After that, of course, you can root your Magic. If you are not technical and daring enough, it seems HTC is going to release an update for Indian users next month, so wait for it.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286182434</link><guid>http://karteek.selfdabba.com/post/286182434</guid><pubDate>Tue, 11 Aug 2009 09:52:00 +0530</pubDate><category>Airtel</category><category>Android</category><category>HTC</category><category>Magic</category></item><item><title>Luck is Yuck</title><description>&lt;p&gt;&lt;p style="clear: both"&gt;Guess is right. Its about the movie ‘Luck’. Contains spoilers, so don’t read if you want headache after watching the movie. Movie sucks. Sucks very bad. I wish Shruti Hassan had a better debut. Imran Khan’s luck is not going good. Well, yeah, what can one tell. He is choosing wrong stories and movies. Probably he would have chosen a worse movie for debut, if it wasn’t Aamir’s choice.&lt;/p&gt;
&lt;p style="clear: both"&gt;Coming to the movie, Luck. My guess was wrong, the movie is not a copy of &lt;a href="http://www.imdb.com/title/tt0443473/"&gt;The Condemned&lt;/a&gt;. Probably, the movie would have been better if it was at least a copy of that. Well, the movie is about luck. Luck of Ram Mehra (Imran) who has some financial crisis - and ends up in an illegal realty show (Now, just think about Roadies for 1 second). Aisha (Shruti) comes back to the game after finishing it previous time. But, she seems to be very uneasy about the game. Major (Mithun) joins the game to earn money for his wife’s operation. Short Cut (Chitrashi) is yet another character. Raghav (Ravi Kishen) a serial killer is the bad man of the story, who is another participant. The show is run by Moosa (Sanjay). He has some rounds of games which involves luck to escape. People might die when a round is completed. Internet betting happens while the game progresses. Participants make money while they finish each round. Moosa challenge them for a death match when any participant wants to leave and he kills them as he is luckier than them.&lt;/p&gt;
&lt;p style="clear: both"&gt;Now, coming to the rounds of the movie. First round is when all the first fifteen participants are given revolvers with 1 normal bullet and 5 blanks. They point guns at heads of the person standing right to them. So - game motto is ‘Lucky guy lives’. While watching the game, I dint understand one thing. 5 blanks and 1 normal bullet. That makes, kill probability as ⅙. Now, here the statistics part of my brain got activated and started talking to the logic part of my brain. If the the probability of dying is ⅙ - Why would a LUCKY guy be dead (Did I tell you that they had a very strong recruitment policy ? Yeah, they take only luck people into the game). Now another doubt. 5 out of 15 people are dead after the end of the round, which means ⅓rd of the participants are dead. I don’t remember my probability lessons very well, but, I think, the probability of that to happen is ⅓ * ⅙ which is around 5.5%. Uhmm, okay, thats still a big percentage. Now, there is one more thing. Two people standing next to each other are dead. Which means - there is a delay of shooting by one person, who actually killed a person who killed another person right next to him. Now, probability part of my brain is shouting at me, shut up and sleep. I’ve no clue how did this round finish. Yeah, one guy wants to leave, and Moosa kills him in a death match.&lt;/p&gt;
&lt;p style="clear: both"&gt;Then, the second round. People have to take parachutes and jump from a height of 2000 feet. The catch is that there are 12 parachutes, only 9 parachutes work, only 9 people are there (6 of 15 are dead in first round). Uhmm, lets consider that the chopper took them another 500 feet up in the air. Well, it doesn’t seem to take them much higher. Now, all the guys jump one by one from that height. Now, the physics part of my brain is hurt. its 2000 feet - and the scene goes at full pace for next 2 minutes. Wait - there is one blunder here. Is gravity less in South Africa that, it will take 90 seconds for a person to reach ground from 2500 feet. Well, g is 32 feet/sec². Now, you calculate the time a human will take to reach the ground from 2500 feet. Our hero, reaches jumps first, stays in air, then - thinks for a while, grabs heroine and then opens his parachute. Uhmmm, did I tell you there is one blunder here ? Wait …. Ever heard about minimum/safe height for deploying a parachute ? Well, its about 2000 feet. It can be brought down to 600 to 1200 feet, if the parachute is awesome. I fail to understand how they managed deploy parachutes and land safely … perfect landing and do so much drama in the air when the height is just 2500 feet.&lt;/p&gt;
&lt;p style="clear: both"&gt;The next rounds turn even more ridiculous. People swim faster than sharks. Hero and heroine run faster than the effect of the explosion on a train which was actually moving in the opposite direction. Well, yeah, Heroine is one of the twins and she is the unluckier one. Her sister is the one who played the previous time, but ends up committing suicide. So, she wants to take a revenge on Moosa. Movie ends when Moosa and Ram fights the death match and shoot each other. Ram is a mirror bla bla guy who has heart on the right side. So, he survives. He is an adult, and he doesn’t know that till the doctors tell him. So, I think that his brain is misplaced rather than just mirrored.&lt;/p&gt;
&lt;p style="clear: both"&gt;The movie is one of the most boring movies I’ve seen lately. It has nothing to offer other than a tag that its the debut for daughter of a great actor. Shruti is cute in few scenes and atrociously emotionless in few scenes. But, yeah, she will learn, she has the talent. Imran should better ask his uncle (Aamir) to choose stories for him in future. His choices are turning out as huge flops. Well, if you are lucky enough, you will stay out of the theatre for this film.&lt;/p&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286181147</link><guid>http://karteek.selfdabba.com/post/286181147</guid><pubDate>Mon, 03 Aug 2009 12:41:45 +0530</pubDate><category>Luck</category><category>Movie</category><category>Review</category></item><item><title>Spam and Recaptcha</title><description>&lt;p&gt;I’m getting few spam comments once in a while, even though &lt;a target="_blank" href="http://akismet.com/"&gt;Akismet&lt;/a&gt; is working hard to protect me from them. So, I thought to add another layer of protection from spam, I’ve installed reCAPTCHA. &lt;/p&gt;

&lt;p&gt;It’s about giving a helping hand through you guys as well as stopping spammers. reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. Take a look at their site, &lt;a href="http://recaptcha.net" target="_blank"&gt;reCAPTCHA.net&lt;/a&gt; for more information. &lt;/p&gt;

&lt;p&gt;Well, sorry for asking you to prove that you are a human to comment. Thanks.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286180943</link><guid>http://karteek.selfdabba.com/post/286180943</guid><pubDate>Sun, 19 Jul 2009 08:22:26 +0530</pubDate><category>Internet</category><category>ReCAPTCHA</category><category>Spammers</category></item><item><title>Idle 'harmful' brain</title><description>&lt;p&gt;Idlebrain, the telugu film website is one site almost all Telugu movie lovers go after release of any Telugu movie to read reviews. The website is so greedily filled with ads that I’ve almost stopped going to that site. Well, hope they have learnt their lesson atleast by now. Guess why ?&lt;/p&gt;

&lt;p&gt;&lt;a href="http://karteek.tumblr.com/photo/1280/286179608/1/tumblr_kur3ja9erc1qaycuy"&gt;&lt;img class="aligncenter size-medium wp-image-258" title="Idlebrain Google" src="http://15.media.tumblr.com/tumblr_kur3jksJln1qaycuyo1_400.png" alt="Idlebrain Google" width="300" height="154"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Well, WTH Idlebrain ? How about learning some basics in ‘everything’ from &lt;a title="Passion for Cinema" href="http://passionforcinema.com/" target="_blank"&gt;Passion for Cinema&lt;/a&gt; ?&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/286180786</link><guid>http://karteek.selfdabba.com/post/286180786</guid><pubDate>Sun, 12 Jul 2009 11:27:55 +0530</pubDate><category>Hatred</category><category>Idlebrain</category><category>Internet</category></item></channel></rss>
