Kotlin isEmpty()でList(リスト)の空判定をするサンプル
環境
Windows11 pro 64bit
java 19.0.1
kotlin 1.7.20-release-201
構文
リスト変数名.isEmpty()
isEmpty()は ...
kotlin shuffled()でList(リスト)からランダムな要素を取得するサンプル
環境
Windows11 pro 64bit
java 19.0.1
kotlin 1.7.20-release-201
構文
リスト変数名.shuffled().first()
l ...
Swift VStackを使ってテキストを右寄せにするサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
VStack(alignment: .trailing) { xx ...AWS ファイアウォールポリシーを削除する方法
環境
AWS VPC
操作方法
1.VPCコンソール画面に移動します。
2.左側に「ネットワークファイアウォール」->「ファイアウォールポリシー」をクリックします。
3.右側に ...
Swift multilineTextAlignment修飾子でテキストを右寄せにするサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Text("テキスト文字列") .multilineTextAli ...Swift RGBから色を取得するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Color(red: 赤, green: 緑, blue: 青) ...
Swift rederingModeモディファイアのサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
.renderingMode(.original)
Bu ...
AWS VPCエンドポイントを作成する時にprivate-dns-enabled cannot be set because there is already a conflicting DNSの解決方法
環境
AWS VPC
エンドポイント
エラー現象
VPC エンドポイントの作成中にエラーが発生しました
private-dns-enabled cannot be set because t ...
AWS VPCエンドポイントを作成する時に「Enabling private DNS requires both enableDnsSupoortの解決方法
環境
AWS VPC
エンドポイント
エラー現象
VPC エンドポイントの作成中にエラーが発生しました
Enabling private DNS requires both enableDn ...
AWS VPCピアリング接続を削除する方法
環境
AWS VPC
操作方法
1.VPCコンソール画面に移動します。
2.左側に「Peering connections」をクリックします。
3.右側に削除したうピアリング接続を選 ...
Swift frame修飾子でテキストを右寄せにするサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Text("文字列") .frame(maxWidth: 横幅, ...Swift TextEditorのフォントを設定するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
TextEditor(text: $editText) .font ...AWS 同じアカウントの同じリージョンにある VPC を使用して作成する方法
環境
AWS VPC
操作方法
1.Amazon VPC コンソール (を開きます
2.左側の「Peering Connections]」をクリックします。
3.右側に「ピアリング接 ...
Flutter キーボードの高さを取得するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
MediaQuery.of(context).viewInsets.bottom;
「MediaQuery.o ...
Flutter TextFormFieldのパディングを設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
decoration: InputDecoration( contentPadding:/*EdgeInsetsでパディ ...macOS マウスカーソルの色・サイズを変更する方法
環境
macOS
操作方法
1.appleメニューから「システム設定…」をクリックします。
2.左メニューの をクリックします。
3.右側にアクセシビリティの を選択 ...
macOS Safariを終了する方法
環境
macOS
操作方法
1.上部メニューから「Safari」をクリックします。
2.「Safariを終了」をクリックします。
Flutter Containerの枠線の左側の丸みを設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
decoration: BoxDecoration( borderRadius: BorderRadius.horizo ...