org-store-link mairix?

Intro I upgraded orgmode recently and added org-contrib to my loading. I’m not sure if that’s related or not, but suddenly, when I invoke org-capture on a Gnus message (which used to happen seamlessly, suddenly I am getting the following selection message, asking me whether I want org-mairix-store-gnus-link or the old working default org-gnus-store-link . This is the first time I have ever heard of Mairix, and I can’t find any customizations to set to get it to stop asking me.

ublock-origin to stop manifest files and allow you to avoid PWAs

Intro I use Firefox Mobile, which tries to install the PWA (Progressive Web App) of sites whenever it finds a manifest file; otherwise it allows installation to just add a Firefox link to the site instead, which is what I want. This can be done with the Ublock plugin1. I’m struggling to find the right syntax for this; I believe I want a static filter that applies to any site. An example of the line that brings the manifest from Google Photos is this:

A tip to recover blank screens with EXWM

Intro Sometimes in EXWM when I switch machines to and plug in my dock to an already running system, one or two of my external monitors stay black1. Sometimes this also occurs when my smart-dock2 changes power levels to the dock. It has enough throughput to utilize my whole 100w power inlet, but its “smarts” mean that when I connect my USBC phone, for instance, the amount of power going out changes dramatically and the shift can “lose” my two HDMI monitors until I do the trick below.

Always open localhost in private Firefox

Don’t do webdev work in your personal browser account Opening dev sites in your primary browser/account is problematic. Opening in Private (FireFox) or Incognito (Chrome) is a must, since it usually turns off caching and removes you from any left-over accounts that might be interfering with your validation. I’ve always done dev sites in my dev browser, so good to hear a group that recognized (sort of) this: https://polypane.app/blog/always-open-localhost-in-your-development-browser/ And disclaimer: Polypane who wrote the article is a paid browser (after 2 weeks).

Git fatal: unknown index entry format 0x72000000

Intro I used a recursive git rename, but thoughtlessly used it at the top level of my project, where my .git could be effected. Git then broke on all commands with error, fatal: unknown index entry format 0x72000000 Thankfully this can be easily fixed by removing and resetting the git index1. $ rm -rf .git/index $ git reset Instead of the rm I just moved the git to a safe place in case I needed something less destructive.

macro power: removing weekends from repeating event

Updated: [2021-12-09 Thu] comment clarifying “macros” Intro Time to make a new daily event for the next 90 days, but it shouldn’t have weekends. Most of these steps become muscle memory after getting used to emacs macro power in orgmode files, sql dumps, dired find-and-replace, text formatting, YAML/XML/HTML/JSON/EDN tailoring, etc. It’s the speed and flexibility of this method that shines, allowing for solutions to very specific problems, or just nice custom orgmode agenda entries in this case.

Uploading Files and Handling Upload Requests in Clojure[script]

What’s the secret? I have used ajax uploads and interactions in Clojure forever; it’s a bread-and-butter skill to use AJAX and JSON1. However, my WordPress usage led me to believe it would be equally trivial to handle file uploads. It turned out to be less trivial than I expected, though. In summary, the secrets I needed were: Make sure the encType on the client is "multipart/form-data", which happens differently with AJAX than with plain HTML

Producing a VSCode-style code screenshot for Twitter with ImageMagick

The Goal The Trouble with Image Magick I am new to Image Magick but am trying to get it to convert my image to a size and background pleasant for Twitter. The qualities I’m going for are as follows1: my overall canvas size 16:9, so about 1200x675 my actual screenshot centered and about 3/4 the width background texture of my choosing My early attempts were like the following, but it didn’t seem to actually do anything:

How to check keybindings in isearch mode

I can use C-h m to check the bindings of my current major mode, if it’s one where I can rest my cursor. But how can I check the bindings that are present in, eg, isearch mode? I can set up such bindings, but I’m not sure how to review them. Answer: describe-keymap In emacs 28 there seems to be created the perfect function for this: (describe-keymap)1 Footnotes 1 Thanks to the answer on Reddit for this one: https://www.

HTML project in emacs

The Task An old (ie 10+ years old) desktop application needed to be converted to a web application for modernization purposes. The program was a simple display of textbook-style information with links to audio content. We decided to build this with as simple a technology as possible, with hopes for longevity to exceed what it has had before: raw HTML and CSS, with as little Javascript as possible, optimizing compatibility1, longevity, and load time.