Archive for the ‘Programming’ Category

Stilblüten

if (true === ($this->_itemid > 0)) if (true === ($this->_itemid > 0))

Git vs. Mercurial

After using CVS and SVN for years now, I finally stumbled over distributed version control systems (DVCS). Beside the commercial BitKeeper there are various Open Source projects around. The most famous is probably GIT which was initially developed by Linus Torvalds and is now maintained by Junio C. Hamano. An other approach is Mercurial which [...]

HTML_Template_IT – Generation 2

Due to some requests, I’m going to develop a PHP5 version if HTML_Template_IT. Therefore I need your feedback. Drop me a few lines (dsp AT php DOT net) what do you like about HTML_Template_IT, what you dislike. And for sure, write me your ideas about the upcoming version. What do you want to see in [...]

Welcome on board Thorsten Rinne

Thorsten Rinne, developer of phpMyFAQ, is now part a developer of HTML_Template_IT. Thorsten joined me to prepare a new PHP5 Strict compatible version of IT[X]. I’m looking forward to work with him and start preparing a slightly modified API and requesting for comments, hopefully this month. Thorsten Rinne, developer of phpMyFAQ, is now part a [...]

100,000 Downloads

Eight Months after releasing version 1.2.1 of HTML_Template_IT we finally reached the 100 000 downloads. With approx. 12 000 downloads per month HTML_Template_IT is by far the most popular template engine from the PHP Extension and Application Repository. It’s just rock solid, fast and simple. A new version will be released in June 2007. Eight [...]

Emacs, UTF-8 and German Umlaute

I use Ubuntu 7.04 Feisty Fawn and emacs-nox 21.4.1. As the GNOME environment uses UTF-8 but emacs doesn’t recognize it, I couldn’t insert german umlaute du to the emacs keyboard-coding-system. To solve this problem I added the following lisp code to my ~/.emacs file. It figures out if the language environment is set to UTF-8 [...]

Random Stuff III

One of my favorite hobbies might be writing stuff using random numbers (well at least what programmers call a random number, it’s not 100% random). So I can add some additional random generated images: . At the moment it requires a lot of calculating, but it’s just a concept, nothing special. The script spends most [...]

iTunes Remote Control

I was looking for an iTunes Remote Control to control my iTunes thats running on my Mac from my Linux desktop. As I don’t find a nice solution on sourceforge.org (In fact there are several projects target on that issue, but no release and often there was just an initial commit) I wrote a simple [...]

About long, int and the php unpack function – or “where is the sign”? [UPDATED]

UPDATE: Thanks to Ilia for reviewing and commiting the patch. I recently noticed bug #38770 from the php bugtracker. It describes that pack behaves different on different platforms. The problem occures due to a byte-wise convert from int to long (C-Language). UPDATE: Thanks to Ilia for reviewing and commiting the patch. I recently noticed bug [...]

.NET Attribute und Reflection

.NET bietet einen Mechanismus an Assembly-, Klassen-, Methoden-, Felder- oder Propertiesdefinitionen Metadaten anzuhängen – sogenannten Attribute. Wir sehen uns nun an, wie man eigene Attribute definiert und sie mittel Reflection wieder ausliest. .NET bietet einen Mechanismus an Assembly-, Klassen-, Methoden-, Felder- oder Propertiesdefinitionen Metadaten anzuhängen – sogenannten Attribute. Wir sehen uns nun an, wie man [...]