Posts

Showing posts from September, 2016

Clear GPS metadata from an image

In March 2012 I wrote a blog titled,  GPS Information in photos . In it I describe how to extract and resolve Exif GPS data to a map reference. Recently I wrote an update to that blog that included how to clear metadata from an image. Essentially, the two methods I would use are: (1) Using ImageMagick with convert gps.jpg -strip stripped.jpg This  appears to re-compress the JPEG image which may not be what you want. (2) So, there is an alternative tool such as the exiv2 utility. I've not used this myself, but it seems to have great command line options.

Automation with Ansible

Ansible is a Python based automation tool. I started using it to revert changes made on my local machine every time there were package updates. That is I wanted to ensure my options and settings were preserved. Professionally my team uses Puppet but we were looking at alternatives. Ansible was chosen for a variety of reasons: it is easy to learn, has broad functionality and an active community. There is next to no new lingo to learn: a task is an action you want to perform a list of tasks can be organised into a playbook handlers are special tasks that are triggered by a change in a task a group of playbooks is organised into roles an inventory is a list of hosts (or group of hosts) to apply a playbook to playbooks are under the roles directory tasks are stored in the tasks directory, under a role variables are stored in the vars directory, under a role templates are stored in templates directory, under a role So, any typical Ansible project would look something like: ...

Converting MS Documents to PDF using LibreOffice

I've been a long time user of LibreOffice . I first started with StarOffice , before moving to  OpenOffice , and finally the latest incarnation,  LibreOffice . While I use office suites less, preferring Wiki 's and if a versioned document is required, LaTeX , I still on occasion receive MS documents. Rather than reading these documents in MS-Word or MS-PowerPoint formats I prefer to convert to a PDF. Here is how to do that. The following shows how to convert a presentation to a PDF. It is a headless operation that works just as well over a set of documents. loimpress --headless --convert-to pdf presentation.pptx Similarly, lowriter --headless --convert-to pdf document.doc