Eigen Vector
eigenvector
.::..::::.:.
Back Viewing 0 - 20  

E4X. It's truly quirky. Maybe this will save someone who finds it via Google some time:

The language supports XML literal syntax... but element names have to be valid variable names or else you'll get truly cryptic compiler errors. That means no operators, which I immediately ran into while trying to use hyphenated tag names like "<element-group>".

The language also supports filtering syntax, but it only filters at the first level of the node you reference (i.e. it's not recursive in any way). So, pretty much you have to write tree walking code and the filtering syntax is just a little bit of shorthand for getting at specific children during your tree walking.

The language supports read and write "dot notation" shorthand for getting and setting elements and attributes (i.e. XML classes are unsealed). But there are some major quirks to the syntax when used as a setter:

1. Using the dot accessor shorthand as a setter is only supported with lists that have a single item. If the list has multiple items, you get a runtime error. Fail.

2. Using the dot accessor shorthand as a setter always creates the element as a child of the single item in the list instead of adding it as a second child element to the root of the list. So, in effect, while you can add a new tag with the syntax "myXML.newtag = newvalue;", you will be surprised to find that this adds the "<newtag>newvalue</newtag>" element as a child element of the FIRST CHILD of the XML object, not as a child of the root of the XML object. I imagine this is because it would be weird to be able to use the dot accessor shorthand to add a second item to a list, when that shorthand isn't supported for lists with more than one item - you coud only use the syntax exactly once for the list. Nonetheless: Fail.

3. Using the length() function on an XML object and the bracket accessor notation WILL let you add new elements to the root of the list. However, you can't mix the dot accessor shorthand syntax with the bracket accessor syntax or you will get a different runtime error. So, you can't say this: "myXML[myXML.length()].newtag = newvalue;", but you CAN say this: "myXML[myXML.length()] = <newtag>newvalue</newtag >;".

Final caveats: since the class is unsealed, you can accidentally type myXML.length and myXML.children and this will compile. However, you'll probably get a runtime error since you probably meant to type myXML.length(); and myXML.children();

I'm five months into my transition from low-level driver and systems programmer to modern Flex/Java/Web application developer. (This particular transition is a second priority, after first actually doing my software management job well, which is itself quite time intensive. Hence the leisurely pace at which I'm making this transition.)

Here's my take on things right now:


  • "Traditional" C++ development: you have to learn a few very complicated things, and you have to build a LOT of functionality by hand. Straight-up craftsmanship plays a big role in your ability to make things work.

  • "Modern" Flex/Java/Web development: you have to learn a LOT of less complicated things, and you have to build a little functionality by hand. Understanding design patterns plays a big role in your ability to make things work.



Even after I mastered traditional C++ development, I never actually built a lot of software for myself because building good software was still labor intensive, and who the hell wants to spend their few free hours away from their software job building more software? But there were definitely some pieces of software I would have liked to have built for myself if it wouldn't have been so labor intensive to do so.

The theory goes that once I learn this ridiculous number of less complicated things, I'll be able to churn out reasonably useful and attractive software like nobody's business. So far it seems plausible.

But oh the learning curve! So very many news things to figure out: Java the language and the runtime and the development tools, Eclipse, Ant, SQL the server and the language, JDBC to link the SQL and Java worlds, J2EE application servers like JBoss or GlassFish, servlet containers like TomKat or Jetty and JSP syntax, tag libraries like JSTL, WAR files, EAR files, XDoclet to manage deployment descriptors, XML-RPC vs. WSDL vs. RESTful semantics, countless alternative frameworks like struts or JSF or Tapestry or LCDS, Flex and ActionScript, and CSS, and HTML.

I sure will be excited when my view can tell my controller to access my model to get my data out of my database and send it back to my view so it can be displayed. Unfortunately, I don't exactly know when that will happen. Maybe a few days. Maybe a few weeks. It's still hard to say :).

Anyway, MySQL is finally happy with all my table definitions and data constraints, so it must be time for bed... where I will surely dream of Java objects.

A photo of me from the recent NYC trip, and today's massive haul from the garden.

Yes, I have a beard. No smart ass remarks from you people... you know who you are :).

Read more... )

I caught up the gardening today... )

More goodness from the mothership: http://get.adobe.com/amp/

I recorded Ben Francis this morning. Here's the song for the curious.

This is very cool: http://www.youtube.com/watch?v=jwMj3PJDxuo&NR=1.

(The spontaneous applause at the end really sums it up, if you ask me.)

Garden 2008 pics for [info]sailhome.

Read more... )

News from the job: http://www.adobe.com/aboutadobe/pressroom/pressreleases/200803/Q108Earnings.html. Hooray!

A random mention of my existence in the media:
http://blog.seattletimes.nwsource.com/techtracks/2008/03/plenty_of_former_microsoft_employees_work_at_adobe.html

This year I went to Singapore and India to spend Christmas and New Year's Eve with my friends Heather and Joe.

Here are a few photos and videos: http://www.creative-urge.com/photos/india-2007.

The first pass of the PNME photo editing and processing is complete.  You can view the results here:
http://www.creative-urge.com/photos/pnme-06.
http://www.creative-urge.com/photos/pnme-06-headshots.

(I still need to do one final clean up pass to get the files ready for printing.)

This was a particularly dark shoot and that was a real challenge - I struggled to get enough light into the camera.  Though that impacted the overall quality of the shots this year, I really learned a lot about the dynamic range of the sensor in my camera and it's behaviors.  Hopefully I'll shoot a brighter concert next year and will be able to produce a much higher quality result.

Anyway, I'm exhausted and this is shaping up to be a pretty intense week at work... so off to bed.

UPDATE: The JPEG renderer in Internet Explorer SUCKS ASS, so I recommend viewing these photos with Firefox to see them looking actually nice.

For nerds.

About 18 months ago I was upset with myself for having gone so very long without having read any fiction. So I went to a used book store, and after some browsing I settled on David Foster Wallace's "Infinite Jest". Apparently a worthy 1100 pages representing the cutting edge of fiction. So dense and involved that I had to periodically set it aside to read entire other books. So lengthy that sometimes only sheer force of will kept me pushing through towards the end.

Here I am 18 months later, and I've just finally finished the book. My response: what the fuck?

Granted, the book is brilliant. But I must admit that even though the length and intricacy of the book supports its underlying message, I do resent having been dragged through all that in what could essentially be explained as a particularly intellectual and well-executed practical joke. I can't decide if I was having my nose rubbed in the entertainment, or if I was being genuinely entertained. Probably a little bit of both.

One thing's for sure: I won't feel the need to read much fiction for a while :).

I updated my studio computer. The RAID array went belly up somehow. This might mean an entire day spent reloading sample libraries and instruments. Lame. Perhaps I'll break my "school night" rule and go make a cocktail. Right now I'm not terribly fond of computers.

Update: I rebooted the drives and it looks like it's fine. Whew.

Here's why July almost killed me: http://www.digidesign.com/index.cfm?navid=48&itemid=23308&langid=100&action=news_details.

Current Mood: Pleased

I'm at the Pittsburgh airport right now waiting for my flight home. I'm always pleased to find free WiFi at airports.

It was a very productive and enjoyable trip. The high points included catching up with [info]2manynotes, spending time with the PNME, meeting [info]edabagel (aka the Host with the Most), eating at Magyar Kitchen (repeatedly), doing some decent photo work, and getting to hear David Little's piece, Soldier Songs.

The low point, unfortunately, was dropping and breaking my nicest (and most expensive lens). At least I broke it at the end of the shoot rather than at the beginning. (I've checked and apparently Canon will repair and recalibrate it; I've got my fingers crossed that the repair goes well.) It was a total boner move on my part, and an expensive lesson to learn.

The shooting itself was harder than last year because the lighting for this piece was quite low. These were probably the most challenging shooting conditions I've ever had to deal with. Another strategic goof that I made was not setting up a formal schedule for "extras" (i.e. headshots, staged shots, etc.). I had people coming to me at different times throughout the trip to set up times for their extras, which meant a lot more shooting than last year, and not everyone got the extras they wanted. By noon today (after taking nearly 1500 photos) I was pretty much exhausted and didn't want to take any more pictures. I think next year I'll be more formal with my shooting schedule and make sure I get a day off to hang out and be social at the end of the trip.

Tomorrow I return to my normal life. I haven't checked in with work at all during this trip so I'm a little nervous about what may be waiting for me when I get back into the office. Hopefully the re-entry will be a smooth one.

Ok, almost time to board so I'll close for now. I'll post a few preview photos next week... and the full gallery when the processing is done in another month or two.

Current Mood: tired

(For [info]2manynotes, in case he hasn't already seen this.) http://www.garritan.com/stradivari.html


I recommend watching this demo:
http://www.garritan.com/Strad/VideoDemoStradivariViolin3sf.wmv

And then this example:
http://www.garritan.com/Strad/DemoStradMassenetMsfm1.wmv

And then re-watch the example with your eyes closed :).

If you look on this journal: http://mom2letterbs.livejournal.com/

... you'll see a quiz meme entitled "How Scary Are You?"

The astute reader will note that the picture that accompanies the "51% Scary" designation is yours truly.

Apparently some random person on the internet found the picture of me having coffee at Blue Bottle in my bunny suit last Easter and used it in their quiz. Apparently I am an internet celebrity now :).

Fight isolation: build a community.

http://news.yahoo.com/s/nm/20060623/us_nm/life_friends_dc

Back Viewing 0 - 20