Notes
This is my microblog, containing short informal entries. See my blog for longer entries. An RSS feed contains the full text of all my notes.
Read an interesting set of posts today: https://lethain.com/extract-the-kernel/ and https://lethain.com/executive-translation/ . The basic concept is:
... executives are generally directionally correct but specifically wrong, and it’s your job to understand the overarching direction without getting distracted by the narrow errors in their idea.
This resonates well with my experience. I have been doing this unconsciously, but it's good to put it in these words.
Tried using X11 on #Linux the last few days due to some issues with Zoom screensharing in Wayland with the latest pipewire, and I already miss #Wayland.
Issues I faced with X11:
- Smooth scrolling broken
- Apps work noticeably slower
- Screen tearing
- This bug in Emacs GTK build: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67654 (To be fair, this is a GTK-specific issue, not X11 specific)
I will go back to Wayland as soon as Zoom fixes this: https://community.zoom.com/t5/Zoom-Meetings/share-screen-linux-wayland-broken/m-p/203624/highlight/true#M112235
> Reply to
I do it because that's the way most social feeds display, so in my mind, that's how users expect it. Though I can see the benefit of maybe adding a sorting toggle or option.
> Reply to
I've been using lnav for this, but Emacs can be a better choice. We can probably also combine this with TRAMP to view remote logs.
I have been using #karousel on #KDE for several weeks, and yesterday shifted to #PaperWM on #GNOME. Took some time to configure things like I wanted, but it's much smoother than karousel (and fancier).
Overall, I like the scrolling tiling pane paradigm. I realized I've been manually doing something like this using workspaces with 1-2 windows per workspace with two keybindings - one to change workspace and one to switch windows inside a workspace. So, this window management model really clicks for me.
I switched from GNOME to KDE several years ago due to getting burnt by extensions breaking too frequently, but hopefully things are better now.
> Reply to
It should be compatible.
The error you're getting is Rdmtx.c:26:10: fatal error: 'dmtx.h' file not found
, which makes me think that it cannot find the dmtx shared library needed for compilation. Check if that's installed for your system.
#Emacs #TIL : I learned about save-interprogram-paste-before-kill
- which saves the existing system clipboard text into the kill ring before replacing it. This ensures that Emacs kill operations do not irrevocably overwrite existing clipboard text.
A common workflow for me is to copy some text from a different application and paste it inside Emacs. But, if I want to first delete a word or region to replace, the deleted word or region goes to the system clipboard and replaces my copied text. This config saves the previous entry in the system clipboard so I can do a C-p
after paste to choose the previous paste.
> Reply to
The nice thing about auth-source is that it has a pluggable backend - it can be used with any password store like OS keyring, password manager, etc. See some backends at https://melpa.org/#/?q=auth-source- and https://github.com/search?q=%22auth-source%22+language%3A%22Emacs+Lisp%22+&type=repositories
I use it with the 1password backend, and it works seamlessly.
> Reply to
It's a little costly ($15 per month or $150 per year), but I've been using Roon for this for the last few years. You can run the roon server either on MacOS or any laptop/desktop, or on a homelab server. And the mobile client app has download support and CarPlay support.
I actually use it linked to Tidal for new music discovery, and if I like something, then I buy it separately and add to my library.
You can try it out for 30 days (or use my referral link for extra 30 days free if you decide to sign up for the yearly plan).
Something precious stolen by magic.
#WitchHatAtelier #Manga #Magic
My small #emacs #orgmode #gtd customization of the day:
org-edna is a plugin that can be used to setup auto triggers (and blockers) when completing a task. org-gtd uses it to auto-forward the next TODO item in a project to NEXT when a task in the project is marked as DONE. The #orgedna trigger it uses is: relatives(forward-no-wrap todo-only 1 no-sort) todo!(NEXT)
.
This works okay for me, but also results in tickler tasks configured as repeated tasks to go to NEXT state instead of TODO state when they are completed. This results in them showing up in the org agenda even before they are due.
To fix this, I had to add this property to the top-level headings of the tickler file:
:PROPERTIES:
:TRIGGER: self todo!(TODO)
:END:
This overrides the global triggers configured by org-gtd for these org subtrees.
> Reply to
Compatibility issue with indieConnector v2.1.1?
I get this error when getting an indieweb reply:
Error: Call to a member function kommentsInbox() on string
#18 /var/www/html/site/plugins/komments/utils/receiveKomment.php(14): mauricerenck\Komments\KommentReceiver::storeData
#17 /var/www/html/site/plugins/komments/components/hooks.php(28): Kirby\Cms\App::mauricerenck\Komments\{closure}
#16 [internal](0): Closure::call
#15 /var/www/html/vendor/getkirby/cms/src/Toolkit/Controller.php(60): Kirby\Toolkit\Controller::call
#14 /var/www/html/vendor/getkirby/cms/src/Cms/Event.php(139): Kirby\Cms\Event::call
#13 /var/www/html/vendor/getkirby/cms/src/Cms/App.php(1645): Kirby\Cms\App::trigger
#12 /var/www/html/site/plugins/indieconnector/lib/WebmentionReceiver.php(119): mauricerenck\IndieConnector\WebmentionReceiver::triggerWebmentionHook
#11 /var/www/html/site/plugins/indieconnector/lib/WebmentionReceiver.php(46): mauricerenck\IndieConnector\WebmentionReceiver::processWebmention
#10 /var/www/html/site/plugins/indieconnector/plugin/hooks.php(55): Kirby\Cms\App::mauricerenck\IndieConnector\{closure}
#9 [internal](0): Closure::call
#8 /var/www/html/vendor/getkirby/cms/src/Toolkit/Controller.php(60): Kirby\Toolkit\Controller::call
#7 /var/www/html/vendor/getkirby/cms/src/Cms/Event.php(139): Kirby\Cms\Event::call
#6 /var/www/html/vendor/getkirby/cms/src/Cms/App.php(1645): Kirby\Cms\App::trigger
#5 /var/www/html/site/plugins/indieconnector/plugin/routes.php(37): Kirby\Http\Route::mauricerenck\IndieConnector\{closure}
#4 [internal](0): Closure::call
#3 /var/www/html/vendor/getkirby/cms/src/Http/Router.php(120): Kirby\Http\Router::call
#2 /var/www/html/vendor/getkirby/cms/src/Cms/App.php(338): Kirby\Cms\App::call
#1 /var/www/html/vendor/getkirby/cms/src/Cms/App.php(1191): Kirby\Cms\App::render
#0 /index.php(18): null
I see a change in indieConnector v2.1.1: "webmention now sends uuid instead of page object (ee93c5d)".
To confirm, I tried it with this commit reverted, and it works.
Does komments need a new release to be compatible with indieConnector v2.1.1?
> Reply to
Nice. I've been using a kirby plugin for micropub, but have always wanted to customize it for handling tags like you mentioned.
Note: Your last link to a note is a broken link (references localhost).
> Reply to
Yeah, happens a lot. I think your brain kept working on the problem in background for the week.
Note to followers of my site using RSS feeds - I've removed the microblog replies/likes etc kind of posts from the "All Posts" feed. I feel social interaction posts like that should not be part of the default feed of my website.
There is always the notes feed that includes all microblog posts including reactions / interactions.
A list of feeds available can be found here: https://srijan.ch/feed/
I have been reading books mostly on Kindle for the last 10 years or so. Visited a nearby library today.
I didn't realize I was missing the experience of browsing shelves, stumbling upon unexpected gems, getting lost in the recommendations section, and choosing something physical to checkout.
Webmention rocks tests
Redoing these tests with indieConnector v2.1.0
Discovery Tests 1-22: PASS
Discovery Test 23: FAIL
Update Test 1: PASS
Update Test 2: FAIL
Delete Test 1: Not Tested
Receiver Tests 1-2: PASS
> Reply to
Yes, it's here: https://github.com/srijan/library_sample
> Reply to
One thing I sometimes do when facing this is run sudo strace -p <pid>
to see what system calls it is making. Is it even doing something or stuck.
Using sysrq on my laptop - documenting mostly for myself.
My laptop has started freezing sometimes, not sure why. Usually, I can just force power off using the power button and start it again, but it has happened twice that I had to recover the system by booting via a USB drive, chrooting, and recovering the damaged files using fsck or pacman magic.
The linux kernel has:
a ‘magical’ key combo you can hit which the kernel will respond to regardless of whatever else it is doing, unless it is completely locked up.
(More details on archwiki and kernel doc)
To enable, I did:
echo "kernel.sysrq = 244" | sudo tee /etc/sysctl.d/sysreq.conf
sudo sysctl --system
However, to trigger this on my laptop, I was not able to find the right key combination for SysRq. I was able to make it work using an external keyboard that has a PrintScreen binding on a layer, by using the following:
Press Alt and keep it pressed for the whole sequence: PrintScreen - R - E - I - S - U - B
Currently, PrintScreen on my external keyboard is bound to Caps lock long press + Up arrow.
Liked: [Michał Sapka's website] Emacs: watching YouTube with Yeetube and mpv
Yeetube is an Emacs wrapper around searching and viewing videos on Youtube.
> Reply to
I reviewed this recently, and found that I needed at least one device where I was logged in to 1password to be able to restore everything. So, I've started keeping a paper key with the 1password secret key so that I can restore it as well.
One addition I wanted to do was to have some kind of manual encryption in the paper key so that I'm secure as well.
> Reply to
According to https://www.freedesktop.org/software/systemd/man/latest/systemctl.html , the possible states are not constant and new systemd releases can both add and remove values. This command can be used to display the current set of possible values:
systemctl --state=help
Liked: Working with org-mode and confluence
I've not faced this issue, but good to know.
> Reply to
I can think of two reasons:
- You're not setting trap_exit and the process is exiting with
normal
reason. But it seems you're setting this. - The exit message is somehow getting "eaten" by some other
receive -> _
in your gen_server process.
Also, I don't think live reload should affect this. It should work across reloads.
Can you share the full code of your gen_server?
Found Samuel's nice post on capturing data for org via email.
This is very close to what I was looking for to be able to do GTD capture on-the-go either from phone apps like Braintoss or from any email app.
One addition I would like to make is handling attachments in the email by downloading them and attaching to the org entry.
This would be useful for voice notes from Braintoss - it does transcription of the audio and adds it to the email body, but sometimes it doesn't work so well and I have to fall back to listening to the audio. It will also be useful for forwarded emails containing attachments.
> Reply to
Unable to install with Kirby v4 via composer
The composer.json
in the current release requires "getkirby/cms": "^3.7",
, which ^4.0.0
does not satisfy.
Full error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- oblik/kirby-git[1.0.0, ..., 1.1.0] require getkirby/cms ^3.3 -> found getkirby/cms[3.3.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
- oblik/kirby-git 1.2.0 requires getkirby/cms ^3.4 -> found getkirby/cms[3.4.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
- oblik/kirby-git 1.3.0 requires getkirby/cms ^3.6 -> found getkirby/cms[3.6.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
- oblik/kirby-git 1.4.0 requires getkirby/cms ^3.7 -> found getkirby/cms[3.7.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
- Root composer.json requires oblik/kirby-git * -> satisfiable by oblik/kirby-git[1.0.0, ..., 1.4.0].
> Reply to
A nice summary of prompt injection. I think this is only solvable if the model natively takes two inputs and explicitly considers the second untrusted.
Liked: Implement Custom Tramp Method in Emacs
As expected, everything in Emacs is very customizable, including custom transport handlers in tramp and even custom completions for tramp.
Liked: Cloudflare does not consider vary values in caching decisions
I've not encountered this problem before, but good to keep it in mind.
@rogerlipscombe@hachyderm.io has a nice post on using git with multiple identities. His recommended way (using includeIf
to include different config files for different parent folders) also makes sense to me the most.
Liked: A story about MS Swaminathan and India’s Green Revolution
A nice short history about India's Green Revolution and the balance needed between short-term yields and long-term soil fertility.
> Reply to
You can also use paged feeds to provide access to older entries, though I'm not sure how many feed readers support that.
> Reply to
Keybinding to jump to first unread message
Right now, there is an unread indicator bar that can be used to manually scroll up to the first unread / last read message. It would be nice if there is a keybinding to jump directly to it as well.
Also, (related to https://todo.sr.ht/~taiite/senpai/96), when we are not at the bottom of a buffer, it would be nice to have a count of messages below it.
> Reply to
I've been thinking about this for my site as well.
I'm mostly okay with replies being top level notes by themselves, but it would be nice to have a single page where all replies to my original post are present, including my replies to someone else's reply.
My new #IndieWeb enabled website is now live!
You can follow my microblog posts or blog articles by entering @srijan.ch@srijan.ch in your Fediverse app search bar or reply and interact with any post using #Webmention or your Mastodon/Fediverse app.
Site Features:
- Indieauth
- Webmentions
- Federation with the fediverse (via Bridgy Fed)
- Structured author, posts, and feeds using microformats
- Microsub
New #Coffee #BlueTokai
This new packaging from BlueTokai looks nice. And the coffee tastes amazing. Chocolatey flavour with very little bitterness.
> Reply to
I've been using the indieConnector plugin by mauricerenck with #Kirby.
> Reply to
Some webmention.rocks tests are failing
I tested this plugin with the validator at webmention.rocks and most tests passed!
But these tests failed:
- Discovery test 23: https://webmention.rocks/test/23
- Update test 2: https://webmention.rocks/update/2
- Delete test 1: https://webmention.rocks/delete/1
> Reply to
This looks so cool! I'm working on webmentions display on my site as well and opted for a more "blog comments" kind of view. But this is making me rethink.
Test webmention + fed.brid.gy:
Two naked tags walk into a bar. The bartender exclaims, "Hey, you can't come in here without microformats, this is a classy joint!"
I've been working on an Indieweb-enabled site redesign using Kirby CMS + TailwindCSS.