HNHacker News
TopNewBestAskShowJobs

ekke

37 karma · joined August 13, 2013

maybe.
submissionscomments
ekke··on How to Handle Monetary Values in JavaScript

  (1.005).toFixed(2) // Expected rounding to "1.01"
  "1.00"
ekke··on Micro.blog
Hm, re: "ads are everywhere" - is it just me, or are two of the three sample posts in the screenshot content-based ads?

First for the novel Cibola Burn, and third for the app Halide.. the middle post seemingly is a reply to an ad of some book series as well :) Or "influencer" paid content != ads?

ekke··on Massachusetts gas fires: Another technological tragedy
This is fascinating. For anyone interested in a slightly odd but unique and in-depth view of Systems design and failure, would like to recommend "The Systems Bible: The Beginner's Guide to Systems Large and Small" by John Gall.

https://www.amazon.com/Systems-Bible-Beginners-Guide-Large/d...

ekke··on Ask HN: Which non-programming books are a beneficial read for programmers?
In that section, would like to add recommendations for:

- "Being Geek: The Software Developer's Career Handbook" https://www.amazon.com/Being-Geek-Software-Developers-Handbo...

- "Team Geek: A Software Developer's Guide to Working Well with Others" http://shop.oreilly.com/product/0636920018025.do -- Software engineering teamwork a-b-c. I'd love to work on teams where everyone has read this one.

[edit: 2nd edition of "Team Geek" is titled "Debugging Teams"; having read both, no difference which you get]

ekke··on ‘My Hovercraft Is Full of Eels’ in Many Languages
This is HN after all - some version of ES/JS:

  class Eel {
      valueOf () { 
          return 'https://imgflip.com/meme/Bad-Joke-Eel';
      }
  }

  const craftCapacity = 331,
        hovercraft = Array.from(Array(craftCapacity), () => new Eel);
ekke··on Backdoor injected to NPM express-cookies package
Sure, and at least few more people :)
ekke··on Backdoor injected to NPM express-cookies package
NPM guys explain it in the blog today: https://news.ycombinator.com/item?id=16975025
ekke··on Backdoor injected to NPM express-cookies package
And NPM took it down quickly, whew.
ekke··on Seven Puzzles You Think You Must Not Have Heard Correctly (2006) [pdf]
Good one!

A naive strategy where they never die, and hopefully stay in prison for slightly less than a few billion years:

One prisoner is the light-counter (Mr C). Others follow a simple pattern - if the light is off, and they have never turned it on yet, turn it on. If it is already on, or they have already ever turned it on, do nothing.

Mr C enters the room, if the light is on, remembers it, and turns it off.

When Mr C has entered the room 99 times with light on, he can say 'Yes' and they are safe.

This can be optimized. How?

ekke··on Tim Sweeney: Microsoft wants to monopolise games development on PC
Nice photo caption fail: "Minecraft is developed by Swedish company Mojang. Will future games be developed now that Microsoft is closing its borders?"

In the light of: https://mojang.com/2014/09/yes-were-being-bought-by-microsof...

ekke··on Regex Golf
Got hooked and to 3202, but ca 10-20 more points could be gained according to answers here and there: https://gist.github.com/jonathanmorley/8058871

Kudos to the author of the game, good job.

PS. http://regexcrossword.com/

ekke··on Regex Golf
390:

  ^[lwp]|fa|r[ro]|[isytd]l|c$|de
ekke··on Regex Golf
Nice, turn it around for 199:

  ^.{5}[^e]?$
ekke··on Aren't you tired of using "cd ../"
Why not? Because it changes the meaning of '.':

  ~$ echo date > d.sh
  ~$ d.sh
  -bash: d.sh: command not found
  ~$ . d.sh
  06:37:21 EDT 2013
  ~$ alias .='cd ../'
  ~$ . d.sh
  /home$ Is not works!
But another alias with no previous meaning would do well - i use 'up' :)