Posts

Showing posts from June, 2008

Phillips Go Gear SA-31 Media Player - Repairing Firmware

Image
I purchased Phillips Go Gear SX 31 Device on 14th Feb 2008 from the Next's store. This is a beautiful black device with easy interface. This was working fine up to Tuesday last week when it started to misbehave. Any song I tried to play was being played in the fast forward mode. It was producing strange sound in the earphones. Thinking that any key might not have released, I pressed all the keys. But that doesn't work. I switched the device off and then switched it on again. Hopefully, I tried to play the song. But again it was running like a jet plain - skipping 4 seconds at a time. The seconds count was 1...5...9...13..so on. Being a software professional (Microsoft technology), I thought of giving the device a hard boot. But the device has in-built battery and there is no way to remove its battery. Today while I was enjoying my Sunday morning (at 11:30 am!), suddenly I remembered that the software that came with the device has an option to repair its firmware. I switc

True / False in classic VB

In classic VB (and classic ASP as well), zero is considered as false and any other non-zero integer is considered as true. While debugging an asp page, I come across following line: If Not Request.Form.Count Then ... Now form count was 2 (true) so the condition should evaluate as false (Not true). But this was always evaluating as true. It took me half an hour to find the catch. What actually happening here was that Not is a bit-wise operator in VB. It flips the bits. So, 2 is 0000 0010 in binary. NOT 2 is 1111 1101 in binary. Considering that the last bit is sign bit, this becomes -3. Now our condition If NOT (2) becomes If (-3), which always evaluates to true (non-zero integers are always true in VB).   Technorati Tags: ASP , VB , Programming , Classic+ASP