Apple Remote Control

I recently came across this utility for access the apple remote. It should be possible to use in shell scripts, applescripts and even Java as described here

I wanted to be able to have exclusive access to the remote and I found this discussion which showed me how to do it by changing the open command to use a 1 (this occurs in two places in the command.
ioReturnValue = (*hidDeviceInterface)->open(hidDeviceInterface, 1);

I have uploaded my changes here: http://jameslow.com/content/software/misc/iremoted.zip
How to compile is in the source code, but it took me a while to realise that, so here’s the command: gcc -Wall -o iremoted iremoted.c -framework IOKit -framework Carbon

Worship slides on an iPhone/iPod

I’ve been wanting a presentation program that could display on a TV or projector for my iPhone for a long time, firstly a laptop doesn’t fit in your pocket, and the new display port on my Macbook doesn’t have a TV out adapter. I thought about writing a mobile version of my Limelight application, that is a presentation management application, meaning it can handle different file types (powerpoint, text, movies), within the same application. That would be a lot of work and there aren’t any other programs out there yet. Apple hasn’t made their video out API public, so even the programs that can display powerpoint, can’t do it externally on a TV.

Discovery
I was browsing the Apple online store (as you do), and saw that the cable I have for plugging my iPhone in a TV also supported displaying photos. I didn’t realise this because it only does it when you start a slide show, by clicking the play button in a photo album. That made my mind click, and I realised I could use it to show presentations, or song lyrics.

Song lyric slides
Putting powerpoint presentations on the iPhone is discussed here, but this article will discuss how to easily create song lyric slides using Limelight. Once you’ve downloaded Limelight (available for mac or pc), and created some lyric files (just plain text files), you can simply right click a file or a set list and export images.

Sync photos
You should then have some slides exported to your Documents folder. These can then be copied to iPhoto or the folder on your computer that you synchronise your photos using iTunes to your iPod/iPhone. You’ll then be able to do something like this:

Tips and tricks
1) You need to start the slide show after plugging in the cable, otherwise it won’t show on your screen
2) You can’t normally pause a slide show on the iPhone, but you can if you’re outputting to the TV! That’s what you need for presentations! See the below screenshot.
3) You can edit the slide show settings under Settings -> Photos (I set the longest slide setting)
4) You can edit your TV out settings under Settings -> iPod-> TV Out
5) Its a good idea to turn of auto screenlock in Settings -> General -> Auto-Lock
6) You may need to reorder your photos within the album in iPhoto
7) To display your slides on a TV you’ll need a Apple Component AV Cable or Apple Composite AV Cable. On the iPhone your display resolution will be limited to 480i (NTSC) or 576i (PAL). You can find out about more about video capabilities of Apple products here.

More to come
You can probably get this working on other phones/PDAs/MP3/video players that have a video out, but I don’t have one to try it. There will definitely be more updates to Limelight in the future, including customising the layout and additional file formats like movies and powerpoint. The first update will probably be do add a view to size the images so that they are 480 (NTSC) or 576 (PAL) which should provide the best quality output on those screens.

iPhoto -> WordPress

Been wondering for a while if I should write an plugin to iPhoto that uploads directly to wordpress. There’s been WordPress Export for a while, but it wasn’t free, doesn’t work with the new WordPress gallery feature and doesn’t work with the latest iPhoto.

I did find though with the new Flash uploaded built into WordPress you can now browse your iPhoto library to upload files. Its not ideal, as you might upload large version of files, but its better than nothing, and in the view of doing less and not having to program every good idea I come up with it would have to do:

How He Loves

He is jealous for me,
Loves like a hurricane, I am a tree,
Bending beneath the weight of his wind and mercy.
When all of a sudden,
I am unaware of these afflictions eclipsed by glory,
And I realise just how beautiful You are,
And how great Your affections are for me.

And oh, how He loves us so,
Oh how He loves us,
How He loves us all

He loves us,
Oh how He loves us,
Oh how He loves us,
Oh how He loves.

We are His portion and He is our prize,
Drawn to redemption by the grace in His eyes,
If grace is an ocean, we’re all sinking.
So Heaven meets earth like an unforeseen kiss,
And my heart turns violently inside of my chest,
I don’t have time to maintain these regrets,
When I think about, the way…

Gibson ES-175 Reissue for sale

When I was 18 I got a beautiful ES-175 Reissue jazz guitar, intending to use it at Jazz gigs. As it turns out its the one guitar I’ve never gigged with, oh I played a couple of weddings! Anyway as part of wanting to live on less so that others can simply live I’m going to sell it.

Money from the sale will go towards the Shatin Anglican Church Solar Lighting project in Duncalan, Philippines. Leave a comment on this post with your email if you’re interested.

1) As new condition with case
2) Pickups changed to the amazing sounding Bendetto B-6s
3) Original pickups included
4) Beautiful flame maple top
5) HK$15,000