2010-01-01から1年間の記事一覧
基本はherokuのドキュメントに全部書いてある http://docs.heroku.com/ herokuにアップしたくない http://docs.heroku.com/slug-compiler test spec features log tmp.slugignore gemを使う http://docs.heroku.com/gems will_paginate jpmobile haml.gemshe…
http://mydomain/admin 以下にだけBASIC認証をかける。 前回のを利用してもいいけど、普通にやってみる。 Satisfy Any AuthUserFile /var/www/railsapps/mintame/current/public/.htpasswd AuthGroupFile /dev/null AuthName "Please enter your ID and pass…
deploy.rbに以下のように書かれているアプリケーションだと思いねえ。 set :deploy_to, "/var/www/railsapps/#{application}" CentOSだとlogrotateは「/etc/logrotate.conf.d/」ディレクトリの中にそれぞれのアプリケーションごとに記述する。 /var/www/rail…
まだ公開してないからBASIC認証かけてるんだけど、 LBがヘルスチェックするから、そこだけBASIC認証外せって言われたので。 Satisfy Any AuthUserFile /var/www/htdocs/.htpasswd AuthGroupFile /dev/null AuthName "Please enter your ID and password" Aut…
Chromeではアドレスバー右クリックで「検索エンジンの編集」、Firefoxでは「ブックマークの管理」ー「スマートキーワード」で設定。 Wikipedia w http://ja.wikipedia.org/w/index.php?search=%s ALC e http://eow.alc.co.jp/%s/UTF-8/ GoogleMaps m http://…
試しに全体がくくられていないSJISのXMLを処理してみた。 module ActiveResource::Formats::SampleXmlFormat include ActiveResource::Formats::XmlFormat def decode(xml) super("<content>#{xml}</content>".toutf8) end extend self end class Sample < ActiveResource::Base…
はてブによるフィルタリング http://b.hatena.ne.jp/entrylist?sort=hot&threshold=(何users以上か)&url=(ブログのURL) サイトの更新を翌日まとめてRSSでお届け DailyFeed - デイリーフィード RSSフィードを全文配信で読む まるごとRSS RSSフィードを生…
v 2.3.5で確認。 ログの出力方法をいろいろ設定したい config/environment.rbに記述 # ANSI制御シーケンスをログに出力しない config.active_record.colorize_logging = false # ログの出力先を変更 config.log_path=/var/log/appl.log # ログファイルのロー…
AutoPagerize - 自動ページング Bubble Translate - 選択文字列を翻訳 Chrome Stylist - ユーザページスタイル適用 Clickable Links - リンク文字列を開ける Context Search - 選択文字列を検索 Create Link - リンク文字列を生成 Docs PDF/PowerPoint Viewe…