leisesprecher

joined 4 months ago
[–] leisesprecher 4 points 9 hours ago

No, because the out-group is always framed as inherently (genetically/culturally) bad. So they "deserve" or even "require" that treatment.

[–] leisesprecher 1 points 17 hours ago (1 children)

Because you don't know what you'll need that wrapper beforehand, that's my entire point.

Unless you're only doing trivial changes, the chances are very high that you won't be able to design the class structure. Or, you end up essentially writing the code to be able to write the tests, which kind of defeats the purpose.

[–] leisesprecher 1 points 20 hours ago (3 children)

If you have to ask "can't you just" the answer is almost always no.

[–] leisesprecher 1 points 1 day ago (1 children)

And who actually writes tests like that?

I mean, do you think tests do the calculations again? You simply have well defined input and known, static output. That's it.

[–] leisesprecher 2 points 1 day ago (5 children)

Tests first is only good in theory.

Unit tests typically test rather fine grained, but coming up with the structure of the grain is 80% of the work. Often enough you end up with code that's structured differently than initially thought, because it turns out that this one class needs to be wrapped, and this annotation doesn't play nice with the other one when used on the same class, etc etc.

[–] leisesprecher 3 points 1 day ago (11 children)

Especially then I'd test the shit out of everything? I'm getting paid for writing correct software.

[–] leisesprecher 4 points 1 day ago

For local development, it should be super quick. However, I'm currently building a small project where a device (or rather the library using it) can't really be used with a debugger. So 500 print()s it is.

[–] leisesprecher 4 points 2 days ago (1 children)

It's wild to me, that there seem to be so many payment schemes.

In Germany you get paid monthly, either always on the first or always 15th, but that's pretty much all variation we have. Even unemployment benefits and parental leave support is monthly.

[–] leisesprecher -5 points 2 days ago (1 children)

It's just a question of time. Every platform will devolve into either obscurity or cesspool.

[–] leisesprecher 4 points 2 days ago (1 children)

Learning from a history and putting on a pseudopatriotic show to paint over any responsibility is not quite the same.

The US killed literally one or two orders of magnitude more civilians in retaliation for 9/11 and still acts like it was the second largest tragedy in the history of mankind, only slightly below the Holocaust.

Yes, 3000 victims is really bad, but what the US is doing about it is pathetic. It's a simulacrum.

[–] leisesprecher 3 points 2 days ago

There's more airport security, alright. But is that really that much of a change?

Especially if you consider how much of the security theater was added well after 9/11, because of other incidents.

[–] leisesprecher 11 points 3 days ago (1 children)

Where exactly? It's pretty spot on.

 

I'm trying to get an old Windows game running for a friend.

It seems to be a 16bit macromedia app and I kind of got it running in a Win 98 VM using Virtualbox. DOSBox seems to get confused by it being a Windows app.

Thing is, the friend is very much not good with tech and I want to set everything up for him to "just work". Installing VBox might be a bit too much.

Apparently, you can install Windows inside DOSBox, but is that really stable and usable for layman? Are there any other approaches?

 

I have a small homelab running a few services, some written by myself for small tasks - so the load is basically just me a few times a day.

Now, I'm a Java developer during the day, so I'm relatively productive with it and used some of these apps as learning opportunities (balls to my own wall overengineering to try out a new framework or something).

Problem is, each app uses something like 200mb of memory while doing next to nothing. That seems excessive. Native images dropped that to ~70mb, but that needs a bunch of resources to build.

So my question is, what is you go-to for such cases?

My current candidates are Python/FastAPI, Rust and Elixir, but I'm open for anything at this point - even if it's just for learning new languages.

 

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 ›