Ich habe mich eben von einem Kohlrabi mit Hohlraum überraschen lassen:
Wenn das mal keine Absicht ist… in einigen Jahren haben bestimmt alle Kohlrabis noch viel größere Hohlräume. ^^
Archive for the Category » Uncategorized «
wanted to install critterding, but there doesnt seem to be an ubuntu package.
had to install some packages:
sudo apt-get install autoconf libtool g++ libfreetype6-dev libsdl-dev
downloaded sources, went to source directory:
touch aclocal.m4 # necessary?
autoreconf -fi
./configure
make
now execute:
src/critterding
yay!
Dadumdidum… ECMAScript5 (“JavaScript”) gefällt mir. Und weil’s so schön ist, implementier ich schon mal die neuen Arraymethoden… bspw.:
if (typeof Array.prototype.indexOf === 'undefined') {
/**
* 15.4.4.14
* NOTE the second parameter fromIndex is not explicitly stated so that the
* method's length property becomes 1
*
* @param searchElement array element to be searched for
* @param fromIndex (optional, integer)
*/
Array.prototype.indexOf = function (f) {
var l = this.length,
i = arguments[1] || 0;
i += (i < 0) ? l : 0;
for (i = Math.max(i, 0); i < l; i += 1) {
if (this[i] === f) {
return i;
}
}
return -1;
};
}
…außerdem gefällt mir dieses Syntax-Highlighting hier :D
to be extended…
I’m reading a book, and it’s, well, a plain text file. The lack of structure bothers me.
I’m using Kate, and Kate offers a simple way of adding syntax highlighting.
So I wrote a very small highlighting definition for Kate, which allows me to view quotes in a slightly different color (provided that actual quotation marks are used, not apostrophes). Yes, it does nested quotes.
I may improve it sometime, but for now I’m happy.
Usage:
copy the file to ~/.kde/share/apps/katepart/syntax/
In Kate, select Extras->Highlighting->Other->eBook txt
RL-Dialog vor fünfzehn Minuten…
Moritz: wasn das fürn Soundtrack?
Moritz: Operation Flashpoint 2?
Moritz: Gothic3?
Jakob: Bilder einer Ausstellung...
what keeps you alive
makes you get up
each morning
but the hope
for things
that wont
ever be
true
?
so
what
should
i do instead
give up hope
and be content
with whatever i have
no i say dont be cowed
fight for there is life in it.


