47

At least in this post, I'm not advocating for any particular political position; I mean for this to be a more generalized discussion.

I have never understood what prompts people to attend political rallies. None of the current US political candidates 100% align with my views, but I am very confident that I made the right choice in who I voted for. That is to say, I'd consider myself a strong supporter of [name here].

To me, it feels like attending a political rally is like attending a college lecture. You have a person giving you information, but you don't gain anything by hearing it in-person as opposed to reading it or watching a recording. If I want to learn something, it's much more comfortable for me to read and article or watch a video in the comfort of my own home. If I want to understand what a political candidate stands for, I'd much rather watch a recording of a town-hall meeting or read something she (oops) wrote rather than taking the time to drive to a rally, get packed in with a bunch of other people, and simply stand and listen.

I understand concerts. Hearing live music sounds vastly different than listening to a recording. Same with movies; most of us don't have an IMAX theater at home. When you're trying to gather information, though, what's the draw in standing outside in a crowd at listening to it in person?

[-] corroded@lemmy.world 8 points 8 hours ago

I haven't had cable/satellite TV in well over a decade, probably more. When I say I'm "watching TV," rather than "watching videos" or "watching YouTube," it means I'm watching something episodic, created by a major studio.

[-] corroded@lemmy.world 15 points 1 day ago

Manner of death: "Natural." That's bullshit. Manner of death: "Religious" or "Political."

[-] corroded@lemmy.world 57 points 1 day ago* (last edited 1 day ago)

The biggest difference I've noticed is that while Reddit may have a lot of large active communities, I would rarely get a quality response if I posted a question or a discussion topic.

Here, I can post to a community that hasn't had a new post in a few days, and within an hour I have several people offering help or discussion.

Reddit is far more active, but Lemmy users are far more helpful.

[-] corroded@lemmy.world 19 points 3 days ago

Why is kernel-level anti-cheat even a thing?

If I was trying to prevent cheating, I'd hash the relevant game files, encrypt the values, and hard-code them into the executable. Then when the game is launched, calculated the hash of the existing files and compare to the saved values.

What is gained by running anti-cheat in kernel mode? I only play single-player games, so I assume I'm missing something.

[-] corroded@lemmy.world 22 points 1 week ago* (last edited 1 week ago)

I use Jellyfin heavily, and it's a fantastic project, but I really wish they would address the issues with transcoding, specifically the ability to force it on.

My library contains a decent amount of HDR (lots of DV) content. On my TVs (using Nvidia Shield), it will direct play the DV content, resulting in a green picture. If I turn on burned-in subtitles or drop the bitrate and FORCE it to transcode, it's looks perfect. I've resorted to just setting a low bitrate on clients so it always transcodes.

I'm really hoping a future version gives us the ability to set more fine-grained transcoding settings per-client. Even the ability to disable direct-play completely would be fantastic.

[-] corroded@lemmy.world 55 points 1 week ago

Something isn't adding up here. The first article I read about this said that there were employees nearby who saw her but were unable to open the door. If I see someone being literally cooked, I'm going to grab the closest metal object and smash the fuck out of the door. I would imagine most people would have the same reaction. Even if it's a metal door, 4 or 5 people could almost certainly pry it open.

[-] corroded@lemmy.world -4 points 1 week ago* (last edited 1 week ago)

If you're sick with something that's non-transmissible, then it's on you to decide if you want to go to work or not.

If you're sick with something contagious, then I don't care who you are, you're a horrible excuse for a human being if you go to work.

[-] corroded@lemmy.world 8 points 2 weeks ago* (last edited 2 weeks ago)

Maybe I'm totally wrong, but doesn't EGR stand for EXHAUST Gas Recirculation? Is the Volt a hybrid? I thought it was an EV and thus had no exhaust.

Edit: This was a joke, wasn't it?

[-] corroded@lemmy.world 51 points 2 weeks ago

I'm going to go ahead and say convicted felons probably shouldn't be eligible for the country's highest office, either.

[-] corroded@lemmy.world 4 points 2 weeks ago

At least for me, the whole "made by devs for devs" isn't really the major downfall. It's the fact that it can't be trusted to remain functional in a dynamic environment. I like using the command line, but sometimes that's just not enough.

If I need a specific software package, I can download the source, compile it, along with the 100 of libraries that they chose not to include in the .tar.gz file, and eventually get it running.

However, when I do an "apt update" and it changes enough, then the binary I compiled earlier is going to stop working. Then I spend hours trying to recompile it along with it's dependencies, only to find that it doesn't support some obscure sub-version of a package that got installed along with the latest security updates.

In a static environment, where I will never change settings or install software (like my NAS), it's perfect. On my desktop PC, I just want it to work well enough so I can tinker with other things. I don't want to have to troubleshoot why Gnome or KDE isn't working with my video drivers when all I want to do is launch remote desktop so I can tinker with stuff on a server that I actually want to tinker with.

[-] corroded@lemmy.world 14 points 2 weeks ago* (last edited 2 weeks ago)

I can only speak for myself, but I have always had bad luck with Linux on desktop. Something always breaks, isn't compatible, or requires a lengthy installation process involving compiling multiple libraries because no .deb or .rpm is available.

On servers, it's fantastic. If you count VMs, I have far more Linux installations than Windows. In general, I use Win10 LTSC for anything that requires a GUI and Ubuntu Server for anything that only needs CLI or hosts a web interface.

[-] corroded@lemmy.world 25 points 2 weeks ago

Win10 LTSC still has quite a few years left.

95
submitted 2 months ago* (last edited 2 months ago) by corroded@lemmy.world to c/asklemmy@lemmy.ml

I generally try to stay informed on current events. With the exception of what gets posted here, I normally get my news from CNN. I tend to lean left politically, but not always.

The problem I always run into is that every news site I read, regardless of where they stand on the political spectrum, is always filled with pointless bullshit. Specifically, sports, celebrity news, and product placement. "Some shitty pop singer is dating some shitty actor" or "These are our recommendations for the best mass-produced garbage-quality fast fashion from Temu" or "Some overpaid dickhead threw a ball faster than some other overpaid dickhead."

What I'd love to find is a news source that's just news that matters. No celebrity gossip, sports, opinion pieces, etc. Just real events that have an impact on some part of the world. Legislation, natural events, economic changes, wars, political changes, that kind of thing.

Does this exist, or is all journalism just entertainment?

25
submitted 3 months ago* (last edited 3 months ago) by corroded@lemmy.world to c/homeassistant@lemmy.world

I have been using the BlueIris NVR integration (from HACS) for quite some time, and it works great for triggering BI from HA. I've trying to do the opposite now: Fire off automations in HA whenever BI detects motion on one of my cameras.

I've never used MQTT before, so I'm learning as I go, but I think I have most of my setup configured properly. I've installed Mosquitto and the MQTT integration in HA. I've configured BI to connect to HA, and running "Test" in the "Edit MQTT Server" menu in BI shows a good connection and no errors. I've set my cameras to post an MQTT event when the alert is triggered (and I've verified that the alerts are in fact being triggered).

Nothing happens in HA, though. The "Motion" sensor for my camera in HA stays at "Clear." In fact, the history shows no change at all, ever.

I have the events in BI set up as follows: On Alert: MQTT Topic - BlueIris/&CAM/Status and Payload - { "type": "&TYPE", "trigger": "ON" } On Reset: Exactly the same, but change ON to OFF.

I've tried change the MQTT autodiscovery header in HA from "homeassistant" to "BlueIris," and it made no difference. The Mosquitto logs show a login from HA, so I feel like I'm close, but I'm not sure where else to look.

Edit: I installed MQTT explorer, and I've verified that the messages are making it to Mosquitto, and they appear to be correctly formatted.

UPDATE: I set the MQTT integration to listen to the MQTT messages coming from BI, and sure enough, they were coming through just fine. For some reason, the BI integration just wasn't seeing them. Digging through the system logs, I saw some errors "creating a binary sensor" coming from the BI integration. The only thing I can think is that because I didn't have MQTT set up when I first installed the BI integration, something went wrong with the config (although I had already rebooted the system several times). I re-downloaded the BI integration and re-installed it, and now everything works perfectly.

23
submitted 5 months ago* (last edited 5 months ago) by corroded@lemmy.world to c/cpp@programming.dev

I have been programming in C++ for a very long time, and like a lot of us, I have an established workflow that hasn't really changed much over time. With the exception of bare-metal programming for embedded systems, though, I have been developing for Windows that entire time. With the recent "enshittification" of Windows 11, I'm starting to realize that it's going to be time to make the switch to Linux in the very near future. I've become very accustomed to (spoiled by?) Visual Studio, though, and I'm wondering about the Linux equivalent of features I probably take for granted.

  • Debugging: In VS, I can set breakpoints, step through my code line-by-line, pause and inspect the contents of variable on-the-fly, switch between threads, etc. My understanding of Linux programming is that it's mostly done in a code editor, then compiled on the command line. How exactly do you debug code when your build process is separate from your code editor? Having to compile my code, run it until I find a bug, then open it up in a debugger and start it all over sounds extremely inefficient.
  • Build System: I'm aware that cmake exists, and I've used it a bit, but I don't like it. VS lets me just drop a .h and .cpp file into the solution explorer and I'm good-to-go. Is there really no graphical alternative for Linux?

It seems like Linux development is very modular; each piece of the development process exists in its own application, many of which are command-line only. Part of what I like about VS is that it ties this all together into a nice package and allows interoperability between the functions. I can create a new header or source file, add some code, build it, run it, and debug it, all within the same IDE.

This might come across as a rant against Linux programming, but I don't intend it to. I guess what I'm really looking for is suggestions on how to make the transition from a Visual Studio user to a Linux programmer. How can I transition to Linux and still maintain an efficient workflow?

As a note, I am not new to Linux; I have used it extensively. However, the only programming I've done on Linux is bash scripting.

1
submitted 5 months ago by corroded@lemmy.world to c/homelab@lemmy.ml

I've noticed recently that my network speed isn't what I would expect from a 10Gb network. For reference, I have a Proxmox server and a TrueNAS server, both connected to my primary switch with DAC. I've tested the speed by transferring files from the NAS with SMB and by using OpenSpeedTest running on a VM in Proxmox.

So far, this is what my testing has shown:

  • Using a Windows PC connected directly to my primary switch with CAT6: OpenSpeedTest shows around 2.5-3Gb to Proxmox, which is much slower than I'd expect. Transferring a file from my NAS hits a max of around 700-800MB (bytes, not bits), which is about what I'd expect given hard drive speed and overhead.
  • Using a Windows VM on Proxmox: OpenSpeedTest shows around 1.5-2Gb, which is much slower than I would expect. I'm using VirtIO network drivers, so I should realistically only be limited by CPU; it's all running internally in Proxmox. Transferring a file from my NAS hits a max of around 200-300MB, which is still unacceptably slow, even given the HDD bottleneck and SMB overhead.

The summary I get from this is:

  • The slowest transfer rate is between two VMs on my Proxmox server. This should be the fastest transfer rate.
  • Transferring from a VM to a bare-metal PC is significantly slower than expected, but better than between VMs.
  • Transferring from my NAS to a VM is faster than between two VMs, but still slower than it should be.
  • Transferring from my NAS to a bare-metal PC gives me the speeds I would expect.

Ultimately, this shows that the bottleneck is Proxmox. The more VMs involved in the transfer, the slower it gets. I'm not really sure where to look next, though. Is there a setting in Proxmox I should be looking at? My server is old (two Xeon 2650v2); is it just too slow to pass the data across the Linux network bridge at an acceptable rate? CPU usage on the VMs themselves doesn't get past 60% or so, but maybe Proxmox itself is CPU-bound?

The bulk of my network traffic is coming in-and-out of the VMs on Proxmox, so it's important that I figure this out. Any suggestions for testing or for a fix are very much appreciated.

18
submitted 6 months ago by corroded@lemmy.world to c/cpp@programming.dev

In c++17, std::any was added to t he standard library. Boost had their own version of "any" for quite some time before that.

I've been trying to think of a case where std::any is the best solution, and I honestly can't think of one. std::any can hold a variable of any type at runtime, which seems incredibly useful until you consider that at some point, you will need to actually use the data in std::any. This is accomplished by calling std::any_cast with a template argument that corresponds to the correct type held in the std::any object.

That means that although std::any can hold a type of any object, the list of valid objects must be known at the point that the variable is any_cast out of the std::any object. While the list of types that can be assigned to the object is unlimited, the list of types that can be extracted from the object is still finite.

That being said, why not just use a std::variant that can hold all the possible types that could be any_cast out of the object? Set a type alias for the std::variant, and there is no more boilerplate code than you would have otherwise. As an added benefit, you ensure type safety.

16

I'm looking for a portable air conditioner (the kind with 1 or 2 hoses that go to outside air). The problem I'm running into is that every single one I find has some kind of "smart" controller built in. The ones with no WiFi connectivity still have buttons to start/stop the AC, meaning that a simple Zigbee outlet switch won't work. I could switch the AC off, but it would require a button-press to switch it back on. The ones with WiFi connectivity all require "cloud" access; my IoT devices all connect to a VLAN with no internet access, and I plan to keep it that way.

I suppose I could hack a relay in place of the "start" button, but I'd really rather just have something I can plug in and use.

I can't use a window AC; the room has no windows. I'll need to route intake/exhaust through the wall. So far, I can't find any "portable" AC that will work for me.

What I'm looking for is a portable AC that either:

  • Connects to WiFi and integrates with HA locally.
  • Has no connectivity but uses "dumb" controls so I can switch it with a Zigbee outlet switch.

Any ideas?

16

Yesterday, Brian Dorsey was executed for a crime he committed in 2006. By all accounts, during his time in prison, he became remorseful for his actions and was a "model prisoner," to the point that multiple corrections officers backed his petition for clemency.

https://www.cnn.com/2024/04/09/us/brian-dorsey-missouri-execution-tuesday/index.html

In general, the media is painting him as the victim of a justice system that fails to recognize rehabilitation. I find this idea disgusting. Brian Dorsey, in a drug-induced stupor, murdered the people who gave him shelter. He brutally ended the life of a woman and her husband, and (allegedly) sexually assaulted her corpse. There is an argument that he had ineffective legal representation, but that doesn't negate the fact that he is guilty.

While I do believe that he could have been released or had his sentence converted to life in prison, and he could have potentially been a model citizen, this would have been a perversion of justice. Actions that someone takes after committing a barbaric act do not undo the damage that was done. Those two individuals are still dead, and he needed to face the ramifications for his actions.

Rehabilitation should not be an option for someone who committed crimes as depraved as he did. Quite frankly, a lethal injection was far less than what he deserved, given the horror he inflicted on others. If the punishment should fit the crime, then he was given far more leniency than was warranted.

9

I just set up a local instance of Invidious. I created an account, exported my YouTube subscriptions, and imported them into Invidious. The first time I tried, it imported 5 subscriptions out of 50 or so. The second time I tried, it imported 9.

Thinking there might be a problem with the import function, I decided to manually add each subscription. Every time I click "Subscribe," the button will switch to "Unsubscribe," then immediately switch back to "Subscribe." If I look at my subscriptions, it was never added.

My first thought was a problem with the PostgreSQL database, but that wouldn't explain why some subscriptions work when I import them.

I tried rebooting the container, and it made no difference. I'm running Invidious in a Ubuntu 22.04 LXC container in Proxmox. I installed it manually (not with Docker). It has 100GB of HDD space, 4 CPU cores, and 8GB of memory.

What the hell is going on?

48
submitted 7 months ago* (last edited 7 months ago) by corroded@lemmy.world to c/unpopularopinion@lemmy.world

As is stands, parents are able to claim their children as dependents on their tax returns, which lowers their overall tax liability and in effect means that the parents either pay less in taxes or receive a higher return at the end of each year.

Until they reach the age at which they can work, children are a drain on society. They receive public schooling and receive the same benefit from public services that adults do, yet they contribute nothing in return. At the point that they reach maturity and are gainfully employed and paying taxes, they become a functioning member of society.

If a parent decides to have a child, they are making a conscious decision to produce another human being. They could choose to get a sterilization surgery, use birth control, or abort the pregnancy (assuming they don't live in a backwards state that's banned it). Yet even if they decide to have 15 children, the rest of society has to foot the bill for their poor decisions until the child reaches adulthood.

By increasing taxes on parents instead of reducing them, you not only incentivize safe sex and abortion, but you shift the burden of raising a child solely to the individuals who are responsible for the fact that that child exists.

I am a strong advocate for social programs: Single-payer healthcare, welfare programs, low-income housing, etc, but for adults who in turn contribute what they can. A child should only be supported by the individuals who created it.

1
submitted 7 months ago by corroded@lemmy.world to c/homelab@lemmy.ml

The majority of my homelab consists of two servers: A Proxmox hypervisor and a TrueNAS file server. The bulk of my LAN traffic is between these two servers. At the moment, both servers are on my "main" VLAN. I have separate VLANs for guests and IoT devices, but everything else lives on VLAN2.

I have been considering the idea of creating another VLAN for storage, but I'm debating if there is any benefit to this. My NAS still needs to be accessible to non-VLAN-aware devices (my desktop PC, for instance), so from a security standpoint, there's not much benefit; it wouldn't be isolated. Both servers have a 10Gb DAC back to the switch, so bandwidth isn't really a factor; even if it was, my switch is still only going to switch packets between the two servers; it's not like it's flooding the rest of my network.

Having a VLAN for storage seems like it's the "best practice," but since both servers still need to be accessible outside the VLAN, the only benefit I can see is limiting broadcast traffic, and as far as I know (correct me if I'm wrong), SMB/NFS/iSCSI are all unicast.

82

I've been running HA for a while, and it's been working well; I haven't had to change much in a few months. That being said, it's fun to tinker with it, and I'm curious to hear what kind of automations the rest of the community is using. What automations are you most proud of? What are your favorite? What kind of interesting automations have you written?

My personal favorite is an automation that displays the current "apparent" temperature on a Hue bulb. It takes an average of the temperature, humidity, and luminance around my property and uses the average to compute an "apparent" (feels like) temperature. Then it applies a cosine function to the apparent temperature (to approximate how people feel temperature change), uses the resulting value to calculate a level between blue and red in CIELAB (a perceptually uniform color space), converts the results to RGB, and sets the color value of the hue bulb. The result is a bulb that changes color so that the change in color (as perceived by the eye) mirrors how the temperature "feels" outside. Ultimately what that means is that we can look at a small lamp with the hue bulb and say "It feels cold outside; we should put on a coat." It's probably overkill, but it was a fun programming exercise. We've started saying things like "It's really blue today, I don't feel like going out."

I'd really enjoy reading what kind of interesting automations everyone else has written.

view more: next ›

corroded

joined 1 year ago