skysight-inc/HackerNews huggingface dataset:
lc should be allowed in addition to v and t, as link to specific comments under a video!
Ask HN: Using WebSockets instead of mqtt for IoT
I recently worked on a personal project where I wanted to connect multiple ESP32's to a web app. Previously I've used mqtt to do this and also done this in several work projects, but I decided to try something different and use websockets as ESP-IDF has a websocket client.
It worked really well and ended up in a much simpler setup, I didn't need an mqtt broker or a long running process listening to the broker, which meant it was much easier to deploy.
Previously I'd had to create a CA and generate self-signed certificates for each device, but with websockets this doesn't seem necessary and is handled transparently by the webserver.

A few other advantages are:
- it can have actual end-to-end confirmation, unlike MQTT which is only between client and broker
- port 443 won't be blocked
- much easier to develop and test locally

So my question is, is anyone else doing this at scale, is there something I haven't thought of?
Large nuclear reactors have better economics (per energy produced) than small reactors due to economy of scale benefits.

But SMRs can still be useful for small towns, remote communities, district heating, process heat for nearby industry and so on.
Advent of Technical Writing: Clarity (Day 6 of 24)
> If it's something I really want to watch, I'll download the 24 fps version and watch it offline (YouTube has it on their servers, but only serves it to certain clients or something).

This is going to be interpolated from 60 FPS. At least get a 30 FPS version that can just drop frames from 60.
What grip strength can tell you about how well you're aging
I do not. Not any more. Which is not the GitHub I first joined.

And to sprinkle in a bit of ad hominem, I am aware that things regarding rules or ethics are viewed differently in your culture, and that is okay.
I got the impression it was not dynamic values? Just that you can combine static objects dynamically. If I’m wrong I’ll re read the docs but someone else pointed that out to me and linked part of the docs that seemed to indicate that.
I'm getting "access denied"
NIF is not a Tokamak, it does inertial laser confinement fusion. (No magnets, not a torus.)
There are hybrid heat pumps that do exactly this.
Then why aren't those EU countries negotiating agreements with other less-well-off countries that are so blessed?

Yes, that would require a cable. But it isn't rational to be in a situation where we believe we can build a fusion reactor, but some relatively simple civil engineering is apparently beyond us.
> but for sure we will not be either watching ads or paying for content.

The quality and quantity of ads is the problem. Getting blasted with Uber Eats ads all the time (I had a two week streak on my tablet for this crap) without any ability to tell Youtube that, no fuck no I will never eat at Uber Eats and their jingle is annoying the fuck out of me, absolutely sucks. And no I don't want to be interrupted every five minutes with an ad break that completely breaks the flow of the video, and especially not right after coming out of a 2 minute "sponsor" block shilling NordVPN, Athletic fucking Greens, Aura or AirUp.

In contrast, regular TV ads are at least placed in joint blocks that leave you enough time to go to a loo and then have 20-30 minutes of uninterrupted video. Oh, and there also won't be low-quality ads for Evony or whatever other free-to-play whale hunter games on TV either.
That's why Gmail is fantastically bad at spam filtering. Even simple spamassassin setup is miles ahead of it. Gmail filtering is basically useless because it forces me to check spam folder and I need to look at all this spam anyway.
Not open source but chess.com app is brilliant, it's a freemium model - you can play for free - but they just keep trying to sell you tip and tutorials.

Also seems to have all the grand masters on there as players, Magnus ignored my request for a game though.
> The universe tends towards first chaos and then entropy. Working against these forces, to build security, comfort, and meaning, inherently work against the tide.

I am not sure I would agree. Try living in the snowy mountains without shelter and a fireplace. I'd bet optimism wouldn't help you a lot in that particular circumstance unless you'd have already secured the necessities for survival.
A Cassandra CQL parser microservice
A simple microservice (as a Docker image) that parses any Cassandra query or command (CQL) and returns a JSON object describing what the command is. This uses Cassandra's own parser, therefore it works with any valid CQL command.
Unfortunately they don't spend nearly enough time explaining all of their decisions and lots of the related youtube channels have a following that is not in line with the safety of the advice provided.

Freestanding structures are a great way to ensure that if - or should I say when - it goes that at least it will only be a monetary loss.

There are some youtubers that are basically setting people up for an accident without any indication of the danger levels involved. To be fair: the same goes for some professional gear that you can just go out and buy and which people routinely charge in their hallways and attached garages. E-bikes, gardening gear etc.
Can confirm, brave blocks it too.
The field is moving so fast, so hard to keep track.
I am not sure what you mean by "my culture," what are you basing that off of? Why would you knowingly and willingly add an ad hominem? Very strange behavior in discourse.

GitHub has always had such clauses, even if they were not explicit about AI model training in particular. It is best to self host your own git instance if you are so worried.
> as it is scamming, spoofing and innocuous unsolicited marketing

Those are all spam. Especially unsolicited marketing. Fuck everyone who sends that, and I hope they get banned from whatever provider they use and it kills their company. I always report all of those even with an unsubscribe link, as it’s not as if I can trust them not to use "unsubscribe" as a "send more spam" signal, they’ve already proven themselves untrustworthy by not using double-opt-in.

Though with some providers even "mark as spam" seems to be able to leak your email as they send reports which contain the message-id. Good in our case as we don’t want to spam anyone and can then blacklist the address, but bad in case you report evil spammers.
Wikipedia has repeatedly blocked my access to edit pages in recent years. The block isn't aimed at me specifically but rather my ISP's block of IP addresses.

Frankly, this blunt unsophisticated and wrongly-targeted discrimination is outrageous and I no longer even attempt to edit or correct mistakes. I know however the blocks are still in place when I accidentally hit edit or such.

If Wikipedia was functioning properly as an organization it would address these problems.

Furthermore, I find myself using Wikipedia less and less because of its never-ceasing demands for money.

One has to wonder what's really going on inside the organization.
> Says invalid code

Well yeah it was already used and you came 3 hours after the fact.
That's not obvious. If the pay-to-watch version of Twitch isn't viable, it will have no streamers and no users, but it will cost more than the we-no-longer-exist version.
My initial comment was precisely to point out that this is not about being legal or not at all. It is a sort of “public image blackmailing”.
> Programming isn't like music or math where there is a natural order underlying the man-made rules.

I'd like to reinforce your point by disagreeing on two counts: programming (in so far as it's related to computer science) is like music and math in that there is loads of underlying natural order that can be independently derived (think about the lambda calculus vs Turing machines which are proven to be identical, for one example). That underlying beauty is there, and I think it's there because computer science is a part of (or at the very least akin to) mathematics.

Secondly, both math and music are, like programming, not really that devoid from arbitrary rules nerdy white guys came up with 30(0)+ years ago. When you're tuning an instrument, you'll likely tune it to the western chromatic scale- but that's just a convention, there are more scales! Just as much of a convention is to tune that scale to concert pitch, where A is tuned to 440 Hz. But that's not required- concerts will tune to 422.5 Hz when playing Handel.

There are all kinds of conventions all around us which are invisible because we're accepting them as a given of the world, more so if we have a traditional education in that field. That's why it's enjoyable to see stuff like this, what intel-VISA called self-directed exploration, it deepens your understanding and is just fun!
"Single-core perf matters for web apps, and I won't sugarcoat; it's grim"
I'm not sure if "incompressible" is possible, at least in a way that Google would still consider an annoyance.
>I mean it takes ~15 seconds to update uBlock Origin's filter scripts any time there's an update to bypass YouTube. Based on my current salary that's under 50 cents worth of my time.

It takes me precisely 0 seconds to update uBO's scripts. It's all done automatically; am I the only one here that doesn't spend any time at all blocking ads? I installed uBO ages ago, I've spent a couple minutes going through the options and enabling almost everything useful to me (annoyance lists, etc.), and that was it. It doesn't take any effort on my part to block ads on YouTube or anywhere else now that it's set up.

Also, I've also have zero adblock warnings so far, on FF/Linux, FFNightly/Android, and SmartTubeNext.

Setting up a YouTube Premium account and managing the payment details would honestly take me far more time than it does for me to block ads.
Ask HN: How are you promoting yourself on GitHub?
I'm not actively looking for a new role but given more layoffs in the tech industry this week, I wanted to clean up my GitHub profile and include some projects as examples of things I enjoy working on.

If someone did happen to stumble upon my profile, I wanted to have my résumé in a repo, possibly named something like "hire-me" with a readme.md file.

How are other people including their résumé/CVs on GitHub?
I wonder if 2 letters are reserved for potential ccTLDs. As such just need to form a new country... Easiest way might be to secession.
Don't worry, the market will self-regulate. Any day now! :)
This sort of email oligopoly/mafia problem can only really be solved with legislation. There needs to be push from within the EU to legislate this hopeless situation.
How about not being in a walled garden and actually having access to your device?
I use use alt tab on macOS: https://alt-tab-macos.netlify.app/
A few people here do mention LiFePO4 batteries as a safer alternative.

As a total battery-noob, honest question: assuming the author had indeed used LiFePO4 for the build, with standard (-ish?) over- and under-charge protection.
How much safer would this be? It's still a relatively big battery pack (read: chemical energy) sitting in someone's broom cupboard, isn't it?
Some status (mana cost, stats) of MTG cards are numbers, but the most important part, the effect of the card, is defined in English text.
So, in my opinion, this seems to be an area where LLM can work well.

MTGA and MO development team do a lot of work to put card effects into if-then rule, but unfortunately their work is not visible to the players :)
$100k trucks are not for moving stuff from a to b (with some exceptions around very heavy and/or specialised commercial vehicles); they are for compensating for something. Like, this isn't for work, it's for showing off.
> It's basically taking the first order perturbation of a Taylor expansion around a local minima.

I'm not sure that's less complicated, at least for my level understanding.
I prefer Moon+ Reader, it has text to speech too.
Though not the EU anymore, but something like this? https://en.wikipedia.org/wiki/Xlinks_Morocco%E2%80%93UK_Powe...

The downside being you still don't have energy independence, if that is a goal.
Wow that’s a lot of work to avoid paying 10is dollars a month?

I use ad blockers everywhere, but for me it’s „set it and forget it“. I don’t have time and energy to adjust that regularly.
Effectively? I've been using uBlock Origin the whole time. Whatever YouTube is doing, it cannot be accurately described as "effective".
Am I the only person who never clicks these "Share" buttons but just copies the link from the address bar? It's fast and easy - Ctrl+L, Ctrl+C.
Recently, I managed to get my personal mail server working and delivering to Outlook.

Of all the major mail providers, I found getting my mails to Outlook the hardest. Gmail played nice once I setup DKIM, DMARC, SPF, MTA-STS, rDNS and a couple more things that I forgot setup exactly the way they like it.

Outlook was harder though. I had to send a series of mails spread over multiple days to people who had Outlook accounts and get them to both mark it as not spam and reply to the mail until it eventually started working.

It's been a couple of months, not sure if it still works though. Hope it does.
Various TUI modes were implemented in the ICS protocol for online chess.

telnet freechess.org 5000

still works.
Or some simply do not unsubscribe you.

After feeling gaslighted by some spam emails that I was very sure I had unsubscribed from, I started keeping a spreadsheet to track my requests with date, and what link I followed to get removed. Almost 25% of my requests have never been honoured, it's disgusting.
In NL I know for a fact the locs wouldn't be infrastructure, the term used is 'rolling stock' and they are usually owned by different companies from the infra.
Haskell's `do` doesn't allow mutability still, it just allows a syntax that looks a bit more imperative than usual. The problem with all the "convert to pure function" magic is that for example this piece of code

arr[1000000] = 1

has to clone the entire array if you want it to be pure, leading to very unpredictable performance. There are also some algorithms that are straight up impossible to (efficiently) implement without mutability. Often, it's exactly those algorithms that are hard to optimize for optimizers like JAX.

Specifically in JAX, code that is slow due to copying will often be optimized into mutable code before running for performance reasons. But because JAX still has the gurantees of no mutability, it can do many optimizations such as caching or dead-code elimination.
Google raised it to another lvl: Now playing feature, so it constantly detects songs and will register them in a history log, and you can also search songs in google assistant by just humming (not working reliable but sometimes it nails it)
Bitcoin tops $44,000 since April 2022 as ETF optimism grows
Stern-Gerlach experiment used to probe the clash of quantum theory and gravity
Appreciate the words of support! Thanks. Very happy you managed regardless of scoliosis.
+972 mag a "random news organization?" Heh. And you are?

From the Guardian which is the OP:

> This article also draws on testimonies published by the Israeli-Palestinian publication +972 Magazine and the Hebrew-language outlet Local Call

Also, what is "very reliable"? Can you show me something that contradicts any of it that you find "very reliable"?
I mean, I don't think false advertising is really allowed in the US, either, but their regulators tend to be on the slow/passive side. It look the FCC about a decade to lurch into action on paid social media astroturfing, say, long after regulators in other countries had started to deal with it.
Mormons don't curse anyways, unless you count "shut the front door", "cheese and rice", "mother father" and "Got down sat on a bench"
Already commented on the github issue but will have another look, yep.
Show HN: Apply AI filters to your videos – Android
The worst ones are the ones that add a whole paragraph to their spam to explain why it isn't spam and they have a right to send you their junk.
The story I heard again and again was that data quality and consistency is the Achilles’ heel for all data teams.
The moment you spend more time tinkering tools instead of doing work, you obviously lost control. But even that’s too much. I believe you shouldn’t be spending 10% of your daily work time on tinkering tools. That’s an hour out of an 8h working day.
EU Integrity Watch
You are more likely to be on the side of wrong to be honest. Considering vegetables couldn't have been largely available in winter in the east/north part of Europe, it is unlikely that they are necessary for a healthy life (considering this part of the world is doing pretty good in many health factors).
Personally, I like veggies for the taste but I really doubt they are necessary if you eat nutrient dense animal products.

I think those kinds of studies have some results because people can't make the difference between real hunger and boredom hunger, so having your stomach full of useless crap (like a ruminant) makes it easier to not eat too much.
But if you consider a person with physical activity the fiber would actually be counterproductive because they would prevent fast absorption of useful energy. Just ask any high-level sportsman how much he like fiber...
Besides that, it is doubtful fiber does anything good...
"But AFAIK there are no "Tokamak reactors planned that will be able to run continuously and produce useful power. These are all experimental reactors that will be self-sustaining for only a few seconds here and there. "

But are there at least theoretical concepts, on how one could build a tokamak reactor that can run continiously? In other words, is the main disadvantage of the Tokamak solved in any way?

If not, why is the Stellerator design not getting more attention?
Interesting but unclear how to determine the quality of the data and control over edits.
Our energy needs are ever increasing. If we ever want to get to what is currently science fiction, we'll need fusion energy, otherwise we'll eventually blanket the Earth in solar panels.

Maybe they'll be in time to provide energy to slurp carbon out of the atmosphere.
Or power huge spacecraft etc etc.
https://www.youtube.com/watch?v=msptE3ezksE
If DEMO is ever built. My sincerest hope is that Commonwealth Fusion Systems does so well with SPARC and ARC that DEMO never needs to be built. DEMO would be so incredibly expensive to build that it would never produce economical energy.
It was rolled out to me. I saw several warnings that my ad blocker wasn't allowed, and on one day they blocked me from watching videos, except that they didn't block me from watching videos in Incognito Mode.

On all other days, I was free to watch whatever I wanted while logged in. They might complain at me about ad blocking, or not.

On all days, youtube-dl worked fine. (This matters because, contemporaneously with the anti-ad-blocking campaign, YouTube started sometimes reducing my video frame rate to 0 fps. Audio never suffered at all.)

It's not a strict regime.
No no no, Tuneprint was well before that. By 2004 we were LONG gone. Shazam didn't show up until I think years later.

And I might be confusing them with another group but I thought, at the time, they were doing some goofy hash of the highest energy Fourier components -- a source of entertainment in our office. ;-)

I think Geoff had the vision and algorithm from the 90s as part of an ISEF project (!?). We had funding in 2001, when we got the real world go-to-your-car-and-get-a-cd and then we identify it ... using the audio signal alone.... demo working.

With a corpus of hundreds of thousands of songs. Positive match in less than 2 seconds.

Sadly, in 2001 there's no market for such whizbang amazing tech.
Also you don't need a database You can maintain a transaction log and few btree indexes to get the job done.
What are the use cases for storing and manipulating json at the db level like this - why not use a relational schema and query it in the normal way?
There's definitely some things you learn from mistakes when using a REPL workflow in Clojure or Python, where you debug for a bit and then realize that you just didn't reload or reinitialize something. I feel most people end up adding it to the set of things to sanity check when hitting "can't happen" situations, like "let's add a debug print here to make sure my code change is actually invoked". But that's just a backstop of course, you mainly use other practices in your REPL workflow to keep from hitting it.
> The pizza you get never has the density of toppings in the ads, nor the soup all the chunky bits.

In some countries (including the US, actually, I thought), regulators have started cracking down on this, though it certainly used to be the case that food photography was basically all about fraud.
Hmm, it does seem from your link that while evaporation was a benefit, the reason was regulatory?
> scroll shorts until their brains leak from their ears

I use a little user script that redirects me from YT shorts URLs to a normal video player URL. I found that it adds just enough friction to getting the next video that just scrolling shorts for an hour doesn't happen anymore.

Added bonus is that you can rewind a bit of video if you want to, instead of having to watch the entire video again.
What are the legal aspects of building a service like this?

New music is created every day. Can Shazam just buy MP3s at "normal prices" (non commercial) and use them commercially?

Also if they buy music to encode its signature, wouldnt that be very big part of their running costs?

What if someone makes a track and asks 100k USD for it? Will Shazam recognize it? I doubt they want to pay some ridiculous money just to recognize something.

It's like those AI backups that seem to use books for training. Did they pay for those books?
I think they are just updating their measures frequently, so not really anything technical. In other words: Youtube is continuously spending a lot of money to put out new patches block the latest circumventions.
I didn't even notice that my YouTube Premium Lite subscription had been terminated for about a month, YT decided to not offer that type of subscription anymore and I'm not willing to pay more for YT Premium, uBlock Origin is working flawlessly.
YouTube is an incredibly valuable product. It's hard to believe that it's possible for a platform like this to exist at all, even more be sustainable with ads only (maybe it isn't though). I'd gladly pay $20/mo for that – to anybody other than Google.

I do understand that with Premium they actually have an incentive to pivot from their current surveillance tech niche to a more decent model, but uhhhh. That's Google we're talking about. It's just not happening.
You shouldn't, but its still a pretty fun thing to do for procrastinating.
"Despite the fact that anyone can edit any page"

This couldn't be further from the truth. Anything even slightly controversial or popular is heavily gated
The five-message limit isn't a result of the context window, but an arbitrary constraint applied after early results of the Bing chatbot were, uh... troubling[0]?

0. https://www.telegraph.co.uk/technology/2023/02/16/microsoft-...
Still, being to run LLaMa2 on the NPU would be awesome due to the unified memory. Apple's restricting its use to only Apple-approved models is frankly irksome.
If a client is offline I guess it will never get messages that were sent in that time, I think this might be something that MQTT solves?
Shazam has the same feature, I went to parties almost 10 years ago with my phone in my pocket having Shazam in background detection mode. The result was a 90% complete playlist.
I don't know what SQLite does, but in JS the order is actually defined. JS is not Java, object is not HashMap, if anything, it's closer to LinkedHashMap, but even that is not correct because there are numeric slots which always go first.
https://tc39.es/ecma262/#sec-ordinaryownpropertykeys