skysight-inc/HackerNews huggingface dataset:
That sounds incredibly error prone and actually quite dangerous! At least a lot of AC to DC converters are universal voltage and frequency, but not all appliances!

In Australia we have only one voltage that will ever come out of a single phase socket, but the standards took the opposite approach with current ratings - the sockets are cleverly designed in terms of their current capacity so (assuming it’s been installed correctly) you can’t make mistakes without illegal and dangerous modifications. In the standard socket, you can have 10 amp, 15 amp or 20 amp, and they all have different sized pins. For the 15 amp plug and socket, the ground pin is larger, so a 15 amp plug cannot fit into a 10 amp socket. A 20 amp plug has all three pins larger, so it doesn’t fit in a 10 amp or 15 amp socket. But a 10 amp plug can still fit and sit snugly in a 15 or 20 amp socket, and a 15 amp can still fit into a 20 amp socket with no problems. It’s pretty clever.

For bigger stuff, or anything three-phase, you then have big industrial circular ones, which I think have a similar system to not let you plug a higher current device into a socket that can’t supply enough current. I believe there are also three phase plugs and sockets both with neutral and without neutral, and if the plug has a neutral pin it doesn’t fit into a socket that doesn’t supply neutral.
I've been on several projects where we had a significant number of unit tests that would only fail when requirements would change and we had to change the code.

"Look, if it only fails with requirement changes, then maybe we're better off not having them."

This only made people uncomfortable. They just don't like walking down the mental path that leads them to the conclusion that their high coverage unit tests are not worth the tradeoff. Or even that there is a tradeoff present at all.

Meanwhile, PRs constantly ask for more coverage.

Not very often, but sometimes someone will mention: "but unit tests are the specification of the code"

test ShouldReturnOutput {
_mock1.setup( /* complicated setup code returning mock2 */ );
_mock2.setup( /* even more complicated setup code */ );

let output = _obj.Method( 23.5 );

Assert( output == 0.7543213 );
}

/* hundreds of lines above this test case */
setup {
if ( _boolean ) {
_obj = new obj(_mock1);
}
else {
_obj = new obj(new mock());
}
}

I'm just not sure I can get there.
Not that barrel plugs are any better...

I wish I would have wrote the model down posterity, but at one point I worked a trading company and a number of the users had ISDN at home. There were two 'different' modems, and I say different because only the model number on them notified you of it.

One had a plug that output DC power. One had a plug that output AC power.

They were the same size wall wart. Same size barrel. But if you plugged the AC adapter in to the DC modem it would make a noise like you curled the modem up into a ball and let the magic smoke out.
Why are bridges green? The story starts in Oregon
On the video he mentions the youtube channel of the guy who told him about this cheat code.

That code has been running a youtube channel for 4 years and had at that time 529 subscribers. 2 hours after the shout out from a channel with 777k subscribers, he has 1000 subscribers.
Captains of industry (including the Gateses, Jobses, and Musks of this world) might not be nice people necessarily (and often aren't), but I still appreciate their contributions.

Microsoft's products from the 1970s and 1980s (notably BASIC, Word and Excel) were certainly influential. Windows delivered a Mac-style GUI for cheap PCs. MSR as noted has produced all sorts of good research.
Ebola virus uses new method to infect cells
How does append (a) map onto actual SQL operations on the given tables? Are the TEXT fields being used as lists?

Also… I’ve been issues in MySQL repeatable read mode where a single SELECT, selecting a single row, returned impossible results. I think it was:

SELECT min(value), max(value) FROM table WHERE id = 1;

where id is a primary key. I got two different values for min and max. That was a fun one.
> just imagine if a small portion of standard-looking outlets did not output 220V (or whatever standard you have) and say 330V.

Every once and a while an electrician wires up standard US outlets to 480v 3-phase instead of 208v 3-phase, so you end up with an outlet designed for 120v that puts out 277v.

Sometimes noone notices because the switching power supplies plugged into them are just fine with this.
That's perfectly fine. I think the world is large enough so we can coexist in peace.

Also I don't dismiss camaraderie that appears spontaneously between coworkers, I was complaining about the company enforced fake camaraderie that gets pushed down everyone's throats with trite team building exercises, company parties, team goals and other methods of hammering people into conformity.

> it is also needed to allow new team members to get onboarded faster.

Of course, it's fine to have team members absorb domain knowledge through interactions with their peers, but if that's the only way to on-board them, I most definitely don't want to work for you, but again, that's fine, I'll just look elsewhere.
I'll settle for them finishing the Ohio mega-fab and catching up, which would add a lot more cutting edge capacity beyond TSMC and capacity that is not in Taiwan.
I think about unit tests being useful for getting more confidence that some deterministic, pure (mathematically speaking) and stateless piece of code that's data in data out actually works, particularly when you change it.

If any of those conditions doesn't hold the cost/benefit certainly and even sometimes the absolute utility goes way down.

If I have to mock anything, in particular, or more generally care at all about any implementation details (ie side effects) then I just think might as well make this a full on automated functional test then.

As soon as fake code is introduced into the test its utility rapidly decays in time as the things it fakes themselves change.
Secret Bitcoin Spotlight Listicle
You should try switching it up. Write the tests and then ask the LLM to write the code that makes them pass. I find I'm more likely to learn something in this mode.
"Model 3.0, now with integrated USB-KILL"
Chimps and bonobos can recognize long-lost friends and family – for decades
You force nuclear power plants to sell their energy at a loss for half the year at least. You can of course do that, but good luck finding investors.
It is like everything else with Tesla. They add the wrong part of the solution first.

Hey, we have this new vision based TACC! But first... we remove the radar, then later we'll make that actually work. Get used to phantom braking and limited features in the mean time.

The CT drive by wire approach should solve your problems, but it remains to be seen if it actually works well. The reviewers so far haven't really gone in depth on its feel.
I use `lxappearance` to modify theme and other such UI settings from within i3wm.
Show HN: Editingprotocol.com V1 Prompts
Restoration of an IBM ThinkPad 701c
From Working Effectively With Legacy Code by Feathers, p. 14[0]:

Unit tests run fast. If they don’t run fast, they aren’t unit tests.

Other kinds of tests often masquerade as unit tests. A test is not a unit test if:

1. It talks to a database.

2. It communicates across a network.

3. It touches the file system.

4. You have to do special things to your environment (such as editing configuration files) to run it.

Tests that do these things aren’t bad. Often they are worth writing, and you generally will write them in unit test harnesses. However, it is important to be able to separate them from true unit tests so that you can keep a set of tests that you can run fast whenever you make changes.

[0]: https://www.google.com/books/edition/Working_Effectively_wit...
Even Java 17 years ago is ironic, considering the hardware requirements of J2ME, Java Embedded, Blue Ray players, Ricoh and Xerox copiers, Cisco phones, and so forth.
Why wouldn't you use bookmarks like for everything else?
I am not a lawyer and I have no idea. That’s why when I’ve been wronged by an institution with dozens of lawyers, I contact the CFPB. That’s what consumer protection is supposed to be.

Unfortunately based on the OP’s experience it looks like the CFPB had been severely handicapped since the last time I had to complain to them. Now they only have authority over banks with more than $10 billion in assets.
Oh I agree that it wasn't planned this way. I think they were just trying to make a great touch screen interface and we accidentally discovered that this format lends itself very effectively to addictive content consumption. I don't think it was a conspiracy.
No More Easy Money on the Side: Retail Media Enters the Performance Era
It's not completely blind/anonymous, since you can just ask "What's your name" and the model will identify itself.

Edit: I missed the third rule. I wonder how smart their detection is.
I did direct memory management in C# before those techniques were available. (It was a .Net Framework 4.x application.)
> confirm that the implementation is consistent between small changes without weird side effects

not sure what this is referring to, but I'll give an example

say you have a requirement that says if you call POST /user with a non-existing user, a user should be created and you should get a 2xx response with some basic details back

you could test this by actually hitting the endpoint with randomly generated user data known to not already exist, check that you get the expected 2xx response in the expected format, and then use the user id you got back to call the GET /user/userId endpoint and check that it's the same user that was just created

this is a great test! it enforces actual business logic while still allowing you to change literally everything about the implementation - you could change the codebase from Java Spring Boot to Python Flask if you wanted to, you could change the persistence tech from MySQL to MariaDB or Redis etc etc - the test would still pass when the endpoint behaves as expected and fail when it doesn't, and it's a single test that is cheap to write, maintain and run

OR

you could write dozens of the typical corporate style unit test i'm referring to, where you create instances of each individual layer class, mocks of every class it interacts with, mocked database calls etc etc which 1) literally enforce every single aspect of the implementation, so now you can't change anything without breaking the tests 2) pretend that things work when they actually don't (eg, it could be that the CreateUserDAO actually breaks because someone stuffs up a db call, but guess what, the CreateUserResource and CreateUserService unit tests will still pass, because they just pretend (through mocks) that CreateUserDao.createUser returns a created user
Turbo 8 morphing deep dive – how idiomorph works? (with interactive playground)
This is part 2 of my deep dive into how the upcoming Rails's Turbo 8 morphing functionality works. This is focused on idiomorph (which was developed by htmx authors and will be the default from htmx 2.0).
Disappointed with the Mistral AI console.
Am really impressed with the Mistral AI models, but surprised that there console.mistral.ai portal is so lacking in basic options. No 2FA. No overview of token usage, so there is no way to actually verify usage. Does not build confidence for new customers to hand over their credit card information. Perhaps it’s early days, but even a beta product should have the basics.
Thanks for the info. I accidentally downvoted you while copying the text, sorry about that.
Truly we are all unique snowflakes. I can't exist in complete silence (even while coding) it drives me nuts. I always have some sort of noise. Usually music without lyrics for coding.

that said... I don't like wearing headphones and certainly not for extended periods of time. So, "just wear headphones" doesn't work for me for an entirely different reason.
I'll say good luck with getting any meaningful work out of it.
Dont take this the wrong way, but this is the answer i would get from enterprise devs usually when pointing this out.

Then i would realize that their definition of a real issue was completely removed from any business or user impact, but geared more towards their understanding of the process detail in question.

I would argue that there certainly are some good places for unit tests, like if you have some domain-driven design going and can have well defined unit-tests for your business logic, but this usually is the smallest part of the codebase.

Mocking things that talk to databases etc. usually gives a false sense of security while that thing could break for a whole number of reasons in the real world. So just dropping the mock here and testing the whole stack of the application can really do wonders here in my experience.
I can't tell if this is sarcastic or not
Oh, how does it do it? I thought it used light/laser to measure, if it's measuring the metal it might not be very accurate with my two layers of magnet and PEI sheet on top...
I worked for a guy (who is actually a great guy) who, while excitedly showing me the floor plan for the proposed open plan for our team, exclaimed, "I want to create a vibrant, energetic atmosphere." and asked me what I thought.

All I could think was, "What you see as vibrant is really your employees shooting the shit and not getting any actual work done."

He went with the plan and I found myself staying until 7pm and 8pm most days because I got more work done in those 2-3 hours at the end of the day than I did the other eight because of all the interruptions.
A RPi is more powerfull than most PCs I owned between 1990 until 2002.
The Grand Tour is a hard one, and was only possible due to a convenient alignment of the planets that does not happen frequently. For example, if Jupiter is on one side of its orbit while Saturn is on the 180° opposite point of its orbit, that's a really long way to go between destinations on the tour. I think going on a Grand Tour where you had to skip one of the planets due to a misalignment would be like going to Disneyland and never seeing Mickey. Even if you saw all of the other characters, it would still feel like you missed something.
Comment Filters and Elections
Disclaimer: I worked for Automattic - who back WordPress (WP) to a point that I believe WP would stall and fall without them - and I worked inside Akismet for over six years.

Given what I saw being submitted as spam I could have told you months before the event that Obama would win over Hillary. Blog comments mentioning Hillary as spam vs comments mentioning Obama as spam were 99-1.

WordPress has, since inception, a setting in Discussions.
"When a comment contains any of these words in its content ... it will be held in the moderation queue. One word or IP per line. It will match inside words, so “press” will match “WordPress” – In this text box you can add your own spam words which will filter the comments when posted"

Sounds good - who wants their blog comments laced with profanity?

Search for 'bad word lists wordpress' - there are many. Copy & paste into the WP settings.

One 'bad word' that stands out (no pun intended) is Cialis

Any comment with that word is sent to Moderation.

Do you read all blog comments? If not then all comments saying Socialist, or Socialism are deleted. Or at the very least not published.

I am in no way saying WordPress is at fault. Other CMS's and online platforms will have similar 'bad words' lists and spam filtering.

There does seem to have a 'bad word' discussion to be had.

Reminds me of the Scunthorpe problem - https://en.wikipedia.org/wiki/Scunthorpe_problem
Ask HN: Founders – How does hiring speed impact your growth targets?
Ask HN: What's the state of the art in the NVOCCs /Freight Forwarding industry?
How does this compare to other major helicopter fleets? Digging around reddit and some other websites place civilian helicopters at around $1,500-$2,000 per flight hour (not sure if that's including repair and refitting or just fuel), I would imagine with a little government inefficiency thrown in there it wouldn't be too hard to get it up to $3,000 per flight hour.
That reminds me of this time I wrote some code to add a method to Python string objects. The first reply to my issue on it in the bug tracker was "We shouldn't accept this, it's trivial to implement in your own code, see: XXXX". The second reply was "You have a bug in your implementation in the first reply."

It took a couple years to be accepted.
https://arxiv.org/abs/1706.03762
https://research.google/pubs/attention-is-all-you-need/

let's not forget where this breakthrough came from, i wouldn't count Google out
MVS 3.8j TK5 Update 2 released
PowerInfer is a high-speed Large Language Model (LLM) inference engine on a personal computer (PC) equipped with a single consumer-grade GPU. The key underlying the design of PowerInfer is exploiting the high locality inherent in LLM inference, characterized by a power-law distribution in neuron activation.

PowerInfer attains an average token generation rate of 13.20 tokens/s, with a peak of 29.08 tokens/s, across various LLMs (including OPT-175B) on a single NVIDIA RTX 4090 GPU, only 18% lower than that achieved by a top-tier server-grade A100 GPU. This significantly outperforms llama.cpp by up to 11.69x while retaining model accuracy.
> The setting is exposed through the XDG Desktop Portal.

Is this something I can use if I'm using i3wm?
To be fair there are 2 markets by now

One with in-store shopping & the above mentioned high prices(and 600 is rather on the low side there)

But quit a lot of the mattresses winning the usual testing reports here are around 200€(single 80x200) to 550€(200x220) for a bigger one

Only available online but with nice return terms
For me, chess requires a level of focus and time management unlike anything else (Go is the same, but I learned chess). There are no motor skills required, unlike most video games or a musical instrument. As an adult learning the first time, it is frustrating because it is so much harder than for a kid. But then so is music and foreign language.

From another angle, there is a huge amount of research on chess as a model of cognition. Because chess rating is quite objective, you can measure things like speed of learning, increase in skill with age, followed by decline of skill with age, the effects of alcohol and other drugs, diet, sleep. And, of course, it is a completely classic and ongoing topic of ai research and decision theory. If you are interested in those topics, having some insight into the game is also useful.
Sorry, got my sources wrong. It is actually in Íslendingabók, specifically in Kristni Saga chapter 11.

This little story is so often cited in Iceland you kind of just learn it in your head and only know it is in some of the sagas.
Just like what many people call C is not ISO C, and similarly many ISO C libraries don't compile with "C" compilers for the same environments as TinyGo.
I haven't provided any definitions on what is a good design at all, so you'll have to tell me what it is.

Your issue with the content, doesn't negate the designs. Japanese websites are also filled with a lot of junk content.

As for the Japanese websites, they aren't bad. They are bad for you, maybe... they're very much good for people accustomed to Japanese culture.
They should just copy Mazda's design, a screen that's not touch enabled and do not need to be put within arm's reach (so it can be put further away, and thus closer to driver's point of view when driving, that driver just need to glance slightly to the side to see the screen).

Then physical buttons/controls for common things (volume, wiper, etc.), and a general knob for navigating things on the screen.
not when giving a star is a condition for having a report accepted.

i barely ever star any project. stars are public and so i will only star the most important projects that i want to recommend to others.

but i do occasionally make reports to projects that i don't actively use or don't want to recommend. if a project doesn't want my report without a star, then well, good luck to them.
See above about a broken neutral. A broken neutral is bad. One could easily load a system or even just have wetter soil so that the voltages are well balanced for a while despite the neutral being open, but that doesn’t make it less bad.
I understand this point from a tourist perspective but if you stay over for a longer time, you'll realize there's just that much more to do in cities like Brussels or Antwerp.
I started believing in unit tests the day I finished my patch, ran the program and watched it work perfectly. I then grudgingly wrote a test, ran it and immediately observed it fail. One of the test inputs was some garbage input and that exposed a poorly written error handling path. Humbling!

I still hate writing them and it grates on my aesthetic sense to structure code with consideration to making it testable, but if we want to call ourselves engineers we need to hold ourselves to engineering standards. Bridge builders do not get to skip tests.
> Listening to music while coding severely reduces my concentration, and I find it in no way to be a substitute for silence.

Me too. I can't work with music in headphones as I inevitably start listening to it. It's weird that many people don't even consider this a possibility when recommending headphones. Well, I guess it's not weird as they just aren't affected by it the same way, but still.
I love webb, but there is something hauntingly beautiful about these photographs from voyager / juno and other flyby missions. It _feels_ close, yet alarmingly far.
If you're middle-aged, you might get a chance: https://en.wikipedia.org/wiki/Uranus_Orbiter_and_Probe

It's the highest priority probe, but wouldn't get there until the 2050s. To borrow a thought from idlewords, we could be sending cameras to every large object in the solar system for way less than it's costing to develop the current Moon program ($93 billion through 2025).
First, MySQL is the "devil you know". If you've spent a decade working exclusively with MySQL quirks, you're just gonna be more comfortable with it regardless of quality.

MySQL also tends to be faster for read-heavy workloads and simple queries.

Also replication is easier to setup with MySQL in my (outdated) experience, even though it's gotten better with Postgres recently and I haven't really been able to compare them myself since I'm just using Amazon RDS Postgres these days and haven't had the need to setup master-master replication (which is the pain point in postgres, and was pretty straightfoward with mysql the last time I worked with it). Setting up read-replicas with postgres is still ezpz.

Postgres specific features tend to be much better than MySQL ones, Postgresql JSON(b) support blows MySQL out of the water. And as far as I can remember MySQL still doesn't support partial/expression indexes, which is a deal breaker for me. Especially in my json heavy workloads where being able to index specific json paths is critical for performance. If you don't need that kind of stuff, you might be fine - but I would hate to hit a wall in my application where I want to reach for it and it's not there.

MySQL used to be the only game in town, so it was the "default" choice - but IMO postgres has surpassed it.
Intelligence makes almost everything better, so maybe salt is a better analogy than chocolate (especially once the hallucination rate of LLMs becomes more acceptable).
At least you can even get that. Pluto is just a dot. And to properly image Pluto, you basically need to image the area Pluto is expected over several nights, and then stack the images to see which dot is moving.