2010-10-17から1日間の記事一覧

「漫画の新聞」の記事ページに日付と思われる文字列を挿入する

記事日付の記載がないのって新聞の記事としてどうなんでしょうか。 location.href.match("http://newsmanga\.com/.+?/(\\d{4})(\\d{2})(\\d{2})"); var date = document.createElement("p"); date.textContent = RegExp.$1 + "-" + RegExp.$2 + "-" + RegExp…

Feed::Custom でエラーが出た時に pp config する

もっと根元の方で対処すると良さそうだな、と思いつつ lib-plugins/yapra/plugin/feed/custom.rb の run の中味を begin/rescue/end で囲んで pp config させただけ。 class Custom < Yapra::Plugin::MechanizeBase def run(data) begin urls = if config['u…