nmtake

joined 2 years ago
[–] nmtake@lemm.ee 3 points 1 month ago (1 children)

AFAIK contents aren't shared automatically between servers. See https://join-lemmy.org/docs/administration/federation_getting_started.html

[–] nmtake@lemm.ee 2 points 4 months ago (1 children)

If anyone has other suggestions to mitigate this

Firefox has "permissions.default.image" (link) option that disables image loading, but this Wikipage is very old so I'm not sure whether it works properly in current FIrefox.

[–] nmtake@lemm.ee 10 points 8 months ago (1 children)

Yes, they started the restriction a year ago. For a future reference, here's the announcement about the restriction (written in Japanese): https://support.misskey.io/hc/ja/articles/7604557294607

[–] nmtake@lemm.ee 3 points 8 months ago

I think it doesn't work. I skimmed Lemmy source code (search scrape_text_for_mentions if you're interested) and found this issue so I'm almost sure the mention in the post body doesn't work, but haven't tested, so I used the word may. Sorry for your confusion.

[–] nmtake@lemm.ee 1 points 8 months ago (3 children)

FYI username mention in a post body (not in a comment) may not work.

[–] nmtake@lemm.ee 3 points 9 months 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.

[–] nmtake@lemm.ee 5 points 9 months ago

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

[–] nmtake@lemm.ee 2 points 9 months 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.

[–] nmtake@lemm.ee 1 points 9 months 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.

[–] nmtake@lemm.ee 1 points 9 months ago

Yes, fenced code block with specifying langauge may work as a workaround.

```text
systemctl --user cat emacs
```

but I said "inline" explicitly.

[–] nmtake@lemm.ee 2 points 9 months ago (2 children)

lemmy-ui: Highlighting some words blindly in inline code is really annoying. For example,

  • systemctl --user cat emacs
  • pactl load-module module-switch-on-connect
[–] nmtake@lemm.ee 8 points 9 months ago

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

9
submitted 1 year ago* (last edited 1 year ago) by nmtake@lemm.ee to c/emacs@lemmy.ml
 

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 ›