Category Archives: Uncategorized

otf med xetex

$ cp foo.otf /usr/share/fonts/ $ fc-cache -fv $ fc-list $ kpsewhich foo.otf $ otfinfo –features /usr/share/fonts/foo.otf $ vim foo.tex % foo.tex \font\foo=”Foo”:+kern;+liga;+zero \foo abcdefg 1234567890. \bye $ xetex foo.tex $ edpfview foo.pdf

Posted in Uncategorized | Leave a comment

Svenska tecken med Perl modul URI::GoogleChart

#!/usr/bin/perl use strict; use warnings; BEGIN { my $base_module_dir = ( getpwuid($>) )[7] . ‘/perl/’; unshift @INC, map { $base_module_dir . $_ } @INC; } use CGI qw(:standard); use URI::GoogleChart; use encoding ‘utf8′; print header; print start_html(-title=>’Perl modul URI::GoogleChart’); my … Continue reading

Posted in Uncategorized | Leave a comment

TTF fontar och svenska tecken i GD::Graph

#!/usr/bin/perl # “module path” BEGIN { my $base_module_dir = ( getpwuid($>) )[7] . ‘/perl/’; unshift @INC, map { $base_module_dir . $_ } @INC; } use CGI qw/:standard/; use GD::Graph; use GD::Graph::bars; use GD::Graph::colour; use GD::Text; use encoding ‘utf8′; @data = … Continue reading

Posted in Uncategorized | Leave a comment

Prova cgi-utdata som ingångsdata för Lynx

$ foo.cgi “?bar=baz&pi=3.14159″| lynx -stdin

Posted in Uncategorized | Leave a comment

Bra och gratis tyska öppen-böcker

Wie Werde Ich Unix-Guru? Einführung in UNIX, Linux und Co. av Arnold Willemer C von A bis Z: Das umfassende Handbuch av Jürgen Wolf

Posted in Uncategorized | Leave a comment

Förvandla toc.ncx till toc.html

$ xsltproc -o toc.html ncx2html.xsl toc.ncx $ perl -Cio -pi -e ‘s/([^\x00-\x7f])/sprintf(“&#%d;”, ord($1))/ge;’ toc.html <?xml version=”1.0″ encoding=”ISO-8859-1″?> <!– ncx2html: An (incomplete) XML stylesheet to transform NCX to HTML. –> <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” xmlns:ncx=”http://www.daisy.org/z3986/2005/ncx/”> <xsl:output method=”xml” indent=”yes”/> <xsl:template match=”/ncx:ncx”> <html> <body> … Continue reading

Posted in Uncategorized | Leave a comment

Läsa epub-böcker i Lynx

$ unzip foo.epub $ cd OEBPS $ ls -1 *.html | \ xargs perl -Cio -pi -e ‘s/([^\x00-\x7f])/sprintf(“&#%d;”, ord($1))/ge;’ $ lynx file://`pwd`

Posted in Uncategorized | Leave a comment

Cd till .wav rippa och spela i OpenBSD 4.7

$ cdio cdrip $ ls -1 *.wav | xargs aucat -i

Posted in Uncategorized | Leave a comment

Musik för programmering

Jan Johansson : Jazz på svenska, etc. http://www.janjohansson.org/

Posted in Uncategorized | Leave a comment