Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arnehormann
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
arnehormann
2y ago
Try "Best served cold" by Joe Abercrombie. Followed by The Heroes. And to avoid minor spoilers, read the First Law trilogy first. All good books are great, The heroes is probably the best!
2.
▲
by
arnehormann
11y ago
you are replying to the original poster.
3.
▲
by
arnehormann
11y ago
A struct tag is just a string literal - according to the spec. The tags can only be accessed by reflect. The reflect api docs mention the convention. https://golang.org/pkg/reflect/#StructTag
4.
▲
by
arnehormann
11y ago
It is specified - a struct tag is just a string literal after a struct field. See https://golang.org/ref/spec#String_literals If you use backticks, the tag must not contain another backtick. On anything but a struct ta
5.
▲
by
arnehormann
11y ago
Superfish is a root certificate installed by crapware in the preinstalled windows version. It can be uninstalled or removed by a fresh OS install. I guess someone replacing hardware components in a notebook doesn't keep the preinstalle
6.
▲
by
arnehormann
11y ago
It's a non-classical example of arbitrage.
7.
▲
by
arnehormann
11y ago
I use "var undef;" at the top of a function and never set it to a value. Comparison with === is the same as with undefined. And it's nice for minification.
8.
▲
by
arnehormann
11y ago
And what about signal jamming or drones being shot down? Not only for package theft, also to strip or steal the drones themselves? I'm really curious how robust this delivery method is against external manipulation and general human mi
9.
▲
by
arnehormann
12y ago
you have missed mkdir -p ~/.config/git
10.
▲
by
arnehormann
12y ago
You should use switch v := i.(type) so you can access v as the type in a case.
11.
▲
by
arnehormann
12y ago
MariaDB enabled Cassandra as a storage engine: https://mariadb.com/kb/en/mariadb/documentation/storage-engi...
12.
▲
by
arnehormann
12y ago
My Java is getting rusty... I read about this sometime somewhere but forgot it, thanks! I should have picked something like "String getText()", then.
13.
▲
by
arnehormann
12y ago
Because of the implicit thing! The api designer doesn't have to write the interface, you can do it yourself. As long as naming conventions are kept to and the signature matches, you can apply this anywhere. Imagine a close() interface
14.
▲
by
arnehormann
12y ago
There's a great video treating imperial measurement units. I instantly fell in love with it: http://www.youtube.com/watch?v=r7x-RGfd0Yk I landed there after watching one on paper sizes on the same channel. Also pretty
15.
▲
by
arnehormann
12y ago
I really doubt that, where does it say so? AFAIK, he supported the TweetNaCl in C. That does not mean anything concerning this port.
16.
▲
by
arnehormann
12y ago
The costs: allocating the memory, having it set to zero values and keeping the garbage collector a little busier. All of that more than once if you don't keep the conversions down. Profile and disassemble your program, Go comes with pr
17.
▲
by
arnehormann
12y ago
I believe that's a good thing - I prefer a small api surface to a large one and I don't want to spend time digging through never ending functions to locate what I have to use. For me, next to everything from Microsoft is an exampl
18.
▲
by
arnehormann
12y ago
It doesn't need to. You could also write type Runes []rune but the struct variant has the advantage that you can get the array back without any conversions - it's pretty cheap. And you can embed it. That's an advantage if
19.
▲
by
arnehormann
12y ago
The setup needs a little boilerplate, but it's definitely possible. And it can support different sort orders after writing the boilerplate once. For those wanting to test drive it: http://play.golang.org/p/I_Vu34hU
20.
▲
by
arnehormann
12y ago
I wrote a ruby script to help with OpenVPN. https://gist.github.com/arnehormann/9744964 There's a usage howto in the comments and this should be short enough to fully grasp what it does. No third party requirement
21.
▲
by
arnehormann
12y ago
Length could be encoded differently, as a varint. As long as the highest bit is set, the next byte is also part of the length - just left-shift the result so far by seven and add the 7 lower bits, as soon as the highest bit is 0 we have the
22.
▲
by
arnehormann
12y ago
TCP and UDP use the same underlying wire and the same hardware. If UDP would lose a packet or it would arrive late, the same could happen to TCP. TCP will retransmit and you lose a little bandwidth. But in both cases, you can't use the
23.
▲
by
arnehormann
13y ago
And how about Codemirror? It's mainly used for monospace code editing and it's missing a UI and editing widgets, but the configurability and maturity should blow everything else out of the water. A demo showing it's not only
24.
▲
by
arnehormann
13y ago
Right now they say replace all occurrences of "upstart" with "Mir" and all occurrences of "systemd" with "Wayland". I can't see how that would work.
25.
▲
by
arnehormann
13y ago
They will continue to provide it. Part of what he wrote: > We’ll certainly complete work to make the new logind work without systemd as pid 1.
26.
▲
by
arnehormann
13y ago
Your regexps are wrong, these replacements don't make any sense at all.
27.
▲
by
arnehormann
13y ago
ChaCha is a little faster and apparently a little more secure. Dig through http://www.ietf.org/mail-archive/web/tls/current/msg10843.ht... for reference. EDIT found a better one: http://www.ie
28.
▲
by
arnehormann
13y ago
Also look at a list of proposed ways to add generics (and why they didn't make it): https://github.com/remyoudompheng/go-misc/blob/master/generi...
29.
▲
by
arnehormann
13y ago
This is too late to help you, but still... BitSets: look at math/big - not that intuitive, but what you need is probably there. Sets: I wrote https://gist.github.com/arnehormann/6234573 while thinking about an api
30.
▲
by
arnehormann
13y ago
You should take a look at the code. It uses quite some subpackages, each importable on its own. I didn't look INTO it, but the dependency information from http://godoc.org/github.com/smartystreets/goconvey an
More ›