Archive for the ‘未分類’ Category
Firestoreのデータをエミュレータにインポートするには
2024年9月15日CMake Error: Problem with archive_write_finish_entry(): Can’t restore time
2024年9月13日vcpkg でパッケージをインストール中に起きたエラー。私のケースでは、最後の FAT ー> NTFS で解決。PCを更新した際に vcpkg フォルダごとFATのディスクにバックアップしたのが原因。
macOSでポートが使われているか調べる
2024年9月1日
sudo lsof -i :<port>
IISをHTTPSで開くとERR_SSL_KEY_USAGE_INCOMPATIBLEのエラー
2024年8月27日https://learn.microsoft.com/en-us/answers/questions/1517411/how-to-fix-the-err-ssl-key-usage-incompatible-micr
PowerShellを開いて以下のコマンドで証明書を再作成し、入れ替えてIISを再起動。
New-SelfSignedCertificate -FriendlyName ANY_CERT_NAME -DnsName YOUR_SERVER_PC_NAME -KeyUsage DigitalSignature
error C2011: ‘sockaddr’ : ‘struct’ type redefinition. see declaration of ‘sockaddr’
2024年2月21日winsock2.h を最初にinclude することで解決できた。
ERR_SSL_KEY_USAGE_INCOMPATIBLE
2024年2月21日まず、-KeyUsage DigitalSignature で証明書を再作成し
PS C:\WINDOWS\system32> New-SelfSignedCertificate -FriendlyName <証明書の名前> -DnsName <ホスト名> -KeyUsage DigitalSignature
作成した証明書でIISのSSL証明書を再設定
IIS > WebSite > Edit Bindings… > https を選択して編集、下部の”SSL Certificate”で、新たに作成した証明書を選択
Postmanはhttp2に未対応なのでAPNsへのPOSTができない
2024年2月5日https://stackoverflow.com/questions/45965619/apns-provider-api-and-postman
https://gist.github.com/greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc
上記のリンクで紹介されている curl のサンプルを参考に、curl ではPOSTできた。
curl -v \
-d ‘{“aps”:{“alert”:{“title”:”title”,”subtitle”:”subtitle”,”body”:”body”}}}’ \
-H “apns-topic: <bundle id>” \
-H “apns-priority: 5” \
-H “Authorization: Bearer <JWT>” \
–http2 \
https://api.development.push.apple.com/3/device/<device token>
android opencv build error “ninja: fatal: chdir to ‘…/platforms/android/opencv/.cxx/cmake/release/x86’ – No such file or directory”
2024年2月5日ninja: fatal: chdir to ‘…/platforms/android/opencv/.cxx/cmake/release/x86’ – No such file or directory
https://stackoverflow.com/questions/45219049/android-studio-cmake-error-build-command-failed
以下の対応で解決
Build > “Refresh linked C++ project”