Sunday, July 2, 2017

Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored

This is a quick how-to for fixing the error below on odoo version 10 running on Ubuntu 16.04 Xenial.

Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored
This error comes up as a result of the version of wkhtmltopdf which has been installed via the package manager (apt). To fix this, download the latest stable version of wkhtmltopdf for Linux from this link. Choose your platform correctly 32bit or 64 bit.
$ sudo apt-get purge wkhtmltopdf
$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
$ tar xfv wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
$ sudo mv wkhtmltox /opt/
$ sudo ln -s /usr/bin/wkhtmltopdf /opt/wkhtmltox/bin/wkhtmltopdf
 Hopefully it helps you solve this problem

Thursday, July 31, 2014

British Govt makes Open Documet Format official

If you live in the UK, you'll soon be able to fill out government paperwork with your freedoms intact. The British government announced last week that Open Document Format (ODF), HTML, and PDF will be the official file formats used by all government agencies.
I hope we (Kenya Govt) follow suit soon because the .doc and .docx standards just slow down things. I use libreoffice all the times and ocassionally I have to export to these proprietary forms to share with other users.
More reading here.

Tuesday, April 29, 2014

GPS Bullets.. an end to high speed police chase?

Starchase have begun developing technologies like its “GPS bullet” pursuit management system, which the company describes as a “real-time tagging and tracking tool to reduce dangerous high-speed pursuits.”
A compression tool is mounted on the front of a police car and fires the sticky bullets on the suspects car. The police now only need to look at their GPS receivers to locate it. This eliminates the need for high speed pursuit.
This is an expensive tech solution by Kenyan standards but it would be nice to have it with our Kenyan cops as well given the high number of traffic offences.
Story borrowed from Ars.

Wednesday, April 23, 2014

The Matatu Sense. A new sense for the Nairobian cyclist

In our lower primary we were taught about the five human senses and how they are important in the life of every human being. Now, cycling or walking in Nairobi requires you to have another special kind of sense that you only get from living in Nairobi or another busy town in Kenya. If you are a pedestrian or a cyclist then you probably have an idea of what I am talking about. The Matatu sense!
A Matatu is a minibus used for transportation in Kenya and is privately owned. More reading here.
The Matatu sense gives you an added ability that can't be compared to anything, even magic doesn't come close. It lets you know of the following without taking a quick glance behind to see whats coming:

  • The size of the Matatu (14 seater or 26/40 seater mini bus)
  • The colour of the Matatu
  • The router the Matatu operates on
  • The recklessness of the driver and crew (just by the way it is approaching)

And not only does it allow you to know what's behind,  some of the above applies to what lies ahead and this allows you to make good decisions and the road and avoid mishaps. A simple decision for a cyclist to
Now with these in mind you can now make a quick decision depending on the circumstance and either accelerate and avoid it or just sit up and give way.
Another advantage that I get from this is that you do not need to look behind and therefore you remain focused and never have to hit the 'wall' on the pave. Let me know your experiences.
So, is this a new discovery in Biology? :-D

Saturday, April 19, 2014

Amstel Gold Race 2014

Another big race on the pro cycling calendar! My pick for victory tomorrow is Phillip Gilbert. The BMC rider has shown that he is in top form (recent win at Brabantse Pijl) and should emerge victorious or make the podium at least. More on pre-race analysis here.

Wednesday, April 16, 2014

Bypassing Samsung Galaxy S5 fingerprint scanner

Samsung just launched the Samsung Galaxy S5 recently and it comes with a bio-metrics feature known as the fingerprint scanner to provide an extra layer of security.
The fingerprint scanner lets you unlock your phone using your fingerprint as well as make payments through Paypal (smell something?). SRLabs researchers recently uploaded a YouTube video, demonstrated how they were able to bypass the fingerprint authentication mechanism to gain unauthorized access just by using a lifted fingerprint with wood-glue based dummy finger. Paypal users are the ones at a big risk since the feature can also be used to transfer money to other paypal accounts. More reading here.

Tuesday, April 15, 2014

Quick way to check for heartbleed vulnerability

Other than checking the version of OpenSSL that your server is running, here's a quick way to find out if any of your servers is vulnerable.
http://rehmann.co/projects/heartbeat/
This is the work of Luke Rehmann and he's made it pretty easy especially for those of us who can't remember the server passwords or you just want to do some white hat hacking! Just key in your ip/domain name and the SSL port and hit submit. You should get a brief report in less that 30 seconds on whether you are vulnerable or not.