PoolloverNathan

@[email protected]

This profile is from a federated server and may be incomplete. View on remote instance

PoolloverNathan ,

Nix has flakes; nix run can contain pretty much all of the needed dependencies. If that's not enough, you can set up an entire container as a module.

PoolloverNathan ,

IIRC you are required to connect to internet to continue the setup process in newer versions.

Microsoft Account to local account conversion guide erased from official Windows 11 guide — instructions redacted earlier this week ( www.tomshardware.com )

Microsoft has been pushing hard for its users to sign into Windows with a Microsoft Account. The newest Windows 11 installer removed the easy bypass to the requirement that you make an account or login with your existing account. If you didn't install Windows 11 without a Microsoft Account and now want to stop sending the...

PoolloverNathan ,

Nix installs packages independently of what's been installed, so you'll get the exact same result if you skip 0 updates or 500.

PoolloverNathan ,

The inspector REPL evaluates as a statement-with-value (like eval), so the {} at the beginning is considered an empty block, not an object. This leaves +[], which is 0. I don't know what would make Node differ, however.

Edit: Tested it myself. It seems Node prefers evaluating this as an expression when it can, but explicitly using eval gives the inspector behavior: https://nathanlaptopv.axolotl-snake.ts.net/rhnpp358211dyyhzzyfam5a6yr3k25ik-Screenshot_20240623-132245.png

PoolloverNathan ,

Yep, parentheses force {} to be interpreted as an expression rather than a block — same reason why IIFEs have !function instead of just function.

PoolloverNathan ,

Yes, as well as automatically hiding new comments.

PoolloverNathan ,

A MONAD IS A MONOID IN THE CATEGORY OF ENDOFUNCTORS

PoolloverNathan ,

Obligatory “I lustrated it in favor of nixos” post

PoolloverNathan ,
-- |Removes the given object from its current parent, if any, and then adds it as a child of the other given object.
kidnap :: ChildBearing c p
       => p -- ^The kidnapper.
       -> c -- ^The child to kidnap.
       IO ()
PoolloverNathan ,
impl<'a, T: Child> ChildRef<'a, T> {
  fn orphanize<T: Child>(r: Self) -> Orphan<T>;
}
PoolloverNathan ,

OS: NixOS 24.05 (gen 67, non-flake)
WM, DE: KDE Plasma
Mass massaging: Aliucord mobile, Vencord (installed from nixpkgs patch) desktop
P2P messaging: Netcat
Don't really watch many videos / listen to music
Editor: Sandboxed VSCodium
Base flake for development environments: stddev
Programming language: Haskell + Rust + Go (one project)
Browser: Sandboxed Firefox
Phone launcher: Niagara

PoolloverNathan ,

I use NixOS (plasma, setting up xmonad) btw

PoolloverNathan ,

fia? fir? fib (part of fia)?

PoolloverNathan ,

Press ^X^N, I dare you.

PoolloverNathan ,

I present to you quality variable names. (and a Mount Rustmore)

(Reconfigure(f), 'c') => {
    let mut p: Vec<&str> = vec![];
    loop {
        match args.next() {
            Some(k) => {
                if k == "=" {
                    match args.next() {
                        None => q("need value for Rc"),
                        Some(v) => u(
                            f,
                            |f| Box::new(
                                |c| {
                                    f(c);
                                    c.set(p.iter().copied(), v);
                                    for e in p {
                                        unsafe {
                                            Box::<str>::from_raw(
                                                std::mem::transmute(e)
                                            );
                                        }
                                    }
                                }
                            )
                        )
                    };
                    break
                } else {
                    p.push(Box::leak(k.into()));
                }
            }
            None => error("need path element or = for Rc"),
        }
    }
},
PoolloverNathan ,

Haskell, my favorite pythonlike!

PoolloverNathan ,

Argument parsing; turning Rc foo = bar into Reconfigure(|c| c.foo = "bar").

  • All
  • Subscribed
  • Moderated
  • Favorites
  • kbinchat
  • All magazines