https://www.gravatar.com/avatar/aca0e16473affc5e8774274b4c259bcc?s=240&d=mp

Nick Kirsch

Streaks

I just discovered a new app, Streaks. I’m strangely excited about it, primarily because it forces me to prioritize: what are the six most important habits to me? I want to write more describing my recent journey with habits, but I’ll save that for another time.

I’ve been doing a great job on many habits with the help of Coach.me, but the simple truth is that the flexibility of the platform enables me to over-commit - and being over-committed impacts everything, not just the superfluous things.

Subject: Thanks!

It’s time - for me to find a new adventure. I do so knowing that this experience - spending time with you - will be a great source of pride, joy, and laughter for the rest of my life. Through Isilon, and later EMC, I experienced an amazing amount of professional learning, while spending my time with wonderful people; people I will enjoy spending time with for years to come. There were certainly challenging times and even on my most optimistic days I never imagined just how exciting the journey could be. I’m privileged and humbled.

The Sound of Music

My house is filled with music.

Eriko is singing O Holy Night (which is one of my favorite seasonal songs), the kids are jamming out with Japanese pop music from Eriko's childhood (on MD) - not to mention dancing and talking - and I'm ever aware of the gentle machine hum and the click of the keyboard.

What an awesome fall morning.

Nick's Location Changer - 1.0

% cat bin/locationchanger

#!/bin/bash
# Nick's Location Changer - 1.0
# 
# Automatically enables or disables Bluetooth depending on presence of
# the Thunderbolt adapter (en3).
#
# That makes it great for plugging and unplugging laptops, since
# Bluetooth keyboards and trackpads are really only used when attached
# to the Thunderbolt monitor.
#
# This makes sharing one Thunderbolt monitor between two systems (say,
# a Macbook and a Mini) really easy.  The inspiration came from the
# original LocationChanger:
#   http://tech.inhelsinki.nl/locationchanger/
#
# You should use the instructions to have OS X call the script. I also
# couldn't have done it without blueutil:
#
#     http://www.frederikseiffert.de/blueutil
#
# Good luck!
#
# WARNINGS
#
# XXX NMK - NO error checking. I'm sure this can break in many ways.

# XXX NMK - Detect interface automatically. For now use en3.  This is
#           the Thunderbolt interface on my MacBook Pro and MacBook Air.
INTERFACE=en3

# LOG
#
# To tail log: sudo tail -f /var/log/system.log | grep 'Bluetooth:' 
# To view log: sudo cat /var/log/system.log | grep 'Bluetooth:' 
#
LOGGER=/usr/bin/logger

BLUEUTIL=/usr/local/bin/blueutil
# http://www.frederikseiffert.de/blueutil/" 

# BLUE TOOTH STATUS
# We don't check for "off", we just check for "on".
BLUESTATUSSTR="0==on, 1==!on"
BLUESTATUS=`${BLUEUTIL} status | /usr/bin/awk '{print $2}'`
if [ ${BLUESTATUS} == "on" ]; then
    BLUESTATUS=0
else
    BLUESTATUS=1
fi
BLUESTATUSSTR="Bluetooth: now ${BLUESTATUS}; ${BLUESTATUSSTR})."

${LOGGER} "Location Changed - begin. ${BLUESTATUSSTR}".

# If the interface exists, "enable" bluetooth. Otherwise "disable."
/sbin/ifconfig ${INTERFACE}
if [ $? -eq 0 ]; then
    ${LOGGER} "${INTERFACE} exists, enabling ${BLUESTATUSSTR}."
    if [ ${BLUESTATUS} -ne 0 ]; then
        ${BLUEUTIL} on
    fi
else
    ${LOGGER} "${INTERFACE} does not exist, disabling ${BLUESTATUSSTR}."
    if [ ${BLUESTATUS} -eq 0 ]; then
        ${BLUEUTIL} off
    fi
fi

${LOGGER} "Location Changed - end. ${BLUESTATUSSTR}".

# XXX NMK - We exit with the same status as blueutil.
exit ${BLUESTATUS}