Wednesday, October 14, 2009

simplest way to index your drive

Hi all, thought i'd share this quick tip for indexing. i have 3 drives in my external hard disk and most of the time i forget what all files i have inside them. I figured it be good if i have a list containing all the files,folders with their path in my drives.so i fiddled with dos prompt and found a way.You can try it.

1.open your command prompt
2.type the drive letter , say j: of the drive you want to get the contents of.
3.type dir /B /S > list.txt.

the file 'list.txt' will be created in your drive and it contents will look something like

click on the image.


4.If you have more than more than 1 drive then do steps 2 and 3 over again for all drives.

5.now to copy all list to one file,type copy "path of list.txt for drive 1" + "path of list of drive 2" .. "path of destination file"
now the destination file say, full.txt will have the list of all files on the drives.


now just ctrl+f the file and search for a file or folder. It will show the path of the file highlighted.just copy the line and paste it in the explorer to access it.I know it sounds dumb coz just searching *.* will show u all the files but its always nice to have a list right? i'll point the uses of this list file.

1. you can just send list file to your friends and flaunt your collection of movies.aaah!!the feel of power , to have your friend ask you for a movie.
2. once you have the file, it'll be always quicker to open the list and search for a file.windows searches inside a file faster than the contents of a drive or a directory.
3.Because you are worth it.he he.can't think of a third reason and i was staring at the monitor for long time after typing "3.".

to make it simple you can just copy the following code and save it as a .bat file.btw, it goes without saying that j: is the drive for which i'm creating the list.

j:
dir /B /S > list.txt


PS: I wrote this post while at office.
PPS:dunno why i told you I'm at office.bye.

Monday, October 12, 2009

2 States book review


Just finished reading this book today morning.
I enjoyed chetan's five point someone but his next two books were a let down. The latest novel '2 states' will pull him more fans for sure.
Though the book isnt as great as his debut novel,it is fun to read. If you are looking for a book with plots where you cant guess what's next , then ditch this. there are zero number of twists in the novel. just by looking at the front and back cover, you will be able to sum up the entire storyline.
SPOILERS(not much anyway) below till ******
the novel is a mix of kamal hassan starrer 'ek tuje kheliye' and surya starrer 'poovellam kettupaar'. The protagonist krish is the same guy from five point someone but just his name has been changed. only the author knows why he changed it. Krish hails from punjab, settled in delhi and the girl Ananya is from my state,Tamil nadu. They fall in love at IIM A. When they try to get their parents know each other during convocation, everything goes haywire.
The hero goes to chennai after getting posted there by citibank. he suffers the usual - auto drivers,uptight people, language,foreign mapillai competition,etc...he manages to make the girl's parents say yes for the marriage. now scene shifts to delhi. Ananya goes with krish to delhi to convince his mom. but thats not enough. the couple have to make their parents get along and so it goes .
******
The story brings age old competition between north-indians and south-indians. tamilians are still reffered as 'madrasis' and are seen as uptight,quiet,Carnatic music lovers who love to obey rules. Punjabis are seen as noisy,big hearted,fun loving people who want lots of respect and gifts to be showered on the boy's side. I hate to say it, but a lot of things which the author puts it under 'south-indian' category should have been under 'brahmins' ,both good and the bad.No offense meant.

Finally i'd like to say , Don't get serious with the read. There are some places where the author will poke the habits of south-indians and punjabis but everything must be taken in lighter vein if you want to enjoy the book.
Del.icio.us Tags:
, , ,

Friday, October 9, 2009

Desperate times calls for desperate measures....

Darn! my ipod's battery is empty again.after 2 hours of aimless and pointless surfing,I started on this post.And oh yeah! u guessed right.Am at office right now when i start this post.
As i stare at the monitor trying to unravel the mysteries hidden in the code written by my team-mate , I start to drift off. My mind is getting a bit loopy after the effort to understand the whiles and the fors. I want to complete that program.no.I want to write some kinda,any kind of program(en aarvathai nenacha enake aachiriyama iruku),thats why i am going to post the rest of the post in an algo format.read according to the algo.bear with me please.


//program to find your movie taste
step 1: if you are a vijay fan, skip to step 12.

step 2: initialize variables romance, comedy,thriller,drama,action,iduku_saagalam to zero.

step 3:if you are favourite movies is/are (thirupaachi || sivakaasi || thirumalai || tamizhan || pudhiya_geethai)
{increment iduku_sagalaam .
print "you are in denial.you are a vijay fan.i told you to goto step 12".skip to step 12.}

step 4:if you are favourite movies is/are (notting_hill || pretty_woman || walk_to_remember || notebook || casablanca || dil_se || alaipayuthe)
increment romance,drama.

step 5:if your favourite movies is/are (diehard || rambo || terminator)
increment action

step 6:if your favourite movies is/are (shawshank || forrest_gump || green_mile || godfather || iruvar)
increment drama

step 7:if your favourite movies is/are (vertigo || psycho || saw || others || nooraavadhu_naal) increment thriller,drama

step 8:if your favourite movies is/are (scarymovie || bruce_almighty || click || 50_first_dates)
increment comedy

step 9:if your favourite movies is/are(ghost || she's_the_man || His_girl_friday || 50_first_dates ) increment romance,comedy.


step 10:if (iduku_saagalam_count > 0) {"You are not LISTENING.read according to the program.you need psychiatric help. you are at the risk of committing suicide.you were once a deadly virus spreading across the state.but now you think u shouldnt have born. Your kind of have become an endangered species.very soon you will be seen only in museums.of course, what can you expect for the sin of being a vijay fan." skip to step 12.}


step 11:"your favourite movie genre is" (maximum_of(all counter variables).counter_name)

step 12: "bye.have a nice day. ".terminate program.

PS: couldnt resist to share a vijay sms.
vijay is the finance minister. Before the day of budget,he submits the budget plan.PM finds it out to be a exact copy of AP budget plan. he asks vijay,"WTF".vijays calmly responds,"it was a hit in AP.it will be a hit in tamil also". Thalapathy rocks.