Skip Navigation

Posts
22
Comments
728
Joined
3 yr. ago

Canadian software engineer living in Europe.

  • Cool stuff! For future projects, you might want to check out Typer, as it'd save you a bunch of the boilerplate and supports things like tab completion too.

  • ...along with solar panels... right? So many schools with flat roofs, and bundling solar with AC only makes sense.

  • Don't do it. AI makes you stupid, and using it for school is counterproductive.

    • You proposed a bad idea
    • Two people pointed out the many reasons why it was a bad idea.
    • You responded to this by ignoring the reasons why we said this was a bad idea, repeating your original demonstrably flawed idea.

    ...and you're annoyed that we felt we needed to repeat ourselves.

  • No, you're making excuses for selfish drivers when a wide variety of cheap, practical options are available that will save lives.

    • Enforce existing laws
    • Create a dedicated bus lane
    • Introduce traffic calming
    • Limit car speeds
    • Ban fucking cars

    OK, maybe that last one is impractical in car sewer towns, but your plan of creating a sacrificial bike lane would only get cyclists killed and allow drivers to go faster.

  • I think what we're trying to say is that your suggestion is not an improvement. It increases risks to cyclists, doesn't protect pedestrians, and only serves to improve car throughput which is not a priority.

    Enforcement and heavy penalties for breaking what is already the law would be good, as would be a dedicated bus lane, protected sidewalks, installing speed governors on all vehicles limiting them to 30kph... there are lots of options that would clearly improve safety, and you're advocating for the one that doesn't help anyone but selfish drivers.

  • You know what's more dangerous for cyclists than traffic zooming by on an unprotected bike lane? Giant busses with limited visibility swerving in and out of that lane.

  • My girlfriend's dad had hundreds of movies on VHS, pirated from cassettes he'd rented in the past and copied at home by chaining two VCRs together over coaxial cable.

    Software was wild pre-internet. My buddy had Windows 95 on 42 3¼" floppies that we copied onto additional sets of 42 floppies that we kept in heavy boxes and then painstakingly installed onto computers belonging to friends and family around the neighbourhood.

    I also had a whole bunch of audio cassettes that contained music I dubbed from radio, other cassettes, and later CDs (burning your own was at first, impossible, and later, expensive).

    I'm 46.

  • This would be much less of a problem if fewer people insisted on bringing their whole living room everywhere they go.

  • I thought it was A Bad Idea to let lithium batteries go to zero?

  • There's no need for it to be temporary.

  • The battery started with something like a 45km range and by the time it died it was reporting 33km but was being more like 25km. The warranty expired about 6 months before it really stated going downhill.

    Judging by some of the comments I see here though, the culprit may have been situational. We regularly recharged it whenever we got home to keep the level high rather than letting it go down throughout the day. We did this because we use the bike a lot and didn't want to be trapped on the other stuff of town with a dead battery and heavy af bike.

    For this new battery though, well try to limit the charging a little more though and see what happens I guess. I'll report back in a few years.

  • That's both encouraging and annoying. The battery was conveniently out of warranty when it finally died.

  • Interesting. That's good to know. Perhaps this new one will last longer?

    The thing is though, 700 charges doesn't sound like much as we end up charging it every day given the distance we put on the bike. We'd go through 700 charges in less than 2 years.

  • Fuck Cars @lemmy.world

    Batteries are expensive

  • I've used FluxCD in the past and have looked into ArgoCD, but honestly, I've not seen any big benefit from either to be honest. I use k8s both at home and at work, and in both cases, we do "imperative" deploys: you run helm install ... either directly or via the CI and stuff is deployed.

    So for example at my last job, our GitLab CI just had a section triggered exclusively for merges into master that ran helm install ... for all three environments. We had three values.yaml files, one for each environment, and when we wanted to deploy a new version, the process was:

    1. Create a tag for our release version (ie. 1.2.3) and push it to the repo. This would trigger a build and push the resulting image into the container registry.
    2. Push an update to the repo with the new tag set in the appropriate Helm values file. If we wanted to deploy 1.2.3 to development but not yet to staging or production, then the tag: value in each of the environment files would look like this:

    • k8s/chart/environments/development.yaml: tag: 1.2.3
    • k8s/chart/environments/staging.yaml: tag: 1.2.2
    • k8s/chart/environments/production.yaml: tag: 1.2.2

    Once that change is pushed, the CI will automatically apply it with helm install ... and make sure that all three environments are what they're supposed to be.

    As for dependent services, that should all be in your Helm chart so they're stood up and torn down together. The specific case you mention about "Service A" being dependent on "Service B" but stood up before "Service B" is ready is a classic problem, but easily solved:

    The dependent service ("A" in this case) should have an entrypoint that checks for everything else before starting. Here's what I'm using right now in a project:

     bash
        
    #!/bin/sh
    
    while ! nc -z postgres 5432; do
      echo "Waiting for postgres..."
      sleep 0.1
    done
    echo "PostgreSQL started"
    
    touch /tmp/ready
    
    exec "$@"
    
      

    I've even got some code that checks that all the Django migrations have run first for the same situation. The Kubernetes philosophy is that any container should be able to die at any time and be eventually be brought back up and that every container needs to be prepared for this. Typically this means that your containers should operate on the basis of "if I can't work, die, and hope the problem is solved by the time Kubernetes redeploys me".

  • Kubernetes. For a homelab, the stripped-down k3s is fantastic and surprisingly easy to get going.

    Once you've got Kubernetes set up, you can lean on all the many tools already out there for things like deploying complex projects (Helm) and monitoring (Prometheus/Grafana). OpenLens is a nice piece of software you can use to monitor and control your cluster too, as is k9s.

  • I'm not surprised. Have you seen what they're charging for the batteries? We had to buy a new one for our e-bike and it came to about £600. Just for the battery.

  • United Kingdom @feddit.uk

    Green Party wins Gorton and Denton by-election with Labour pushed into third by Reform

    www.bbc.com /news/live/cp8rjk02r0jt
  • United Kingdom @feddit.uk

    Asbestos found in children’s play sand sold in UK

    www.theguardian.com /business/2026/jan/24/childrens-play-sand-hobbycraft-asbestos-removed-recall
  • Comic Strips @lemmy.world

    Happy New Year

  • Firefox @fedia.io

    Whatever happened to "Add to Home Screen"?

  • Steam Hardware @sopuli.xyz

    Has the Deck turned off any other Steam users?

  • Linux @lemmy.ml

    Can you configure tmux to use "normal" modifier keys?

  • Android @lemmy.world

    An app to post to an arbitrary URL?

  • Linux @lemmy.ml

    How to find what's eating 100% of just one core?

  • Python @programming.dev

    Developing with Docker

    danielquinn.org /blog/developing-with-docker/
  • Fairphone @lemmy.ml

    My UX seemed to really slow down after the update

    mastodon.social /@danielquinn/113095360014192530
  • Star Trek Social Club @startrek.website

    The number of lines for each character by percentage of the series

  • Linux @lemmy.ml

    What're some of the dumbest things you've done to yourself in Linux?

  • Solarpunk @slrpnk.net

    Some dude 3D printed a little house for his local frog

    mastodon.social /@MaaikeV/109937773609995007
  • Steam Hardware @sopuli.xyz

    I lost days of play time to a stream cloud sync error

  • Open Source @lemmy.ml

    9 days after writing in defence of a Free Palestine, Paul Biggar is dropped from his director role at CircleCI

    hachyderm.io /@paulbiggar/111627367674590120
  • AI Generated Images @sh.itjust.works

    A giant, muscular penguin roaring in a comic book style

  • Linux @lemmy.ml

    Ash Vs Bash

  • Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com

    I made a thing to make playing YouTube videos locally from your browser easier

    gitlab.com /danielquinn/video-bypass
  • Gnome @discuss.tchncs.de

    How do you get an application onto this list?