Recent submissions

Comment · 3 years ago
Comment · 4 years ago
Circa 2006, I was in college, and I got hired to write a webapp for a college department. I didn't know JavaScript could have classes and capture variables, so I made the app with entirely global variables and plain functions combined with `eval`. It's over 2000 lines, and nobody after me could understand it.
Comment · 4 years ago
I develop experimental software where backwards compatibility is the least of my concerns. To avoid the SemVer nonsense imposed by Go and NPM, I simply name every version to be 0.0.yyyymmdd derived from commit date. If Ubuntu and DPDK can name their versions by date, why can't I?
Comment · 4 years ago
In case the second sudo wants to ask for password but there's no disk space for logging, it's safer to:

sudo bash -c 'dd if=/dev/zero of=/zeros; rm -f /zeros'

Comment · 4 years ago
I run a small apt repository without signing, delivered over HTTPS only. Then I tell users to put `trusted=yes` in the source line. There's no APT signing key, no risk of compromise, and no need to backup.
Comment · 5 years ago
iOS Safari is crashing, 30 seconds after opening the article, every time.
Comment · 5 years ago
My software has only Makefile, but it works on both Ubuntu 20.04 and Debian 11. The Makefile calls meson & ninja & npm.

I tell macOS users to install VirtualBox and then build my software inside.

Comment · 5 years ago
IFRAMEs still require a top-level page and their positions still need CSS.

I usually use FRAMESET and FRAMEs: they are positioned perfectly in a grid, with no need for CSS or TABLE. There's no postMessage API: you can write <A target=other-frame-name> to navigate to a page in another FRAME.

HTML5 doesn't have FRAMESET, but all the browsers still support HTML4 perfectly.

Comment · 5 years ago
NDN can work as a replacement for IP too, running directly over Ethernet or other link layer technology.
Comment · 5 years ago
Several years ago, I wanted to make a huge lookup table in Node.js during a research project, but the program stopped making progress after a while. This incident was detailed in my Quora answer: https://www.quora.com/What-would-you-need-64GB-of-RAM-for/an...

I incorrectly concluded that Node.js has a limitation on how much memory it could use. After reading this article, I now understand that the real reason is that I'm setting too many properties on an Object, exceeding V8's limitation.

Comment · 5 years ago
> Anything that requires combining a click with the shift and ctrl/cmd keys is not going to go down well with the average user.

These users need to retake the computer literate 101 class.

When I'm in elementary school, we learned how to multi-select in the tutorial system that comes with Windows 3.1.

I don't know why Windows XP deleted these very important tutorials and replaced them with a webpage.

Comment · 5 years ago
Does the one billionth rickroll recipient receive an award of sorts, like an MP3 player that plays Never Gonna Give You Up on repeat?
Comment · 5 years ago
Freenom free domains only grant you usage rights. The registrant listed in WHOIS is still their company. You don't own the domain.

I have a few Freenom domains, but they are only for short-term use (e.g. try out a new ACME client). Nobody should use a Freenom domain on a serious website.

Comment · 5 years ago
I downloaded OpenStreetMap data from OpenAndroMaps, and was viewing it in c:geo geocaching app. I figured out the difference between contour lines and trails, the second time around.
Comment · 5 years ago
I wish OSM can show the trails instead of a green blob in some of our state parks. Maryland USA.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton