atomicules

Push propelled program tinkerer and picture maker.

Making use of Haskerdeux

I honestly thought that after I got Haskerdeux working again I'd not be doing much else to improve it, but lo and behold the whole "fix your own frustrations" thing kicked in and I ended up improving it so I could use it to work on todos of any date. Why? Because I wanted to be able to easily script adding a whole bunch of todos on various dates in the future.

I actually ended up doing some Ruby to (technically) Haskell scripting as follows:

require 'helpscout'
helpscout = HelpScout::Client.new("<api key>")

# Read in an array of "conversations" I had from a previous action
# I.e. a text file with one of something like this per line: https://api.helpscout.net/v1/conversations/326542115.json
conversations = File.readlines("conversations.txt").map(&:strip)

conversations.each do |conv|
    ticket  = helpscout.conversation(conv[43..-6])
    # DateTime.parse is clever enough to pick out date from a string like "something something needs to happen on 2017-03-05 so here's some text"
    todo_date = (DateTime.parse(ticket.preview)-1).to_date.iso8601
    `./haskerdeux #{todo_date} new "Need to do this before tomorrow [#{ticket.number}](#{ticket.url})"`
end

(This Helpscout Ruby gem is really good, by the way).

I.e. I had a list of HelpScout conversations that had been generated previously and I had actions based on these I needed to do on a certain date. So I iterated through each conversation, parsed the date from the ticket preview text and then added them to my Teuxdeux list via a Ruby shell/system call to Haskerdeux. Simple, hacky, nifty.

Bay

Bay

Kodak Portra 160NC, Yashica Mat, Aberdeenshire, Aug 2016.

Pier Rocks

Pier Rocks

Kodak Portra 160NC, Yashica Mat, Aberdeenshire, Aug 2016.

Pier View

Pier View

Kodak Portra 160NC, Yashica Mat, Aberdeenshire, Aug 2016.

Trail Of Sunlight

Trail Of Sunlight

Just as pretty as Gozo, only colder.

Kodak Portra 160NC, Yashica Mat, Aberdeenshire, Aug 2016.

Collieston Beach

Collieston Beach

And the last few photos for the time being are back home in Scotland.

Kodak Portra 160NC, Yashica Mat, Aberdeenshire, Aug 2016.

Note: 19.1km run with the dog. Frustratingly close to 20k, but that route is what it is.

Valley of the Dolls

I really liked this, although it took me a few attempts to get into because I was reading other books at the time and kept forgetting to return to this. When I eventually made a proper attempt though it was one of those books I just sit and read for hours.

In a nutshell it's a really engrossing story about a horrible group of people; Even the main protagonist I'm undecided on how much sympathy I feel for. There is nothing that shocking (nowadays) and everything is entirely believable - which makes it all the sadder. I still found myself really rooting for a number of characters to come good, but like real life everyone is far from perfect.

As per Lovely Bones it just left a crushing miserable feeling after I'd finished it that hung around for a few days: Human beings at their worst. And most normal.

Weathered

Weathered

Ilford Pan F Plus, Yashica Mat, Gozo, Aug 2016.

Clock Tower

Clock Tower

I think at the Cittadella.

Kodak Portra 160NC, Yashica Mat, Gozo, Aug 2016.

Scoop

Scoop

Photos don't do it justice. I actually found this more impressive than the Azure Window.

Ilford Pan F Plus, Yashica Mat, Gozo, Aug 2016.

These are the ten most recent posts (not counting the note drivel), for older posts see the Archive.