Brad Lucas

Programming, Clojure and other interests

Escape Games NYC

June 19, 2017

Yesterday, I had the pleasure of trying to escape a room over at Escape Games NYC on Leonard Street in New York. For a first timer at this sort of thing I can say it was well worth it and very fun.

Without giving away too much I can tell you that the idea, 'escape the room', is pretty much what you are in for. You and a small group are put in a room and have to figure out how to get out. Beyond that I can say each room has a theme and you need to just figure it out. There are 'things' in the room and you need to investigate and go from there.

The scenario for the room I signed up for had an outer space theme. There are others and each is rated on a difficulty scale. In learning about the room upon arrival I found that each room is custom built and upon finishing can say the people who built it are very clever.

Turns out that room escape games are a thing and there multiple places in New York and others throughout the country. Definitely, something to do. Which one is next?

Continue reading →

Father's Day

June 18, 2017

Today, our culture where I live celebrates fathers. Today, fathers will be treated a little bit better. They may allow themselves to sleep a bit later and may be absolved of chores for a day. Some may get a gift or two and may end up feeling a little bit special for the day. Others may not.

For me, I found myself this morning remembering the two father figures in my life. The first, my own father and the other, my grandfather who was my mom's father were the two male role models for me growing up.

My dad was very gregarious, at least as I remember him. He was friendly, quick to laugh and had many friends. My grandfather was quiet, stoic and kept to himself. While physically big and strong in a John Wayne sort of way, he could handle himself and generally did things for himself. My dad on the other hand relied on a group of associates and friends to get things done.

Dad

Continue reading →

Git Scripts - First Commit Authors

June 17, 2017

Overview

When you work in an organization with a large number of repoositories created over time there is sometimes a need to figure who created what. You want to know who was the author of each repo.

The following three scripts can help with this.

The first get-first-commit-log.sh will show you who was the first committer to a repo. You run it in the directory of a repo.

#!/bin/bash
# @see http://stackoverflow.com/a/5189296

# If the repo has no commits you'll get the following
# fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
# Use '--' to separate paths from revisions, like this:
# 'git <command> [<revision>...] -- [<file>...]'
#
# Using 2> /dev/null to ignore these

git log $(git rev-list --max-parents=0 HEAD 2> /dev/null) 2> /dev/null
Continue reading →

Up Early New York

June 16, 2017

Up Early

3, 4, 5

Train

Grand Central at 6 am

Continue reading →

Clojure NYC Report

June 15, 2017

Making SQL More Like Datomic With Clojure

Clojure NYC had another great talk last night with Michael Gaare of Ladders introducing his library sqlium. Michael has taken his experience with Datomic and has created a DSL for querying SQL databases with a Dataomic-like flavor.

The source for the library was just put up on GitHub last night at https://github.com/TheLadders/sqlium. It will be interesting to see how the library does as others start using it.

As a next step, it would be good if the source Michael demonstrated last night which used the MusicBrainz data set was published somewhere for review as well.

Background

Continue reading →