A wrapper for glow that renders mermaid diagrams as ASCII art using mermaid-ascii.
- Install dependencies:
A wrapper for glow that renders mermaid diagrams as ASCII art using mermaid-ascii.
Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.
Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.
| [package] | |
| name = "pocket2linkhut" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| anyhow = "1.0" | |
| argh = "0.1" | |
| csv = "1.3" | |
| serde = { version = "1.0", features = ["derive"] } |
sudo -i nix-store --gc
but then i. e. nix shell --no-substitute --option binary-caches '' .#nixosConfigurations.DANIELKNB1.pkgs.hello again gives:
error:
β¦ while setting up the build environmenterror: getting attributes of path '/nix/store/w0cpwqkiim2b3cd8k0j5j1cz0s8kz87q-qemu-aarch64-binfmt-P-x86_64-unknown-linux-musl':No such file or directory
Setup full disk encryption on a Hetzner cloud CX42 machine. No fancy SSH unlock: you have to go to their web based terminal to enter the disk password on boot.
Notes:
| let | |
| nixbuildDomain = "eu.nixbuild.net"; | |
| nixbuildKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM"; | |
| nixbuildPlatforms = [ "x86_64-linux" "aarch64-linux" ]; | |
| nixbuildFeatures = [ "big-parallel" "benchmark" "kvm" "nixos-test" ]; | |
| nixbuildSSH = '' | |
| Host eu.nixbuild.net | |
| PubkeyAcceptedKeyTypes ssh-ed25519 | |
| ServerAliveInterval 60 | |
| IPQoS throughput |
When I first started to learn how to use NixOS, the Nix package manager, and how to work with the Nix language, I was overwhelmed. While it did not take me too long to (sort of) get into it, it was not the most pleasant experience. I would say that there is not really a single source of truth, like Arch Linux users have with the ArchWiki, where you can basically look up everything. Instead, the information is spread across many different sources, which can make it difficult for beginners to find out how to do what they want to do.
The "modern nix CLI", also known as "nix3 cli", is another thing that can cause confusion when you are just starting your nix journey. There are some commands that look almost exactly the same, such as nix shell compared to nix-shell or nix-build compa
| import sys | |
| import functools | |
| callstack = [] | |
| @functools.cache | |
| def lookup(func): | |
| try: | |
| parts = func.split(":") | |
| with open(parts[0]) as f: |
https://stephenreescarter.net/how-to-shrink-a-wsl2-virtual-disk/
wsl --shutdown
wsl --manage NixOS-Groundtruth -s false
(Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Where-Object { $_.GetValue("DistributionName") -eq 'NixOS-Groundtruth' }).GetValue("BasePath") + "\ext4.vhdx" | Set-Clipboard
diskpart
> select vdisk file="\\?\C:\Users\dkahlenberg\NixOS\ext4.vhdx"
In this article, I'll explain why implementing numbers with just algebraic datatypes is desirable. I'll then talk about common implementations of FFT (Fast Fourier Transform) and why they hide inherent inefficiencies. I'll then show how to implement integers and complex numbers with just algebraic datatypes, in a way that is extremely simple and elegant. I'll conclude by deriving a pure functional implementation of complex FFT with just datatypes, no floats.