Tuesday, September 15, 2009

Lyrics for 'Write in C' [Beatles - Let it be]

NEW LYRICS TO BEATLES SONGS - 'Write in C' (Let it be)

When I find my code in tons of trouble,
Friends and colleagues come to me,
Speaking words of wisdom,
"Write in C."

As the deadline fast approaches,
and bugs are all that I can see
Somewhere, someone whispers:
"Write in C."

Write in C, Write in C,
Write in C, oh, Write in C.
Logo's dead and buried,
Write in C.

I used to write a lot of FORTRAN.
For science it worked flawlessly.
Try using it for graphics!
Write in C.

If you've just spent nearly 30 hours,
Debugging some assembly.
Soon you will be glad to
Write in C.

Write in C, Write in C.
Write in C, oh, Write in C.
BASIC's not the answer.
Write in C.

Write in C, Write in C.
Write in C, oh, Write in C.
Pascal won't quite cut it.
Write in C.

---

Monday, September 14, 2009

0.999 (9 recurring) = 1?

From wikipedia (http://en.wikipedia.org/wiki/Proof_that_0.999..._equals_1):
{
In mathematics, the repeating decimal 0.999… denotes a real number equal to one. In other words, the notations 0.999… and 1 represent the same real number. This equality has long been accepted by professional mathematicians and taught in textbooks. Proofs have been formulated with varying degrees of mathematical rigour, taking into account preferred development of the real numbers, background assumptions, historical context, and target audience.
}

One of the proofs given is:
x = 0.999 (recurring)
=> 10x = 9.999
=> 10x - x = 9.999 - 0.999
=> 9x = 9
=> x = 1

But this wrong! Whats making it wrong is that you consider the no. of digits after the decimal point remains same; or in other words, that you consider (infinity - 1) = infinity.
When n is HUGE, (n - 1) is approximately= n.

The following is the correct method. First assume that x = 0.999...... (n 9s) with n = HUGE!
x = 0.9999999999999999999999999999999999999999 (40 9s total)
10x = 9.999999999999999999999999999999999999999 (Still 40 9s; 39 after decimal point)

10x = 9.9999999999999999999999999999999999999990
- x = 0.9999999999999999999999999999999999999999
-------------------------------------------------
9x = 8.9999999999999999999999999999999999999991
-------------------------------------------------


Now make n = infinity. So it makes
9x = 8.9999999999999999999999...(infinite 9s)............99991

Now when you divide by 9, you get

x = 0.999999999999999999999999999999999999999... (infinite 9s i.e. recurring again!)

----------- x -----------

Another proof goes as:

0.333 (recurring) = 1/3
=> 3 x 0.333 = 3 x 1/3
=> 0.999 = 1

But since the problem we are dealing with (i.e. Is 0.999... = 1?) is very critical like a man standing on a knife edge on a single toe, immeasureably small factors also matter!
So we cannot say 0.333 (recurring) is equal to 1/3.
1/3 is a perfect division of a cake into 3 parts.
0.333 (recurring) is NOT a perfect division into 3 parts!!

As a corollary of this discussion, you can say:
One who can divide perfectly may be called God.

---

Sunday, August 9, 2009

This is Top Class Music!

Listening to these new songs that I got recently, I couldn't appreciate them enough so here's a blog entry and their links.

1) Shaastra Night Theme - Chaitanya
Guess what? This is a composition of a student of IIT Chennai for their technical event Shaastra. I got to listen in during their Shaastra 09 publicity in my college, loved it and got the song.
Great fusion song - Violin, tabla, guitar, chorus
You wont get this anywhere except from IIT chennair students and me :)

2) Violin of death - SFA (from the game Granado Espada)
The music is just like its name.
Violin + Mute guitar + light percussion
I still have to listen to all 123 OSTs from this game. There r probably more like this.

---

Saturday, July 25, 2009

Awesome Counter Strike Stick Animations

After playing CS for about a year addictively, I finally decided to curb its playtime by a rather cruel but the only working method - I shift-deleted it from my HDD, pendrive etc :P . I've backed it up on my gmail though, but I've got enough integrity to resist playing it if I have to wait for 3 hours to download it.

Anyway, I found some funny counter strike stick animation movies on youtube made by flash-deck.com .

Watch them in order.









---

Thursday, July 16, 2009

My Mp3 Ringtones

Another hobby of mine on my computer - making ringtones from songs. Software used is Audacity - simple and free. I believe these tunes will make proper ringtones unlike just 30 seconds cut-outs from any song on some ringtone sites.

To use these on your phone, firstly your phone should be able to support mp3 ringtones (most phones above 3k do nowadays). Download the mp3 file to your comp. To download it, right-click on the ringtone link and click 'Save target as'. After downloading, copy it to your mobile using its data cable.

I'll add more as I make them.

1. Bourne Identity - Extreme Ways RT.mp3
Taken from ending titles of Bourne Identity. The tone is a loop (means you wont know when it ends or starts if you keep repeat ON).

2. Mirror's Edge Ringtone.mp3
From the soundtrack of the new popular game Mirror's Edge.

3. Fur Elise Techno RT.mp3
Remixed version of Beethoven's classic.

4. Ode to Joy Techno RT.mp3
Aka Beethoven's 9th Symphony.

5. Popeye Techno RT.mp3
Name says it all. The tone is a loop.

6. Tetris Techno RT.mp3
From Nintendo tetris game - that old TV game tetris?

7. Nintendo - Duck Hunt Theme.mp3
Theme of the old TV game where you shoot ducks with gun.
Great to keep as a small volume ringtone.

---

Thursday, July 9, 2009

3D Images from Ragnarok

Since making a 3D image requires 2 images - one for left and one for the right eye - which are slightly from a different angle, I thought why not try making some from a game in which we can rotate the screen? And voila! it works as expected.

Ragnarok is a fantasy MMORPG (Massively Multiplayer Online Role Playing Game) having its own big world which is persistent. I used to play it a lot 2-3 years ago. I've played it a lot on the Indian server (inRO) which is no more now and also on a private server called qRO which is also down now. Recently I found a very good new private server DreamRO and thats where I am wandering now taking screenshots.

Till now I've made about 30 good 3D images from it and yet travelled just about 5% of the Ragnarok world.

Take a look at them (Slideshow). You should press F11 to switch your browser to full-screen mode to accomodate the photo on the screen.
While watching each photo, swap your glasses on and off to see the difference.


---

Sunday, July 5, 2009

3D Vision with Anaglyph glasses

I've finally got Red/Cyan anaglyph glasses and am able to see 3d movies, photos in 3D. Even play some games in 3D. 3D as in where you really see the depth or images pop out of the screen. Anaglyph images are basically superimposition of the images which the left eye and the right eye would see of the subject into one image. The red and cyan filters then separate the two images automatically giving our brain the impression that we are seeing the read 3D object.



The image above is an anaglyph 3D image for red-cyan glasses. There can be red-blue, red-green glasses also but red-cyan is always preferred because the colours in the original photo are preserved well enough in this format.

You can make these glasses at home using gelatin paper. Get red and blue gelatin papers. Cut out a frame from cardboard and put in 4-5 layers of gelatin paper in place of the eyes. I had made them and they worked somewhat well but not so good becoz u dont get the exact shade of cyan and red and plus the gelatin papers makes a fuss getting crumpled up.

You can order them from 3dindia.com aka hitesh.cybertec.co.in Thats where I got mine from and they are good.

Here are more 3D images I've made from the Final Fantasy VII movie till now.


---