Fix iTunes + Windows 7 + iPhone

Update: Using the latest iTunes 64bit with Windows 7 64bit, I had no more problems. Can’t vouch for 32 bit versions, though.

Problem:
After a first successful sync of my iPhone with iTunes on Windows 7, I rebooted my PC. Consequently, any attempt to start iTunes with my iPhone plugged in results in an error dialog:

“iTuness cannot connect to this iPhone because the required software is not installed. ….”
The message also suggests a fix – removing and re-installing iTunes using the iTunes setup package.

Real solution:

Obviously the method the error dialog suggests does not work. Instead, the following steps do:
1. Go to Control Panel > Programs > Uninstall a program
2. One by one remove the Apple Mobile Device, Bonjour and iTunes programs
3. Reboot the machine
4. Use the iTunes setup package to install again
5. Reboot your PC
6. Sync (finally)

Advertisements

OpenSuse 11 and WiFi

A week or so ago I shuffled computers around the house. As a result one of my desktops couldn’t be reached by wired Ethernet any more, so I thought of going wireless. Bought a cheap Asus PCI-Wireless card (WL-138G) which worked like a charm on Vista and XP. That’s the sunny side of the story.

In the spirit of weekly change, Thursday night I got my hands on OpenSuse’s latest and greatest – version 11, Beta 3. It installed fairly quickly, it looked nice, and it even seemed that it got all my cards – including the WiFi one. Oh joy. But my joy did not last too much – one click on the Firefox icon and doom came: there was no internet. So I tried changing the settings in the Network Settings menu of Yast2, using the Network Manager to shuffle even more seetings, but all in vain.

Back to the internet for a solution. Most links I found involved blacklisting the default driver and using ndiswrapper to extract the firmware from the Windows drivers. Which of course didn’t work. Late last night though I found a solution in a forum, somewhere. I had to tweak it a little, but it worked.

Technical data: the card uses a BroadCom 54G Air chipset, shown by a lspci command as BCM4318. I also had an ethernet port, which proved essential to get the wifi to work.

Steps:

  1. Open Yast and go to the Software management category.
  2. Search for and install most things that have to do with wireless. Especially the K WIFI NManager.
  3. Search for and install the b4xx_fwcutter and curl.
  4. Open a terminal and run ‘su’. Then enter the root password.
  5. Run install_bcm43xx_firmware. This will fetch two packages and install them.
  6. Reboot the machine. On the page I found this idea it said that it should work.
  7. However, when using the K Network Manager to setup my wireless there was nothing detected. Nor were any networks found using the K Wifi LAN Manager scan.
  8. In the K WiFi Manager, in the settings tab there is an instruction that allows you to change the signal strength thresholds. Once you click that, wifi will start poring in.

So this is it, guide to WiFi in OpenSuse 11 Beta 3 in 8 easy steps 🙂

Now if I could get libxine, mplayer and lirc to work with my specs I can get rid of Windows.

Setting up subversion on Windows

svn logoToday I had something to test that required a svn repository. Since my home repository wasn’t answering my calls (well, pings actually) I decided to do a quick install of the svn server on my Windows XP box. From what I remembered it should have been simple enough.

After restarting all the process at one point, because I hadn’t paid attention to the warning about Apache 2.2, I found my Apache 2.0 refused to load the dav_svn module and couldn’t figure out why. A quick search on Google revealed the cause, but it still was annoying. Continue reading

The file(s) with no death

Aas I was working with some ANT scripts today (well, yesterday by the time I finish the post) I stumbled upon a strange situation (or so I thought at first): my ANT task failed when trying to delete some JAR files. I checked the path to the file – it was correct. I checked if the file existed – it was there, waiting quietly. I checked its properties – it was read-only. I said bingo, changed the attribute and ran the task again. 2 seconds later, the same error. I checked whether other programs had the file opened. None.

Some minutes later, after searching for a bit on the net I verified the system CLASSPATH environment variable. And there were the two causes: I had the .  added to the classpath. And so it seems that this is why JARS cannot be removed automatically by ANT.

Now, as a rule of thumb, it’s not very smart to have the . in your classpath variable (in my defence I added it for a test before leaving work the previous day and forgot to put it out), but if you run into files that will not die, check it out – it’s worth a look.

Command history

Today I found out from Ha neat trick in Windows XP’s command line console (cmd for friends): it has a built-in history of commands. If you open up the console and issue some commands, and then later on you hit F7 you will be prompted with a MS-DOS style window. From this window you can choose one of the previously issued commands and run it again.

This just goes to prove that you can use the same OS for a few years and still discover new things.