home.social

#til — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #til, aggregated by home.social.

  1. While I guessed it was the case, #TIL (or today I *confirmed*) that #awk doesn't support first-class functions, meaning you can't do

    function x(s) { print "X:", s }
    function y(s) { print "Y:", s }
    BEGIN {
    # can't assign a function to a variable
    a[0] = x
    a[1] = y

    # which would allow me to randomly choose a function:
    srand()
    zero_or_one = int(rand()*2)
    a[zero_or_one]("hello")
    }

  2. While I guessed it was the case, #TIL (or today I *confirmed*) that #awk doesn't support first-class functions, meaning you can't do

    function x(s) { print "X:", s }
    function y(s) { print "Y:", s }
    BEGIN {
    # can't assign a function to a variable
    a[0] = x
    a[1] = y

    # which would allow me to randomly choose a function:
    srand()
    zero_or_one = int(rand()*2)
    a[zero_or_one]("hello")
    }

  3. While I guessed it was the case, #TIL (or today I *confirmed*) that #awk doesn't support first-class functions, meaning you can't do

    function x(s) { print "X:", s }
    function y(s) { print "Y:", s }
    BEGIN {
    # can't assign a function to a variable
    a[0] = x
    a[1] = y

    # which would allow me to randomly choose a function:
    srand()
    zero_or_one = int(rand()*2)
    a[zero_or_one]("hello")
    }

  4. While I guessed it was the case, #TIL (or today I *confirmed*) that #awk doesn't support first-class functions, meaning you can't do

    function x(s) { print "X:", s }
    function y(s) { print "Y:", s }
    BEGIN {
    # can't assign a function to a variable
    a[0] = x
    a[1] = y

    # which would allow me to randomly choose a function:
    srand()
    zero_or_one = int(rand()*2)
    a[zero_or_one]("hello")
    }

  5. While I guessed it was the case, #TIL (or today I *confirmed*) that #awk doesn't support first-class functions, meaning you can't do

    function x(s) { print "X:", s }
    function y(s) { print "Y:", s }
    BEGIN {
    # can't assign a function to a variable
    a[0] = x
    a[1] = y

    # which would allow me to randomly choose a function:
    srand()
    zero_or_one = int(rand()*2)
    a[zero_or_one]("hello")
    }

  6. Wiatrakowiec (zwany również żyrokopterem) to statek powietrzny przypominający wyglądem niewielki śmigłowiec.
    Unosi się dzięki wirnikowi nośnemu, który obraca się swobodnie pod wpływem przepływu powietrza podczas ruchu do przodu.Wirnik nie jest napędzany silnikiem podczas lotu – napędzane jest jedynie śmigło pchające (lub rzadziej ciągnące), które zapewnia prędkość postępową. Wiatrakowiec potrzebuje krótkiego rozbiegu, aby oderwać się od ziemi.

    #TIL #wiatrakowiec

  7. the rain in my eyes is less acidic than when I was child. Progress!
    Despite now living in a big city, and as a child the dismal rainy stixx.

  8. #TIL! #LuciVanOrg sang 1996 "Meine #Bildung hab' ich aus dem #Fernsehen", bei mir ist's #Wikipedia:

    "Die Gestaltung von Rasengleisen ist … keineswegs ein neues Gestaltungselement der #Straßenbahnplanung. So wurde 1905 das erste #Rasengleis der Welt in der #Hardenbergstraße in #Berlin eingerichtet."

    en.wikipedia.org/wiki/Green_tr

    Auch die #Tram, die schönste Form der #EMobilität, stammt bekanntlich aus Berlin. Damals wurde sie einfach "Die #Elektrische" genannt.

    Übermorgen, am 16. Mai jährt sich zum 145. mal die erst Fahrt in #Lichterfelde, damals noch Vorort Berlins, heute Teil des Bezirks #SteglitzZehlendorf.

    Bildquelle "Handbuch #Gleisbegrünung", EuRail Press, 2014

    #GreenTrack #Tram #InaLuciaHildebrand #Lucilectric #WernerVonSiemens #Geschichte #Verkehrswende #ÖPNV

  9. #TIL I have a Wikipedia entry, and I couldn't be happier 🌺 even though they have missed many critical things about me.

    en.wikipedia.org/wiki/Lei_(gar

  10. #TIL that my typical approach to problem solving (“figure out the actual problem, and don’t assume shit”) has a nicer, shorter name: xyproblem.info

  11. #TIL о существовании DOMUS Project. Испанский художник с 2009 года строит (вымышленный) генуэзский замок XIV века в масштабе 1/50 из настоящего камня, металла и дерева, кирпич за кирпичом, балка за балкой. До сих пор строит.

  12. #TIL #Python has a function in its standard library that can create Cartesian products from iterables.

  13. #TIL that if you're using #markdown in the #glitchsoc version of Mastodon, it doesn't render pretend 'tone' closing HTML tags, like </snark> unless you escape them, see here for an example: .

    So if I've accidentally (and it was an accident I assure you) offended you today, my apologies, and please insert the right tone tag to make the toot more reasonable. </laughingbutalsocrying>

  14. #TIL that if you're using #markdown in the #glitchsoc version of Mastodon, it doesn't render pretend 'tone' closing HTML tags, like </snark> unless you escape them, see here for an example: .

    So if I've accidentally (and it was an accident I assure you) offended you today, my apologies, and please insert the right tone tag to make the toot more reasonable. </laughingbutalsocrying>

  15. #TIL that if you're using #markdown in the #glitchsoc version of Mastodon, it doesn't render pretend 'tone' closing HTML tags, like </snark> unless you escape them, see here for an example: .

    So if I've accidentally (and it was an accident I assure you) offended you today, my apologies, and please insert the right tone tag to make the toot more reasonable. </laughingbutalsocrying>

  16. #TIL that if you're using #markdown in the #glitchsoc version of Mastodon, it doesn't render pretend 'tone' closing HTML tags, like </snark> unless you escape them, see here for an example: .

    So if I've accidentally (and it was an accident I assure you) offended you today, my apologies, and please insert the right tone tag to make the toot more reasonable. </laughingbutalsocrying>

  17. #TIL that if you're using #markdown in the #glitchsoc version of Mastodon, it doesn't render pretend 'tone' closing HTML tags, like </snark> unless you escape them, see here for an example: .

    So if I've accidentally (and it was an accident I assure you) offended you today, my apologies, and please insert the right tone tag to make the toot more reasonable. </laughingbutalsocrying>

  18. #TIL if you’re sat in a queue for jabs as the only eligible person under 65. None of the OAPs join in when you start singing “COVID boosters” to the tune of Happy Birthday by Altered Images.

    Claire Grogan is 64.

  19. @rixx Huh that's cool. Now that you told me... "Caran d'Ache" isn't proper French at all. How did I not notice?? Thanks, .

    @bleeptrack

  20. 🤣 Was es alles für Webseiten gibt. HTTP Status erklärt: http.cat/status/499

    #TIL

  21. #TIL

    ftpes://

    Das Protokoll kannte ich noch gar nicht. Dachte es wäre ein Vertipper.

  22. #TIL, ze #SzymonMajewski ma swoj kanal i #podcast na YT

    youtube.com/watch?v=nyvoFd1w18E

    "Program na koniec internetu. Wasz ŻE CO bierze się za AI, EJ AJ. Konkretnie mniej więcej. ŻE CO pyta DZIADKA SZYMONA co to jest internet? Coś pustego w czym jest czegoś pełno. ŻE CO tropi guzik AI. Czy powinniśmy ją UCZŁOWIECZAĆ? Dlaczego ona MYŚLI skoro przelicza? ŻE CO chce mieć prawo do wypluwania. I w ogóle najlepiej się SPOCIĆ! "Damian, zrobiliśmy odcinek?""

  23. #TIL that the "My #car must be bigger (than yours)" #syndrome, and, in the same sense, cars constantly getting bigger, has a name:
    #Carspreading

  24. @minad wow, it works for any buffer.
    I thought it was only for find-file-at-point and dismissed it in favor of embark, nice that it can do URLs as well.

  25. #TIL Both David Beckham and his wife Victoria “Posh Spice” Beckham (née Adams) are knighted. Posh Spice getting her own knighthood in 2017.

    BUT! Mel B / Scary Spice is also knighted!

    So almost half of all the Spice Girls are knighted.

    #spiceworld #spiceworldofcanada

  26. #TIL about the company behind #Deflect.ca, an anti-DDoS service that non-corporate sites can use instead of ClownFlare:

    "... eQualitie – a Canadian company developing open and reusable systems with a focus on privacy, online security and freedom of association. Technology solutions and innovations are driven by our values that guide us to protect the rights and aspirations of everyone online."

    #eQualitie #DDoS

  27. #TIL about the company behind #Deflect.ca, an anti-DDoS service that non-corporate sites can use instead of ClownFlare:

    "... eQualitie – a Canadian company developing open and reusable systems with a focus on privacy, online security and freedom of association. Technology solutions and innovations are driven by our values that guide us to protect the rights and aspirations of everyone online."

    #eQualitie #DDoS

  28. #TIL about the company behind #Deflect.ca, an anti-DDoS service that non-corporate sites can use instead of ClownFlare:

    "... eQualitie – a Canadian company developing open and reusable systems with a focus on privacy, online security and freedom of association. Technology solutions and innovations are driven by our values that guide us to protect the rights and aspirations of everyone online."

    #eQualitie #DDoS

  29. #TIL about the company behind #Deflect.ca, an anti-DDoS service that non-corporate sites can use instead of ClownFlare:

    "... eQualitie – a Canadian company developing open and reusable systems with a focus on privacy, online security and freedom of association. Technology solutions and innovations are driven by our values that guide us to protect the rights and aspirations of everyone online."

    #eQualitie #DDoS

  30. #TIL (ok, yesterday ;) that rsync --delete only works if you're specifying a directory to copy, not individual files.

    So

    rsync -rvt --delete /path/to/dir user@server:
    

    will work, while

    rsync -rvt --delete /path/to/dir/*fileglob* user@server:
    

    will not.

    #PSA ;)

  31. Solved the mystery of why there was a huge pile of empty pine cones below one linden tree when the snow melted.

    I assumed squirrels or some other forest creature, but yesterday a friend suggested it was the woodpeckers work, who uses holes in the tree as cone holder and then pecks out the seeds.

    So I looked up and indeed found two spots where cones were still stuck, one in a hole and one between trunk and a branch.

    Clever birds. No hands but know how to utilize their environment :)

    #Birds #Woodpecker #Tree #Homestead #Pinecone #TIL

  32. #TIL
    Fein fein. Die #Ansible Collection community.general.nmcli erwähnt erst beim ausführen, dass es bitte:

    Failed to find required executable \"nmcli\" in paths:

    In der Doku habe ich es nicht erwähnt gefunden.

    Eigentlich wollte ich nur-mal-eben-schnell ein virtuelles Netzwerk-Interface anlegen.
    Aber ein Shell-Command

    ip link add eth10 type dummy

    wollte ich mir eigentlich(tm) sparen und das per Ansible-Modul machen. (1/2)

  33. Design- und Farbfreaks stillgestanden!

    ❓ Was bedeutet eigtl. RAL?
    (Ihr wisst schon, Farbfächer und so)

    Today I learned:
    RAL = »Reichs-Ausschuss für Lieferbedingungen« 😮

    🫡 Rührt Euch!

    #TIL #Abkürzung #RAL #Farbe #Design #Color #Farbsystem #Sprache #todayilearned

  34. I use and love #crev & #vet — instruments for WoT crowd-review and supply-chain protection.

    #TIL Tangled. It's like #Radicle. Unfortunately over the git too, but also supports jj, that isn't #pijul but not git.

    I also read a very important blog post for me there: "combat LLM spam by building a web of trust" blog.tangled.org/vouching/ .

  35. #TIL: Wtf there is a german version of Waterloo by #ABBA ...

    That's really, really, really terrible ...

    (inv.nadeko.net/watch?v=GRTZuC2 if you want to listen to it but I don't recommend it ...)

    #Music