Generate Custom SSH Keys for Developers on Your Amazon Instances

The process is pretty simple. Let’s say you use an ssh key (.pem) file generated by Amazon. However you use the same key on a few of your instances and you’d like to allow a developer access to only one at a time. To do that, you need to generate a custom ssh key for your developer to log into

Get the most recent commit hash

Sometimes you just need one line that says your most recent commit in git. You just want to make sure everything is up to date. It’s super simps. git rev-parse HEAD

Dali Museum

What if you could “Dali-ize” yourself into a work of art? This was the concept behind Gala Contemplating You, where Salvador Dali’s famous work of art turns the viewer into a painting. The concept is simple, take a picture of yourself and we’ll turn you into a one of a kind digital work of art. Shortly thereafter, we show you in the Salvador

How to Open a New Window From Menu Cocoa

quick one today. The video shows you how to open a new nswindow from a drop down menu selection. It allows for the nib to be instantiated and call all of the expected “windowDidLoad” behavior.  

8 Bit Color or 256 Color Array

I’m sending color to an arduino and I’d like to send the entire rgb value in one byte. It’s easy to translate this from rgb values. Something like: int color = ((b&255 & 0xC0)+((g&255 & 0xE0) >> 2)+((r & 0xE0) >> 5))&0xFF; But once you get that byte to the arduino, you need to convert it back to an RGB

xCode Can’t Drag IBOutlets or IBActions

Sometimes life is simple, too simple. Sometimes you get stuck for a day and it was something totally ridiculous that you couldn’t figure out. This is one of those days. Doing IOS Development, I thought I had it down. Create a new UIView, create a new view controller class, and set the UIViewController’s class to the newly created class in

Amazon RDS Creating Functions in MySQL

Had a problem creating functions in MySQL with the standard user for an RDS instance on Amazon. For those who don’t know, Amazon RDS is a sweet place to host a remote database, kind of expensive but worth it if you are using a distributed system. Anyway… The problem is when you try to run something like: DROP FUNCTION IF

Add SSL to EC2 Instance

You want https on your ec2 instance with nodejs? easy. First thing is first. There are new rules. You can’t get an ssl certificate anymore that assignes to an IP address (More here). If you don’t know what this means, don’t worry about it. I’ll walk your through. You’re going to need to set a few things up. First, set