Swiftプロジェクト作成とGitHubでリポジトリー連携する
![アイキャッチ](https://takumi-oda.com/blog/wp-content/uploads/2022/02/icons8-swiftui-240-150x150.png)
プロジェクトを作成します。
Create a new Xcode projectをクリックする。
Appを選択します。
Organization Identifierを ...
AVFoundationでカメラの向きを変更するとライトが消えしまう問題
![アイキャッチ](https://takumi-oda.com/blog/wp-content/uploads/2022/02/icons8-swiftui-240-150x150.png)
Xcode:Version 13.2.1 (13C100)
Swiftのバージョン:Swift 5
DeploymentTargeted Device Families: iPhoneiOS Deploymen ...
【Chrome Extension】Manifest V3だとFirebase AuthenticationのgetAuth()がService Worker上ではできない
![](https://takumi-oda.com/blog/wp-content/uploads/2020/04/JavaScriptjpg-150x150.jpg)
解決策としては、popup.htmlとかで認証処理する。
"action": { "default_popup": "popup.html" }以下エラーとなったコード。
const app = initialize ...【スマブラSP 】の実況配信で使えるWinLossRecMakerをリリースしました。
![](https://takumi-oda.com/blog/wp-content/uploads/2017/12/雑記-150x150.png)
本プログラムは【スマブラSP】を配信実況する際に、ワンタッチで勝敗を入力できるようにすることを目的にしたものです。 OBS (Open Broadcaster Software) 以外にもテキスト読込でテロップ表示させる機能がある ...
chrome.actionの使い方
![](https://takumi-oda.com/blog/wp-content/uploads/2020/04/JavaScriptjpg-150x150.jpg)
公式のgithubのサンプルプロジェクトをみていきます。
chrome.actionについてChrome action APIは、chromeのバージョン88以上で、 Manifestのバージョンは3以上で使用できます。
デベロッパーモードでchrome拡張機能をインストールする。
![](https://takumi-oda.com/blog/wp-content/uploads/2020/04/JavaScriptjpg-150x150.jpg)
例として、以下よりリポジトリをcloneしてくる。
chrome拡張機能をインストールする。拡張機能の画面を開く
デベロッパーモードを有効にする。
パッケージ化されていない拡張機能 ...
【Chrome Extension】Manifest V3だとService WorkerでDOMParserが現状使えないので、jsdomをインストールする
![](https://takumi-oda.com/blog/wp-content/uploads/2020/04/JavaScriptjpg-150x150.jpg)
そういう仕様だからと言ってしまうとそれまでだけど、以下にもできないことは明記されていた。
ただ、以下見ていると、DOMParserが使えないのはCh ...
Chrome拡張機能の開発中にManifestをV2からV3変えて動かなくなったので調査
![](https://takumi-oda.com/blog/wp-content/uploads/2020/04/JavaScriptjpg-150x150.jpg)
まずは、結論から。
chromeの拡張機能のService Worker上で他オリジンにアクセスしてレスポンスを取得する場合(つまり、オリジン間リソース共有 (CORS))
・axiosは使えない。axio ...
【C#】Directory.EnumerateFilesとDirectory.GetFilesの違い
![](https://takumi-oda.com/blog/wp-content/uploads/2017/12/C-150x150.png)
EnumerateFilesの名前からわかる通り、こちらはIEnumerable<string>が返ってくる。なので、遅延処理が可能となっている。
どんな時に使うべきかというと、扱うファイル数が多く、すべてのファイル ...
C#のFile.EncryptはWindowsのHome editionでは使用できない
![](https://takumi-oda.com/blog/wp-content/uploads/2017/12/C-150x150.png)
表題の通りです。
以下のようなテストメソッドを作りました。
private readonly string _filePath = Path.Combine(System.Environment.CurrentDir ...