From 6d0354fccb7f3043446078521333c2724c2f8d0c Mon Sep 17 00:00:00 2001 From: pux Date: Sat, 7 Jan 2023 13:28:46 +0100 Subject: rss generator --- .gitignore | 1 + 2020-06-23-182943_Backpacks.html | 80 -------------------- 2021-06-28-103922_TestingSrtGear.html | 52 ------------- 2022-09-24-190300_Nuki1Retrospective.html | 117 ------------------------------ INDEX.html | 43 ----------- index.html | 1 - index.xml | 54 ++++++++++++++ pyreplace.py | 15 ++++ template_rss_footer.xml | 3 + template_rss_header.xml | 11 +++ template_rss_item.xml | 10 +++ update.sh | 29 +++++++- 12 files changed, 122 insertions(+), 294 deletions(-) create mode 100644 .gitignore delete mode 100644 2020-06-23-182943_Backpacks.html delete mode 100644 2021-06-28-103922_TestingSrtGear.html delete mode 100644 2022-09-24-190300_Nuki1Retrospective.html delete mode 100644 INDEX.html delete mode 120000 index.html create mode 100644 index.xml create mode 100755 pyreplace.py create mode 100644 template_rss_footer.xml create mode 100644 template_rss_header.xml create mode 100644 template_rss_item.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/2020-06-23-182943_Backpacks.html b/2020-06-23-182943_Backpacks.html deleted file mode 100644 index 560ca78..0000000 --- a/2020-06-23-182943_Backpacks.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - 2020-06-23-182943_Backpacks - - - - - -

2020-06-23-182943_Backpacks

-

Backpack reviews

-

Focus: + Durability/longevity + small one for caving / everyday + ~ -40 l medium one, also airplane carry on + ~ 75 l big one, groceries / -trekking tours + I EDC depending on mood, but even 75 l, have to walk 10 -mins to the car, and got used to it

-

Osprey Farpoint 40 l

-

My first “good one”, lasted almost 5 years (daily use), back straps -broke on an Italy-motorcycle-tour when i probably packed too many beer -cans into it. Laptop compartment isn’t really protecting… never really -used it.

-

Tatonka Laptop Backpack

-

Lasted some years, great protection for 15 ” laptop. A bit small when -trying to fit something else in there when laptop present.

-

Kelty Redwing 44 l (black)

-

-

Current medium backpack (2019+), lot of space, had to bend the -aluminium backbone a bit to match my backbone, but then it was great -comfort.

-

Never used the girdle (closed the clips bending around the backpack -instead of my hip) as it’s never that heavily loaded.

-

You need to think a bit of where to put stuff to keep an aesthetic -form though. Somehow when wearing it it looks like an Eastpak school -backpack.

-

Gregory Baltoro 75 l (blue)

-

-

Current (2020) big daily / trekking backpack.

-

Awesome fit (for me).

-

Looks awesome, but you’ll get looks from people when using it in the -city / as a daily. That’s why i also wear a $IndianaJones hat to kill -last doubt in people on what to think of me :)

-

Never tried a laptop in it.

-

After ~7 months of daily use the material on the two main shoulder -belts is a bit worn, but i often didn’t use the tensioner that goes in -front of my breast, so there was a lot of rubbing against my clothes. -Anyway, this seems to get worse…

-

TODO / Wishlist

-

Small / caving backpack

- - - diff --git a/2021-06-28-103922_TestingSrtGear.html b/2021-06-28-103922_TestingSrtGear.html deleted file mode 100644 index 658c874..0000000 --- a/2021-06-28-103922_TestingSrtGear.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - 2021-06-28-103922_TestingSrtGear - - - - - -

2021-06-28-103922_TestingSrtGear

-

Testing SRT Gear

-

I finally got most of my SRT (single rope technique) equipment -together. First tests on a nearby quarry and a small bridge.

-

First had the Petzl STOP descender device, but after finding out that -this thing does not STOP at all (it’s not belaying you unless You hold -the rope) I bought the Petzl I’Ds. With this one and a hand ascender -it’s very easy to climb up everywhere where You also have a wall to push -the feet against.

-

-

After being confident I went to the first nearby limestone cave that -had a 5+ m slippery drop and i still live. Success!

-

-

-

- - diff --git a/2022-09-24-190300_Nuki1Retrospective.html b/2022-09-24-190300_Nuki1Retrospective.html deleted file mode 100644 index e50f201..0000000 --- a/2022-09-24-190300_Nuki1Retrospective.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - 2022-09-24-190300_Nuki1Retrospective - - - - - -

2022-09-24-190300_Nuki1Retrospective

-

NUKI1 in Retrospective / -dev-log

-

See here NUKI1 - Nuki and I -explore the Galaxy - on baden.dev

-

Quick introduction

-

NUKI1 or Nuki and I explore the Galaxy is a -puzzle-platformer mix, and my first commercially released game.

-

I tried to create a new unique genre-mix (in the somehow worn out -platformer genre) implementing ideas that lingered in my mind for years, -a lot of those inspired by some good old DOS games I played.

-

Concept

-

At first I wanted to make a top-down puzzler game, but felt that I -needed more “action” and “physics” like advanced and precise platformer -movement and artillery-game and rocket movement.

-

Also, an inventory system with object interaction like in a RPG and -puzzles that you need to solve in real life (on paper/via web -lookup/etc.) were on my list.

-

At the end I decided to make the game in 10 unique levels and -integrate all of my crazy genre-mix-ideas.

-

Implementation

-

I started the game in Python only using tkinter as a “side-project”, -when I hit performance problems and coincidentally bought an ODROID GO -SUPER device for cheap.

-

I thought it would be nice to support the ODROID, and from then on I -rewrote the game in C++ with ODROID support in mind (wasn’t far -anyways).

-

I only wanted to use minimal dependencies, so it was SDL and -tinyxml2, the rest of the game I wanted to write completely on my own, -since that’s where the fun lies! Writing physics/vector/math/… classes -and basically the entire engine on my own!

-

Programming

-

Not so fun

- -

The most fun

- -

Stats

-

All in all, with rewriting a huge part of the game (while getting -better at C++), a lot of pixel painting and planning, I estimate around -1500 - 2500 hrs of work for everything.

-

A lof of time was lost in the first Py version, me getting better in -C++ and rewriting a lot of stuff.

-

Download

-

https://baden.dev/p/nuki1

- - diff --git a/INDEX.html b/INDEX.html deleted file mode 100644 index 4d53337..0000000 --- a/INDEX.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - INDEX - - - - - -

$blog / news

-

back

-

INDEX

-

2020-06-23-182943_Backpacks
-2021-06-28-103922_TestingSrtGear
-2022-09-24-190300_Nuki1Retrospective

- - diff --git a/index.html b/index.html deleted file mode 120000 index 9d41f4e..0000000 --- a/index.html +++ /dev/null @@ -1 +0,0 @@ -INDEX.html \ No newline at end of file diff --git a/index.xml b/index.xml new file mode 100644 index 0000000..df56e14 --- /dev/null +++ b/index.xml @@ -0,0 +1,54 @@ + + + pub-docs + https://omeckman.net/pub-docs/ + public documents + + en-us + + + + + + 2020-06-23-182943_Backpacks + https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.md + + https://omeckman.net/pub-docs/2020-06-23-182943_Backpacks.md + + 2020-06-23-182943_Backpacks + + + + + 2021-06-28-103922_TestingSrtGear + https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.md + + https://omeckman.net/pub-docs/2021-06-28-103922_TestingSrtGear.md + + 2021-06-28-103922_TestingSrtGear + + + + + 2022-09-24-190300_Nuki1Retrospective + https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.md + + https://omeckman.net/pub-docs/2022-09-24-190300_Nuki1Retrospective.md + + 2022-09-24-190300_Nuki1Retrospective + + + + + INDEX + https://omeckman.net/pub-docs/INDEX.md + + https://omeckman.net/pub-docs/INDEX.md + + INDEX + + + + + + diff --git a/pyreplace.py b/pyreplace.py new file mode 100755 index 0000000..751d711 --- /dev/null +++ b/pyreplace.py @@ -0,0 +1,15 @@ +#/usr/bin/env python3 + +import sys + +if __name__ == '__main__': + if len(sys.argv) < 3: + sys.exit() + + data = [] + with open(sys.argv[3], 'r+') as file: + data = file.read() + data = data.replace(sys.argv[1], sys.argv[2]) + file.close() + with open(sys.argv[3], 'w') as filew: + filew.write(data) diff --git a/template_rss_footer.xml b/template_rss_footer.xml new file mode 100644 index 0000000..a353561 --- /dev/null +++ b/template_rss_footer.xml @@ -0,0 +1,3 @@ + + + diff --git a/template_rss_header.xml b/template_rss_header.xml new file mode 100644 index 0000000..d15dbc9 --- /dev/null +++ b/template_rss_header.xml @@ -0,0 +1,11 @@ + + + $TITLE$ + $TITLE_LINK$ + $TITLE_DESC$ + + en-us + + + + diff --git a/template_rss_item.xml b/template_rss_item.xml new file mode 100644 index 0000000..5e74373 --- /dev/null +++ b/template_rss_item.xml @@ -0,0 +1,10 @@ + + $ITEM_TITLE$ + $ITEM_LINK$ + $ITEM_PUBDATE$ + $ITEM_LINK$ + + $ITEM_DESC$ + + + diff --git a/update.sh b/update.sh index 687c805..0e695a6 100755 --- a/update.sh +++ b/update.sh @@ -1,12 +1,37 @@ -#!/bin/sh +#!/bin/bash + +# RSS +RSS_TITLE='pub-docs' +RSS_TITLE_LINK='https://omeckman.net/pub-docs/' +RSS_TITLE_DESC='public documents' +RSS_MY_URL=${RSS_TITLE_LINK} cp INDEX_template.md INDEX.md +cp template_rss_header.xml index.xml + +#sed -i "s/\\\$TITLE> index.xml + python3 pyreplace.py '$ITEM_TITLE$' "${RSS_ITEM_TITLE}" index.xml + python3 pyreplace.py '$ITEM_LINK$' "${RSS_ITEM_LINK}" index.xml + python3 pyreplace.py '$ITEM_PUBDATE$' "${RSS_ITEM_PUIBDATE}" index.xml + python3 pyreplace.py '$ITEM_DESC$' "${RSS_ITEM_DESC}" index.xml + pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html if [ $filename_wo_ext != "INDEX" ] @@ -17,4 +42,6 @@ do fi done +cat template_rss_footer.xml >> index.xml + ln -s INDEX.html index.html -- cgit v1.2.2-1-g5e49