MurphyA/hacker-news huggingface dataset:
by kragen | 2025-06-12 14:00:01+00:00
These functions can't do it. In Python you have to use the subprocess module if you want to pipeline commands without the bugs introduced by the shell. From https://docs.python.org/3.7/library/subprocess.html#replacin...:

p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. output = p2.communicate()[0]

Of course, now, nobody has an hda, and dmesg is root-only. A more modern example is in http://canonical.org/~kragen/sw/dev3/whereroot.py:

p1 = subprocess.Popen(["df"], stdout=subprocess.PIPE) p2 = subprocess.Popen(["grep", "/$"], stdin=p1.stdout, stdout=subprocess.PIPE) p1.stdout.close() return p2.communicate()[0]

Note that the result here is a byte string, so if you want to print it out safely without the shell-like bugginess induced by Python's default character handling (what happens if the device name isn't valid UTF-8?), you have to do backflips with sys.stdout.buffer or UTF-8B.

Python got a lot of things wrong, and it gets worse all the time, but for now spawning subprocesses is one of the things it got right. Although, unlike IIRC Tcl, it doesn't raise an exception by default if one of the commands fails.

Apart from the semantics of the operations, you could of course desire a better notation for them. In Python you could maybe achieve something like

(cmd(["df"]) | ["grep", "/$"]).output()

but that is secondary to being able to safely handle arguments containing spaces and pipes and whatnot.
by hbn | 2025-06-12 14:00:07+00:00
I don't see anything 3D-ish in Material 3. I don't think Google will ever aim for a 3D design language (or at least not anything with complicated real-time rendering) in the current state of things cause they're so tied to the web it's just not as practical to design/render there.

And Microsoft always shows a lot of pretty images for their software design promo material and it never looks anything like that in reality. Oddly enough a lot of their desktop apps are just webapps at this point so they're basically in a similar situation to Google. And they have to make things run on low-end hardware (or at least they should...) so they aren't in Apple's position of being able to design knowing the hardware can handle calculating light's refraction through glass 60-120 times per second.
by notahacker | 2025-06-12 14:00:20+00:00
Current speculation around the raising of flaps suggests that independent engine failures weren't the cause. Proper investigation with access to better data than grainy video will tell us if that is the case and why.

"4 smaller but equally efficient engines" feels like a unicorn though (we'll probably get to the point in future where four large engines are superior in efficiency to two of today's engines, but two large engines to that latest design will still be more efficient than four smaller ones...)
by meowky | 2025-06-12 14:00:32+00:00
1. It is possible that every universe is formed in a blackhole – an infinite universe-blackhole-universe chain. We don’t know what “infinity” means in this scenario, so we can’t simply rule it out. For comparison, Aristotle ruled out an infinite chain of causes, which we now know (with the help of hindsight, of course) is a flawed conclusion.

2. We don’t know whether our universe is big or small compared with other universes. We don’t know whether, or how, it makes sense to compare sizes between universes.

Big Bang is arguably the biggest speculation in modern science.
by tsimionescu | 2025-06-12 14:00:42+00:00
It has very much not been. None of the players on the market are able to do anything close to this. You either have self-driving on carefully pre-mapped routes, with on-call human suport ready to jump in for more complex cases (Waymo), self-driving in very specific conditions with few seconds notice to the human driver (highways, with speeds below 60 - Mercedes), or not self driving, where the human driver has to be ready to intervene with no notice whatsoever (Tesla).
by spencerflem | 2025-06-12 14:00:47+00:00
What would you think of people who saw the same videos and cheered it on?

Who went out of their way to enable what they were doing because they liked having a strongman?

I don't think there's any satisfying explanation for people who would do that other than:

- They live in a perceived reality that is vastly different and incompatible with mine. (Ie. insane. Or stupid if you prefer.)

Imagine people seeing those videos and deciding everyone executed were so awful that they deserved their fate and the narcosicario were heroes for administering justice. Or don't believe they're real and that the videos must have been staged or overblown.

- They see what's happening and understand it and approve anyways because they genuinely like seeing people suffer, or greedily think that the victim's suffering will improve their own life. (Ie. evil).

- Some mix of the two
by bpt3 | 2025-06-12 14:01:03+00:00
Maybe try running candidates that aren't highly unpopular? Or ones who don't call a significant percentage of the population "deplorables"? Or ones who don't refuse to state consistent policy objectives or provide coherent explanations for major swings in her stance on key political positions? Or...

Trump is a reaction to large portions of the population being actively screwed over by decades of neoliberal policy that the Democrats are still trying to ram down their throats, and "anything other than more of that" is what is winning in most swing states. It's unfortunate the the Republican party is incapable of running someone who isn't a infantile, thin-skinned, nasty blowhard to govern responsibly while in power, but here we are, and we'll unfortunately stay here until either the Republican party grows a spine, the Democratic party figures out how to not intentionally alienate a good portion of the voting population while also preventing their base from destroying the party from within, or the whole thing blows up.
by saynay | 2025-06-12 14:01:47+00:00
This isn't entirely true in all cases. Consider something like a live broadcast of a sporting event. If some streaker runs naked across the field, are the stations held to account?

That is, in a way, similar to the problem of user-generated content. There is a limit to how much control a social media company will be able to have over the actions of its users. Unless you replace the system entirely with one where all posts are manually approved by a person before they go up, you will need to have at least some reduced liability for the platform owner.
by ddingus | 2025-06-12 14:01:55+00:00
Heh, I fired up Libre Office a while back. Built up a home machine that does run Windows 10 (some embedded dev tools I want to run with low hassle), but all software on it is either OSS, or free beer type software.

No 365, lol and the Win 10 pro license was $5 (electronicsfirst.com)

Libre Office is GREAT. I have not used it in a while. In a couple hours, I had my styles, fonts and goodies all setup.

Making docs and a fairly detailed presentation were a pleasure.

Office is degrading rapidly right now!
by JumpCrisscross | 2025-06-12 14:02:01+00:00
> how this would apply to hacker news?

HN features group-based passive moderation based on well-communicated rules. And active moderation based on a fuzzier standard. The latter is absolutely an editorial standard.

> would this allow Brazil to prosecute hacker news for cyber security violations if a user posts content regarding Flipper Zero or Japanese IC cards, or data breaches of Brazilian companies

If it were posted here, moderators were notified and they chose not to flag (or geoblock) it, yes, I think that’s not totally unfair.

Where this current ruling is ambiguous is in being totally non-specific about how it should be complied with.
by ahartmetz | 2025-06-12 14:02:04+00:00
I see that exactly the same way, terror bombing is for the "sending" side.

And industry bombing has indeed been very effective! Bombing of airfields, too. The Luftwaffe was reportedly (according to UK military leaders) weeks away from breaking the RAF with that before they gave up. Probably not really because people underestimate their own resourcefulness when the going gets tough!
by msgodel | 2025-06-12 14:02:04+00:00
I've done it for "nice to have" features in their own modules that I don't really care about and aren't consumed by anything else (recently an SVG plot generator for a program I wrote.) The LLM one-shotted it and I left it alone for a long time. Stuff like that is great application for literal vibe coding.

I can't imagine doing it for anything serious though.
by Nasrudith | 2025-06-12 14:02:07+00:00
Industrial processes like desalination tend to call for some optimal amount of near 24-7 utilization (barring maintenance and such) for capex reasons and efficiency. You want to use it as much as possible to get the most bang for your buck. The entire reason why there are these excess power periods is because we cannot predict accurately how much power we would really need.
by jmsdnns | 2025-06-12 14:02:13+00:00
> 25% of developers 1 in 5 AI-generated suggestions estimate that contain factual errors or misleading code.

I cannot believe what's said in the report because it doesnt even reflect what my pro-AI coding friends say is true. Every dev I know says AI generated suggestions are often full of noise, even the pro-AI folks.
by pinter69 | 2025-06-12 14:02:34+00:00
Something I found that helps me is asking the question - if in retrospect the outcome of my plan will not be as positive as I have planned - will I regret not researching more right now.

But, this came with a lot of experience. In the beginning it's hard to imagine how and in what ways the outcome can be not positive and how it connects to the research today. And, I feel my experience is still lacking around this.
by mxmlnkn | 2025-06-12 14:02:48+00:00
Even if you only have the QR code, you can download the image or screenshot it and then extract the secret without ever having to use a smartphone by using zbarimg and then manually extracting the secret from the URI:

sudo apt-get install zbar-tools oathtool zbarimg qr-2fa-code.png

Output:

QR-Code:otpauth://totp/username?secret=ABCDEFSECRET012349BASE32&period=30&digits=6

If you have some 2FA that you need to enter 10 times per day, then you can also add a global shortcut to automatically paste it. Of course, this undermines the "second device" security. Some PC password managers also support 2FA, e.g. https://github.com/paolostivanin/OTPClient ( sudo apt install otpclient )
by unstablediffusi | 2025-06-12 14:02:51+00:00
>Czech Republic for Czechia

why single it out? even the countries that use (mostly) latin alphabet don't necessary have the same name in english - Poland is Polska, Lithuania is Lietuva, Estonia is Eesti, Finland is Suomi, etc. And latinizations/romanizations are often wildly inaccurate - Ukraine is actually Ukraina, Russia is actually Rossia, and the english pronunciations are completely wrong. Japan is Nihon. etc etc.

>Republic of Ireland for Ireland

there are two irelands, fyi

>Türkiye

no one can type that u on a keyboard without googling and copypasting it. you might as well insist on using hieroglyphs for CJK things
by quantumfissure | 2025-06-12 14:02:56+00:00
There is a media difference though since the DCA crash. Military and small planes (<10 PAX) crash all the time. We just never heard about it until after January. My point is the same, media sees crash, tries to drive clickage.

On a personal level, I know three people that have died in small plane crashes in the Alaska wilderness in the last 15 years, which is so common that it didn't even get on local news. I have acquaintances that were in involved in two others elsewhere over the last few years. Small planes are unbelievably dangerous. Commercial jets, not so much.
by nindalf | 2025-06-12 14:02:57+00:00
I think it’s easy to implement this, but the flip side of making platforms responsible is that they become much more restrictive in what’s allowed to be discussed. They start banning topics preemptively, just to limit their exposure. And if you’re thinking “good”, it will make the public discourse sterile.

Then the same companies will be penalised in other jurisdictions for being overly censorious. There’s no way to simultaneously follow all the rules.

And if you’re thinking “good, I just want to see those companies fined”, that’s fine too. But then that’s just about feeling good, rather than setting good rules for discourse.
by genezeta | 2025-06-12 14:03:01+00:00
Just so you know.

Offtopic but rewarding your article on Firefox on Android, there's a slight misalignment on the side. The left side gets cut off about 5-8 pixels, I'd say. It cuts off most of the first letter on every line.

It might be just my phone, of course. But I don't have any particular extensions installed or anything else.
by rybosome | 2025-06-12 14:03:03+00:00
Yep!

So my use case currently is admittedly very specific. My company uses LLMs to automate hardware design, which is a skill that most LLMs are very poor at due to the dearth of training data.

For tasks which involve generation of code or other non-natural language output, we’ve found that fine-tuning with the right dataset can lift performance rapidly and decisively.

An example task is taking in potentially syntactically incorrect HDL (Hardware Description Language) code and fixing the syntax issues. Fine-tuning boosted corrective performance significantly.
by netsharc | 2025-06-12 14:03:05+00:00
Hi Laurie, reading your article, I'm wondering to myself, maybe I should copy this, and add a Duolingo aspect to it, the first feature I can think of is a button (near the printer, or a virtual one on the app) that is basically "Give me a random task". Duolingo also has lessons (where the learner has to complete several questions), and maybe a "lesson" can be a big task, that encompasses its subtasks.
by AndrewStephens | 2025-06-12 14:03:12+00:00
> But the worse problem is, who decides what's "damaging"? The politicians do.

It is the courts that decide damages.

My argument in the post is that it is really only the widely distributed "viral" posts that cause enough damage to for liability to be an issue. Since the social media companies have a lot of say in what goes viral and closely monitor popularity for advertising reasons, they are in a position to fix the problem and a liable if they do not.

They don't even have to remove posts - just stop pushing them.
Show HN: LifeSampuru – Hear and export hidden sounds in your Live Photos
by rlucia | 2025-06-12 14:03:20+00:00
I realised I had hundreds of Live Photos on my iPhone that I never actually listened to. Apple hides the audio behind a long-press gesture, and my phone is nearly always in silent mode — so I had effectively never heard most of them.

When I started playing a few back with sound, it caught me off guard. The laughter, ambient street noise, a quiet voice in the background — it triggered memory in a way the photo alone didn’t.

So I built LifeSampuru, a small iOS app that lets you browse your Live Photos by sound, loop them, trim them, and export the audio. There’s also a waveform viewer/selector and a “Sakura” feature for curating the moments you want to come back to.

This began as a technical experiment, but it’s changed how I look at my photo library.
by gaazoh | 2025-06-12 14:03:23+00:00
I tried using a Nokia 6300 4G for a while a few years ago, because I don't use phones for much else than phone, SMS and a bit of Wikipedia.

I had a terrible experience, nothing worked correctly, basic, fundamental apps such as phone, contact, alarms, had lag spikes of over a second for any action and randomly crashed, it had no CJK support (kind of a big deal for me, and like 20% of the world)...

Some apps worked remarkably well, but having Youtube work better than messages is kind of pointless given the sVGA screen size. And the app ecosystem was basically dead. I tried developing a bit for it (apps are a simple html+css+js package), but at the time publishing to their app store required integration of their advertising solution, which absolutely sucked (in 6 month of use, I was never served any other ad than "hot MILFs in my area"), which meant that neither commercial nor OSS apps would target the platfom. IIRC side-loading sort-of worked depending on phones, which means it doesn't work for the average user.

Oh and sometimes the Kai Store app would send advertisement through push notifications.

I loved KaiOS on paper, but using it was a chore. A 2010-era "dumb" phone could do most of what a KaiOS phone can, but better, except for connecting to 3g/4g networks, and older networks are deprecated in many regions, which means they're not an option anymore.

Maybe they got better over time, but what a huge disappointment that was.
by aisicbxjOsb | 2025-06-12 14:03:45+00:00
> they have centuries to learn just like the rest of us

This seems like a massive assumption to make. Sub Saharan Africa has tons of iron ore and it’s still debated whether or not they developed iron working on their own. Your point relies on (an approximation of) blank slatism which seems highly highly unlikely given the natural variation in all other areas of life.
by foooorsyth | 2025-06-12 14:04:10+00:00
git by itself is often unsuitable for XL codebases. Facebook, Google, and many other companies / projects had to augment git to make it suitable or go with a custom solution.

AOSP with 50M LoC uses a manifest-based, depth=1 tool called repo to glue together a repository of repositories. If you’re thinking “why not just use git submodules?”, it’s because git submodules has a rough UX and would require so much wrangling that a custom tool is more favorable.

Meta uses a custom VCS. They recently released sapling: https://sapling-scm.com/docs/introduction/

In general, the philosophy of distributed VCS being better than centralized is actually quite questionable. I want to know what my coworkers are up to and what they’re working on to avoid merge conflicts. DVCS without constant out-of-VCS synchronization causes more merge hell. Git’s default packfile settings are nightmarish — most checkouts should be depth==1, and they should be dynamic only when that file is accessed locally. Deeper integrations of VCS with build systems and file systems can make things even better. I think there’s still tons of room for innovation in the VCS space. The domain naturally opposes change because people don’t want to break their core workflows.
by PaulHoule | 2025-06-12 14:04:16+00:00
I don't see this idea as very new.

There are many models of black holes, such as the Schwarzchild solution, that have an area of "asymptotically flat spacetime" which is, from the viewpoint of our universe, part of the black hole. That something happens around the singularity that creates this new universe doesn't sound that crazy.

If our universe is a child of another universe and that is a child of another universe and so forth it fits into the kind of "multiverse" model that addresses issues such as "why does the universe have the parameters it does?" Either there are a huge amount of universes such that we're lucky to be in one we can live in, or there is some kind of natural selection such that universes that create more black holes have more children.

As for the relative size of the parent black hole, conservation of energy doesn't have to hold for universes in the normal sense. One idea is that the gravitational binding energy of the universe is equal to the opposite of all the mass in the universe such that it all adds up to zero so we could have more or less of it without violating anything.
by AnimalMuppet | 2025-06-12 14:04:25+00:00
Depends on what you mean by "algorithmic boosting".

If you mean, "this user viewed A, B, and C. Other users who viewed them also viewed D; let's show D to this user", then no, that's not an editorial slant or an editorial choice. That's an unbiased algorithm driven by users' choices.

If you mean, "Let's identify posts that are related to position Y on subject Z, and boost them extra", then yes, I agree that is an editorial slant.

My impression is that, when people talk about "editorial control", they usually include the first kind, not just the second.

So: How much of the second kind is going on? More than none, I agree, but how much? Does anyone have data? If not, then we're left with impressions, and my impression is that it's fairly small. (Rather, that it's a quite small number of topics, but since it's probably fairly popular topics it may still amount to a fair number of user impressions.)
by compiler-guy | 2025-06-12 14:04:25+00:00
It only takes a week to learn enough git to get by, and only a month or two to become every-day use proficient. Especially if one is already familiar with perforce, or svn, or other VCS.

Yes, there is a transition, no it isn't really that hard.

Anyone who views lack of git experience as a gap in a CV is selecting for the wrong thing.
by FirmwareBurner | 2025-06-12 14:04:40+00:00
>If some streaker runs naked across the field, are the stations held to account?

If they made no reasonable attempts to move the camera away or cut the feed to something else, yes absolutely they are held accountable. That's why you have TV directors in the studio. Do you think you can get away with lengthy broadcasting of obscene nudity just because you're live?

Have you seen major sporting events like F1? Their broadcasting rooms look like NASA, dozens of people looking as several camera feeds simultaneously and picking the best one. They'll definitely see a naked man running on the field with his junk out in due time and not share that feed. I assume it's the same for FIFA, NFL, NBA, NHL, Golf, Tennis, Cricket and any other major sporting event.
by JumpCrisscross | 2025-06-12 14:04:52+00:00
> present what data is available

It’s not. It’s one video of unknown quality and relevance, picked somewhat randomly out of all the other available videos and data, the most relevant of which aren’t publicly available.

> Feel free to go take a look and judge for yourself

It’s the usual emotional coping through baseless speculation. There are healthier ways to deal with uncertainty amidst tragedy.
by petertodd | 2025-06-12 14:04:52+00:00
HAAS CNC mills are famous for using electric stove elements for the spindle brake resistor: https://www.reddit.com/r/CNC/comments/1es1d01/someone_didnt_...

I'm not sure that this really is a completely off-the-shelf stove element. But obviously, the technology is basically identical to what you'd have on your stove.
by bluGill | 2025-06-12 14:04:57+00:00
Amtrak owns the tracks in the north east, and hasn't done anything.

Even where they don't own tracks, doing a deep dive into the areas where there are problems can find solutions. There are many options to force a private owner to fix problems, and congress can fund part of the cost for a passing track if Amtrak calls it a priority. Or Amtrak and sue the private railroad for not giving them legal priority if that is the real problem. I'm sure there are lots of other options that someone in the railroads would know.
by rvz | 2025-06-12 14:04:58+00:00
Well right now I am very skeptical, but I think we have somewhat given quantum computing plenty of time (we have given it decades) unless someone can convince me that it is not a scam.

Right now it hasn't amounted to anything useful, other than Shor's and 'experiments' and promises and applications that are no better done on a GPU rack right now.
by Symbiote | 2025-06-12 14:05:42+00:00
> most planes can't dump fuel anymore

This is true but irrelevant to this crash. Most commercial jets are smaller (A320, 737 etc) and can't dump fuel.

Long-haul jets like the 787 do have the capability.

https://www.boeing.com/content/dam/boeing/boeingdotcom/comme...