はてなブログには人気エントリーを返すRSSフィードがあるので人気エントリーを表示するアプリを勉強がてらに作ってみました。 Core Data に取得した人気エントリーを保存してるのでオフラインでもみれます。 (ただこのアプリ、表示できるのは人気エントリーの一覧だけです・・・) http://blog.hatena.ne.jp/-/hotentry/rss アプリのスクリーンショットです。 ・ブログ一覧画面(縦) ・ブログ詳細画面(縦) ・ブログ一覧画面(横) ・ブログ詳細画面(横) Xcode5から使いやすくなったAuto LayoutやXCTestなどあまりキャッチアップできていなかった部分の勉強や単体テストをちゃんと書くという目的があったのですが、作りっぱなしでは面白くないので公開します! https://github.com/asakahara/ASHatenaBlogReader
はてブ ソーシャルブックマークするという行為を、小銭に変えるために(教材:ZAPA編)を読んで。はてブを読んだ人がどのくらいアドセンスバナーをクリックするか不明ですが、少なくとも別サイトにブックマークを表示させてアドセンスを貼るよりは、b.hatena.ne.jp/userにアドセンスを貼ったほうが閲覧率は高くなると思うので、自分のはてなブックマークにGoogleAdsenceを貼る方法を紹介しておきます。 0708221 posted by ululun自分のブックマーク、例えば http://b.hatena.ne.jp/ululun/ の「設定」をクリックします。 0708222 posted by ululun「設定」の中にある「デザイン編集」をクリックしてください。 0708223 posted by ululun「ページのヘッダ」などに、はてなが提供しているアドセンスモジュール
このTypoでもText::Hatenaを使うことにしました。これまでは自作のRD2HTMLなクラスを使っていましたが、先日久しぶりにText::Hatenaを触った時に「日頃から触っていないとなかなか関心を持続することができないのではないか」と思い、常用することにしました。以下ではTypoのsvn trunkへText::Hatenaを導入する手順を説明していますが、実際にはText::Hatenaに限定しない方法ですので、他の記法(WikiとかtDiaryとか?)にも応用できるはずです。 ■ 導入手順 導入手順は次のとおり。書いてみると結構多いですね。この辺の手順を自動化できるとうれしいですよねえ(と、他人事のように)。 vendorディレクトリ以下にText::Hatenaを置く。 vendor/pluginsディレクトリ以下にテキストフィルターの雛形を用意する。 vendor/pl
gem install hatenaapiauth require 'hatena/api/auth' class AccountController < ApplicationController HATENA_PARAMS = {:api_key=>"...", :secret=>"..."} def hatena_auth Hatena::API::Auth.new(HATENA_PARAMS) end helper_method :hatena_auth def index redirect_to :action=>"login" end def login end def hatena_callback hatena_user = hatena_auth.login(@params[:cert]) render_text hatena_user.inspect end end <
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く