13
submitted 6 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 6 months ago* (last edited 6 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?

[-] wasabi@feddit.de 31 points 6 months ago

Die AfD gibt sich nur christlich wenn es für die "wir" gegen "die" Abgrenzung nützlich ist.

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

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

23
submitted 7 months ago* (last edited 7 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?

14
submitted 8 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.

25
submitted 10 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?

[-] wasabi@feddit.de 16 points 10 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 10 months ago

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

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

What a terrible visualization

5
submitted 11 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 1 year ago

Has this really happened?

21
submitted 1 year ago* (last edited 1 year 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 17 points 1 year ago
[-] wasabi@feddit.de 26 points 1 year ago

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

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

Windoof

Microschrott

Bin ich hier im Heise-Forum gelandet?

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

Ist aber egal, da die Signal Server idR nur wissen an wen eine Nachricht geht. Sie wissen weder Inhalt, Absender noch ob es eine Gruppennachricht ist oder nicht. Das ist nur das absolute Minimum um einen Funktionierenden Messenger anzubieten. Ob das jetzt in irgendeiner Cloud oder auf nem Server bei Signal im Keller passiert ist daher ziemlich egal.

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

He's always prepared to grill some meats.

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

After learning about TYPE_CHECKING i made it a habit to put all imports that were only needed for type checking into an if TYPE_CHECKING: guard. But now I am wondering if that is actually intended to be used like that. Checking whether an import is only needed at type checking time can get quite tedious and sometimes you run into situations were you introduced some code that made the import a requirement at runtime.

How do you use TYPE_CHECKING? Whenever it is possible or only when using it actually solves a circular import?

[-] wasabi@feddit.de 9 points 1 year ago* (last edited 1 year ago)

What tasks do you want to implement?

view more: next ›

wasabi

joined 1 year ago