2012-01-01から1年間の記事一覧

twitter-bootstrap-rails + bootswatch

bootswatchフォルダ作成 app/assets/stylesheets/bootswatch そのフォルダにbootswatchの variables.lessとbootswatch.lessを投入 bootstrap_and_overrides.css.lessに2行追加 @import "./bootswatch/variables"; @import "./bootswatch/bootswatch"; applic…

rails3.2 カラムの型変換

codeカラムをstringからtextへ変更 rails g migration ChangeCodeTypeToMovie code:text change_column(:movies, :code, :text)

rails3.2 device omniauth twitter facebook でユーザー認証

rails3.2でtwitter facebook認証しようとしたらomniauthを使ってるこの例がベストかと http://blog.mino3.com/archives/246 device+omniauthでいくならこの例で http://qiita.com/items/9f1faa509f4d3653a1b2

githubコマンド備忘録

github初めて使ってみた ローカル作業(gitは導入済みとして) git config --global user.name "ユーザー名" git config --global user.email "メールアドレス" git config --global color.ui auto git init git add . git commit -m "first commit" 1. gith…

gem 'twitter-bootstrap-rails'でtherubyracerのエラーを回避する by windows

rails3.2.8でtwitter bootstrap使いたくて gem 'twitter-bootstrap-rails'したら therubyracerでエラー ぐぐるとwindowsはサポートしとらんとかなんとか けど、 下記urlからwindows用gemをダウンロードして https://github.com/downloads/stereobooster/ther…

twitter api trends woeid

twitter api のトレンド woeid by 日本 {"name"=>"日本","id"=>"23424856"}, {"name"=>"京都","id"=>"15015372"}, {"name"=>"福岡","id"=>"1117099"}, {"name"=>"沖縄","id"=>"2345896"}, {"name"=>"高松","id"=>"1118285"}, {"name"=>"大阪","id"=>"1501537…

herokuのアプリ数上限50個

最近herokuが便利すぎてアプリポコポコ作ってるんですが、 ! You've reached your app limit of 50 apps. ! Contact us at biz@heroku.com to have this limit increased とかいうメッセージが… なんかリミット上げてくれるみたいですが、 英語無理なので使…

heroku への新規アプリ登録

いつも忘れてしまうのでまとめとく bundle install git init git add . git commit -m "1st" heroku create appname --stack cedar git push heroku master (heroku scale cron=1 #起動) heroku logs #ログ確認 heroku ps #起動確認

titanium + android + map デバック環境では動くけど実機で動かない

debugモードでは動くのにgoogle playからインストールすると地図が表示されなかった 原因が分からなくて放置してたんですけど、 Android Maps APIキーにサインアップしなきゃいけなかったみたい 詳細はhttp://developer.appcelerator.com/doc/mobile/android…

herokuに独自ドメイン割り当て(お名前.com)

これも久々にやったらわかんなくなってたのでメモ 基本ここhttp://qiita.com/items/76acf2a1ea151535c5dcの通りにやったらいける お名前.comのレンタルDNSレコード設定で ホスト名: (空欄).foo.com TYPE: A VALUE: 75.101.163.44 優先: (空欄) 状態: 有効 こ…

sinatraアプリをherokuにアップ

ひさびさに作業したらわかんなくなってたためメモ 基本的には、公式ドキュメントhttps://devcenter.heroku.com/articles/rubyのままでいける heorkuアカウント登録 heroku login Gemfileを用意 bundle install Procfile ファイル用意 ---------- web: bundle…

sinatra + mongodb + mongoid + unicorn + nginx

mongodbインストール 本家を参考に http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo vi /etc/apt/sources.list ---------- deb http://downloads-distro.mongodb.…

ブログパーツ登録先リンク集

ブログパーツを公開するにあたってブログパーツ紹介サイトへ登録しておいたほうがよいかと思い、ブログパーツ登録先リンクまとめてみた ブログパーツ.com https://www.blog-parts.com/ 120x120画像必要 ブログパーツドレッサー http://www.blog-dresser.com/…

unicorn + rails + nginx 設定メモ

/etc/nginx/nginx.conf 変更なし /etc/nginx/conf.d/default.conf ---------- upstream api { server unix:/tmp/unicorn.sock; } server { listen 80; server_name localhost; location / { root /var/www; index index.html; ssi on; } } server { listen 8…

全国53新聞社webページイッキ読み・・・けっこうわろた

ひまなのでなんとなく 各新聞社のニュースヘッドラインをrssで一箇所で見れたりとかしないかなと思い 調べついでに全国53新聞社webページイッキ読みしてみた。 昔スタイルのとか、ん?まじ?とか、いいなあとか、いろいろ なんかいい 北國新聞 http://www.ho…

sakura vps 512M→1G移行メモ ubuntu + nginx + unicorn + ruby on rails

さくらインターネットさまから512Mプランは終わったので1Gプランどうですか的なことでしたので 以下そのときの作業メモ ubuntuインストール公式サイトの手順どうりで http://support.sakura.ad.jp/manual/vps/mainte/custom_ubuntu.html ssh設定 mkdir ~/.ss…