Thursday, August 14, 2008

Test "Quote from a blog" bookmarklet

abc

function mozInnerHTML(node) { var str = ''; for (var i = 0; i < str =" '';" i =" 0;" attr =" node.attributes.item(i);">'; } else { str += '>'; str += mozInnerHTML(node); str += ''; } break; case Node.TEXT_NODE: str += node.nodeValue; break; default: break; } return str; } var sel = window.getSelection(); var node = sel.getRangeAt(0).commonAncestorContainer; var html = mozOuterHTML(node); var uri=document.location; var title = document.title; var win=window.open('','','width=500,height=400'); win.document.write('

' + html + ' [' + title + ']' + '

' );
[]

def

4. Quote from a blog, which lifts text from a page and formats it for posting to a blog, along with attribution and a link. Because this version uses an advanced Mozilla-only technique described here, though, you might rather use the version that Phil Windley discussed here.

[Jon Udell: Bookmarklets 101]

ghi

Monday, August 11, 2008

RideMatch and Modeling

A project for Max and his students: model ridematch idea in NetLogo.

Monday, August 04, 2008

A substitute kludglet for del.icio.us/html urls

8/12/08 Update: I've replace dm.htm with d4m.htm. Try this and this.

The new del.icio.us doesn't work well on the Blazer browser on my Palm T|X. Every page gets a "page too large" error. The old del.icio.us didn't work that well, so I often used del.icio.us/html urls that worked well: the were fast and used the small screen efficiently. del.icio.us/html urls are gone. A mobile del.icio.us is promised, but until it arrives I've come up with a kludge for helps.

http://mshook.googlepages.com/delhtmljs.htm is an html/javascript applet that is my attempt to substitute for some of the things I used to do with del.icio.us/html urls.

This url:

http://mshook.googlepages.com/delhtmljs.htm?mshook?tags&extended&count=100

does what this url:

http://del.icio.us/html/mshook/?tags=yes&rssbutton=no&extended=body&count=100

used to do for me in the old del.icio.us

This is not as fast as the old del.icio.us/html urls (which were very fast) but I still find it useful on my TX. I imagine it could be useful on other slow and/or small screen devices.

These are some other substitute urls for some other del.icio.us/html urls I've used:
The page uses the del.icio.us Linkroll script and thus the Linkroll script parameters (instead of the old del.icio.us/html parameters). I use the Linkroll page to build my url and then extract the arguments and append them to the delhtmljs.htm url.