A consolidation of my blog, fotolog and YouTube, plus little comments and news.

Rubber Duck Method of Debugging

 

Behold the Rubber Duck method of debugging.  It goes like this:

1) Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck
   (bathtub variety)
2) Place rubber duck on desk and inform it you are just going to go over
   some code with it, if that's all right.
3) Explain to the duck what you code is supposed to do, and then go into
   detail and explain things line by line
4) At some point you will tell the duck what you are doing next and then
   realise that that is not in fact what you are actually doing.  The duck
   will sit there serenely, happy in the knowledge that it has helped you
   on your way.

Works every time.  Actually, if you don't have a rubber duck you could at
a pinch ask a fellow programmer or engineer to sit in.

Thanks Andy for bringing it up here.

Green belt

Yeah!!! I’m a green belt now!!! Yuppi!!! :)

Confused…

I’m so confused with all my networking things that I don’t know where to post things anymore… :)

My iPhone is bricked

After I posted about my iPhone not working properly right after 3.1.3 update here, here and here, I reboot, reset, restore, and ran out of options. So I took my phone to the shop today, and it seems to be bricked, so it is gone now for repair. :( In the meantime, I have a loan iPhone 3G (not a 3GS like mine) from the shop…

I can’t believe Apple bricked my iPhone with a firmware update. :S The guy at the shop said he had another 4 cases just like mine only this week. And it’s still Tuesday. I’m very disappointed.

At least I should have my iPhone back to me in a week, and I won’t be totally offline until then.

iPhone charged, now let’s see.

It took my iPhone 3GS to charge from not to 100% almost 5 hours. Now let’s see if Apple is really “unscrewing” us.

Apple is “unscrewing”?

After being really disapointed at Apple yesterday, my iPhone 3GS died, out of battery, at around 3pm, so I connected it to my laptop to charge, without syncronizing it (I don’t sync it to this laptop). By the time I had to leave work it had only charged to 85%, so I disconnected it and went home.

As unbelievable as it sounds, I kept observing it and it wasn’t discharging with the same speed as before, things seemed normal. Today, it still does seem normal. After using it normally until I went to sleep, the battery was at 60%, and this morning it was still at 58%, after the whole night in standby. Quite alright.

I’m not letting it discharge completely, then I am going to charge it to 100% and I’ll post again to let you know what happened. The weird thing is that nothing has changed, I didn’t sync the phone again, so clearly there was something quite heavy running for a couple of days after the firmware update, that now has finished running. That’s my theory anyway.

Apple screwed me.

Apple released its new iPhone firmware, 3.1.3, some days ago, and the day before yesterday I updated my iPhone 3GS. They said the main correction was related to improving measurement of the battery, which is a good thing.

Now, the battery of my iPhone lasts about 6 hours. In standby, almost no use at all. It used to last over 30 hours, maybe more if I didn’t use it a lot.

I honestly hope they correct this issue in less than a week, it is just outraging!!!

I Hate Mondays

I Hate Mondays