Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thegeekpirate
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
thegeekpirate
4y ago
Had an account since beta. Don't recall receiving a single spam email until a few months ago at the very least, and have been receiving one roughly every couple of weeks. Very odd indeed.
92.
▲
by
thegeekpirate
4y ago
You can't use the error handling part of the spec without invoking an error. Good minifiers will do the same, fwiw.
93.
▲
by
thegeekpirate
4y ago
<link href=data: rel=icon> will work just fine ;) Another fun trick is using <!doctypehtml> since the spec says to pretend a space is there if not present for whatever reason ( https://html.spec.whatwg.org/multipa
94.
▲
by
thegeekpirate
4y ago
Use golangci-lint ( https://golangci-lint.run , https://github.com/golangci/golangci-lint ) which combines all of the best lints (including staticcheck).
95.
▲
by
thegeekpirate
4y ago
Here's the Canadian drought map in case anyone's curious https://agriculture.canada.ca/en/agriculture-and-environment...
96.
▲
by
thegeekpirate
4y ago
> It’s one of those cheap bottom of the barrel vendors which of course takes shortcuts to make the price so cheap. NameCheap is only the cheapest for _one_ TLD in terms of renewal cost ( https://tld-list.com/registrars ).
97.
▲
by
thegeekpirate
4y ago
There's also https://wails.io , which uses Go instead of Rust.
98.
▲
by
thegeekpirate
4y ago
> My wife and I are watching the "Little House" TV series on DVD again currently. FWIW the Blu-ray version is great, although they didn't remaster the audio to remove pops/hisses.
99.
▲
by
thegeekpirate
4y ago
This is the first time I've gotten a real headache by looking at a website, and I'm assuming the culprit was too much movement mixed with only a couple hours of sleep. Make sure the spin on the 360 view is user-controllable, and g
100.
▲
by
thegeekpirate
4y ago
It's been gone for a few months now, so it's not looking likely. Actually ended up writing my own which I now prefer, but I do hope you're correct since it's so useful to others.
101.
▲
by
thegeekpirate
4y ago
Here's the fork that added Firefox support ( https://github.com/codebicycle/videospeed , https://addons.mozilla.org/en-US/firefox/addon/videospeed/ ), and it's saved me so mu
102.
▲
by
thegeekpirate
4y ago
Yep, it was 20TB from what I recall.
103.
▲
by
thegeekpirate
4y ago
You can instantiate it with [any] then use whatever you'd like https://go.dev/play/p/JeSuB_xYNEf , but I don't think it would work with a type constraint such as `int|string`, which would be a fair point.
104.
▲
by
thegeekpirate
4y ago
You can certainly use generic parameters in methods—the [T any] just has to be on SomeNonGenericType, even if it's not used inside the type itself https://rakyll.org/generics-facilititators
105.
▲
by
thegeekpirate
4y ago
I was simply giving an example of only using a single assignment, as the parent stated: > and you don't need two separate assignments. Although I do use it far more often nowadays than a decade ago. I've even mentioned it befor
106.
▲
by
thegeekpirate
4y ago
Excluding any lines that aren't Go code, and from projects that I can recall off the top of my head: Kubernetes = 3.87 million, Go = 1.75 million, CockroachDB = 1.65 million, TiDB = 725k, Consul = 375k, Nomad = 375k, InfluxDB = 375k, M
107.
▲
by
thegeekpirate
4y ago
For comparison, in Go it would be: foo := func() string { if bar { return "this" } return "that" }()
108.
▲
by
thegeekpirate
4y ago
I wrote https://golangti.me because I never remember _any_ of the formatting types (besides Excel (which isn't as extensive)—d, dd, ddd, dddd, m, mm, mmm, mmmm, mmmmm...).
109.
▲
by
thegeekpirate
4y ago
The language has a tool that does this, and every editor I can think of uses it ( https://github.com/golang/tools/tree/master/cmd/guru ), specifically implements.go if you're interested.
110.
▲
by
thegeekpirate
4y ago
Every major editor I can think of has a way to find out what implements an interface using guru ( https://github.com/golang/tools/tree/master/cmd/guru ). In VSCode, it's right-click -> Find Al
111.
▲
by
thegeekpirate
4y ago
Looks like this is the official announcement: https://global.toyota/en/newsroom/corporate/36615119.html
112.
▲
by
thegeekpirate
4y ago
A few years ago I watched the entirety of Ghibli's collection (besides Tales From Earthsea) with my family, having only seen Grave of the Fireflies and Spirited Away previously. Every single film was fantastically unique and worth the
113.
▲
by
thegeekpirate
4y ago
I'd never use Go to write a kernel in, but you can disable the GC using `GOGC=off`.
114.
▲
by
thegeekpirate
4y ago
You might enjoy https://golangti.me which I wrote to help with my inability to remember it!
115.
▲
by
thegeekpirate
4y ago
I had to write https://golangti.me because I found it impossible to remember otherwise!
116.
▲
by
thegeekpirate
5y ago
Please stop posting this on every comment you agree with, as you're not adding anything useful to the discussion, while also sending alerts to people for no good reason. Click on the upvote button instead.
117.
▲
by
thegeekpirate
5y ago
You've also opened yourself up to bugs by allowing the map values to be "false". Using a "set's" value in an if statement doesn't make sense either, compared to if _, exists := something[item]; exist
118.
▲
by
thegeekpirate
5y ago
> with a map[T]bool This takes up unnecessary space—use map[T]struct{} instead, which also explains to anyone reading the code that the value isn't used.
119.
▲
by
thegeekpirate
5y ago
No, that's skiing ;) https://tribes.fandom.com/wiki/Skiing
120.
▲
by
thegeekpirate
5y ago
Be warned that they disable free accounts at random, and support will not respond to you. There's many threads in the subreddit about this, and it also happened to me personally.
More ›