1
23
hank_and_deans

@lemmy.ca

hank_and_deans 30 points 3 years ago

Here is an excerpt of the table of contents for the book "Linux Application Development":

  • Process Primitives
    • Having Children
    • Watching Your Children Die
    • Running New Programs
    • A Bit of History: vfork()
    • Killing Yourself
    • Killing Others
    • Dumping Core
  • Simple Children
    • Running and Waiting with system()
    • Reading or Writing from a Process

It's actually quite a good book.

path: 0 6470486, hotness: undefined, score: 30, children: 0
hank_and_deans 30 points 8 months ago

I was buying a receiver and speakers in 2020 and when it came time to pick out speaker wire, the salesperson walked over to where the wire was and began the pitch...

Salesperson: so when the frequencies are higher the electrons end up traveling only on the outer layer of the wire instead of in the middle...

Me: yeah, skin effect, I did electrical engineering

Salesperson: ah, so I guess you know you don't need this then (pointing to gimmicky monster speaker cable that had a single strand of wire in a spiral around the main bundle with a clear jacket so you can see it)

Me: correct (grabs the cheapest 16awg)

path: 0 22146457 22148377, hotness: undefined, score: 30, children: 0
hank_and_deans 16 points 2 years ago

As other people have mentioned, this can be a hard problem.

However, malls are typically surrounded by massive amounts of space used for parking. There is a plan for the largest mall in my region to convert all of that land into residential spaces, 2000 apartments. The parking will be moving underground.

Seems like a decent idea to me.

path: 0 11438971, hotness: undefined, score: 16, children: 3
hank_and_deans 15 points 3 years ago

Story time. Apologies for the length, but consider it a cautionary tale.

I have my own email server. I have been hosting my own email since around 2001. It used to be hosted on a box in my house, which was fine since I had a "business" plan from the cable provider giving me a /29 and no port blocking.

One summer, I moved from a 1 bedroom apartment to a 2 bedroom. Awesome, now I have a room dedicated to computer stuff instead of having it in the living room.

Just after moving I went on a 2 week vacation. About 2 days in I was no longer able to access my email server. Could not ping the ip or anything. I had someone go to the apartment to check the console. Nothing wrong, just no internet access. Hmmm. Maybe my router is broken. I wasn't going to subject the person looking at it to debugging it, so I figured I would deal with it when I got back.

Aside: my domain is hosted at EasyDNS, which has a "backup MX" service. If my mail server ever went offline, they would hold emails for up to 9 days and flush them into the real one once it came online. Since I would be away for longer, mails would start bouncing back to the original hosts. I contacted their support to see what they could do. The owner of the company even jumped in and they were able to redirect all of the past and future emails on their MX cache to my work email until I could resolve the problem. Brilliant. I remain a customer for life.

Anyway, when I got back I found that the problem was not with the router but the cable company. As it turns out whoever was in the apartment before I moved in didn't pay one or more bills. A disconnect got scheduled despite the fact that a business account had moved there. The departments don't talk to each other it seems. I got a partial refund but I immediately realised i could no longer host email at home.

I found a hosting company offering Xen paravirt VPSes here in Canada. They did not offer the distro I wanted so I contacted them and mentioned I can provide the image. They were happy to let me do it. In fact, they had other requests from other potential customers and asked if I could handle them. Long story short I now own half the company. The VPSes, no longer Xen, are all highly available thanks to Ceph and Pacemaker, and my mail server continues to run without any real interruptions.

All of that said, I do self host certain things. Anything used at home including home assistant, static websites, etc. are all running off my 5-node home cluster running the same stack. My current connection is generally quite reliable, since it's fiber from the local telco, and I have bypassed their awful CPE. I also have a variety of VPSes around for multiple reasons, such as backup, DNS, routing IPv6 for my personal AS, etc.

The moral of this story, of course, is that you should assess how important whatever you are hosting. Do you want it to run when you are not able to get to your house? How much do you trust your internet provider? Also, how much do you trust your VPS provider?

path: 0 897834, hotness: undefined, score: 15, children: 0
hank_and_deans 7 points 3 years ago

Yes. I have a personal app that I made many years ago and used on my Pixel 4 and 6. It would not work on my 8 until I updated the sdk version and some of the tooling.

path: 0 4551604 4552866 4552957 4556935 4559421, hotness: undefined, score: 7, children: 0
hank_and_deans 7 points 8 months ago

Not true. Corruption happens in digital signals quite often. The effects are different of course: packet loss, garbled audio, the green dots the poster you replied to described. I have seen it all.

If it "worked or not" we wouldn't need things like checksums or error correction.

Source: did electrical engineering, then 25 years in networking.

path: 0 22146968 22147358 22147452 22148003 22148295, hotness: undefined, score: 7, children: 0
hank_and_deans 5 points 3 years ago

Borgbackup, using borgmatic as a frontend, to a storage VPS. I backup dozens of machines this way. I simply add a user account for each machine on the VPS, then each machine backs up over ssh to its own account.

path: 0 822677, hotness: undefined, score: 5, children: 0
hank_and_deans 5 points 2 years ago

I have dealt with a lot of units over the years, both consumer and professional. I have had more non-battery issues with APC ones than the Cyberpower ones, especially with the rack mount units.

For batteries they all have a lifetime, so I don't trash a brand simply because the battery dies. That will happen to any UPS battery. However it is well known that APC floats the batteries too high resulting in slightly more runtime at the expense of battery longevity. I have replaced more APC batteries as a result.

All of that said, at the consumer level I just tell people to go buy whichever one is on sale at that moment since at least one of them usually is.

path: 0 13878111 13882240, hotness: undefined, score: 5, children: 2
hank_and_deans 4 points 3 years ago

I use Home Assistant for that. It ties everything together quite nicely.

Also, a lot of the generic devices are really Tuya devices and can be controlled using a single instance of Tuya Smart Life.

path: 0 800307 800984, hotness: undefined, score: 4, children: 3
hank_and_deans 3 points 3 years ago

Pixel 8 pro here. I haven't seen it either.

path: 0 7218100 7221140 7222104 7223860 7227714, hotness: undefined, score: 3, children: 1
hank_and_deans 3 points 2 years ago

I recite IPv6 addresses on my company networks from memory all the time. It helps that we got a bit lucky on our allocation. There are no letters.

Plus it's really easy to number subnets in a way that makes sense.

path: 0 10800226 10811279, hotness: undefined, score: 3, children: 0
hank_and_deans 3 points 2 years ago

I did it by acquiring my own AS number and prefix, allowing me to set the geofeed, and announcing it via public BGP from a box in a data center. Took a few days for most things to pick it up the geolocation.

path: 0 10801603 10802328 10802495 10803638 10810854, hotness: undefined, score: 3, children: 1
hank_and_deans 2 points 3 years ago

What the hell are you even talking about? I literally lived in rural BC where lots of people would go to enjoy outdoor recreation. I did just fine with a non-Tesla EV, and I was not the only one. The chargers in town got lots of use.

path: 0 2824523 2825008 2828823 2832814 2833573 2842173 2842232 2843128, hotness: undefined, score: 2, children: 0
hank_and_deans 2 points a year ago

I was paying $385 per month in gas for an Astra hatchback, which is not exactly a gas guzzler, though I did live in the mountains at the time.

I replaced it with a Bolt EV and the hit to my electric bill was about $50 with the same commute.

path: 0 18992792 18998856, hotness: undefined, score: 2, children: 0
hank_and_deans 2 points a year ago

I have one of those Bolts.

Not only was the battery replaced, the 8 year warranty on it was reset. Also, the idea that EV batteries die after a couple of years like in phones was unfounded. The batteries in EVs are actually properly temperature regulated unlike the ones in mobile phones. The primary degradation in an EV battery happens when the battery is new and stays basically flat for the rest of its life.

EVs have been on the road long enough for studies to determine that most batteries will last at least as long as most people will own the car.

path: 0 18926130 18928721 18929399 18930020 18937522 18983640 18984726 18994977 18999006, hotness: undefined, score: 2, children: 2
hank_and_deans 2 points a year ago path: 0 18926130 18928721 18929399 18930020 18937522 18983640 18984726 18994977 18999006 18999876 19000352, hotness: undefined, score: 2, children: 0
hank_and_deans 2 points 3 years ago

Just because you have a job doesn't mean you are good at it.

I have an an electric car that has a 66kwh battery and I track everything. It's not even in the top 3 categories of usage in my house. It only runs a few hours when I plug it in, which is 1 or 2 times a week. It also only charges at night, because the car has this super advanced technology where it can tell what time it is.

Every time these stories come out all of you people come out of the woodwork with your "the grid can't handle it" bullshit, but it seems you all haven't got the slightest fucking clue or are just being disingenuous. All you do is regurgitate long debunked Facebook myths and repeat them for every new story that mentions EVs in any way hoping to convince some more suckers.

The power company in my region is literally telling people in advertisements they should install heat pumps and buy EVs. Why the fuck would they do that if it would collapse their infrastructure?

path: 0 3525380 3525450 3526683 3527347 3543774 3553881 3556368 3558317 3568014, hotness: undefined, score: 2, children: 0
hank_and_deans 2 points 3 years ago

Which is Natureworks PLA. I suspect a number of the types listed in this thread is as well. Eureka is nice in that they list exactly which source material it is right on the spool. Plus they use cardboard spools with the empty spool weight listed. Brilliant.

path: 0 3925849 3954960, hotness: undefined, score: 2, children: 0
hank_and_deans 2 points a year ago

Or just use Nginx stream proxy, and all the encryption happens on the endpoints. No need for certs on the proxy at all.

This is how I make https and mqtts available on ipv4.

path: 0 17535843 17535979 17537440 17538980 17542073, hotness: undefined, score: 2, children: 4
hank_and_deans 1 point 3 years ago

This is likely the issue. Both of those woods are famously incompatible with normal stains. Gel stains are what most people recommend for those woods. I have also had decent luck with Saman stains with the right preparation and great results with Omnia natural oil.

path: 0 4248966 4262226 4267000 4267185 4276129 4309663 4313643, hotness: undefined, score: 1, children: 1

thanks for using Leebra!

go to feed...