Archiv für April 2008

How to be Popular in High School

April 23, 2008

An interesting article „How to be Popular in High School“ from TSB – The Seduction Bible.

Me envisioning closures in Scheme

April 23, 2008

Closure (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, 2008

Ein weiser Artikel zum Thema „How to Think Before Speaking„.

Apache Konfiguration: ssl, webdav, htaccess, Subversion

April 14, 2008

Klassische Beispiele der Softwarezuverlässigkeit

April 10, 2008

Subversion (SVN) unter Windows per Apache und WebDAV einrichten

April 6, 2008

Synching Outlook, Google Calendar, Gmail

April 3, 2008

for free: WiKis

April 2, 2008

Web 2.0 WiKis:
http://www.wikidot.com/

for free: Web 2.0 Office Applications

April 2, 2008

Database for Web 2.0 Office Applications:
http://www.o20db.com/

for free: Meetings Scheduler

April 2, 2008

Web 2.0 Scheduler for arranging meetings:
http://www.diarised.com/

for free: Time Tracker

April 2, 2008

Web 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“