Mark Grealish

Cats and wizardry.



Long live the placeholders of Muad’Dib!


The past few months have been ones of continual-and cumulatively large-changes in the status quo of my life. As much as I tell all of my friends in dire straits “this too shall pass,” it has been jarring to realize that the same thing has happened in my own. On Friday night I attended the […]

Glasnevin Cemetery

From the launch event at the Mansion House

Post-storm Barna

Eadaoin at Yamamori

She was apparently hungry.

Eadaoin at the sandy beach place


Über-crude incrementing post view counter for WordPress

function increment_view_counter($post_id = null) { $key = 'mark_view_counter'; if ($post_id == '') { $post_id = get_the_ID(); } if (is_single() && !is_user_logged_in()) { $count = (int) get_post_meta($post_id, $key, true); $count++; update_post_meta($post_id, $key, $count); } } function get_view_count($post_id = null) { if ($post_id == '') { return; } $key = 'mark_view_counter'; $count = (int) get_post_meta($post_id, $key, true); […]

Stormy Barna

A huge storm-the tail of a Bermudan hurricane-ran in off the Atlantic a few days ago.

Yo dawg, I heard you like divs…

Hot Potatoes is the biggest piece of shit, ever.

Mona Sweeney, Designer

Edits by Eadaoin.

I wrote a simple CSV parser

I was give some data entry to take care of, and this was as much as chance to be educational as it was to be useful. #!/bin/bash # File is in format: # id,event_name,description,location,event_date,start_time,end_time,active,deleted # Destination file for output output_file="output_$(date +%Y%m%d%H%M%S).csv" # Regex for date-events take place on the 29,30,31 and 1 regex_date='^(28|29|30|31|1|2)$' # Regex […]