Archive for July, 2007

STL and reading lines

Tuesday, July 31st, 2007

For no good reason other than I just used this code once again, and once again marvelled at the almost script-like qualities STL-laden C++ has, here is the easy recipe for reading each line of a text file into a string (assume correct includes and using namespace std). string line; ifstream infile( "/etc/hosts" ); while( [...]

Bash vi mode

Sunday, July 29th, 2007

I just found out that bash (my command line shell of choice) has a vi editing mode. If you are a vi lover (like me), and use bash a lot (like me), then try this out: set -o vi Escape puts you in command mode where you can use the regular vi navigation and editing [...]

… And back again

Monday, July 9th, 2007

Paris was fun and relaxing. Anna liked her birthday present. It's funny how it's nice to be back home and feels like I've been gone a long time, when it's only been 5 days.

Paris

Wednesday, July 4th, 2007

I gave Anna a trip to Paris for her birthday, and from later today and until monday, we are going to Paris to hang out and enjoy life.