IPアドレスで接続するのが面倒なのでホスト名を登録した.
# IPアドレスで接続するのが面倒なのでホスト名を登録した.
$ sudo vi /private/etc/hosts
++ nn.nnn.nnn.nnn XXX.HOST.NAME
シェルのエラーをメモ.
# シェルのエラーをメモ.
# コマンドの書き方がよくなかった.
# 以下のサイトで確認.
https://www.shellcheck.net/
> Could: command not found
> Parse: command not found
# 括弧の位置がおかしい.大括弧の間にスペースが必要.
> [127
古いメモがでてきたので,雑に貼る.
# 古いメモがでてきたので,雑に貼る.未検証.
# 最短マッチ
preg_match_all('/alt=".*?"/', HTML_DTATA_1, HTML_DATA_2, PREG_PATTERN_ORDER);
# IE9でplaceholderを使う
http://enjoy-pcworks.com/archives/104
https://code.google.com/p/complete-placeholder/をつかう
focusがはずれると黒丸になるので
ahはtype=password非対応
http://jamesallardice.github.io/Placeholders.js/はいけた
# IE8はダメっぽい
http://black-flag.net/jquery/20120321-3727.htmlがOK
autocomplete対策でIE9はon('change'
IE8はon('propertychange'
# LaravelをPostgreSQLで使うときの配列型の検索
->whereRaw('salon.genre @> ARRAY[' . $genre . ']')
MySQLでテーブル定義をCSV形式で出力した.
# MySQLでテーブル定義をCSV形式で出力した.
> select case ordinal_position when 1 then table_name else '' end, column_name, column_type, is_nullable, column_key, column_default, extra from information_schema.columns where table_schema = schema() order by table_schema, table_name, ordinal_position into outfile '/PATH/TO/OUTPUT.csv' fields terminated by ',';