Live data from Hacker News

Xkcd: Click and Drag

xkcd.com

61–70 of 97 posts

Re: Xkcd: Click and Drag

#64
post #51
post #22

I wrote some JS to add keyboard controls to the map, because clicking and dragging is for suckers. http://www.potch.me/blog/press-and-hold.html

as a bookmarklet: javascript:var kn=document.createElement('script');kn.src='//raw.github.com/gist/3748621/1bbdaee115134d0106978e42a5423f7b3e5de5e3/nav.js'; kn.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(kn);

Thanks!

I added a bookmarklet of the original code to the site- I know you're legit, but I'm always wary of encouraging people to load random external JS via a bookmarklet.

Re: Xkcd: Click and Drag

#65
post #53
post #22

I wrote some JS to add keyboard controls to the map, because clicking and dragging is for suckers. http://www.potch.me/blog/press-and-hold.html

I'm holding out for a version that lets me use two-finger scrolling.

Three finger scrolling works on a mac (Lion). I think you can enable drag lock on snow leopard for the same effect.

EDIT: The mouse does move off the view port during drag, so its probably not that much more efficient.

Re: Xkcd: Click and Drag

#67
post #47

Earlier quoted context omitted.

I was having trouble downloading the torrent, so I wrote a little script to get it for me: https://gist.github.com/3748257 Warning: 6mb worth of files. Edit: Github repo with all the images and the script, so that people don't need to hammer the xkcd server: https://github.com/danielribeiro/xkcd_grab

And here is how you get a web page you can open to view the whole thing in a one sitting: perl -e'print " img{width:2048px;height:2048px} "; print /X$/ ? "\n" : " " for @ARGV' {{13..1}n,{1..19}s}{{33..1}w,{1..48}e,X} > index.html Warning: gigantic page, may crash your browser. (Not as bad as it might seem, since many tiles are missing.)

[deleted]

Re: Xkcd: Click and Drag

#69
post #35

my hacky way of killing Randall's server: curl --limit-rate 40K -O http://imgs.xkcd.com/clickdrag/\[0-100\]\{n,s\}\[0-100\]\{e,w\}.png Then to remove all the 404s: find . -type f -size 345c -exec rm -f {} \; Woo! No code.

imgs.xkcd.com seems to point to a CDN, so it's unlikely to kill his server ;)
Post reply on HN