VRChat

VRChat VRChat Documentation SDK Unity のインストール Currently Supported Unity Version こちらの Click here to install the current version of Unity via Unity Hub を押す Microsoft Visual Studio Community 2019 Android Build Support Android SDK & NDK Tools OpenJDK にチェックし Install World U# Trigger2to3 新しいプロジェクトのつくりかた Unity Hub -> Projects -> New project -> 3D Project name と Location を設定して Create project Assets に Scenes だけがあるが,その右の広いところで右クリック -> Import Package -> Custom Package… -> VRCSDK3-WORLD -> 開く -> Import -> I Made a Backup. [続きを読む]

WebAssembly

WebAssembly

wasm-bindgen

wasm-pack をインストール

cargo install wasm-pack

wasm-pack でビルド

wasm-pack build --target web

Trait Dictionary

Trait Dictionary Rust のトレイトは “トレイトとしては別物” らしい Trait Trait T を定義 trait T { } Trait S を要求する Trait T を定義 Trait S は Trait T の Supertrait Trait T は Trait S の Subtrait trait S { } trait T: S { } Trait R と Trait S を要求する Trait T を定義 trait R { } trait S { } trait T: R + S { } Clone (std::clone::Clone) pub trait Clone { fn clone(&self) -> Self; fn clone_from(&mut self, source: &Self) {. [続きを読む]

Rust

Rust Trait Dictionary Type Dictionary Raw Level Rust On Rust wasm-bindgen axum warp rustup バージョンの確認 rustup -V rustup 自身のアップデート rustup self update Rust のアップデート rustup update 現在の Toolchain を確認 rustup show 可用な Toolchain の表示 rustup target list Cargo ソースコードのチェック cargo clippy ソースコードを整える cargo fmt 依存している Crate の表示 cargo tree 依存している Crate のアップデート cargo update PSA: writing “*” for crates in cargo.toml won’t always mean “latest version” cargo edit の cargo upgrade を使うのがいいらしい [続きを読む]

Windows

Windows

おかしくなったときに,管理者権限で,まず実行

sfc /scannow

warp

warp

Structs

And

pub struct And<T, U> {
pub(super) first: T,
pub(super) second: U,
}

impl<T, U> FilterBase for And<T, U>

Traits

nginx

nginx Install $ sudo apt install nginx Check $ systemctl status nginx 別の端末からテストする (WSL2 は,IPv6 に対応していないので注意) $ curl -4 http://hoge.com/ $ curl -6 http://hoge.com/ Website IPv6 accessibility validator 起動と停止と再起動 $ systemctl start nginx $ systemctl stop nginx $ systemctl restart nginx 設定ファイル 大元の設定ファイルは /etc/nginx/nginx.conf だが,実際に設定するのは,こちら /etc/nginx/sites-available/default server ではじまっている部分が それぞれ,各 Virtual Host になっている 初期設定として server_name _; の部分を server_name ach.moe; とする また,TLS を有効にするため # listen 443 ssl default_server; # listen [::]:443 ssl default_server; の部分を [続きを読む]