Saturday, December 23, 2006
Friday, December 08, 2006
Creating disk images : The first step would be to create disk images. The utility available with bochs called as bximage can be used to reate disk images. Create a floppy disk image by specifying fd as the disk type and a hard disk image of size 10MB by specifying hd as the disk type while using bximage.
Partitioning the hard disk image : Then the harddisk should be partitioned. For this purpose we use some small linux distributions ike dlxlinux. Using bochs boot with dlxlinux image as the master disk nd the created disk image as the slave. Once dlxlinux is booted use fdisk to partition the slave disk as "fdisk /dev/hdb". Create a new partition and then create ext2 filesystem on the partition using the command mk2efs /dev/hdb1.
Copying the grub files into the disk image: After partitioning the disk image file we should copy the grub files into the image. To do this attach the image file as a loop device and then mount the loop device. These steps will require root previlege
losetup -o 32256 /dev/loop/0 diskimage
mount /dev/loop/0 /mnt/loop
cp /boot/ /mnt/loop/
cp kernel /mnt/loop/boot
Edit the menu.lst file to boot the kernel.
losetup -d /dev/loop/0
Installing grub in the disk image: After the grub files are copied the next step is to install grub on the hard disk image. This is where the floppy disk image we created earlier comes into use. Attach the floppy disk image as a loop device and use grub-floppy command tocreate bootable floppy disk image. The commands would look like
losetup /dev/loop/0 floppyimage
losetup -d /dev/loop/0
Once the boot floppy image is created edit the bochsrc file to boot from the floppy with our hard disk image as the master disk. Now bochs boots the floppy disk image and u get the grub command prompt. Once the grub command prompt is obtained follow the long established steps of root (hd0,0) and setup (hd0) to install grub on the harddisk image. Now u can test ur own kernel using bochs. Bochs reads its configuration setting from the file bochsrc. This is the file that instructs bochs about the master disk or slave disk or disk to boot etc.
Tuesday, November 28, 2006
System crashed a week back bringing down all the plans i had for the semester holidays. Holidays turned out to be a boredom without the system and internet. Had many plans for the holidays but all were in a mess as my system crashed correctly at the first day of my sem hols. Was not able to check mails, chat, orkut or blog for a week. The problem is the entire processing stops after some time. When booted in windows it restarts just after loading the desktop. With linux it boots without problems and gdm runs without problems. But all stops after some time and no further processing occurs. So i configured linux and stopped almost all processes and gdm and now i can work in the shell for around 30 minutes. Spent the holidays reading the stories which i converted from lit to html a few weeks back. Thought it was due to the processor getting heated so i removed the processor, cleaned the processor fan and put it back but the same problem contnues. Still the problem continues and i am not sure what the problem may be. If someone can infer something abt the problem from my description post your ideas about what might be the problem. It may be useful.
Thursday, November 16, 2006
1) Download the clit18src.zip file from convertlit.com and unzip it. Unziping it will produce a Readme file and two folders, lib and clit18.
2) $cd lib
4) $cd ../clit18
5) Change the Makefile and set the correct path of libtommath.a
6) $ make
That would install the clit in the system. The lit file can be converted using "clit filename.lit dirname/". To know more about the three mode of operations and about the command line options follow the unix tradition of "clit --help".
Monday, November 13, 2006
Saturday, November 04, 2006
pid = os.fork()
except OSError, e:
if (pid == 0):
That is all u need to create a daemon. I used the sched package to schedule the download of rss file repeatedly after some time interval and xml.dom.minidom to parse the file after it is downloaded. All took just some ten lines of code. Python rocks :)
Thursday, November 02, 2006
The movie sticks on firmly to the story and there was rarely a deviation from the main story line. There is not much heroism and not many unnecessary punch dialogues. Ajith seems to have done a lot of hard work and his acting is the most impressive feature of the movie. Ajith easily scores as the father and the psychic son. Asin looks pretty, comes then and there when we are about to forget that she is the heroine, dances in songs and leaves. Kanika(Enga school ponnu) has a bit more scope compared to Asin and has used the opportunity well. Other than that it is Ajith who rules. Looks like Ajith has regained his lost glory. No need to mention ARR as the songs were a hit even before one year. Three hours flies by, thanks to the fast paced and crisp narration by KSR.
Coming to the negatives, logics give way to actions in a number of situations. The story reminds you about some old films like theivamagan. The climax looks like something that u see in many of the tamil films. Apart from these the movie is great and is a huge entertainer. Would have enjoyed it to a greater extent if it was not for the fifth row seat.
Friday, October 27, 2006
1) Most of them are about a woman who has nothing in her life except problems. Problems of all sort come from all directions, from her friends, foes, relatives, passer by, dog, cat, ant, shit, bullshit ...
2) The role of heroine is mostly played by a retired movie actress and a whole bunch of others whom u can find in almost every serial from morning 10 to night 10.
3) Though there exist problem in every move, the heroine remains undeterred by those. She seems to have almost all good qualities that one could think of.
4) The number of people who dance for the title song exceeds the total number of characters in the serial.
5) The director seems to concentrate only on one thing, that is creating problems.
6) No problem has a solution. The problems exist till the very end and are usually solved at the final episode when the life long enemy suddenly becomes a dear friend . The older problems are pushed down the stack when new problems arise and are later popped out when the director runs out of ideas.
7) If director could not find any problems with existing characters new characters are introduced and new problems are created.
8 ) There is only one background music, the dull music that assists the sad atmosphere and puts the viewers in deep deep distress. 90% of the episodes have someone crying for something.
9) 10 minutes ads follow two to three lines of dialogue.
10) 90% of the guys are like me who have no other option other than something like this.
Monday, October 09, 2006
Tuesday, October 03, 2006
for (; ; )
Just one more semester to finish of my college life and enter into the corporate world. Hope the semester goes fine like the seventh semester but with a little learning and little concentration on my project. I never repented for wasting time in the seventh semester. Like how Tom says to Jerry "i know what i am doing may be bad.. still i am enjoying it". I would not be getting the college atmosphere anywhere. I think it is high time that i have some fun, movies, cricket... Hope the final chapter of my college life goes good.
Monday, October 02, 2006
Friday, September 29, 2006
Yesterday we had the zeroth review of the project and it went pretty cool. The questions were easy and the review lasted for about twenty minutes. Now it is time to do some hard work and start the implementation. For those who want to take a look at the presentation that we did for the review it is available here
Tuesday, September 26, 2006
Friday, September 22, 2006
Thursday, September 21, 2006
Monday, September 18, 2006
This year FStival was a great success with students from all over Madurai attending the event. The auditorium was packed with a overwhelming crowd of around 350. The chief guest for this year FStival was Mr. Kenneth Gonsalves from NRC - FOSS @ AU-KBC, chennai. Mr. Kenneth, a renowned geek in the FOSS world, gave an inspiring talk on "How FOSS makes you a great programmer". This was followed by the on stage Installation Debian session. Then it was time for XGL to steal the show. With cubes rotating while switching desktops, wobbling windows and menus, XGL looked great.
After all this came the most interesting part, the demo stalls. Thanks to the second year and third year students. They did their job well. They explained about the various tools in GNU/Linux starting from FOSS, Basic commands, Emacs, GCC, GIMP, GTK+ Glade, Games, Live CD & Education tools, Scilab, XGL, Latex, LAMP, Databases, CMS etc. They were also bombarded with a lot many questions from the enthusiastic crowd. It was a tough job indeed, explaining the same thing to more than 300. The CD burning students were kept busy all the time as they continued to receive CDs for burning various distributions. Hats off to all the juniors. The software freedom day ended with the demo stalls closing in the evening. In the mean time Sriram and myself managed to take some snaps of the whole event. Sriram also has a video of XGL demo. We would be publishing them soon in glugot and glug-madurai site.
On sunday it was great to see the software freedom day celebration as a news item in Dinamalar and Dinakaran. Thanks to the press people for spending their valuable time with us.
Thursday, September 14, 2006
Monday, September 11, 2006
The english books were hosted in stalls of famous book stores like Malligai, Turning point, HB etc. These were the stalls that attracted me a lot. When i saw Sidney Sheldon, Jeffrey Archer, John Grisham etc neatly arranged in shelf the lost desire of reading novels like this resurfaced. I remember reading a lot of novels during my school days and the habit slowly died out. The reason my school library was a huge repository of all these books. I would say that it had enough books to fuel the thirst of hungry students. Thats where i started reading Enid Blyton, Hardy boys, Nancy Drew and later switched over Sidney Sheldon, Jeffrey Archer, John Grisham etc. That habit slowly died out once i left the school. Still i would like to visit the school library once again just to see the collection they have.
Coming back to the book fair, i left the stalls with the desire of getting a novel increasing every moment i was waiting there. Managed to collect some tamil books and left the stalls. How we got out of the stalls is an interesting story. The entire place was fully packed and no effort was needed. The crowd kept pushing and we were out after some struggle. The stalls should have been little larger. Other than that is a good place to spend some time.
Wednesday, September 06, 2006
Sunday, September 03, 2006
Still the frog was there in the same position where i saw it first. I started the same old job, beating the bush with the hope of getting the snake out. At one point i found the snake moving inside the bush and whacked it with my stick. One more blow after that i started hearing hissing sounds. The sounds became strong and i realised the breed of snake. Ofcourse it was KING COBRA. It was there with its body raised to about 2feet and it has streched its hood and is making strong hissing sounds. The hood and hissing sound did wat it was supposed to do. I dont know where half of my courage went once i saw that snake. (summa saadha pambuntu nenachein, anna naaga pambuntu yaaruku theriyum)
An awesome and fearful sight it was. I backed off but my pet kept advancing and started barking. It was just 1 to 2 feet away. I thought it is going to be the last evening for my pet. Somehow managed to collect him and returned home. After tat still went there this time armed with some bricks and stones, still alone. I stayed a little away and threw some stones. But i could not find anything. So i returned home.
Encounters with snake is not something new to me. I started killing snakes right from my 4th standard and had killed all sorts of snakes. I remember killing a snake when i was 11 by stamping with my shoes. But this is the first encounter with cobra and this is the first time i have seen a snake standing against its opponent and this is the first time i felt some fear for a snake. Legends say that if you beat a cobra and dont kill, it remembers and take revenge on you even after years. Lets see. Already this incident has become a hot news for my nieghbours. I am hearing all sorts of stories now. Ok enough of the COBRA story i have CORBA exam tomorrow to study.
Wednesday, August 30, 2006
Sunday, August 27, 2006
The installation proceeded smoothly and there were just 6 easy steps to be done by the user after which the installer does all stuff while we sit back and relax. The GUI or GNOME looks good. But all the efforts seemed to be a waste when we were not able to find EMACS or gcc installed. This is my first experience with Ubuntu Dapper Drake. The next step would be to enable XGL and to test it. Heard that XGL rocks so eager to look how it looks. Though Drape drake looks good, has a good GUI and lot many features it is Debian that rocks. Waiting for the official release of Debian etch on December.
Wednesday, August 23, 2006
Dtrace was amazing and how the results were interpreted was little more amazing. Both the speakers had unique way of interpreting the bits and addresses thrown out by Dtrace. Zones & ZFS was interesting and are technologies for the future. Pratap who was one of the creators of Belenix also talked about the problems he encountered and the steps in creation of Belenix livecd. There were also instances where GNU/Linux was belittled while comparing it with Solaris. For guys like me who have great passion for GNU/Linux those facts were hard to digest. Except for that it was a great meeting with a lot of mind boggling stuff and introduced us to some great technologies. The opensolaris community has born in our madurai with the creation of Opensolaris user group called MOSUG which is an acronym of Madurai open solaris user group.
Sunday, August 06, 2006
Ravi has done his part well under his brother direction. Santhanam has managed to evoke some laughter from the crowd. It seems that Trisha has realised that it is important for an actress to show some actions and reactions and has tried hard to produce some also looks a little beautiful when compared to other movies. The film had a light doze of comedy throughout. The songs in the first half are gr8. Prabhu is serious throughtout the movie and shows a lot of emotions. Bhagyaraj impresses but does not have a great role to play. Richaa, Manivannan, kalabavan mani just come and go and do nothing.
But it was the sentiments that irritates at lot. Hero risking his life for a toy horse, hero eating rice mixed with chili powder, hero sleeping in the dung den etc etc irritates us a lot. Slightly over doze of sentiments and emotions. SSUE seems to be a film that can be seen together with the family. I could see a lot of crowd getting too involved with the movie and one guy was shouting something like "Oh god the villain has arrived". It may turn out to be a hit for Jeyam ravi.
Tuesday, July 25, 2006
1) To remove the "Edit primary links" u have to edit menu.inc files in the include directory. In Drupal 4.7.2 u have to comment lines 814 to 817. The lines could be easily identified.
2) To upload image in a page image module and img_assist modules available in Drupal is used. Drupal image icon can also be added to the Tinymce WYSIWYG editor for easy use. But even after doing all this image may not upload correctly. The problem may be because of the webserver. Apache2 should be configured with --enable-gd-imgstrttf --enable-gd-native-ttf for them to work correctly.
Thursday, July 20, 2006
Friday, July 14, 2006
Friday, July 07, 2006
NOWUK PIXJW JNPCP XGCFI AKXCZ PLQKO PAEWD KADGJ WJHKW APPPE AOIOA
Hint: It involves two steps with two standard encryption algorithms. In the first step remember the numbers 3,4,5. If deciphered it gives a meaningless text. The text can further be deciphered using the following example. If 'ATWILHA' represents the word "EXAMPLE" what would the resulting text represent. With these hints it would just take seconds to solve. Let me see who solves it. This is my first try with ciphers so i do not know about the quality of question.
Saturday, June 24, 2006
Friday, June 09, 2006
size = sizeof (tmpob);
printf ("Total size of structure : %d\n",size);
Predict the answer and give some explanation so that i may know the answer.
Wednesday, June 07, 2006
Sunday, June 04, 2006
Tuesday, May 30, 2006
Tuesday, May 23, 2006
Saturday, May 06, 2006
"Faith does not protect you. Medicine and airbags.... those are the things that protect you. God does not protect you. Intelligence protects you. Enlightenment. Put your faith in something with tangible results. How long has it been since someone walked on water? Modern miracles belong to science....computer, vaccines, space stations...........who needs god? No! Science is god.
Seems to be true.
Saturday, April 22, 2006
Afternoon & Evening : Come back from college at around 2:00pm. Too tired to start studying. Better sleep after a heavy lunch. Wake up at around 5:00 pm. All work and no play makes sen a dull boy. So better play for around 1/2 hrs. It would not be nice to shutdown the system without listening to songs. So listen to songs for 1/2 hrs.Now the time is 6.00pm. The evening looks pleasant. Go for a walk and come back by around 6:30pm.Call Nirmal and ask for the important questions. Spend the next 30 minutes creating the schedule. It turns out to be an optimistic schedule, 3 units for the night and two to be completed in the morning.
Night: Start studying the first question by around 7:15pm and continue till 8:15pm. The subjects are like rocket science. Mom and Dad arrive from office so spend some time with them. Suddenly the time becomes 9.00pm.Its time for dinner. Hmm the dinner also tastes good. So have a good dinner watching songs or serials in TV. Now the time is around 10.00pm, lot of portion to complete. Try studying the units sincerely, unfortunately end up sleeping in the chair. Dad asks to go to sleep(with a little anger). Obey him immediately. Set the alarm at 2.00am and go to sleep at around 10.30pm with just only one question completed.
Next Day morning : Wake up at around 5.00am. Wonder why the alarm did not strike and who switched it off at 2.00am. Too sleepy to study. Forgot to check mails yesterday so check mails,orkut and blogs for 1/2 hour. The time is around 5.30am. Still 4 and 1/2 units to complete. Start studying intensively. Newspaper boy comes at around 6.30am. Not knowing what is happening around the world would be bad. Spend 15 Min for sports and cinema news. Oops time is 7.00am. Got to catch A5 so that i could get a seat and use the 30 minutes in the bus effectively :), so it is time get started. Manage to catch B5 at the last minute that means it is not possible to open the book in the bus. Somehow manage to complete around 2 units in the bus and in between 9 and 9.30.
In the Exam Hall : Get the question paper. The first look of the question paper gives an impression that the question paper does not belong to us. Look at it keenly and laugh (looks to me like greek and latin). See praveen and musi, thank god they are also laughing. Start putting margins to all pages since that is going to be the only good thing in the answer sheets. Oh God ! the two marks are a little tough, compulsory question is not the expected one, no hope of touching questions from 4th and 5th unit. Write something in the paper for 3hours and get prepared to repeat all this for the next exam.
Net result : The internal marks may get a little lower. The probability of continuing the bad run in the externals gets a little higher.
Sunday, March 26, 2006
I lost track of what is going on in the politics of TamilNadu in the recent days. No clue about which all parties have formed what alliance. It is surprising to see how politicians could change sides so quickly. They keep talking about party's policy and kolgai always but when elections are announced all seem to evaporate so suddenly. Adding to all these are the new parties formed by actors. It is interesting to watch the campaigns of the actors, their talk is filled with punch dialogues and uncountable number of promises. Amidst all these i heard that 5 IIT graduates are going to contest. This is a good news and it would be much better if every contestant is well learned.
Sunday, March 12, 2006
Tuesday, March 07, 2006
And about the recent developments in the school, Mr.Sudhakaran has left the school so it is the turn of Mrs.Uma Ramesh of Maths department to act as the principal of the school. And Mr.Ramesh sir of Biology department is the vice principal. My favourite teacher Nagarajan sir of the physics department is the assistant principal. Mr.Rajkumar of biology department has left the school and is working as the vice principal in chethana school in Madurai. This is what i got from orkut and i am not sure how much of it is true. And i think they have purchased some more buses increasing the count further.
Monday, February 27, 2006
Monday, February 20, 2006
I had the oppurtunity to see the a part of the final match of the series. I came back in time to see the batting of Dravid, yuvraj and Dhoni. Yuvi and Dhoni were in great form through out the series. Their batting proved to be a cynosure to all eyes throughout the series. Yuvraj has been pretty consistent in this series. Yuvraj took the responsiblity and saw to that India won the final match comfortably. Though he was limping with cramps he made sure that India walk through the match with ease. Dhoni provided a excellent finish to the match with some thunderous sixes. Yuvraj and Dhoni's batting were absolute feast to the eyes. Dravid's role should not be underestimated. Because it was he who along with Yuvraj laid a very foundation preserving the wickets and making it easy for Dhoni at the end to go on with shots. On the whole India showed great confidence and temperment. The youngster took up the challenge and performed whenever needed. It was great to see youngsters like RP Singh and Sreesanth rising up to the occasion with some great performances.
On the other hand Pak though they were able to put up high targets they lacked depth in their bowling without Akthar. I was not able to see the other matches but in the final match their fielding was a little worse. They missed some catches and too many runouts. There were also some overthrows which in the end reduced pressure on India and made it easy for them. Pak batsmen and bowlers have a lot of work to be done.
Saturday, February 18, 2006
The next day schedule consisted of visit to Padhmanabapuram samy temple, US technology. US Technology is a company in Technopark and it is basically a IT service company. They explained us about their company practices and we had an opportunity to visit their office. After that we started our journey back to Madurai after dinner at Nagerkovil. We reached Mdu at around 5:30 in Wednesday morning and i reached home at around 7.
More snaps at http://www.flickr.com/photos/senthilkumaran
Sunday, February 12, 2006
The performance of Indian team in the first ODI was really gr8. If sachin had not been given out to a silly appeal the score would have been much higher. Much to my annoyance the topic that was much discussed after the match was the dismissal of the captain of the opponent team. If at all there is something to be discussed then it is the dismissal of Sachin. And someone criticized Dravid stating that it was not sportsmanship to appeal like that. I would say that the true sportsmanship is to leave the field when the umpires give him out and not to comment about it further. The worst comment that i read in newspaper was "India wanted to win the match desperately either by hook or crook" which was said by a famous cricketer. When we look at the history of cricket we can easily determine the team which has the habit of tampering the ball and using crooky technicques to win the match and surely it was not India. So far Indians have played the game in a way how it is to be played, that is with true sportsmanship and like gentlemen. When we look at the end of first match we can easily find the team which was desperate to leave the field. The weather condition was the same through out the match. Probably if the score was three eleven for five they would have continued till the end of match. Probably i was a bit tensed after seeing the comments about the indian team. Anyway the match is over and i am not a great player to comment about the match.
One more information I started typing this post last night and i slept leaving the computer on. I woke up in the morning startled to see my computer still running. I switched on my computer at around 10 in night and i slept leaving the computer on and i woke up around 7 in the morning. This is not the first time that i am doing this. Should not repeat this again.
Saturday, February 11, 2006
Wednesday, February 08, 2006
Interesting Death Facts!
Interesting Fact #1: Eunuchs are MOST likely to be threatened by the mafia.
Interesting Fact #2: Guys are 10% MORE likely than gals to answer random math questions.
Interesting Fact #3: Guys are 8% MORE likely than gals to answer random math questions CORRECTLY.
Interesting Fact #4: Those who claim to "use to have guy parts, but now have gal parts" are predicted to die the soonest at 40; next are eunuchs at 42.
Interesting Fact #5: Approximately 3,500 people take this quiz DAILY
Saturday, January 28, 2006
Overall, you scored as follows:
29% scored higher (more computer geeky),
1% scored the same, and
70% scored lower (less geeky).
Compared to those in the same age group as you:
31% scored higher (more computer geeky),
1% scored the same, and
68% scored lower (less geeky).
The average score for the gals is 38, while the guy average is 56.
Of the Computer Geek Quiz Takers:
17% are scared of links
17% of Windows users curse it
4% of Linux users selected Bill Gates as their hero