[-] communism@lemmy.ml 2 points 1 hour ago

I would say Rust is more similar to java and Zig is more similar to C in that manner

You're gonna have to elaborate on that… How so?

[-] communism@lemmy.ml 2 points 16 hours ago

I don't sit on corner sofas regularly enough to have a standard seating position. In that picture I think I feel inclined towards the junction of the sofa.

[-] communism@lemmy.ml 16 points 21 hours ago

Because they benefit from eating animals (they enjoy eating them) whereas they don't benefit from having sex with animals (they don't enjoy having sex with animals).

[-] communism@lemmy.ml 5 points 1 day ago

The forking option wouldn't work as well as it does on github because AUR packages are not namespaced like GitHub repos, e.g. communism/mypackage; instead it's just mypackage. So if adoption required a new name you'd have mypackage-cont, mypackage-cont-cont, or whatever. And it wouldn't really be possible to introduce username namespacing because AUR packages are just Pacman packages that are community-contributed rather than official, and Pacman, like most package managers, doesn't namespace their package names; firefox is just firefox rather than, say, mozilla/firefox. Some AUR packages get added to the official repos so when you do, e.g. yay -Syu, you'll then install the official package if you previously had the AUR package installed as it has the same name.

There isn't a perfect solution. Even if package adoptions were moderated, someone could take over a package and initially push a genuine commit, and then their next commit is malicious. Reviewing every single AUR commit would be incredibly labour-intensive. Possibly you could add automated checks for commits that suddenly add an npm install or other suspicious command with regex, but attackers could just get cleverer about avoiding those regex checks. Imo the best solution is just more widespread warnings about the fact that AUR packages are community-contributed with no guarantees of safety (e.g. on the Arch wiki where it sometimes suggests users install AUR packages), and AUR helpers forcing users to read PKGBUILDs before installation.

[-] communism@lemmy.ml 5 points 1 day ago

Just look for "faraday bag" online. There's some online stores that sell them.

If you mean an actual cage rather than a bag, not sure, but I imagine you could make one to your specified dimensions.

[-] communism@lemmy.ml 1 points 2 days ago

I agree about the risks in terms of the way some sources present the AUR as just extra packages. But I don't think you can object to the AUR more than any other place on the internet where anyone can upload software; unfortunately, the onus is going to be on the user to verify what they install. The AUR is moderated by volunteers and it wouldn't be fair to expect them to vet all of the high volume of commits to the AUR. Possibly they could vet new maintainers or new packages or newly adopted packages, but nothing would stop someone from initially uploading a genuine package and then replacing it with something malicious. Or they could require identity verification to be an AUR maintainer but then far fewer genuine packages would be on there because people don't want to give their real identity to contribute (I maintain some AUR packages, and would stop if required to verify my IRL identity).

I can totally understand if the AUR is not for you; it's more time-consuming as you have to read PKGBUILDs (I always do). But that doesn't make it bad that it exists at all. I think there should be more warnings about it for new users, and possibly some more moderation, though like I said above there's no perfect moderation solution that would simultaneously forgo users' responsibility to check and keep the AUR as large as it is today. Ultimately the option should still exist for users who want it. If it didn't exist, I'd have to hand-package every program that's not in the official repos, and that's even more time-consuming than pulling and reading through a PKGBUILD that someone else already wrote and shared.

[-] communism@lemmy.ml 10 points 2 days ago

It's just a repository of user-contributed packages. It's no different malware-ability-wise to, say, GitHub. If you are running code you found from a stranger on the internet then you are liable for it, and you need to do your due diligence in checking that you are not running malware. It is a good thing that the AUR exists because it means Arch user packages are all in one centralised repository instead of scattered across GitHub, Sourceforge, Codeberg, Pastebin, forums, whatever. If you are just installing random AUR packages then that's on you. It's basic internet safety to not automatically trust random scripts you find on the internet.

[-] communism@lemmy.ml 25 points 2 days ago

What an annoyingly uninformative title. Better title: a lot more compromised AUR packages have been found since our last update.

"A lot worse" is intentionally vague to get people to click.

[-] communism@lemmy.ml 1 points 3 days ago

It's a Haveno network. Haveno is the platform; RetoSwap provides a network for the Haveno platform.

[-] communism@lemmy.ml 3 points 3 days ago

I use bisq and retoswap.

[-] communism@lemmy.ml 4 points 3 days ago* (last edited 3 days ago)

I mean the ELI5 for the uninitiated is that X11 is older, and Wayland was made as the successor to X11. It aims to address issues that a lot of people had with X11. X11 is not in active development whereas Wayland is, and for support for modern tech, it'll be added to Wayland but not X11. These days I'd advise to go with Wayland unless you either have hardware that doesn't place nicely with it or you have a specific use-case for X11, i.e. Wayland unless you have a reason not to. Although most "beginner" distros choose for you without prompting you to pick, in which case go with the default (it's probably Wayland anyway).

If you mean to explain the debate, basically some people have particular things they want to do, or they want to do something a certain way, and it's not supported by Wayland, usually by design due to things like security concerns or philosophical differences with X11. X11 will continue to work for a long time but it's not getting new features, so if these issues are a concern with you, you could stick to X11 for the foreseeable future.

The average user is not supposed to notice a difference (apart from maybe QoL differences like performance, screen tearing, etc)—that's the goal of both projects. It should just display your desktop.

[-] communism@lemmy.ml 19 points 5 days ago

Enjoying the term daemond.

270
submitted 3 months ago by communism@lemmy.ml to c/piracy@lemmy.dbzer0.com
30
submitted 4 months ago* (last edited 4 months ago) by communism@lemmy.ml to c/linux@lemmy.ml

Is there a daemon that will kill any processes using above a specified % of CPU? I'm having issues where a system is sometimes grinding to a halt due to high CPU usage. I'm not sure what process is doing it (can't htop as system is frozen); ideally I'd like a daemon that automatically kills processes using more than a given % of CPU, and then logs what process it was for me to look back on later. Alternatively something that just logs processes that use a given % of CPU so that I may look back on it after restarting the system.

The system is being used as a server so it's unattended a lot of the time; it's not a situation where I did something on the computer and then CPU usage went up.

Edit: Thanks to the comments pointing out it might be a memory leak instead of CPU usage that's the issue. I've set up earlyoom which seems to have diagnosed the problem as a clamd memory leak. I've been running clamd on the server for ages without problems so might be the result of an update; I've disabled it for now, and will keep monitoring the situation to see if earlyoom catches anything else, or if the problem keeps occurring I'll try some of the other tools people have suggested.

43
submitted 6 months ago* (last edited 6 months ago) by communism@lemmy.ml to c/asklemmy@lemmy.ml

I'm going to be delivering an online intro to programming session to a non-technical crowd who will be "following along at home". Because it's online, I can't provide them with machines that are already set up with an appropriate development environment.

I'm familiar with Linuxes and BSDs but honestly have no idea how to get set up with programming stuff on Windows or macOS which presumably most of these people will use, so I need something I can easily instruct them on how to install, and has good cross-platform support so that a basic programming lesson will work on whatever OS the attendees are running. Remember they are non-technical so may need more guidance on installation, so it should be something that is easy to explain.

My ideas:

  • C: surely every OS comes with a C compiler pre-installed? I know C code is more platform-specific, but for basic "intro to programming" programs it should be pretty much the same. I think it's a better language for teaching as you can teach them more about how the computer actually works, and can introduce them to concepts about memory and types that can be obscured by more high-level languages.

  • Python: popular for teaching programming, for the reasons above I'd prefer not to use Python because using e.g. C allows me to teach them more about how the computer works. You could code in Python and never mention types for instance. Rmemeber this is only an intro session so we're not doing a full course. But Python is probably easy to install on a lot of OSes? And of course easy to program in too.

  • Java: good cross-platform support, allows for teaching about types. Maybe a good compromise between the benefits outlined above for C and Python?

Any opinions?

69
submitted 9 months ago* (last edited 9 months ago) by communism@lemmy.ml to c/selfhosted@lemmy.world

I have a server with a bunch of services just as Docker containers. I see that Proxmox is popular among the self-hosting community. I was wondering why?

I understand that running things in a VM provides better security than running them in a container. But is the difference so important given the relatively low risk that an exploit happens inside a container that leads to doing damage to the host machine?

There's also obviously the additional overhead of using Proxmox. It wouldn't be an issue for me as I should have enough resources to, say replace all my Docker containers with VMs. I'm more wondering if the security difference is so massive, or if there is another reason I'm missing why people use Proxmox.

Or am I misunderstanding how people use Proxmox? I was assuming people would use it like how you use Docker, i.e. different services get their own VM/container. If you have a different kind of setup I'd be interested in hearing it.

Edit: I would appreciate if people stop being pedantic and actually read the post. Obviously I am aware that you can run containers in VMs, or containers on bare metal alongside VMs. That's not what the question is and you know it.

17
submitted 11 months ago by communism@lemmy.ml to c/lemmy411@lemmy.ca

I had a bit of a look around and the food-related communities seem to either be a bit more specific or not just about recipe-sharing. Is there a community out there that's just for people to share recipes (whether ones they made themselves, or ones they found online and are recommending)?

25
submitted 11 months ago by communism@lemmy.ml to c/privacy@lemmy.ml

The issue with Google's personalised search results is, imo:

  1. Not only is it not opt-in, but you can't even opt out of it. Personalised search results should be opt-in and disabled by default.
  2. The data kept on you is used to sell you ads
  3. The data kept on you will be handed over to state entities fairly easily

Given those three problems, how feasible would it be to self-host a search engine that personalises your results to show you things that are more relevant to you? Avoiding issues 1 & 2 as you're self-hosting so presumably you have made the decisions around those two things. And issue 3 is improved as you can host it off-shore if you are concerned about your domestic state, and if you are legally compelled to hand over data, you can make the personal choice about whether or not to take the hit of the consequences of refusing, rather than with a big company who will obviously immediately comply and not attempt to fight it even on legal grounds.

A basic use-case example is, say you're a programmer and you look up ruby, you would want to get the first result as the programming language's website rather than the wikipedia page for the gemstone. You could just make the search query ruby programming language on any privacy-respecting search engine, but it's just a bit of QoL improvement to not have to think about the different ways an ambiguous search query like that could be interpreted.

69
submitted 11 months ago by communism@lemmy.ml to c/linux@lemmy.ml

I've finally started having some free time lately and have been working through my Steam library, most of which is Windows games I'm playing with Proton.

I wanted to install some mods, and wanted a mod manager for this. Nexus Mods has Vortex, which is not available for Linux. In any case, running Windows games on Linux through Proton on Steam is fairly specific; the game files will be at certain locations on a Linux filesystem, not at the same locations as they would be on a Windows filesystem. So I think I would need software that has specifically been designed for this use-case (Windows games from Steam running on Proton).

Are there any such mod managers out there? What do other people do when playing games on Linux? I can't be the only person who wants to play video games with mods.

90
submitted 1 year ago by communism@lemmy.ml to c/asklemmy@lemmy.ml

One example is bread. I was baking bread the other day, and obviously the cost of the ingredients I put in the loaf are less than the cost of buying a loaf at the supermarket, but that doesn't include the cost of putting the oven on.

Or dry beans vs canned beans; does the cost of boiling the beans actually bring the cost up to be equivalent to canned beans?

I know that everyone's energy costs are different so it's not possible for someone to do the calculations for you, but I've never bothered to do them for my own case because bills I get from the energy company just tell me how much I owe them for the month, not "you put the oven on for 30 minutes on the 17th of June and that cost you X". It sounds like a headache to try calculate how much I pay for energy per meal. But if someone else has done that calculation for themselves I'd be interested to read it and see how it works out. My intuition is that, in general, it's cheaper to make things yourself (e.g. bread or beans like above), but I couldn't say that for sure without calculating, which as I said seems like it would be a pain in the ass.

7
submitted 1 year ago by communism@lemmy.ml to c/matrix@lemmy.ml

For a while, I was running a conduwuit server. Conduwuit has been abandoned, and I wanted to migrate my server to upstream Conduit.

Has anyone done this before? I'm using Docker Compose for Conduwuit.

51
submitted 1 year ago by communism@lemmy.ml to c/asklemmy@lemmy.ml

Meaning that the author is maybe not very good at their craft, but inadvertently created a work with a lot more meaning than they intended, or they accidentally did something quite clever that they didn't mean to. Or maybe a work which is good in its own right but there's a particular "unofficial" interpretation which makes it so much better.

Obviously a bit of this question involves knowing authorial intentions, but in a lot of instances authors have been able to state that they did or didn't intend a particular interpretation.

82
submitted 1 year ago by communism@lemmy.ml to c/asklemmy@lemmy.ml

It appears to work fine (it contains my home partition for my main machine I daily drive) and I haven't noticed signs of failure. Not noticeably slow either. I used to boot Windows off of it once upon a time which was incredibly slow to start up, but I haven't noticed slowness since using it for my home partition for my personal files.

Articles online seem to suggest the life expectancy for an HDD is 5–7 years. Should I be worried? How do I know when to get a new drive?

48
submitted 1 year ago by communism@lemmy.ml to c/asklemmy@lemmy.ml
view more: next ›

communism

joined 2 years ago