ytyng.com

Latest Articles

Page 7
AWSPython
2021-10-15 11:53 (4 years ago)

When encountering the error "elasticsearch.exceptions.UnsupportedProductError: The client noticed that the server is not a supported distribution of Elasticsearch," it occurs when using the Python Elasticsearch library version 7.14 to connect to AWS OpenSearch/Elasticsearch.

2021-10-11 09:25 (4 years ago)

When saving secret information locally in a file named .env and registering it with Kubernetes:

Python
2021-10-10 09:45 (4 years ago)

Introducing code that uses `xml.etree.ElementTree` in Python to create and post XML data.

2021-08-26 10:48 (4 years ago)

Summary of the Japanese blog article: Cases of MacBook Pro (Intel) suddenly slowing down. This often occurs when recovering from standby. Keyboard input becomes extremely sluggish, making it impractical to use. Previously, the cause of this issue was unknown, but it has now been determined that the CPU frequency of the Mac is clocking down.

2021-08-20 12:27 (4 years ago)

Here is an overview in English of a blog post discussing a web application: The code for a web application that takes a URL included as a parameter in a request URL, makes a request to that URL using headless Chrome, captures a screenshot, and returns it in the response. The service is implemented in Python using Bottle and gevent.

Flutter
2021-08-08 08:43 (4 years ago)

When attempting to run the command `% flutter downgrade v1.22.6`, you may encounter the error message "There is no previously recorded version for channel 'stable'." This prevents the downgrade. To successfully downgrade, you should use `git checkout` in the Flutter SDK directory.

2021-08-07 07:03 (4 years ago)

I upgraded Ubuntu from version 18 to 20, and after the upgrade, I noticed that when retrieving data from MySQL 5.7 RDS using Django, all Japanese characters were displayed as ????????. Running `mysql> show variables like "%chara%";` revealed that character_set_client and other character sets were set to latin1. Ideally, these character sets should be set to utf8mb4.

Windows
2021-07-13 12:33 (4 years ago)

Creating a dashboard and advertisement slideshow as a web application on a website, and displaying it on Windows digital signage.

Python
2021-06-09 04:24 (4 years ago)

Here's an introduction to a code snippet that waits for an element to disappear, using Pyppeteer, which is Python's version of Puppeteer. The same approach should work similarly in Puppeteer's JavaScript version.

2021-03-30 12:05 (4 years ago)

When specifying a CharField in Django Admin's list_filter, if the CharField does not have choices specified, it will fetch all distinct values from the records, which can be quite slow if there's no index. In such cases, if choices can be specified for the CharField, doing so will eliminate the need for an SQL query, significantly speeding up the process.

Python
2021-03-30 11:44 (4 years ago)

Even though the Pipfile specifies ```plaintext [packages] ... Werkzeug = "<1.0.0" ``` running ```plaintext pipenv install --system --skip-lock --dev --deploy ``` installs version 1.0.1.

2021-03-21 12:08 (4 years ago)

When installing Visual Studio Code, you will be asked whether to add it to the PATH. By turning this option ON, you will be able to start VSCode using the `code` command. However, the `code` command is actually `code.cmd`, and just using `code` will not allow it to be started from Flutter's `Process.run`. Therefore, you need to include the `.cmd` extension.

2021-03-20 13:05 (4 years ago)

The dio library for Dart (Flutter) (https://pub.dev/packages/dio) is user-friendly compared to commonly used HTTP libraries, as it allows for easy handling of cancellations, GET parameters, timeouts, JSON, and more. However, in version 3.x, there is an issue where all HTTP headers are sent in lowercase.

mac
2021-03-20 09:24 (4 years ago)

Sometimes, USB memory sticks that have been used for creating OS installation media may have a corrupted partition table, making it impossible to format them using the "Disk Utility" app.

Flutter
2021-03-12 02:02 (4 years ago)

By writing and evaluating the code mentioned in the article, you can suppress warnings related to self-signed certificates (also known as "my own certificates").

2021-03-07 02:45 (5 years ago)

When developing with Nuxt + TypeScript and encountering the error "Environment key 'es2021' is unknown" while updating dependencies, make sure to update eslint to version 7 or above.

kubernetes
2021-02-16 06:53 (5 years ago)

You can achieve this by writing the installation script in the args section of deployment.yml.

kubernetes
2021-02-11 14:11 (5 years ago)

After using a large Kubernetes cluster within the company, I overlooked something when switching to a small EKS cluster for testing. When I checked the deployment to try to start the alb-ingress-controller, I found that the READY status was 0.

Docker
2021-02-10 00:38 (5 years ago)

Here's the overview of the Japanese blog article translated into English: "RUN apk --no-cache add tzdata \ && cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime \ && apk del tzdata or ENV TZ=Asia/Tokyo RUN apk --no-cache add tzdata Which one to choose? Using the former along with ENV TZ= does not work properly."

Dockermac
2021-02-10 00:25 (5 years ago)

When building a Docker image on a Mac, you might encounter the "no space left on device" error. This can happen even when there seems to be enough storage space available, leaving you puzzled about the cause.