nmtake

joined 1 year ago
[–] [email protected] 3 points 1 week ago

Oddly, the endpoint on lemm.el and lemmy.ml return comments:

> curl 'https://lemm.ee/api/v3/comment/list?post_id=45734814' | jq '.comments.[] | .comment.content[:50]'
"Yeah, you're right. I didn't read enough of the do"
"Thank you for the tip ... but whatever I try with "
"~~In 0.19.5, they removed the deprecated `post_id`"

> curl 'https://lemmy.ml/api/v3/comment/list?post_id=21766749' | jq '.comments.[] | .comment.content[:50]'
"Yeah, you're right. I didn't read enough of the do"
"Thank you for the tip ... but whatever I try with "
"~~In 0.19.5, they removed the deprecated `post_id`"

I think it would be better to ask the admin of the instance before creating the issue.

[–] [email protected] 5 points 1 week ago

Roots of Pacha - well polished, stress free farming sim. Highly recommended if you like Stardew Valley or Story of Seasons.

[–] [email protected] 2 points 1 week ago

Vertico expands the minibuffer which I do not like.

You might want to try some Vertico extensions such as vertico-flat that displays completion candidates horizontally.

[–] [email protected] 1 points 2 weeks ago

Thanks for writing the summary for the current image-proxying related issues. I prefer the "proxying images route" for better privacy, but its drawbacks sounds worse.

If Lemmy has a user-customizable setting like "Don't load external media automatically" (including images, videos, etc.), I'm happy with the "passing through external images" route.

[–] [email protected] 0 points 3 weeks ago

Since it's a MediaWiki page you can get Markdown source of the page with appending action=raw query to the URL.

[–] [email protected] 2 points 3 weeks ago (1 children)

I see. Thanks for the explanation. It seems a long standing issue: https://github.com/Maato/volumeicon/issues/49

[–] [email protected] 3 points 3 weeks ago (3 children)

But the problem is that if you plug in a USB or bluetooth headset, it doesn’t automatically switch to it as the default.

How about module-switch-on-connect?

[–] [email protected] 2 points 1 month ago

You may need gtk-murrine-engine (actual package name may differ).

[–] [email protected] 4 points 1 month ago

** '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.

[–] [email protected] 1 points 1 month ago (1 children)

For logging, PANEL_DEBUG=all (source) seems to work. Anyway, did you reboot the system after removing xfce-volumed-pulse (so only xvce-pulseaudio-plugin should be enabled) ?

[–] [email protected] 5 points 1 month ago

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?

9
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

I wrote this script to learn how completing-read's complex arguments 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

 

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:

 

The library has a nice guide and two working examples, 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
    }
  ]
}

[...]
 

One of the best live version I believe.

view more: next ›