d_k_bo

joined 4 months ago
[–] d_k_bo@feddit.org 1 points 1 hour ago

Caddy automatically sets up certificates for you. Since I don't want my subdomain to appear in certificate transparency logs, I use a wildcard certificate which requires using a plugin for my DNS provider.

[–] d_k_bo@feddit.org 21 points 1 day ago (3 children)

A reverse proxy, in my case Caddy.

[–] d_k_bo@feddit.org 18 points 3 days ago (1 children)

I would prefer manually writing each software using butterflies over having snapd installed on my system.

[–] d_k_bo@feddit.org 8 points 1 week ago

To explain it a bit further: when you move a file/directory on the same mount point, moving the file/directory is essentially just a rename operation, which doesn't involve copying the data itself and is a very cheap operation. If you move a file/directory across mount points, you need to (recursively) copy the file/directory, copy file metadata and (recursively) delete the old file/directory, which is slow and error-prone.

[–] d_k_bo@feddit.org 90 points 1 week ago* (last edited 1 week ago) (5 children)

the hidden "trashbin", .Trash-$(uid), invented by Ubuntu

This isn't some “idiotic principle invented by Ubuntu”, it just follows the freedesktop.org Trash specification. For many users, it can be really beneficial, see also the spec's introduction:

An ability to recover accidentally deleted files has become the de facto standard for today's desktop user experience.

Users do not expect that anything they delete is permanently gone. Instead, they are used to a “Trash can” metaphor. A deleted document ends up in a “Trash can”, and stays there at least for some time — until the can is manually or automatically cleaned.

Whether an application like Prism Launcher should use the trash can or delete the files directly is an entirely different question.

[–] d_k_bo@feddit.org 10 points 1 week ago

I never heard of Cozy, but it looks quite nice. The Self-Hosting Documentation ist a bit lacking, but https://github.com/cozy/cozy-stack-compose contains all required information to set it it up yourself.

I originally used Nextcloud, but it has a lot of features not related to file hosting

Cozy seems to be in a similar situation, where file storage is just one of many features that it provides. If you want just files, it might be the best idea to just use any WebDAV Server or something like File Browser.

[–] d_k_bo@feddit.org 8 points 2 weeks ago

FYI, you mentioned @minecraft@lemmy.world on mastodon which is actually an English speaking community on Lemmy. This created a new discussion post here on Lemmy which propably wasn't what you intended to do. In the future, please look at the account description before mentioning it.

[–] d_k_bo@feddit.org 16 points 2 weeks ago* (last edited 2 weeks ago)

The error message is very detailed and there is nothing to add to it.

If you want to install an application/CLI tool, use pipx or your system package manager. If you want to install a library, use a virtual environment (e.g. by using python -m venv) or your system package manager.

[–] d_k_bo@feddit.org 1 points 2 weeks ago

I think you understood their comment wrong. In your code (e.g. label.add_css_class("green");) you don't use a dot, but in the CSS stylesheet. It works the same as with HTML/JS/CSS.

[–] d_k_bo@feddit.org 2 points 2 weeks ago (1 children)

Well, that's CSS :D

Note that if you create a custom Widget class, you can set a CSS name, wich isn't a CSS class and doesn't use a leading dot.

[–] d_k_bo@feddit.org 5 points 2 weeks ago* (last edited 2 weeks ago) (6 children)

Just use label.add_css_class(), label.remove_css_class() or label.set_css_classes() and make sure to properly load your CSS style sheets, this is usually done by including them as a resource alongside .ui files and icons. If you are using libadwaita, you can also use its predefined style classes.

full example (requires nightly toolchain)

#!/usr/bin/env -S cargo +nightly -Zscript
***
[dependencies]
gtk = { package = "gtk4", version = "0.9.3", features = ["v4_12"] }
***

use gtk::{glib, prelude::*};

const STYLESHEET: &str = r#"
.green {
    color: green;
}
.red {
    color: red;
}
"#;

fn main() -> glib::ExitCode {
    let app = gtk::Application::builder()
        .application_id("org.example.HelloWorld")
        .build();

    app.connect_activate(|app| {
        let window = gtk::ApplicationWindow::builder()
            .application(app)
            .title("Hello, World!")
            .build();

        // Stylesheets are usually bundled with application resources
        // and automatically loaded
        let css_provider = gtk::CssProvider::new();
        css_provider.load_from_string(STYLESHEET);
        gtk::style_context_add_provider_for_display(
            &RootExt::display(&window),
            &css_provider,
            0
        );

        let box_ = gtk::Box::new(gtk::Orientation::Vertical, 6);

        let label = gtk::Label::builder()
            .label("Hello, World")
            .css_classes(["green"].as_slice())
            .build();
        box_.append(&label);


        let button = gtk::Button::builder()
            .label("Toggle Color")
            .build();
        box_.append(&button);

        button.connect_clicked(glib::clone!(#[weak] label, move |_| {
            if label.has_css_class("red") {
                label.add_css_class("green");
                label.remove_css_class("red");
            } else {
                label.add_css_class("red");
                label.remove_css_class("green");
            }
        }));

        window.set_child(Some(&box_));
        window.present();
    });

    app.run()
}

[–] d_k_bo@feddit.org 6 points 2 weeks ago (2 children)

phyphox has an Audio Amplitude feature.

 

geteilt von: https://feddit.org/post/3852169

In der kleinen Sackgasse Skagenweg in Kiel-Mettenhof sorgen unter der Woche zweimal täglich 50 bis 70 Autos für ein Verkehrschaos. Grund dafür sind die sogenannten Elterntaxis. Am Ende der Straße liegt die Schule am Heidenberger Teich. Die Autos und die dadurch unübersichtliche Lage in der schmalen Straße sorgen für ein Sicherheitsrisiko für die Schülerinnen und Schüler, die dort zu Fuß oder mit dem Rad unterwegs sind. Um dem entgegenzuwirken, wollen Stadt und Schule jetzt die erste Schulstraße im Land einführen.

Nach Angaben der Schule soll die Sackgasse 30 Minuten vor Unterrichtsbeginn geschlossen und 30 Minuten nach Ende des Unterrichts wieder geöffnet werden. Von Montag bist Donnerstag würde das bedeuten, dass die Straße von 7.30 bis 16.30 Uhr gesperrt ist. Freitags geht der Unterricht nur bis zum Mittag - die Schranke würde entsprechend früher wieder hochgehen. Die Folge: Eltern mit Schulkindern im Auto könnten die Straßen gar nicht erst befahren. Die Schülerinnen und Schüler müssten dann den etwa 150 Meter langen Weg vom Aalborgring laufen. Dort wurden vor einiger Zeit bereits Eltern-Haltestellen eingerichtet. Diese würden laut Stadt von vielen Eltern zwar genutzt, haben die Situation im Skagenweg aber nur entzerrt und nicht komplett aufgelöst.

 

geteilt von: https://feddit.org/post/782932

via @kielux@mastodon.social:

"Die #Kielux braucht Euch!

Bis Ende Juli könnt Ihr noch Vorträge und Workshops einreichen, um Eure Veranstaltung im September mit Leben zu füllen.

Berichtet im Vortrag über Eure Lieblingssoftware, Euer Projekt oder auch Eure Gedanken zu #Linux, #freieSoftware & #Datenschutz oder gebt Eure Skills in einem Workshop weiter!

Bitte weiterteilen 🐧 ❤️ !"

view more: next ›