Ancient Eastern Demon. Sealed by the late emperor with a blood seal during the Zhou Dynasty. Masterofballs was accidentally released from his prison under Tiananmen square in 1989.

Now free to spread his Chaos across the fediverse.

Favorite foods: Raw Donkey meat and rice wine.

  • 3 Posts
  • 15 Comments
Joined 3Y ago
cake
Cake day: Oct 09, 2021

help-circle
rss

Maui is a UI framework for KDE apps primarily aimed at smart phones or convergent applications. This is basically a whole desktop environment using Maui. Like a fork of KDE for smart phones and tablets.


I’ll make a issue later but front page sort options should be cached in local storage so that if I click comments on a thread and comeback I don’t have to reset my filters.


As I explore the lemmy code base I'm documenting what I learn for other's so they may find it useful. I like to mount code into a docker container and run cargo from the terminal. The docker run instructions for lemmy in the docs are great but it requires a user to rebuild the rust container to see changes. We can use volumes to just use **cargo** directly in the terminal. This repo shows a tutorial of how i'm running lemmy and how you can use vscode to bring up a complete development environment. It's based on the regular docker environment. The difference being it gives you a complete Arch linux development environment you can mount in the terminal or directly in vscode. Hope someone finds it useful.
fedilink

Lots of mod tool improvements could be made. I need to read over the issue list and pick one to work on.


I still don’t think it’s a great idea to get an entire large community at once. Ill play with trying an entire large community like memes later when I get a minute. Either way the way I have it you can still specify a really large limit. Pass in 700 and it will attempt 700 at once. Pass in 50 and it will do it in chunks of 50. In either case it will get the entire community and not stop at the number provided .

edit: Manages to get all 601 post from /c/memes in a few seconds. Which is cool. I’m just gonna make the default page size at like 100 instead of 10.


You dont want to get 1,000 post in one request. Im not even sure lemmy would allow that. Im not sure what you mean by no control. It’s downloading an entire community.

And yes you want to make additional request so it doesn’t timeout.


I put paging back so large communities won’t use up to much memory. I made limit optional and it default at 10 so it will download 10 at a time. I like how you changed it to download all images. It’s all merged. Gonna try to add a basic license tonight too.




Pics title and body. Not any pictures uploaded within the body. And no comments yet. All these could be added.

this does back up the most important bits and was pretty minimal in effort


It currently downloads a entire community and not a single user. I guess we could add that if that’s more interesting to you.


Hi lemmy; I've made a program that will download all the post and images for a lemmy community. It downloads them into a html file. This way users don't have to worry about losing all their post because they can download the whole community themselves. Demo https://files.catbox.moe/8wgbm4.mp4 I hope someone finds this useful. Someone asked me for it so I provided it.
fedilink

Forgive me for being to dumb; it just doesn’t seem as clear as something like swagger

You link to some Java script instead of full path ways.

Listing a few curl examples would go a long way to making the api more understandable IMO.

But maybe I’m just to dumb to understand.


Docs are pretty bad, let me give you a start,

To get the first page of post of a community,


curl "https://lemmy.ml/api/v3/post/list?community_name=lemmy&limit=2&page=1"

You can paste that json object in a formater somewhere to get an idea of the shape of the data.

To find the other endpoints ignore the javascript docs. They are to hard to read.

Look at, the api_routes file. https://github.com/LemmyNet/lemmy/blob/main/src/api_routes.rs

Now you should be able to put two and two together to get the whole picture.


Thanks nutomic that was it. Guess I needed to update the ansible repo. This is some really cool stuff. I don’t think most people can truly appreciate the weight of it. I can see why facebook is in a hurry to find other markets.


Doesn’t seem to work for my instance. I can see communities from lemmy.ml though


Just playing with federation and wanted to know how you could log into mastadon and follow a lemmy community.