News for hackers. Stuff that matters.

SimonSelg

Re:The Matasano Crypto Challenges (2013) on Thursday August 17, 2017 @10:59AM (#15037348)
Thanks for including "(blog post about completing them)" in the title.
Same here. 118ms vs 29ms (average round trip time).
Re:Open sourcing our Android and iOS apps on Wednesday December 14, 2016 @02:04PM (#13178712)
This is awesome! Open source production apps are always useful.
Re:The State of Babel on Thursday December 08, 2016 @06:50AM (#13129761)
Thanks to everyone working on these tools! They improve the DX sooo much!
Re:Show HN: Anycomplete on Tuesday November 29, 2016 @05:07PM (#13066653)
This sounds grad from the ux perspective! Thanks!
Re:Why I'm Not a React Native Developer on Friday September 23, 2016 @12:21AM (#12562290)
Great article. On a side node, however: please don't write code like this:

  var weAreConnected = Math.floor(Math.random() * 10) > 5
  if (weAreConnected === true) {
    this.setState({
      isConnected: true
    })
  } 
  else {
    this.setState({
      isConnected: false
    })
  }
Instead, simplify the logic

  var weAreConnected = Math.floor(Math.random() * 10) > 5
  this.setState({
    isConnected: weAreConnected
  })
The random choice is also overy complicate (and on a side node, the value is more likely to be false then true due incorrect comparision operator usage)

  var weAreConnected = Math.random() < 0.5
  this.setState({
    isConnected: weAreConnected
  })
If we use ES6, we can use the shorthand notation to simplify the code even more

  const isConnected = Math.random() < 0.5
  this.setState({
    isConnected
  })
Question out of couriosity: Why whould you davor smt like that over a simple regexp replace? like

const target = 'Get on the Road' const result = target.replace(/road/i, 'bus')

Re:Ask HN: What keeps you from exercising? on Friday August 12, 2016 @03:55PM (#12278323)
Also, you will probably need a goal. Aimlessly training just to stay 'fit' doesn't generate that much motivation.

For example, my goal is to get bigger (build up more muscles & get stronger) - and I can monitor my progress - which generates motivation ("oh today I was able to do this exercise with more weight then the last time!")

Re:Ask HN: What keeps you from exercising? on Friday August 12, 2016 @03:50PM (#12278283)
If anything stops me from going to gym (I do weightlifting there - usually 4-5 times / week ) it's usually something that's worth skipping gym.

In my recent lasts that has been either - social activities that I value more then gym (doesn't happen that often) - you can normally scedule that part of your life

- Work that pays off that well that skipping gym is worth it. For example , I have a small company w/ a friend (full stack development) and we got this new customer who was paying really good and who what a lot of connections - so I ended up working 18h/day on that project for like 2 weeks. But was totally worth it.

In general I can recommend weight lifting to anyone who spends most if his time siting in front of a computer (I thing most of us here are) - for me it's totally fun (I love to push myself to that point where I'm 100% exhausted) and great for compensating other stuff.

Try it for a few weeks - you might actually enjoy it! And you'll enjoy the results for sure.

Re:Passive TCP/IP Geo-Location on Sunday June 26, 2016 @05:42PM (#11982888)
Works for me! Correctly identified my location as Germany.
Love it! Thanks!
Re:JavaScript async/await implemented in V8 on Monday May 16, 2016 @10:58PM (#11711125)
Really looking forward to this!
Re:ICML 2015 Deep Learning Workshop Recordings on Saturday May 07, 2016 @12:38PM (#11650229)
The site seems to be overloaded, use the cached version: http://webcache.googleusercontent.com/search?q=cache%3Ahttp%...
Re:Swift Reversing [pdf] on Friday April 22, 2016 @02:30PM (#11551426)
It doesn't seem to be available to the public yet. It's not in his github[1] nor in his companies github[2].

[1] https://github.com/withzombies

[2] https://github.com/trailofbits