Adding a view source link

in blog, english, programming

At the bottom of each of the blog posts I now have a See the source link. With hugo (and quite likely all other blog-enignes, what do I know?) this is pretty straight forward: Implementation For a site you can define global variables in config.toml and each Node, for example a post has both Frontmatter is available per “post”. All this is available in the templates which displays the content: {{ .Params.github_src }}/blob/master/content/{{ $.Path }} and the concept of partials helps getting such a link included on all posts: {{ with .Site.Params.github_src }} <div style="float: right; " class="src share"> <a href="https://github.com/{{ .

Lightbox Gallery Shortcodes

in English, hugo

In order to get the old wordpress posts image gallery to work (like CPH:Triathlon) I decided to take on some shortcodes. They look very much Jinja Macros which I know from my $dayjob - which might turn out to be a bit confusing. In essence my plan was to avoid too much boilerplate. At first i tried generalizing the wordpress markup into a shortcode but I found it a bit hard to get working.

Hugo, the Static Site Generator

in English, hugo, programming

So, years ago, Morten, provided me with a makefile and som m4 macros stuff and I played around with that for generating the pages for this blog back in the day. Then I switched back and forth between engines, and settled on wordpress for the last many years. But now Morten mentioned Hugo. I get the feeling that one of his hobbies is changing his blog-engine ;) That being said, who am I to talk?

CPH:Triathlon – Race report

in English, racerapport, triathlon

Intro So, my last race report is almost 3 years old by now. I’ve since then raced Ganløse famile tri september 9 2012, and Camilla Pedersen Duathlon October 2013 and lastly Herlev Olympic Tri May 2014. Herlev Olympic Camilla Pedersen Duathlon Camilla Pedersen Duathlon My daughter was born shortly after Hillerød Tri 2011 which of course naturally shifted priorities. I trained on and off for a year following – 32 km bike commute and swimming and running every now and then.

My favorite podcasts

in English, podcasts

Me and my bike I bike – alot. Training for triathlon and now also a 2x16km commute every day. Most of that time I listen to podcasts. For the toughest workouts I might switch to music, but most often I really enjoy the podcasts. I have been listening for podcasts for 4+ years and when I find something I like I get more or less zealous and dread the day when they stop (Im looking at you LugRadio!).

Hillerød triathlon

in English, triathlon

Last year I got bitten by the triathlon bug during Copenhagen 4:18:4. Since then I started learning the front-crawl, more biking and consistent running. This spring I even joined KVIK Tri Team here at Amager and that really took my swimming up to a new level. Come april I bought a road bike: Giant Defy 1. Luckily I at the same time got a coworker bitten by the cycling bug so I had a friend to punish the roads with.

KMD 4:18:4 triathlon – 2011

in English, Racerapport, Triathlon

Swim - 4:18:4 Last year I had my debut as triathlete – I wrote about it here: Blogpost last-year This year I did that same race again. The hardcore numbers: Swim: 7m 15s T1: 03m35s Bike: 28m05s T2: 03m09s Run: 18m12s All in all 15minutes faster than last year, and still great fun. The major difference is that I have been practicing since last year. Lots and lots of swim, a new bike and a member ship of a triathlon club.

My 2011 races

in English, triathlon

My tentative raceplan for 2011 (4 triathlons, 2 runs, 1 bike event, 1 swim event): 29⁄5 Sjælsø rundt – 125km bike (result: 4h 22m 35s) 13/6 KVIK Tri Team pinse stævne – 300m swim, 19.5km bike, 4km run 1⁄7 Aarhus 4:18:4 – 400m swim, 18km bike, 4km run 6⁄7 Adecco Strandpark løbet – 10k run 12/8 Copenhagen 4:18:4 – 400m swim, 18km bike, 4km run 21⁄8 Hillerød Triathlon – 1000m swim, 76km bike, 20km run – Season goal 28/8 Christiansborg Rundt – 2k open water swim in the canal 31⁄12 Änglamark Nytårsløb – ½marathon perhaps.

Listings definition for the Scala programming language

in English, LaTeX, scala

I’ve tried to find a listings style definition for scala to use in my LaTeX report. I found a couple of links: http://tihlde.org/~eivindw/latex-listings-for-scala/ http://scala-programming-language.1934581.n4.nabble.com/scaladoc-sty-td1945564.html / http://www.scala-lang.org/node/546 The last (two) link(s) includes a downloadable .sty to include in your LaTeX environment. I had some trouble actually downloading the file so I mirrored it here: http://s3.blog.vrist.dk.s3.amazonaws.com/lstlang0.sty

Copenhagen 4:18:4 triathlon

in

Today was the day of Copenhagen 4:18:4 Tri. I had the number 931 sponsored by my employer. The triathlon was roughly a 1⁄10 of an ironman designed to allow everybody to have a go at a triathlon. I have been flirting with the idea of triathlon ever since I found out how much I like bicycling. My trusty MBK bc7r and me have been around copenhagen for lots of fun as well as the sweaty spinningbikes in Fitnessworld.