Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
megawatthours
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
megawatthours
9y ago
>And don't even get me started on the async keyword Please do! Genuinely curious what you don't like about it.
2.
▲
by
megawatthours
9y ago
That code does the same thing as https://news.ycombinator.com/item?id=15302465 but not the same thing as the code in the article.
3.
▲
by
megawatthours
9y ago
Same reason given in the bluebird library documentation: > Promise.reduce will start calling the reducer as soon as possible, this is why you might want to use it over Promise.all (which awaits for the entire array before you can call Ar
4.
▲
by
megawatthours
9y ago
https://doesmysiteneedhttps.com/
5.
▲
by
megawatthours
9y ago
Is there a standard way to avoid attacks based on abusing your window.location.replace() calls?
6.
▲
by
megawatthours
9y ago
Something I see often and is a huge code smell to me is not using the most restrictive form of iteration. If you see collection.map(...) you know that each iteration is simply a pure function from original element to transformed element, wh
7.
▲
by
megawatthours
9y ago
foobar works perfectly and with no noticeable performance difference on linux in wine, and is imo miles better than any of the native linux apps.
8.
▲
by
megawatthours
9y ago
Very well designed website.
9.
▲
by
megawatthours
9y ago
You can do this in Java using derive4j: https://github.com/derive4j/derive4j . It generates code for algebraic data types which offer a typesafe interface similar to the `case` statements in languages that natively supp
10.
▲
by
megawatthours
10y ago
Relevant and very entertaining read: The Dice Man
11.
▲
by
megawatthours
10y ago
> would have to know the hash of the file which requires them to already know the contents of the file That is incorrect. Knowing the hash does not mean you know the contents of the file. You should generate encryption keys randomly, pre
12.
▲
by
megawatthours
10y ago
From looking at "upload.js" you are using AES in counter mode. var aesCtr = new aesjs.ModeOfOperation.ctr(encryptionKeyBytes, new aesjs.Counter(-1)); Please use https://github.com/bitwiseshiftleft/sjc
13.
▲
by
megawatthours
10y ago
The map doesn't change on page reload, and I'm guessing you didn't change it while training. Doesn't that mean these cars are trained only for this map? Surprisingly, they seem to successfully avoid user-added obstacles.
14.
▲
by
megawatthours
10y ago
It's really easy with Mate or gnome-flashback. sudo apt-get install mate-desktop gets you a really nice desktop, almost identical to Ubuntu pre-Unity. Then you just need to use main = xmonad mateConfig in xmonad.hs and ch
15.
▲
by
megawatthours
10y ago
XMonad hits a sweet spot no other window manager does for me: import XMonad.Config.Mate main = xmonad mateConfig and just like that I have XMonad running inside my mate desktop, without the need to manually configure a status bar
16.
▲
by
megawatthours
10y ago
I think you're being overly obtuse. The point they're making is that browsers don't automatically send anything after the # to the server. This makes it possible to implement apps where all decryption is done on the client
17.
▲
by
megawatthours
10y ago
I never got the Java argument. I would much rather fail early and noisily with an NPE than return false and let my program happily chug along when it wasn't expecting a null. If the value is intended to be nullable, I would use an op
18.
▲
by
megawatthours
10y ago
This claims to improve static websites by adding hot reloading, search, React, the NPM ecosystem, and faster page load. Search can already be done using Jekyll https://blog.algolia.com/instant-search-blog-documentation-j...
19.
▲
by
megawatthours
10y ago
JS: The Good Parts is obsolete
20.
▲
by
megawatthours
10y ago
In webpack.config.js > if (IS_PRODUCTION) { > config.devtool = 'source-map'; Ouch! This will make for a huge bundle. See https://webpack.github.io/docs/configuration.html#devtool Merge request here: h
21.
▲
by
megawatthours
10y ago
>It's the best Macbook I've ever owned What's so good about it?
22.
▲
by
megawatthours
10y ago
> I am going to send over 15 cute boys for you to kiss You're a cool dad.
23.
▲
by
megawatthours
10y ago
You should mention that a 648MW solar power plant produces 5.67 TWh/year (648 * 365 * 24). It doesn't seem that unimpressive then.