oscar

joined 1 year ago
[–] oscar@programming.dev 3 points 5 months ago

nam is assigned the value returned by input.

This is not some edge case behavior by the input function. This is always how function calls work. You can think of it like substituting input('Who are you? ') with the value returned by it, which is the string typed in by the user in this case.

[–] oscar@programming.dev 1 points 5 months ago

Drop oh-my-zsh and look for something else to customize your prompt. I like Powerlevel10k but Starship is good too.

[–] oscar@programming.dev 12 points 8 months ago* (last edited 8 months ago)

It's when you open a publicly facing port and map (forward) it to a local port your machine. In this case, it's opened at the vpn provider's public gateway. Otherwise, it would typically be opened in your router instead.

You can then configure your torrent client to listen on that local port that the public port is forwarded to. I think generally the public and the local port are the same number when using VPN.

If you do that, then others have the ability to initiate a connection to you instead of only you being able to initiate the connection to somebody else.

When seeding/leeching to/from someone else, at least one of you needs a port open. So, if you always have one open, you allow yourself to connect to anyone on the network regardless if they have one open or not.

Sorry if I confused you more, I'm not that great at explaining.

[–] oscar@programming.dev 10 points 8 months ago (1 children)

I seed without cap, don't really need my upload for anything else. (500 Mbps)

What's the distro? I can help seed it indefinitely with open ports.

[–] oscar@programming.dev 1 points 9 months ago* (last edited 9 months ago)

Yeah I don't want to be a nuisance to my office neighbours. Right now I'm using a logitech mx keys, I could try looking for an ansi version of that.

I will probably order a keychron with low profile switches for my home setup, so I depending on how quiet it is I might get that for work as well.

[–] oscar@programming.dev 0 points 9 months ago

Huh? Yes it does. Unless you mean it's not cracked yet.

[–] oscar@programming.dev 31 points 9 months ago

So you have never iterated over command line arguments and tried to identify options? Or taken a string input field?

[–] oscar@programming.dev 1 points 9 months ago (3 children)

What is this type of keyboard called? I'm interested in getting something like it but I'm curious what switches are available.

[–] oscar@programming.dev 1 points 9 months ago* (last edited 9 months ago) (2 children)

I want to try ANSI also, but it seems pretty hard to find in EU. I've considered getting a keychron for my gaming setup but I don't want a full on mechanical for work, and I don't want to use ISO at work and ANSI at home because it will screw with my muscle memory.

[–] oscar@programming.dev 5 points 9 months ago* (last edited 9 months ago)

I'm swedish and I use EurKEY. It's basically US but makes it possible to use Å/Ä/Ö through altgr + W/A/O. I don't write that much swedish so I'm not too bothered, meanwhile the coding advantage is huge for ' " \ | / ? | [ ] { } .

[–] oscar@programming.dev 3 points 9 months ago

No, it isn't. Git doesn't care what the url is, as long as it uses a supported transport protocol.

view more: ‹ prev next ›