Bespoke App development for the Web and Devices

Blog


94 Comments

How to Launch Finder from Eclipse on OSX

10.10.10 Posted in Flex Development, open source, osx by admin

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:

Launch Finder in your 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}

Launch Finder in the current file directory

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.

Post to Twitter


92 Comments

Quick tip: How to restore toolbar and controls in Firefox

06.25.10 Posted in Uncategorized by admin

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)

Post to Twitter


108 Comments

Add haXe to your toolset

06.03.10 Posted in AJAX, Actionscript, haXe, open source by admin

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.

It’s worth checking out.

Post to Twitter


72 Comments

FDT Flixel Templates

03.17.10 Posted in Actionscript by admin

I’m familiarising myself with the features of FDT now that I have a copy and came across some useful templates here.  Decided to try making some myself for some of the Flixel classes;

  • create a subclass of FlxGame with a frame metatag for specifying a preloader
  • create a basic menu state with some basic presets added
  • create a subclass of FlxPreloader
  • create a subclass of FlxState that overrides create and update
  • create a subclass of FlxSprite that overrides update, hurt, kill and reset

Download here

You can add it to FDT by going to:

Preferences/FDT/editor/Templates – Import

Post to Twitter