[-] nmtake@lemm.ee 2 points 2 days 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 2 days ago

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

[-] nmtake@lemm.ee 8 points 1 month ago

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

[-] nmtake@lemm.ee 5 points 2 months ago

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)

5
submitted 3 months ago by nmtake@lemm.ee to c/emacs@lemmy.ml
[-] nmtake@lemm.ee 29 points 3 months ago

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@lemm.ee 11 points 3 months ago
  1. 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@lemm.ee 8 points 4 months ago

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).

9
submitted 6 months ago* (last edited 6 months 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

7
submitted 7 months ago by nmtake@lemm.ee to c/emacs@lemmy.ml

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.

[-] nmtake@lemm.ee 11 points 7 months ago* (last edited 7 months ago)

Strong focus on privacy and security (all authentication with the Lemmy API is done through secure httpOnly cookies, user IP addresses are not leaked to external image hosts, etc)

Awesome. The current lemmy-ui sends a lot of traffic to other Lemmy instances to get pictrs-cached images, so this is huge improvement. On the other hand, on next.lemm.ee those requests seems to be gone. As feedback, I noticed this page still seems to send a request to imgur, ~~and the text is difficult to read because of the low-contrast theme.~~ (edit: fixed and now completely readable. thank you @sunaurus@lemm.ee )

26
submitted 8 months ago by nmtake@lemm.ee to c/fediverse@lemmy.ml

Thorough report about the recent Fediverse spam.

Related posts:

3

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
    }
  ]
}

[...]
[-] nmtake@lemm.ee 10 points 10 months ago

Most cases will be solved with these settings (but some applications may need additional tweeks):

  1. Use ja_JP.UTF-8locale, or
  2. Use ~/.config/fontconfig/fonts.conf
1
submitted 1 year ago by nmtake@lemm.ee to c/lemmy@lm.korako.me

Lemmy 0.19ではいくつかの機能変更の他に破壊的変更としてアクセストークンの使い方が変わるのだとか。サードパーティのLemmyクライアントの中にはログインできなくなったりログイン状態が無効になるものも出てくるかもしれないですね。

1
submitted 1 year ago by nmtake@lemm.ee to c/lemmy@lm.korako.me

米軍 (.mil) が間違えてマリ共和国 (.ml) にメール送ってたとかいうニュースがありましたけど、良くも悪くもLemmyは持ってますね… lemmy.mlどうするんだろ

詳細は以下もどうぞ:

1
submitted 1 year ago by nmtake@lemm.ee to c/lemmy@lm.korako.me

lemmy.worldも被害を受けたみたいですね。人多いのに…

[-] nmtake@lemm.ee 20 points 1 year ago

Our software is built on the reasonable assumption that third party servers cannot be trusted. For example, we cache and reprocess images and videos for you to view, so that the originating server cannot get your IP address, browser name, or time of access.

I hope Lemmy also implements the image/media caching in the not so distant future. Currently, Lemmy Web UI sends a lot of HTTP requests to external servers like imgur. (Github Issue)

1
submitted 1 year ago by nmtake@lemm.ee to c/progmusic@lemm.ee

One of the best live version I believe.

view more: next ›

nmtake

joined 1 year ago