Oops AB
Malte Tancred


Software of differing flavors and colors. Some of the listed entries I use on a regular basis, others are merely experimental hacks that serves no real purpose, not yet at least.


A unit testing framework for Objective-C on Mac OS X, written by myself and Peter Lindberg. The design of the framework was copied from JUnit, the unit testing framework for Java written by Erich Gamma and Kent Beck.


A spike I made exploring the System Configuration Framework in Mac OS X. It's a small Cocoa application listening for notifications from the configd. I've made tiny Objective-C wrappers around SCDynamicStoreRef and SCDynamicStoreContext.


A patch to djb's clockspeed to make it build on Mac OS X.


dirempty path — exits 0 if path is empty, 100 if not empty or 111 if an error occurred.


An RFC 2445 parser written in Objective-C. It's at a very experimental stage right now and only handles the inital parsing of iCalendar content lines. It works in a fashion similar to a SAXParser.


icalweek [ year ... ] — writes a calendar containing events for weeks as specified by ISO 8610 to stdout. This is really a spike and will be appropriately cleaned up at some point in the future. For now I'm happy enough this works with iCal.


newsystemuser.sh name uidgid — adds a user and group named name with uid and gid uidgid to the local netinfo domain. The user has a password of * and its home and shell variables pointing to /dev/null. Not very hard to do manually but it makes life somewhat easier when I need to add system users.


seq from to [ step ] — writes the numbers from from through to inclusive to stdout. As of version 2 the third argument step specifies the amount with which the current number is increased or decreased. For example: seq 1 6 2 should print the sequence 1, 3, 5 on one line each.


week [ date ... ] — writes the current week number, as specified by ISO 8610, to stdout, or optionally, the week number of each date given as argument. For example: week 2002-08-08 1988-01-01 should print the values 32 and 53 on one line each. Each invalid argument yields an empty line.

The code is written in Objective-C as a set of categories to NSCalendarDate (from Apple's FoundationKit).

See README in both projects for general description and change log.

Hopefully valid XHTML 1.0!