Sunday, January 28, 2007

Colourcode 0.2 nearing release

I am quite pleased to announce that ColourCode 0.2 on which I have been working for the last week is nearing release.
0.2 has the following features over 0.1
  • support for multiline comments , also when they are embedded inline
  • optionally printing line numbers
  • Support for quote escapes in strings when a backslash precedes it
ATM there are a few bugs

Also there will be support for more languages

Thursday, January 25, 2007

How cool is Alt + F2

I am always discovering new uses for the Run Command dialog of KDE. And now I learnt it can even do basic calculations, right there. Now if only it could handle scientific functions...

Game Of Life:LOGIN

I am proud to present my latest creation LOGIN or NIkhil's Game Of Life, my very own Conway's Game of Life simulator. Written in C++ using SDL. I wrote it mainly to learn SDL and because I truely enjoy life. Currently it only runs on Linux. Read the README file in the package for instructions on installation and usage.

Here is a nice pic of part of a r-pentomino cycle for your enjoyment:



Features:
Generation count in the titlebar
On the fly change in generation delay

It follows original Life rules and there is no support for reading or writing Life files.

Usage

LOGIN runs in 2 modes. One is when the program is running but the game is not. In this state you can do the following.
  • Use the mouse to activate/deactivate cells
  • Press 'r' to generate a random fill
  • Press 'c' to clear and reset the game
  • Press 's' to start the game.
When the game is running you can only do two things
  • Press 's' to stop it again
  • Press '-' to increase the speed by 10ms (you cannot go faster than 10ms per generation)
  • Press '+' to decrease the speed by 10ms (there is no limit to how slow you can go)
Note that + and - unfortunately do not work continuosly on holding them. The reason they seem contradictory is that well they control the delay. So '+' increases the delay and decreases the speed :)

Download: http://22bits.exofire.net/downloads/login.tar.gz

Wednesday, January 24, 2007

Back to Normal

To those in the know, and now for those who don't, the reason I have been really quiet on both the web and in RealLifeTM is that I have been down with Typhoid. Nasty nasty disease. I haven't gone to school for 2 weeks now, haven't washed my hair for almost the same time and have been sleeping most of the time.
But its getting a bit better since Monday. Today I am back to normal in terms of appetite and I have been feverless for more than 24 hours now. I can start school on Monday, since Friday is a holiday too I decided to skip Thursday. Now the only downside is: Start studying again, and no football for atleast 1 more week.

Thursday, January 11, 2007

The Ozone Fix: Great Idea, No?

I've got a possibly great idea about fixing the ozone depletion problem. If it is truly good, then someone please implement it. If it just plain sucks, you may make your feelings known in the comments. Without further ado, here it goes.

The Antarctic Ozone Hole is the biggest known depletion of ozone. There are also many other spots around the world. My idea goes this way.
1)Less ozone means more Sun.
2) Sun == Free Energy
3) Energy can be used for creation.
Put up solar panels and a ozone creation plant at sites with low ozone. They use the sunlight to generate power which the plant uses to generate ozone and use some kind of system to send it up where it belongs. As the ozone goes on increasing the power decreases, but thats fine because we are going to need less of ozone. Ofcourse some external power would be required in the end to complete the process.

Now I have not evaluated the costs and the time period(~50 years should do it right?) but as the cliché phrase goes, better late than never.

Wednesday, January 03, 2007

ColourCode 0.1beta released

I am pleased to announce the release of version 0.1beta of ColourCode. ColourCode is a Ruby program to generate syntax highlighted HTML files. Currently it supports HTML, Java, C++, Ruby and Python. For more information and (not)features see the ColourCode homepage