WAMP Server Install on Windows – Change Port/Listen

November 18th, 2014

After installing WAMP on Window 7, start the WAMP services via the system tray icon, and click on LocalHost. This should bring you to the WampServer default page. If you are not seeing it, the port for the Apache Server may need to be changed, as IIS7 Web Server may already be using Port 80 (the default Wamp Apache Port).


Go to C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf, and change

Listen [::0]:80


Listen [::0]:8080

ServerName localhost:8080

The ports may also need to be changed in C:\wamp\wampmanager.ini and wampmanager.tpl. This is for the shortcuts on the WampServer tray icon to work (by default they will just go to localhost\{whaterver}.php

Restart the server, in Chrome, type




Html docs can be place in C:\wamp\www

Eclipse Keyboard Shortcut: Compare with Latest from Repository

February 26th, 2014

I use Subversion within my Eclipse environment, and use the Compare with Latest from Repository option a lot. My Ctrl+Alt+C custom shortcut would not work though for some reason, so it was a case of right-clicking the file, and going through the options.


In Preferences>Keys, find “Compare with Latest..”, Category: SVN.

Set the binding e.g. Ctrl+Alt+C, and set When to Flash Global Scope

The next bit is what was stumping me, and took ages to figure out!!!!

Right Click on the Command Bar>Custom Perspective>Command Groups Availablity.. tick SVN… now the shortcut will work.

Preferences Options

Preferences Options

SVN Custom Perspective

SVN Custom Perspective


Also use Ctrl+Shift+B to skip all breakpoints, use this loads:

Skip All Breakpoints

JRockit JVM with Flash Builder 4, Performance .ini Settings

February 7th, 2014

Flash Builder performance can be increased with the use of JRockit JVM.

Good post by Mike Cann on the process

The FlashBuilder.ini setting I am using are below (Window 7, 64 bit Flash Builder 4.7)

-vm C:/Program Files/Adobe/Adobe Flash Builder 4.7 (64 Bit)/jre/bin

Eclipse/Flash Builder 4.7 Hanging on Loading Workbench

January 16th, 2014

Firstly, go to the .metadata folder of the workspace in question.
Open the .log file, and see if it contains the following:

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

The recovery can sometimes fail, which will prevent Eclipse from loading, and will hang on the splash screen.

Try the following: Go to,


And delete the .snap file (make a backup first of course)

Your workspace should now open ok… hopefully.

.snap files represent the changes in workspace state of the IDE during the runtime. This is mostly for eclipse crash recovery plan. When a crash happens these files are used to recover the state fo eclipse workspace.




1st Patent Filed!

August 26th, 2013

While I was working at the Dundalk Institute of Technology, we began the process of filing a patent for an application we were working on. Nice to see that it was followed through to the end… it’s a lot of work, and time consuming… but good to see it out there!

Not a very exciting patent name: “A method and system for mapping business processes”


Reusing BitmapData for Multiple Bitmap/Image Objects

June 6th, 2013

I was working with Bitmap and BitmapData objects quite a lot recently.

Noticed that it is better to reuse the BitmapData objects for each new Bitmap object that is created, where the underlying pixels will be the same. They can then be manipulated as required separately, but without having multiple instances of the complex BitmapData object.

A code example I was using to check this out, as well as for loading the sample image locally in Air, is given below:

<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
						creationComplete="creationCompleteHandler(event)" >
			import mx.controls.Image;
			import mx.core.UIComponent;
			import mx.events.FlexEvent;
			private var myTimer:Timer;
			private var myBitmapData:BitmapData;
			protected function creationCompleteHandler(event:FlexEvent):void
				var urlString:String = "file:///C:/assets/images/client_logo.png";
				var req:URLRequest = new URLRequest(urlString);
				var ldr:Loader = new Loader();
				ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoadComplete);
				ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);				
			private function onIOError(event:IOErrorEvent):void{
			private function fileLoadComplete(event:Event):void
				var ldr:Loader = Loader(event.target.loader);
				var bitmap:Bitmap = Bitmap(ldr.content);
				myBitmapData = bitmap.bitmapData;
				displayImage1.source = new Bitmap(myBitmapData);		
				displayImage2.source = new Bitmap(myBitmapData);
	<mx:Image id="displayImage1"/>
	<mx:Image id="displayImage2" y="0" x="50"/>


Flash Player 10.1 and AIR 2.5 the reuse of BitmapData among many instances of Bitmap objects is now done automatically, for improved performance.

Flash Builder/Eclipse Breakpoint Working Sets

February 27th, 2013

As a way of managing (sharing, exporting, or importing) breakpoints, the Working Sets feature of Flash Builder/Eclipse can be used.

There are many occasions when I will have dozens of temporary breakpoints set while working on a particular issue/task, and at the same time I will have some permanent breakpoints that I wish to monitor regardless of the task I am working on. When the temporary task is completed, I usually just want to delete all the breakpoints in one go, but it can be tedious having to go through and deselect all of the permanent breakpoints. This is where Working Sets can come in very handy.

I have a default Working Set (WS), and any breakpoints that I create automatically get set under this WS. I also create a secondary WS, and call it Permanent, and simply move the permanent breakpoints to this WS. In the Breakpoints tab, hit the down arrow, and select Working Sets and create some new ones. Then set the default working set.

Create, then set the Default Working Set

Create, then set the Default Working Set

Group you breakpoints by Breakpoint working sets:


When Deleting breakpoints, just select the Default WS and hit the single X button. The Permanent breakpoints will be left as is. Voila!

Delete just the Default breakpoints

Delete just the Default breakpoints


Flash Builder 4.6 – Conditional Breakpoints

September 5th, 2012

When debugging an application, in FB 4.6 one can now set conditions on when a breakpoint is activated. This can be very handy when you want to know when a certain condition is met on a piece of logic without having to set up IF statements, traces or debug logs.

Right-click on the breakpoint in the Breakpoint window to set the BP Properties. The conditions are set as shown in the picture, and you can only reference the objects/parameters that are available at that exact breakpoint line.

Setting Conditional Breakpoints

Flex/Flash Builder – Update JRE, .ini, Increase Memory

May 22nd, 2012

Working with Flex Builder 3 project, and getting the odd ‘out of memory error’ on Windows 7 64bit. Can also be done for Flash Builder 4.6

The following steps helped to speed things up and alleviate the problem (so far!)

1. Check what version of the JRE FB is using Help>Product Details>Configuration (even if you have the latest, FB will probably have defaulted to JRE 1.5 which comes with the install)

Configuration Details

2. Download the latest Jre (use the 32bit version – as FB3 is 32 bit Eclipse)

JRE 6 can be downloaded here

Install, and copy the Jre Files from: C:\Program Files (x86)\Java\jre6 to C:\Program Files (x86)\Adobe\Flex Builder 3\jre (and keep backup of original of course just in case)

3. Increase the memory for FB3 – C:\Program Files (x86)\Adobe\Flex Builder 3\FlexBuilder.ini


You can only increase the memory so far, otherwise FB will fail to load (let me know what values you got away with!!)


Adding -showlocation before vmargs will display the current workspace in the title bar of FB

Adding -refresh, -clean clears the FB4 cache. Faster Garbage Collection: -XX:+UseParallelGC

Disable FB4 Validation: Window>Preferences>Validation (disable all but Class Path Dependencies)

Social Network Visualization with NodeXL

February 25th, 2012

This is a visualization of the links between my friends on Facebook. Used NodeXL to generate the graph… its was built by a Microsoft research group using C# (WPF). You can automatically generate the data via a handy import tool that connects up  with Facebook.

NodeXL - Network Visualization