Better HN
topnewbestaskshowjobs
Log inSign up

hackernudes

812 karma · joined May 15, 2017 (9y ago) · 279 submissions

Submissions

comment 3y ago · link · parent

I'm using sway (wlroots + xdg-desktop-portal-wlr). Sharing the whole screen works.

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

How about sharing contents of specific windows for webrtc (or OBS)?

comment 3y ago · link · parent

See also https://u-root.org/

comment 3y ago · link · parent

Link with story cued (at 4:21): https://youtu.be/TlXLCrzpToo?t=261

comment 3y ago · link · parent

Here is my collection of AutoHotKey v2 scripts: https://github.com/EBADBEEF/ahkv2-scripts

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

Each implementation of Wayland is its own beast (called a "compositor"). Sure there is a libwayland they all share, but all the implementation details are up to the compositor. The idea of a cursor being hardware or software is not a fundamental part of Wayland as far as I can tell. Hardware cursors are supported in wlroots.

comment 3y ago · link · parent

I bought some unroasted (green) robusta beans from sweetmarias.com and then roasted them. It wasn't bad, but I prefer arabica. It has a more earthy taste. Some espresso blends are part robusta.

comment 3y ago · link · parent

You can even staple the bag closed. But now I'm a whirlypop convert. Coconut oil and flavacol popcorn salt. Yum.

comment 3y ago · link · parent

I don't have a good guide. I had to just start getting my hands dirty and piece it together.

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

Your mind must be pure to understand Nix. Work on your purity. Just kidding. You might explain why you want to try nix? That would help customize an explanation for you, because there are levels. Umm... here is my attempt. Sorry.

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

Anti-trust hedging?

comment 3y ago · link · parent

Sounds like you're more advocating for cold storage. You could be right, but even the most secure software wallet is only as secure as the computer it is running on.

comment 3y ago · link · parent

Well not anymore...

I don't get your response, though. It was an app where the keys were "yours". The "not your keys" is about custodial services, which this is not.

comment 3y ago · link · parent

I would say calculus is about solving things exactly using infinitesimals and limits. There's also plenty of equations that can only be solved numerically.

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

I don't think there was a market for it before LLMs. Still might not be (especially if they don't want to cannibalize data center products). Also, they might have hardware constraints. I wouldn't be that surprised if we see some high ram consumer GPUs in the future, though.

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

Wow, that's funny - almost looks like bcachefs explaining a similar issue here https://lore.kernel.org/lkml/20230509165657.1735798-7-kent.o...

comment 3y ago · link · parent

Mosh is a terminal emulator itself and sends the diff of the output from the server to the client. Ssh just passes the terminal data through. I think that is why mosh is like tmux, because tmux is also a terminal emulator.

comment 3y ago · link · parent

No, that was LaMDA. https://cajundiscordian.medium.com/is-lamda-sentient-an-inte...

comment 3y ago · link · parent

This is for 5ghz AP (access point) mode. As a station/client it works fine. A workaround here https://tildearrow.org/?p=post&month=7&year=2022&item=lar

comment 3y ago · link · parent

I thought fine-tuning allows you do "inject the prompt" only once. https://platform.openai.com/docs/guides/fine-tuning

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

I recently updated my scripts to work with ahkv2. https://github.com/EBADBEEF/ahkv2-scripts

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

Wouldn't that be Docker Subsystem for Mac? DSM, WSL, WTF?

comment 3y ago · link · parent

That doesn't really solve the problem because the simulation is (apparently) big enough to allow life to evolve. Why couldn't life evolve multiple times in a simulation?

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

I fondly remember listening to his show on KGO while hanging out on IRC. I even played Quake 2 with him (hosted on his shiny new cable modem, of course). Good times! He really was ahead of the curve engaging with his audience. I followed along with TechTV for a little bit, but it just wasn't the same.

comment 4y ago · link · parent

Nice. My approach when faced with a https inspecting (mitm) proxy that did not support "http connect" requests was to do ssh over websocket.

comment 4y ago · link · parent

Um... You need to check your math.

1200 megabits / 8 = 150 megabytes

1.2 TB = 1200000 MB

12000000 MB * (1 sec / 150MB) = 8000 sec = 2.22 hours

comment 4y ago · link · parent

I don't think interruptions are a problem with satellite TV. The satellites are in geosynchronous orbit (unlike Starlink in low-earth-orbit). As long as your view is not blocked or impeded by bad weather you will never see an interruption. Source: worked on satellite TV set top boxes (also had DirecTV for awhile).

comment 4y ago · link · parent

If you make up what people say and then argue with them it's pretty easy to win.

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

I think the commenter meant why did you choose to show a non-perfect example of your software working? It missed a few faces in the black and white picture.

comment 4y ago · link · parent

A standout on that list is #7 https://celsiusnetworth.com/Zaryn-Dentzel.htm

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!

1
678910