moonpiedumplings

joined 2 years ago
 

Finally I can doomscroll books

I don't hate on any language's syntax tbh, but the tooling for nix is absolutely miserable compared to similar.

People hate on yaml a lot, but I can start typing and then press tab and it completes a whole template for whatever k8s objecy I am trying to make. Having to copy from my other project's shell.nix/whatever into the new one feels miserable in comparison.

[–] moonpiedumplings@programming.dev 6 points 8 hours ago* (last edited 8 hours ago)

Sometimes I wonder if Vanguard is actually a government pet project for practice blocking and executing malicious pci devices.

You take one of those pci dma cheat cards, put a modem in them, and you've broken secure boot. And nation states have done such a thing to compromise laptops or other devices after getting physical access to them for a bit.

They do it though. People all of a sudden are motivated and able to enable bitlocker and secure boot and update their bios when they need it to play le funni video game.

[–] moonpiedumplings@programming.dev 51 points 12 hours ago (13 children)

https://www.riotgames.com/en/news/vanguard-security-update-motherboard

I am so deeply annoyed that

  1. Vanguard demands this level of control over user systems

  2. Vanguard seems to be the only entity handling a threat vector most people simply ignore. I suspect not even crowdstrike and the like could handle malicious pci devices. Well, vanguard can't either, it's just a cat and mouse game. But they are definitely trying in an area where most seem to have given up, but it's absurd that it's a fucking game anticheat that's doing this.

Debian repos are basically guaranteed safe: https://programming.dev/comment/22863237

Flathub is much, much safer than say, the google play store, but it ultimately does follow a model of app developers submitting packages which get reviewed and approved. In theory, someone could sneak malware past that, although there haven't been any incidents (perhaps flathub's review is very effective?). But the snap store, which follows a similar model has had malware. But canonical hasn't been the best steward of that one.

In addition to this, not all stuff on flathub is open source, which is definitely concerning.

Thankfully, flatpak has a built in sandboxing system, which lets you limit what the appps have access to. KDE has a UI for it, and there is also the GUI app flatseal.

[–] moonpiedumplings@programming.dev 1 points 12 hours ago (1 children)

malicious code does occasionally sneak into Debian distributed apps

Do you have an example of this? The xz utils backdoor did not make it into debian stable, only unstable.

Debian stable essentially forks every package, maintaining a custom codebase. They then cherry pick security updates only (ignoring feature updates or minor bugfixes), and applying those. This makes it extraordinarily resilient to any form of supply chain attack.

[–] moonpiedumplings@programming.dev 2 points 12 hours ago (1 children)

Flatpak's show up in discover, and aren't by the distro. Usually it's flathub.

[–] moonpiedumplings@programming.dev 13 points 21 hours ago* (last edited 21 hours ago) (1 children)

Journalists communicating with sources in censored regions

Whistleblowers sharing information securely

You and your peer agree on an encryption key (any string).

This is unacceptably unsecure for the usecases you mention. There is a reason why the most secure messaging apps don't use symetric encryption, don't use passphrases, and they also possess forward secrecy.

It's pointless to push this as a censhorship circumvention method when many other methods exist that already do so 10x better, in a secure way, over decentralized, hidden and unblockable infrastructure. (Tor's meek-azure bridges use microsoft's infrastructure, which nobody is able to block because everybody depends on it, even China).

I appreciate the project, and I am always happy to see people learning, progressing, and publishing their results, but you need to be honest about the weaknesses of your software compared to established solutions. It's not impossible for you to one day produce a secure messaging app, but today is not the day. Right now, using this is just a fast way to get killed.

[–] moonpiedumplings@programming.dev 3 points 1 day ago (2 children)

It looks like they are using prepared statements, which prevent sql injection:

https://www.php.net/manual/en/pdo.prepared-statements.php

[–] moonpiedumplings@programming.dev 2 points 1 day ago* (last edited 1 day ago) (1 children)
[–] moonpiedumplings@programming.dev 2 points 4 days ago (1 children)

Also try wireguard over port 53. Often (udp) traffic to port 53 is unblocked because it's needed for DNS.

What is special about this setup is that it can sometimes get around captive portal wifi.

[–] moonpiedumplings@programming.dev 4 points 4 days ago (1 children)

If you use kde, you can search for "profile manager", and it will show up, and can be launched from the app menu.

At least works for me. Before this was added, the KDE search/app menu also lets you run commands directly, so I would just run firefox -p in there. No need for a terminal.

 

As usual, phoronix is full of trolls. I was surprised to see only 17 comments, but perhaps that's because I viewed this very early. A highlight from the first page:

Everyday we stray further from GNU, POSIX, C, X11 and now SysVinit. 80s are over. Party is over. Wake up. It's 2026. Adapt or perish in irrelevance. Future is bright and is inevitable. Long live systemd, Wayland, Rust, Gnome and atomic and immutable distros.

Given the way this covers Systemd, SysV, and AI agents, and the way that I see trolling on the first page, There is a very real chance this could be one of those legendary Phoronix threads that manages to hit the 500 comment limit.

EDIT: more relevant threads: https://www.phoronix.com/linux/systemd

 

Youtube video: https://www.youtube.com/watch?v=xrIFL7wSRw4

I am excited about the changes to incus-migrate that allow for direct importation of a remote qcow2 or vmdk. Although many people distribute vmdk's zipped or in tarballs, but it's still a cool feature.

 

Sample with fibonacci:

⍥◡+9∩1 is the fibonacci in this language

 

Here are some cool examples I was looking at:

https://github.com/zardoy/minecraft-web-client — Minecraft in your browser, complete with connections to servers.

https://github.com/inolen/quakejs — quake 3 in your browser, has multiplayer as well.

Any other good examples? or good lists?

 

cross-posted from: https://programming.dev/post/45725210

I noticed in a fairly recent version of KDE, my computer would pretend to be a bluetooth sink when connected to devices like my phone.

This is a really cool feature, and I really like it, because it lets me stream audio from my phone to my computer with no fuss.

However, there is an annoying glitch where the stream stops all of a sudden. The phone keeps playing the music, but I can't hear anything. I've noticed that this seems to have something to do with CPU usage, like when I switch windows rapidly or do something that requires CPU the bluetooth process is dropped. The only reliable way to fix it is to disconnect and reconnect, or wait a minute, and then it works again. Is there any way to fix this more persistently?

I am using CachyOS + KDE right now.

 

Has anyone tried this? It's discord reverse engineered.

 

Inspired by this comment.

I'm curious.

 

Tldr we want a static website that will last a long time and also look pretty nice.

Right now, we have a wordpress website. It looks very nice. It also have 4 extensions that aren't configured to auto update. Also whenever I try to make changes to the website they don't apply because the website was configured via the extensions and I hate it.

I want a static site of some kind. It's simple to self host or host anywhere, and it's also simple to secure and keep maintained for a long time.

I am currently looking at static site generators, like quarto, or docusaurus

However, they are difficult to theme to the "niceness" that I want, and their nature results in these somewhat fixed output formats. Like, it is somewhat difficult and annoying to put images anywhere I want them and etc.

Is there like a fixed WYSIWYG html editor? Something between designing a website from scratch and a static site generator. Or is there a way to finagle static site generators to be more flexible than blogs or documentation sites?

 

Nixgl: https://github.com/nix-community/nixGL

Also, it seems like this requires the latest "stateversion", since this is a new feature.

This is pretty big, because it makes it easy to use applications that use the GPU from nixpkgs on non Nixos systems.

 

cross-posted from: https://programming.dev/post/32779890

I want to like, block interaction with a window that I am keeping on top of other windows so I can see it but still click to stuff behind it.

It turns out mpv already has this implemented. https://github.com/mpv-player/mpv/pull/8949

Technically no windows or mac support (presumably it's possible there; dunno), but OP only asked for linux stuff so I'll close this

And then I could remove the title bar if I really don't want to interact with the app.

view more: next ›