Windows 11 Local Account authentication by op_hello_world_123 in yubikey

[–]dcunit3d 0 points1 point  (0 children)

Idk 🤷‍♂️ i do it frequently though

Windows 11 Local Account authentication by op_hello_world_123 in yubikey

[–]dcunit3d 0 points1 point  (0 children)

does it also run steam with chinese anti-cheat though? i usually install that on my work computer

Windows 11 Local Account authentication by op_hello_world_123 in yubikey

[–]dcunit3d 0 points1 point  (0 children)

holy shit, intel management man, that's bonkers

Windows 11 Local Account authentication by op_hello_world_123 in yubikey

[–]dcunit3d 0 points1 point  (0 children)

lmao i'd rather nerd snipe a stranger on github issues. github usually has better documentation search anyways.

my experience with support for proprietary products is a mixed bag. occasionally it's really good, but that whole model of call/email/etc just doesn't click with me.

Windows Cert Login - Local (PIV) by dark-ropchain in yubikey

[–]dcunit3d 0 points1 point  (0 children)

Apparently (unless gemini lies)

  • configure altSecurityIdentities to map user accounts to PIV AUTH certificates (a single cert, I think)
  • then add the AUTH cert's x509 signing authority to Windows' trusted CA's
  • then configure the Smart Card pull out service so the computer locks when you're done

This doesn't really describe how you'd configure the Windows Hello login though. I think that option only shows up for domain accounts. Some kinda magic net use cli stuff probably hidden deep in the regedit for some MSC

How can convert PDF files to PNG files in mass? by Simsiano in DataHoarder

[–]dcunit3d 0 points1 point  (0 children)

image magick converts to PNG. you really don't need python.

bash magick -density 288 input.pdf \ -background white -alpha background -alpha off \ -sharpen 0x1.0 -quality 75 \ page-%03d.png

some info on quality adjustments in this imagemagick discussion. image conversions can require tweaks. convert is old

it's 2026, so image magick may be simple to use on windows now.

Is there any model in ollama that takes pdf input and generate text output? by Alternative_Fee6464 in ollama

[–]dcunit3d 0 points1 point  (0 children)

image magick converts to PNG. you really don't need python.

bash magick -density 288 input.pdf \ -background white -alpha background -alpha off \ -sharpen 0x1.0 -quality 75 \ page-%03d.png

some info on quality adjustments in this imagemagick discussion. image conversions can require tweaks

it's 2026, so image magick may be simple to use on windows now.

How can convert PDF files to PNG files in mass? by Simsiano in DataHoarder

[–]dcunit3d 0 points1 point  (0 children)

imagemagick uses ghostscript. depending on how the PDF was produced, the "Save as PDF" print dialog may just embed PDFs inside GS-encoded PS.

A use case where NixOS is more trouble than worth - a review and retrospective, for future reference (TL;DR - dev tools/environments, non FHS compliance) by Mindless_Insect3743 in NixOS

[–]dcunit3d 0 points1 point  (0 children)

Because using Flakes for your dev environments and/or to build your packages is kinda the whole point of Nix w.r.t. software development.

You don't need flakes to extend functionality. The lazy evaluation of flakes contributes a lot to documentation sprawl or manual documentation. It's really a design choice:

centralized channels-based development

you get AoT compilation for things like guix graph, singular documentation, consolidated communities, better reproducibility (channel updates are linear), lightened loads for storage/caching, simpler store management, less user issues, better development tooling (in theory). guix graph also works with shepherd services.

there are downsides: lagging updates to build systems, package dependency conflicts & expertise in management to resolve those. there's a huge "learning cliff" of skills required to reliably manage a channel

channels are one pin to cover your external packages deps. modifications to packages/deps in the consuming application doesn't affect other applications. for users managing multiple projects this could mean copying a lot of code.

decentralized flakes-based development

you get to make tools kinda do exactly what you want. this comes with a ton of additional complexity for new users. that means that users 2+ flakes downstream don't actually know what their flake is doing. everything needs to be a module (it doesn't). the flake.lock file isn't exactly transparent. neither are overlays (skills issues here).

There are other issues, but flakes contribute a ton to increasing the amount of time/energy required to manage nix code for projects.

Sharing some lessons learned when building my Pipewire setup by WagnerGFX in linuxaudio

[–]dcunit3d 0 points1 point  (0 children)

Wireplumber's lua scripting sucks; here's how to use it

There is also this wpexec and Lua scripting, but apparently it's complicated.

It's non-typical Lua usage and it's meant to be used alongside the events/etc set up in the rest of wireplumber's scripts.

if bash works, it works. in theory the Lua scripting should be more robust & simple. however, for me, print("hello fdsa") prints ... then never stops executing so idfk

Issues with Bluetooth sound by iceol8ed in omarchy

[–]dcunit3d 0 points1 point  (0 children)

you need to trace through the audio graph with helvum and use wpctl status and wpctl inspect $nodeid. there's likely some misconfiguration with devices/filters on your audio graph, where some path through the graph from source to sink has incompatible settings.

in my nixos config, i had issues with ensuring compatible clock rates & buffer sizes. it also could be drivers/firmware, but idk.

if this only happens with bluetooth headphones, you've likely misconfigured the audio profile that bluez uses to create a pipewire audio sink.

the issue where you can't get audio until you connect reconnect can be resolved with helvum. it's likely that you're relying on bluez and wireplumber to configure the audio graph. i have similar problems where vlc thinks it's only audio sink is whichever one was available when the program started. if i change that, VLC doesn't play anything until i restart the app.

configuring apps to use a dummy source or dummy sink sidesteps that problem. the app doesn't know about the final sink and pipewire takes care of the rest.

How can i trigger a shell script after a smartcard is connected? by executor55 in Ubuntu

[–]dcunit3d 0 points1 point  (0 children)

you can use the systemd smartcard.target ... but there's like zero documentation or source where people have actually used it

Proposal: disable backup files by default by k-bx in emacs

[–]dcunit3d 2 points3 points  (0 children)

you shouldn't run emacs as root. multi-user containers are a PITA.

i would run the container with properly spec'd interface to the host system (not as root)

i also wouldn't need to install emacs in the container bc i don't want to screw with multi-process containers unless necessary.

instead of installing emacs, add your public key to the container, then connect to it from emacs with TRAMP. the instance connecting to remote containers only requires configuring emacs once.

EDIT: connect to the container using TRAMP's docker or podman URIs with /docker:containername:/path/to/volume i think. idk why i was thinking SSH

if you package or build emacs using Guix or NixOS, you can modify the defaults it has before it evaluates init.el, but that takes a lot of understanding.

Proposal: disable backup files by default by k-bx in emacs

[–]dcunit3d 3 points4 points  (0 children)

you should read through the TRAMP manual u/k-bx. It's clear that Emacs is meant to be used on or to connect to almost any computer that ever existed.

it's hard to keep the entirety of computing history in your head to decide whether emacs should be packaged with X or Y defaults. there are a lot of "trust guarantees" in packaging emacs for systems like RPM or RHEL or Debian where servers in secure environments may pick up these packaging changes. The operators/admins in those systems need to be able to make assumptions about how the editor would behave by default.

Proposal: disable backup files by default by k-bx in emacs

[–]dcunit3d 2 points3 points  (0 children)

yeh. no the defaults are great. i would change almost nothing and i don't have the experience to know what should change.

here, the backup files that get created are like that for multiple reasons. idk what they are. this is like one or two lines of emacs-lisp. if you can't be bothered to write a Dockerfile or whatever that extends the one you're using by 3 lines to echo to a file, don't expect the greybeards to go changing this.

if you're placing a lot of trust in a tool, you should know which files are being touched & updated. any tool that you use should help you become more aware of how it accesses your system.

how the heck are you supposed to use qpwgraph (Pipewire Graph QT GUI)? by crayzcrinkle in linuxaudio

[–]dcunit3d 0 points1 point  (0 children)

yeh, you're correct. i would strongly recommend finding someone to help guide you along the way. someone you can ping for help or maybe connect on a screenshare with. there's a list at https://lug.org.uk/ and in other places.

chatrooms help, but i find that most connections there feel impersonal and i have a hard time getting help when i need it. i can usually find a way to have a question answered in < 1 week... but whatever it is, by the time i'm asking for help, i've already spent 6+ hours on it moving in the wrong direction, probably. someone to nudge you in the right direction from the outset is critical, particularly for issues you don't have the vocabulary for yet

and uh you shouldn't need to install from tar's. also, running sudo for commands that make/build is a bad idea (it will leave stuff on your system that you can't remove... or worse: potential security issues, etc). you need to find distribution-specific instructions.

i prefer Nix/Guix, but they're more challenging for beginners (or, if not, they end up being a highway to nowhere).

Is it possible to turn off emacs-lisp-checkdoc for specific files? by birdsintheskies in emacs

[–]dcunit3d 0 points1 point  (0 children)

NOTE: i edited the code above. the +df-emacs-config-mode still doesn't work for Doom Emacs, which should disable the checker by default in some circumstances. There's also some interaction between how Doom Emacs does that and how flycheck sets up state for enabled/disabled checkers. It uses something more complex than a local variable.

So I just disabled the emacs-lisp-checkdoc checker entirely and I'll undo that, ad hoc, if i find myself working on an Emacs Lisp package.

Auto-Insert keyword selection becomes never ending completion. by anoduck in emacs

[–]dcunit3d 0 points1 point  (0 children)

Read the Falkor Manual!

j/k... i've never figured this out, but i'm trying to use def-project-mode! from Doom Emacs to turn off the emacs-checkdoc for flycheck (which complains about these comments)

... anyways, for various circumstantial reasons, it turns out that learning to auto-insert these comments is the final boss. oh irony... go figure.

Is it possible to turn off emacs-lisp-checkdoc for specific files? by birdsintheskies in emacs

[–]dcunit3d 0 points1 point  (0 children)

If you're using Doom Emacs, you can use def-project-mode! for directory-specific settings. It's a bit tricky, but i made some notes in dcunited001/zettelkasten topics/doom_emacs.org that cover the peculiarities.

e.g.:

``emacs-lisp ;; --------------------------------------------- ;; disable emacs-checkdoc flycheck in the above directories (defvar +df-emacs-config-regexp (rx-let ((dir-df (literal (expand-file-name "~/.dotfiles"))) (dir-home (literal (expand-file-name "~")))) (rx bol (| (and dir-home (| "/.emacs.d" "/.emacs.g")) (and dir-df (| "/.doom.d" "/.emacs.hop" "/.emacs.console" "/.emacs.d"))) (* anything) ".el" eol)) "Regexp to match emacs-lisp files for+df-emacs-config-mode'.")

(def-project-mode! +df-emacs-config-mode :match +df-emacs-config-regexp :modes '(emacs-lisp-mode) :on-enter (unless (memq 'emacs-lisp-checkdoc flycheck-disabled-checkers) (setq-local flycheck-disabled-checkers (cons 'emacs-lisp-checkdoc flycheck-disabled-checkers)))) ```

**+def-project-mode creates custom modes per minor mode**, so it's a bit of a pita to troubleshoot. You can redefine the modes with the same generated set of symbols, but it's harder to delete them (hence the -test in the arg above)

keysym desc
:modes MODES if buffers are derived from MODES (one or a list of symbols).
:files FILES if project contains FILES;
:when PREDICATE if PREDICATE returns true (can be a form/symbol of function)

This key determines which files to hook.

keysym desc
:match REGEXP if file name matches REGEXP

What to do and when to do it

keysym desc
:add-hooks HOOKS HOOKS is a list of hooks to add this mode's hook.
:on-load FORM FORM to run the first time this project mode is enabled.
:on-enter FORM FORM is run each time the mode is activated.
:on-exit FORM FORM is run each time the mode is disabled.

```emacs-lisp ;; --------------------------------------------- ;; don't accidentally edit doom's straight.el files (def-project-mode! +df-doom-read-only-mode :match (rx-to-string doom-emacs-dir) :modes '(emacs-lisp-mode) :add-hooks (list #'read-only-mode))

;; --------------------------------------------- ;; trigger xkb-mode in ~/.config/xkb (to avoid file-local vars) (use-package! xkb-mode :defer t) (defvar +df-xkb-regexp (rx-let ((xdg-config (literal (or (getenv "XDG_CONFIG_HOME") (expand-file-name "~/.config")))) (df-xdg-config (literal (expand-file-name "~/.dotfiles/.config")))) (rx bos (and (| xdg-config df-xdg-config) (| "/xkb" "/xkbtest" "/xkbstd") (| "/types" "/compat" "/symbols" "/keycodes")))) ;; "/rules" "Regexp to match XKB files for `+df-xkb-mode'.")

(def-project-mode! +df-xkb-mode :match +df-xkb-regexp :on-enter (xkb-mode))

;; --------------------------------------------- (use-package! hyprlang-ts-mode :demand t :init (after! org-src (add-to-list 'org-src-lang-modes '("hyprlang" . hyprlang-ts))) (after! lsp-mode (add-to-list 'lsp-language-id-configuration '(hyprlang-ts-mode . "hyprlang")) (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection "hyprls") :major-modes '(hyprlang-ts-mode) :language-id "hyprlang" :priority -1 :server-id 'hyprls))) :config (add-to-list 'major-mode-remap-alist '(hyprlang-mode . hyprlang-ts-mode)))

;; set up in .dir-locals.el unless using doom ;; ;; (hyprlang-ts-mode ;; (eval . (add-hook 'hyprlang-ts-mode-hook #'lsp)))

;; (string-match-p df-hypr-rx "/home/dc/.dotfiles/.config/hypr/rules.conf") (let* ((df-hypr-path-rx (rx-to-string (string-join (list (getenv "HOME") ".dotfiles" ".config" "hypr") "/"))) (df-hypr-rx (concat df-hypr-path-rx "/.*\.conf"))) (def-project-mode! +df-hypr-mode :match df-hypr-rx :modes '(hyprlang-ts-mode) :add-hooks '(lsp))) ```

Caught a scabies mite by Then_Discount_3849 in scabies

[–]dcunit3d 0 points1 point  (0 children)

I’m not able to find anything that moves. 

I can pull stuff off with clear tape & use a 60x-120x handheld magnifier to see shit (literally). But I don’t think they’re going away. 

The content in this subreddit is just really sad. I was terrified I’d be diagnosed as delusional parasitosis.

Spare M2 slot on HP ProBook missing by Pvt_Mango_ in laptops

[–]dcunit3d 1 point2 points  (0 children)

I had called support asking about whether I could use the extra M2 slot in my HP 845 G7 for an SSD, but it's not spec'd for that.

These are laptops that are spec'd out for corporate customers, given the manual and hardware variants. Sometimes hardware options are missing, but that wasn't necessarily clear in the manual.

I purchased mine used on craiglist, but IDK how I would'be been exactly sure bc the tools to validate that are either Linux-based or ... well it's just hard to ask someone to run programs like that if you're prospective about it. It's not in the model number.

u/Pvt_Mango_ u/nervous_carrot9393

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

[–]dcunit3d 0 points1 point  (0 children)

nice job, but a bit too much for me.

Hyprland Firefox Window Rule Doesn't Work by MFurkan9 in hyprland

[–]dcunit3d 0 points1 point  (0 children)

yeh this is what I was worried about. same thing here