Author Archives: ocroquette2

PHP not working in Apache virtual hosts

I just had the situation where PHP worked fine from the default/main site configured in Apache, but not in a virtual host. Instead of parsing/executing the PHP script, Apache would rather send its source code back to the browser, which … Continue reading

Posted in Uncategorized | Leave a comment

Uploading a file with HTTP PUT in Groovy with Basic Auth

Dependencies: Code:

Posted in Uncategorized | Leave a comment

Gerrit: robust regular expression to create links from text automatically (commentlink)

When there is a link to a bug tracking ticket in a commit message, and Gerrit is already be configured to make automatically links out of ticket numbers, it results in a mess. There is a bug report about this … Continue reading

Posted in Uncategorized | Leave a comment

Notepad++: automatic configuration of tabs vs. spaces

Notepad++ is a great text editor with lots of features out of the box, but I miss particularly one: the ability to use automatically tabs or spaces for indentation according to the content of an existing file when opening it. … Continue reading

Posted in Uncategorized | 1 Comment

Configuring Apache to serve multiple domains with a single SSL certificate

Here are some notes on how to configure Apache to server multiple domains with a single SSL certificate. If using a single certificate is not an option, you will have to use SNI, which is not covered in this howto. … Continue reading

Posted in Linux | Leave a comment

Msys2/pacman: list dependencies with versions

Here is a one-liner to list all the dependencies for an Msys2 package, or for any pacman based system for that matter: Note: on my system, it works only for installed packages, even using the “-s” option: I don’t know … Continue reading

Posted in Uncategorized | Leave a comment

Getting BLN to work with CyanogenMod / LineageOS

“Backlight Notification” is a great feature of some Android Linux kernels, that allows to use the backlight of the “Menu” and “Back” buttons to signal pending notifications for phones that don’t have a dedicated notification LED. There is an app … Continue reading

Posted in Android | 9 Comments

Groovy: StreamException: Cannot create XmlPullParser

If you get this error message, you might want to remove “xmlpull-1.1.3.1.jar” and “xstream-1.4.7.jar” from GROOVY_HOME/lib as a workaround. These libraries provided with Groovy seem to conflict with the ones used by the application. I didn’t notice any side effect … Continue reading

Posted in Uncategorized | Leave a comment

Perl’s “quote word” in Groovy

When it comes to embedding a long list of simple text strings in the code, Perl’s “quote word” is very handy: This is the closest equivalent I could find in Groovy: You can also use a multiline string : The … Continue reading

Posted in Uncategorized | Leave a comment

Linux serial TTY hanging

Today, I had the problem that my serial TTY (/dev/ttyACM0, serial over USB) was apparently hanging when receiving data. However, when more data was sent by the other side, the communication would eventually resume. So at first, I though some … Continue reading

Posted in Linux | Leave a comment