SEITE 3 von 11
1
2
4
5
6
7
8
9
 
Unobstrusive JS

Eine sehr schöne erläuterung mit vielen Beispielen und weiterführenden Links!

Social Bookmark
Kommentieren
Blocking Adblock

In my opinion there are 2 simple solution to people using adblock etc techniques(apart from blocking firefox which is ridiculus).

Social Bookmark
Kommentieren
UTF8 to rtf (php)

my rtf never showed üÜ etc correct(was created by Microsoft word), so here comes the fix! (no help for chinese letters etc)

/**
 * @param $word in utf-8 encoding
 */
function utf82rtf($word){
    //does not work with multibyte
    $word = mb_convert_encoding($word,'ISO-8859-15','UTF-8');

    $out='';
    for($i=0;$i125)$out.="\\u$code\\'".dechex($code);//pre 125 = readable
        else $out.=$letter;
    }
    return $out;
}

Social Bookmark
Kommentieren
ErrorHandler

Aktuelle version meines php errorhandlers auf Google Code hier

Social Bookmark

 
Kommentieren
Lazy Function Definition Pattern

Sehr schöne Methode um andauernde ifs zu umgehen, vorallem für cross-browser Scripte(also alles if IE then bla elseif Opera then...).

Die Idee:
beim ersten Aufruf der Funktion überschreibt sie sich selber mit der richtigen Funktion. Alles klar ? Wenn nicht -> Erklärung

Social Bookmark
Kommentieren
SEITE 3 von 11
1
2
4
5
6
7
8
9