Secure WordPress with Fail2Ban

Fail2Ban is a neat tool that watches your logfiles and executes actions  defined by you if a filter  matches. In the following I want to explain the basic functionality of fail2ban necessary to integrate with WordPress and we will install Slack notifications:  Basics Jails Jails are like configurations for services you want to monitor. You declare services and specify filters, ports, protocol …… Read more →

Resolved Composer Namespace Issues

I actually resolved the namespace conflicts that came with composer. As described in the other post I prefixed these 3rd party libraries and commit them to my repository (I placed them in lib/vendor/<vendor>/<package> ). I also use an PSR-4 autoloader ( from fig-standards ) to load these libs (make sure you prefix the class name at least or put it in your namespace):… Read more →

WordPress + Composer = ?

Using composer to install 3rd party libraries for your WordPress plugin feels like state of the art in comparison to other php projects. To get there you set your minimum required php version up to 5.3, introduced namespaces and introduced composer. You spend hours tuning your plugin and made use of well known libraries like pimple, twig and an orm… Read more →

VNC Server / VNC Viewer

Als Alternative zu RDP unter Windows bietet sich das VNC Protokoll an, das unter Linux weit verbreitet ist. Dieses bietet erheblich mehr Konfigurationsmöglichkeiten gegenüber RDP, die jedoch nicht zwangsläufig anfasst werden müssen. Gute Erfahrung habe ich mit der Software Real VNC gemacht – diese hat VNC Server für Windows, Mac, Linux und zusätzlich VNC Viewer für die genannten und weiterhin Android, iOS… Read more →

Maintaining a WordPress Plugin

It’s about 2 years that WP Mail Logging is available in the plugin repository. In the following I want to talk about my experience with making a WordPress plugin. Scaffolding I always wanted to learn more about WordPress development and WordPress Plugin Development in first place since I started my first Website with WordPress in 2007 or so and misusing… Read more →

Controlling Nav Menu Generation

You might want to tweak the output of your menu items in WordPress. You can use this to remove or change a link from a specific item.   To do so we can make use of the filter  walker_nav_menu_start_el  – it’s called for each traversed menu item when building the menu. This is actually done in the  nav-menu-template.php script in the class  Walker_Nav_Menu and… Read more →

Child Pages Shortcode

With Child Pages Shortcode you can fetch the children of a page and arrange them in a nice list or overview. There are several ways to make use of the plugin. First you can use them in the code via hooks and second you can use shortcodes and a kind of template (that’s what I want to go into in… Read more →

Generate Javadoc with UML Diagrams

It is very useful to have UML Diagrams integrated into your javadoc – they give you a neat visual overview of the contents of you sourcecode. I want to show you how  to integrate this into an automated build. I implemented this with an ant target and my IDE Netbeans. Add this to your build.xml in the root of your… Read more →

Don’t Stick to hta Applications

If you have the burden to work on hta applications you might get into conflict with incompatibilities. So am I. I wanted to migrate a hta application from 2012 with bootsrap 2 to bootstrap 3. Bootstrap 3 doesn’t support IE 7 any more and also the fix with Respond.js doesn’t work in local files. So what now? I found node… Read more →

Wörterbuch für Android

Wer in den Genuss einer gut funktionierenden Auto-Completion kommen möchte muss Android mit einem umfassenden Wörterbuch füttern. Das Standardwörterbuch Deutsch hat einige Schwachstellen: Es kennt nur allgemeine Wörter, keine Abwandlungen von ihnen und keine konjugierten Wortformen. Dies ist ziemlich nervig, wenn man bedenkt, dass wir das Jahr 2015 schreiben. Deshalb biete ich hier eine Wortliste mit ca. 10.000 Einträgen, die… Read more →