XP (エクストリーム・プログラミング) における原則
"You ain’t gonna need it."
類義語
KISSの法則
"Keep it simple, stupid."
"Keep it short and simple."
XP (エクストリーム・プログラミング) における原則
"You ain’t gonna need it."
"Keep it simple, stupid."
"Keep it short and simple."
キャレット ^ を行末につける
1 2 |
@echo off myProgram.exe -f OPTION_F -s OPTION_S |
1 2 3 |
@echo off myProgram.exe -f OPTION_F ^ -s OPTION_S |
複数のプロジェクトから構成される Visual Studio のソリューションにおいて、Visual Studio からアプリを(デバッグ)起動するときは、適切なプロジェクト(実行ファイルを生成するプロジェクト)を「スタートアップ プロジェクト」に設定する必要がある。
続きを読む
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; } |