kn33

joined 2 years ago
[–] kn33 14 points 7 hours ago

"News article" is being generous, but at least it's useful in confirming the authenticity.

[–] kn33 35 points 1 day ago (2 children)

Alternatively, be loud and proud so that you have evidence that you should be granted asylum when the time comes

[–] kn33 3 points 1 day ago

That is true. It's at least tolerable now

[–] kn33 6 points 1 day ago (1 children)

It changes if you switch "what is an oligarchy" to just "oligarchy"

[–] kn33 32 points 2 days ago (1 children)

A crummy commercial?

[–] kn33 26 points 3 days ago (2 children)

Not trying to come out swinging here, but do you know what intersex is?

[–] kn33 2 points 4 days ago (1 children)

Am I misunderstanding your comment or does it completely ignore context windows? Not that context windows are long-term, but it's not zero.

[–] kn33 1 points 4 days ago* (last edited 4 days ago)

I don't know Rust, I'm just here to chill. I can tell you what I would do, and have done, in PowerShell to solve this. From there you can translate that to Rust.

Let's go with your limit of 200 requests per second. At the start of the script, I create a stopwatch. Literally, a stopwatch that's tied to real world time and can be reset. Then, I have a variable that counts my requests. Every time I make a request, I increment it. Before every request, I check if the variable is 200. If it is, check the timer to see if a second has passed. If not, calculate how much time is left until a second has passed and sleep for that amount of time. After doing that check/sleep, reset the request counter and the stopwatch. From there, continue on.

[–] kn33 9 points 4 days ago (2 children)

This guy is like a broken clock that also shows that today is February 29th

[–] kn33 6 points 5 days ago

I'm just kinda hunkering down with carts and waiting for MN to get dispensaries cause I'm lazy.

[–] kn33 6 points 5 days ago

Shit with my gf and I both gaming, sometimes we have to open a window in the winter

[–] kn33 1 points 5 days ago (2 children)

I go for a drive. The more frustrated I am, the faster I drive (within safe bounds)

324
Meow (lemmy.world)
submitted 7 months ago by kn33 to c/lemmyshitpost
 
231
Jym (lemmy.world)
submitted 10 months ago by kn33 to c/lemmyshitpost
 
2
RIP (streamable.com)
submitted 2 years ago by kn33 to c/android
7
submitted 2 years ago* (last edited 2 years ago) by kn33 to c/fediverse
 

So, I noticed something interesting while writing and testing a script.

The intent of the script is to connect to the API of your home instance, then list all of the communities for all instances that the home instance is federated with, sorted by number of subscribers.

The API endpoint to do this is "/api/v3/community/list"

My understanding is as follows:

  • The argument "sort=TopAll" indicates that it should sort by number of subscribers
  • The argument "type=All" indicates that it should show communities from the local instance and all federated instances.
  • The argument "limit" indicates how many results to return (up to 50)
  • The argument "page" indicates which page of "limit" items to return

So I should get more or less the same results if I run the same request against lemmy.world or lemmy.ml So I ran these two requests:

With the first one, I get a mix mostly of lemmy.world, lemmy.ml, and beehaw.org communities. That's what I'd expect. However, with the second, it's all lemmy.ml communities.

So, like, what's the deal?


Edit 2023-06-14T16:03Z

Seems something similar when I request for the endpoint on breehaw.org. The first page is a mix of breehaw.org and lemmy.ml results, but no other instances.


Edit 2023-06-14T16:12Z

It's like they're all different and all seem to favor their home instance? Some more than others, though.

  • Lemmy.world is pretty well balanced.
  • Lemmy.ml is all Lemmy.ml
  • Beehaw.org is mostly Beehaw.org and Lemmy.ml
  • Lemmy.ca is mostly lemmy.ca and lemmy.ml, with some beehaw.org mixed in
  • Midwest.social is mostly midwest.social, lemmy.ml, and a little beehaw.org
 

Just started for me. entra.microsoft.com (specifically user list atm) is loading slowly or not at all.

Anyone else or just me?

view more: next ›