List container impedance mismatch

February 15, 2008

Oh yeah. I forgot about this until now.
In Python, ([] == []) == True.
In ActionScript (and JavaScript and EMCAScript), ([] == []) == false.
Task number one for tomorrow: make it easy to compare Array objects using assertEquals within FlexUnit tests.

Read the full article →

Taming and trimming FlexUnit async tests

February 14, 2008

I don't have time to update the HOWTOs associated with this before I end my day at the computer, but I had an ah ha! moment this evening with regard to getting FlexUnit to play nicely with RemoteObject against a PyAMF server.
Changelogs: ah ha moment, refinement and abstraction.
Files: the new test, the new class.
Some observations, [...]

Read the full article →

Cross Domain XML

February 14, 2008

Cross Domain XML:

Adobe Flash Player can be used to create applications that load data from public services and APIs. Flash can load data across domains on a permission basis (permission from the server). This is done by the server having a small crossdomain.xml file that specifies whether Flash can connect to services on that server.
Apparently [...]

Read the full article →

Finding documentation

February 13, 2008

Adobe Flex 3 Language Reference, via bytearray.org, via searching Google for flex 3 actionscript Remoting.
I'm not sure why I didn't find this sooner (perhaps I did but didn't bookmark it at the time) but I'm sure this will be a useful resource, since all of the other pages I've found for Flex remoting deal with using MXML -- which [...]

Read the full article →

On the safe side of upgrading to OS X 10.5.2

February 13, 2008

Out of the corner of my eye, I noticed that there was a process transferring a lot of data at a sustained rate. A glance at Activity Monitor showed that it was the Apple software updater.
A few seconds later, it told me a new update for Leopard was available. I went for it.
Having [...]

Read the full article →

Using Flex 3 without MXML, only ActionScript

February 12, 2008

Using Flex 3 Component without MXML:

This post is a sample AS3 code without any MXML that enables you using Flex Component in pure AS3, initializing manually Flex Application.
This should be an excellent resource for me to use tomorrow. I'm still on my quest to learn Flex and ActionScript by way of test-driven development.
So far, [...]

Read the full article →

Test-driven development and Python/Flex apps

February 11, 2008

My current work for Schevo is based on building a combination of a Python server app, an ActionScript client library, and a Flex user interface.
The project mentioned above is in very early stages, but if anyone is interested, I took some notes on creating a new test-driven Python/Flex app.
I plan to expand upon it once [...]

Read the full article →

ActionScript mode for Aquamacs

February 6, 2008

I switched to vim about a month ago, and generally enjoyed the experience using Linux.
However, even when moving my .vimrc file over, I just couldn't get comfortable using vim from the command-line, nor could I get comfortable using MacVim. I had to switch back to Aquamacs! :)
To keep myself sane with indentation while [...]

Read the full article →

Test-driven development in Flex

February 6, 2008

I'd like to do some test-driven development in Flex right away, but I'm still looking at the options available.
The two main options seem to be ASUnit and FlexUnit.
ASUnit is the older of the two, but I think from what I've read so far I'm going to look at FlexUnit first, and if it does what [...]

Read the full article →

Get “hg view” to work in Mac OS X

February 6, 2008

I finally wanted to make hg view work.
When I downloaded a Mac OS X installer for Mercurial I noticed that the hgk extension (invoked by hg view) didn't work out of the box. No big deal right away.
Today I wanted to use it though!
Here's how to get it to work:

Download and install a new [...]

Read the full article →