Tokyo photo book : Streets Without Names
emuu.net
opinions and images by m. werneburg since 1998
adventures · creations · articles · photo · journal · about me

bizarre coding error

Tokyo, 2008.01.19

This morning I've found a funny coding error in my script that creates this journal. In an effort to strip out the Windows "newline" character, I'd written a regular expression to strip out the appropriate ^M character. But somehow (likely through a cut-and-paste) the ^M character had become two separate characters, the ^ and M. In regular expression syntax, this reads "a capital M at the beginning of the text". So one of my journal entries started with 'y friend' rather than 'My friend'.

It's good to be hacking around with my website again after such a long absence.

Tokyo photo book

photo of the day

what's new

tools

rand()m quote

If you want to build a ship, don't drum up people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea.
--Antoine de Saint Exupery

recommended

copyright

Creative Commons License
streets without names
reader comments
comment
name
email
website

I recommend these journals and blogs.