Sunday, July 24, 2005
My first game
Saturday, July 23, 2005
Harry potter - 6
Amongst other things I have a new found respect for the Arctic Warfare Magnum (aka AWP).
Currently my favorite weapon in Counter Strike.
Friday, July 22, 2005
Cross compatibility with OpenGL and SDL
The beautiful thing about it was I was able to compile and run the program in both Windows and Linux without a single modification. Neither did I run into any trouble during the build process. Here is the source and Windows executable. Call me crazy, but I then tried to run the Windows executable in Linux through wine and it worked again.
Thursday, July 21, 2005
War of the worlds
Tuesday, July 19, 2005
Counter Strike
Monday, July 18, 2005
Seminars
I also recieved our seminar guidelines. Apart from the usual ones, I found the last one amusing.
5. Refreshments: Arrange for some refreshments during the seminar session
(Preferably tea/coffee +snacks) . Expenses should be met by the four persons taking the seminar on that day.
Sunday, July 17, 2005
Efforts to create acceptable programs.
Talking about Java, I managed to find a blog entry of John Carmack (The guy who made the graphics engine of wolf, doom, quake, quake 2, quake 3, doom 3 etc) about his latest endeavor to make a doom-rpg on a cell phone. He talks about how Java restricts the speed of execution of a program. An interesting read.
The infinite mokey theorem
So, does it really happen? Some people (who had spare PCs and spare time) tried it out. This quote from the wikipedia article
""In 2003, scientists at Paignton Zoo and the University of Plymouth, in Devon in England reported that they had left a computer keyboard in the enclosure of six Sulawesi Crested Macaques for a month; not only did the monkeys produce nothing but five pages consisting largely of the letter S, they started by attacking the keyboard with a stone, and continued by urinating and defecating on it.""
Come to think of it maybe even before "infinity" occurs, the monkey(s) could actually evolve into a more intelligent lifeform and then take over the world.
Friday, July 15, 2005
Game programming
Here is something which I dug up from an article in penny arcade.
"You have to understand, game programming is the hardest type of programming there is (although my friend Epistax claims that advanced accounting software is), and it makes perfect sense: while ordinary software has a very specific goal, games create a world, an experience, a virtual reality, and therefore incorporating a little bit of each programming domain: AI, graphics, database, math, optimization, etc. That will take more lines of code, more art sketches, more music... I really didn't think such a commitment could ever be achieved by me. But all that was about to change..."
Tuesday, July 12, 2005
The First class
I wrote a program which simulated a ball (gravity and stuff). It is written in python using pythoncard. Source can be found here and the resource file can be found here.
Unfortunately you need python, wxPython and pythoncard to run it. I guess I will try to write a standalone application next time.
Sunday, July 10, 2005
A GUI for the SuDoku solver
The GUI code is not pretty as this is my first day with pythoncard but it works all right.
Tuesday, July 05, 2005
A little bit of programming
Saturday, July 02, 2005
Back to square one
Monday, June 27, 2005
The Su-Doku solver improved
Sunday, June 26, 2005
A nice busy day.
Friday, June 24, 2005
Su-Doku Solver
When I reached Delhi I started learning Python, mainly because the language intrigued me and there were a lot of people ( Eric. S. Raymond and Bruce Eckel to name a few ) had given it a thumbs up. Now it has been around 3 days since I started learning it and I must say it is a beautiful language in it's own rights.
So, I wrote a Su-Doku puzzle solver today in the evening of 24th June because it was too hot outside and I wanted to learn python.
Here is the python code. I have just used two test cases for it, which can be found here and here.
[update 25th June] The solver is in fact broken. I guess I should have used more test cases. It solves easy puzzles but gets stuck in some of the medium to hard puzzles. I will try to get it working for them also.
[update 25th June]Took care of the problem. Now it is solving the hard and medium puzzles also. I will feed it some more test cases before announcing success.
Thursday, June 23, 2005
Rahul's PC
Wednesday, June 22, 2005
Delhi heat
Sunday, June 19, 2005
Back at Delhi
Wednesday, June 15, 2005
Exams over once again..
I leave for Delhi tomorrow. I hope to have some fun there although I don't have too much time ( The college reopens on 1st July *damn* ).
Monday, June 13, 2005
Last one..
Saturday, June 11, 2005
Nearing the end..
Wednesday, June 08, 2005
An AJAX hack gone bad...
I thought this can be used to somehow serve content remotely. Suppose you have a web site and are running short of storage space, which is obviously expensive. What you could do is store your HTML document in an encoded format in one of the free web hosts found over the web and use XMLHttpRequest to fetch the page for you. Thus you don't need to worry about the ads of the free web hosting site (ads are placed on HTML documents and we will be using a text file).
The encoding could be the one like which we have at osix, meaning using a '[' and ']' instead of a '<' and '>' for html tags.
For an example check this
The client will request for the document using AJAX and then parse it, basically replacing each '[' and ']' with a '<' and '>' and then display the page by (maybe) using document.write .
It looked to me that it will work and it even did when I tried it locally on my PC. But unfortunately when I try to do it over the internet it doesn't work. In my case I uploaded the client over at geocities and the server (the document which has to be served, rather) here at osix. But when I run the client nothing happens. Is it because the request is coming from another domain name ? If I keep both the client and server in the same directory at geocities it works.
Anyone know what is going wrong. Is, what I am trying to do even possible??
Monday, June 06, 2005
Random thoughts
I wrote another article. I guess I am getting a bit bored of all the exams, even though only one is over.
Slashdot had an article about a guy making a home brewn CPU. Pretty cool.
Saturday, June 04, 2005
Pi
Thursday, June 02, 2005
Summer of code??
Exams started
Tuesday, May 31, 2005
Yahoo! Mindset
Monday, May 30, 2005
India's supercomputer vs X-Box 360
Thursday, May 26, 2005
An easy way to ban yourself on del.icio.us
<a href="/PleaseBanMe//roxtar"><span style="color: white;">.<span></a>
Out of curiosity I clicked on that link and I found out that I was banned for 30 minutes.
It is really odd why the del.icio.us people have put a link over there and why would someone want to ban himself (in my case it was pure curiosity)
AJAX - Javascript + Flash = AFLAX?
Tuesday, May 24, 2005
Social bookmarking
Thursday, May 19, 2005
A surprising day
The day started at 1:00 am when we were looking at Sujit's photos of his previous trip to Munnar, when I casually said that let's go there. As no one else seemed to have a problem we (Me, Anshul, Sujit, Bhatta and Rahul) took off instantly at around 1:40 am.
The drive was around 3 hours long and everyone, except me, took turns driving. We reached there at around 4:30 am and had Tea and had a small nap.
We woke up at around 6:30am and started for this place called "Top Station" which was supposed to have a Bird's eye view of everything around Munnar. It was 34KM from where we were stationed. The drive to "Top Station" was pretty nice and we got to take some snaps during the way.
When we reached there the whole scenery was mind blowing. We spent some time up there at the top took some snaps and started towards are next destination.
Our next goal was a dam (the name of which I fail to remember) which had facilities for boating in its reservoir. We reached there at around 10 AM at choose the "rowing boat" instead of the "peddling" one. It seemed to be a wrong choice in the beginning as none of us knew how to row and the boat was just rotating at one place. Me and Sujit were the one's doing the rowing. But after some time we gained rhythm and were able to make the boat move in a straight line (well almost straight). In fact we parked (if that is the correct term for a boat) it pretty nicely.
After our long trek to "Top Station" and the tiring (but successful) boating experience we needed to take some food, so we headed back to the Munnar town (as places near the tourist spots are too expensive) to have our brunch.
After that we left for the Rajamala which is the natural habitat of the Nilgiri tahr (looks like a grey goat). The drive to the place was pretty exciting. The road was very narrow, twisty, at a high altitude and two way. Somehow we managed to make it to the sanctuary (which is at a greater altitude than top station). The place was situated high above everything else and we could always see a steep drop nearby.
We were just able to take two or three snaps when Rahul's battery went dead. But we did get to see the goats (yeah Nilgiri tahr) and in fact some of them even posed for us to take their photos (no kidding). We spent some more time there and headed back to home.
Right now we are really tired and exhausted but happy that we made the trip.
Tuesday, May 17, 2005
Chugging along
Thursday, May 12, 2005
Mono
Yes among other things, I had my lab internal yesterday (8086 lab). It went pretty smoothly. I got output for my program in 20 minutes :D and the viva was also good, I could answer all the questions. I also got my sessional marks yesterday. I got 90.75 % and am currently 6th in CS (both should improve after I get my lab marks ;) )
Tuesday, May 10, 2005
Googlewhacking
Monday, May 09, 2005
XML-RPC
[Update] The java xml-rpc worked. I was stupid enough not to include the files in the CLASSPATH.
Friday, May 06, 2005
Ajax
Yes, another thing, I got a phone call from the nice people at Subex. They told me that they will be sending the call letter by courier on monday. Isn't that nice :)
Wednesday, May 04, 2005
A lot of work
Friday, April 29, 2005
Back from Bangalore
The Subex office, although small, was pretty nice. The people working there also seemed nice. We were supposed to have 3 technical interviews then 1 HR interview. The interviews chugged along slowly because their Q4 results were going to be announced. Finally I came to know that I had been selected at 6:30 pm. Me and Bhalla were the only ones to get selected that day.
It was a nice trip :)
Tuesday, April 26, 2005
Project demo
I leave for Bangalore today evening, hope to have some fun there :-)
Sunday, April 24, 2005
Having fun
Friday, April 22, 2005
6th Semester last class
Thursday, April 14, 2005
Subex
It was given dream status, so I could write the exam. The exam consisted of one objective round of C questions. The standard was pretty nice and I could answer a few of them. The second round was a written programming test. I got a question where I was required to split a text file into other files of a fixed number of bytes and care needed to be taken that the file wasn't split between words.
The interview will be held in Bangalore (if I clear the written rounds). The company has a reputation of hiring very less individuals, so I don't know where I stand. Lets see what happens. Results will be announced the coming week.
Wednesday, April 13, 2005
Farewell
Tuesday, April 12, 2005
Dirty cricket
Among other things, India managed to lose to Pakistan once again in spite of making a huge total of 315.
Saturday, April 09, 2005
Offshore outsourcing: A view from both sides
Friday, April 08, 2005
5th Semester results
Saturday, April 02, 2005
India Vs Pakistan
Friday, April 01, 2005
Automating downloads
Tuesday, March 29, 2005
More companies
Wednesday, March 23, 2005
Back from NITC
The last match was against NITC (the home team). At the onset of the match we didn't play well and they had a 16 point lead before we scored our first basket. At the end of the first half we were down 21 points. Then we decided that we will strengthen our defense and give it all. Slowly and steadily we started to catch up and at one point we were just down by 3 points. Unfortunately at that crunch situation I missed two underbasket shots (and according to Thomas that cost us the game ). We lost by 7 points but we gave them a nice fight. The crowd there was very decent unlike ours and some of them also appreciated some of our shots and they didn't even abuse us. We got the certificate and the prize money and we blasted the night in the hostel, where we were staying. We returned the next morning.
The NIT campus was very nice and quite .... we changed all that for a period of two days ;)
Saturday, March 19, 2005
Wipro
[update]
I got through all right yahoooooooooo.... it is a real nice feeling hope my other friends are also placed soon, then we can all go and freak out..
Wednesday, March 16, 2005
A late update
Tuesday, February 22, 2005
Chickenpox
I have been asked to take 2 weeks bed rest. I guess I won't be able to give my internal exams.
Friday, February 18, 2005
Beach boyz
We had some major plans for the evening... Me and Auto were going to give the guys our birthday treat. So we picked up some KFs and left for Cherai in one maruti and one Dio. We were having fun the whole time during the drive. When we arrived at the beach it was totally empty, it was like as if we had our own private beach. We had a nice time chatting, making tunnels in the sand, doing long jumps, doing cartwheels and somersaults and (my favorite) watching at the expanse of the ocean in front of us. We had our dinner (which was very nice) and spent some more time on the beach. We returned when we realized that it was getting to late and that the tide was rising too much.. all in all it was one of those days which I would never forget...
Thursday, February 17, 2005
Time control in computer chess part 2
search(-INF,+INF,4,&line);
best_move=line.argmove[0];
for(i=5;i<MAX_DEPTH;i++) {
search(-INF,+INF,i,&line);
if(!timefail) {
best_move=line.armove[0];
continue;
}
else {
return best_move;
}}
With this the computer had a shallow best move before going deeper.
Wednesday, February 16, 2005
Time control in computer chess
Monday, February 14, 2005
Another finals
Saturday, February 12, 2005
I got a computer account..
Anyway we had a basketball match today.. we beat the opposing team but we didn't play a good game. Anshul also got into the team.. ;-)
Friday, February 11, 2005
A long week
Monday, February 07, 2005
Watching ..
Sunday, February 06, 2005
Jumping horses.
Saturday, February 05, 2005
Frankenstein
"It was on a dreary night of November, that I beheld the accomplishment of my toils. With an anxiety that almost amounted to agony, I collected the instruments of life around me, that I might infuse a spark of being into the lifeless thing that lay at my feet. It was already one in the morning; the rain pattered dismally against the panes, and my candle was nearly burnt out, when, by the glimmer of the half-extinguished light, I saw the dull yellow eye of the creature open; it breathed hard, and a convulsive motion agitated its limbs."
So today, I lent a brain (pronounced as alpha beta pruning) to my creation (also better known as a chess engine) and it played its very first game against me. To my surprise it was actually beating me. I didn't like it so I quit the game halfway and went to tell Rahul what had just happened. Rahul, suggested that I match it up with crafty. I took that suggestion and ,as expected , crafty won. But I'm pretty happy that v1.0 of the chess engine is almost out. I am right now thinking of a good name to give it. BTW Frankenstein is out of question ;-)
The project gets a tiny brain.
Friday, February 04, 2005
The random chess engine.
Wednesday, February 02, 2005
Work and play
r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq -
perft(1) is correct, but above depth 1 I'm getting incorrect results.
I and Anshul went to play basketball in the evening and after that we all went to Pizza hut.
I returned and have implemented the setBoard function which takes in a FEN
string and sets up the board according to it.
I should probably stop worrying too much about the bad perft results and start working on the other parts of the project, or maybe I should just go to sleep.
Tuesday, February 01, 2005
Perft debugging.
Monday, January 31, 2005
Project progress
Saturday, January 29, 2005
A bit of work ..
Friday, January 28, 2005
The finals
Tuesday, January 25, 2005
The basketball match
We had a basketball match with Mech in the evening. It was a really hard fought match. In the first quarter we were down 7-0. I scored 3 baskets after that and got our team close to their score. The match was too close for comfort. At the end of each quarter the scores were level. In fact we had 3 overtimes. In the first overtime the mech guys had a lead of 5 points. I scored a 3 pointer and then Diaz scored another 2 so we were level again. In the end we won the close fought battle by just 3 points. It was one helluva match, with all the crowd support and the resistance given by the opposite team. For us it was a real team effort, with each guy pitching in. The positives were that we never gave up at any point in the match. The only con was that, we could have converted a few more free throws. At the end of the day... I'm a happy man.
Monday, January 24, 2005
Another day...
We had a basketball match today..Electronics versus Safety. EC lost a match which they could have won.. My match is tomorrow with Mechanical. I hope that goes off well.
Sunday, January 23, 2005
Long time
I attended a project management symposium in Model Engineering college yesterday (in hopes that it will help me in my forthcoming project, which is going at a very slow pace ). We had a nice lunch buffet there and slept through the latter half of the symposium.
These days I am playing a bit of basketball in the evenings, which should help me decrease my increased waistline.
Today was wasted in playing age of empires on the LAN.
Saturday, January 01, 2005
Does your car have enough personality? Can it do the jig?
Friday, December 31, 2004
2005: Happy new year
Tuesday, December 28, 2004
Number 20
Tsunami hit India and other parts of South East Asia. Many people lost their lives and their homes. Hope their souls rest in peace and may god help those who survived this tragedy.
Sunday, December 26, 2004
My first day.. in Delhi
Wednesday, December 22, 2004
Leaving for Delhi.
Microprocessor lab over
One truth about lab exams is that, they are 70% luck and 30% hard work.
Well, it is a big relief that all my exams are officialy over now. I'm leaving for Delhi tomorrow. I hope I have some fun there. I'm really looking forward to driving the car and meeting my friends.
Monday, December 20, 2004
Language processor lab over
- When there is left recursion.
- When there are cycles in the grammar
A->B
B->C
C->A - When there are epsilon productions.
Sunday, December 19, 2004
My modified case
MSN Search for language processor lab
Saturday, December 18, 2004
Quantum computing
Friday, December 17, 2004
Exams over..
Wednesday, December 15, 2004
The Book of Mozilla, 7:15
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror.
from The Book of Mozilla, 7:15
Monday, December 13, 2004
Continuing on the emulator trip
Bochs (pronounced box)
Friday, December 10, 2004
BrainF***k
Wednesday, December 08, 2004
Quines and bad exams
I recently came upon this: Quines are programs that print themselves out. Now, this didn't sound that tough to me on first look but believe me it is not easy as it sounds. In fact a guy has even written a paper about it.






.jpg)
