An interesting article „How to be Popular in High School“ from TSB – The Seduction Bible.
Archiv für April 2008
How to be Popular in High School
April 23, 2008Me envisioning closures in Scheme
April 23, 2008Closure (computer science): an abstraction binding a function to its scope.
Keywords: scope, binding of name to location or value, enclosed variable, mutating existing bindings
(define (factory1a) (let ((myBound 5)) (lambda (x) (set! myBound (+ myBound x)) myBound) ))
(define (factory1b) ((lambda (myBound) (lambda (x) (set! myBound (+ myBound x)) myBound) ) 5) )
(define closure1a (factory1a))
(define closure1b (factory1b))
(define closure2 (factory1a))
(print „comp.lang.functional: Closures are a big deal in a non-pure functional language, because mutable closed-over lexical variables can model an encapsulated mutable state. That’s how Scheme has started.“)
(newline)
(closure1a 0) ; => 5
(closure1b 0) ; => 5
(closure2 0) ; => 5
(closure1a 1) ; => 6
(closure1b 1) ; => 6
(closure2 18) ; => 23
(closure1a 2) ; => 8
(closure1b 2) ; => 8
(closure2 19) ; => 42
(define (factory2) (let ((myBound 0)) (lambda (x) (/ x myBound)) )) ; if evaluated it will always result in a division-by-zero error
(define closuresAreFirstOfAllLazyAndSetBangDoesNotMatter (factory2))
(print „closure is executed“)
(newline)
(closure1a 0) ; => still 8 („myBound“ of factory2 is not the same as of factory1 and its derived closures)
(closure2 0) ; => still 42
(closuresAreFirstOfAllLazyAndSetBangDoesNotMatter 23) ; => division-by-zero error
How to Think Before Speaking
April 23, 2008Ein weiser Artikel zum Thema „How to Think Before Speaking„.
Apache Konfiguration: ssl, webdav, htaccess, Subversion
April 14, 2008SSL-Schutz eines Verzeichnisses: http://wiki.ubuntuusers.de/Apache/modssl
WebDAV:
Authentication (htaccess, PAM, mod_authnz_external, etc.):
- http://de.wikipedia.org/wiki/Htaccess
- http://de.selfhtml.org/servercgi/server/htaccess.htm
- http://blog.innerewut.de/2007/6/26/apache-2-2-authentication-with-mod_authnz_external
Subversion
- http://svnbook.red-bean.com/en/1.1/ch06s04.html
- http://wiki.archlinux.org/index.php/Subversion_Setup
- http://lifehacker.com/software/subversion/hack-attack-how-to-set-up-a-personal-home-subversion-server-188582.php
- http://www.debuntu.org/2006/05/20/54-how-to-subversion-svn-with-apache2-and-dav
Home Server
Klassische Beispiele der Softwarezuverlässigkeit
April 10, 2008Synching Outlook, Google Calendar, Gmail
April 3, 2008for free: WiKis
April 2, 2008Web 2.0 WiKis:
http://www.wikidot.com/
for free: Web 2.0 Office Applications
April 2, 2008Database for Web 2.0 Office Applications:
http://www.o20db.com/
for free: Meetings Scheduler
April 2, 2008Web 2.0 Scheduler for arranging meetings:
http://www.diarised.com/
for free: Time Tracker
April 2, 2008Web 2.0 Time Tracker:
http://www.tiktrac.com/
Kleine wget Kommandos zum runterladen von Uni-Skripten
April 2, 2008# Webpage
wget -e robots=off -N -nd –http-user=<ID> –http-passwd=<PW> -E -k -p <URL>
# Directly linked content files:
wget -e robots=off -N -nd –http-user=<ID> –http-passwd=<PW> -E -r –level=1 -k -A pdf pps -R htm html -np <URL>
# Directly linked mp3s (e.g. the free Top 100 from http://wiki.piratenpartei.de/index.php?title=Piraten_TOP100 )
wget -e robots=off -N -nd -E -r –level=1 -k -A mp3 ogg -R htm
html -H http://wiki.piratenpartei.de/index.php?title=Piraten_TOP100
Contra: Webpage does not locally reference the content files
Alternative:
leechget.net: „File“ » „WebParser“