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
using System; | |
using System.Net.Sockets; | |
using Media.Rtsp; | |
namespace RtspAuthTest | |
{ | |
class SafeRtspClient : RtspClient | |
{ | |
public SafeRtspClient(Uri location, ClientProtocolType? rtpProtocolType = null, int bufferSize = DefaultBufferSize, Socket existing = null, bool leaveOpen = false, int responseTimeoutInterval = (int)Media.Common.Extensions.TimeSpan.TimeSpanExtensions.MicrosecondsPerMillisecond) | |
: base(location, rtpProtocolType, bufferSize, existing, leaveOpen, responseTimeoutInterval) |
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
# 2. Include Sweeping module in your controller(s) to have cache_sweeper | |
# method to be avaliable, or right in ApplicationController so it will be | |
# available in all controllers inheriting from it. | |
class ApplicationController < ActionController::Base | |
include ActionController::Caching::Sweeping | |
# ... | |
end |
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
gem 'rails', '3.2.1' | |
gem 'mongoid', :git => 'git://github.com/mongoid/mongoid.git' | |
gem 'mongoid-paperclip', :require => "mongoid_paperclip" | |
# if you're using rspec (should be temporary until mongoid-rspec will be updated to mongoid 3.0) | |
# group :test do | |
# gem "mongoid-rspec", :git => 'https://github.com/tanordheim/mongoid-rspec.git', :branch => 'mongoid_3_0' | |
# end | |
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
map.disableScrollZoom(); | |
if($.browser.mozilla) { | |
map.addEventListener(map.getContainerId(), 'DgMouseWheel', function(e) { | |
window.handleEvent(e.windowEvent); | |
}); | |
} | |
else { | |
window.onmousewheel = document.onmousewheel = null; | |
} |