this happened to me using the built in mic on an older logitech webcam.
Fix appears to be to unplug it and re-plug it in once every boot.
Odd.
ref:http://forums.logitech.com/t5/Video-Chat-Applications-Non/webcam-mic-cuts-out-when-using-Skype/m-p/184513
Monthly Archives: June 2010
ssh port forward on specific ip address
appears from http://www.mail-archive.com/trilug@trilug.org/msg37193.html
that you can have your remote or local ssh port forwarding bind to *only a certain IP address*
by specifying an extra IP address:
-R [bind_address:]port:host:hostport
more rails optimization thoughts
beyond the discussion of “tuxedo” style rails scaling:
http://www.igvita.com/2010/06/07/rails-performance-needs-an-overhaul/
I wonder if you could do some “lazy loading” for things, like
def before_filter_method
@order = LazyLoad { Order.find(session[:session_id]) }
end
maybe that would speed things up?
In reality though, when I looked at it last it was a question of inefficient rails. At least I think so. Though maybe it’s a question of GC.
Also somebody once said their app was slower when run in multi thread with a DB pool of size > 1, i.e. single thread was faster. Huh?
So it’s probably a question of optimizing rails. Then when rails is fast, you can optimize the next thing. Is it GC? DB pools? Contention on the sessions (share memory to overcome that)? Too much of something? Having to reconstruct classes constantly?
Then optimize that thing. Or maybe it is the DB.
The performance tests against it should be multiple concurrency against multiple processes, really. But more concurrency than the processes, where possible. Would fibers help? Jruby?
This would be an interesting study.
gem woe
ERROR: Error installing rspec:
rspec-expectations requires diff-lcs (>= 1.1.2, runtime)
meant “you need to update your version of rubygems”
rails woe
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/rails_generator/options.rb:32:in `default_options’: undefined method `write_inheritable_attribute’ for Rails::Generator::Base:Class (NoMethodError)
meant “gem_prelude is loading things in the wrong order–run it like
$ export RUBYOPT=–disable-gems
$ rails
” and it will get the right versions then.
Or uninstall all your rails 3 gem versions.
vlc python bindings woe
NameError: global name ‘libvlc_media_new_location’ is not defined
meant “you need to download a newer version of the vlc.dll file–yours is old, compared to the python bindings you’re using”
ruby woe
Open3.popen3 ‘ls’
NotImplementedError: fork() function is unimplemented on this machine
meant “you need to use 1.9 for this to work in ruby, or an external lib http://stackoverflow.com/questions/122115/what-is-the-popen-equivalent-to-read-and-write-to-a-child-process-in-windows
rspec 2 woe
spec.faster_rubygems.rb:6:in `require’: no such file to load — spec/autorun (LoadError)
meant “with rspec 2 you don’t need to require that file anymore–it does it automagically”
rspec woe
Been a little quiet haven’t I?
spec.faster_rubygems.rb:5:in `require’: no such file to load — spec (LoadError)
from spec.faster_rubygems.rb:5:in `
meant “you need a
require ‘rspec’
in your file at the top somewhere”
comcast business internet early cancellation fees
appears they are “75% of the remaining time on your contract”
http://www.tombom.co.uk/blog/?p=156
wowza