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/)GO
Posts
100
Comments
52
Joined
2 yr. ago
Lemmy Support @lemmy.ml
GodOfThunder @lemm.ee

What is the default rate limit? Can I find the rate limit programmatically?

I'm getting rate_limit_error on the API when posting posts with just title+url. What is the default rate limit for posts? Do all requests have a rate limit or only posts?

Can I get the rate limit from an instance with a request to the API?

Edit:

 json
    
{
  "local_site_rate_limit": {
    "id": 1,
    "local_site_id": 1,
    "message": 180,
    "message_per_second": 60,
    "post": 6,
    "post_per_second": 600,
    "register": 3,
    "register_per_second": 3600,
    "image": 6,
    "image_per_second": 3600,
    "comment": 6,
    "comment_per_second": 600,
    "search": 60,
    "search_per_second": 600,
    "published": "2023-02-05T03:52:36.832982"
  }
}

  

I'm getting limit rate with a 10 second delay so 1/post_per_second = 0,0016 seconds / post delay is not right. So what do those even mean and what is the delay I should have between posts?

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Joe Rogan Schools Guest on Feds in Jan. 6

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee
Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

CIA Brags About Woke Coup-Plotters (& Much More)

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

“THEY’RE CRIMINAL!” | Ex-Coke Whistleblower EXPOSES Big Food & Pharma - Stay Free #180

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

US/France threaten intervention in resource-rich Niger - Fears of war in West Africa

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee
rumble.com WHO admits excess deaths

WHO admits excess deaths Global excess deaths associated with COVID-19, January 2020 - December 2021 https://www.who.int/data/stories/global-excess-deaths-associated-with-covid-19-january-2020-decembe

WHO admits excess deaths
Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Putin launches DEVASTATING assault on Ukraine as NATO plan crumbles | Redacted with Clayton Morris

Ask Lemmygrad @lemmygrad.ml
GodOfThunder @lemm.ee

What are your favorite clips that mainstream media would never show?

Mainstream media is often accused of being a government propaganda tool, and there are many things they would never show. I've thought about this after seeing the clip titled "You are a disgrace! Canada PM Trudeau savaged by German MEP at EU Parliament" on YouTube. Taking a quick look at YouTube, I see it's not covered by any of the popular mainstream propaganda outlets. There are probably many other clips like this that they would never show.

What are your favorite ones?

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Dropping the Bomb: Hiroshima & Nagasaki

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Wikipedia Co-Founder Condemns It: “Most Biased Encyclopedia” in History

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Apple Pencil doesn't draw straight on repaired iPads; the engineer's perspective vs. the repairman's

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Are Refurbished Phones Worth Buying? - eBay Refurbished

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

WIM HOF Vs BIG PHARMA: The Truth About Health! - Stay Free #181

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Is NATO nuts? Putin WARNS of nuclear response as NATO readies forces | Redacted with Clayton Morris

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee
rumble.com Vaccine injuries around the world

The truth about myocarditis and Covid vaccines: After ….. https://www.dailymail.co.uk/health/article-12339279/Covid-vaccine-myocarditis-heart-Elon-Musk-bronny-james.html Two facts — both of which are

Vaccine injuries around the world
Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

What’s Actually Happening At U.S.-Mexico Border Is MIND BLOWING!

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

PROOF The Establishment Doesn’t Actually Care About Climate Change!

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Gorilla GPT, a new project from Microsoft and UC Berkeley that allows AI to not only use pre-defined tools but to understand how to use any tool at inference time

Youtube Feed @lemm.ee
GodOfThunder @lemm.ee

Wikipedia's Establishment Lies: Hunter Biden, COVID, & More

  • I can confirm that the Opera method works. I couldn't create an account before but I've managed to create the account using the built-in VPN of the Opera browser. Here's an example of a Python script written with Claude 2 that GPT-4 wouldn't have enough context for, https://lemm.ee/post/2595655 Really impressive.

  • There should be a way to pay only the workers when you buy something. In that case, you could pay them but only after pirating and making sure you enjoy it. Since there is nothing like that, I think you should pay only content from small creators. Big creators already have plenty, and paying for anything else just gives money to greedy executives who then lower the quality of the content to make more money. Of course, if you have the means and don't pay anything, you are just making sure there will be less of that content made in the future. It isn't scalable; if everybody pirated content without paying a single cent, there would be no content made except by hobbyists who don't want to make a living out of it.

  • Edward Bernays, the nephew of Sigmund Freud, was a pioneer of propaganda and public relations. He is credited with the introduction of bacon and eggs into the American breakfast. In the 1920s, Americans typically ate light breakfasts of coffee, orange juice, and rolls. In order to increase bacon sales, Bernays wrote to 5,000 physicians asking whether a heavy breakfast was better for health than a light breakfast. 4,500 physicians wrote back confirming that a heavy breakfast was better for health as the body is depleted of nutrients after a night of sleep. This "research" of doctors encouraging Americans to eat a heavier breakfast, namely "bacon and eggs," was published in several major newspapers and magazines to great success. Beech-Nut's profits increased rapidly, and bacon and eggs became a staple of the American breakfast[1][3][4][5][6].

    Citations: [1] https://www.fridaysocks.com/blogs/news/the-history-of-bacon-and-eggs [2] https://youtube.com/watch?v=3Asnt2ISZJs [3] https://theuijunkie.com/bacon-eggs-breakfasts/ [4] https://www.thisiscapitalism.com/bacon-eggs-and-public-relations/ [5] https://legitur.com/history/bernays-breakfast-bamboozle-the-pr-campaign-that-made-americans-eat-more-bacon/ [6] https://www.bonappetit.com/entertaining-style/pop-culture/article/watch-the-inventor-of-pr-explain-how-bacon-and-eggs-became-an-all-american-breakfast

  • Edward Snowden, a former National Security Agency contractor and government whistleblower, has been credited with the quote "Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say". Snowden has argued that privacy is a fundamental right and that without it, individuals cannot have anything for themselves. The "nothing to hide" argument has been used to defend the collection and use of government data beyond surveillance and disclosure, but critics argue that it is inherently paradoxical and that what is hidden is not necessarily relevant. Snowden has also stated that the burden of justification falls on those seeking to infringe upon human rights, and that nobody needs to justify why they "need" a right.

  • The one I like most is YouTube, where it shows everything from the last few days and then only the most popular content from the last few weeks, months, and even years. I would like something similar, where the further I browse, the more votes a post must have to show up in the feed.

  • I'm still waiting for a local autonomous AI agent with search. I don't understand why most autonomous agent projects use GPT-4 without incorporating search capabilities. Allowing the model to continuously hallucinate is not productive. Instead, it should be able to discover factual information and perform genuinely useful tasks.

  • To enforce writing all type hints in Visual Studio Code (VSCode) with Mypy, you can follow these steps:

    1. Install Mypy: First, you need to install the Mypy package. Open the terminal and run the following command:
       undefined
          
      pip install mypy
      
      
        
    2. Configure Mypy in VSCode: Open your project in VSCode and go to the settings. You can access the settings by clicking on the gear icon in the lower-left corner and selecting "Settings". Alternatively, you can use the keyboard shortcut Ctrl + , (Windows/Linux) or Cmd + , (Mac) to open the settings.
    3. Enable Mypy: In the settings, search for "mypyEnabled" and make sure it is set to true. This enables Mypy for type checking in your Python code.
    4. Specify Mypy arguments: Search for "mypyArgs" in the settings and add the following arguments to the list:
       undefined
          
      "--strict"
      "--disallow-untyped-defs"
      "--disallow-untyped-calls"
      "--disallow-any-generics"
      "--warn-redundant-casts"
      "--warn-unused-ignores"
      
      
        
      These arguments enforce stricter type checking and help catch potential issues in your code.
    5. Save the settings: Once you have made the necessary changes in the settings, save the file.

    Now, when you open a Python file in VSCode, Mypy will perform real-time type checking and highlight any type-related errors or inconsistencies in your code. It will enforce writing all type hints according to the specified arguments in the settings[3].

    Note: It's important to note that Mypy is a static type checker and cannot enforce type hints at runtime. However, it can help catch type-related errors during development and improve code readability and maintainability[2][4][5].

    Citations: [1] https://stackoverflow.com/questions/67363258/configure-mypy-in-vscode-to-enforce-type-hinting [2] https://amitvkulkarni.medium.com/improving-python-code-readability-with-type-hinting-and-mypy-ac7c02cb89 [3] https://dev.to/jodaut/python-type-checking-with-visual-studio-code-46a7 [4] https://levelup.gitconnected.com/mypy-static-type-checking-in-python-in-4-minutes-8a9af666874d [5] https://towardsdatascience.com/12-beginner-concepts-about-type-hints-to-improve-your-python-code-90f1ba0ac49 [6] https://realpython.com/lessons/type-checking-mypy/