Scrapbook, PHP Caching Environment

// create \Memcached object pointing to your Memcached server $client = new \Memcached(); $client->addServer(‘localhost’, 11211); // create Scrapbook cache object $cache = new \MatthiasMullie\Scrapbook\Adapters\Memcached($client); // set a value $cache->set(‘key’, ‘value’); // returns true // get a value $cache->get(‘key’); // returns ‘value’ Scrapbook is a caching environment for PHP. The cornerstone is key-value-store, which sets a …

Design for the bigger problem

Great stuff by my friend Thomas Byttebier: When designing user interfaces, the same rule of thumb applies: never start designing anything until you deeply understand the problem at hand. Go back to research, talk to real users. Be that 3-year old kid again that answers every answer with another ‘why?’ until all conversations ultimately end …

How Art Can Transform The Internet

Maybe the aesthetic value of internet art is measured by its ability to help us see the internet, just as as a novel can help us see language. I really like the mentioned “rainbow effect” which we can see in satellite images, as it gives us an insight in how exactly satellite imagery works (which …

Getting the share count of a URL

At work I’m working on a project in which we need to track the share count of a URL. Below are my quick notes. In all examples I’m getting the share count of https://www.facebook.com/. Note that I’m using the jq notation to extract the actual result from the response. Just GET it Facebook Request: curl …

Gone Hybrid

A website that I’ve found to be very helpful whilst diving into creating Hybrid Apps (be it with or without Ionic) is Gone Hybrid, containing quite a few helpful articles to get you kickstarted on a few specific things such as adding audio effects, animations, etc. Gone Hybrid | Start Developing Hybrid Mobile Apps With …

Vibrant.js – Extract prominent colors from an image

Usage is simple: var vibrant = new Vibrant(img); var swatches = vibrant.swatches() for (var swatch in swatches) if (swatches.hasOwnProperty(swatch) && swatches[swatch]) console.log(swatch, swatches[swatch].getHex()) Works by reading in the image, placing it onto a <canvas> element, and then getting all pixel information from that canvas. Vibrant.js →