my tildelog

a blog about tildes

Fixing ld-decode on Arch Linux (2023.04)

April 18, 2023 — ~rawktucc

Apparently, recent versions of python-numba do not support python-numpy 1.24 yet. This is specific for Arch and NixOS (and possibly other more up-to-date systems).

Since the ld-decode project only targets Ubuntu 22.04 (and obviously for stability/good reason), I’m on my own here.

I tried the PKGBUILD and patches in the Arch Linux bug for the numba package, but was not able to build them successfully.

Instead, I built python-numba-git and python-numpy-git from the AUR. At least this keeps things a bit more organized and easier for me to track.

python-numba-git, however, requires python-llvmlite >= 0.40.0. The AUR package commentary notes to build python-llvmlite-git, however despite this targeting the latest git for llvmlite, it still builds 0.39.1:

ImportError: Numba requires at least version 0.40.0 of llvmlite. Installed version is 0.39.1. Please update llvmlite.

So the solution here, per a comment found here, is to install a specific llvmlite target through pip;

pip install llvmlite==0.40.0rc1

This is… obviously messy, but it works.

TLDR

  1. sudo pacman -R python-numba python-numpy
  2. pip uninstall numba
  3. pip uninstall numpy
  4. pip uninstall llvmlite
  5. yay -S --aur python-numba-git python-numpy-git
  6. pip install llvmlite=0.40.0rc1

The pip uninstall commands may fail if you don’t have those packages installed, but we run them anyway to ensure we remove any possible conflicts.

The other solution to make it less messy, might be to install llvmlite to a virtualenv - you could also attempt this with numpy and numba as well; I need to test this.

tags: ld-decode, DomesdayDuplicator, git, linux

USB Review: ADATA UV350/32GB

October 02, 2021 — ~rawktucc

I recently purchased some new USB drives as my existing ones are USB 2.0 only.
Here’s some testing I did for one of them, the ADATA UV350, 32GB model.

Specifications

  • Part Number: AUV350-32G-RBK
  • Dimensions (L x W x H): 42.4 x 14.95 x 5.35mm / 1.7 x 0.6 x 0.2"
  • Weight: 5.9g / 0.2oz
  • Interface: USB 3.2 Gen1 ( backward compatible with USB 2.0 )
  • Performance: Up to 90MB/s (Read); 40MB/s (Write)
  • Warranty: 5-year limited
  • Local purchase price: $9.99 CDN (+13% HST tax)

read more...

Don’t trust ExFAT with your data

August 11, 2021 — ~rawktucc

I have a couple personal anecdotes on why you shouldn’t trust ExFAT as the filesystem for your valuable files. Let’s say you have a drive to share some personal files with family and friends. The files are large, and the recipients all use different systems, so ExFAT is the best choice because:

read more...