Projects
Dockerized WordPress on a Raspberry Pi
This blog runs on a a Raspberry Pi since 9th April 2019 and surprisingly the Pi performs quiete well. WordPress on itself does not need too many ressources for my use case since i don’t have hundreds of visitors per day, leaving capcaity for other applications.
The current setup includes an out of the box docker-compose and a backup script which uploads files to the dropbox cloud storage. In this series i would like to give you a short introduction how my setup works and how you could set it up by yourself.
My Interests
Recent Posts
Duplicate Keys when Generating a Json from a Dictionary in Python
TLDR: A dictionary in json treats all keys as string, while a python dict distinguishes not only between the content but also its datatype (see stackoverflow). When saving a dictionary into a json and reloading the dictionary from it, you…
ChatGPT Debug Assistant
I tried to implement a Flask Restful Endpoint with the webargs framework, which i already did back in 2020. Although, i copied the old code and made some tiny adjustments with the request call, i could not make it work…
How To Create A Superset Guest Token With Python To Embed Dashboards
The ulterior motive is to embed a Superset Dashboard into e.g. a REACT application. To achieve this, one step includes the creation of guest tokens (service accounts). This process is (in my opinion) not sufficiently well documented, which is why…
Airflow – Fill Dagbag takes too long
TLDR: It is possible to dynamically create dags with only one dag script. However, at task execution the original dag script will be parsed once again. This results in unnecessary parsing iterations of dags, which are not the parent dag…
PyTorch – expected scalar type Float but found Double
TLDR: The default datatype of a numpy array translates to double/float64. If a Tensor is created from that array using torch.as_tensor it will adopt that datatype, which is not compatible with the default datatype of a neural network model which…
Migrating existing OCI Kubernetes to VCN-Native Cluster with Terraform
Your OCI Kubernetes Cluster might have a little tool tip which states “migration required”. This is because, “in earlier releases (before March 16, 2021), Container Engine for Kubernetes provisioned clusters with Kubernetes API endpoints that were not integrated into your…
WSL 2 on Windows 10 – Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS
Once upon a time i installed WSL 2 on Windows 10 correctly, run it and also worked with it. However, i was messing around with BlueStack, an android emulator which uses hyper-V. After configuring all the gears to make it…
Training languagemodel – RuntimeError the expanded size of the tensor (100) must match the existing size (64) at non singleton dimension 1.
Context I trained a new languagemodel from scratch using huggingface’ framework and a preconfiguration of Roberta Model on a custom dataset. Now i wanted to vectorize a new dataset using the pretrained model. Observation I receive an error: Resolution This…
SentenceTransformer – float object is not subscriptable
TLDR: np.nan objects are of type float Observation I was trying to apply the SentenceTransformer (v2.2.0) on a list of custom documents to create embeddings for each of them, however i would get the error “TypeError: ‘float’ object is not…
Visual Explanation of Multi Head Attention
Why does changing the number of heads not change the number of parameters in the model? – In this post i want to present a short visual example of how changing attention heads impact the model architecture.
Recent Posts
How to attach block volume to VM instance in OCI
As a lot of cloud providers offer a free tier option of their products now, i wanted to run some tests on the Oracle Cloud Infrastructure (OCI) and encountered some actually trivial problems on how to increase the volume of my instance. TLDR:After…
pgadmin in Kubernetes – mount Permission denied
Null values and their pitfalls
Passing comma separated String to function / stored procedure to use with IN condition
Add leading zeroes to time
No post found!
Dockerized WordPress on a Raspberry Pi
How to run WordPress with Docker on a Raspberry Pi Why would you do that? The greatest advantage with this installation is that you can just play and fiddle around as you like and afterwards just clean it up by deleting the containers without leaving any residues of software. Having…