New

The latest blog posts to take off on Hacker News. 80,803 posts.

Any topic
Any year
3753

You can beat the binary search

We sometimes have to look for a value in a sorted array. The simplest algorithm consists in just going through the values We sometimes have to look for a value in a sorted array. The simplest algorithm consists in just going through the values one by one, until we encounter the value, or exhaust the … Continue reading…

3756

The woes of sanitizing SVGs

Scratch has a long history of SVG-related vulnerabilities. The source of these is that Scratch parses user-generated (ie. attacker-controlled) content into an <svg> element and appends it into the main document for various operations (eg. measuring SVG bounding box in a more reliable way than viewbox or width/height).

3759

Men who stare at walls

I came across a video by Simple Lucas describing a routine to improve focus and productivity. The routine was basically: Don’t use any screens/entertainment when trying to focus on work. When you start to feel mentally drained, sit and stare at a wall for x minutes to recover focus. I’ve been trying it, and it’s a…