How to quickly geocode a list of addresses using Google Apps Script

Recently I discovered a powerful tool from the awesome Google Developers Youtube channel: Google Apps Script.

I tried it writing a simple, but powerful example, experimenting with a use case that for sure will be useful to me in the future: geocoding a list of addresses taken from a spreadsheet.

Continue reading “How to quickly geocode a list of addresses using Google Apps Script”

How to quickly geocode a list of addresses using Google Apps Script

How to add a group choice combo box in a Django user profile form

Assume that you have a Django project where each user belongs to just one group, say Registered or Admin, but not both.

You want to show a form in your front-end to let Admin users edit the user profiles, where each user profile is made with First name, Last name, Email and the user group.

This task can be accomplished very easily! What you need is a customized ModelForm to add the possibility to edit the user group together with the other fields, and a customized UpdateView to let you set the form initial data for the group field, and to save the changes correctly.

Continue reading “How to add a group choice combo box in a Django user profile form”

How to add a group choice combo box in a Django user profile form

How to turn your Raspberry PI in a Google Cloud Print device

Google Cloud Print (GCP) is a quite useful Google service, allowing you to print in a GCP compliant printer from everywhere and from every device of yours, be it a desktop, a tablet or a smartphone. There are quote a lot of printers out there supporting GCP out of the box, but here I will explain how to turn every Linux supported printer in a fully functional GCP printer. As a bonus you’ll have a cheap Linux based print server in your local network, which is alone a nice thing to have. All this thank to the amazing Raspberry PI ARM GNU/Linux mini PC.

Continue reading “How to turn your Raspberry PI in a Google Cloud Print device”

How to turn your Raspberry PI in a Google Cloud Print device