68 karma · joined August 3, 2009
Self-doubt is an evil, evil thing. Don't let it hold you back. I landed an opportunity to interview at $REDACTEDBUTITSATOPINTERNETPROPERTY. I didn't even want to fly out for the interview - I thought it would be a waste of time. It took lots and lots of convincing by my wife and other friends and family just for me to go out and interview. I guess you can see where this is headed - I start there in 2 weeks.
tl;dr self-doubt is evil.
Disclaimer, I work for CBS Interactive, the parent company of CBS Sports.
However, Paul Kedrosky did a pretty nice job with one - check it out at https://twitter.com/pkedrosky/status/127796382684819456
for i in newton macintosh macbook ibook iie mac iphone ipod imac ipad II+ iigs LaserWriter osx 'apple ?tv' itunes '\]\[' imovie do stevejobs_tribute.txt |wc -l`" echo "$i: `egrep -wi "${i}s?" $INPUTFILE|wc -l`" done
But this was difficult to maintain. I wanted the ability to print a 'friendly' looking product name (the dict's key) and maintain the counts in a variable.
When I made the move from bash to python, I knew that there would be some overlap when I pushed this code (in the name of shipping!). I need to split the sentences into proper tokens and then check each token for a product match. I'm already splitting the sentence into tokens for part-of-speech tagging so it shouldn't be difficult to do.
tl;dr known issue on the Mac regex, I needed to publish it and get back to work!