skysight-inc/HackerNews huggingface dataset:
Hey fellow devs! I just published the second part of my series on JavaScript Design Patterns, and this time, we’re covering the Factory Pattern . If you’ve ever struggled with object creation and want to make your code more maintainable and scalable, this article is for you.

Here’s what you can expect:

Simplified object creation
Flexibility and ease of maintenance
Real-world examples like payment systems and notifications
Check it out and let me know your thoughts!
https://codexstoney.medium.com/6a0c96295c01?source=friends_l...

Looking forward to hearing your feedback!

#JavaScript #WebDevelopment #FactoryPattern #Programming #DesignPatterns
This is interesting and appreciated but I'm not sure it's a Show HN unless the OP is representing Anthropic?
Show HN: I made tool for slicing up samples to Ableton Move presets
I recently got Ableton Move and was disappointed by how difficult it was to convert samples into Move-compatible drum racks, so I made a simple CLI tool for that.

I hope others find it useful, and at some point, Ableton sees the need and provides us with a built-in solution.
A friend and I built a proof-of-concept of using a variation of Latent Semantic Analysis to automatically build up conceptual maps and loadings of individual words against the latent conceptual vectors back in 2000. In exploring what it would take to scale I concluded, like you, that we should use professionally written and edited content like books, news articles and scientific journals as the corpus against which to build up the core knowledge graph.

Twenty-four years later I still regret not being able to raise money to enable us to keep working on that nascent startup. In most ways it was still too early. Google was still burning through VC money at that point and the midwestern investors we had some access to didn't get it. And, honestly they were probably correct. Compute power was still too expensive and quality data sources like published text were mostly locked up and generally not available to harvest.
I associate and even am friends with all kinds of people I don't agree with. Implying that I endorse their views just because I associate with them would be to assign motivations to me that I don't have.
I'm partial to "com" - short for computer, or communicator. Hasn't caught on yet though.
Before 2008, there was a bust in 1980.

Most attribute that to rising interest rates at the time. Given that the prime rate now is just 40% of what it was in 1980, it's not like interest rates can't rise enough to impact the housing market at some point in the future.
> Most mental health solutions offered in the workplace are either employee assistance programs (EAPs), which offer short-term counseling or phone access to a helpline, or preventative tech solutions, like mindfulness apps. These low-touch solutions have minimal engagement.

These are all I've seen at the places I've worked, and I have never heard of anybody actually using them (although I'm sure many who do simply never mention it). I don't use them on two counts: I think they're without value, and they feel too much like my employer further encroaching on my life. My employer already directs more than a third of it. I jealously guard the rest.
> And? It's not like the US is a major steel producer with annual production more than 10x less than China's.

China is a major outlier, with more than half of global production -- in other words, all other countries combined don't equal China.

Yet India is the number 2 producer, Japan is #3, and the US is #4. Germany is #8 globally, but it has a historically large steel production base, and it's #1 in the EU by far, so I included it in the statement nevertheless.

What I wrote could be restated: "That's substantially more than the total output of the #2, #3, and #4-ranked steel producing nations." It's a hell of a lot.
"I've heard it quipped that Americans are subsidizing the discovery of new medical techniques for the rest of the world."

The way Trump touted an invention from the German company BioNTech as "Invented in America".
Are you curious about Bitcoin mining and wondering if it’s still profitable? With the rise of Bitcoin’s popularity, many people are asking themselves this very question. In this blog post, we’ll delve into the world of Bitcoin mining, debunk common myths, and introduce you to the best place to clear your doubts and get started: Hashing Drop.https://hashingdrop.com

Is Bitcoin Mining Profitable?
The short answer is: it depends. Bitcoin mining can be profitable, but it’s not a guaranteed way to make money. The profitability of Bitcoin mining depends on several factors, including:

Hash rate: The speed at which your mining equipment can solve complex mathematical problems.
Electricity costs: The cost of electricity to power your mining equipment.
Bitcoin price: The current price of Bitcoin, which affects the value of your mining rewards.
Mining difficulty: The difficulty of the mathematical problems, which affects the speed at which you can mine Bitcoin.

miner

Getting Started with Hashing Drop
HashingDrop.com is the best place to clear your doubts and get started with Bitcoin mining. They offer a range of benefits, including:

High-performance mining equipment: Hashing Drop uses high-performance equipment to ensure maximum efficiency and profitability.
Low fees: Hashing Drop offers competitive fees, ensuring that you get to keep more of your mining rewards.
User -friendly interface: Hashing Drop’s website is designed to be user-friendly, making it easy for you to monitor your mining activity and adjust your settings as needed.
24/7 support: Hashing Drop’s support team is available 24/7 to answer any questions you may have. Telegram: @hashingdrop0

bitcoin miner
Get in Touch with Hashing Drop
For more information about Hashing Drop and their Bitcoin mining services, contact them on Telegram: @hashingdrop0. Their team is always available to answer any questions you may have and help you get started with Bitcoin mining.

Conclusion
Bitcoin mining can be profitable, but it’s essential to understand the factors that affect profitability and to choose the right mining operation. With Hashing Drop as your partner, you can debunk common myths and get started with Bitcoin mining today. Happy mining! https://hashingdrop.com/ https://hashingdrop.com/mining-plans @hashingdrop0 https://hashingdrop.com/about-us
When convertcsv.com converts JSON to CSV, it uses the / separator to store the structure in the column headings. Probably could use an option for . too.
The function that calls the function I'm currently working in
One way to lose weight, I suppose?
For some reason, the guarantee in the format of the response doesn't seem sufficient in preventing backwards incompatible changes that may happen to models.

Yes, the response might be in a standard format. But a well formed response can still be bad/broken.

Another way to think about it, is it can "pass QA" one day, and "fail QA" the next day even if the API response is identically formatted/structured.
Send: Open-source fork of Firefox Send
It's not a comforting story, but I think it can provide meaning. It does for me at least. While we are not gods, we are different from all other animals - we are where "the fallen angel meets the rising ape" as Terry Pratchett wrote.

While we might not have free will in an absolute, metaphysical sense, we can self-reflect, practice self-control, shape our environment, and even change our nature. What will we do with this power?

There is no eternal afterlife to go to, but we now understand what actual life is - and it's no longer so nasty and brutish. Perhaps soon it won't be so short either. We are certainly capable of extending it in principle, we just need to get our shit together.

Comforting stories are cozy, but we are growing up. We've become smart enough to cause a whole lot of trouble for ourselves, and are not yet wise enough to fix it. We're confused, can't make sense of things and constantly whine about it. But that's how growth works. Humanity might just be in its awkward emo teenage phase.
Show HN: Secure and Random Password Generator
“The average days is longer than 24 hours” is always a fun one.
I am sorry for your bad experience, I will update it to not restrict any user from checking it. But you can try it by rotating the phone(landscape orientation). I forced it because the layout is designed for landscape.
And if you’re a voter you need to vote for people who will push back on this.

People don’t typically have a lot of choice to hop around between hospitals and medical providers (which is, of course, a strategic win for said PE groups). Even if you have choice, a growing number of Americans do not.
Rocket Launch: Ignite Your Online Success
Rocket Launch is an innovative Next.js boilerplate designed to propel your web development projects into orbit. Packed with powerful features and optimizations, it offers the perfect starting point for building ultra-fast, modern web applications. Blast off into the future of web development with Rocket Launch.
Too few locations, only a tiny percent of global hotel inventory.

I practically live in hotels. Generally I have a fairly specific location and date range in mind. Every booking site I use has most of the same filters HotelsWith offers.

Does this site scrape Expedia? That’s where the booking links seem to lead, though I only tested a couple.
> You need CPU time to evaluate the priority of the event.

Not necessarily. The CPU can do it in hardware. As a simple example, the 6502 had separate “interrupt request” (IRQ) and “non-maskable interrupts (NMI) pins, supporting two interrupt levels. The former could be disabled; the latter could not.

A programmable interrupt controller (https://en.wikipedia.org/wiki/Programmable_interrupt_control...) also could ‘know’ that it need not immediately handle some interrupts.
When you pay for goods or services, you should expect to receive something. If you pay extra for leather seats, you’re getting leather seats. If you pay for DLC as part of a game, you’re subsidising the cost of the developer adding more stuff to the game. The pricing of digital products and add-ons may not always be fair but you should be getting access to something valuable that you didn’t already have, i.e. something that costs money to develop and/or host.

In this case, you already bought and paid for the additional RAM. The manufacturer is refusing to let you use it until you pay additional money, even though you theoretically own it already. That’s not providing a service, it’s just extortion.

If you could somehow prove that the additional RAM was not factored into the original cost of what you bought then this might be fair (albeit wasteful) - but I doubt it…
It's a limited field of one person, but John Peel (BBC dj) sure introduced me to so much.
Never found anything like the show for making me realise how much music I was missing...so thought fuck it...can't listen to everything, so I won't bother trying.
I write my own music for me. It's on a yt channel (no images), so if anyone does discover it all....it's yours. And everyone elses.
That blog post seems a lot more involved - it adds code to the bytecode compiler as well as to the parser.

I suspect that’s mostly because the `until` statement is more complex - but another factor seems to be Python’s change in parsing technology from LL(1) to PEG.
In this context, the final line would be:

Then when my children needed a teacher, and I became sick, or old, there was no one left to support me.
There are PEs that arent outright evil. Some are known for even saving companies.

They just don't end up doing anything newsworthy. Lol
Go timers do have weird little details, in fact one little detail changed recently in 1.23 and broke my code. A third party dependency selects on sending to a channel and time.After(0); before 1.23, due to timer scheduling delay, the first case would always win if the channel has capacity to receive, but since 1.23 the timer scheduling delay is gone and the “timeout” wins half the time. The change is documented at https://go.dev/wiki/Go123Timer but unless you read release notes very carefully (in fact I don’t think the race issue is mentioned in 1.23 release notes proper, only on the separate deep dive which is not linked from release notes) and are intimately familiar with everything that goes into your codebase, you can be unexpectedly bitten by change like this like me.
CTOs: Own AI or Lose It–Become the CAIO
Show HN: SneakersAPI.dev, a free API for sneakers and fashion data
I’ve been working on this for a few months after getting frustrated that no public API offered sneaker and fashion market data (like StockX or GOAT). So, I built one!

It’s free to use for the most importants features, with paid options for "power users". I hope some of you find it useful!
I keep things very simple. I have a Single Source of Truth for all my contacts. Right now, I'm using a contact app on my phone for this, but over the years I've used different things. The exact method isn't important to me, what's important is having an authoritative contact list.

I don't sync anything with anything. I look up a contact and enter whatever detail I need manually wherever it's needed. I lean a lot on the frequently-used autocomplete lots of applications have, too, but that's a convenience that I don't take as authoritative.
Seek different news sources. That earthquake in Iran wasn’t an earthquake. It didn’t have aftershocks and USGS couldn’t determine the depth.
Yep, I’m pretty sure it’s just one guy and the bug tracker with 1000 issues. I’d be interested to know what Air apps are so important to Harman that they are keeping it (barely) running.
>They did buy the ticket. Legally.

Yes, that ticket is a binding contract for both sides.

If you sign a contract fully aware you don't intend to honor it, you are an asshole.

>Skiplagging is only determined on intentions,

...Yes?

I'm not sure if you're being daft. It is skiplagging to buy something with the intent to not honor the deal, it is not skiplagging if you cannot honor the deal due to factors outside your control.

>You should be more mad about people flying for cheap with credit card points, that literally DOES raise prices for everyone.

The airlines receive compensation from the banks so it's a non-issue.
The Sirius Cybernetics Elevator Challenge
Have you ever argued with a neurotic elevator?

Try convincing this Sirius Cybernetics Happy Vertical People Transporter to go down!

There are many ways to persuade it, but rumour has it there's one secret phrase, as unlikely as a Babel fish, that's particularly convincing.

https://b_jhzjeywxldc.v0.build/

Don't Panic! (I made this. The source code is also provided)
Apple Find My Recurring Notification Consent Bypass
> In Haskell (and Erlang etc), all data structures 'want' to be copy-on-write by default. That means you don't need to do anything extra to act as if your code is running a against a duplicate: it's behaving like that anyway by default.

Right, but still, that's an implementation detail. It could have been implicit, or it can (like in the authors case be explicit), how is that important?

I'm well aware of languages that does this implicitly, as I'm mostly writing Clojure code which is all about immutability and persistent data structures. I still don't understand why you want to highlight that this could be implicit instead of explicit, what the author had to do wouldn't change really.
I went through this around a year ago. I wanted to postgres for django apps, and I didn't want to pay the insane prices required by cloud providers for a replicated setup. I wanted a replicated setup on hetzner VMs and I wanted full control over the backup process. I wanted the deployment to be done using ansible, and I wanted my database servers to be stateless. If you vaporize both my heztner postgres VMs simultaneously, I lose one minute of data. (If I just lose the primary I probably lose less than a second of data due to realtime replication).

I'll be honest it's not documented as well as it could, some concepts like the archive process and the replication setup took me a while to understand. I also had trouble understanding what roles the various tools played. Initially I thought I could roll my own backup but then later deployed pgBackrest. I deployed and destroyed VMs countless times (my ansible playbook does everything from VM creation on proxmox / hetzner API to installing postgres, setting up replication).

What is critical is testing your backup and recovery. Start writing some data. Blow up your database infra. See if you can recover. You need a high degree of automation in your deployment in order to gain confidence that you won't lose data.

My deployment looks like this:
* two Postgres 16 instances, one primary, one replica (realtime replication)
* both on Debian 12 (most stable platform for Postgres according to my research)
* ansible playbooks for initial deployment as well as failover
* archive file backups to rsync.net storage space (with zfs snapshots) every minute
* full backups using pgBackrest every 24hrs, stored to rsync.net, wasabi, and hetzner storage box.

As you can guess, it was kind of a massive investment and forced me to become a sysadmin / DBA for a while (though I went the devops route with full ansible automation and automated testing). I gained quite a bit of knowledge which is great. But I'll probably have to re-design and seriously test at the next postgres major release. Sometimes I wonder whether I should have just accepted the cost of cloud postgres deployments.
You are correct. That part is never said.
I sometimes think it would be fun to do “do: ... where:/while/until”, wherein the “where” part does local bindings.
Is there much of a controversy about it being an imprint of a body ?
You should actually ask for 3 examples so you can select one.
How about auctions for telegram usernames? It helps to distribute limited resource.
Fagging
Same… there is tons of research on ADHD showing stimulants are safe and effective long term. I suffered needlessly for years because of ignorant ideas like this… and using medication was life changing.

Counter-intuitively there is data showing medications can help people develop better executive function- children who use ADHD medication are less likely to have adult ADHD.

That said, I think the core advice of this article is excellent- and addresses something entirely different than ADHD medication.
I find it fascinating that I don’t understand a sentence of this.
Woman, 82, still rides same bike she was given at 13
The last parts Ive ordered from JD have been made in China.

I’d be surprised if their contributions to American manufacturing was much more than assembly to avoid import taxes.
Guy really had no idea about -DNDEBUG?
Gotta love british boarding school jargon. In the 90s no less! Sounds like 18th century.
Alternatively, there's a room with a single 10ft tall person, a few 1 ft tall people and and host of much smaller people.

A four foot tall person arrives.
If only there was a language that let you modify the interpreter on the fly so you could do this as part of normal execution...
Imagine all Teslas doing a full left right now. And full right in left steer countries.

OTA updates and auto updates in general is just a thing that should not be in vehicles. The ecu:s should have to be air gaped to the internet to be considered road worthy.
'Pointless meetings, middling middle managers': Amazon employees air complaints
No refunds.
We have customers with not quite TB levels, but at least several hundreds GB databases.

Upgrading the database server is as simple as shutting down the service, installing new executables and restarting the service. Downtime is measured in minutes.

When upgrading major versions, one might not get full functionality of the new features unless one upgrades the on-disk format (unload-reload), but you can run the new server version with older on-disk format just fine.
NASA drops Boeing Starliner from upcoming missions
One of those points is not like the other, Marimo’s feature to deploy a notebook as WASM is a very nice feature imo.
Great post!

I have worked on a similar series of CPython customization articles that you might find interesting:

https://github.com/pkolchanov/CustomizingPython
> that’s on you

They’d be dead, doubt it’s a concern at that point.
Ah pledging/hazing, a double edged sword. A possibility for camaraderie and mentorship which is often misused for abusive and degrading activities. I went through pledging/hazing in a college fraternity in the US and it was mostly harmless if immature and crass, but for activities or challenges involving alcohol I could see it easy to go overboard especially at fraternities with a more macho/party reputation or with the wrong people involved.
He seems quite gentle in the video, he uses the windowsill as support and just vibrate the thin stick a bit.

The pea shooter method looks quite fun :)
The Bible is not a valid source, neither is the Talmud. I would trust the Egyptians far more as they wrote down everything.
in your opinion these are settlers illegally occupying land, in their opinion they came back after they were ethnically cleansed from Hebron in the 1929 and 1936 massacres

sometimes life is surprisingly complicated
It’s not quite 137, though. The last digit needs to be oh so slightly off.
for me important argument in favour of JJ over Sapling was "first-class conflicts" - JJ stores conflicts in the history and allows you to resolve them later, while Sapling forces you to resolve conflicts at the point when they happen

https://martinvonz.github.io/jj/latest/sapling-comparison/
Enjoy your speculative theories. Lots of minor earthquakes don't have aftershocks, not to mention that Iran is one of the most seismically active countries in the world.

But please feel free to provide a trustworthy news source backing your claim.
Poor economy doesn't necessarily cause regime change, but regime changes almost always happen from an economic downturn.
Do you have numbers ? There used to be famines. And countries still fight over water. what is the carrying capacity in terms of food production on earth ? 10 billion, 100 billion ? At a trillion, the world would be at Singapore’s population density I think.
> Israel was saying that HAMAS had built tunnels under the hospitals

If the tunnels are under the hospitals, why bomb the hospitals then? It won't destroy the tunnels. It will only destroy the hospitals.

IDK what else to say, for some reason you are eager on believing that the same Israel who invented 40 beheaded babies, and the US intelligence who lies about Iraq WMD, are somehow a beacon of truth, despite them never providing a shred of evidence.
Reverse Engineering Is Not Hard with LLM Powered Tools
How tight is scheduler coupled to the rest of kernel code?

If one wanted to drastically simplify scheduler, for example for some scientific application which doesn't care about preemption at all, can it be done in clean, modular way? And will be any benefit?