Programming
Delphi XE: TTimeZone is not threadsafe
This is only a very short post, but perhaps it can help some people out there :) When you want to use the abstract class TTimeZone respectively its derived class TLocalTimeZone then be aware of that it is NOT threadsafe – the two mentioned classes are defined in the unit DateUtils since Delphi XE and are really helpful.
Enumerations as class type in a generic class/record
Last night I had a really strange compiler error when I tried to translate my new array record. You have to know that I have rewritten the complete record and added generic support to it. Here is a lil’ bit of the code which you need to unterstand why I got this error.
Update: Editor Theme for Delphi IDE (Version 7-XE2)
Some days ago Embarcadero published the new version of the Delphi IDE, called XE2. Rolf Warnecke has already ported the theme to this version and here it is :)
Today I recieved the new version of the my favorite IDE called Delphi XE. Some time ago I created a kind of theme for the its editor so it looks a lil’ bit nicer (for me ;) ). Now I updated the theme so it supports the new version too. You can find my old (german) post below.
How to test web applications without having all mobile devices?
Last week I worked on my jQuery plugin apOverlay which will be a part for my apWindow plugin hat gets published in the next two or three weeks. In all modern browsers there are no problems at all – ha, that’s wrong! This is only the half the truth because this statement counts only in normal browser, not completely on mobile devices and its default browsers. But how to test if the implementation is correct? No one wants to buy each phone, PDA, tablet… Well, there is the way to look for simulators but that’s not so easy sometimes :)
RTTI in Delphi 2010, nice but a little bit too slow
First of all RTTI is a very nice feature I think. You can do a lot of funny things especially when you combine this technique with Generics. But there is a problem I’m not very glad about: the speed is not that good, so I had to change some things in my O/R mapping class. I do not want to explain what I’m working on because my intention of this post is to write down some words about my experiences with this RTTI feature and the speed.
Besucherzähler UserCounter auf Basis des pCounter für Yii
Ich hab schon auf einigen Seiten einen Besucherzähler verwendet, der sehr einfach gehalten ist. Viele andere sind (mir) zu komplex und bieten mehr als man will, oder werde gar auf anderen Seiten gehostet, wie z.B. Google Analytics. Mir ist durchaus klar, dass das gerade erwähnte Beispiel eine eierlegende Wollmilchsau ist und man fast unendlich Möglichkeiten hat, aber es muss beim Seitenaufbau dennoch Code von einer anderen Seiten geladen werden. Bei externen Anbietern stellt sich zudem allgemein immer auch die Frage: wie lange wird dieser Service noch angeboten? Was passiert bei Updates? Was passiert, wenn dieser eines Tages mal abgeschaltet werden sollte?
