SVN global-ignores

Well if you use OSX or any program that produces metadata files on your file-system, it can become a nightmare trying to sort through the files you need to check in to svn... However! Once you discover there is a little hidden global ignore feature in svn, all the horror goes away.

On OSX the file of concern is located :

~/.subversion/config

Linux (sometimes) :

/etc/subversion/config

Windows... No idea sorry, depends on your client, though apparently TortoiseSVN has it as an option...

To add a file or folder to the list just open up that file and find the "global-ignores" option. It's just a space separated list of potential file or folder names that you want to ignore.

Mine now looks like this:

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo _notes .DS_Store .#* .AppleDouble *:2e_* ._*

Have fun with a cleaner svn...


More information on the config options:
Subversion Manual: Config

Quick Android Notification Example

So we all know and love our Android notification bar. So I just wanted to post a quick example application to show how easy it is to display a local notification.

The process runs something like this:

  • retrieve a reference to the NotificationManager
  • create a Notification
  • notify the manager of the notification you've created

Continue reading Quick Android Notification Example

Adobe Application Updater

So I went to update all my CS5.5 last night and ended up spending hours trying to get the application manager to actually allow me to update. I kept getting an error saying "You are already running the Adobe Application Manager. Please close all instances of Adobe Application Manager in order to continue with this installation."

Now I had been getting this error for a while, on two (OSX) machines so I decided that enough was enough and needed to get this running. I knew I only had one instance running, I had checked top multiple times to confirm this. So after much research I figured out that it was simply a permissions problem, so who better to alleviate a permissions problem than my good friend sudo.

sudo /Library/Application\ Support/Adobe/OOBE/PDApp/core/Adobe\ Application\ Manager.app/Contents/MacOS/PDApp

And that was it! The Application Manager ran without that annoying message.

KML Loader Update

So as many people know, I've been promising an update to the KML Loader for a while now, and even to the point where I've had some local revisions and haven't had the time to check them in (I know, I know, bad practice!)

The major update has been to enable the ability to load linked assets. Initially this just extends to ground overlays and custom icons, but now that I have the structure setup to do this I'll be able to add in linked files and styles easily.

Continue reading KML Loader Update

Find your iOS UDID

This is just a quick post on how to retrieve your iPhone/iPad/iPod UUID (Unique Device Identifier).

We use this UUID to allow your phone to use development versions of our applications.

There are several ways to do this but the simplest is using Apple's flagship tool, iTunes.

  • Open up iTunes and plug in your device
  • Select your device in the "DEVICES" list
  • Select the Summary tab and you should see the Serial Number as in the screen shot below:

  • Click on the Serial Number label and it should change to reveal the UDID:

  • You can then either just hit Ctrl/Command-C, or go to Edit / Copy to copy the UDID to the clipboard

You should then be able to paste it into an email etc so we can add your device into our allowed development device list.

Eclipse (FlashBuilder) Keyboard Shortcuts

Just assembling a quick list of some of the shortcuts I use everyday in Eclipse. Let me know if you have any other favourites!

  • Code hinting: Ctrl + Space
  • Change view: Cmd + 3
  • Open any file quickly without browsing for it in the Package Explorer: Cmd + Shift + R
  • Open a type (e.g.: a class, an interface) without clicking through interminable list of packages: Cmd + Shift + T
  • Go directly to a member (method, variable) of a huge class file, especially when a lot of methods are named similarly: Cmd + O
  • Go to line number N in the source file: Cmd + L, enter line number
  • Go to other open editors: Cmd + E
  • Go to a type declaration: F3 or Cmd + click on declaration

Note: Cmd == Ctrl on Windows/Linux

Streaming Webcam To a Ubuntu Red5 Server

For an upcoming project we needed to stream content from the user's webcam to be recorded on the server. In theory this sounded like a basic operation, having used FMS to this end before, but actually installing and setting up the Red5 server proved to be a little tricky. So I just wanted to outline the process I went through to get a Red5 Server running on ubuntu and how to setup your first recording stream.

Red5 is a powerful Java based video streaming and multi-user solution for the Flash Player. Red5 includes support for the latest multi-user API’s including NetConnection, NetStream and SharedObject’s while providing a powerful RTMP / Servlet implementation. It is basically an open source Flash Media Server.

We're going to go through two major steps here, firstly installing Red5 on Ubuntu and then building a simple application to record the webcam.
Continue reading Streaming Webcam To a Ubuntu Red5 Server

Setting up Flash trace output from the browser on Windows

We generally use Macs most of the time, but we also have to use PCs often for specific development or testing.

Using tail trace output for debugging on a Mac is great and we can't live without it, but I never really got around to getting it set up on a PC until yesterday. There's just a couple of steps to get it going.
Continue reading Setting up Flash trace output from the browser on Windows