al4s

joined 1 year ago
[–] [email protected] 5 points 2 months ago

Pretty sure it's both

[–] [email protected] 4 points 3 months ago

Don't be ridiculous, that would never pass QA.

But this one will. Joy for years to come:

public string GetDayOfWeek(DateTime date) {
    return ((date - new DateTime(1970, 1, 1)).Milliseconds / 86400000) % 7 switch {
        0 => "Thursday",
        1 => "Friday",
        2 => "Saturday",
        3 => "Sunday",
        4 => "Monday"
    };
}
[–] [email protected] 17 points 3 months ago

For distances >600km, flying is usually 4x-10x faster at a similar price. At least in and around Germany. I assume in the US trains compare way worse, also because the distances are way larger.

Examples: "Normal" example: Stuttgart (Germany) -> Amsterdam (Netherlands) Train: 11h 10min - 241€ Plane: 1h 20min - 225€

Best case scenario for train in Germany at around that distance (because there's a direct connection): München -> Berlin Train: 3h 54min - 167€ Plane: 1h 5min - 226€

[–] [email protected] 7 points 9 months ago (2 children)

I think it changed it after they were bought by Microsoft, you get infinite(?) private repos on a free account now.

[–] [email protected] 12 points 1 year ago

Then why not use 1? It's closer to pi than 10 and even easier to calculate with.

[–] [email protected] 10 points 1 year ago

KDE is more similar to windows, Gnome is maybe closer to MacOS.

But generally, KDE felt always a bit "super user" to me, and I found the amount of customizability and features more overwhelming than useful. Gnome is simple, clean, and I prefer it for that reason.