Tuesday, 22. February 2005 Week 8
A month ago or so, someone spammed my Wiki with asian links. This overwrote all my data because PhikiWiki
doesn't have a backup-mechanism or a versioning system. Since i had a
backup of the webserver, i could restore the Wiki. But i didn't want to
restore manually the backup via FTP each time someone overwrites my
Data.
So i built a versioning system based on rcs
. I've searched the write and read functions in the code and added just an co
before the read function and a ci
before the write function.
Now each time someone changes a document, it's stored as a new
version of the document. The different versions are made accesible by
the r=
GET-parameter (example: version 1.38 and 1.50 of FrontPage).
If now someone fills my Wiki with spam, i can just load the last good
version and store it as the new version. No need to replay a backup via
FTP.
The syntax of PhikiWiki doesn't have enough features for my needs, so i decided to use Markdown instead. I just removed all the formatting stuff of phiki and added a simple Markdown($txt);
call.
Wie immer in den Ferien bastle ich ein bisschen an meinem Weblog rum.
Dem allgemeinen Trend folgend, werden hier nun auch Gravatare unterstützt (Das sind die kleinen Bildchen, welche anhand der E-Mail Adresse angezeigt werden. Beispiel). Wer noch keinen hat, einfach bei gravatar.com die E-Mail Adresse registrieren, Bild hinaufladen fertig :-)
Seit Anfang dieses Jahres gibt es hier nebst deutschen und französischen Inhalten auch noch englische Beiträge. Bei den Einstellungen, kann man sich eine beliebige Kombination zusammenmixen.
Das Admininterface habe ich mit Hilfe von xmlHTTPRequest um einen JavaScript TrackBack
Client erweitert.
Leider erlaubt Mozilla keine xmlHTTPRequests auf eine
andere als die eigene Domain, was die Nutzung sehr einschränkt. Aber
vielleicht folgt Mozilla in Zukunft dem Beispiel von Safari und erlaubt
GET-Requests auf beliebige Domains.
Friday, 18. February 2005 Week 7
Hier je me suis levé à 5.30h après 5 heures de sommeil pour prendre
le train de 6.43 en direction Renens. Avec le TSOL je suis arrivé à
l'EPFL pour faire cette merde d'éxamen informatique théorique III.
À midi j'ai mangé avec mes copains et puis on est allé à Sat: Pichet. Pichet. Pichet. Pichet. Pichet. Pichet. Pichet.
Ensuite j'ai dîné chez un copain avant d'aller au Planète bleue ou on a
continue la fête de fin des éxamens avec pas mal de Vodka.
Après minuit on est allé au Jaggers. Vers 4 heures on est sortie du Jaggers et ceux qui habitent en ville se sont couchés.
Mais mois et un copain qui n'habite pas en ville, nous sommes marchés à Sat car il n'y a pas de TSOL à cette heure.
Vers 5 heures on y est arrivé. Heureusement Sat était ouvert toute la nuit.
Puis je suis retourné à Vufflens-la-Ville avec le TSOL et le train après 7 heures.
À 7.30h je me suis enfin couché, après 26 heures sans sommeil dont 19 de la fête.
Sunday, 9. January 2005 Week 1
Die ersten 5 Dinge, die ich tue, wenn ich mich an den Computer setze:
- Einloggen
- startx
- Sylpheed-Claws, Firefox und XMMS starten
- Warten bis die E-Mails abgerufen sind
- E-Mails lesen
Die ersten 5 Websites, die ich besuche:
- x-log
- symlink.ch
- heise.de
- der Rest hängt davon ab, was ich eigentlich am Computer machen wollte
- …
Via cyrus.ruhr.de, Pocket-Blog, LostFocus, Late Night Blog.
Saturday, 8. January 2005 Week 1
I’ve found some color resources & utilities on del.icio.us.
These are always useful, especially since i’m not the person who can
just throw together three colors and automatically the result looks
good.
Friday, 7. January 2005 Week 1
Gregory McGarry has made a benchmark comparison between NetBSD 2.0 and FreeBSD 5.3.
(via mindtrap::weblog)
The main differences are that NetBSD scales O(1) on forking new
processes while FreeBSD scales O(n). For memory mapping and socket
creation both scale O(1) but NetBSD is twice as fast as FreeBSD
But for binding addresses to sockets, FreeBSD scales O(1) while
NetBSD scales O(n) but is twice as fast for a small number of bound
sockets. Also for POSIX thread creation FreeBSD scales O(1) while
NetBSD scales something like O(n) and is twice as fast for a small
number of threads.
This paper has presented a suite of benchmarks and results for comparing the performance of NetBSD 2.0 and FreeBSD 5.3 in the areas of core operating system functionality, network scalability and thread performance.
The results clearly indicate that recent architectural decisions in the NetBSD operating system have closed the performance gap between NetBSD and FreeBSD. In fact, NetBSD has surpassed FreeBSD in performance in the areas investigated in this paper. Significant performance improvements are obviously visible in the thread implementation.
Thursday, 6. January 2005 Week 1
"Get away from me!
Take heed to thyself and see my face no more!
for in the day Thou see my face
Thou shalt die!"
– Exodus 10:28
A constellation of divine architecture built on Earth
A holy harbour – Orion
Nautical ascension to the firmament
Ship-shaped barrows open my heart to the wisdom of this land
Sailing with the Serpent Chimera of a fiendish sandman
The Unicorn arrives with the westwind to dream His funeral
"Thou art born for Horus dwells in Thee"
Slumbering with the ebb and the flow of this foaming tomb
"Thou art born for Seteh dwells in Thee"
Reveal your face to me and guide me through the Stygian fields
Enthral my soul to Sepedet’s beams to serve Your will
Sailing on the distant seas from darkness to deliverance
Tales like the ocean written to the Draco’s glance
Ruling with the scythe of death you tear our philosophies apart
An ancient starwalk to merge into the stars
"Open thy veins for my venom
Kiss the cobras with thy twisted tongue
So shalt thou join the empyrean circus
Where beggars mourn and seraphs dance
In this twilight cathedral
Shall I wed thee,
O Bride of the Netherworld"
Sailing on the distant seas...
Join my soul the Hunter in the sky
Angeregt durch Gordons Smarty Posting gibts es hier nun auch einen Eintrag über Template Systeme und ein paar interessante Links.
Angefangen hat das mit den Templates, als ich vor 2 Jahren die Website für meine Klasse des Gymnasiums gemacht habe. Damals benutze ich die P.E.T. Template-Engine von Andreas Demmer.
In der damals top-aktuellen Version 1.5 musste man Template-Tags in einer etwas unhandlichen Form benutzen: <!-- {tag} -->
Als ich vor einem Jahr mein Weblog komplett neu programmierte,
wollte ich auch ein Template-System benutzen, aber ohne so umständliche
Tags.
Inspiriert von diesem Artikel
habe ich eine PHP-Klasse programmiert, welche eigentlich nichts anderes
macht, als ein paar Variablen zu speichern und eine Template-Datei zu
inkludieren. Die Template-Tags sind auf <?=$tag;?> geschrumpft
und man kann die ganze Vielfalt von PHP nutzen ohne die Template-Datei
speziell zu parsen.
Im letzten Sommer habe ich einen Ferienjob gesucht und mich auf eine Ausschreibung des KIS gemeldet. Als Anforderung wurden unter anderem Smarty Kenntnisse genannt, und so habe ich mir einen Abend Zeit genommen und mich in Smarty hineingearbeitet.
Früher habe ich mich etwas vor Smarty gedrückt, weil es mir etwas schwerfällig schien mit Template-Kompilierung, Caching etc.
Doch
seit ich mich intensiv damit beschäftige und auch entdecken durfte,
dass die kompilierten Templates eigentlich genau meinem
"include"-Template System entsprechen, habe ich meine Meinung geändert.
Nun setzte ich Smarty auch bei eigenen Projekten ein.
Hier noch ein paar gesammelte Links zu Smarty:
Wednesday, 5. January 2005 Week 1
Motivated by Joel’s Advice for Computer Science College Students i beginn now to blog also in english. The target is to improve my written english skills.
I hope that this experiment doesn’t result like the french one, which
is dying poorly since i daily speak french and don’t write in it
anymore.
Sunday, 26. December 2004 Week 52
Seit heute Abend bekomme ich von folgenden Hosts etwas 'spezielle' HTTP Anfragen, welche hier zum Glück wirkungslos sind:
- mail.shanghaiguide.com.cn
- aster.propagation.net
- cp02.virtuabyte.com
- b3.ovh.net
- merlin2.provinz.bz.it
- www.silverchair.nu
- chippy.takeoverhosting.com
- web1.o1.com
- cpanel5.fuitadnet.com
- cgi03.plus.net
- 18.67-18-148.reverse.theplanet.com
- 66.199.234.42
- sproggit.fluent.ltd.uk
- server1.progressiveinsite.com
- pingouin.ie2.u-psud.fr
- 194.42.45.5
- ...
Dazu sunflyer.ch:
Beeindruckend ist die Anzahl von Opfern, die irgendwie sowas in ihren Sourcen haben müssen.
<?php
foreach ($_GET as $_get) {
exec ($_get);
}
?>