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

I understand the need for security in a corporate setting. When my brand new company laptop has so much nannyware that it's slower out of the box than my 20-year-old netbook that I dug out of a box in the attic, something is very wrong, though.

I firmly believe that IT departments come up with new ideas for "hardening" their default OS installation and implement them in a vacuum. You end up with a barely-usable machine because every single IT person with a "good idea" has infected it with their software package of choice, and nobody is considering the cumulative effect.

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

This really highlights part of the beauty of open source code, though. You usually have plenty of options for large well-maintained projects. If an obscure, abandoned project fits your needs better, you're free to inspect the code, modify it as you see fit, and use it.

On the other hand, when Windows 10 goes end-of-life, I have no option to fork it and use it as a custom project. I can switch to Windows 11 (zero chance of this happening), use an outdated version of Windows 10, or convert to Linux.

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

Even if he "allowed" his adult children to vote as they wish, and for sake of argument suppose he was respectful about it, they're still justified in not spending time with him.

I wouldn't want to spend a day with someone who has no shared beliefs or interests in common either. Just because someone is family doesn't mean you should want or need to be around them. This person doesn't seem to realize that adults are free to choose to associate with like-minded individuals.

[-] corroded@lemmy.world 14 points 4 days ago

C++ compiler errors still won't fit on either screen.

[-] corroded@lemmy.world 34 points 6 days ago

From what I understand of the Australian law, companies are prohibited from requiring a government-issued ID. In practical terms, how can this law be implemented, then? Bypassing a prompt that asks for a birthday is as easy as just lying. Other than requiring an ID, I honestly can't fathom a way this would actually work. I suppose you could require a active credit card number, but that would exclude adults and kids over 16.

29
A/S/L (lemmy.world)
submitted 3 weeks ago by corroded@lemmy.world to c/asklemmy@lemmy.ml

To me, it seems like most of Lemmy consists of users who are older millennials (born at some point in the 80s), male, and about 50/50 split between living in North America or the EU.

Do you fit this demographic?

[-] corroded@lemmy.world 227 points 1 month ago

I am American, and I have always loved my country. Until now, I've never been ashamed to call myself patriotic. My thought has always been than there will always be uninformed, uneducated assholes that vote against their own self-interests and the interests of their own country.

This election is different, though. We knew exactly what we were getting if we re-elected Trump. We responded by not only electing him in a landslide election, but handing the House and the Senate over to the Republicans, too. It was a clear message. America is not a nation of mostly good people with a few vocal "bad apples." We are a nation of hateful, scared bigots, and we proved it in a big way.

This was a turning point in American history, and the majority of us sent a clear message to their fellow citizens and to the world. America is not a nation of mostly good people being overshadowed by a media that covers the loudest assholes in the room. America is a nation of people who by a majority support exactly what the "crazy" Republicans are saying. I would feel better if Trump lost the popular vote but won the electoral vote, but that's not what happened.

This isn't an election where I've lost only lost faith in the democratic process or my fellow citizens, although both are true. This is an election where I've lost faith in my country as a whole. I have never been proudly Republican or proudly Democrat, but I've always been proudly American. Now I'm just... sad. I don't expect I'll see a day any time soon where I can honestly say I'm proud of my country. The best I can do is retreat into my own personal bubble, live my life, and watch the world burn around me until the flames consume everything I care about.

98

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 214 points 3 months ago

I truly believe that these license plates actually work but not for the reason these idiots think.

As soon as a cop sees your plate, they instantly know you're driving an unregistered vehicle, probably dont have a license, insane, looking for an argument, and impervious to reason. Good chance they're going to say "Fuck it, I'm not dealing with this crap today."

[-] corroded@lemmy.world 188 points 3 months ago

The problem isn't that Harris is being held to a higher standard. The problem is that Americans think of elections the same way they think of a sporting match. It's "my team is going to win!" not "I'm going to vote for the candidate that is best aligned with my beliefs." A huge number of the people who are voting Republican are doing so because the Republican party is their "team," and damn it, their team is going to win even if it kills them.

Many years ago, I was discussing politics with a coworker (always a bad idea, but whatever). It went something like this:

"So, you don't think the less-fortunate should be able to afford medical care?" "No, of course not, everyone should be able to see a doctor."

"You don't think gay people should be allowed to marry?" "I'm not gay, but they can do whatever makes them happy."

"You support the war in Iraq, then?" "I support our troops, but the war is kind of a waste."

"We definitely should legalize weed, right?" "Um, I'd smoke it if I didn't get drug tested."

"So why are you voting Republican, then?" "My family is Republican; we always do."

31
submitted 3 months ago by corroded@lemmy.world to c/homelab@lemmy.ml

This is more "home networking" than "homelab," but I imagine the people here might be familiar with what in talking about.

I'm trying to understand the logic behind ISPs offering asymmetrical connections. From a usage standpoint, the vast majority of traffic goes to the end-user instead of from the end-user. From a technical standpoint, though, it seems like it would be more difficult and more expensive to offer an asymmetrical connection.

While consumers may be connected via fiber, cable, DSL, etc, I assume that the ISP has a number of fiber links to "the internet." Those links are almost surely some symmetrical standard (maybe 40 or 100Gb). So if they assume that they can support 1000 users at a certain download speed, what is the advantage of limiting the upload? If their incoming trunks can support 1000 users at 100Mb download, shouldn't it also support 1000 users at 100Mb upload since the trunks themselves are symmetrical?

Limiting the upload speed to a different rate than download seems like it would just add a layer of complexity. I don't see a financial benefit either; if their links are already saturated for download, reducing upload speed doesn't help them add additional users. Upload bandwidth doesn't magically turn into download bandwidth.

Obviously there's some reason for this, but I can't think of one.

93
submitted 3 months ago* (last edited 3 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?

12
submitted 4 months ago by corroded@lemmy.world to c/homelab@lemmy.ml

A few months ago, I upgraded all my network switches. I have a 16-port SFP+ switch and a 1GB switch (LAGG to the SPF+ with two DACs). These work perfectly, and I'm really happy with the setup so far.

My main switch ties into a remote switch in another building over a 10Gb fiber line, and this switch ties into another switch of the same model (on a different floor) over a Cat6e cable. These switches are absolute garbage: https://www.amazon.com/gp/product/B084MH9P8Q

I should have known better than to buy a cheap off-brand switch, but I had hoped that Zyxel was a decent enough brand that I'd be okay. Well, you get what you pay for, and that's $360 down the toilett. I constantly have dropped connections, generally resulting in any attached devices completely losing network connectivity, or if I'm lucky, dropping down to dial-up speeds (I'm not exaggerating). The only way to fix it is to pull the power cable to the switch. Even under virtually no load, the switch gets so hot that it's painful to touch. Judging from the fact that my connection is far more stable when the switch is sitting directly in front of an air conditioner, that tells me just about all I need to know.

I'm trying to find a pair of replacement switches, but I'm really striking out. I have two ancient Dell PowerConnect switches that are rock solid, but they're massive, they sound like jet engines, and they use a huge amount of power. Since these are remote from my homelab and live in occupied areas, they just won't work. All I need is a switch that has:

  • At least 2 SFP+ ports (or 1 SFP+ port for fiber and a 10Gb copper port)
  • At least 4 1Gb ports (or SFP ports; I have a pile of old 1GB SFP adapters)
  • Management/VLAN capability Everything I find online is either Chinese white-label junk or is much larger than what I need. A 16-port SFP+ switch would work, but I'd never use most of the ports, and I'd be wasting a lot of money on overkill hardware. As an example, one of these switches is in my home office; it exists solely so I have a connection between my server rack, two PCs, and a single WAP. I am never going to need another LAN connection in my home office; any hardware is going to go in the server rack, but I do need 10GB connectivity on at least one of those PCs.

Does anyone have a suggestion for a small reliable switch that has a few SFP+ ports, is made by a reputable brand, and isn't a fire hazard?

25
submitted 5 months ago* (last edited 4 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.

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

This isn't strictly "homelab" related, but I'm not sure if there's a better community to post it.

I'm curious what kind of real-world speeds everyone is getting over their wireless network. I was testing tonight, and I'm getting a max of 250Mbit down/up on my laptop. I have 4 Unifi APs, each set to 802.11ac/80Mhz, and my laptop supports 2x2 MIMO. Testing on my phone (Galaxy S23) gives basically the exact same result.

The radio spectrum around me is ideal for WiFi; on 5Ghz, there is no AP in close enough range for me to detect. With an 80Mhz channel width, I can space all 4 of my APs so that there's no interference (using a non-DFS channel for testing, btw).

Am I wasting my time trying to chase higher speeds with my current setup? What kind of speeds are you getting on your WiFi network?

23
submitted 6 months ago* (last edited 6 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.

[-] corroded@lemmy.world 194 points 6 months ago* (last edited 6 months ago)

Microsoft knows that the addition of adds to Windows, Recall, data mining, etc are not suicide. As far as tech news goes, Lemmy really exists in an echo chamber. The vast majority of us at least have some interest in technology. For the majority of the population, though, this isn't true. The typical person sees a computer as a tool to be used for other things. They're not reading articles about the latest release of Windows, new CPU technology, the latest GPU, etc. They're using their computer, and when it's time for an upgrade, they buy whatever suits their needs.

If I was to ask any of my family, or most of my coworkers, about any of the latest "controversies" surrounding Microsoft, they would have no idea what I was talking about. Microsoft obviously thinks that the added profits gained by monetizing their customers will offset the loss of 1% of their users that switch to Linux. They're probably right, too.

I like Windows, personally (well, Windows 10 at least). My unofficial rule has always been if it needs a GUI, then it runs Windows, otherwise, it runs Linux as a headless machine. Once Windows 10 is no longer a viable option, my unofficial rule will be "it runs Linux." Most people will not make this switch.

16
submitted 6 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 7 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.

[-] corroded@lemmy.world 155 points 9 months ago

The problem I have always had with voice control is that it just doesn't really seem to fit into my home automation. I don't want to give Home Assistant a verbal command to turn on the lights. I want it to detect that I've entered the room and set the lights to the appropriate scene automatically; I haven't touched a light switch in weeks. For selecting an album or movie to play, it's easier to use a menu on a screen than to try to explain it verbally.

Don't get me wrong. I'm hugely in favor of anything that runs locally instead of using the "cloud." I think that the majority of people running a home automation server want to tinker with it and streamline it to do things on its own. I want it to "read my mind." The people who just want a basic solution probably aren't going to set up HA.

Maybe I'm missing a use case for voice control?

[-] corroded@lemmy.world 159 points 10 months ago

If any appliance manufacturer says that accessing your own appliance (that you own) outside their software ecosystem is financially "damaging" to them, they might as well be saying "Hey, just so you know, we're collecting and selling your data." If you have already purchased the appliance and their software is free, there is absolutely no other way that using a 3rd-party application could damage their bottom line.

Thanks, Haier, for letting me know never to purchase your products.

[-] corroded@lemmy.world 224 points 1 year ago

It's hard for me to understand someone who would call the police on a kid mowing yards. You hear all these complaints from the older generation about kids these days not knowing the value of hard work or being too "soft" because they spend all their time in front of a screen. This is an example of a young person going out and offering useful manual labor to their neighbors in order to earn money for something they want. It's exactly how kids learn the value of hard work. Who could have a problem with this? I'm glad the police were willing to help him out, but I feel like at least one of his neighbors needs a slap to the face.

view more: next ›

corroded

joined 1 year ago