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 'set' | |
module ActiveRecord | |
class Base | |
attr_accessor :is_scrooged, :scrooge_callsite_signature, :scrooge_own_callsite_set | |
@@scrooge_mutex = Mutex.new | |
@@scrooge_callsites = {} | |
@@scrooge_select_regexes = {} |
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
Country Load Scrooged (1.6ms) SELECT `countries`.id FROM `countries` WHERE (id IN | |
(10,33,48,70,81,82,90,124,136,146,147,170,175,176,186,181,54,80,94,185,194,27,45,63,131,40,7, | |
38,144,168,165,8,22,31,39,46,53,59,83,85,92,96,99,100,105,111,112,114,128,132,137,150,152,163, | |
164,171,172,177,190,196,198,199,207,62,180,25,126,9,339,342,47,89,208,6,119,43,293,24,345,115, | |
110,21,84,227,354,361,73,79,371,34,87,193,69,151,58,195,191,102,118,66,257,161,315,323,129,67, | |
17,28,159,68,134,366,65,265,18,229,61,77,64,331,184,255,359,349,356,50,149,299,365,357,41,358, | |
201,178,355,49,215,35,91,60,130,362,20,145,122,12,327,15,154,192,113,4,153,335,155,19,182,71, | |
169,95,52,74,200,108,138,101,107,123,187,368,13,2,72,16,11,360,135,55,376,188,156) AND continent='Asia') | |
SQL (1.2ms) SELECT `countries`.date,`countries`.country,`countries`.continent,`countries`.parent_country, | |
`countries`.official_name,`countries`.status,`countries`.highest_point,`countries`.height, |
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
#### fetches the ids | |
>> ii=Inbro.find(:all, :limit=>5) | |
Inbro Load Scrooged (0.3ms) SELECT `inbro`.id FROM `inbro` LIMIT 5 | |
#### causes reload of all columns, and fetches id of each client. Association is noted. | |
>> ii.each {|i| i.inbro_client.id} | |
Inbro Scrooge Reload (15.0ms) SELECT `inbro`.name,`inbro`.header,`inbro`.prompt,`inbro`.banner_name,`inbro`.banner_width,`inbro`.banner_height | |
FROM `inbro` WHERE `inbro`.id IN ('1','2','3','4','5') | |
InbroClient Load Scrooged (58.9ms) SELECT `inbro_client`.id FROM `inbro_client` WHERE (`inbro_client`.`id` = 7120) | |
InbroClient Load Scrooged (0.5ms) SELECT `inbro_client`.id FROM `inbro_client` WHERE (`inbro_client`.`id` = 7120) |
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
sds:rubinius-0.13.0 sds$ ./configure --enable-llvm | |
Using LLVM: auto | |
Checking for existing LLVM tree: not found. | |
Fetching http://asset.rubini.us/prebuilt/llvm-i686-apple-darwin10.2.0.tar.bz2... | |
curl: (22) The requested URL returned error: 404 | |
ERROR. No llvm-i686-apple-darwin10.2.0.tar.bz2 available on server. | |
Prebuilt packages updated. | |
Checking for 'llvm-config': not found | |
Checking out LLVM from svn: http://llvm.org/svn/llvm-project/llvm/branches/release_26/ Code appears to be proper svn tree. |
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
user system total real | |
1x 1.690000 0.000000 1.690000 ( 1.690578) | |
2x 1.770000 0.010000 1.780000 ( 1.780384) | |
4x 1.800000 0.000000 1.800000 ( 1.796044) | |
8x 1.830000 0.000000 1.830000 ( 1.835327) | |
16x 1.860000 0.010000 1.870000 ( 1.866744) | |
32x 1.950000 0.000000 1.950000 ( 1.951703) | |
64x 2.110000 0.000000 2.110000 ( 2.117919) | |
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
==> Build Environment | |
CC: /usr/bin/cc | |
CXX: /usr/bin/c++ | |
LD: /usr/bin/cc | |
CFLAGS: -O3 -w -pipe | |
CXXFLAGS: -O3 -w -pipe | |
MAKEFLAGS: -j4 | |
PATH: /Users/sds/.rvm/gems/ruby-1.8.7-p248/bin:/Users/sds/.rvm/gems/ruby-1.8.7-p248@global/bin:/Users/sds/.rvm/rubies/ruby-1.8.7-p248/bin:/Users/sds/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin | |
==> Downloading ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.2-2.tar.bz2 | |
curl -f#LA Homebrew 0.6 (Ruby 1.8.7-174; Mac OS X 10.6.4) ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.2-2.tar.bz2 -o /Users/sds/Library/Caches/Homebrew/imagemagick-6.6.2-2.tar.bz2 |
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
// block test - same as using ruby's Array#detect, but much more long winded | |
- (BOOL (^)(id obj, NSUInteger idx, BOOL *stop))inbro_test:(NSUInteger)inbro_id { | |
return [[^(id obj, NSUInteger idx, BOOL *stop) { | |
if ([obj inbro_id] == inbro_id) { | |
*stop = YES; | |
return YES; | |
} | |
return NO; | |
} copy] autorelease]; | |
} |
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
<script> | |
function appletInitialized(applet) { | |
setTimeout("set_applet_csrf()", 1000); | |
} | |
function set_applet_csrf() { | |
var name = "<%= request_forgery_protection_token %>"; | |
var value = "<%= form_authenticity_token %>"; | |
set_upload_param(name, 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
%applet{:id=>"jumpLoaderApplet", :name=>"jumpLoaderApplet", :code=>"jmaster.jumploader.app.JumpLoaderApplet.class", :archive=>"/java/jumploader_z.jar", :width=>"600", :height=>"400", :mayscript=>true} | |
%param{:name=>"uc_uploadUrl", :value=>upload_video_path} | |
%param{:name=>"uc_imageEditorEnabled", :value=>"false"} | |
%param{:name=>"ac_fireAppletInitialized", :value=>"true"} | |
- key = Rails.application.config.session_options[:key] | |
%param{:name=>"uc_requestProperties", :value=>"Cookie=#{key}=#{cookies[key]}"} |
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
<applet archive='/java/jumploader_z.jar' code='jmaster.jumploader.app.JumpLoaderApplet.class' height='400' id='jumpLoaderApplet' mayscript name='jumpLoaderApplet' width='600'> | |
<param name='uc_uploadUrl' value='/upload_video'> | |
<param name='uc_imageEditorEnabled' value='false'> | |
<param name='ac_fireAppletInitialized' value='true'> | |
<param name='uc_requestProperties' value='Cookie=_vod_session=BAh7CSIQX2NzcmZfdG9rZW4jNcVFS2xwQU03UDFGNzNIWGpHNFBIK0kzWmFBZFhJdm5BVDZYb3ZDaTNJY3c9Ig5yZXR1cm5fdG97CToHcHNUOgtzZWFyY2gwOgthY3Rpb24iCmluZGV4OgdpZDAiD3Nlc3Npb25faWQiJTkxMTZkMmFhZGRjYzBhODRkNjJjZmY2MWZkMWQ5MmViIhl3YXJkZW4udXNlci51c2VyLmtleVsHIglVc2VyaQc=--adbc189e2dbb8ef27da5127e9dcdf88cf57ffe7b'> | |
</applet> |
OlderNewer