Amazon RDS: How to resolve problem that slow query log is stop on the Cloud Watch

AWS

Problem Amazon RDS can output slow query log to Cloud Watch. The cause is unclear but this log is sometimes stop. You can check log is working correctly by SQL below. select sleep(5); *The argument value of the sleep function (5 in above e…

Amazon RDS: スロークエリのログが出力されなくなった時の対応方法

AWS

症状 Amazon RDSではCloud Watchにスロークエリのログを出力することができる。 原因は分からないが、このスロークエリのログが出力されなくなってしまう場合がある。スロークエリが正常に出力されているかどうかは、以下のSQLを実行して確認できる。 select…

How to detect Chrome on iOS by JavaScript when "Request Desktop Site" setting is enabled.

Problem When the setting of "Request Desktop Site" of Chrome on iPhone is enabled, navigator value is changed that not include text CriOS. So you cannot detect browser is Chrome by JavaScript. *This problem and solution is checked on Chrom…

iOS版Chromeで「PC版サイトを見る」を有効にしている場合にJavaScriptでChromeであることを検知する

問題 iPhone版Chromeでは設定で「PC版サイトを見る」を有効にした場合、navigatorで取得できる情報が変化し、CriOSが含まれなくなるのでChromeであることが分からなくなる。 *Chrome 80.0.3987.95で確認。 iPhoneで取得可能なユーザーエージェント iPhone版C…

SQLite3: How to know transaction is already started

You can use get_autocommit() to know transaction is already started or not. When transaction is started: This function return 0 because auto-commit is disabled. When transaction is not started: This function return non-0 because auto-commi…

SQLite3: トランザクションが開始されているかどうかを判断する

現在SQLite3のトランザクションが開始されているかどうかを判断するには、get_autocommit()を使用する。 トランザクションが開始されている場合: 自動コミットが無効になるので0が返る。 トランザクションが開始されていない場合: 自動コミットが有効になる…

Notarizationに失敗した場合の対処方法

Notarizationに失敗した場合、Appleから以下のタイトルのメールが届く。 Your Mac software was not notarized. Organizerを使用してNotarizationを行なっている場合はそこで詳細を見ることができる。 コマンドを使用してNotarizationを行なっている場合はRe…