• 0 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: August 25th, 2023

help-circle
  • Abolishing the monarchy would involve rewriting the constitution - if that was happening every province would want to slip in their own terms - Quebec would want specific French language rights and autonomy and if Quebec got their way Alberta would want something similar. We successfully altered the constitution back in 1982 - it took 2 years and the country almost blew up over it.

    Basically it would be a total shit show. Considering the impact the monarchy has on our day to day life (basically zero) it’s easier to just let sleeping dogs lie


  • lol. Did this in my old building - the dryer was on an improperly rated circuit and the breaker would trip half the time, eating my money and leaving wet clothes.

    It was one of the old, “insert coin, push metal chute in” types. Turns out you could bend a coat hanger and fish it through a hole in the back to engage the lever that the push-mechanism was supposed to engage. Showed everyone in the building.

    The landlord came by the building a month later and asked why there was no money in the machines, I told him “we all started going to the laundromat down the street because it was cheaper”








  • The latter. It sounds like you are sending 100 requests concurrently, not 1m, which makes this fairly trivial

    python:

    pool = ThreadPoolExecutor(max_workers=100)
    for task in million_tasks:
        future = pool.submit(requests.get, task, args, kwargs)
        future.add_done_callback(fn_to_handle_result)
    

    Async would probably be better than using a threadpool, albeit with a bit more complexity. Queueing up 1m tasks at once may have a lot of memory overhead so you may need to queue up 100k, free memory, store results, and queue up more before the first 100k finishes