2011-09-01から1ヶ月間の記事一覧

phpfog

無料paas環境を色々と試している。 今日はphpfogを試してみる。無料プランは1アプリケーション。 ssh鍵を登録してgitから選択したフレームワークの雛形を落とす。 git clone git@git01.phpfog.com:cadillac.psychobil.ly 独自ドメイン使用も可能(ワイルドカ…

emacs memo

lispは呪文過ぎて毎度目を背けている。 memoload-path確認方法 C-x b *scratch* load-pathC-j mew install $ git clone git://github.com/kazu-yamamoto/Mew.git $ cd Mew $ ./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs $ make …

dotCloud

herokuがなんだかいまいち過ぎるので他のものを試してみることにした。dotCloud $ sudo easy_install pip && sudo pip install dotcloud $ dotcloudcname $ dotcloud alias add cramps.www cramps.psychobil.ly type変更方法( static -> php ) $ dotcloud de…

heroku 鍵登録

別のPCからherokuを使う場合、公開鍵を登録する必要あり。 $ heroku keys:add ~/.ssh/id_dsa.pub $ git clone git@heroku.com:cramps.git 入門git作者: Travis Swicegood,でびあんぐる出版社/メーカー: オーム社発売日: 2009/08/12メディア: 単行本(ソフト…

emacsを23にバージョンアップする

Install $ curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.gz $ tar xvzf emacs-23.3a.tar.gz $ cd emacs-23.3 $ git clone git://git.savannah.gnu.org/emacs.git $ cd emacs $ ./configure --with-ns --without-x $ make $ make install 参考 …

herokuにlokkaを入れてみる

herokuもlokkaも使わなさそうだけど。 $ git clone https://github.com/komagata/lokka.git $ cd lokka $ heroku create cramps $ git push heroku master $ heroku config:remove LANG --app cramps $ heroku config:add LNAG=ja_JP.utf8 --app cramps $ he…

cssでマウスオーバーぷちアクション

css

リンクをマウスオーバーしたときフォントを少しだけ大きくするcss。 a { font-size: 48px; } a:link:hover, a:visited:hover { font-size:150%; }

heroku

herokuを使う。 $ sudo yum -y install rubygems $ gem install -r -p http://server:port/ heroku $ gem install heroku $ mkdir cramps && cd cramps $ git init $ touch README $ git add . $ git commit -m "cramps" $ heroku create git push heroku ma…

PaaS

Google App Engine以外にも触手を伸ばす。アカウント取得 http://www.fluxflex.com/ http://no.de/ http://www.heroku.com/ プロジェクト作成 http://meteors.fluxflex.com/ http://batmobile.no.de/ cname $ dig meteors.psychobil.ly ;; QUESTION SECTION:…

分散失敗

glusterfsでの分散ファイルシステム構築失敗。 peer probeでノード追加してvolume作成して、mountまでは出きるが参照が出来ない(参照しようとすると応答が無くなる)。 当面はs3で凌ぐことにする。s3fsはレスポンス遅すぎるのでキャッシュ効かせないと辛い。m…

Installing RPMforge

CentOSでRPMforgeパッケージを使えるようにする。参考 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge install $ sudo rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt $ sudo rpm -K http://packages.sw.be/rpmforge-release/rpmfo…

cms

cms

wordpress保留。 eZ Publish無料版を試してみる。install $ curl http://share.ez.no/content/download/118008/553423/version/3/file/ezpublish_community_project-2011.8-with_ezc.tar.bz2 -o ezpublish_community_project-2011.8-with_ezc.tar.bz2 $ tar …

nginx サブドメイン設定

blog用にサブドメインを設定。 . . # blog - wordpress server { listen 80; server_name frenzy.psychobil.ly; location / { root html/wordpress; index index.html index.htm index.php; deny 216.13.56.89; } location ~ \.php$ { root html/wordpress; …

route53 firefox addon

memo https://bitbucket.org/winebarrel/r53-fox/downloads よくわかるAmazonEC2/S3入門 ―AmazonWebServicesクラウド活用と実践 (Software Design plusシリーズ)作者: 藤崎正範,深海寛信,五十嵐学,馬場俊彰出版社/メーカー: 技術評論社発売日: 2010/06/11メ…

拡張リポジトリepel追加

install $ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 参照 http://d.hatena.ne.jp/t2y-1979/20110430/1304140587 CentOS5で作るネットワークサーバ構築ガイド第2版 (Network Server Construction Gui…

glusterfsでコンテンツ同期

epelのglusterfsはバージョン2なのでソースコンパイルに変更する。 webサーバを複数台並べるとコンテンツの更新方法に悩む。 安直にNASを使うのは金があるところだけなので、glusterfsを試してみることにした。glusterfs http://www.gluster.org/ http://www…

nginx-mode

nginxのconfを弄るのが不便だったので探したらやっぱりあった nginx-mode設定 $ test -d ~/.emacs.d || mkdir ~/.emacs.d $ cd ~/.emacs.d $ git clone https://github.com/noxyu3m/nginx-mode.git $ git clone https://github.com/ajc/nginx-mode.git $ cat…

wordpress install

php

wordpressをインストールしておく。使わないかもしれないが。インストール $ sudo yum -y install php-mbstring $ curl http://ja.wordpress.org/wordpress-3.2.1-ja.zip -o wordpress-3.2.1-ja.zip $ unzip wordpress-3.2.1-ja.zip $ mv wordpress /usr/loc…

glusterfs3

気を取り直して、glusterfs3のインストールと設定をする。参考 http://www.insaneworks.co.jp/kota/glusterfs%E3%81%A7%E3%82%AF%E3%83%A9%E3%82%B9%E3%82%BFfs%E3%82%92%E4%BD%9C%E3%82%8B http://nkjmkzk.net/?p=1691 http://dai_yamashita.bitbucket.org/…