This file contains 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
+ (id <ASICacheDelegate>)defaultCache | |
{ | |
@synchronized(self) { | |
return [[defaultCache retain] autorelease]; | |
} | |
} |
This file contains 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
+ (NSString *)defaultUserAgentString | |
{ | |
@synchronized (self) { | |
if (!defaultUserAgent) { | |
NSBundle *bundle = [NSBundle bundleForClass:[self class]]; | |
// Attempt to find a name for this application | |
NSString *appName = [bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; |
This file contains 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
@interface FRUploadListViewCell : PXListViewCell { | |
NSBox *_box; | |
NSTextField *_statusLabel; | |
NSProgressIndicator *_progressIndicator; | |
NSObjectController *_videoController; | |
} | |
@property (nonatomic,retain) IBOutlet NSBox *box; | |
@property (nonatomic,retain) IBOutlet NSTextField *statusLabel; | |
@property (nonatomic,retain) IBOutlet NSProgressIndicator *progressIndicator; |
This file contains 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
- (void)request:(ASIHTTPRequest *)request didSendBytes:(long long)bytes { | |
NSLog( @"video(%d) didSendBytes:%lld total:%lld", _recordId, bytes, _amountOfFileUploaded+bytes ); | |
[self setAmountOfFileUploaded:( [self amountOfFileUploaded] + bytes )]; | |
} |
This file contains 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
#0 0x7fff848e449f in CGErrorBreakpoint | |
#1 0x7fff8496ea66 in CGSGlobalErrorv | |
#2 0x7fff847a2d5f in CGSDeviceSynchronize | |
#3 0x7fff841c9d5a in ripc_Operation | |
#4 0x7fff830c2134 in -[NSWindow flushWindow] | |
#5 0x7fff869a6a2d in -[NSSet makeObjectsPerformSelector:] | |
#6 0x7fff8311d2fb in -[NSUIHeartBeat _heartBeatThread:] | |
#7 0x7fff80b5cf29 in __NSThread__main__ | |
#8 0x7fff857c14f6 in _pthread_start | |
#9 0x7fff857c13a9 in thread_start |
This file contains 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
#code | |
pp @buffer | |
puts @buffer.size | |
puts "LASTCHAR = #{@buffer[len].inspect} (#{@buffer[len] == 0.chr})" | |
raise RuntimeError.new("Invalid stompframe (missing null term)") unless @buffer[len] == 0.chr | |
#output | |
"\000" | |
1 | |
LASTCHAR = 0 (false) |
This file contains 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
@deals = Deal | |
if params[:updated_at] != '' | |
@deals = @deals.where("UNIX_TIMESTAMP(created) >= ?", params[:updated_at]) | |
end | |
@deals = @deals.page(params[:page].to_i).per(params[:per_page].to_i).all |
This file contains 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
Restored activemodel-3.0.8.rc1 | |
ERROR: While executing gem ... (NoMethodError) | |
undefined method `extensions' for nil:NilClass | |
/Library/Ruby/Site/1.8/rubygems/commands/pristine_command.rb:81:in `execute' | |
/Library/Ruby/Site/1.8/rubygems/commands/pristine_command.rb:80:in `each' | |
/Library/Ruby/Site/1.8/rubygems/commands/pristine_command.rb:80:in `execute' | |
/Library/Ruby/Site/1.8/rubygems/command.rb:278:in `invoke' | |
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:147:in `process_args' | |
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:117:in `run' | |
/Library/Ruby/Site/1.8/rubygems/gem_runner.rb:65:in `run' |
This file contains 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
/Library/Ruby/Site/1.8/rubygems/specification.rb:435:in `find_by_path': undefined method `contains_requirable_file?' for nil:NilClass (NoMethodError) | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `find' | |
from /Library/Ruby/Site/1.8/rubygems/specification.rb:403:in `each' | |
from /Library/Ruby/Site/1.8/rubygems/specification.rb:402:in `each' | |
from /Library/Ruby/Site/1.8/rubygems/specification.rb:434:in `find' | |
from /Library/Ruby/Site/1.8/rubygems/specification.rb:434:in `find_by_path' | |
from /Library/Ruby/Site/1.8/rubygems.rb:205:in `try_activate' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:58:in `require' | |
from /Library/Ruby/Site/1.8/rubygems/config_file.rb:55 | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require' |
This file contains 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
Siona:~/Projects/Fish/Shoal matt$ gem --version | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /Library/Ruby/Gems/1.8/specifications/actionmailer-3.0.8.rc1.gemspec:13. | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /Library/Ruby/Gems/1.8/specifications/actionpack-3.0.8.rc1.gemspec:13. | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#has_rdoc= called from /Library/Ruby/Gems/1.8/specifications/activemodel-3.0.8.rc1.gemspec:13. | |
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/activemodel-3.0.8.rc3.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10af3a880> 3.0.8.rc3"] | |
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#ha |