Andrewberls - andrewberls.com - Andrew Berls

Latest News:

Visualizing your bash history with d3.js 31 Jul 2013 | 12:01 pm

I spent the last weekend diving into the world of d3.js, investigating it for a potential project for work. d3 is a framework for manipulating 'data-driven documents', and provides an incredibly power...

JavaScript tricks: Enforcing function arity 27 May 2013 | 01:16 am

I was browsing through the source code of the JavaScript driver for RethinkDB the other day, and I came across a clever pattern that was too good not to write about. RethinkDB is an open-source JSON d...

Ruby tips: Procs vs lambdas 15 May 2013 | 01:58 am

I recently ran into a Ruby subtlety that I had heard of but never encountered before, regarding the use of the return keyword within blocks. Let's jump right into an example. Let's say you have an arr...

Faking keyword arguments in Ruby 9 May 2013 | 10:56 pm

With the official release of Ruby 2.0, there have been a myriad of posts about all of its shiny new features. Of those, my personal favorite is the addition of keyword arguments. This is essentially b...

Git tricks: Unstaging files 6 May 2013 | 06:36 am

This post dives a bit into the git reset command. If you want to jump straight to the good stuff, click here. I wanted to share a handy alias I use for removing files from the staging area in git. Of...

Naked asterisk parameters in Ruby 10 Apr 2013 | 11:14 pm

I came across a Ruby idiom I hadn't seen before browing through some of the Rails source the other day. Specifically, the method in question looked like this: I've never seen the asterisk as a parame...

A gem for managing your code notes 15 Jan 2013 | 02:47 am

I just released my first gem to the world, a little command line tool for managing source code annotations. I found myself constantly scattering little notes such as TODO, OPTIMIZE, etc into my code c...

Winter Break - A Reading List 10 Dec 2012 | 10:31 pm

Winter break is coming up fast, meaning I have a few weeks of rare free time. I want to use the time to learn as much as possible about topics I don't consider myself strong in. I've put together a li...

Intuitive Design 24 Oct 2012 | 07:51 am

I'm not sure when this happened, but the new (ish?) bit.ly homepage is not at all one that I would expect from a URL shortening service. The box to actually shorten a link is small and tucked to the s...

Adding SFTP support to cURL 15 Oct 2012 | 09:49 am

I was surprised today to find out that [cURL](http://curl.haxx.se/) does not have SFTP support built in. I ran into the issue trying to get set up with René Moser's awesome [git-ftp](https://github.co...

Recently parsed news:

Recent searches: