It’s sometimes possibly also needs to remove conflicting packages to proceed, rather than trying to install by force using the pacman options -d/-dd/-nodeps.
Issue of dependency conflict or failure to find the dependency that should be there:
sudo pacman -Syu –debug It triggers a prompt This also performs wide-range package upgrades.
Issue of CMake / makepkg -si:
1 2 3 4 5 6 7 8
==> Starting build()... CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred in build(). Aborting...
For CPUs with AVX2 instruction set support, that is, CPU microarchitectures beyond Haswell (Intel, 2013) or Excavator (AMD, 2015), install python-pytorch-opt-rocm to benefit from performance optimizations. Otherwise install python-pytorch-rocm.
sudo pacman -S python-pytorch-opt-rocm
This may generate an installation as large as:
1 2 3 4
Total Download Size: 2654.00 MiB Total Installed Size: 29579.85 MiB
A ZFS pool should surely pre-exist there to allow for the operations introduced later.
Key point: Why not split, or shrink existing volumes for a Time Machine volume?
Not viable. A ZFS partition always tries to occupy as much space as possible, so does ZFS volumes under it, sharing the entire space of it. To reserving some space is exactly what the quota property is designed for.
In addition, you can use the reservation property to guarantee that a specified amount of disk space is available to a file system. Both properties apply to the dataset on which they are set and all descendents of that dataset.
classMultiSet: def__init__(self): self.data = dict() defadd(self, val): self.data[val] = 1 + (self.data[val] if val in self.data else0) defremove(self, val): ifnot val in self.data: return self.data[val] -= 1 if self.data[val] == 0: del self.data[val]
Fenwick Tree / Binary-indexed Tree
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
classBIT: def__init__(self, size): self.size = size self.data = [0] * size defadd(self, pos, val): while pos < self.size: self.data[pos] += val pos += pos & (-pos) defquery(self, pos): res = 0 while pos > 0: res += self.data[pos] pos &= pos - 1 return res
DO NOT dividing an integer by another integer with respect to the modulus $mod$. To calculate $ n/m%mod $ correctly ($ mod$ is a prime number thus $ φ(mod)=mod-1 $). Use Eular function or modular multiplicative inversion.
Euler function $ φ(n) $
Quick greatest common divisor
1 2 3 4 5 6 7 8 9 10 11 12 13
defkgcd(a, b): if a == 0: return b if b == 0: return a if (a & 1) == 0and (b & 1) == 0: return kgcd(a >> 1, b >> 1) << 1 elif (b & 1) == 0: return kgcd(a, b >> 1) elif (a & 1) == 0: return kgcd(a >> 1, b) else: return kgcd(abs(a - b), min(a, b))
This line looks weird, just an ad-hoc cure when the error of undefined $ occurs with the arrow function operating on the jQuery selector. The cause of error still remains a mystery…
==> Downloading and installing Homebrew... xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): could not use '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' because it is not a compatible arch). Failed during: git init -q
To get rid of the initial git error, install a complete version of Command Line Tools from Apple Developer site.