June 15, 2012

Optimize for motivation: Post on Lincoln Loop’s blog

Posted in Behaviour at 17:15 by graham

Excited to have my first post on Lincoln Loop’s blog, about intrinsic motivation, flow, and why you don’t find cats in offices:

When your client is hundreds of miles away, but your bed only three feet, it helps to understand motivation.

The first thing to understand about motivation is that it’s not something you do to someone. That’s called coercion. With enough power you can make anyone do almost anything, but you can’t make them want to; and typically …

Read the rest at Lincoln Loop

June 14, 2012

Go: Targeting a different architecture #golang

Posted in Software at 01:08 by graham

Problem: You’re on a i386 machine, and you need to build for amd64, or vice-versa.

Get the libc for the other architecture. Get both, one of which you’ll already have:

# Debian / Ubuntu family
sudo apt-get install libc6-dev-amd64 libc6-dev-i386

Build the Go compiler for the other architecture:

cd $GOROOT/src
GOARCH=amd64 ./make.bash    # or GOARCH=386 for the other direction

Set the architecture before building your program:

GOARCH=amd64 go install <my_project>  # or GOARCH=386

The first two steps you only need to do once.

Thank you zephyrtronium in freenode#go-nuts for the help.

For other architectures, see Dave Cheney’s An introduction to cross compilation with Go