[Golang] Test the function error termination "os.Exit (1)" with testing
> I want to test a function ʻos.Exit (1)` with `testing` in Go language (hereafter golang). [Google with "" golang "test" os.Exit (1) ""](https://www.google.com/search?q=%22golang%22+test+%22os.Exi
Docker + Django + React environment construction
## Dockerfile (for Django) ``` FROM python:3.9.0 ENV PYTHONUNBUFFERED 1 RUN mkdir /backend WORKDIR /backend ADD requirements.txt /backend/ RUN pip install -r requirements.txt ADD . /backend/ ``` ##
Prevent mistakes in the login target server by changing the text color of the terminal software
## Overview I think that you may have mistakenly logged in to the server you are logging in to, and you may have done the work in the internal environment. ## Therefore To reduce the probability of
[Python] How to use the graph creation library Altair
# Overview In this article, I will try to draw various graphs using the Python graph creation library [Altair](https://altair-viz.github.io/index.html). Altair is characterized by inputting data wit
Start Nginx with docker without putting Nginx in CentOS8
When posting to Qiia, [contents posted on my blog](http://www.ebios.club/article/477990521.html "Start Nginx with docker without Nginx in CentOS 8") for Qiia I decided to fix it and post it. The amou
Return the image data with Flask of Python and draw it to the canvas element of HTML
The image data acquired by Flask of Python is drawn on the canvas element of HTML. ## Thing you want to do Read the image data saved in Google Cloud Storage with Cloud functions and draw it on the
Setting to debug test by entering the contents of the library with pytest
# Synopsis When doing tests such as pytest and unittest, stepping through your own code may not solve the problem. In such a case, you may want to debug even the installed library. You can also se
Checklist using Checkbox Treeview → Text creation
# Background of code creation I wanted to write a list of equipment used for youtube videos in the explanation column, Isn't it different for each song? It would be easy if you could select it wi
Apply for SONY's NNC Challenge (use audio data to create something useful for AudioStock).
# 0. Who am I? I am a graduate student in the doctoral program in mathematics. My specialty is analysis, and I have little knowledge of computer algebra, let alone machine learning, but I sometimes u
[Information compression note 003] A plan to compress the story and board of a professor of electromagnetics at a dull university into one Jpeg.
I started an information compression notebook plan. That, a stubborn university professor's board writing. Even though I'm tinkering, I can't keep up with it because I sprinkle it up quickly. More
2nd Neural Network Console Challenge Realize similar song search
# 1.First of all [** Neural Network Console Challenge **](https://nnc-challenge.com/) (NNC Challenge) is an AI development tool developed by SONY ** Neural Network Console **, which is supported by
Django Tutorial (Blog App Creation) ⑤ --Article Creation Function
Last time, I learned how to implement unit tests in [Django Tutorial (Blog App Creation) ④ --Unit Test Edition](https://qiita.com/tmasuyama/items/cddbabbb566c00f54c89). Originally, I would like to
One-dimensional median filter (median filter)
A median filter often used in image processing. With OpenCV for a two-dimensional array of images median = cv2.medianBlur(img,5) It can be processed just by. If there are outliers in one-dimensio
The story that Python stopped working with VS Code (Windows 10)
# What happened + I was troubled that the type did not come out when I moused over the variable + Can't run in the first place + Notify in English that "Python is not included, so install it. From
Memorandum of Understanding when migrating with GORM
# Introduction Make a note of the part that I investigated a little around, such as model definition with `struct` and migration with ʻAutoMigrate`. ## To use UUID for ID While leaving the automati
I tried to automate [a certain task] using Raspberry Pi
# Introduction How does your company feel at the beginning and end of work? I think that there are things such as notifying by in-house broadcasting, starting work without permission when the time c
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 2 ~
# Series list (will be updated when all articles are completed) ## Create a model Django has an ORM (Object-Relational Mapping). ORM refers to the ability to convert between program source code an
[Linux] Change of authority, owner, owning group
## Introduction When I touched the Linux environment for the first time in a long time, I forgot the Linux command quite a bit, so make a note of it. ## Change permissions ``` cmd chmod [mode] [file
[Information compression note 001] Relationship between Terminal, Shell (Satomi Ishihara), and Kernel (Uncle)
 The reason for using the image of an oil company for Shell
Django input check and calendar input
Now that the skeleton has been created to some extent, we challenged the input assistance function so that it can be used conveniently when actually used. Prevention of erroneous input is important
[Unity] How to run ML-Agents Release 8 even for transcendental beginners [Windows]
# Disclaimer The person reading this article is a transcendental beginner, so I'm not responsible for any problems. In addition, it is considered that you have agreed when you read the article and pr
Pit pits that logs are not rotated in Fedora 33 (beta)
environment Fedora 33(beta) x86_64 cronie-1.5.5-4.fc33.x86_64 cronie-anacron-1.5.5-4.fc33.x86_64 logrotate-3.17.0-3.fc33.x86_64 systemd-246.6-3.fc33.x86_64 Symptoms I want to logrotate hourly, but
How to run Django on IIS on a Windows server
# This procedure is omitted below * IIS installation * IIS basic settings * Python installation * Django preferences # Creating a virtual environment Move to the target directory and execute t
Updated Rubik's Cube Robot software 6. Machine operation (Arduino)
# What is this article? I am currently developing a robot that solves a 2x2x2 Rubik's cube. This is a collection of commentary articles on the robot program. ).reshape([10,10]) img = np.zeros([100,100]) img[0:50,0:50] = 1 win_size = 2 def SlidingWindow(win_size,img): split_img = [] yx = [] for i in range(img.shape[0]-wi
Build Linux on a Windows environment. Steps to install Laradock and migrate
## Development environment Laravel 7.20.0 PHP 7.4 MYSQL 8.0.21 Windows version 2004 ## The general flow of the whole --Introduction of Ubuntu --Updated / introduced to WSL2 --docker installation
[Linux] Change user password
## passwd command ### If you want to change your password ```cmd passwd ``` You will be asked for your current password and new password, so enter them. ```cmd [~]$ passwd Change password for use
Machine Learning: Supervised --Decision Tree
# Target Understand the decision tree and try it with scikit-learn. # theory Decision trees are classified by constructing a tree structure by setting thresholds for features that are important fo
Proxy settings for urllib.request
urllib3==1.25.10 python==3.7.9 # When the proxy did not pass ```python import urllib.request proxy_set = urllib.request.ProxyHandler({'http' : 'http://123.11.111.111:0000',
CNN Acceleration Series ~ FCNN: Introduction of Fourier Convolutional Neural Network ~
# Overview With the advent of convolutional neural networks (CNNs), the field of image recognition has made great strides. Starting with AlexNet, various networks such as VGGNet and GoogLeNet have b