schlitt.info - php, photography and private stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Tobias Schlitt :Date: Thu, 19 Sep 2013 08:35:38 +0200 :Copyright: CC by-nc-sa ================================= Blog - Open Source - schlitt.info ================================= - Comments back online Mi friend Kristian from eZ Systems noted this morning, that comments on my blog were disabled. That was actually an accedent, because I shutted down comments some days ago to stop a spam wave and forgot to switch them on again. I now re-enabled comments and trackbacks. If you ever want to comment on one of my posts and find comments disableds, don't hesitate to send me a mail about it! - Kore going mad again: kaforkl My friend Kore is going mad again. As usual, it has something to do with graphics... But this time in a completly different way than before: Kore created his own small programming language, which he named "kaforkl". - That's why I pay so much for a notebook... Yesterday (and today) I had an experience, which showed me once again, why I pay so much for a high quality notebook. During our (currently daily) learning sessions, the keyboard of my 1.5 years old IBM Thinkpad T43p lost it's backspace key. Somewhat annoyed I opened a support call on the IBM website (luckily, IBM has 3 years of guarantee) about it and (while having the chance) I added anothe issue with the notebook I now had for about 2-3 months. This one was, that I had a bunch of weird light-gray dots on my display, which actually looked like tiny liquid splashes. I was not able to kill them with a towel and therefore added the phenomenon to the support call, too. Anyway, I did not expect IBM to react on that issue, because it simply did not look like a guarantee issue to me. - Avoid an endless pifall During my current exam phase I'm working on some tiny private project to relax after learning. In there I'm using a main controller class, which implements a singleton pattern and initializes several sub-controllers while being created. The singletons purpose is, that the other controllers can access to main controller and its functionality whenever they need, without storing a reference each. The code for the singleton looked about like this: - Nice PHP code At our weekly usergroup meeting, which is taking place just right now, we again discussed our beloved topic, the Ternary Operator. I like that thing really much and I believe it makes code much more readable in a lot of cases. Anyway, I tend to stack ternary operators and I didn't even know, that the PHP manual recommends to not do that. I think this recommendation is only valid of you don't add appropriate braces, to indicate the precendences. Anyway, while having a beer, we thought about some more "funny" things you could do with it... For example, executing mutliple statements, within one section of the operator... here is the result: - Finally: Dericks year lookback Finally my friend Derick posted his usually PHP Look Back for the past year on his website. Thought, there were quite many look backs this time in the blog sphere, but after reading Dericks, I'm sure it is by far the best and most interessting. You will enjoy reading it, promised! - New design: dynamic-webpages.de My friend Wolfgang, the maintainer of the largest German PHP community website dynamic-webpages.de, just relaunched his new design. I like it very much and it looks really neat! :) - 1st step for becoming a Gentoo developer: eZ Components ebuilds When Sebastian left the Gentoo project, I decided to give it a try to become a Gentoo developer, which is a quite long process. Now I took the first step and provided new ebuilds for the recent eZ Components release 2006.2. Since I'm not an official developer, yet, these ebuilds are only available through the Gentoo PHP overlay, for now. I think Luca will put them into portage, or at least into php-testing, as soon as he is back from Christmas vacation. - We found Bielefeld! Did we? As posted before, Kore and me went to a the "Christmas Cookie Baking" event of the PHP Usergroup Bielefeld last Saturday, organized by Carola (Sammy). We were quite suprised, that we found Bielefeld so easily, although the internet told us about the great Bielefeld Conspiracy before. Anyway, we found Sammies home and had a great time with brunching and baking cookies, together with her husband and Arne from Hamburg. Afterwards we went to the Christmas Market of Hamelin, the town which is famous in Germany for its story about The Pied Piper of Hamelin. It was really a great event and I want to thank Sammy for this! - Taint mode for PHP? Wietse Venema, the creator of the Postfix MTA, posted a proposal for a "taint mode" to the PHP internals list. Before commenting his proposal, I'd like to give a short intro about what a "taint mode" is: