A note for me that I can't add an external repository with rpm --import on Amazon Linux2
I am When I tried to thrust Metricbeat, I encountered a [Reading problem](https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/add-repositories.html), so I will leave a note. ``` [ec2-user@i
Go Language-Basic ❶
# Basic ❶ I'm going to write the understanding of Go from the basics of programming! ### What is a character string? ```go package main func main(){ println("Hello, Go") } ``` Error occurs if not
I implemented NSGA-Ⅲ, which is a multi-objective optimization problem.
* Articles sent by data scientists from the manufacturing industry * This time, NSGA-Ⅲ was implemented (using sample code) in the multi-purpose optimization method. ## Introduction I will introduc
[Stable at the beginning of the month] Considering the purchase timing of funded investment
<br> Synopsis <br> If you want to start a funded investment every month, you need to set a purchase date. It is generally said that the dollar cost averaging method makes ** long-term returns almos
Bar graph display in pandas (basic edition)
# Thing you want to do * I want to read CSV data with pandas and display a bar graph. * I want to customize the color and size of the graph. * Since the purpose is to learn basic operations, the
[SIGNATE] [lightgbm] Competition House price forecast for the American city of Ames Participation record (1/2)
# Introduction Competition for Bigginer held at SIGNATE [[5th _Beginner Limited Competition] House Price Forecast in Ames, USA](https://signate.jp/competitions/401), so I will write a record of part
Resize multipart.File type image with golang ~ Upload to S3
# Overview While developing the API server made by golang individually, I implemented the logic to edit the image file received from the front side such as resizing and upload it to S3. At that time,
Wagtail Recommendations (6) Add categories and tags
# Introduction Last time, we introduced the page class `PostPage`, which is the image of a block post, so this time, let's add the tag and category functions to it. This is a frequent topic, for exa
[Python] I want to know the variables in the function when an error occurs!
# Introduction How do you guys debug? Is it common to use a debugger or something like `Pdb`? Aside from that, when an error occurs, you want to see the local variables in the function for the tim
How to access environment variables in Python
# How to access environment variables ### Module import ``` import os ``` ### Access environment variables In Python, environment variables are stored in the `environ` of the os module. The type
Markdown to get Jupyter notebook results to Qiita
I'm using Google colaboratory and when I want to upload the resulting Jupyter notebook file (.ipynb) to Qiita, I convert it to markdown, but I can't remember immediately if I want to do this on the c
Execute ssh script with iOS shortcut app: Rasberery Pi and Linux operation progress!
## Introduction Do you use the iOS shortcut app? I haven't used it at all until recently ... However, recently I have come to feel the infinite possibilities of the combination with Rasberry Pi (*
How to kill a process instantly with Python's Process Pool Executor
# Introduction There are several ways to multi-process parallel tasks in Python. One of them is [concurrent.futures.ProcessPoolExecutor](https://docs.python.org/ja/3/library/concurrent.futures.html#
[python] Method to darken RGB value in hexadecimal notation
#### **`python`** ```python def darken(rgb, rate=0.5): rgb = rgb.replace('#', '') s = '#' for i in [0,2,4]: c = rgb[i:i+2] c = int(c, 16) c = int(c * rate)
Invest in stocks with large price fluctuations of 1,000 yen or less per share to improve performance
# Introduction Last year, due to the spread of the new coronavirus, the market price (stock price) went up and down sharply. Starting with Pfizer's successful vaccine development on November 18, la
Compute the partition function with the sum-product algorithm
I was reading "Pattern Recognition and Machine Learning" and decided to implement the sum-product algorithm in Chapter 8. However, I couldn't immediately think of a concrete Bayesian network example,
[Caution] Specify system dictionary or user dictionary with mecab [Windows]
I used MeCab in python and I was caught in the dictionary specification, so I will leave it as a memorandum. The background is that it was necessary to switch the user dictionary between one process
[Apache] The story of prefork
### Overview The story of prefork. I will expand from the story what prefork is ### TCP communication flow in the first place To communicate with a TCP client/server on Linux, the server side lis
Import of japandas with pandas 1.0 and above
It seems that an error occurs when using japandas in an environment of pandas 1.0 or higher. The implementation of the solution to this problem is publicized on japandas github. However, although t
Just add the python array to the json data
Just add the python array to the json data # code #### **`test.py`** ```python #!/env/python import json def addJson(list): # state data to json json = { "parameter": list, }
python chromedriver automatic update
I'm doing a simple RPA with python, I had to update the chrome driver manually, but the annoyance was the limit. .. The following article was useful when I raised my heavy waist and investigated.
Manim's method 11
# Overview I checked manim's method. I tried using Animation. # Sample code ``` from manimlib.imports import * class FuncRotater(Animation): CONFIG = { "rev_func" : lambda x : x, } def int
It is blocked by Proxy, a connection error occurs in Python or pip, and it is retried.
Since the in-house developed environment is connected to the network via a proxy server, Every time I get a network error. For example, if you simply execute pip at runtime, Retrying will be repea
About Opencv ③
Notes about Opencv3 series Basically, it is a thing while checking the official document. About memos [About Opencv ①](https://qiita.com/bobrock/items/d410db7ac71908eb2ecf) [About Opencv②](http
Tank game made with python About the behavior of tanks
I'm studying python and I've been able to make tank behavior very well, so I'll introduce it. The behavior is like how to transcribe the movement of a tank into code. I used python, but I think it's
Upgrade the Azure Machine Learning SDK for Python
# Introduction The Azure Machine Learning SDK for Python consists of many libraries, and if you upgrade only one, the versions will be different between the libraries ... Therefore, it is necessary
Go Language-Basic ❷
# Basic ❷ I'm going to write the understanding of Go from the basics of programming! [Go language-Basic ❶ is here](https://qiita.com/coxcoa/items/01cd4e30e965bcebb3ee) ### Difference between variab
Python Mathematics Series ③ Determinant (replacement)
## About this series I am proceeding with the understanding while implementing it in python to deepen my understanding of mathematics. For the time being, I will do linear algebra. I didn't like math
About Go error handling * This is a rough article.
<b> Go has no exception mechanism, but you can implement the following error handling by taking advantage of the feature that the function can return multiple return values. #### **`python`** ```go
Learn cumulative sum in Python
# What is cumulative sum? One of the search methods. Since the number of calculations is smaller than that of the full search, the speed of the search can be increased. As the name of cumulative sum,