Saturday, October 4. 2008days in the monasteryfirst impression
Friday, October 3. 2008by accidentFunny things happen when you work late and still try to have some social contacts. A few days ago i was dragged by my wife into a live gig of 31knots, a band from portland. I actually liked the performance a lot. And i would really like to know what these guys do to expand their minds when they write their songs... But check yourself: 31knots.
Sunday, September 7. 2008Cheap AdvertisingMicrosoft everywhere Thursday, August 28. 2008Dumping MemcacheD Content (Keys) with PHP
MemcacheD is a very cool piece of software. When i did some optimization of a cluster based webapp lately, i was wondering how Memcache was speading my cache entries over the cluster. So i did some research for monitoring tools. A simple approach to monitoring would be to use Cacti to monitor status values like Cache usage, hits/sec etc. This can be done by a template like this. An alternative was provided by Harun Yayli: His memcache.php which somewhat resembles the APC status page and now is a part of PECL/memcache is easy to setup and works well. It also allows to dive into the data structures but you need to decide for one server first, then click into a "Slab" and then you see the keys. Inspired by this, i wrote a small script that fetches all data from a memcache cluster, gets all keys out of it and then sorts and displays them in a list. Yes it it ugly and yes: the memcacheD is not answering other requests while doing a cachedump. But i found it very useful. Maybe somebody has something more advanced that he wants to point me to? This could save a lot of time...
But here is my naive approach: Assumed you have a memcache object in PHP 5 with some servers registered using addServer Method, the following can be used: $list = array(); I then added a very simple HTML Table output to list the result array and found out some interesting details about my application that i dont want to share here It worked for me but it could be that for bigger Memcache Clusters (mine has only 10 servers) or big content tables this will not return the complete content. More to come... Monday, August 18. 2008Wo er recht hatSunday, August 17. 2008Nochmal p1i
Okay, das Zurückspielen der vor dem Update gesicherten Daten klappt nicht. Aber zum Glück hatte ich alle (?) Kontakte in Outlook synchronisiert und konnte sie so wiederherstellen. Nur mein unvergleichlich harmonievoller Klingelton ist leider nicht wieder aufgetaucht. Das Synchonisieren habe ich bislang auch nur einmal noch hinbekommen. Aber vielleicht wirds ja nach dem Neustart wieder. Als nächstes probiere ich wohl mal ein iPhone... Friday, August 1. 2008Temporale Dislokation
Das gute an modernen Kommunikationmitteln ist: Zugfahrten werden plötzlich zu wertvollen Arbeitsphasen, in denen man eine Menge aufgestautes abarbeiten kann. Durch diese neue Art der örtlich wie zeitlich unbeschränkten Arbeit ergeben sich aber plötzlich ganz neue Effekte, die noch weitgehend unerforscht sind. Bekannt ist ja der Effekt, dass man jemanden mitten am Tag auf dem Handy anruft und sich über dessen beschwingten Ton wundert, bis man merkt dass er sich gerade auf der anderen Seite der Welt und 8 Zeitzonen entfernt aufhält und schon zwei Mai-Tais intus hat. Auch bekannt ist das sicher berechtige Bedenken, dass man nun in der Arbeitszeit keinerlei Wartezeiten mehr hat, also demnach 8 Stunden täglich unter absolutem Reaktionszwang wegen der zunehmenden Kommunikationsflut steht und man Arbeit für die man länger als 2 Minuten zusammenhängende Konzentration benötigt, erst nach Feierabend leisten kann (oder eben während einer Zugfahrt). Was mir aber heute erstmals passiert ist: Ich bin aus dem Zug ausgestiegen und wußte die ersten 30 Sekunden nicht, an welchem Bahnhof einer deutschen Stadt ich war. Dazu beigetragen hat sicherlich die gute Arbeit der DB Corporate Identity Abteilung, die daran arbeitet alle Bahnhöfe immer gleicher zu machen. Aber es war noch mehr: Ich bin am richtigen Bahnhof ausgestiegen, aber da der Ort so unerheblich war, habe ich ihn einfach nicht wahrgenommen. Glücklicherweise gibt es ja jetzt location based services für den Rechner, der ja eh immer online ist. Der sagt einem dann durch die korrekten Werbeeinblendungen in den Websites, in welcher Stadt man sich gerade befindet. Welch Segen ...
Saturday, June 21. 2008Notification Free PHP CodingSorry guys, flamebait again. But i need to say this: I HATE NOTIFICATION FREE PROGRAMMING in PHP! $email = (key_exists('email', $values)) ? $values['email'] : null; Honestly: This does not make any sense at all. It just pollutes your code with technical constructs that don't contribute to a solution. UPDATE: Just to make this clear: I am not talking about not input filtering here! Of course every input needs to be whitelist-filtered. And every ouput escaped to prevent XSS. What i mean is internals of you script: You can count on PHP to do things for you. This is exact because PHP does it in exact the same way everytime the script is executed. Sunday, June 15. 2008Amsterdamned
I visited the Dutch PHP Conference in Amsterdam over the weekend. It was a very nice event with about 400 attendees and some interesting international speakers. The conference was on Saturday. Since the dutch team won in the football game 4:1 against france on friday night, most participants came in a very positive mood. My personal highlight on the conference was the talk of Terry Chay who - according to the statements of people who had seen him talking before - cursed surprisingly few times in this presentation. It was fun, meeting the PHP guys from iBuildings and Johann, Sebastian, Derek, Stefan and of course Zeev. After a lot of talking and discussions about PHP (cool), Java (uncool) and Ruby (hype but kind of uncool though oftern referred to as cool - accidentially), i had some time left and took a walk in Amsterdam. It is a beautiful city. One of my favorites actually. I even found time for a quick look at the exhibition of World Press Photo in the Oude Kerk.
Thursday, June 12. 2008GrenzwertberechnungHeute ist uns ein Naturgesetz aufgefallen: Die geschätzte Restzeit eines Projekts aus Sicht eines Entwicklers konvergiert offenbar mit fortlaufender Projektzeit gegen einen konstanten Wert: 2 Wochen. Wenn man also einen Entwickler nach der Restdauer eines Projekts fragt, bekommt man ab einem bestimmten Zeitpunkt immer die selbe Antwort: 2 Wochen. Auch nach weiteren 2 Wochen sind es noch 2 Wochen. Anders ausgedrückt: "Fertig wirst'e nie" oder à la Hornbach: "Es gibt immer was zu tun" (Yippijaaajaaa-Yippijippi-yeah). Das Projektende muß dann vom Projektmanagement per Definition herbeigeführt werden. Interessanterweise klappt das in der Regel auch. Oder um eine alte Weisheit aus dem Projektmanagement zu zitieren: Projekte zu leiten ist Fleißarbeit, Projekte zu beenden ist Kunst... Wednesday, June 11. 2008Perry Rhodan IndexToday i invented a new measure for my workload: The Perry Rhodan Index (PRI). Currently i am running a PRI of 25, which is all-time-high. What this is? I read this SciFi Series called Perry Rhodan about this guy who landed on the moon in the 70s with man's first space ship. There he met some extraterrestrians and made friends with them. A little later he became immortal due to the fact that he went into a partnership with a SuperIntelligence called ES to save the universe. Now (Episode 2442) he is 3000 years old and has lead man kind to one of the leading forces in the known universe. Anyway: There is a new episode every week (since 1961). And usually, since quite a couple of years, i read these 60-pagers every week. But now they stack unread on my desk at home. The number of unread issues i call my PRI. 25 means that i am half a year back now. I wonder if i will ever be able to catch up again. Maybe in a long holiday someday Tuesday, June 10. 2008vmware-tools on ubuntu 8.04 Hardy
I love virtualisation: Download VMWare Player, download an appliance from http://www.vmware.com/appliances/ , run it and you have a new Linux installation ready. The only problem: How to access the host file system (yes, there were some security issues with that bus since the VMWare image i am using is just for development and i am the only user, i ignore that for a moment). The appliance should come with the VMWare-Tools and then it should be a question of setting in your vmx file: isolation.tools.hgfs.disable = "FALSE" So far, so good. Next, you need to mount the share on the guest fs. If |