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 For your next side project, make a browser extension
Wait until you see the people using ChatGPT as their own personal therapist..
johtso··on For your next side project, make a browser extension
Are you sure?
johtso··on Making the ultimate-guitar.com web player easier to practice with
I was looking for something similar recently when I wanted to be able to embed sheet music into Obsidian notes.

Have you come across https://alphatab.net/? Seems like a really slick feature rich open source project. It supports Guitar Pro formats, MusicXML, and also its own text based format.

Editing is a whole other kettle of fish and I'd be surprised if there was a polished open source option out there..

johtso··on Enabling the Future of GitHub's REST API with API Versioning
In reality it's probably completely equivalent. The version prefix in the path would probably live in some GITHUB_API_URL variable. The header would be set on the http session object.
johtso··on One of the UK’s Largest Pig Farms Closes Down Following Animal Welfare Breaches
Pigs.. in there?

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

johtso··on Multiple assertions are fine in a unit test
Oh nice, didn't know about that flag!

Another option is to use a custom mark on the test you want to run, and then do something like "pytest -v -m onlyrunthis"

johtso··on Multiple assertions are fine in a unit test
Again pytest makes things so much nicer in this regard. Having to comment things out sucks.

With pytest you can use the -x flag to stop after the first test failure.

Even better you can use that in combination with -lf to only run the last failed test.

johtso··on Tell HN: YouTube's web UI just got even worse
This has been driving me mad.. I'm pretty sure I only started seeing this problem maybe a month ago? It's the cardinal sin. Don't break the back button!
johtso··on An unidentified illicit drug has been discovered by Australian chemists
I'm not sure if even that's such a straightforward argument to make. I've recently been looking into buying some reagents for fungal microscopy, and supposedly Melzer's reagent is awkward to get hold of (particularly in the USA?) because chloral hydrate is a "date rape drug".

Another chemical branded as a date rape drug is GHB, but it is also popular as a recreational drug. Again, not something you can say possession of implies some intention to commit rape.

johtso··on Heroku Free Alternatives
Another great option with a similar approach that's now publicly available with a generous free tier is CockroachDB serverless
johtso··on A legal dispute that will test the limits of fair use
This is why we need some form of universal basic income..
johtso··on A legal dispute that will test the limits of fair use
I wonder how much of this kneejerk reaction can be rooted back to being taught in school that copying is bad. If someone's copying me, they didn't have to do the hard work I did, and therefor it's immoral, even if it doesn't cause any loss for me.
johtso··on Bizarre Vintage Photos of Steam Engines After a Boiler Explosion
A bit of a tangent, but this reminded me of this fantastic "Filk" song called "Hymn to Breaking Strain": https://www.youtube.com/watch?v=e5bc_Peb6s0

Which I only just realised is based on a Rudyard Kipling poem: https://www.kiplingsociety.co.uk/poem/poems_strain.htm

  The prudent text-books give it 
    In tables at the end
  'The stress that shears a rivet 
    Or makes a tie-bar bend—
  'What traffic wrecks macadam—
    What concrete should endure—
  but we, poor Sons of Adam
    Have no such literature,
      To warn us or make sure!
johtso··on CockroachDB Serverless is generally available
Ah, I think I was actually seeing a tweet that was displayed on the neon.tech site and showed up in the google results blurb.

It looks like 3 months ago it was 2 seconds https://news.ycombinator.com/item?id=31538172

johtso··on CockroachDB Serverless is generally available
The advertised cold-start time of ~600ms is rather impressive! https://www.cockroachlabs.com/docs/cockroachcloud/serverless...

As a comparison neon.tech advertises about 3 seconds.

johtso··on The new wave of React state management
For me using xstate was a game changer. Pulling logic out into a state machine gives you so much clarity over your application logic. Also nice to have your business logic defined with something that is framework agnostic.
johtso··on Long live software Easter eggs
I have a memory of an Easter egg that I enjoyed when I was a kid, 20 or so years ago. Wonder if anyone else can remember it.

It involved clicking a metallic (?) dot somewhere on the UI and it would pop out and could be dragged and thrown about with bouncing physics.

I feel like it might have been audacity? Can anyone remember what I'm talking about?

johtso··on Select ’Hello, World’: Serverless Postgres Built for the Cloud
https://github.com/neondatabase/neon/discussions/1853#discus...
johtso··on The Great American Murder Ballad
This is an interesting take.

Woman being brutally murdered by man/lover/.. is definitely the dominant theme.

You could compare it to the modern tv thriller, how many plots revolve around a woman killed by a man with the female character basically just playing the part of the symbolic victim?

I'm not sure the idea that the murderer's emotions are given so much more focus resonates with me though. Obviously hard to generalise as the world of folk music is vast, but my impression is that these kinds of songs usually skip over almost all nuance and detail, being made up of a few standard tropes/cliches, and the interest often comes from some twist/variation on the theme, or what the musician brings to it.

The world of folk music is filled with distasteful themes, and stuff that hasn't aged well. I'd say that sometimes performing a flawed song in a modern context can itself be subversive though. Not every performance of a song is a celebration of it. There's space for nuance.

johtso··on The Great American Murder Ballad
One of my favourite murder ballads, Peggy Seeger singing Jellon Graeme. Strange melody, strange name, banjo, gruesome, revenge, it's got a lot going on.

https://www.youtube.com/watch?v=tM4qIxDKEig

johtso··on The Winamp Skin Museum is powered by a SQLite3 database with 1.2GB of metadata
Seems like a great use case for static sqlite hosting https://github.com/phiresky/sql.js-httpvfs
johtso··on Ask HN: Is anyone else having audio glitches and pops on their M1 MacBook?
For me the issue seems to occur with any audio source, but only happens when there is a decent amount of RAM usage, or CPU usage.
johtso··on Is “acceptably non-dystopian” self-sovereign identity even possible?
Not if you reframe it as the absence of mistrust, trusting being the natural state.
johtso··on How To Remember Anything Forever-ish (2018)
The Sem Cubed system is an interesting take on indexing information for memorisation https://www.ludism.org/mentat/SemCubed
johtso··on PlanetScale Portals: Read-only regions
Temporal sounds _very_ interesting, hadn't heard of it before..

Edit: It sounds like temporal supports CockroachDB

johtso··on PlanetScale Portals: Read-only regions
That's exactly what I'm looking for, I'm just not seeing the libraries.
johtso··on PlanetScale Portals: Read-only regions
Not directly related, I've been really tempted by all these exciting new database offerings.. PlanetScale, CockroachDB, FaunaDB.. but there don't seem to be any solid (node.js) background job queue libraries that support them. I really want to take advantage of these low dev-ops high availability offerings, but I don't want to have to tack Redis onto my stack just so I can use BullMQ, with data persistence and robustness as a bit of an afterthought.

And I don't want to roll my own because it's not a trivial thing to solve, especially with stall detection etc.

I'd love to just have one robust data-store.

Am I missing something?

johtso··on [dead]
Seems to be due to an internal certificate expiring: https://twitter.com/eastdakota/status/1524185770596003841
johtso··on [dead]
Seems to be due to an internal certificate expiring: https://twitter.com/eastdakota/status/1524185770596003841
johtso··on A Gentle Introduction to SSR
Even bigger than that is reusing the same validation logic client side and server side.
← PreviousPage 6 of 10Next →