Canadian software engineer living in Europe.

  • 3 Posts
  • 87 Comments
Joined 2 years ago
cake
Cake day: June 7th, 2023

help-circle






  • Daniel Quinn@lemmy.catoSelfhosted@lemmy.worldPost your bandwidth usage
    link
    fedilink
    English
    arrow-up
    42
    arrow-down
    1
    ·
    edit-2
    5 days ago

    What exactly are you self-hosting that’s gobbling up that much data? I’ve been self-hosting my website for decades and haven’t used that much over all that time let alone in one month.

    Most of my bandwidth consumption is from torrents and downloading Steam games, but even that doesn’t get me to even 1tb/month.


  • Hear me out: I want the prompt at the top of the screen.

    It’s terribly inconvenient to have the place you’re typping your command into at the bottom. On laptops, your fingers are in the way, and on desktops, you’re always craning your neck looking at the bottom-left.

    Imagine instead if your terminal looked like this:

    | ---------------------------------------------------------------------------- |
    | $ curl https://...
    | ---------------------------------------------------------------------------- |
    | $ echo "hello"
    | hello
    | $ ls
    | output.png
    | goes.txt
    | here.webm
    | ---------------------------------------------------------------------------- |
    

    After a command is entered in the upper pane, it’s appended to the lower pane along with the output just like a normal terminal. Maybe even something like translating Shift+Enter to mean “clear the output pane and run”.






  • During the last decade, however, centrists and progressives alike continually fail to grasp that many voters have reached the point of ‘anything must be better than this.’

    Holy fuck this is it.

    This is how you elect fascists:

    1. Claim that as the progressive option, only you can fix these problems.
    2. Offer only token non-fixes, all while claiming the right would make it worse.

    Once you’ve demonstrated that you can’t be trusted, the public start to think: “Maybe the right isn’t all that bad. It can’t get much worse than this.”

    The only way to avoid fascism is to actually help the public. Gaslighting them into thinking that you’re solving problems you refuse to solve only works for so long.


  • Agreed on all fronts. In my activism experience in Ontario specifically, I remember how the province would often push back against municipalities that wanted to build something. NIMBYism is another big problem, but the often-overlooked issue is the fact that the private sector is deliberately holding back development because it’s more profitable to do so, especially when interest rates are so high.

    The amount of profit in building low-rise and even high-rise (non-luxury) developments just doesn’t justify the costs, and when every unit you build effectively drives down the amount you can charge for for each unit, there’s simply no incentive to build at the rate we need.

    There are whole swathes of undeveloped or underdeveloped land in and around cities that would benefit from a crown corporation with deep pockets that would buy up land and build affordable housing on it. A body with the power to compel companies not using land to sell it to the state so that it can be developed for the public good, and with the political cover to piss off local NIMBY organisations without having to worry about political blowback.


  • While I agree with you that the municipalities and provinces share a considerable amount of blame for the housing crisis, the suggestion that the federal government is somehow incapable of solving this problem is, I think, inaccurate.

    I live in the UK now, where the same excuses could have been made in the 50s: the national government has no business sticking its nose into the affairs of cities and internal countries (the UK is weird). But they did it anyway. The national government spent mountains of money and resources, building an economy around building homes. The state built those homes, millions of them across the country.

    Canada could do the same. Form a crown corporation that does nothing but builds high-density homes and sells or rents them at below-market rates to people in a given economic demographic. The “profit” in this model is a housing-secure nation full of happy, productive people. This, paired with an offer of big federal money exclusively for mass transit systems that connect these developments as well as a complete rollback of funding for road expansion, and Canada is well on its way to deflating the housing bubble and solving both the housing crisis and the environmental one.

    But they don’t want that, because the people that fund them like it when people are desperate.


  • Not so long as they allow him to rule like a dictator.

    Also, the suggestion that they got most big policies right is laughably false. Few governments on the planet have done more to prop up the fossil fuel industry than this one, even while our country literally burns from its effects. We continue to ship weapons supplies to genociders and have done sweet fuck all about the housing crisis.

    Being “not as shit as the Conservatives” is an unreasonably low bar and we can do better.



  • You can’t really make them go idle, save by restarting them with a do-nothing command like tail -f /dev/null. What you probably want to do is scale a service down to 0. This leaves the declaration that you want to have an image deployed as a container, “but for right now, don’t stand any containers up”.

    If you’re running a Kubernetes cluster, then this is pretty straightforward: just edit the deployment config for the service in question to set scale: 0. If you’re using Docker Compose, I believe the value to set is called replicas and the default is 1.

    As for a limit to the number of running containers, I don’t think it exists unless you’re running an orchestrator like AWS EKS that sets an artificial limit of… 15 per node? I think? Generally you’re limited only by the resources availabale, which means it’s a good idea to make sure that you’re setting limits on the amount of RAM/CPU a container can use.