TIL: Symbol to Proc Trick not needed in Ruby Inject/Reduce 2.0.0
13 Nov 2013If you’ve been using Ruby for some time no doubt you’ve done something like this to sum up an array of integers:
If you’ve been using Ruby for some time no doubt you’ve done something like this to sum up an array of integers:
Last year I held a series of non credit Rails courses for University of Texas Students, i’m happy to announce that i’ve been granted an Adjunct Professor position at the UT and I’m teaching a for credit course in Databases and Rails. Lucky for you, i’m a sucker for online learning, so i’ll be putting all my course material online, right here.
Last year I held a series of non credit Rails courses for University of Texas Students, I’m happy to announce that I’ve been granted an Adjunct Professor position at the UT and I’m teaching a for credit course in Databases and Rails. Lucky for you, I’m a sucker for online learning, so I’ll be putting all my course material online, right here.
Heroku compiles your app without environment variables. This is all well and good, but how do you debug a problem that only shows up when an environment variable is missing? Not just set to an empty string "".
I got this question awhile ago and answered in Gist form. I recently stumbled on my answer and thought it was worth sharing, so here you go:
If you’re using Wicked, the easy way to build step-by-step wizards in your Rails code please update to Wicked version 1.0.1 immediately a serious security bug was patched. If you do not upgrade, an attacker may be able to view arbitrary files on your server.
If you aren’t massively in love with Explain Shell then you’ve not been on the internet today (or at least following the same people I do on twitter). It’s an easy way to see what a unix command does from a web interface. The web interface is great, but wouldn’t it be cool if you could open it from your command line? If someone gave you a command like tar xzvf archive.tar.gz it would be amazing to be able to run:
Don’t pump and dump information on your readers: build better community and better view numbers by following the Prepare, Do, Test pattern.
Travis has a great feature of being able to install gems using a custom Gemfile path. This lets you do things like test against multiple versions of Rails very easily. A project that uses this is sprockets-rails.