Live data from Hacker News

Viewing profile — megawatthours

megawatthours

HN member
Joined
Wed, Nov 30, 2016, 6:35 PM UTC
HN karma
89
Public activity
23 items

About megawatthours

No profile information was provided.

Recent public activity

  1. comment
    Comment #15393340

    >And don't even get me started on the async keyword Please do! Genuinely curious what you don't like about it.

  2. comment
    Comment #15302589

    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. comment
    Comment #15302580

    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 …

  4. comment
    Comment #15227711

    https://doesmysiteneedhttps.com/

  5. comment
    Comment #15201064

    Is there a standard way to avoid attacks based on abusing your window.location.replace() calls?

  6. comment
    Comment #15082291

    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 pu…

  7. comment
    Comment #14635618

    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. comment
    Comment #14416737

    Very well designed website.

  9. comment
    Comment #14155665

    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` sta…

  10. comment
    Comment #13868137

    Relevant and very entertaining read: The Dice Man

  11. comment
    Comment #13810236

    > 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 th…

  12. comment
    Comment #13810217

    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/…

  13. comment
    Comment #13744110

    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 …

  14. comment
    Comment #13705309

    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 mai…

  15. comment
    Comment #13704954

    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, wi…

  16. comment
    Comment #13695848

    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 …

  17. comment
    Comment #13669993

    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 th…

  18. comment
    Comment #13669716

    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…

  19. comment
    Comment #13599238

    JS: The Good Parts is obsolete

  20. comment
    Comment #13589158

    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 M…

  21. comment
    Comment #13539763

    >It's the best Macbook I've ever owned What's so good about it?

  22. comment
    Comment #13139284

    > I am going to send over 15 cute boys for you to kiss You're a cool dad.

  23. comment
    Comment #13073351

    You should mention that a 648MW solar power plant produces 5.67 TWh/year (648 * 365 * 24). It doesn't seem that unimpressive then.