Category: Work

  • Wrong side of bed

    I started the day in a terrifically bad mood. Waking at seven after a difficult night’s sleep (La Serpienta Negra discovering a talent for banging her head on the walls of her crib) I saw a message asking if I could reschedule a meeting I was meant to have at eight thirty, for seven a.m.…

  • Salad and SQL

    This afternoon, my manager asked me what I would do, if I had to make a choice between salad and SQL. This is obviously a difficult question to answer, given that one option is a (nominally) healthy choice of food, and the other is a set of imperatives, used to manipulate things in a database.

  • Running between things

    This morning I went out and put in a hard run; I had an invite to a track session last night and couldn’t make it, so I tried doing it on my own around Marina Bay. Afterwards, I was quite glad not to have been at the track.

  • New Year New Lion

    Today we had a lion dance at our office; Chinese New Year never seems to end, but although it’s earsplittingly loud, we get oranges doled out to us at seemingly random intervals, which softens the pain.

  • More spreadsheets, spreadsheets, spreadsheets

    It’s been a few weeks since I started playing around with Google Spreadsheets, as an alternative to Microsoft Excel. What’s odd is how, when Google is about all things touch screen, and Microsoft’s heritage is in computers with real keyboards and mice, that Excel feels more suitable for a touchscreen. ‘Twasn’t always so.

  • Using a window function in SQL to find the shortest viable data period for multiple items

    I have a large table of data, and the important columns for me are the clickdate, productid and clickcost columns. The cost represents how much I’ve spent on marketing the product. I want to look at every product once it’s had a cost of at least $50. (Before then, there’s not enough data for me…

  • In The Mouth Of Meetings

    My dentist told me,I had to floss; until this year, this was something I only ever did in the most half-hearted way, but now, growing older and more aware of my impending obsolescence, I finally began in earnest. It’s strange; I didn’t feel as though it made much of a difference, but when I failed…

  • The joy of spreadsheets

    All my life, it seems I’m staring at spreadsheets. Mostly, that means Microsoft Excel. In 2007 Microsoft radically changed the appearance and menus of Excel (cue much wailing and gnashing of teeth) and I began to wonder if I should use something else. Familarity breeds contempt, after all. Conversely, lots of people who use one…

  • Head down and focused

    I didn’t feel completely ship-shape this morning, but after I’d got to work, drunk some coffee and been productive, I felt a lot better. I’ve been working on a mathematical problem that is actually quite simple, until you try to build it in a database and find what people expected was a whole lot more…

  • A way to avoid some carelessness with postgres

    Part of my day job involves loading data from lots of different files into a database, and one way this can go horribly wrong is if I attempt to load the same file twice. Either the database will get mad at me because I’ll be trying to violate referential integrity, or my end users will…