Shutter Island

First of all,Hats off to this movie. It is so well made. The actings are at a stunning level. I would recommend everyone to watch this movie.

I watched the movie in English without subtitles. I thought i wouldn’t understand a damn. lol 😛

The ending?
There have been different hypothesis about how the movie ended. Some say Leonardo Di Caprio had fully recovered and some say he is acting like he isn’t.

My first thought on this was that he hasn’t recovered from his illness. He returned into his world of illusion. I may be wrong though.

Physics P1, P5 & Biology P1

Physics P1:
The questions were tricky. I managed not to “pique poule” so often. It went rather fine.

Physics P5:
It was quite easy too. It was the paper i had practiced the least. I hope i get good marks in it 🙂

Biology P2:
It was an easy paper. I found it quite hard as i haven’t revised as i should have.

Facebook Connect for MyBB Alpha

I released an alpha version of the plugin i’ve been working upon recently. It is a major refactoration of the Facebook connect plugin Ali Razavi wrote for his forum AKA AlilG.

The plugin is supposed to let people register and log in on MyBB forums with their Facebook credentials.

I need people to test the plugin and review its codes.

Visit the official page for the release of this alpha version for more info and download:-
FBConnect for MyBB

Best Regards
Nayar

2147483647

You must be thinking i put a random number as title. You are wrong! It is a very special number. You will see why.

I am working on FBConnect plugin for MyBB. It was storing Facebook UID’s in an “int(15)” field in a MySQL database. Everything seemed to work perfectly until i tested the registration process with an account whose Facebook UID is a 15 digit number. It just kept storing the number 2147483647.

I spent the whole day revising my codes. They all seemed OK. I was really puzzled. Then i thought: Why not google the number?

232 – 1 = 2147483647
231 – 1 = 2147483647

Whats so special about it? In fact, it is the biggest number that can be made using a 32-bit binary number system I thought it was the higheest number that was possible with a 32-bit binary number system. But i was wrong. Thanks to the clarifications Rick Hemstra, i found out it is half the greatest number possible with a 32-bit binary number system. This is because this MySQL field also hold negative values. Therefore, the maximun number decreases by half.

The solution:-
All i had to do is to change the field type to “bigint(15)”. The new limit is now:
263 – 1 = 9,223,372,036,854,775,807 😀

Problem solved 🙂