Where I've Been Since November 2014 (aka Breaking Your Femur 101)

author image
By Ben Radler

The Accident

On November 17, 2014 at around 9:30AM, I was involved in a bicycle accident at the intersection of 3rd Street and Market Street in San Francisco. I was traveling northbound on Market Street at around 10 miles per hour as I entered the intersection on a solid green light.

There was a man standing in the middle of market street, and at the very last moment, he stepped directly in front me. I collided with him handlebars-to-chest, and immediately fell to my right side. Despite over 20 years of bicycling, I went against my instinct and stiffened up and put my hand down to my side. My hand and wrist broke much of my fall, and I put a hairline fracture in the scaphoid bone in my right wrist.

Continue Reading

NPM and Nodemon install errors

author image
By Ben Radler

Having trouble getting packages installed in NPM? Getting an error that looks like this??

~ npm install -g nodemon
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.0
npm ERR! path /Users/me/.nvm/v0.10.32/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/mkdirp/package.json
npm ERR! code ENOENT
npm ERR! errno 34

npm ERR! ENOENT, open '/Users/me/.nvm/v0.10.32/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/mkdirp/package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
~ which npm
/usr/local/bin/npm
~ node -v
v0.10.32
~ which node
/Users/me/.nvm/v0.10.32/bin/node
~ cd ~/Code/onelogin/search

The solution is simple.

Continue Reading

Awesome Git Configuration, Shortcuts, and Aliases

author image
By Ben Radler

Introduction

When working with Git, and software in general, the most important thing for me is that the act of using the application blends seamlessly into my workflow. It should feel natural, simple, and shouldn't slow you down.

I've worked with Git for a few years now, and like all things, I've kept track of my favorite tweaks and configurations. I'd like to share a few of the most awesome Git shortcuts I use on a daily basis.

Continue Reading

Bangs (exclamation points) in front of function definitions in Javascript?

author image
By Ben Radler

I recently came across a function declaration with a Javascript syntax that I had never seen before.

!function() {
  // some logic
}

This ! bang is called the unary operator.

I immediately started playing around in the Node console to try and understand this syntax.

Continue Reading

Github Pull Request Template for Gitflow

author image
By Ben Radler

Here's a quick helpful template that we've refined through our work at Boombotix and OneLogin: a short pull-request template that can be used to inform team members of the status and scope of a particular feature branch.

Click here for the template

Continue Reading

© 2022 benradler.com. I love you.