skysight-inc/HackerNews huggingface dataset:
Hey HN Community,

A short time ago I was looking for a way to automatically create screenshots and then enter them into the OpenAI API and use the new Vision API.

After I found a solution for this, I wrote a blog article about how I did it. This is the first part, about creating the screenshots.

Maybe it will help some of you.

All the best.
Complicated. There are essentially 5 possibilities:

- ports are subprocesses acting as erlang processes

- erl_interface is a more efficient version of the same as the communication uses BEAM's external term format

- C nodes are what it sounds like, basically a separate program acting as a node in a beam cluster

- port drivers have a shared library acting as a process, it's way more efficient but jettisons safety as a crash in the library kills the runtime

- finally NIFs are synchronous functions called in the context of an existing process, they are the fastest option but not only do they kill the emulator they can also screw up the VM state, and they can't be managed by the scheduler without their cooperation (which can severely degrade system stability), BEAM has a concept of "dirty NIFs" which are long-running, can't be suspended, and can't be threaded, if those are appropriately flagged they are run on dedicated "dirty schedulers", dirty schedulers have more overhead but less restrictions, in essence cgo is a more impactful version of that (although I believe dirty schedulers were invented a while after cgo existed, previously "dirty nifs" would just see you drawn and quartered)
> a very low plastic chain index implies that it would only have plastic inadvertently absorbed from the environment

Or just measure them and publish test results. Naming and shaming works in the consumer packaged goods market.
To be fair in Canada that might just be a duplex
That too - the pantomime dame character is basically just men ridiculing middle-age women, while sending a message to any children watching that it's acceptable to do so. It's as offensively sexist as the drag queens.
I really like this. This feels like what the native APIs would look like if Promises existed in the 90s.

One thing that might be improved is removing the `Promise.resolve()` that `yieldOrContinue` returns when it is not time to yield. Awaiting non-Promises is totally fine: you just get that value back (the `await` does nothing). Avoiding constructing a resolved promise can help reduce the number of objects that get allocated, especially if you're in a loop doing a lot of work.
Drones are the new drug mules
What do you do when the elders don't want to be involved and want to live solo independent lives in their golden years? One of my parents is dead, the other lives with us because of poor financial choices; out of three grandparents my kids have, they are all living their own lives and don't want to be involved.

And before we had children, we asked. Everyone was very enthusiastic about participating and helping until the kids showed up, and then we were on our own. Bamboozled!
> Folks who live under routine threat like volcanism can be the most calm and functional during crises.

Mind the (tectonic) gap.
Sorry, I'll try to make it more accessible.

It expands in the app as you hover over it. Probably needs a similar thing for the website.

Or I just need to give up and revert it to the standard one. :)
This is neat! Thanks for sharing!

One thing I've been looking for (and would pay money for) is a tool/game that helps me improve my typing speed in real-world scenarios, especially writing code and/or editing documents.

I purchased a subscription to keybr,[0] and it's pretty nice, but it assumes you're always typing brand new text linearly. There's no way to practice things like jumping to a previous line, jumping to the beginning of a line, deleting a word.

I recently switched to a Kinesis Advantage keyboard (my first mechanical keyboard), and I was able to build muscle memory for the standard letter and number keys in a few days, but I'm still trying to get comfortable with control keys, arrow keys, and Home/End/Del in real-world flows.

[0] https://keybr.com
I've been using an app called Left for simple text editing, but I think I prefer this one.
Could be because it improved over time and its value increased as well. It didn't have much on day one either.
I actually did this, inadvertently, as a kid in the 1980s on my parents' four-channel television set. From what I can remember (I was quite young) it pulled the colour towards the spot where I placed the magnet and left the rest of the image in monochrome. I vaguely remember finding it interesting the way the colours moved around but my parents were less impressed for some reason.

They had it fixed though: a guy came out from the shop with a hand-held degaussing tool and it was just fine afterwards.
I love writing bespoke software! My little bonus Christmas gift to my parents this year was a kind of Jeopardy clone that uses a dataset of questions from thousands of shows.

Watching Jeopardy is a new nightly tradition, but they always complained that they wish they could see the category when the clue is on screen, which is what inspired the project. It’s a full screen PWA and my mom likes to mirror her phone screen to their smart TV to play. There’s no score tracking or sound effects or “multiplayer” because it’s made for the way they like to play.

Of course, I can’t distribute it publicly either for copyright reasons, but I wouldn’t want to anyway.
Until railways were built everywhere animals were all driven to market often over long distances. Hence "drove road".
Obviously this is more of a personal project to help you out, but could be cool if there were more characters (rest of lowercase, uppercase, special) and the speed kept increasing. Reached level 208 with a score of 2083 before I got bored.
I’ve seen the episode many times, but I don’t get what’s the blindside?

Are you referring to how it references the fact that parents will eventually leave their kids when they die?

That’s only mentioned indirectly by the mom, no?

Is there a deeper story that I am missing?
I've played Textorcist! It's a solid game, and it's fun insofar as it's challenging and makes you want to play it more.

(It's been a couple years since I've played it, hence the vagueness.)

IIRC there's a bit of a difficulty spike when you have to transition from typing English to typing Latin...
bump this, and the implicit vendor lockin that this ideology creates
> Without knowing much about what other countries are doing

The US has PBS Kids. They produced plenty of shows like Bluey, such as Arthur, Dragon Tales, Clifford the Big Red Dog and Sesame Street, and a bunch of others. Idk what the lineup is like today though, my experience is from the 90s-2000s.

In Canada, CBC also had CBC Kids, but the content was garbage and not young children friendly, so most parents ended up having us watch PBS or Family Channel (what Disney Channel was called in Canada) instead.

The UK has CBeebies on BBC which had fairly decent content, and often co-produced with PBS.
How are you measuring “rightness”? Does it have to exactly match the predefined JSON output? Or is there some qualitative “sameness” check going on?

If you’re not already, you could probably give GPT-4 the correct JSON and the predicted JSON and ask it whether the answer is qualitatively correct and assign a letter grade much like a teacher would grade something qualitative like an essay.

The “parse the graph” one seems almost correct. It’s labeled as “Failing” which is correct if failing means “not perfect” but I’d probably give it a B- rather than an F.
There’s more games that can be called “done” now than ever before. Stop playing live service games and games that aren’t actually finished, and you’re good to go. There’s more finished games on my Steam account that I’ll ever have time to play, and I don’t even have that many games.

If you’re annoyed by games that were better before an update, that’s on you. Before online distribution you’d never even have a chance to experience them before they’re “done”. Now it’s your own choice that you’re complaining about.
As workers get squeezed more and more, you'll see this come up more and more...
> civil war, Great Depression, Cuban missile crisis, world war 2

Modern American history means last ~50 years. So that rules these out. Biden is great, but he's not going to ever come close to displacing Lincoln at the top of the heap.

COVID alone would have been one of the greatest crises of the last 50 years, but Biden's administration also had several others to deal with on top of COVID. (remember that 2022 was COVID's worst year).

The only comparable challenges in the last ~50 years would have been the Great Inflation and GFC. Carter did a smash up job appointing Volcker to fix the Great Inflation, but the fact the crisis festered for 15 years prior is a particularly bad smell.

The GFC is a great comparison. A stronger quicker response would have ameliorated it greatly. The last 4 years was handled well because Biden was part of the GFC response and learned from their mistakes.
> already completed their migration from CentOS to RHEL/Fedora/Rocky/Alma/etc during the early part of 2023

ahahahahaha....

OTOH, I no longer work there, I get to watch the fireworks
True until they're hacked, or they're bought by some firm, or the management changes, or someone sneezes and makes a commit by mistake, or they just straight up change their mind.
Show HN: I made a fast images compressor to send festive photos to my family
Fast batch images compressor.
1. Drag n Drop images
2. Compress!

No upload. No sign up.
Fast and Efficient Image Compression
Compress thousands of images online in minutes.
The individualism and “nuclearization” of the western family is the root problem.

It assumes that every family wants two parents and the children in the house together as the optimal arrangement

It also assumes that individuals prefer to live alone and not with friends or extended family

I think the extreme end of this are homes for a married couple with no kids that have a gym, a pool, a garden and basically all of the other things that would’ve otherwise been community places.

The happiest people I see are the ones who live communally. For example, I have a friend who is Catholic and she lives with four other Catholic girls in what’s effectively a woman’s long house. This is an optimal situation for her because she’s not married and doesn’t prefer to live alone because she benefits from the community they create.

Obviously, some people prefer to live alone. I would have claimed was me up until I was married but in fact, I actually hated living alone. It was just what you do and so you work to make it as comfortable as possible. I currently live alone but would much rather live with my friends but that’s just not something people seem to want.

We created a socio-economic trap where long term social groups atrophy or never form because we’re over producing things to cushion the loneliness we forced ourselves into.
Talk to the Manager and tell them their change has broken your application.
> Despite being so on trend, I don’t feel especially cool living with my mom. And even an hour from sunrise, I’m already exhausted.

That's not because you're living with your mom, it's because you're your mom's full-time caretaker - in addition to that of your children.

But to echo someone else, this author sure does complain a lot about things like "took over school pick-ups" - your responsibility as a parent - while living in a home their mother spent north of a million bucks on. I mean, it's fine, everyone has the right to complain about things that are bothering them, and it's good that he's complaining outwards [0], but I'm betting a lot of people here are in more difficult situations than he is.

[0] https://en.wikipedia.org/wiki/Ring_theory_(psychology)
For electrical contacts, they have deposited chromium on it, and gold over chromium.

That permitted measurements, but due to the low level of doping that could be achieved, the contacts behaved like Shottky diodes, not like ohmic contacts.

It is stated in the paper that one of the main targets for further research is to improve the quality of the electrical contacts.

Despite the low level of doping, the resistivities obtained for the doped graphene were good, due to the extremely high carrier mobilities.
Most of the music in Sleepytime is Gustav Holst's Jupiter, though I'm not sure right off the top of my head whether that is used for the credits.
They were actually a product of a time earlier than the Grimms. They were acting as proto-anthropologists, collecting oral tales from illiterate peasants because they feared that these were about to be lost with modernization. This is different from later people like Hans Christian Andersen, who really did create new fairy tales.
I wonder if it passes the 'i'm not a robot' google button press.
> It's fine to use whatever tools you consider most appropriate for your situation and use case.

1000% agreed.

The part where this breaks down for me is the observation that many developers don't seem to have conducted the barest of due diligence regarding what tools and options are even available.

I can accept that you went with ReactJS, but not if you are operating in a vacuum where access to MDN is restricted and you didn't even consider the merits of a "no-build" web ecosystem.
It’s a bit confusing when compared with other programming languages. But the Zig docs’ introduction to structs are pretty clear that they can be pass-by-value or pass-by-reference at the compiler’s discretion. If you need a copy, make a copy; if you need a reference, pass a pointer; if you don’t care, the compiler will pick one.
Show HN: GPT-V Explaining Jokes
Sleepytime uses music from Holst’s “The planets”. In particular the piece called “Jupiter”.

Just Google “holst Jupiter”.
Do you take MYSQL backups of complete BBS sites?
Then you don’t have a choice and your complaints are legitimate, because you didn’t cause this situation. It’s not your fault. I’m not saying people never have good reasons to complain.
One account of out tens of thousands
I'm gonna have to mull over "implement generators using cooperative multitasking" a bit :)

> i think the difference if you were to implement this same executor with rust generators is just that you probably wouldn't make the linked list of all tasks an intrusive list?

You still could, and IIRC tokio uses an intrusive linked list to keep track of tasks. There's no specific requirements for how you keep track of tasks, or even a standardized API for executors, which is why you'll hear people talk about why they want "to be generic over runtimes" and similar.
That's what makes it a good article.

Multi generational living isn't all good, and it isn't all bad. We are culturally trained, in the West, to value our privacy and independence and autonomy, which creates challenges for sharing living space with both your parents and your own children in middle age.

But some of the anecdotes show some of the real benefits, too. Like grandparents picking up children from school and cooking for the family. Like the built in socialization and connections that can get lost when living far apart.

I think this article just shows the good and the bad. In the end, I suspect multigenerational living is something like exercise or flossing or eating healthy. Something that can be annoying in the short term. But has benefits that pay off down the line.
Is it? How did you come to that conclusion?
“Elon’s behavior in the public sphere is a frequent source of distraction and embarrassment for us, particularly in recent weeks,” the employees wrote. The letter, which welcomed other employees’ signatures, called for SpaceX to distance itself from Musk’s controversial online comments.
Thanks for the tips regarding Lazarus and LCL I will share them next time we meet.
CentOS was created as open source distribution compatible with Red Hat Enterprise Linux (RHEL).

It was successful as it gave most of the benefits of RHEL without the expense.

RedHat acquired CentOS, saying that it would be good for CentOS[1].

RedHat shut CentOS down.

New alternatives are coming along to take the role of a free distribution compatible with RHEL.

[1]: https://www.redhat.com/en/about/press-releases/red-hat-and-c...
If you can't walk around in your underwear, is it really living?
> our packages are written with the intention of staying as close to upstream vendor's vision as possible.

This sounds very similar to Slackware, with the largest difference being source distribution vs. binary distribution as the installation default.
Show HN: I Built a Free SQL Database Schema Generator
Fedora cleanly updates and is nearly identical to CentOS. It's also the distro that Linus Torvalds uses on his personal systems because it stays very current with regards to the kernel, and he doesn't have to worry about the small stuff because the Fedora project team members do a stellar job.
Fair, just pointing out the nuance and that each shit show has its own origin story.
I had this book. It was published tiny. Like 5x6. Not good. If you buy it you need a big one. Like 12". Great book tho. A feast, truly.
> I'd be quite interested in Rich Siegel's take (the guy behind BBEdit). He's been at it, a while, as well.

Looking inside the BBEdit app, I see some Swift in BBEdit.app/Contents/Frameworks/CandiedYams.framework, which appears to be a third-party framework (CFBundleIdentifier org.darkrainfall.candied-yams), but not much else.
Hey! I'm Jeff. I'm looking for either a product design or front-end developer full-time role. I am also open to product related roles (marketing, launch, management). I recently graduated from the University of Pittsburgh. I have a Computer Science degree which I focused on interface design, HCI, and web development. In my internships, I worked on areas in VR/AR/Spatial Computing design, developer tooling development, and iOS Development. I am also a U.S. Citizen. Location: Pittsburgh | Philadelphia | PA | US Remote: Open to remote, hybrid, or onsite Willing to relocate: yes Technologies: JavaScript, TypeScript, React, Angular, HTML, CSS, Java Resume: https://jeffleonata.com/
Even though they didn't have a physical presence, they were in control of the territory, controlling all borders, the sea, and the air. Israel is widely considered to be an occupying force due to this control.

Regardless of whether you agree or disagree that Israel is occupying Gaza, would you at least agree that an occupier in general has a responsibility to provide basic necessities like water to the occupied?
If I'm reading this correctly, this is a library for use within a browser, in which case the answer is that this makes it easier to live within the constraints of the browser, which has arguably the strangest "multitasking" support anywhere, what with all the constraints it had to satisfy to be added in to an architecture already 15 years old at that point.
The results show that the average IQ of undergraduate students today is a mere 102 IQ points and declined by approximately 0.2 IQ points per year. The students' IQ also varies substantially across universities and is correlated with the selectivity of universities (measured by average SAT scores of admitted students)

this is not too surprising and is generally assumed to be true given that high school grads subsequently then go to college, in which the attrition rate is high. Now do college grads, and the IQ goes up markedly. I think the 110+ figure has always been assumed for grads, not merely students.
I wish Bluey hadn't introduced the concept of a "bush wee" to my kid, I've had to explain that no, we can't pee in someone's yard in the middle of our busy neighborhood...
There's also WebTransport
I don’t know how else to say it but it’s a symptom of a foundational problem of individualism and selfishness being promoted by society.
The most interesting part for me is the relationship with the parents and children.

Compared to what I was brought up with (The Simpsons etc) it's nice that children are not only taught interesting values but also what the values of parents are
> That's a mult-year project in its very early stages, yet we're already almost 10 years into Swift (more than 10 years of Swift internally to Apple).

It has already shipped, replacing parts of Foundation in the 2023 OS versions. It continues to grow, and it's a rewrite, so it certainly proves your assertion wrong.

My other points were a bit hyperbolic. Feel free the replace "all" with "the vast majority of". Apple obviously still writes Obj-C in their existing Obj-C frameworks, and doesn't arbitrarily rewrite into Swift, but their internal barriers to use Swift are now almost entirely gone. And I can't think of an entirely new framework that wasn't Swift-only recently.
The author of the article, Robin Sloan, is an author that's written a couple of novels and a bunch of short stories (as well a great monthly-ish newsletter). I highly recommend giving his first novel, "Mr Penumbra's 24 Hour Bookstore", a read if you liked that line.
This post changed my mind about sideloading on iPhones. Before I read it I was firmly in the camp of “lock it down, so grandma doesn’t get hacked.” But now I just think it stops people from making home cooked meal apps like this.

I also think it propagates the notion that computers are magic and should only be programmed by magicians. But no software developer I have ever met has felt this way. I don’t feel this way.
Though I agree that the songs should be listed in the credits, iOS has Shazam built-in now that Apple bought it, which will recognize songs ("hey Siri, what's this song?"). I'd be shocked if Android didn't have something similar.
Once everything is downloaded and archived, will this enable me to play the game without it having to talk to the steam servers?
Good. Addition by subtraction.
“Known” is the operative word. If you blind the insurer to risks and require them to accept everyone then the pool stays a random distribution. Allowing the insurer to cherry pick is the problem. Once you’ve blinded the insurer no one is doing the insane.
I think like there's a massive difference between having been independent for years and then moving back with your parents for economic reasons, and never moving out from your childhood home.

The best part of moving out for me was becoming an independent adult - making decisions for how I wanted to live, cooking my own food, buying my own art/furniture etc. Inviting (girl)friends over without worrying about anything. In short, being the master of my own place and life.

I feel like gaining that independence is massively more difficult for people who continue living with their parents into adulthood.
Great and articulate explanation! I learned something today. Thank you!
That was the real rug-pull. Had they supported CentOS 8 for the full 10 years, and announced that starting with 9 it would be this useless rolling release, people would have been much more calm about the whole thing.
> win-win deal

Yeah I'm sure it's been a win for all of us (not)
What made me very fast was playing MUDs during high school (25+ years ago, and specifically Arctic MUD, http://mud.arctic.org/ ). Have to type fast or your character is going to die.

Once you get used to it, an ergonomic keyboard helps a lot to speed up typing as well.