skysight-inc/HackerNews huggingface dataset:
Turn off the power or pull the local disconnect. Also, short out the capacitor before touching it. You can do that by connecting the terminals with your screwdriver. There are plenty of yt vids explaining the process.
it's recommended to give it some time if it's been running and to short across the terminals with something, like a screwdriver that has a non conducting handle. It's nothing too ridiculous.
I felt that too but over time decided that it compromised the theoretical pythonicity for the practical compromise of being flexible enough to work properly with SQL.

One other reason for its popularity and success is how engaged the orginal developer is with the overall community.
> Forcing customers to replace an entire system just because the cheapest component failed might be really profitable

Just had to deal with this recently. My gas oven control panel died and one would think to replace the control panel ($300 ish part), but I had my doubts. Pulled everything apart and hooked up a meter to what should be the power coming from the cord, no continuity. Took apart everything on the top two levels of the stovetop to find a thermal switch buried under there that had failed. That thermal switch is forever OOS (was $35 at least for a replacement if you could find one), so I hopped on amazon and bought a 5 pack of microwave thermal safety switches with the same cutoff temps for $6 that fit the push connectors. 10 year old higher end gas oven was fixed for about $1 in parts.

Probably would have been at least $200 from an appliance repair company just for the labor of having to take apart the entire stovetop to get there. Not sure how many people would even bother although it was about $2k new.
Same. I want something that fits in my pocket. The Mini is perfect.
Are you completely out of the loop that much? The PQ is first in the polls, and has promised a referendum within a first mandate. It's a whole fucking big deal that they managed to lead in polls right now while promising that.
The other bits about doing something useful with it are either incredibly foolish or a straight hoax (and I'll eat a shoe on camera if that turns out to be wrong) but the premise of having a spot of light appear for ~4 minutes after dark is plenty doable (in fact, been done before) and depends solely on how much funding they secure before people realize the first half.
Almost every Chinese person is familiar with this myth and its characters. When I was a child, I used to watch the TV series multiple times every year.

This mythological story not only features vivid characters and a grand setting, but also contains subtle metaphors about life philosophy that continue to be interpreted to this day.
Cheers, I am looking at this for our system but it is still working so I didn't want to mess it up, but was planning for the eventuality... I've been reverse engineering the app, so your post has cleared a few things up for me :)

The plan is to get rid of the tablet and put a Amazon echo hub or HA on a tablet that directly controls the aircon in the future
It's a great tool, if it makes vendor lock-in disappear.
I will check it out.
Theres the zip function builtin, which I actually would have preferred

oneToTen.zip(oneToTen2) { x, y -> x * y }
So what crime did X commit to? Or it refused to censor your opponent and made you angry?
If you mean the aftermath of January 8th 2023, that is an absurdly dishonest comment. Nothing in that frustrated coup d'etat attempt can be remotely seen as a protest.
Well, on the other hand, the only way out for a "Dictator" in the "BDFL" is to resign or be overthrown. He decided to resign, which is probably for the best. Otherwise a fork would have forced the decision, and been worse for the community as a whole.

Packaging and the 2.x to 3.x migration were both nightmares under his stewardship.

Keep in mind that the leaders of the PSF can be voted out, if so chosen by the community. And the community may have a different opinion on the election cycle and want to take python a different direction.
My key point is the synchronised propaganda by western media, and the timing of this action against Telegram. Very convenient. I’m not surprised that I’m being down voted for pointing this out.
Why?

They transition away from x86 anyway
The nice thing about my Mitsubishi Heavy Industry units is I've got a bunch of MHI-AC-Ctrl[1] modules tucked into them talking to the service interface with Home Assistant. The neat thing is it doesn't just control it, it also makes all the internal sensors and codes available.

What I think we really need to do though is make publishing these control standards mandatory under right-to-repair laws - no one should need to be reverse engineering them, you bring a product to market you have to provide the complete spec for it's software interface and data.

Do that, and I bet we'd find in a few years every new appliance would support a common serial port standard and come with a code page in the manual for it (ironically the prevalence of Tuya-smart stuff has come very close to making this happen, but they go to absurd lengths to lock you out of the wi-fi microcontrollers).

[1] https://github.com/absalom-muc/MHI-AC-Ctrl
> work that is too inconsequential for any minimum wage job to be worth it

If it’s not worth minimum wage it’s been judged as not worth doing like that. You can automate picking up trash which is exactly the kinds of thing you avoid doing if labor is cheap enough. As such the wage floor is very much a benefit to society by opening a wedge for automation rather than having people do such tasks.
Yep this is nearly guaranteed. Kills so many IoT things, logging the world and eMMC write limits being garbage.
https://www.bbc.com/news/world-us-canada-65246394

But I guess the rules play differently when you are a billionaire, so here we are.
I would probably replace it now while everything is working.

You know that tablet is cheap and is going to die. Figure out the procedure to replace it with something that doesn't suck before you've lost your heat/air conditioning.
In Japan, there is an expression, “Act first, results will follow."

You've started to take action, and that is great.
I've loved and used SQLAlchemy for many years. It got me a long way in my career. But at this point I've sworn-off using query-builders and ORMs. I just write real, hand-crafted SQL now. These "any db" abstractions just make for the worst query patterns. They're easy and map nicely to your application language, but they're really terrible unless you want to put in the effort to meta-program SQL using whatever constructs the builder library offers you. CTEs? Windows? Correlated subqueries? It's a lot. And they're always lazy, so you never really know when the N+1s are going to happen.

Just write SQL. I figured this out when I realized that my application was written in Rust, but really it was a Postgres application. I use PG-specific features extensively. My data, and database, are the core of everything that my application does, or will ever do. Why am I caring about some convenient abstractions to make it easier to work with in Rust, or Python, or whatever?

Nah. Just write the good SQL for your database.
How to manage launch a side/simplified product for a site hosted on Vercel
We have a site in a niche space that is going to be completely ready to launch by end of October. In the meantime we want to launch a side product to gauge interest and to build some basic brand recognition. The way we are planning to do this is by having a subdomain off of our regular domain, hosting this product there and have a "Coming Soon" page as the homepage of our regular site. I have 2 questions regarding this:

1. From a marketing/SEO perspective is this the correct way to go about it? What are some SEO considerations we should keep in mind with something like this? We don't want a situation in the future where our subdomain ends up being more popular than our regular domain.
2. How can we best do this through Vercel? As I understand it, projects on Vercel can only have one production domain. I can create another project and then link the same repository to it but that is causing its own set of problems. Is there a way to add a second production domain on Vercel or some other method that Vercel/Nextjs provides that we can use?
> What a fun, completely coincidental quirk that that time appears to fall outside the warranty window, hey?

Isn't that the point of the warranty? They tell you they think the product will last for X years, and then it lasts about X years, just like they warranted.
to be safe short it with a screwdriver (unplug the unit before), unlike a lion battery it won't explode.
As far as I know we don't know how we do it. We have very little clue how our higher level behaviours emerge. So you can't claim we don't do it the same way.
:shrug: I don't use X, so I don't get caught up in it. I am just making an outsider's perspective to both X and the Brazilian Supreme Court. I see articles posted constantly about both, and they both stir up controversy.
The image was removed from Docker Hub, but the GitHub repository which contains the script to build the Docker image is untouched.
My existence as a Québécois helps explain why it hasn't happened. We collectively know that our language and culture are on shaky foundations with the Canadians; we know quick and painful assimilation would await us with the Americans. Canada is a country containing at least two nations, not just one.
I have the original guide here. Do you remember where you spotted this? Before the bouncing ball sprite demo?
Heritage listing is it's own thing. What I hate is the rules surrounding...essentially any home services. Like it took me a long time to realize when people in the US were saying they "needed to get something up to code" what they meant was, that they themselves didn't feel up to doing the work and it would cost them. But like...you can. You can just call the guys and double-check what needs to be done and do it yourself and get it inspected.

Whereas in Australia the answer is, it's all illegal, and if you're not a licensed whoever then they don't want to tell you how it should be done in case gasp you do it yourself.

So of course everyone does do it themselves, and lies about it. And the quality of workmanship from the trades is...poor.
So you think it's a crime to allow people speak things you don't like?
That is most common, but a tiny minority see no colors.
Presumably refusing to censor things that the government there wanted censored? AIUI most of the rest of the world doesn't have our legal prohibitions against the government doing that.
generic relations are hard to get right, really if you can avoid using them you're going to avoid a lot of trickiness.

When you need them... it's nice to have them "just there", implemented correctly (at least as correctly as they can be in an entirely generic way).

Model validations is a whole thing... I think that Django offering a built-in auto-generated admin leads to a whole slew of differing decisions that end up coming back to be really tricky to handle.
I appreciate it! Feel free to email me at josh@launchflow.com if you hit any issues!
Would you say activity on the web is getting more or less centralized? I wonder what the general public even perceives as “on the web” versus eg “a post on instagram”

Email is distributed but either you pay Google/Microsoft to host it for you or you host it somewhere else..that carefully and proactively follows their rules.
A lot of that happens because the government provides the contractors with an endless stream of money and refuses to use the accountability mechanisms in the contracts when they mismanage their tasks.

As a currently popular example, most of the contracts around SLS, with Boeing and other companies, are like this. They consistently mess up, have quality and speed issues and overrun costs, and the government never exercises the option to cut their profit share, even when the overruns reach several times the original agreed upon cost.
I’ve heard of this in the past. Usually the shop will sell to you without a license if you’re affiliated with an HVAC company, because you might be some unlicensed peon picking up parts for the installer or technician down the road. But they often have no way to verify whether you’re a HVAC person for things that don’t require a license vs some clued in homeowner, so you can give them a made up LLC name and say you want a cash account. It takes a fair bit of confidence to pull this off though. Easier and cheaper to order off of Amazon usually anyway

FWIW there are some things that DO require licensing. Purchasing refrigerant requires an EPA number. Almost no shop will sell you full on ready to install systems without a contractors license. But off the shelf components like this don’t require one and they have unlicensed helpers coming in all the time buying stuff, so confidently pretending you’re one of those is usually enough in a pinch.
Which candidate/party do you believe will best preserve our first amendment rights?
No, it selectively censors my side and lets my “opponent” off scott free.
Bosses Are Finding Ways to Pay Workers Less
X-Twitter doesn't refuse to censor opponents though, eg:

Twitter blocked 122 accounts in India at the government’s request https://restofworld.org/2023/twitter-blocked-access-punjab-a...

Elon Musk caved to government pressure to censor tweets ahead of the Turkish election. https://www.businessinsider.com/free-speech-censorship-elon-...
Ask HN: What books should I read to improve as a software engineer?
I'm a recent grad looking to keep improving. I've read Clean Code, Game Programming Patterns, and Architecture Patterns with Python, and I feel I learned / improved a lot from each of them.
I was looking at Coding Horror's book recommendation list: https://blog.codinghorror.com/recommended-reading-for-developers/
but all those books seem very out of date.
Any suggestions for best books for software engineers in 2024?
your data is likely old. IB demand has gone pretty wild since the AI boom.
I think you implied your opinion on this.
"Cloud by Committee" - sort of a predictable outcome
"which you can not do" is an interesting assertion. In some sense it's trivially true, of course. Generating infinite random numbers would take infinite time. In fact, I'm quite happy to say that approximately 0% of real numbers can exist, for that reason.

But in contrast to that, I'm also happy to grant the existence of constructions with countably infinite length when discussing theories outside of computability. So in that context, is it possible to generate an infinite string of random numbers? Well, it is so long as you believe you can generate any amount random numbers at all. Just repeat the process, whatever it is.

Is that a reasonable thing to believe? That's probably a philosophical question at this point. I'm certainly not equipped to answer it. But assuming it is possible allows for some interesting math, which I support for its own sake.

This is all sort of reminiscent of a mathematician friend's stance on the axiom of choice. If you were to tell them a vehicle is only guaranteed to not explode by the axiom of choice, they wouldn't use it. On the other hand, assuming the axiom of choice is true leads to some useful math, even if it's sort of sketchy ontologically. It's a lot like programming. Sometimes you can't fix the bugs in the underlying system and you just code around them to get your stuff working.
Yeah in the UK where I spent most of my life, it seems like you do whatever you want, pretty much. Golden rule - you don't touch gas plumbing. And you don't mess with your circuit breaker board/RCDs etc. I think installing new ring circuits may be off limits.

Anything else? Go for it. I fitted a bunch of taps and a toilet, changed single sockets to double+USB sockets, changed light fittings, fixed poorly wired lighting circuits, installed Cat-6 through the walls to a few rooms, all sorts of stuff. And none of it was anyone else's business. You can (should?) get a professional inspection and safety certificate before you sell the house, but that's about it AFAICT.

I'd be happy enough with the situation in Austin, so long as the city inspections were cheap or free. I'd be happy enough to do a short course in the basics before getting some sort of permit. Where we are now is nuts.

(But at least I can buy a pair of generic reading glasses pretty much wherever here!)
you do a coup d etat by trespassing in a building without weapons? in which dimension does this work?
I'm unsure why you think me pointing out that there exists censorship here is a cause for me to leave the site?

I didn't take it personally. Censorship exists and dang perpetrates it. Nothing wrong with learning that.

>Continuing on your "censorship" opinion is likely to earn you more downvotes and flags from other users

Why would I care if people get upset at me understanding something? It's not an opinion. It's a fact. You asked. Why would I not answer objectively?

I'm more than happy for you to remain in the dark on this matter if that's what you prefer.
https://www.un.org/en/hate-speech/united-nations-and-hate-sp...

> While certain restrictions on freedom of expression may be motivated by principles of equality and non-discrimination, “direct and public incitement to genocide” and “advocacy of national, racial or religious hatred that constitutes incitement to discrimination, hostility or violence” are strictly prohibited under international law, and are considered the “severest forms of hate speech”.
Right now we're still in warranty but you're right, it's probably a good plan to get the contingency in place before it becomes a problem.
Who participated in blocking the prior statements from consideration? Can you cite the case in Utah?
I'd love this, but right now I'd be happy with a team reverse engineering these things and not getting hit with some kind of IP lawsuit from whatever company. I think there's going to be a lot of abandoned-ware IoT stuff, mostly because the company wants to turn the software off because they don't make money from supporting old products.

My fitbit wifi scale, which I love and has been doing a great job for the last 10 years has now lost support to pair it with the new fitbit app, thanks Google!
By protest do you mean a coup d’etat? Treason is still punishable by death even in the United States. Sounds like those “protestors” were given a light sentence.
Calling failing to show up or nominate a legal representative to a judicial hearing in a country that offers a ridiculous number of opportunities to appeal as "feud" shows some bias in reporting.
Using channels where mutexes would suffice has by far been the main cause of bad concurrent code I've encountered.

Using more than 2 'semantic' channels plus one ctx.Done() channel? There's probably a bug. So far that has been well over 50% accurate, across dozens of libraries.

When they're used like this, chans often break into non-blocking algorithm details, because they don't ensure mutual exclusion. And non-blocking algorithms are freakin hard - few things are guaranteed without great care.
Oh hey, thats neat. I have two MHI split systems in my house! Definitely going to have a play with this, very nice.
In some parts of the world, the local governments have decreed that it is.
They didn't fight last one doesn't imply what they are fighting this time is not justified.
How about this one?

"What do you call the number of times that one number can be divided by another?" A) Dividend, B) Divisor, C) Quotient.

And a minor UX nitpick: please wrap the input element inside of a <label> tag, it makes it much easier to interact with form elements (in that I can click on the text to mark the element):

<label class="answer">
<input type="radio" name="q4" value="wrong" /> Condensation
</label>
Alembic is amazing. I haven't found a better tool in any language. I actually use it even when I don't use python as the main language
I Am Not A Lawyer
'a protest' doing a lot of work here.

https://apnews.com/article/brazil-bolsonaro-supporter-riot-c...
Given that, under Musk, Twitter has caved into such governments as Turkey and India when presented with a censor-or-quit ultimatum, one would think the historical precedent of what Twitter will do is clear.

Unless Musk's principle is really that one needs to bow down to right-wing attempts to censor speech, and a left-wing attempt to censor speech must be resisted at all costs.

(Either way, Musk's adherence to the principle of standing up for free speech universally is very poor, and I truly marvel at anyone who believes him to be a defender of free speech.)
> You have no idea how true this is :). I had to upgrade everything, the old site didn't even have SSL. But this annoyed me so much I wanted others to know how to fix it.

People like you are the ones that make the internet worth logging on for.
Zirconium nitride, not plain zirconium.
I don’t know ask Elon, he has been pretty consistently censoring the left. Just last week he blocked the “whitedudesforkamala” account. Is that not censorship?
What a coincidence, so did you! :)
Some people say “it’s OK to ingest copyrighted material automatically at scale, since it’s for learning purposes”. They use two kinds of arguments for this.

Argument A:

A1. It’s a basic human right to be able to learn from things you see. You browse the Internet, you read some source code, you learn. Doesn’t matter what’s the license, you are free to do this.

A2. It’s called “machine learning”, so the machine does the same.

A3. Machine learning can use any content its operators can get a hold of.

This is obviously wrong, because machine is being assigned human rights. We can argue about what exactly are pre-requisites for something to be granted human rights—it’s maybe not a specific physiology (some might say certain smart non-humanoid animals deserve it), but it’s pretty certainly sentience and consciousness. Meanwhile, the whole reason AI tech is big is that there is supposed to no sentient being who would understand (and therefore deserve any right to be treated well and get rewarded). If you take that away and grant AI human rights, then there is no point in this tech.

So, either the machine has human-level sentience and is being forced to work (which humans famously tend to consider “slavery”), born and killed on demand, etc., or the machine is not learning in the sense under consideration because it’s an unthinking tool for its human operator.

Which brings us to argument B:

B1. It’s a basic human right to be able to learn from things you see. You browse the Internet, you read source code, you learn. Doesn’t matter what’s the license, you are free to do this.

B2. If you use a computer or [insert technology] to learn, that’s OK.

B3. An LLM is just another instance of that technology. You use LLM and you learn.

This is wrong for slightly more subtle reasons, but on bright side there’s multiple of them.

First, it’s not clear that someone learns while using Copilot to produce a work for them. If I asked Copilot to write me a Fibonacci number generator, have I learned how to write it? If I ask Midjourney to draw me 2055 Los Angeles skyline in the style of Picasso, did I learn how to draw?

Second, and this is a crucial fallacy, making a computer famously does not require ingesting all of the copyrighted material you can subsequently access through that computer. Said computer can exist just fine without it; the LLMs, however, cannot.

The inputs (knowledge and parts) required to produce the computer you’re using were largely obtained through ordinary ways (patents licensed, hardware paid for), whereas the inputs required to produce an LLM have been, some would say, effectively stolen.
> My old tablet’s model name was on a sticker on the inside of the case, but looking at the code I saw it needed the -EZ identifier tagged to end. So the string I was to return was “PIC7KS6-EZ”.

The code seems to allow for both "PIC7KS6-EZ" and "PIC7KS6" unless I'm misreading it.
Almost perfect. I don't know US history well enough it seems.
mlvwm? https://github.com/morgant/mlvwm

I accept all major currencies.