Blog

Microservices@majug

Am Mittwoch den 22.04.2015 trifft sich die Java Usergroup Mannheim. Ich wurde eingeladen meinen Vortrag "Microservices: Klein aber oho!" zu präsentieren. Der Vortrag gibt einen Einblick was Microservices wirklich sind, welchen Vorteil sie uns im Alltag bringen und welche Anforderungen Microservices an die Unternehmenskultur stellen.

mehr lesen...


Verfasst von Stephan Hochdörfer am 26.03.2015 | 0 Kommentare

Creating JSONP(adding) responses with Silex

Recently I had the need to extend a Silex application to be able to return JSONP responses when needed. I was looking for a generic approach and came across a blog post by Raphael Stolt who solved the problem with a clever "after middleware". This is the code you need to add to your app.php file:

mehr lesen...


Verfasst von Stephan Hochdörfer am 17.03.2015 | 0 Kommentare

Environment Dependent Sencha Touch Config

Recently we developed a mobile application based on Sencha Touch and Cordova. The application was communicating with a REST backend. Since I did not want to change the URL to the REST backend manually when deploying the app in the testing or production environment, I was looking for a way to use multiple configuration files based on the active environment.
I was not able to find a decent solution in the Sencha documentation so I tried and contacted the Sencha Support. Kevin from the Sencha Support Team quickly responded with a pretty decent solution:
As it turns out there exists an undocumented feature for Sencha Touch allowing you to define Javascript files which will get included on a per-environment basis during the build. Simply add the following lines to your app.json:

mehr lesen...


Verfasst von Stephan Hochdörfer am 16.03.2015 | 0 Kommentare

Dutch PHP Conference 2015

Vom 25.06.2014 bis zum 27.06.2015 findet in Amsterdam die Dutch PHP Conference 2015 statt. Ich freue mich zum sechsten Mal in Folge dabei zu sein und meine beiden Vorträge "The NoSQL Store everyone ignores: PostgreSQL" und "Improving the quality of your Javascript application " präsentieren zu dürfen.

mehr lesen...


Verfasst von Stephan Hochdörfer am 13.03.2015 | 0 Kommentare

Extending .jshintrc configurations

Since version 2.5.1 of jshint it is possible to extend your own .jshintrc configuration from another .jshintrc config file. This allows you to extend a common configuration and add project specific options (e.g. custom global variable names) to a local configuration file. This way you do not end up with the pain of keeping multiple configurations in sync. It`s fairly trivial to use. In your .jshintrc configuration file add an extends field which points to the configuration you are extending from:

mehr lesen...


Verfasst von Stephan Hochdörfer am 09.03.2015 | 0 Kommentare

Microservices@phpugffm

Am Donnerstag den 19.03.2015 trifft sich die PHP Usergroup Frankfurt. Auf vielfachen Wunsch hin werde ich meinen Vortrag "Microservices: Packs small, plays BIG!" halten und erklären was Microservices wirklich sind, welchen Vorteil sie uns im Alltag bringen und welche Anforderungen Microservices an die Unternehmenskultur stellen.

mehr lesen...


Verfasst von Stephan Hochdörfer am 02.03.2015 | 0 Kommentare

Running PHPUnit via Phing on HHVM

For quite some time we run the unit tests for our libs and tools against PHP and HHVM, at least that is what I thought up to now. As it turns out I missed a minor detail. In our Jenkins job we invoke the Phing task like this:

mehr lesen...


Verfasst von Stephan Hochdörfer am 26.02.2015 | 0 Kommentare

Composer@ZürichPHP

Am Montag den 09.03.2015 trifft sich zum ersten Mal die ZürichPHP Usergroup. Ich werde dort meinen Votrag "Composer for Corporate Use" halten und darstellen warum es Sinn macht Composer einzusetzen und wie man Composer konkret im Projektkontext einsetzen kann.

mehr lesen...


Verfasst von Stephan Hochdörfer am 25.02.2015 | 0 Kommentare

Archiving Emails in Thunderbird

For years I am struggling to find a decent way of archiving / exporting my business mails stored in my IMAP account. Manually copying 10K+ mails is no fun, and addons like the ImportExportTools did also not work properly. So it was clear to to me that I needed to backup the mails on our mailserver and import them somehow into my local Thunderbird instance. The problem to solve was that we use the MailDir format to store the mails on the server side and the ImportExportTools is only able to import mails in mbox format. Thanks to Google I was able to find a one-liner for the conversion, pretty clever if you ask me (at least compared the complex bash and Python scripts I found):

mehr lesen...


Verfasst von Stephan Hochdörfer am 18.02.2015 | 0 Kommentare

Configuring Xdebug and phpstorm for CLI debugging

Current situation: I have no local webserver running and just php5-cli (plus a few extensions) installed as most of the development I do will make use of a Vagrant machine. From time to time I develop small tools or libs which I like to debug on the command line. This is an overview how I configured my Ubuntu 14.04 box to handle debugging with Xdebug and phpstorm.

mehr lesen...


Verfasst von Stephan Hochdörfer am 11.02.2015 | 0 Kommentare