Blog

I came across a useful post last week on how to launch Windows Explorer in your current project directory in Eclipse and decided to dig around to find out how to set up the same for Finder on OSX.

The steps are the same as described in the link, except for the configuration on the main tab on the External Tools Configuration window. The equivalent settings for Eclipse on a Mac corresponds to this terminal command:

current-directory-path> open .

How to Launch Finder in the project directory:

How to Launch Finder in the currently selected document’s directory:

The information on this page helped in creating a Run Configuration that opens Finder in the directory of the currently selected document. The working directory in this case is set using: ${workspace_loc}${container_path}

You can achieve the same thing by installing the Easy Explore plugin but it’s good to have different options and I think that this approach is a little more convenient if it is listed on the favourites menu.

I right-mouse-clicked and removed the menu bar and all of the toolbars in Firefox a couple of weeks ago and could not find any obvious way of restoring them. If you remove all of these toolbars and controls then the menu that appears on right mouse click is no longer accessible!

My quick fix at the time was to install Google Chrome, which I have grown to like but I needed to use HTTP Fox for something today and a quick search revealed the solution to restoring the toobars. You basically launch Firefox in safemode from the commandline with this command:

“C:\Program Files\Mozilla Firefox\firefox.exe” -safe-mode

A dialog will then appear providing the option to reset toolbars and controls.

Update:

An even quicker tip is to toggle the visibility of the menu bar by pressing the ALT key! (tip from Tony Smith)

haXe is an amazing project. I’ve been looking at it recently as an option for producing swfs that potentially perform better than ones produced with similar code written in AS3. Even more interesting, however, is the ability to target more than one platform with the same code base. There are several target platforms but the one that captures my attention at this moment is the Javascript target and the fact that existing Haxe libraries such as Physaxe can be used with the HTML5 Canvas element.

The Physaxe library contains a custom type called JsCanvas that acts as a wrapper for the Canvas element and it’s 2d drawing context. JsCanvas shares the same method names as the graphics property belonging to display objects in Actionscript. Compiler conditionals are then used in another class called FlashDraw to determine whether or not a member variable will be of type flash.display.Graphics or phx.JsCanvas.