Tuesday, April 29, 2008

Tee'd off

Recently I was trying to figure out how to output text from a command to both a text file and the console. My twitter friends weren't sure how to do this but fortunately a friend of mine reminded me of a handy little tool named tee.

from the tee man file:
tee - read from standard input and write to standard output and files

A simple example of using tee:
`cat somefile.txt | tee output.txt`

So next time you need to write to both the console and a text file don't get so Tee'd off! (cheesy I know)

Wednesday, April 23, 2008


I don't know what super fuel Nine Inch Nails has been running on lately, but it sure seems like they have found a new creative well to tap. They keep coming out with more of everything in less time. Definitely not the typical four-to-five-years-between-albums Nine Inch Nails we have been used to. I just Downloaded their new song Discipline and its amazing! It gets me wondering what they are up to now that Robin Finck has joined the Nine Inch Nails fold yet again.

Oh yeah, and they are going on tour.... soon.

If you haven't clicked the link earlier, go download Discipline now. If you are musically inclined, you should go to remix.nin.com and get the multitracks of Discipline in the Mix section.

Monday, April 21, 2008

Git on Cygwin

Lately I've been trying out Git and I have been very impressed so far. I enjoy how Git doesn't impose any set method on how to do things, instead it lets me write code how I want to and forget about my version control. I did run into one annoying problem with Git on Cygwin though. Apparently, the default install for Git enables _all_ the pre-commit hooks for Git. The Linux version, on the other hand, *disables* all the pre-commit hooks. This kept me running into an annoying problem where Git wouldn't let me commit files because of bad whitespace in a couple files.

Fortunately I found a solution to the problem here. Its a simple 'chmod a-x .git/hooks/pre-commit'.

Now that I have that out of the way, I'm going to try Git some more and compare it to my experiences with Mercurial (which I think is another great version control system).