古いメモがでてきたので,雑に貼る.
# 古いメモがでてきたので,雑に貼る.未検証.
# 最短マッチ
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 ',';
Elasticsearchのエラーが出たので対応した.
# Elasticsearchのエラーが出たので対応した.
$ elasticsearch
> Exception in thread "main" ElasticsearchException[failed to read [id:...
$ rm -rf /usr/local/var/elasticsearch/DATA_NAME
$ elasticsearch
> ... (略)