Saturday 15 March 2008

Snake - 'Beta' for Compact Framework 2.0

Feeling bored that I didn't have a snake game on my phone, I wrote one for it. It just took me a day to write it and another day to polish and refactor code. There's nothing great about the features. It's just a simple snake game like the onez you 'used' to get in nokia 3310 phones, which is almost extinct nowadays.

However on the technology side,

there are two things i could accomplish.

1] I wrote a double buffering mechanism without utilizing any libraries or using DirectX. Yes!, This sample runs on plain and elegant 'winforms'. I've also used a separate mechanism to control the frame rate of the game / render loop () :-).

2] I used Asynchronous programming to smoothly fire off a pseudo-random generator , while the render loop continues in the same thread.

snake - 'beta' (simply because there aren't any great features and i don't intend to put any, unless i find myself awake on a summer night at 3am and completely jobless)

Sunday 9 March 2008

'System.IO.FileNotFoundException' while loading from Resource File (Pocket PC)

You get this exception when u try to read a bitmap from a resource file in compact framework. Even though the app. works fine, the exceptions can scare you , as it did for me, it seem to puzzle me and constantly psyched me, making me feel that i was doing something terribly insane ,therefore challenging my intellect.

A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll




After painstaking analysis and innumerable Google searches i find the problem was with the CF CLR . the CLR tries to load two satellite assemblies and fails before it loads them from the current assembly (manifest resource). It's actually an issue with the .NET CF and the bug can be found here. Hmm, now i can go to bed peacefully..CF Team kiss my chaddees , bloddy hell innit?

Sunday 24 February 2008

Excerpts from a 'Software Developer' Interview

Candidate : pops in, pulls a chair,sits down and makes himself agreeable for the interview

Interviewer : Well, Mr.X ,I See you have a good degree etc etc...Have you come across this book, may be read it , it's called 'Code Complete' by Steve Mc Connell ?

Candidate : Err,.Eh, not sure,yes may be.

Interviewer : Thank You! , eloquently points his finger at the door.

Speed Boat Distributed Systems Development Team

 

Hull DS, the Distributed Systems Development Team. We develop software just worth enough to buy a 'speed boat'. Now if you're wondering what makes me say that, we have been groomed to do just that and forget about the surplus money factor!!!!.

Rob Miles, our guru and mentor speaks thus when asked something like 'how do you price software for good revenue keeping the risk triangle in mind' ?

Rob Miles: Software should be priced in such a way that by the end of the project, the stakeholders go home happy and you're left with money just enough to buy a speed boat!!. Now, that's Job Well Done!!

It's a Smart Ass world out there..

An XYZ company's marketing spokesperson was demonstrating the dynamics of his company's new 'cool speech recognition software' to an audience;

you are about to witness a revolutionary software product now he said, and he clapped his hands;

Welcome it said, 'what can i do for you' ?

the man ordered; 'start' 'program1' 'type' 'email' etc etc..

the 'smart' software obediently and elegantly executed every order of his, The audience viewed the demo in serenity.. suddenly,

someone at the back shouted:

'Run' 'Format' 'C Colon' 'Yes'