Buggies? Or just “furries”
There are a surprising number of moth and bee 'sonas, but the terms aren’t well defined
Buggies? Or just “furries”
There are a surprising number of moth and bee 'sonas, but the terms aren’t well defined
Can confirm, “scalies”
For birds it’s “avian”
Proton / wine is modern day magic
Most Windows only steam games work out of the box (you do have to enable it in the right click menu > Compatibility options, per game)
Games that use Anti-cheat aren’t likely to work (it depends on the Anti-cheat used and how it’s configured)
ProtonDB is a good resource for checking if/which games work, or fixes and workarounds
You can use proton or wine on non steam games, but that requires additional setup that I’m not familiar with
Pets are not children
They have completely different physical and psychological needs and wants, and they need to be respected as a member of their species
Speaking as someone who has 2 dogs, 3 cats, and no kids
They are my companions, and i am their caregiver. But they are not my children
I run Arch, so docker was the easiest method of installation.
Rather than try and figure out how to install a .deb manually (and lose package manager perks)
Vscode and dotnet core (5+) work well on linux
You can also run SQL Server via docker
The technology behind the registry is fine (which is what I think @VinesNFluff meant)
But it’s execution in Windows was ass
In theory, a configuration manager with DB-like abilities (to maintain relationships, schematic integrity, and to abstract the file storage details), isn’t a bad idea
But the registry as it is today is pure pain
I’ve been running Linux for 4 years, but this still hurts to read
I mean, you just need to look at the conflicting files, fix up the code, then stage those changes and pop a new commit
There’s no “special” merge conflict resolution commit “type”
As for fixing the code itself, I usually look at what changed between both versions, and then re-author the code such that both changes make “sense”
I’ve had no issues with @pawb.social and Voyager
that is a little more complicated
p.communicate()
will take a string (or bytes) and send it to the stdin of the process, then wait for p
to finish execution
there are ways to stream input into a running process (without waiting for the process to finish), but I don’t remember how off the top of my head
from shutil import which
from subprocess import Popen, PIPE, run
from pathlib import Path
LS = which('ls')
REV = which('rev')
ls = run([LS, Path.home()], stdout=PIPE)
p = Popen([REV], stdin=PIPE, stdout=PIPE)
stdout, stderr = p.communicate(ls.stdout)
print(stdout.decode('utf-8'))
nushell is pretty good. I use it for my main shell
although, i still prefer writing utilities in python over nu scripts
just use python instead.
subprocess.run()
, to call to system utilspathlib.Path
for file paths and reading/writing to filesshutil.which()
to resolve utilities from your Path
env varHere’s an example of some python i use to launch vscode (and terminals, but that requires dbus
)
from pathlib import Path
from shutil import which
from subprocess import run
def _run(cmds: list[str], cwd=None):
p = run(cmds, cwd=cwd)
# raises an error if return code is non-zero
p.check_returncode()
return p
VSCODE = which('code')
SUDO = which('sudo')
DOCKER = which('docker')
proj_dir = Path('/path/to/repo')
docker_compose = proj_dir / 'docker/'
windows = [
proj_dir / 'code',
proj_dir / 'more_code',
proj_dir / 'even_more_code/subfolder',
]
for w in windows:
_run([VSCODE, w])
_run([SUDO, DOCKER, 'compose', 'up', '-d'], cwd=docker_compose)
To explain
There are 2
Error
struct / enum declarations, probably in separate filesTo the
?
, they are different types and cannot be converted from one to the other (because they are two disparate structs that happen to have the same name, but can have different bodies)To fix this
You can either use
.some_func_result().map_err(|err| /* conversion here/*)?;
+Or you can
impl From<Error1> for Error2
And you should also name it
ThingError
, so you can visually differentiate the two+ There are like 10 different mapping functions, depending on if you’re using an option or a result
I never remember which one specifically i need, (
unwrap_or
,map_or
,map_or_else
,ok
,ok_or
)I usually just hunt through the auto complete list until i find the function signature that gives me what i need