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.

Srijan Choudhary Srijan Choudhary

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.

Srijan Choudhary Srijan Choudhary

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:

  1. Smooth scrolling broken
  2. Apps work noticeably slower
  3. Screen tearing
  4. 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

Srijan Choudhary Srijan Choudhary

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.

Srijan Choudhary Srijan Choudhary

#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.

Srijan Choudhary Srijan Choudhary
> Reply to Music library management

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).

Srijan Choudhary Srijan Choudhary

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.

Srijan Choudhary Srijan Choudhary
> Reply to Issues · mauricerenck/komments · GitHub

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?

Srijan Choudhary Srijan Choudhary
> Reply to IndieWeb, 2024 edition | Joel Auterson

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).

Srijan Choudhary Srijan Choudhary

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/

#IndieWeb #Feeds

Srijan Choudhary Srijan Choudhary

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.

Srijan Choudhary Srijan Choudhary

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.

Srijan Choudhary Srijan Choudhary
> Reply to mkj: "Actually, more important than backups is restores…" - Mastodon

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.

Srijan Choudhary Srijan Choudhary
> Reply to Missing exit signals for linked processes

I can think of two reasons:

  1. You're not setting trap_exit and the process is exiting with normal reason. But it seems you're setting this.
  2. 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?

Srijan Choudhary Srijan Choudhary

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.

#GTD #Emacs #OrgMode

Srijan Choudhary Srijan Choudhary
> Reply to Issues: OblikStudio/kirby-git

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].
Srijan Choudhary Srijan Choudhary
> Reply to Issues: ~delthas/senpai

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.

Srijan Choudhary Srijan Choudhary

New #Coffee #BlueTokai

This new packaging from BlueTokai looks nice. And the coffee tastes amazing. Chocolatey flavour with very little bitterness.

Photo of a coffee pouch with a beautiful design containing roasted coffee from Sandalwood Estate Coorg India
Srijan Choudhary Srijan Choudhary

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!"