A Better BugMeNot Bookmarklet

Posted by Tom on November 9th, 2008 — in Hacks, JavaScript, Programming, Ruby, Ruby on Rails, Web

BugMeNot is a great little service for bypassing the registration process for websites that really shouldn’t require it (ahem, nytimes.com). The bookmarklet brings up BugMeNot for the current website you’re viewing, and gives you login/password pairs which you can then copy and paste.

But wouldn’t it be better if it automagically filled in the username and [...]

Automagically Wrapping JavaScript Callback Functions

Posted by Tom on October 22nd, 2008 — in Hacks, JavaScript, Programming, Uncategorized, Web

One very nice thing about JavaScript is it’s support for first-class functions and closures. Crockford calls JavaScript “Lisp in C’s Clothing”. I’m no Lisper, but I enjoy I discovering new tricks or applications of functional programming in JavaScript.

I wanted to hook all the browser’s asynchronous JavaScript “entry points” : events, timers, asynchronous XMLHttpRequests, script tags, [...]

Improved Browser Paint Events Bookmarklet

Posted by Tom on October 14th, 2008 — in Bookmarklet, JavaScript, Web

John Resig posted today about a nifty new feature available in Firefox nightlies, browser paint events. He also posted an example script and bookmarklet called TrackPaint. He goes into greater depth in his post, so I won’t bother here.

I wanted something more “real-time” and closer to the Quartz Debug utility included with the Mac OS [...]

YouTube Fullscreen Bookmarklet

Posted by Tom on September 28th, 2008 — in Bookmarklet, Hacks, JavaScript, Web

I find it incredibly annoying when an embedded YouTube video can’t be made fullscreen, and I have to switch to YouTube.com just to watch it.

So, I wrote this simple little bookmarklet which modifies the embed code for any YouTube videos to allow fullscreen. It could also easily be made into a user script for GreaseMonkey, [...]

Multitouch JavaScript “Virtual Light Table” on iPhone v2.0

Posted by Tom on July 11th, 2008 — in JavaScript, Uncategorized, Web, iPhone

Now that iPhone 2.0 is out I started playing around with some of the new web features, and soon found that I had created the prototypical virtual light table that’s an essential demo for any new multitouch technology.

It’s about 100 lines of JavaScript. It grabs the 10 latest photos from Flickr’s “interesting photos” API and [...]

JSON Diff

Posted by Tom on June 30th, 2008 — in JavaScript, Programming, Web

I released a new project yesterday, diff for JSON. It’s very simple, but useful. Simply paste two chunks of JSON you want to diff into the two fields, and click “Compare”:

JSON Diff

It shows the difference highlighted in yellow (changed), green (added), or red (removed).

Mac OS X, Web Sharing / Apache, and Symlinks

Posted by Tom on June 25th, 2008 — in Mac, Web

Mac OS X comes with an Apache installation which is very handy, but by default it’s configured not to follow symlinks. A lot of times I have projects in other directories which I want to share via the web server, but end up getting errors such as the following:

Forbidden

You don’t have permission to access /~tlrobinson/Editor/ [...]

Using user stylesheets to highlight links to PDFs or other media, rel=”nofollow”, etc

Posted by Tom on March 25th, 2008 — in CSS, Web

Browsers allow you to define your own stylesheet that’s applied to every page you visit. For the longest time I’ve wondered why anyone would ever want this feature. I figured it would be useful for people with poor vision or other disabilities and that was about it.

But combined with some neat features of CSS, one [...]

Ad-blocking and whyfirefoxisblocked.com

Posted by Tom on August 20th, 2007 — in Internet, Web

Recently it came to the attention of the Digg masses that some slimy SEO guy was advocating web site owners block every Firefox user simply because Firefox allows ad-blocking plugins, and doesn’t provide web site owners with any way to block users of such plugins.

I find this incredibly silly for a number of reasons. The [...]

The iPhone and Apple’s 3rd party developer solution… web apps

Posted by Tom on July 5th, 2007 — in Web, iPhone

Not many developers are happy with Apple’s solution for developing applications for the iPhone: web applications. Personally, I’m ok with it because I’ve seen what can be done with JavaScript.

Except for a few things:

Lack of access to the hardware. Inability to run applications offline. Limited integration with the rest of the user interface.

There’s not much Apple can [...]


Home Blog 280 North SCEC-VDO Wator World X TOOBS Wikipedia Fun Kegbot EasyButton JavaScript x0xb0x XBMC iPhone