Band in Ingólfstorg are impressively tight and talented, but also very repetitive :/ On with the headphones.
My favourite #javascript progressive-enhancement+AMD requirejs abstraction: enhanceEach
It covers what is for me an extremely common use-case, of
“I have a bunch of elements with some class which means that I want to progressively-enhance them, only loading the code required to do so in to pages which contain the elements”
var enhanceEach = function (selector, dependencies, callback) {
var elements = document.querySelectorAll(selector);
if (elements.length > 0) {
require(dependencies, function () {
var args = Array.prototype.slice.call(arguments);
Array.prototype.forEach.call(elements, function (element) {
var innerArgs = args.slice();
innerArgs.unshift(element);
callback.apply(callback, innerArgs);
});
});
}
};
A typical example, activating CodeMirror on textareas with class|=codemirror
if there are any on the page:
enhanceEach('textarea.codemirror', ['codemirror/lib/codemirror', 'codemirror/mode/htmlmixed/htmlmixed'], function (el, CodeMirror) {
var config = {
indentUnit: 1,
tabSize: 2
};
if (el.hasAttribute('data-codemirror-mode')) {
config['mode'] = el.getAttribute('data-codemirror-mode');
}
var codemirror = CodeMirror.fromTextArea(el, config);
});
(A fan of minimal, useful javascript abstractions, and the thought processes behind them? You may enjoy A Minimal Javascript HTTP Abstraction)
#663399becca banner for @meyerweb and family, and everyone else who’s lost a child.
Alternative, smaller, simpler #taproot logo based on super-helpful feedback from Aaron Parecki, Brian Suda, Brennan Novak, Kartik Prabhu:
I kept the multi-stranded green connection as I couldn’t find a single green which looked effective on it’s own, and the whole thing was so much flatter without the extra depth they give.
Also, an alternative version with randomly truncated segments – symbolising sites with different #indiemark levels all interacting happily
which was worth a try, but I think it lacks balance. Probably going to stick with the first one.
Initial draft of a #taproot logo:
Got stuck for inspiration (trees are cliché and, in the UK, ironically associated with the conservatives) so looked on wikipedia, and found this beautiful photo by Stephen Ausmus:
So made a stylised version for a laugh, and actually really like it. It shares some colours with the indiwebcamp logo
whilst remaining stylistically separate and visualises a lot of #indieweb principals: a centralised node split up into a more diverse ecosystem, but still connected by the green strands of standards (many of which are #microformats, also associated with the colour green).
Still a WIP though — thoughts?
A far greater culinary challenge awaits, though: what to do with a jar of the far less tasty by-product of #friedchocolatemilk: “Chocolatey oil with bits of burnt batter and granola floating in it”.
(yes I tried deep-frying #granola. It’s part of my job as Granola Science Strategist at @rvkgranola)
Kitchen disaster strikes! It turns out that the low melting point of chocolate in the mixture causes it to melt and flow out of the batter whilst frying, resulting in some vaguely chocolatey batter shells and guilty-looking chocolatey oil.
Paying more attention to the second batch results in some passable fried chocolate milk. Looks like success here is a matter of very thick filling and precise frying timing.
Tonight I shall be combining my two favourite @sumendirest recipes to create the single most unhealthy thing I’ve ever cooked: Fried Chocolate Milk!
I made the main mixture yesterday and it’s been cooling in the fridge. Now for the fun part: frying.
Learning about umw.domains, a project to give UMW students+faculty their own personal domains. It’s a great project!
My own has been a place of experimentation and self-expression for years now and I’ve learnt a lot, and connected with many people through it. Anything which makes personal domains more accessible is a move in the right direction.
@smarimc agreed, but @aaronpk has an alternative take aaronparecki.com/articles/2014/06/09/1/ios8-wifi-changes-privacy-win-or-ibeacon-lock-in which IMO is more consistent with Apple’s usual behaviour :/
Ingólfstorg just turned into Ingólfsvatn in about 30 seconds
@wordridden a “cat-a-pult” is a real thing? Totally getting @jwentomologist one for Father’s day :)
@hvitur_hrafn Öskjuhlið, as it’s only a bikeride away — not been climbing in Hvalfjörður before, would like to try!
Literally cleaned out the cobwebs on my favourite bouldering routes last night, catching the last of the good weather before it started to rain
@briansuda the important thing is that he has a cool hat. Maybe they’re simply not very nationalist?
The icelandaurorafilms.com trailer is out!
http://www.youtube.com/watch?v=CFSntB_ifFk
WARNING: side effects of watching this video may include sudden reduction of wealth due to implusive flight-buying. Caution advised! Buy only Winter flights, as there is NO AURORA in the Summer due to TOO MUCH SUN.
Oops, sorry for not replying — I didn’t see your mention for some reason! Yep, KSP is an amazing game. You do indeed have to hit escape velocity, from a planet 1/10th the size of earth but with equivalent acceleration due to gravity, and yes you have to learn orbital mechanics to rendezvous, or get to other planets. Highly recommended, but watch out — there’s a steep learning curve but once you get it it sucks you in :)
Oh, and the fan community is amazing. So many tutorials, fan videos and mods. Example:
php-mf2 users: requesting your feedback for Mf2\fetch()
microformats-from-URL function just added to dev-master. I want to get this nice and polished before adding it to a versioned release, and would appreciate feedback, specifically on the documentation and debugging support.
The conclusion has been reached, and independently verified: I look Finnish. Apparently the fix is to shorten my hair.