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?
I got asked the question several times about what files can be removed on an Android so that Google spyware is disabled. The answer is that it is impossible to do that. But WHY is that? This video wil
CIA Brags About Woke Coup-Plotters (& Much More)
LIVE: CIA Brags About Woke Coup-Plotters (& Much More)
TODAY - former Coca-Cola employee-turned-whistleblower, Calley Means, shares revelations about Big Food and Pharma, suggesting “Alzheimers is the new type-3 diabetes” and dubbing sugar as the “real we
Noted. You can go back to watching your favorite mainstream propaganda outlet.
US/France threaten intervention in resource-rich Niger - Fears of war in West Africa
YouTube Video
Click to view this content.
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
NATO has been pushing Ukraine to launch massive armored offensives instead of small scale pin prick attacks. This plan has been devastating to the Ukrainian army which has come under intense air and g
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?
Wikipedia Co-Founder Condemns It: “Most Biased Encyclopedia” in History
YouTube Video
Click to view this content.
Apple Pencil doesn't draw straight on repaired iPads; the engineer's perspective vs. the repairman's
YouTube Video
Click to view this content.
Are Refurbished Phones Worth Buying? - eBay Refurbished
YouTube Video
Click to view this content.
TODAY - our special guest is The Iceman, Wim Hof, recorded live at Community 2023. Wim reveals techniques as alternatives to Big Pharma & the medical industry, and his belief these abilities are acces
Zelensky says the war is now coming to Russia and NATO is striking at the heart of Moscow via Ukrainian drones. Russia has called this a terrorist attack and the West is saying that it could push Russ
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
What’s Actually Happening At U.S.-Mexico Border Is MIND BLOWING!
YouTube Video
Click to view this content.
PROOF The Establishment Doesn’t Actually Care About Climate Change!
YouTube Video
Click to view this content.
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 Video
Click to view this content.
Wikipedia's Establishment Lies: Hunter Biden, COVID, & More
YouTube Video
Click to view this content.
I know about https://programming.dev and https://mtgzone.com I wish there were one about gaming and another about fanfiction
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.
This has already been mentioned a few times. Just find the relevant issue on GitHub and give it an upvote.
I don't know there is a lemmy-stats-crawler utility that does it automatically and produces a json file. So all I do is parse that json file to get the numbers.
Depending on which instances are blocked you will see different content in ones or others. Which is why I choose instance based on the minimum number of blocked users based on the results of this script.
Maybe get your country to have a higher democracy index than china before criticizing them?
https://www.newsweek.com/most-china-call-their-nation-democracy-most-us-say-america-isnt-1711176
I knew I recognized him from somewhere. He was the developer of lib.reviews. https://github.com/eloquence
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 would like if URLs were SEO friendly and you could search by community from a search engine like site:instance.com/community_name
This should have been the way it was implemented from the beginning until the built-in search was half as good as the search engine.
I believe Claude 2 is the best LLM option currently, if you live in the US or UK or have a VPN.
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:
-
Install Mypy: First, you need to install the Mypy package. Open the terminal and run the following command:
pip install mypy
-
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) orCmd + ,
(Mac) to open the settings. -
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. -
Specify Mypy arguments: Search for "mypyArgs" in the settings and add the following arguments to the list:
"--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.
-
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/
how to enforce writing all type hints in vscode with mypy
why don't you post this in a us community. I don't give a shit about this.
I think this could be very valuable for the community and the Lemmy devs. However, I believe to be successful, there needs to be a volunteer(s) who “sync” the community to the GitHub issues. We could automate this but that would make the situation worse. Here’s how I could imagine this working:
When a new feature or bug is posted, the mod determines if this is duplicated or not. If so, they will reply to the post with a link to the previous post and lock the current one. If it is truly new, the community can vote and comment. After a week or so, if the community supports the new feature or fixing the bug, the mod will open a new GitHub issue with a summary of the community discussion and link to the discussion.
This is a lot of work for the mods, but I believe it would really add value for both the Lemmy community and the devs.
Permanently Deleted