Weblog aka "Blog"

PHP DOMDocument UTF-8 data into ISO-8859-1 document snippets

31.08.2020 - 14:00

Encoding is hard in many cases. Today I ran into one, where we had to save UTF-8 data (from a Drupal website) into an XML document which requires ISO-8859-1 encoding.

We're using...

LDAP query Synology NAS for all users of a group

20.07.2020 - 12:05

Well some experienced LDAP administrators may laugh, but it was quite hard for me, as LDAP "newbie" to find out how to get a list of all LDAP Group Members from my Synology DiskStation. So I'd like to share my experience and result.


LDAP, NAS, Synology

WinSCP "Keep remote directory up to date" doesn't upload / work due to timestamp problems

30.06.2020 - 12:20

If you should also encounter the problem that WinSCP's wonderful syncing / folder watch functionaity "Keep remote directory up to date" doesn't work correctly, first have a look here, also for troubleshooting:...

FTP, SCP, SSH, Upload, WinSCP

Drupal 8: Add menu item with anchor link programmatically in .menu.yml

08.06.2020 - 17:04

For a Drupal 8 EU Cookie Compliance patch I needed a way to add an anchor link as default menu item programmatically in .menu.yml


Migrating ownCloud 10.4.1 to nextcloud 18 Odyssee

28.05.2020 - 20:55

Migrating ownCloud to nextcloud typically isn't that hard thank to the nextcloud developers who provide a user friendly migration script: https...

Drupal 8: Add field validation constraint programmatically

14.05.2020 - 16:41

In foundation_anchor_menu_block module I needed to add a validation to a field in a block to ensure the entered value matches the...

Drupal 8: Delete view programmatically

12.05.2020 - 15:22

If you should run into the same situation, that you'd like to delete a view programmatically, for example on module uninstall, here you go:

  1. \...

VSCode: (Better) alternative to phpcs & intelephense for Drupal Code style / linting: phpcbf

08.05.2020 - 18:00

After fighting a lot with phpcs, intelephense and WSL2 in VSCode, I found vscode-phpcbf and hey, it works! :D immediately!

And it shares the Standard with phpcs!


Drupal, PHP, VSCode

PR_END_OF_FILE_ERROR in Firefox may be caused by fail2ban

06.05.2020 - 13:12

If you experience a PR_END_OF_FILE_ERROR in firefox, I experienced that it might be caused by a fail2ban block for the given user IP on SSL / https pages.

Just as a note to myself if I should ever run into that problem again.


Error, Firefox, Server

Using wget for Cronjob without output

24.02.2020 - 10:37

Short snippet to use for a cronjob to call a url if you don't want any output:

* * * * * /usr/bin/wget wget -qO /dev/null https://www.example.com/your-script-to-run

Or to only use HEAD:
* * * * * /usr/bin/...

Syndicate content