9
125
nmtake

@lemm.ee

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

プログラミングや音楽に興味があります。最近はEmacsでよく遊んでます。

nmtake 28 points 2 years 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?

path: 0 11365656 11367047 11367437, hotness: undefined, score: 28, children: 0
nmtake 21 points 3 years 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)

path: 0 893023, hotness: undefined, score: 21, children: 0
nmtake 15 points a year ago

Some fonts may require additional configuration to display properly, so usually manual installation should be avoided.

Please run (and post the result here) fc-match sans and fc-match serif to check fontconfig picks wrong italic font. If that's the case, try to remove the TTF files you've installed via the font manager you're using, then install the fonts via the package manager - it should configures fonts properly.

path: 0 17099425, hotness: undefined, score: 15, children: 3
nmtake 12 points 3 years ago

Hi, thanks for setting up this community. I'm not a Lemmy source contributer but I like to read open sources. Here is a very simplified web application (including Lemmy) architecture overview and I hope this text helps for some newbies:

  1. A user agent (web browser, mobile app, etc.) sends an HTTP request to a Lemmy instance.
  2. The lemmy instance examines the HTTP request and dispatches the request to a relevant function called controller. The mapping from a path in the URL to a function is called a router - see https://github.com/... for example.
  3. The controller makes an HTTP response for the request and returns it to the user agent.
  4. The user agent displays the returned response to the user.

To find an controller from a path in the router, just grep (or a similar search function you use) the Lemmy source. For example, if I want to know how GET /user/export_settings works, I'll run these commands:

$ git clone https://github.com/LemmyNet/lemmy/  # if you haven't download the source yet
$ cd lemmy
$ rg export_settings
src/api_routes_http.rs
131:  user_settings_backup::{export_settings, import_settings},
274:        web::resource("/user/export_settings")
276:          .route(web::get().to(export_settings)),

crates/apub/src/api/user_settings_backup.rs
68:pub async fn export_settings(
301:  use crate::api::user_settings_backup::{export_settings, import_settings};
366:    let backup = export_settings(export_user.clone(), context.reset_request_count()).await?;
402:    let mut backup = export_settings(export_user.clone(), context.reset_request_count()).await?;

So we got the relevant route and the controller definitions very quickly. Settings to be exported are defined as a struct UserSettingsBackup. The controller is defined as pub async fn export_settings and it converts the struct to a JSON.

Rust might not be a easy programming language but the official text (calld The Book is very friendly for newbies, so don't hesitate to read and to write a simple program like guessing game.

path: 0 7194643, hotness: undefined, score: 12, children: 1
nmtake 11 points 2 years ago

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

path: 0 13619325, hotness: undefined, score: 11, children: 1
nmtake 11 points 2 years ago path: 0 15377567, hotness: undefined, score: 11, children: 0
nmtake 11 points 2 years ago path: 0 11317318 11317357 11317700 11317863, hotness: undefined, score: 11, children: 2
nmtake 11 points 3 years 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 )

path: 0 8635141, hotness: undefined, score: 11, children: 1
nmtake 9 points 3 years ago path: 0 1053336, hotness: undefined, score: 9, children: 1
nmtake 9 points 2 years ago path: 0 15258428, hotness: undefined, score: 9, children: 1
nmtake 8 points 2 years ago

What program are you using to write or edit the comments?

path: 0 15507381, hotness: undefined, score: 8, children: 3
nmtake 8 points 3 years ago

I guess reddit will close the current free-tier API once the new dev platform for moderators settles down.

path: 0 317189, hotness: undefined, score: 8, children: 1
nmtake 8 points 2 years ago path: 0 11046628, hotness: undefined, score: 8, children: 5
nmtake 8 points 2 years ago

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

path: 0 12824007 12824345 12824389 12824531 12825243 12826135 12826380, hotness: undefined, score: 8, children: 0
nmtake 8 points 2 years 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).

path: 0 10951487, hotness: undefined, score: 8, children: 1
nmtake 6 points 3 years ago

Thank you for setting up the server. This sticky post and FAQ are very helpful for a newbie like me.

path: 0 317060, hotness: undefined, score: 6, children: 0
nmtake 6 points 2 years ago

** URL now never sends user email addresses in HTTP requests.

Someone like me may want to know the background of the change, so here's the commit and the relevant discussion.

path: 0 15247373, hotness: undefined, score: 6, children: 0
nmtake 6 points 2 years ago

The SCHEMA:PATH part seems slightly wrong (singular vs. plural). Try:

schema=org.gnome.settings-daemon.plugins.media-keys.custom-keybinding
path=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/

gsettings get "${schema}:${path}" binding
gsettings get "${schema}:${path}" command
gsettings get "${schema}:${path}" name
path: 0 16449414, hotness: undefined, score: 6, children: 1
nmtake 5 points 2 years ago path: 0 11741426, hotness: undefined, score: 5, children: 0
nmtake 5 points 2 years ago

I'd write a bookmarklet for that case:

javascript:
{
const name = 'ABC';
const d = new Date();
const year = d.getFullYear();
const month = d.getMonth();
const date = d.getDate();
document.activeElement.value = `${year}/${month}/${date} ${name}`;
void 0;
}

This bookmarklet inserts the desired text into the currently focused text box. Tested on Lemmy Web UI.

path: 0 15507381 15510260 15512949, hotness: undefined, score: 5, children: 1

thanks for using Leebra!

go to feed...