February 2015 Twenty-eight posts
-
-
Who doesn’t love code?
Longtime blogger and longtime pal MAS mentioned me over in Make and Host Your Own Soundboard yesterday. I am glad to have contributed to more software. I dig being able to give to code that people use, even if it’s for no money. I love even more that the whole thing is up on GitHub.
It is still astonishing to me that I can read and make improvements to code. Code that at first glance is as peculiar as this:
var ar = <?php echo json_encode($mp3) ?>; var BASE_AUDIO_PATH = '' + <?php echo json_encode($mp3directory) ?> + '/'; // sort files to be in alphabetical order by title ar.sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); }); // Add <audio> files and buttons to soundboard // preload set to "none" is optional ar.map(function(url){ $('#soundboard').append(function(){ var thisAudio = $('<audio/>').attr({ src: BASE_AUDIO_PATH + url, preload: "none", onplay:"$(this).siblings('button').css('color', 'yellow');", onended: "$(this).siblings('button').css('color', 'white');" }) var buttonText = url.replace(/-/g, ' ').replace('.mp3', '').replace('[Q]','?'); var thisButton = $('<button />').addClass('myButton').text(buttonText); return $('<span />').addClass('track').append(thisAudio).append(thisButton); }) }); $('#soundboard').on( 'click', 'button', function() { $(this).siblings('audio').get(0).play(); });
And not be driven insane looking at it.
Programming is fun!
-
from Instagram http://ift.tt/1F7tiTz
via IFTTT
Going into the three-day weekend with tangy blood oranges.
-
from Instagram http://ift.tt/1DpoVAU
via IFTTT
My bots love The Red Velvet Spoon Case @dairyqueen sent. Happy Valentine’s Day! #BreakTheCliché
-
-
-
-
Programming Tinder
WOW. Go read: AUTOMATING TINDER WITH EIGENFACES
This is some straightforward, and yet entirely brilliant programming. This person took his prior Tinder choices, made an aggregate of “yes” and “no” swipes, then used the official Tinder APIs to automate his selections. This is kind of Artificial Intelligence, though a better term might be “expert system” (distilling what an expert knows into a piece of software, in this case the expertise is “what a person found attractive on Tinder”) and what it does is execute those decisions.
What’s astonishing is that all of this used off-the shelf and open source technology. Only Tinder is proprietary. All the rest of this are libraries anyone could use.
The modern age is not what I expected, but it most certainly contains artificial intelligence, though it’s less hyperintelligent HAL 9000 and more “personal assistant.”
via waxy.org
Moreover, the programmer made the whole thing available on GitHub. https://github.com/crockpotveggies/tinderbo.
-
from Instagram http://ift.tt/1zy2rwz
via IFTTT
I dare you not to like this picture. This is Hailey at the Double Rainbow Ranch.
-
The eldritch horror of IKEA.
The 15 minutes we just spent at IKEA… I… words… I have not been in years. It is bigger. Which is… the place is eldritch, Brobdingnagian, terrifying and yet cheerfully pumping Katy Perry songs. I believe it may have inspired the film Cube. Did a certain Mr Lovecraft play a hand in its tone and design? What noxious aethers propel it so? It has existed for decades and I fear we cannot ever be rid of it.
Hold your children tightly tonight, for the night is dark.
But we acquired Produkt.