• 0 Posts
  • 6 Comments
Joined 3 years ago
cake
Cake day: July 2nd, 2023

help-circle
  • This might go beyond what you were asking for, but I’m always more comfortable handling file paths, deletions and errors in Python.

    #!/usr/bin/env python3
    
    import shutil
    from pathlib import Path
    from tempfile import TemporaryDirectory
    
    # Refuse to run without Python's symlink-resistant cleanup.
    if not getattr(shutil.rmtree, "avoids_symlink_attacks", False):
        raise RuntimeError("Symlink-resistant cleanup is unavailable")
    
    with TemporaryDirectory(prefix="test-run-", dir="/tmp") as name:
        tests = Path(name) / "tests"
        tests.mkdir(mode=0o700)
        print(f"Created {str(tests)!r}", flush=True)
    
        try:
            # Put your test code here.
            (tests / "example.txt").write_text(
                "temporary data\n", encoding="utf-8"
            )
        finally:
            print(f"Cleaning {name!r}", flush=True)
    
    # The entire temporary directory has now been removed.
    

  • This feels like a very US-specific way of framing it. In the UK and much of Europe, many of those “societal-level solutions” already exist to varying degrees: healthcare and mental healthcare free at the point of use, unemployment support, benefits towards rent, social and temporary housing, legal homelessness-prevention duties, and Housing First programmes.

    They’re nowhere near perfect. We have social-housing shortages, benefit limits, long healthcare waiting lists and plenty of people who still fall through the gaps. But the response doesn’t have to begin and end with moving homeless people somewhere less visible to protect property values.

    Your point that individual businesses and property owners cannot solve homelessness is completely fair. That’s precisely why they should sit behind a publicly funded safety net which helps keep people housed and supports them back into stability, instead of leaving everyone involved to deal with the consequences.


  • Yes, losing your home after losing your job definitely happens in Europe. The difference is that many European countries have stronger safety nets: they may help with rent, provide temporary or social housing, or use Housing First, so unemployment is less likely to end in rough sleeping. They generally won’t simply pay off your mortgage, and the help isn’t guaranteed, but keeping people stably housed can be cheaper in the long run than repeatedly dealing with homelessness. It also makes finding and keeping work much easier. In the UK, for example, eligible people may receive Jobseeker’s Allowance and help with their rent through Universal Credit, or Housing Benefit in certain circumstances.




  • Overall, Coke is most affordable compared with minimum wage in England, especially when Coke Zero is on offer, then Helsinki; in the US it takes the most minimum-wage work to buy a litre, and because regular and sugar-free cost exactly the same, there’s no price incentive at all to choose the sugar-free one.

    In England for a 24 pack (330ml?), sugar is £15 (€17.5, $20 USD), sugar free is £12 with a deal for £8.50 (€10, $11.5 USD), no deals for the sugar one! £12.71 is minimum wage here (€14.86, $17.21 USD). In US Walmart I see 24 pack of sugar and non sugar for $15.37 USD (12 OZx24) and US minimum wage is $7.25 USD (£5.40, €6.30).

    Location and drink EUR per litre GBP per litre USD per litre
    Helsinki — regular Coke €2.46 £2.10 $2.85
    Helsinki — Coke Zero €1.96 £1.67 $2.26
    England — regular Coke €2.22 £1.89 $2.56
    England — Coke Zero, normal price €1.77 £1.52 $2.05
    England — Coke Zero, offer price €1.26 £1.07 $1.45
    US Walmart — regular Coke €1.56 £1.33 $1.80
    US Walmart — Coke Zero €1.56 £1.33 $1.80
    Location and wage benchmark EUR/hour GBP/hour USD/hour Work for 1 litre of regular Coke Work for 1 litre of Coke Zero
    Helsinki — first-year supermarket minimum €11.61 £9.92 $13.43 12.7 minutes 10.1 minutes
    UK — adult minimum wage €14.87 £12.71 $17.20 8.9 minutes 7.2 minutes normally; 5.1 on offer
    US — federal minimum wage €6.27 £5.36 $7.25 14.9 minutes 14.9 minutes