@hallettj@leminal.space avatar

hallettj

@hallettj@leminal.space

Just a basic programmer living in California

This profile is from a federated server and may be incomplete. Browse more on the original instance.

hallettj,
@hallettj@leminal.space avatar

It’s great that the system is so efficient. But things do come up. I once worked with an LSP server that was so hungry that I had to upgrade from 32 to 64gb to stop the OOM crashes. (Tbf I only ran out of memory when running the LSP server and compiler at the same time - but hey, I have work to do!) But now since I’m working in a different area I’m just way over-RAMed.

hallettj,
@hallettj@leminal.space avatar

I don’t know anything about the treatment. But to be hereditary the genome changes would have to affect gametes. If genes are only changed in other targeted tissue then the changes wouldn’t be inherited.

hallettj,
@hallettj@leminal.space avatar

Just the best identity reveal I’ve ever seen

[solved] nix shell and nix profile not using the branch defined in flake.nix?

Yes I know that there are workarounds for them to set to use the flake inputs but still… I have set nixpkgs version to 23.11 stable release and that’s good, but if I try to use nix shell, nix profile or even nix-env, they all seem to use the latest master/unstable branch to install the packages by default....

hallettj, (edited )
@hallettj@leminal.space avatar

It’s possible (and I think advisable) to set your flake nixos config to set the system flake registry to point to the same nixpkgs revision that your flake uses. The nixos-starter-configs standard template has two lines that do this:


<span style="color:#323232;"># Opinionated: make flake registry and nix path match flake inputs
</span><span style="color:#323232;">registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
</span><span style="color:#323232;">nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
</span>

That actually adds all of your flake inputs to the system flake registry. So for example if in addition to your nixpkgs input you also have an input you named nixpkgs-unstable then can also reference that with stuff like nix shell. For example:


<span style="color:#323232;">nix shell nixpkgs#hello nixpkgs-unstable#cowsay
</span>
hallettj,
@hallettj@leminal.space avatar

That’s a good one, and also the first thing I thought of.

There’s also a remake that’s not bad that features Hugh Laurie using his native accent.

hallettj,
@hallettj@leminal.space avatar

My guess is they had fun making these episodes, and that’s why they kept going

Creating a self-contained binary (www.github.com)

I have a program (fldigi, pointed to by the github link) that uses dozens of shared libraries. I would like to be able to distribute a pre-compiled version of the program for testers. I could require each tester to install the shared libraries and compile the program for themselves, however, this would be extremely difficult for...

hallettj,
@hallettj@leminal.space avatar

I’d go with Nix, but I may be biased by my enthusiasm for Nix

hallettj,
@hallettj@leminal.space avatar

I tried Linux in college because it was a hot thing there. Been hooked ever since.

I’m not a distro hopper. I used Debian Testing for many years. Last year I switched to NixOS because it was a compelling value proposition for me. I’m very happy with it!

Using passkeys on Linux & Android

Passkeys seem like a great idea, and we are at a point where, although things are still very much in flux, software passkeys managed by password managers are starting to be usable. I thought I’d share the workflow that’s working for me on Linux with some sites, and ask the community for more tips & tricks....

hallettj,
@hallettj@leminal.space avatar

I forgot to mention that to use a passkey manager on Android in addition to setting that Chrome feature flag you also need to set the app as your passkey manager. That’s done at the system level in Settings > Passwords & accounts > Passwords, passkeys, and data services

hallettj,
@hallettj@leminal.space avatar

Nice! I may take a look. I’ve been happy with Enpass except that I recently switched to a window manager that doesn’t implement xwayland, and Enpass is one of only two apps that I haven’t gotten working in native wayland mode, or found a substitute for. So I’ve been running Enpass in a rootful xwayland window running a nested i3 session. The IPC connection to the browser extension still works so it’s not too bad, but I’m a little tempted to try alternatives.

hallettj,
@hallettj@leminal.space avatar

iOS also supports third-party passkey managers so that’s an alternative to Android for helping to fill gaps creating passkeys.

hallettj,
@hallettj@leminal.space avatar

Oh interesting! I guess that explains the awkward arrangement of two people holding three cups of coffee between them

hallettj,
@hallettj@leminal.space avatar

It’s likely a myth that Rasputin was sleeping with the czarina. (Although there’s no proof either way.) He had a very close relationship with the czar and czarina because their son had hemophilia, and Rasputin’s presence seemed to help his condition. It was a serious illness, and the parents were desperate for anything that could help. But the hemophilia was a secret so nobody outside the family knew why the czar and czarina kept Rasputin so close despite dangerous rumours that Rasputin was the one running Russian policy. The idea that Rasputin was sleeping with the czarina was a popular theory because Rasputin was a well-known horny motherfucker.

hallettj,
@hallettj@leminal.space avatar

Oh yeah - the classic move of saving people from doctors! Everything I know about this is from the Revolutions podcast by Mike Duncan which suggested that Rasputin likely provided an emotionally-calming influence that probably helped.

hallettj,
@hallettj@leminal.space avatar

Looking at the configuration options I think you want this line in configuration.nix:


<span style="color:#323232;">virtualisation.virtualbox.guest.enable = true;
</span>
hallettj,
@hallettj@leminal.space avatar

I’m also on season 2 of my DS9 re-watch - it’s even better than I remembered!

hallettj,
@hallettj@leminal.space avatar

FYI I’ve been running Steam and Wine games in Gamescope because I’m using a window manager that doesn’t implement XWayland. I don’t know if that would help with Nvidia, but might be worth a try. It works ok; Gamescope has a Steam integration switch that helps.

I think Electron apps mostly switch to native Wayland mode if you set an environment variable, ELECTRON_OZONE_PLATFORM_HINT=wayland. The one I don’t have working in Wayland mode is Discord. See wiki.archlinux.org/title/wayland#Electron

hallettj,
@hallettj@leminal.space avatar

Nice! I got a Tern attachment that will let me tow a bike by attaching the fork if I take the front wheel off. I’ve had enough occasions where it would have been useful that I finally decided to go for it. But I haven’t put it to use yet.

I’ve been fantasizing about a Brompton for a while. Some day!

hallettj,
@hallettj@leminal.space avatar

I’ve been using the newer commands like switch and restore for a while. But I learned a few things here that will indeed make my work easier.

hallettj,
@hallettj@leminal.space avatar

A commit followed by a reset or commit --amend later is one more step than a worktree --add. Plus there have been lots of times when I’ve had some changes staged, and some unstaged debugging or experimental changes that I want to make sure not to commit, and thinking about how to pack all that away neatly so I could get back where I was seemed sufficiently obnoxious that I avoided doing whatever would have required a quick branch switch. Worktree would have let me pick up where I left off without having to think about it.

Best article about XZ backdoor?

Hey, I’ve been hearing a LOT about the xz backdoor. Crazy story, but rather than reading 10 different articles about it from 3 days ago when the story was quite new, does anybody know a high quality write-up that has all the juicy details and facts? I really like in-depth guides that cover every aspect of the story....

hallettj,
@hallettj@leminal.space avatar

I read a few articles. I think Andres Freund’s announcement gave me the best context for the exploit itself. www.openwall.com/lists/oss-security/2024/03/29/4

The most helpful source I saw on which systems are affected was this Lemmy post, beehaw.org/post/12813772

hallettj, (edited )
@hallettj@leminal.space avatar

I work on a remote team with three Australians who live in three different states. I’m sure they’ll appreciate this! Especially the Ausalabaman guy!

hallettj,
@hallettj@leminal.space avatar

Thanks! This is my blog. I might have some more Nix content coming up relating to Rust and docker-compose because that’s what I’ve been working with.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • mdbf
  • magazineikmin
  • Durango
  • Youngstown
  • vwfavf
  • slotface
  • ngwrru68w68
  • khanakhh
  • rosin
  • kavyap
  • thenastyranch
  • PowerRangers
  • DreamBathrooms
  • Leos
  • ethstaker
  • hgfsjryuu7
  • osvaldo12
  • cubers
  • GTA5RPClips
  • modclub
  • InstantRegret
  • everett
  • tacticalgear
  • normalnudes
  • tester
  • cisconetworking
  • provamag3
  • All magazines