Woops it was a slip of the tongue. Keyboard?

[-] moonpiedumplings@programming.dev 1 points 3 hours ago* (last edited 3 hours ago)

Currently doing finals for my Junior year in Computer Science. Finishing up the homelab, and packing it up since I have to take it home since I won't be dorming over the summer. Also trying to learn Rust.

Also it didn't let me submit this with the "English" language, I had to select undetermined.

My favorite, the most comprehensive course I have seen this this one: https://professionallinuxusersgroup.github.io/course-books/lac/syllabus/

Most knowledge is transferable to most distros. Some distros deviate by using alternate init systems (the part responsible for booting the system and managing services), but most distros use the same underlying suite of software to manage it.

On diference between distros is the package manager, but although the commands may be different, the underlying operations of installing, searching for, and removing software packages are all the same.

[-] moonpiedumplings@programming.dev 2 points 4 hours ago* (last edited 3 hours ago)

If you want Debian, my recommendation is to install Linux Mint Debian Edition, which is based on Debian, rather than Ubuntu. Save for some extras focusing on usability/UX/UI, it uses Debian's repos.

Linux Mint is the team behind the timeshift tool in the first place: https://github.com/linuxmint/timeshift , so you can be assured there is first class support.

If you want something more up to date, I would recommend Opensuse tumbleweed, yes, although they use snapper instead.

And if you download an RPM for a 3rd party driver (like the printer for example) chances are there will be unmet dependencies because it was meant for Red Hat.

I have never needed to download a driver for a printer on any Linux distro. Most of the time it just works using IPP (built in thing). Downloading drivers for printers is a Windows thing, in my experience.

These repos are targeted towards red hat enterprise linux, which is also dnf based, but has vastly different versions of packages than fedora, and is a much more stable distro.

The same way you wouldn't want to mix apt repos of different distros, you wouldn't want to use repos designed for Red Hat, for Fedora.

Nvidia does seem to provide Fedora repos, but I would recommend following Fedora's official docs and getting them from rpmfusion, unless there is something you specifically need from Nvidia's repos.

[-] moonpiedumplings@programming.dev 2 points 10 hours ago* (last edited 10 hours ago)

Because fex/box86 have the ability to run arm binaries linked to x86 libraries, netting signficantly greater performance. In addition to other tricks.

https://box86.org/2022/03/box86-box64-vs-qemu-vs-fex-vs-rosetta2/

37

I can't find the source code for this, I am posting here to save it to remind myself to search later.

Who let him cultivate immortallity? : https://www.novelupdates.com/series/who-let-him-cultivate-immortality/

It's a parody/satire of all of the tropes common in Cultivation/Xianxia, and it's making me laugh a lot. Though, I think it will be more amusing if you are already familiar with lots of the tropes.

[-] moonpiedumplings@programming.dev 2 points 1 day ago* (last edited 23 hours ago)

Practical Guide to Sorcery (I think it counts as progression fantasy?)

Same here. K8s makes stuff like this so mucb easier, since you can declaratively control traffic flow via NetworkPolicies.

And with cilum you ca use hubble to visualize whay traffic is currently happening, in order to figure out what is actually needed.

I also use Cilium as my host based firewall instead of ufw/firewalld.

https://docs.cilium.io/en/latest/security/host-firewall/

Here is what I did, although it may not be what you want.

I used cockpit, and NetworkManager to convert both of my interfaces into a single bond, named bond0. Then I convert that bond interface into a bridge interface that also has an ip address and network connection, and can be used as a normal ethernet interface (calling that one eth0). Then I create a veth interface, attatch one end of it to eth0, and the other end becomes a usable interface called eth1.

I do this convoluted setup, because openstack (proxmox like software) wants two network interfaces, BUT I only have 100 mb/s per link. By bonding them it lets anything on the host or any vm use a total of 200 mb/s.

As a simpler version of this, if you only have a single interface, you could convert it into a bridge and call that eth0.

Of course, this probably does not work if you want consistent interfaces because you are autoconfiguring interfaces or something like that. But for same named interfaces that you are feeding into software like openstack,docker,proxmox/etc it works.

Canvas is the best. It's entirely open source, under the agpl license.

https://github.com/instructure/canvas-lms

They have generally been pretty good when it comes to adding features, and security practicws. But sometimes you just lose (to shinyhunters).

[-] moonpiedumplings@programming.dev 28 points 4 days ago* (last edited 1 day ago)

No, this is kinda right. Memory leaks =/= memory safety. Memory leaks are just when you keep allocating more and more memory, and can be done in any language. If I make accidentally make a list that infinitely grows in python, that's a memory leak.

There are techniques to write code that is mostly free of leaks, which is what he is referring to.

Memory safety, on the other hand, doesn't seem to be mentioned on that page...

521
This site is so much fun (programming.dev)

Other fun answers:

This site is: https://youraislopbores.me/

This site is a "fake chatgpt" where you can pretend to be chatgpt or ask questions to people pretending to be chatgpt.

31

Phone game that measures how high you can throw your phone into the air...

25
29
submitted 1 month ago* (last edited 1 month ago) by moonpiedumplings@programming.dev to c/linux@programming.dev

It was fairly easy. I used rustic to back up my entire home directory to a USB flash drive.

The trick is to ensure that all applications (except KDE) are closed. Firefox, for example, really hates if you try to actively sync or copy over it's profile directories while it is running.

And then I also nuked my podman user data. (podman system reset). Podman sometimes makes the ownership of it's files weird, but also the container images take up a lot of space that I don't really care about actually backing up. It's okay if those aren't on the new laptop.

Then I backed up to the usb flash drive:

rustic init -r /path/to/repo — this will prompt you for a password

rustic backup -r /path/to/repo /home/moonpie

One cool thing about the backups is that they are deduplicated and compressed. So I backed up 120 gb of data, but it was compressed to 80 gb.

restic snapshots -r /path/to/repo

The snapshots are deduplicated as well. Data that doesn't change between snapshot versions, doesn't take up any extra space.

rustic restore -r /path/to/repo snapshotid /

The / is needed because rustic restores to paths underneath the thing. It gave me a bunch of permission errors about not being able to read stuff not in my home directory, but eventually it restored all of my data.

And then yeah. All my data. Except Wifi passwords, which I had stored as unencrypted for all users, because I didn't like having to unlock the KDE wallet to get to Wifi passwords when connecting. I had (and have) LUKS encryption so I didn't worry about that too much. But it means that data not in my home directory was not copied over.

It was surprisingly smooth, and now I have all my data and firefox profiles and stuff on the new machine.

27

Finally I can doomscroll books

27
submitted 1 month ago* (last edited 1 month ago) by moonpiedumplings@programming.dev to c/linux@programming.dev

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

31
Incus 6.22 has been released (discuss.linuxcontainers.org)

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.

50
submitted 2 months ago* (last edited 2 months ago) by moonpiedumplings@programming.dev to c/programming@programming.dev

Sample with fibonacci:

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

51

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?

12
submitted 2 months ago* (last edited 2 months ago) by moonpiedumplings@programming.dev to c/linux@programming.dev

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.

17
submitted 2 months ago* (last edited 2 months ago) by moonpiedumplings@programming.dev to c/kde@lemmy.kde.social

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.

view more: next ›

moonpiedumplings

joined 2 years ago