99 Bottles of Beer in Factor

99 Bottles of Beer in Factor. A naïve implementation from someone who is just beginning to (re)learn the language and doesn't want to (nor can) show off the flashy features, like so many other examples of 99 Bottles of Beer. USING: combinators io kernel make math math.parser sequences ; IN: 99bottles : bottles ( n -- str ) { { 0 [ "no more bottles" ] } { 1 [ "1 bottle" ] } [ number>string " bottles" append ] } case ; : verse-0 ( n -- ) drop "No more bottles of beer on the wall, no more bottles of beer....

2009-11-08 02:38:00Z · Last edited: 2009-11-08 02:49:34Z

Flash Gordon and NoSQL

No matter if they say that MongoDB got its name from "humongous", for me it's the planet Mongo from Flash Gordon.

2009-08-28 23:05:00Z · Last edited: 2009-08-28 23:10:34Z

Other blogging software, again

It was time again to change the blogging software. Sorry if the newsfeed is showing old messages as new.

2009-08-27 21:37:00Z · Last edited: 2009-08-27 21:39:51Z

Nice Anti Register Globals Code

Found in Textpattern: if (@ini_get('register_globals')) foreach ( $_REQUEST as $name => $value ) unset($$name);

2009-06-06 16:45:00Z · Last edited: 2009-08-27 21:20:14Z

Benchmarks are merciless

JavaScript vs. PythonPHP vs. Python A number 1/4 for A vs. B means that B is 4 times slower than A. The Computer Language Benchmarks Game is more a community benchmark than a programming language benchmark. You get some ballpark figures that confirm what you already know beforehand: C++ is faster than Ruby :-) But it's still depressing to see that a current implementation of JavaScript is faster than Python.

2009-05-28 14:18:00Z · Last edited: 2009-08-27 20:04:12Z

IE is not a current browser!

It's an OS extension that got recently updated to support over 10 year old standards.

2009-04-10 15:39:00Z · Last edited: 2009-08-27 20:04:12Z

Bookmarklet for HQ Videos on YouTube

YouTube sometimes gives you an HQ button to switch to a version with higher quality. But not all videos have this button. You can add "&fmt=18" to the URL and most of the time the video is better than the default one. Or you can bookmark (or better drag and drop it on the bookmark toolbar) the following bookmarklet: YouTube-HQ This was done quick and dirty and may stop working tomorrow....

2009-04-02 14:25:00Z · Last edited: 2009-08-27 20:04:12Z

Yes, that's me

$ grep -r 'Stefan Scholl' /usr/lib/ruby/1.8 | wc -l 3

2009-03-01 00:28:00Z · Last edited: 2009-08-27 20:04:12Z

CodeIgniter likes the eval()

$ grep -r 'eval(' codeigniter/ | wc -l 20 Version 1.7.1. From the changelog: Fixed an arbitrary script execution security flaw Well, who would have expected that?

2009-02-28 00:20:00Z · Last edited: 2009-08-27 20:04:12Z

Old Perl Code

Uh, oh. Just found some old Perl code of mine. It's from 1998-05-31: [...] return undef unless defined($findit); return 1; } Well, in my defense: It's Perl. ;-) OK, this can't excuse it. But don't be afraid: The program isn't used anymore.

2009-02-09 12:50:00Z · Last edited: 2009-08-27 20:04:12Z