Archive for March, 2010

upgrading iPhone 3GS to 3.1.3 using VirtualBox

Tuesday, March 23rd, 2010

Today I experienced more or less the same problem as reported hereon iBricking when upgrading using iTunes under VirtualBox. I found a way through, though. The problem is that the iPhone “disconnects” from USB during the process, and reconnects again later. Some times with a different “id”. VirtualBox does not automatically attach the iPhone again, and one has to manually watch the sync process and discover that the iPhone has disconnected. If one is quick enough (not that difficult, iTunes seems to be retrying to connect to the iPhone quite patientely), to reconnect the USB device to the virtual machine, then the upgrade can work.

iPhone

iPhone

It can help to have a command like the following running in a console window # watch -n 1 lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04b3:4485 IBM Corp. Serial Converter
Bus 001 Device 005: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 001 Device 019: ID 05ac:1281 Apple, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

The usb id’s changed something like

Recovery Mode:
xxx 1293 (I believe to remember).

Restoring
  Bus 001 Device 021: ID 05ac:1294 Apple, Inc.
Reboot (disappeard from usb bus)
Re-appearing as (you need to
Bus 001 Device 022: ID 05ac:1294 Apple, Inc.

during the restore to factory settings and restore from backup.

postfix not delivering mail to cyrus-imap

Wednesday, March 17th, 2010

I did not receive emails, all of a sudden on my Mandriva postfix mail service. I think the reason was that postfix had not been restarted since last update, and when I restarted today (when adding my new domain wemobilize.dk) a bad change from last update got effectuated.

post delivery

post delivery

The log said:

 status=deferred (connect to mail.efef.dk[/var/lib/imap/socket/lmtp]: No such file or directory)

http://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-September/026838.html gave the hint to disable chrooting the lmtp service, i.e. use:

lmtp  unix    -       -       n       -       -       lmtp

instead of

lmtp  unix    -       -       y       -       -       lmtp

in master.cf.

Rapid Application Development (RAD)

Monday, March 15th, 2010

I wanted to quickly sketch a user interface, and usually I resort to pen and paper for the first iterations, but I wanted to try a RAD tool, to see if that was quicker. I had played with SWTDesigner and netbeans, but non of them were really easy to use for this purpose — to much tied to the generality of their tool kits (SWT and Swing, respectively).

I googled for linux and RAD and found Gambas – http://gambasrad.org/. It seemed well thought out, mature and well documented, so I gave it a whirl. In four hours I had had a working demo for the concept I had in mind, including images, movies (animated gif), sounds, timers, buttons and screens.

I used xvidcap to capture a move of the demo since it by default only produces linux executables (guess it should be able to export windows executables since it can use QT or GTK+, both of runs under windows, as far as I remember).

Recommended! Do you have any other favorite RAD tools?

Resources