Archiv für die Kategorie „Entwicklung“

Custom color-schemes in PsPad editor

Montag, 17. Mai 2010

PsPad is a quite famous file editor for Windows. If you’re developing on a netbook or laptop you might want to consider switching to a dark color scheme. This increases the battery lifetime and is an easy action to save energy in general. You can change the color settings for programming languages separately in the Settings menu of PsPad. Click on Highlighter Settings... and choose the desired settings.

You can also save your setings or load pre-made settings from an .INI file.

I have set-up a little subversion repository and uploaded my PsPad color settings if you want to give it a try.
Since I mainly work with CSS, (X)HTML, PHP, XML XSL(T) and plain text files, other languages might not be pretty.

Download

Download my INI file here: PsPad Dark Syntax Highlighting Scheme.

Instructions

1. Download the INI file.
2. Save it to :\Program Files\PsPad editor\Colors
3. Load the setting in the Syntax Highlighter Settings.

Weblication und passwortgeschütze Verzeichnisse

Mittwoch, 5. Mai 2010

Ein Beispiel: Man hat eine CMS-Installation auf die Entwickler und der Kunde Zugriff haben und möchte sicherstellen dass die Seiten nicht von Suchmaschinen-Bots indiziert werden und unerwartet Besucherströme herbeilotsen, die die Seite noch nicht sehen dürfen. In der Regel tut es eine einfache .htaccess-Authentifizierung mit Benutzern und Passwörtern.
Es sei denn: man hat ein Verzeichnis mit Passwortschutz in welchem man die Möglichkeit braucht, HTTP-Requests auszuführen (z.B. wenn man mit PHP’s Output Buffering arbeitet, Gegenargumente mal Beiseite gelassen).

Um Weblication in einem geschütztem Verzeichnis zu betreiben benötigt man also zunächst einen regulären .htaccess-Verzeichnisschutz. Die .htaccess könnte zB. so aussehen:

AuthUserFile /var/www/html/.htpasswd
AuthName "Login"
AuthType Basic
require valid-user

(in der .htpasswd hat man entsprechend Benutzer und kodierte Passwörter angelegt)

Nun wird die Benutzerauthentifizierung mit einer “deny all, allow from”-Anweisung gekapselt, die der lokalen IP (und/oder dem Domainnamen) des Servers freie Bahn läßt. In der Regel dürfte der Eintrag localhost oder die IP (127.0.0.1) funktionieren (, was aber bei spezielleren Konfigurationen auch abweichen kann). Die letzte Zeile satisfy any zeigt an, dass entweder die IP/Domain oder die Authentifizierung erfüllt sein muss.

deny from all
allow from 127.0.0.1
allow from .contactsheet.de
AuthUserFile /var/www/html/.htpasswd
AuthName "Login"
AuthType Basic
require valid-user
satisfy any

jQuery is fun :)

Mittwoch, 30. September 2009

Sliding Header Animation with jQuery There are probably a dozen pre-made image gallery plugins for jQuery that do the same thing, or could be hacked to do so… but actually I wanted to see how hard it is to code a scrolling header animation similar to the one i found on www.freshtilledsoil.com.
So here’s my own approach for the same thing: See the Demo here. Instead of writing proper plugins for jQuery, I actually got used to writing global Javascript functions. Although these may or may not use jQuery functionality themselves and mostly do project-specific stuff - it’s not really reusable in the next project. So hacking together a jQuery plugin would be mandatory. That said, this is the result of that practice. Easy.

So what this does is: First, it requires you to set up a list with images and another div with links (the controls). have a wrapper div surround this. When clicking on a ‘pager’ link, it will then slide the whole list in its parent div.

Vorbildlich flexibel: Weblication CMS

Donnerstag, 24. September 2009

Nachdem ich in letzter Zeit etwas weniger mit Weblication CMS Enterprise 4.0 gemacht habe, ist es jetzt geradezu ein Ding der Freude mal wieder ein Design damit umzusetzen. Gerade im Vergleich zu anderen Redaktionssystemen braucht sich das Konzept nicht verstecken: Weblication CMS zerlegt die inhaltlichen Elemente einer typischen Webseite in einzelne Informationsblöcke, wobei alle Daten im XML-Format vorliegen. Über eine Master-XML Datei teilt man dem CMS mit aus welchen Bestandteilen so ein Informationsblock besteht und über ein XSL-Stylesheet hinterlegt man nun die gewünschten Transformierungen die das finale HTML-Markup generieren. Eine simple und ziemlich geniale Idee. Von Standardtemplates, und einem nicht sonderlich hübschem Adminbereich darf man sich nicht abschrecken lassen, denn die Stärken spielt Weblication CMS insbesondere in dieser enorm flexiblen XML-XSL Basis aus.

Wer speziellere Anpassungen benötigt wird um das Weblication Kompendium meines Kollegen Ulf Mayer kaum herum kommen das er unter Weblication Tipps betreibt.

Herr S. vom Dorff und das Internet

Freitag, 26. Juni 2009