ITRON4.0仕様
- 優先度は 1 以上の正の値であること。(ITRON3.0では負の値も可)
- 値が小さいほど優先して処理される(優先度が高い)。
|
1 |
$ git remote add <リモート名> <URL> |
|
1 |
$ git remote add azure https://jane@dev.azure.com/our_organization/our_project/_git/our_repo |
|
1 |
$ git fetch <リモート名> |
|
1 |
$ git fetch azure |
PHP 7.3 へのバージョンアップに伴う、WordPressのプラグイン "Crayon Syntax Highlighter" の不具合修正方法。ちなみに "Crayon Syntax Highlighter"の更新は3年前の2016年以降停止しているため、他のプラグインに乗り換えた方が賢明かもしれません。
|
1 |
[23-Mar-2019 09:53:22 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /var/www/html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 |
Amazon Linux (AWS EC2) の PHP の 5.3 => 7.3 バージョンアップ作業備忘録。
|
1 2 3 |
$ sudo yum -y remove php-* $ sudo yum -y remove httpd-tools $ sudo yum clean all |
|
1 2 |
$ sudo yum install php73 php73-mbstring php73-pdo php73-devel php73-mysqlnd.x86_64 $ sudo yum install mod24_ssl.x86_64 |
下記のようにswitchブロックの内部で変数宣言をおこなうとコンパイルエラーとなる。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#include <stdio.h> int main(void) { int i; for (i = 0 ; i < 100 ; i++) { switch (i%2) { case 0: char msg_even[] = "EVEN"; printf("%3d is %s\n", i, msg_even); break; case 1: char msg_odd[] = "ODD"; printf("%3d is %s\n", i, msg_odd); break; default: printf("%3d is UNKNOWN\n", i); break; } } return 0; } |
下記のようにコンパイラの最適化で省略される個所にブレイクポイントを設定できないことがあります。
|
1 2 3 4 5 6 7 8 |
while (num_of_line > 0) { /* 中略 */ if (num_of_lines < 10) { continue; /* ここにブレイクポイントを設定できない */ } } |
///|
1 2 3 4 5 6 7 8 9 |
/// <summary> /// Adds two doubles and returns the result. /// </summary> /// <returns> /// The sum of two doubles. /// </returns> /// <param name="a">A double precision number.</param> /// <param name="b">A double precision number.</param> public static double Add(double a, double b) |
Git LFS (Large File Strage) で管理したファイルのチェックアウトを試みると下記のようなエラーとなる
|
1 |
Encountered 2 file(s) that should have been pointers, but weren't: |
"windows.h" は、16bit版 Windowsのヘッダファイルを多数インクルードしている。WIN32_LEAN_AND_MEAN を define することで、32bitアプリには不要なヘッダファイルのインクルードを抑止してコンパイル時間を短縮できる。