news page 9 - Dave's Blog

Search
My timeline on Mastodon

Avatar: the other you

2007 May 31, 11:11An article from newscientist about videogame avatars. There's a slideshow with side by sides of people and their avatars.PermalinkCommentsinternet videogames avatar culture article photos

Cat Roundup

2007 May 17, 1:04I've seen several humorous kitty related stories recently and then happened upon the whole lolcat scene. Rather than post all the links to humorous kitty lolcat photos to delicious I figure I'll roundup the links here.

A cat in England enjoys riding the bus and does so regularly (associated lolcat commentary).

A cat trees a bear (also with lolcat commentary).

xkcd has a comic on the topic of lolcat commentary. xkcd also had a non-lolcat cat related comic recently that I found funny.

And now I'm out of commentary so I'll just... "X cat is X": interested, aggressive/defensive. VG related: SF, Zelda. Other: cookie, sad.PermalinkCommentsroundup comic kitty personal cat humor nontechnical

New XSLT - IE7 XML Source View Upgrade Part 2

2007 May 11, 8:55Last time, I had written some resource tools to allow me to view and modify Windows module resources in my ultimate and noble quest to implement the XML content-type fragment in IE7. Using the resource tools I found that MSXML3.DLL isn't signed and that I can replace the XSLT embedded resource with my own, which is great news and means I could continue in my endevour. In the following I discuss how I came up with this replacement for IE7's XML source view.

At first I thought I could just modify the existing XSLT but it turns out that it isn't exactly an XSLT, rather its an IE5 XSL. I tried using the XSL to XSLT converter linked to on MSDN, however the resulting document still requires manual modification. But I didn't want to muck about in their weird language and I figured I could write my own XSLT faster than I could figure out how theirs worked.

I began work on the new XSLT and found it relatively easy to produce. First I got indenting working with all the XML nodes represented appropriately and different CSS classes attached to them to make it easy to do syntax highlighting. Next I added in some javascript to allow for closing and opening of elements. At this point my XSLT had the same features as the original XSL.

Next was the XML mimetype fragment which uses XPointer, a framework around various different schemes for naming parts of an XML document. I focused on the XPointer scheme which is an extended version of XPath. So I named my first task as getting XPaths working. Thankfully javascript running in the HTML document produced by running my XSLT on an XML document has access to the original XML document object via the document.XMLDocument property. From this this I can execute XPaths, however there's no builtin way to map from the XML nodes selected by the XPath to the HTML elements that I produced to represent them. So I created a recursive javascript function and XSLT named-template that both produce the same unique strings based on an XML node's position in the document. For instance 'a3-e2-e' is the name produced for the 3rd attribute of the second element of the root element of the XML document. When producing the HTML for an XML node, I add an 'id' attribute to the HTML with the unique string of the XML node. Then in javascript when I execute an XPath I can discover the unique string of each node in the selected set and map each of them to their corresponding positions in the HTML.

With the hard part out of the way I changed the onload to get the fragment of the URI of the current document, interpret it as an XPath and highlight and navigate to the selected nodes. I also added an interactive floating bar from which you can enter your own XPaths and do the same. On a related note, I found that when accessing XML files via the file URI scheme the fragment is stripped off and not available to the javascript.

The next steps are of course to actually implement XPointer framework parsing as well as the limited number of schemes that the XPointer framework specifies.PermalinkCommentsxml xpointer msxml res xpath xslt resource ie7 technical browser ie xsl

In The Know: Do You Remember Life Before The Segway? | The Onion - America's Finest News Source

2007 May 2, 1:39From The Onion News Network: "In The Know: Do You Remember Life Before The Segway? Panelists discuss how the Segway personal transporter has revolutionized American life."PermalinkCommentshumor onion segway video

BBC NEWS | Technology | BBC to open up archive for trial

2007 Apr 18, 11:22For a trial period the BBC will open its archive online for free. Hopefully this is the start of a trend otherwise in the future the only freely available content will be reruns of Absolutely Fabulous.PermalinkCommentsbbc television archive article ip

Missing Bee Roundup

2007 Apr 15, 4:06For the past several months I've seen various articles suggesting why bees are disappearing. At first I thought this was another crackpot's article that somehow made it onto digg.com. But they keep coming and sometimes from credible sources. After the article I saw tonight I thought I should go back and put together the various articles I've read on this topic. Bees may be disappearing due to pesticides, new organic pathogens, genetically modified crops, mobile phones, or climate change. Apparently, the US hasn't been keeping accurate counts of its bees so we don't know the extent of the situation. There's an interview with Maryann Frazier, M.S., of the Dept. of Etymology at Penn State and a congressional hearing on the matter.

I know this is all very serious and could signal the end of our ecosystem as we know it, but I can't help throwing in the following links as well. The bees could be hiding in this Florida couple's kitchen. Or perhaps they're laying low while being trained by the government to fight terrorism. Or they're hiding in extra dimensions that we mere humans can't perceive (I'm fairly certain that's what this article is suggesting. Really. Read it. Seriously. Its awesome.)PermalinkCommentsroundup personal bees nontechnical

Report Says the Young Buy Violent Games and Movies - New York Times

2007 Apr 13, 2:52Shocking newsflash: Kids view adult content! OMG! FTA: "Commission investigators also found that youth access to violent fare had fallen since 2000, especially in video games. Only 42 percent of unaccompanied young buyers were able to buy games rated M (fPermalinkCommentsarticle business censorship government rights violence videogames

Pearls Before Breakfast - washingtonpost.com

2007 Apr 9, 12:51One of the greatest classical musicians in the world plays as a street performer to see how much attention and money he gets.PermalinkCommentsart classical music social video article humor news via:swannman

'Talking' CCTV scolds offenders (BBC NEWS | UK | England)

2007 Apr 5, 11:45British cameras watching the public now have loudspeakers hooked up to scold people behaving inappropriately. What year is it?PermalinkCommentsparanoia government tv camera article bbc

NFL fumbles DMCA takedown battle, could face sanctions

2007 Mar 21, 12:38NFL sends take down notice to person posting a video on youtube who turns out to be "law professor by day, is also staff attorney for the Electronic Frontier Foundation (EFF) by night and founder of Chilling Effects, a web site dedicated to educating thePermalinkCommentsarticle cool copyright eff ip legal law rights news fairuse dmca nfl youtube

I Bought Votes on Digg (Wired News)

2007 Mar 1, 1:01Wired reported pays a service to make his fake blog popular on Digg.comPermalinkCommentsarticle digg fraud bribe

Dane Cook Parlays New Burger King Menu Item Into Hour-Long HBO Special | The Onion - America's Finest News Source

2007 Feb 23, 12:25Humorous article mocking Dane CookPermalinkCommentshumor comedy satire onion dane-cook article neat-fp

IP Address Pictograph - Leave your mark

2007 Feb 8, 3:34Creates image from IP address to make it easier to associate anonymous comments with the authors.PermalinkCommentsarticle news blog ip privacy identity images

New Scientist Technology Blog

2007 Jan 8, 12:06PermalinkCommentsblog internet science news technology

Futurama's David X. Cohen interview - new episodes 2008.

2006 Dec 13, 12:59This interview with David X Cohen says there are new Futurama episodes coming in 2008. But I want new episodes now!PermalinkCommentsanimation interview news tv futurama david-x-cohen

Politicians Sweep Midterm Elections | The Onion - America's Finest News Source

2006 Nov 8, 9:08Article about the results of the midterm elections held yesterday. Ah the Onion. So funny. So very funny. I really like the pie chart in the article.PermalinkCommentsonion politics humor article

Features : Radar Online

2006 Sep 28, 3:43PermalinkCommentsarticle john-hodgman humor interview news politics

Upcoming.org: Home

2006 Aug 29, 4:06PermalinkCommentsajax blog cool internet tools social music news local

the show with zefrank

2006 Jun 20, 10:53Humorous Video BlogPermalinkCommentsvideo humor blog news zefrank

Telegraph | Entertainment | Farce that rose from the grave

2006 May 23, 11:49Individual fan purchases rights to television series in order to release it on DVD.PermalinkCommentstv cool news dvd rights
Older EntriesNewer Entries Creative Commons License Some rights reserved.