My Recent Pastes (891 and counting)

Pastes by headius (891 and counting)

Pages:

Below are the 15 most recent pasties by headius.

April 20, 2007
12:51AM EDT
by headius

// First, a change to alias creation to also do the camelCase versions:
    private static void assignAliases(MethodCallback callback, Map assignedNames) {
        String name = callback.name;
        addUnassignedAlias(getRubyCasedName(name),assignedNames,callback);
        // logic adapted from java.beans.Introspector

April 19, 2007
2:19AM EDT
by headius

        try {
            this.checkLocks = true;
            if (DEBUG) System.out.println("thread " + Thread.currentThread() + " trying to kill");
            while (!(currentThread.lock.tryLock() && this.lock.tryLock())) {
                if (currentThread.lock.isHeldByCurrentThread()) currentThread.lock.unlock();

April 19, 2007
2:15AM EDT
by headius

        if (checkLocks || killed || receivedException != null) {
            try {
                while (!this.lock.tryLock());

                ensureCurrent();

April 18, 2007
11:00PM EDT
by headius

~/NetBeansProjects/jruby $ ruby -e "set_trace_func(proc {|event, file, line, id, binding, klass| puts binding.class}); puts 'hello'"
Binding
Binding
Binding
helloBinding

April 18, 2007
3:50PM EDT
by headius

src/org/jruby/Ruby.java                 src/org/jruby/RubyFloat.java            src/org/jruby/RubyObjectSpace.java
src/org/jruby/RubyArgsFile.java         src/org/jruby/RubyGC.java               src/org/jruby/RubyPrecision.java
src/org/jruby/RubyArray.java            src/org/jruby/RubyGlobal.java           src/org/jruby/RubyProc.java
src/org/jruby/RubyBigDecimal.java       src/org/jruby/RubyHash.java             src/org/jruby/RubyProcess.java
src/org/jruby/RubyBignum.java           src/org/jruby/RubyIO.java               src/org/jruby/RubyRange.java

April 17, 2007
1:18PM EDT
by headius

Using native version
  1.297000   0.000000   1.297000 (  1.298000)
  1.132000   0.000000   1.132000 (  1.133000)
  0.917000   0.000000   0.917000 (  0.917000)
  0.819000   0.000000   0.819000 (  0.820000)

April 16, 2007
10:56PM EDT
by headius

app_answer      0.584   2.239
app_factorial   0.030   4.248
app_fib 7.126   10.549
app_mandelbrot  2.346   10.300
app_raise       2.587   4.441

April 16, 2007
10:39PM EDT
by headius

app_factorial   0.029   3.459
app_fib         7.094   5.093
app_mandelbrot  2.340   9.011
app_strconcat   1.827   2.391
app_tak         9.714   5.394

April 16, 2007
5:13AM EDT
by headius

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 34.28   136.50    136.50   700408     0.19     0.29  ActiveRecord::ConnectionAdapters::Quoting.quote
 16.93   203.91     67.42   700408     0.10     0.41  JdbcSpec::MySQL.quote
  9.19   240.50     36.58  2702355     0.01     0.01  Module#===

April 14, 2007
9:20PM EDT
by headius

  def split(pattern = $FIELD_SEPARATOR, limit = nil)
    return [] if self.empty?
    return [self] if limit == 1
    matches = []

April 14, 2007
8:12PM EDT
by headius

Flat profile of 24.75 secs (2097 total ticks): main

  Interpreted + native   Method                        
  5.6%   117  +     0    org.jruby.runtime.callback.InvocationCallback.getArity
  3.9%    82  +     0    org.jruby.RubyModule.getMethods

April 14, 2007
8:04PM EDT
by headius

Flat profile of 80.51 secs (6147 total ticks): main

  Interpreted + native   Method                        
  2.7%   160  +     0    org.jruby.RubyClass.getRuntime
  2.6%   155  +     0    org.jruby.RubyModule.getMethods

April 14, 2007
8:00PM EDT
by headius

Flat profile of 23.64 secs (1974 total ticks): main

  Interpreted + native   Method                        
  6.0%   117  +     0    org.jruby.runtime.callback.InvocationCallback.getArity

April 14, 2007
7:50PM EDT
by headius

    public static char[] plain(byte[] b, int start, int length) {
        char[] chars = new char[length];
        for (int i = start; i < length; i++) {
            chars[i] = (char) (b[i] & 0xFF);
        }

April 12, 2007
6:05AM EDT
by headius

 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr s0 s1 s2 s3   in   sy   cs us sy id
 0 0 0 2181672 3540060 8 73  1  0  0  0  0  0  0  0  0 1272 75912 1577 5  2 93

Next page

Previous page