Metachunk - metachunk.com

General Information:

Latest News:

Ghetto-fabulous inbound static IP with Heroku 8 Mar 2013 | 01:40 am

Last night I needed an inbound static IP for a small Rails app I'm running on Heroku. Having just setup a $5/mo Digital Ocean VPS I figured it might function as a cheap proxy server. A quick perusal o...

Ghetto-fabulous static IP with Heroku 8 Mar 2013 | 01:40 am

Last night I needed a static IP for a small Rails app I'm running on Heroku. It seems that the current practice is to pay $5/mo for the Proximo add on. This includes a whopping 250 connections and 10M...

Working with a legacy schema in Rails 3 - Part I 12 Dec 2012 | 09:23 pm

I’m currently working on a project where I need to build a Rails 3 interface around a legacy table. Freeradius running on Postgres to be specific. I’ve worked on a few projects where legacy tables nee...

Converting JSON to CSV using Methadone 16 Nov 2012 | 09:42 pm

I recently needed to convert some flat JSON data to CSV. I found a few command line scripts that offered this functionality but for whatever reason couldn't get the desired results. I had read about a...

Using ActiveAdmin to login as any user 13 Nov 2012 | 11:21 pm

As a way to provide support to end users, a client needed the ability to login to their rails app as a specific user. Luckily the project is using ActiveAdmin and Devise so adding this feature took le...

Where the Hell have you been? 8 Nov 2012 | 07:54 pm

tl;dr I quit configuring and now focus on crafting code. About 8 months ago I was working at my desk when it dawned on me, I was bored, really bored. It had nothing to do with my position or the amaz...

Converting a ruby string to a UUID 11 Apr 2012 | 06:53 am

Today I was working on some embedded flash video business (ugh). One of the requirements was converting a 36 character string into a UUID (sometimes referred to as a GUID). I could have hacked up a qu...

Rails 3.2 Controller Testing File Uploads using Rspec 7 Apr 2012 | 04:48 am

I needed to write a controller test that included a file attachment (the model uses Dragonfly). Below is how I structured the test. It took me a bit of googling to locate the exact syntax. The magic f...

Inserting HTML into a HAML template 13 Mar 2012 | 01:27 pm

This is more of a "note to self" post. I recently had a case where a Rails views helper was outputting raw HTML. I needed it to display within a HAML template. Rather than modify the helper to output ...

Scripting Simple Firewall Rules 4 Nov 2011 | 02:51 pm

One of the challenges of using a VPS or cloud service like EC2 is you are on your own when it comes to securing the server. One of the first line of defenses I typically use when provisioning a new bo...

Recently parsed news:

Recent searches: