Dashing widget to display plan build details from your Bamboo instance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exercise: Loops and Functions | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := float64(1) |
The default configuration after installing PostgreSQL 9.4 only allows localhost tcp connections, or using Unix domain sockets. This isn't sufficient when setting up a database server separate from the app server.
- Open
/etc/postgresql/9.4/main/postgresql.conf
and look for thelisten_addresses
setting. The default islocalhost
. Change it to*
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
rand.Seed(time.Now().UTC().UnixNano()) | |
output, _ := os.Create("generated_names.txt") | |
defer output.Close() | |
for i := 0; i < 200; i++ { | |
name := GetRandomName(0) | |
email := fmt.Sprintf("%s@%s\n", name, domains[rand.Intn(len(domains))]) | |
output.Write([]byte(email)) | |
} |