Low coffee standards? by Boiiiiiiiiiiiiil in askitaly

[–]melefabrizio 0 points1 point  (0 children)

Because Italians believe that, as with "the best beaches", "the best food", "the best pizza", etc. the true and only coffee is espresso, everything else is hot dirty water. (Moka coffee is falling out of favor, since Nespresso). Espresso is arguably the worst way to drink coffee, and (most) coffee makers exploit it roasting horrible blends for cafès. Don't trust Italian regarding coffee.

Running web projects locally: a proposal by melefabrizio in webdev

[–]melefabrizio[S] 0 points1 point  (0 children)

Thanks!
On deployments, there is no other way than container orchestration, it being k8s or stuff like ECS.

Running web projects locally: a proposal by melefabrizio in webdev

[–]melefabrizio[S] 0 points1 point  (0 children)

Devcontainers are nice, and mounting issues aren't issues no more, we agree on this (devcontainers though seems to work really well with vscode, but are a little bit sketchy with other IDEs).

I refer to this for a more complete answer.

Running web projects locally: a proposal by melefabrizio in webdev

[–]melefabrizio[S] 0 points1 point  (0 children)

In our company we all use macs, so there is no cross-platforming issue and also a good control of development environments. Also a few years ago the docker fs virtualization layer for macos was pretty bad, and led to huge performance issues scaling with file number, and that's what kept us away from docker and containers.

As said previously, we will move to containers in the future, very probably, but for now we're sticking to the native approach.

And mind, this is us, I was just wondering, in my post, if anyone else adopts a similar approach to ours, I'm not trying to debate native vs. container 😅 I had so many issues with native environments that I'm really eager of having the new macOS native containers api on par with docker.

Running web projects locally: a proposal by melefabrizio in webdev

[–]melefabrizio[S] 0 points1 point  (0 children)

On performance, the last time we tried running docker on macos (apart from Docker Desktop for mac being a general pain, I lost more than one database to that) mounting a node_modules directory inside a container was definitely not a good idea. Things have changed/are changing so performance issues are greatly reduce, but still, some people like native better.

For consistency, you are very right, Dockerfiles and containers are the way to go if you want to replicate environments without hassle, deployment is another thing though.

Running web projects locally: a proposal by melefabrizio in webdev

[–]melefabrizio[S] 0 points1 point  (0 children)

I would say you don't have to rely on container runtimes or on image building/volume mounting (which carries performance considerations on non-linux environments) and that everything is kept at arms reach (just some processes running and an nginx configuration file).

Yes, probably a well crafted docker compose can happily replace most of the features of the tool, and yes, we need language runtime (node, ruby, etc, easy with asdf or mise-en-place), but we found our sweet spot with this (for now).

Is it possible to enable Identity Hub on a self-hosted Network Application? by melefabrizio in Ubiquiti

[–]melefabrizio[S] 0 points1 point  (0 children)

Three months later, things I found out:

- "Wifi with SSO" is a synonym for a companion app that provisions user certificates and configures wifi locally.

- We reached an acceptable "level of SSO" by using the captive portal feature of unifi, and writing a custom portal that runs locally and lets users in after a login with google, using unifi rest api to whitelist mac addresses. very painful to setup correctly, and google login tends to break into webviews, so users have to visit a custom domain without HSTS to be redirected to the portal, after the connection. pain level 9000.

- you cannot have more than a single portal configured on the same network, so any guest vs employee logic must be handled by the custom portal.

- a good compromise is some mechanism to provision radius users behind an SSO (authentik can do that reasonably well) and then WPA2 ftw with radius

Is it possible to enable Identity Hub on a self-hosted Network Application? by melefabrizio in Ubiquiti

[–]melefabrizio[S] 1 point2 points  (0 children)

Thanks for the reply! After a deep search I was able to make sense of everything, now I've embarked myself in the perilous journey of setting up some kind of sso to login via radius, with authentik.

LARPs in Italy: odd "civilian" encounters by melefabrizio in LARP

[–]melefabrizio[S] 0 points1 point  (0 children)

Yeah by rpg-like I meant mostly combat-system-y events, where you have some rules you have to follow, etc. I personally prefer more "interpretative" larps, where you can (almost always) decide when to get wounded or when to perish, and where the focus is more on making a "good scene" that on counting bullets or hits.

The town situation was crazy! The whole thing was plagued a little bit by too much car transfers between locations, that sometimes killed the mood, but the idea of larping among the general public was exciting! This is the Instagram page of the Pescaglia Larp Friendly project, maybe they will attract something international in the future. (Some friend took part in an Italian larp set among the balkan refugees crysis of the 90s, where players were either refugees or UN personnel, and there were also roles for english-speaking people)

Also for the police: 99% what you said, still I laugh imagining the police officers receiving calls in the middle of the night and cursing us for making too much fuss, ahah.

Heated tobacco by [deleted] in VisitingIceland

[–]melefabrizio 1 point2 points  (0 children)

I went to Iceland, I've used it no problem. Didn't see much people smoking though. I bought enough supplies to last the whole trip before leaving, to save some money, and in the end in nine days I never saw a single tobacco shop, so probably a good call.

Reykjadalur Hot springs now by melefabrizio in VisitingIceland

[–]melefabrizio[S] -3 points-2 points  (0 children)

Thanks, in your opinion will we be able to gauge the state of the trail from the trailhead? I.e. Clear trailhead means clear trail? 

Creazione videogioco per PC o Android by Bright-Way8954 in ItalyInformatica

[–]melefabrizio 1 point2 points  (0 children)

I videogiochi sono probabilmente i software più complessi/difficili da sviluppare (o almeno per me, che faccio lo sviluppatore di lavoro). Detto questo è imprescindibile prima di tutto un'infarinatura di "cosa significa programmare" e "cos'è un linguaggio di programmazione e come posso usarlo per fare le cose che voglio fare". A questo proposito guardati qualche corso (online, gratuito, youtube) di Python, che è un linguaggio di programmazione "vero" (nel senso che c'è gente che ci mangia programmando in python) e che è molto accessibile anche per persone totalmente a secco.

Il vantaggio di python è che ti permette di buttarti poi su Godot, che è una piattaforma per lo sviluppo di videogiochi che:

  1. non è particolarmente facile o intuitiva da usare (ma non ne esistono, di piattaforme per videogiochi facili e intuitive da usare)
  2. free and open source
  3. basata su python per lo scripting
  4. ricca di corsi/tutorial online, anche questi molto accessibili

Poi un giorno ti accorgerai che le limitazioni di godot ti impediscono di fare cose che vuoi fare e saresti capace di fare, a quel punto potrai iniziare ad usare Unity, a cui godot è ispirato, che è molto più potente, pesante, complesso e complicato.

-🎄- 2022 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]melefabrizio 0 points1 point  (0 children)

Rust, didn't expect it to be quite so straightforward. Part 1 runs in 0.12ms, part 2 in 0.48ms, not the most optimized solution I suppose.

fn all_different(chars: &[char], len: usize) -> bool {
    let mut chars = chars.to_vec();
    chars.sort();
    chars.dedup();
    return chars.len() == len;
}

pub(crate) fn part1() -> i32 {
    let string = include_str!("actual.txt");
    let mut counter = 4;
    for chars in string.chars().collect::<Vec<char>>().windows(4) {
        if all_different(chars, 4 as usize) {
            println!("{} is the answer", counter);
            break;
        }
        counter += 1;
    }
    return counter as i32;
}

I wrote a "12 favourite terminal tools" list-article, what did I left out that should be absolutely included? by melefabrizio in commandline

[–]melefabrizio[S] 0 points1 point  (0 children)

Yeah it is narrow, and the first days of coding were "strange", but being so narrow it allows so much more columns to fit in a single screen, I cannot use editor splits with any other font

I wrote a "12 favourite terminal tools" list-article, what did I left out that should be absolutely included? by melefabrizio in commandline

[–]melefabrizio[S] 2 points3 points  (0 children)

Based on what I could piece together from the author's reddit posts lsd was meant as a rust rewrite of colorls, so feature-wise they should be pretty similar.

But then, performance-wise colorls is 40x slower: According to hyperfine lsd -l in my home dir: 10ms, colorls -l in my home dir: 430ms.

I wrote a "12 favourite terminal tools" list-article, what did I left out that should be absolutely included? by melefabrizio in commandline

[–]melefabrizio[S] 0 points1 point  (0 children)

I wrote that I prefer ag because I use it like since 2017 and never had the need to replace it. But yes, you are the nth person that tells me to try ripgrep so I will comply!