Mac app checklist

March 25th, 2007

Mac app checklist:

“A list of things that you must do for every app. Most of these should be done up front; some can be put off a little bit; some can be put off a long time, but ought to be done at some point rather than put off into the indefinite future.”

(Via Domain of the Bored.)

I’d agree with all of Peter’s comments- I can’t stress point 1 enough!

Bluetooth Proximity Detection on OS X

March 20th, 2007

Bluetooth Proximity Detection on OS X:

Droppedimage“One thing that I’ve been playing with off and on for some time is a small efficient little solution for handling basic Bluetooth proximity detection, specifically for being able to perform certain actions when a cell phone or other Bluetooth device is in range of my Powerbook.”

(Via The Technocrat.)

Great article, what a brilliant idea!

It’s cocoa time!

March 19th, 2007

I’ve finally finished at university for Easter where the last few weeks have been particularly hectic. I’ll mostly be spending the holiday writing my project report, but I’ve got some cocoa projects that I’ve been neglecting for a while now. I’ll be easing myself back in with a little freebie, which I hope to have complete by next week.

Cocoa its good to be back!

First 75 days of Wii Transfer

February 28th, 2007

First 75 days of Wii Transfer: “In the tradition of other independent Mac developers such as Mike Zornek, Daniel Jalkut, and Gus Mueller, I’m going to share some sales information from the first 75 days of Wii Transfer.”

(Via Manton Reece.)

Well done Manton, I can only hope that my first product will do as well as yours!

Another Link Lost

February 21st, 2007

I’ve done something stupid (again!). I recently read a great article on avoiding the use of the float data type in financial applications. I said I’d forward the article on to a friend, but I can’t seem to find it. Does anybody know the article I mean? All help appreciated. Cheers!

[Update] I’ve found the article I meant. It was over at allocinit.net. I found it in a slightly unusual way however, that may be of use to others. I found the site to which it linked, and then used Google to search for sites that linked to the paper using the link: prefix. Lo and behold the site I was looking for was in the first couple of hits :-)

I’m still here!

February 21st, 2007

I’d just like to let everyone know that I’m still here! I’ve been snowed under with my dissertation, which has been moving along quite nicely. The cluster scheduling simulator is up 11,000 lines of code making it by far the largest piece of software I’ve written single handedly.

On the cocoa front, I’ve been working on a super-cool top secret application which I hope will be finished shortly. I’m finding switching between java and cocoa is getting easier, but it still takes me a couple of hours to really get in the zone!

I’ve also been writing a couple of cocoa tutorials, which I hope to release here shortly. I’ve been working on a tutorial for shell script Automator actions and also some notes on my experiences of creating importers for spotlight. If any body has suggestions for further tutorials let me know. I’m planning to focus on aspects I find/found hard (of which there are many).

My Thoughts on Automator

January 4th, 2007

Automator was introduced with the launch of Mac OS 10.4 (Tiger), so I’m fairly late in discussing it here. However a recent post to my local Mac User Group’s mailing list got me interested. The simple question was “Is it possible to monitor a web page for changes?”.

I’m a big fan of the terminal, so I knocked together a quick shell script to check the page and mail me if anything had changed. I then thought, I’ll just run this every x minutes as a cron task. This would be fine for me, however I then began to think about less technical users- how could I package the script for them? A user on the mailing list had suggested an AppleScript, so I could have rewritten the shell script in AppleScript putting in an infinite loop to allow it to check periodically. I hate AppleScript (I’ll leave that for another post), so that option was immediately out.

Then it struck me- why don’t I create an Automator task for the action?

I had seen the sneaky option for a Shell Script Automator Action:
screenshot.jpg
I thought I’d just sit down, cut and paste my script and be done before dinner…and I was!

The whole experience of creating my own Automator action was great. I referred to the Automator Programming Guide for required information, and surprisingly the whole thing took a little over an hour.

Then Automator’s only weakness became apparent. I searched high and low for a way to repeat workflows periodically. There was none in sight, and I was back to square one. I did come across the third-party Automator Loop Utility which serves the purpose.

In short I like Automator a lot. The ease of development of custom actions is fantastic and the developer’s documentation is well-writen (as always). But I refuse to love Automator until it will repeat my tasks automatically.

Technorati Tags:
, ,

Recursive Word Count in Terminal

January 2nd, 2007

I’ve recently wondered about how to recursively count the number of lines within a series of files within a directory hierarchy. The command that I came up with is:
wc -l `find . -name \*.java -print`
The output is very readable, since it prints both the filename and the number of lines.
Enjoy!

Technorati Tags:
,

Mail-Style Interface Source

December 31st, 2006

Dave Batton at Mere Mortal Software has produced an excellent tutorial on developing an Apple mail-style interface. To develop the interface he has brought together useful classes from a whole bunch of awesome developers. Well done Dave, I hope you write more tutorial style articles in the future!

Technorati Tags:
,

Java Statistics Library

December 31st, 2006

I’m currently involved with the development of a high-performance cluster simulator. As part of the project I’ve written a statistics library in Java. I’ve now made the library available at http://public.maquib.com for anybody to use freely. I’m planning on doing a Cocoa port ASAP.


Technorati Tags: