Skip Navigation
Nix(OS) Ecosystem Explained - Vimjoyer - YouTube

cross posted from: https://programming.dev/post/19937352

0
250 million-plus unused IPv4 addresses should be left alone, argues network boffin • The Register
  • Any particular reason that those OEMs made that decision when releasing those boxes? Was that range blacklisted in firmware because of the legacy specification? I thought the spec just forebode range's public allocation, but not necessarily its internal use.

  • 250 million-plus unused IPv4 addresses should be left alone, argues network boffin • The Register
    www.theregister.com 250 million+ spare IPv4 addresses aren't needed

    Tests show it's just too hard to put the unused 240/4 block to work

    250 million+ spare IPv4 addresses aren't needed

    > Tests show it's just too hard to put the unused 240/4 block to work

    3
    Pop!_OS 24.04 and new COSMIC desktop hit alpha • The Register
  • Could you explain a little more on that? Just curious.

  • World's 1st Coding Monitor - YouTube
  • Have you had any luck with projectors for coding? I've only ever used them for large mob-programming sessions, like during hackathons. I feel like the low/narrow contrast of projectors makes it hard to use for dark mode, not to mention the space real estate requirements. :P

  • World's 1st Coding Monitor - YouTube
  • Still kind of sad that the transflective display technology demoed in the $100 laptop project from a decade or so ago never took off.

    https://youtu.be/CGRtyxEpoGg?si=50jL24kRA22-X_Bo&t=1470

  • World's 1st Coding Monitor - YouTube
  • Personally, I've been happy using an LG TV for a single monitor setup. I have had to switch to KDE Plasma v6 for better font rendering given its unusual OLED pixel layout, as well as for native HDR support. But it's been nice to have a large physical font while still at default DPI. Although, I wouldn't't mind upgrading to 8K later when they get affordable, as the smallest 4K TVs at 42" happen to push the physical DPI down towards that of just 1440p panel.

    https://programming.dev/comment/7921093

  • Nix in 100 Seconds - YouTube

    cross-post from: https://programming.dev/post/18427616

    14
    Nix in 100 Seconds - YouTube

    Just a short elevator pitch that was posted today in that 100 seconds format. Maybe useful in introducing others.

    0
    I was wrong about git stash... - YouTube
  • I hope compatibility with git submodules gets ironed out soon. I'd really like to have multiple branches of a superproject checked out at once to make it simpler to compare source trees and file structures.

  • I was wrong about git stash... - YouTube

    https://git-scm.com/docs/git-worktree

    3
    80% of programmers are NOT happy… why? - YouTube

    2024 Stack Overflow Survey Results

    • https://survey.stackoverflow.co/2024
    • https://survey.stackoverflow.co/2024/professional-developers#3-satisfied-at-current-job
    71
    Mind-bending new programming language for GPUs just dropped... - Code Report
    • https://github.com/HigherOrderCO/Bend
    • https://higherorderco.com/
    17
    Untagging images from AWS ECR (without deleting be like
  • Tagging an image is simply associating a string value to an image pushed to a container registry, as a human readable identifier. Unlike an image ID or image digest sha, an image tag is only loosely associated, and can be remapped later to another image in the same registry repo, e.g latest. Untagging is simply removing the tag from the registry, but not necessarily the associated image itself.

  • Untagging images from AWS ECR (without deleting be like

    I had to go full Rube Goldberg to clean up old image tags from closed PRs, while still leaving deletion of untagged image to the ECR repo's own lifecycle policy. Never go full Rube Goldberg:

    • https://stackoverflow.com/questions/70065254/remove-ecr-image-tag-despite-imagereferencedbymanifestlist-error
    • https://github.com/aws/containers-roadmap/issues/1567

    ```yaml name: ECR Retention Policy

    on: pull_request: types: - closed workflow_call: workflow_dispatch:

    jobs: clean-unused-ecr: name: Delete unused container images runs-on: runs-on,runner=2cpu-linux-x64,run-id=${{ github.run_id }},image=ecr_login_image steps: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: aws-region: ${{ env.RUNS_ON_AWS_REGION }} - name: AWS ECR Login id: login-ecr uses: aws-actions/amazon-ecr-login@v2 - name: AWS ECR Info shell: bash run: | echo "ECR_REGISTRY=${{ steps.login-ecr.outputs.registry }}" >> $GITHUB_ENV echo "ECR_REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV - name: Docker meta id: docker_meta uses: docker/metadata-action@v5 with: images: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPO }} flavor: suffix=- tags: type=raw,value=${{ github.head_ref || github.ref_name }} # NOTE: This is convoluted because AWS ECR has no simple way to untag image without deletion # given we want to leave deletion of untagged image to the ECR repo's own lifecycle policy # https://stackoverflow.com/questions/70065254/remove-ecr-image-tag-despite-imagereferencedbymanifestlist-error # https://github.com/aws/containers-roadmap/issues/1567 - name: AWS ECR Cleanup shell: bash run: | REPO_EXISTS=$(aws ecr describe-repositories --repository-names $ECR_REPO 2>&1 || true) if echo "${REPO_EXISTS}" | grep -q 'RepositoryNotFoundException'; then echo "Repository not found, skipping cleanup." exit 0 fi IMAGE_TAGS=$(aws ecr list-images --repository-name $ECR_REPO --query 'imageIds[*].imageTag' --output text)

    docker pull busybox docker tag busybox $ECR_REGISTRY/$ECR_REPO:_ docker push $ECR_REGISTRY/$ECR_REPO:_

    TEMP_IMAGE=$( aws ecr batch-get-image \ --repository-name $ECR_REPO \ --image-ids imageTag=_ ) TEMP_MANIFEST=$(echo $TEMP_IMAGE | jq -r '.images[].imageManifest') TEMP_DIGEST=$(echo $TEMP_IMAGE | jq -r '.images[].imageId.imageDigest')

    TAG_PREFIX=$(echo ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }} | cut -d: -f2) for TAG in $IMAGE_TAGS do if [[ $TAG == $TAG_PREFIX* ]]; then docker tag busybox $ECR_REGISTRY/$ECR_REPO:$TAG docker push $ECR_REGISTRY/$ECR_REPO:$TAG echo "Untaged image $TAG" fi done

    # Delete the temporary image by digest aws ecr batch-delete-image \ --repository-name $ECR_REPO \ --image-ids imageDigest=$TEMP_DIGEST ```

    5
    Get started with the latest updates for Dockerfile syntax (v1.7.0) | Docker
  • Wow, the COPY directive got a lot more powerful. I've been waiting for the --parent flag for years, while the --exclude argument is also a nice touch. Didn't know of the /./ pivot point before, but that's handy.

    Before this, I've just been using a intermediary leaf stage within a multi-stage build process to copy the build context and filter the dependency lock files of the entire super project into a matching parent structure that I could then deterministically copy from.

  • Modern Git Commands and Features You Should Be Using
  • Ah man, I'm with a project that already uses a poly repo setup and am starting an integration repo using submodules to coordinate the Dev environment and unify with CI/CD. Sub modules have been great for introspection and and versioning, rather than relying on some opaque configuration file to check out all the different poly repos at build time. I can click the the sub module links on GitHub and redirect right to the reference commit, while many IDEs can also already associate the respective git tag for each sub module when opening from the super project.

    I was kind of bummed to hear that working trees didn't have full support with some modules. I haven't used working trees with this super project yet, but what did you find about its incompatibility with some modules? Are there certain porcelain commands just not supported, or certain behaviors don't work as expected? Have you tried the global git config to enable recursive over sub modules by default?

  • Linux got wrecked by backdoor attack - Code Report

    cross-posted from: https://programming.dev/post/12247721

    > 🔥 🚢 overviews the recent supply chain attack on XZ library.

    4
    Top 6 Best NixOS Tips & Tricks - Vimjoyer
  • I fell for it. It took me a minute into the game time to figure what was up and double check today's date.

  • Top 6 Best NixOS Tips & Tricks - Vimjoyer

    April fool's!

    1
    Top 6 Best NixOS Tips & Tricks - YouTube - Vimjoyer

    cross-posted from: https://programming.dev/post/12228684

    > April fool's!

    2
    Build Your Own NixOS Installer ISO - Vimjoyer
  • Does the live iso created by this process include the dependencies or kernel modules upon live boot? E.g. could I use this to create an ISO image that includes, or pre bakes, any custom or necessary drivers for Nvidia GPUs or finicky Wi-Fi cards when used/booted as just a live USB? That could really help when you'd otherwise have a chicken and egg problem after a hard drive failure and no live USB to safe boot with working networking or display output.

  • Build Your Own NixOS Installer ISO - Vimjoyer
  • I'm going to try and set one up for the rest of my project team. Looks like a neat way to simplify install setup.

  • HDMI Forum Rejects Open-Source HDMI 2.1 Driver Support Sought By AMD - Phoronix
  • I'm using a recent 42" LG OLED TV as a large affordable PC monitor in order to support 4K@120Hz+HDR@10bit, which is great for gaming or content creation that can appreciate the screen real estate. Anything in the proper PC Monitor market similarly sized or even slightly smaller costs way more per screen area and feature parity.

    Unfortunately such TVs rarely include anything other than HDMI for digital video input, regardless of the growing trend connecting gaming PCs in the living room, like with fiber optic HDMI cables. I actually went with a GPU with more than one HDMI output so I could display to both TVs in the house simultaneously.

    Also, having an API as well as a remote to control my monitor is kind of nice. Enough folks are using LG TVs as monitors for this midsize range that there even open source projects to entirely mimic conventional display behaviors:

    I also kind of like using the TV as simple KVMs with less cables. For example with audio, I can independently control volume and mux output to either speakers or multiple Bluetooth devices from the TV, without having fiddle around with repairing Bluetooth peripherals to each PC or gaming console. That's particularly nice when swapping from playing games on the PC to watching movies on a Chromecast with a friend over two pairs of headphones, while still keeping the house quite for the family. That kind of KVM functionality and connectivity is still kind of a premium feature for modest priced PC monitors. Of course others find their own use cases for hacking the TV remote APIs:

  • There’s a fast new code editor in town - Zed
  • Nice! Thanks for the clarification.

  • There’s a fast new code editor in town - Zed
  • I was more curious about horizontal/vertical scroll snapping of text, given if the underlying vim properties are still limited to terminal style rendering of whole fractions of text lines and fixed characters, then it's less of a concern what exactly the GUI front end is.

  • There’s a fast new code editor in town - Zed
  • Are you using the PWA, self hosted or via code spaces/other VPS? With which web browser?
    I tried hosting code server via termux for a while, but a user proot felt too slow, even if the PWA UI ran silky smooth.
    Perhaps when my warranty runs out I'll root the device to switch to using a proper chroot instead.

  • There’s a fast new code editor in town - Zed
  • Do you use it combined with terminal emulators?
    Wouldn't that result in vertical scroll snapping to textual lines, and horizontal scroll snapping to character widths?
    A personal preference I suppose for navigation, but a bit jumpy to read from while moving rapidly.

  • There’s a fast new code editor in town - Zed
  • Only just got a 120Hz monitor recently, so reading scrolling text now is so much easer and faster than before. Looking forward to any IDE that can match that kind of framerate performance as well.

    Too bad I don't own a mac to be able to test out the current release of Zed as an IDE. However, I'm not sure about the growing trend of rasterizing the entire GUI, as compared to conventional text rendering methods or GUI libs with established accessibility support.

  • There is no such thing as too many fans...
  • You could get a fiber optic display/HDMI cable, a fiber optic USB cable, and the USB hub, then just move the desktop tower into another room and run the cables through the walls or ceilings to your display setup. Might only be $100 or so cheaper than then a used business thin client, but at least you could still do something 4K 120Hz HDR 12bit over some distance without compromise. E.g:

  • ruffsl ruffsl @programming.dev

    I'm a robotics researcher. My interests include cybersecurity, repeatable & reproducible research, as well as open source robotics and rust programing.

    Posts 152
    Comments 109
    Moderates