• 14 Posts
  • 95 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle


  • Depending on how accurate you need your energy usage data to be for individual devices, you might be able to get away with just using a whole-house energy monitor. I’m using one of these:

    https://www.amazon.com/gp/product/B08LV8DDFP

    I already have a large number of Zigbee plugs, so by looking at the power usage from my energy meter before and after one switches, I can get a general estimate of how much power a device is using. Of course, the rest of your home is going to to skew the results, but you can mitigate this a bit with some of HA’s statistics functions. It’s been a while since I tried this, but I did test it with a 3.5kW heater a while ago. I took a median from a certain number of samples before and after the heater switched on (I think 10 seconds worth of samples), and the result was generally accurate to within about 100w.


  • In the US at least, most equipment (unless you get into high-and datacenter stuff) runs on 120V. We also use 240V power, but a 240V connection is actually two 120V phases 180-degrees out of sync. The main feed coming into your home is 240V, so your breaker panel splits the circuits evenly between the two phases. Running dual-phase power to a server rack is as simple as just running two 120V circuits from the panel.

    My rack only receives a single 120V circuit, but it’s backed up by a dual-conversion UPS and a generator on a transfer switch. That was enough for me. For redundancy, though, dual phases, each with its own UPS, and dual-PSU servers are hard ro beat.



  • Speaking from experience, be careful you don’t become over-zealous in your anti-scraping efforts.

    I often buy parts and equipment from a particular online supplier. I also use custom inventory software to catalog my parts. In the past, I could use cURL to pull from their website, and my software would parse the website and save part specifications to my local database.

    They have since enacted intense anti-scraping measures, to the point that cURL no longer works. I’ve had to resort to having the software launch Firefox to load the web page, then the software extracts the HTML from Firefox.

    I doubt that their goal was to block customers from accessing data for items they purchased, but that’s exactly what they did in my case. I’ve bought thousands of dollars of product from them in the past, but this was enough of a pain in the ass to make me consider switching to a supplier with a decent API or at least a less restrictive website.

    Simple rate limiting may have been a better choice.




  • corroded@lemmy.worldtoTechnology@lemmy.worldIs Microsoft trying to commit suicide?
    link
    fedilink
    English
    arrow-up
    201
    arrow-down
    8
    ·
    edit-2
    27 days 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.



  • I will resort to ChatGPT for coding help every so often. I’m a fairly experienced programmer, so my questions usually tend to be somewhat complex. I’ve found that’s it’s extremely useful for those problems that fall into the category of “I could solve this myself in 2 hours, or I could ask AI to solve it for me in seconds.” Usually, I’ll get a working solution, but almost every single time, it’s not a good solution. It provides a great starting-off point to write my own code.

    Some of the issues I’ve found (speaking as a C++ developer) are: Variables not declared “const,” extremely inefficient use of data structures, ignoring modern language features, ignoring parallelism, using an improper data type, etc.

    ChatGPT is great for generating ideas, but it’s going to be a while before it can actually replace a human developer. Producing code that works isn’t hard; producing code that’s good requires experience.


  • I’m old enough to remember the 9/11 attacks. It was never in question that Saudi Arabia was complicit in what happened. The majority of the terrorists were Saudi. It took a bit longer for the fact that the Saudi government was complicit to emerge, but we knew within a short time that at the very least, they provided financial support to the terrorists.

    The argument for starting the “war on terror” was that Al-Qaeda planned the attack, so we should attack the countries that harbor them. At the time, the majority of the country supported this; I remember George Bush Jr.'s approval ratings being in the 90s for a short time. Even then, most of us knew that Saudi Arabia was at least complicit in what happened. The lust for revenge, as much as it was justified, made people forget that.

    Over the last 23 years, I feel like a lot of Americans have forgotten the role that Saudi Arabia played in the events of 9/11; after all, they’re our “ally,” right? I have always been on the fence regarding whether or not invading Iraq and Afghanistan was a good idea. Back in 2001, though, I felt like invading Saudi Arabia was a great idea. 23 years later, I don’t feel any different. Should the United States have attacked Iraq and Afghanistan, I’d say “probably”; should we have attacked Saudi Arabia? Absolutely. Yet it never happened.





  • I really think this depends largely on who you are and what you do with your phone. I have face recognition and fingerprint recognition both enabled on my phone. It’s good enough to prevent a thief from gaining access to my device, and if law enforcement asked, there’s nothing on my phone that could possibly be incriminating. Realistically, I’d have no issue just unlocking my phone and giving it to a police officer, although I do know well enough to always get a lawyer first. Biometrics add an extra layer of convenience; it’s nice to just look at my phone and it unlocks. My concern personally is more about someone stealing my phone and accessing my accounts than self-incrimination.

    If I ever was going to put myself in a situation where I’d run afoul of the authorities, I’d leave my phone at home anyway.


  • This is certainly good news, and I don’t intend to detract from it.

    That being said, my opinion as an American is that the kind of missiles we need to be sending to Ukraine are the nuclear kind. The Russian government has said that they will use nuclear weapons in the event that the existence of their country is threatened. Fine, I understand that. Ukraine needs to have the same leverage. The existence of their country as they know it is being threatened; it would certainly turn the tables for them to say “Yes, we have nuclear weapons, and we’ll only use them if our continued existence is being threatened. By the way, you’re threatening it; you should really stop.”



  • I have heard the same thing about ACs, but I think it depends on the unit. The window units that I use have a switch on the front that literally just turns them off; there’s no delay time for the compressor. It’s the same as pulling the plug.

    I’ve used single and dual-hose portable ACs in the past, and I only have dual-hose units now. This is purely anecdotal, but when I had single-hose units, they would maintain the temperature throughout the day as it warmed up, but they didn’t do a great job of cooling. A dual-hose AC with a similar capacity was actually able to lower the temperature.



  • I did some research on this, and it turns out you’re absolutely correct. I was under the impression that ECC was a requirement for a ZFS cache. It does seem like ECC is highly recommended for ZFS, though, due to the large amount of data it Storrs in memory. I’m not sure I’d feel comfortable using non-ECC memory for ZFS, but it is possible.

    Anecdotally, I did have one of my memory modules fail in my TrueNAS server. It detected this, corrected itself, and sent me a warning. I don’t know if this would have worked had I been using non-ECC memory.