Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

15,025 karma · joined Apr 22, 2012 (14y ago) · 2,479 submissions

sfir6i2z@mailer.me
Submissions

comment 6y ago · link · parent

Not if you're just doing vanilla document storage.

842.

We All Work for Debt Now(strongtowns.org ↗)

2 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

A modest ergonomic desk, like this:

https://www.youtube.com/watch?v=7Helf_yrTn0

comment 6y ago · link · parent

Female Vulcans also experience the pon farr.

comment 6y ago · link · parent

If you are mailing something, using a plain formatted address string is usually fine.

Here's a harder problem from a previous job:

Given two addresses, tell me if they both point to the same "place".

(As you might imagine, the goal of this was joining various datasets.)

There really is no good way to do this, but to come close, you might consider a few dimensions of the problem:

1. Formatted address - a plain string. What you would write on an envelope.

2. Tokens (what I call "address components") - the bits of information that make up an address. Something like, {"street_number": "10", "street": "downing st", "locality": "london", ...}. You can get these back from most location-focused APIs.

3. Locations. Coordinates of a point or area in space.

4. Time. "Places" change over time. For example, a new business can open in place of another. Buildings are built and demolished. If you are working with data over a long time period, this is more of a concern.

Unfortunately, there are many-to-many relationships between all of these. For any address, there are many possible locations. For any location, there are many possible addresses. For any set of address components, there are many possible formatted addresses. For any address, there may have been multiple different "places" found there over time. Et cetera.

Consider an office building, for an example. That building probably has at least one address corresponding to its main entrance, but it might have other entrances. An office within the building can sometimes use the building's main address as its own address, or the address of its own entrance, or an address with a floor number, or an address with a mailroom number. An office building may have a café (usually off of the lobby) that has its own addresses. Offices in the building can be split and merged over time. I have even seen multiple buildings merged into one. You might also have a co-working space with individual addresses for rooms within it.

846.

Chinese Word for “Crisis”(en.wikipedia.org ↗)

2 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

As mentioned, PostgreSQL's documentation is some of the best in the software world. With most software project documentation, one ends up scouring StackOverflow, mailing list archives, and GitHub issues trying to figure out how to do something. With Postgres, I can just go straight to the official documentation, and read it. It has yet to fail me.

848.

Statlogger: Email-based stat tracking and charts(statlogger.com ↗)

1 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

Yet the Jitsi developer seems to credit OSGi as an essential basis of the project. They suggest that such a modular and dynamic architecture was necessary to support so all these protocols, platforms, etc. What would you suggest as an alternative (including things that are available now, but not then)?

850.

Building Strong Local Economies (Without Cheesecake Factory)(strongtowns.org ↗)

2 points · by oftenwrong · 6y ago · discuss

851.

Firefox 76 gets optional HTTPS-only mode(ghacks.net ↗)

2 points · by oftenwrong · 6y ago · discuss

852.

Recipes for Disaster(granolashotgun.com ↗)

1 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

The first sentence of the article should have been adapted into a descriptive title:

"The 480: a political fiction novel by Eugene Burdick (1964)"

854.

Chrome phasing out support for User-Agent(infoq.com ↗)

672 points · by oftenwrong · 6y ago · 318 comments

comment 6y ago · link · parent

I prefer plain text.

Plain text is best viewed in a program that turns URLs into follow-able links. I use vim. Press 'gx' in vim to open the URL under the cursor in your browser.

Plain text is far more ubiquitous than Markdown, although Markdown is slowly gaining ground.

Like Markdown, plain text also has different flavours. UTF-8 is my personal favourite.

Like Markdown, plain text is easy to read in its source form.

Unlike Markdown, there are clear standards for the rendering of plain text.

In plain text, non-savvy people are not confused by ~this sort of thing and~ [this sort of thing](http://example.com).

In plain text, a line break is a line break.

Swap out your README.md for a README today!

856.

World's Database of Medical Mnemonics(medicalmnemonics.com ↗)

2 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

I would love to see a write-up (like the SO answer) for each of those.

858.

What is the smallest possible valid PDF?(stackoverflow.com ↗)

176 points · by oftenwrong · 6y ago · 36 comments

comment 6y ago · link · parent

I use gron to do this same thing:

https://github.com/tomnomnom/gron

Some options of gron I use often:

--stream, which treats the input as "JSON lines" format

--ungron, which converts from the flat format back to JSON

comment 6y ago · link · parent

I believe Ubuntu started being usrmerged-by-default in 19.04 (Disco Dingo), although the release notes do not mention it.

On 16.04 you can usrmerge your system by installing the usrmerge package:

https://packages.ubuntu.com/xenial/usrmerge

comment 6y ago · link · parent

Recent Debian and Ubuntu systems symlink (by default, possibly with exceptions) /bin, /sbin, and /lib* to their counterparts in /usr. Older systems may be able to perform the merge by installing the "usrmerge" package.

I believe Arch takes it further and combines /bin and /sbin (and /usr/sbin) by symlinking them to /usr/bin.

comment 6y ago · link · parent

They have some good examples in the article. For example, the IKEA app that will be able to instantly measure your room and suggest furnishings.

comment 6y ago · link · parent

Compatibility with some tools is really the only reason I can think of. For another example, Checker Framework does not yet support 13.

864.

Declining bus ridership is no mystery(cityobservatory.org ↗)

1 points · by oftenwrong · 6y ago · 1 comment

865.

Just in Time (2016)(granolashotgun.com ↗)

1 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

I appreciate that you just have a "log".

867.

Coronavirus is exposing the arbitrary, cruel realities of America's rules(slate.com ↗)

3 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

It's odd to me that software developers so often develop these sorts of questionable dogmas. Also, I wonder how many of my beliefs about software fall into that category.

I recently worked with a person who was anti-logging. His argument was that logging is only necessary when the code path is not easy to assume solely based on the input. This is true, of course, but his mistake was assuming it is possible to guarantee that level of predictability in non-trivial operations. It wasn't long before he was adding logging to his code to figure out an issue that occurred rarely and only in production.

comment 6y ago · link · parent

A few more recent innovations in packs...

Aarn "bodypacks" use front bags to counterbalance the load on the back: https://www.aarnpacks.com/

NeoTrekk (formerly LuxuryLite) also offers a "front pack" for counterbalance that can be used with their pack. However, that is just one of the pack's many innovations, which include modular waterproof storage, quick-detach hip belt, camp chair conversion, attachable wheels, and more: http://www.neotrekk.com/index.html#stackpack

The McHale Bypass Harness on McHale packs completely solves the inherent adjustment problems of the traditional load-lifter design used on most trekking packs. This innovation is not recent; its US patent has expired. Despite this, I do not know of any companies that have adopted it: http://www.mchalepacks.com/sarc/04.htm

comment 6y ago · link · parent

Where can find out more about this decision? Are paid email accounts safe for now?
1
282930
83