Recent submissions

Comment · 7 months ago
eBPF is a great tool to use for debugging this kind of thing too, e.g. [bpftrace](https://bpftrace.org) has an [execsnoop](https://github.com/bpftrace/bpftrace/blob/master/tools/execs...) script for looking at everything being exec'd on the system :-)

(No need to use bpftrace, just an easy example :-) )

Comment · 1 year ago
https://explore.openelectricity.org.au and https://www.nem-watch.info/widgets/reneweconomy/ are a bit fun to look at to see where Australian power is coming from :-)
Comment · 2 years ago
We've had success using Flowbite :-)

We're using it with React and occasionally find the docs lacking (and go looking in the component source for the answers), but otherwise have been happy with it, fwiw :-)

Comment · 2 years ago
One common suggestion is to not set Bash/shell options in the shebang because if someone runs the script with the interpreter explicitly (e.g. `bash my_script.sh`, rather than `./my_script.sh` (which, ime, is quite common as many people to seem to do it to avoid setting the execute bit, sometimes due to a lack of understanding ime)) then the options won't apply - which isn't fun...

Using `set` (e.g. `set -euo pipefail` as the first line after the shebang) is a common suggestion due to this, and similarly it helps with the `#!/usr/bin/env bash` case where the shebang can't handle additional arguments :-)

Comment · 3 years ago
You're looking for [strict tables](https://www.sqlite.org/stricttables.html) and they do already exist :-)

Added in 3.37.0 (2021-11-27), apparently :-)

Comment · 3 years ago
There are alternative C libraries that are worth considering, e.g. Zig (which is what Bun itself is written in, afaiu) supports using [musl](https://musl.libc.org) as an alternative to glibc, and musl can be statically linked as well (by contrast to the glibc quasi-static-linking).
Comment · 4 years ago
We do - and have found it very reliable and I really like it :-)

One of the members of our team finds it more complex when it comes to diagnosing why things aren't running/starting as expected, but that's also down to the complexity we have around s6 with other setup scripts (we use it to manage the full suite of processes in our product).

Hence, they're not the biggest fan of it (and would talk negatively about it), but I _think_ s6 isn't really the culprit and instead the other complexity is.

Although, when things go wrong it can be a little bit harder to chase down than it was with our former manual "start this process" type scripts... But, you can just `./run` the run script which may tell you enough :-)

Comment · 4 years ago
OpenSSH also supports using a script to get the password if using the `SSH_ASKPASS` environment variable, and being invoked under a non-tty input e.g.

  { echo '#!/bin/sh' ; echo 'echo my_password' ; } > password.sh # don't do it like this :-p
  chmod +x password.sh

  SSH_ASKPASS=./password.sh DISPLAY= setsid ssh user@host /bin/id

In newer SSH versions `DISPLAY` is not required (but there is a new `SSH_ASKPASS_REQUIRE` environment variable), but in older (e.g. 8.x) versions, then it needs to be set as the default ssh-ask-password was an X11 command, and I believe the logic assumed that scenario.
Comment · 4 years ago
In Australia you can buy pasteurised egg whites in the refrigerated section at the supermarket, could possibly be useful as an alternative :-)

(Not sure if it would be available where you are or not)

Comment · 5 years ago
Comment · 5 years ago
When we first got it, I used one Easiyo sachet to make one container of yogurt. From then on, I've used 1 heaped tablespoon of the last batch of yogurt and then just milk powder.

My steps:

- Mix ~500ml tap water with 150g of milk powder (just put the lid on and shake vigorously, I always put the water in first as the mixing is much easier).

- Add 1 heaped tablespoon of existing yogurt (the previous batch, or I've used Chobani successfully (I've heard some commercial yogurts work and some don't)).

- Fill (leave 5mm gap at the top) the container with tap water.

- Shake again to mix (less vigorously).

- Add boiling water to maker.

- Put jar in.

- Generally I try to wait 12 hours, sometimes up to 18 when I'm not home.

- Refrigerate and enjoy :-)

I enjoy the yogurt straight, but I wouldn't expect everyone to (it may not be sweet enough) - my wife adds honey or jam and fruit when serving.

(I now actually freeze one tablespoon of yogurt as soon as a batch is done, and use it for the next batch after thawing in the fridge (overnight).)

Comment · 5 years ago
We have an [Easiyo](https://easiyo.com/collections/frontpage/products/black-yogu...) that cost ~$20AUD, and we use one tablespoon of existing yogurt and ~150grams of milk powder (slightly more than suggested for milk, to make it thicker) to make 1 litre of yogurt at a time. (Just mix those bits; put boiling water in the Easiyo, put the container with the mixture in, wait 12 hours, done - no scolding, no temperature monitoring, super simple :-) )

It's incredibly easy, and now I search for more and more recipes that use yogurt to make different things (eg, flatbreads, cakes, pasta sauces, among lots of other things).

It's super easy and really awesome having yogurt forever available :-)

Comment · 5 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton