Support more finegrained date-based sorting.

This commit is contained in:
Niels G. W. Serup 2020-08-30 18:15:39 +02:00
parent 81e536a856
commit 82cbbcea67
48 changed files with 51 additions and 51 deletions

View File

@ -1,6 +1,6 @@
file: youtube:0-h1Q8jkBto file: youtube:0-h1Q8jkBto
title: 'DIKUrevy 2016: Banko Royale' title: 'DIKUrevy 2016: Banko Royale'
year: 2016 date: 201605
description: > description: >
A very provincial James Bond parody. I co-wrote and co-produced this film. I A very provincial James Bond parody. I co-wrote and co-produced this film. I
also had a small role as Fidel Castro in a lumberjack shirt. also had a small role as Fidel Castro in a lumberjack shirt.

View File

@ -1,6 +1,6 @@
file: youtube:OcEKcEg_TjU file: youtube:OcEKcEg_TjU
title: 'BornHack 2018 - Big Banko: Scaling for the Elder Generation' title: 'BornHack 2018 - Big Banko: Scaling for the Elder Generation'
year: 2018 date: 201808
description: > description: >
I gave a talk at BornHack about the OpenBanko project that I have been working I gave a talk at BornHack about the OpenBanko project that I have been working
on with a couple of friends. on with a couple of friends.

View File

@ -1,5 +1,5 @@
file: youtube:HI9sVHCBS0g file: youtube:HI9sVHCBS0g
title: 'DIKUrevy 2017: Bosser' title: 'DIKUrevy 2017: Bosser'
year: 2017 date: 201705
description: > description: >
A bit internal. I filmed and edited it. A bit internal. I filmed and edited it.

View File

@ -1,5 +1,5 @@
file: extern:box-576p.ogv file: extern:box-576p.ogv
title: Box title: Box
year: 2010 date: 2010
description: > description: >
Very artistic. Very artistic.

View File

@ -1,5 +1,5 @@
file: extern:cola-1080p.ogv file: extern:cola-1080p.ogv
title: Cola title: Cola
year: 2009 date: 2009
description: > description: >
Who would do such a thing? Who would do such a thing?

View File

@ -1,5 +1,5 @@
file: extern:compufight-behind.ogv file: extern:compufight-behind.ogv
title: 'Compufight: Behind the scenes' title: 'Compufight: Behind the scenes'
year: 2009 date: 2009
description: > description: >
A behind-the-scenes look at how the Compufight film was made. A behind-the-scenes look at how the Compufight film was made.

View File

@ -1,5 +1,5 @@
file: extern:compufight-1080p.ogv file: extern:compufight-1080p.ogv
title: Compufight title: Compufight
year: 2009 date: 2009
description: > description: >
Inspired by films. Inspired by films.

View File

@ -1,5 +1,5 @@
file: extern:compumotion-1080p.ogv file: extern:compumotion-1080p.ogv
title: Compumotion title: Compumotion
year: 2008 date: 2008
description: > description: >
The inspiration for the blockbuster film "Inception". The inspiration for the blockbuster film "Inception".

View File

@ -1,6 +1,6 @@
file: youtube:AfjJNauWV48 file: youtube:AfjJNauWV48
title: 'BornHack 2019 - Niels G. W. Serup: concieggs: An extensible IRC bot architecture with an attitude' title: 'BornHack 2019 - Niels G. W. Serup: concieggs: An extensible IRC bot architecture with an attitude'
year: 2019 date: 201908
description: > description: >
I gave a talk at BornHack about the concieggs project that I have been working I gave a talk at BornHack about the concieggs project that I have been working
on with a couple of friends. on with a couple of friends.

View File

@ -1,5 +1,5 @@
file: extern:crazychristmas-1080p.ogv file: extern:crazychristmas-1080p.ogv
title: Crazy Christmas title: Crazy Christmas
year: 2007 date: 2007
description: > description: >
I was very proud of the fact this film consists of 655 frames. I was very proud of the fact this film consists of 655 frames.

View File

@ -1,5 +1,5 @@
file: extern:creative-process-576p.ogv file: extern:creative-process-576p.ogv
title: The creative process of an artist title: The creative process of an artist
year: 2010 date: 2010
description: > description: >
Everything in this film is a metaphor for something. Everything in this film is a metaphor for something.

View File

@ -1,5 +1,5 @@
file: extern:dice-1080p.ogv file: extern:dice-1080p.ogv
title: Dice title: Dice
year: 2009 date: 2009
description: > description: >
Very chaotic. Very chaotic.

View File

@ -1,5 +1,5 @@
file: extern:easteregg-640w.ogv file: extern:easteregg-640w.ogv
title: Beware of the Easter Egg title: Beware of the Easter Egg
year: 2007 date: 2007
description: > description: >
This is probably a bit unrealistic. This is probably a bit unrealistic.

View File

@ -1,5 +1,5 @@
file: youtube:z2rxerTXoCg file: youtube:z2rxerTXoCg
title: 'BornHack 2020 - Niels G. W. Serup - "Failed" Projects: Just Move On' title: 'BornHack 2020 - Niels G. W. Serup - "Failed" Projects: Just Move On'
year: 2020 date: 202008
description: > description: >
I gave a talk at BornHack about my failed projects. I gave a talk at BornHack about my failed projects.

View File

@ -1,6 +1,6 @@
file: extern:haj.webm file: extern:haj.webm
title: 'haj' title: 'haj'
year: 2018 date: 201812
description: > description: >
A short shark-infused santa movie I made. Watch out! A short shark-infused santa movie I made. Watch out!

View File

@ -1,5 +1,5 @@
file: youtube:uc5CrT0R_Mc file: youtube:uc5CrT0R_Mc
title: 'DIKUrevy 2013: HCØ' title: 'DIKUrevy 2013: HCØ'
year: 2013 date: 201305
description: > description: >
I co-wrote and acted in this fake commercial. I co-wrote and acted in this fake commercial.

View File

@ -1,5 +1,5 @@
file: extern:ibm.webm file: extern:ibm.webm
title: IBM Mainframe title: IBM Mainframe
year: 2014 date: 2014
description: > description: >
I entered this film into an IBM competition. I entered this film into an IBM competition.

View File

@ -1,6 +1,6 @@
file: youtube:P3a8tkivMy4 file: youtube:P3a8tkivMy4
title: 'DIKUrevy 2013: Jagten på punchlinen' title: 'DIKUrevy 2013: Jagten på punchlinen'
year: 2013 date: 201305
description: > description: >
20 minutes of puns and exploration. I co-starred in this fantastic endeavour. 20 minutes of puns and exploration. I co-starred in this fantastic endeavour.
This film was played during one of the breaks in our student revue. This film was played during one of the breaks in our student revue.

View File

@ -1,5 +1,5 @@
file: youtube:I4nsVtLmYQ0 file: youtube:I4nsVtLmYQ0
title: "DIKUrevy 2015: Ka' det fusioneres? Datalogi og matematik!" title: "DIKUrevy 2015: Ka' det fusioneres? Datalogi og matematik!"
year: 2015 date: 201505
description: > description: >
A spoof of a spoof. Debates current affairs. I filmed and edited. A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:uHVWxgPbxs8 file: youtube:uHVWxgPbxs8
title: "DIKUrevy 2015: Ka' det fusioneres? GT og light cola!" title: "DIKUrevy 2015: Ka' det fusioneres? GT og light cola!"
year: 2015 date: 201505
description: > description: >
A spoof of a spoof. Debates current affairs. I filmed and edited. A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:5heliTbyzeA file: youtube:5heliTbyzeA
title: "DIKUrevy 2015: Ka' det fusioneres? PC og Gentoo!" title: "DIKUrevy 2015: Ka' det fusioneres? PC og Gentoo!"
year: 2015 date: 201505
description: > description: >
A spoof of a spoof. Debates current affairs. I filmed and edited. A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:v5Nw8FxPTqY file: youtube:v5Nw8FxPTqY
title: "DIKUrevy 2015: Ka' det fusioneres? Preben og Fernando!" title: "DIKUrevy 2015: Ka' det fusioneres? Preben og Fernando!"
year: 2015 date: 201505
description: > description: >
A spoof of a spoof. Debates current affairs. I filmed and edited. A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:nWwtf3kzDwU file: youtube:nWwtf3kzDwU
title: "DIKUrevy 2015: Ka' det fusioneres? Vim og Emacs!" title: "DIKUrevy 2015: Ka' det fusioneres? Vim og Emacs!"
year: 2015 date: 201505
description: > description: >
A spoof of a spoof. Debates current affairs. I filmed and edited. A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,6 +1,6 @@
file: youtube:x8ynd-LbaAs file: youtube:x8ynd-LbaAs
title: 'DIKUrevy 2014: KEN' title: 'DIKUrevy 2014: KEN'
year: 2014 date: 201405
description: > description: >
A film devoted to the similarities between a dishwasher and a professor. I A film devoted to the similarities between a dishwasher and a professor. I
filmed it and also had a small role. filmed it and also had a small role.

View File

@ -1,5 +1,5 @@
file: youtube:62GFDUu3Lt0 file: youtube:62GFDUu3Lt0
title: 'DIKUrevy 2014: Kjolemand' title: 'DIKUrevy 2014: Kjolemand'
year: 2014 date: 201405
description: > description: >
Just a silly film. I co-wrote it, co-filmed it and also had a cameo. Just a silly film. I co-wrote it, co-filmed it and also had a cameo.

View File

@ -1,5 +1,5 @@
file: extern:lego-ved-eksamener.webm file: extern:lego-ved-eksamener.webm
title: LEGO ved eksamener title: LEGO ved eksamener
year: 2011 date: 2011
description: > description: >
I built machines instead of preparing for exams. I built machines instead of preparing for exams.

View File

@ -1,5 +1,5 @@
file: extern:legoparty-720p.ogv file: extern:legoparty-720p.ogv
title: LEGO PARTY title: LEGO PARTY
year: 2007 date: 2007
description: > description: >
Random LEGO stop motion. Random LEGO stop motion.

View File

@ -1,5 +1,5 @@
file: extern:legoshow-640w.ogv file: extern:legoshow-640w.ogv
title: LEGO SHOW title: LEGO SHOW
year: 2006 date: 2006
description: > description: >
Stop motion, but no plot. Stop motion, but no plot.

View File

@ -1,5 +1,5 @@
file: youtube:vs4bso-i3qI file: youtube:vs4bso-i3qI
title: 'DIKUrevy 2017: MATRICEN' title: 'DIKUrevy 2017: MATRICEN'
year: 2017 date: 2017
description: > description: >
Bad parody in Danish. I had a small role and helped film it. Bad parody in Danish. I had a small role and helped film it.

View File

@ -1,5 +1,5 @@
file: extern:mobility-behind.ogv file: extern:mobility-behind.ogv
title: 'Mobility: Behind the scenes' title: 'Mobility: Behind the scenes'
year: 2008 date: 2008
description: > description: >
A behind-the-scenes look at the production of the Mobility film. A behind-the-scenes look at the production of the Mobility film.

View File

@ -1,5 +1,5 @@
file: extern:mobility-1080p.ogv file: extern:mobility-1080p.ogv
title: Mobility title: Mobility
year: 2008 date: 2008
description: > description: >
Mobile phone tricks. Mobile phone tricks.

View File

@ -1,5 +1,5 @@
file: youtube:o_ndwJzJsJQ file: youtube:o_ndwJzJsJQ
title: 'DIKUrevy 2016: OBS' title: 'DIKUrevy 2016: OBS'
year: 2016 date: 201605
description: > description: >
A spoof of a Danish TV program. I produced this. A spoof of a Danish TV program. I produced this.

View File

@ -1,5 +1,5 @@
file: youtube:EVnrQhhCQD8 file: youtube:EVnrQhhCQD8
title: 'DIKUrevy 2017: Oldschool Mutant Ninja Hackers' title: 'DIKUrevy 2017: Oldschool Mutant Ninja Hackers'
year: 2017 date: 201705
description: > description: >
Directly from the nineties! I co-wrote the amazing lyrics, played one of the four hackers, and edited the film. Directly from the nineties! I co-wrote the amazing lyrics, played one of the four hackers, and edited the film.

View File

@ -1,5 +1,5 @@
file: youtube:_6I9ptgEgac file: youtube:_6I9ptgEgac
title: 'DIKUrevy 2019: O(N)sen-banden' title: 'DIKUrevy 2019: O(N)sen-banden'
year: 2019 date: 201906
description: > description: >
I had a small role in this homage to a Danish film series. I had a small role in this homage to a Danish film series.

View File

@ -1,5 +1,5 @@
file: extern:paper.webm file: extern:paper.webm
title: Paper title: Paper
year: 2010 date: 2010
description: > description: >
I can draw with my finger! I can draw with my finger!

View File

@ -1,5 +1,5 @@
file: extern:paranoia-576p.ogv file: extern:paranoia-576p.ogv
title: Paranoia title: Paranoia
year: 2010 date: 2010
description: > description: >
It makes sense if you think about it. It makes sense if you think about it.

View File

@ -1,5 +1,5 @@
file: youtube:-rw-PNrwqLo file: youtube:-rw-PNrwqLo
title: 'DIKUrevy 2015: Ph.D.-livet' title: 'DIKUrevy 2015: Ph.D.-livet'
year: 2015 date: 201505
description: > description: >
Trying to lure in new Ph.D. students. I did a little of everything. Trying to lure in new Ph.D. students. I did a little of everything.

View File

@ -1,5 +1,5 @@
file: youtube:BR7bUlZ05Ek file: youtube:BR7bUlZ05Ek
title: 'DIKUrevy 2013: Pinte dataloger' title: 'DIKUrevy 2013: Pinte dataloger'
year: 2013 date: 201305
description: > description: >
I co-wrote and acted in this fake commercial. I co-wrote and acted in this fake commercial.

View File

@ -1,6 +1,6 @@
file: youtube:xREnjmFWayA file: youtube:xREnjmFWayA
title: 'DIKUrevy 2012: Realtidshyperpipedims' title: 'DIKUrevy 2012: Realtidshyperpipedims'
year: 2012 date: 201205
description: > description: >
I was an actor in this. Fun fact: This film references the video game I was an actor in this. Fun fact: This film references the video game
"Portal", but I had not played the game at the time of filming. "Portal", but I had not played the game at the time of filming.

View File

@ -1,6 +1,6 @@
file: youtube:TL0tDkgLGuk file: youtube:TL0tDkgLGuk
title: 'DIKUrevy 2016: Lige om hjørnet' title: 'DIKUrevy 2016: Lige om hjørnet'
year: 2016 date: 201602
description: > description: >
Trying to lure in new people for the student revue. I wrote, filmed, and Trying to lure in new people for the student revue. I wrote, filmed, and
edited it. edited it.

View File

@ -1,5 +1,5 @@
file: extern:robo-1080p.ogv file: extern:robo-1080p.ogv
title: Robo title: Robo
year: 2010 date: 2010
description: > description: >
An ode to modern times. An ode to modern times.

View File

@ -1,6 +1,6 @@
file: extern:saks.webm file: extern:saks.webm
title: 'saks' title: 'saks'
year: 2020 date: 202003
description: > description: >
Judge for yourself. Judge for yourself.

View File

@ -1,5 +1,5 @@
file: extern:saltvspepper-1080p.ogv file: extern:saltvspepper-1080p.ogv
title: Salt vs. Pepper title: Salt vs. Pepper
year: 2008 date: 2008
description: > description: >
I should work for a special effects company. I should work for a special effects company.

View File

@ -1,5 +1,5 @@
file: youtube:Zm0afVWdN3c file: youtube:Zm0afVWdN3c
title: 'DIKUrevy 2012: SCIENCE IT Patruljen 1' title: 'DIKUrevy 2012: SCIENCE IT Patruljen 1'
year: 2012 date: 201205
description: > description: >
I was an actor in this. I was an actor in this.

View File

@ -1,5 +1,5 @@
file: youtube:qCL0kbd6bNg file: youtube:qCL0kbd6bNg
title: 'DIKUrevy 2013: SCIENCE IT Patruljen 2' title: 'DIKUrevy 2013: SCIENCE IT Patruljen 2'
year: 2013 date: 201305
description: > description: >
I was an actor in this and also contributed some puns. I was an actor in this and also contributed some puns.

View File

@ -1,5 +1,5 @@
file: extern:super-surveillance-576p.webm file: extern:super-surveillance-576p.webm
title: Super Surveillance title: Super Surveillance
year: 2011 date: 2011
description: > description: >
A dystopic look at the future of boredom. A dystopic look at the future of boredom.

View File

@ -1,5 +1,5 @@
file: extern:testdraw-576p.ogv file: extern:testdraw-576p.ogv
title: Test draw title: Test draw
year: 2007 date: 2007
description: > description: >
Very basic cartoon. Very basic cartoon.

View File

@ -27,7 +27,7 @@ def load_settings(settings_file):
def load_media(media_file): def load_media(media_file):
with open(media_file) as f: with open(media_file) as f:
c = yaml.load(f, Loader=yaml.FullLoader) c = yaml.load(f, Loader=yaml.FullLoader)
c['year'] = int(c['year']) c['date'] = c['date']
c['ident'] = ident(media_file) c['ident'] = ident(media_file)
return c return c
@ -102,7 +102,7 @@ def youtube_video(file_src):
def generate_video_page(base_dir, out_dir, base_html, showing_html, media): def generate_video_page(base_dir, out_dir, base_html, showing_html, media):
title = media['title'] title = media['title']
year = media['year'] date = str(media['date'])
description = media['description'].rstrip() description = media['description'].rstrip()
name = media['ident'] name = media['ident']
video_dir = os.path.join(out_dir, name) video_dir = os.path.join(out_dir, name)
@ -121,7 +121,7 @@ def generate_video_page(base_dir, out_dir, base_html, showing_html, media):
html_inner = showing_html.format( html_inner = showing_html.format(
title=html.escape(title), title=html.escape(title),
year=str(year), year=date[:4],
description=html.escape(description), description=html.escape(description),
video=video_html) video=video_html)
html_out = base_html.format(content=html_inner, html_out = base_html.format(content=html_inner,
@ -145,7 +145,7 @@ def main():
media_files = [os.path.join(media_dir, media_file) media_files = [os.path.join(media_dir, media_file)
for media_file in os.listdir(media_dir)] for media_file in os.listdir(media_dir)]
medias = [load_media(media_file) for media_file in media_files] medias = [load_media(media_file) for media_file in media_files]
medias.sort(key=lambda m: (m['year'], m['ident']), reverse=True) medias.sort(key=lambda m: (m['date'], m['ident']), reverse=True)
site_new_dir = setup_directory_structure(settings, base_dir, template_dir) site_new_dir = setup_directory_structure(settings, base_dir, template_dir)
generate_index_page(site_new_dir, base_html, section_html, medias) generate_index_page(site_new_dir, base_html, section_html, medias)