Thursday, 5 November 2009

Scary place

The place where I live is really a scary place. My friends have pointed the same a number of times, but i always ignored. As they say you dont believe till you see it. So the story is that my friends always advised me to go home early but I always ignored. So, I was returning from office yesterday around 9:30pm and since my flatty wasn't there so i was riding a rickshaw. To kill time, I called a BigV, and we started discussing Indian cricket team's position and Sachin's great innning. And suddenly a bike rushed behind me, I felt a hand trying to snatch my phone. Thank God, I instinctively grabbed my phone harder and the bike rushed past me. It took me couple of moments to realize what has happened. This was my new phone only 1 month old, I was so afraid that I shut the phone down and thanked my stars again. Also I vowed never to talk in a rickshaw again and try to return home as early as possible.
P.S. I am writing this post using my cell that just survived the snatching attempt.

Saturday, 24 October 2009

Flexbuilder on Linux

After migrating my desktop to ubuntu, biggest hurdle was of setting up flex builder on it. This was really an ordeal but the good news is that thanks to google, at last its done!!!

I will try to recapture what all I did to achieve this milestone....
1. Get Eclipse Europa, which is pretty easy. One can use later versions of Eclipse as well
2. Download Flex builder for linux (http://labs.adobe.com/downloads/flexbuilder_linux.html), again easy step
3. Follow the instructions available at Adobe Labs site (http://labs.adobe.com/technologies/flex/flexbuilder_linux/) these are very straight forward.. no issues till now.
4. Everything so far is fun, and flexbuilder is running hooray....

First thing after installation is to set up flex debugger... ooops.. after bit of googling it came down to..
1. Uninstall currently installed flashplayer.
2. Download most recent debug flashplayer for linux form http://www.adobe.com/support/flashplayer/downloads.html.
3. install the debug player and we are done.

Now comes AIR, how to do this one....
1. I tried to run/debug an AIR application using sfk 3.0.0 as bundled with flex builder ... "This application requires a version of the Adobe Integrated Runtime (AIR) which is no longer supported. Please contact the application author for an updated version."
2. Googled it and I reached http://labs.adobe.com/technologies/flex/flexbuilder_linux/releasenotes.html#air.
3. It asked me to download the latest air sdk from http://www.adobe.com/cfusion/entitlement/index.cfm?e=airsdk
4. Followed the instruction as they were word by word... previous error was gone but now you get "flex_sdk_3/bin/adl_lin: 1: Syntax error: word unexpected (expecting ")") "
5. There is a bug on for the same (https://bugs.adobe.com/jira/browse/FBE-323)
6. After much googling I resolved the problem by renaming adl and adt to adl_lin and adt_lin and placing it in sdk/3.0.0/bin.

So here are my steps to upgrade AIR SDK
Follow these simple steps to upgrade the SDK used by Flex Builder Linux on your machine:

* Download latest Adobe AIR SDK.
* Go to the sdks/3.0.0/ folder (in the Flex Builder installation directory).
* Delete the "runtimes" folder.
* Extract the latest Adobe AIR SDK and copy its contents into sdks/3.0.0/, overwriting existing files.
* Go to latest AIRSDK bin folder and rename adl and adt as adl_lin and adt_lin, copy these files to sdks/3.0.0/bin/.
* Go to sdks/3.0.0/runtimes/air/ and create a symlink "Linux" pointing to the "linux" folder in the same directory.


At last AIR ran, what a relief. I also encountered air runtime exception "invocation forwarded to primary instance", To resolve this just kill adl process.

Friday, 26 June 2009

Colorful tail

Well I use tail a lot to monitor my jboss logs. On windows/wine I use this great utility 'BareTail' to monitor logs where I can color code tags like Exception, Error, Warning and so on.. This is visually very appealing.
In plain tail command you you actually need to scan the whole log to get to error. So I was looking to color code tail and guess what it is pretty easy to do by using perl.

tail -n 1000 -f file name | perl -pe 's/.*Exception.*/\e[0;31;33m$&\e[0m/g'


This is so cool and this thing goes to .bashrc so now I have baretail like visually appealing tail :)

Thursday, 25 June 2009

Moving to Jaunty Jackalope

My upgrade manager was prompting from some time about Ubuntu's new release 9.04. So last week I decide to go ahead and install it. The upgrade process was really smooth and no hard work for me. All the packages were downloaded and I was informed about the my configurations. Bottom line everything was neat.

After the upgrade process, I was told that Upgrade is successful and I need to reboot. So I rebooted the machine. Now comes the twist in the tale, On restart the whole screen garbled out like early 80's DD when there was no signal. There was no login screen nothing just strange color patterns. This was really scary because I did not have any backup and though this is a dual boot machine and I can recover data easily, but just the thought of reverting back to XP and reinstalling ubuntu would be a real pain.

After contemplating for half an hour, I decide to give a shot to ubuntu forums. Within 6 minutes of posting my query(http://ubuntuforums.org/showthread.php?t=1186225), I got the reply and after 30 min of exercise Jaunty Jackalope was up and running on my m/c. What an awesome feeling.

A zillion thanks to ubuntu forums and by god they are quick. You get a response almost instantaneously. Kudos to ubuntu community.

Wednesday, 27 May 2009

SAD

United lost...

Wednesday, 10 December 2008

Read this

ngels wrote this
http://surreal-flavors.blogspot.com/2008/12/cry-thy-beloved-city.html

read this.. its really thought provoking.

Friday, 3 October 2008

ngels tagged me...

ngels has tagged me a couple of times.. and I being a serious contender to the prestigious award of "Laziest person on earth" didnt pay any heed :(
But today time has come to answer those question that come with the tag..

What do you do when...

- You see a man (or woman) making a pass (trying to woo/flirt/impress) on a woman (or man) you like?
hahhahaha.... It happens all the time .. and most of the time they succeed as well :(.. So what do it do I curse them and will be frustrated and depressed for some time, and will move on :)


- Someone you like, is not attracted to you?
That happens so very often that I have stopped reacting to it.. I'll just try my luck somewhere else.
Mathematically speaking with each rejection my chances of acceptance are improving but seriously I think probability is failing me in this case :(((

- You are attracted to some one, but both of you are in two different cities?
This sounds like a typical movie story..
Again Hypothetically speaking.. there could be two options.. either I am so attracted that my phone bill and traveling expenses will burn my pocket
or else I will look for other (local) avenues :P

- You are reading a book, and your best friend wants to borrow it and can’t wait for you to finish reading, ‘coz he/she has been looking for it for all their life?
Looking for a book for all their life (and not getting it) .. u must be kidding :)..
But seriously if that book is so important to my friend.. I will give that but now is the crisis situation..
was I really liking the book and cant wait for the book to be returned.. then I will either buy a new copy or arrange for a pdf :P

- You help plan his / her career, and then, they go on to achieve it, leaving you behind, alone...
Well to begin with I am not a good planner, but hypothetically speaking if that ever happened I dont think I will care much... 'coz I dont believe people do such things on purpose and maybe someday they will remember me and return (wow this is philosophical)

- Who am I...
"I am who I am".. (that comes from a movie).. To answer in one line.. I am arbit.. simply I dont know who I am or may be never gave enough thought to the question thought one thing for sure I am very LAZY
I am a movie buff (watched a lot of them of varying genre) who loves to read fantasy books (LOTR, HP, Eragon types) though I read some serious stuff as well (primarily fiction)... Love to play computer games (AOE, WOW, Ceaser the list is big)..
My other interests include physics maths mythology history algos computers ... (all thanks to wiki)
Professionally I am software engg :) and lastly I dont think much and hate taking decisions

- What is the One thing that brings-in-smile-to-your-face/or pisses-you-off quite unexpectedly !?!
brings-in-smile-to-your-face .. there a hell lot of things.. ranging from a PJs to GGs .. but most of all company of friends is most pleasing and satisfying :)
pisses-you-off.. again a variety of things but most of all decision making and UI designing :P

- Insert (and add) a new question(s) / statement(s)...
Question to the Tag Maker...and to the tagged fellows:
(Adding a question is most difficult of all.. and all the time my laziness )
~ You liked a movie very much and you come across a guy/gal who thinks the movie was the worst movie ever.. (This happens with me a lot :P)

and here I tag
Ashish - The Iron Bull