Here’s a quick tip for keeping track which branch is for what in a git repo. Create a file called BRANCH-README in the repo root, and for each new branch include a summary describing what the the branch is for. Branch: bugfix-123-autherror Author: Craig Russell Date: Fri 18th Nov 2011…
I’ve been learning how to create a plugin in Ruby on Rails 3.1 and test it using RSpec. I haven’t been able to find a tutorial for this anywhere, so I’ll share what I’ve done here. First up, use rails to generate a new plugin.
I’ve been wanting to learn ruby and rails for a while now. But my previous efforts haven’t worked out well. These past few weeks I’ve committed to finally getting a reasonable grasp on this technology. I’ve used a few different resources and picked up a couple of tips en-route, which…
Recently, in my day job, a request came in for a single page site. The requesters wanted to edit the content of the site without worrying about the style of the page. The solution we went with utilised our existing CMS system, but nevertheless I felt my developer itch needing…
Git is lovely. You know this. Here’s another bit of Gitty loveliness for you: Custom Config Parameters. The primary configuration file in Git is found in .git/config. In here are the configuration parameters for your repository. Git provides a tool to manage this file – git config. Handily this tool…
I don’t often cross post between blogs, but for this one I’ll make an exception. I keep a blog about authentication and authorisation as part of my day job looking after the identity management system at De Montfort University. I recently wrote about how most passwords we use are easy…
This article from NetTuts explains the basics of configuring the command prompt on Linux and Mac. It includes the great idea of displaying the current Git branch in the prompt. However, their method makes use of the vcprompt package, which has to be compiled and installed. A worthwhile exercise, but…
Using non-standard libraries and classes in Java can be a pain. you can spend hours tearing you hair out over compilation errors like this, while screaming “WHY CAN’T YOU SEE THE FILES!!!” at your PC. JsonTest1.java:9: package net.sf.json does not exist Java uses a global variable (accessible to everything on…