TextMate extended attributes corrupting files

My development setup right now is a VirtualBox Ubuntu Server x64 guest running on OS X Snow Leopard. I use the VBox shared folder feature to share the document root of the sites I’m working on from OS X to Ubuntu, and edit the files natively using TextMate on OS X. This setup has worked very well for me, as I can emulate the server environment my apps will eventually deploy to (as well as reap the benefits of Ubuntu’s much-superior-to-Apple’s command line). I have no need to buy any third-party ssh-mounting software; it is a completely turnkey solution.

Except for one minor flaw…

Please never run this

Came across this and thought it was amusing.

Ruby Recursion: Delete a Directory

Wrote up this little function to recursively delete a directory structure in Ruby. I am still learning Ruby and I’d love some feedback on how this can be improved. Feel free to edit the gist directly!

Git Status in your Prompt

Came across a cool little Bash snippet today. Putting this in your .bashrc or .bash_profile files will – if your current directory is part of a git repository – show you your current branch and whether there are any uncommitted changes.
Note that the PS1 syntax used here is Debian-based (ie. Ubuntu). Other distros should use [...]

Passenger / Apache2 in Ubuntu

For the past few weeks, I’ve been teaching myself Ruby and Rails. Or rather, I’ve been trying to. I’ve been hitting snags when trying to actually set up my environment in my Ubuntu Server VM. Coming from a predominately PHP background, Rails (and Phusion Passenger in particular) are much more temperamental than I’m used to. I also prefer compiling my application stack myself from source as much as possible, while the Rails community seems to prefer installing packages.

Post!

This blog has a post now. Let’s test some super awesome markup!

1
2
3
4
5
6
int main(int argc, char *argv[])
{
std::cout << "Hello World!\n";
 
return 0;
}

And now in PHP!

1
2
3
4
5
function hello() {
echo "Hello World!\n";
}
 
hello();

Here’s a blockquote sample.
The quick brown fox jumped over the lazy dog.