dharmik
@dharmik@linuxusers.in
- mail at dharmiik [at] proton [dot] me
- i occasionally post in long-form at: https://dhrm1k.github.io
I like the idea of this, just wondering if I could do it myself without paying anyone | How I turned my blog into a social media hub #SuggestedRead #devopsish https://www.fastcompany.com/91235471/how-i-turned-my-blog-into-a-social-media-hub
@ChrisShort well do you know how to set up DNS and docker containers?
@ChrisShort okay if you're a kubernetes contributor obviously you do lol
@crmsnbleyd I was referring to the paid micro.blog service (which I don't think is OSS, but I could be wrong).
@ChrisShort yeah but there's ActivityPub plugins for ghost and other CMS's
ideally I would like the web version of the lisp book to be accompanied by an input field with paren-matching and ability to evaluate forms individually, (like eval-last-sexp from Emacs)
jscl seems nice as the backing common lisp compiler: https://github.com/jscl-project/jscl
just need to figure out how to have a nice input field (will I have to build one myself)
One thing I appreciate about Mastodon is that if I slip into a bad habit of scrolling through the feed too much in one day, I start seeing old posts that I've already seen, and then I realize that I'm doing a bad habit, and that helps me stop checking the site too often.
On other platforms they would do anything to prevent that moment of self-reflection from occurring.
@andrewrk Also helps against FOMO. You can eventually go "well now I've seen it all, let's do something else".
@andrewrk Same here. It is a blessing.
@andrewrk
Same here
@andrewrk I’m already looking forward to scrolling down to this toot again tomorrow!
@andrewrk
Yes, I remember when I actually could scroll Facebook or Twitter until seeing old posts, and I hated, when they started to force me into infinite feeds.
@andrewrk Been there too many times
@andrewrk that lack of doom scrolling is why I love mastodon
@andrewrk Same and it's so refreshing. "Oh, I'm caught up." Close app.
@andrewrk Quite true, then again, that moment gets postponed more and more each day.
@andrewrk so much this!
@andrewrk Good in a way, but also bad as well. I find it super hard to find people to follow on Mastodon and have an engaging feed. Usually I’ll find people on social media by coming across interesting people and then looking at the list of people they follow. On Mastodon you can’t see following lists unless you’re on same server. It’s a bummer. I had to just browse Mastodon.social on iPad while logged out and then search for people to add manually on iPhone app.
@andrewrk It's what sends me back to my book or playing with the dogs. Like "Oh, I guess I'm caught up."
@andrewrk The illusion of infinity
@andrewrk
Counter-point (from someone who uses Mastodon primarily as a source of Tech news, with other follows in Lists)
The awesome thing about Mastodon (the web UI anyway) is you can walk away from it for hours, and it'll still be exactly where you left it (unlike the other place which would auto-refresh and send you back to the top), so first thing I do in the morning is scroll down to where I was last up to, and there's no rush to get to the top - come and go, it'll still be where I left it
@andrewrk I don’t understand this. For me the newest posts on Mastodon are at the top. Initial position is at the last post that I had read. I scroll up to see newer ones. When I get to the top, I’m done. This is on the Ivory app on iPhone.
I wish there was a way to make BlueSky behave like this.
@andrewrk Cool insight. I'm brand new to the platform and can already tell it's dramatically different from the more common platforms. Thanks for sharing!
Honestly I never thought about this but this is what gets me to stop scrolling too! You nailed it! I love little touches like this and this won't happen with an algorithmic feed. Others think we're dorks for hating the algorithm so much but this is a perfect example of healthy technology without trying to hard. @andrewrk
@andrewrk the other sites have a thing called infinite scrolling, and that's really bad.
@andrewrk Yeah, it's basically telling me "not time to look at Mastodon yet, come back later."
@andrewrk oh no! Was I supposed to be self reflective about that? 😬
@andrewrk
Yes, another thing that helps are bots that post hourly - be it photos of space, of cute animals, witty quotes or just the current time. If you come across the same bot too often, it's time to stop scrolling.
@andrewrk yeah, I am seeing this as a positive as well
@andrewrk 100% the best part of the Mastodon feed is that it eventually ends
@andrewrk i miss functions like arrows instead of infinity scrolling and setting to remove elements from sidebar (local, notification)
@andrewrk Yeah that's something that only something like Mastodon can do, because Mastodon isn't a platform.
Mastodon doesn't have a financial interest in keeping people on site for as long as possible to advertise like Twitter and Threads does.
@andrewrk mastodon does that for me too. I actually enjoy Mastodon more than Bluesky. Bluesky, I was dealing with too many bots on there.
@andrewrk Can't happen on anything ad-driven, since they have an incentive to make you keep going.
@andrewrk same heree, i started to hate big social media company cause their influence our everyday lifes. world needs disperse social media for each region of the world
@andrewrk beside the effect you describe, which I appreciate as well there is another important benefit: You can find stuff again. It happens to me so often on other networks that I see something interesting, scroll by or refresh (by accident) and the post is gone forever. There is no chance to find it ever again because it is completely random what is shown to you.
@andrewrk I read all of (my) Mastodon feed once a day. I post randomly, but only read notifications when not in that window.
@andrewrk
I wish there was a "Mark all read" so I can tell when I've caught up.
@msbellows
@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
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.