サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
都知事選
tipshare.info
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post.
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. データのみダンプ mysqldump -u root -p DB名 --skip-dump-date --no-create-info --default-character-set=binary > onlyData.sql スキーマとViewのみダンプ mysqldump -u root -p DB名 --no-data --skip-dump-date > onlySchemaWithView.sql ストアドのみダンプ mysqldu
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. CakePHP2.0でApp::importの代替として追加されたApp::usesの基本的な使い方は App::uses('クラス名', 'パッケージ名'); です。 私の場合、マニュアルやリリースノートにはパッケージ=名前空間とも取れる書き方がしてあるので、例えばAuthComponentを使いたい場合以下のように書いてしまいました。 App::uses('AuthComponent', 'Controller¥Component');
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. グローバル変数をクライアントから設定するとログが記録される。再起動は不要。なんとphpMyAdminなどから設定しても管理者であれば実行可能。 SET GLOBAL general_log = 'ON' ログの記録を止める場合も同様に変数を変更する。 SET GLOBAL general_log = 'OFF' 実際のログはMySQLのデータディレクトリの中にホスト名.logで下記のように実行されたクエリが記録される。 13031 Conne
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. ■環境 Virtualbox7.0.1、CentOS6、Apache2 ■現象 Virtualboxの共有フォルダ機能でホストのMacのworkspaceを ゲストのCentOSにマウントしてDocumentRootに設定し、開発していたところCSSを変更しても反映されない。 応急的にはサーバーを再起動すると反映される。 また、該当のファイルを削除して、作りなおすことでも反映される。 ■原因 Apacheの静的ファイルをメモリ上にキャッシュす
Unix環境の話です(Linux, Mac, BSD,etc) 下記コマンドで100Mbyteのダミーデータファイルを作成する時間を計測してWrite性能が分かります。(countを1000にすると1Gのデータができます) time dd if=/dev/zero of=tempfile bs=1M count=100 先ほどのダミーデータがtempfileという名前で作られてるので、 下記コマンドで読み込み時間が計測できるので、Read性能が分かります time cat tempfile > /dev/null #linux #shell Unix環境の話です(Linux, Mac, BSD,etc) 下記コマンドで100Mbyteのダミーデータファイルを作成する時間を計測してWrite性能が分かります。(countを1000にすると1Gのデータができます) time dd if=/de
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. コントローラー内で viewClassをJsonに設定し、JSONに書き出したい変数名を_serializeにセットする。これだけ。 下記の例ではpostsとsome_varの内容がJSONで書き出される。 <?php //app/Controller/PostsController.php class PostsController extends AppController { public function index() { $thi
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. #php #csv #spl PHPでCSVの読み込みは下記の手段があります * http://php.net/fgetcsv * http://php.net/str_getcsv * http://pear.php.net/File_CSV * http://php.net/SplFileObject fgetcsvはfgetsの流れからか,str_getcsvはfgetcsvの流れからか「改行があるセル」を正しく扱うことができません.
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. CakePHP Advent Calendar 2011 初日担当の @cakephper です。 今回はTipshareに記事を投稿します。 説明に使っているCakePHPは2.0.4です。 CakePHP2.0からbake fixtureすると、$fieldsプロパティに、tableParametersというキーがあって、そこでDBのエンジンが指定されています。 Fixutreファイルにスキーマ情報を書いていればよいのですが、defaul
for /l %i in (1,1,254) do ping -w 1 -n 1 192.168.1.%i && arp -a 192.168.1.%i >> result.txt 実行すると...
このページを最初にブックマークしてみませんか?
『tipshare.info』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く