PHP 5.6.0, currently in alpha, will hit us any time later this year. Time to take a look and see what’s new. Here’s a selection of features that will affect the way you and I code. New __debugInfo() magic function (rfc) This new magic function allows you to instruct PHP what it should output when …
Category Archives: Original Content
Batch install dependencies in all subfolder-organised projects
As a lecturer ICT I have to correct the work our students make. Therefor I collect all solutions and put them in a subfolder-organised structure on disk: per student I create a subfolder and put their solution into that folder(*). $ tree -L 1 . ├── student1 ├── student2 ├── … └── studentN As – …
Continue reading “Batch install dependencies in all subfolder-organised projects”
Establishing a new block formatting context using overflow: hidden;
Today Vasilis tweeted a link to a very nice (and old, apparently) CSS trick: Here's your monthly reminder that this is an obscure, but very handy feature of CSS overflow. http://t.co/4qNriVlB5y — Vasilis (@vasilis) February 13, 2014 Overflow does some cool things you should know about. Creates Block Formatting Context Clears Floats The second feature …
Continue reading “Establishing a new block formatting context using overflow: hidden;”
Video embeds for the Social
About half a year ago I’ve changed how I embed videos here on bram.us. No, I’m not embedding responsively but I’m embedding Vimeo and YouTube clips along with its poster frame (= the image you see before the video starts playing). Doing this will force Facebook and Google+ to show that image – and not …
CSS Animated Content Switching
A trend I’m seeing for the coming year is the rise of Transitional Interfaces on the web. A fine example is the aforementioned Fluidbox, or this interface (extract from the post linked): Sparked by the post linked — which you should read — I started goofing around with CSS transforms and transitions a bit. The …
Skrollr – CSS animations linked to scroll position
Having seen a few single-page year in review minisites the past few weeks, it’s clear that Skrollr has become the de facto standard to implement parallax scrolling effects into your websites. The idea behind Skrollr is straightforward: link a target CSS property+value to a given scroll position, via data-* attributes: <div id="example" data-0="width:100%;" data-1500="width:0%;"></div> Skrollr …
Continue reading “Skrollr – CSS animations linked to scroll position”
Scroll Animations
A little Pen I knocked together to demonstrate “CSS Animations triggered on scroll” to some of my students. The key part is the animated class which actually starts the animation: it is only added once the element is in view. Check out this Pen! Note that the event handler is not debounced as we need …
Fixing the “Connect to iTunes to use Push Notifications” alert in iOS 7.0.3
Ever since updating to iOS 7.0.3, my iPhone kept telling me to “Connect to iTunes to use Push Notifications”. Connecting to iTunes did just nothing: the notice kept popping up. Additionally iMessage and FaceTime didn’t work anymore, really annoying. Above that the notice forced some apps in a loop as an app would lose and …
Continue reading “Fixing the “Connect to iTunes to use Push Notifications” alert in iOS 7.0.3”
Run a PHP script as a service/daemon using start-stop-daemon
In a recent project I needed to permanently run a PHP CLI script; it needed to run as a service/daemon. A few Google search coupons later I got my answer: use start-stop-daemon to make it work. To not manually type in those lengthy commands it’s possible to wrap these in a handy little script, as …
Continue reading “Run a PHP script as a service/daemon using start-stop-daemon”
Photoshop Google Maps Tile Cutter Script Update (Again)
Five days after the previous update PS_BRAMUS.GoogleMapsTileCutter — a Photoshop Script which automatically chops up a large image into tiles for use with Google Maps — has been updated again. With this new version one can now choose to place all tiles into one and the same folder (as it was before), or use subfolders …
Continue reading “Photoshop Google Maps Tile Cutter Script Update (Again)”