Top
About Me

@WiredBob
I'm an agile software developer with a particular interest in iPhone software development at the moment.  At work I'm doing mostly Java on Windows but my real operating system of choice is Mac OS X (as I'm sure you can tell from the rest of the blog).  I'm currently working on a large media content management system.

My Tweets

Twitter Updates

    follow me on Twitter
    What I'm Reading

    StackOverflow

    Monday
    31Aug2009

    Reviewing Videos on Apple TV with Automator

    The new Services support in Snow Leopard has got me interested in "really smoothing my Mac workflows", a term used by the demonstrator with the crazy hair at the last Apple keynote.

    I take a lot of home movies with a Kodak Zi6; it's a cheap, but cheerful, HD handheld video camera that produces great looking images with not so hot audio.  I want to use my Apple TV to quickly review the home movies I produce on the camera - but that can be awkward.  The Quicktime wrapped files produced aren't quite compatible with Apple TV directly and so I've had to use a manual workflow of opening the files in iMovie, exporting to Apple TV, importing to iTunes and then syncing to finally get them onto the Apple TV.

    With Quicktime 10, and the new Services support in Snow Leopard it is now possible to build a simple Automator workflow that allows me to -

    1. Select any number of Zi6 movies in the Finder.
    2. Right click, and select the "Review on Apple TV" service that i've built using Automator and some Applescript.
    3. The service will pick up all the selected files and send them to Quicktime for output in "Apple TV" format.
    4. It then uses some Applescript to import the converted files into iTunes, ready for syncing with my Apple TV.

    The workflow is attached to the article for download.  Unzip the file and place it in your ~/Library/Services folder and then you can immediately right click any movie file and select the option to "Review on Apple TV".  It can also be opened in Automator and freely modified.

    I still haven't perfected the workflow.  I want to add some metadata (specifically genre = "For Review") to the converted files so that I can quickly find them on the Apple TV.  I also want to trigger a sync on the Apple TV automatically but I can't see how that is possible in Applescript.  For now though, it works pretty well as a simple first start.

    Download the Service here

    Thursday
    27Aug2009

    Keynote Remote with Macbook Pro Ad-hoc Network

    I'm giving a presentation in about a month and I'm planning to use Keynote on my Macbook Pro.  I was hoping to use the iPhone Keynote Remote app, to act as a very modern version of a slide changer (if that's what you call it?).  Keynote Remote expects both the host computer and the iPhone to be on the same network; but there are numerous reports of connection problems between both, not to mention the fact that you don't always have a Wifi network available at presentation venues.

    Then, I had the bright idea of using the ability of Mac OS X to create an ad-hoc wireless network by clicking the Airport icon in the menu bar and clicking "Create Network...".  When I tried to connect the iPhone to the new network (Settings/Wifi) it appeared to connect - but the menubar network icon still showed a worse than Edge connection (I get terrible reception here).  Keynote Remote would work for a few slides, but then the connection would drop out - making it useless.

    After the usual Googling, I stumbled across this Apple thread which suggested turning Airplane mode on in Settings, and THEN connecting to the ad-hoc network.  For some reason the iPhone now shows a Wifi connection and Keynote Remote seems to be working reliably.  Excellent tip!

    Saturday
    23May2009

    Eclipse Working Sets

    Eclipse is a fantastic IDE, especially for developing Java code. However, recently I've been getting a little irritated by its speed. This is probably exacerbated by the fact that the code I'm working on has about 20 Eclipse projects in it's source tree and thousands of source files. Eclipse gives the developer plenty of help - it does code completion, resolves dependencies, performs automatic imports and refactors across projects - all of which come at a cost. I'm not sure how much time i've spend waiting for my workspace to build, but it can be 10% of the day at worst! Even navigation through that many files becomes a productivity issue.

    Recently i've found what is probably a fairly obvious feature of Eclipse but if you haven’t found yet it the concept of “Working Sets” should be useful.

    Working sets are a way of choosing only those projects and files that are relevant for the task in hand. It's an alternative, more focussed way to view source files and resources that the Project Explorer - that can really get out of hand if you are working with more than, say, 10 projects. At the simplest level, working sets allow you to configure multiple profiles of visible projects that you can select from depending on the task you are performing. For example, if you are only working on the Eclipse projects that deal with order management in your system, you can select the “Order Management” working set and it will show only those Eclipse projects in the Project Explorer.

    You can also bring working sets much further - you can select individual packages and files to form part of the working set (you can even create a working set of breakpoints), so you can be very specific about what you want to split out and see in context. All-in-all it is a useful way to make your Eclipse environment significantly easier to navigate.

    To manage working sets use the dropdown arrow on the Project Explorer.

    Click New... to create a new working set and select the type of set you want. The default Java type is usually fine for Java programming.

    Select the various resources that should be part of the set, and give it a name. The resources can be anything - files, packages or projects.

    Finally, use the dropdown menu on the Project Explorer to change active sets.

    See the video tutorials here for a walkthrough http://www.peterfriese.de/eclipse-working-sets-part-i/.

    Friday
    08May2009

    New iPhone Apps to be tested on iPhone OS 3 Beta 5

    Any new iPhone apps submitted to the App Store for evaluation will from now be tested on iPhone OS 3, beta 5.  Developers need to make sure their apps are well tested on the new beta before submission, otherwise they could fail the process.

    Beta 5 of both the iPhone OS and the SDK are available on ADC if you're a registered iPhone developer.

     

    Wednesday
    06May2009

    Squarespace to do iPhone App

    I've been looking around on the iTunes Store for an app that does some basics for Squarespace - blog posts, basic comment management, viewing of stats etc. It appears there is an official one on the way. I know that Ego is an excellent app for browsing various site stat services - Feedburner, Google Analytics, Mint, Squarespace and Twitter are supported, but it doesn't do most of the extras a Squarespace specific app will do.