Daniel McGraw

Senior Software Engineer @ Trip30 living the Boulder life

Read this first

Git Literate

The Problem

We’ve just shipped a private Beta at Trip30.com and noticed how easy it is to accidentally push code into production when you meant to push to release. We needed a solution to make us pause for a second and do a bit of mental verification. ‘Is what we’re pushing going to the right remote repository and, if so, is it ready for that repository?’

The Solution

Our solution not only creates the pause for reflection, but is also fun and educational.

Enter Git Literate.

Git Literate is a pre-push hook that randomly picks a word from the dictionary and asks you to retype the word before your push will succeed. If you fail to retype the word correctly the push will be aborted.

The Benefits

Not pushing broken or unfinished code to production on accident is priceless. Having fun and learning new words regularly while protecting yourself from a repository breaking mistake...

Continue reading →

Physicist diet

I’ll let you in on the real secret to dieting and weight maintenance.

The first law of thermodynamics

Conservation of energy states the internal energy E as equal to the difference of the heat transfer Q into a system and the work W done by the system.

ΔE = Q - W

In a health context this means the energy you intake (in calories) minus the energy you burn (in calories) results in either weight gain, loss or maintenance.

  • If you intake more calories then you burn you will gain weight
  • If you intake less calories then you burn you will lose weight
  • If you intake as many calories as you burn you will maintain your weight

A pound of fat

There are 3,500 calories in a pound of human fat. Meaning, that if you can find your Basal Metabolic Rate (the base amount of calories you would burn in a day if you are at complete rest) and intake 500 less calories a day, you could lose a...

Continue reading →