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!
March 26th, 2017 duckworth Posted in AWS, Serverless Comments Off on Serverless DC meetup
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!
March 27th, 2015 duckworth Posted in Chef, Code, Ruby No Comments »
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.
September 10th, 2013 duckworth Posted in Code, Java No Comments »
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 https://github.com/duckworth/kiji-schema-migrations
January 20th, 2011 duckworth Posted in OSX, Ruby Comments Off on Connecting rails 3 to Sql Server 2008 on a mac
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.
November 10th, 2010 duckworth Posted in C#, Code, Home Comments Off on Optimizing Dynamic 8-bit PNG’s in C# and ASP.NET MVC
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 →