Arriving at a location-independent work arrangement

Early in my career I was in a job that had me commuting close to three hours a day. I managed it by reading a lot, but it left me with very little personal time during the working week. Weekends were often spent getting ready for the week ahead. I went to work when everyone else went to work, came home when everyone else came home, went shopping when everyone else went shopping. Wherever I went was busy with people rushing to do the same things I needed to do.

Export a commit range to patch files

Today I found myself in a position where a Git repo I am contributing to was to going to have its history significantly altered. Sensitive information was to be completely removed from the repo, and when done the repo would basically be a single commit on the master branch, with all other branches deleted.

Yes we can, yes we cancan

cancan is an authentication gem for Rails. It can be used to restrict access to certain parts of your web-app based on classifications you give to your users.

Perl tidbit: array references

It can be useful to know the difference between \@a and [@a] for an array @a with regard to array references. Take a look at the little script below:

Knowledge Sharing Push and Pull

I often tell friends that I cannot listen to a book being read as an audiobook, but must read the words myself. I see this is pushing vs. pushing the book’s content: listening is the audio player pushing the words to me; reading is me pulling the words at my own pace.

tar

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[calum@calumlaptop ~]$ tar --help
Usage: tar [OPTION...] [FILE]...
GNU `tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.

Examples:
  tar -cf archive.tar foo bar  # Create archive.tar from files foo and bar.
...
...
[ Huge amount of help stuff...]
...
...
 Other options:

  -?, --help                 give this help list
      --restrict             disable use of some potentially harmful options
      --usage                give a short usage message
...

Becoming a Polyglot Programmer

[I’m referring to being a programmer who is comfortable using several languages here, rather than a system built with several different programming languages.]

Equality Check

1
if (' ABCD ' =~ / $c /) {

Witnessed by me today in some code I was refactoring.

[String changed to “ABCD” to hide any relation with the project in question.]