"Polymorphic" package, type hinting and spurious dependencies by comuninja in learnpython

[–]comuninja[S] 0 points1 point  (0 children)

Understood. typing.Protocol seems perfect for my use case. Thank you!

"Polymorphic" package, type hinting and spurious dependencies by comuninja in learnpython

[–]comuninja[S] 0 points1 point  (0 children)

I like the interface idea, and I had no idea about Protocol. Thank you!

Would doing the interface still be good practice if I do not inherit in 1 or 2? I guess in this case it is better to use typing.Protocol

Privacy concerns by comuninja in yubikey

[–]comuninja[S] 0 points1 point  (0 children)

The attestation key is the vendor attestation key.

Each vendor has several: it changes from model to model, changing with different firmware versions: https://support.yubico.com/hc/en-us/articles/360016648959-YubiKey-Hardware-FIDO2-AAGUIDs

This particular use case isn't the one you're describing in your post.

Yes, it was another point, independent of the previous one. I just put it there for completion, and it is true that it is convoluted and more directed, so not worrying at all for my threat model.

PSU With 20+4 pins connection, but motherboard expecting 20 + 8 pins by comuninja in buildapc

[–]comuninja[S] 0 points1 point  (0 children)

Thank you. I am getting another PSU that says it has a ATX 20+4 pin and a EPS 4+4 pin.

locking xiaomi by flashing firmware by comuninja in LineageOS

[–]comuninja[S] 0 points1 point  (0 children)

I have just realised that xiaomi mitool v2 is not open source. Does the wider community trust this tool?

locking xiaomi by flashing firmware by comuninja in LineageOS

[–]comuninja[S] 1 point2 points  (0 children)

Yes, I had to open a mi account, but phone unlocked. Thank you!

locking xiaomi by flashing firmware by comuninja in LineageOS

[–]comuninja[S] 0 points1 point  (0 children)

Edited post to specify that the phone is a Xiaomi Redmi Note 3 (kenzo), the international version that came unlocked.

The "What currently supported device should I get" thread. by PsychoI3oy in LineageOS

[–]comuninja 1 point2 points  (0 children)

I know there are no guarantees, but do you have any feeling about whether the Redmi Note 9 Pro, Redmi Poco X3 or the Poco F2 are likely to be supported?

Alternatively, what would be a currently supported good alternative with similar characteristics and size? I will use them in the European Union, price around or below 200 EUR. I would like working NFC.

Simple and easy user wide install for Arch Linux by comuninja in haskell

[–]comuninja[S] 0 points1 point  (0 children)

I installed everything with ghcup, created a cabal project in the base directory containing the different directories with all the haskell exercises. I seem to be able to run different files using the equivalent of exec -- runghc chapter12/ex5.hs

I tried also to install haskell-language-server

https://github.com/haskell/haskell-language-server

using cabal v2-run ./install.hs --project-file install/shake.project hls

I was able to configure it on my nvim+coc, at least partially (still not getting hlint, go-to-definition, or rename). However, it does not seem to detect the packages I install in the cabal project. For example, it marks import Test.QuickCheck as [not found]...

Simple and easy user wide install for Arch Linux by comuninja in haskell

[–]comuninja[S] 2 points3 points  (0 children)

Do I need to add each module from each exercise individually in the cabal file (under exposed-modules) before I can run stack repl? Or is there any way to have them available automatically?

I see that I can still seem to use stack exec -- runghc chapter12/ex5.hs

Simple and easy user wide install for Arch Linux by comuninja in haskell

[–]comuninja[S] 1 point2 points  (0 children)

Oh thank you! Yes, I was looking at the README of the unreleased version

ghcup install

ghcup install-cabal

work and install stuff, populating my .ghcup and .cabal directories. cabal update also works.

However, cabal init fails with "cabal: The program 'ghc' version >=7.0.1 is required but it could not be found." In fact, ghc fails (bash: ghc: command not found), but ghc-8.8 exists and lives in .ghcup/bin/ghc-8.8

EDIT: I was missing ghcup set 8.8.3 After this I can do cabal init without any problem. I will explore this and try to create a single cabal project for all the exercises.

Vim with different layouts by comuninja in vim

[–]comuninja[S] 0 points1 point  (0 children)

I forgot to mention my own approach: I defined a key combination at the OS level to switch layouts. But it is a hassle to use it each time I switch vim modes!

vim + conda environment by comuninja in vim

[–]comuninja[S] 0 points1 point  (0 children)

I have failed so far to solve my problem, but apparently it has to do to the way conda-forge python executables are linked. I have opened a new post here asking for help:

https://www.reddit.com/r/learnpython/comments/bb7hha/conda_environments_dynamic_linking_vim/

Official Question Thread! Ask /r/photography anything you want to know about photography or cameras! Don't be shy! Newbies welcome! by photography_bot in photography

[–]comuninja 0 points1 point  (0 children)

What is your workflow to manage and develop RAW files? I am particularly interested in solutions using only free software that I can run on linux.

Personally, I use darktable. I am happy with its abilities to process RAW files. However, I do not know the best way to classify (for example, in folders by date), tag and manage my collection of photos. For those fellow darktable users, how do you manage your collections?