Mark Grealish

Cats and wizardry.


oranmore

Of Faith and Reason

Through reason, sanity.

Harold’s Cross, Early Autumn

My neighbourhood looks gorgeous as Autumn rolls in. 🍂🌞

The Baily Lighthouse

The Baily Lighthouse in Howth as Storm Ali rolls over the Irish Sea.

I Wish I Were Lost

With Storm Helene due to make landfall over Ireland tonight, I went up and out on my bicycle around the south city out as far as the foothills.

Git Alias to Flag Files Unchanged

Inspired by a question on Stack Overflow, “Can I get a list of files marked –assume-unchanged?”, this alias allows me to glob mark files as unchanged (or changed) from the command-line. [alias] unchanged = !git ls-files -v | grep \"^[[:lower:]]\" thaw = "!git update-index --no-assume-unchanged $@" freeze = "!git update-index --assume-unchanged $@" As an example […]

Grey, Speckled With Light

Grey skies overhang Grand Canal Dock in Dublin at sunset in early September.

I Haven’t Been Kind to Myself

When you put shit in, you get shit out. At last, today, it occurred to me that I haven’t been kind to myself over the past month. Two years ago I learned that I only know when I’m stressed or angry or upset are in the ways I express them. Like that I eat junk […]

Cast Any Value as an Array in JavaScript

Another stupid little thing. In JavaScript you can use Array.from() or the spread syntax to create a shallow copy of an array or other iterable object, e.g. Array.from(foo) // [foo] [...foo] // [foo] However you can’t perform this with simple values: Array.from(9); // [] [...9] // Uncaught TypeError: 9 is not iterable The good old […]

Phone Repair

So it turns out that being a programmer also means I can repair phones. :p

Cycling is Great

I love cycling.

My Happy Face

I can't get over the difference between me then and me now.

Breaking 20k

My last running goal was a nonstop 20k, which I convinced myself I wouldn't manage until I went out and did it.

Thoughts of Murder

August Skies

I’ve seen mountains and deserts and lakes and forests and ice caps and snow, but nothing in this world soothes my heart like the sea breeze, the cry of gulls and clouds hung low o’er the horizon.

Race Report: DLR Bay 10k 2018

Time: 00:47:24 Distance: 10.00km Pace: 00:04:39/km Finished: 223/1229 (18/100 normalised) Previous race:Kinvara Rock and Road 10k 2018. In comparing my experience on the DLR Bay Run with the Kinvara Rock and Road, I get the feeling of being prepared. For the DLR Bay Run I followed a running schedule, watched what I ate, and arrived […]

Dublin Bay Cloudscape

Although the sky around the sun got blown out to fuck, I’m really happy with this spectacular cloudscape from over Dublin Bay. Going to work in the Baily Lighthouse has become a high point in my career. Every day something about the job lifts me up, like on Friday when we spotted a porpoise on […]

The Kitties of Harold’s Cross

Lookit the lil whiskers! 🐱

East and North and West: Three Runs around Galway

These are three days of fantastic, vitalizing runs around Galway back in July. The first day, I got off the bus, popped on my gear, and ran a fast loop out to Renmore on back. The second day, Saturday, I ran an easy route out to Menlo and home again before dinner with friends. The […]

Coffee is Good

Currently writing a client < => server HTTP service and added some test code along the lines of “When the application starts, please GET a list of all records from the server. After you receive them DELETE the first item in the list.” Promptly forgot about it. Why ever, I wondered ten minutes later, does […]

Set Zsh Tab Title Automatically Based on Folder

My current task at work sees me rewriting an old application from scratch. A good part of this involves me going back and forth between the old and new project folders-call them “wigwam” and “spaklepony”-to compare code. This can be difficult to keep straight in tabs as a terminal user. A quick walk of Stack […]

First Cycle Since…2008?

The first cycle-cycle, that is, because trips to and from town in Galway don’t count. Back in Vegas I used to cycle to work: take the bus part way, cycle the balance. I stopped (no bicycle) after I got back to Ireland, so I’m looking forward to the route to Howth. There are few words […]

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. It works.

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.

Race Report: 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 (33/100 normalised) 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 prefer to […]

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 } […]