aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 20:28:44 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 20:28:44 +0100
commit2159e47e287920c1a89188ba789329344e952034 (patch)
tree1678a24019c9f2b7ee193d97a0f4a11e743af565
parent0e8ada1eff8799437c9be1bc2af10d6198fa8cad (diff)
downloadboymoder.blog-2159e47e287920c1a89188ba789329344e952034.tar.gz
boymoder.blog-2159e47e287920c1a89188ba789329344e952034.zip
Various bug fixes
-rwxr-xr-xDockerfile2
-rwxr-xr-xdocker-compose.yml4
-rw-r--r--edaweb/app.py4
-rw-r--r--edaweb/static/images/random.jpgbin0 -> 202536 bytes
-rw-r--r--papers.md25
-rwxr-xr-xscripts/export.sh2
-rwxr-xr-xscripts/update.sh2
7 files changed, 32 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index 67b38ff..7fdac3d 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:22.10
+FROM ubuntu:jammy-20250404
MAINTAINER Eden Attenborough "eden.attenborough@outlook.com"
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
diff --git a/docker-compose.yml b/docker-compose.yml
index 3d5c58e..67976bf 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -7,8 +7,8 @@ services:
image: reg.reaweb.uk/edaweb
volumes:
- /tmp/:/media/ISOs/
- - ./static/:/app/static/
- - ./edaweb.conf:/app/edaweb.conf
+ - ./edaweb/static/:/app/edaweb/static/
+ - ./edaweb.conf:/app/edaweb/edaweb.conf
- ./edaweb-docker.pem:/keys/docker-key.pem
ports:
- "6969:6969"
diff --git a/edaweb/app.py b/edaweb/app.py
index 6902fe4..436df7a 100644
--- a/edaweb/app.py
+++ b/edaweb/app.py
@@ -17,7 +17,7 @@ import io
app = flask.Flask(__name__)
CONFIG = configparser.ConfigParser(interpolation = None)
-CONFIG.read("edaweb.conf")
+CONFIG.read(os.path.join(os.path.dirname(__file__), "edaweb.conf"))
shown_images = set()
shown_sidebar_images = set()
@@ -224,7 +224,7 @@ def serve_random():
sbi = services.get_random_image(tags)
req = urllib.request.Request(sbi.imurl)
mediaContent = urllib.request.urlopen(req).read()
- with open(os.path.join("static", "images", "random.jpg"), "wb") as f:
+ with open(os.path.join(os.path.dirname(__file__), "static", "images", "random.jpg"), "wb") as f:
f.write(mediaContent)
with database.Database() as db:
diff --git a/edaweb/static/images/random.jpg b/edaweb/static/images/random.jpg
new file mode 100644
index 0000000..4e23beb
--- /dev/null
+++ b/edaweb/static/images/random.jpg
Binary files differ
diff --git a/papers.md b/papers.md
new file mode 100644
index 0000000..8da5119
--- /dev/null
+++ b/papers.md
@@ -0,0 +1,25 @@
+this page lists some of the papers i have written! it's not an exhaustive list, just mostly the ones i'm most proud of the latex of
+
+## published papers
+
+i pinky promise i've had academic papers published, im just going to add them when they've actually been published not just accepted
+
+## coursework
+
+### level 7
+
+#### advanced ai
+
+<iframe class="pdf" src="/pdf/aai.pdf" width="65%" height="500pt"></iframe>
+
+this was part of the assessment for an 'advanced ai' module, it mostly pertains to bayesian networks
+
+#### advanced robotics
+
+<iframe class="pdf" src="/pdf/ar2.pdf" width="65%" height="500pt"></iframe>
+
+this assessment pertains to learning from demonstration with manipulators in robotics, and mostly talks about and does some experiments with dynamic movement primitives (DMPs) and stable estimator of dynamic systems (SEDs)
+
+
+
+
diff --git a/scripts/export.sh b/scripts/export.sh
index c65a6e9..1d17cf1 100755
--- a/scripts/export.sh
+++ b/scripts/export.sh
@@ -9,4 +9,4 @@ read export_name
echo "Exporting blog post " $id " to " $export_name
touch $export_name
-sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb.conf -v "$(pwd)/$export_name":/app/$export_name --network mariadb --rm reg.reaweb.uk/edaweb /app/parser.py export -i $id -u root -o $export_name
+sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb/edaweb.conf -v "$(pwd)/$export_name":/app/$export_name --network mariadb --rm reg.reaweb.uk/edaweb /app/edaweb/parser.py export -i $id -u root -o $export_name
diff --git a/scripts/update.sh b/scripts/update.sh
index b082f18..fe225cb 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -3,4 +3,4 @@
echo -n "Input blog post ID to update: "
read id
-sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb.conf -v "$(pwd)/$1":/app/$1 --network mariadb --rm reg.reaweb.uk/edaweb /app/parser.py update -i $id -u root -m $1
+sudo docker run -it --entrypoint python3 -v "$(pwd)/edaweb.conf":/app/edaweb/edaweb.conf -v "$(pwd)/$1":/app/$1 --network mariadb --rm reg.reaweb.uk/edaweb /app/edaweb/parser.py update -i $id -u root -m $1