So, so dry

[Permalink]     blog code

IPv6

I'd been meaning to configure offend.me.uk for IPv6 for a while now and decided to actually do. Somehow, without really intending it, I did it on world IPv6 day :)

If you need to check you have ipv6 working correctly, you can try visiting ipv6.offend.me.uk.

Graphs

Something I've noticed over several years of being involved in web development (directly or indirectly) is that libraries for drawing graphs all suck. A lot. None of them do the things I want in any kind of sensible way.

So what did I do?

I went and wrote one too. It probably sucks as well. You can take a look here.

The features I wanted are:

  • Ability to plot points based on [x,y] coords and not require all points to be present in my data
  • i.e. I wanted to be able to supply data with gaps in it, like [[0, 1], [1, 1], [7, 1]] to plot a "1" at locations 0, 1, and 7
  • Take data in the format [1, 3, 2, 5, 6] and treat it as [[0, 1], [1, 3], [2, 2], [3, 5], [4, 6]]
  • i.e. make life easy for common cases
  • Magically work out how many grid lines would be sensible to draw
  • Draw labels on those axes
  • Either numbers
  • or from an array I supply to map those numbers to names
  • or from a function I pass in
  • Be easy to theme
  • On a similar note, set sensible default colours no matter how many data series I have
  • Scale nicely to any size

What I've written does all those. It's not the most amazing looking thing ever but, ffs, it's as pretty as others I've used and it's a damn sight easy to work with.

</rantcode>

Contacts

If I wear my contacts for a few hours while coding, they get really dry and I have to take a break. Does anyone else get that? It's like some sort of devious mechanism from health and safety to ensure that I take screen breaks.

It also means I wear my glasses for work more than I intended.

  Gruff   code inactive other web   Things I've written recently   blog code   require("child_process");   blog   JZON   code inactive other web   Wyrm   code games games inactive   Picture Puzzle   code games games inactive   Zoomsite   code inactive other web   Rotate4   code games games inactive   Lines   code games games inactive   BreakIn   code games games inactive   nosef   code inactive javascript server server   Scary stuff   blog   Primes   blog   Hokey Cokey   blog   Web terminal lense book   blog   Strange lunch break   blog   Obfuna   code inactive other programming   Markdown   blog   ploxy   code command line inactive server server   miniserv   code command line inactive server server   Gnowt   code inactive other web   dmenu-notify   code desktop inactive other   Violining a contemptible fellow   blog code git   Break In!   blog games   xmodmap Hints and Tips   blog linux   Black Jack - pick up seven!   blog games   My favourite spoonerisms   words   Good things that have happened in the past week   blog   Good times with git   blog git   It's all Geek to me   blog   Javascript Closures   blog code javascript   Waffle. Move along.   blog   Things I learned today   blog   Hey, at least I'm not rioting   blog   HTML5 and holidays   blog holiday   Blah, cold. Do not want.   blog   Worst.Landlord.Ever   blog   Wheeee   blog   First!!1!one!!eleven   blog