HELLO, THIS IS

DAN

I ARCHITECT PRAGMATIC AND BEAUTIFUL SOFTWARE.

The Joys of reinstalling RBENV (read: Where the f*** did all my diskspace go?!)


Like many developers running on Macbooks, the dreaded “You’re low on disk space” error haunts my daily worklife. How on earth could text files, chat logs, and memes be taking up the majority of my 512GB SSD? Well, the answer surprised me. I ran Disk Inventory X (http://www.derlien.com/), a great tool for seeing where your HD space is going, and I found that nearly 40GB of space was taken up by my ~/.rbenv directory.

Seriously. 40GB.

So, I did the right thing, and deleted it. I reran a brew install rbenv, then a rbenv install 2.2.3. I navigated over to my main work directory, installed the bundler gem, and then ran the usual bundle install. The new size of my ~/.rbenv dir? A much more sane 1.17GB. That’s 3% my original .rbenv size. Yeah, that’s still big, but Ruby projects are what I do for a living. What’cha gonna do.

I’ve started looking at projects that emulated rvms awesome implementation for per-project gemsets (https://github.com/jf/rbenv-gemset, for example), but haven’t dug much in to it yet. For the time being, I have a script I’ve written that will delete the versions of gems no longer used nor depended on by my projects in addition to automatically clipping my log files (especially test.log, sheesh) on a regular basis. I’ll let you know how the gemset stuff works out.

Got any other tips about stuff that’s blowing up your disk? Let me know in the comments and I’ll append them to this post sourcing you! Free disk space for all!

Comments

High performance APIs in Ruby using ActiveRecord and Goliath


I spoke at RailsConf this year on architecting and deploying high-performance and high-availability APIs in Ruby using ActiveRecord and Goliath! Check out the presentation below; any and all feedback is appreciated.


Comments

Elixir, the first steps


I’ve spent the last few days playing with Elixir-Lang, which is a Ruby-like language built on top of the Erlang VM. While I’m still very much learning a few resources have been absolutely essential to my progress:

  1. Programming Elixir by Dave Thomas

    This will undoubtedly become the Pickaxe for Elixir. While the book is in beta, it’s up to date with the Elixir 1.0.0 release. Per his other books, Thomas excitedly guides the reader through the awesomeness of Elixir. Worth picking up for anyone interested in Elixir.

  2. All Aboard the Elixir Express by Chris McCord @ RailsConf 2014

    Chris ran a 5 hour(!) demo workshop at RailsConf this last year in Chicago that really caught my eye. In just a few hours, we had everyone’s machines working together to scrape Twitter. Fucking impressive for just a few hours of work.

  3. Elixir Sips

    A la the now defunct RailsCasts, Josh Adams releases several videos a week where he walks the viewer through a small part of the Elixir language. These tutorials are excellent, although many of his earlier ones no longer work with the latest release of Elixir. He has (in comments on his site) plans to rerecord many of the early episodes now that 1.0.0 has been released.

  4. #elixir-lang on Freenode

    Great community, getting bigger every day. Best place to ask questions since most of the core contribures are idling in the room.

I’ll keep posting as I find more. What have been the most useful resources for you while learning Elixir?


TL;DR brew install elixir

Comments

Good Reads (8/5/2014)


Week two of the concussion passes me by.


  1. Richochet - “[TOR-based] Anonymous and serverless instant messaging that just works”

    Ricochet is an experiment with a different kind of instant messaging that doesn’t trust anyone with your identity, your contact list, or your communications. Runs over TOR, looks interesting. As always, don’t use it until someone has done a reasonable security audit.

  2. Operation Torpedo - The FBI is using malware to track TOR users.

    “OH MY GOD! HOW DARE THEY!”, exclaimed no one. Notably, this Wired article might have totally ripped off this dude’s research.

  3. Game Changer - Bitcoin research at the Federal Reserve and how I’ve lost my job.

    Fascinating read on how the US government is working with newly-emerging crypto-currencies.


Late add:

  1. BitPost - “[U]ser friendly interface to Bitmessage”

Cool OSX UI wrapper for BitMessage, an anonymous, decentralized chat system.

Comments

Install oh-my-zsh on Ubuntu 14.04


0h-my-zsh is basically the best thing that’s happened since ZSH, which is the best thing that’s happened since vim.

sudo apt-get install zsh
sudo apt-get install git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s `which zsh`

Logout, login, and you’re set!

Comments


All 7 posts

Recent Work

Who am I?

Profile