Author Archive
-
Make control files

Make control files

To use GNU/Linux’s text pro­cess­ing abil­i­ties for graphic design, I needed to find a way to expand this world of plain text. My approach here­fore is the auto­mated gen­er­a­tion of plain text con­trol files, that serve as input for soft­ware, that extends the world of plain text. Lists are the most sim­ple exam­ple for a...
Bash Fundamentals

Bash Fundamentals

This is a very short and incom­plete intro­duc­tion to the Bourne-Again Shell. On the com­man­d­line most pro­grams fol­low the sim­ple prin­ci­ple of cre­at­ing and mod­i­fy­ing plain text. To make this approach extremly pro­duc­tive the Bash offers some mechanisms. The so-called pipe char­ac­ter (|) acts like a plug to send the out­put of one pro­gram to...
Lilypond

Lilypond

Metapost

Metapost

gnuplot

gnuplot

DOT language

DOT language

Through a post at open­source pub­lish­ing I stum­bled upon this again. 3 fast hacks:

html2ps

 

HTML

HTML

It is pos­si­ble to exam­ine text data with­out con­ver­sion tools. If the data doesn’t look right, you can use a stan­dard text edi­tor to mod­ify it. Spe­cial­ized tools are not required. You don’t need a sep­a­rate edi­tor for each kind of data file. One size fits all.
SVG

SVG

Handy solu­tion to trans­fer com­plete lay­ers from one svg to another. Since inkscape svgs are flat text xml files you can use any ordi­nary word edi­tor to copy/paste data.

Decrease JPG Quality

Ever wanted to save 100 jpg files with decreas­ing quality?   INPUTFILE=test.jpg   COUNT=100 while [ $COUNT -gt 0 ] do OUTPUTFILE=$COUNT.jpg convert -quality ${COUNT}% $INPUTFILE $OUTPUTFILE COUNT=`expr $COUNT - 1` done   exit 0; Made with bash and imagemag­ick. These exam­ples are prob­a­bly super use­less. They per­form tasks that are nor­mally not part of...

Save a jpg file 10000 times

Ever won­dered what hap­pens to the image qual­ity if you save a jpg file 10000 times? Sim­ple exam­ple for the use of automa­tion. Code not tested!   INPUTFILE=test.jpg   COUNT=0 while [ $COUNT -lt 10000 ] do OUTPUTFILE=$COUNT.jpg convert $INPUTFILE $OUTPUTFILE INPUTFILE=$OUTPUTFILE COUNT=`expr $COUNT + 1` done These exam­ples are prob­a­bly super use­less. They per­form...

HTML in a loop

Edit­ing HTML is nor­mally the first time when graphic design­ers learn how to deter­mine visual form or col­ors through plain text. What do you see if you read #FF0000? This is the first step towards a chang­ing per­cep­tion. There­fore HTML will serve as our first exam­ple how to make a sim­ple script do some work...
What *NIX got to do with it

What *NIX got to do with it

Some ideas from this strange col­ored book served as inspi­ra­tions for the stuff on http://www.forkable.eu. The Unix Phi­los­o­phy by Mike Gan­carz ISBN:1–555558-123–4. Copy­right 1995 Butterworth-Heinemann. Copied from here. There: Reprinted with Per­mis­sion of Dig­i­tal Press Small pro­grams are easy to understand. Small pro­grams are easy to maintain. Small pro­grams con­sume fewer sys­tem resources. Small pro­grams are...
put into practise

put into practise

Curi­ous? See some sim­ple starter code (more to come).
Ludic Interfaces for Scrabble Lovers

Ludic Interfaces for Scrabble Lovers

GNU/Linux system utilities are a sort of Lego construction set for word-smiths. Working with a shell [...] is literally a word dance. *