Spyke

Posts

emacs·Emacsbynettie

How to get 2 spaces for tab? [SOLVED!]

I'm new here, a neovim exile as I don't like the racism.

I've compiled emacs 31 and I'm using eglot, php-ts-mode and phpantom_lsp (also tried phpactor). I'm trying to get it to auto indent/reformat using two spaces, not tabs, not four spaces!

Things I've tried:

  • (setq-default tab-width 2)
  • (setq tab-width 2)
  • install editorconfig package, add an .editorconfig file in the project root. It's enabled, apparently but still getting 4 spaces.
  • I read that when eglot is in use it defers formatting to the lsp. So I tried configuring that, but still getting 4. I still get 4 after M-x eglot-shutdown too, so I don't think it's eglot ?

Any help appreciated!

View original on lemmy.world
4
linux·Linuxbynettie

How to unlock LUKS partition at boot?

I have a file system on LVM inside LUKS on a 2nd SSD that I'd like to mount at boot time. The OS boots fine on the main (non-LUKS) SSD.

/etc/crypttab contains a line mapping a UUID to a name, with no keyfile.

/etc/fstab contains a line mapping /dev/LVMvg/volume to /home/special

But I'm not asked for the passphrase at boot.

I can do it manually once booted (cryptdisks_start asks for the passphrase, decrypts it, and then LVM picks up the volumes enabling me to mount /home/special.) But I'd like all this to happen early in the boot.

How can I make the early processes ask me for the crypt password?

Thanks!

EDIT: Solved!

Thanks (blush) to man crypttab ... Add initramfs to the options field in crypttab does the trick. I was a bit confused though because man crypttab tells me that Systemd's crypttab is different and doesn't support the initramfs option... but I'm using systemd and it worked. Anyway, it did work. Phew.

Thanks for answers though!

View original on lemmy.world
26
trans·Transbynettie

Estrogen - cis man response?

I'm trans femme, considering hrt. By a long way, most reports of what it's like say: within the first week I felt different emotionally /in my mind. Feelings seem to vary from calmer, to the author feeling more herself. This initial euphoric feeling is reported to fade over time, usually.

I just wondered how it would feel for a cis man if he were to take it for a week. I understand that if you stopped after a week there would not be any long term effects at all. So I'd be surprised if it hadn't been tried!

Why do I wonder this? I suppose I'm wondering if it feels good for everyone. I'm scared of taking it. But I'm scared of living with the constant doubt. Most gender affirming actions I've taken have been very helpful, really made me feel more myself. But if hrt makes everyone feel better, at least at first, I wouldn't be able to know whether it would be right for me by trialling it (and thereby judge whether it might be worth all the downsides that come along with the positives or not).

Any experience shared is v welcome!


Edit: Thanks everyone for interesting info! I wanted to add here at top that in no way am I saying a person's reaction to hormones has any effect on their gender. I'm not looking to "test" my trans-ness by trying hrt. Just interested to learn more about the range of responses. Many thanks all 🙂

View original on lemmy.world
36
askandroid·Ask Androidbynettie

Are silent notifications needed for background services?

Silent notifications are annoying me, they put up icons by the clock and make me think I have something to notice but it's just a service.

E.g. ntfy

If I go to app management screen I can disable notifications but I'm unclear if that means the background service doesn't run as it should - I'm sure I've seen something about that somewhere.

I'm on android 15. Thanks in advance!

View original on lemmy.world
7
php·PHPbynettie

PHP-FPM and too many requests

I noticed that if you have too few pm_children set then some requests hang until timeout. This surprised me - I'd expect an immediate error, but it's more like a tarpit! For ages I was thinking my server was not performant, then I noticed via top that it wasn't doing or waiting while the browser was.

I have two questions:

  1. If you have pm_max_children=1 and you occupy that and submit another request, what actually happens? (I'm proxying through nginx.) HTTP doesn't have a "40_ Come back later".

  2. (if life deals you lemons...) if you can generate a tarpit that doesn't use server resources, this could be quite useful to know about too!

View original on lemmy.world
6
mtf·Transfembynettie

Gender is not a 1D spectrum

A personal take on how I experience gender.

EDIT - more context would have helped as

I'm not trying to propose some simplified mathematical fits all graph here.

I'm struggling, having been out as non binary for about 5 years, with the idea that trans woman might be a better introductory starting point label for me. I understand gender as complex - far more complex than a 2 line graph sketch - but drew the graph to hone in on MY experience with fluidity. I was interested in my strength/clarity of feeling at different points.

Gender is not a 1D spectrumhttps://mindout.uk/2025-01-18-Gender-is-not-a-1D-spectrumOpen linkView original on lemmy.world
28

You reached the end