May
12

1

First Break

This is my 1st attempt at spinning breaks. It a bit harder than usual, perhaps this is a gym mix. I think the next mix will be a bit more gentle. Enjoy

  1. Hot Chocolatron - Ben Wa
  2. Micro Drumulator - Debonaire
  3. She Says Ah! feat. Sir Costelho - Bubu
  4. Harness The Nonsense, Elite Force Mix - Daniele Papini
  5. Ready For Your Love, Ed Solo Remix - Deekline & Wizard
  6. 12 Inch Therapy, Keith Mackenzie & DJ Fixx Remix - Robb G
  7. Bounce & Rebound feat. Top Cat & Fallacy, Beat Assassins Remix - Deekline & Wizard
  8. Break Through 2, The Wrongstars Instrumental Remix - Paul Lyman
  9. Superstar, Curtis B Remix - Sue Cho, Heavygrinder
  10. Cali Sk8r, Elite Force Mix - Propellerheads
  11. Girls Speak Louder, Donique Remix (Miles Dyson’s Breaksfest Perth Edit) - Costello
  12. The Mexican KK Re-Rub (master) - Deekline & Tim Healy
  13. Return Of The Wang - Anarchy Rice
  14. Whatever It Takes To Feel Alive - Easy Toys

May
06

1

Cairngorm - 2 Events

In the previous tutorial we covered the use of the ModelLocator and showed how it can be used to decouple a tightly bound application. Here we are going to cover the Cairngorm event model. Flex uses a Bubble/Capture event model which has some limitations. The biggest drawback is that you can only listen to events fired by your children and their descendants. Cairngorm provides a Publish/Subscribe model that lets you further decouple your application. Let’s say you you have a menu in a navigation bar on the left side of your application and another menu in another navigation bar on the right side of your application. Let’s further suppose that those two menus each need to know the state of the other. In native Flex, the highest common parent would need to listen for events thrown from each menu, capture those events and, as in the example presented in the last tutorial, pass the event data back down the chain on the other side. We just decoupled this type of binding for data, and now we find it emerging again for events. Events are fleeting and it seems a bit much to declare every event as a property on our model. So let’s use the CairngormEventDispatcher to get us around this problem.

Full article...

May
06

2

Cairngorm - 1 Data Binding

In my introduction to Cairngorm I covered a list of features that I have found very handy. One of the most useful, and easiest to understand, is Cairngorm’s ability to maintain application state. Before adopting Cairngorm, I found myself passing data all over my applications. Not only was it hard to track down bugs, it made the application tightly bound. Cairngorm uses a singleton to keep application state. This is achieved though an empty interface called ModelLocator. Empty Interface? Yes, that’s right, it’s an empty interface that isn’t referenced anywhere. At first I was puzzled by this, and left it out of my code. After several projects, I decided to add the ModelLocator reference back into my classes. Although it is useless and not needed, it does let you know right away that the class is a singleton.

Full article...

May
05

Cairngorm - First Steps

What is Cairngorm and is it for me?

Actionscript seems to be a brave new world for developers; the rules are loose, the compiler is forgiving and there are many ways to get the job done. From application to application I have seen perfect object-oriented architectures, overly complex ego coding, and sloppy spaghetti code. When you are sitting down to design an application, consider existing code and design patterns. Why reinvent the wheel? The Flex architecture makes many patterns available to you and third-party frameworks (micro-architectures) are available for free.

Full article...

Apr
03

2

Out of memory errors

Is your Eclipse install running super slow or crashing with OutOfMemory error:PermGen Space erros? This is an easy fix that will save you lots of frustration as well as compile time. There is a file called eclipse.ini. On the mac you will have to right-click the eclipse application and choose ‘show package contents’. From there the eclipse.ini is located in ‘Contents/MacOS/’. Below is my default eclipse.ini file. As you can see, the -Xms and -Xmx flags are pretty low.

-showsplash
org
.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m 

My computer has 4gigs or ram but there seems to be some max within eclipse. The max I have been able to get away with is 512m. So my updated eclipse.ini file can be seen below.

-showsplash
org
.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m
-XX:PermSize=64m 

Save your new eclipse.ini and happy coding.

Page 5 of 6 pages « First  <  3 4 5 6 >