General


General29 Feb 2008 05:46 pm

I’ve recently been playing around with the SIMILE Timeline visualizer for XML data, which is pretty neat. I had one minor little gripe with it, which is that I wanted to be able to use data from an XML string in certain cases where I already was working in the context of an XSL stylesheet instead of hitting the server again just to present the same data in a different XML structure for the timeline. So I downloaded the code, told it NOT to use the bundled code in timeline-bundle.js by editing appropriately in timeline-api.js, and started experimenting with the sources.

What seems to have worked for me is the following modification [I added it just before the line starting: Timeline.DefaultEventSource.prototype.loadXML = function…] to sources.js (pardon the messy formatting here - you can correct the line breaks in the text editor of your choice :-) ):

Timeline.DefaultEventSource.prototype.loadXMLText = function(sometext) {
return Try.these(
// For Firefox, etc.
function() { return new DOMParser().parseFromString(sometext, ‘text/xml’); },
// For IE
function() { var xmldom = new ActiveXObject(’Microsoft.XMLDOM’); xmldom.loadXML(sometext); return xmldom; },
// As a last resort, try loading the document from a data: URL. This is supposed to work in Safari. Thanks to Manos Batsis and his Sarissa library (sarissa.sourceforge.net) for this technique. (NS: - got this from timeline-helper.js in the GWT Timeline build)
function() { var url = “data:text/xml;charset=utf-8,” + encodeURIComponent(sometext); var request = new XMLHttpRequest(); request.open(”GET”, url, false); request.send(null); return request.responseXML; }
);
};

and in your calling script, replacing the line:

Timeline.loadXML(”example1.xml”, function(xml, url) { eventSource.loadXML(xml, url); });

with the following:

eventSource.loadXML(eventSource.loadXMLText(xmlstring,), “http://path.to.script/goes/here”);

Replace “xmlstring” with either a quoted string of XML or a string variable, and edit your path accordingly. Hope it works for you - it seems to be working fine for me!

General10 Sep 2007 12:16 am

I finally got around to finishing up a new track with Naomi. We both have vocals on this one - “Waking Alone” - so if you’re at all into trance or synthpop or some strange fusion of the two, check it out!

Arts & Entertainment and General20 Aug 2007 10:58 am

Yes, as you can see, I’ve been reading both the highbrow and the low. A little of everything for the win!

To start: Thomas Pynchon’s Gravity’s Rainbow is a pretty fun read. A large mix of history, science, the occult, and Pynchon’s very odd brain, this one took me a bit longer to read through than usual due to its near-800 page length. An interesting jaunt through Europe and elsewhere set largely in the culmination and aftermath of WW2, laced with original songs, intricate descriptions, silly stories, myriad external references, and obscenity to rival Team America, it’s easily one of the best books I’ve ever read. Recommended, but only if you have a strong stomach and aren’t easily offended.

Octavia Butler’s Parable of the Sower is an interesting dystopian story that seems a bit like the anti-Anthem (Ayn Rand) to me. Lauren Olamina is a girl gifted with quite a bit of foresight, paranoia, and a special talent which is also an Achilles’ heel of sorts, and she copes with the destruction of her family and everything she’s known. In the course, she comes up with something of a new philosophy/religion aimed at a more communal and earth-friendly existence. Interesting read, pretty violent at points. I’d read other novels by this author, to be sure.

And finally, Eoin Colfer’s Artemis Fowl and its sequels are fun reads aimed at kids. They read a bit like tame versions of ground trodden by Jim Butcher and Laurell K. Hamilton (less sex and violence), with more science fiction thrown in. Still amusing if you can get past the technological implausibilities (tracing an MPEG through analysis of radioactive properties??) and focus on the characters. I won’t read them again, but it wasn’t an utter waste of time. Evil child geniuses with a touch of conscience are fun!

General24 Mar 2007 12:00 pm

First, I’ve finally bothered to add some of my artwork, so it’s in one place instead of spread out over a buncha blog postings.

Which brings me to a related update - I’ve started pencilling a basic comic-type storyline which I expect to be a bit of horror-comedy, or so I’m thinking now. These things never turn out the way you plan them, though. I’ve only drawn a page so far, so after I have 5 or 6 of them, I’ll throw them up here for feedback.

And I’ve finished another track, I think, which I’m putting some final touches on. Hopefully by next weekend I’ll have something to show.

And now back to your regularly-scheduled mundania…

General31 Jan 2007 06:01 pm

I have no idea who Don Lapre actually is - he’s some sort of infomercial vitamin-selling scammer dude according to wikipedia. Anyway, somebody left a hand-crafted spam comment on my SORBS post today which actually referenced the content of the post, but the format of the signature was a bit strange so I jumped to the linked website (donlaprewilliams.com) before I even knew Don Lapre existed. The site is pretty strange, as it seems to be leaching content through an iFrame from carpeaqua.com and the only actual content on the page is a couple of header tags mentioning Lapre and some sort of salad dressing blurb that makes no sense. There are no actual outgoing links from this page, so I can’t figure out what the s[p/c]ammer is hoping to promote by doing this.

A bit of searching reveals another domain registered on the same day (donlaprejones.com) which is leaching content in an iFrame from sashafrerejones.com (some sort of musician, I think). This site contains the same salad dressing nonsense and no outgoing links. Whois checks don’t reveal anything useful, other than that they’re Go Daddy domains (what a stupid name for a company).

Maybe the s[p/c]ammer is intending to build up the pagerank of these pages and then use them to promote some stupid vitamin-selling scheme? Anyway, nice try, but that comment is history. And perhaps the webmasters at carpeaqua and sashafrerejones might want to do some creative rewrite rules to block the leaching.

Moral of the story: I fucking despise sleazy advertisers.

General24 Jan 2007 01:22 pm

Not that I really expect more out of a site like MySpace, but as it seems to be ever more a necessary social evil these days, I have a profile there. Anyway, I want to add my University of Toronto time to my profile for networking purposes, but the only school it will allow is “University of Toronto Schools” which is a real institution that is NOT the same as the actual University of Toronto.

I first noticed this almost 2 years ago and submitted the actual University of Toronto as a school, but to no avail. A few months ago I emailed them about it and was told that “they’d look into it” and that in the meantime I should submit the UofT as a school.

A bit of googling and talking to my UofT friends says that most people gave up and just used the UTS school instead, but I’m too stubborn for that.

I’m not even sure why I’m bothering to complain, but it feels good to vent this minor frustration. And yet, MySpace is clearly beneath my 1337ness and I don’t know why I have a profile there to begin with…so torn! ;-)

General24 Dec 2006 04:04 am

Cass and I went to see Blood Diamond this evening. It was a tossup between that and Casino Royale, but when she heard that the former starred Leonardo, she was significantly more excited about that than about seeing a new Bond who has apparently been referred to as “James Bland.” So Blood Diamond it was.

Violence and misery and hopelessness, oh my. While I’m still trying to digest all of the imagery that I just took in, I have to say that it was certainly one of the best movies I’ve seen in a while. *cough*gotchokedupeven*cough*. I’ve read enough about African-style civil war and conflict diamonds in the past to have an idea of what to expect, but I found myself simply stunned at points by the sheer brutality of the conflict. All I can say is that we in North America have no idea how soft we actually are. And while I realize that Sierra Leone has been relatively peaceful of late, one can’t say the same for Somalia and the Congo* (DRC) so the film’s core issues are still relevant.

Dramatization though it may be, the film’s central question is a challenging one. How can a man commit these sorts of atrocities against his brother - and by extension, how can we do things like this to anyone in the family that is humanity? I think I’d like to run with a simple idea from the movie, adapted for my own personal use: TIE. We’re born here, we die here - it’s a fucked up place, but maybe one day we’ll prove that we can make something better out of it (and ourselves in the process).

This is Earth.

* Note that cassiterite and coltan (columbite-tantalite) are both used in much the same way as diamonds, being sold illicitly to fund weapons and supplies for ongoing wars. Coltan apparently is used in capacitors and there is suggestion that Western consumer electronics may contain such “conflict goods.” Apparently other things are smuggled as well, such as timber. Still, nothing is so especially galling as diamonds, especially when you can get perfectly good man-made diamonds which are molecularly and chemically indistinguishable from “the real thing” by any means other than their sheer perfection.

General23 Nov 2006 02:38 pm

A couple of nights ago I had the opportunity to watch Kurt Wimmer’s Equilibrium, which has been on my buy/rent/download list for a year now. I wasn’t disappointed. This film definitely goes on my list of favorites both for the amazing action and the stark aesthetic.

Funny enough, I’d actually say this movie has surplanted The Matrix in my list of favorites. Where The Matrix gets almost silly (”We all mentally live in a giant computer!” “Little scorpion tracking bugs will crawl into your stomach!” “You have the power to change reality!”), Equilibrium sticks to a gritty version of reality where the future just means more advanced bullet-firing guns and taking your feel-nothing drug three times a day like a good drone. The aesthetic of the film tracks the protagonist’s journey from cold killer to heart-led rebel and the cool monotone at the start is gradually replaced by warmer color, not the least of which is freshly spilled blood. Rather than altering or withdrawing from reality, Equilibrium proposes going deeper into the one we have.

If you at all liked The Matrix or you are a fan of dystopian stories, you owe it to yourself to see this film. You’ll be wondering by the end why Christian Bale was not cast as Neo instead of Keanu Reeves.

General06 Nov 2006 03:19 pm

Has anyone noticed that Balligomingo’s “Wild Butterfly” uses a hook pattern weirdly similar to the bridge hook from Enya’s “Orinoco Flow” or is it just me? I could swear they’re almost identical. Given that Balligomingo has been accused of plagiarism before, I suppose this wouldn’t be a complete surprise…

General06 Nov 2006 01:39 pm

I picked up this book recently since I have no major epic fantasy or sci fi series on my reading list at the moment, and thought maybe it would be worth a shot. The short of it? An interesting world, neat quirks and abilities, and such poorly written characterization that the story was painful. It resulted in a lot of stop-and-start reading until I finally took a couple of hours Saturday and finished it.

While I am definitely curious to know what happens to Karan, Llian, and the others, especially given the infuriatingly confusing ending (I read it three times, looked up spoilers online, read it again, and finally had to read the first chapter of the next book to understand what happened), I’m not sure I can sit through more pages of stilted dialogue, wooden characters, and predictable actions for another three novels in the main sequence. My verdict? Save your money, or pick it up at a used bookstore if you ever see it there.

Next Page »