Simon Willison’s Weblog

Entries in Jun

Filters: Type: entry × Month: Jun ×


Weeknotes: cookiecutter templates, better plugin documentation, sqlite-generate

I spent this week spreading myself between a bunch of smaller projects, and finally getting familiar with cookiecutter. I wrote about my datasette-plugin cookiecutter template earlier in the week; here’s what else I’ve been working on.

[... 703 words]

A cookiecutter template for writing Datasette plugins

Datasette’s plugin system is one of the most interesting parts of the entire project. As I explained to Matt Asay in this interview, the great thing about plugins is that Datasette can gain new functionality overnight without me even having to review a pull request. I just need to get more people to write them!

[... 914 words]

Weeknotes: Datasette alphas for testing new plugin hooks

A relatively quiet week this week, compared to last week’s massive push to ship Datasette 0.44 with authentication, permissions and writable canned queries. I can now ship alpha releases, such as today’s Datasette 0.45a1, which means I can preview new plugin features before they are completely ready and stable.

[... 728 words]

How much can you learn from just two columns?

Derek Willis shared an intriguing dataset this morning: a table showing every Twitter account followed by an official GOP congressional Twitter account.

[... 951 words]

Datasette 0.44: The annotated release notes

I just released Datasette 0.44 to PyPI. With 128 commits since 0.43 this is the biggest release in a long time—and likely the last major release of new features before Datasette 1.0.

[... 1648 words]

Weeknotes, I guess

What a week. Hard to work up the enthusiasm to write about what I’ve been working on.

[... 314 words]

Porting Datasette to ASGI, and Turtles all the way down

This evening I finally closed a Datasette issue that I opened more than 13 months ago: #272: Port Datasette to ASGI. A few notes on why this is such an important step for the project.

[... 1082 words]

Free Afternoon in San Francisco with no car

My absolute favorite thing to do in SF is to walk up a hill. My favourite hill in the city is Corona Heights over in the Castro—it’s beautiful and the view is spectacular. It’s not part of the regular tourist circuit—you can think of it as a best-kept-secret of the city.

[... 132 words]

A thing to do in London that is special, unusual and fun

London has some of the best cocktail bars in the world. I’m a big fan of this top 50 list, which is updated every year based on an international panel of bartenders. It looks like the American Bar at the Savoy is back at the top for London now—it’s been serving cocktails for over 100 years including keeping the American cocktail tradition alive during prohibition. Sure, it’s expensive but your budget should cover a couple of drinks each (which for me is absolutely enough for an evening). Or you could hit a couple of the bars on that list and have a drink at each one

[... 168 words]

What are useful tools for building out web app Infrastructure?

First, make sure you know your way around a command automation tool, such as Fabric (Python) or Capistrano (Ruby).

[... 63 words]

How can you assign routes for a website in a .net environment?

You’ll have a much easier time of it if you use paths that start at the root rather than relative paths, eg <a href=“/foo/bar/”> instead of <a href=“../bar/”>

[... 46 words]

Why does Python not have any data structures that store data in sorted order?

The bisect module provides functions for achieving this using a python list as the underlying data structure: http://docs.python.org/2/library...

[... 39 words]

If I write a blog, then use the same information to create a slideshare presentation, will that help or hurt my website’s SEO?

I would be absolutely amazed if you were hit by a duplicate content penalty for this. To a search engine spider (even a super advanced one) content formatted as a blog post and similar content repurposed as slides will look completely different.

[... 71 words]

What do you offer to a high-profile speaker when inviting him to an event?

Unless they live locally it’s almost rude not to offer flights and accommodation—they will certainly expect it.

[... 134 words]

Where can I get Korean alcoholic soju yoghurt in London?

We found somewhere! Han Kang near Tottenham Court Road https://plus.google.com/10738855...

[... 27 words]

What books are there for living a life as an startup entrepreneur? Giving up a job and then find a mentor, Brainstorming ideas, locating seed money. Hire Programmers. Have I got this right?

Read The Lean Startup: How Today’s Entrepreneurs Use Continuous Innovation to Create Radically Successful Businesses—see also http://theleanstartup.com/

[... 60 words]

Does anybody get mad at the moderators here at Quora?

I get annoyed with question redirects sometimes. When I answer a question I try to take in to account the exact specifics and exact context of the question, which are usually obliterated by a merge with a similar but not semantically identical question.

[... 59 words]

What is the best way to deploy Django?

These days a popular and reliable method is to run gunicorn behind nginx. This tutorial includes notes on using upstart for process management which is handy if you are on Ubuntu: http://lincolnloop.com/django-be...

[... 47 words]

What is the relationship between CTO and VP of Engineering typically like?

There was a great talk about this topic last year by the CTO and VP Engineering if Joyent at the Monkigras conference in London—slides and video available here: http://lanyrd.com/2012/monkigras...

[... 50 words]

Will people pay $25 to see a blockbuster-type movie?

Here in London my closest cinema is charging £17.45 for an adult ticket to see Man of Steel in 3D, which is equivalent to $27.55. I’ve paid the same to see Star Trek Into Darkness recently.

[... 51 words]

Do Flask and Django have a GUI interface like web2py?

No. The web2py GUI is something of an oddity in the Python world.

[... 65 words]

Where can I find an updated DB of countries, states and cities?

This is a surprisingly complicated question. The first thing you might want to ask yourself is “what’s a country”—how do you deal with places on this List of states with limited recognition for example?

[... 182 words]

What’s the best platform I can use for a food delivery startup? Shopify? Or should I instead learn to code?

Don’t build an e-commerce system as your first programming project—I know engineers with many years of experience who wouldn’t trust themselves to write code that handles money.

[... 103 words]

How do some public speakers memorize so many statistics when speaking on stage?

It’s really not hard. If you’re memorising a complete speech, remembering a few statistics is easy in comparison. Also, the stats you use in a speech should be meaningful (otherwise thy include them at all?) which means the have a built in mnemonic.

[... 62 words]

What is the best conference welcome video you’ve ever seen?

Webstock always have awesome opening titles. Here’s their 2013 one: Webstock ’13 opening—it’s worth hunting around for previous years as well.

[... 40 words]

Who was accepted into Y Combinator’s Summer 2013 batch?

You are unlikely to get any good answers to this question for a while, because YC startups are advised not to announce their participation straight away. Instead, they usually hold the announcement until they are ready to launch something—it’s a useful hook for getting extra coverage for the story.

[... 79 words]

What is the equivalent of E3 in the UK?

Develop in Brighton is a huge event for game developers. GameCity in Nottingham is another important one.

[... 32 words]

What tech conferences will be taking place in Seattle the summer of 2013?

We have a list of upcoming (mostly tech) professional events and conferences in Seattle here: Conferences in Seattle | Conferences & Events | Lanyrd

[... 63 words]

What are some personalized ways to search for an event?

For conferences and professional events, try out our service http://lanyrd.com/—if you sign in with Twitter (or LinkedIn) we’ll show you events the people you are connected to are speaking at or attending, and we can make further recommendations based on your interest graph if you let us know which topics you are interested in.

[... 73 words]

What should tech conferences, events and planners do to add diversity?

JSConf did something very clever that helped them get 25% female speakers last year: Beating the Odds—How We got 25% Women Speakers for JSConf EU 2012

[... 94 words]