Tagged with code

Find shell commands with which

- 2009-04-19 15:02:04

So I have this command in my $PATH, apachectl. Because I'm on a mac and I've installed apache2 through MacPorts, the command that gets found first is my macports install in /opt. Up until now I've always known that which apachectl will find that location, but to find any other locations of apachectl I'd usually use locate and egrep...

--More--

Validating Data with Regular Expressions in Ruby

- 2009-04-11 12:41:48

I happened to be sent a link to the OWASP paper on Rails Security recently and started reading it. Partway in there's a section on Regular Expressions, which opens with the following line:

--More--

Migrating Rubygems to Ruby 1.9.x

- 2009-01-31 20:29:57

So I just installed ruby 1.9.1 through MacPorts and wanted to easily migrate my rubygems across from 1.8 to see which ones would fail to install.

--More--

View Raw Source

- 2009-01-31 01:54:57

So I write this blog using Markdown because I'm a human and writing stuff <strong>with</strong> tags is just WRONG. Thankfully, Gruber solved this problem by writing markdown.

--More--

This is my Compiler

- 2009-01-30 12:18:56

As some friday fun in #geekup we ended up converting the US Marines Creed to a geekier version.

--More--