Windows11バッテリー節約機能を使用しない方法
環境
Winodws 11 Pro 22H2 4bit
操作方法
1.「スタート」ボタン→「設定」の順にクリックします。
2.左側の「システム」をクリックします。
3.右側に「電源と ...
Flutter Containerの上に枠線を表示するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Container(
decoration: BoxDecoration(
border: Borde ...
php htmlタグが含まれているかどうか判別するサンプル
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
preg_match( string $pattern, string $subject, array &$matches ...Flutter Columnの横幅を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
SizedBox(
width:/*横幅*/,
child: Column(
ColumnをS ...
Flutter Columnの上部にパディングを設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Padding(
padding: EdgeInsets.only(
top:/*上のパディング*/, ...
Flutter Column自体を左に寄せるサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Align(
alignment: Alignment.centerLeft,
child: Colu ...
RHEL9 grep コマンドでファイルのコメント行および空白行を削除する方法
環境
Red Hat Enterprise Linux release 9.2 (Plow)
書式
grep -v ‘^\s*#’ ファイル名 | grep -v ‘^\ ...
RHEL9 シリアルコンソール接続を有効にするGRUB 設定方法
環境
Red Hat Enterprise Linux release 9.2 (Plow)
前提条件
root 権限がある。
概要
シリアルコンソールは、ネットワークがダウンしている場 ...
RHEL8.6 grubを利用してIPv6を無効にする方法
環境
RHEL 8.6
操作方法
1.sedコマンドでipv6無効設定を置き換えます
# cp -p/etc/default/grub/tmp/grub.tmp
# cat/tmp/grub ...
RHEL9 PCP(Performance Co-Pilot)メモリー使用率が高い問題をトラブルシューティングする方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
pmproxy サービスデーモンは、Redis ストリームを使 ...
RHEL9 PCP(Performance Co-Pilot)最小限の設定のデプロイメント方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
最小 PCP 設定は、Red Hat Enterprise L ...
RHEL9 PCP(Performance Co-Pilot)メトリック収集のためのクライアントシステムの設定方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
中央サーバーが、PCP を実行しているクライアントからメトリッ ...
RHEL9 PMLOGGER の設定ファイルの手動編集方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
指定したメトリックと間隔でカスタマイズしたロギング設定を作成す ...
PHP MySQL SELECT文で近い値のデータでソートして取得する
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
select * from `テーブル名` WHERE `カラム名` ORDER BY ABS(uid – 数値) ...
PHP globで任意のディレクトリ下にあるファイルを一覧取得する
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
glob(string $pattern, int $flags = 0): array|false
glob() 関数 ...
PHP 指定する日付より古い更新日のファイルかどうか調べるサンプル
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
foreach (glob(‘ディレクトリ/*.csv’)
指定ディレクトリにファイルを一覧取得 ...
Swift Button内のビューを右に寄せるサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
構文
Button(“xxx”){
//処理コード
}
.frame ...
Windows11 コントロールパネルで時刻を同期する方法
環境
Windows 11 Pro 22H2 64bit
操作方法
1.スタートメニューの検索フォームに と入力します。
2. をクリックします。
3.「時計と地域」をクリックしま ...