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 port to serve regular contents. In the last step the request arriving to Wordpress is in plain HTTP, so the CMS generates HTTP URLs for included CSS and JS files, and the browser rejects to include such files when visiting…

Keep reading

Monthly Report: September 2018

What I've done this month... My Software Projects GASdotto: management application for ethical purchasing groups many fixes on the repository Dario: rooms management and booking many fixes on the repository laravel-log2rss: Laravel logs published in RSS updated to Laravel 5.7 Support my activities with PayPal or Patreon!…

Keep reading

Monthly Report: August 2018

What I've done this month... My Software Projects GASdotto: management application for ethical purchasing groups many fixes on the repository Dario: rooms management and booking many fixes on the repository postegg: endpoint to POST data from web forms fixed 2 and 3 Support my activities with PayPal or Patreon!…

Keep reading

Play it Again, SAML

I had to integrate SAML authetication on a Laravel application, so I composer required the laravel-saml2 package (actually, the remove_mcrypt branch. You know: mcrypt has been dropped in PHP 7.2...) and configured it to attach to the SimpleSAML-PHP instance I recently deployed. Of course nothing worked out of the box, so my experience is worth a blog post. On the server side (SimpleSAML-PHP): the standard response for authentication includes the password attribute. With the user's password hash in binary format. And, aside the security implications of this, the…

Keep reading

Monthly Report: July 2018

What I've done this month... My Software Projects GASdotto: management application for ethical purchasing groups many fixes on the repository Dario: rooms management and booking initial release on the repository My Contents 20 CC-BY photos loaded on my Flickr profile. Support my activities with PayPal or Patreon!…

Keep reading

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="firstname[]"> </td> <td> <input type="text" name="lastname[]"> </td> <td> <input type="email" name="email[]"> </td> </tr> <tr> <td> <input type="text"…

Keep reading

Monthly Report: June 2018

What I've done this month... My Software Projects GASdotto: management application for ethical purchasing groups many fixes on the repository Spunta: a simple checklists manager many fixes on the repository My Contents 60 CC-BY photos loaded on my Flickr profile. Support my activities with PayPal or Patreon!…

Keep reading

Monthly Report: May 2018

What I've done this month... My Software Projects GASdotto: management application for ethical purchasing groups many fixes on the repository Spunta: a simple checklists manager some fixes on the repository Other Software laravel-imap: Laravel package to handle IMAP connections little improvement My Contents 109 CC-BY photos loaded on my Flickr profile. Support my activities with PayPal or Patreon!…

Keep reading

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">, each containing the img to geolocalize a few CSS and JS The important part of CSS is the "overlay modal" effect generated around the dragged image when over the map, obtained with a little padding, a blank background, and the evergreen trick…

Keep reading

Monthly Report: April 2018

What I've done this month... My Software Projects GASdotto: management application for ethical purchasing groups many fixes on the repository apress: a simple Twitter scheduler fixed 5 Other Software zetacomponents/Archive: PHP package to manage archive files fixed issue with PHP 7.2 NextCloud Notes: note-taking app for NextCloud fixed 177 Support my activities with PayPal or Patreon!…

Keep reading