JT's Scribblings

a.k.a. a blog of some description.

Shiny stuff with SVG, part 2: Intro to filters

Friday October 26th 2012, at 2:33 pm

This is the second in my series of posts about making shiny things with SVG. The first focused on how to create linear and radial gradients. This one will be an introduction to filters and how to use them. I'm afraid there won't be many examples this time around, because there's a lot to say before reaching that point.

More →

Shiny stuff with SVG, part 1: Gradients

Thursday October 25th 2012, at 9:35 pm

Recently in my work at GoSquared I've been doing a lot of stuff with D3, a library primarily aimed at creating powerful data visualisations with SVG. As part of that, I've been learning a lot of cool stuff about creating shiny things using SVG filters and effects, so I thought I'd write some of it down. This is the first of a couple of posts describing how to use gradients and filter effects in SVG.

More →

PNG crushing script

Saturday October 20th 2012, at 8:47 pm

A quick and useful bash script for crushing all PNGs in a directory, useful for (for example) Heroku apps (like this site) which have a limit on slug size.

#!/usr/bin/env bash

for i in `find . -name '*.png' | grep -v node_modules`
  pngcrush -brute -reduce -rem alla "$i" "$i.tmp"
  rm "$i"
  mv "$i.tmp" "$i"
More →

New Site!

Wednesday September 19th 2012, at 8:00 pm

Woo, I have a new site!

So, I finally got bored trying to work with SquareSpace, and have gone and built this all from scratch with Node.JS and Express.js. It's still a bit of a work-in-progress, so things may change from time to time.

More →

The End of the Beginning

Friday June 29th 2012, at 1:14 am

Begin at the beginning, and go on till you come to the end: then stop.

— Lewis Carroll (Sorry, the Churchill quote was just a little too obvious).

This is not going to be an interesting or insightful blogpost. I just needed something more than a facebook status or a tweet. If one single person reads it all the way to the end, I'll count it as a win.

So it would appear I have reached the end. Of my academic career, that is. This morning I had the great pleasure of accepting my BA in Mathematics from The Lord Rees of Ludlow (OM, FRS, OMG etc.), which marked the end of my three years of study at Trinity College, Cambridge, and to (just under) seventeen years in the British education system. A lot of my friends from school may be surprised at the fact that I'm not further pursuing academia to a Master's, a PhD or beyond, but believe me: this is definitely the right time for me to call it a day (the maths here in Cambridge is really hard!).

And boy, has it been an incredible journey. I'll spare the details, but suffice it to say that I've changed more as a person in the last three years than I think anyone would have thought possible.

More →