dharmik
@dharmik@linuxusers.in
- mail at dharmiik [at] proton [dot] me
- i occasionally post in long-form at: https://dhrm1k.github.io
If you are planning to learn Zig via Advent of Code this year, I highly recommend the tips from @kristoff 's blog post:
https://dataswamp.org/~solene/2024-07-13-cloud-gaming-xbox-luna.html
the current state of cloud gaming isn’t quite where i’d like it to be. as games become increasingly resource-intensive and accessible primarily to those with powerful hardware, i hope to see a future where games are truly available to everyone.
Pondering a move to a different instance or perhaps even self-hosting* — for folks who’ve migrated, how’s that gone for you, which host(s) would you recommend, and any tips?
*via Masto.host or similar.
Been self-hosting for years now, through spacebear.
A firm prerequisite: friendly admins you respect, who are willing to share their blocklists with you. I don't want alt-right trolls, 4chan, etc, so I imported those lists before I even started posting. They'll also keep you updated on new problem instances.
Other than that, I recommend it.
The fedi is unique in that we can keep the social network we build--so long as we don't trash it ourselves.
just read an article about some terminal emulator called warp
that was headlined as great for power users.
It's in rust, the article tells me. Good power user start.
Then the article tells about all the helpful AI and subscription features.
Now convinced the author has never actually met a terminal power user.
@djsundog I'm still mad and looking for a replacement for iTerm2 because of the AI fiasco. The author put the AI shit in a plugin which is not preinstalled, but I no longer trust him long-term.
But every other term I try is lame. Nobody else has "move/select to last prompt", nobody has automatic dir actions/themes, which I use a *lot*. cd CodeBasic and I get a black-white terminal with Atari font (since it'll probably do some ANSI), but CodeScheme can be reddish with code ligature font.
@djsundog And then 90% of techie terminals only have settings in a 5000-line JSON file you edit by hand. Can you NOT‽
I don't want flashy graphics. I like iTerm2's pixel art thing, I use imgls sometimes instead of Finder. But like, fast rendering of text and right-clicking URLs is about all I *have* to have.
It reminds me a lot of Linux window managers. Enlightenment was fun but so stupid in use. Good WM/DE are clean and programmable, but that's not sexy for screenshots.
@djsundog WTAF I'm having '90s enterprise software flashbacks. Does Oracle publish this‽
@djsundog what on earth? Is this what people are asking for?
Also, my strategy of determining the uselessness of a piece of software by measuring how early in the feature list "implemented in rust" show up appears to still be accurate.
(gnome-text-editor:956): Gtk-WARNING **: 18:03:25.241: Unable to acquire session bus: Failed to execute child process “dbus-launch” (No such file or directory)
https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps#install-gnome-text-editor
@dharmik sudo apt install dbus-x11 ?
@dharmik i don't have access to wsl anymore.
In wsl2 with it being the most updated I was able to use firefox and gui emacs.
What an Oxide and Friends last night! @bcantrill and I were joined by the one and only @AndresFreundTec to talk about his discovery of the xz backdoor. It’s an incredible story… so great to get into the details with Andres. Definitely check it out (or on the pod tomorrow).
I was really pleased by this background image so wanted to talk about it briefly. The concept was (of course!) simple: the (in)famous xkcd graphic with the thankless Nebraskan removed https://xkcd.com/2347/
Like all lazy people in 2024, I turned to Chat GPT for help. This didn't work out well. (Have I mentioned that I'm bad at Chat GPT?)
I should mention that we don't put a ton of time into Oxide and Friends (sorry!) so I try to bound these side-quests at least somewhat. Somewhat. I decided to find a physics simulator (like a lunatic) and SimPHY was the first one I stumbled onto that worked well enough. I roughed out the structure from the xkcd comic:
Then removed the linchpin:
And simulated...
Until I got to something that was suitably calamitous:
I threw it on the iPad that I "borrowed" from my older son and traced it in Procreate with his Apple Pencil. 100% it could have been better, but I already felt like a crazy person and wasn't sure it was going to work out
Spent more time last night writing tests for my #flask project. I need to do some reading on how to write tests for wrapper functions. I also have a couple routes that were really difficult to write tests for, which probably means they need to be refactored somewhat.
That's said, nearly everything is covered now. I'll poke at those last two spots, but I think it's time to move on to adding some charts/graphs into the admin panel for comparing data between class sections.
@dharmik it's a feedback/performance tracker for my chemistry students. Each assignment is linked to a skill and they have to show growth & proficiency on that skill. They have a dashboard showing everything we've done this year and which skills they still need to show they can do.
@dharmik I own a Boox Note Air 3 (there‘s also a „C“-/color Version) for a year now. It’s absolutely fabulous! But much much more than „just“ an ereader. 🤗
the problem is i think. if a linux distro was actually good enough, it would annihilate all the other distros. and that would go against the whole point of there being distros. so theyre not allowed to make a distro thats good. they're not allowed to be like "look we're actually gonna do it this time, we're gonna make the one true linux", they'd get tomatoes thrown at them. they can only make a distro thats "okay, but then in 5 years it Goes Wrong and everybody hops to the next popular distro"
@jk the reason there are different distros is they meet different needs.
RHEL: corporate linux
Fedora: unpaid dev for rhel
Arch: true rolling, minimal package changes from upstream
#Slackware you are expert, want vanilla upstream, patrick v. BDFL
#Debian install once run forever. Really. Sid/testing semi-rolling
Ubuntu: swahili for "can't install debian"
TinyCore: 26 MiB full OS install to RAM. Really.
#Alpine very groovy tech
Mint: new user choice 1
SLED/SUSE: Not rh
And so on.
@rvyhvn My experience with Void Linux in the past was good; blazzing fast with runit.
How to create great terminal based presentations
$(command)
to capture the output of one command and use it in another!you can get the date as folder name (in format month abbreviate-date-year) with
mkdir "$(date +"%b%d%Y")"
- $(...) is used to execute the date command and substitute its output.
@dharmik
In the spirit of sharing
CL-USER>
(ensure-directories-exist
(format nil "~[mon~;tue~;wed~;thu~;fri~;sat~;sun~]/"
(nth-value 6 (get-decoded-time))))
"thu/"
T
CL-USER> (probe-file #p"thu/")
#P"/home/screwtape/thu/"
tl;dr a lisp form to create an abbreviated current-day-of-the-week-shortname directory by decoding the current universal-time.
A lot of people don’t know this one weird trick — much like JavaScript, C also lets you perform arithmetic with mixed types:
Things don't "fall into the public domain" at the end of their copyright term, Ugh.
Once released from copyright, works Ascend into the glorious ranks of the public domain, fulfilling their rightful destiny as part of the cultural heritage of humanity!
#unix_surrealism starter pack
Frogress 🐸 #painting #mural #characterdesign
[print(x) for x in range(1, 11) if x % 2 == 0]
thisislist = ["apple", "banana", "cherry", "kiwi", "mango"] new_list = [i for i in thisislist if "a" in i] print(new_list)
@dharmik wait to realize that list comprehensions are syntactic sugar for monads…
it is possible to create files which simply cannot be deleted
from the standard shell. to do this, you will have to physically
create the file using a c program or script file, and you will
have to use a sequence of control characters which cannot be
typed from the shell.
I sometimes see people trying to do everything in a terminal for a while, either for anti-distraction issues or for retro-/"perma"-computing reasons.
These days I wonder whether it would be interesting to not completely focus on the terminal, but do everything you do in there just with VT100 capabilities (or hook up a real one, if you got one).
I bet for some developers it would be much harder to do the things they already do in the terminal without colors and emojis than just fit in a few things they usually do with webapps.
@mhd VT100 has color, or depending on the specific terminal at least underline, bold, dim, blink. Box drawing chars go back 40+ years. The majority of what I do can be done there, and I know that because I often work on server stuff on a headless FreeBSD server. My Vim setup is all terminal-friendly.
But since I make GUI front ends usually, I eventually do need to get off the terminal.
When we read books, in real life, we turn pages. Indeed, scrolling book would be so inconvenient, most likely a miserable experience.
Why we do scroll so much when we read on PC screens is a mystery to me.
We also scroll like there's no tomorrow when we code.
#Emacs and #Vim get this right (respectively with `C-l (recenter-top-bottom)` and `zz`, `zt`, `zb`)
To everyone when they see horrible privacy news about Microsoft replying with:
"I don't care, I use Linux"
Sure, you do. But does your medical clinic do? Does your therapist do? Does your family member typing a personal email to you in Word before sending it do too?
This is a systemic problem.
You cannot protect your own data only by using Linux yourself. You must also demand stronger regulations and enforcement to obligate organizations around to protect your data as well.
@dharmik except for the "no ads, no tracking" rest of your post sounds exactly like what we used to say in 2004. After Ubuntu launched. 😊
@dharmik right to tinker needs to be inalienable ...
We'll visit a birding hotspot, and maybe then I can tell you more about it.