[-] gozz@lemmy.world 3 points 3 months ago

Phonetics is the study of speech sounds. The phonetic alphabet is called that because each letter/word in the alphabet was chosen to be one that started with the corresponding phoneme and that the set of words were between them phonetically unambiguous. Phonics is a way of teaching reading and writing that is based on the phonetics of words and how they relate to the written form.

[-] gozz@lemmy.world 3 points 6 months ago

Note: This incident is from February 2025, not recent news. This is a repost of one of their top articles of the year. I hadn't seen it originally, but it should probably be marked in some way as not being current as of time of posting.

[-] gozz@lemmy.world 20 points 9 months ago

I believe the thread was automatically locked due to community reports and then a mod manually unlocked it?

[-] gozz@lemmy.world 3 points 10 months ago

Yes, that would be a digital modulation. That is decidedly not what is being done with the bird. The input data is the "PNG" of the bird, which is then not digitally modulated, but converted to an analogue signal and later redigitized. If the file has been converted to a series of pulses at different frequencies (the equivalent of your black and white squares) that would be a digital modulation. I am not arguing that this is not possible. My original comment explicitly says I would like to see a follow up with actual modulation. But just because it is possible to run dialup over an analogue phone line does not mean that calling your grandma on that same phone is a digital communication system. Some computers back in the day could modulate and record data on commercial audio cassettes. That does not mean that if I record something off the radio and play it back later that's a digital copy of the song.

[-] gozz@lemmy.world 11 points 10 months ago

Exactly. Digital logic, when implemented in analogue, generally have to have forbidden zones where a signal in that range is considerer invalid. Regardless of implementation, digital is about the discretized logic of the system. That is explicitly the whole point of digital: Minor analogue distortion does not change the information content of the signal unless it is so bad as to flip a bit.

[-] gozz@lemmy.world 5 points 10 months ago* (last edited 10 months ago)

The whole sequence is:

  • Digitally synthesized spectrogram (lossless)
  • Played through a DAC and speaker to produce an analogue signal (lossy)
  • Heard by the bird (analogue, lossy)
  • Reproduced by the bird (analogue, lossy)
  • Captured by an ADC as a digital audio signal (lossy)
  • Spectrum-analysed to observe a similar (but corrupted) reproduction of the shape in the original spectrogram

To be transferring digital information, we would instead need to modulate and demodulate the digital signal (exactly like an old modem) so that the analogue corruption does not affect the digital signal:

  • Image file (lossless)
  • Bit stream (lossless)
  • Analogue modulation of bit stream played through DAC (lossy)
  • Heard by the bird (lossy)
  • Reproduced by the bird (lossy)
  • Demodulated to recover exact bit stream despite distortion (lossless again)
  • Decode bit stream to recover original image file, bit-for-bit perfect

I extremely doubt that this bird is capable of 2MB/s. For reference that would make it 280+ times fast than dialup, and barely slower than ADSL. This setup is basically just using the bird instead of a telephone line.

[-] gozz@lemmy.world 20 points 10 months ago

Not to be a wet blanket, but every time this comes up I get annoyed by some factual inaccuracies in the articles about this. It is not digital! He drew an image on a computer, but converted it to an analogue spectrogram to store on the bird. That's neat as hell, but it's not digital. The image that he got back was slightly corrupted.

Now I would be fascinated to see a follow-up seeing if you can actually modulate a digital signal and have is survive a round trip through the bird bit-for-bit accurate. I suspect in reality it would be much lower data rate, but definitely not nothing!

[-] gozz@lemmy.world 2 points 1 year ago

Got the client working (mostly) without issues again, though trying to imitate my process for host keys as closely as possible I did encounter some weirdness that led me to this open bug: https://bugzilla.mindrot.org/show_bug.cgi?id=3355 So that may be the source of my issues... If they keys I was using suddenly were secretly requiring touch, it would explain a lot. I can't right now but I will do another experiment with host keys when I can. Still would love to see if anyone else is able to reproduce this behaviour or get it working.

[-] gozz@lemmy.world 2 points 1 year ago

I previously have had no issues using this as a client key, but honestly I wouldn't put it past myself to have picked the wrong key and not noticed. Maybe I will give it another try, but I don't think that's it.

[-] gozz@lemmy.world 8 points 1 year ago

I possibly should put greater emphasis on the fact that I am talking about the host key, not the client key. This guide is for a client identity key. I am talking about host keys as you find in /etc/ssh/ssh_host_ed25519, etc.

47
submitted 1 year ago* (last edited 1 year ago) by gozz@lemmy.world to c/selfhosted@lemmy.world

A common application of security keys is as a hardware-backed SSH key. I have lately been curious as to whether it would be possible to use one as an SSH host key. It seems like it should be straightforward enough, it's just another SSH key after all, if it works as a client identity key, why wouldn't it work as a host key?

So I had a mess around with this, but haven't been able to get it to work. Using sudo ssh-keygen -t ed25519-sk -O no-touch-required (or with -O resident as well) just ends up with the connection being refused and the auth log showing sshd: no hostkeys available -- exiting.

I had a look at the source for OpenSSH, but after 10 minutes of digging can find no indication of why it would cosider this to not be an ED25519_SK key, which the code explicitly accepts as a host key.

If anyone has any ideas for what is going wrong or has better luck, I would love to hear the details.

(Posted in selfhosted because this is the most prominent community that talks about ssh I can find, somewhat unsurprisingly)

EDIT to emphasize that this is talk about host keys like /etc/ssh/ssh_host_ed25519, not client keys. My attempts to make a working "ssh_host_ed25519_sk" are what I am reporting on here.

UPDATE: It works! So it ended up being a combination of a couple of confusing things, I believe.

One is that there is an old bug that means that ssh-keygen -K will accidentally make keys require user interaction again, which sshd then ignores as though they don't exist. I believe this is what I was seeing previously, as I had been messing around with the keys elsewhere to verify them and then used ssh-keygen -K as a convenient way to drop them into /etc/ssh. But that alone would not have been enough to stop me, as I did try generating them in-place...

But I generated them with the name ssh_host_ed25519_sk_key, following the naming convention of id_ed25519_sk, and the fact that ED25519_SK is listed as a different enum value in the OpenSSH source. However, even upon stripping out every other key and enabling debug logging, it simply never even tried to touch that file as far as I could tell. So as an experiment I renamed it to ssh_host_ed25519_key as though it is a normal key, and that immediately worked exactly as expected!

So my final steps to get this working were:

sudo ssh-keygen -t ed25519_sk -O resident -O no-touch-required
Generating public/private ed25519-sk key pair.
You may need to touch your authenticator to authorize key generation.
Enter PIN for authenticator: 
Enter file in which to save the key (/root/.ssh/id_ed25519_sk): /etc/ssh/ssh_host_ed25519_key
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /etc/ssh/ssh_host_ed25519_key
Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub

Testing sshing into the host then works flawlessly as long as the security key is plugged in, and the connection is rejected the moment it is unplugged.

So this has been an interesting little experiment. Notably, because of the requirement for sshd to interact with the security key, this will mess up anything else (like age) that uses the key directly as a cryptographic identity and isn't smart enough to reach out to the security key.

Given how long it took me to find any information about this, hopefully this will serve someone well in future.

[-] gozz@lemmy.world 19 points 2 years ago

As others have said, it is not entirely clear what you mean by sharp. Based on the rounded corner and button example you gave previously, I think it might just be the graphic design. MacOS has had a lot of time invested into its design language including subtle things like a thin, almost glass-like specular border around windows and then a drop shadow. This very much becomes a matter of taste in many cases, but for some it helps identify boundaries more precisely. Perhaps have a look at https://github.com/vinceliuice/WhiteSur-gtk-theme, which replicates MacOS as closely as possible. You may be able to experiment with it side by side and see if you can figure out exactly what design element it is that you are looking for.

view more: next ›

gozz

0 post score
0 comment score
joined 3 years ago