Slide to the left

Github has recently made some small changes to how you comment on pull requests. The button to add a comment is now between the line number gutter and the code and when the form opens it’s aligned with the leftmost edge of the line number columns.

Read More →

Author's profile picture Harry Mills

Regular Expressions - \z and \Z

I recently discovered that \z and \Z (which match the end of the input) have subtly different behaviour (this is in Ruby but it behaves the same in most languages other than Python for some reason).

Read More →

Author's profile picture Harry Mills

Git grep and gitattributes

Git has a grep ability. It’s way faster than grep and ignores stuff in the .git directory that you probably weren’t looking for anyway. This git grep command takes a -p argument that shows the method or class the matched lines are in.

Read More →

Author's profile picture Harry Mills

The accepts_nested_attributes_for Handbook

Rails has accepts_nested_attributes_for which helps when building forms that combine a parent and their related models. Unfortunately, I normally get it wrong and spend far too long tracking down why it isn’t working. Hopefully this will help reduce that time in future.

Read More →

Author's profile picture Harry Mills

Unchecking Trello Cards

I use Trello quite a lot at work and one feature that’s always been quite handy is the checklists you can add to cards. Unfortunately, sometimes these lists get quite long and if you ever need to uncheck them all it can take a while.

Read More →

Author's profile picture Harry Mills

O Tannenbaum

Today was the day of the Christmas tree. After a trek around town to all the places that weren’t selling trees we finally made it to Holy Corner where we purchased a delightful little tree complete with a little log stand. We then hauled the tree home down the hill.

Read More →

Author's profile picture Harry Mills

Ghost

So as probably nobody has noticed I’ve switched over to using Ghost to run my blog. I imported all my old posts because hey, then I have content even if it is really old and largely irrelevant.

Read More →

Author's profile picture Harry Mills

Final Year Project

I’m warning you all in advance, I’m using this category to post completely irrational rant posts about my final year project. Inevitably there are going to be times when I’m bashing at something for ages and then find it’s just one simple thing I’d overlooked or one weirdness in how the code is done that I’d missed. For these times, this is the place I’m going to vent.

Read More →

Author's profile picture Harry Mills

Free CS Course Texts

During my studies at the University of York I’ve found or been recommended various computer science textbooks that are available online. Since I got bored of looking through my history to find them again I’ve compiled them into a list here. I’ll try to keep it up to date.

Read More →

Author's profile picture Harry Mills

The Death of RSS?

So I recently read an article about the death of RSS after Martin Pickett linked to it on Twitter. It’s an interesting article and one I pretty much agree wholeheartedly with but a few things came to mind while reading it.

Read More →

Author's profile picture Harry Mills

What have Google done now?

Gah. My eyes. They hurt! Seriously Google, get rid of it. Nobody likes it and it’s hell for usability. How Marissa Mayer can post about being excited about this “feature” and still keep some claim to being responsible for user experience is beyond me.

Read More →

Author's profile picture Harry Mills

CLI Samba - Because I ALWAYS Forget How

I always forget how to copy files easily over the network using Samba so now I’ve just worked it out again for the umpteenth time I’ll record it here.

Read More →

Author's profile picture Harry Mills

How Much Free Space?

I have several hard drives and when times are hard and space is scarce I often need to work out how much space I have left to stash random crap in. Now I could look at the output of df -h and do some fairly basic mental arithmetic and come to a reasonable conclusion. Alternatively I could use my super handy shell script I just wrote.

Read More →

Author's profile picture Harry Mills

Baldur's Gate II installer error 0x80040707

While installing Baldur’s Gate II in Linux using WINE the installer threw error 0x80040707 right at the end of the InstallShield preparing to install step. It turned out it was being caused by one of the folders referenced in the registry not actually existing.

Read More →

Author's profile picture Harry Mills

Decrepit Drupal and Primeval PHP

A few days ago I got a call from a charity I had done some web development work for in the past saying they couldn’t log in to their Drupal powered website. After checking the permissions in the database and on the files I tracked the problem down with the help of the Drupal FAQs. Turns out an old version of Drupal on a new version of PHP was causing problems.

Read More →

Author's profile picture Harry Mills