[–] 16 points 1 year ago (3 children)

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.

  • source
  • [–] 6 points 1 year ago (1 child)

    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
    
  • source
  • [–] 5 points 1 year ago (3 children)

    Although committing the feature to the Github repository has finished, the feature will be available for you when your instance updates the Lemmy version to 0.20, 1.0, or higher.

  • source
  • [–] 2 points 1 year ago (1 child)

    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.

  • source
  • [–] 4 points 1 year ago (1 child)

    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.

  • source
  • parent
  • context
  •  

    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
        }
      ]
    }
    
    [...]
    
    view more: next ›