Archive for April, 2008

How to restore lost files in Flex Builder 3…

Today I was working on a Degrafa based skin. When I hit some unknown accidental key combination and discovered the file I was working on had been closed. This closure was followed by my problems window suddenly displaying about a dozen errors.

Moments later I discovered, why! The file, along with it’s two counterpart skins were “gone”, *poof*, DELETED, gone to the digital Gehenna. Needless to say, I was quite distraught. And while you might chime in with criticism on how I should have had copies of the file stored in an SVN or similar repository; let me add in my defense that this file was less than 10 minutes old.

But I had an idea…!!!!

I created a new copy of the file with the same filename. I then used Eclipse’s version compare tool to do a comparison of the current version against older versions. Thankfully, Eclipse retained this information. I was able to easily grab my old code and copy it to the new file instance

UPDATED: Dan Wilson chimed in that you can restore files from local history as well. (Found right below “Compare with”).

Thanks Dan!

– Jason The Saj

PS – If you are unfamiliar with Eclipse’s version compare tool. You need to familiarize yourself with it. You can find more info in my Flex Builder tips’n’tricks post here:

antiAssassin – an experiment in Flex/AIR utilization of webcams

My employer Nxtbook Media recently had a corporate office game/fundraiser event. It was a week of the game “Assassin”. In this case, fellow office workers try to assassinate each other by the careful unnoticed placement of the all-lethal “clothespin”.

I created this tool as a little experiment in utilization of the webcam and motion detection. I was first made aware of this possibility by Doug McCune‘s “TiileUI” experiment. (Who in fact used a different methodology which he has now posted to his blog.)

UPDATE: For whatever reason, my host server seems to have problems delivering the .air file. So I’ve encapsulated it into a .zip file and uploaded that instead. Just open the zip, and you should get the .air file. Sorry about the hassle. If anyone knows WHY this is happening. Please enlighten me. I also tried my work’s host environment and it tried to deliver raw code. So I presume it’s a server setting.

I published antiAssassin as an AIR application, which you can download here. There is also a Flex version, with the option to view source here. I’ve endeavored to document the code.

Enjoy!!!!

– The Dark Lord of the SWF


April 2008
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  


Awesome Developer Conferences


Nxtbook MediaFormer Employer - Great Company



The Saj... "Dark Lord of the SWF"