Writing
RSS feedWhilst I can’t guarantee I’ll write all the drafts I’ve listed, I can but try. Why not subscribe to my RSS feed and you might get the occasional pleasant surprise.
Articles
-
I have just come back from a short break in Alnmouth, and where we were staying had a “4D Sudoku” puzzle. The website for this puzzle is long gone, the Twitter account has not been updated since 2011, there does not appear to be any solution anywhere on the internet. I was on my own.
-
Is it possible to use an inline svg referring to an external svg and have the stylesheet apply?
-
My experiment at adding the new multi-page view transitions to my train site
-
A personal summary of the past year, after reading a couple of others from friends
-
Details about my site that a copy of the official Post Office Inquiry transcripts and makes them available for display and searching, with a look at the technical behind-the-scenes
-
Someone asked if it was possible to show a question in a form I was making only if the answer to the previous question had been yes. I was beginning to reach for some straightforward JavaScript to spot a change in the first question and update the display of the second, when I thought to myself - could I do this now with CSS?
-
The list is smaller than you might think
-
Suggestions for local new station names and the borders involved
-
How I set up my 7-colour eInk screen with weather and public transport
-
A look at the various solutions we have found to our A-puzzle-a-day calendar
-
Brief history of my Local lockdown lookup tool
-
Working with split postcodes, including across the England/Scotland border
-
How to get the results of GitHub Actions in Catlight
-
I bought a Wondermark book at the end of May. It arrived July 3rd, and I thought I’d take you on its journey…
-
Exploring how much data the official coronavirus data website uses, compared to a version I made last weekend
-
Some notes on my submission to the 56th Perl weekly challenge
-
Details of planning a trip to Prague by train with choir this coming April
-
A personal summary of the past year, after reading a couple of others from friends
-
I spent a lot of time looking at ethical investment at the start of 2018, and finally got around to writing up a potted summary of what I did.
-
My trusty 2011 Macbook Air had started to show its age – a couple of missing keys, the fan being on pretty much all the time – so I looked for a replacement. After some tedious investigation, I settled upon a Dell XPS 9370 from their Outlet store. Windows 10 can run Linux now, so it seemed like an interesting thing to spend some time with, and if it all went sour I could always fully install Linux instead.
-
I run tests on Travis a lot, so would like notification of when they have finished running. However, I am allergic to things such as email and Slack notifiations, so I found another way.
-
It seems quite common for a web page to have at its end a footer in a different colour from the main page background. But is there an easy way of having the footer colour continue to the end of the browser window?
-
Viagogo are in the news again, so I took a quick look at their site. I saw that they are selling tickets for Janelle Monáe at the Manchester International Festival for £75 and up, even though tickets are still available from the official site at their face value of £35; but I also noticed something funny about their Please Wait pages.
-
I followed a link to one of those Guardian end-of-year quizzes on my phone (probably this one), and had answered a few questions before realising that it was working entirely without JavaScript (I have JavaScript disabled on my phone because a) it cuts out most of the ads, b) it cuts out lots of bandwidth and I have a limited data plan, and c) my battery lasts longer because it’s not processing tons of code to show me some text (cough, Medium)). I found this very impressive, well done whoever worked on that, and so I thought I would take a look at how exactly they did it.
-
On Twitter last week, Bruce Lawson asked people to write up their performance optimisations. I’ve had some bits of time to make some improvements to traintimes.org.uk, and so here is a short essay/notes (I don’t get much free time at present for various small-person-shaped reasons) on how this site is currently seven times quicker than the official site on a mobile.
-
The JavaScript on FixMyStreet has gradually evolved over many years (we launched in 2007, remember!), and while we were working on other features in this area (such as HTML5 History) it was a good opportunity to tidy up the JavaScript, making it clearer and simpler, which in turn improved the site’s performance. Below I’m going to go through most of the steps I took, not necessarily in the order I took them, which hopefully might prove useful to your own websites. And there are exciting pictures at the end, I promise!
-
FixMyStreet has been around for nearly nine years, letting people report things and optionally include a photo; the upshot of which is we currently have a 143GB collection of photographs of potholes, graffiti, dog poo, and much more. 🙂 For almost all that time, attaching a photo has been through HTML’s standard file input form; it works, but that’s about all you can say for it – it’s quite ugly and unfriendly. We have always wanted to improve this situation – we have a ticket in our ticketing system, Display thumbnail of photo before submitting it, that says it dates from 2012, and it was probably in our previous system even before that – but it never quite made it above other priorities, or when it was looked at, browser support just made it too tricky to consider.
-
[There is also a video of this post.] A few of mySociety’s developers are at DjangoCon Europe in Cardiff this week – do say hello 🙂 As a contribution to the conference, what follows is a technical look (with bunny GIFs) into an issue we had recently with serving large amounts of data in one of our Django-based projects, MapIt, how it was dealt with, and some ideas and suggestions for using streaming HTTP responses in your own projects.
-
Is it possible Scotland took two Bank Holidays that didn’t exist? Update: Yes!
-
This post explains how various aspects of the new FixMyStreet maps work, including how we supply our own OS StreetView tile server and how the maps work without JavaScript.
-
Dunder sat, glumly staring at the computer screen. “What’s up, Dunder?” asked Rudolph, entering the stable and shaking off the snow from his antlers. “Well,” Dunder replied, “I’ve just finished coding the new reindeer intranet Santa Claus asked me to do. You know how he likes to appear to be at the cutting edge, talking incessantly about Web 2.0, AJAX, rounded corners; he even spooked Comet recently by talking about him as if he were some pushy web server. “I’ve managed to keep him happy, whilst also keeping it usable, accessible, and gleaming — and I’m still on the back row of the sleigh! But anyway, given the elves will be the ones using the site, and they come from all over the world, the site is in multiple languages. Which is great, except when it comes to the preview JavaScript I’ve written for the reindeer order form. Here, have a look…”
-
Something that annoys me no end, and I realise there are probably more important things to get annoyed about, but do bear with me, are urban legends, specifically those concerning old laws of the UK.
-
Mostly historical now, as Mars label their products appropriately, but they didn’t use to.
Public Diffs
Potential drafts
- Impossible CSS layout
- Public Transport Outings
- Breakdown of a tweet HTML page
- Historic TheyWorkForYou
- Django patch names
- Converting my bots to polybot
- Train ticket machines
- Causing an international diplomatic incident with a bot
- Vagrancy Act repeal
- Radio 4 without Today
- How FixMyStreet lazy loads images
- Theatricalia lucky day
- Twitter to Voice and deleting your $HOME
- DjangoCon Europe 2015
- CSS puns
- Spacelog
- JustGiving’s poor custom drop-down
- Why years of viewport tutorials were wrong
- NXWM short hop
- 2017 review
- West Midlands public transport summary
- Twitpanto
- traintimes.org.uk as a Progressive Web App (well, millions of them)
- Only Connect Babs
- How I made the live schematic tube map
- Sarah & Duck upcoming
- A progressively enhanced slippy map
- Justified commits
- Pepys Shows
- Perl Plack template debug panel
- Bach.JS
- OTT Night Garden harmony
- Rails’ oldest open PR
- Slack away plus
- Google and infallability