Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)NM
nmtake @lemm.ee

Japanese Speaker. I can read/write some English but not well, so corrections are always appreciated.

プログラミングや音楽に興味があります。いまはkbinのソースやActivityPubの仕様を読んだりしています。

Posts 8
Comments 69
Is there a text editor/notes app that adds Unicode symbols?
  • 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).

  • Show/highlight invisible characters like zero-width-space in Emacs
  • 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))
    
  • Wrote minimal minibuffer-centric MPD client
  • 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.

  • Wrote minimal minibuffer-centric MPD client

    codeberg.org minimpc.el

    Minimal MPD Client for Emacs

    minimpc.el

    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

    3
    Seeking feedback on lemmy-ui-next! (Milestone 2 is nearing completion!)
  • 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.
  • To all evil-mode users, how do you work with vterm?
  • 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).

  • Try C-[ C-char if you don't like C-M-char

    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.

    0
    Rectangle for Linux?
  • Thanks for the clarification. I switched from Xfce4 to GNOME many years ago because the former doesn't support Wayland at that time, but I still miss the manual quarter tiling with the shortcut keys.

  • Announcing lemmy-ui-next, an alternative Lemmy frontend built with NextJS!
  • 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 @[email protected] )

  • Ownership in match statements on multiple variables [RUST]
  • If I understood correctly, the first match expression doesn't take the ownership of the prev_data.kind because the prev_data.kind is a place expression:

    https://doc.rust-lang.org/stable/reference/expressions.html#place-expressions-and-value-expressions

    A place expression is an expression that represents a memory location.

    https://doc.rust-lang.org/stable/reference/expressions/match-expr.html#match-expressions

    When the scrutinee expression is a place expression, the match does not allocate a temporary location; however, a by-value binding may copy or move from the memory location.

    I'm not sure what "a by-value binding may copy or move from the memory location" does mean, but I beleive no allocation means no move.

    For the second match, move happens. The tuple (prev_data.kind, new_data.kind) tries to take an ownership of the prev_data.kind, but the prev_data is &Data (borrowed from the vec data), so the tuple can't take the ownership.

  • Rust Atomics and Locks by Mara Bos
  • 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.

  • blog.fyralabs.com Cyberbullying Gone Global: Fediverse Spam and Operation Beleaguer

    On February 15th, newly-created Fediverse accounts started posting spam messages from various instances, sending invites to a Discord server for a Japanese troll organization. The posts frame ap12 from “KuronekoServer” as the culprit behind the operation.&nbsp; Looking at their spam content (in Jap...

    Cyberbullying Gone Global: Fediverse Spam and Operation Beleaguer

    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
    2
    github.com GitHub - LemmyNet/activitypub-federation-rust: High-level Rust library for the Activitypub protocol

    High-level Rust library for the Activitypub protocol - GitHub - LemmyNet/activitypub-federation-rust: High-level Rust library for the Activitypub protocol

    GitHub - LemmyNet/activitypub-federation-rust: High-level Rust library for the Activitypub protocol

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

    [...] ```

    9
    lemmy.ml Lemmy 0.19 Breaking Changes - Lemmy

    We are getting closer to the next major release. This version will have many breaking changes, so we are listing them here for app and client developers to adjust their projects. As we prepare for the release of Lemmy 0.19.0, we’d like to provide any app or client developers ample time to upgrade th...

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

    1

    lemmy.fmhy.ml終了。ドメイン名が使えなくなったため

    very.bignutty.xyz FREEMEDIAHECKYEAH (@FMHY)

    An update: - fmhy.ml is gone (https://fmhy.net is now up), due to the ongoing fiasco with mali government taking all their .ml domains back and also Freenom being sued by Meta - As such, lemmy.fmhy.ml is also gone, we are currently exploring ways to refederate (or somehow restart federation entirely...

    FREEMEDIAHECKYEAH (@FMHY)

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

    詳細は以下もどうぞ:

    • https://sh.itjust.works/post/1473025
    • https://sh.itjust.works/post/1484592
    • https://lemmy.ml/post/2286939
    0

    lemmy-uiのMarkdownパーサにXSS脆弱性、カスタム絵文字を有功にしていた一部のインスタンスとそのユーザが被害を受ける。なおlemmy-ui v0.18.2-rc.1で対処済

    sh.itjust.works (URGENT) Lemmy has an XSS vulnerability in the tagline, the sidebar and in the legal information field - sh.itjust.works

    # DO NOT OPEN THE “LEGAL” PAGE — lemmy.world is a victim of an XSS attack right now and the hacker simply injected a JavaScript redirection into the sidebar. It appears the Lemmy backend does not escape HTML in the main sidebar. Not sure if this is also true for community sidebars. [https://sh.itjus...

    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トークンがログアウトしても無効化されない問題
    2

    King Crimson - Easy Money (Live At The Concertgebouw, Amsterdam, November 23rd 1973)

    One of the best live version I believe.

    0