Mark Grealish

Cats and wizardry.


itsligo

Replace Odd Numbers of Spaces Only

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

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

Slidescan Panorama of Dollymount Strand

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

Baily Lighthouse and the Irish Sea

The new workplace in all its summer glory. :)

Withered Galway Skies

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

Man and His Best Friend

Taken at the Salthill promenade in Galway.

Kinvara Rock and Road 10k 2018

Hey, my first road race went great! Per the chip time results: Time: 00:52:37 Distance: 10.00km Pace: 00:05:16/km Place: 143/432 Male: 105/211 Senior: 66/101 The full results from Rock and Road are pretty cool to go through and cross-reference! This is the first indication of where I fit with other runners because of how I […]

Killaspugbrone, Strandhill, Co. Sligo

factory_bot Email Factory

While hardly a world-shattering bit of code, I’ve found this super useful for reuse. :D FactoryBot.define do factory :email_address, class: String do skip_create transient do sequence(:address) { |n| "factory_email_#{n}@example.com" } end initialize_with do new address if address end end end Call inside a factory thus: FactoryBot.define do factory :foobar do email { create :email_address } […]

Andddddd We Drunk Called Friends

(Sorry Jenny!) At some point I’ll have to blog about Asheron’s Call and its effect on our lives. The AC community, more than any other I’ve known, came together as people in real life. For now, yeah, we had a great time over a couple of drinks in Dublin. :D

Strandhill Snapshots

Well as you could have guessed from the runs, I went to Strandhill last weekend with a friend. My most excellent company aside, it felt so good to be back in Sligo and the northwest for its own sake. I ran, we walked, we got burned under the sun and enjoyed fantastic food and beer […]

Pretty Neighbourhood Kitty

He got the scratchies from me. 🐱

This Be The Verse

Poem by Philip Larkin, shared with me by a friend. They fuck you up, your mum and dad.    They may not mean to, but they do. They fill you with the faults they had    And add some extra, just for you. But they were fucked up in their turn    By fools in old-style hats and […]

Weekend Runs

Saturday’s run was Tour de Knocknarea. A friend and I spent the weekend in Strandhill in Sligo. We had our own plans made for Saturday morning, mine being to run a loop around Knocknarea. It looked easy on paper, ten kilometres in a circle back to the start. Right? Hah! The southeast side of the […]

Dun Laoghaire Sunset

Took these back in early May on a gorgeous warm evening after a day out in Killiney and Dalkey.

Xlendi Run

On my first day in Gozo I ran from Victoria to Ta’ Ċenċ Cliffs and then back to town by way of Xlendi. This wasn’t my greatest run as far as they go because I didn’t realise the trail Strava said exists was a literal clifftop goat trail; I wound up having to cut across […]

Xlendi and Wardija Point Cliffs

Content to follow.

The (Former) Azure Window and Dwerja Bay, Gozo

Azure Window. Lots to say about here that I’ll fill in later.

The Mgarr ix-Xini Coast, Gozo

The sea as the gorge.

Mgarr ix-Xini Gorge, Gozo

Mgarr ix-Xini is a gorge on the south side of Gozo that terminates at a beautiful sheltered beach. Gozo is…compact. Towns and villages are concentrated onto high ground inland. Almost the entire coast of the island is one big trail because of this, which allowed me to go on remarkable walks along clifftops. The gorge […]

Food and Journal

Takens at The Grapes wine bar in Victoria, Gozo.

Running Satisfaction

This has been the high point of my week: a perfect run on a gorgeous spring afternoon.

The Kids, April 2018

More awesome than yours, now and forever.

Nicely (and Recursively) Stringify a Hash’s Keys and Values

Works in Ruby on Rails versions >= 4 and in Ruby 2.5. This has really annoyed the shit out of me. I want to stringify keys and values individually, not turn an entire hash or array into a string. def deep_stringify(object) case object when Hash object.transform_keys(&:to_s).transform_values { |val| deep_stringify val } when Array object.map { […]

Mindfulness

I am here, now. Mark now is Mark now. Mark then was Mark then. I’m not him. Last year has gone and next year will come. Everything in its own time. Tomorrow is tomorrow, yesterday is yesterday. Breathe in now, breathe out here. Here is here, there is there. Now is now. Here, now breathe […]

Mgarr and Fort Chambray

The town of Mgarr on the southeast coast of Gozo hosts the ferry terminal that’s the main point of access to the island. As Wikipedia will tell you, Mgarr has pubs and restaurants and churches and buses and homes and people. The town shelters a harbour of crystal-clear blue Mediterranean water, and that offers spectacular […]

My Fortress of Cozy Solitude

It’s a bit of a fail when I have to work from home, but when I do its the cosiest place to be.

The Western Way

In December I hiked the Western Way in Galway between Maam Cross and Oughterard. Timing from my phone and FitBit: 00:42:50 + 04:41:38 = 05:24:28 The part of the Way I hiked was 26 kilometres of spectacular rugged Connemara scenery-bogs, forests, mountains, lakes and rivers all in a breath of one another. Being out on […]

Five Years Slimmer

I’m a skinnnnnnnnny bitch now! On the other hand, today’s breakfast was two soluble Panadol, a croissant, a cup of black coffee, and two-thirds of a Dairy Milk. I try.

Another Notch

Weights and scales and charts and numbers are all well and good, but it’s the new hole I punched in my belt today that’s the visceral sign of losing weight. I’ve used each notch at one time or another.