cia page 11 - Dave's Blog

Search
My timeline on Mastodon

twistori

2008 Apr 29, 7:56"this is the first step in an ongoing social experiment, based on twitter. inspired by wefeelfine and drawing data from summize, hand-crafted by amy hoy and thomas fuchs."PermalinkCommentsvia:ethan_t_hein api twitter social art visualization

List Of The Day: Banned Ikea Commercials Of The Day

2008 Apr 29, 4:34Humorous Ikea commercials not seen in the US. I like the lamp one.PermalinkCommentsikea commercial tv blog humor video

Gin, Television, and Social Surplus - Here Comes Everybody

2008 Apr 28, 12:55Clay Shirky talks about the surplus of thought that TV occupies.PermalinkCommentsarticle clay-shirky culture internet tv technology collaboration community history

URI Fragment Info Roundup

2008 Apr 21, 11:53

['Neverending story' by Alexandre Duret-Lutz. A framed photo of books with the droste effect applied. Licensed under creative commons.]Information about URI Fragments, the portion of URIs that follow the '#' at the end and that are used to navigate within a document, is scattered throughout various documents which I usually have to hunt down. Instead I'll link to them all here.

Definitions. Fragments are defined in the URI RFC which states that they're used to identify a secondary resource that is related to the primary resource identified by the URI as a subset of the primary, a view of the primary, or some other resource described by the primary. The interpretation of a fragment is based on the mime type of the primary resource. Tim Berners-Lee notes that determining fragment meaning from mime type is a problem because a single URI may contain a single fragment, however over HTTP a single URI can result in the same logical resource represented in different mime types. So there's one fragment but multiple mime types and so multiple interpretations of the one fragment. The URI RFC says that if an author has a single resource available in multiple mime types then the author must ensure that the various representations of a single resource must all resolve fragments to the same logical secondary resource. Depending on which mime types you're dealing with this is either not easy or not possible.

HTTP. In HTTP when URIs are used, the fragment is not included. The General Syntax section of the HTTP standard says it uses the definitions of 'URI-reference' (which includes the fragment), 'absoluteURI', and 'relativeURI' (which don't include the fragment) from the URI RFC. However, the 'URI-reference' term doesn't actually appear in the BNF for the protocol. Accordingly the headers like 'Request-URI', 'Content-Location', 'Location', and 'Referer' which include URIs are defined with 'absoluteURI' or 'relativeURI' and don't include the fragment. This is in keeping with the original fragment definition which says that the fragment is used as a view of the original resource and consequently only needed for resolution on the client. Additionally, the URI RFC explicitly notes that not including the fragment is a privacy feature such that page authors won't be able to stop clients from viewing whatever fragments the client chooses. This seems like an odd claim given that if the author wanted to selectively restrict access to portions of documents there are other options for them like breaking out the parts of a single resource to which the author wishes to restrict access into separate resources.

HTML. In HTML, the HTML mime type RFC defines HTML's fragment use which consists of fragments referring to elements with a corresponding 'id' attribute or one of a particular set of elements with a corresponding 'name' attribute. The HTML spec discusses fragment use additionally noting that the names and ids must be unique in the document and that they must consist of only US-ASCII characters. The ID and NAME attributes are further restricted in section 6 to only consist of alphanumerics, the hyphen, period, colon, and underscore. This is a subset of the characters allowed in the URI fragment so no encoding is discussed since technically its not needed. However, practically speaking, browsers like FireFox and Internet Explorer allow for names and ids containing characters outside of the defined set including characters that must be percent-encoded to appear in a URI fragment. The interpretation of percent-encoded characters in fragments for HTML documents is not consistent across browsers (or in some cases within the same browser) especially for the percent-encoded percent.

Text. Text/plain recently got a fragment definition that allows fragments to refer to particular lines or characters within a text document. The scheme no longer includes regular expressions, which disappointed me at first, but in retrospect is probably good idea for increasing the adoption of this fragment scheme and for avoiding the potential for ubiquitous DoS via regex. One of the authors also notes this on his blog. I look forward to the day when this scheme is widely implemented.

XML. XML has the XPointer framework to define its fragment structure as noted by the XML mime type definition. XPointer consists of a general scheme that contains subschemes that identify a subset of an XML document. Its too bad such a thing wasn't adopted for URI fragments in general to solve the problem of a single resource with multiple mime type representations. I wrote more about XPointer when I worked on hacking XPointer into IE.

SVG and MPEG. Through the Media Fragments Working Group I found a couple more fragment scheme definitions. SVG's fragment scheme is defined in the SVG documentation and looks similar to XML's. MPEG has one defined but I could only find it as an ISO document "Text of ISO/IEC FCD 21000-17 MPEG-12 FID" and not as an RFC which is a little disturbing.

AJAX. AJAX websites have used fragments as an escape hatch for two issues that I've seen. The first is getting a unique URL for versions of a page that are produced on the client by script. The fragment may be changed by script without forcing the page to reload. This goes outside the rules of the standards by using HTML fragments in a fashion not called out by the HTML spec. but it does seem to be inline with the spirit of the fragment in that it is a subview of the original resource and interpretted client side. The other hack-ier use of the fragment in AJAX is for cross domain communication. The basic idea is that different frames or windows may not communicate in normal fashions if they have different domains but they can view each other's URLs and accordingly can change their own fragments in order to send a message out to those who know where to look. IMO this is not inline with the spirit of the fragment but is rather a cool hack.

PermalinkCommentsxml text ajax technical url boring uri fragment rfc

Official Gmail Blog: 2 hidden ways to get more from your Gmail address

2008 Apr 11, 3:48Howto avoid spam with Gmail: "If your name was hikingfan@gmail.com, you could send mail to hikingfan+friends@gmail.com or hikingfan+mailinglists@gmail.com"PermalinkCommentsspam gmail blog google howto mail email

ImpossibleFunky Productions: "I Will Kill George Lucas With A Shovel"

2008 Apr 10, 6:32"[Patton Oswalt's] comedy album, Werewolves and Lollipops is pretty friggin' brilliant, especially the track here -- "At Midnight I Will Kill George Lucas With A Shovel""PermalinkCommentspatton-oswalt humor starwars audio mp3

YouTube - Seattle Pillow Fight 2008 in Pike Place Market

2008 Apr 2, 6:29A pillow fight in Pike Place Market. "A group of web-connected friends converge at a specified location in the city and at a designated time produce previously concealed pillows and begin an awesome fight."PermalinkCommentsflash-mob seattle washington pike-place-market pillow pillow-fight youtube video humor social via:swannman

Protest Culture -- Ad Hoc vs Institutional, and What it Means (Event Video/Audio) | Berkman Center

2008 Mar 31, 3:43Clay Shirky talks to a very small audience. Starts with more examples like prev. video. @20:30 describes interesting problems he hasn't resolved. @31:04 interesting exchange between listeners and Clay.PermalinkCommentsvideo cooperation social web politics law internet culture collaboration community

Here Comes Everybody: The Power of Organizing Without Organizations (Event Video/Audio) | Berkman Center

2008 Mar 31, 2:33Clay Shirky gives a talk about how the Internet changes everything via organization and collaboration.PermalinkCommentsvideo book clay-shirky via:librarythingblog social talk research internet

NFT - Not For Tourists - Seattle - City Guidebooks, Maps, Urban Neighborhoods, Travel

2008 Mar 31, 2:31Social local's guide to various areas including Seattle.PermalinkCommentsvia:swannman guide seattle food social

Dinner with Goodwins at Icon Grill

2008 Mar 27, 9:33

The Goodwin family, except for Michelle who is taking a class trip to Washington DC and New York, was in Seattle this week. Sarah and I met up with them for dinner last night at the Icon Grill. I enjoy the Icon Grill in general and last night was no exception especially having dinner with the Goodwins which was a lot of fun. It was particularly cold and at one point snowed. The Goodwin's are seeing all the classic tourist attractions in Seattle some of which are depicted in the following 1962 Seattle's Worlds Fair postcard. The postcard is featured on Paleo-Future and unsurprisingly the 1962 Worlds Fair favored Seattle's Space Needle and monorail.

[Icon Grill front. Licensed under under Creative Commons. By Troy B Thompson][Seattle's Worlds Fair Postcard]

PermalinkCommentsicon grill life washington goodwins sarah seattle nontechnical

Kids In the Hall tickets WaMu Theater Seattle, WA, Directions, seating chart. Official Ticketmaster site.

2008 Mar 21, 11:58Kids in the Hall are coming to Seattle!PermalinkCommentskith seattle humor ticket live

Mathematics for the President and Congress

2008 Mar 9, 1:17"It is, quite frankly, one of the best critiques of current K-12 mathematics education I have ever seen. Written by a first-class research mathematician who elected to devote his teaching career to K-12 education."PermalinkCommentsvia:ethan_t_hein math education paper

Juanita Beach Visit and Map

2008 Mar 7, 3:26

Don't Feed the Ducks SignTwo weekends ago it was actually sunny and kind of warm so Sarah and I went down to Spud Fish and Chips and Juanita Beach Park. We ate fish and chips on the dock. I took a few pictures and this time actually put some geographical information on Flickr so now I've got a map of my tiny fish and chips journey. On the map click on the floating marks to view the associated photos.

Flickr provides access to the geo data associated with your photos via GeoRSS feeds. And Google Maps displays GeoRSS feed content on their maps allowing you even to edit the data but doesn't appear to let you easily export the GeoRSS. Live Maps does the inverse, allowing you to create and export GeoRSS data but not import it. I'd like both please. Oh well.

PermalinkCommentsmap photo personal fish-and-chips juanita-beach

MegaPhone | Making Digital Signage Interactive | Media

2008 Mar 7, 10:03More videos and photos of megaphone in action. Neat idea.PermalinkCommentsmegaphone video videos videogames game games social

YouTube - Urban Screens 07: Megaphone

2008 Mar 7, 10:03Big screens in public places host video games you call in and control with your cell phone: "Jury Hahn and Dan Albritton talk about their creation Megaphone - an interactive software that allows users to control Big Screen game elements with their mobilePermalinkCommentsvideo youtube megaphone software social games game videogames

The music of Lee Maddeford - Creative Commons

2008 Mar 5, 2:30Creative Commons website talks about Lee Maddeford who released his music under CC Attribution-NonCommercial license. "There's a huge variety of quality music (well over 10 hours of recordings) to enjoy, crossing several genres and many projects led byPermalinkCommentslee-maddeford music cc copyright

URI Addressable Text Adventure Games

2008 Mar 2, 9:18

This post is about creating a server side z-code interpreter that represents game progress in the URI. Try it with the game Lost Pig.

I enjoy working on URIs and have the mug to prove it. Along those lines I've combined thoughts on URIs with interactive fiction. I have a limited amount of experience with Inform which generates Z-Code so I'll focus on pieces written in that. Of course we can already have URIs identifying the Z-Code files themselves, but I want URIs to identify my place in a piece of interactive fiction. The proper way to do this would be to give Z-Code its own mimetype and associate with that mimetype the format of a fragment that would contain the save state of user's interactive fiction session. A user would install a browser plugin that would generate URIs containing the appropriate fragment while you play the IF piece and be able to load URIs identifying Z-Code files and load the save state that appears in the fragment.

But all of that would be a lot of work, so I made a server side version that approximates this. On the Web Frotz Interpreter page, enter the URI of a Z-Code file to start a game. Enter your commands into the input text box at the bottom and you get a new URI after every command. For example, here's the beginning of Zork. I'm running a slightly modified version of the Unix version of Frotz. Baf's Guide to the IF Archive has lists of IF games to try out.

There are two issues with this thought, the first being the security issues with running arbitrary z-code and the second is the practical URI length limit of about 2K in IE. From the Z-Code standard and the Frotz source it looks like 'save' and 'restore' are the only commands that could do anything interesting outside of the Z-Code virtual machine. As for the length-limit on URIs I'm not sure that much can be done about that. I'm using a base64 encoded copy of the compressed input stream in the URI now. Switching to the actual save state might be smaller after enough user input.

PermalinkCommentszork frotz interactive-fiction zcode if technical uri fragment

Pages tagged with "wtf" on del.icio.us

2008 Feb 27, 2:39Title says it all. The ratio of interesting stuff to not is pretty good.PermalinkCommentsvia:ethan_t_hein humor delicious links social tag tagging wtf

XYZZYnews Issue #11 A Conversation With Cosmoserve's Judith Pintar

2008 Feb 25, 1:18An interview with Judith Pintar famed I.F. game writer. FTA: "While I was writing CosmoServe, I worked as a children's theatre director, and for the ten years before that I was a actress, storyteller and concert musician." She worked with my third gradePermalinkCommentsjudith-pintar if interactive-fiction interview cosmoserve game games
Older EntriesNewer Entries Creative Commons License Some rights reserved.