Monthly Archives: July 2011

Bash tricks: drop the first line of a file

I work with a bunch of data that often comes in text files. I regularly want to cut off the header / first line, but I thought that to use tail you had to know how many lines are in … Continue reading

Posted in bash, Data Munging | 1 Comment

Amazon price jumps

Does anyone else regularly see large price swings on Amazon? I’m in the habit of adding books to my shopping cart until I run out of things to read at home, then buying whatever is in my cart at the … Continue reading

Posted in Uncategorized | Leave a comment

Saving output of a command and echoing to the screen

When using bash, it’s really nice to both save the output of a command to a file and print it on the screen. I couldn’t find something that did this so I wrote my own ruby script. A utility that … Continue reading

Posted in bash, Data Munging | Leave a comment

Online display advertising ecosystem

The biggest divide in the online advertising world is search advertising vs display advertising, and search sounds exactly like what it is — search is generally the ads next to searches on Google, Yahoo, Bing, etc. Search is bigger than … Continue reading

Posted in Computational Advertising, Online Advertising | Leave a comment

Unique is broken in R

Are you kidding me? $ R > unique(1,1,2,3,4) [1] 1 This was the source of yesterday’s nasty to track down bug. What you really want is unique on a vector, as in: > unique(c(1,1,2,3,4)) [1] 1 2 3 4 I … Continue reading

Posted in Programming, Programming Languages Suck, R, R Tip, Suck | Leave a comment