2010-07-01から1ヶ月間の記事一覧
下記コマンドで入れる yum -y install php-pecl-memcache下記で動いているか確認 php -i | grep memcacheエラーが出た場合、バージョンの問題があるのでバージョンを上げる pecl upgrade memcache
scp -i secret.key 転送したいファイル username@host:転送先
ssh -l username host -i secret.key
フォームクラス内にて public function configure() { $this->setDefault('created_at', date('Y-m-d H:i:s', strtotime('now')); }ではダメで public function configure() { $this->setDefault('created_at', array( 'year' => date('Y',strtotime('now'))…
yum install mod_ssl
x509証明書を転送後 cd /mntec2-bundle-vol -d /mnt --privatekey ~/pk-xxxx.pem --cert ~/cert-xxxx.pem --user xxxx-xxxx-xxxx --fstab /etc/fstabできたらs3に ec2-upload-bundle --bucket backetname --manifest image.manifest.xml --access-key xxxxx …
秘密鍵の保存を押す
鍵をインポートでpemを読み込みssh.com形式で書きだす
デフォルトだとドクトリン。 php /symfony/data/bin/symfony generate:project projectname --orm=propel
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/hoge.html RewriteCond %{REMOTE_ADDR} !^127.0.0.1$ RewriteRule .* /404.php [L] </IfModule>127.0.0.1以外からアクセスあったら404
# htpasswd -c ./hoge/htpasswd foovar
★目的 ./symfony propel:build-modelなんかするとべろべろっとファイルが自動生成されるわけだが、何も変更のないbaseファイルまで更新される。 その更新内容はなんと自動生成の日付だ。 そんなのけっこうどうでもいい。やめさせよう★調べた symfony/lib/plu…
create database hogehoge;データーベースがある状態で、なければ作る。 grant all on hogehoge.* to foovar@localhost identified by "password";foovarというユーザにhogehogeというデータベースにlocalhostからの接続に対して全権限を付与して追加。 hoge…
</IfModule> RewriteEngine On RewriteCond %{REQUEST_URI} ^/hogehoge.html RewriteCond %{REMOTE_ADDR} !^192\.168\.0\.1$ RewriteCond %{REMOTE_ADDR} !^192\.168\.0\.100$ RewriteRule .* /503.php [R=503,L] </IfModule>
$c1 = new Criteria(); $c1->add(CommentPeer::RATING, 5, Criteria::NOT_EQUAL); $c2 = new Criteria(); $c2->add(CommentPeer::RATING, 5); BasePeer::doUpdate($c1, $c2, $con);
symfonyで国際化するときに使用されるファイル。xliffといってもxmlだが、長い文章を翻訳したいとき、どうしても改行が登場しますよね。どこぞのテンプレ ふがふが'); ?><trans-unit> <source>ほげほげ<br />ふがふが</source> <target>hogehoge<br />fugafuga</target> </trans-unit>こういったのを書いたが、まったくもって動かない…
cd /usr/local/apache/conf/ssl.key cp -p server.key server.key.org openssl rsa -in server.key.org -out server.keyパスフレーズの入力
jqueryを使い、Ajaxで非同期にデータを取得しそれをjsで追加するという作業。 firefoxやchromeなどでは問題なく動くが、IEさんだけおかしい。 追加した要素にCSSが適用されないのである。html5.jsも使ってるのにね <article class="hoge"> <div> <p>something</p> </div> </article>上記を次々と追加していく。 …