I gave up on using AppleScript Studio for my Installer front-end application. AppleScript’s SOAP implementation seems to be broken. I ended up writing it in Objective C instead, using Web Services Core. It isn’t that much more difficult than writing it in AppleScript, and I’m able to use the window layout I already created for the AppleScript version. By encapsulating all of the web service method calls into a single class, I’m able to keep the code fairly simple.
Mike Cohen
links for 2007-04-30
-
I love her music. She combines vocal technique and lyrics reminiscent of Joni Mitchell or Tracy Chapman with hot Senegalese rhythms.(tags: music)
Wii Sports is a hit
Last night I had a cookout with 3 of my friends and neighbors. After dinner we played Wii Bowling and everyone loved it. In fact we’re planning more “Bowling Nights”. This morning one of my friends told me she had a sore arm from bowling.
These are people who never play video games and have no interest in traditional game consoles. This shows how the Wii is different. By bringing you into the game with physical activity rather than sitting on the couch with a gamepad, the Wii appeals to everyone.
links for 2007-04-28
-
The Cathena CX is currently available with a choice of Windows XP (Home or Pro) or Windows XP Embedded, and is priced from $799 (depending on options).(tags: linux)
links for 2007-04-27
-
A very nice tool for building custom WordPress themes
-
In a new interview with the OpenBusiness project, Ubuntu founder Mark Shuttleworth explains the Ubuntu business-model. He gives away a free, high-quality version of Linux but makes money from the “ecosystem” of services surrounding Ubuntu.
Spontaneous Theme Switching
For a while I’ve been having a problem with this site where the theme would spontaneously switch to the default theme at random times. Since it started happening around the same time I switched to DreamHost’s one-click install, I attributed it to some monitoring process they were using or the WP-Cache plugin, which was also installed. I worked around it by replacing the theme folder named ‘default’ with a symbolic theme to the actual theme I use. Today Aaron mentioned having the same problem and he doesn’t use DreamHost.
Searching the WordPress support forums turned up this article, attributing it to Alex King’s WP-Mobile plugin being installed incorrectly. However, I don’t use that plugin but I do use David Harper’s Ultimate Gamers’ Pack, which reformats the page for viewing on a Wii, PSP, or DS-Lite.
It’s basically the same problem – I didn’t install it correctly. Each plugin includes a theme folder, which needs to go in the themes folder rather than the plugins folder where I placed them. As soon as someone accesses the site with one of those devices, it will fail to access the theme, which will cause WordPress to revert to the default theme.
Mail screw-up
I just discovered that I messed up my .procmailrc file, so much of the email sent to mcdevzone.com, worldbeatplanet.com, or macmegasite.com ended up in a file sitting on my server rather than my mailbox. I fixed it and I’m now importing that old email into mail.app.
How not to run a blog
wiisee.net is one of the news feeds I subscribe to for Wii news. It usually has interesting items, but they only post excerpts with no link to the original article and no information about where the articles came from. If I want to read the full article, there’s no way to find it from their site.
links for 2007-04-26
-
Brent Simmons’ tips for working with large Cocoa applications(tags: cocoa programming)
AppleScript and dirty SOAP
I’m writing an AppleScript Studio application which needs to call some SOAP web services before running an installer. Somehow AppleScript seems to be adding a bogus namespace to the SOAP call.
The method I want to call should look something like this (actual names changed):
<RegisterUser> <UserData>xyzzy</UserData> </RegisterUser>
Instead, the request looks like this:
<m:RegisterUser xmlns:m="http://myserver/mynamespace"> <UserData>xyzzy</UserData> </m:RegisterUser>
The AppleScript code looks pretty standard:
tell application "http://myserver/endpoint" to¬
call soap {method name:"RegisterUser", ¬
parameters:{|UserData|:"xyzzy"},¬
SOAPAction:"http://myserver/namespace/RegisterUser", ¬
method namespace:"http://myserver/namespace"}
I have no idea where the bogus ‘m’ prefix came from. This same method is being called successfully from .NET under Windows.