Archive for the ‘未分類’ Category

Firestoreのデータをエミュレータにインポートするには

2024年9月15日

Medium.com で表示

firebase-admin でエミュレータに接続するには

2024年9月15日

https://github.com/firebase/firebase-admin-node/issues/776

CMake Error: Problem with archive_write_finish_entry(): Can’t restore time

2024年9月13日
https://stackoverflow.com/questions/61488479/cmake-error-problem-with-archive-write-finish-entry-cant-restore-time

vcpkg でパッケージをインストール中に起きたエラー。私のケースでは、最後の FAT ー> NTFS で解決。PCを更新した際に vcpkg フォルダごとFATのディスクにバックアップしたのが原因。

macOSでポートが使われているか調べる

2024年9月1日


sudo lsof -i :<port>

IISをHTTPSで開くとERR_SSL_KEY_USAGE_INCOMPATIBLEのエラー

2024年8月27日
IISで作成した証明書ではダメらしいです。
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

ローカルのHTMLファイルからのリクエストはサーバー側の設定によらずすべてCORSエラー。

2024年4月15日
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp

error C2011: ‘sockaddr’ : ‘struct’ type redefinition. see declaration of ‘sockaddr’

2024年2月21日

https://stackoverflow.com/questions/31434556/error-c2011-sockaddr-struct-type-redefinition-see-declaration-of-sockad

winsock2.h を最初にinclude することで解決できた。

ERR_SSL_KEY_USAGE_INCOMPATIBLE

2024年2月21日

https://learn.microsoft.com/en-us/answers/questions/1517411/how-to-fix-the-err-ssl-key-usage-incompatible-micr

まず、-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”