Monday, July 28, 2008

[code] sed, awk, and tab

Never realized that sed doen't recognize tab as a escape character. So to use regular expression to search and replace tab characters out of a file, use awk instead.

With sed (very dangerous to put tab character like this because it's easy to accidently copy and paste, and turn tab into space):

sed -e 's/ /x/g' myfile.txt

Better with awk:

awk '{gsub("\t","x");print}' myfile.txt

Sunday, July 27, 2008

[outing] Dean's Wedding

Where: Universal Sheraton
Who: Dean, Jessica, Graham, Brandi, Josh, April, Cash
When: Saturday 2008 July 26

- Returning to the scene of the crime .. beer pong anyone?
- We are not late!
- The world's slowest elevators
- Who's asian and took pictures of the menu?
- The dog was part of the wedding procession!
- Gorgeous, gorgeous view from the roottop garden of universal sheraton
- Where's the scallop and bacon dude?
- Conga line to the bar ...
- Any vodka in ths vodka?
- Whoa. There is a Betta fish in the center piece
- Even the guy on crutches get up to dance to Footloose
- Guess where was vodka in the vodka afterall

Wednesday, July 23, 2008

[muse] Question vs Problem

Don't just answer the question.

Solve the problem.

Saturday, July 19, 2008

[outing] Zee's Birthday at Rush Street

Where: Rush Street
Who: Zee, Gray, Robert, Monica, Marie, Vicky, Jack, Tonia, Chris
When: Friday 2008 07 18

- What a beautiful space.
- Stripper pole. Brilliant idea.
- Dude: "How much is a beer?". Bartender: "Six dollars". Dude: "Come on I have a five dollar bill. Can I get half a beer?". Bartender: "No"
- Marie wasn't so hot on chewable kiwi-cucumber martini. Looked nice though.
- Tonia accidentaly cleared a tray full of glasses
- Zee accidentally cleared the dance floor
- Get this body into the car before the cop comes over here
- Go into the bathroom and get away from my router!
- How did Z get that gash on his head? Hmm.

Wednesday, July 09, 2008

[tool] Google Chart,30&chs=250x100&chl=Hello|World

Nice 'n easy.

Sunday, July 06, 2008

[muse] The Long Tail

Something I was thinking about:

It's not about focusing on the head or the tail.

It's about having a strategy for the head, and another strategy for the tail.

Friday, July 04, 2008

[outing] Hawaiian Concert on the Santa Monica Pier

Where: Santa Monica Pier
Who: Corinne, Deb, Bill, Andrew, Marie, Shu, Ray ...

- Security guard: "Ma'am do you mind if I check you bag ... whoa! there's enough food in there for a three-day camp out!"
- Macaroni potato tuna salad, fried chicken, edemame, spicy spam musubi, three flavors of rice balls, tamago, tofu, cucumber salad, and killer chocolate chip nuts oats cookies
- Are Jager, Patron, and Makers Marie's friends?