I'm using contabo and the VPS I got is advertised as 1 Gigabit. When I do a speedtest or use iperf3
to connect to public servers I get pretty close to 1 Gigabit. But from my residential IP the speed drops down to 100-250 Mbit/s. My home internet connection can handle 500 Mbit just fine.
I'm looking for a new hoster with a better network connection. What real world speeds do you get with your server?
What's your opinion on hydro modding? I just picked up some silicone oil (slightly more viscous than commonly recommended, but I think it will be fine) to hydro mod my casio digital watches (F91W, A168WA).
Frage an Elektriker: Ich habe einen Ofen gebraucht gekauft und nach einmaliger Nutzung ist er defekt. Der Ofen wurde falsch angeschlossen. Es wurden 230V angeschlossen, aber die Brücken haben gefehlt. Eigentlich hätten sie an die grünen Stellen gemusst. Die durchgestrichenen Leitungen sind nicht angeschlossen.
Nun ist der Ofen defekt als wäre kein Strom angeschlossen. Es tut sich absolut gar nichts. Meine Frage: Wenn man den Ofen so anschließt, ist es dann zu erwarten, dass er nach einmaliger Nutzung kaputt geht, oder sollte der Ofen so eigentlich mit geminderter Leistung laufen. Ein Mitarbeiter eines unabhängigen Miele Reparatur-Service meinte zu mir, dass mein Defekt vermutlich nichts mit meinem falschen Anschluss zu tun hat. Ist die Aussage so korrekt? Kann ich davon ausgehen, dass der Defekt nicht meine Schuld war?
I often find myself defining function args with list[SomeClass]
type and think "do I really care that it's a list
? No, tuple
or Generator
is fine, too". I then tend to use Iterable[SomeClass]
or Collection[SomeClass]
. But when it comes to str
, I really don't like that solution, because if you have this function:
def foo(bar: Collection[str]) -> None:
pass
Then calling foo("hello")
is fine, too, because "hello" is a collection of strings with length 1, which would not be fine if I just used list[str]
in the first place.
What would you do in a situation like this?
I'm currently using a VPS from contabo and am curious if I would get better performance CPU and disk I/O wise because of the dedicated resources. The bigger VPS from contabo seem to be in a similar ballpark to the cheapest options available in the hetzner server auction when it comes to corecount, ram and disk size and price.
Ihr wisst schon: Bootloader kaputt, fstab kaputt gespielt, GUI will nicht mehr. Passiert hin und wieder mal und dann hilft es ein Live Linux zur Hand zu haben. Was nutzt ihr? Einfach Ubuntu? Oder irgendwas spezielles?
I'm new to the container world. Does it have any security benefits when I run my applications as a non-root user in a docker container? And how about Podman? There I'll run the container as an unprivileged user anyway. Would changing the user in the container achieve anything?
I'm talking about stuff like this: [file.unlink() for file in files]
instead of the more verbose but maybe easier to grasp for python noobs:
for file in files:
file.unlink()
Maybe with a bit more context:
def _cleanup(self) -> None:
dirs, files = partition(lambda f: f.is_file(), self._tmp_dir.rglob("*"))
[file.unlink() for file in files]
[dir.rmdir() for dir in dirs]
self._tmp_dir.rmdir()
@wasabi
@feddit.de