トップ «前の日記(2009-05-11) 最新 次の日記(2009-05-13)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|04|05|06|07|08|09|10|11|12|

2009-05-12 :-)

_ 朝ッ

0500 起床

_ 仕事

0830 出勤。

_ カンピオーネ!(2)

万里谷祐理が目覚めた(性的な意味で)

4086304600

_ [Twitter]Going My Way: 自分がいつ Twitter を始めたかがわかる、When Did You Join Twitter?

やってみた。

8 April 2007

おや

kengo さんと同じだった

_

20090512_0.jpg

鮭とイクラの親子丼

_ おやつ

20090512_1.jpg

箱根献上

_ [Iterator][デザインパターン]Head First デザインパターンを写経する - 9章 Iterator パターン

面倒なので Enumerable を使う。手抜き

#!/usr/bin/ruby -Ks

class Menu
  include Enumerable

  def initialize( item )
    @item = item
  end

  def each
    @item.each do |menu|
      yield menu
    end
  end
end

def main
  menuItems = [ "K&Bのパンケーキ朝食", "通常のパンケーキ朝食", "ワッフル"]
  menu = Menu.new( menuItems )
  menu.each {|n|
    puts n
  }
end

main
% ./menu.rb
K&Bのパンケーキ朝食
通常のパンケーキ朝食
ワッフル

_ [mixi][Plagger][tdiary]日記と mixi日記を同期させる

takumi がやってたので( tdiaryとmixiの日記を同期させる )真似してみた。

Pla

PlaggerでBlogとmixi日記を同期させた(完全版) - 偏読日記@はてな

ここのそのまま

以下を貰っておく。

% cd ~/plagger/plugins
% wget http://coderepos.org/share/export/33260/lang/perl/plagger/lib/Plagger/Plugin/Filter/Reverse.pm
% wget http://coderepos.org/share/export/33260/lang/perl/plagger/lib/Plagger/Plugin/Publish/MixiDiary.pm

あとこれも

cpan> install Atompub::Client

yaml はそのままコピペ

global:
  assets_path: /home/rin/plagger/assets
  timezone: Asia/Tokyo
  plugin_path:
    - /home/rin/plagger/plugins
  log:
    level: debug
    encoding: euc-jp
  cache:
    base: /home/rin/plagger

plugins:
  - module: Subscription::Config
    config:
      feed:
        - url: http://www.area51.gr.jp/~rin/diary/no_comments.rdf    ←コメント無しフィード

  - module: Filter::Reverse
  - module: Filter::Rule
    rule:
      module: Deduped

#エントリ内の画像を取得して最初の3枚を投稿
  - module: Filter::FindEnclosures
  - module: Filter::FetchEnclosure
    config:
      dir: /home/rin/plagger

#エントリ内の<a> <img>を変換
  - module: Filter::Regexp
    config:
      regexp: s/<img.*?src=[\'\"](.*?)[\'\"].*?>/([m:133]$1)/g
  - module: Filter::Regexp
    config:
      regexp: s/<a.*?href=[\'\"](.*?)[\'\"].*?>(.*?)<\/a>/$2:($1)/g

  - module: Publish::MixiDiary
    config:
      username: USERNAME
      password: PASSWORD

実行

連続アクセスしたので制限された。

Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.
Plagger::Plugin::Publish::MixiDiary [info] updating mixi diary
Plagger::Plugin::Publish::MixiDiary [info] can't submit: 503 Service Temporarily Unavailable
Limit of post count
Plagger::Plugin::Publish::MixiDiary [info] sleep 3.

こんな感じ。画像は投稿できんか。

_ [リッジレーサー7]リッジレーサー7

ダイナミック練習。

  • 走行距離 18979.251 km
  • RSGP 進行度 100.0 %
  • 名声 18465 FP