Recognize USB devices with LicheePi Nano

# LicheePi Nano USB The SoC F1C100s on board has one USB OTG port. However, as of 09/13/2020, the [nano-5.2-tf branch] of LicheePi github (https://github.com/Lichee-Pi/linux/tree/nano-5.2-tf) cannot

Build a development environment with Poetry Django Docker Pycharm

# Introduction It's been a year since I started python, but I'm still not used to building a Python environment. Package managers in particular feel like the weakest of many languages. For some re

2. Multivariate analysis spelled out in Python 8-3. K-nearest neighbor method [cross-validation]

* [Previous](https://qiita.com/y_itoh/items/b9664f9dfce096f8cdd6) visually grasped the difference between ** two types of weight functions uniform and distance ** in the k-nearest neighbor method. *

Query from python to Amazon Athena (using named profile)

# Introduction I sometimes connect to Athena with AWS CLI on windows command line, Anyway I wanted to get the query result and draw the graph, so I thought I would do it with python. There was a

[Ruby on Rails] Display and pinning of GoolgeMAP using Google API

# Target ![名称未設定.mov.gif](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/700999/5b400080-fbe3-28ef-de6a-b8b7d3699b8f.gif) # Development environment ruby 2.5.7 Rails 5.2.4.3 OS: macOS Ca

Sample to reference Poetry project on GitHub

# Introduction The biggest difference between Pipenv and Poetry is that Pipenv can't be used in library projects, but I thought Poetry could be used, so I studied Poetry. This is a sample that in

If you get a no attribute error in boto3, check the version

## boto3 error When I used put_function_event_invoke_config of boto3, ```python import botocore import boto3 client = boto3.client('lambda') response = client.put_function_event_invoke_config(

Use Python-like range with Rust

# Introduction Here's how to use a Python-like range in Rust. It can be used as follows. ```rust // for i in range(5): // print(i) for i in range!(5) { println!("{}", i); } // for i in r

How to study Python 3 engineer certification data analysis test by Python beginner (passed in September 2020)

This time, I passed the "[Python3 Engineer Certification Data Analysis Test](https://www.pythonic-exam.com/exam/analyist)", so I will describe how to learn it. # ■ Author information (as of August 2

[TensorFlow 2.x (tf.keras)] Fixed random number seed to improve reproducibility

I will show you how to fix the random number seed with `Tensorflow 2.x` (` tf.keras`). ## Execution environment * Python: 3.6 | 3.7 * Tensorflow: 2.0 | 2.1 | 2.2 | 2.3 * Tested on GitHub Actions

Python-Mouse and keyboard operation with pyautogui

# Introduction Do you know that you can operate the mouse and keyboard automatically? With pyautogui, you can easily operate the mouse and keyboard. # Basics of pyautogui moveTo The moveTo functio

I tried using Rotrics Dex Arm # 2

This is a continuation of [# 1 using Rotrics DexArm](https://qiita.com/lumbermill/items/638826797a5d2ee0ff70). There is no sign that the SDK will come out, so I will manage to send GCode by serial co

Use Trello API with python

I had a chance to use Trello API with python, so I will summarize it. ## Preparation ```python from trello import TrelloClient import requests key = '***********' token = '***********' trello = Tre

Work memorandum (pymongo) Part 1. Basic operation

# <a name="top"> <a> About this article </a> I used pymongo at work, so I created this article as a memorandum. I will write it separately below. 0. Basic operation (this page) 0. [What is MongoD

Easy tox environment with Jenkins

# at first Do you guys test it? "Tox" that executes unit tests in Python in multiple environments. It's convenient, isn't it? If you create a CI environment with Jenkins, you can check the operatio

Modern typing starting from Python 3.8 vol.1 (without class)

# introduction I recently read O'Reilly's Programming TypeScript and was very impressed. The depth and fun of Generics, the increase in function and object information due to the presence of types,

Solve with Python [100 past questions that beginners and intermediates should solve] (028 --033 breadth-first search)

# 1. Purpose Solve [100 past questions that beginners and intermediates should solve](https://qiita.com/e869120/items/eb50fdaece12be418faa) in Python. The goal is to turn light blue by the time you

[CovsirPhy] COVID-19 Python Package for Data Analysis: Data loading

Introduction We are creating a Python package [CovsirPhy](https://github.com/lisphilar/covid19-sir) that allows you to easily download and analyze COVID-19 data (such as the number of PCR positives

How to set up WSL2 on Windows 10 and create a study environment for Linux commands

## Introduction Based on the information linked below, I set up to use WSL2 on Windows 10 and installed Ubuntu to create an environment where I can type Linux commands. [WSL2 Installation Guide for

Linux Frequently Used Commands [Personal Memo]

# [Linux frequently used commands] This is a memo of Linux commands that are often used in business. ## Basic commands cd command Move directory Is command View the contents of the directory

Get the desktop path in Python

How to get the desktop path in Python for both macOS and Windows. There are many, but it's easy to use os.path.expanduser. #### **`get_desktop.py`** ```py import os desktop_dir = os.path.expandu

Create an exe file that works in a Windows environment without Python with PyInstaller

A memo that I made a trial and error to run the created machine learning program in a Windows environment where Python is not installed. The environment is as follows * Python 3.6.8 * PyInstaller

django table creation

Last time, I even created an app. Today, let's start the server easily and check that the server starts up and is displayed properly. First of all, in order to call the function to the URL of the

Codeforces Round # 639 (Div. 2) Bacha Review (9/4)

# This time's results ![スクリーンショット 2020-09-04 16.07.10.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/331393/6c54099e-4d60-7e1c-1af9-b16a48facf47.png) # Impressions of this t

[django] model mods may or may not be updated

# Introduction Did you know that model modifications may or may not be updated? I didn't know I checked it # When modified is updated ```python user = User.objects.get(pk=1) user.name = 'hoge' us

A brief summary of Linux antivirus software for individuals

## Eh, EOL? I usually use filunK with a Linux laptop. This time, __ Your favorite antivirus software Sophos Antivirus for Linux (SAV for Linux) is no longer supported. There is no announcement tha

[Python] The value written in Openpyxl is displayed in exponential notation (E).

# Problems that occurred The value written in the Python library openpyxl is displayed in exponential notation using E. #### **`sample_code.py`** ```python import openpyxl wb = openpyxl.open('./B

Try to predict cherry blossoms with xgboost

Try to predict cherry blossoms with xgboost Use data from March of last year to February of this year Python Beginner Machine learning # 1. Purpose There was an AI Sakura prediction, and there w

Get battery level from SwitchBot in Python

# Introduction The problem with using SwitchBot is that the battery is dead. You can check the battery level by opening the official app, but you don't see it on a daily basis, and you're familiar w

Convenient writing method when appending to list continuously in Python

It seems that you can write without writing append many times as shown below. ``` >>> v = [] >>> a = v.append >>> a('aaa') >>> a('bbb') >>> v ['aaa', 'bbb'] ```