This file contains 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
// haversin(θ) function | |
func hsin(theta float64) float64 { | |
return math.Pow(math.Sin(theta/2), 2) | |
} | |
// Distance function returns the distance (in meters) between two points of | |
// a given longitude and latitude relatively accurately (using a spherical | |
// approximation of the Earth) through the Haversin Distance Formula for | |
// great arc distance on a sphere with accuracy for small distances | |
// |
This file contains 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
hugo -v | |
INFO: 2015/05/09 Using config file: /home/lars/devel/website/www.larsth.dk/config.toml | |
INFO: 2015/05/09 syncing from /home/lars/devel/website/www.larsth.dk/themes/hyde-x/static to /home/lars/devel/website/larsth.github.io/ | |
INFO: 2015/05/09 syncing from /home/lars/devel/website/www.larsth.dk/static/ to /home/lars/devel/website/larsth.github.io/ | |
INFO: 2015/05/09 found taxonomies: map[string]string{"category":"kategorier"} | |
panic: runtime error: invalid memory address or nil pointer dereference [recovered] | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x0 pc=0x47ab4b] | |
goroutine 1 [running]: |
This file contains 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
{ | |
"tcp6host":"[::1]:10001",, | |
"wgs84_nogps":{ | |
"latitude":55.69147, | |
"longitude":12.61681, | |
"altitude":2.01 | |
} | |
} |
This file contains 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
) | |
func main() { |
This file contains 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
# Problem description | |
By default I, and I assume every one else, cannot open another "Discussion Stream" in a new pane. | |
# Expected behaviour | |
I can open a "New" Discussion Stream and/or a "Followed" Discussion Stream in a new browser pane from a "Popular" Discussion Stream. | |
The action is known as following a link on a HTML page. |