25 Apr '13, 3am

重い腰をあげて、自動化をやろう。 / “Rubyist Magazine - Win32OLE 活用法 【第 6 回】 Web 自動巡回”

include WIN32OLE::VARIANT def ie.navigate_post url,query_string header = "Content-type: application/x-www-form-urlencoded" postdata = query_string.unpack("c*") navi = self.ole_method("Navigate2") ret = self._invoke(navi.dispid, [url, nil, nil, postdata, header], [VT_BYREF|VT_VARIANT, VT_BYREF|VT_VARIANT, VT_BYREF|VT_VARIANT, VT_ARRAY|VT_UI1, VT_BYREF|VT_VARIANT]) @lastargs = WIN32OLE::ARGV ret end

Full article: http://jp.rubyist.net/magazine/?0008-Win32OLE

Tweets

Whitespaceの魅力を語ってくれる学生を前にこれググってる。 

jp.rubyist.net 30 Apr '13, 6am

SSSTSSTSSS T SSSSSTTSSTST T SSSSSTTSTTSS T SSSSSTTSTTSS T SSSSSTTSTTTT T SSSSSTSSSSS T SSSSSTSTSTTT T SSSSSTTSTTTT T SSSSS...

即ブクマした

jp.rubyist.net 01 May '13, 2am

test/ attributes definitions files libraries metadata.rb providers README.rdoc recipes resources templates

“Rubyist Magazine - 標準添付ライブラリ紹介 【第 7 回】 net/http”

jp.rubyist.net 20 Apr '13, 12pm

xxx HTTPResponse 1xx HTTPInformation 100 HTTPContinue 101 HTTPSwitchProtocol 2xx HTTPSuccess 200 HTTPOK 201 HTTPCreated 20...

“Rubyist Magazine - YARV Maniacs 【第 2 回】 VM ってな...

jp.rubyist.net 20 Apr '13, 4am

# # RubiMaVM # module RubiMaVM class Instruction def initialize code, opts @code = code @opts = opts end attr_reader :code...

“Rubyist Magazine - YARV Maniacs 【第 10 回】 例外処理(...

jp.rubyist.net 20 Apr '13, 4am

begin # BODY rescue Exception => e case e when E_C # RESCUE_C when StandardError # RESCUE else # ELSE end ensure # ENSURE end