Finally !!!!!

•January 18, 2009 • Leave a Comment

Hey,

Six months is a pretty looong time :) . Thinking of updating this blog from today . Well i just saw slumdog millionaire . Its a pretty good movie . Very good screenplay and direction . It is slightly like Forrest Gump . I also was some ‘chori blah to china’ (forgot the name) in theaters !!! :(   .

I cant believe how people can make such a dumb movie . One of the worst movies i have ever seen . I also saw a tamil movie “villu” the day it got released . We had to stand in a big crowd for an hour to get into the hall . Villu will come in top 5 worst movies i have ever seen . The director should be banned from making movies . The movie was a total crap . What did the makers think ? . Vadivelu sucked big time in that movie . Another crap movie i saw in recent times . Rab ne bana blah jodi . Seriously i cant believe how movies like these become hit !!!!  . It was like anniyan . The plot was crap basically . And they wanted to drag the movies for full 3 hrs . Who rele cares abt the length ? It was like a mega serial !!

Funniest Part :

The girl goes to the temple with her husband and prays to god to show her something .

Taaaadaaaaaaa here comes sharuk and she falls for him then . Gimme a break !!!

I cant belive i sat there fr 3 hrs for tat !!!!

And sometime back i also so a movie called kuselan . O my god . Bullshit !!! tats wat i can tell about the movie . Why do they want to have bloody dolphins in a village pond ?

And about few good movies i have been seeing .

1)Dark Knight

2)Taken

We moved to a new house in this time . WE got a gas connection 2 weeks back . And i am pretty much getting comfortable in cooking :) . Tomorrow i am making dosa :)   (not for the first time) . I am also planning to make channa masala in the evening :) .

Bye ;)

Tagged !!!

•June 30, 2008 • 1 Comment

1. Last movie you saw in a theater?

Dhashaavatharam . Not all tat good :(

2. What book are you reading?

Insight into heaven

3. Favorite board game?

Scotland Yard

4. Favorite magazine?

The week, Readers Digest

5. Favorite smells?

Smell of the sand just before raining

6. Favorite sounds?

dunno

7. Worst feeling in the world?

cant say

8. What is the first thing you think of when you wake up?

few more minutes ???
9. Favorite fast food place?

Appan’s , Vijayam Mess (in my home town)  , KFC

10. Future child’s name?

Sherwin (i don wan girl)

11. Finish this statement. “If I had lot of money I’d….?”

put it safe somewhere  to cover my future losses(breakages)

12. Do you sleep with a stuffed animal?

never

13. Storms – cool or scary?

As long as it doesnt affect the power supply… am happy.(am in kerala :(   )

14. Favorite drink?
it keeps changing . i like bovonto :)

15. Finish this statement, “If I had the time I would….”?

16. Do you eat the stems on broccoli?

Yes.

17. If you could dye your hair any color, what would be your choice?

none

18. Name all the different cities/towns you’ve lived in?

Bhavanisagar , Kadiyampatti (salem) , sivakasi , thanjavur , chennai , vedharanyam , bangalore , cochin .

19. Favorite sports to watch?

Formula 1,TT , cricket(till the year 2002) , tennis

20. One nice thing about the person who sent this to you?

not cunning ( i guess )
very sweet

21. What’s under your bed?

i sleep in the floor (sigh sigh)

22. Would you like to be born as yourself again?

a big NO

23. Morning person, or night owl?

night owl :)

24. Over easy, or sunny side up?

Sunny side up.

25. Favorite place to relax?

room

26. Favorite pie?

None.

27. Favorite ice cream flavor?

Chocolate (it used to be vanilla but got sick of it)

Key Differences

•April 9, 2008 • 1 Comment

Hi all ,

Today was just another day in office . I felt like writing some of the key differences between this world & the world after death .

1) Here all of u judge & dont want to be judged .

There is only one judge there & he was judged before us.

2)Wat ever be the judgement it will always look unfair here .

His judgement will be perfect .

So basically all the lil lil judgements that people pass on us in this world are  nothing but  of very lil value .

I personally feel how ever big be a situation for any one , it wont mean a thing after sometime .

Maybe someone has just failed in an exam . Which basically is a judgement from the question setter, valuator,educational system . Its all gonna pass after sometime .

:) :D

So next time when U feel  depressed cos u didnt get somethin or u flunked in somethin . Ask this question to yourself . Who r U to judge me ?

Cos nobody in this world is a good judge !!

bye :)

Workin for Peanuts ??

•April 9, 2008 • Leave a Comment

Hey ,

For sometime i felt very proud . Cos i thought i am gonna earn lots of money . And i would have enough cash to buy 8 grams of gold every month after my expenses .But funny it may sound i have been pushed to nil bank balance almost every month . Its so true what is written in bible something like ‘he who had little had no lack & he who had more had nothing left’ . I dunno who made this kinda salary stack structure ! They invest all our pay on pf , shares & we get so lil . And i am throughly confused on where that money is going when we get it as a bulk once in a while .

My Budget

HR 2000

UD 2200

Bike 1000

Phone 800

Internet + TV 900

Treats 1000

Total 7700

after this the food expenses will be another 4000

so 11700 :(

And am wondering where the rest of the money went ???

Didnt give even a penny to my parents so far .

to be cont ……

bye

Movie Addiction

•March 31, 2008 • 2 Comments

Hi all ,

Right now am in a movie addiction . I have been watching atleast 2 movies a day now :( . Last week i downloaded all 6 parts of american pie . This weekend i have downloaded . Dennis the menace , Pursuit of happiness , Armageddon . Got my pay today :)   as usual disappointed :( . I hate payin this stupid IT !!!  Am almost done with the chat application i was developing :)   . Gonna start reading the advansed unix archi book + java certifi book .

bye

Where r we all going ???

•March 15, 2008 • 1 Comment

Hi ,

Long time since i blogged . Life has been going fine for now . Got a tv in my room . Life is turing
out to be boring for the past few days . Nothing interesting happening . It has started to rain in cochin .
Think the monsoons have come . Its all windy , cloudy and at times very humid . Been watching lots of movies
lately . Felt like playing computer games but when i started i got bored of eem too . Dunno what exactly i need :(
Will be going to ooty next week and we are going to munnar from my company :) . Life has been plain or so predictable
these days so nothing much to tell . Am seriously gonna follow a stirct slimming schedule for a month n a half :) .

The wind took it to far places it tried
to stick on to everything it came across.
The harder it tried to hold onto something
the painful it was to depart .
Not knowing where it is taken to
Did it have control over any thing ?
The question which ringed in mind .
Is it all for my own good ?
or is it false hope for all generations ?
At times it was the past which looked greener !
Is there a place to be forever ?
or is everything gonna pass away in time .
Will time make it say “im ready”
when he comes to take it away again .
Another question that rings in its mind
if this is not it why did$ i ever
come her ? y did i like it ?
y did i ever come across it ?
and y cant i have things my own way ?
Will never be answered all its life !!

This is abt the same pollen but in a different prespective  :)
bye

I will miss Lara

•February 16, 2008 • 10 Comments

Hi ,

This post is going to be extremley long . Only for cricket lovers.

on friday was just browsing at the cricinfo site and my eyes fell upon many of lara’s photos then i remembered all the good old times . It was in the year 1992 . That is the first match i ever remember seeing i was 6 yrs old . It was the world cup and kapil dev was bowling . It was a saturday afternoon ,  and i was having mutton cutlet,rice&rasam . In two years like many indians i also started playing cricket . It was thensome one outta no where broke the test record . Then westindies toured india . My bro was mad about this guy so was the whole world . he broke 2 world records and was scoring like any thing . Then came 1996 world cup . the south africans was scoring like any thing . they didnt lose even a single match . but windies lost to india and KENYA !!! . Then when the quarterfinals came lara played one classy innings . he scored 111 and windies won . in semis he scored a brilliant 45 . i came from my tution early tat day .still remember chanderpaul and lara batting , he got out to a suoperb ball from steve waugh . then his career was fulkl of dark spots . in 98 i saw one great series . aus toured windies . I remember the first match me n my bro switched off the tv after lara got out they were all out for 51 . The very next match lara came with a 213 i coudn see it . the next match was the match i would never forget . windies needed 308  and everyone went out but lara played till the end . then next day i had english paper 2 annual exam ,. but still i watched till the end the time was 1:57 am when he played a brilliant cover drive fron fleming . i can still give a reviiew of that match , then there were centuries here n there . till 2001 he was silent .when windies toured SL he tortured th SLkans like anything with 688 runs in 3 tests . thrashed many recods and critics . then he played a great innings at 2003 wc . he gt his 400 and lots of other centuries .

I miss those days when we start watching tv 8 in the night and sleep at 5 in the morning , Wont sleep if lara is in the crease . Those prayers i prayed when he is on the crease . The arguments i had in school , college . Those were simply great times . The class he displayed . I always found tendulkar an ordinary batsmen . But in lara i found a talent , a genius . The cover drives , pulls , cuts , hooks , sweeps and all the glances he played on the field i will miss. The times of tension when he is on the crease i will miss . Even if lara says that he is not a great batsman he will always remain as the best batsman in my hearts . It  was only in 2007 i got to see him bat . but will meet him some day and say that i was still hoping that he would bat well when the whole world rose against him . I  will miss the smell of the morning breeze and the genius all my life .

I WILL MISS YOU BRIAN !!!

below is a short story of his career

55909.jpg55908.jpg55907.jpg

72451.jpg

55906.jpg55905.jpg55904.jpg55903.jpg55900.jpg55899.jpg55898.jpg55897.jpg55897.jpg55896.jpg013275.jpg002957.jpg001368.jpg0.jpg1.jpg2.jpg3.jpg5.jpg6.jpg7.jpg12.jpg

this post took me 1.5 hrs :)

anything for brian !!

bye

6 Reasons Y i hate Bill Gates

•February 7, 2008 • 4 Comments

Hello ,

Like  many in the world the first operating system which i used was an MS WINDOWS 1998.Then later on i used WINDOWS XP . Though all of that which i used were pirated versions . When i got my first pc it came with a windows installation . I never knew of a GNU/Linux . I thought there was no operating system other than Microsoft . After sometime i got linux installed in my system it was in the year 2002 when i first worked in linux . It never did make any difference to me those days . When i started programming i faced lots of problem in my windows system . Lots of crashes and lots of inconsistency . I happen to read about the open source and its core philosophy . The very moment i knew that this was the future . After that i came to the point of associating every one whome i dont like with founder of MS .

Reasons being :

1)No freedom !

2)Forcing people to use inferior version of s/w

3) Poor support

4)High cost

5)Autonomy

Only good thing about MS is that the marketing it does is really good . Many say that for a layman windows is the best OS . Point is though it is little difficult to start but in the longer run every person from a layman to a programmer will realize the advantages of open source . It is so obvious that ONLY an open source product will be more reliable , stable . I believe open source is the concept which existed before all this copy right thing started . If there had been no open source we would not have had anything in this world . Even MS would not have existed if there had not been an open source concept . Because i believe in early days people got to know about OS only because it was not copyrighted . So the founder of MS who himself would have obviously been benefited from open source is the main threat to open source . A day will come when MS and all copy right laws will be out of this earth but open source will last forever . Because it is a philosophy in hearts of people and no company or government can ever take it away from us . Open source improves competition and quality of a product .

I am waiting for a day where in people will concentrate more on the quality and improvement of a s/w rather than the money !!!

I am waiting for a day where in people will think beyond their current needs .

I wrote this blog after an argument with another one of my colleagues .  Next to Christianity the philosophy which i will never forget or leave !

bye

HEHE :)

•January 17, 2008 • 3 Comments

Hi ,

I got a new lap top , a new watch and so many new stuff :)    . Life is beginning to be interesting in my office . This month was pretty good . Had lots of fun this month . Started developing a chat application .

bye

File Splitter & Merger … Updated Version 1.1

•December 17, 2007 • 1 Comment

Hello ,

I finished writing two programs , One will split a file into a specified number of pieces .Gonna study some file compression algorithm .

I later thought its a waste of time writing another file compression alogol so used gzip itself . And if i have to change to new algo i made the usage of gzip modular so that any new algol can be integerated as a seperate module . :)

SPLITTER

#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<fcntl.h>

int fd=0,err=0,file_size=0;
int block_numbers=0;
char buffer[1024];
char tno[5];

//Argument 1 is File to split
//Argument 2 is block sizes in mb

int main(int argc,char *argv[])
{

int i,j,k,tfd,fileno=1,byte_count=0,nob=0,mb=0,err=0;
struct stat buf;
char dest[25]=”../dumps/dest”;
char filename[25],*arg[20];

arg[0]=(char *)malloc(5);  // gzip

arg[1]=(char *)malloc(5);  // file name

arg[2]=(char *)malloc(5);

arg[0]=”gzip”;

arg[2]=NULL;

for(i=0;i<1024;i++){
buffer[i]=”;
if(i<25){
dest[i]=filename[i]=”;
if(i<5){
tno[i]=”;
}
}
}

if(argc > 2){

mb=atoi(argv[2]);

strcpy(dest,argv[1]);
strcat(dest,”.abe”);

if( mkdir(dest,0777) >=0 ){

strcat(dest,”/dest”);
strcpy(filename,dest);
//strcpy(dest,argv[2]);
}
else{
perror(”");

printf(”\nDirectory Creation Failure . Program Exitting \n”);
//strcpy(dest,”../dumps/dest”);
//strcpy(filename,dest);
exit(0);
}

fd=open(argv[1],O_RDONLY);
if(fd==-1){
perror(”Main File:”);
exit(0);
}
err=fstat(fd,&buf);
if(err==-1){
perror(”First stat:”);
}

printf(”\nThe size of the file is : %d”,buf.st_size);
file_size=buf.st_size;
block_numbers=file_size/(1024*1024*mb);//Last Param is number of MS’s

block_numbers++;

printf(”\nThere will be  %d “,block_numbers);
printf(”block/blocks \n”);
k=block_numbers;

strcpy(filename,dest);
itoa(fileno,&tno);
strcat(filename,tno);

tfd=open(filename,O_RDWR | O_CREAT , 0666);
if(tfd<0){
perror(”Temp File:”);
}

while((nob = read(fd,&buffer,1024))>0 ){
//write to file
err=write(tfd,&buffer,nob);
if(err<0){
perror(”Tfile Write :”);
}

byte_count+=nob;

//flush buffer
flush_buf();

//open new file
if(byte_count==1024 * 1024 * mb){

byte_count=0;
close(tfd);

//Zip the closed file

strcpy(arg[1],filename);

if(!fork()){

execvp(”gzip”,arg);
}
else{

fileno++;
flush_buf();

itoa(fileno,&tno);
for(i=0;i<25;i++){
filename[i]=”;
}
strcpy(filename,dest);
strcat(filename,tno);
tfd=open(filename,O_RDWR | O_CREAT , 0666);
if(tfd<0){
perror(”Tfile Creation “);
}

}//Else of Fork
}
nob=0;
}

strcpy(arg[1],filename);

if(!fork()){

execvp(”gzip”,arg);

}

}
else{
write(1,”Enter all the parammters . Program quitting”,20);
exit(0);
}
return 0;
}

// Convert the integer to string

void itoa(int a ,char *p)
{
int i,j,k;
char s[5];
s[0]=s[1]=s[2]=s[3]=s[4]=”;

k=a;i=0;

while(a>0){
j=a%10;
a=a/10;
s[i]=j+48;
i++;
}

// Reverse it
i=0;
j=0;
while(s[i]!=”){
i++;
}

for(k=0;k<i;k++,i–){
p[k]=s[i-1];
}

}

void flush_buf()
{
int i=0;

for(i=0;i<1024;i++){
buffer[i]=”;
}
}

MERGER

#include<stdio.h>
#include<fcntl.h>
#include<dirent.h>

char buffer[1024];

//Argument 1 Directory path relative to the excutable

int main(int argc,char *argv[])
{
int fd,mfd,err,i,j,nob=0,file_count=0,status;

char source[30],final[30],f_name[30],fi[5],*arg[5];

DIR *dp=NULL;

struct dirent *bf=NULL;

arg[0]=(char *)malloc(10);  //GZIP

arg[1]=(char *)malloc(10);  //OPTIONS FOR UNZIPPING

arg[2]=(char *)malloc(30);  //FILE NAME

arg[3]=(char *)malloc(10);  //NULL

arg[0]=”gzip”;

arg[1]=”-d”;

arg[3]=NULL;

for(i=0;i<30;i++){

f_name[i]=final[i]=source[i]=”;

if(i<5){

fi[i]=”;

}
}

if(argc<2){

printf(”\nInsufficient parameters : Program Quitting\n”);
exit(0);

}

strcpy(source,argv[1]);

for(i=29;i>0;i–){

if(source[i]==’.'){

break;

}

}

for(j=0;j<i;j++){

final[j]=source[j];

}

strcat(final,”merged”);

dp=opendir(source);
if(dp==NULL){

perror(”Directory “);

}

mfd=open(final,O_WRONLY | O_CREAT , 0666);

if(mfd<0){
perror(”Main File”);
}

flush_buf();

while( ( bf=readdir(dp) ) > 0 ){

if(strcmp(bf->d_name,”.”) && strcmp(bf->d_name,”..”)){

file_count++;

strcpy(arg[2],”/home/unni/dinesh/test/”);

strcat(arg[2],source);

strcat(arg[2],”/”);

strcat(arg[2],bf->d_name);

if(!fork()){

execvp(”gzip”,arg);
perror(”");
}
else{
waitpid(-1,&status,0);

}

}
}

for(i=0;i<file_count;i++){

strcpy(f_name,source);

strcat(f_name,”/dest”);

itoa(i+1,&fi);

strcat(f_name,fi);

//printf(”\n\n %s \n\n “,f_name);

fd=open(f_name,O_RDONLY);
if(fd<0){
perror(”Temp File”);
}

while(nob=read(fd,&buffer,1024)){

err=write(mfd,&buffer,nob);
if(err<0){
perror(”Write “);
exit(0);
}
flush_buf();
}

close(fd);
sleep(1);

}

close(mfd);
return 0;
}

void itoa(int a ,char *p)
{
int i,j,k;
char s[5];
s[0]=s[1]=s[2]=s[3]=s[4]=”;

k=a;i=0;

while(a>0){
j=a%10;
a=a/10;
s[i]=j+48;
i++;
}

// Reverse it
i=0;
j=0;
while(s[i]!=”){
i++;
}

for(k=0;k<i;k++,i–){
p[k]=s[i-1];
}

}

void flush_buf()
{
int i=0;

for(i=0;i<1024;i++){
buffer[i]=”;
}
}

Good bye