Some Random Thoughts..
Just a place to put some random thoughts..

As you might see, there is nothing much happening in life but for one thing, SOS. This thing is so addictive that I cant seem to concentrate on anything else right now. Feeling the excitement that is the property of hackerdom.

I am at home now and just downloaded the SOS source. After many days I dint even login to blogger.com from work. Looks like you dont want to write about it if something interesting is going on :). Sooner or later the dust settles and you say "Oh boy! what a rush!!! I must write about it!" :).

Today I generally cleaned up the code. Found and fixed a couple of bugs in keyboard driver, rewrote some library functions. Now I am reading the memory size and the bios memory map from grub multiboot info header. All in all, all set to do a basic memory manager. Bombs Away!!

Today I was neck deep in some work that I had to do. Could not find time to work on SOS, chat on MSN or play table tennis. For last couple of days I dint even post the puzzles also. But I do take out time to solve atleast one everyday. One day, maybe tomorrow, I will post all the solved puzzles.

I also investigated the ways to go multitasking. Next big thing in SOS will be a small round-robin scheduler with 2-3 tasks .. all in ring0.

Today I finished with the keyboard driver. The stupid thing was causing a triple fault. As a stupid newbie, I tried to write ISRs in C and that was the reason behind triple faults. The compiler was generation code using "CALL" and not "JMP" and it was pushing normal things (EBP etc.) on stack. How stupid can I get??

Anyways It is working now. I also have a small shell with it which uses keyboard driver. Screen now scrolls. All and all, a good(?!?), solid(?!?!), working(?!?!?) kernel!

Ok. I think I should call it v0.000001 but it works. I am putting up the for the world(!?) to download and test. Heres a simple readme for the thing.

  1. You have to boot this with GRUB.
  2. On GRUB splash screen press 'c' for the command prompt.
    • type "kernel [path to sos.img on any ext2/3 partition]"
    • type "boot"

  3. SOS should boot up to protected mode now.
  4. A simple integrated shell is given. Only available command is "dump" which will show a register dump (ok.. only two register.. after all its just a proof-of-concept!)
Beware! It could make your CPU smoke!


Somehow, as usual, Indians have managed to go into the finals of Asia Cup. It was a do-or-die situation (or "do-and-die" as Mr. Inzamam says everytime :P ) for indians when they played against SriLankans on Tuesday. Sehwag clicked. So did Ganguly and Yuvi. Its amazing if you see the success ratio when Yuvi makes a 50. I am sure its more than 80%.

But Jayasuriya struck back and struck back hard. He made a century and India was kept out of the game until he was there. But in the last five overs Sehwag turned on the heat by bowling his off-spinners. He got Jayasuriya and in the end Indians won by 4 runs. Pretty interesting match.

Now we will play against Lanka, again, on Sunday. I have a bet that India will win again. A chicken burger at Burger King, Pune (not at all to be mistaken with BK in US) is at stake!
Incase if you are wondering what I did yesterday heres the report:

I worked on SOS. I had printf and other functions ready and I wanted to proceed with keyboard driver. For that you first need to understand i8259 PIC, IDTs, IRQs and how to setup everything. After going through a lot of websites, I got it working yesterday. Now I am getting k/b (INT 9/IRQ1) and timer (INT8/IRQ0). All other IRQs are masked using i8259. For someone who has never done it before took a lot of time to get thngs right. In theory everything fits in alright but something was messed up somewhere and it was generating triple faults.

Now that it is working, I am ready to write a keyboard driver. Before that I polished the makefile, created a directory structure. Uptill now it was just a single C file, kernel32.c. I splitted it into 4-5 files according to the functionality.

The code base is taking some shape now. Basic developement framework (makefiles, test setup) is ready. Now, I think, is the time to slow down a little and plan things.
Today after a long time I got to spend some time on SOS. It was working well with Bochs but bochs was giving me some problems regarding video mem (good old 0xb8000) refreshes etc. So I decided to give it a try on . I downloaded it and tried to run SOS kernel on that. To my surprise it failed and the reason was A20! The beast was back. Then I tried SOS kernel on a real machine and there also it gave me "A20 disabled" error. This was amazing. The method to enable A20 that worked on bochs was failing on real hardware as well as on VMware.

Uptill now I read millions of bootsector primers on the net and each had started with the same thing. They all recommend NOT to write your own bootsector and use boot loaders like . But I dint take it because I wanted to do it from scratch. And I did it on one architecture. Now I dont have time as well as enthusiasm to do it for every architecture. I told myself that I learned what I wanted and now its no disgrace to use GRUB as a boot loader :).

I found a on google. This is an amazing document and a must if you are developing a kernel.

And yes.. SOS now boots using GRUB. Its amazing how powerful GRUB is. Its almost unbelievable. I just had to put a Multiboot header in an elf file with .text starting from 1MB. Put it on a floppy, with ext2 or FAT, in /boot/grub directory and you are ready to go!!! Simply Bloody Amazing!

I also coded my own printf (i call it kprint), my own hex/dec_to_string functions. Its just amazing how much time I can spend on the actual kernal library now that GRUB is doing the loading.

So the advise is : Remember GRUB is your friend!
Puzzle:
An Arab sheikh is old and must will his fortune to one of his two sons. He makes a proposition. His two sons will ride their camels in a race, and whichever camel crosses the finish line last will win the fortune for its owner. During the race, the two brothers wander aimlessly for days, neither willing to cross the finish line. In desperation, they ask a wise man for advice. He tells them something; then the brothers leap onto the camels and charge toward the finish line. What did the wise man say?

Answer:
Its in white so that it wouldnt be a spoiler to curiour minds. Just select using your mouse if you are a coward ;)
Too simple. Exchange the camels.
Banking! Its a mystery to me. I dont know how it works and why it works. I just know that its a place where all my hard-earned(!) money is kept safe. And I dont want to know anything else about it also.

On Sunday, a new came and it shook me a lot. A bank called "Global Trust Bank", a well know bank, went down. And the news is that you cant take out more than 10k Rs. till Oct 23rd. Thats frightening. It happened to GTB todays, it could be my bank next. I wonder if its a normal paranoia or something is really gonna go boom.
Yes, a weird title. It means that I finished "Bringing down the house", the blackjack book and started (and almost finished) with (which, by the way, I am reading for the second time and has something to do with the "Cats" in the title).

The first one is a good book, a true story. But in the end it feels like there is something missing. An anti-climax. I wished there was a twist in the tale. But like all other true stories, life doesnt provide a lot of twists. :) But a good recommended book for people who love adventures.

Second one is a Wodehouse book. An amazing Bertie and Jeeves adventure. Funny in a mild way but very very very pleasant. :)
When Sunil Gavaskar said that the indian performance can be described as forgetable while commentating during IndoPak cricket match in Asia cup on Sunday, I totally agreed.

First things first, the team composition was messed up. We dont need five specialist bowlers. I dont know why they are messing with the team balance. And this proved fatal. Balaji did poorly in his 7 overs and Tendulkar had to fill in for him. As usual Tendulkar did a good job and he was the main reason why Pakis were retained under 320. They made 300 in the end.

They messed up in the batting order again. Ganguly came in as number three when Sehwag got out, again. cheaply. This is the place reserved for the best and the most reliable batsman in the team and Ganguly is far from it. Dravid should come as number three.

Anyways, we lost by some 60 runs. Tendulkar made 70 odd. The next highest was Pathan(!) with 38. But in the end it was interesting. Indians has this tact of making things worthwhile of the spectators. We needed to get 241 runs to get a bonus point and that would keep the hopes of reaching the finals alive. In the last over we needed 5 runs and somehow, with a lot of luck and bad throwing by Moin, we reached the figure. And even though we lost by a large margin, I found myself punching the air with joy! ;)
I am not a Spider-Man buff. For me he is just a mutant superhero who beats up bad guys. And that is what I had expected when I went for Spider-Man 2 on last Friday. The movie is full of senti stuff where Peter Parker keeps crying and has identity crisis. Movie tries to give a "Human Touch" to the superhero. Looks like "Human Touch" is a must these days for american audience. Americans think that they are not just money minded people as the world thinks they are. They want to think of themselves as super sensitive bunch of people who care about the pain in the world. Whatever. Hollywood is trying to cash of this mentality and giving an over-dose of "Human Touch". Superheroes are superhumans and they should not be handle with an over-dose of human-touch. I, for one, dont like a spiderman who cries all the time, delivers pizzas in his free time or takes an elevator. At the end of the movie evryone and their cousins know about the true identity of spiderman. Thats another no-no for a superhero. For me batman is still THE superhero because he is a pure human being and he has lots of gadgets and batmobile and bat-cave! :)

But some of the action sequences in the movie are really good. I found myself at the edge of the seat, biting my nails whenever Spidey chases Doc-Oc. Last time when this had happened to me was in matrix reloaded free way chase. A rare thing these days.

All in all, not a bad movie but could have done better. Or it would have made more sense if it was called "Peter Parker II".
Yes! the weekend has started!

Leaving for "Spidey 2" now. From there I will be going to cousin's place. I am planning to spend the weekend with him.

See ya then. Have a nice weekend :)
Puzzle:
You are a prisoner in a foreign land. your fate will be determined by a little game. there are two jars, one with 50 white marbles, and one with 50 black marbles. at this point, you are allowed to redistribute the marbles however you wish (e.g. swap a black marble with a white marble, etc.): the only requirement is that after you are done with the redistribution, every marble must be in one of the two jars. afterwards, both jars will be shaken up, and you will be blindfolded and presented with one of the jars at random. then you pick one marble out of the jar given to you. if the marble you pull out is white, you live; if black, you die. how should you redistribute the marbles to maximize the probability that you live; what is this maximum probability (roughly)?

Answer:
Even though the puzzle mentions things like probability, I used common sense (anways probability is nothing but common sense). If I was that prisoner, I would put 49 white and 50 black marbles in one jar and 1 white marble in the other jar. That way If i get the first jar, chances of my survival are almost 50% (because 49 out of 99 marbles are white) and if i get the second jar the chances are 100%. Combining these two the probability is roughly 75%. Not bad atall.
A couple of days back I stumbled across a brain teaser, "Petals around the rose". It was fun to do and was a good pass time too. As I was going through it, I remembered a like these. I thought I should do a "Puzzle-a-day". Sound like a good idea. This should help my gray cells busy. :)
Tomorrow (notice the small hyphen between "spider" and "man"? One day I was watching a documentory on Stan Lee, creator of spider-man. He was talking about how he came to the name spider-man. First he called the hero "Spiderman" but later felt like it looked very similar to "Superman". So he put a hyphen in between. He is very passionate about that little hyphen, same as Richard Stallman is passionate about calling it GNU/Linux!) is coming in theatres here. And I have tickets for tomorrow evening. One friend told me that its a stupid romantic senti-types movie.. but hey.. they have made it and its out duty to watch it! :)
Today was a "work" day. Not that I dont work on other days but some days make you feel good about the work you do on that particular day. Today I finished one of the major code that was on my TODO for some days and was on-hold for someone else's work. Almost done with it and iot feels great.

Also played a lot of Table-Tennis today. You know how it is.. you win some, you lose some.

Thanks to "Bringing down the house", I know a lot about blackjack now. Read some articles about Basic Strategies and basic hi-lo counting. The temptation to buy a pack of cards and practice some BS is getting stronger! MUST.. NOT.. GIVE.. UP!! :)
Yesterday (or day before) I started reading . I saw the name in Amazon's best seller list a couple of weeks back and thought it would be an interesting read. Since then I was searching for this book but dint get it in Mumbai. Finally on sunday I got it in Landmark, the book shop in , my favourite mall in Bangalore (since it has India's only Apple Store!).

The book is definitely interesting. I have been to Vegas. But never felt like gambling. This book makes me feel that I should go back there and crack the blackjack! :) Its a fun read.. atleast for first 80 pages :)
Just checked my profile. About a month back I posted an entry that I coumpleted a Century.
Looks like I recently posted my 150th entry and the word count has gone more than 15000 words. Thats some consistency from a inconsistent-to-the-core guy. :)

A couple of days back someone sent me a link to a game called . I dint have much time to read through the Bill Gates article on that page that day.

Today I had some(!!??) free time. Pondered over the game for not more than 10 minutes. And in the end it was too easy. Anyone who needs more than 15 mins to crack this has to be an ass. Well.. Bill dint get it for an hour and a half ;)

PS. : The javascript dint work on firefox, mozilla as well as Galeon. Had to go to a windows machine to confirm my answers. *sigh*.
Today morning I got up, got ready. I usually lock bedroom doors so that cook who comes in the evening has access only to the kitchen. As usual I locked the door only to realize that I locked the keys inside! My roommate has another set of keys. He gave it to me when he left for US. And these keys were safe(!?) inside my cupboard. All these things flashed infront of my eyes as soon as I locked the door. I asked the neighbour if the landlord has given him the keys to the bedroom and got a negetive response. He told me that only landlord has one set of keys. The problem was my landlord/landlady they stay in Hyderabad. I also asked the security guy but even he dint have the keys.

Now only option was to go to a keymaker and get him to unlock the door. I went to a keymaker I know from a couple of days back when my friend had to get a key duplicated. He said it could be done. We came back to the house. There were three of them. They entered the house, saw the lock, put a key inside, removed it, hammered it a little, put it inside again, twisted it a couple of time and WOW!!!! They opened the door in less than a minute. That was just unbelievable. By then, my paranoid mind was thinking about all the possible thing these guys could do now that they know where I live. No lock would be too good for them. Just like any computer system can be hacked, any door can be unlocked.

So much for the security!
Well.. it was always there, but now Indian team is in action in Srilanka. Asia Cup has begun. On friday India played against UAE and won. Sehwag got run out in the first over. Sachin soon followed. Rahul "The dependable" Dravid smashed a century.

On Sunday, we played against SriLanka and lost. But we gave an ok fight. Sehwag was ran out again and Saching followed. Rahul "the dependable" Dravid smashes 80 odd runs. This is a routine thing these days. Yuvi also played well.
On Saturday, I saw . Its nice that they are trying out new subjects and new ideas in bollywood now. But this one failed miserably. The movie is good in parts but as a whole its disappointing. Tusshar Kapur has done well. The director is not sure about whole has the lead role in the film, Vishnu Prasad played by Tusshar or Mohini's assets. Antara Mali tries rto do an Urmila in the movie. She is so eager to show her "assets" that its almost funny. She has a good figure but she overuse it. As they say, "With great figure comes great responsibility" and Antara Mali fails to handle the responsibility.

Only good thing about the movie was I saw it in a theatre in 35 bucks. In 35 buck, I can afford to see a movie like that :)
The reason I am googling these days for things like , , among other things is the book I was reading. Yesterday I finished "The Da Vinci Code". Its a page turner. Until you read 200 pages you dont know whats happening. The key to successful stories is "Never let people know whats happening". The name of the book could have been "Da Vinci in 24 hours".

Its a conspiracy theory against the Chruch. But in the end you feel like the author doesnt want to blame church even though till the end he makes you believe that bad guys are operating from Vatican. Noone likes controversies these days (except . But everyone loves consipary theories.

If you are still wondering why this book is such a huge success, you have to read

P.S. (Thats PostScript and not Priory of Sion): After clicking on the above page, if Miami Herald asks you for registration, just delete all the cookies by "miami.com" and try again.
Today Blogger came up with a new WYSIWYG post editor.. and its COOL!
You can have :
  1. Or Numbered lists.
  2. like this
You can also have
Quotes!
It is cool.. Blogger is going places!
Its not everyday you change your religion and browser (and your jeans too). Today I came across . For sometime now I have been using and was very passionate about it. It has worked amazingly well for me for last couple of years. People were trying to give me many reasons to change to . One of them was true. Gnome team has stopped further galeon releases. So finally today I downloaded Firefox 0.9.1.

So far.. So good.
It looks good. It is fast. I followed the tweak instructions and now its even faster. They dint have bookmark import Galeon bookmark import facility. I googled and found that firefox/mozilla uses html bookmarks while galeon uses xml. I also found a page describing the solution.

1. Open galeon bookmark manager. Save bookmarks as mozilla bookmarks in some html file.
2. Open firefox bookmark manager and import bookmarks from saved file.

Another thing I was used to was the close buttons on the tabs. So I googled again and found . This is a must for everyone. This gives the close buttons on the tab and MUCH MUCH more.

I think I will like it. But Galeon will have a special place in my computer :)
I got so obsessed by the blog i saw yesterday that i created a similar (but better :P) one myself! Here you go.. and see my

Enjoy!
Figured out how Terminal Island works. Not so difficult. Thats exactly what Dr. Watson says after Holms solves the mistery.

It basically creates a table with two rows. Something like this:




type help


[guest@some-ramdom-thoughts /]$





Now the text input field in the 2nd row is your commnad line. Whenever "Enter" is pressed, a javascript is called which copies the hardcoded response at the end of the first row. And thats it! just put a black background, some nice fonts and you are ready to roll. I already have a of my own! :)

I have been browsing for so many years. Last time I felt amazed by some webpage was back when I saw some flash animation for the first time. After that nothing much for last couple of years.

Today I say and I'm AMAZED! Mind blowing stuff! I want a blog like that. :)
[Mother and her two-year old daughter sitting on a bench in a park]

Girl:Mommy, what is that?
Mother:Its a crow.

[Next day.. same place]

Girl:Mommy, what is that?
Mother:Its a crow.

[Next day.. same place]

Girl:Mommy, what is that?
Mother:Its a crow.

[Next day.. same place]

Girl:Mommy, what is that?
Mother:Its a crow.

[some day 20 years later.. mother is trying to learn computer basics]

Mother: Hey.. how do i do this?
Girl: Click here. and thats it.

[Next day]

Mother:Hey.. how do i do this?
Girl:Cant you remember a small thing??? HOW MANY TIMES DO I HAVE TO TELL YOU THE SAME THING!

------------------------------------------------------------------

Well.. times have changed!
When doc was examining me, I took a peek at his computer screen. I was rather shocked/surprised to see the good old .

Me: "Doctor, why dont you use MS Word?"
Doc: A smile that said I-have-heard-this-question-before. "Even my son asks the same question"
Me: "Well?"
Doc: "Point-and-click takes too much of my time"
Me: "But its userfriendly"
Doc: "And I dont feel in control. If i write '1)' and press enter it gives me '2)' even if i dont want it"
Me: "hmmm"
Doc: "Only problem with WS is 8.3 format"
Me: "hmmm..."
Doc: "But one day MS will stop supporting all the other editors and I will have to use Word".
Me and Doc: *sigh*


Thats one smart doc. He would have been a great geek. :)

Just modified the code to use C in 32-bit code. It was rather easy. Only thing you have to do is come up with the correct Makefile. Now it is working. I found link("Daniel's NASM bootstrap tutorial","http://hem.passagen.se/danma/nboot.htm") very helpful in this. Now I will get printk working as soon as possible.
Yes.. finally this is "NOW". Finished "Jennifer Government" in the bus. Pretty ok book. The concept is cool. And its pretty smart too. I liked it. Today I will start with . I never buy such thriller kind of books. But this one is coming infront of my eyes so often these days that I picked it up in Mumbai.
This is getting boring now, all these flash backs! :P

Got up. Had a haircut. Went to CA. Had lunch with school friends. Went to Shoppers' Stop and bought 2 jeans. Went to Uncle's place. Cought a bus to Bangalore at 7:30 in the eve. And Thats all. Over and Out!
It was a saturday. Made a new friend at Smriti's place. A small kid called Sunil. He had a hole in his heart and was operated a couple of months back. Very jumpy and fun to be with.

Had gone to Giant Hypermart in Malad, Mumbai. Looks exactly like any mall in US. Bought 2 more shirts there. Total has gone upto 6 shirts now! :)

Came back to pune in the night at 10. Went straight to a hotel called Darshan.
Got up in the morning and went to Mumbai. Smriti gave me two more T-shirts there. In Shoppers' Stop, saw this . Pretty imressive and very convinient. Fixed Smriti's Windows machine. Now I can fix Windows also. This is scary!! Went to Pizza Hut in the evening. Ate a LOT!
Birthday! Got 4 shirts! Had gone to a place called . Its a hill resort outside Pune. Took almost an hour to reach there. It was cool. The weather was amazing. The owner started it when he was 66 years old. And its been 6 years now. That man surely dint look 72. Thats some fitness! Played carrom and table tennis there. Had a nice time. From there went to the doc directly to get my shoulder checked. I had a very interesting discussion with him (here I will put the link to the post for that later). They took an X-ray and found out that I have a small hairline fracture in my left shoulder. AMAZING! I was thrilled.. dunno why. He told me to do some exercizes.

Went to Uncle's home after that. Dinner and slept. Pretty nice day.
I left office at about 3:30 and went to airport. I took two books with me. One was Alexander I which I had started a long time back. Its a shame really that I just sat on it for so many days. And 2nd one was . These days I go and pick up books by random authors, this one was one of them. In flight I finished Alexander. When I was landing in Pune I could see a train from up. I wanted to show it to someone. Travelling alone in a plane is as boring as travelling alone in bus. But its fast :).

Family people had come to pick me up in the new . Its the new MUV by Chevy and their competitor is . We had a Qualis till last month. Sold that and bought Tavera. Tavera is longer in length but shorter. Inside the wooden finish on the dashboard looks really cool. The gear stick looks like coming out straight from an old truck, kinda ugly. But overall interiors are great. All four windowns are power windows unlike two in Qualis. The third row seats are a joke. There is absolutely no leg room there. Qualis on the other hand has good leg room for all three rows. Power wise its good, thats what people told me. It has more torque or something. It makes more noise that Qualis initially but after 30 kmph its as smooth as Qualis. Overall impression is "Its good for long drive but not that great in city". Also the milage is supposed to be better than Qualis.

Went home and decided to go for a late night movie show at INOX. Saw Lakshya again with family. Came home at 2 in the morning.
Got back at 12 from my LONG weekend. Came directly to office (thats sincerity for you! :P). I had a great time in Pune and Mumbai. Next few posts are gonna be *FLASH BACKS* from the weekend. :)
Today when I logged in , I saw this :

Today's fortune:
You will travel far and wide, both for pleasure and business.

How true is that?! I am all packed for the LONG weekend. I will leave at around 3:30 and reach Pune at 6ish. I dont have a computer there (actually I do. but no linux on it). I will try my best to post from there. I am coming back on 12th.

Things to do at Pune :
1) Catch a movie at Inox/Esquare
2) Kathi kabab at Kapila or Olympia
3) Read
4) Meet friends (School/calsoft)
5) etc.

I also have to go for clothes shopping.. ugh!
The question for today was: Who really need ? I understand why it is there (legacy x86 blah blah..) but is there anyone who runs an 8086 application on Pentium? But it is still there and you still have to enable it. And thats exactly what I did. To make the matters worse, the method to enable it is not the same for all the architectures. I just use the normal 8042 method which works on my machine.. and in bochs. I went through the and was feeling giddy immediately.

Anyways, after that I looked for and initialized gdtr. That was not very difficult. Currently I am using ring 0 data and code segments. And then the natural thing to do was to enable PE bit in CR0 (Thats the whole purpose of this excersise.. isnt it?) :).

Now I am in 32-bit protected mode. From tomorrow, I will start with screen buffer functions in C!

Today I wanted to search and replace a string in some thousands of files. The way I did it is :

find . -name [pattern for file names] | xargs perl -pi 's/[search]/[replace]/g'

I wonder how Windows people do it. I am sure there is a shareware demo of some program somewhere with ten nice GUI screens (including an Installer with thirteen NEXT buttons and atleast two I AGREE buttons) to do this which will modify the registry in thousand other irrelevant places.
My prediction for Euro 2004 came true. Greece won against the favourite home team Portugal by 1-0. If you wanna know your future or if you are a gambler who wants to make millions, call me at 1-800-ORACLE! ;)
Yesterday I modified the loader to read the kernel from the disk. This is modular. It will read the kernel from a filesystem (most probably FAT12 or minix) eventually. Next task is to enable A20, setup GDT and yes, get into protected mode. Use of pretection is always good. ;)
I dint see any movie for almost a month. It was just the lull before the storm (so to speak ;)). Saw four films last week. Thats cool. Feels like I am back! Way to go! Bombs Away! :)

And will be watching more movies this week because I am going to Pune (and Mumbai) for four days this week!! Cool! I have booked the ticket and tomorrow will get it. I am flying (ahem! :P) on Wednesday and coming back (by road) on Monday. Looking forward to it.
Today evening I saw Troy. Technically its a very good movie but thats not surprising. These days all movies are technically good as a rule. But I am just amazed at the story. They say it was written thousands of years ago. And the situation, the characters are still relevent. They might have diverted from the real epic but I still think its the grand-dad of all the stories. Its right up there with the hindu epics like Ramayana and Mahabharat. I kept thinking about what they did to "Asoka". It was cheap and disgusting. Ashoka deserves a better story teller. I am waiting for the day when someone comes up with a Mahabharata movie which is as good as this one.

Some sports news that I had rightly predicted.

1) A beautiful 17 year old russian, Maria Sharapova, won against Serena Williams in the Wimbledom Ladies Final.

2) Roger Federer won against Andy Rodick in Men's final.

Some more predictions :

1) Greece will win Euro 2004.

Yes. Posting this from home with my computer and my cell. Home Sweet Home.

Yesterday, Adaptec took us out for a movie. Saw Lakshya. Pretty Impressive. Movie is a bit slow but its not boring. Hrithik has done a good job. Cinematography is amazing. And in one of the scenes, Aby Baby, who plays a maharashtrian military man talk in Marathi. Ofcourse I whistled and hooted there :).

In other news: . Pretty COOL! :)
Why do people think that its difficult to write poetry? Its very easy. Very very easy, I say. But getting it published was a difficult task. But this is information age, baby! You can come up with any kind of junk (unlike this blog :P) and get it published on .

For example:
Go here and search for a so called poet called
Freemont R. Pustule. Then look for one of his poem called "How Much I Love You". Read that. Now get your favourite pen (or editor.. if you are a geek), write some random words and send it to poetry.com!.

Note: I could have posted a link to that poem rather than posting the procedure above. But I just want this blog to be a little interactive. ;)
Today they unpacked the table tennis table in our new office. Played almost after a month. Nice! :)
Yesterday evening I went home and was surprised to see ESPN reappearing in the channel list. I wanted to watch Euro 2004 semi. And correction, it was between Holland and Portugal and not Holland and Greece as I had written yesterday. I kept awake till 12:30. Saw first half and then dozed off dont know when. But I remember seein Portugal leading 2:1. And it finally went on to win the match with the same score. That was expected. These days host countries do surprisingly (and suspisiously) well in soccer tournaments.

Today morning I came to office at 7 in the morning. The meeting went on for 4 hours. Last night I was browsing through the small boot sector kernel I had written some 4 months back (Yes. Finally I got my machine shifted to my new house a couple of days ago). I got enthusiastic again and today I had some spare time so now I have got a small boot sector kernel with a small shell working. It is fun. Written completely in Assembly. Tested it with and also with a real floppy. I will upload the code when it starts doing something interesting. I am currently in 16 bits but planning to go 32 bit very soon. :)
SOS Update
As you might see, there is nothing much happening in life but for one thing, SOS. This thing is so addictive that I cant seem to concentrate on anything else right now. Feeling the excitement that is the property of hackerdom.

I am at home now and just downloaded the SOS source. After many days I dint even login to blogger.com from work. Looks like you dont want to write about it if something interesting is going on :). Sooner or later the dust settles and you say "Oh boy! what a rush!!! I must write about it!" :).

Today I generally cleaned up the code. Found and fixed a couple of bugs in keyboard driver, rewrote some library functions. Now I am reading the memory size and the bios memory map from grub multiboot info header. All in all, all set to do a basic memory manager. Bombs Away!!


posted by rumplestiltskin @ 8:34 pm 0 comments

The day
Today I was neck deep in some work that I had to do. Could not find time to work on SOS, chat on MSN or play table tennis. For last couple of days I dint even post the puzzles also. But I do take out time to solve atleast one everyday. One day, maybe tomorrow, I will post all the solved puzzles.

I also investigated the ways to go multitasking. Next big thing in SOS will be a small round-robin scheduler with 2-3 tasks .. all in ring0.


posted by rumplestiltskin @ 6:28 pm 0 comments

SOS update (Ready for the world!)
Today I finished with the keyboard driver. The stupid thing was causing a triple fault. As a stupid newbie, I tried to write ISRs in C and that was the reason behind triple faults. The compiler was generation code using "CALL" and not "JMP" and it was pushing normal things (EBP etc.) on stack. How stupid can I get??

Anyways It is working now. I also have a small shell with it which uses keyboard driver. Screen now scrolls. All and all, a good(?!?), solid(?!?!), working(?!?!?) kernel!

Ok. I think I should call it v0.000001 but it works. I am putting up the for the world(!?) to download and test. Heres a simple readme for the thing.

  1. You have to boot this with GRUB.
  2. On GRUB splash screen press 'c' for the command prompt.
    • type "kernel [path to sos.img on any ext2/3 partition]"
    • type "boot"

  3. SOS should boot up to protected mode now.
  4. A simple integrated shell is given. Only available command is "dump" which will show a register dump (ok.. only two register.. after all its just a proof-of-concept!)
Beware! It could make your CPU smoke!



posted by rumplestiltskin @ 7:25 pm 0 comments

We are in the finals
Somehow, as usual, Indians have managed to go into the finals of Asia Cup. It was a do-or-die situation (or "do-and-die" as Mr. Inzamam says everytime :P ) for indians when they played against SriLankans on Tuesday. Sehwag clicked. So did Ganguly and Yuvi. Its amazing if you see the success ratio when Yuvi makes a 50. I am sure its more than 80%.

But Jayasuriya struck back and struck back hard. He made a century and India was kept out of the game until he was there. But in the last five overs Sehwag turned on the heat by bowling his off-spinners. He got Jayasuriya and in the end Indians won by 4 runs. Pretty interesting match.

Now we will play against Lanka, again, on Sunday. I have a bet that India will win again. A chicken burger at Burger King, Pune (not at all to be mistaken with BK in US) is at stake!

posted by rumplestiltskin @ 7:13 pm 0 comments

SOS update (or Too busy to do anything else)
Incase if you are wondering what I did yesterday heres the report:

I worked on SOS. I had printf and other functions ready and I wanted to proceed with keyboard driver. For that you first need to understand i8259 PIC, IDTs, IRQs and how to setup everything. After going through a lot of websites, I got it working yesterday. Now I am getting k/b (INT 9/IRQ1) and timer (INT8/IRQ0). All other IRQs are masked using i8259. For someone who has never done it before took a lot of time to get thngs right. In theory everything fits in alright but something was messed up somewhere and it was generating triple faults.

Now that it is working, I am ready to write a keyboard driver. Before that I polished the makefile, created a directory structure. Uptill now it was just a single C file, kernel32.c. I splitted it into 4-5 files according to the functionality.

The code base is taking some shape now. Basic developement framework (makefiles, test setup) is ready. Now, I think, is the time to slow down a little and plan things.

posted by rumplestiltskin @ 12:42 pm 0 comments

SOS update
Today after a long time I got to spend some time on SOS. It was working well with Bochs but bochs was giving me some problems regarding video mem (good old 0xb8000) refreshes etc. So I decided to give it a try on . I downloaded it and tried to run SOS kernel on that. To my surprise it failed and the reason was A20! The beast was back. Then I tried SOS kernel on a real machine and there also it gave me "A20 disabled" error. This was amazing. The method to enable A20 that worked on bochs was failing on real hardware as well as on VMware.

Uptill now I read millions of bootsector primers on the net and each had started with the same thing. They all recommend NOT to write your own bootsector and use boot loaders like . But I dint take it because I wanted to do it from scratch. And I did it on one architecture. Now I dont have time as well as enthusiasm to do it for every architecture. I told myself that I learned what I wanted and now its no disgrace to use GRUB as a boot loader :).

I found a on google. This is an amazing document and a must if you are developing a kernel.

And yes.. SOS now boots using GRUB. Its amazing how powerful GRUB is. Its almost unbelievable. I just had to put a Multiboot header in an elf file with .text starting from 1MB. Put it on a floppy, with ext2 or FAT, in /boot/grub directory and you are ready to go!!! Simply Bloody Amazing!

I also coded my own printf (i call it kprint), my own hex/dec_to_string functions. Its just amazing how much time I can spend on the actual kernal library now that GRUB is doing the loading.

So the advise is : Remember GRUB is your friend!

posted by rumplestiltskin @ 7:35 pm 0 comments

Todays Puzzle: ARAB SHEIKH CAMELS
Puzzle:
An Arab sheikh is old and must will his fortune to one of his two sons. He makes a proposition. His two sons will ride their camels in a race, and whichever camel crosses the finish line last will win the fortune for its owner. During the race, the two brothers wander aimlessly for days, neither willing to cross the finish line. In desperation, they ask a wise man for advice. He tells them something; then the brothers leap onto the camels and charge toward the finish line. What did the wise man say?

Answer:
Its in white so that it wouldnt be a spoiler to curiour minds. Just select using your mouse if you are a coward ;)
Too simple. Exchange the camels.

posted by rumplestiltskin @ 2:39 pm 0 comments

A mystery
Banking! Its a mystery to me. I dont know how it works and why it works. I just know that its a place where all my hard-earned(!) money is kept safe. And I dont want to know anything else about it also.

On Sunday, a new came and it shook me a lot. A bank called "Global Trust Bank", a well know bank, went down. And the news is that you cant take out more than 10k Rs. till Oct 23rd. Thats frightening. It happened to GTB todays, it could be my bank next. I wonder if its a normal paranoia or something is really gonna go boom.

posted by rumplestiltskin @ 2:24 pm 0 comments

Cats and Blackjack
Yes, a weird title. It means that I finished "Bringing down the house", the blackjack book and started (and almost finished) with (which, by the way, I am reading for the second time and has something to do with the "Cats" in the title).

The first one is a good book, a true story. But in the end it feels like there is something missing. An anti-climax. I wished there was a twist in the tale. But like all other true stories, life doesnt provide a lot of twists. :) But a good recommended book for people who love adventures.

Second one is a Wodehouse book. An amazing Bertie and Jeeves adventure. Funny in a mild way but very very very pleasant. :)

posted by rumplestiltskin @ 2:11 pm 0 comments

A forgetable performance
When Sunil Gavaskar said that the indian performance can be described as forgetable while commentating during IndoPak cricket match in Asia cup on Sunday, I totally agreed.

First things first, the team composition was messed up. We dont need five specialist bowlers. I dont know why they are messing with the team balance. And this proved fatal. Balaji did poorly in his 7 overs and Tendulkar had to fill in for him. As usual Tendulkar did a good job and he was the main reason why Pakis were retained under 320. They made 300 in the end.

They messed up in the batting order again. Ganguly came in as number three when Sehwag got out, again. cheaply. This is the place reserved for the best and the most reliable batsman in the team and Ganguly is far from it. Dravid should come as number three.

Anyways, we lost by some 60 runs. Tendulkar made 70 odd. The next highest was Pathan(!) with 38. But in the end it was interesting. Indians has this tact of making things worthwhile of the spectators. We needed to get 241 runs to get a bonus point and that would keep the hopes of reaching the finals alive. In the last over we needed 5 runs and somehow, with a lot of luck and bad throwing by Moin, we reached the figure. And even though we lost by a large margin, I found myself punching the air with joy! ;)

posted by rumplestiltskin @ 1:59 pm 0 comments

Peter Parker II
I am not a Spider-Man buff. For me he is just a mutant superhero who beats up bad guys. And that is what I had expected when I went for Spider-Man 2 on last Friday. The movie is full of senti stuff where Peter Parker keeps crying and has identity crisis. Movie tries to give a "Human Touch" to the superhero. Looks like "Human Touch" is a must these days for american audience. Americans think that they are not just money minded people as the world thinks they are. They want to think of themselves as super sensitive bunch of people who care about the pain in the world. Whatever. Hollywood is trying to cash of this mentality and giving an over-dose of "Human Touch". Superheroes are superhumans and they should not be handle with an over-dose of human-touch. I, for one, dont like a spiderman who cries all the time, delivers pizzas in his free time or takes an elevator. At the end of the movie evryone and their cousins know about the true identity of spiderman. Thats another no-no for a superhero. For me batman is still THE superhero because he is a pure human being and he has lots of gadgets and batmobile and bat-cave! :)

But some of the action sequences in the movie are really good. I found myself at the edge of the seat, biting my nails whenever Spidey chases Doc-Oc. Last time when this had happened to me was in matrix reloaded free way chase. A rare thing these days.

All in all, not a bad movie but could have done better. Or it would have made more sense if it was called "Peter Parker II".

posted by rumplestiltskin @ 1:41 pm 0 comments

Spidey
Yes! the weekend has started!

Leaving for "Spidey 2" now. From there I will be going to cousin's place. I am planning to spend the weekend with him.

See ya then. Have a nice weekend :)

posted by rumplestiltskin @ 5:22 pm 0 comments

Today's Puzzle (MARBLE JARS I)
Puzzle:
You are a prisoner in a foreign land. your fate will be determined by a little game. there are two jars, one with 50 white marbles, and one with 50 black marbles. at this point, you are allowed to redistribute the marbles however you wish (e.g. swap a black marble with a white marble, etc.): the only requirement is that after you are done with the redistribution, every marble must be in one of the two jars. afterwards, both jars will be shaken up, and you will be blindfolded and presented with one of the jars at random. then you pick one marble out of the jar given to you. if the marble you pull out is white, you live; if black, you die. how should you redistribute the marbles to maximize the probability that you live; what is this maximum probability (roughly)?

Answer:
Even though the puzzle mentions things like probability, I used common sense (anways probability is nothing but common sense). If I was that prisoner, I would put 49 white and 50 black marbles in one jar and 1 white marble in the other jar. That way If i get the first jar, chances of my survival are almost 50% (because 49 out of 99 marbles are white) and if i get the second jar the chances are 100%. Combining these two the probability is roughly 75%. Not bad atall.

posted by rumplestiltskin @ 4:30 pm 0 comments

Puzzles
A couple of days back I stumbled across a brain teaser, "Petals around the rose". It was fun to do and was a good pass time too. As I was going through it, I remembered a like these. I thought I should do a "Puzzle-a-day". Sound like a good idea. This should help my gray cells busy. :)

posted by rumplestiltskin @ 4:26 pm 0 comments

The Web
Tomorrow (notice the small hyphen between "spider" and "man"? One day I was watching a documentory on Stan Lee, creator of spider-man. He was talking about how he came to the name spider-man. First he called the hero "Spiderman" but later felt like it looked very similar to "Superman". So he put a hyphen in between. He is very passionate about that little hyphen, same as Richard Stallman is passionate about calling it GNU/Linux!) is coming in theatres here. And I have tickets for tomorrow evening. One friend told me that its a stupid romantic senti-types movie.. but hey.. they have made it and its out duty to watch it! :)

posted by rumplestiltskin @ 7:39 pm 0 comments

Work is God
Today was a "work" day. Not that I dont work on other days but some days make you feel good about the work you do on that particular day. Today I finished one of the major code that was on my TODO for some days and was on-hold for someone else's work. Almost done with it and iot feels great.

Also played a lot of Table-Tennis today. You know how it is.. you win some, you lose some.

Thanks to "Bringing down the house", I know a lot about blackjack now. Read some articles about Basic Strategies and basic hi-lo counting. The temptation to buy a pack of cards and practice some BS is getting stronger! MUST.. NOT.. GIVE.. UP!! :)

posted by rumplestiltskin @ 7:33 pm 0 comments

This is definitely interesting
Yesterday (or day before) I started reading . I saw the name in Amazon's best seller list a couple of weeks back and thought it would be an interesting read. Since then I was searching for this book but dint get it in Mumbai. Finally on sunday I got it in Landmark, the book shop in , my favourite mall in Bangalore (since it has India's only Apple Store!).

The book is definitely interesting. I have been to Vegas. But never felt like gambling. This book makes me feel that I should go back there and crack the blackjack! :) Its a fun read.. atleast for first 80 pages :)

posted by rumplestiltskin @ 6:49 pm 0 comments

WOW
Just checked my profile. About a month back I posted an entry that I coumpleted a Century.
Looks like I recently posted my 150th entry and the word count has gone more than 15000 words. Thats some consistency from a inconsistent-to-the-core guy. :)


posted by rumplestiltskin @ 4:45 pm 0 comments

Can you do it?
A couple of days back someone sent me a link to a game called . I dint have much time to read through the Bill Gates article on that page that day.

Today I had some(!!??) free time. Pondered over the game for not more than 10 minutes. And in the end it was too easy. Anyone who needs more than 15 mins to crack this has to be an ass. Well.. Bill dint get it for an hour and a half ;)

PS. : The javascript dint work on firefox, mozilla as well as Galeon. Had to go to a windows machine to confirm my answers. *sigh*.

posted by rumplestiltskin @ 4:30 pm 0 comments

So much for the security
Today morning I got up, got ready. I usually lock bedroom doors so that cook who comes in the evening has access only to the kitchen. As usual I locked the door only to realize that I locked the keys inside! My roommate has another set of keys. He gave it to me when he left for US. And these keys were safe(!?) inside my cupboard. All these things flashed infront of my eyes as soon as I locked the door. I asked the neighbour if the landlord has given him the keys to the bedroom and got a negetive response. He told me that only landlord has one set of keys. The problem was my landlord/landlady they stay in Hyderabad. I also asked the security guy but even he dint have the keys.

Now only option was to go to a keymaker and get him to unlock the door. I went to a keymaker I know from a couple of days back when my friend had to get a key duplicated. He said it could be done. We came back to the house. There were three of them. They entered the house, saw the lock, put a key inside, removed it, hammered it a little, put it inside again, twisted it a couple of time and WOW!!!! They opened the door in less than a minute. That was just unbelievable. By then, my paranoid mind was thinking about all the possible thing these guys could do now that they know where I live. No lock would be too good for them. Just like any computer system can be hacked, any door can be unlocked.

So much for the security!

posted by rumplestiltskin @ 4:17 pm 0 comments

Cricket is back
Well.. it was always there, but now Indian team is in action in Srilanka. Asia Cup has begun. On friday India played against UAE and won. Sehwag got run out in the first over. Sachin soon followed. Rahul "The dependable" Dravid smashed a century.

On Sunday, we played against SriLanka and lost. But we gave an ok fight. Sehwag was ran out again and Saching followed. Rahul "the dependable" Dravid smashes 80 odd runs. This is a routine thing these days. Yuvi also played well.

posted by rumplestiltskin @ 12:10 pm 0 comments

Get Lost!
On Saturday, I saw . Its nice that they are trying out new subjects and new ideas in bollywood now. But this one failed miserably. The movie is good in parts but as a whole its disappointing. Tusshar Kapur has done well. The director is not sure about whole has the lead role in the film, Vishnu Prasad played by Tusshar or Mohini's assets. Antara Mali tries rto do an Urmila in the movie. She is so eager to show her "assets" that its almost funny. She has a good figure but she overuse it. As they say, "With great figure comes great responsibility" and Antara Mali fails to handle the responsibility.

Only good thing about the movie was I saw it in a theatre in 35 bucks. In 35 buck, I can afford to see a movie like that :)

posted by rumplestiltskin @ 11:48 am 0 comments

Holy grail
The reason I am googling these days for things like , , among other things is the book I was reading. Yesterday I finished "The Da Vinci Code". Its a page turner. Until you read 200 pages you dont know whats happening. The key to successful stories is "Never let people know whats happening". The name of the book could have been "Da Vinci in 24 hours".

Its a conspiracy theory against the Chruch. But in the end you feel like the author doesnt want to blame church even though till the end he makes you believe that bad guys are operating from Vatican. Noone likes controversies these days (except . But everyone loves consipary theories.

If you are still wondering why this book is such a huge success, you have to read

P.S. (Thats PostScript and not Priory of Sion): After clicking on the above page, if Miami Herald asks you for registration, just delete all the cookies by "miami.com" and try again.

posted by rumplestiltskin @ 11:26 am 0 comments

WYSIWYG Test
Today Blogger came up with a new WYSIWYG post editor.. and its COOL!
You can have :
  • bullets
  • like this
  1. Or Numbered lists.
  2. like this
You can also have
Quotes!
It is cool.. Blogger is going places!

posted by rumplestiltskin @ 2:55 pm 0 comments

Browser wars
Its not everyday you change your religion and browser (and your jeans too). Today I came across . For sometime now I have been using and was very passionate about it. It has worked amazingly well for me for last couple of years. People were trying to give me many reasons to change to . One of them was true. Gnome team has stopped further galeon releases. So finally today I downloaded Firefox 0.9.1.

So far.. So good.
It looks good. It is fast. I followed the tweak instructions and now its even faster. They dint have bookmark import Galeon bookmark import facility. I googled and found that firefox/mozilla uses html bookmarks while galeon uses xml. I also found a page describing the solution.

1. Open galeon bookmark manager. Save bookmarks as mozilla bookmarks in some html file.
2. Open firefox bookmark manager and import bookmarks from saved file.

Another thing I was used to was the close buttons on the tabs. So I googled again and found . This is a must for everyone. This gives the close buttons on the tab and MUCH MUCH more.

I think I will like it. But Galeon will have a special place in my computer :)

posted by rumplestiltskin @ 3:09 pm 0 comments

I'm CRAZY!
I got so obsessed by the blog i saw yesterday that i created a similar (but better :P) one myself! Here you go.. and see my

Enjoy!

posted by rumplestiltskin @ 7:37 pm 0 comments

Elementary, My dear Watson.
Figured out how Terminal Island works. Not so difficult. Thats exactly what Dr. Watson says after Holms solves the mistery.

It basically creates a table with two rows. Something like this:




type help


[guest@some-ramdom-thoughts /]$





Now the text input field in the 2nd row is your commnad line. Whenever "Enter" is pressed, a javascript is called which copies the hardcoded response at the end of the first row. And thats it! just put a black background, some nice fonts and you are ready to roll. I already have a of my own! :)


posted by rumplestiltskin @ 8:43 pm 0 comments

Its different
I have been browsing for so many years. Last time I felt amazed by some webpage was back when I saw some flash animation for the first time. After that nothing much for last couple of years.

Today I say and I'm AMAZED! Mind blowing stuff! I want a blog like that. :)

posted by rumplestiltskin @ 5:59 pm 0 comments

Patience is a vitue
[Mother and her two-year old daughter sitting on a bench in a park]

Girl:Mommy, what is that?
Mother:Its a crow.

[Next day.. same place]

Girl:Mommy, what is that?
Mother:Its a crow.

[Next day.. same place]

Girl:Mommy, what is that?
Mother:Its a crow.

[Next day.. same place]

Girl:Mommy, what is that?
Mother:Its a crow.

[some day 20 years later.. mother is trying to learn computer basics]

Mother: Hey.. how do i do this?
Girl: Click here. and thats it.

[Next day]

Mother:Hey.. how do i do this?
Girl:Cant you remember a small thing??? HOW MANY TIMES DO I HAVE TO TELL YOU THE SAME THING!

------------------------------------------------------------------

Well.. times have changed!

posted by rumplestiltskin @ 5:40 pm 0 comments

A conversation with Doc
When doc was examining me, I took a peek at his computer screen. I was rather shocked/surprised to see the good old .

Me: "Doctor, why dont you use MS Word?"
Doc: A smile that said I-have-heard-this-question-before. "Even my son asks the same question"
Me: "Well?"
Doc: "Point-and-click takes too much of my time"
Me: "But its userfriendly"
Doc: "And I dont feel in control. If i write '1)' and press enter it gives me '2)' even if i dont want it"
Me: "hmmm"
Doc: "Only problem with WS is 8.3 format"
Me: "hmmm..."
Doc: "But one day MS will stop supporting all the other editors and I will have to use Word".
Me and Doc: *sigh*


Thats one smart doc. He would have been a great geek. :)


posted by rumplestiltskin @ 3:48 pm 0 comments

SOS update
Just modified the code to use C in 32-bit code. It was rather easy. Only thing you have to do is come up with the correct Makefile. Now it is working. I found link("Daniel's NASM bootstrap tutorial","http://hem.passagen.se/danma/nboot.htm") very helpful in this. Now I will get printk working as soon as possible.

posted by rumplestiltskin @ 3:44 pm 0 comments

Present
Yes.. finally this is "NOW". Finished "Jennifer Government" in the bus. Pretty ok book. The concept is cool. And its pretty smart too. I liked it. Today I will start with . I never buy such thriller kind of books. But this one is coming infront of my eyes so often these days that I picked it up in Mumbai.

posted by rumplestiltskin @ 3:40 pm 0 comments

Flash back #5: (11th July)
This is getting boring now, all these flash backs! :P

Got up. Had a haircut. Went to CA. Had lunch with school friends. Went to Shoppers' Stop and bought 2 jeans. Went to Uncle's place. Cought a bus to Bangalore at 7:30 in the eve. And Thats all. Over and Out!

posted by rumplestiltskin @ 3:37 pm 0 comments

Flash Back #4: (10th July)
It was a saturday. Made a new friend at Smriti's place. A small kid called Sunil. He had a hole in his heart and was operated a couple of months back. Very jumpy and fun to be with.

Had gone to Giant Hypermart in Malad, Mumbai. Looks exactly like any mall in US. Bought 2 more shirts there. Total has gone upto 6 shirts now! :)

Came back to pune in the night at 10. Went straight to a hotel called Darshan.

posted by rumplestiltskin @ 3:29 pm 0 comments

Flash back #3: (9th July)
Got up in the morning and went to Mumbai. Smriti gave me two more T-shirts there. In Shoppers' Stop, saw this . Pretty imressive and very convinient. Fixed Smriti's Windows machine. Now I can fix Windows also. This is scary!! Went to Pizza Hut in the evening. Ate a LOT!

posted by rumplestiltskin @ 3:23 pm 0 comments

Flash Back #2: (8th July)
Birthday! Got 4 shirts! Had gone to a place called . Its a hill resort outside Pune. Took almost an hour to reach there. It was cool. The weather was amazing. The owner started it when he was 66 years old. And its been 6 years now. That man surely dint look 72. Thats some fitness! Played carrom and table tennis there. Had a nice time. From there went to the doc directly to get my shoulder checked. I had a very interesting discussion with him (here I will put the link to the post for that later). They took an X-ray and found out that I have a small hairline fracture in my left shoulder. AMAZING! I was thrilled.. dunno why. He told me to do some exercizes.

Went to Uncle's home after that. Dinner and slept. Pretty nice day.

posted by rumplestiltskin @ 3:11 pm 0 comments

Flash Back #1: (7th July)
I left office at about 3:30 and went to airport. I took two books with me. One was Alexander I which I had started a long time back. Its a shame really that I just sat on it for so many days. And 2nd one was . These days I go and pick up books by random authors, this one was one of them. In flight I finished Alexander. When I was landing in Pune I could see a train from up. I wanted to show it to someone. Travelling alone in a plane is as boring as travelling alone in bus. But its fast :).

Family people had come to pick me up in the new . Its the new MUV by Chevy and their competitor is . We had a Qualis till last month. Sold that and bought Tavera. Tavera is longer in length but shorter. Inside the wooden finish on the dashboard looks really cool. The gear stick looks like coming out straight from an old truck, kinda ugly. But overall interiors are great. All four windowns are power windows unlike two in Qualis. The third row seats are a joke. There is absolutely no leg room there. Qualis on the other hand has good leg room for all three rows. Power wise its good, thats what people told me. It has more torque or something. It makes more noise that Qualis initially but after 30 kmph its as smooth as Qualis. Overall impression is "Its good for long drive but not that great in city". Also the milage is supposed to be better than Qualis.

Went home and decided to go for a late night movie show at INOX. Saw Lakshya again with family. Came home at 2 in the morning.

posted by rumplestiltskin @ 2:48 pm 0 comments

Back in Biz
Got back at 12 from my LONG weekend. Came directly to office (thats sincerity for you! :P). I had a great time in Pune and Mumbai. Next few posts are gonna be *FLASH BACKS* from the weekend. :)

posted by rumplestiltskin @ 2:46 pm 0 comments

Horoscope
Today when I logged in , I saw this :

Today's fortune:
You will travel far and wide, both for pleasure and business.

How true is that?! I am all packed for the LONG weekend. I will leave at around 3:30 and reach Pune at 6ish. I dont have a computer there (actually I do. but no linux on it). I will try my best to post from there. I am coming back on 12th.

Things to do at Pune :
1) Catch a movie at Inox/Esquare
2) Kathi kabab at Kapila or Olympia
3) Read
4) Meet friends (School/calsoft)
5) etc.

I also have to go for clothes shopping.. ugh!

posted by rumplestiltskin @ 11:37 am 0 comments

SOS update
The question for today was: Who really need ? I understand why it is there (legacy x86 blah blah..) but is there anyone who runs an 8086 application on Pentium? But it is still there and you still have to enable it. And thats exactly what I did. To make the matters worse, the method to enable it is not the same for all the architectures. I just use the normal 8042 method which works on my machine.. and in bochs. I went through the and was feeling giddy immediately.

Anyways, after that I looked for and initialized gdtr. That was not very difficult. Currently I am using ring 0 data and code segments. And then the natural thing to do was to enable PE bit in CR0 (Thats the whole purpose of this excersise.. isnt it?) :).

Now I am in 32-bit protected mode. From tomorrow, I will start with screen buffer functions in C!


posted by rumplestiltskin @ 6:35 pm 0 comments

A random tip
Today I wanted to search and replace a string in some thousands of files. The way I did it is :

find . -name [pattern for file names] | xargs perl -pi 's/[search]/[replace]/g'

I wonder how Windows people do it. I am sure there is a shareware demo of some program somewhere with ten nice GUI screens (including an Installer with thirteen NEXT buttons and atleast two I AGREE buttons) to do this which will modify the registry in thousand other irrelevant places.

posted by rumplestiltskin @ 11:44 am 0 comments

Oracle
My prediction for Euro 2004 came true. Greece won against the favourite home team Portugal by 1-0. If you wanna know your future or if you are a gambler who wants to make millions, call me at 1-800-ORACLE! ;)

posted by rumplestiltskin @ 1:35 pm 0 comments

SOS update
Yesterday I modified the loader to read the kernel from the disk. This is modular. It will read the kernel from a filesystem (most probably FAT12 or minix) eventually. Next task is to enable A20, setup GDT and yes, get into protected mode. Use of pretection is always good. ;)

posted by rumplestiltskin @ 11:03 pm

I am back
I dint see any movie for almost a month. It was just the lull before the storm (so to speak ;)). Saw four films last week. Thats cool. Feels like I am back! Way to go! Bombs Away! :)

And will be watching more movies this week because I am going to Pune (and Mumbai) for four days this week!! Cool! I have booked the ticket and tomorrow will get it. I am flying (ahem! :P) on Wednesday and coming back (by road) on Monday. Looking forward to it.

posted by rumplestiltskin @ 10:59 pm 0 comments

The grand-dad of all stories.
Today evening I saw Troy. Technically its a very good movie but thats not surprising. These days all movies are technically good as a rule. But I am just amazed at the story. They say it was written thousands of years ago. And the situation, the characters are still relevent. They might have diverted from the real epic but I still think its the grand-dad of all the stories. Its right up there with the hindu epics like Ramayana and Mahabharat. I kept thinking about what they did to "Asoka". It was cheap and disgusting. Ashoka deserves a better story teller. I am waiting for the day when someone comes up with a Mahabharata movie which is as good as this one.


posted by rumplestiltskin @ 10:46 pm 0 comments

Sports
Some sports news that I had rightly predicted.

1) A beautiful 17 year old russian, Maria Sharapova, won against Serena Williams in the Wimbledom Ladies Final.

2) Roger Federer won against Andy Rodick in Men's final.

Some more predictions :

1) Greece will win Euro 2004.


posted by rumplestiltskin @ 10:40 pm 0 comments

Coming from home
Yes. Posting this from home with my computer and my cell. Home Sweet Home.

Yesterday, Adaptec took us out for a movie. Saw Lakshya. Pretty Impressive. Movie is a bit slow but its not boring. Hrithik has done a good job. Cinematography is amazing. And in one of the scenes, Aby Baby, who plays a maharashtrian military man talk in Marathi. Ofcourse I whistled and hooted there :).

In other news: . Pretty COOL! :)

posted by rumplestiltskin @ 11:50 am 0 comments

Its so easy
Why do people think that its difficult to write poetry? Its very easy. Very very easy, I say. But getting it published was a difficult task. But this is information age, baby! You can come up with any kind of junk (unlike this blog :P) and get it published on .

For example:
Go here and search for a so called poet called
Freemont R. Pustule. Then look for one of his poem called "How Much I Love You". Read that. Now get your favourite pen (or editor.. if you are a geek), write some random words and send it to poetry.com!.

Note: I could have posted a link to that poem rather than posting the procedure above. But I just want this blog to be a little interactive. ;)

posted by rumplestiltskin @ 10:18 am 0 comments

Its back
Today they unpacked the table tennis table in our new office. Played almost after a month. Nice! :)

posted by rumplestiltskin @ 8:09 pm 0 comments

Kernels are fun
Yesterday evening I went home and was surprised to see ESPN reappearing in the channel list. I wanted to watch Euro 2004 semi. And correction, it was between Holland and Portugal and not Holland and Greece as I had written yesterday. I kept awake till 12:30. Saw first half and then dozed off dont know when. But I remember seein Portugal leading 2:1. And it finally went on to win the match with the same score. That was expected. These days host countries do surprisingly (and suspisiously) well in soccer tournaments.

Today morning I came to office at 7 in the morning. The meeting went on for 4 hours. Last night I was browsing through the small boot sector kernel I had written some 4 months back (Yes. Finally I got my machine shifted to my new house a couple of days ago). I got enthusiastic again and today I had some spare time so now I have got a small boot sector kernel with a small shell working. It is fun. Written completely in Assembly. Tested it with and also with a real floppy. I will upload the code when it starts doing something interesting. I am currently in 16 bits but planning to go 32 bit very soon. :)

posted by rumplestiltskin @ 5:29 pm 0 comments