Simon Willison’s Weblog

Subscribe

Items in May, 2012

Filters: Year: 2012 × Month: May × Sorted by date


What is the most efficient way to lookup an object (e.g. a user) by only a string?

Yes—an index on a varchar column is exactly how you would implement this.

[... 38 words]

Is there an API that returns metadata for a given URL?

I suggest taking a look at http://embed.ly/—it can take a huge range of URLs and turn them in to JSON metadata. Here’s what it can do with a Wikipedia page: http://embed.ly/docs/explore/obj...—and here’s Google Maps URL (not as useful, but still some interesting metadata extracted) http://embed.ly/docs/explore/obj...

[... 69 words]

How did art.sy get a “.sy” url?

Here’s a generally useful tip: if you’re interested in learning more about ANY top level domain, visit the Wikipedia page for it—which will be http://en.wikipedia.org/wiki/.sy in this case (just add the domain, complete with its dot prefix, directly after en.wikipedia.org/wiki/ ).

[... 105 words]

Which sites have the best URL design?

GitHub’s URL design is fantastic—it’s a virtually flawless mapping of Git semantics to URL space. Their basic URL structure is excellent, but they also have a bunch of neat URL hacks going on. Here are a few of my favourites:

[... 97 words]

When referring to our web site in publications (or Twitter or Facebook), when is it important to provide the full URL—http://www.mywebsite.com and when should you provide just the mywebsite.com?

You have no control over how other publications refer to your site—if you’re lucky, they might spell it correctly and check the link works before publishing (but I wouldn’t bet on it). What you DO have control over is making sure you compensate for any mistakes they make.

[... 166 words]

How to maximize the conference experience as an attendee?

Talk to people.

[... 181 words]

Is there a site which aggregates CFPs (calls for papers/speakers) for tech conferences?

We have a crowdsourced collection of CFPs on Lanyrd: http://lanyrd.com/calls/

[... 80 words]

How to prepare for and what (gadgets) to take to Wikimania?

As general conference advice, carrying as little as possible is a very good idea. These days I take an 11 inch MacBook Air, an iPhone and an external battery for the iPhone (thus making it run out at the end of the day as opposed to half way through the afternoon). I only have the MacBook Air in case I’m on support duty and need to fix something—I’d prefer to just have the phone.

[... 150 words]

Types

Years

Months

Tags