Declarative programming specifies what the computer should do, not (as we saw with imperative programming) how it should be done. In CSS for example: turn all paragraphs red; I really don’t care how it happens, just make it so. — John Allsop, Not Real Programming
Author Archives: Bramus!
WebKit now supports srcset image attribute
<img src="image-src.png" srcset="image-1x.png 1x, image-2x.png 2x" alt="Example of the srcset attribute. Image contains a coloured striped pattern with some inline text that indicates which of the candidate images were selected."> WebKit now supports the srcset attribute on image (img) elements. This allows you, the developer, to specify higher-quality images for your users who have high-resolution …
Continue reading “WebKit now supports srcset image attribute”
Mercedes SLS Electric Drive
Pogo
The Pogo is an innovative headphone jack designed to “breakaway” upon stress—thereby saving your device and headphones from damage. Using a neodymium magnet and 4 “pogo” pins, a strong connection is made between the two pieces, passing the signal through. Think MagSafe for headphones. Concept video, not a real product, yet. (via ▼)
Kevin Spacey urges TV channels to give control to viewers
If you watch a TV show on your iPad is it no longer a TV show? The device and length are irrelevant … For kids growing up now there’s no difference watching Avatar on an iPad or watching YouTube on a TV and watching Game Of Thrones on their computer. It’s all content. It’s all …
Continue reading “Kevin Spacey urges TV channels to give control to viewers”
PRSM – The Sharing Network
Tridiv | CSS 3D Editor
New-age Arson
SlimerJS — A scriptable browser for Web developers
SlimerJS allows you to interact with a web page through an external JS script. It is useful to do functional tests, page automation, network monitoring, screen capture, etc. webpage .open(url) // loads a page .then(function(){ // executed after loading // store a screenshot of the page webpage.viewportSize = { width:650, height:320 }; webpage.render(‘page.png’, {onlyViewport:true}); // …
Continue reading “SlimerJS — A scriptable browser for Web developers”
bramus/router Updates
It’s been 4 months since I released bramus/router, the lightweight and object oriented PHP Router I wrote. Since then a few new features worth mentioning were added. Subrouting Support It’s now possible to mount several routes onto a base route. Think of creating a /movies route on which you attach a callable which in its …