Progressive PDF Loading

If you have large PDF documents to serve into a website, probably you don't want those are fetched entirely before showing to the user. And if you host them in AWS S3, you may also be concerned about bandwidth usage and costs. Mozilla's PDF.js handles progressive loading and handling,…

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…

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…

Check the Checkbox

I often use the "add and remove rows from a grid" pattern to permit handling groups of data, but today I had to manage a particular use case. Given a simple table <table> <tr> <td> <input type="text" name=…

Map Drop

I wanted to recreate the Flickr's feature to drop photos on a map to geolocalize them. Like this: So, hacking on a MapBox canvas, I obtained that: Here we have a <div id="map"> used to instance the MapBox map many <div class="thumb&…

SAMLStorm

SandStorm is a cool solution to host simple web services and let users use them easily. It can be installed with a few commands, but still has an issue that bothered me: it is not possible to have a publicly accessible instance, as all of the involved login methods imply…

Mails into the Web

Requirement: "Given this Mailchimp newsletter, embed the latest issue in that Jekyll static website". Mailchimp offers many APIs, but this approach requires too many complications. Instead my solution relies on RSS: given the RSS feed of your newsletter (you can obtain it with the "RSS" link…