--- /dev/null
+#! /usr/bin/perl
+#
+# $Id$
+# Resume page Perl template.
+# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; exactly version 2 of June 1991 is required
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+package resume::ResumeJanKratochvil;
+require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
+use vars qw($VERSION $CVS_ID);
+$VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
+$CVS_ID=q$Id$;
+use strict;
+use warnings;
+
+BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
+use My::Web;
+require CGI;
+require Crypt::Rot13;
+Wrequire 'My::Project';
+
+
+my $W=My::Web->init(
+ "__PACKAGE__"=>__PACKAGE__,
+ "title"=>"Resume",
+ "section"=>"Resume",
+ "heading"=>0,
+ "footer"=>0,
+ "head_css"=>"
+td { vertical-align: top; }
+table { border-collapse: collapse; border-style: solid; border-width: 1px; margin: 8px; }
+A[href] { text-decoration: inherit; /* revoke underline */ }
+A[href].project { text-decoration: underline; }
+.platform { font-style: italic; white-space: nowrap; }
+table.referees td.com { text-align: center; }
+.techs { white-space: nowrap; }
+",
+ "args_check"=>{
+ "referees"=>'', # Do not bother with '^(?:(?i)referees)?$'
+ },
+ );
+My::Web->heading();
+
+
+my %item=( My::Project::item_hash_read() );
+my @itemnames=sort {
+ ($item{$b}{"priority"} <=> $item{$a}{"priority"})
+ or (lc($item{$a}->{"name"}) cmp lc($item{$b}->{"name"}));
+ } keys(%item);
+
+my $projectref=sub
+{
+my($name)=@_;
+
+ return a_href "/project/$name/",$item{$name}{"name"},"attr"=>'class="project"';
+};
+
+my $project=sub
+{
+my($name,%args)=@_;
+
+ return &{$projectref}($name).($args{"bare"} ? '' : ': '.$item{$name}{"summary"});
+};
+
+my $free_projects=sub (@)
+{
+my(@platforms)=@_;
+
+ my $r="";
+ $r.=join ", ",map({ my $platform=$_;
+ map({ ($item{$_}{"sponsorship"} || $item{$_}{"trivia"}
+ || $item{$_}{"platform"} ne $platform ? () : (&{$projectref}($_))); } @itemnames);
+ } @platforms);
+ return $r;
+};
+
+
+my $reference=sub ($$)
+{
+my($mail,$fullname)=@_;
+
+ my $r="";
+ $r.='<td>';
+ $r.=$fullname;
+ if (lc($W->{"args"}{"referees"}) eq "referees") {
+ my $rot13=Crypt::Rot13->new();
+ $rot13->charge($mail);
+ $mail=($rot13->rot13())[0];
+ $r.=' <'.a_href("mailto:$mail",$mail).'>';
+ }
+ $r.='</td>';
+ return $r;
+};
+
+sub techs ($)
+{
+my($arg)=@_;
+
+ return '<span class="techs">('.$arg.')</span>';
+}
+
+
+my $uClinux=a_href 'http://www.uclinux.com/','uClinux';
+my $mailme=(map({ a_href("mailto:$_",$_); } 'job@jankratochvil.net'))[0];
+my $now=(localtime())[5]+1900;
+
+print <<"HERE";
+<table width="100%" style="border-style: none;"><tr><td align="center"><table>
+<tr><td rowspan="9" style="padding: 10px; vertical-align: middle;">
+ @{[ img "/resume/Resume-JanKratochvil","face" ]}</td>
+ <td class="tab-head">Name </td><td>Jan Kratochvil</td></tr>
+<tr><td class="tab-head">English </td><td>technical: fluent, general: communicable</td></tr>
+<tr><td class="tab-head">Born </td><td>1979</td></tr>
+<tr><td class="tab-head">Status </td><td>single</td></tr>
+<tr><td class="tab-head">Licenses</td><td>motorcycle, car</td></tr>
+<tr><td class="tab-head">eMail </td><td>$mailme</td></tr>
+<tr><td class="tab-head">WWW </td><td>@{[ a_href('http://www.jankratochvil.net/') ]}</td></tr>
+<tr><td class="tab-head">Resume </td><td>@{[ a_href('http://www.jankratochvil.net/resume/') ]}</td></tr>
+<tr><td class="tab-head">OpenPGP </td><td style="font-family: monospace;">@{[ a_href '/pgp-JanKratochvil.txt',''
+ .'pub 1024D/44FC7632 2002-10-07 Jan Kratochvil <pgp-44FC7632@jankratochvil.net><br />'
+ .'sub 2048g/D9F5F44B 2002-10-07 [expires 2004-10-06]' ]}</span></td></tr>
+</table></td></tr></table>
+
+@{[ vskip "2ex" ]}
+
+<table>
+<tr><td class="tab-head">Platforms </td><td>GNU/Linux/i386/UNIX/FreeBSD, W32 kernel, Amiga/680x0, MS-DOS,
+ ZX Spectrum, handheld PC-E500S</td></tr>
+<tr><td class="tab-head">Major Areas </td><td>mobile technologies, filesystems, embedded devices</td></tr>
+<tr><td class="tab-head">Languages </td><td>C (Gnome/GCC), Perl, bash/awk/sed...,
+ Java, C++, Pascal, Basic, REXX, S-Lang, Foxplus, Prolog</td></tr>
+<tr><td class="tab-head">Tools/Metalanguages</td>
+ <td>autoconf, automake, libtool, m4, CVS, gettext, bison, flex, ld script,
+ gdb script, Maple V</td></tr>
+<tr><td class="tab-head">Assemblers </td><td>i386, Motorola 680x0, Zilog Z80, Intel 8051, MIPS R2/3000,
+ (Hitachi SH-8)</td></tr>
+<tr><td class="tab-head">WWW-Related </td><td>(X)HTML, CSS, PHP, SQL (PostgreSQL, MySQL), JavaScript, CGI</td></tr>
+<tr><td class="tab-head">Documentation</td><td>plainTeX, LaTeX, DocBook, DocBook Lite, XML/NS/Schema, nroff, pod</td></tr>
+<tr><td class="tab-head">Libraries </td><td>Gnome/GTK+/GLib, POSIX/BSD/SysV/threads/sockets, X11, OpenGL, NCurses,
+ S-Lang, GnomeVFS, libxml, SVGALib, NIS, Qt,...</td></tr>
+<tr><td class="tab-head">RPC </td><td>CORBA/ORBit, SOAP, Sun RPC</td></tr>
+<tr><td class="tab-head">Protocols </td><td>GSM SMS/PDU/Nokia Smart Messaging/EMS/MMS/SMIL/WAP/WSP/AMR/ETSI stds/3GPP stds,
+ IPv4, HTTP, SMTP/RFC822/MIME, FTP, SSH, DHCP, POP3, NFSv2, PPP/LCP/IPCP,...</td></tr>
+<tr><td class="tab-head">Filesystems </td><td>ext2, FAT, AmigaFFS, ISO-9660</td></tr>
+<caption>Each technology involved in at least one of my past projects.</caption>
+</table>
+
+@{[ vskip "2ex" ]}
+
+<table>
+<tr><td>1984-1991</td><td class="platform">Platform:</td><td>Sinclair ZX Spectrum: Basic, Zilog Z80 machine code</td></tr>
+<tr><td>1992-1997</td><td class="platform">Platform:</td><td>Amiga: Motorola 680x0 assembler, C, REXX</td></tr>
+<tr><td> </td><td class="platform">Projects:</td><td>@{[ &{$free_projects}("amiga") ]}</td></tr>
+<tr><td>1993-1997</td><td class="platform">Platform:</td><td>PC/MS-DOS: i386 assembler, C, Pascal, OpenGL/Mesa, Foxplus</td></tr>
+<tr><td> </td><td class="platform">Unlisted Projects:</td><td>@{[ &{$free_projects}("dos") ]}</td></tr>
+<tr><td>1993 </td><td class="com">@{[ a_href('http://www.japhila.cz/index_en.htm','Japhila') ]}</td>
+ <td>StampMan: Database application @{[ techs 'MS-DOS: Pascal, plainTeX' ]}</td></tr>
+<tr><td>1993-$now</td><td class="platform">Platform:</td><td>PC/GNU/Linux:
+ C, Perl, bash/awk/sed..., Java, C++, ...</td></tr>
+<tr><td> </td><td class="platform">Unlisted Projects:</td><td>@{[ &{$free_projects}(qw(unixuser unixdevel web)) ]}</td></tr>
+<tr><td>1993-1996</td><td class="com">Profes J&K</td>
+ <td>PC assembly and customer service</td></tr>
+<tr><td>1998 </td><td class="com">@{[ a_href('http://www.elsa-online.org/',"European Law Students' Association") ]}</td>
+ <td>@{[ &$project('step') ]} @{[ techs 'PHP, PostgreSQL' ]}<br />
+ subtasks @{[ &$project('phphash',"bare"=>1) ]}, @{[ &$project('pgsqlsubstr',"bare"=>1) ]}</td></tr>
+<tr><td>1998-1999</td><td class="com">@{[ a_href('http://www.geoinvest.cz/','Geoinvest') ]}</td>
+ <td>@{[ a_href 'http://members.tripod.com/Stelios_Cellar/GSM/m1module.htm','Siemens M1' ]}
+ GSM modem daemon, client/server, remote GSM terminals @{[ techs 'C, GSM, GPS, S-Lang' ]}<br />
+ GPLed subtask @{[ &$project('vblib') ]} @{[ techs 'C' ]}</td></tr>
+<tr><td>1999 </td><td class="com">@{[ a_href('http://www.tencom.cz/','TENcom Trade') ]}</td>
+ <td>@{[ a_href "/project/mdsms/","MobilDock SMS Tool","attr"=>'class="project"' ]} @{[ techs 'GSM/PDU' ]}</td></tr>
+<tr><td>1999 </td><td class="com">@{[ a_href('http://www.geoinvest.cz/','Geoinvest') ]}</td>
+ <td>@{[ &$project('332') ]} @{[ techs 'M680x0 asm, C' ]}<br />
+ subtask @{[ &$project('mot2as') ]}</td></tr>
+<tr><td>1999 </td><td class="com">@{[ a_href('http://www.unicom-prague.cz/','Unicom') ]}</td>
+ <td>Technical translations from English</td></tr>
+<tr><td>1999-$now</td><td class="com">@{[ a_href('http://www.jklabs.cz/','JKLabs') ]}</td>
+ <td>sysadmin GNU/Linux and FreeBSD, techsupport: GuestNET,
+ @{[ a_href 'http://www.2m.dk/web/html_version/eclipse/eclipse.html','Eclipse' ]},
+ @{[ a_href 'http://www.globaloop.com/','GlobaLoop' ]},
+ @{[ a_href 'http://www.antlimited.com/products/fresco.htm','Fresco' ]}</td></tr>
+<tr><td>1999 </td><td class="com">@{[ a_href('http://www.jklabs.cz/','JKLabs') ]}</td>
+ <td>IRQ redirector for legacy devices @{[ techs 'i386 asm' ]}</td></tr>
+<tr><td>1999-2000</td><td class="com">@{[ a_href('http://www.suse.com/','SuSE') ]}</td>
+ <td>@{[ &$project('surprise') ]} @{[ techs 'C, Gnome, m4' ]}<br />
+ subtask @{[ &$project('int13sniff') ]}<br />
+ subtask @{[ &$project('gladewsrc') ]}</td></tr>
+<tr><td>2001 </td><td class="com">@{[ a_href('http://www.gtsgroup.cz/','GTS') ]}</td>
+ <td>@{[ &$project('tac_plus') ]} @{[ techs 'C, Cisco TACACS+' ]}<br />
+ subtask @{[ &$project('mod_auth_tacacs') ]} @{[ techs 'C, Cisco TACACS+' ]}</td></tr>
+<tr><td>2001 </td><td class="com">@{[ a_href('http://www.atspraha.cz/','Advanced Telecom Services') ]}</td>
+ <td>@{[ &$project('mdsms') ]} - update for
+ @{[ a_href 'http://www.transportdata.de/html/produkte/siemens_m20t.php?lang=en',
+ 'Siemens M20' ]}
+ @{[ techs 'C, GSM PDU' ]}</td></tr>
+<tr><td>2001 </td><td class="com">@{[ a_href('http://www.atspraha.cz/','Advanced Telecom Services') ]}</td>
+ <td>@{[ a_href 'http://www.gnokii.org/','gnokii' ]}
+ @{[ a_href 'http://www.jankratochvil.net/priv/gnokii/gnokii-lace-2001-11-17-01.tar.gz',
+ 'driver for SMS gateway' ]}
+ of GSM operator @{[ a_href('http://www.eurotel.cz/','EuroTel') ]}
+ (C, PostgreSQL)</td></tr>
+<tr><td>2001 </td><td class="com">@{[ a_href('http://www.atspraha.cz/','Advanced Telecom Services') ]}</td>
+ <td>@{[ &$project('gsmperl') ]} @{[ techs 'Perl, GSM EMS' ]}</td></tr>
+<tr><td>2001 </td><td class="com">@{[ a_href('http://www.netcentrum.cz/','NetCentrum') ]}</td>
+ <td>@{[ a_href 'http://www.gnokii.org/','gnokii' ]}
+ @{[ a_href 'http://www.jankratochvil.net/priv/gnokii/gnokii-0.4.0pre1_lace2001_11_14_01_netcentrum.diff',
+ 'driver for custom SMS gateway protocol' ]} @{[ techs 'C' ]}</td></tr>
+<tr><td>2001 </td><td class="com">@{[ a_href('http://www.readynote.com/','ReadyNote') ]}</td>
+ <td>@{[ &$project('mdsms') ]} port to embedded $uClinux
+ @{[ techs 'GSM, Nokia, uClinux' ]}</td></tr>
+<tr><td>2002 </td><td class="com">@{[ a_href('http://www.readynote.com/','ReadyNote') ]}</td>
+ <td>@{[ a_href 'http://www.mwiacek.com/gsm/gammu/gammu.html','mygnokii' ]}
+ @{[ a_href 'http://www.jankratochvil.net/priv/gnokii/mygnokii-0.3.3_pre8-gold_2002_03_10--uClinux2002_03_17_23_03/',
+ 'port to embedded' ]} $uClinux,
+ @{[ a_href 'http://www.nokiausa.com/phones/5190/1,1162,,00.html','Nokia 5190' ]}
+ @{[ a_href 'http://www.jankratochvil.net/priv/gnokii/mygnokii-0.3.3_pre8-gold_2002_02_24-decodefile/',
+ 'sw-modem debugging' ]}
+ @{[ techs 'GSM, Nokia, uClinux' ]}</td></tr>
+<tr><td>2002 </td><td class="com">@{[ a_href('http://www.jklabs.cz/','JKLabs') ]}</td>
+ <td>@{[ &$project('ssht') ]}</td></tr>
+<tr><td>2002 </td><td class="com">@{[ a_href('http://www.jklabs.cz/','JKLabs') ]}</td>
+ <td>@{[ &$project('middleman') ]}
+ for hotel system @{[ techs 'C, BSD, HTTP' ]}</td></tr>
+<tr><td>2002 </td><td class="com">@{[ a_href('http://www.atspraha.cz/','Advanced Telecom Services') ]}</td>
+ <td>MMS framework client via @{[ a_href('http://www.eurotel.cz/site/en/home/','EuroTel') ]} GSM operator
+ (GSM MMS, Perl, XML, SOAP)<br />
+ subtasks @{[ a_href "/etmms/",'MMS center debugging',"attr"=>'class="project"' ]},
+ @{[ &$project('etherealmmse',"bare"=>1) ]}, @{[ &$project('etherealwsp',"bare"=>1) ]}</td></tr>
+<caption>Contractor Jobs</caption>
+</table>
+
+@{[ vskip "1ex" ]}
+
+<table class="referees">
+<tr><td class="com">@{[ a_href('http://www.japhila.cz/index_en.htm','Japhila') ]}</td>
+ @{[ &{$reference}('wnavx(ng)wncuvyn.pbz','Bretislav Janik') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.geoinvest.cz/','Geoinvest') ]}</td>
+ @{[ &{$reference}('ohgna(ng)trbvairfg.pm','Lubor Otta') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.tencom.cz/','TENcom Trade') ]}</td>
+ @{[ &{$reference}('grfne(ng)grapbz.pm','Petr Tesar') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.unicom-prague.cz/','Unicom') ]}</td>
+ @{[ &{$reference}('erprcpr(ng)havpbz-centhr.pm','Valerie Bernardova') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.jklabs.cz/','JKLabs') ]}</td>
+ @{[ &{$reference}('wna.xbyne(ng)wxynof.pm','Jan Kolar') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.gtsgroup.cz/','GTS') ]}</td>
+ @{[ &{$reference}('Zvpunry.Znprx(ng)tgftebhc.pm','Michael Macek') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.atspraha.cz/','Advanced Telecom Services') ]}</td>
+ @{[ &{$reference}('zvpuny.ubenx(ng)ngfcenun.pm','Michal Horak') ]}</tr>
+<tr><td class="com">@{[ a_href('http://www.readynote.com/','ReadyNote') ]}</td>
+ @{[ &{$reference}('wcehrgg(ng)ernqlabgr.pbz','Jim Pruett') ]}</tr>
+HERE
+
+if (lc($W->{"args"}{"referees"}) ne "referees") {
+ print <<"HERE";
+ <tr><td style="padding: 10px;" colspan="2">
+ <hr />
+ <form method="post" action="@{[ $W->{"resume_url"} ]}">
+ <p>Enter the word '<b>referees</b>' (without quotes) to disclose e-mail addresses:</p>
+ <input type="text" size="15" name="referees" value="@{[ CGI::escapeHTML($W->{"args"}{"referees"}) ]}" />
+ <input type="submit" value="Submit" />
+ <p>(spambot protection)</p>
+ </form>
+ </td></tr>
+HERE
+ }
+
+print <<"HERE";
+<caption>Contractor Jobs Referees (chronologically)</caption>
+</table>
+
+@{[ vskip "2ex" ]}
+
+<table>
+<tr><td>1995</td><td>7th in the Central European Olympiad in Informatics</td></tr>
+<tr><td>1996</td><td>4th in the International Competition in Programming</td></tr>
+<tr><td>1997</td><td>1st in the International Competition in Programming</td></tr>
+<tr><td>1997</td><td>2nd in an MO-P national contest - mathematics Olympiad, the programming category</td></tr>
+<tr><td>1997</td><td>Bronze medal in the International Olympiad in Informatics, South Africa - Cape Town</td></tr>
+</table>
+
+@{[ vskip "3ex" ]}
+
+<p style="font-size: larger;">Looking for a fulltime job. Relocation around the world expected.</p>
+<p style="font-size: larger;">Contact: $mailme</p>
+HERE
+
+
+My::Web->footer();