GIF screencasts (Ubuntu)

To record short screencasts on Ubuntu I use byzanz. Byzanz is a desktop recorder and command line tool allowing you to record your current desktop or parts of it to an animated GIF, Ogg Theora, Flash or WebM. To install: sudo apt-get install byzanz To use: byzanz-record --duration=10 --x=…

Read full post

Improving battery life on a ThinkPad (Linux)

I recently purchased a ThinkPad X1 Carbon laptop. My OS choice is Linux and Ubuntu 14.04 works flawlessly on this particular laptop. For a quick win when trying to get the most battery life out of a full charge install TLP. TLP brings you the benefits of advanced power…

Read full post

Unapply a stash in Git

Using Git and just applied the wrong stash? No worries, the following will help you. Unapply the last stash: → git stash show -p | git apply -R Unapply a specific stash: e.g. 0 in this case → git stash show -p stash@{0} | git apply -R…

Read full post

Find process by port number

My tmux session crashed, including a local server instance I was running. Now when I try to restart the server I get an error saying it's still running? How do I kill it? You probably already know what port you were using, so find what's listening on that port, collect…

Read full post

User Interface Algorithms

Even something as simple as a dropdown menu or a bar graph can introduce usability problems. From a slide out menu disappearing when a user's mouse moves a few pixels too far, to requiring NASA-like levels of precision to mouse over the right element, there are algorithms already implemented in…

Read full post

Enabling Source Maps in Chrome

Update: Google have now compiled a solid walkthrough that can be see here: Debugging JavaScript - Source Maps I've seen a couple of posts about enabling source map support, but never actually got it up and running. Below are the steps that I took to achieve this. I use Google…

Read full post