Svyturio ekstra draught - Litauisches Bier
Das Bier hier in Litauen ist wirklich gut und süffig - nach 10 Jahren Erfahrung damit kann ich davon ein Lied singen
Was aber wirklich lustig ist, ist die aktuelle Werbung die hier im TV läuft - in Deutsch mit Litauischen Untertiteln.
Viel Spass damit
Testing Buildix
So as promised I finally found some time to test Buildix from Thoughtworks.
- Installed a fresh Ubuntu Version
- Installed Buildix via apt-get as described.
Unfortunatley it did not work as expected - after a short search in the forums I found the correct hint here.
Simply set execute and write permission of the folder /usr/share/buildix for all other users and reboot the system. That’s it.
Ah Mingle - I was always interested in this software
- so let’s give it a try. After filling in the settings for SMTP I created my first project - and - nothing happens. Server hangs, load is very high. Too bad - I simply lack the time to contact the support to figure out what happens - therefore I had to remove Mingle…
But - all the rest works great - I am amazed. I think this is the most easy way to get your continious integration server up and running.
Only User Management seem to lack some functionality. Right now everybody can register himself for write access to svn what is probably not the very best idea in the world. But it seems that they are working on it.
Let’s see how I will come along with Buildix…
Nightwish == Eros Ramazotti ?
Sicher Sicher… da sollte ITunes wohl noch an den Algorithmen arbeiten….
Testing protected Methods in Unit Tests
As a followup to my talks on the IPC 07 in Frankfurt here the improved version including:
- support for parameter in constrcutors ( via reflection )
- small bug fix avoiding autoload to conflict
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /** * Create proxy of given class. Proxy allows to test of protected class methods * @param string $superClassName * @param array|null $constructorParams parameters for contructor * @return object */ function getProxy($superClassName, array $params = null) { $proxyClassName = "{$superClassName}Proxy"; if (!class_exists($proxyClassName, false)) { $class = <<<class> class $proxyClassName extends $superClassName { public function __call($function, $args) { $function = str_replace('protected_', '_', $function); return call_user_func_array(array(&$this, $function), $args); } } CLASS; eval($class); } if (!empty($params)) { // Create an instance using Reflection, because constructor has parameters $class = new ReflectionClass($proxyClassName); $instance = $class->newInstanceArgs($params); } else { $instance = new $proxyClassName(); } return $instance; } </class> |
Example:
1 2 3 | $oClass = getProxy( 'myClass', array( 'some params')); $oClass->protected_myProtectedFcuntion(); ... |
Tales from the eXtreme Side - IPC 07 is over
So finally after 5 days I survived IPC and made my way home. As always it was a real pleasure to meet “la famiglia” - I learned a lot, hopefully could teach other people something and definitly had too much beer. The real reason why the IPC is so short is probably that otherwise 90% of PHP community would have to detox from alcohol
So - the title from my last talk could have also been the title of the whole IPC.
For those of you who are interested in the slides - you can download them directly here: tales-from-the-extreme-side_ipc_07.pdf
or if you interested in the PPT you might be able to fetch them via http://phpconference.com/
Frontalaufprall deckt auf ! Doppelgänger entdeckt.
Unglaublich aber wahr - gestern nacht hat sich ein Doppelgänger unseres geschätzten Kollegen unter die Besucher der IPC in Frankfurt Mörfelden gemischt.
Wie die üblich gut unterrichteten Quellen berichten soll sich dieser Unbekannte als Lars J. ausgegeben haben - wohl um seine distinguierte Reputation zu untergraben. Sachdienliche Hinweise werden gerne entgegengenommen - wer kennt diesen Mann ?
Hier geht es zum Beweisfoto.
Agile Development for Beginners at IPC 07 in Frankfurt
Yesterday I did my workshop about Agile Development for Beginners - the slides will be available via the official phpconference website - and you can download them directly here.
agile-development-for-beginners_ipc_07.pdf
I think the workshop went quite well - and I found already some interesting feedback here - check it out.