9
submitted 1 month ago* (last edited 1 month 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

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

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@lemm.ee 4 points 2 months ago* (last edited 2 months ago)

Thanks for the hard work. It's already quite usable for me. Here are the issues I noticed on Firefox/Linux:

  • Each comment area seems to have overflow (caused by the text buttons?), so hovering a mouse cursor on the comment reveals hidden scroll bar on the right.
  • Titles are too bold and look somewhat intimidating.
  • Rendered inline code (`...`) leaves the backquotes like this.
7
submitted 2 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 3 months ago* (last edited 3 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 )

[-] nmtake@lemm.ee 4 points 3 months ago

I prefer high-contrast themes these days and modus-themes work great. Note that Emacs 29 doesn't contain newer themes like modus-vivendi-tinted.

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

Oh I didn't know the book is freely available under the CC license; I bought the Japanese translated version just a week ago. The book is quite difficult for me but the first chapter was very good read.

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

Thorough report about the recent Fediverse spam.

Related posts:

[-] nmtake@lemm.ee 3 points 4 months ago

Hosting Lemmy instances on a localhost has these advantages: 1) no TLS required (right?), 2) can sniff the network traffic between the instances, 3) can change codes and settings of the all instances without asking to anyone, and more importantly, 4) no maintance cost. But if someone want to learn Web app deployment (TLS certs, hosting, etc.), your option would be a good idea.

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

For learning real Lemmy stuff, I'd run multiple Lemmy instances on LAN without internet connection to ensure the testing won't pollute the fediverse.

9

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 4 points 5 months ago

Have you checked the shell command history? (e.g, history | grep spotify)

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

As far as I know lemm.ee has disabled image uploads. See https://lemm.ee/post/5905754 for details.

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

You shouldn't post the auth value here - it works like a username and password.

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