balsoft

joined 1 year ago
[–] balsoft@lemmy.ml 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Wait without which Nix? the package manager or the language or something else?

Yes, without the package manager. Shipping "with a language" doesn't make much sense :)

[–] balsoft@lemmy.ml 2 points 2 weeks ago (1 children)

I've stolen a bunch of Git aliases from somewhere (I don't remember where), here are the ones I ended up using the most:

g=git
ga='git add'
gau='git add --update'
gcfu='git commit --fixup'
gc='git commit --verbose'
'gc!'='git commit --verbose --amend'
gcmsg='git commit --message'
gca='git com
gd='git diff'
gf='git fetch'
gl='git pull'
gst='git status'
gstall='git stash --all'
gstaa='git stash apply'
gp='git push'
'gpf!'='git push --force-with-lease'
grb='git rebase'
grba='git rebase --abort'
grbc='git rebase --continue'

I also often use

ls='eza'
md='mkdir -p'
mcd() { mkdir -p "$1" && cd "$1" }

And finally some Nix things:

b='nix build'
bf='nix build -f'
bb=nix build -f .'
s='nix shell'
sf='nix shell -f'
snp='nix shell np#'
d='nix develop'
df='nix develop -f'
[–] balsoft@lemmy.ml 41 points 3 weeks ago* (last edited 3 weeks ago)

The data seems to be weird/lacking so far, a lot of phones have "10" as "battery endurance in cycles", and some have the "Battery user-replaceable" even though it clearly isn't (e.g. glued on back glass)

PS: sorry I'm an idiot, I misunderstood what "battery endurance in cycles" meant (it seems to actually be "hundreds of cycles"). Also "battery user-replaceable" phones don't have a glued-on back indeed, I was looking at a wrong model.

This is sick! In 5-7 years when I'm looking for a new phone this will come in really handy :)

[–] balsoft@lemmy.ml 6 points 3 weeks ago* (last edited 3 weeks ago)

Hm, this is interesting - I am indeed "outdoorsy" and could only see "white and gold in shadow". I think this might also be because of the highlight on the right suggesting that it's daylight all around and the dress is in deep shadow, and the blue color is also highly reminiscent of "white cloth in deep shadow". This XKCD helped me clear up the confusion and now if I squint I can see both color schemes:

https://xkcd.com/1492/

[–] balsoft@lemmy.ml 3 points 3 weeks ago

Eh, this is sure to result in a lot of deaths and destruction, since subway trains don't have any way to strap you in, and are unlikely to handle the accelerations required to stay on rollercoaster tracks. Also remember that one of his first appearances is https://xkcd.com/72 which seems like child's play in comparison - he's sure grown over the years

[–] balsoft@lemmy.ml 3 points 3 weeks ago
[–] balsoft@lemmy.ml 13 points 3 weeks ago (1 children)

Yep, although I think StreetComplete does at least ask "how many levels in a building", which allows for pretty good approximations most of the time

[–] balsoft@lemmy.ml 33 points 3 weeks ago (4 children)

Install StreetComplete, open it, boom, a lot of easy things to do that will help some people out (especially with regards to opening hours, accessibility, addresses and such).

Once you want to do more advanced edits, install Every Door. It's not as obvious what to do there, but it still highlights issues that need to be fixed and is relatively easy to operate; however, you will need to start looking at OpenStreetMap wiki to take full advantage of it.

Then you can move to more advanced editors, such as Vespucci on your phone (wouldn't recommend doing everything from there), ID editor in your browser or JOSM as a proper app on your computer.

[–] balsoft@lemmy.ml 18 points 3 weeks ago (5 children)

Actually, recently I learned that setting the tree species (or at least genus) can be very useful to some people: https://lemmy.ml/post/31772921

[–] balsoft@lemmy.ml 13 points 3 weeks ago

True enlightenment is realizing that variables don't exist, it's all just a sequence of bits in RAM that we assign meaning to as desired.

Ascension is realizing that bits don't exist, it's all just trapped electrons in transistors which we imagine to be bits.

Transcendence is realizing that transistors or code doesn't exist, and it's just some quarks and electrons attracted and repulsed by weird forces, vibrating and convulsing in a soup with entropy constantly rising until the heat death of the universe, of which we make futile attempts to make sense or purpose.

[–] balsoft@lemmy.ml 76 points 3 weeks ago (11 children)

There's no such thing as "fully mapped out". Just open StreetComplete. If there are no tasks left, go ahead and map all the individual trees, or benches, or yield/stop signs, or all the buildings so that they appear good-looking on a 3d render.

[–] balsoft@lemmy.ml 3 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

The "nix way" to handle this is actually to have all your dotfiles generated and "installed" by Nix as part of your NixOS config (via home-manager), and keep your NixOS config in a git repo that you then nixos-rebuild from (either with nixos-rebuild switch -I nixos-config=. or nixos-rebuild switch --flake ., depending on if you're using flakes or not).

So I’m kinda wary of doing it on an even more critical file

Actually, configuration.nix is not critical to the functioning of the system at all; it is only read at "evaluation time", i.e. when you are using nixos-rebuild. As long as it's under a VCS (i.e. you won't lose the contents by the time you want to nixos-rebuild again), you have nothing to worry about. You can ship a NixOS system without it (in fact that's kind of the default). (unrelated but fun fact: you can also ship a NixOS system without Nix, it's not actually needed for it to run!)

view more: ‹ prev next ›