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
Ruby 1.8.7 | |
September 12, 2010 | |
Original driver (1.0.8) | |
Test (real) (real ops/s) (user) (user ops/s) | |
insert (small, no index)................ 0.88 5662 0.77 6493 | |
insert (medium, no index)............... 1.48 3388 0.99 5050 | |
insert (large, no index)................ 8.47 590 8.14 614 | |
insert (small, index)................... 0.87 5759 0.77 6493 |
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
That's not how you should read the info. Java is launched from some Ruby process, | |
likely your app, which in turn is in PassengerHelperAgent's process group. |
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
diff --git a/lib/authlogic_openid/acts_as_authentic.rb b/lib/authlogic_openid/acts_as_authentic.rb | |
index 92c9c52..508b544 100644 | |
--- a/lib/authlogic_openid/acts_as_authentic.rb | |
+++ b/lib/authlogic_openid/acts_as_authentic.rb | |
@@ -167,7 +167,7 @@ module AuthlogicOpenid | |
end | |
def validate_password_with_openid? | |
- !using_openid? && require_password? | |
+ (!using_openid? && require_password?) || password_changed? |
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 | |
# encoding: binary | |
require 'socket' | |
BURST = true | |
def write_to(socket, data) | |
puts "> #{data.inspect}" | |
socket.write(data) | |
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
require 'thread' | |
require 'open-uri' | |
LOCK = Mutex.new | |
$progress = 0 | |
def thread_start | |
while true | |
open("http://www.microsoft.com/en/us/default.aspx") do |f| | |
f.read |
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
class FoobarController < ActionController::Base | |
def index | |
session[:foo] = params[:foo] | |
render :text => "saved session: #{session.inspect}" | |
end | |
def show | |
render :text => "current session: #{session.inspect}" | |
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
From d81d510048baf1b4f6184354e9dfbbdf7d0618dd Mon Sep 17 00:00:00 2001 | |
From: Hongli Lai (Phusion) <[email protected]> | |
Date: Wed, 6 Apr 2011 13:34:43 +0200 | |
Subject: [PATCH] Improve XHTML backend's table of contents generation latency. Instead of generating the TOC after window.onload, generate it every 500 msec until window.onload or until the DOM is ready. | |
--- | |
javascripts/asciidoc-xhtml11.js | 69 +++++++++++++++++++++++++++++++++++---- | |
xhtml11.conf | 4 +- | |
2 files changed, 64 insertions(+), 9 deletions(-) |
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
======= Backtrace: ========= | |
/lib/libc.so.6(+0x71ad6)[0x7f0bd9749ad6] | |
/lib/libc.so.6(cfree+0x6c)[0x7f0bd974e84c] | |
mongos(_ZN5mongo13BackgroundJob7jobBodyEN5boost10shared_ptrINS0_9JobStatusEEE+0x1ce)[0x50364e] | |
mongos(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN5mongo13BackgroundJobENS_10shared_ptrINS7_9JobStatusEEEEENS2_5list2INS2_5valueIPS7_EENSD_ISA_EEEEEEE3runEv+0x74)[0x504e64] | |
mongos(thread_proxy+0x80)[0x69ec30] | |
/lib/libpthread.so.0(+0x68ba)[0x7f0bda1eb8ba] | |
/lib/libc.so.6(clone+0x6d)[0x7f0bd97a702d] | |
======= Memory map: ======== | |
00400000-008b1000 r-xp 00000000 09:03 63717462 /usr/bin/mongos |
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
From c14a9b57c02a8301358c989951b5c1fa97a83130 Mon Sep 17 00:00:00 2001 | |
From: Hongli Lai (Phusion) <[email protected]> | |
Date: Wed, 6 Apr 2011 13:34:43 +0200 | |
Subject: [PATCH] Improve XHTML backend's table of contents generation latency. Instead of generating the TOC after window.onload, generate it every 500 msec until window.onload or until the DOM is ready. | |
--- | |
javascripts/asciidoc-xhtml11.js | 75 +++++++++++++++++++++++++++++++++++---- | |
xhtml11.conf | 4 +- | |
2 files changed, 70 insertions(+), 9 deletions(-) |
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
require 'socket' | |
require 'thread' | |
FILENAME = ARGV[0] || 'doc/asciidoc.html' | |
BLOCK_SIZE = 128 | |
SLEEP_TIME = 0.01 | |
def serve_client(client, thread_id) | |
client.readline =~ /^([A-Z]+) (.+) HTTP/ | |
path = $2 |