Author: chirale

How to shrink a scanned PDF on Linux

Leave a comment
Howtos

When you want to reduce the file size of a PDF document, this quick command using convert will shrink the original PDF file. This command is particularly useful against scanned documents, the jpeg quality will be 60% for 150dpi. Converting an original 300dpi / color PDF to a 150dpi, greyscale PDF can reduce file size up to 50%. There will be some quality loss but in this way you can reduce file size enough to […]

PIL: ord() expected a character, but string of length 0 found (SOLVED)

Leave a comment
django / Howtos / Python
PIL error

Using Django, and easy_thumbnails coupled with Pillow specifically I’m stumbled upon this error in PIL.ImageFile on PIL/_binary.py: ord() expected a character, but string of length 0 found This python error was so frequent I’ve done some research, coming up with nothing. I’ve checked current Pillow version with: Getting: Pillow==3.0.0 Then I’ve upgraded the Pillow package with this: The sofware was updated to the very last version (5.0.0) without any issue on easy_thumbnails backend or frontend. […]

Failed to start Authorization manager (SOLVED)

Leave a comment
Howtos / System Administration

If you get the “Failed to start Authorization manager” while booting a Linux OS (e.g. CentOS) most likely you’ve a SELinux misconfiguration. The main issue is that if you’ve restarted the system, you cannot login since OpenSSH service is not running. If you’ve a virtual server, even the console shipped by your provider is stuck on the Authorization manager error. The reason behind this in my case was a completely wrong value in SELINUXTYPE. The […]

Why you should not use Drupal anymore

Leave a comment
Coding / django / Drupal / Python

I’ve started using Drupal on 2007. For about 9 years I visits drupal.org almost on daily basis, I released a module, I suggested some patches, participated to local events and so on. I’ve started working on Drupal with Drupal 5 and I ended on Drupal 7 with a long time on Drupal 6. In the meantime, Acquia was created to support Drupal development and make some money from the project and for the project in […]

Certbot: auto-renew LetsEncrypt certificate on cron

Leave a comment
Howtos / System Administration

Certificates renewal can be difficult to automate leading to errors that will mark the website as “Insecure”. Here’s how to automate certificate renewal on CentOS 7 with nginx as webserver: And then add to the crontab these lines pressing A to edit: Every day at 02.37 the certificate will be asked for renewal. Two minutes later nginx will be restarted. After you’ve typed these lines, type: :wq To write and quit. You’ll get this message: […]

A new language for Social Media managers on Twitter

Leave a comment
Coding / Howtos / Python
A screen from JournaKit Followship .ows

Last months I looked for a tool to shape my community on Twitter to follow interesting profiles and to increase my followers. I had bad experiences using integration from third party (app) so I wanted this tool to be able to create my own app on Twitter without 3rd party involvment for better security and privacy. Since I wanted real new followers and I don’t want to violate Twitter policies I looked for a tool […]

10 essentials steps to use Elementary OS as media station

Leave a comment
Howtos
Elementary OS (Loki)

I was looking for an easy and good alternative for Windows 7 on a laptop used as a media station to watch Netflix and Crunchyroll and I choose Elementary OS. This GNU/Linux distribution is based on Ubuntu and it’s relatively easy to install. Anyway, it needs some steps to work great as media station. Here we go: Make AppCenter Work Click on Applications on the top left corner of the screen Click on Terminal On […]

10 steps to install LyX on Windows

comment 1
Howtos

Here the steps to install LyX on Windows: Download MiKTeX to provide LaTeX (usually the 64bit version) Select the installation directory and remember the path Complete the installation procedure Download and install LyXWinInstaller Press Next until a dictionary list is presented: add dictionaries for your languages Before installing the MiKTeX will be shown: Click Install and proceed. You should get an Update popup for MiKTeX, check the connection settings and then proceed and click Next […]