812 karma · joined May 15, 2017 (9y ago) · 279 submissions
comment 3y ago · link · parent
I have tried using chrome (stable and unstable) and OBS. OBS uses pipewire to capture (which I believe in turn talks wayland xdg-desktop-portal). I think chromium works the same way (I have the chrome flag "enable-webrtc-pipewire-capturer" turned on). There doesn't seem to be a way to share a single specific window.
There is so much half-cocked or old information out there it is hard to find the right place to look. At the end of the day I'm not sure if xdg-desktop-portal, wlroots, or pipewire need to be improved.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
The AHK documentation is really good, and is a windows help file (chm). It is really fast, has a good enough indexed search, and example code is usually present.
comment 3y ago · link · parent
comment 3y ago · link · parent
My strategies:
- keep the documentation open
- install nixos in a vm
- search github for "configuration.nix" to find fully worked examples for nixos. I just cloned anything that looked useful[1] and would grep through it
- read the source code for nixpkgs
- search google and search https://discourse.nixos.org/ when you have an idea of what you want to do to find other people discussing it
It took me a couple days to have a very basic system running and a month to port most of my setup into nix (running some containers, overriding system packages, defining my own packages, running unmodified binaries using nix-ld).
I still use non-nix containers for a few services that I don't want to port over (but if I had known nix when I started I definitely would've used it).
Every step of the way was a huge struggle but the tools I have learned stay useful so I hope it is worthwhile investment. Still sometimes the extra nix friction is really frustrating but I can't help but think Nix or something like it is inevitably the future of software.
[1]: here is my random current list with some good and some bad... https://cgit.euer.krebsco.de/stockholm/ https://github.com/9ary/dotfiles.git https://github.com/baitinq/nixos-config https://github.com/barrucadu/nixfiles.git https://github.com/catern/dotfiles.git https://github.com/contrun/infra.git https://github.com/disassembler/network.git https://github.com/juliosueiras/rasp-nix/ https://github.com/KFearsoff/NixOS-config.git https://github.com/lopsided98/nixos-config https://github.com/Mic92/dotfiles.git https://github.com/moul/nixpkgs.git https://github.com/musnix/musnix https://github.com/myme/dotfiles https://github.com/nix-community/emacs-overlay https://github.com/nix-community/home-manager.git https://github.com/NixOS/nixos-org-configurations.git https://github.com/reckenrode/nixos-configs https://github.com/skogsbrus/os https://github.com/Xe/nixos-configs.git https://github.com/Xe/site.git https://git.immae.eu/perso/Immae/Config/Nix.git https://gitlab.com/pgronkievitz/nixos-configurations.git https://gitlab.com/rprospero/dotfiles.git
comment 3y ago · link · parent
Nix is a programming language plus utilities that are useful to define and work with software packages in a reproducible way (https://github.com/nixos/nix/).
Each package is called a "derivation", which is a function that takes inputs and makes output. The inputs are everything that is needed to make the output. It is "pure functional" package management - for the same input arguments, the same output will be produced. Nix is really fast because each derivation is hashed and cached and the language is lazy-evaluated.
Builds are "hermetic", meaning only the inputs specified in the derivation are available at build time. Contrast this to some packaging systems, where the build is done against some staging area where packages get installed as they are built and the output can depend on the non-deterministic order that packages are built.
Nixpkgs (https://github.com/nixos/nixpkgs/) is a large collection of recipes for existing software. It contains both rules to build software as well as "modules" to configure it or extend it. NixOS the linux distribution is also part of nixpkgs. There are lots of design patterns here and it can go pretty deep. There are also tons of hacks and patches and workarounds to make software conform to the way nix works. Nixpkgs also has a lot of useful library modules built in.
Nix is the latin word for snow. Nix "flakes" are a way to combine multiple inputs as well as pin the version of inputs. Kind of like pipenv/requirements.txt or "cargo lock" or "yarn lock" but for anything.
The output of derivations go in the "nix store" which is a path like /nix/store/<hash>/, so all sorts of software can co-exist (think multiple incompatible versions of the same library) and can be referenced in a fixed way. Usually you will end up with an output that is mostly symlinks to other /nix/store/ paths.
Nix can make practically any combination of software you can cobble together trivially rebuildable/reproducible. You can write some nix code that will produce a a VM image with test scripts as well as a script to launch the VM with a patched version of qemu and run those tests. You can have all your dotfiles/configuration in code with nix installed just for your user on top of Ubuntu. You can generate a raspberry pi sd card image from a short nix source file and a single command, and then 6 months later change a single line and regenerate it without worrying it might be broken.
You can achieve a lot of that stuff with Yocto or Ansible or a Dockerfile and scripts, but it would be slower than nix and more fragile.
comment 3y ago · link · parent
What you're saying is in the practical real world we can never measure things exactly. That's true but that's not what I got from calculus. Irrational numbers come to mind (not calculus).
I come to almost the opposite conclusion as you. It is amazing that we can solve equations in spite of infinities.
comment 3y ago · link · parent
It won't work out unless it becomes common to run LLMs locally. Kind of a chicken-and-egg problem so I hope they try it!
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Ah, the rub is that a fine-tuned Davinci costs 6x a standard Davinci. Interesting. https://openai.com/api/pricing/
comment 3y ago · link · parent
Some things I'm proud of here:
- easy debug console (https://github.com/EBADBEEF/ahkv2-scripts/blob/main/Autostart.ahk#L4)
- compose keys (to type keys like "¿ é ü" easily). Includes libX11 key database parser
- window move and resize with mouse
I love AutoHotkey's documentation. It is an old school windows help file (chm) and it works really well. All my scripts run in an AutoHotKey process that takes less than 2MB of ram and provide great value to me.comment 3y ago · link · parent
Isn't the argument about simulation more about pondering the question "what is the fundamental nature of reality?", not "why is there life?". If you say that some beings are interfering with our simulation (either designing life, or preventing other life, etc...), that is just another word for god.
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
The "classic goldbug" insists that gold has properties that are good for a currency (does not degrade, can be divided, does not rely on a trusted third party, has scarcity) and it has been used as currency for a long time in civilisation. I take "intrinsic value" for commodities to mean "has use aside from being a currency", for example gold is used in jewelry (does not tarnish, is soft, is pretty?) and electronics. The non-intrinsic value would be its use as a currency. If a goldbug argues all the value of gold is intrinsic, they are confused because the price of gold would probably be much lower if it had no use as a currency.
Bitcoin-bugs make similar claims to gold, plus it can be sent over the internet and is more scarce than gold. As for intrinsic value for Bitcoin, it doesn't really have one I guess. Or maybe you could make an argument about other things built on top of its blockchain like smart contracts or timestamping services?
In summary, I agree that an argument of value from "pure scarcity" is bad, but I don't think it is a common belief!
comment 4y ago · link · parent
From https://en.wikipedia.org/wiki/Zaryn_Dentzel "Dentzel was robbed of millions in Bitcoins in 2021" (https://www.newsweek.com/bitcoin-millionaire-zaryn-dentzel-b...) (https://english.elpais.com/usa/2021-11-03/criminal-gang-assa...)
Robbed twice now!