GodOfThunder

joined 1 year ago
MODERATOR OF
 

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:

{
  "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?

 

Many well-known scientists throughout history have been socialists, communists, or anarchists. These scientists believed in forming a society where resources are more equitably distributed, often involving common ownership of the means of production. Here are some examples:

  • Albert Einstein: Einstein was an anti-bureaucrat socialist and anti-Stalinist communist who supported a number of political causes, including socialism, nuclear disarmament, and civil rights.
  • Lev Landau: Landau was an ardent communist who contributed to the construction of socialism in the USSR.
  • Stephen Hawking: Hawking was a physicist who was led to socialism by the nature of his work.
  • H.G. Wells: Wells was an ardent utopian and socialist who studied zoology.
  • Robert Owen: Owen was an early socialist pioneer who advocated for a form of utopian socialism and co-operative communities.
  • Karl Marx: Marx was the foremost socialist intellectual who wrote Das Capital and co-authored The Communist Manifesto.
  • George Orwell: Orwell was an English author who was a leading advocate of democratic socialism.

People should know about these scientists because their political beliefs influenced their scientific work and vice versa. The intersection of science and politics is an important topic that can help us understand how scientific discoveries and innovations are shaped by social, economic, and political factors. Learning about these scientists can help us appreciate the diversity of perspectives and ideas that have contributed to scientific progress throughout history.

 

Many well-known scientists throughout history have been socialists, communists, or anarchists. These scientists believed in forming a society where resources are more equitably distributed, often involving common ownership of the means of production. Here are some examples:

  • Albert Einstein: Einstein was an anti-bureaucrat socialist and anti-Stalinist communist who supported a number of political causes, including socialism, nuclear disarmament, and civil rights.
  • Lev Landau: Landau was an ardent communist who contributed to the construction of socialism in the USSR.
  • Stephen Hawking: Hawking was a physicist who was led to socialism by the nature of his work.
  • H.G. Wells: Wells was an ardent utopian and socialist who studied zoology.
  • Robert Owen: Owen was an early socialist pioneer who advocated for a form of utopian socialism and co-operative communities.
  • Karl Marx: Marx was the foremost socialist intellectual who wrote Das Capital and co-authored The Communist Manifesto.
  • George Orwell: Orwell was an English author who was a leading advocate of democratic socialism.

People should know about these scientists because their political beliefs influenced their scientific work and vice versa. The intersection of science and politics is an important topic that can help us understand how scientific discoveries and innovations are shaped by social, economic, and political factors. Learning about these scientists can help us appreciate the diversity of perspectives and ideas that have contributed to scientific progress throughout history.

 

Have you ever wished for a social media platform that combines the best features of Lemmy and image boards with customizable feed algorithms? I know I have. Here's what my perfect social media platform would look like:

  1. A mix of Lemmy and image board: My ideal platform would allow users to post both text-based content and images, using tags instead of communities. With a view like Lemmy^1, and another grid-view like an image board^2.

  2. User curation: Unlike Lemmy, where images are difficult to find again due to the lack of tags , my ideal platform would have well-curated images with tags for easy searching^2.

  3. Advanced search could also be implemented, as suggested in the Lemmy issue #3788.

  4. User trust levels and community moderation: A hierarchical trust level system, similar to Discourse’s trust levels[^3], could distribute the responsibility among users and reduce the burden on admins. Trust levels would be assigned for each community based on user activity and voting affinity with the admin, allowing admins to shape their instance according to their preferences without micromanaging every aspect of the community. This idea is also discussed in the Lemmy issue #3548.

  5. Customizable feed algorithms: One of the best things about Lemmy is that users can choose their own algorithm for their home feed^1. My ideal platform would take this a step further by allowing users to customize their feed algorithms like in Bluesky[^4].

  6. Machine learning algorithms: To make the feed even more personalized, my ideal platform would use machine learning algorithms to suggest posts to users based on their activity on the platform[^5]. For example, if a user frequently upvotes posts about cats, the platform would suggest more cat-related posts to that user.

  7. One-size-fits-all image format: Image boards are known for their simple, one-size-fits-all image format^2. My ideal platform would adopt this format to make it easy for users to share images without worrying about formatting issues.

[^3]: Understanding Discourse Trust Levels [^4]: Bluesky custom feeds and algorithms [^5]: How to implement personalized feed ranking

[–] GodOfThunder@lemm.ee 23 points 1 year ago* (last edited 1 year ago)

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.

 

I asked the AI and it says:

To access Claude 2 from Europe, you have several options[^1^][^2^][^3^]:

  1. Access Claude 2 directly: According to Mashable[^1^], all you need to do is click "Talk to Claude" on the Claude 2 website and provide an email address. After confirming the email address, you should be able to use Claude 2.

  2. Use a VPN: Cybernews[^3^] recommends using a VPN to access Claude 2 if you're outside the US or the UK. This is because Claude 2 is only officially available in those two countries. The VPN will allow you to connect to a server in the US or UK and access Claude 2 as if you were located in one of those countries. There are several VPNs that Cybernews recommends for use with Claude 2.

  3. Use the Opera browser with integrated VPN: According to a YouTube video[^2^], you can use the Opera browser with its integrated VPN to access Claude 2 from Europe. The video provides a step-by-step guide on how to set this up.

It's worth noting that the EU has proposed stricter rules for high-risk AI[^5^]. While Claude 2 is not specifically mentioned in these rules, it's possible that they could impact the use of AI chatbots like Claude 2 in the future.

[^1^]: Mashable Article [^2^]: YouTube Video Guide [^3^]: Cybernews VPN Recommendations [^4^]: TechCrunch Article [^5^]: Tom's Guide Article [^6^]: Decrypt Article

Is this true? I can't understand the video.

https://youtube.com/watch?v=QocRRAefE4U

[–] GodOfThunder@lemm.ee 27 points 1 year ago

Oh yeah I was thinking more along the lines of video games or movies where there are too many people creating it. For books, etc you can definitely donate.

[–] GodOfThunder@lemm.ee 24 points 1 year ago (2 children)

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.

 

I've read some people saying that it's better. How has it changed?

[–] GodOfThunder@lemm.ee 53 points 1 year ago* (last edited 1 year ago) (4 children)

I really like to see communities like lemmy.film, mtgzone.com, and programming.dev and wish there was an instance about literature.

 

I want to configure a tool so that I can just call with a movie as an argument and automatically download the appropriate english subtitle by file hash or name. I recall I had something configured like that but now I don't remember what was the tool I used.

 

I'm getting errors with this function:

def compare_dates(date1: str, date2: str) -> str:
    date1_obj = datetime.strptime(date1, "%Y-%m-%dT%H:%M:%S")
    date2_obj = datetime.strptime(date2, "%Y-%m-%dT%H:%M:%S")
    return date1 if date1_obj > date2_obj else date2

Because the input sometimes includes microseconds. Is there a clearer way of dealing with this than what I've done?

def compare_dates(date1: str, date2: str) -> str:
    date_format = "%Y-%m-%dT%H:%M:%S"
    date1_obj = datetime.strptime(date1.split(".")[0], date_format)
    date2_obj = datetime.strptime(date2.split(".")[0], date_format)
    date1_obj = date1_obj.replace(microsecond=0)
    date2_obj = date2_obj.replace(microsecond=0)
    return date1 if date1_obj > date2_obj else date2
[–] GodOfThunder@lemm.ee 20 points 1 year ago* (last edited 1 year ago) (2 children)

I know about https://programming.dev and https://mtgzone.com I wish there were one about gaming and another about fanfiction

 

Instances where most communities are related to a main subject, like https://programming.dev

 

I've tried using pythorhead

search_results = lemmy.search(post_url)

but I get

AttributeError: 'Lemmy' object has no attribute 'search'

I've also tried requesting it myself but I don't get any results from the API even when I get it when searching for the same URL from the web interface.

@backoff.on_exception(
    backoff.expo,
    requests.exceptions.RequestException,
    max_time=MAX_BACKOFF_TIME,
)
def search(instance: str, url: str) -> Dict[str, Any]:
    api = f"https://{instance}/api/v3/search"
    query = f"?q={url}"
    response = requests.get(api + query)

    if response.status_code == 200:
        res: Dict[str, Any] = response.json()
        return res
    else:
        return {}

This makes it look more difficult than what I expected. https://programming.dev/comment/50809

[–] GodOfThunder@lemm.ee 32 points 1 year ago

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.

[–] GodOfThunder@lemm.ee 18 points 1 year ago (1 children)

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.

[–] GodOfThunder@lemm.ee 24 points 1 year ago* (last edited 1 year ago) (4 children)

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.

[–] GodOfThunder@lemm.ee 13 points 1 year ago (2 children)

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

[–] GodOfThunder@lemm.ee 26 points 1 year ago (1 children)

I knew I recognized him from somewhere. He was the developer of lib.reviews. https://github.com/eloquence

[–] GodOfThunder@lemm.ee 18 points 1 year ago

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.

view more: next ›