I just got really nerd-sniped and rewrote my command-line launcher generator for Flatpak in Python+PyGObject, solving pretty much every flaw it had along the way.
If you've been reluctant to use Flatpak-packaged apps because of the bad command-line user experience, give it a try. Aside from not being able to expose manpages that were just plain omitted from the packages, I'd call it perfect in all ways that matter.
#linux #flatpak #cli #commandline #shell #terminal
Cathode Ray Dude just ended his most recent video with an excellent little "anticapitalist diatribe" (as the section title calls it) expressing his frustration at how nobody makes offbeat products with the intent to actually be products anymore. → https://youtu.be/PDjleq0PJX0?t=2644
@phel Three problems with that. First, Kubuntu Linux 20.04 LTS doesn't provide an org.freedesktop.thumbnails.Thumbnailer1 implementation. Second, I like to keep my options open for py2exe-ing Windows builds... which means no dependencies on external system services. Third, that'd just slow things down even if I *weren't* planning to calculate some hashes while I have the image loaded into memory anyway.
@phel Funny enough, my first "bare minimum of Geeqie's collection view, but in PyQt" tester loaded already-generated thumbnails off disk twice as fast as Geeqie... which either speaks well of Qt or poorly of whatever Geeqie's doing with GTK.
@phel It's for populating the XDG shared thumbnail cache for a PyQt-based GUI I'm writing. The only reason I explored alternatives to doing it in PyQt is that I have prior experience flipping grids of pixels back and forth between PyQt and PyOpenCV and wanted to optimize for performance.
In case anyone's planning to thumbnail some PNGs and JPEGs in Python, whether you use PyQt, PyOpenCV, or write your own little wrapper around Rust's `image` crate using PyO3 or rust-cpython, I recommend not using Pillow.
On my test corpus with a warmed cache, the others consistently took about 2/3rds the time Pillow did... though PyOpenCV was a hair slower than the others at ~25 seconds rather than ~23. (Pillow was ~33.)
I knew the fiasco that was the Russo-Japanese war was instrumental in leading to the overthrow of the Tsar, but I never realized that the "sailed half-way around the world" part of "sailed half-way around the world to get smashed at the Battle of Tsushima" was the most hilarious comedy of errors I've ever heard of:
Folding Ideas just put out an excellent 2-hour deep dive into how everything blockchain-related works and how the blockchain ecosystem is effectively "Amway, but everywhere you look, people are wearing ugly-ass ape cartoons", started by wealthy rich programmers who are frustrated that the ultra-rich have shut them out and are trying to synthesize the opportunity to be the next Bill Gates or Jeff Bezos.
‘Can I get you something to drink, Monsieur Sartre?’ the waiter asked.
‘Yes, I’d like a cup of coffee with sugar, but with `None::<Cream>`’, the philosopher replied.
A few minutes later, however, the water returned and said,
‘I’m sorry, Monsieur Sartre, but we haven't found `Cream` — how about with `None::<Milk>`?’
A great analogy for SIMD just developed over on /r/rust/: SIMW: Single Iron, Multiple Waffles
If anyone's getting an annoying donation nag from LibreOffice, this solution worked for me: https://www.remembertheusers.com/2019/11/0580-libreoffice-nag-notices.html
I just got introduced to this "Falsehoods Programmers Believe About Phone Numbers" page.
.. which reminds me of a previous good one it's probably referencing: "Falsehoods Programmers Believe About Names":
...both excellent documents.
In case the embed doesn't show up, it's an interview with Alan Kay on the iPhone, the effect of these sorts of ultra-simplified computing technologies on society, and various related and important bits of insight on learning, teaching, and how the human brain works.
Just discovered this excellent article from 2017. It's the kind of deeply insightful thing I wish wasn't such an exception.
Just got another of those "You're infringing my copyrights. Take the image down or I'll sue"-as-a-comment-on-a-random-blog-post scam messages.
This time, they copy-pasted the DMCA boilerplate you'd send to "a service provider" like WordPress.com or Blogger (i.e. not the blogger themself) and you get to the download link without being asked to log into your Google account... but the "download proof" link is broken so I still don't know what the scam is.
For anyone following my blog for the fanfiction reviews, I've started to build a section for brief links to stories with "Magical-Muggle Cooperation" elements at the bottom of the "Recommended “Politics in Harry Potter” fics" page, pending my having time to give the topic a proper list post of its own.
You know you're nerdy when you got a hand-me-down PC and not only have you set it up headless to be accessed over SSH to take accurate benchmark measurements with Criterion.rs, you're wondering how difficult it would be to get the `beep` command to replicate PC Speaker sound effects from childhood DOS games to signal success/failure on completion.
So far, all I've managed to my own satisfaction is getting it to play the first measure of Dies Irae to signal a nonzero exit code.
If anyone wants that, here it is in shell script:
for X in 175 165 175 147 165 131 147 147; do beep -l 600 -f "$X"; done
...plus, this is definitely a "that could have gone much worse" situation.
I really need to scale back my online participation while I'm in the middle of my efforts to fix my sleep issues once and for all.
Impulsiveness and inability to recognize that I'm irritable until someone points it out are the biggest side-effects of me being tired.
Turns out that it was at least partially a "we were both feeling frustration at past experiences with other people" situation, so this is now more a description of what I intend to aim for when PCManFM for GTK+ 2.x goes away and I need to write a small patchset to fix the purely aesthetic disagreements.
(eg. I want my places sidebar to have a white background. They don't want to clutter up the preferences window for something that minor.)
Linux user, open-source enthusiast, science buff, and retro-hobbyist who occasionally reviews fanfiction.
QOTO: Question Others to Teach Ourselves. A STEM-oriented instance.
An inclusive free speech instance.
All cultures and opinions welcome.
Explicit hate speech and harassment strictly forbidden.
We federate with all servers: we don't block any servers.