Archive for April, 2008

OMG The Secret is out

The secret to who wrote the notepad application is finally out , its the Chinese.

To prove this fact do the following steps.

1. open a new text document (notepad)
2. type this in there
Bush hid the facts
3. save the document and close
4. Open the document
5.Open google translate and paste the text in there and wait for the answer.

This just made my day .Please try it and let me know if your result is the same as mine. I will post the results here a bit later( i have done it already and it does work).

Update : There is no real secret or mystery here , all that is happening is there is a code page bug in notepad where typing in any sequence of words causes it to load the incorrect page file the next next .

You can all put your guns away and go relax now

Appleseed …. the truth in fiction

Appleseed part2 is by far one of the greatest anime’s i have ever seen .Combining the best of CG and Anime there is no better way to introduce yourself into the wolrd of anime . I should say this now that there is a spoiler ahead.

The basic story in Appleseed 2 revolves around a new piece of technology that is worn over the eyes not unlike a pair of sunglasses except that it connected to almost directly to the brain. Because of its great popularity there is almost no person in the movie that does not have one. The villains then use this device to control the user effectively turning them into zombies .Please keep in mind that all this is very simplified and its recommended to watch the movie to get the entire experiance.

The problem comes in where in todays age everyone uses cellphones in a very similar fashion .This has actually gotten to a point where people have developed a phobia of being disconnected from their phones or even technology .If say someone found a way to manipulate people using this technology then would we not have a scene as depicted in the movie. Granted we wouldnt have anyone to come and save us but its pretty interesting to watch a movie like this and then bring the conclusion to how it relates to current day and times. While the technology used is still quite far off the concept in the movie is very close , the tensions for war are slowly escalating day by ,should we have anything to fear or is that time still to far off. I guess only time can tell

Nullable Data Types

I just found a very easy way of using nullable data type in c#. While this may not be the freshest of news to all i though i should share it anyway.

Nullable data types allow you to either store null in a variable or just the value.

e.g.

Nullable<int> count;

if (count.HasValue)

{

someOtherVar = count.Value ;

}

if this was done without nullable types it would result in a null reference exception , but in this case the Has value would equate to false and the code would not execute.This is all fine when working with small sets of code ,but eventually if you start using this alot (especially with databases) this tends to get unsightly .So the cleaner version now.

int? test;

if(test != null)

{

someOtherVar = test;

}

As one can see this definitely cleans up the code , some people might complain that the Has value makes more sense , in this case it all comes down to personal preference as there is no advantages to either way.

FireStats icon Powered by FireStats