Go to Top
The brain is sort of infinity. I think that’s the problem. You’ve got trillions of connections, and they’re not soldered.

Pat Levitt, PhD, Simms/Mann Chair in Developmental Neurogenetics at Children’s Hospital Los Angeles.

Via Neuroscience

(Source: researchchla)

(Reblogged from neurosciencestuff)
Procrasticoding:
/prəˌkrastəˈkōdiNG/
procrasti noun, from Latin prōcrastinātum, past participle of prōcrastinō (“defer, put off till tomorrow”).
+ coding noun, from English to code, (“the process of assigning a code to something for the purposes of classification or identification”).

Definition: Procrasticoding is coding something you know you don’t need at the moment, because you really should be writing something a lot harder but you’re too lazy to do it.

Example: “I had to write a class to drive a 1024 drone fleet, but I spent all day procrasticoding and ended up refactoring the contact form of our website”.

This is a thing.

Behold, the fish cannon. Video. Via.

As a developer I must say moving to Oaxaca has been the best idea ever.
Because the coffee here is absolutely great.

Installing Go in Bluehost

Start out by loging in and making sure you are in your home directory:

ssh user@domain

Next select your architecture from the Golang downloads page and download the package and uncompress it.

wget -O ~/go1.3.1.linux-amd64.tar.gz https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz
tar -xvf go1.3.1.linux-amd64.tar.gz
rm go1.3.1.linux-amd64.tar.gz # Cleanup!
vi ~/.bashrc

At the bottom of your .bashrc file add

# Configuration for Go
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
# Go projects
export GOPATH=$HOME/goprojects
export PATH=$PATH:$GOPATH/bin

Save your .bashrc file and refresh it using source. Then make sure all the needed directories required are created.

source .bashrc
mkdir $GOPATH/src $GOPATH/bin $GOPATH/pkg
mkdir -p $GOPATH/src/github.com/$USER/hello

Now we can write our first Go script!

vi $GOPATH/src/github.com/$USER/hello/hello.go

And type in the following:

package main

import (
        "fmt"
        "net/http"
        "net/http/cgi"
)

func hello(w http.ResponseWriter, r *http.Request) {
        fmt.Fprintf(w, "Hello from Go!")
}

func main() {
        http.HandleFunc("/", hello)
        cgi.Serve(nil)
}

Next write and exit and compile the source to a cgi file located at your public web folder:

go build -o ~/public_html/hello.cgi hello.go

Now you can visit yourdomain.com/hello.cgi and go get a cup of tea to admire your first little go script.

(Reblogged from nosql)