HNHacker News
TopNewBestAskShowJobs

johtso

900 karma · joined June 6, 2011

[ my public key: https://keybase.io/johtso; my proof: https://keybase.io/johtso/sigs/YxYSihnl8rZY30JJDe9RtNmh8OE7Kkem6MSXJtz_IPo ]
submissionscomments
johtso··on Ask HN: Are you also getting extremely obvious spam bypassing Gmail's filters?
Yes! This has just started in the last week or so..
johtso··on Testing in production: using JSON Schema for 3rd party API response validation
I wouldn't write JSON schema definitions directly. Check out typebox. It lets you define a schema in memory and immediately have access to the types https://github.com/sinclairzx81/typebox

Combined with ajv you can even have more advanced custom validation with custom error messages.

johtso··on An Elastic Model of the Holding Power of Rock Climbing Anchors
An anchor would usually refer to the collection of gear placements equalised together, not an individual placement. (Although rarely you might have a 1 piece anchor). The term anchor is more a description of the purpose than what it's made of.
johtso··on How Beavis, Butt-Head and Daria disrupted cable
Ah yes, the glorious "King Turd" collection. Where there's a will there's a way.
johtso··on Reflections as the Internet Archive turns 25
Is there an advantage compared to just putting `web.archive.org/web/` before the url?
johtso··on Namedtuple in a Post-Dataclasses World
Immutability is nice though.
johtso··on Show HN: Print a WiFi Login Card
Are there any tools to run an untrusted client side web application isolated from the internet?
johtso··on Stockfish 14
Yeah definitely should be the focus! Would be excited to see some of the stats aimchess has implemented.. performance in various phases of the game.. tactics.. advantage capitalization etc.

I also found that when clicking through to an opening on your site, it would always say "no games find at this position". Bug?

johtso··on Stockfish 14
I've been wishing someone would make something like this! Always frustrated me that tools like aimchess and openingtree only allow you to look at the two sources separately.. supposedly, at least in aimchess's case, the reason being that the rating systems are different.

How do you unify ratings?

Edit: ah I see you don't, makes sense I guess. Might be interesting to have them both on the same graph even if the y axis is different..

johtso··on Petite-Vue – 5kb subset of Vue optimized for progressive enhancement
Being so functional and playing so nicely with typescript was the main reason I swayed to react rather than vuejs.

The whole ecosystem of state management does feel like a bit of a wild west.. but I guess that's often the feeling with javascript.

I ended up settling with easy-peasy, which I think has similar aims to zustand. Definitely appreciate that it uses immer out of the box as that seems like a very sensible default way to go.

johtso··on Petite-Vue – 5kb subset of Vue optimized for progressive enhancement
Well, the fact that you're "just using javascript" in jsx does also mean that you need to format things nicely to avoid having an unreadable mess. Using a code formatter like Prettier helps a lot. The "react blob" is less of a blob if nicely indented.

Admittedly due to the nature of Vue syntax, it's harder to make a mess because everything is just key/value.. but then you have to learn an API to express things in that way. I enjoy the fact that you don't have that layer/step with react.

I definitely feel that the 3rd party classnames package should be built into React, I agree that out of the box conditional class names look a mess.

I don't have enough experience with either library yet to form an opinion on which I prefer, but I definitely appreciate not having the mental overhead of remembering the vue api. I'd rather have a bit of code that's more explicit/"just javascript" than have to think "what's that symbol I need to use again?". Definitely a personal preference thing though!

    {items.map((item) =>
      item.display && (
        <SomeElement
          onClick={(e) => e.preventDefault() && foo()}
          className={classNames({'current': item.active})}
        />
      )
    )}
johtso··on The Method of Loci: Build Your Memory Palace
Edit: Here's a really well executed online tool that someone else made: https://pinfruit.com/

------

Went digging through my old files, turns out this was almost 10 years ago!.. and looks like I left it unfinished.

I was using nltk to convert cmudict words into MM sequences using phenomes.

Then I was basically brute forcing all the different ways you could slice the given sequences into sub sequences. Then the idea would be to try and identify the "best" sequence.

You'd want to restrict it to using relatively common words, preferably nouns. Really you'd want to avoid any words that are ambiguous or could be easily confused.

Even better would be able to find grammatically correct sentences that fit the sequence.. but I think it's unlikely you'd have any hits.

Anyway.. this is the broken/unfinished code I found in the depths of my hard-drive: https://github.com/johtso/mnemonic_major

johtso··on The Method of Loci: Build Your Memory Palace
I once tried to write a script that would generate the most efficient encoding of an arbitrary length number using the Mnemonic Major System. Definitely an interesting problem!
johtso··on The Method of Loci: Build Your Memory Palace
Right, the locations in a memory palace are just a form of "peg system" [1].

The advantage it has compared with a "link system" [2] is that forgetting one link doesn't mean you lose the rest of the chain. You can also jump to an arbitrary point in your palace.

You're right in saying the use of a physical location is just a convenient but not fundamental part of such a system.

A system that really pushes the idea that the pegs you attach things to can be arbitrary is SemCubed [3], a system where you create a large 2-dimensional grid of "pegs". It also makes use of the Mnemonic Major System that I'm a big fan of.

[1] https://www.ludism.org/mentat/PegSystem [2] https://www.ludism.org/mentat/LinkSystem [3] https://www.ludism.org/mentat/SemCubed

johtso··on Beets: the music geek’s media organizer
I do the same, except I edit the information on musicbrainz (including adding album art) and then use that as the source of data. That way I'm contributing to the database and making sure my tags are perfect.
johtso··on Is one vaccine dose enough if you’ve had Covid? What the science says
T-cell tests are available in some places now.

https://www.tspotcovid.com/

johtso··on Etymological Wordnet
This is my go to site for etymology https://www.etymonline.com/word/muscle

Has a good description of this derivation.

johtso··on Google Lighthouse V8 – Improved CLS metrics
This trips me up at least a few times a week. Infuriating!
johtso··on Corpus Clock
My immediate thought was a morbid clock that used a live insect to measure they time. Once the creature dies you know that a certain amount of time has passed.
johtso··on Show HN: NocoDB – Open-Source Airtable Alternative
I recently came across sanity.io as a jamstack backend. Generous free offering. Rather than the spreadsheet model, you define your schema and get a nice CMS interface generated that you host as a static page
johtso··on Opera adds native support for blockchain domain names
Same, it's the only mobile browser I've found that has decent dark mode..
johtso··on Flu has disappeared worldwide during the Covid pandemic
Also may impact your future immunity. Good to know what your clinical history is..
johtso··on PEP 563 (postponed evaluation of annotations) delayed till 3.11
This is great news! Well done steering council.

Definitely raises questions about the best way to avoid these kinds of last minute situations in the future..

johtso··on PEP 563 (postponed evaluation of annotations) delayed till 3.11
Initial submission: https://news.ycombinator.com/item?id=26826158
johtso··on Novel hydrogels can safely remove graffiti from vandalized street art
I guess a better question is, why is the Banksy stencil something that needs to be protected, but the work by the unknown street artist not.

Because Banksy is a famous brand, and his work has big price tags attached to it.

The whole thing is totally unique and fascinating. Banksy has developed his concept so well. He clearly also acknowledges the absurdity of the situation. His self shredding painting is clearly a comment on the contradiction between the ephemeral and the valuable.

Street art is inherently ephemeral. It's the wild west. There are no rules (although sometimes etiquette), because by its very nature it is breaking the rules.

Seeing newspaper articles where people are talking about a Banksy piece having been "vandalised", or that someone cutting out a piece of their wall to sell it is "stealing something that belongs to the community".

At the same time, street art in general is viewed as vandalism. The law doesn't try to make distinctions based on the artistic merit of a specific bit of unauthorised public space modification.

But money and fame, that's something anyone can understand! If something is worth money, then it's good. You painted on my wall! How lucky I am! Oh yeah and the pictures great too, what a clever image!

I personally think his work is pretty good. But much more interesting is how society has reacted to it.

johtso··on Show HN: DeepHN – Full-text search of 30M Hacker News posts and linked webpages
I think it is supposed to be doing that?
johtso··on Creating a minimalist blog with Jekyll Now
Dead how? I find forestry with integrated cloudinary for asset hosting a really decent solution.
johtso··on Amazon acknowledges issue of drivers urinating in bottles in apology
Yeah, spot on. I was slightly surprised by the almost universal sentiment that peeing in bottles was bad.

The tricky thing is that in this context, the fact that drivers are peeing in bottles is likely a symptom of a broken system that is exploiting workers and forcing them to spend all the time they can on the road. Definitely have no interest in defending profit optimisation at the expense of people.

johtso··on Amazon acknowledges issue of drivers urinating in bottles in apology
Oh yeah, definitely should never be a situation where someone's working environment penalises them for using a bathroom. And you're right, there are lots of things that might make someone less able to work around a lack of toilet facilities.

There's a huge difference between using a pee bottle as a choice/convenience vs. to avoid some kind of workplace consequence.

johtso··on Amazon acknowledges issue of drivers urinating in bottles in apology
Not being a woman I can't speak from experience, but I've heard that it is totally possible to learn to do. Obviously not with a narrow necked drinking bottle, but with a Nalgene or similar. There was an interesting podcast on the subject by a mountaineer talking about the need to be able to pee without leaving your sleeping bag when on Everest (or similar climbs where the cold is a serious risk to contend with).

> Hiring people and then failing to plan an appropriate amount of time for them to take a break is wrong, and should be illegal.

Totally agree.

← PreviousPage 8 of 10Next →