Archive | Software

PhantomJS alternative: Write short PyQt scripts instead (phantom.py)

For a project of mine, I needed a ‘headless’ script that renders dynamically generated HTML (via JavaScript) to a PDF file. In looking for existing headless browsers, I found PhantomJS, CasperJS and similar projects. PhantomJS looked most promising, but it had bugs related to the CSS @media type ‘print’ which made the project useless for […]

Continue Reading 0

phantom.py: A lean replacement for bulky headless browser frameworks

This is a simple but fully scriptable headless QtWebKit browser using PyQt5 in Python3, specialized in executing external JavaScript and generating PDF files. A lean replacement for other bulky headless browser frameworks. (Source code at end of this post as well as in this github gist) Usage If you have a display attached:

If […]

Continue Reading 0

“Open Source” does not imply “less secure”

Sometimes programmers hesitate to make their software open source because they think that revelation of the source code would allow attackers to ‘hack it’. Certainly there are specific cases where this is true, but not as a general rule. In my opinion, if inspection of the source code allows an attacker to ‘hack it’, then […]

Continue Reading 0

How to install yubikey-manager on Debian

yubikey-manager is a Python application requiring some dependencies for it to be installed from the Python repositories, because it is not yet in the official Debian package repository. Here is how:

Here is the main commandline utility:

Continue Reading 0
800px-Parcelusarus2008

WooCommerce Shipping Plugin “External Fetch”

I just wrote the following shipping plugin for WooCommerce because existing plugins would not cover the case I’m working at. It is available on my github account under the permissive MIT license. https://github.com/michaelfranzl/woocommerce-shipping-external-fetch woocommerce-shipping-external-fetch Shipping Plugin for WooCommerce which HTTP PUTs the cart contents in JSON format to an external web service specified by protocol/host/port/URI, and […]

Continue Reading 2

How to compile ezstream from source

Debian Stretch’s version of ezstream is currently a bit out of date. Here is how you compile ezstream from source to get the latest improvements and bugfixes. Not even the INSTALL file in the ezstream repo has all the steps:

Note that the configuration file structure has changed from what can be found on older blog […]

Continue Reading 0

Hardening WordPress against hacking attempts

The WordPress Codex states: Security in WordPress is taken very seriously This may be the case, but in reality, you yourself have to take some additional measures so that you won’t have a false sense of security. With the default settings of WordPress and PHP, the minute you host Wordpress and give access to one non-security-conscientious administrative user, your […]

Continue Reading 0

no.php – Transparent reverse proxy written in PHP that allows you to not have to write PHP any more

This little project will probably be my only contribution to the world of PHP. The code is at https://github.com/michaelfranzl/no.php This short, single-file, 80-line PHP script is a simple and fully transparent HTTP(S) reverse proxy written in PHP that allows you to never have to use PHP again for a new project, if you feel so […]

Continue Reading 0

Powered by WordPress. Designed by Woo Themes