Aaron Blohowiak

Transitive.io, Redis, Node.js, JRuby, Ruby on Rails

  • dxdt Server Monitoring
  • Transitive Realtime Web Framework
  • Xitive Inc
  • Twitter
  • GitHub

Nginx, Passenger and Rails -- a high-level overview

  • Edit
  • Delete
  • Tags
  • Autopost

One of my friends is somewhat new to Rails, and certainly new to rails deployment.  He was a bit unclear about what role the different parts of the rails deployment stack (Nginx, passenger and rails)  were in serving the request, so I wrote up the following and figured...

read more →
  • 0 responses
  • Like
  • Comment

How to Kill the process listening on a specific port

  • Edit
  • Delete
  • Tags
  • Autopost

When developing a service-oriented architecture, we may run into a situation where we want to kill the process that is listening on a given port. Sometimes, you can accomplish this with the wonderful pkill utility, for instance if there is only one process with that...

read more →
  • 1 response
  • Like
  • Comment

Setting up SSL, HSTS and an http -> https redirect with node.

  • Edit
  • Delete
  • Tags
  • Autopost

Step 1: Generate your SSL key and certificate signing request: Note: you'll have to put the domain name in as the "common name". openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.csr Step 2: Get your certificate Log into GoDaddy...

read more →
  • 1 response
  • Like
  • Comment

Meta-Programming in JavaScript

  • Edit
  • Delete
  • Tags
  • Autopost

tl;dr: meta-programming in javascript is just called “programming” because the methods used are familiar and used for non-meta-programming tasks, unlike ruby which requires a large set of specialized knowledge that is only used within the task of meta-programming.  ...

read more →
  • 0 responses
  • Like
  • Comment

Create a new git repo from a subdirectory

  • Edit
  • Delete
  • Tags
  • Autopost

I started a project (repo/) with a number of subdirectories: repo/ web/ ingester/ bulkendpoint/ doc/ ... This worked fine in the beginning, but then I wanted to be able to branch, merge and deploy just the "web" subdirectory. It took a good 10 minutes of man pages...

read more →
  • 0 responses
  • Like
  • Comment

Git, OpenSSL, Node.js and npm on Slicehost and Ubuntu 10.04

  • Edit
  • Delete
  • Tags
  • Autopost

Copy and paste the following into your terminal: sudo su apt-get install -y gcc g++ git-core libssl-dev curl -lO https://raw.github.com/isaacs/nave/master/nave.sh chmod +x nave.sh ./nave.sh usemain 0.4.11 curl http://npmjs.org/install.sh | sh After you authenticate...

read more →
  • 1 response
  • Like
  • Comment

How to save breakpoints and display expressions in ruby-debug

  • Edit
  • Delete
  • Tags
  • Autopost

Use ruby-debug 0.10.3; the newer 0.10.4 has a bug that breaks this gem install ruby-debug -v=0.10.3 Someone on the SF Ruby mailing list asked about how to save breakpoints with ruby-debug, so I made a quick video on how to do it. No editing, one take..

read more →
  • 0 responses
  • Like
  • Comment

Rails Maintainability Metric

  • Edit
  • Delete
  • Tags
  • Autopost

grep -ir "eval\|method_missing\|define_method\|instance_variable_set" app lib/  | wc -l   A score in the double digits should give pause, the tripple digits are scary and quadruple digits? run for the hills.

read more →
  • 2 responses
  • Like
  • Comment

Amazon EC2 Cost per GB of RAM

  • Edit
  • Delete
  • Tags
  • Autopost

Working on a project for a client, I wanted to know what the most $-efficient way to keep stuff in ram on EC2-east. These boxes will only have traffic within the AZ, so there were no bandwidth costs.  I compared On-Demand prices with Reserved prices (assuming 1 year commitment...

read more →
  • 0 responses
  • Like
  • Comment
« Previous 1 2 3 4 Next »
Posterous theme by Cory Watilo

Aaron Blohowiak

Aaron Blohowiak


Subscribe...

Subscribe to this Posterous
Unsubscribe
Subscribe via RSS
You're a contributor here (Edit)
This is your Space (Edit)
Follow by email »
Get the latest updates in your email box automatically.

Archive

2011 (23)
November (1)
October (5)
September (1)
August (1)
June (2)
May (4)
April (2)
March (1)
January (6)
2010 (9)
October (2)
September (1)
August (2)
July (1)
June (1)
May (2)
2009 (8)
September (1)
August (5)
July (2)

Tags

  • bash (1)
  • javascript (1)
  • linux (1)
  • lsof (1)
  • meta-programming (1)
  • mysql ruby python csv fastercsv mysqldump (1)
  • ruby (1)
  • shell (1)