13
submitted 3 months ago by wasabi@feddit.de to c/selfhosted@lemmy.world

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?

4
submitted 3 months ago* (last edited 3 months ago) by wasabi@feddit.de to c/music@beehaw.org

I just listened to Tatsuro Yamashita's City Pop classic "SPACY" and at the end of the Track "Umbrella" (at 3:22) I heard a snippet that sounded incredibly familiar. That guitar slide with the harmonics.

Some other track must have sampled it, but I can't put my finger on it. I think that the sample was used at the start of the track and that the track had a mostly ambient vibe. Does anyone know who sampled this?

8
submitted 4 months ago by wasabi@feddit.de to c/watches@lemmy.ml

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).

11
submitted 4 months ago by wasabi@feddit.de to c/fragfeddit@feddit.de

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?

[-] wasabi@feddit.de 18 points 4 months ago

python -m http.server came in handy so many times!

23
submitted 5 months ago* (last edited 5 months ago) by wasabi@feddit.de to c/python@programming.dev

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?

19
submitted 5 months ago by wasabi@feddit.de to c/selfhosted@lemmy.world

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.

[-] wasabi@feddit.de 30 points 7 months ago

Was ist das für ne Visualisierung? Es sieht so aus als hätte Hasseröder 4x so viel wie Augustiner aber es sind eher ~60x...

24
submitted 7 months ago by wasabi@feddit.de to c/selfhosted@lemmy.world

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?

2
submitted 8 months ago by wasabi@feddit.de to c/tea@lemmy.zip

It was sold to me as a 2011 gushu sheng puerh. Would be grateful for any further information. It's around 80g without the box and heavily compressed. I haven't unwrapped it yet.

IMG_20231031_212938_522

IMG_20231031_212943_126

[-] wasabi@feddit.de 16 points 8 months ago

It's a bit trickier since that is a neovim plugin so a bunch of people will automatically have updated to this tag using their plugin manager. Removing it will probably just make it worse.

[-] wasabi@feddit.de 22 points 8 months ago

I assume the accident was not to force push, but to the wrong branch

297
submitted 8 months ago by wasabi@feddit.de to c/programmerhumor@lemmy.ml
[-] wasabi@feddit.de 56 points 8 months ago

What a terrible visualization

1
submitted 8 months ago* (last edited 8 months ago) by wasabi@feddit.de to c/python@programming.dev

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()
5
submitted 9 months ago by wasabi@feddit.de to c/neovim@sopuli.xyz

Sometimes when I am using goto definition I get errors like this one

E5108: Error executing lua: ...t_nvimeitLsr/usr/share/nvim/runtime/lua/vim/lsp/util.lua:1964: Invalid window id: 1000
stack traceback:
	[C]: in function 'nvim_win_get_buf'
	...t_nvimeitLsr/usr/share/nvim/runtime/lua/vim/lsp/util.lua:1964: in function 'make_position_params'
	...nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:147: in function 'v'
	...nvim/lazy/telescope.nvim/lua/telescope/builtin/__lsp.lua:391: in function 'v'
	.../nvim/lazy/telescope.nvim/lua/telescope/builtin/init.lua:541: in function 'lsp_definitions'
	/home/user/.config/nvim/lua/user/plugins/ide/lspconfig.lua:80: in function 

What could be the cause of an error like this? Whenever this happens I have to restart nvim.

the config in lspconfig.lua:79 looks like this:

        opts.desc = "LSP: Jump to definition of symbol"
        keymap.set("n", "gd", function()
          telescope.lsp_definitions(ivy)
        end, opts)

Any ideas?

[-] wasabi@feddit.de 25 points 9 months ago

Has this really happened?

21
submitted 9 months ago* (last edited 9 months ago) by wasabi@feddit.de to c/python@programming.dev

I have seen some people prefer to create a list of strings by using thing = list[str]() instead of thing: list[str] = []. I think it looks kinda weird, but maybe that's just because I have never seen that syntax before. Does that have any downsides?

It is also possible to use this for dicts: thing = dict[str, SomeClass](). Looks equally weird to me. Is that widely used? Would you use it? Would you point it out in a code review?

[-] wasabi@feddit.de 32 points 10 months ago

5 new tracks and the rest is live versions

[-] wasabi@feddit.de 59 points 10 months ago

Du willst wissen, warum ich den Gewürzspekulatius liebe? Der Gewürzspekulatius ist ein vollständig gewürzter Spekulatius. So viele andere Spekulatiusse basieren auf langweiliger Butter oder Mandeln. Nicht der Gewürzspekulatius. Der Gewürzspekulatius ist komplett gewürzt. Er ist eine gewürzter Spekulatius in brauner Farbe und eine willkürliche Methode, den Winter zu feiern. Die erste Person, die den Gewürzspekulatius aß, tat dies nicht, weil sie ihn wiedererkannte. Die erste Person, die den Gewürzspekulatius aß, tat dies nicht wegen eines bereits existierenden Spekulatius-Formats. Die erste Person, die den Gewürzspekulatius aß, aß einen Spekulatius , der Buchstäblich aus dem Äther gewürzt wurde durch bloße menschliche Kreativität und Willenskraft. Der Gewürzspekulatius ist der Beweis, dass Menschen in die bedeutungslose Leere des Spekulatius starren können und ihm ihre eigenen Gewürze aufzwingen. Ich werde den Gewürzspekulatius immer essen, meine Kerle!

[-] wasabi@feddit.de 17 points 10 months ago
[-] wasabi@feddit.de 26 points 11 months ago

...and you can charge your phone with the laptop USB-C charger just fine.

[-] wasabi@feddit.de 22 points 1 year ago

He's always prepared to grill some meats.

[-] wasabi@feddit.de 15 points 1 year ago

Where is "Petition to defederate from X because Y?"

view more: next ›

wasabi

joined 1 year ago