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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.