2017/2/27 - 2017/3/5のメモ

2017-03-05
memo

Procreate良かった。

ipad miniでのお絵かきが非常に捗る。すごく分かりやすい図が描けるようになった。

[Procreate前]
Procreate前
[Procreate後]
Procreate後

Procreateの問題では無いという話もあるが・・・


Where can you get an elephpant, the PHP elephant ?

https://www.exakat.io/where-can-you-get-an-elephpant-php-elephant/
ElephpantはどこでGETできるのかのまとめリンク。elephpant.comがオーソドックスだけど、以前kickstartar経由で買った奴の方が目がカワイイ。


Packages that make developing Laravel apps easier

https://murze.be/2017/02/packages-make-developing-laravel-apps-easier/
Freekさんの記事。導入してなかったのもあったのでメモ。


いつもコピペするエラー関連のPHPコード

1
2
3
4
5
6
7
8
9
10
11
<?php

ini_set("display_errors", 0);
ini_set("display_startup_errors", 0);
error_reporting(E_ALL);
set_error_handler(function ($level, $message, $file = '', $line = 0) {
if (error_reporting() & $level) {
throw new ErrorException($message, 0, $level, $file, $line);
}
});

要するにとにかくちゃんと例外を発生させるためのコード。
WAF使って無い時とか、途中で放り込まれたプロジェクトとかで役立つ。


dockerのバージョニングが変わった

https://github.com/docker/docker/releases

IMPORTANT: Starting with this release, Docker is on a monthly release cycle and uses a new YY.MM versioning scheme to reflect this.
Two channels are available: monthly and quarterly. Any given monthly release will only receive security and bugfixes until the next monthly release is available.
Quarterly releases receive security and bugfixes for 4 months after initial release.
This release includes bugfixes for 1.13.1 but there are no major feature additions and the API version stays the same. Upgrading from Docker 1.13.1 to 17.03.0 is expected to be simple and low-risk.

月次リリースサイクルに変わる。バージョン名がyy.mmなんですかー、そうですかーという感じ。

publickeyも取り上げてた。
http://www.publickey1.jp/blog/17/docker_v1703.html


Spartan-PHP

http://spartan-php.iuliann.ro

ADRについて調べてたら出てきた。まだ全部読んでないけど、サンプルコードもあって丁寧で分かりやすい。