March 21, 2009

Quote of the day: Congressman Mike Honda

Posted in Ideas, Society at 18:49 by graham

Congressman Mike Honda, D-San Jose, writing about opening government databases:

Instead of databases becoming available as a result of Freedom Of Information Act requests, government officials should be required to justify why any public data should not be freely available to the taxpayers who paid for its creation.

Wow, what an exciting time to be in North America.

From the O’Reilly Radar.

March 18, 2009

Eddit: Reddit without the Rrrr!

Posted in Software at 17:06 by graham

Eddit is a bookmarklet for Reddit, which gives you more signal and less of the noise that makes you go Rrrr! Here’s how it improves reddit:

Read the rest of this entry »

March 17, 2009

Flex internals: Setting a button label

Posted in Software at 00:50 by graham

Most ActionScript / Flash applications have a main event loop, triggered by Event.ENTER_FRAME. This is where the animation moves along to the next frame, or the sprites of the game are re-drawn in their new places.

In the Flex framework, you are expected to call invalidateDisplayList on the framework to say you need an update, and actually do the update when the framework calls your updateDisplayList method. This is the invalidation / validation pattern.

I went searching in the Flex code to understand how this invalidation / validation step ties in with Flash’s event model. I ignored properties and sizing, and edited the code down to the bare essentials.

Here is what happens when you change the label of a button:

Read the rest of this entry »

March 15, 2009

Choosing the best Flex book – Flex book reviews

Posted in Software at 23:05 by graham

UPDATE March 19th: Added First Steps in Flex, and Learning Flex 3.

You’re an experienced server-side programmer, with a background in C/C++/Java/C# or Python, but no Flash experience. You want to learn Flex. Which book should you buy to learn Flex 3? I have speed-read the following, so that you don’t have to:

Read the rest of this entry »

Math Dodger: A Flash game

Posted in Misc, Software at 02:26 by graham

Los Angeles is under attack, by trigonometric functions! OMG! Trigo-what? If I wanted to do maths, I’d go to San Francisco!! You, like, totally gotta save L.A man. Enter your name, then move your tank.

Use the left and right arrow keys to rotate, the forward and back arrow keys to move.
The barrel of the tank is the little black line. That’s the front.

No, your tank can’t fire. Avoid the mathematical blobs. YEAH!
The longer you live, the more points you get. A score above 100 is, like, totally AWESOME! Good luck Bro.
Let me know in the comments how much you score.


Read the rest of this entry »