Deploying a Scalatra App to Elastic Beanstalk via Codeship

I’ve recently started using Codeship – a cloud based Continuous Integration and Deployment environment – for a “Just for fun” project I needed to deploy to AWS, specifically to Elastic Beanstalk. At the time of this writing, there were no AWS plugins available on Codeship to make this deployment possible but, thanks to one of their Engineers (thanks you Florian), I was able to make it happen using the “Custom Script” option on Codeship, and the “ebs_deploy” tool by Brian Dilley.
Continue reading “Deploying a Scalatra App to Elastic Beanstalk via Codeship”

Deploying a Scalatra App to Elastic Beanstalk via Codeship

Git rpc failed with http code 411

Twice in the last 2 weeks I’ve faced an annoying size limit issue when pushing to an https Git repository.

Counting objects: 2935, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2570/2570), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (2933/2933), 3.44 MiB | 955.00 KiB/s, done.
Total 2933 (delta 1205), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly

The fix is quite simple: open .git/config on your project’s root directory and add the [http] section below:

Git rpc failed with http code 411

Plans for 2014

(image from http://www.sword-buyers-guide.com)

2013 has been a long and tumultuous year, filled with success and failures in and outside of work. While I have reached a lot of the goals I had set for myself for that year, I am still so far away from my long term goals and have done too little to get there. So this year, I plan on working harder to get myself a lot closer to my long term goals.

Expect a lot more blog posts, not all of them purely code/tech related. I have to really get into OSS as I havent done much of it last year. I also need to add a few valuable certifications to my belt and diversify my technical investments. Let’s see how it goes.

Aside

Quick tutorial on Casbah, Scala’s MongoDB driver

(image from http://www.digitalcraftstudios.com)

For the past couple of months I have been playing with Scala, Casbah (Scala’s MongoDB driver) and Salat (a serialization library for json and bison).

For the most part, it’s been a fun experience, although the documentation on Casbah is not as great as I would have hoped. A guide does exists, but is not exhaustive. If like me you find yourself spending quite a bit of time looking for things not contained in it, here are some code snippets and I hope can act as a tutorial of sort on how to perform certain operations using Casbah.

Continue reading “Quick tutorial on Casbah, Scala’s MongoDB driver”

Quick tutorial on Casbah, Scala’s MongoDB driver

ServiceStack extensibility using MEF

A while back, I had started playing with the Managed Extensibility Framework (MEF) from Big Mike – an extensibility framework that lets you discover components that implements your interface, thus allowing you to do Software Composition. For close to a year now, I have also been playing with ServiceStack – a clean and elegant Open Source solution for Web Services.

I’ve wondered for quite a while now if the two could be combined, i.e. if it was possible to do Service Composition by using MEF and ServiceStack. I figured it could be done, but could never find the time to verify my assumptions…until now.

Continue reading “ServiceStack extensibility using MEF”

ServiceStack extensibility using MEF