Brad Lucas

Programming, Clojure and other interests

iTunes Needs To Trim Input

August 29, 2017

This was odd. Logging into iTunes I noticed that a trailing space on the email address was not trimmed by iTunes on input.

Why? I'd vote that they should trim leading and trailing spaces on input


Continue reading →

Install Node On A Mac

August 28, 2017

Use brew.

$ brew install node

Continue reading →

Global Git Ignore

August 27, 2017

Create a .gitignore file in your home directory. For example:

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db


.classpath
.project
.settings/



# Emacs
*.*#
*~

Then run this command to set it as the ignore file to use globally.

$ git config --global core.excludesfile ~/.gitignore

Continue reading →

Installing Homebrew

August 26, 2017

$/usr/bin/ruby -e  \
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

When complete run:

$ brew doctor

Continue reading →

Dread Pirate Roberts

August 25, 2017

The other day I overheard a conversation among a small group picking names for a team.

The name of Dread Pirate Roberts was proposed.

Someone asked who is that and another responded with, "he was the guy who created the Silk Road".

As this happened I was thinking wasn't that the name of a character in the movie The Princess Bride.


Continue reading →