/dev/random

Reality has a liberal bias

/dev/random random header image

Entries Tagged as 'Programming'

Filing bug reports for iPhone SDK

March 11th, 2008 · Comments Off · Programming, iPhone

Rogue Amoeba has filed bug reports for many of the iPhone SDK’s limitations, including:

Allow applications to be installed at the user’s discretion, not Apple’s

Allow applications to run in background on iPhone

A MediaPicker API for accessing the iPod music files is needed

Add option to allow iPhone applications to access entire filesystem

Allow iPhone applications to access the [...]

[Read more →]

Tags:

Evil Software

March 8th, 2008 · Comments Off · Programming, Web

I don’t pay much attention to Windows shareware & freeware, so I haven’t heard of G-Archiver until I read this item at Coding Horror.

I was looking for a way to back up my gmail account to a local drive. I’ve accumulated a mass of important information that I would rather not lose. During my search [...]

[Read more →]

Tags:

New compiler in iPhone SDK

March 8th, 2008 · Comments Off · Macintosh, Programming, iPhone

XCode 3.1 with the iPhone SDK includes a very interesting new compiler, llvm-gcc. This is an alternate version of the standard C compiler based on the llvm open source project for improved optimization & CPU architecture support.
SHARETHIS.addEntry({ title: “New compiler in iPhone SDK”, url: “http://mcdevzone.com/2008/03/08/new-compiler-in-iphone-sdk/” });

[Read more →]

Tags:

iPhone SDK restrictions

March 7th, 2008 · 2 Comments · Programming, iPhone

I finally downloaded the iPhone SDK and I’ve been exploring it all day. However, the license has some serious restrictions which may affect our ability to develop our product for the iPhone. In particular:

3.3.1 Applications may only use Published APIs in the manner prescribed by Apple and must not use or call any unpublished [...]

[Read more →]

Tags:

Don’t ever do this

March 5th, 2008 · Comments Off · Programming

I’m debugging a piece of code (which I didn’t write) that acts as a specialized web server when I found a little gem (more like a turd). When a system call fails, it simply calls exit(0) to quit immediately with no error message and no attempt to recover. Argggh!
SHARETHIS.addEntry({ title: “Don’t ever do this”, url: [...]

[Read more →]

Tags:

Making money with freeware

February 28th, 2008 · Comments Off · Macintosh, Programming

David Watanabe came up with a great idea to make money on the new free version of NewsFire: include three paid-for feeds that the user cannot unsubscribe from. Site owners can bid for a spot as one of these feeds, bringing Watanabe revenue while offering a great product for free.
Recently there was an uproar when [...]

[Read more →]

Tags:

Is Assembly Language programming an obsolete skill?

February 19th, 2008 · Comments Off · Programming

Obsolete Skills is a wiki inspired by Scoble’s recent post listing “things we used to know that no longer are very useful to us”.
One of the “obsolete skills” listed on the wiki is assembly language programming. Although most programmers won’t write an entire application in assembly language, it’s still a very useful skill for several [...]

[Read more →]

Tags:

Trouble with case-sensitive file system

January 7th, 2008 · Comments Off · Macintosh, Programming

One of our customers was having a strange installation problem after upgrading their Mac from 10.4 to 10.5. It turns out they reformatted the drive as a case-sensitive file system. During the installation, a utility gets downloaded from the server. The installation process specifies a pathname to execute that utility, which doesn’t match the case [...]

[Read more →]

Tags:

Permission problems

October 16th, 2007 · Comments Off · Macintosh, Programming

Repairing permissions is considered the Mac equivalent of snake oil or waving a dead chicken. It’s usually the first thing suggested for fixing problems, although in most cases it does nothing. There are a few rare problems that it actually does fix, and I encountered one of them today.
One of our customers has been having [...]

[Read more →]

Tags:

New LoJack Release

September 24th, 2007 · Comments Off · Macintosh, Programming

We released a new version of LoJack for Laptops today. One of the major changes in this version is a new installer. Instead of using Apple’s installer, this is a full Cocoa application which handles user registration, assigns a serial number through a web service, and ensures that it’s calling successfully. This is the major [...]

[Read more →]

Tags:

Backward Compatibility

September 17th, 2007 · Comments Off · Programming

As a developer, my least favorite thing is having to maintain backward compatibility with older systems. It keeps me from being able to use the latest features and I often have to have some code duplicated to do things differently depending on the OS version.
For example I’m using the new, preferred method with launchd [...]

[Read more →]

Tags:

Lesson of the day

August 22nd, 2007 · Comments Off · Programming

When writing Objective C code, never forget to have your init method return self or bad things will happen, but maybe not in a debug build. I wasted over an hour on that today when my debug build worked perfectly but a release build crashed in awakeFromNib where it was initializing a series of items [...]

[Read more →]

Tags:

My2unz.com Improvements

August 19th, 2007 · Comments Off · Drupal, Programming, Web

I’ve made a few improvements to my2unz.com over the weekend. I set up several color variations of the theme, and enabled theme switching. I also did some work on the iTunes module and changed the database tables slightly to add a few new features.
One of the problems with the previous version is that I considered [...]

[Read more →]

Tags:

Clean SOAP

April 30th, 2007 · Comments Off · Programming

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 [...]

[Read more →]

Tags:

AppleScript and dirty SOAP

April 25th, 2007 · 1 Comment · Programming

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 [...]

[Read more →]

Tags:

Working on Mii Transfer

March 28th, 2007 · 5 Comments · Programming

I’ve been trying to use Jasen’s branch of WiiRemote Framework from Subversion which integrates my code and is supposed to make it more reliable on PowerPC. Unfortunately I found that it makes the connect much less reliable, at least on my MacBook Pro. I fixed the problem with Miis other than the first one being [...]

[Read more →]

Tags:

Mii Transfer progress

March 21st, 2007 · 2 Comments · Macintosh, Programming

I haven’t had a chance to do much work on Mii Transfer this week. but I’ve changed the way I read Mii data to read the entire 750 byte block (+ CRC bytes) into a buffer and then simply copy the requested Mii from the buffer. I also fixed the reported bug where Miis other [...]

[Read more →]

Tags:

More about Miis

March 16th, 2007 · 2 Comments · Programming

I’ve been looking at the code for sending Miis to the remote and I discovered it’s not as simple as receiving a Mii. You can request a single Mii, but you can’t send only a single Mii - you need to send the entire block of 10 Miis with the properly calculated CRC. That means [...]

[Read more →]

Tags:

Mii Transfer 0.1a fixes PowerPC compatibility

March 13th, 2007 · 6 Comments · Macintosh, Programming

I just released Mii Transfer 0.1a to fix the launch problem on PowerPC Macs. There are no code changes, I simply linked it with a universal build of WiiRemote framework. Intel Mac users don’t need to update.
I also added a troubleshooting section to the readme file. The major problem on G4 Macs (which is actually [...]

[Read more →]

Tags:

Mii Transfer source code & project page

March 11th, 2007 · Comments Off · Macintosh, Programming

I’ve released the full source code for Mii Transfer including the modified version of WiiRemote Framework, and I’ve also created a project page with all of the download links.
SHARETHIS.addEntry({ title: “Mii Transfer source code & project page”, url: “http://mcdevzone.com/2007/03/11/mii-transfer-source-code-project-page/” });

[Read more →]

Tags: