Skip Navigation
Ladybird announcement
  • rust isn't a magic bullet either, it still doesn't protect against a whole host of problems, like stack overflows, out of memory/bitflips, logic errors, memory leaks, unrecoverable errors/panics etc., and many projects are full of unsafe context rust code anyways.

  • Question: How to curl the lemmy API?
  • Yours is a little bit easier to read, but my main problems remain the same. Here's some initial comments looking at your swagger link from the perspective of a user who is brand new to the lemmy API (and doesn't use Javascript):

    • I can't tell what the general flow of the API usage in general is. Am I supposed to login/authorize somehow first? Some common examples, especially in at least one programming language (whether that's curl or python or whatever) I think would go a long way to help people understand what they're supposed to do.

    • How do I know if I need to authorize for a particular endpoint?

    • What is the entire URL for any given endpoint? It's never really explained clearly.

    • What is this "servers" dropdown? What's the difference between those?

    • Endpoint descriptions are often unhelpful. /user says "Get the details for a person." It doesn't tell me this is actually how I'm supposed to find their comments or posts. Nothing tells us this.

    • We have to guess what endpoint we might need for a lot of things. Example: /post/like is also for dislikes, but it doesn't tell you that. It also never tells you HOW to like or dislike anything, the valid values of score do not appear to be documented. And you're left to assume that's the right field to even use for it.

    • What is the content type of the request supposed to be? JSON is never mentioned anywhere.

    • What are these named "parameters"? Is that a query parameter? Why does it say "object" and "(query)"? Does this parameter go in the request body instead? /user shows a parameter called "GetPersonDetails" except in reality this name is (I guess) supposed to be completely ignored, because no part of the request actually uses the string "GetPersonDetails".

    • Schema is missing for many endpoints, like the request part of /user.

    • What are all these fields under "GetPersonDetails"? Are they all required? Only some? It doesn't say anything about it.

    • Many of the possible error codes are undocumented.

    There's probably more but that's the main stuff I think.

  • Question: How to curl the lemmy API?
  • This thread sums everything up nicely I think: https://lemmy.ml/post/98675/95459

    And for programming.dev specifically, the API did not work for me when they had CF bot protection turned on (endpoints always returned the "Just a moment..." bot check html), it was only after it was turned off a few days ago that it started working for me, because CF doesn't like my IP/browser/something and always gives me endless captcha loops. Previously their stance was that bot IPs had to be explicitly whitelisted to be allowed on their server.

  • Hack of Age Verification Company Shows Privacy Danger of Social Media Laws
  • This sounds like the right answer at first, but really, the entire reason ID verification exists is because the whole "just parent your kids" thing already didn't work, and now here we are. You can't fix stupid, meanwhile the kids are still doing bad things, and everyone else doing nothing too, solves nothing.

  • Question: How to curl the lemmy API?
  • curl 'https://lemmy.world/api/v3/user?username=egeres&sort=New&page=1&limit=20' | jq .posts

    https://join-lemmy.org/api/classes/LemmyHttp.html#getPersonDetails

    The documentation is really terrible and the developers try to defend it anyways.

    Some instances also employ cloudflare or other anti-ddos techniques that make automated API usage impossible.

  • Question: How to curl the lemmy API?
  • I really do not like these docs and find it extremely confusing for anyone not using Javascript. For example that "form" parameter that's on almost everything, doesn't even exist and can't be used when you're using curl, but it doesn't tell you that.

  • Private WiFi camera for out of town viewing. Live view only. No storage.
  • When you say "app" do you mean something that will let you view remotely through a residential NAT connection with no port forwarding or hole punching? Because 99.9% of those options are inherently not private.

    If you only need the camera itself to have a local feed i.e. you already have some kind of VPN/tunnel/etc. into your home network, then something like a cheap Amcrest works fine and does not require Internet access for the camera itself.

  • Privacy@Lemmy.ml: Do browsers block websites from uploading data that could be used for fingerprinting like resolution, installed fonts, etc.?
  • No, there is no way to prevent sites from uploading the info besides just not providing it in the first place.

    And because of how programming languages work, there's no way for the browser to identify that data being uploaded "is" anything specific, especially when there's things like encryption, obfuscation or just re-arranging the data itself into larger collections of data.

  • 24
    403 on API endpoints

    Tried to use several different API endpoints as described in the link, but they all return 403 with a cloudflare "Just a moment..." html reply. Even tried copying an existing jwt token from a working logged-in browser but the same thing still happens.

    Any idea what I could be doing wrong?

    curl -v --request POST \ --url https://programming.dev/api/v3/user/login \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data '{"username_or_email": "redacted", "password": "redacted"}' ... < HTTP/2 403 ...

    <!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title> ...

    6
    Some comments not appearing?

    I am noticing that some comments, which are coming from users on other verified (via /instances) federated instances, do not show up on a post. For example: https://programming.dev/post/13648105

    Does not show this comment on it: https://lemmy.ml/comment/10803786

    Any ideas why? I checked the modlog and the comment wasn't removed, and their post history to me does not look like someone that is likely to be banned from the instance, so I'm not sure what else it could be.

    7
    Lemmy Support @lemmy.ml refalo @programming.dev
    Is there a way to view the frontpage of another server, or get an RSS feed of another server's single community?

    My lemmy account is on the programming.dev instance but I use newsboat for RSS reading of some lemmy.ml communities, along with browsing the local homepage of lemmy.ml and some other instances in a regular browser. Is there a way to do either of these things from the programming.dev instance so that I can easily comment on posts without having to manually locate the same post by browsing to /c/foo@lemmy.ml on my own instance?

    12
    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/)RE
    refalo @programming.dev
    Posts 4
    Comments 753