Erik's Engineering

something alliterative

Almost every app seems to need background processing. In ruby, I think sidekiq is the best system for doing this. As your system grows you need to start paying attention to how your organize your sidekiq jobs. I walk through some progressively more complicated setups.

Published on 07/08/2016 at 13h35 under , . Tags ,

You can configure guard to remember relationships between test files, so you never forget to run all the relevant tests after a change.

Published on 08/08/2013 at 13h07 under , . Tags , , ,

I'm not sure why this didn't occur to me sooner.  Most folks customize their irbrc file with tools to add features.  Why not use it to add helpers for things you do all the time?  I find myself loading up an example user record all the time, so I ginned up the following and stuck it in my .irbrc

It's a bit more convoluted than you'd normally expect, but by dancing around the subject a bit I made it so that this will compile just fine even if User isn't defined or doesn't support find_by_email.  I don't want irb/console to refuse to start because something isn't defined.

I just thought of this, so I'm not sure where it's going yet.  I'm going to be looking out for other opportunities to do this and thinking about how I might make it easier.  Perhaps a gem that would recognize if you were doing a Rails console session and load an application-specific irb helper file?

Published on 20/08/2011 at 16h14 under , . Tags ,

I released a side project last weekend and it was featured on the front page of Slashdot on Monday.

Published on 23/12/2010 at 17h10 under , . Tags , , ,

I walk through the steps to create a new Rails app, using Ruby 1.9, Rails 3, Rspec and Cucumber.

Published on 11/09/2010 at 13h59 under , . Tags , , , ,

So you're at work, building an awesome rails app for your coworkers to use. Then someone says "can you make it so people can log in with their Windows credentials?" That means ActiveDirectory integration.

Published on 22/05/2010 at 14h26 under . Tags , ,

A very brief introduction to using RabbitMQ with Carrot to send data between processes asynchronously.

Published on 15/05/2010 at 13h44 under , . Tags , , , ,

I wanted to add a nice AJAXified page to display the most recent temperatures from around the house. I walk through the steps involved. This post is longer than the code by a large margin.

Published on 14/03/2010 at 14h32 under , . Tags , , ,

Setting up a new laptop, I ran into problems getting Postgres and ruby-serialport to play nicely with Ruby 1.9.1.

Published on 07/02/2010 at 00h43 under . Tags ,

To help work out some climate control issues around my house, I designed a custom sensor platform that reports back to my server and lets me see how the temperature in different parts of the house is interrelated. This post introduces the project.

Published on 30/01/2010 at 21h16 under . Tags , , , , , , ,

Powered by Typo – Thème Frédéric de Villamil | Photo Glenn