Entries from 2020-01-01 to 1 year
I use multiple PCs and have Visual Studio Code (VSCode) installed on each PC. I often think that if VSCode could be used on a browser, it would be easier to use the same environment anytime without the need for setup. GitHub Codespaces is …
I usually use Visual Studio Code (VSCode) to write programs, but I have recently been experimenting with an editor/development environment that runs in the browser, because I want to complete my work using only the browser and not VSCode. …
When I try to log into the Kubernetes Dashboard. Not Found (404) the server could not find the requested resource and how to deal with the error. Reason Older Dashboards used "kube-system" for "namespace", but more recent Dashboards use "k…
I have been using WSL1 and was thinking of using WSL2 sometime in the future when it becomes more stable, but now I have moved to WSL2 out of necessity. I'm going to write about the transition from WSL1 to WSL2 and the related Docker and X…
When I create a TypeScript React app with create-react-app app-name --template typescript and try to edit it in VSCode, I get the following error message Cannot use JSX unless the '--jsx' flag is provided. ts(17004) error. I found out that…
I had hoped to be able to create a quick SPA site on the spur of the moment, but I had given up on React because it is too big a job to create even a small site. However, I recently started touching Recoil for React, and with Recoil, React…
I previously tried to handwrite an AWS CloudFormation template and failed.... www.ekwbtblog.com What I learned at that time was that CloudFormation templates are not the kind that can be written by hand, but rather generated using some kin…
Shell scripts use the jq command to retrieve data from JSON. I often forget how to use it, so here is a memo for my own use. Basic Basic operation "takes input from standard input, filters it, and outputs it to standard output." . represen…
Redux is well-known for state management in React, and as a mass panderer, I am using Redux as usual. However, there are a few areas where I find it hard to use Redux. One is that there are many boiler plates anyway. Just adding or modifyi…
This is a note on how to try React's Concurrent Mode in TypeScript, which is not yet officially released at this time. Since type-related errors often occur, we have included a note on how to deal with them. install Create a TypeScript tem…
This is a memo on how to use SQLite with JavaScript. We did not elaborate too much, but focused on the minimum necessary functions. I will not go into the usage of SQLite itself, but please refer to this way (direction close to the speaker…
PS Now there is another, better way, which is shown below. www.ekwbtblog.com To the UI for specifying the display range of time series graphs The default is to show the most recent X days, and you can specify any date in the calendar when …
Programs written in JavaScript (TypeScript) were rewritten in the Go language. I will write about the motivation and the results of the rewrite. Also, since this was my first time using the Go language, I will also write about what the Go …
My child loves the ajitama from the ramen shop and requested to have it at home. I bought several kinds of ajitama at the supermarket, but none of them satisfied me, either because they did not taste like ramen noodles in the first place, …
Goroutine Leak The Go language is a fascinating language because it is so easy to create goroutines (like threads). However, since the goroutine is executed separately from the main flow, it was unnoticed when the goroutine process stopped…
How to notify Slack or email when an error occurs in a container with Google Kubernetes Engine (GKE)
This is a way to notify external parties such as Slack or email when an error occurs in a program in GCP's Kubernetes (GKE). You do not have to implement your own error detection mechanism, only GCP settings can do this. How it works When …
There are times when you have many tasks that you want to process in parallel, but executing all of them in parallel would be too heavy, so you want to specify the number of tasks to be executed concurrently. I am ashamed to admit that I d…
I usually use puppeteer for web crawling and I use Docker to run puppeteer. I had to add a crawl item and when I modified the program and built and ran it on Docker, it did not work with the following error. /node_modules/puppeteer/.local-…
When processing data, we tend to be lazy and read all the data into memory before processing it. This is not a problem when the data size is small, but when dealing with huge data, it consumes a lot of memory and takes a long time because …
Tableau is intuitive, and you can create graphs by dragging and dropping with the mouse. However, when trying to port Excel graphs to Tableau, sometimes it is not possible to create a graph properly using only mouse operations. Such graphs…
I started with the Go language. When I learn something new, I like to read a book that gives me a one-stop, systematic overview. I read "Concurrency with Go Language" this time, and it was so good that I wrote my impressions here. Concurre…
The Go language is often programmed by combining simple functions, and error checking occurs for each function, so the code in general tends to be long. Even when I want to do something small, I need to write code accordingly, but it is te…
The Go language is often programmed by combining simple functions, and error checking occurs for each function, so the code in general tends to be long. Even when I want to do something small, I need to write code accordingly, but it is te…
I have a project that uses SVN and I may download the latest files from there. This is a minimal SVN command memo to be used when you just want a specified file, and you want to retrieve such a little file. svn installation sudo apt-get in…
The Go language is often programmed by combining simple functions, and error checking occurs for each function, so the code in general tends to be long. Even when I want to do something small, I need to write code accordingly, but it is te…
The Go language is often programmed by combining simple functions, and error checking occurs for each function, so the code in general tends to be long. Even when I want to do something small, I need to write code accordingly, but it is te…
It's been a while since I installed the AWS CLI. I see that it is now at version 2. Once you set it up, you don't have a chance to touch it and forget about it, so here is a memo on how to set it up for yourself. Basic Structure Set profil…
The Docker Compose project name is the name of the directory where the docker-compose.yaml file is located. However, there are many cases where you may want to give a directory a different name. In such cases, you can specify the project n…
I was writing a program in Golang and the program was getting long, so I decided to break it up into packages. configuration The directory structure is as follows. . |-- a | `-- a.go |-- b | `-- b.go `-- main.go procedure Square Needle Use…
I started Golang. Golang, like C, has a simple syntax and data structure, but it also incorporates advanced concepts to increase productivity. And for that reason, Golang has some slightly tricky syntax. However, without knowing them, I ma…