Flutter 備忘メモ
flutter build web
で生成されたブツをサーバーに設置したけど動かない。
ルート以外に置く場合は、パスを指定しないといけないぽい。
index.html
<base href="/hoge/hige/hage/">
Flutter 備忘メモ
flutter build web
で生成されたブツをサーバーに設置したけど動かない。
ルート以外に置く場合は、パスを指定しないといけないぽい。
index.html
<base href="/hoge/hige/hage/">
バッテリーサービス0000180f-0000-1000-8000-00805f9b34fbバッテリー情報キャラクタリスティック00002a19-0000-1000-8000-00805f9b34fb
ヘッドセット(HFP)0000111e-0000-1000-8000-00805f9b34fb
Bluetooth Battery Gadget
Webpの画像はWin10ならWIC経由で取得可能だったけど、各フレームのディレイの取得方法がわからなかったので自作。
下記のWebPのファイルフォーマットを参照した。
developers.google.com
List<int> delay = new List<int>(); byte[] buff = new byte[stream.Length]; stream.Read(buff, 0, buff.Length); // WEBP if (System.Text.Encoding.ASCII.GetString(buff, 0, 4).Equals("RIFF")) { for (int i = 12; i < buff.Length - 8; i += 8) { string chname = System.Text.Encoding.ASCII.GetString(buff, i, 4); int chsize = BitConverter.ToInt32(buff, i + 4); if (chname.Equals("ANMF")) { int offset = i + 8 + 12; byte[] dbuff = { buff[offset], buff[offset + 1], buff[offset + 2], 0 }; delay.Add(BitConverter.ToInt32(dbuff, 0)); } i += chsize; } } return delay.ToArray();
これで自分用ツールのビューワをAnimatedWebPに対応。
Apple Keyboard Bridge
//ProductHexId = "0xA052"//VendorHexId = "0x04D9"HidDevice deviceList = HidDevices.Enumerate().ToArray();HidDevice co2miniList = deviceList.Where(x =>x.Attributes.ProductHexId == "0xA052" && x.Attributes.VendorHexId =="0x04D9").ToArray();HidDevice co2mini = co2miniList.Length > 0 ? co2miniList[0] : null;if(co2mini != null){co2mini.OpenDevice();co2mini.WriteFeatureData(feature_data);……HidDeviceData data = co2mini.Read();……}
①決定ボタン連打機能自動戦闘によるレベルあげ用スライムやロアリングナイトにロアリングナイト先生では先に進むのをキャンセルしてくれる②なんちゃってソフトリセット機能手元ソフトリセットがなくなっていて超不便なので作ったPS4コンだとPSボタンを押すとアプリを強制再起動ウィンドウ位置を覚えておいて再配置してくれる③HPチェック機能プロセスメモリ開いてHPを見るラスボスのHPがどうにもおかしいので確認したくなったバグなのか仕様なのかわからんけど、真破壊するものでターン毎に1万以上回復することがあった