Monthly Archives: August 2014

Ruby Rogues Code Reading – Dotenv

Ruby Rogues Code Reading

A nice code reading session on dotenv by ruby rogues.

dotenv is an environment variable loader for ruby. It’s a simple library, but there’re some edge cases around parsing and loading setting from the .env file, and resulted in a good session about some good ruby techniques.

It talks about

  • difference between protected and private
  • enumerator behaviors with inject and each_with_object method
  • composing complex regexes with multiple sections and recursions
  • parsing quoted and unquoted variables in the .env file


Looking for another session.

Elixir + OAuth 2.0 Client

I was trying to playing around Google’s BigQuery, but couldn’t make it work around OAuth 2.0 authentication with Elixir.
It provides limited functionalities yet, but the above oauth2ex provides some authentication features with some OAuth 2.0 providers like Google, GitHub and Dropbox.

Using OAuth 2.0 to Access Google APIs has detailed explanation, and it’s pretty much complex. There’re a lot too learn around authentication technologies.

Elixir + Heroku Button

Introducing Heroku Button

Heroku recently announced “Deploy to Heroku” button. I just tried it out with spawn_viewer, which is a simple application built with elixir + phoenix. If you’ve already set-up heroku account, the following button would work.


Also, I’ve placed a link to the github readme too.

It’s pretty much an easy way to try out an application without messing up with local environment.

Watching – “Virtual Machines, JavaScript and Assembler” – Fluent 2014 Keynote

Scott Hanselman, “Virtual Machines, JavaScript and Assembler” – Fluent 2014 Keynote

It was one of the funniest presentation I’ve watched. The computing world has been drastically changed, through Web and Cloud. There’re a lot of funny stories around, and they’re well narrated.

AWS Elastic Beanstalk and Cloud Orchestrations Services

AWS Elastic Beanstalk and Docker by Evan Brown (AWS)

Nice presentation about AWS Elastic Beanstalk, which I didn’t know much about it. As also indicated in the official site, it’s intended to easily deploy applications on AWS, and built on top of various AWS services like EC2, S3, ELB, etc. Then it now supports docker containers as application packages.

After the docker gained popularity, many of the cloud services are supporting features to deploy docker-container packages. Then the orchestration services like Elastic Beankstalk on AWS or Kubernetes on Google Cloud Services are gaining attention.

Also the new tool like Terraform is trying to provide a standard method of orchestrating cloud infrastructure, which can span across different service providers. Even though the Vagrant was providing common functionality to spin-up VMs on various cloud services through plugins, it was mostly about just setting up single VM. Terraform is more on defining the entire infrastructure.

Though AWS had been leading the cloud service solutions, the may be some interesting competitions in the coming years.