nmtake 1 week ago • 100%
** 'minibuffer-allow-text-properties' also affects completions. When it has a non-nil value, then completion functions like 'completing-read' don't discard text properties from the returned completion candidate.
Thanks for the commit! It looks very handy when we pass propertized strings to completing-read.
nmtake 2 weeks ago • 100%
You don't need pulseaudio
and pipewire
at the same time because pipewire
provides pulseaudio-compatible server (pipewire-pulse). Also, pipewire
usually doesn't require audio
group. Did you follow the official docs or other online guide?
nmtake 2 weeks ago • 100%
Although I haven't used Arch for a long time, I guess https://wiki.archlinux.org/title/Kernel#Compilation and https://wiki.archlinux.org/title/Kernel/Arch_build_system will work.
nmtake 2 weeks ago • 100%
"emacsclient --alternate-editor=''"
may work.
If you need to solve the systemd issue, please post "systemctl --user cat emacs"
(assuming the unit is "emacs"
) here.
nmtake 2 weeks ago • 100%
“Pactl load-module” outputs “you have to specify a module name and arguments.”
As I said in earlier comment, please run "pactl load-module module-switch-on-connect"
exactly.
Note that Pactl
and pactl
are different commands and the former is invalid.
Is the command different for that?
As the name suggests, pactl
is a command for PulseAudio. PipeWire supports
application written for PulseAudio, including pactl
. Try "man pipewire-pulse"
to get further info.
nmtake 2 weeks ago • 100%
Did you enter the command line (especially load-module
) correctly?
nmtake 2 weeks ago • 100%
It's not a silly question; I thought it doesn't matter because PipeWire supports Pulseaudio.
nmtake 2 weeks ago • 100%
Can you try "pactl load-module module-switch-on-connect"
?
nmtake 3 weeks ago • 100%
I'd try other (lightweight) distros for that case. Since your PC is old, it may not fulfil the latest Ubuntu's system requirements.
nmtake 3 weeks ago • 100%
I think GET /api/v3/resolve_object
should work:
curl --url-query q=https://feddit.org/post/2401677 \
https://lemmy.ml/api/v3/resolve_object \
| jq .
(note that the value of q
is url-encoded by --url-query
)
nmtake 3 weeks ago • 100%
Oh it was hard. FYI Fedora supports a major version for a year. To upgrade from non-supported old version, additional steps may be required:
- https://en.wikipedia.org/wiki/Fedora_Linux#Releases
- Can I upgrade from an End Of Life (EOL) release?
I hope you could solve the new issue too.
nmtake 4 weeks ago • 100%
It's not a dead end :) Can you
- make sure
"systemctl suspend"
suspends your machine to check suspend work - Run
"gnome-tweaks"
and there's no suspend inhibitor in the "Startup Applications" - post the output of
"systemd-inhibit | less"
to know who inhibit the suspend - post the output of
"gsettings list-recursively | grep -i 'lid\|suspend'"
(Please remove enclosing double quotes when you try them.)
nmtake 4 weeks ago • 100%
If I'm reading it right, it's saying it should be working?
I think so, but I might be overlooking something.
Apparently # makes a line huge? All the huge lines are preceded by a #
As macniel said, a line starts with "#" is converted to a heading. To post preformatted lines such as the log or source code, you can use "fenced code block". For example,
```
foo
#bar
baz
```
becomes
foo
#bar
baz
nmtake 4 weeks ago • 100%
Can you run these commands and paste the output here?
$ systemd-analyze cat-config systemd/logind.conf | grep -i lid
$ grep -i lid /etc/UPower/UPower.conf
nmtake 4 weeks ago • 100%
I’m seeing several little elements that are not getting compiled the same between their builds and what make produces with GCC.
Did you run make clean
between the builds?
nmtake 1 month ago • 100%
Yes. In a typical live USB session, all changes are written to the RAM, so they are lost on the shutdown. Some live USB supports persistent storage, but I think it's not so common.
nmtake 1 month ago • 100%
I see. Before the switching, you may want to try Linux on Windows using WSL2 or VirtualBox, etc. Also, Mint and other distros provide bootable image, so you can try it without installing Mint on your machine. Good luck!
nmtake 1 month ago • 100%
Kernels are usually intalled in '/boot', and we usually install new kernels via a package manager (gnome-software, pacman, dnf, etc.). What distro and package manager are you using?
nmtake 1 month ago • 100%
New kernel may introduce regressions. See this similar issue on kernel 6.10.3, or try another version of kernel on startup if it's possible.
nmtake 1 month ago • 100%
Can you try true
instead of True
?
https://specifications.freedesktop.org/desktop-entry-spec/latest/value-types.html
Values of type boolean must either be the string true or false.
nmtake 1 month ago • 100%
You can get 50 items at most with limit=50
. Try
https://lemmy.ml/feeds/c/lemmy_support.xml?sort=New&limit=50
nmtake 1 month ago • 100%
Thankfully, with a modern minibuffer UI package (Ivy or Vertico, for example), we don't need to remember arcane key bindings to run rarely used commands. To run such command, just run M-x and enter a substring of the command name. This video (posted here months ago) explains this topic very well.
For Emacs's help system (Info), I recommend to try C-h R info
.
nmtake 2 months ago • 100%
Here is the screenshot:
.
I think it's worth to try if you just want to play the song from minibuffer.
nmtake 2 months ago • 91%
Please note that many users of FOSS are also developers or contributors. Who wants to report a bug or send a patch if the community is worse?
nmtake 2 months ago • 100%
- Gimp to batch edit pictures in a script (I know about ImageMagick but still)
It seems to exist: https://www.gimp.org/tutorials/Basic_Batch/
nmtake 2 months ago • 100%
Bash should be fine. On typical Bash installation I think this will work (please try to understand each command line before you actually try):
$ cp ~/.bashrc ~/.bashrc.bak
$ cp ~/.bash_history ~/.bash_history.bak
$ printf 'set +o history' >> ~/.bashrc
$ printf "sudo apt update\nsudo apt upgrade\n" > .bash_history
$ (Press Ctrl+D to logout)
For the next bash session you can refer only the two commands from the history with Up/Down/C-p/C-n.
nmtake 2 months ago • 100%
Long ago I made such restricted shell with filtering the shell command history file then disabling command history logging. With some shell scripting, I think you can get more sophisticated version. What shell are you using? (Bash, Fish, Zsh, etc.)
nmtake 2 months ago • 100%
Not a direct solution but GET /api/v3/site
may help.
nmtake 2 months ago • 100%
The repository has Makefile so you can build the executable with make
:
$ cd /tmp
$ git clone https://git.sr.ht/~leon_plickat/lswt
$ cd lswt
$ make
$ ./lswt
$ sudo make install (optional)
nmtake 2 months ago • 100%
I think https://git.sr.ht/~leon_plickat/lswt may work.
nmtake 3 months ago • 100%
Some applications can't display some Unicode strings like s̵t̵r̵o̵k̵e̵, so replacing Markdown element like ~strike~
with Unicode equivalent (s̵t̵r̵o̵k̵e̵ ) may not be a good idea if you want portability. I opened your post in text editors and noticed that neovim-qt drops s̵t̵r̵o̵k̵e̵'s combining characters (issue on Github) and just displays
stroke instead of s̵t̵r̵o̵k̵e̵; GUI Emacs with my font settings (Noto) doesn't combine
the characters and displays s-t-r-o-k-e-
(as I said, this may depends on font settings).
nmtake 4 months ago • 100%
Can you get the stack trace with (setq debug-on-error t)
? The error means rx
got wrong regex form like
(rx (** 3 2 "a"))
or (rx (** 3 nil "a"))
.
nmtake 4 months ago • 100%
I don't know why the motion didn't work in Evil mode, but if the goal is deleting all invisible Unicode characters, I'd write a command like this:
(defun my/delete-invisibles-in-region (start end)
"Delete invisible characters in the region specified with START and END."
(interactive "r")
(save-excursion
(replace-regexp "\u200B\\|\u200C" "" nil start end))
;; (query-replace-regexp "\u200B\\|\u200C" "" nil start end))
(deactivate-mark))
nmtake 4 months ago • 100%
Try glyphless-display-mode
:
https://emacs.stackexchange.com/questions/65108/zero-width-space-shows-as-underscore
nmtake 4 months ago • 100%
Thank you for trying the package! I completely forgot to mention require
in README, and didn't know package-vc-install
. I'll add it to README later.
I’m using emacs’ built-in completion–it works fine.
I hope it works on other packages like helm or ivy too.
nmtake 4 months ago • 100%
Fixed wrong link - now the post title correctly link to the repository ;)
I wrote this script to learn how `completing-read`'s [complex arguments](https://www.gnu.org/software/emacs/manual/html_node/elisp/Programmed-Completion.html) works. Compared to other clients it's quite limited; but thanks to packages like Vertico and Orderless, it works quite well for my use cases. [Screenshot](https://lemm.ee/pictrs/image/bf3321ff-097e-4340-a10b-a804dd36012f.webp)
nmtake 5 months ago • 83%
One of the reasons is it makes moderation (including soft moderation by users like downvotes or reports) harder. Users not familiar with Japanese can't decide whether the post follows the rule and is on topic.
nmtake 5 months ago • 100%
I stick with C-s (similar to vim's /
) because of the exact reason
you said, and I'm happy with C-s.
Please note that C-s <some characters> RET
moves the cursor
at the end of the target (/
moves it at the beginning).
If you don't like the behavior, see this post (I use C-s ... C-r RET
in that case).
In vim terminal I use `C-[` for ESC to escape from insert mode a lot, but didn't know `C-[` works in GUI version of Emacs until recently. Since Meta can be replaced with ESC, we can enter `C-M-s`, for example, with `C-[ C-s`.
Thorough report about the recent Fediverse spam. Related posts: * We seem to be getting attacked. - https://lemmy.giftedmc.com/post/235816 * Solutions and origins of the spam wave currently hitting the Fediverse - https://feddit.cl/post/1883287 * Mastodon CVE Report - https://hachyderm.io/@maegul/111944073448637061 * Remote User Impersonation and Takeover via Cache Poisoning - https://arcanican.is/excerpts/cve-2024-23832/discovery.htm * Remote user impersonation and takeover - https://github.com/mastodon/mastodon/security/advisories/GHSA-3fjr-858r-92rw
The library has [a nice guide](https://github.com/LemmyNet/activitypub-federation-rust/tree/main/docs) and [two working examples](https://github.com/LemmyNet/activitypub-federation-rust/blob/main/examples/README.md), so I tried the `local_federation` example. To build the example, you need Rust compiler, cargo package manager, and git: ``` $ git clone https://github.com/LemmyNet/activitypub-federation-rust $ cd activitypub-federation-rust $ cargo run --example local_federation axum [INFO local_federation] Start with parameter `axum` or `actix-web` to select the webserver [INFO local_federation::axum::http] Listening with axum on localhost:8001 [INFO local_federation::axum::http] Listening with axum on localhost:8002 [INFO local_federation] Local instances started [INFO local_federation] Alpha user follows beta user via webfinger [INFO activitypub_federation::fetch] Fetching remote object http://localhost:8002/.well-known/webfinger?resource=acct:beta@localhost:8002 [INFO activitypub_federation::fetch] Fetching remote object http://localhost:8002/beta [INFO activitypub_federation::fetch] Fetching remote object http://localhost:8001/alpha [INFO local_federation] Follow was successful [INFO local_federation] Beta sends a post to its followers [INFO local_federation] Alpha received post: Hello world! [INFO local_federation] Test completed ``` You may want to use network analizyer (e.g, wireshark) to see how it works under the hood. ``` GET /.well-known/webfinger?resource=acct:beta@localhost:8002 HTTP/1.1 accept: application/jrd+json digest: SHA-256=[redacted] signature: keyId="http://localhost:8001/#main-key",algorithm="hs2019",[...] host: localhost:8002 HTTP/1.1 200 OK content-type: application/json content-length: 269 date: Sat, 03 Feb 2024 23:05:19 GMT { "subject": "acct:beta@localhost:8002", "links": [ { "rel": "http://webfinger.net/rel/profile-page", "type": "text/html", "href": "http://localhost:8002/beta", "template": null }, { "rel": "self", "type": "application/activity+json", "href": "http://localhost:8002/beta", "template": null } ] } [...] ```
Lemmy 0.19ではいくつかの機能変更の他に破壊的変更としてアクセストークンの使い方が変わるのだとか。サードパーティのLemmyクライアントの中にはログインできなくなったりログイン状態が無効になるものも出てくるかもしれないですね。
米軍 (.mil) が間違えてマリ共和国 (.ml) にメール送ってたとかいうニュースがありましたけど、良くも悪くもLemmyは持ってますね… lemmy.mlどうするんだろ 詳細は以下もどうぞ: * https://sh.itjust.works/post/1473025 * https://sh.itjust.works/post/1484592 * https://lemmy.ml/post/2286939
lemmy.worldも被害を受けたみたいですね。人多いのに… * https://github.com/LemmyNet/lemmy-ui/commits/0.18.2-rc.1 * https://lemm.ee/post/942359 - インスタンスのadmin管理者向けまとめと緩和方法 * https://github.com/LemmyNet/lemmy/issues/3499 - JWTトークンが期限切れしない問題 * https://github.com/LemmyNet/lemmy/issues/3364 - JWTトークンがログアウトしても無効化されない問題
One of the best live version I believe.