Human discourse will never be the same again May 16th, 2008

“This blogpost has made me feel something I haven’t felt in years!”
“What’s that?”
“My pulse!”

Compiling languages down to Javascript May 12th, 2008

A hundred years from now, all code will look both similar and different.

With apologies to Hanlon April 7th, 2008

“Never attribute to malware that which can be adequately explained by stupidware.”

How to see Last.fm from the other side of the room with LastJS March 2nd, 2008

Proof of concept, more than anything else: how to hook up to a recalcitrant Flash-based interface.

Subversion log messages need not be set in stone January 14th, 2008

Simon Willison mentioned a while back a link to help on how to undo a svn commit in subversion (more a kind of internal branching than an actual undo, of course: but that’s subversion). That’s all very well, but how about undoing the log message for a particular commit?
Say you have a codebase that only [...]

SQL Server error: sqlboot.dll December 17th, 2007

After several administrative steps over a few months, we suddenly found the following error coming from an instance of SQL Server on a virtual machine:

Your SQL Server installation is either corrupt or has been tampered with (unable to load SQLBOOT.DLL). Please uninstall them re-run setup to correct this problem.

Nobody had been keeping an eye [...]

Insert any Javascript bookmarklet December 10th, 2007

As the natural extension of Gareth Rushgrove’s bookmarklets for inserting the Dojo or YUI Javascript toolkits mentioned by Simon, here’s a tidying-up of a bookmarklet I’ve been using to bring in any Javascript using user input via a popup prompt:
Insert-JS bookmarklet

javascript:void(function(){
  var%20s=document.createElement("script");
  s.src=prompt("Full%20URL:");
  document.getElementsByTagName("head")[0].appendChild(s);
}())

I was originally appending it to the body as an invisible div, making use of [...]

Checking the changes for many svn versions, one version at a time October 30th, 2007

Say you want to see both the log and diff of a given svn version, just the differences between it and the previous version, plus log message (i.e. what was committed, and why, for version NUM) The following will work at a bash command prompt:
$ r=NUM; rr=-r`expr $r - 1`:$r; svn log -r$r; svn diff [...]

Want somewhere to stay in Brittany? September 13th, 2007

My parents-in-law own a cottage in a place in France called Pont Camarel. They asked me to build them a site. I did. That’s it.
(It’s maintained by the creaky old php-update system, which is awful; development of the site wasn’t helped by the system’s maintainer taking all the old forums down while he rebuilt it [...]

Visualizing an application’s entire call stack September 5th, 2007

KentBye, Flickr user, has been playing with GraphViz. He’s used it to turn an XDebug output into a pretty visualization of Drupal’s call stack, or what functions call what functions during a typical Drupal request.