• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle







  • I’m glad you have enough financial stability where you can pick and choose your landlord. It’s unfortunate that there are plenty of people who can’t “vote with their wallet” on account of not having all that much cash in there. And plenty of landlords who don’t fear bad reviews because there’s no place they can even be reviewed at, and even if they were to receive such a review housing is an inelastic good and in too short of supply for people to be picky about it.

    Additionally, the government has no incentive to charge you more that what it costs to run public housing, whereas the landlord has a profit motive. Even if the government charges you more than how much it costs to build and maintain buildings, this money isn’t send to a pit - it is used to build roads, railroads, sidewalks, provide healthcare, and to build so much more infrastructure and provide various different essential services. If you give it to a landlord, it’s used to fund martinis and vacations on Ibiza. What’s the better deal?



  • With a hash it’s difficult to find a combination that results in this specific hashed password. Think of it like this: you have a biiig prime number and you multiply it by another. Now, that’s easy, but it’s way harder to do it backwards - factorize a large composite number (this is just for illustration). Similarly trying to find a password that works when you input it based on the hashed one is way more difficult than hashing the password in the first place.





  • Many of these, such as carbonara, pizza, and tiramisu, were actually invented in the US

    From the article you cited:

    Pizza is a prime example. “Discs of dough topped with ingredients,” as Grandi calls them, were pervasive all over the Mediterranean for centuries: piada, pida, pita, pitta, pizza. But in 1943, when Italian-American soldiers were sent to Sicily and travelled up the Italian peninsula, they wrote home in disbelief: there were no pizzerias. Before the war, Grandi tells me, pizza was only found in a few southern Italian cities, where it was made and eaten in the streets by the lower classes. His research suggests that the first fully fledged restaurant exclusively serving pizza opened not in Italy but in New York in 1911. “For my father in the 1970s, pizza was just as exotic as sushi is for us today,” he adds.

    It clearly states something different than your claim. Pizza was not invented in the US, it was popular in the US.

    From Wikipedia:

    Modern pizza evolved from similar flatbread dishes in Naples, Italy, in the 18th or early 19th century.[31] Before that time, flatbread was often topped with ingredients such as garlic, salt, lard, and cheese. It is uncertain when tomatoes were first added and there are many conflicting claims,[31] though it certainly could not have been before the 16th century and the Columbian Exchange. Until about 1830, pizza was sold from open-air stands and out of pizza bakeries.

    Many sources state pizza wasn’t popular in Italy as it was in the US, but your statement on it’s origin is 100% wrong.




  • kartonrealista@lemmy.worldtoAsklemmy@lemmy.mldfawerfds
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    You can walk eveywhere in a short amount of time. I have and outdoor market, a buchers’ market, a greengrocer, and at least 3 supermarkets, 3 corner stores, 2 confectioneries/ice cream shops, multiple flower shops, hairdressers, etc. within a 3-4 minute walk. It’s not any sort of major metropolis, it’s a town of ~17 000 people with no building taller than 5 stories.


  • Lesson for the future: stop using crappy illegible fonts in a code editor, and use something nice like Fira Code or even Fira Mono or Sans if you don’t like ligatures.

    Edit: In the middle of writing this I realized it was a confusion between “1” and “l”, which makes the font choice even more bizarre. What kinda garbage font doesn’t distinguish between the two? I could understand if it was capital “i” and lowercase “l” since they look extremely similar in most sans serif fonts, but “1” and “l”?

    Also it takes like 10 seconds to change the name of a variable across the whole file with a modern code editor like VSCode or an IDE for the specific language you were working with. If they were confusing you, you could have just changed “reclst” into “last_record” and that would save you a day of work.


  • This is coming from personal experience/opinion, but after trying to create a simple app in GTK4 Rust bindings I was so confused because of how alien the programming style was compared to typical Rust programming. After trying Iced it was much simpler and made so much more sense, no silly decorators or anything, you can define the view and the update loop separately, and interactions are handled by messages using pattern matching. The inheritance based OOP doesn’t work well with Rust, and Iced has none of it, because it was made for Rust specifically.

    I’m guessing QT bindings are similarly in a different style of programming and can’t imagine that meshing well with native Rust code. Iced has a lot of merits to it and having the opportunity to both help it develop and use a native Rust framework in a Rust project makes a lot of sense.