Unix Jobs Management

"Screenshot of GNU Screen." The top ...

Image via Wikipedia

Every self respecting linux, mac os X or *nix user should have a solid handle on managing jobs in unix. The following will explain how to run tasks in the background, bring tasks to the foreground, background already running tasks and keeping a task running while logged out.

human readable du sorted by size

Example output of the du UNIX command

Image via Wikipedia

du is the *nix command for disk usage. It tells you how much space everything in the given directory is taking up. GNU du introduced a handy option -h making it human readable, or showing sizes using K, M, G rather than bytes. Unfortunately this makes it not sortable numerically. Here’s how to sort du by size and keep it as human readable.

Benchmarking Cloudfront (and S3)

Image representing Amazon as depicted in Crunc...

Image via CrunchBase

Amazon has done it again bringing another computing service to the masses. This time it’s the Content Delivery Network or CDN. Cloudfront is a direct competitor to other popular CDNs such as Akamai. While Akamai requires a fairly substantial amount of traffic to become a customer, Cloudfront doesn’t. It follows all of Amazons, pay for what you use mentality. This means that everyone can benefit from incorporating Cloudfront into their blog, site, store, etc..

For purposes of experimentation, I decided to track how much of a difference Amazons Cloudfront made over simple s3 public hosting vs hosting locally on my webhost. I decided to use stevefrancia.com for this experiment since it is a very small and simple site with a single html file a couple css and js files and a handful of images. No server side processing or other significant variables, perfect for benchmarking.

Using the right keys

Keyc(ODE)

Image by HeyThereSpaceman. via Flickr

Today I was visiting a friends office and like many offices in NYC they have a shared bathroom in the hall for the entire floor. In this building it had five buttons on the door that when pressed in the correct order unlocked the door. A simple password.

SOAP vs. REST

Architectural elements involved in the XML-RPC.

Image via Wikipedia

Someone asked me a question today “Why would anyone choose SOAP (Simple Object Access Protocol) instead of REST (Representational State Transfer)?” My response: “The general rule of thumb I’ve always heard is ‘Unless you have a definitive reason to use SOAP use REST’”. He asked “what’s one reason?” I thought about it for a minute and honestly answered that I haven’t ever come across a reason. My background is building great internet companies.

My Online Business Card (vCard)

Steve Francia.com

I wanted to polish up my javascript coding so I decided that the best way to do that was with a project that I’ve been wanted to do for a while anyway, my own identity site, or my online business card, or my online vcard. The idea was inspired by Tim Van Damme’s website.

To accomplish this I wrote a jquery plugin to handle the navigation, animation etc.. The site itself is rather simple, a single html page and a few images. The markup is written in such a way that it works perfectly (minus the hiding and animation) even when javascript isn’t present.

I’ll write a separate post on how I wrote the jquery plugin and would be happy if anyone else could use it. I just ask that if used that people provide proper attribution both in the code and with a link back to stevefrancia.com.