In case it’s a genuine a question, there isn’t an opposite side to odd-sided dice. Had it been a d326 it would have been 326+1 in total, if it were a d328 it would be 328+1
Edit: For those interested it’s Van Gogh - The Scream.
Is this some Swedish psyop meant to trigger Norwegians? The Scream was painted by Edvard Munch.
You also didn’t link to the actual painting.
I don’t know how aging affects the LED power draw, according to the manufacturer I shouldn’t expect more than 7.5A. When measuring peak power output, I get only get ~6A total though.
4 pins are for earth with each (measured) having ~1.5A going through them at peak brightness. The fifth pin must bear the total load of the four other pins.
Having 5 pins is of course not a strict requirement, it’s just the LED strip that has 5 connections.
Edit: I should have clarified that the 4 pins “leading to earth” are connected to mosfets controlled by PWM signals, so they aren’t directly connected to earth. Each of the 4 pins carries a unique amount of current. Their total current is flowing through the fifth pin. Sorry for missing out on that detail in the original statement.
How accurate is this map? If the Irish call football soccer, it would be most shocking thing I’ve learnt in 2024.
I’d be interested in hearing the thoughts of some admins - would !football@lemmy.world be interested in moving to
!football@soccer.forum
, given the right organization?
I’m not the main mod of !football@lemmy.world so it’s really not my decision to make, but moving the community to a domain with the word soccer in it is a tough pill to swallow. As silly as it may sound, there’s a lot of people that don’t like having football referred to as soccer.
Moving away from lemmy.world and their annoying VPN restrictions would be nice though.
I don’t want to get into an Internet argument over pedantry. Linter is often used as a catch-all term for static analysis tools.
Wikipedia defines it as
Lint is the computer science term for a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs.
Catching type errors and attribute errors would fit under this description, if you use a different, more precise definition at your workplace, cool, then we just have different definitions for it. The point is that your IDE should automatically detect the errors regardless of what you call it.
OP suggested that linters for python won’t catch attribute errors, which they 100% will if you use type hints, as you should.
What happens at runtime is really relevant in this case.
class MyClass:
def __init__(self, x: int):
self.whatever: int = x
def foo(x: MyClass) -> int:
return x.whatevr
Any decent IDE would give you an error for unresolved attribute. Likewise it would warn you of type error if the type of x.whatever
didn’t match the return type of foo()
Looking For 2 More
Accurate?
The pommel is spiked to end your enemies extra righteously
The sea should be marked as C considering that’s what you’ll discover when you get deep into it.
The author pointed out how exceptions are often faster than checking every value. If your functions throws an error often enough that Exception handling noticeably slow down your program, surely you got to take a second look at what you’re doing.
They both have their place. I just recently discovered a bug in lemmy bot I wrote where the lemmy API module will raise an Exception if login fails (response status code != 200), which feels extremely out of place, as the error/status code do matter in that case.
Other times exceptions make more sense as Phillip pointed out.
It’s easier faster to ask for forgiveness than permission after all.
It’s a genuine concern though. If you want one centralised server hosting all the content, just use reddit.
There was/is a few communities that are just bots mirroring a similar community on reddit. No idea if those got canned though.
- The format works for both lossy and lossless compression, depending on the use case and need. Photographs can be encoded in a lossy way much more efficiently than JPEG and things like screenshots can be losslessly encoded more efficiently than PNG.
Someone made a fair point that having a format being both lossy and lossless is not necessarily a great idea. If you download a jpeg file you know it will be compressed, if you download png it will be lossless. Shifting through jxl files to check if it’s lossy or not doesn’t sound very fun.
All in all I’m a big supporter of jxl though, it’s one of the only github repos I actively follow.