[-] TwilightKiddy@programming.dev 5 points 4 months ago* (last edited 4 months ago)

The very idea that stealing someone's ID or forging it can be even remotely related to digital piracy is egregious and should not be considered for discussion in this community.

[-] TwilightKiddy@programming.dev 4 points 9 months ago

Most terminal emulators will copy with Ctrl+Shift+c. I'm using foot, if you set this part of your config, it will copy with just Ctrl+c.

[key-bindings]
clipboard-copy=Control+c XF86Copy

But now for most shells you don't have a keybind to send SIGINT, which is very commonly used.

[-] TwilightKiddy@programming.dev 4 points 9 months ago

Борщевик! That thing is a menace across pretty much all the post-Soviet countries. Vavilov and whoever listened to him were stupid as fuck.

[-] TwilightKiddy@programming.dev 4 points 1 year ago

Well...

for ((;;))
do
  # stuff
done
[-] TwilightKiddy@programming.dev 5 points 1 year ago

If you want a modal editor, you can also give Helix a try. Many people find it easier to use if you are coming in with no prior modal editor experience.

[-] TwilightKiddy@programming.dev 4 points 1 year ago

I'm very sorry you had to go through such stupid school tests, welcome to the real world. sqrt(x) is just a shorthand for x^(1/2).

[-] TwilightKiddy@programming.dev 5 points 2 years ago

Have been almost a year since I switched to Linux completely. I'm using CachyOS (an Arch derivative), so, you may have to adjust some things for your distro.

First of all, your driver setup varies heavily on what hardware you have, obviously. All AMD (both CPU and GPU) being the easiest for setup and laptops with Intel CPU + iGPU and Nvidia dGPU being notoriously hard to manage (it's also my case, which sucks). Look up what you need for your specific hardware.

Next comes your display server and audio server. The bleeding edge here being Wayland + Pipewire.

Wayland can be a bit bitchy on Nvidia GPUs, but it got a lot better over the last years. To use Wayland your desktop environment has to support it. Check with your specific DE. I'm using KDE Plasma, been quite happy since the switch.

Pipewire is pretty easy to setup, just uninstall your old audio server, replace it with Pipewire and an adapter package for what you had (like pipewire-pulse for PulseAudio) and you are good to go. It's very cool with tools like qpwgraph for audio management, easily the most mind-blowing thing I installed. Your friend came over and you want to send game audio both to your and their headphones? Easy. Been selling parts of my soul to get these sorts of setups on Windows for a long time.

Next, use native software where you can. You can replace Notepad++ with VSCodium or Helix (the learning curve for modal editors is steep, but it's very worth it).

For Minecraft, TLauncher is... controversial to say the least, even for usage on Windows. Try PrismLauncher. Works great, allows to download modpacks from popular distributors and is pretty easy to trick into playing in offline mode without a Microsoft account, just look it up.

Next, the translation layer. I'm using Proton-GE for everything via Lutris. While, as per GE, it is not a supported use-case, it's what I've got the best experience with so far.

As for dependecies, there is a good guide from GE for that.

Hopefully it helps in one way or the other. You can also experiment with distibution of your choice. There are some gaming-focused ones that come with driver installation tools to make it easier for you, don't hesitate to dump everything and start from scratch with a fresh install while you are not that commited to one specific distro.

[-] TwilightKiddy@programming.dev 5 points 2 years ago* (last edited 2 years ago)

Isn't it /mæn/ and /mɛn/, /ˈwʊm ən/ and /ˈwɪm ɪn/? Can be a bit hard to differenciate in the first case, but the second pair is very different.

[-] TwilightKiddy@programming.dev 4 points 3 years ago* (last edited 3 years ago)

I believe you can remove (default) with -disposition:stream 0 so, if you have three subtitle tracks, all marked as default, and you want only second with that mark, you'd do something like this:

ffmpeg -i input.mkv -c copy -disposition:s:0 0 -disposition:s:2 0 output.mkv

And if you want to mark a stream as default, you do -disposition:stream default.

[-] TwilightKiddy@programming.dev 5 points 3 years ago* (last edited 3 years ago)

a chain of member or element access

Assignment is not member access nor element access, hence not part of the chain.

[-] TwilightKiddy@programming.dev 4 points 3 years ago

Another C# gang comment here.

I'll try not to repeat what others said.

C# has one of the best debuggers in the industry. Debugger is a thing that lets you stop your program at a set state and investigate values of variables in that state. Very useful for education. The thing is incredibly easy to set up in Visual Studio right out of the box and is a matter of installing another extention in VS Code.

C# is in C syntax family, which includes C, C++ and Java. While you'll have to learn some syntax quirks to switch languages, they are not as drastically different as Python, for example. If your intention is getting into game development, setting a base for C++ is a nice bonus.

C# is strictly-typed. Unlike Python, Lua or JS that I saw in this thread, C# requires you to specify types of your variables. While it may sound as a disadvantage at first, it is actually extremely useful catching silly mistakes. Like if you make a string and pass it to a method that expects integer, C# simply won't compile, you'll have to explicitly convert your string to integer. JS is notorious for it's ('b' + 'a' + + 'a' + 'a').toLowerCase() > "banana", which is extremely hard to follow if you're learning the language IMO.

If you're trying to build games with big game engines like Unity or Unreal Engine, C# is a no-brainer, as they support it natively. Godot has it's own language, but it has an option to switch to C#, so, you can cover all of them with one language.

Windows Forms. It's a package for developing GUI applications on Windows. Visual Studio comes with it and has a designer for it. If you want to learn how to make a simple GUI application, that's one of the easiest routes. Worth noting, if you're not on Windows, that thing is not that easy to use.

Here is an official "get started" guide: link.

view more: ‹ prev next ›

TwilightKiddy

0 post score
0 comment score
joined 3 years ago