Monthly Archives: August 2010

Following on from dynamic clocks.

It would also be nice to draw multiple clocks if one is ‘full’ it starts another. This example draws and returns a maximum of three clocks but always returns a 90×30 image: – (UIImage *)drawClocks:(NSNumber *)time { UIImage *image; int … Continue reading

Posted in Programming | Tagged , , , , , , | Comments Off on Following on from dynamic clocks.

Drawing little clock icons dynamically.

It’s kind of nice to be able to dynamically draw little ‘clock’ time icons. This function returns a UIImage of 30×30 pixels containing such an image: static inline float radians(double degrees) { return (degrees * M_PI) / 180; } – … Continue reading

Posted in Programming | Tagged , , , , , , | 1 Comment

Gym part 2 of x.

So first visit this week. Went three time last week, once with Martin. Good to exercise with company and not as pain inducing as a trainer. Still not hitting 8 mins for 2km rowing but we’re getting there. Cardio is … Continue reading

Posted in Exercise | Tagged , | Comments Off on Gym part 2 of x.

A view of a dying way of Fen life.

Nice audio slideshow. The Eel Man of the Fens

Posted in Miscellany | Tagged , , | Comments Off on A view of a dying way of Fen life.

Nice ish transitions from a photo thumbnail to a full screen view.

The method of animating the appearance of views in Cocoa is good and simple I think. You can use an inbuilt one, which just works, or you can start an animation block and effectively program in key frames. To make … Continue reading

Posted in Programming | Tagged , , , | Comments Off on Nice ish transitions from a photo thumbnail to a full screen view.

So so close.

Just two bugs away, probably, from having something working in its entirety. E.g. everything else is additional features rather than core functionality. Current bugs: 1 – Render of StepTableCell is outside the bounds of the cell for reasons unknown, it’s … Continue reading

Posted in Programming | Tagged , , | Comments Off on So so close.

Well these are novel reasons for offering a patch.

I guess there must be a fuckton of starcraft players out there with macs. Hopefully not the same specs or macs though. Interestingly I have experienced both of the issues this apparently fixes.

Posted in Games | 1 Comment

A few inconsistencies in approach…

As I read through some of the code I’ve written I notice things I’ve done twice, unnecessarily. For example a custom table cell has a property (variable/object in normal language) called category of type Category. The table view controller to … Continue reading

Posted in Programming | Tagged | 2 Comments

A bit more fun with photoshop.

Two little icons…..

Posted in Art, Drawing | Comments Off on A bit more fun with photoshop.

A small applescript utility.

Knocked this up today as I figure it will prove it’s worth in the future. Drag and drop an image onto it and it will generate the necessary files for the various icons/artwork an iPhone/iPhone4 or iPad application, it should … Continue reading

Posted in Programming | Tagged , , , | Comments Off on A small applescript utility.