Articles
Mongoose bulkWrite upsert
Here is a code snippet for a bulk update with upsert using Mongoose:
Mongoose bulk update upsert
MongoDB's upsert option enables the creation of a new document if the query of an update operationdoesn't match any existing document. Basically, an update command with upsert creates a document if it does notexist already, and update it otherwise.
MongoDB K8s manifest
Here's a simple manifest to deploy MongoDB with data persistence in microk8s:
Modeling profile webpage
Foreign models are quite in demand in Japan and as such it is not uncommon for foreigners living there to have a side activity in the modeling industry. I had the chance to meet the manager a <a href="https://azs-group.jp/" rel="noopener noreferrer nofollow">AZS entertainment</a> and was told that the agency was currently recruiting. So, since I am always looking for new life experiences, I decided to join.
Minikube using insecure registry
By default, Minikube will not allow the usage of insecure docker registries. To change this setting, Minikube can be started as so:
Microk8s manage SSL certificates DNS entries
Microk8s provides settings to add a custom domain to its DNS settings. This article presents how to do so.
Managing router query parameters in Vue.js
URL query parameters are a convenient way to store the state of a view so that the user can return to it using the back button after navigating away. This short article introduces a method to add parameters to the current URL.
Managing disks in Linux
Hard disk drives (HDDs) and Solid state drives (SSDs) are currently the most widespread high capacity storage devices. When such a drive is connected to a computer running Linux, it can be found in the device directory <em>/dev/</em> under the name <em>sdX</em>, where <em>X</em> is a letter changing for each drive.
MQTThree
A simple framework using Three.js and MQTT to easily create digital twins
MQTT control dashboard
With the cloud native multi-user MQTT platform deployed, I started designing IoT devices that I could distribute to end users. However, without a GUI, interacting with those devices would be difficult. Of course, one could install applications like MQTT dash or similar but this would require tedious configuration such as MQTT broker and topics. I wanted to give users a simpler UX so I made this simple control interface that automatically displays a users devices and allows those to be controlled.