leisesprecher

joined 1 month ago
[–] [email protected] -2 points 3 days ago (2 children)

https://en.m.wikipedia.org/wiki/List_of_countries_by_life_expectancy

Nope, 65th place, slightly behind the US and the country of old men: Albania.

[–] [email protected] 18 points 3 days ago (4 children)

And a whole lot of content that I frankly would have preferred not to have seen.

When you're 12 and your parents have no idea what you're doing, you'll end up in very dark corners.

[–] [email protected] -5 points 3 days ago (7 children)

It's the same in China.

[–] [email protected] 12 points 1 week ago (3 children)

What's really baffling to me is how completely irrelevant most ads are to me.

And I'm not saying "ads don't work for me", I get ads for products that I will never buy. I'm a man and YouTube recommends me tampons, lipstick and perfume. I also won't buy a car anytime soon, yet I get tons of ads for cars.

Even in the mindset of an ad person, that can't make sense. Sure, there is the off chance that I'll buy lipstick for my girlfriend, but how likely is that and how much revenue will materialize from bombarding thousands of men with ads? That cannot be economically viable.

The actually infuriating part is, that we're still paying for it. And the vendors as well. Only Google profits. If a company spends more on ads than necessary, their products will get more expensive, and those who buy their products will have to pay for it. So essentially I'm paying money for being advertised to, so Google can rake in billions.

[–] [email protected] 10 points 1 week ago (2 children)

Had to work with a fixed string format years ago. Absolute hell.

Something like 200 variables, all encoded in fixed length strings concatenated together. The output was the same.

...and some genius before me used + instead of stringbuilders or anything dignified, so it ran about as good as lt. Dan.

[–] [email protected] 11 points 1 week ago (2 children)

And there are some truly magic tools.

XSDs are far from perfect, but waaay more powerful than json schema.

XSLT has its problems, but completely transforming a document to a completely different structure with just a bit of text is awesome. I had to rewrite a relatively simple XSLT in Java and it was something like 10 times more lines.

[–] [email protected] 1 points 1 week ago

The long-term goal is for Rust to overtake C in the kernel (from what I understand

Your understanding wrong. Rust is limited to some very specific niches within the kernel and will likely not spread out anytime soon.

critical code gets left untouched (a lot of the time) because no one wants to be the one that breaks shit

The entire kernel is "critical". The entire kernel runs - kind of by definition - in kernel space. Every bug there has the potential for privilege escalation or faults - theoretically even hardware damage. So following your advice, nobody should every touch the kernel at all.

[–] [email protected] 100 points 1 week ago (2 children)

Germany has a Sovereign Tech Fund for exactly this, and while it's not perfect, it's one of the better uses of my tax euros.

[–] [email protected] 18 points 1 week ago (2 children)

Replacing C with Rust in the upstream kernel is akin to replacing the engine in a car while it's running or being used every day.

That's in no way what's been proposed. Rust is used in a very well defined niche, nobody wants to get rid of C.

But it's just that sentiment that got us here, you're arguing against a non-existent threat, and thus reject the whole proposal.

[–] [email protected] 25 points 1 week ago

And it's a bad argument anyway. You're only good at memory management until the first bug takes down production.

Rust isn't a panacea and certainly has problems, but eliminating an entire class of potentially very dangerous bugs is a very good argument.

[–] [email protected] 12 points 2 weeks ago (1 children)

And DBAs. I'm currently working on a project where I said from the very start, I can set up this DB in k8s and I can get it to work decently, but I have neither the knowledge nor the time to get it right. Please give me someone who knows how this works.

No, don't worry, it'll be fine, we don't need that, this kuverneles thing I keep hearing about handles that!!!

Six months of hard contact with the enemy on production later:

Well, we're currently looking for someone who actually knows how DBs work, because we have one of those issues that would cost a proper DBA 5min and me 5 months.

[–] [email protected] 9 points 2 weeks ago

To be fair, a lot of roles simply disappeared over the years.

Developers today are much more productive than 30 years ago, mostly because someone automated the boring parts away.

A modern developer can spin up a simple crud app including infrastructure in a day or so. That's much much more productive than 1995. We just cram a lot more of the world into software, so we need 20x the amount of developers we needed back then.

 

I asked a while ago, how to build an automatic light switch and finally got around to actually building it.

My board is an ESP8266 mini D, and ignoring all the sensor parts, my problem right now is powering the actual light.

It's just a small LED array and I connected it directly to the 5V and GND pins (controlled via a transistor).

Measuring from the wall (so including the PSU), this whole setup pulls about 3W (so far expected), however, one small component close to the USB connector gets uncomfortably warm, and I'm not sure, whether that's ok.

The hot component is one of the two small thingies circled in the picture. I thought the 5V get pulled directly from the USB plug, so I'm not sure, why there is any circuitry involved.

 

I'm trying to build a very simple, stupid light switch for my grow light. Essentially, I want to turn on the light, if it gets too dark outside, so that my plants can survive the northern winter.

Since I'm a software guy, my first thought was an ESP32, but that seems excessive.

My current approach would be something like this: https://www.ebay.com/itm/313561010352 In conjunction with a relay, both powered by a USB-PSU.

If the light level is low enough, the logic DO pin should send a signal and that should be enough to trigger a small relay, so that the relay then closes the circuit to switch on the lights.

Is that idea completely stupid? With electronics, I'm usually missing something very obvious.

The lights themselves are already just usb powered and only draw 5W, so that shouldn't be problem.

What I'm concerned with is the actual switching. Is the logic signal "strong" enough to activate a relay? Would simple transistor maybe sufficient?

view more: next ›