gomp

joined 2 years ago
 

Curioso che esista questa tassa, e... lascia perplessi che la debba pagare solo chi fa porno (eg. perché non anche chi produce armi o chi lavora nelle scommesse o chi legge il futuro o chi si guadagna da vivere vendendo tabacco o alcool?)

edit: qui dicono che la devono pagare anche "Trasmissioni televisive e operatori media che propongono servizi di cartomanzia, astrologia e simili". Io resto comunque perplesso.

[–] gomp@lemmy.ml 1 points 3 weeks ago

Roughly, it must be a couple hundreds prints and, say, 400 slides?

I don't know how many I actually want to digitize, though: I didn't do any serious culling yet and -critically- how many I want to digitize will depend on how much work/money is gonna take per print/slide.

 

I found some old photo albums and slides (mostly dating back to '80) and I'm considering digitalizing some of them.

How would you proceed in my shoes?

I have a decent mirrorless camera (plus minimal editing skills) and an office scanner, but I'm open to buy extra equipment. I'm also open to sending the lot to some third party studio that specializes in the task, but if possible (and if it's not much more costly) I would prefer to DYI and process the photos/slides as I review them.

[–] gomp@lemmy.ml 2 points 3 weeks ago

Almost as good as star citizen

[–] gomp@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

L’ateneo ha deciso di annullare l’evento [...] appellandosi alla normativa sulla par condicio

Le norme sulla par condicio non riguardano solo i media (quelli "vecchi": TV e giornali)?

IIRC per gli enti pubblici c'è il divieto di far comunicazioni istituzionali e direi che un incontro organizzato dagli studenti non è comunicazione istituzionale dell'università. Semmai il comunicato in cui affermano che un intervento di Thumberg sarebbe, a priori, contrario al governo regionale potrebbe essere comunicazione istituzionale con contenuti politici... boh?

[–] gomp@lemmy.ml 2 points 1 month ago

Can't you just send the PC back if it turns out it doesn't run linux?

[–] gomp@lemmy.ml 1 points 3 months ago (1 children)

Nice.

Is this a crop from a fisheye? The lens distortion looks very unusual, with the stretched corners

[–] gomp@lemmy.ml 2 points 3 months ago

But do you see sea? (I don't)

[–] gomp@lemmy.ml 1 points 3 months ago

Darktable is basically the only software I use so I can't really compare... it definitely does have a learning curve and it's quite technical (designed for nerds, by nerds), but (being a nerd myself) I find it rather natural to use.

In a sense darktable is more a collection of modules bound together in a framework than a monolithic/cohesive software. On one hand, this means you have to learn each module separately; on the other, it also means you can ignore most of the modules and only look at the handful you'll actually use.

Definitely do watch some tutorial to get started with darktable (if only, to understand the general workflow which modules you want to use).

[–] gomp@lemmy.ml 0 points 3 months ago (2 children)

Strage... I can clearly see pink both on my PC and phone (in the initial image, not this one).

Did you export the photo using the srgb color space?

[–] gomp@lemmy.ml 4 points 3 months ago (4 children)

Nice photo.

You should work on it in post, mainly to remove that pink hue in the overblown area.

Here's what I did with darktable (it's just a quick edit, but still an improvement IMHO):

[–] gomp@lemmy.ml 3 points 3 months ago

Are they doing an anime adaptation?

 

In case you wonder, I am not affiliated in any way to that youtube channel.

[–] gomp@lemmy.ml 1 points 4 months ago

messed up the colours in the process

To me it looks like you may have applied some "vintage film" style, and that it doesn't go too well with a photo that is mostly shades of brown.

Brown is really dark, unsaturated orange and we perceive it as a separate color mostly based on what other colors are near it, so it's not easy to work with in a photo where there aren't many non-brown elements.

Also, I am personally quite fed up with the (excessive and ubiquitous) "vintage film" photos.. I think that's not the issue with this photo, but, still, it's a bias of mine so that might be part of it.

I am slightly colour blind

Even mild color blindness must be a real hassle for photography (well.. for post-processing, mostly). I wish I had some suggestion to work around that, but I really can't imagine how it must be.

Anyway, don't let that slow you down! Color shenanigans are really only a tiny part of photography, and (I must say!) they are often the most tacky part. There are lots of greatly influential photographers that even chose to ditch colors altogether and shoot in black&white.

[–] gomp@lemmy.ml 5 points 4 months ago (2 children)

Nice one!

IMHO you might have gone a bit too far with the post-processing (or camera settings, if it's a jpeg): to me there's too high contrast, too much red, and the exposure doesn't agree with the apparent lighting conditions (it seems like it's been shot in broad daylight but it also seems underxposed).

Do borrow your dad's camera more often! :)

 

At some point while I was fiddling, Darktable asked me whether I wanted to get rid of the script manager (hide it? disable it? I don't recall) and I clicked "yes" by mistake: now there is no script manager in my left bar.

Do you know the "proper" way to get it back? (ie. one that is not "delete all darktable settings from your home directory") I searched the preferences but didn't find anything.

 

My 12yo niece will come visit this summer and I'm thinking of taking her on a photowalk (or more, if she ends up enjoying it).

Should we go with just my camera or should she have her own? (and in case, should I get her a "proper" one or a simpler/compact one?)

Can you share your experience in introducing young boys/girls to photography?

 

I'm rebuilding my home server in nixos.

Rather that configuring the various services natively in nixos, I decided to run containers via virtualisation.oci-containers whenever possible, mostly to be able to independently update the system and the various services.

Everything is going smoothly, but whenever I (for whatever reason) do nixos-rebuild boot and reboot after adding a container instead of nixos-rebuild switch, I run into this issue where podman isn't able to resolve the host (below you see the docker hub host, but it also happened with ghcr.io):

podman-apprise-start[1352]: Trying to pull docker.io/caronc/apprise:1.1.8...
podman-apprise-start[1352]: Pulling image //caronc/apprise:1.1.8 inside systemd: setting pull timeout to 5m0s
podman-apprise-start[1352]: Error: initializing source docker://caronc/apprise:1.1.8: pinging container registry registry-1.docker.io: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host

I thought that my podman-* services were missing a dependency on network-online and that they were started before the network was available, but it is't the case:

# systemctl list-dependencies podman-apprise.service 
podman-apprise.service
● ├─system.slice
● ├─network-online.target
● │ └─systemd-networkd-wait-online.service
● └─sysinit.target
●   ├─dev-hugepages.mount
[...snip...]

Do you happen to know what the issue is?

PS: Manually running systemctl start podman-whatever once fixes the issue, of course, but I wonder if there's a more robust solution?


update:

After investigating based on balsoft input below, the issue seems to be that systemd-networkd-wait-online doesn't behave as expected (by me).

Basically, systemd-networkd-wait-online waits for network interfaces to have a carrier (working ethernet cable) and an IP address. This is what in systemd-networkd docs is called the "degraded" state (no, it doesn't mean that something got worse than before... don't think too much of what "degraded" implies in English).

In my case, I have an interface that is setup via DHCP and that also has static IPs assigned:

$ cat /etc/systemd/network/00-lan1.network 
[Match]
Name=lan1

[Network]
DHCP=ipv4
IPv6AcceptRA=no
LinkLocalAddressing=no

[Address]
Address=192.168.10.10/24

[Address]
Address=192.168.10.99/24

If you are wondering, the reason I do this is that I want static IPs for my dns server and reverse proxy, but I also want my home server to use DHCP to fetch some network-wide configuration which, critically, includes the default route.

Back to the issue: IIUC, since the interface has a non-link-local address (which systemd-networkd confusingly calls a "routable" address), it is immediately considered "routable" (a state that is moar better than "degraded") and so not only it's basically ignored by the default systemd-networkd-wait-online configuration, but even adding

[Link]
RequiredForOnline=routable

to /etc/systemd/network/00-lan1.network doesn't make a difference whatsoever.

For now, my stopgap solution is to explicitly set the default route for the "lan1" network:

[Network]
Gateway=192.168.10.1

this seems to solve the issue with podman and, while the system still thinks to be "online" before being fully configured, it will suffice until I find a more elegant/robust way (ping me in a while if you are interested).

refs:
systemd-networkd-wait-online man page
systemd-networkd docs on "RequiredForOnline"
networkctl man page

126
submitted 1 year ago* (last edited 1 year ago) by gomp@lemmy.ml to c/linux@lemmy.ml
 

I remember a story where people asked about blobs included in Ventoy and there were no comments from the devs, leading to suspicion.

At the time it wasn't clear to me if there was any substance to the story or if it was the usual Internet exaggeration, so I resolved to ignore it for the time being and saved a reminder to look into it after a while.

Now my reminder fired off and I looked around, but couldn't find how the story ended... do you know?

 

I have two functions that are similar but can fail with different errors:

#[derive(Debug, thiserror::Error)]
enum MyError {
  #[error("error a")]
  MyErrorA,
  #[error("error b")]
  MyErrorB,
  #[error("bad value ({0})")]
  MyErrorCommon(String),
}

fn functionA() -> Result<String, MyError> {
  // can fail with MyErrorA MyErrorCommon
  todo!()
}

fn functionB() -> Result<String, MyError> {
  // can fail with MyErrorB MyErrorCommon
  todo!()
}

Is there an elegant (*) way I can express this?

If I split the error type into two separate types, is there a way to reuse the definition of MyErrorCommon?


(*) by "elegant" I mean something that improves the code - I'm sure one could define a few macros and solve that way, but I don't want to go there

edit: grammar (rust grammar)

 

I experimented with several ways to run my services:

  1. "regular" systemd services (services.glance = { ... };)
  2. nix containers (containers.glance = { ... };)
  3. podman containers (virtualisation.oci-containers.containers.glance = { ... })

and I must say I'm starting to appreciate the last option (the least nixos-y) more and more.

Specifically, I appreciate that:

  • I just have to learn the app/container configuration, instead of also backwards-translating from their config into the various nixos options (of course the .yaml or whatever configuration files are still generated from my nixos config, I just do that in a derivation instead on relying on a module doing it for me)
  • Services are sometimes outdated in nixpks (even in unstable - and juggling packages between stable and unstable is yet another complication)
  • I feel like it's more secure (very arguable and also of very little consequence since everything is on my homelab... it's mainly for the warm fuzzies)

Do you guys use one of the options above? Something different?

 

edit: for the solution, see my comment below

I'm trying to package a go application (beszel) that bundles a bunch of html stuff built with bun (think, npm).

The html is generated by running bun install and bun run and then embedded in the go binary with //go:embed.

Being completely ignorant of the javascript ecosystem, my first idea was to just replicate what they do in the Makefile

postConfigure = ''
bun install --cwd ./site
bun run     --cwd ./site build
'' 

but, since bun install downloads dependencies from the net, that fails.

I guess the "clean" solution would be to look for buildNpmPackage or similar (assuming that exists) and let nix manage all the dependencies, but... it's some 800+ dependencies (at least, bun install ... --dry-run lists 800+ things) so that's a hard pass.

I then tried to look at how buildGoPackage handles the vendoring of dependencies, with the idea of replicating that (it dowloads what's needed and then compare a hash of what was downloaded with a hash provided in the nix package definition), but... I can't for the life of me decipher how nixpkgs' pkgs/build-support/go/module.nix works.

Do you know how to implement this kind of vendoring in a nix derivation?

 

If I navigate to https://lemmy.ml/c/simplex the page behaves as if I'm not logged in (eg. I see the "login" and "signup" at the top-right link instead of my profile).

I visited other communities (including this one I'm posting on) and they seem fine; hard-refreshing the browser doesn't seem to have any effect, nor does logging out of lemmy and authenticating again.

Can someone try and report if it's a bug or some astral conjunction affecting my PC?

edit: It works now. No idea why.

 

Over the years I have accumulated a sizable music library (mostly flacs, adding up to a bit less than 1TB) that I now want to reorganize (ie. gradually process with Musicbrainz Picard).

Since the music lives in my NAS, flacs are relatively big and my network speed is 1GB, I insalled on my computer a hdd I had laying around and replicated the whole library there; the idea being to work on local files and the sync them to the NAS.

I setup Syncthing for replication and... everything works, in theory.

In practice, Syncthing loves to rescan the whole library (given how long it takes, it must be reading all the data and computing checksums rather than just scanning the filesystem metadata - why on earth?) and that means my under-powered NAS (Celeron N3150) does nothing but rescanning the same files over and over.

Syncthing by default rescans directories every hour (again, why on earth?), but it still seem to rescan a whole lot even after I have set rescanIntervalS to 90 days (maybe it rescans once regardless when restarted?).

Anyway, I am looking into alternatives.
Are there any you would recommend? (FOSS please)

Notes:

  • I know I could just schedule a periodic rsync from my PC to the NAS, but I would prefer a bidirectional solution if possible (rsync is gonna be the last resort)
  • I read about unison, but I also read that it's not great with big jobs and that it too scans a lot
  • The disks on my NAS go to sleep after 10 minutes idle time and if possible I would prefer not waking them up all the time (which would most probably happen if I scheduled a periodic rsync job - the NAS has RAM to spare, but there's no guarantee it'll keep in cache all the data rsync needs)
view more: next ›