How to do arithmetic with Django template

## Introduction By using a module called django-mathfilters, you can perform arithmetic processing on the template. In this article, I'll show you how to implement it. ## reference [django-mathfilt

[Alibaba Cloud] Do something like SSI even with OSS / Function Compute

TL;DR [Last time](https://qiita.com/imaichiyyy/items/e216f691c02756d628a2), HTML with SSI (include virtual) described in AWS is stored in a specific bucket of S3 and the sources in the include are c

Learn about Go slices

This article is a translation and addition of [Arrays, slices (and strings): The mechanics of'append'](https://blog.golang.org/slices). Introduction One of the most common features of procedural

About Permission

<font color = red> <b> Caution </ b>: This article is for making security changes. We are not responsible for any problems or damages caused by this article, so please be sure to <b> be sure to do so

Check the behavior of destructor in Python

# Sample code * class_test.py * #### **`class_test.py`** ```python3 class SampleClass: num = 0 def __init__(self, number=1): SampleClass.num +=1 #Increment the class variable num by

How to implement Rails helper-like functionality in Django

## Introduction This article is a personal note when I first created an app in Django and looked for features like Rails helper. ## environment Python(3.6.2) Django(2.1.7) ## Custom template fil

NO MORE “cd: foo: No such file or directory”

# Never say “cd: foo: No such file or directory” again I'll do it once. #### **`Trying to enter a directory that does not exist`** ```python $ cd foo bash: cd: foo: No such file or directory ```

[Python] Sort apples and pears from pixel values using a support vector machine (SVM)

# 1. Overview This time, we used a type of machine learning, Support Vector Machine (SVM), to classify apples and pears. We investigated whether it is possible to classify apples and pears by applyin

I tried to make a simple mail sending application with tkinter of Python

# Introduction In this article, we will develop an application using Python. The standard library tkinter is used as the GUI library. The standard library smtplib is used for sending mail. If you

Reinforcement learning 2 Markov decision process / Bellman equation

[Aidemy](https://aidemy.net/) 2020/11/15 # Introduction Hello, it is Yope! I am a liberal arts student, but I was interested in the possibilities of AI, so I went to the AI-specialized school "Aidemy

Python3 Engineer Certification Data Analysis Exam Self-made Questions

# Overview This is a collection of self-made questions that I made as one of the study methods in the Python3 engineer certification data analysis test that I took in November 2020. I hope it will h

[Python] Rename all image files in a specific folder by shooting date and time

# Introduction How do you manage the photos taken with your mobile (smartphone) camera? In my case, after taking a picture to some extent, I copy it to my PC and erase it from my smartphone so that

I want to drop a file on tkinter and get its path [Tkinter DnD2]

# I feel like I can do it. It is a faucet. I'm not usually an engineer or anything. I don't really need it, but the windows on the street Usually when I drop a file, I feel like it's doing somethi

[Linux Mint 20] Turn an old iPad into a camera on a cameraless PC (droidcam)

The other day, when I tried to put ["droidcam" in Ubuntu 18.04 LTS](https://qiita.com/faz479704/items/f3745d209c8032d29555) in Linux Mint 20, the version has been upgraded from 1.5 to 1.6. , The proc

How to utilize multi-core from multiple languages

# How to utilize multi-core from multiple languages # Introduction In recent years, multi-core with multiple cores mounted on one CPU has become common. However, with the current programming languag

CentOS version confirmation command

# Click here for the command ``` cat /etc/redhat-release ``` For example, the result looks like this. CentOS Linux release 8.2.2004 (Core) # Serpentine CentOS is used as a file server and for wa

blender, python, spiral staircase

I made it with the idea of arranging cubes in a spiral and illuminating them to turn the camera. There are 124 rows in total, of which about 20 are cubes. The lighting part and the camera part are r

[Blender × Python] Create your own function & summary so far

In this article, I'll show you how to create your own functions to make it easier to do more versatile processing. # table of contents 0. What is a function? 1. Function type 2. Sample code to cr

[Inexperienced work / self-study] Story from receiving a job offer from an in-house developed company

# Author's profile Less than three years of programming experience Self-study # How long did you apply About 70-80 companies including applications via agents. Of these, about 15 companies have pa

A memo when checking whether the specified key exists in the defined dictionary with python

You can do as follows #### **`test.py`** ```python mydict = { "item1":"aaa", "item2": { "item21": "ddd", } } if "item1" in mydict: print("item1 exist!") else: pr

[Python] I thoroughly explained the theory and implementation of logistic regression

# Introduction In this article, we will implement logistic regression using tensorflow and sckit-learn. I summarized linear regression in the previous article, so please see the following article i

I made a lot of files for RDP connection with Python

# Introduction When it is necessary to make an RDP connection to multiple terminals, I thought that it would be troublesome to manually connect by looking at the Excel list, so I tried to make RDP fi

log.Fatal tries to terminate the program with exit status 1 after outputting the message

Conclusion: Read the documentation properly when using the API (´ ・ ω ・ `) The go languages `log.Fatal`,` log.Fatalf` and `log.Fatalln` issue` os.Exit (1) `after the message is output and try to te

Anaconda3 python environment construction procedure

# About this article This section describes the procedure for installing Anaconda on Windows 10 and creating a virtual environment. Virtual environments are a convenient way to develop your project'

Procedure from HTML to JSON Ajax communication of API server

# Introduction In the previous article, I used Kaggle's House Sales in King County, USA dataset to generate a learning model with XGboost machine learning and turn that learning model into an API se

Get comments on youtube Live with [python] and [pytchat]!

# See all the live comments I got live comments of all videos of Hinano Tachibana (vtuber). See [./Thinano/data/0IFEp1Bt3qw.json](https://raw.githubusercontent.com/1k-ct/Thinano/main/comment/0IFEp1B

[Python] Code that can be written with brain death at the beginning when scraping as a beginner

Every time you scrape #### **`test.py`** ```python from bs4 import BeautifulSoup ``` Since it is troublesome to write like this, I will create a template that is sure to use this for the time bei

Examine the parameters of RandomForestClassifier in the Kaggle / Titanic tutorial

# Introduction In the Kaggle / Titanic tutorial, we are learning with `RandomForestClassifier ()`. Adjust this parameter to see if the learning accuracy improves. # Data preparation ```python import

[Python] What a programming inexperienced person did before creating a tool

## Introduction I'm currently in my second year as an engineer, but in my first year I actually made a tool from the request "I wish there was such a tool". The tool I created is [here](https://gi

Clone the github repository on jupyter notebook

# memorandum Specify the working directory on notebook Git clone to any folder ```py import os os.chdir("C:\\Users\\user") os.listdir() ``` From here on the notebook ``` !git clone https://gi