Friday, March 05, 2010

Obama in my Building



Obama is on the 6th floor of my building right now. I'm on the 9th. The living in DC experience is now complete for me. I have had my car bomb-searched and I've been through Secret Service security. Very cool :)

Tuesday, March 02, 2010

TimeSpace2

It's officially live:





http://timespace.washingtonpost.com

5831

It's after midnight and I'm still at work... TimeSpace2 is close to launching and the whole team is sitting here tapping away on the keyboard. I wrote a nice little script to count all the lines I've written in Python for this project so far... 5831

Here's script to do that if anyone is interested...

find /data/washingtonpost/timespace -path '/data/washingtonpost/timespace/lib' -prune -o -name '*.py' -exec wc -l {} \; | awk '{count+=$1} END {print count}'

That will look in the first directory specified, /data/washingtonpost/timespace in my case and will ignore anything in the second directory, which is my python lib and all code I didn't write. Then we pass the or switch, tell it to match files ending in .py and execute word count to count the lines in the file. That then get's piped over to awk where we grab the first field and keep track of those values in a variable and when the program ends print the count. Probably other ways to do that but this one works for me.

I had every intention of blogging before a week passed by but it didn't happen.