Ubuntu 23.04

環境
Ubuntu 23.04
OpenSSH

概要
特定のユーザーに対して、シェルへの制限をかけて SFTP のみを許可し、
Chroot 有効にして特定のディレクトリ配下のみアクセスでき ...

Ubuntu 23.04

環境
Ubuntu 23.04
OpenSSH

概要
クライアント用に SSH 秘密鍵、サーバー用に SSH 公開鍵を作成し、鍵ペアによる認証でログインできるようにします。

操作方法 ...

Python

環境
Windows 11 Pro 64bit
Python 3.11

構文
array.min(axis=0)
Numpyの配列からmin()メソッドを呼び出します。
min()メ ...

Python

環境
Windows 11 Pro 64bit
Python 3.11

構文
import matplotlib.pyplot as plt
//グラフを描画する前に、axes()を呼び出し ...

Python

環境
Windows 11 Pro 64bit
Python 3.11

構文
plt.xlim(最小値, 最大値)
第1引数に最小値、第2引数に最大値を指定します。
グラフのx軸の最 ...

Python

環境
Windows 11 Pro 64bit
Python 3.11

構文
条件式を返す関数 = filter(function, 対象の配列名)
引数1に1つの引数を持つ関数、引数2に対 ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文
カードをタップ出来るようにするには、GestureDetectorを使います。
GestureDetector ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文
showCheckboxColumn: false,
DataTableのチェックボックスを非表示に設定するに ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文

headingRowColor: MaterialStateProperty.resolveWith((states) ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文
DataTableにDataRowを追加するには、リストの変数を使います。
作成方法
1.表示するDa ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文

headingRowHeight: 0,

DataTableのヘッダーを非表示にするには、引数「headingRow ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文

SingleChildScrollView( scrollDirection: Axis.horizontal, //引 ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

操作方法
1.pubspec.yamlでパッケージを追加します。
dependencies:
webview ...

Ubuntu 23.04

環境
MariaDB 10.11.2
Ubuntu 23.04

操作方法
1. MariaDB を停止します。

# systemctl stop mariadb

2.既存データを削除する ...

MariaDB

環境
MariaDB 10.11.2
Ubuntu 23.04

操作方法
1.バックアップツールをインストールします。

# apt -y install mariadb-backup

2. ...

MariaDB

環境
MariaDB 10.11.2
Ubuntu 23.04
SSL/TLS 証明書の取得済み

操作方法
1. 作成した証明書をコピーする

# mkdir/var/lib/mysql ...

Python

環境
Windows 11 Pro 64bit
Python 3.11

構文
datetime.utcnow()
utcnow()は、UTCの現在の日付と時刻を保持するdatetimeを生成 ...

Python

環境
Windows 11 Pro 64bit
Python 3.11

構文
plt.ylim(最小値, 最大値)
ylim()を使って、y軸の最大値と最小値を設定します。

使用 ...