Mark Grealish

Cats and wizardry.


2017

October


My Body is Ready

\\//

Ghetto Single-Instance Cron jobs on Elastic Beanstalk

Before you read this article, go and read about Elastic Beanstalk’s worker environments. A worker environment is a copy of your application which you configure to handle certain background tasks. In the case of Ruby on Rails, you can configure ActiveJob to interact with the worker tier through the active-elastic-job gem. If a worker tier […]

The Iveagh Trust, Dublin

Thorncastle Street Apartments, Ringsend

Menlo Skylight

Forcibly Set Counter Cache Columns to Zero in Rails 5

(Or any other value you like.) So it turns out that counter cache columns are marked as readonly because Rails handles increment/decrement internally through methods such as increment_counter. Rails does not want you to update the counters by hand. It really wants you to leave the integrity of those fields to the framework itself. Every […]

On Being Vulnerable (as a Good Thing)

We discus vulnerability as a negative because we need to protect vulnerable persons, which is that’s fair. One of the marks of society is in the way we treat our weak and helpless. What we overlook is being vulnerable as a positive. I mean, we’re vulnerable all the time. We’re vulnerable when we share with […]

Poolbeg in Silhouette from Bull Island

Phoenix Park, September 2017

Taken on September 24 on a wonderful warm autumn evening.

Ordinary Day

Taken at Bull Island, October 14.

Anarchy on the Streets of Dublin 8

They respect no law but the law of MIGHT MAKE RIGHT.

Better Version of Bash/ZSH Dependency Tester

Why test for one dependent executable when you can test for them all? It came in useful at work today. function _has { for PROGRAM in "$@"; do if [[ $(which $PROGRAM > /dev/null 2>&1; echo $?) != 0 ]]; then return 1 fi done return 0 }

Perspective

An eerie flat plain approaches a sharp clifftop.

The Littlest Nazgûl

Lil Khamûl.

Gaelcon 2017

Gaelcon runs again this October bank holiday, same as it always does, same as it always has. When I was a teenager, Gaelcon was the be-all of Irish gaming. The con was our annual pilgrimage, the weekend where gamers from around Ireland came to let their hair down. Card games like Magic and L5R dominated […]