Web Publishing, Programming, Algorithms, Languages, C, C#, PHP, SEO, CMS, Webserver, Miscellaneous, Gaming, Operating Systems, Security, Privacy

WOT - Web Of Trust Review

Today I decided to write a short review about my experience with a tool called Web Of Trust (WOT). People who install WOT get additional security relevant information about the websites they surf. How this works and why it is an additional risk is described in this article.

Securing the Eee PC netbook

I'm writing this article on a netbook ASUS 1000HE. Actually I'm surfing a lot from the sofa and enjoy this tiny computer a lot. As it accompanies me on all trips whilst containing sensitive information like e-mails and certain account credentials, the first thing I did with it was, securing its hard disk.

Reducing traffic and bandwidth requirements using GZIP and PHP

Today I eventually started optimizing the performance (thereby reducing server load a bit). It appeared some pages of my larger websites have grown to round about 300 kb causing some latency for lower bandwidth visitor. Having a quite good connection myself, I didn't care about that much in the past. But that's ab pity, because it is very simple to add compression to pure PHP-generated content.

SEO for Bing

About Bing

Bing is the latest remake of Microsoft's search engine. Since letdown live.com was closed, people start talking about the new search engine.

Using rel="nofollow" to optimize internal link structure

Google invented a tag called "nofollow" to give webmasters better controll about how a site spreads its link power. In this article I'll describe in detail how this tag works and how you can benefit from it. It contains some secret information about how Google handles links and Nofollow.

Google break-down

This seems to be a very special day. I don't remember if this ever happened to me, but this morning several Google services seem to be broken down for some reason. I'm unable to connect to Adsense or Adwords for about 1 1/2 hour now. The Google search engine and Google Analytics still work, so it's no general Google infrastructure break down.

Simple wrapper class for PEAR Date

Handling date and time in PHP makes most coders nervous. There are a bunch of functions playing arround with system time and timezone features, using UNIX timestamps and therefore are very limitted in application. At least I know a lot of guys born before 1970. Native Unix timestamps may be of great use for system level stuff like logging information or handling object lifetime, but not for real world scenarios: handling user age or historical events is impossible with 32 bit UNIX timestamps.

Why IE7 sucks and FireFox 3 doesn't...

Yesterday I had a really shocking experience. While tweaking the layout and design of my yet largest project, my network connection seemed to become broken and some tools like PhpED and IE7 (latest Internet Explorer of Microsoft) where unable to connect properly. Well, the culprit was not PhpED at all. Maybe it just hung with IE7 because of its IE7 Debug Plugin or something.

Vertical-Align text inside a DIV container with CSS

Text-Align, the simple case

Aligning text in a DIV container ist very simple done by the following code:

  <div style="width:100%; text-align:center;">Centered Text</div>

Vertical-Align - the complicated case

Vertical alignment of text in a DIV is a little bit more complicated, because the usual way used for table cells doesn't work with DIVs.

The code below doesn't work:

  <div style="height:3em; vertical-align:middle;">
    Not centered vertically!
  </div>

goto statement in PHP

Goto or not to go?

Goto is a very controversial programming statement. When discussing goto, some programmers talk about "spaghetti code" and think of BASIC, others answer with "performance" and think of C.

I'm one of the latter guys. My attitude to coding is, the coder should be able to decide what's the best way (in any means) to achieve the development goals.

Okay, there are only few good reasons to use the goto statement. Actually I can think of only one good reason: leaving a function at its end and place a generic cleanup there ("single point of exit").

Example: