Cropping Videos

Today, for the second time, I've published something on Dribbble: a demostration of the previously mentioned scrollable calendar. And, as I encoutered the same problems occourred at the first time, here I take some note for the next one.As I've not (yet?) received an invite to the platform, I'm…

Scrollable Calendar

In a web application of mine I've added a simple calendar to display time-based informations. Classic month view, colored cells, implemented with FullCalendar.Then, a user asked to not limit the view to a month at a time, but just display the current week and the next three or four.…

Symbolic Links in FTP

Note for future myself: FTP doesn't supports symbolic linking, when you have to create a link in a folder just create a PHP file in the same folder as<?php symlink('original_file', 'link_file');and run it through the browser.…

Authenticating SPARQL

Recently I'm playing a lot with SPARQL and PHP, using Virtuoso as triple store and EasyRDF as client library. The only problem was that Virtuoso pretends (of course) some kind of authentication to write data into the store (this is not entirely true, you can also permit write operations on…

Teaching Moodle to Laravel

I had to integrate a Laravel application with a Moodle instance: certain users, under given circumstances, may generate a new course in Moodle, be enroled as teacher, and add other platform's users as students.The first step has been to setup a unified authentication, implementing a OAuth2 server in Laravel…

The Memory of Maria

A problem on one of my VPS haunted me for weeks: occasionally, almost once a day, the database (MariaDB, default drop-in for MySQL on Debian) stopped to accept connections and the only way to fix was to manually kill and restart it.A bit more of investigation resulted in a…

Laravel Broadcasting Unveiled

The documentation page about broadcasting events in Laravel to a websocket client is a bit obscure: if you use the Pusher third-party service it will eventually work out-of-the-box (I don't know, haven't tried), but if you choose to setup your own websocket server you will find yourself looking for hints…

Material Navigation

Recently I wanted to use the navigation transition suggested by the Material Design guidelines (the element into the list growns when selected) into a web page, but I've not been able to find any working example online. So I've managed to provide my own implementation. This is part CSS and…

Message in a Phone

I had to integrate SMS notifications in a project for a client, got a look to the API documentation of Skebby (SMS service popular among Italian developers), and started wondering about a Laravel package to integrate it into the native notifications system of the framework. More recently, another client asked…

Varnishing Wordpress

Mixing Varnish and HTTPS is usually a pain in the ass. Even more when Wordpress is involved. The common setup is to expose Nginx on the 443 port, let him handle the HTTPS connections, proxying to Varnish, and fetching back from Nginx - in HTTP - listening on a high…