News Flash: Public Service Announcements
Monday, 02 March 2009 12:50
Lance
I recently switched a fairly complex Ajax application that I had built to use Flex. For those that don't know, Flex Builder is a programming tool to build flash applications. I have to say that I love programming in ActionScript, which is the main language you use in Flex. One thing to know about Adobe and Flash; there are lots of confusing names here. ActionScript, Flex, Flex Builder, Air, Flash Player, Flash IDE, yada yada yada. Anyway, the latest ActionScript fits a little better with my work flow than programming in Java, mainly because of function pointers and closures. For example, when I need to create a small event callback, I just write a little function. To do the same thing in Java I usually make a little anonymous class. I also have to make sure that any variables I need to reference in the anonymous class' containing scope are private. These aren't huge deals but they are just enough extra overhead that they interrupt my flow. Of course, there are a couple annoying things about ActionScript too.
Last Updated on Sunday, 28 February 2010 20:45
|
Flex Bug
Wednesday, 25 February 2009 14:29
Lance
I just wanted to post this in case it helps anyone diagnose this problem. I was getting this helpful error message in Flex: "An internal build error has occurred. Right-click for more information." Googling did not help. I found a bunch of things that could cause the problem: empty switch statements, missing semicolons, double imports, etc. However, none of those seemed to apply to me. The most common suggestion I found was to look in the log file. I checked the logged file and found this exception: java.lang.NullPointerException at macromedia.asc.semantics.InterfaceWalker.(InterfaceWalker.java:35) Still not helpful. I finally started commenting code and eventually narrowed it down to this statement: var aCursor:IViewCursor = anArray_.createCursor(); The variable "anArray" is type ArrayCollection. The IViewCursor that I was trying to create is kind of like a Java iterator. The "I" in...
Last Updated on Sunday, 28 February 2010 20:45
Ye Good Ole Days
Friday, 21 December 2007 06:41
Admin
Check out these pictures from where I used to work. They were posted by Guy Kawasaki. He's some guy who worked at Apple, wrote some books, and did some stuff. The one thing that's a little confusing from this blog post is that it's not Xerox PARC anymore. It's just PARC.
Above is the view from my old office at PARC. I have this image backed up somewhere but it would take forever to find it. So I resorted to good old archive.org for a backup copy. For some reason they didn't store a lot of the pictures, but they did keep this one.
The antepenultimate word on universal randomness
Friday, 24 August 2007 07:05
Admin
If you read this post or the one before it then you're probably pretty well acquainted with my lunacy. In any case, I have been keeping an eye out for pictures of balls in books. I have definitely noticed a higher than random probability of finding red stars on balls. So maybe there really is a strong prototype for balls with stars. That could definitely explain the particular event that I wrote about.
That's really the interesting thing about it though. It's hard to prove that this is the explanation. I know there has been much ink spilled on both sides of issues like this (luckily, no ink was shed in the writing of this blog). Many have said outright that research into topics like this is a waste of time. The thing I like about it though is the unresolved ambiguity. It leaves open the possibility for unknown phenomena. Is it all the usual science that we're comfor...
Putting it all together
Sunday, 05 August 2007 20:44
Admin
I am just on the verge of submitting this to Science and Nature so you're really getting a sneak peek here. This is huge. If you've got an infant in your life (or anyone else in diapers, for that matter) then you'll want to listen closely. I have discovered the secret to optimal wiping. Feel free to just refer to it as "the secret". Why might you be interested in optimal wiping, you ask? It could just save the world as we know it, by reducing deforestation and global warming and the real estate bubble and who knows what else. OK smart guy, I hear you saying you don't care about any of those things. So let's just say you're stranded on a deserted island with one baby wipe left and your kid is covered in a gigantic turd. Got your attention now, don't I? I thought so. OK, so here it is. Instructions on optimal wiping. First, make one good pass with the wipe. You want to use up all of one side. Now, carefully fold it in half so that the two, erm, soiled sides fold toggether.
Last Updated on Monday, 01 March 2010 03:55
|
|
|
|
|
|
Page 2 of 6 |