余りを計算するModは小数点はくれないそうです。
10倍 100倍してから使うなど工夫が必要
WebClientでアクセスしたら例外がでた。
TLS1.0、1.1の廃止が原因らしい。
TLS1.2にするには
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 入れるだけで一応OK。
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; using (var client = new WebClient()) { var url = "https://www.sample.com/sample"; var keys = new System.Collections.Specialized.NameValueCollection(); var responseData = client.UploadValues(url, keys); }
vb.netでもC#でも同じ書式
こう案内しているサイトもあった
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol Or SecurityProtocolType.Tls12
グルーピングされてる項目のところで右クリックして「グルーピング解除」すれば解除される。
標準でグルーピング解除するには
[Excelのオプション]の[詳細設定]カテゴリーの[データ]内にある[ピボットテーブルで日付/時刻の自動グループ化を無効にする]のチェックをオンにすればいいそうです。
array_multisort($sort_key, SORT_DESC, SORT_NUMERIC, $data);
としたら $sort_keyと$dataが配列だと宣言してないとワーニング出る
$data= array(); $sort_key = array();
とかね
前のバージョンではcount(NULL)に対して0を返していたが、PHP7.2からwarningを出している
なので
if (is_array($hoge)) { count($hoge); }
と回避しないとアカン
今までは
define(CONSTANT, "Hello world."); echo CONSTANT; // "Hello world." を出力します
でもOKだったけど
define("CONSTANT", "Hello world."); echo CONSTANT; // "Hello world." を出力します
とくくらないとダメになった。
1. php.iniで指定する場合。
※ Webサーバ(Apache)の再起動が必要です。
;全てのエラー・警告を出力する場合 error_reporting = E_ALL ;エラー(スクリプトの実行が中断される)のみ出力する場合 error_reporting = E_ERROR ;警告(スクリプトの実行が中断されない)のみ出力する場合 error_reporting = E_WARNING
2. PHPソースで指定する場合。
// 全てのエラー・警告を出力する場合 ini_set( 'error_reporting', E_ALL ); // エラー(スクリプトの実行が中断される)のみ出力する場合 ini_set( 'error_reporting', E_ERROR ); // 警告(スクリプトの実行が中断されない)のみ出力する場合 ini_set( 'error_reporting', E_WARNING );
Shift JISの文字コードで書いてあるページなら
php.iniに以下記述
default_charset = sjis
ペイントツール。
Paint.NET - Free Software for Digital Photo Editinghttp://www.getpaint.net/redirect/main_hm.html
標準ではICO形式に対応していないので、プラグインを入れる。
Icon, Cursor, and Animated Cursor Format v3.7 (May 2010) - Page 13 - FileType Plugins - paint.net Forumhttp://forums.getpaint.net/index.php?/topic/927-icon-cursor-and-animated-cursor-format-v37-may-2010/&page=13#comment-514467
IcoCur.zipをダウンロードしてzipを展開。中のIcoCur.dllをProgram Files\paint.net\FileTypesフォルダにコピーする。
(FileTypesフォルダが無ければ作成する)
これでicoファイルが編集、保存できる