summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guides/setups/operating-systems/debian.org30
-rw-r--r--itches/emacs/development.org17
-rw-r--r--itches/emacs/emoji.org2
-rw-r--r--itches/emacs/language-support.org7
-rw-r--r--itches/emacs/tracker.org48
-rw-r--r--reviews/papers.org4
-rw-r--r--reviews/stack.org5
7 files changed, 104 insertions, 9 deletions
diff --git a/guides/setups/operating-systems/debian.org b/guides/setups/operating-systems/debian.org
index cc7bf0e..dc7f5c5 100644
--- a/guides/setups/operating-systems/debian.org
+++ b/guides/setups/operating-systems/debian.org
@@ -394,6 +394,36 @@ had left an error marker somewhere?]. Steps taken:
(which eventually just writes ~run_im none~ in =~/.xinputrc=).
3. Eventually, maybe I should just uninstall im-config.
+**** random lag
+***** DONE diagnosing
+Since… a few days? weeks? one month? everything randomly becomes
+"choppy":
+
+- typing (Emacs, Terminator, Firefox): I can type in a bunch of words,
+ sit back, wait a few seconds, then watch the words finally write
+ themselves letter by letter.
+- launching programs: ~while time $aprogram ; do sleep 0.5 ; done~,
+ where ~aprogram~ just starts then exits, shows wildly varying times.
+- scrolling a PDF with the touchpad (Evince): the pages stay stuck for
+ a few seconds, then the reader jumps to the new location; the mouse
+ pointer does change during this delay, as text and whitespace
+ (invisibly) scroll by.
+
+I can't remember changing anything recently, nor seeing any scary
+update passing by. journalctl, htop and dmesg do not show any obvious
+suspects. Some things I considered:
+
+- Disabling some services e.g. tor or speech-dispatcher ⇒ no effect.
+- Uninstalling xserver-xorg-video-intel ⇒ no effect.
+- Upgrading systemd from backports ⇒ no effect.
+- htop sometimes shows pulseaudio acting up despite no application
+ playing or recording sound?
+- Maybe I should try reinstalling Debian's stable kernel?
+ - Luckily 5.7 was not uninstalled when upgrading to 5.8; booting on
+ 5.7 solves all of the "choppiness" issues listed above.
+
+Now to pinpoint what's wrong with 5.8…
+***** TODO fixing
* Someday
** fix xfce4-terminal opening links with firefox-esr
** fix Thunar opening images with Firefox instead of Ristretto
diff --git a/itches/emacs/development.org b/itches/emacs/development.org
index a1fe3f2..a3e05da 100644
--- a/itches/emacs/development.org
+++ b/itches/emacs/development.org
@@ -46,6 +46,23 @@ trick, e.g.
&submit=Search!
&idxname=$LIST
#+end_example
+ ⇒
+ #+begin_src elisp
+ (defun mhonarc-to-messageid (url)
+ "Retrieve the Message-ID from an article archived on MHonArc."
+ (interactive
+ (list
+ (let* ((default (or (thing-at-point-url-at-point)
+ (and (derived-mode-p 'eww-mode)
+ (shr-url-at-point nil))))
+ (prompt (if default
+ (format "URL? (%s) " default)
+ "URL? ")))
+ (read-string prompt nil nil default))))
+ (with-current-buffer (url-retrieve-synchronously url)
+ (search-forward-regexp "^<!--X-Message-Id: \\(.+\\) -->$")
+ (message (xml-substitute-numeric-entities (match-string 1)))))
+ #+end_src
- public-inbox: trivial
*** TODO HTTP archive → Message-ID
- <https://lists.gnu.org>: cf. =X-Message-Id= comment in HTML
diff --git a/itches/emacs/emoji.org b/itches/emacs/emoji.org
index a66ec87..0d163c7 100644
--- a/itches/emacs/emoji.org
+++ b/itches/emacs/emoji.org
@@ -7,7 +7,7 @@ Bug#35781 fixed by Yamamoto Mitsuharu.
* TODO Check whether combining sequences work
-For example:, regional flags, ZWJ sequences from
+For example: regional flags, ZWJ sequences from
- ZWJ sequences from
<https://unicode.org/emoji/charts/emoji-zwj-sequences.html>:
diff --git a/itches/emacs/language-support.org b/itches/emacs/language-support.org
index 8ec766e..375b657 100644
--- a/itches/emacs/language-support.org
+++ b/itches/emacs/language-support.org
@@ -9,8 +9,6 @@ Default to "mixed" (rely on tests to ensure user-visible change).
**** TODO create variable to choose style
Users could customize it or set it with directory-local variables.
*** TODO add heuristic to pick the "right" style
-** Fontify f-strings
-E.g. =f'an {expression} that should be highlighted'=.
* Shell scripts
@@ -36,10 +34,7 @@ foo_bar \
${foo}bar \
indentisfoobar
#+end_src
-
-
-* Makefile
-** Recognize [[http://austingroupbugs.net/view.php?id=330][POSIX "immediate-expansion"]] operator ~::=~
+Reported by Dario Gjorgjevski in bug#44592.
* Assembly
diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org
index ba198b0..bec0311 100644
--- a/itches/emacs/tracker.org
+++ b/itches/emacs/tracker.org
@@ -154,6 +154,54 @@ Fixed by Dmitry.
:TestAdded: t
:END:
My commit message ran afoul of debbugs.el's =M-m= again.
+*** ERC
+**** TODO Support SASL authentication
+Got bitten by this when trying to connect to irc.freenode.net from
+=alyon-654-1-454-60.w109-213.abo.wanadoo.fr=:
+#+begin_quote
+ERROR from irc.freenode.net: Closing Link:
+alyon-654-1-454-60.w109-213.abo.wanadoo.fr (SASL access only)
+#+end_quote
+
+This was requested in [[bug:29108]]. Lars closed this report because
+while there is a third-party package to implement the feature, its
+author did not respond when prompted for copyright assignment.
+
+I did not have the patience to look at the package; instead I went
+straight to [[https://ircv3.net/specs/extensions/sasl-3.1][the description of SASL on ircv3.net]] and the [[https://tools.ietf.org/html/rfc4616#section-2][RFC for the
+=PLAIN= mechanism]], and cobbled this silly patch:
+
+#+begin_src diff
+diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
+index 1d5506e281..0da677ac18 100644
+--- a/lisp/erc/erc.el
++++ b/lisp/erc/erc.el
+@@ -6052,7 +6052,17 @@ erc-login
+ erc-session-server
+ erc-session-user-full-name))
+ (if erc-session-password
+- (erc-server-send (format "PASS %s" erc-session-password))
++ (progn
++ (erc-server-send "CAP REQ :sasl")
++ (erc-server-send "AUTHENTICATE PLAIN")
++ (erc-server-send
++ (concat "AUTHENTICATE " (base64-encode-string
++ (string-join (list
++ (user-login-name)
++ (erc-current-nick)
++ erc-session-password)
++ "\0"))))
++ (erc-server-send "CAP END"))
+ (message "Logging in without password"))
+ (erc-server-send (format "NICK %s" (erc-current-nick)))
+ (erc-server-send
+#+end_src
+
+AFAICT this is enough to get me authenticated on Freenode. It looks
+like it's not too hard to implement?
+
+Ideally Emacs's builtin =sasl.el= should be reused; that would let ERC
+support better SASL mechanisms than =PLAIN=.
*** Gnus
**** DONE [[bug:40520]] Prevent duplicate thread titles
:PROPERTIES:
diff --git a/reviews/papers.org b/reviews/papers.org
new file mode 100644
index 0000000..57bd65b
--- /dev/null
+++ b/reviews/papers.org
@@ -0,0 +1,4 @@
+* [[https://arxiv.org/abs/2011.06171][The Usability of Ownership]] :rust:
+I'm glad I learned "incompleteness" as a more concise way to express
+"the borrow checker not being smart enough to accept code that does
+not violate Rust's theoretical ownership rules".
diff --git a/reviews/stack.org b/reviews/stack.org
index 71452f9..e2f67f7 100644
--- a/reviews/stack.org
+++ b/reviews/stack.org
@@ -1,6 +1,7 @@
A list of things I plan on checking out someday, or did check out but
have not yet commented on.
-* The Soul of a New Machine
-
+* [[https://www.tracykidder.com/the-soul-of-a-new-machine.html][The Soul of a New Machine]]
* [[https://wayland-book.com/][The Wayland Protocol]]
+* [[https://www.crowdsupply.com/sutajio-kosagi/hardware-hacker][The Hardware Hacker]]
+Sold e.g. on [[https://nostarch.com/hardwarehackerpaperback][No Starch Press]].