Mark Grealish

Cats and wizardry.

Replace Odd Numbers of Spaces Only

in code

Stolen from Stack Overflow, this bit of regex matches odd numbers of spaces only. Last week I retabbed a work project, but didn’t catch that I replaced \t with \s instead of \s\s. Whoops.

gsed -E -i -e 's/^\s(\s\s)*/& /g' src/**/*.*

Per the SO link, x(xx)* will match odd numbers of x.

Dwerja Bay, Gozo

in malta

I’m missing Malta today. :( Hope to go back for a week in September.

Dwerja Bay, Gozo

Slidescan Panorama of Dollymount Strand

in ireland

Taken on my way home from work in the rain last Wednesday. The effect came out great.

Slidescan panorama of Dollymount Strand, Dublin

Baily Lighthouse and the Irish Sea

in ireland

The new workplace in all its summer glory. :)

Panorama of Baily Lighthouse and the Irish Sea

Withered Galway Skies

in ireland

The two of us sat there hour with coffee as the storm bit by bit consumed the world.

Storm clouds over Galway Bay

Man and His Best Friend

in ireland

Taken at the Salthill promenade in Galway.

Man and dog asleep by the sea