Roger's woze

June 29, 2010

logitech skype audio cuts out

Filed under: Uncategorized — rogerdpack @ 11:11 pm

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

ssh port forward on specific ip address

Filed under: Uncategorized — rogerdpack @ 12:47 am

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

June 26, 2010

more rails optimization thoughts

Filed under: Uncategorized — rogerdpack @ 11:43 pm

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.

June 25, 2010

gem woe

Filed under: Uncategorized — rogerdpack @ 2:21 am

ERROR: Error installing rspec:
rspec-expectations requires diff-lcs (>= 1.1.2, runtime)

meant “you need to update your version of rubygems”

rails woe

Filed under: Uncategorized — rogerdpack @ 12:14 am

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.

June 24, 2010

vlc python bindings woe

Filed under: Uncategorized — rogerdpack @ 5:31 pm

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”

June 22, 2010

ruby woe

Filed under: Uncategorized — rogerdpack @ 6:40 pm

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

Filed under: Uncategorized — rogerdpack @ 6:31 am

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

Filed under: Uncategorized — rogerdpack @ 6:24 am

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”

June 18, 2010

comcast business internet early cancellation fees

Filed under: Uncategorized — rogerdpack @ 12:49 am

appears they are “75% of the remaining time on your contract”

http://www.tombom.co.uk/blog/?p=156

wowza

Older Posts »

Powered by WordPress