Better HN
topnewbestaskshowjobs
Log inSign up

ptx

5,249 karma · joined Oct 16, 2013 (13y ago) · 2,165 submissions

Submissions

comment 1d ago · link · parent

How does the government enforce that? If we can't assume that the board will for the most part act in good faith and mostly try to follow the law, the government would have to keep a very close eye on them to stay on top of their mischief - perhaps a government representative should be present at all board meetings?

comment 2d ago · link · parent

So does this mean that .NET Core (i.e. .NET 5 and later) will now be bundled with Windows? And maybe that .NET Framework (.NET 4), which currently is, will not?

Their blog post doesn't mention .NET at all. I'm fairly sure PowerShell 7 requires .NET Core, which is not compatible with .NET Framework.

comment 2d ago · link · parent

The LLM-generated writing is incredibly tedious to read, but I like the idea of pre-loading the application and then forking the workers (kind of like Android's Zygote), while, as the LLM puts it, "Muru also takes care to freeze the garbage collector's view of the preloaded objects before forking", or, as it's more concisely put in the code, "gc.freeze()".

A variation on that theme that I would like to try is forking a worker per user (or per session), which would be sandboxed (e.g. with Capsicum in FreeBSD) and only have access to that user's credentials. A separate process would route requests to these per-user workers and provide them with the appropriate credentials. This could then be combined with PostgreSQL's row-level security, with each user having their own user in PostgreSQL, and the per-user worker only having access to that particular user's database credentials.

I feel like this should significantly limit the consequences of both SQL injection vulnerabilities and RCE vulnerabilities. It wouldn't solve stored XSS, I suppose, but I believe that is handled by using a template language for HTML (one that encodes parameters automatically on output). It also probably wouldn't scale to a planet-scale mass-market web application, but there are lots of apps that don't need that kind of scale but do need to be secure.

Maybe this sort of thing has already been done and written about (by humans)?

comment 4d ago · link · parent

If Teams on the phone doesn't know the messages were already read half an hour ago, how would it know I've opened Teams on another machine?

I can't imagine the default behavior is deliberate. Alerting someone to a message they've already replied to can't be the intended behavior, as they've obviously seen the message already, and adding a setting to change the behavior only makes sense if the default behavior is intentionally designed and not a bug.

comment 4d ago · link · parent

Microsoft Teams does this to me all the time, playing an alert sound on the phone for messages I already read and replied to ages ago on the desktop.

comment 6d ago · link · parent

There was a DoS vulnerability in FreeBSD's vmm announced earlier today (letting the guest panic the host on Intel CPUs): https://www.freebsd.org/security/advisories/FreeBSD-SA-26:84...

comment 6d ago · link · parent

> I partially blame responsive design. It's so much easier to just put the visual elements in the exact layout you want (absolute positioning) than to make sure it works on all different screen sizes, but we spent years preaching that absolute positioning was the devil.

The layout might also have to be adjusted for different languages, e.g. to make room for "Festplatte" where the original said "disk", and open source software often has translations with gettext or similar, so maybe responsive layout is still less work than manually adjusting the layouts for every language for every change?

comment 6d ago · link · parent

The modern standard UX in Windows 11 is completely broken in this regard, at least in the UAC password dialog. The "No" button is loudly emphasized in blue, but that's not the default button - when you press enter, it actually triggers the "Yes" action.

comment 1w ago · link · parent

There are still 32-bit applications running on 64-bit operating systems which you might want to extend.

comment 1w ago · link · parent

> Some folks out there are still salty about some of Microsoft's decision around OSS (debugger, hot reload fiasco, etc.)

Have these decisions changed? Is everything now open source?

comment 2w ago · link · parent

Yes, the link shows that the application loads DLLs from many places, one of which is the working directory, which is placed earlier in the search order when safe DLL search mode is disabled, which is less safe than the safe mode.

As the second link says, the safe DLL search mode is "increasing the chances that Windows will find a legitimate copy of the DLL before a malicious copy", implying that the less safe mode, which was the default in earlier versions of Windows, as I said, decreases the chances of finding the legitimate DLL first, i.e. it increases the risk of loading a malicious DLL from the working directory.

comment 2w ago · link · parent

Which cross-platform toolkits are more mature than Qt?

comment 2w ago · link · parent

> In some extreme cases, in-development feature code was being lifted straight out of our personal forks and published without attribution or lazily rewritten with LLM assistance to obfuscate its origin. The MIT licence explicitly allows this, and has no carveouts to protect against bad faith actors.

Attribution is the one and only condition of the MIT license, aside from the disclaimer of warranty, so I don't see how it "explicitly allows" publishing without attribution.

comment 2w ago · link · parent

Is this the right way to specify it when upgrading the vulnerable apt?

  # apt -o 'Acquire::http::AllowRedirect=false' update
  # apt -o 'Acquire::http::AllowRedirect=false' install apt

comment 3w ago · link · parent

But they do load from the working directory by default [0] and until XP SP2 they put it before system32 in the search order [1] by default.

[0] https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic...

[1] https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic...

comment 3w ago · link · parent

Yup. And since applications load DLLs from their working directory by default, and opening a document sets the working directory... you'd better make sure you never open a document from an untrusted folder.

comment 1mo ago · link · parent

Almost every time I use an AI chatbot it eventually turns out it's lying to me. I would not trust them with any of the things you mention.

comment 1mo ago · link · parent

No, because someone else will then come along and mess up your configuration and destroy your work, either accidentally or just to be a jerk, which will set your productivity back significantly.

comment 1mo ago · link · parent

The disclaimer at the end of the article says AI was used to "polish" the writing. I would guess it's this polish that can be a little off-putting: It reads like a magazine article written by and for people who aren't particularly interested in the topic.

comment 1mo ago · link · parent

> More like trying to explain to people who have only done imperative programming (and that also in JS of all languages) why a render function was necessary.

It doesn't seem all that different from doing your rendering in the WM_PAINT handler, which was already how things were done in the ancient Win32 API (although it's possible [0] to draw outside WM_PAINT).

[0] https://learn.microsoft.com/en-us/windows/win32/gdi/drawing-...

comment 1mo ago · link · parent

It doesnt't seem to be open source, though. A proprietary language with a proprietary implementation is a dead end.

22.

Some thoughts on security after ten years of qmail 1.0 (2007) [pdf](cr.yp.to ↗)

2 points · by ptx · 1mo ago · discuss

comment 1mo ago · link · parent

I think GPLv3 already does this, with its anti-tivoization requirements. People just need to switch to an up-to-date copyleft license rather than permissive licenses.

https://www.gnu.org/licenses/gpl-faq.html#Tivoization

comment 2mo ago · link · parent

What do you mean? You were so excited that you didn't want to talk about what excited you and left it to an LLM instead?

comment 2mo ago · link · parent

But it seems this "economic value" is often created by depleting actual physical resources (e.g. people's health, clean air and water), usually resources belonging someone other than the person capturing the "value".

comment 2mo ago · link · parent

There is with jpackage. The packages it builds could include install scripts (or custom actions in the case of MSI) to run at install time.

The script wouldn't have to do the training run at install time, as I understand it, just the AOT compilation. See the section on "AOTMode=record" vs "AOTMode=create" in the JEP.

comment 2mo ago · link · parent

It would be nice if jpackage could bundle the generated AOT configuration data along with a custom action in the MSI package to run the machine-dependent AOT compilation step at install time.

comment 2mo ago · link · parent

That leaves a few questions though (which I'm not implying that I know the answers to):

Did this planted forest (used for logging) replace another forest that was used as a habitat for animals? Is it counted as an equivalent to non-logging forests to justify the destruction of non-logging forests?

Can this sustainable industry sustain suitable living conditions for animals in the forest? Or can the industry only sustain itself and its own interests in future resource extraction?

comment 2mo ago · link · parent

No, it isn't.

Ladybird [0]: "We will no longer accept public pull requests. From now on, code changes to the Ladybird codebase will only be introduced by project maintainers. [...] There will not be a separate process for submitting patches by other means."

FreeBSD [1]: "So you want to contribute to FreeBSD? That is great! FreeBSD relies on the contributions of its user base to survive. Your contributions are not only appreciated, they are vital to FreeBSD’s continued growth. [...] If you are submitting a simple patch to the src repo, please consider submitting it to the project’s GitHub mirror as a pull request."

[0] https://ladybird.org/posts/changing-how-we-develop-ladybird/

[1] https://docs.freebsd.org/en/articles/contributing/

comment 2mo ago · link · parent

As far as I can tell, all the recording, storing and transmitting of audio from the microphone happens after 34 minutes in, after the point where they start hacking the TV and telling it themselves to do these things.

LG's advertising features appear (from what they discover before 34 minutes in and from the clips of the LG execs boasting about their ad platform) to be concerned only with what's played on the TV (and networks, devices, ..., but not microphone audio).

If I'm wrong about this, I would appreciate a timestamp for where in the video they show LG actually storing and transmitting audio recorded from the microphone.

12345
73