August 2011
1 post
Moving...
Tumblr has been a great service. Out of all of the hosted solutions out there, I liked it the best. However it wasn’t meeting my needs and was definitely more time consuming to get up code examples using their editor. What I really wanted was GitHub-flavored markdown in a blog format and thankfully, that is available now and nice… so I’m moving to wavded.com. I’ll leave...
December 2010
2 posts
Installing git on CentOS 5
Here’s a quick simple one that hopefully will make it easier for others. CentOS 5 doesn’t have git in its repositories, the jerks :) But its pretty easy to get it up anyway.
rpm -Uvh 'http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
yum install git
Introduction to NodeJS - Slides
Here are some slides from a recent talk I did introducing NodeJS. Tumblr won’t let me embed so here’s the link.
October 2010
1 post
2 tags
Influenced by Perl
I have become particularly more interested in various language paradigms, syntax, and behavior. Other languages help me rethink about JavaScript and how I write code. I just inherited a Perl project at work and I have never worked with Perl before so if you are a Perl programmer reading this, please clarify any of my misunderstandings :-).
Perl Subroutines
One particular thing about Perl that...
July 2010
1 post
Installing MapProxy on CentOS
MapProxy is an excellent tool for doing map tile caches and the like. I’m still diving into all of what it has to offer but spend a bit of time getting it to work on CentOS 5, so I thought I’d share what I ended up doing to hopefully save you some time:
First you will need an updated Python 2.5 or greater plus some development packages in order to use all the MapProxy features:
rpm...
May 2010
1 post
1 tag
Cycling through an Array using the Comma Operator
The comma operator in JavaScript was a long time a mystery to me but once I started using it I found it can be quite handy in certain situations. In this example, picking the next color out of the available six.
var colorIndex = 0,
colors = ["FF0000", "008000", "FF0086", "A2FF00", "0000FF", "800080"];
function selectNextColor(){
return colors[colorIndex++] || colors[colorIndex = 0,...
March 2010
3 posts
2 tags
Hosting NodeJS Apps on CentOS 5
I recently enjoyed a great article by Alex Young from DailyJS, called “Hosting Node Apps” (http://dailyjs.com/2010/03/15/hosting-nodejs-apps/). However, my server runs on CentOS so setting it up was a little bit different. Here’s what I did to setup, hopefully it helps you out as well.
Grab Core Dependencies
yum install sudo nginx unzip gcc-c++ screen git-core monit
Install...
2 tags
Adventures in NodeJS - CSV to SQL VALUES
Been recently getting into NodeJS, server side evented-IO JavaScript goodness. Here is a little app I wrote today to convert CSV files into SQL VALUES statements to use when dumping one schema to another. Its not complete but was able to help me in my use case:
var sys = require("sys"),
fs = require("fs"),
argv_length = process.argv.length,
csv =...
2 tags
CSS Refresh Update
CSS Refresh extension has also been ported to Chrome. I honestly think this kinda stuff should be inside full scale debug tools like Firebug or Web Inspector but until then this works for me. Hopefully it will help you out too.
https://chrome.google.com/extensions/detail/ojcnooebgeenefpfngjfifjcnhlkbbdd
The Jetpack one for Firefox is still available as well:
...
November 2009
3 posts
3 tags
CSS Refresh Jetpack
It has been very helpful to me to be able to use scripts to reload CSS without reloading the whole page. Unfortunately the Firefox addon (https://addons.mozilla.org/en-US/firefox/addon/7465) seems to have ceased being developed and bookmarklets don’t work well with my work flow. So I made my first Jetpack. Feel free to try it out and let me know what you think....
2 tags
Installing Tomcat 6 on CentOS 5
May be a niche post but after some fighting with my virtual server running CentOS 5 it boiled down to a really simple solution:
cd /etc/yum.repos.d
wget 'http://www.jpackage.org/jpackage50.repo'
yum update
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
service tomcat6 start
If you have problems accessing the server from another machine you may need to do the following:
setup
"Firewall...
Should be simple.
Trying out this tumblr thing. Hopefully it will make blogs a breeze.