Fix error ‘index.php was not found on this server’ after upgrading ownCloud to version 9

If you just upgraded ownCloud on Ubuntu 15.10 to version 9 (using apt-get dist upgrade), you probably get the error message shown above. Adding /index.php manually still redirects to the ownCloud login screen. As mentioned here open .htaccess in /var/www/owncloud an comment out the line RewriteRule .* index.php [PT,E=PATH_INFO:$1] and restart apache with service apache2 restart

Toggle WPF control visibility with DataTriggers

A frequent source of error while working with triggers is that I set the default value directly on the control itself (e.g. Label). Now when trying to change the value with a trigger that unfortunately won’t work. The default value has to be set in the control’s style as shown in the example below. <Window x:Class=”FlennyNET.Examples.DataTrigger.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” […]

Redirect any subdomain http or https to a single subdomain with NGINX

Today I had a use case where I wanted to redirect any subdomain at any scheme (http or https) to a single https subdomain https://ping.flenny.net. http://blog.flenny.net should redirect to https://ping.flenny.net https://www.flenny.net should redirect to https://ping.flenny.net In order to redirect both schemes (http and https) to a single subdomain you have to setup two server blocks. […]

Clientseitige asynchrone Serviceaufrufe mit der ChannelFactory

Wenn eine WPF Applikation entfernte Methoden ausführen will (Interprozesskommunikation), sollten diese wenn immer möglich asynchron ausgeführt werden. Wir müssen immer davon ausgehen, dass auch scheinbar kurze Funktionen für einmal auch mal länger dauern können. Zudem werden die Aufrufe in einer WPF Applikation standardmässig im UI Thread ausgeführt. Das  führt dazu, dass die Benutzeroberfläche in der […]