search for: p302

Displaying 15 results from an estimated 15 matches for "p302".

Did you mean: 1302
2010 Nov 15
0
Problem testing Authlogic UserSession
...s failing with Failures: 1) UserSessionsController find a user session locates the user session Failure/Error: us.email.should == @user.email expected: "ron2.weasley2 at hogworts.com", got: nil (using ==) When I try this using console, I get the following ruby-1.8.7-p302 > require "authlogic/test_case" => true ruby-1.8.7-p302 > include Authlogic::TestCase => Object ruby-1.8.7-p302 >ron = User.first ruby-1.8.7-p302 > activate_authlogic => #<ApplicationController:0x105a06300 @view_context_class=nil, @_status=200, @action_has_lay...
2010 Nov 22
3
Issue using bundler
...ygems.org/ Using rake (0.8.7) Using RedCloth (4.2.3) Using abstract (1.0.0) Installing activesupport (3.0.1) /Library/Ruby/Site/1.8/rubygems/installer.rb:164:in `install'': activesupport requires Ruby version >= 1.8.7. (Gem::InstallError) from /Users/jeremywoertink/.rvm/gems/ruby-1.8.7-p302/gems/bundler-1.0.7/lib/bundler/source.rb:95:in `install'' from /Users/jeremywoertink/.rvm/gems/ruby-1.8.7-p302/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in `run'' from /Users/jeremywoertink/.rvm/gems/ruby-1.8.7-p302/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'...
2010 Nov 30
0
simple SQLITE3 error!!??library routine called out of sequence
Hi, dear guys! I have following super simple program dbh=DBI.connect("DBI:SQLite3:barron.db") sth=dbh.prepare("INSERT INTO WORDS VALUES(?,?,?)") 3.times{ sth.execute("1","2","3") } and it gives me error : /Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_param'': library routine called out of sequence (SQLite3::MisuseException) from /Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_params'' from /Users/tsdeng/.rvm/gems/r...
2007 Nov 07
16
file access with mongrel running as windows service
i have an archive of documents (word, excel, jpeg, png, gif...) residing on a network share that is accessed via send_file. when running mongrel on the command line the files are properly delivered. with mongrel running as a service they don''t. now normally i would think that should be fixable by configuring the service to run under a user that can read the files.... but
2012 Feb 06
3
Bundler - how to re-install all gems after os update?
...alled Ubuntu 12.04 (Alpha) on the root partition, leaving the home partition unchanged. I now find that some things don''t work, I think due to the fact that the system has been updated and versions of libraries have changed. For example I get: $ rails c /home/colinl/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.3.10/lib/mysql2/mysql2.so: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /home/colinl/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.3.10/lib/mysql2/mysql2.so (LoadError) I uninstalled gem mysql2 then did bundle install, which re-installed mysql2 (the s...
2012 Jun 14
0
Query about TSRV
...price observation from each of the 75 sets. Similarly, 298 additional estimates can be obtained from the remaining data. Thus, 300 estimates of realized volatility can be obtained for a 5-minute sampling interval. The average of these 300 estimates is the low frequency volatility. If P1,P2,...P301,P302,...P22500 are the prices at each timestamp, then we are effectively doing the below (using simple returns for illustration only): (P301/P1)^2 + (P601/P301)^2 + (P901/P601)^2 + .... + (P22201/P21901)^2 = V1 (P302/P2)^2 + (P602/P302)^2 + (P902/P602)^2 + .... + (P22202/P21902)^2 = V2 (P303/P3)^2 +...
2010 Nov 30
2
Help with yum and cpio: MD5 sum mismatch
I am trying to install Ruby-1.8.7p302 on a CentOS-5.5 server in preparation for a Rails-3 application deployment. I have downloaded the source from Rubyforge.org, unpacked it, and ran ./config and make. Everything built without error. I then ran checkinstall to create an rpm package. That too completed without error. However, when I...
2008 Nov 19
1
mle2 simple question - sigma?
I'm trying to get started with maximum likelihood estimation with a simple regression equivalent out of Bolker (Ecological Models and Data in R, p302). With this code: #Basic example regression library(bbmle) RegData<-data.frame(c(0.3,0.9,0.6),c(1.7,1.1,1.5)) names(RegData)<-c("x", "y") linregfun = function(a,b,sigma) { Y.pred = a+b*x -sum(dnorm(y,mean=Y.pred,sd=sigma,log=TRUE)) } SigA<-mle2(linregfun, start=li...
2010 Dec 14
9
UTF-8 String.strip bug (and several over methods)
Hello, with Rails 3.0.3 "Café Noir ".strip => "Café noir" but "Café ".strip => "Caf\303\251" In fact, strip() doesn''t works if the last printable character is accentuated. Surprisingly " écologie".strip works fine. I''ve tried to dig deeper in active_support multibyte source code but didn''t found any solution.
2010 Dec 22
5
rvm, rails and sqlite
...m is not installed. i tried installing it using gem install sqlite3-rub but here is what i''m getting Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /home/cyboman/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb checking for sqlite3.h... no sqlite3.h is missing. Try ''port install sqlite3 +universal'' or ''yum install sqlite3-devel'' and check your shared library search path (the location where your sqlite3 shared library is located). *** extconf.rb faile...
2011 Apr 23
1
rake spec fails where rake spec:(models|controllers|views) pass
...trollers works. Unless it has something to do with the number of files and/or examples. The number of files and examples for each spec type is models: 25 files, 391 examples controllers: 26 files, 973 examples views: 52 files, 508 examples Using just rake spec did work on Ruby 1.8.7(-p302) and Ruby 1.9.1(-p243). Does anyone have any ideas? I can run each group individually (and even create an alias to do it all at once), but then rspec has to spin up the app 3 times. Besides, that doesn''t address why this isn''t working on ruby 1.9.2. Thanks, Phillip
2010 May 26
25
Extremely slow start up with ruby 1.9.1 vs 1.8.7
I created a fresh new rails app, no gems, no nothing. Completely unmodified. Doing anything that initializes rails takes 2 - 3 times longer in ruby 1.9.1 than it does in 1.8.7. Obviously with a fresh rails app, this is only 2 - 3 seconds extra. But with a decent sized app, this can take up to 25 seconds for rails to initialize, vs the 12 seconds in 1.8.7. I''ve been racking my brain on
2011 May 12
1
RegExp does not match
Hi, When I try this on IRB it works fine as follows: >>/\A[\w+\-.!#$\%&''*\/\=?^`{|}~]+@[a-z\d\-.]+\.[a-z]+\z/.match("jd!#$\%&''*+-/=?^_`{|}~oe-PV5Ro7/Mrj4@public.gmane.org") => #<MatchData "jd!%&''*+-/=?^_`{|}~oe-PV5Ro7/Mrj4@public.gmane.org"> When I try it through my Ruby on Rails program I get a nil. Any idea what is
2010 Sep 15
19
Rails 3 with Mongrel possible?
...ompatible with Rails 3 -- is that true? When I start up a new Rails 3 project (i.e. one fresh after a `rails new` command), mongrel appears to start (creates a pid file, and reports no errors on the CLI), but the app does not load in the browser and I find this in the mongrel.log /gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'': no such file to load -- dispatcher (LoadError) The most relevant info I could find is this, which seems to suggest that mongrel is stuck in an abandoned, buggy state relative to Rails 3 (unless I misinterpreted...
2006 Jun 09
3
GXP-2000 MultiPurpose Keys
Is it possible to program the multi-purpose keys on a GXP-2000 remotely via a TFTP configuration file? If so, what are the parameters to put in the configuration file? Thanks, Daniel