Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
EvilTerran
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
EvilTerran
7mo ago
You can add a screenshot button to the toolbar from the "Customise Toolbar" screen, does the exact same thing as that context menu item.
2.
▲
by
EvilTerran
1y ago
Same! I also enjoy reading SciPy as "skippy".
3.
▲
by
EvilTerran
4y ago
Back when I played Minecraft, I wrote one I was pretty pleased with: If you have a stack of items, you can pick up half of them by right-clicking on it, which is very convenient when you're dividing out a stack on the crafting grid to
4.
▲
by
EvilTerran
6y ago
Others have already mentioned that you can replace "for (const k in props) elem[k] = props[k]" with "Object.assign(elem, props)"; further to that, in modern browsers, you can replace "for (const kid of kids) elem.ap
5.
▲
by
EvilTerran
6y ago
I guess you could send changes to the DB on-the-fly inside a transaction, so when the user clicks "save" it's just a matter of running COMMIT? Not sure what effect that would have on performance as the transaction grows, thou
6.
▲
by
EvilTerran
6y ago
I believe you're thinking of the "Facebook Container" addon - it's "official", in that it's made by people at Mozilla & has their corporate blessing, but it's not installed by default. AIUI, the o
7.
▲
by
EvilTerran
6y ago
Could you not use permissions.request() [0] to ask for access to a given site on-the-fly, when the user actually visits it? That seems to be how, for example, Reddit Enhancement Suite goes about getting perms for all the various sites it su
8.
▲
by
EvilTerran
6y ago
Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. https://news.ycombinator.com/newsguidelines.html
9.
▲
by
EvilTerran
6y ago
I find PCRE's rule easy enough: for a character you want to be taken literally, if it's punctuation backslash it, if it's not then don't; any unbackslashed punctuation (or backslashed non-punctuation) may be a metacharac
10.
▲
by
EvilTerran
6y ago
> For instance most spray cleaners come in bottles made of high-density polyethylene, which can be readily recycled. But first consumers must remove the spraytops, as they are made from different plastics and are not recyclable. Then con
11.
▲
by
EvilTerran
6y ago
This post was your 22nd submission in the space of about an hour, in which time there were only 37 submissions from everyone else put together. One point in the new queue features six of your submissions in a consecutive row. Per the Guidel
12.
▲
by
EvilTerran
6y ago
> python came up without a platform to support it What about numpy (+ its ecosystem, scipy/pandas/etc)? I get the impression that's contributed a lot to Python's growth over the years.
13.
▲
by
EvilTerran
6y ago
So I changed the z-index of Div A to be 5 or something. But it didn’t work! In Firefox, div A was on top, but in Chrome, Div B was on top. Argh! Why? ... why indeed? I can't think of any (presumably fairly simple) scenario where that
14.
▲
by
EvilTerran
6y ago
Sure, I don't disagree - I meant only to add context for anyone reading who was unfamiliar with Haskell, lest they come away with the impression that the lack of a .get()-equivalent was some kind of egregious oversight.
15.
▲
by
EvilTerran
6y ago
> Hoogle doesn't seem to find me a function like Rust's .get() in the standard library In practice, you don't really need one - the safe alternative to "xs !! n" is pattern-matching on the result of "drop n
16.
▲
by
EvilTerran
6y ago
> if you're reducing the list to a scalar, you lose all the benefits this article wants to claim. Not quite - for example, these both benefit from foldr, despite each producing a scalar: and, or :: [Bool] -> Bool and = fold
17.
▲
by
EvilTerran
7y ago
Neat! I can see myself using several of these. Erratum: the link meant for "openssl-hook" actually takes you to "otherport".
18.
▲
by
EvilTerran
7y ago
Speaking of "concise", in modern browsers you can replace el.parentNode.removeChild(el) with just el.remove(): https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/r...
19.
▲
by
EvilTerran
7y ago
The point, as I understand it, is that we've found cases of galaxies that look like they should be about the same mass as each other based on the light they're putting out themselves, but gravitational lensing measurements indic
20.
▲
by
EvilTerran
7y ago
There's Hoogle, for Haskell: https://hoogle.haskell.org/ I don't know if it implements any techniques from that paper, but it does let you search for definitions by type signature. Of note, it also does a pretty g
21.
▲
by
EvilTerran
7y ago
Here's one: https://www.jneurosci.org/content/25/38/8593 Abstract: Nicotine is the major neuroactive compound of tobacco, which has, by itself, weak reinforcing properties. It is known that levels of th
22.
▲
by
EvilTerran
7y ago
Very well. In the vast majority of the UK , you don't need ID. That checkmark on your list remains misleading at best.
23.
▲
by
EvilTerran
7y ago
That list is wrong. I'm in the UK, we don't need ID to register or vote here.
24.
▲
by
EvilTerran
7y ago
That's just known expenditures by the Internet Research Agency, though. For a full accounting, you'd not only need to know if that was all the IRA spent, you'd also need to include, say... how much Russia spent on hacking int
25.
▲
by
EvilTerran
7y ago
> whatever, Russia bought a couple thousand dollars worth of ads. The Kremlin internet propaganda project had, at its peak, a budget of more than $1.25 million per month . It was doing a lot more than just buying adverts. https:/&
26.
▲
by
EvilTerran
7y ago
I have a similar problem on my firefox-on-android: when I load a mobile.twitter link, it usually pinwheels for a bit, then throws up an error - either "you're rate limited" or just "something went wrong" (or, occasi
27.
▲
by
EvilTerran
7y ago
The Atlantic have taken that principle & modernised it: every article ends not with a comments section, but an invitation to email them your thoughts; then they publish the cream of the crop on https://www.theatlantic.com
28.
▲
by
EvilTerran
7y ago
When a user whose password is hashed the old way logs in, after checking the password they just supplied against your stored old hash but before forgetting the plaintext, you can compute the new hash & update your records. Of course, th
29.
▲
by
EvilTerran
7y ago
Well, true, but all this is a lot more conspicuously fishy than "flip a setting that the user might have legitimately flipped themselves". You're not going to get far hiding a whole new Firefox install in $HOME before someo
30.
▲
by
EvilTerran
7y ago
That very page acknowledges your concern & presents their counterargument - namely, they consider security software to be part of the Windows model, and expect that to intervene in the case of modified binaries: > By baking the signi
More ›