Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jimsmart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
271.
▲
by
jimsmart
8y ago
In the example you link, there are 18 coloured lines, 4 of which are not green: 4/18 = ~0.22 = ~22%. This tallies-up as expected with the 77.78% coverage shown at the top of the file. Codecov* doesn't count an 'if' state
272.
▲
by
jimsmart
8y ago
In the above linked article you say: > Codecov is barely adequate. For Go, they count non-code lines (comments etc.) as not executed. It's impossible to get 100% code coverage as reported by the tool. I have an open source Go projec
273.
▲
by
jimsmart
8y ago
I'm pretty sure initially they said the number was only used for two-factor authentication. Who in their right mind wouldn't want two-factor authentication? Particularly as other sites were offering it (and haven't changed th
274.
▲
by
jimsmart
8y ago
> proper context. That's not 'tests' — tests would be something like Mocha, or Jasmine — what you're actually talking about here is one of the many forms of ad hoc in-browser debugging.
275.
▲
by
jimsmart
8y ago
> Use init() to compile any regular expressions and store them as variables within that package No need to resort to init() for regexps, simply use an unexported package level variable: var validFoo = regexp.MustCompile(...)
276.
▲
by
jimsmart
8y ago
Personally I'd use usersByID and users - I nearly always name my maps thingsByKey, and my default is that a plural thing on its own is nearly always a list, so adding a suffix of List doesn't add anything much here for me (Cheney&
277.
▲
by
jimsmart
8y ago
I used to run ops for a mailing list with over 1 million subscribers (all double-opt-in — perhaps you should google that?). We never had to bother avoiding any of the measures you deliberately subvert, because our mail was all legitimate. G
278.
▲
by
jimsmart
8y ago
Converting lat/longs to Uber's H3 [1][2] system might prove useful here. Because H3 indexes are hierarchical, you can easily truncate them to obtain less precision. And then convert them back into lat/longs after truncation.
279.
▲
by
jimsmart
8y ago
In this instance, I think it's got less to do with harvesting data from the lookups, and more to do with ensuring advertising gets shown? i.e. I suspect Google force their own DNS so that one cannot so easily use e.g. PiHole to filter
280.
▲
by
jimsmart
8y ago
Very much related, "Populating the Semantic Web—Combining Text and Relational Databases as RDF Graphs", Kate Byrne. - http://homepages.inf.ed.ac.uk/kbyrne3/docs/thesisfinal.pdf
281.
▲
by
jimsmart
8y ago
Related paper by Stephen Reed, "A (very) brief introduction to fluid construction grammar" - https://www.researchgate.net/publication/228378264_A_very_br...
282.
▲
by
jimsmart
8y ago
Actually, the online API for FRED seems broken, and none of it seems to be open source - and the paper is light on details.
283.
▲
by
jimsmart
8y ago
Maybe take a look at FRED? (Disclaimer: not used it myself) - Homepage http://wit.istc.cnr.it/stlab-tools/fred/ - Paper https://www.researchgate.net/publication/280113533_FRED_From... There a
284.
▲
by
jimsmart
8y ago
Signature hashs of the files, (possibly/probably) with those signature hashs being further signed/verfied with the user's key, to establish trust. With further chains of trust through key signing, if needed.
285.
▲
by
jimsmart
8y ago
In kjetilk's profile... > about: Hacker, community guy and project release manager at Inrupt, working on Solid. HTH
286.
▲
by
jimsmart
8y ago
> links a unique human readable name to a public key Easy: use DNS, store the PGP key ID a TXT records, and then look up the public key for that ID using a PGP key server.
287.
▲
by
jimsmart
8y ago
The points made are all valid, but in all of the times I’ve used XPath, the XPath side of things has been inside the code that we control - I’ve never encountered a use case where the XPath comes from an external source / is provided b
288.
▲
by
jimsmart
8y ago
Agreed, it is potentially ambiguous if one doesn’t follow the field. Clicking the link takes you to the Github repo, which states ‘natural language processing’ in its title (though perhaps it didn’t earlier). The title of this HN post has b
289.
▲
by
jimsmart
8y ago
Natural language processing
290.
▲
by
jimsmart
8y ago
Another option I don't see mentioned so far: We use VirtualMin on our servers for all of our commodity hosting (it is based upon WebMin). There is an open source version and a pro version. We use the pro version — I don't personal
291.
▲
by
jimsmart
8y ago
Look for a bundle like this [1], the only 'buiilding' it requires is putting the Pi into the case, and plugging in the controllers and PSU. It doesn't come with RetroPie, but that's easy to put onto an SD card. As a bonu
292.
▲
by
jimsmart
8y ago
I see HN doesn't do lists very well / at all? Hmm.
293.
▲
by
jimsmart
8y ago
Most software is just reacting to inputs, yes, and AI algorithms are no different there. But one should recognise the inherent reductionism in any such statements claiming that that's all AI is. Even if/when we do have AGI, it wil
294.
▲
by
jimsmart
8y ago
Looks great, thanks! — There's a typo/bug in the example code: if not r.URL.Query().get("repeat") and not r.URL.Query().get("repeat"): Should of course read: if not r.URL.Query().get("repeat") and not
295.
▲
by
jimsmart
8y ago
Sure, agreed. But I guess it depends on whether one wishes to stick with a search algorithm, and improve upon it, or, whether one wants to implement a completely different algorithm instead.
296.
▲
by
jimsmart
8y ago
Agreed, good call. Another possible optimisation might be to order the generated next-moves, so that the 'better' options are returned earlier in the list. Although I'm not sure what 'better' here means, exactly. Bu
297.
▲
by
jimsmart
8y ago
There's no mention of the word 'search' within the blog post, but this is classic search algorithm: depth-first search (recursing depth first, with no heuristic). https://en.wikipedia.org/wiki/Depth-first
298.
▲
by
jimsmart
8y ago
There’s a tool called fix, it’s already part of the standard Go distribution. In the past (mostly pre 1.0, IIRC?), it’s used to apply changes to one’s codebase when migrating between Go releases that introduce incompatible changes. https:&
299.
▲
by
jimsmart
8y ago
Arguably this is somewhat of a kludge(?), but one option (which would involve less coding than making the engine work with different encodings) would be to use readers/writers to support other formats, and keep using UTF-8 internally.
300.
▲
by
jimsmart
8y ago
I know this, hence me stating Ant Design is documented primarily in Chinese. I was simply using the same terms as the OP — perhaps that’s where your niggle should really be directed? ;)
More ›