One of favorites cds to the root of a project directory from a subdirectory,
# Changes to top-level directory of git repository.
alias gtop="cd \$(git rev-parse --show-toplevel)"
Just a basic programmer living in California
One of favorites cds to the root of a project directory from a subdirectory,
# Changes to top-level directory of git repository.
alias gtop="cd \$(git rev-parse --show-toplevel)"
That’s a helpful one! I also add a function that creates a tmp directory, and cds to it which I frequently use to open a scratch space. I use it a lot for unpacking tar files, but for other stuff too.
(These are nushell functions)
# Create a directory, and immediately cd into it.
# The --env flag propagates the PWD environment variable to the caller, which is
# necessary to make the directory change stick.
def --env dir [dirname: string] {
mkdir $dirname
cd $dirname
}
# Create a temporary directory, and cd into it.
def --env tmp [
dirname?: string # the name of the directory - if omitted the directory is named randomly
] {
if ($dirname != null) {
dir $"/tmp/($dirname)"
} else {
cd (mktemp -d)
}
}
Our decisions are heavily influenced by emotion. We have the sense of empathy, which is an adaptation that makes communal living work. Empathy motivates us to do things for other people sometimes. You can say, “you do helpful things to satisfy your own emotional needs.” But that’s pretty much saying, “you do helpful things because you want to.” I think self-interest is a big factor in how we act, but I don’t think it’s the only factor.
It looks like the setting is max_parallel_downloads
in /etc/dnf/dnf.conf
. Here’s a post on how to increase it - so do the opposite, and set it to 1.
I heard Superman gained the ability to fly during the first TV series because doing the special effects for flying was easier than for jumping.
My wife has worked with lots of people who are not native English speakers who are sometimes taken aback by the idioms. One colleague flat out refused to accept that “FOMO” is a word.
I suggested that she is in a position to make some up, like “Let’s not put fish in the milk bucket.” But she didn’t go for it. I guess she’s not an agent of chaos after all :/
I know there are lots of possible origins for this phrase, but I think of it as “pleases” and “thank yous”. The “k” sound from “thank” followed by the word “you” combine to sound like the letter q.
I’m wondering if Wayland support in Wine will encourage Valve to support Wayland in the Steam app too.
On my desktop I run a Wayland window manager that doesn’t implement XWayland so I can’t run Steam directly. So I’ve been running it in Gamescope in big picture mode - which is actually exactly what the Steam Deck does.
Seems like a matter of preference, and I see the logic in it. I’ll mention that Nushell makes it easy to create custom shell functions that are invoked as sub-commands in this manner. https://www.nushell.sh/book/custom_commands.html#command-names
This happens to be the plot of the book series, The Accidental Minecraft Family
My favorite is Time Surfer. The core mechanic is basically the same as Tiny Wings, but the theme, artwork, levels, etc are all very different. I especially enjoy the chiptunes!
Are there other relevant standards? The XDG base directory specification has been around for a long time, and is well established.
Maybe your comment wooshed over my head; if so I apologize.
Are you saying that you don’t want to write your software according to the XDG spec, or that you don’t want to set the XDG env vars on your system? If it’s the second that’s fine - apps using XDG work just fine if you ignore it. If it’s the first I’d suggest reconsidering because XDG can make things much easier for users of your software who have system setups or preferences that are different from yours; and using XDG doesn’t cause problems for users who ignore it.
OP’s recommendation is aimed mostly at software authors.
So yes, “XDG” stands for “Cross-Desktop Group” - but I don’t agree that using the spec assumes a windowing system. The base directory spec involves checking for certain environment variables for guidance on where to put files, and falling back to certain defaults if those variables are not set. It works fine on headless systems, and on systems that are not XDG-aware (I suppose that means systems that don’t set the relevant env vars).
OTOH as another commenter pointed out the base directory spec can make software work when it otherwise wouldn’t on a system that doesn’t have a typical home directory layout or permissions.
I went and fetched a link: markview.nvim
I also have a slimfold micro that I’ve been using so long I don’t remember how old it is.
There was a post earlier today complaining about questions that aren’t open-ended, and therefore don’t adhere to the community rules. So here we are with a question with many possible answers (which makes it properly open-ended).
Probably not directly helpful, but Nix packages for Chromium and Electron apps are set up so that you can switch to native Wayland mode globally by setting an environment variable, NIXOS_OZONE_WL=1
I don’t know of any global setting that isn’t distro-specific.
The artificial sounds are legally required at low speeds, at least in the US and Europe. In the US electronic sounds are required at speeds below 30 kph. In the EU I think it’s 20 kph. At faster speeds the sounds of wheels on the road and such make electric and hybrid cars basically as loud as ICE cars.
There are very specific rules about the noises. It looks like there was some effort in the US to allow user-selectable sounds, but it didn’t work out. I found some info here, https://www.federalregister.gov/documents/2022/07/13/2022-14733/federal-motor-vehicle-safety-standards-minimum-sound-requirements-for-hybrid-and-electric-vehicles
Hospitals are required to provide emergency treatment - what we call ED or ER visits - regardless of ability to pay. Patients are expected to pay for that treatment. It’s just that the hospital isn’t supposed to deny treatment based on whether they think patients will or won’t pay the bill. This is getting-stabilized treatment.
This is an important point in arguing for universal healthcare: if people can’t afford treatment, they’re more likely to go to the ED where they won’t be turned away. ED visits tend to cost more than non-emergency, so that drives costs up.