Posted by robert on April 18, 2009 at 12:29 AM
Been a while, work and Cocoa have not really allowed me to do a lot of posting, but I intend to slowly pick it up again as my motto for this year is to share more since so many people provide me with so many useful things. Today I'm sharing my modified IPCC file for the iPhone OS 3.0 (beta, you need to have a developer account with Apple) that allows you to use MMS and tethering if you have a corporate subscription with Vodafone NL and you're using it on your iPhone.
Download it here and remove the .zip extension. In iTunes with the iPhone connected hold the 'alt' key and click on the 'Check for Update' button, select your IPCC file in the dialogue that comes up, hit OK and you're good to go after a 3-4 second upload process :-)

Update: save the script below as an application and place it in your iTunes scripts directory. Assign a keyboard shortcut to the genius script's menu item (in your keyboard system preference pane) and you can trigger the script from the DarwiinRemote application. Ultra geekness with a genius :-)
__________________________________________
and that's why I slapped together a less than elegant Applescript 'solution' to activate the Genius function on the currently playing track through an Applescript so I can try and activate it from my Wiimote (Genius needs direct, one-button access in order to be truly great). The problem is that Apple does not support GUI scripting very well in iTunes, with the result that you have to activate the iTunes window so that we can use a 'click' applescript command to activate the button. Here's the script:
-- initialise
global iTunesHidden
global frontApp
set iTunesHidden to 0
-- store the name of the active application (fast)
set frontApp to my getFrontApp()
on getFrontApp()
set colon to ":" as Unicode text
set dot to "." as Unicode text
set appPath to (path to frontmost application as Unicode text)
considering case
if (appPath ends with colon) then
set n to -2
else
set n to -1
end if
set astid to AppleScript's text item delimiters
set AppleScript's text item delimiters to colon
set appname to text item n of appPath
if (appname contains dot) then
set AppleScript's text item delimiters to dot
set appname to text 1 thru text item -2 of appname
end if
set AppleScript's text item delimiters to astid
end considering
return appname
end getFrontApp
-- check if iTunes is hidden and active
tell application "System Events"
if visible of process "iTunes" is false then
set iTunesHidden to 1
end if
end tell
if frontApp is not "iTunes" then
tell application "iTunes"
activate
reveal current track
end tell
end if
-- activate Genius
tell application "System Events"
get properties
get every process
if UI elements enabled then
tell process "iTunes" to click button 10 of window "iTunes"
end if
--hide iTunes if it was hidden
if iTunesHidden is 1 then
set visible of process "iTunes" to false
end if
end tell
-- restore previous application
if frontApp is not "iTunes" then
tell application frontApp
activate
end tell
end if
Wonderful... Now I need to figure out how to integrate this into the iTunes script menu (which requires me to most likely remove half of the code in this masterpiece).
Yesterday we did a small half-a-day project to modify 2 Ikea lamps into a speaker set for the bedroom using 2 old speaker components from our old Philips widescreen TV. I used the amplifier of a broken set of pc speakers to power the speakers. It not the kind of thing for audiophiles, but we're satisfied with the result.
We have moved to Porta Genova (yay!) recently and we need the occasional break. While packing I ran into this broken cat robot and on my quest to weight reduction decided that the cat's days were numbered... time to take out the cat's internals to see what sensor goodness it has to offer.
Today's harvest? A touch sensor, a microphone, a mini speaker, 2 LEDs, a DC motor and the logic board with a microcontroller. One day these will come in handy.

We have temporarily disabled commenting on the blog due to the insane amount of comment spammers. Note to comment spammers: 'we don't want you here, or anywhere else on this planet.' We'll be back with you shortly after a brief period of silence on this blog.
It's one of those things, for the past year I have been struggling to get iChat video-conferencing to work with my father in the Netherlands. After wasting another 3 hours today I finally discovered the culprit; the UPnP setting on our Belkin wireless router. I turned it off after having tried all suggested solutions out there on Mac-related forums and it turns out that it solves my problem, both on my G5 and all the other machines in the network.
So for all Mac users out there with a Belkin wireless router (and possibly other routers with similar configurations) and an 'error -8' after trying to start an iChat videoconference, this one's worth a try. Note that the problem persisted with iChat after the upgrade from Tiger to Leopard.
One day everything ZeroConf and UPnP will work in beautiful harmony and the use of internet-based services around the home will be a bliss, both in terms of ease-of-use and in terms of security (about the same as hoping for world peace...) I hope the above suggestion is at least useful to someone out there.