Serverless DC meetup

March 26th, 2017 by duckworth

I will be presenting a talk at the ServerlessDC meetup next Thursday, March 30. I will be talking about the Serverless framework and using AWS Kinesis, Elasticache and Lambda. Sign up and see you there!

Posted in AWS, Serverless | Comments Off on Serverless DC meetup

PSA: Running chef-client with override-runlist won’t use role attributes

March 27th, 2015 by duckworth

Spent a few hours trying to figure this one out. If you are running chef-client with -o (override-runlist) it won’t pick up attributes defined in a role. E.g.

sudo chef-client -o some_cookbook::some_recipe

Finally stumbled across a comment to this question on Stack Overflow where someone else must have been banging thier head against the wall trying to figure out why their recipe wasn’t working as expected.

Just for a reference here is a link to the docs which don’t mention anything about it.

Posted in Chef, Code, Ruby | No Comments »

Automating Kiji Schema Changes

September 10th, 2013 by duckworth

We had a need to automate the deployment of our Kiji schema changes as part of our automated deployment process. With the new DDL based Kiji schema definitions it was fairly easy to put together a quick and dirty Rails style migration framework to store the latest schema version and run any DDL statements that haven’t been run. It is currently only supports forward only migrations (no rollback) and is built as a maven plugin.

You can explicitly invoke the plugin by running one of the following goals:

mvn kiji-schema-migrations:generate -DmigrationName=A_Lot_Of_Changes

mvn kiji-schema-migrations:migrate

mvn kiji-schema-migrations:reset

Project is here

Posted in Code, Java | No Comments » | Tags: , , ,

Connecting rails 3 to Sql Server 2008 on a mac

January 20th, 2011 by duckworth

I am writing this to document the steps I had to take to get a Rails 3 app to connect to an existing Sql 2008 Server using ActiveRecord. I have an existing database that the rails app needs to pull data from and I am developing locally on a mac. It is pieced together from several other HOWTO’s and a bunch of trial and error.
The dependancies to make all of this work are unixodbc, FreeTDS, ruby-odbc and activerecord-sqlserver-adapter.

Continue Reading->

Posted in OSX, Ruby | Comments Off on Connecting rails 3 to Sql Server 2008 on a mac

Optimizing Dynamic 8-bit PNG’s in C# and ASP.NET MVC

November 10th, 2010 by duckworth

Programmatically generating images to be served real-time over the web can be useful for many scenarios, such as CAPTCHA’s, watermarks, thumbnail generation, or complicated layouts and effects… Continue reading →

Posted in C#, Code, Home | Comments Off on Optimizing Dynamic 8-bit PNG’s in C# and ASP.NET MVC | Tags: , ,