HNHacker News
TopNewBestAskShowJobs

jdpage

473 karma · joined July 23, 2011

email: jonathan@sleepingcyb.org
submissionscomments
jdpage··on XSLT removal will break multiple government and regulatory sites
You're right, it's not a great flow! And while many podcast/feed reader applications support pasting the URL of the page containing the <link /> element, that still leaves the problem of advertising that one can even do that, or that there's a feed available in the first place.
jdpage··on XSLT removal will break multiple government and regulatory sites
One thing that I think this discussion is highlighting to me is that there's very little support in the web standard (as implemented by browsers) for surfacing resources to users that aren't displayable by the browser.

Consider, for example, RSS/Atom feeds. Certainly there are <link /> tags you can add, but since none of the major browsers do anything with those anymore, we're left dropping clickable links to the feeds where users can see them. If someone doesn't know about RSS/Atom, what's their reward for clicking on those links? A screenful of robot barf.

These resources in TFA are another example of that. The government or regulatory bodies in question want to provide structured data. They want people to be able to find the structured data. The only real way of doing that right now is a clickable link.

XSLT provides a stopgap solution, at least for XML-formatted data, because it allows you to provide that clickable, discoverable link, without risking dropping unsuspecting folks straight into the soup. In fact, it's even better than that, because the output of the XSLT can include an explainer that educates people on what they can do with the resource.

If browsers still respected the <link /> tag for RSS/Atom feeds, people probably wouldn't be pushing back on this as hard. But what's being overlooked in this conversation is that there is a real discoverability need here, and for a long time XSLT has been the best way to patch over it.

jdpage··on R0ML's Ratio
You're right, but I think you're less likely to buy extra at per-unit pricing (since you can always buy just-in-time), so you're less likely to run into a situation where you overpurchased at per-unit pricing. (Edited to note that.)
jdpage··on R0ML's Ratio
Buy in bulk if it's cheaper per unit that you buy, and per unit if it's cheaper per unit that you use. (EDIT: with the understanding that you're unlikely to buy much more than you use if just-in-time per-unit purchasing is available). No, it's not groundbreaking advice, but it's a very easy trap to fall into, especially if you're talking to someone who's good at selling you stuff.

I'm sure we've all had an experience at least once where we've bought something in a larger container from the grocery store thinking we were getting a deal, only to find that we didn't get through it as fast as we thought we would, it started spoiling, and we got to scrape our savings into the trash can.

And many of us have had an experience where someone higher up in the company has insisted that we use a tool that isn't very good "because we've already paid for it", so it's clearly needed advice, even if it's not groundbreaking. Everyone sometimes needs "obvious" conclusions pointed out to them, I think. It's a quirk of our mental processing as humans.

jdpage··on Welcome to url.town, population 465
I think the layout as such (the grid of categories) isn't particularly dated, though a modern site would style them as tiles. The centered text can feel a little dated, but the biggest thing making it feel old is that it uses the default browser styles for a lot of page elements, particularly the font.
jdpage··on Welcome to url.town, population 465
Not so much. While a lot of these websites use classic approaches (handcrafted HTML/CSS, server-side includes, etc.) and aesthetics, the actual versions of those technologies used are often rather modern. For example, TFA looks like a page I'd have browsed in IE5 as a kid, but if you look at the markup, it's using HTML5 tags and Flexbox (which became a W3C WR in 2017), while a period site would have used an HTML table to get the same effect. Of course, you wouldn't want to do it that way nowadays, because it wouldn't be responsive or mobile-friendly.

(I don't think this detracts from such sites, to be clear; they're adopting new technologies where they provide practical benefits to the reader because many indieweb proponents are pushing it as a progressive, rather than reactionary, praxis.)

jdpage··on Major rule about cooking meat turns out to be wrong
Meat is typically exsanguinated as part of the slaughtering process[1], so no. The juices that come out of e.g. a steak are a mixture of water and proteins such as myoglobin, but can also include fat.

Adam Ragusea has a video[2] on the topic that goes into more depth, though the same information is repeated across a lot of sources of varying quality if you do a quick web search.

[1]: https://en.wikipedia.org/wiki/Meat#Slaughter

[2]: https://youtu.be/gLvQzwjI-IM

jdpage··on Cognitive Behaviors That Enable Self-Improving Reasoners
This is a well-known approach: verbalizing your thought process (either by speaking aloud, or by writing) is something that's long established as a good tactic for making sure that you're actually thinking through something, rather than glossing over it. Ironically, I've seen people bemoaning that use of AI will rob people of that.

I agree that there's potential here, though, and do genuinely hope that we find ways to make human intelligence better as we're going about AI research. Even pessimistically, I think we'll at least surface approaches that people use without thinking about, which is on its own a good thing, because once you know you're doing something, it becomes a lot easier to train yourself to do it better.

jdpage··on The Miraculous Resurrection of Notre-Dame
The Ancient Egyptians were also like us in that they were into architectural bling and greenery, so I'm not actually sure they'd be complaining that much. They were into materials like gold, electrum, and polished stone, but I'm sure you could sell them on modern glass.

That said, the Great Pyramid is a historical site, not an active worship site, and modern archeological sensibilities prioritise conservation. A restoration like that might make it hard to answer future questions about the pyramid.

jdpage··on Hypermedia Systems
I'm assuming that you're referring to the fact that if you get the data as JSON from the server side, you can use it to render out your multiple visualisations. If this is not what you're getting at, my apologies.

If you send the HTML table over the wire, you can use it as the datasource for the other visualisations, same as you would with JSON. You can extend it with `data-` attributes if necessary to get some extra machine-readable information in there, but I have not needed to do that yet.

On the application I'm currently working on, we do this and then have a listener on the htmx event to turn the table into a d3.js graph. It works pretty well, and has the advantage that if someone is using our application with JavaScript turned off, they still get the table with all the data.

jdpage··on We have an epidemic of bad posture
Do you have any specific beginner's routines you'd recommend? I was doing 5x5, which has pulls in the form of barbell rows and deadlifts; I don't know if that's sufficient.
jdpage··on A smart plug to monitor your router and automatically reset power if WiFi fails
I have a pair of TP-Link WDR-3600s. Both run OpenWRT "Barrier Breaker" and they've been rock-solid. One is on a filtered UPS (the main router), but the other one is just plugged into the wall and usually has a loaf of bread on top of it (the wireless relay in the pantry). Both have been fine, so I don't think it's the power supply.
jdpage··on Half the world to be short-sighted by 2050
I got it because it seemed like it'd be an interesting experience, and it has been. It's still interesting, but not as much as it was, and I've been beginning to think about removing it; if it ever becomes a problem for any reason, I wouldn't hesitate to do so.

It's not a hugely risky thing. My biggest concern is/was the bioproofing on the magnet becoming damaged.

jdpage··on Half the world to be short-sighted by 2050
I haven't been through airport security yet, haha.
jdpage··on Half the world to be short-sighted by 2050
I have one. Ring finger of the left hand. It's mostly useful for rapidly-changing magnetic fields and strong static fields, so I can feel things like:

- the transformer in my laptop charger

- the electric motors in laptop fans and my hair clippers

- the closure magnets on my laptop

- the magnet in Arc mice that holds the dongle on

- the cyclotron in microwave ovens

jdpage··on Half the world to be short-sighted by 2050
I actually have one of those (ring finger of my left hand), and I have had zero problems with magstripe cards and hard drives. Also, USB keys aren't really sensitive to magnets.
jdpage··on Two-thirds of the world's population under 50 have herpes
Small children can also get HSV-1 from things like being kissed by an older relative with an active cold sore.

That kind of thing probably happens less in developed countries due to higher awareness. [citation needed]

jdpage··on Two-thirds of the world's population under 50 have herpes
Presumably a dental dam would prevent transmission of HSV-1 during oral sex.
jdpage··on The Art of PNG Glitch
The problem isn't lazy-loading. The problem is webpage authors who don't specify the width and height attributes on <image> tags, which allows the browser to correctly flow them before they load.
jdpage··on The Art of PNG Glitch
PNG is one of my favourite file formats. It also has a chunking system which lets you store extra data, which isn't really covered here. Definitely worth looking into if you're interested in binary format design.

The other image format that's worth knowing is TIFF, because it's an insanely simple and flexible format to write out if you don't have access to a library. It lets you re-order the image data by tiles or scan lines, and lets you put various tables almost anywhere in the file, which makes it great for outputting large images from a parallel renderer: you can chop it up however is suitable for the algorithm, write out the parts to disk as you get them, and then write out a table at the end describing the order at the end of the file, without having to seek.

jdpage··on Multiple Vulnerabilities in Pocket
Maybe it's time for a standard bookmarking service API? It'd be nice to just be able to plug whatever service I want (if any) into any browser.
jdpage··on How I Hacked Amazon’s $5 WiFi Button
Yep. But it's a closed-source always-on cloud-connected microphone that lives in the middle of your house, which creeps the hell out of a lot of people (including myself and most of my housemates).
jdpage··on How I’d redesign piano sheet music
The problem there is that 90% of people have the lengths of notes in their head wrong. Sure, if you ask them to hum a song, they'll produce something that sounds rhythmically passable, but it's a far cry from being correct.
jdpage··on Yes, You Can Catch Insanity
(Warning: long screed tangent to the article.)

To be fair, Superman locks himself in a closet because his powers are too scary, but yeah, this is totally a different case.

There's this trope that people with mental illnesses—like John Nash, or Rain Man, or Sheldon Cooper, or all of these people who can paint perfect landscapes because they're on the autism spectrum or have brain trauma—are more advanced than people who aren't. And yeah, these people can do things that the rest of us would have a much harder time doing. But it also comes with the fact that the world is going to be a much harder place for them. For people who do have brain quirks that they can take advantage of, it can be a really empowering narrative. It can also be harmful for people whose brain quirks don't fit well into a role that's valued by society.

There's a difficult line to find there; what kind of neuroatypical behaviour should or shouldn't be treated? Most people can agree that depression needs to be treated, because it's harmful to the sufferer with no benefit. Or if someone is hearing messages from aliens and running away from home and wandering about alone in altered mental states, it's fairly uncontroversial to put them on antipsychotics, even with the negative side-effects.

But on the other hand, the idea of medicating ADHD kids is massively controversial, because the argument can be made that for many people diagnosed with it are either misdiagnosed, or are just bored or learn differently. But I also know ADHD people who legitimately cannot function if they don't take their medicine. What should be medicated or what shouldn't?

Or here's an even more borderline case: what if someone is convinced that they're hearing messages from the beyond, and decides to spend the next ten years writing a book about how to live at peace with the world? What if the book doesn't make sense? Should they be medicated, because they've clearly broken with reality? Or should they be let alone, because there's a remote outside chance that maybe we're all wrong and they're on to something? Should they see a psychiatrist or a counsellor, who they can talk to and can keep track of how well they're doing? If so, should that person take an authority role, or should they be someone to be worked with to reach a mutually agreeable course of medication (which may be none at all)?

Hence movements centred around neuroatypical people, and this narrative that they're potentially a next stage in human evolution. Certainly, there are plenty of neuroatypical people who have desirable traits because of it that could very well become the norm, but there are also plenty of people whose traits are simply going to be selected against. It's an incredibly attractive narrative for those people, though, because society doesn't tend to value them as people as much as 'neurotypical' people, which is absolutely terrible.

I personally think that there are three big takeaways for this:

1. People are people, and should be valued as such. 2. Not everyone has a special talent that is valued by society, and that's okay. See #1. 3. Medication isn't fire-and-forget. It's something that needs to be constantly re-evaluated and carefully managed.

jdpage··on 4Q: the final archive format
I think the README is just badly worded, since "not streamable" does differentiate it from RAR and ZIP, which makes it a differentiating factor.
jdpage··on Parserator – A family of probabalistic parsers
It seems to be working a little differently now. (I was going to say "better" but that's debatable.) 1/2 is still in the number suffix, but now "Green Onion, Some City" is the place name, and it doesn't try to parse it further.
jdpage··on Living with a Computer (1982)
Yes, absolutely. This is standard practice among my peers in creative writing; the last step of editing is to read your piece aloud (to the cat, or the dog, or to the mirror, or a human victim, or just to yourself), slowly and carefully.

My friend who is finishing up his novel is currently in the reading-aloud stage. He's had various friends in and out of his house to listen to chapters as he does it, too.

As for myself, I've been caught by my friends standing in back stairwells reading papers aloud thirty minutes before class more times than I care to admit.

jdpage··on Some Problems Shouldn't Be Solved
There's especially no good excuse for CC or phone numbers, because they're all numbers. All you have to do is strip out anything that isn't a "significant" character (i.e. a digit or a letter), throw an error if any aren't digits, and throw an error if it isn't the right length. This algorithm is basically guaranteed* to behave exactly the way that everyone expects it to.

*I am not a UX engineer, YMMV

jdpage··on Some Problems Shouldn't Be Solved
56, actually. It's a major shortcoming of bcrypt, and an argument in favour of algorithms like scrypt and PBKDF2.

If you're committed to bcrypt, you could make an argument in favour of digesting the password with something like SHA384 first. That reduces entropy, but (a) it's strictly better than straight SHA, which is what a concerning number of people use already, and (b) it means that you're not messing up the user's pattern/mnemonic if they've got one going.

jdpage··on Some Problems Shouldn't Be Solved
200 characters allows for the use of (short) passphrases. Longer would be better, though.
← PreviousPage 2 of 6Next →