Author Archive

swarm, perform, explore!

grafik2slits

 

Bash substitution

Bash sup­ports a sur­pris­ing num­ber of string manip­u­la­tion oper­a­tions. Unfor­tu­nately, these tools lack a uni­fied focus. Some are a sub­set of para­me­ter sub­sti­tu­tion, and oth­ers fall under the func­tion­al­ity of the UNIX expr com­mand. This results in incon­sis­tent com­mand syn­tax and over­lap of func­tion­al­ity, not to men­tion con­fu­sion. * This is a short expla­na­tion of...

Make pdf files

Two ways to com­bine exist­ing pdf files stored in lists. pdf­pages A sim­ple solu­tion to com­bine mul­ti­ple pdf files is to use LaTeX respec­tively the pdf­pages pack­age. With this code you can lay­out pdf pages on a page accord­ing to some para­me­tres. You need a work­ing LaTeX instal­la­tion, e.g. texlive on debian or ubuntu. You...

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

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

Gen­er­ate a HTML file with ran­dom col­ored table cells. Con­vert to pdf via html2ps. #!/bin/bash   # FFFFFF:000000:FF0000:00FF00:0000FF # COLORS   HTMLFILE=colortable.htm W=10 H=70   echo "<html><body>" > $HTMLFILE echo "<table width=\"100%\" height=\"100%\">" >> $HTMLFILE   ROW=0; while [ $ROW -lt $H ] do echo "<tr>" >> $HTMLFILE CELL=0; while [ $CELL -lt $W ]...
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.