http://advent-calendar2readlists.herokuapp.com/ Qiita や Adventar、ATND のアドベントカレンダーがオフラインの電子書籍で読みたい、と思ったので作った。例えば寿司アドベントカレンダーなら、URLを入れて変換すると、readlistsを裏側で叩いて、こんな感じに生成される。 http://readlists.com/307857dc/ 生成後は readlists の機能を使って、iPhone や iPad に送ったり、dropbox に epub を保存したり、その他いろいろな方法で、様々なデバイスで読むことが出来る(※なお readlists の kindle に送る、は一部文字がおかしくなるのでオススメしない)。また Qiita のアドベントカレンダーは、HTML の要素の関係で必要の無い要素も混じってしまっていて、ちょっ
@sugyan げんきだして! 2013-02-06 21:50:53 via Twitter for Mac to @sugyan って自分で言うの面倒なので自動的に励ましてくれるbotが欲しいと思って。 https://github.com/sugyan/genki-bot 今ならherokuでUserStreamとか使ってネガティブワードに反応してtweetするとか簡単に書けるのかな、と require 'tweetstream' TweetStream.configure do |config| config.consumer_key = ENV['TWITTER_CONSUMER_KEY'] config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET'] config.oauth_token = ENV['TWITTER_ACCES
@fumito_ito 実は本日からですが、Heroku上のアプリに限り、stdoutからTDにデータを送れるようになりました。一度addonをremove -> addして頂くと使える様になります。 > bit.ly/U2sSWn— Kazuki Ohtaさん (@kzk_mover) 1月 17, 2013 というわけで、実際に試してみました。 公式のページはこちら How to ? 公式のページにある通り、Treasure Data Hadoopとheroku-td CLIプラグインをインストールした後に以下の形式で標準出力すると指定したDBのテーブルにデータが挿入されます。 @[database.table] JSON-In-ONE-LINE データの挿入は5分毎に行われるようです。 Node.jsでやってみた やってみました。 ひな形を作る。 $ express td-sampl
Mitsumasa Kubo (@beatinaniwa) interests: football, natural language processing 先週GumchartというGumroadの人気アイテムをTwitterからランキングするウェブサービスを作りました。 おかげさまでアクセスはほとんどないんですが、Tweetを収集して保存して運用しようというときに参考になるようなまとまった日本語記事があまりなかったのでそれについて書きたいと思います。英語の記事では次の記事が一番参考になりました。 Twitter Streaming with EventMachine and DynamoDB まずはどこにどういう形式でTweetを保存するか決めます。もちろんローカルのMySQLにでもいいんですが、MongoDBを個人的に使ってみたかったのと、MongoDBのホスティングサービスであるM
ShowOffというRuby製のプレゼンソフトがあります。ShowOffではプレゼンスライドをmarkdownで書いて、Sinatraアプリとして簡単に実行できます。Sinatraですから当然、Herokuにも簡単にデプロイできます。 スライド版 プレゼンには全く縁はありませんが、スライド作りが面白そうだったので、1つ作ってHerokuにデプロイしてみました。ネタは1年くらい前にブログで書いた「1から始めるRuby」です。 「1から始めるRuby」 on Heroku 見てくれる人がいたらうれしいですが、現状ではSafariでしかスライドのコントロールがうまくできません。僕の環境(OSX Snow Leopard)のChromeおよびFirefoxではコントロールが効きません(但し、ページを開いた後ブラウザの戻るを押すことで自動再生はできます)。解決策ご存知の方おられましたら助けてください
Webアプリと同じプロセスにworker入れてお金が節約できる。 Webアプリは “リクエスト来る→サーバーで処理→レスポンス返す” というのを繰り返すわけだが、サーバーでの処理に時間がかかる場合にそこを別のプロセスに任せて、先にレスポンスを返しておいて、あとで結果は取りに来てよ、という実装をする事がある。 時間がかかる処理は2つに大別できる。 動画をエンコードするとか。CPU負荷が高くて時間がかかるのでWebサーバーとは別の場所で動かしたい Twitter APIを10回ぐらい使った結果をまとめて返すとか。CPU負荷は低いけどIO待ちが長い 2の方について、HerokuのRuby環境で安く上げる方法をまとめる。 手法 HerokuのcedarスタックでRuby使う時はwebサーバーとしてThinが起動する。 ThinはEventMachineの中で動いてるので、EM::defer等が使え
2011年12月20日00:10 Ruby heroku Herokuって便利だし利用までたった3ステップですお!! Ruby Advent Calendar jp: 2011 : ATNDの20日目の記事です。19日目はtamootさんでWindows環境で torquebox + JRuby + #tDiary を動作させる - 会長@腹部日記(2011-12-19)でした。 さて、ブログ書くのちょーひさびさですが、今日は Heroku について書きます>< # ちなみに去年の Ruby Advent Calendar ではこんな記事を書きました プログラマたるもの、Webサービスを作りたいと考えるのは自然なことでしょう。ただ問題は作ったものをどうやって公開/運用するか、です。自宅サーバやレンタルサーバでももちろん良いのですが、Ruby の場合だと Heroku を利用する、という選択
「HerokuでWebアプリ開発を始めるなら知っておきたいこと」シリーズの第5回では、実際にHerokuを利用する上で知っておくと便利な「環境変数ENV」について書きます。このシリーズのまとめページはこちら。 環境変数ENVが便利 この環境変数ENVって、Heroku以外にも普通に備わっているものでしょうか? 自分は他のPaaS環境やVPSなどを詳しく知らないので、どの環境にも備わっている常識的なことを力説してたらちょっと恥ずかしいんですが、Herokuで初めて知って便利だと思ったので書きます。これからHerokuを使い始めるなら知っておいて損はないです。 Herokuでは、Herokuアプリ単位で環境変数を設定することが可能です。コマンドプロンプトからherokuコマンドで設定することができ、その値をRubyコード内からは、ENV['HOGEHOGE']というハッシュ(連想配列)で参照す
「HerokuでWebアプリ開発を始めるなら知っておきたいこと」シリーズの第6回では、Herokuなら簡単に作れる動作チェック用のサイト「ステージング環境」について書きます。このシリーズのまとめページはこちら。 動作チェック用サイトを簡単に作れる これは前回の環境変数ENVの便利さと、第1回で紹介したHerokuの無料スペックの高さを掛け合わせた使い方ですが、Herokuアプリを作るなら断然オススメの方法です。 業界用語(?)ではステージング環境と言うのですが、サイト制作やアプリ制作に携わっている人ならほとんどがやったことのある本番に近い状態で動作チェックするための環境のことです。Webアプリにおいて特にステージング環境と言った場合は、限りなく本番に近いサイトのことを指します。 Herokuは、この“限りなく本番に近い”動作チェック用の別サイトを構築するのにとても適しています。その主な理由
「HerokuでWebアプリ開発を始めるなら知っておきたいこと」シリーズの第4回では、Herokuで使えるWebフレームワーク「Sinatra」について書きます。このシリーズのまとめページはこちら。 RailsもSinatraも使える HerokuはRails専用のPaaSと思われがちですが、厳密にはそうではなく、RackというWebサーバーインターフェイス上で動作するものなら何でも動くようです。そしてこのおかげでSinatraのような数ページしか存在しない低機能な場合には、Railsは重厚すぎるのでおそらく向きません。 こういった小さなWebアプリを目的として、とりあえず試してみたいや小さな状態から必要なものを積み上げていきたい場合に最適なのが、最小労力で手早くWebアプリを作成するためのフレームワークSinatraです Sinatra: README (Japanese) Sinatr
はじめに 前回は、Facebookアプリにいいね!ボタンを付ける方法をご紹介しました。Facebookの特徴の1つである、いいね!機能をアプリに取り込む方法を学んでいただけたかと思います。今回は、Herokuのコマンドシステムをご紹介します。Herokuを利用すると必ず利用する herokuコマンドですが、そのコマンドをより便利に拡張する方法が準備されています。 Herokuコマンドpluginの仕組み Herokuのアプリケーションの設定などを操作するのはWebの画面からでも可能ですが、基本的にコマンドラインから実行します。開発者としてはコマンドラインをよく操作することもあり、コマンドラインから操作できることのほうが手軽と感じる人も多いのではないでしょうか? Herokuのコマンドも非常に良くできており、アカウント情報を保持してくれたり、現在いるディレクトリからどのアプリを操作しようとし
はじめに Herokuを使ってstiffslack-watcherというサイトを作りました。 http://stiffslack-watcher.com/ Herokuとは Railsアプリのホスティングサービス。DBが5MBまでなら無料で使えて、さらに日次のCronが使えたり、Gitでデプロイできたりと何かと使い勝手がよい。手早くRailsアプリを作りたい時にオススメ。 興味がある人は、Herokuがどのような構成で運用されているかを見てみるのも良いかもしれない。*1 Heroku | How it Works http://www.heroku.com/how Herokuクイックスタート 前提条件 RubyとRailsも使えるようにしておくこと。あとは、Herokuを使うにはGitが必要。以下のサイトでも見ながらGitを使える様にしておく。 Max OS X http://help.
Google のウェブログ公開ツールを使って、テキスト、写真、動画を共有できます。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く