ついカッとなってPocketの未読記事をランダムに読めるWebサービス「RandomPocket」をつくりました。 追記(2016/01/28): 本記事で紹介しているサービス「RandomPocket」はすでに閉鎖しています。 ついカッとなって(現実逃避)、Pocketの未読記事をランダムに表示してくれる「RandomPocket」というWebサービスをリリースしました。 動機など なんでもかんでもPocketに登録する癖がついてしまった僕。気がついたら未読記事の数が5000件以上になっていました。 「Pocketにたまった未読記事を何とかしたい。埋もれた記事をちゃんと読みたい。」 そんな風に思ったのがこのサービスを作ろうと思ったきっかけです。 もしかしたら誰かの何番煎じかもしれません。ちゃんと調べてません。 参考にしたのは、StumbleUponというサービス。 製作時間はざっと8時間
I’m using Heroku mostly for playing around with latest technology and hosting free apps. Since Heroku “changed their pricing model”:http://devcenter.heroku.com/articles/reading-invoice due to the introduction of “the new process model”:http://blog.nofail.de/2011/06/migrating-an-existing-app-to-heroku-celadon-cedar-stack/ some of my apps changed from free to paid, especially those that had some bac
This add-on is operated by New RelicMonitor, troubleshoot, and tune production web applications. New Relic APM is available as a Heroku add-on that provides on-demand application performance management. New Relic offers seamless integration with the Heroku platform, enabling immediate and automatic access to New Relic APM’s comprehensive capabilities for monitoring, troubleshooting, and tuning web
This article is a work in progress, or documents a feature that is not yet released to all users. This article is unlisted. Only those with the link can access it. This article is archived. It no longer receives updates and is here for historical reference only. We can’t guarantee that any statements made are still true or that the instructions still work. This version of Rails is no longer suppor
Rails applications running on Heroku can have the asset pipeline compiled locally, at deploy-time, or at run time. For new users, we recommend reading Getting Started with Ruby on Heroku before proceeding further. The Rails 4 Asset Pipeline If you are using Rails 4 and the asset pipeline it is recommended to familiarize yourself with the document below. Much of the behavior between Rails 3 and Rai
socket、net/http、open-uriライブラリを使用して、Webページをフェッチするコード。 Body部だけを表示します。 (socket) #!/usr/bin/ruby require 'socket' host = 'www.hogehoge.com' port = 80 index_path = '/index.html' # WebページをfetchするためのHTTPリクエスト req = "GET #{index_path} HTTP/1.0\r\n\r\n" # Webサーバへ接続 socket = TCPSocket.open(host,port) # Webサーバへリクエストを送る socket.print(req) # Webサーバからのレスポンスを受け取る res = socket.read # ヘッダとボディ部に分割 headers,body = res
2011年04月30日 03:45 引き続きv1.7.2を検証していた際、IE6~IE8でメモリがうまく開放されないケースがあったため、 対策版としてv1.7.3をリリースしました。 ご迷惑をおかけしますが、最新版へのアップデートをお願いします。 2011年04月30日 00:15 jQuery.socialbuttonのXSS脆弱性につきまして、対応版のv1.7.2をリリースしました。 v1.7.2以前のバージョンでは、urlオプションを指定せずに以下のボタンを呼び出した際、無害化されていない document.URLを参照することが原因で、XSS脆弱性が発生します。 mixi いいね facebook いいね GREE いいね 新はてなブックマーク 旧はてなブックマーク ご迷惑をおかけしますが、最新版へのアップデートをお願いします。 2011年04月29日 02:40 現在、jQuer
昨日とあるところに投稿された質問で"フレーム内に表示する許可がありませんというエラーが出る"と書かれていました。 そういった設定がWebページに対して可能なのかどうか調べてみたところ、X-Frame-Options HTTP レスポンスヘッダというものを使えばコントロールできるようです。 LINK: The X-Frame-Options response header クリックジャッキング攻撃を防止するなどの目的で用意されたもののようですね。最近新しく出来たものではなく随分前からあるようです。今後使う機会もあるかもしれないので使い方を確認しておきました。 X-Frame-Optionsヘッダに設定可能な値はDENYとSAMEORIGINの2つがあります。 DENY フレーム内に表示するのを全面禁止 SAMEORIGIN 同じサイト内のページでフレームに読み込まれた場合だけ許可
So, I've found several examples for finding a random record in Rails 2 -- the preferred method seems to be: Thing.find :first, :offset => rand(Thing.count) Being something of a newbie I'm not sure how this could be constructed using the new find syntax in Rails 3. So, what's the "Rails 3 Way" to find a random record?
ブログ パスワード認証 閲覧するには管理人が設定した パスワードの入力が必要です。 管理人からのメッセージ 閲覧パスワード Copyright © since 1999 FC2 inc. All Rights Reserved.
brew install redis ---------- ==> Downloading http://redis.googlecode.com/files/redis-2.4.15.tar.gz ######################################################################## 100.0% ==> make -C /private/tmp/homebrew-redis-2.4.15-bg22/redis-2.4.15/src CC=/usr/bin/gcc-4.2 ==> Caveats If this is your first install, automatically load on login with: mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/r
以前に書いたコードを読んでいると、1カラムの値だけを変えるからといって、update_attribute メソッドを使っている部分があった。これはあまりよくない update_attribute とupdate_attribtues の違い 前者は1つのカラムの値を、後者は複数のカラムの値を更新できる。という違い以上に、「update_attribute メソッドはvalidation なしに更新、update_attributes メソッドはvalidation ありで更新」という違いがあります。 つまり、update_attribute 使うと、検証処理なしに、値が更新されてしまう。ソースを見ると、update_attribute の方は、save(false) を使って更新しているのが分かる。 activerecord/lib/active_record/base.rb at mas
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く