π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Finished in 500.332613 seconds. | |
| 1) Failure: | |
| test_sin(DL::TestDL) [/home/takano32/ruby/test/dl/test_dl2.rb:95]: | |
| <1.0> expected but was | |
| <0.9893582466233818>. | |
| 2) Failure: | |
| test_array_comparisons(Rake::TestFileList) [/home/takano32/ruby/test/rake/test_filelist.rb:462]: | |
| <1> expected but was |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) Failure: | |
| test_sin(DL::TestDL) [/home/takano32/archives/ruby-1.9.1-r25810/test/dl/test_dl2.rb:38]: | |
| <0.989358246623382> expected but was | |
| <0.999999682931835>. | |
| 2) Failure: | |
| test_getgrgid(TestEtc) [/home/takano32/archives/ruby-1.9.1-r25810/test/etc/test_etc.rb:75]: | |
| <#<struct Struct::Group name="adm", passwd="x", gid=4, mem=[]>> expected but was | |
| <#<struct Struct::Group name="adm", passwd="*", gid=4, mem=["varenet"]>>. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !/usr/bin/env ruby1.8 | |
| require 'rubygems' | |
| require 'mechanize' | |
| require 'scrapi' | |
| def mechanize_doc | |
| agent = WWW::Mechanize.new | |
| response = agent.get('http://twitter.com/takano32/hametsu/members') | |
| return response | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test_thread.rb .........................F.................... | |
| #228 test_io.rb: | |
| begin | |
| require "io/nonblock" | |
| r, w = IO.pipe | |
| w.nonblock = true | |
| w.write_nonblock("a" * 100000) | |
| w.nonblock = false | |
| t1 = Thread.new { w.write("b" * 4096) } | |
| t2 = Thread.new { w.write("c" * 4096) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static VALUE | |
| flo_is_finite_p(VALUE num) | |
| { | |
| double value = RFLOAT_VALUE(num); | |
| #if HAVE_FINITE | |
| if (!finite(value)) | |
| return Qfalse; | |
| #else | |
| if (isinf(value) || isnan(value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| class Hoge | |
| def initialize(h) | |
| h.each do |k,v| | |
| eval("@#{k} = #{v}") | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Server Error in '/' Application. | |
| You must specify a token | |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
| Exception Details: System.ArgumentException: You must specify a token | |
| Source Error: | |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Server Error in '/' Application. | |
| Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. | |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
| Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. | |
| Source Error: | |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Server Error in '/' Application. | |
| Transaction (Process ID 336) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. | |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
| Exception Details: System.Data.SqlClient.SqlException: Transaction (Process ID 336) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. | |
| Source Error: | |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby | |
| require 'rubygems' | |
| require 'watir' | |
| require 'uri' | |
| Watir::Browser.default = "firefox" | |
| browser = Watir::Browser.start("http://h2.hatena.ne.jp/takano32/recommended_friends?mode=added") | |
| loop do | |
| browser.buttons.first.click | |
| end |