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....
No matter if they say that MongoDB got its name from "humongous", for me it's the planet Mongo from Flash Gordon.
It was time again to change the blogging software. Sorry if the newsfeed is showing old messages as new.
Found in Textpattern: if (@ini_get('register_globals')) foreach ( $_REQUEST as $name => $value ) unset($$name);
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.
It's an OS extension that got recently updated to support over 10 year old standards.
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....
$ grep -r 'Stefan Scholl' /usr/lib/ruby/1.8 | wc -l 3
$ 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?
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.