Blog: 2024-08-30

From razwiki
Jump to navigation Jump to search

Whoops cleaned some stuff by mistake! Gone are some junks that I forgot about

editor-testing $ git clean -xdn
Would remove .pytest_cache/
Would remove .yarn/
Would remove __pycache__/
Would remove constant.py
Would remove headless_emacs.py
Would remove poetry.lock
Would remove pyproject.toml
Would remove test_open_emacs_and_quit.py
Would remove vim_experiment.py
editor-testing $ git clean -fxd
Removing .pytest_cache/
Removing .yarn/
Removing __pycache__/
Removing constant.py
Removing headless_emacs.py
Removing poetry.lock
Removing pyproject.toml
Removing test_open_emacs_and_quit.py
Removing vim_experiment.py

whoops!! Again I confused "untracked" with "ignored" - I only wanted to clear the ignored files, so that I could cleanly reinstall the dependencies. Would be good to have a safe-cleanup function that would back them up or put them in ~/.trash or something... cause I lost those for sure !! Though I did have some fun looking up extundelete.

extundelete --restore-directory . /dev/nvme0n1

Didn't work. Oh well! Also it warned me about working on a mounted filesystem. Ignored that err

---

cool https://dnd.czenczek.de/house-rules.html

makes me think about how dnd is a game that consists of layers of books basically, and house rules and stuff, and how you can play without any device because everything is in print. cool

---

Trying to download qemu source code on windows for some reason, I guess I was looking at what forks I had available locally cause I'm on low internet, and I've been meaning to learn qemu. also, right, I was thinking about working on ronin. Anyways the original clone failed on my pitifully throttled cell phone signal, so I started to look deeper into how to git clone on slow internet.

I quickly realized I was looking for resumable clones, which I guess was proposed as a summer of code project in like 2012 but was not attempted. Fortunately there's a workaround using standard git:

git clone --filter=blob:none --bare --depth=1 https://github.com/qemu/qemu

that goes really fast. What you're left with is an empty, bare, depth=1 git clone. So ... nothing?

cd into that and you'll recognize your surroundings as the contents of a .git directory. cool

From there you can run this command

git rev-list --objects --all

to download the objects. And it's resumable! Probably less efficient than git clone itself... oh well

so yeah you just run that command over and over, it'll get an object at a time. In the meantime you can browse individual files with:

git show master:bsd-user/qemu.h

You'll see objects stream in with the download `git rev-list` command, so you can peek at them as you go. Then when you're all done I think you can clone the repository to make it not bare .. tbd ...

source: https://stackoverflow.com/a/78069918/1636613

---

I was trying to download sublime text again, just like to stand once more on the dock of technological progress before diving into the swamp of ... yaks to build my own editor from scratch / at least get some command line automation for testing editor functionality .. been on this train for years haha

It's great software and I'm not so prissy that I can't use some proprietary good code or even fork over 80 bucks for a nice editor. vscode is such a bother, the way everything loads in, and let's face it it's just ugly .. by default at least... so yeah sublime text as my notepad killer ... I don't mind notepad actually and now it even has tabs tho... but no syntax highlighting haha

Once again I got stuck on the firefox download. So I switched over to terminal and wget is at 92% and chugging along. Even if it loses connection for a moment it'll pick it back up. So, why doesn't firefox do this? Maybe it could, via an extension? #webbrowserfeatures

I also re-came to the conclusion that the desktop shell is ultimately the web browser .. of the future .. or whatever... yeah chromeos takes this concept pretty far but desktop software really sucks mostly!! Except games which pretty much suck as apps but then the functionality you get finally is immersive and performant and all those things you put up with games for.

---

In other news the raspberry pi 5 at $80 for 8gb looks like a decent desktop computer .. not bad ... a big downside is it doesn't have a screen built in unlike this laptop tho . I also don't know if its architecture would lead to fun or turmoil ...

Can you run windows on it? SteamOS? stay tuned! ??