Herzlich Willkommen ツ

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

31.08.2020 - 13: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 https://www.php.net/manual/de/class.domdocument.php for that, which seems to have some problems / flaws with such cases, as the following issues show:

LDAP query Synology NAS for all users of a group

20.07.2020 - 11: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.

My task was to get a list of all active users in my Synology LDAP which belong to a certain Group ("CEO").

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

30.06.2020 - 11: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: https://winscp.net/eng/docs/task_keep_up_to_date

I couldn't find a working fix for this, but I found a good workaround:

Run Jira Server on Hetzner Managed vServer

18.06.2020 - 08:40


Wir wollen testen, ob das beliebte Atlassian Jira auch auf einem Hetzner Managed Server betrieben werden kann.
Um das Leistungs-Minimum zu testen, haben wir uns für einen VSERVER MC40 entschieden.


Running GitLab CE on sloppy.io Docker Container

Running GitLab CE on sloppy.io Docker Container

12.06.2020 - 14:40

Some weeks ago I found the European Docker Hosting provider sloppy.io and I'm still impressed by the wonderful UI / UX to administer and run Docker containers online so simple.

As a fun project I tried to run a GitLab CE instance on Sloppy and after some drawbacks, I finally managed to run it!

Here are the pieces:

Image Path: gitlab/gitlab-ce

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

08.06.2020 - 16: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

title: "Anchor example"
description: "Scroll to top on the current page"
url: "internal:#top"

Shopware 5 - defekte Varianten entfernen

05.06.2020 - 10:10

Es kann in Shopware 5 aufgrund fehlender Validierung im Import / Export passieren, dass "defekte" Varianten angelegt werden. Also Varianten, denen die korrekte Zuordnung zu ihrem Elternartikel fehlt.

Migrating ownCloud 10.4.1 to nextcloud 18 Odyssee

28.05.2020 - 19:55

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

Sadly at the moment the migration script only supports ownCloud migrations up to 10.0.x and not 10.x.

1) Old PHP Versions

Drupal 8: Add field validation constraint programmatically

14.05.2020 - 15: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 regex allowed for an "id" HTML element attribute.

Drupal 8: Delete view programmatically

12.05.2020 - 14: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. \Drupal::service('config.factory')->getEditable('views.view.' . $view_name)->delete();

Syndicate content