@uint8_t@chaos.social
@uint8_t@chaos.social avatar

uint8_t

@uint8_t@chaos.social

this field left blank intentionally

This profile is from a federated server and may be incomplete. Browse more on the original instance.

sophie, to random German
@sophie@chaos.social avatar

Früher sahen Bilder am Fernseher shitty aus, weil Overscan was weggeschnitten hat und Reflexionen im Kabel das Bild verwaschen gemacht haben. Heute sieht's shitty aus, weil HDMI Kabel abgeschafft wurden, Screen Sharing durch $videokonferenz nur 720p 5fps kann sowie die hälfte vom Bildschirm von Videokonferenzkontrollwerkzeugen eingenommen werden.

uint8_t,
@uint8_t@chaos.social avatar

@june @sophie a blackwire 3220 is basically all you need for calls

m_berberich, to random German
@m_berberich@chaos.social avatar
uint8_t,
@uint8_t@chaos.social avatar

@kubikpixel @m_berberich ja die Geschichte liest sich extrem nach Rassismus

gsuberland, to random
@gsuberland@chaos.social avatar

interesting thing of note: if you're looking to buy a GaN USB-C charger above 75W, compare the price-per-watt to a few 65W ones.

chargers above 75W are required to have an active PFC stage, typically requiring four more transistors and a fancier controller, which adds cost, so you can often tell if they're penny-pinching on the design if the price-per-watt is close to that of a 65W one. you should expect to see at least a 20% price-per-watt jump if they're doing it right.

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland that’s assuming the price correlates to BOM cost, which might be true in this case (idk), but not something that generally applies in capitalist market economy

scy, to random German
@scy@chaos.social avatar

"Bin ich eigentlich ein Optimist oder ein Pessimist?"
"Hm. Schwierig. Ich würde sagen, du bist ein Pessimist, aber du hoffst trotzdem immer."

uint8_t,
@uint8_t@chaos.social avatar

@scy same,,

gsuberland, to random
@gsuberland@chaos.social avatar

my favourite detail about today is that a geomagnetic storm of this magnitude induces currents exceeding 200A through metal pipelines. hope those earth stakes are beefy enough!

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland now I want to grab an AC+DC clamp current meter and look at lightning rods and earthing cables. It works even by daylight (:

tthbaltazar, to random
@tthbaltazar@chaos.social avatar

please install adobe flash to view this toot

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland @tthbaltazar what is that, never heard of it

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland @tthbaltazar (yes that was the joke)

scy, to python
@scy@chaos.social avatar

Imports in Python can be confusing.

I just saw someone ask "why do I have to prepend a dot to import a file in the same directory?"

That depends on whether the file with the import statement is in a package or not.

But, whether Python considers it to be in a package depends on how you imported (or ran) that file. You can't determine it from the file's content or the filesystem structure!

Check alt text (image description) for explanations of the examples.

Running four commands from the parent directory. "python3 mypkg/abs_import.py" prints "in pkg", because Python found mymod.py in the same directory as the file it has been asked to run. That's because sys.path (which is used to define search order for modules) is initialized like this (quoting from the docs): "The first entry in the module search path is the directory that contains the input script, if there is one. Otherwise, the first entry is the current directory, which is the case when executing the interactive shell, a -c command, or -m module." "python3 mypkg/rel_import.py" throws an ImportError: "attempted relative import with no known parent package". Just because you're running a file in a subdirectory doesn't make this directory a package. "python3 -m mypkg.rel_import" prints "in pkg", because Python is now interpreting mypkg as a package name, has found the rel_import module in that package, and is able to do relative imports from there. "python3 -m mypkg.abs_import" prints "top level". Remember the documentation from above: If there is no input script (and there isn't, we're asking Python to resolve and run a module instead), sys.path will first look in the current directory, i.e. the one containing the mypkg package, because that's the one we're currently in.
We now change into the mypkg directory with a "cd" command. "python3 abs_import.py" prints "in pkg", because Python is going to look for "mymod" in the directory containing the input script (which happens to be the current directory, but that's not relevant). "python3 rel_import.py" throws an ImportError "attempted relative import with no known parent package" again. Understandably, because Python has no way of knowing that the directory we're currently in can be interpreted as a package. "python3 -m abs_import" prints "in pkg", because sys.path first looks for mymod the current directory. "python3 -m rel_import" raises an ImportError "attempted relative import with no known parent package" again. That's because, in contrast to what we did in the last example in the previous screenshot, we're now just using "rel_import" as the module name we're asking Python to run, without the "mypkg" prefix. Adding the prefix wouldn't work, because our current directory is already inside the mypkg package and Python (correctly) wouldn't find another "mypkg" directory in it. But without the prefix, Python doesn't know that the "rel_import" module resides in a package at all.
We now move into the parent directory again ("cd ..") and delete the top-level mymod.py file. Then, we attempt the examples from the second image again. "python3 mypkg/abs_import.py" prints "in pkg" as before, because Python found mymod.py in the same directory as the file it has been asked to run. "python3 mypkg/rel_import.py" throws an ImportError: "attempted relative import with no known parent package", just like before, because it interprets the file path as a script to run, not as a module in a package. "python3 -m mypkg.rel_import" prints "in pkg", just like before, because Python is interpreting mypkg as a package name, has found the rel_import module in that package, and is able to do relative imports from there. "python3 -m mypkg.abs_import" throws a ModuleNotFoundError "no module named 'mymod'. Before, it printed "top level", but now we have deleted the top-level mymod.py file that it was importing.

uint8_t,
@uint8_t@chaos.social avatar

@scy then import system is honestly the most confusing and worst part of Python

I dread it every time even tho I love using Python, and I’m doing it daily

gsuberland, to random
@gsuberland@chaos.social avatar

protip: make sure to turn down your weird in public places, so you don't accidentally say "my facehole demands salad" to a waiter

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland I wish people would say more weird in public places

oct2pus, to random
@oct2pus@jade.moe avatar

Readjusting our education system so we start counting from zero

uint8_t,
@uint8_t@chaos.social avatar

@oct2pus we already start counting from zero!!

jacqueline, to random
@jacqueline@chaos.social avatar
uint8_t,
@uint8_t@chaos.social avatar

@jaseg @jacqueline probably still cheaper than a q-switched fiber laser

scy, to random
@scy@chaos.social avatar

I'm a Star Trek fan, but voice interfaces for everything ("Computer, raise shields!") are a mistake.

Instead, can we please focus on technology like in The Expanse, where you can flick a file from your phone into the general direction of a wall-mounted screen and it will instantly be displayed there?

uint8_t,
@uint8_t@chaos.social avatar

@scy fun fact, for The Expanse, they hired actual UX designers to come up with the computer interfaces, and the actors are interacting with that for real

AnarchoCatgirlism, to MemeryAlpha
uint8_t,
@uint8_t@chaos.social avatar

@n3wjack @AnarchoCatgirlism some things even more than once

uint8_t,
@uint8_t@chaos.social avatar

@n3wjack @AnarchoCatgirlism I’m unsure about Francium

gsuberland, to random
@gsuberland@chaos.social avatar

PSA: many USB UART adapter boards and cables tend to fail because they're literally just an FT2232 (legit or clone) or CH340 chip under the hood with the pins broken out to a header. this is true of the cheap AliExpress ones and most branded options too.

they have almost no protection against ESD, overcurrent (e.g. TX short to GND), overvoltage, or ground loop issues. they're non-isolated so ground voltage deltas can mess them up too.

look for an isolated model for higher reliability:

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland have you tried to determine the maximum usable throughput in loopback mode? I’d expect the optos to add some delay and slow down rise time

scy, (edited ) to random German
@scy@chaos.social avatar

Wenn ihr die Formulierung "am frühen Abend" verwendet, dann endet dieser Zeitraum spätestens wann?

Wenn vor 18:00, dann bitte mit "18:00" abstimmen, könnt auch gern kommentieren.

Wenn nach 22:00, bitte kommentieren.

Wenn irgendwo dazwischen, nehmt einfach das, was am nächsten dran ist, oder den späteren Zeitpunkt.

uint8_t,
@uint8_t@chaos.social avatar

@scy es ist unterschiedlich zwischen Winter und Sommer!

mcc, to random
@mcc@mastodon.social avatar

Sun's dented

uint8_t,
@uint8_t@chaos.social avatar

@mcc wha

uint8_t, to random
@uint8_t@chaos.social avatar

What a week!

uint8_t,
@uint8_t@chaos.social avatar

@Emil inb4 oceangoing nuclear powered tugboats replacing HFO-guzzling container ships

ColinTheMathmo, to random
@ColinTheMathmo@mathstodon.xyz avatar

Allegedly ...

AirB&B bookings in the US on April 7th

(Seen on x.com)

uint8_t,
@uint8_t@chaos.social avatar

@ColinTheMathmo Netbeans is better!!

uint8_t,
@uint8_t@chaos.social avatar

@ColinTheMathmo I thought everyone wanted Eclipse

stfn, to Trains
@stfn@fosstodon.org avatar

You know what is also cool about #trains? Their longevity! This is PKP SM42, designed in the 60s, this one probably built in the 70s-80s, and after modernization, it's still working. What car built in the 70s would still do its job today?

uint8_t,
@uint8_t@chaos.social avatar

@stfn Theseus’ shunting loco

alinanorakari, to random
@alinanorakari@broken.graphics avatar

What if I misused 20 not entirely working character displays to make a wall clock by strategically placing the non-working parts in areas where it's Ok for them to be broken? Make it glitchy on purpose ... leverage some of my graphic design and ascii-art skills maybe? Could that be anything?

uint8_t,
@uint8_t@chaos.social avatar

@alinanorakari I think these days aliex already pays the MwSt on the items automatically

gsuberland, to random
@gsuberland@chaos.social avatar

swallowing a bunch of MLCCs in the hopes it'll reduce the noise in my brain

uint8_t,
@uint8_t@chaos.social avatar

@gsuberland oh no, the microphonics!!

blinry, to random
@blinry@chaos.social avatar

My Framework laptop is here! ✨ It's a modular, repairable laptop that I've been hearing really good things about!

This is the "DIY edition", so let's assemble all the pieces together!

uint8_t,
@uint8_t@chaos.social avatar

@blinry oh my!! They use torx 💜
No more stripped screws

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • Durango
  • Youngstown
  • everett
  • slotface
  • rosin
  • cubers
  • mdbf
  • ngwrru68w68
  • anitta
  • GTA5RPClips
  • cisconetworking
  • osvaldo12
  • ethstaker
  • Leos
  • khanakhh
  • normalnudes
  • tester
  • modclub
  • tacticalgear
  • megavids
  • provamag3
  • lostlight
  • All magazines