dharmik
@dharmik@linuxusers.in
46 following 17 followers
- mail at dharmiik [at] proton [dot] me
- i occasionally post in long-form at: https://dhrm1k.github.io
@radhitya python is not that ergonomic, bython is better 👌
@dharmik thank you!
@dharmik yeah, people in school are often confused about this. Decimal refering to a number being in base ten cf octal being in base 8, not in having a decimal point. Obviously the natural base being octal
@dharmik though I'm now wondering how straight I can keep my face while saying octalion point
@dharmik Abbreviations often lead to confusion, especially when one isn't even aware something was abbreviated. The use of "decimal" in primary school was just short for "decimal fraction". See https://en.wikipedia.org/wiki/Decimal & https://en.wikipedia.org/wiki/Decimal#Decimal_fractions
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‽
(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.
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. 🤗
$(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:
#unix_surrealism starter pack
[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. 😊