Barnaby Walters

Arranging atoms and pressurising air in a variety of manners.

✨🌟 shiny inevitable mortality distractions! 🛠 building a cultural heritage centre at Wassermühle Brömsenberg 💃🏻 playing old music for new dancing with Duo Gerhardt & Walters 🎼 building hurdy gurdies, playing gurdy blockflute dulcimer accordion Pd voice 🚀 building the indieweb ❤️ philosophising inexpertly about how humans communicate, relate and connect ⚖ helping assess the Icelandic school system at Skólapúlsinn 🍕 baking pizza, granola, bread 🌟✨

Pronouns: he/him/his

  1. Javascript has no real Set or Dictionary implementation, which for someone spoiled by python’s set and dicts is rather frustrating. However, in leiu of the poorly supported js Set type, plain old objects can be massaged into acting as both sets and dicts:

    // Python: d = dict()
    var d = {};
    // d['key'] = 'value'
    d['key'] = 'value';
    // d.get('nonexistent', 'fallback')
    d.hasOwnProperty('nonexistent') ? d['nonexistent'] : 'fallback';
    // d.keys()
    // s = set()
    var s = {};
    // s.add(1)
    s[1] = true;
    // 1 in s
    // Accessing all values in set:

    Notes: the in operator can be used to test membership, but will incorrectly return true for __proto__, as well as all properties up the prototype chain, i.e. all properties and methods of Object. hasOwnProperty is much safer to use.

    Similarly, the use of the ternary operator for get-item-with-fallback could in theory be replaced with d['item'] || 'fallback', unless of course the value stored was falsey, in which case the or will incorrectly return a truthier fallback.

  2. Aitor García Rey: Vibrantly beautiful real places become imitations of digital creations instead of the other way. Very New Aesthetic.

    @_aitor similarly, I remember social gatherings at which friends would organise, *in real life*, chatting on facebook later on.

  3. MTU has this wonderful explanation of the differences in physics between open/closed conical and cylindical bore instruments. Try some of the equations out in grapher or an equivalent!

    Open cylindrical bore (e.g. panpipes): y=sin(nx)

    Closed conical bore (e.g. saxophone): y=sin(nx)/nx

    where n is the harmonic e.g. 1, 2, 3, 4 etc. in both cases.

  4. Slowly getting a PuSH subscription service working. It should be fairly easy to turn it, once finished, into a layered library so people can either bolt it onto a Silex/Symfony app and have it all just work, or use the lower level client and logic in other frameworks.

  5. superfeedr: @BarnabyWalters Pinging from … to  I get "Source URI does not contain a link to the target URI"

    @superfeedr thanks for the heads-up, it was a caching issue in — now squashed with your mention happily on my page! I need to make taproot show names of blog posts instead of/in addition to the first bit of text.

  6. Problems with Hash Fragment Subscriptions

    Superfeedr has this awesome feature allowing you to subscribe to fragments of an HTML page rather than the whole thing — perfect for cases where the publisher of the HTML page doesn’t send PubSubHubbub pings to let the hub know when content has changed, as this forces the hub to poll the content and notify subscribers on even the smallest change to the content.

    Read more…

  7. Last night: fixed intonation, fitted tapping string. Even without a dedicated EM pickup it’s sounding great! Can’t wait to get it hooked up to an amp.

  8. Fixed a simple security hole in , uncovered unintentionally by an attack mounted ≈5hrs ago — intent appeared to be to create new user accounts, unintended result was the creation of a new, empty article.

    Hundreds of requests were made against URLs similar to these:

    • /articles/do.php
    • /articles/modules.php?app=user_reg
    • /articles/index.php?app=home&mod=public&act=register
    • /action/sign_up
    • /articles/sign_up.html
    • /articles/?page=login&cmd=register
    • /articles/tiki-register.php
    • /articles/index.php?page=register&action=register
    • /index.php?page=item&action=item_add
    • /articles/index.php?user/create_form/
    • /articles/join.php
    • /articles/index.php?dll=register
    • /articles/index.php?option=com_community&view=register
    • /articles/register.php
    • /articles/signup.php

    Presumably these URLs are compromised on other systems — needless to say they are far too ugly to exist in ! I’m unsure exactly why /articles was used as the base URL for the attack in all cases apart from two.

    As these URLs don’t exist, and will never exist, it should be safe enough to add server- or application-level filters immediately closing any requests which include them.

  9. And my hurdy gurdy is fixed! Huge thanks to Brooks Hood for letting me use his workshop space — top guy, highly recommended for guitar repair work if you’re in Reykjavík.