2009-06-19 :-)
_ 朝ッ
0530 起床
_ 仕事
0830 出勤。
_ iP.* OS3.0 とかなんとか
音楽聴くかリッジレーサー7 の動画を見るくらいしか使わない私のような使い方に幸福はあるのだろうか....! 次回 最終回 ! 7月からは新番組「はてな出張所」がはじまるよ!
とりあえずインストールしてみよう。
_ Takayuki_Nak@mura_BLOG!! : 第一回 ゲームミュージックコンポーザー座談会
なんぞそれ?
ぐぐ
ゲーム業界の第一線で活躍されているコンポーザーの方々をゲストにお招きし、なんでも語り尽くしてしまおうという座談会をノイジークロークにて開催致します。参加コンポーザーの皆様はこちらです。(50音順)
ということで参加者
- いとうけいすけ氏 (ポケモン不思議のダンジョン 空の探検隊/忍道戒 他)
- 甲田雅人氏(モンスターハンター/デビル・メイ・クライ 他)
- 坂本英城氏(428?封鎖された渋谷で?/無限回廊/AQUANAUT'S HOLIDAY ~隠された記録~ 他)
- 佐野信義氏(リッジレーサー/鉄拳/ドラッグオンドラグーン 他)
- 庄司英徳氏(龍が如くシリーズ/F-ZERO GX/AX 他)
- 中村隆之氏(バーチャファイター/ルミネス/剣豪 他)
- 細江慎治氏(ドラゴンスピリット/リッジレーサー/ポップンミュージック 他)
- 光田康典氏(クロノトリガー/クロノクロス/ゼノギアス 他)
- 光吉猛修氏(デイトナUSA/セガラリー/シェンムー/バーチャファイター 他)
この座談会の模様は、2009年7月中旬に、ノイジークロークのサイトで特設ページとして掲載される予定です。お楽しみに
ははあ。では参加者たちをウォッチしておこう。代表日記 というのがあるが座談会については何も触れてないので「座談会の模様を掲載しました」と告知してくれることは期待できない。
_ [WWW::Mechanize][Ruby]WWW::Mechanize を使う
環境
cygwin
準備
mechanize を gem でインストールしておく。怒られた
% gem install mechanize
Building native extensions. This could take a while...
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install mechanize
checking for iconv.h in /opt/local/include/,/opt/local/include/libxml2,/opt/local/include,/opt/local/include,/opt/local/include/libxml2,/usr/local/include,/usr/local/include/libxml2,/usr/include,/usr/include/libxml2,/usr/include,/usr/include/libxml2... yes
checking for libxml/parser.h in /opt/local/include/,/opt/local/include/libxml2,/opt/local/include,/opt/local/include,/opt/local/include/libxml2,/usr/local/include,/usr/local/include/libxml2,/usr/include,/usr/include/libxml2,/usr/include,/usr/include/libxml2...
yes
checking for libxslt/xslt.h in /opt/local/include/,/opt/local/include/libxml2,/opt/local/include,/opt/local/include,/opt/local/include/libxml2,/usr/local/include,/usr/local/include/libxml2,/usr/include,/usr/include/libxml2,/usr/include,/usr/include/libxml2...
no
libxslt is missing. try 'port install libxslt' or 'yum install libxslt-devel'
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/nokogiri-1.3.1/ext/nokogiri/gem_make.out
ということで cygwin の setup.exe から起動して以下のパッケージをインストールする
- Gnome/libxslt-devel
再度 gem
% gem install mechanize Building native extensions. This could take a while... Successfully installed nokogiri-1.3.1 Successfully installed mechanize-0.9.3 2 gems installed Installing ri documentation for nokogiri-1.3.1... Installing ri documentation for mechanize-0.9.3... Installing RDoc documentation for nokogiri-1.3.1... Installing RDoc documentation for mechanize-0.9.3...
ruby
とりあえずそのまま実行してみる
RubyのWWW::Mechanizeを解説 for 0.9 (仮) - きたももんががきたん。
#!/usr/bin/ruby -Ks
require 'rubygems'
require 'mechanize'
agent = WWW::Mechanize.new
agent.get('http://www.google.com/')
agent.page.form_with(:name => 'f'){|f|
f.field_with(:name => 'q').value = 'Ruby!'
f.click_button
}
agent.page.links.each do |link|
puts link.href
end
おk
_ [読書メーター][tdiary][ruby]読書メーターの先週分のまとめを印字する tdiary プラグイン
読書メーターにログインしたあとにここにアクセスすると表示されるアレ → 読書メーター - まとめ - 先週分
「ブログなどHTMLタグが使える場合はこちら!」にある textarea を取得する
あらかじめ mechanize をインストールしておく。
こんな感じ。
require 'rubygems'
require 'mechanize'
def book_meter
mail = '<your email>'
pass = '<your password>'
agent = WWW::Mechanize.new
agent.get('http://book.akahoshitakuya.com/login')
agent.page.form_with(:action => '/login'){|f|
f.field_with( :name => 'mail' ).value = mail
f.field_with( :name => 'password' ).value = pass
f.checkboxes[ 0 ].check
f.click_button
}
page = agent.get('http://book.akahoshitakuya.com/matome_lw')
body = Nokogiri( page.body )
text = body.search( 'textarea' )[ 1 ].to_s
text.sub!( '<textarea onclick="this.select()" style="width:500px;height:200px;">', '' )
return text
end
使う
{{ book_meter }}
ref.
[ツッコミを入れる]






