自動返信機能付きのお問い合わせメールフォームをPHPで制作しました。 またブラウザー上でデータベース内の情報を見ることができる管理メニューページも作成。 この管理メニューページには.httaccessを使ったBasic認証でIDとパスワードを入れないとページが見れないようになっています。 プレビュー↓お問い合わせメールフォーム 管理メニュー(IDとパスワードの入力が必要です。) ポイント データベースに接続する $dsn = 'mysql:dbname=データベース名;host=データベースホスト名'; $user = 'ユーザー名; $password = 'パスワード'; $dbh = new PDO($dsn, $user, $password); $dbh -> query('SET NAMES UTF8'); ※freewebの場合、 ↓まずはMySQLを稼働させてから ↓接続情
Rはループ速度が段違いに遅いと言われる。確かにループとメソッド呼び出しで構成したマイクロベンチマークを実行すると、Javaが6.32秒、C++で6.33秒で終わる処理が、87時間18分16.0秒(推定値)かかったりする。S-PLUSやMatlabなどの他の同種の言語よりは高速か同等と指摘されているが、汎用言語に比べると断然遅い(Benchmark 2)。 もちろん大半の計算は問題ない。標本数1万ぐらいのサンプルでプロビット分析を行っても、1秒もかからず計算が終わる。コマンドを打っている時間の方が圧倒的に長い。しかし人間はどのような環境でも速度に憧れるものだ。そしてRでも短時間に処理を終わらせる為のコツはある。 1. パッケージや内部関数を使う 大抵の著名パッケージはC言語で実装されているので、内部的な処理は高速だ。Rではなるべくコードを書かない方が良い。スクリプト言語やインタープリッタ全般
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く