Hot reload with Go + Air

# Introduction As a tool to hot reload when changing files in Go I would like to use [cosmtrek/air](https://github.com/cosmtrek/air). # environment go: v1.15.3 # Project creation ```zsh % mkdir sa

Updated home watching camera: Summary

## Introduction This article is a sequel to my previous post ["Easy configuration of home watching camera with OpenCV + HTML + JavaScript!"](https://qiita.com/tenkoh/items/47b94a55af48eb704db5). --

Django Template notes

# Note memo Commenting out the {%%} part in Template does not work with normal commenting out. So, if you delete it properly, you should be able to solve the error caused by Template. (Scheduled

Every time I draw a graph with python, I check it, so I will summarize only the simplest usage

# Every time I draw a graph with python, I check it, so I will summarize only the simplest usage I'm using jupyter notebook. If it's not a jupyter notebook, you don't need "% matplotlib inline" #

JupyterLab3.0 Debugger Installation Method for Windows

## Jupyter Lab 3.0 released The long-awaited visual debugger is included, making it easier to use! https://blog.jupyter.org/jupyterlab-3-0-is-out-4f58385e25bb Simply increasing the version does no

UnionFind in python (enhanced version: strings and tuples are allowed for elements)

# Introduction Although it is the famous Union Find, there are few elements of the set that can handle strings and tuples, so I will write an article. I haven't encountered many useful situations, so

Normalize the file that converted Excel to csv as it is.

[Sendai Central Wholesale Market](http://www.city.sendai.jp/chuo-kanri/kurashi/shizen/nogyo/nosanbutsu/oroshiuri/index.html) data is finally available in csv. But #### **`seika.csv`** ```text Se

Solve higher-order equations with integer type (no multiple solutions)

This time, we will solve a higher-order equation with an integer type. The equations to be solved are the same as the equations solved by [Solving higher-order equations with 4 clusters I](https://qi

Build an MS compatible L2TP/Ipsec VPN client on Fedora 33

After installing Fedora 33 Since it is a test, promote it to root <pre> sudo passwd root su yum install -y xl2tpd NetworkManager-l2tp NetworkManager-l2tp-gnome </pre> Fedora 33 seems to use libre

Unable to install Python with pyenv

It's a complete note. It will be implemented on other PCs, so I will add it when it occurs. It happened on a Macbook that I haven't touched for a while. ``` BUILD FAILED (OS X 11.1 using python-bui

Download and import files with Splunk external python

What is the best practice for this? I've done it for the time being, so I'll introduce it. # Prerequisites [Last CSV](https://qiita.com/toshikawa/items/901b2d68461dd1ae085c) Create Apps `seika`

I tried to paste

Settings for viewing Python code in the Windows GUI emacs for the time being. elpy introduction © Copyright 2014, Jorgen Schäfer Revision 4032c725. https://elpy.readthedocs.io/en/latest/introduction

Effective Python Learning Memorandum Day 13 [13/100]

# Introduction The other day I learned about 100 Days Of Code, which was popular on Twitter for a while. The purpose of this article is to keep a record and output how much I, as a beginner, can gro

Q. Do you want to do something like generics that takes value from []?

Q. Do you want to do something like generics that takes value from []? A. Yes. (Use `__class_getitem__`) ```python class Hello: def __class_getitem__(self, v): return v print(Hello["sh1ma"

Linux screen distribution on Ubuntu Memo that wants to be a Linux screen distribution YouTuber

## background I want to be a Linux screen distribution YouTuber by distributing my own cool Linux work screen and the screen of a cool OpenGL/Vulkan application on Youtube. ### Video capture Ther

Create a poster with matplotlib to visualize multiplication tables that remember multiplication

There is a "multiplication table", isn't it? This is the one when children learn multiplication in Japan. "Inichi gaichi, innigani, insan gasan," is the one. The multiplication table is convenien

[Python] When the priority is the same in Priority Queue, it can be acquired in the order in which it was added to the queue.

# Introduction Various queue classes are defined in the queue module of Python's built-in. There is a priority queue ([Priority Queue](https://docs.python.org/ja/3/library/queue.html#queue.PriorityQ

Find the geometric mean of n! Using Python

# Introduction I am a beginner who is currently studying Rails on my own. As a hobby, I use Python for numerical calculations. This time, when $ n $ is infinite, the geometric mean of $ n! $, That i

AWS CDK with Python

* Timely update # Building a CDK environment CDK version: 1.83.0 (build 827c5f4) ## Advance preparation Install Python 3 and AWS CLI. Install the AWS CLI because it's needed (but not necessarily

[Python] I was addicted to not saving internal variables of lambda expressions

As a list of basis functions when doing linear radial basis regression ```python bases = [lambda x: (torch.exp(-((x[..., 0] - x_mean)/std_x) ** 2 - ((x[..., 1] - dx_mean)/std_dx) ** 2)) fo

Deep Learning technology go leela on linux

## I use endevour, it's an arch system. In the case of manjaro, it is written at the back ![1.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/211097/57473f90-d07f-5877-4cdc-b491392b

[Python MinMaxScaler] Normalize to 0 ~ 1

Normalization using sklearn.preprocessing.MinMaxScaler # What is MinMaxScaler normalization? Conversion from 0 to 1 by the following formula ![image.png](https://qiita-image-store.s3.ap-northeast

Pythonic thinking

The <b> pythonic style is neither controlled nor enforced by the compiler. </b> Python programmers prefer to be explicit, choose simplicity over complexity, and maximize readability. It's important

[Spotify] Looking back on 2020 with playlists --Part.2 EDA (basic statistics), data preprocessing

## Introduction The Spotify API returns the analyzed musical parameters for each song. Get a list of songs that include those data and analyze the trends of the songs you listened to in 2020. (It'

Notes on what to do if "macOS 11 or later required!" Appears in Big Sur or pyarrow2.0.0 cannot be installed

Introduction ======= It's a trouble around the environment that comes up regularly, but this time it was caused by upgrading the OS of Mac to Big Sur. ## Summary of troubles --When using python w

LINEBot executes processing when it receives images, videos, and location information @Go

I played around with the LINE Bot that I made earlier to return the parrot. https://qiita.com/endo-yuki/items/1a0ddfe857674be6044b With reference to the document, we added a process to return a mess

Create a Python virtual development environment on Windows

# Introduction I was researching various things because I wanted to use python on Windows, but I went back and forth when building the environment, so I will output it as a memorandum. Write the cod

[Data science memorandum] Confirmation of the contents of DataFrame type [python]

# head () function Check the first 5 lines of data. `` Variable to which DataFrame is assigned .head () `` By specifying a number in parentheses, it is also possible to display data for the specif

Shell programming

# Study record Shell programming 1/12 ## What you studied --Set file permissions. Write / read and execute operations, etc. --echo command (display characters) --read command (set variables) ## W

Apply monkey patch to all methods of pytest test class

## Failure ```python class TestHoge(): def setup_class(cls, monkeypatch): monkeypatch.setattr(target, 'TargetObj', MockObj) ``` Returns the following error: `TypeError: setup_class() miss