diff --git a/build/update-cv.sh b/build/update-cv.sh new file mode 100755 index 0000000..afbc0cd --- /dev/null +++ b/build/update-cv.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +TMPFILE="/tmp/cv.pdf" +OUTFILE="public/files/BenRobertsCv.pdf" + +# If not specified, the input will be taken from the live website +URL="https://www.benroberts.net/cv/" +if [ "x$1" != "x" ]; then + URL=$1 +fi + +# This script has a few dependencies +WKHTMLTOPDF=`which wkhtmltopdf 2>/dev/null` +if [ $? -ne 0 ]; then + echo "This script requires wkhtmltopdf, which does not appear to be installed." + exit 1 +fi +PDFTK=`which pdftk 2>/dev/null` +if [ $? -ne 0 ]; then + echo "This script requires pdftk, which does not appear to be installed." + exit 1 +fi + +# This script should be run from the homepage root directory, not from the build directory. +if [ ! -d `dirname $OUTFILE` ]; then + echo "output directory public/files does not exist" + exit 1 +fi + +echo "Updating CV from $URL to $OUTFILE" + +# Use wkhtmltopdf to print the CV page. CSS styles hide the UI components not intended for print +$WKHTMLTOPDF --no-background $URL $TMPFILE + +# Correct display bug in wkhtmltopdf output - retrieve only the first two pages. +# CV must be kept shorter than 2 pages long. +$PDFTK $TMPFILE cat 1-2 output $OUTFILE + +# Remove temporary file +rm $TMPFILE diff --git a/public/files/BenRobertsCv.pdf b/public/files/BenRobertsCv.pdf index 0bc0bab..5845240 100644 Binary files a/public/files/BenRobertsCv.pdf and b/public/files/BenRobertsCv.pdf differ diff --git a/public/styles/normal.css b/public/styles/normal.css index ff7de06..d4aa567 100644 --- a/public/styles/normal.css +++ b/public/styles/normal.css @@ -31,7 +31,12 @@ color: #333333; text-align: center; } - + + h1 { + padding: 1.0em; + text-align: center; + } + /* Images */ @@ -73,17 +78,27 @@ .no-print { display: none; } + + .force-break { + page-break-after: always; + + /* workaround for page break control not being supported in wkhtmltopdf */ + min-height: 3.0cm; + } body { margin: 0; + + /* workaround display bug in wkhtmltopdf */ + min-height: 100cm; } - + + a { + color: inherit; + } + #page_content { margin-left: 1.5em; } - #skills { - page-break-before: always; - } - } diff --git a/source/webui/templates/cv.tpl b/source/webui/templates/cv.tpl index 9c89ad5..beb63f7 100644 --- a/source/webui/templates/cv.tpl +++ b/source/webui/templates/cv.tpl @@ -21,19 +21,25 @@

Personal Information

-
-
+
+
Full Name

Benjamin Austin Roberts

- -
Email Address
-

{mailto address="me@benroberts.net" encode="hex"}

- +
Date of Birth

09/09/1986

-
Nationality
-

British

+
Location
+

Hampshire, United Kingdom

+
+
+
+
+
Email Address
+

{mailto address="me@benroberts.net" encode="hex"}

+ +
Portfolio
+

https://www.benroberts.net/

@@ -50,23 +56,32 @@ July 2010 - Present
Network Technical Specialist - Major Projects
-

- Design and implementation of network solutions for Atos customers in the Transport and Financial - Services industries. -

-

- Installed, configured and managed an out of band console service for remote management of core - infrastructure across multiple datacentres. -

-

- Designed, built and operated an 8-rack development lab containing ~70 mixed-vendor devices - for validation of a large-scale internal project. -

-

- Lead planner for physical aspects of 5-datacentre core infrastructure upgrade including - circuit delivery, rack and equipment placement, power/network connectivity, and logistics - management for ~3000 items of hardware. -

+
  • @@ -75,39 +90,52 @@ June 2008 - May 2009
    Internet Services Developer
    -

    - Penetration testing of web applications and hardware devices for large financial - institutions. Development of a perl/sql based data mining survey. Take-downs of - phishing sites (via legal channels), and other anti-phishing related activities. - Windows Server/Active Directory/Exchange administration (including migrations to - newer hardware/operating system versions). -

    +
  • NXP Semiconductors - + June 2007 - September 2007

    Student Intern
    -

    - Maintained and extended an existing internal web application using PHP and - Perl. Installed and configured a streaming video on demand server on Red - Hat Linux, with an embedded Linux client running on a Set Top Box. -

    +
  • - Electronics and Computer Science Faculty, University of Southampton + School of Electronics and Computer Science, University of Southampton September 2006 - June 2010

    Helpdesk Assistant
    -

    - Worked in the University's Computer Science Helpdesk on an ad-hoc basis, - performing day-to-day tasks to help the System Administrators. This included - repairing and reinstalling the operating systems on lab PCs. -

    +
  • @@ -122,12 +150,14 @@ Certification + Vendor Date - CCNA + CCNA + Cisco Feb 2010 - Present @@ -156,10 +186,10 @@ - - Computer Science
    - with Distributed Systems and Networks - + + Computer Science
    + with Distributed Systems and Networks + MEng First Class @@ -183,22 +213,22 @@ - Mathematics + Mathematics A-Level A - Physics + Physics A-Level A - Computing + Computing A-Level A - Further Mathematics + Further Mathematics AS-Level B @@ -209,7 +239,12 @@ - + + +
    +   +
    +

    Skills

    diff --git a/source/webui/templates/index.tpl b/source/webui/templates/index.tpl index 78cadc1..7256979 100644 --- a/source/webui/templates/index.tpl +++ b/source/webui/templates/index.tpl @@ -39,7 +39,7 @@
    -
    +