My Recent Pastes (225 and counting)

Pastes by VVSiz (225 and counting)

Pages:

Below are the 15 most recent pasties by VVSiz.

July 04, 2008
1:47PM EDT
by VVSiz

#### jruby --server ar-init.rb (activerecord 2.1, linux, mysql)
                                         user     system      total        real
15K AR::Base.find(:first)           11.917000   0.000000  11.917000 ( 11.916708)
15K AR::Base.find(:last)             5.932000   0.000000   5.932000 (  5.931740)
10K AR::Base.find(:all)              4.637000   0.000000   4.637000 (  4.637166)

July 04, 2008
1:36PM EDT
by VVSiz

require 'benchmark'
require 'rubygems'
gem 'activerecord', '2.1' # specify the version
require 'active_record'

July 04, 2008
6:06AM EDT
by VVSiz

1)
IO#sysread on a file flushes write buffer when called immediately after a buffered IO#write FAILED
Expected "01234"
 to equal "56789"

July 03, 2008
10:14AM EDT
by VVSiz

            else if (do_search) {
                char *path = getenv("RUBYPATH");

                script = 0;
                if (path) {

July 02, 2008
1:34PM EDT
by VVSiz

        start_head=''
        if test -s "$GIT_DIR/BISECT_START"
        then
                # Reset to the rev from where we started.
                start_head=$(cat "$GIT_DIR/BISECT_START")

July 02, 2008
11:10AM EDT
by VVSiz

1)
CGI::HtmlExtension#caption when passed a Hash returns a 'caption'-element, using the passed Hash for attributes FAILED
Expected "<CAPTION ALIGN=\"left\" ID=\"test\"></CAPTION>"
to equal "<CAPTION ID=\"test\" ALIGN=\"left\"></CAPTION>"

July 02, 2008
10:51AM EDT
by VVSiz

All the StringIO failures for MRI 1.8.7 HEAD.

July 02, 2008
8:23AM EDT
by VVSiz

/*
 * call-seq:
 *   strio.each_byte {|byte| block }  -> strio
 *
 * See IO#each_byte.

July 02, 2008
8:21AM EDT
by VVSiz

# MRI 1.8.6

5M StringIO#each_byte                2.250000   0.870000   3.120000 (  3.126779)
100K String#each_byte                3.100000   1.090000   4.190000 (  4.185421)

July 01, 2008
5:06PM EDT
by VVSiz

--- /tmp/Populator1.java        2008-07-01 23:03:36.000000000 +0200
+++ /tmp/Populator2.java        2008-07-01 23:04:19.000000000 +0200
@@ -30,8 +30,8 @@
         metaClass = cls.getMetaClass();
         metaClass.addMethod("utc", javaMethod);

July 01, 2008
4:42PM EDT
by VVSiz

@JRubyMethod(name = "at", meta = true)
public static IRubyObject at(ThreadContext context, IRubyObject recv, IRubyObject arg)

@JRubyMethod(name = "at", meta = true)
public static IRubyObject at(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2)

July 01, 2008
4:42PM EDT
by VVSiz

@JRubyMethod(name = "at", meta = true)
public static IRubyObject at(ThreadContext context, IRubyObject recv, IRubyObject arg)

@JRubyMethod(name = "at", meta = true)
public static IRubyObject at(ThreadContext context, IRubyObject recv, IRubyObject arg1, IRubyObject arg2)

July 01, 2008
4:14PM EDT
by VVSiz

### JRuby numbers BEFORE ####

5m Time.at                           8.569000   0.000000   8.569000 (  8.568490)
5m Time.at, TZ set                   9.615000   0.000000   9.615000 (  9.614897)
5m Time.at(Time)                     8.163000   0.000000   8.163000 (  8.162821)

July 01, 2008
4:04PM EDT
by VVSiz

 [java] 1)
     [java] Thread#stop? reports if a thread has stopped due to sleeping FAILED
     [java] Expected false
     [java]  to equal true
     [java]

July 01, 2008
1:05PM EDT
by VVSiz

1)
IO#sysread on a file flushes write buffer when called immediately after a buffered IO#write FAILED
Expected "01234"
 to equal "56789"

Next page

Previous page