Archive

Archive for the ‘Uncategorized’ Category

SQL Format of all columns

Get all the columns in a file
Use awk to print out the Format statements

awk ‘{print “COLUMN ” $1 ” FORMAT A20 WORD_WRAPPED”}’ sql_columns.txt

Categories: Uncategorized Tags: , , ,

HTTP/1.1 Persistent Connections and httperf

Persistent Connections
Compatibility with HTTP/1.0 Persistent Connections

Download the httperf and while building it, you need root access. If not, for the configure executable, give these options.
../configure --bindir=/httpperf/httperf-0.9.0/build/bin --sbindir=/httpperf/httperf-0.9.0/build/sbin --libexecdir=/httpperf/httperf-0.9.0/build/libexec --sysconfdir=/httpperf/httperf-0.9.0/build/sysconf --sharedstatedir=/httpperf/httperf-0.9.0/build/sharedstate --localstatedir=/httpperf/httperf-0.9.0/build/localstate --libdir=/httpperf/httperf-0.9.0/build/lib --includedir=/httpperf/httperf-0.9.0/build/include --oldincludedir=/httpperf/httperf-0.9.0/build/oldinclude --datarootdir=/httpperf/httperf-0.9.0/build/dataroot --datadir=/httpperf/httperf-0.9.0/build/data --infodir=/httpperf/httperf-0.9.0/build/info --localedir=/httpperf/httperf-0.9.0/build/locale --mandir=/httpperf/httperf-0.9.0/build/man --docdir=/httpperf/httperf-0.9.0/build/doc --htmldir=/httpperf/httperf-0.9.0/build/html --dvidir=/httpperf/httperf-0.9.0/build/dvi --pdfdir=/httpperf/httperf-0.9.0/build/pdf --psdir=/httpperf/httperf-0.9.0/build/ps

./httperf –hog –server= –port=8443 –num-conn=100 -ra=1 –timeout=5 –ssl

./httperf –hog –server= –port=8080

./httperf –hog –server= –port=8080 –uri=URI –method=PUT –wsesslog=100,0,input > report

./httperf –hog –server= –port=8443 –ssl –uri=URI –method=PUT –wsesslog=100,0,input > report_ssl

./httperf –hog –server= –port=8080 –uri=URI –method=PUT –wsesslog=1,0,input –print-reply

Add header, open 1 session, and use input_new file for the POST data
./httperf –hog –server= –port=8080 –add-header=”XYZ” –wsesslog=1,0,input_new –print-reply

and the input file would look as
method=PUT contents="..."

Categories: Tech stuff, Uncategorized Tags:

Whats up with me

If it gets to travelling by train/air, I always seem to have an adventure.

Couple of years earlier, I had to catch a train and I ran 3 floors in an indian railway station with untied-loose shoes, which were coming off and I just got on the train…a running train. How I drove to the train station? I drove like a maniac.. hapahazardly… It was just unbelievable…

The other time, I was travelling from New jersey to California. That was an absolute joke. The adventure included…me throwing the tickets into garbage, taxi driver driving ultra slowly and liking me very much. He was insisting on how he loved india…and stuff.. and me calling my HR to move my car the same day and pissing him off..and then calling my friend to check my mail to gimme my ticket number…and then at the airport the driver wudnt let me go…he still was singing praises of indian-american love. and then I am like 40 mins into checkin…cool me, I keep shampoos and toothpaste in my carry baggage… how stupid can one get? I am then scanned and I was sure..my flight is gone.. But somehow…panting and emotionally drained, I do make it ..phew..

Then, from SFO to Vegas.. Same thing, I almost miss my flight… I assume 101 at 5am will be empty….Nooo..it never sleeps.

and what takkes the cake??

My trip back to india.. this is just begining for sure. Everything is calm..I dont seem to miss anything…blah blah… but, this was just the calm before the storm….

I have my luggage weight checked.. oh before that..let me explain the ticket thingy… My first itieneray is to start at SFO on 27th 2pm and land in Singapore at 1:05am and then flight to hyderabad at 900pm!! and land in hyd at 1100pm..thats whole 20hours. I ask my agent to get it changed and the best medicine for whiners is to give a worse itinery and thats precisely what I get. I get 8 hours wait in singapore and 8 hours wait in chennai. chennai? what the hell was I gonna do in chennai? I just asked my agent to revert back to the first plan. and so we are at the airport at 1100am sharp.. and I am begining to sound impressed with myself. I show my travel sheet I get and bang.. I am not on record. The ticket number I gave was void! I start to sweat. He asks me a ticket number, which I dont have. Thankfully, I have a friend with me to help me out. I call out my boss, just to inform him that I am missing my flight. His piece of suggestion : Dude, you are screwed. My I94 expires on 30th june. I am like…Gee, thx mate, That was of real help. I get back in line to check if I can persuade the airlines to help me out. Meanwhile, my friend call an emergency number of the american express travel agent. (btw, my agent doesnt work on weekends). And fortunately, she gives ur the ticket number! Phew! You would think so.. but it doesnt end. The ticket is invalid too, and back to sweating. My friend then calls the agent to tell her this, and then she talks to the manager and they resolve the issue. Air india didnt update my chnaged ticket info. I mean, what was void was SFO to singapore. I did have a ticket from Singapore to hyderabad.

I had to buy a daypass.. so thought lets just write an adventure story. This time it was almost real!! almost missed the flight again.

But again, whats the fun in have a normal boarding? eh?? 😉

Categories: Uncategorized

Hosting Multiple Domains With JBoss

Categories: Uncategorized

Yosemite

February 23, 2009 Leave a comment









Mac is Mac is Mac. These are the pics from my camera …modified

Categories: Uncategorized

Hard time

November 6, 2008 Leave a comment

This has been a very very tough week. I have never had it so hard. I cant concentrate. I just wish there werent so many rules. I just wish we could do stuff what we want. Sometimes, something amazing can be missed just because there are rules. 

I hate rules. 
Categories: Uncategorized

el corte de madera creek, woodside , ca

September 16, 2008 Leave a comment




Yup…hiking day. Somehow…Didnt have lot to blog these days..things went too fast or I wasnt in a mood.

It was totally amazing! For the first half, we were going down the hill…thru the mountains and just before entering the mountains …we saw the sign that it was infested with rattle snakes and mountain lions…we were bloody shocked and looked at each other.. We were shit scared… Well, we went anyway…then almost one mile down the hill…we see no one…we were alone….we wud stop at every creaking sound. We wud be scared with rats making sound etc… we thought maybe we r at a wrong place and we shud go back.. then we were at a point when we were totally freaked out. and then we turned back and started to go….but then at the same nick of time…we see more hikers… phew..from then on we saw lot of bikers and people..so it was cool. Then while going back…GPS was taking us down the hill….only car can drive and there were edges of the mountain…. ..I was ultra cool….and then the unthinkable happened… another car came in the opposite direction!!!!!!! …heheheheh…someone had to move back…and it was all edgey….I moved back..and the other car somehow managed to move…..phew phew phew…I still cant get over the excitment…hopefully we go to more hiking!!
Check more pictures here…
Categories: Uncategorized

Its Stupid, stupid!

We are going into doing stuff with OSGi. OSGi does dynamic linking up and stuff. Osgi manages lifecycle also.

So I think, whats the difference between OSGi and JMX. Research tells me, JMXing OSGi bundles 😮

I forgot abt that…Then I figured, whats the difference between OSGi and Webservices. hehehehe
Research tells me, how to mae OSGi bundles as webservices.

More comments when I becomes smarter.

Categories: Uncategorized

sarkar raj

June 9, 2008 1 comment

If I had fast forward option, I would have seen the movie in 30mins. I dont remember seeing a more irritating movie. The music is so irritating, every stupid scene has music. You cant say the actors did a bad job. There was no substance in the story, what can they do. But, then you would say great actors rise above bad scripts. Well, you can say amitabh bachchan is one. He is the sole saving grace of the movie. Sheer class, unbelivable acting.

Absihek bachchan is a directors actor. It defnetly looks he does what the director says. The funniest part is he has a pissed off face in the movie. why? His pissed off expression doesnt evoke any seriousness. His characters seriousness is not visible. God knows why aishwarya rai is there in the movie.

Rao saab, and amitabh take the credit. And also one of the villans…who is with aishwarya rai.

Categories: Uncategorized

Ennio Morricone

Got to listen to his scores!

Its music that makes up a movie. Malena has a terrific sound track. I kinda read about this composer, but didnt really notice. That was until I saw “once upon a time in america”. You should hear deborahs theme.

Categories: Uncategorized