HNHacker News
TopNewBestAskShowJobs

nilsb

407 karma · joined March 10, 2017

submissionscomments
nilsb··on Why is there a “V” in SIGSEGV Segmentation Fault?
On Error Resume Next
nilsb··on Users whose names violate Lyft community guidelines
We've certainly come a long way since https://www.cnet.com/news/food-domain-found-obscene/ - or have we?
nilsb··on My Business Card Runs Linux
While it's a fascinating project I'd have some security concerns about plugging someone's USB business card into my computer.
nilsb··on ZFS v0.8.2
Unfortunately I don't have much experience with btrfs, however I've found the CLI commands for ZFS to be much more intuitive to use - both in terms of how they're invoked and their output.

There's one command for handling storage pools (zpool, https://manpages.debian.org/unstable/zfsutils-linux/zpool.8....), e.g. adding/replacing disks, monitoring I/O utilization, etc.

And then there's another command for dealing with ZFS datasets (zfs, https://manpages.debian.org/unstable/zfsutils-linux/zfs.8.en...), e.g. setting properties for datasets (quotas, compression, delegation of privileges to non-root users), managing snapshots.

Both CLI commands are scriptable (e.g. -H can be used to suppress human-readable headers and -p turns off "friendly" formatting for numbers) and there are libraries (libzfs, libzpool) which can be used to access their functionality (e.g. for managing snapshots) in your own programs.

I don't think I can do ZFS on Linux (or btrfs for that matter) justice in a (short) comment on HN. There's just so much to it (e.g. SSDs as cache/log devices, sending/receiving snapshots over the network, compression, etc.)

There are some rough edges, of course. Until a few years ago ZFS on Linux had massive problems with resource management, i.e. it would regularly panic in low-memory situations. These appear to be fixed though - at least I haven't seen any panics in the past two or so years.

Due to its license ZFS on Linux will probably never be part of the upstream kernel. We use it on Debian which means we get to compile the ZFS kernel modules on each box when there's a kernel update (with DKMS). Plus there are some pitfalls when using ZFS as your root filesystem (on Debian stretch without systemd services would start before /var/log was mounted).

We've had plenty of disk failures which ZFS detected well before SMART did because we run monthly scrubs for our ZFS pools (i.e. basically ZFS verifies its checksums for all the data that's stored in a pool). Recovery is as easy as popping in a new disk and running "zpool replace".

Ok, this ended up much longer than I had planned. This has to suffice for now.

nilsb··on ZFS v0.8.2
I contributed a few patches to ZFS on Linux about 8 years ago - at a time when it was still very much in its infancy and panic'd when you looked at it in the wrong way.

It's incredible how far they've come. We're using ZFS on Linux on about 120 servers at work and it's rock solid. Snapshots are a life saver in our day-to-day ops.

nilsb··on You're doing it wrong: B-heap 10x faster than binary heap (2010)
Indeed, this is why for C++ people are generally told to use std::vector (i.e. arrays) when some other data structure may in theory be more appropriate.
nilsb··on How Steep Is That Sidewalk? A Digital Map for People with Disabilities
There's also https://wheelmap.org/ which focuses on tagging accessibility issues with shops and other buildings on OSM.
nilsb··on Microsoft Has First Major Impact on Chrome
I tend to have dozens of tabs open at the same time. However, only a few of them usually have video elements and Chrome could probably discard the media cache for all of them - except for the currently active one.

My assumption here is that the media cache is mainly used for uninterrupted playback in case my network is briefly unavailable (e.g. when on a mobile network).

nilsb··on Spike in Autism May Be Linked to Preservative in Processed Foods, Study Suggests
Or maybe the "rise" in autism rates is due to the fact that our diagnostic tools have become more advanced in the past 20 years which has resulted in more people getting their diagnoses.

In particular older people (i.e. 30+) are getting diagnosed just now because doctors previously didn't know what they were looking for.

nilsb··on Deep Learning enables hearing aid wearers to pick out a voice in a crowded room
This sounds like something that could have a potential use for non-hearing-impaired people who have sensory overload issues (e.g. autism).
← PreviousPage 2 of 2