search for: standarderror

Displaying 20 results from an estimated 57 matches for "standarderror".

2011 May 22
6
How to capture correctly a specific exception
I a using delayed_job, and I am raising an exception this way : config/initializers/custom_exceptions.rb class RemoteLockerException < StandardError; end class RemoteLockerDenied < StandardError; end lib/instruction_request_job.rb class InstructionRequestJob < Struct.new(:style, :request_id) def perform .... > connector = RemoteContainerServer::Connector.create!(remote_container) > raise Exceptions::RemoteLockerDenied , &...
2006 Nov 02
2
Rescue don't work on web applications
...se list. Problem: In case of errors , I like to start a rescue showing the users the problems. render(:text => "<pre>" + CGI::escapeHTML(` begin /home/luc/radrails/cpe/public/startq_test.rb #{syntf.path} rescue NoMethodError,SyntaxError,NameError,StandardError,SystemExit,ScriptError => snfault fltlog = File.open("/test/result/script.log", "w") fltlog.puts "#{snfault}" fltlog.close end `) + "</pre>") Rescue don''t work in this case, how can I check synt...
2023 May 30
1
depmixs4 standardError() issue
...a using depmixS4. I currently have a fitted 4-state mixture model with three emissions variables and one binomial covariate (HS). I am trying to compute confidence intervals using the following code, where fmms4s is the model: fmms4Svov <- vcov(fmms4S)$vcov #this line runs fine fmms4Sse <- standardError(fmms4S) #this is where I get the error fmms4SCI <- confint(fmms4S) This worked fine before I added the covariate, but with the covariate I receive a warning message: In sqrt(diag(vc$vcov)) : NaNs produced. As a result, several of my parameters have NaNs as CIs. In general, I get this error mo...
2007 May 19
1
clustered standarderrors using design package
Please help, I have a strange problem. I've got a balanced panel data set. I use dummy variable regression and I've got results with lm function. summary(lm(y ~ post + t19961 + t19962 + t19963 + t19964 + t19971 + t19972 + t19973 + t19974 + t19981+factor( id))) The problem is that I would like to get my standard errors clustered but then gets the following error message: f<-(lm(y ~
2006 May 26
13
win32-dir, unicode
Hi, I''ve got a preliminary version of the pure Ruby version of win32-dir in CVS. However, I was hoping to work out the Unicode issue. Run this: from = "C:\\test" to = "?????" Dir.mkdir(from) unless File.exists?(from) Dir.create_junction(to, from) It works, but my explorer (and dos) window shows the name garbled. I don''t think it''s a font
2023 Jun 25
1
depmixs4 standardError() issue
...have a fitted 4-state mixture model with three emissions > variables and one binomial covariate (HS). I am trying to compute > confidence intervals using the following code, where fmms4s is the > model: > > fmms4Svov <- vcov(fmms4S)$vcov #this line runs fine > fmms4Sse <- standardError(fmms4S) #this is where I get the error > fmms4SCI <- confint(fmms4S) > > This worked fine before I added the covariate, but with the covariate > I receive a warning message: In sqrt(diag(vc$vcov)) : NaNs produced. > As a result, several of my parameters have NaNs as CIs. In gen...
2005 Feb 23
3
bias of a boot statistic
..., R, sim="ordinary", stype="i", strata=rep(1,n), L=NULL, m=0, weights=NULL, ran.gen=function(d, p) d, mle=NULL, ...) When I create an object, containing the bootstrap statistic (object <- boot (....))I can call it and will get an output with t, bias and standarderror as follows: Bootstrap Statistics : original bias std. error t1* 5.65 0.01 0.9134185 My question is now, where is the value of the bias stored? How can I get access to this value to do further caluculations? Thanks, K. St.
2008 Oct 15
5
REXML vs libxml
Hi all, I''ve been looking at the performance of my fb app and one glaring issue seems to be with the parsing speed of rexml in processing the results. Has anyone looked into porting the facebooker parser from rexml to libxml? If not, any reason I shouldn''t try? Thanks! Yu-Shan. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Jan 22
0
Trying to spec ExceptionNotifiable behavior
...onController::Base include ExceptionNotifiable # this action should not fail, used for controller.expect_render(...) checking def ok_action render(:file => "#{RAILS_ROOT}/public/ok.html") end # this action should raise an unexpected exception def fail_action raise StandardError.new("manually raised exception") end end I''m running with RSpec 1.0.8 (pistoned as plugin) and respective REL_1_0_8 rspec_on_rails All the specs are ran with ''script/spec -R -c spec'' This is my spec: describe FooExceptionController, "dealing with excep...
2006 Aug 04
5
Mongrel Cluster Compatibility
Is anyone using ferret with Mongrel/Mongrel-cluster? The first one or two times I access the ferret index it works fine, but then it throws a write lock error StandardError (: Error occured at <index_rw.c>:703 Error: exception 6 not handled: Could not obtain write lock when trying to write index ): I need to do more testing on this to narrow down the problem/solution but just wanted to throw out the question to see if anyone was using this already succesfull...
2008 Jun 12
1
how do I mock the Rails Logger with should_receive?
...ls Logger for the following code: ... rescue TimeoutError => error $logger.error("#{self.name} Timeout for #{path}: #{error}") and return rescue SocketError => error $logger.error("#{self.name} SocketError for #{path}: #{error}") and return rescue StandardError => error $logger.error("#{self.name} Error for #{path}: #{error}") and return end ... my failed attempt to spec: logger = mock_model(Logger) logger.stub(:error) logger.should_receive(:error).with(:any_args) Do you know of any solution for mocking this? Also,...
2008 Jun 12
1
Does anyone know how to mock the Rails Logger then set expectations with should_receive?
...ls Logger for the following code: ... rescue TimeoutError => error $logger.error("#{self.name} Timeout for #{path}: #{error}") and return rescue SocketError => error $logger.error("#{self.name} SocketError for #{path}: #{error}") and return rescue StandardError => error $logger.error("#{self.name} Error for #{path}: #{error}") and return end ... my failed attempt to spec: logger = mock_model(Logger) logger.stub(:error) logger.should_receive(:error).with(:any_args) Do you know of any solution for mocking this? Also,...
2018 Jul 07
1
Redirect output from python script with systemd
Hi all, I need to redirect an output from python script that runs as a systemd service. I have tried to redirect its output in Exec statement without luck. I have tried to use StandardOutput and StandardError options also, but outpu log goes to /var/log/messages. Any tip? Thanks. -- Greetings, C. L. Martinez
2006 May 07
0
Error messages in db/schema.rb
Hi I''ve discovered the following error messages in my db/schema.rb: # Could not dump table "pg_ts_dict" because of following StandardError # Unknown type ''regprocedure'' for column ''dict_init'' # Could not dump table "pg_ts_parser" because of following StandardError # Unknown type ''regprocedure'' for column ''prs_start'' This is Rails 1.1.2, PostgresSQL...
2006 Jun 23
1
Can not rescue ferret exception. What is wrong?
Hi, I have a big index and wildcard query raises an exception. That is all right. The problem is I can not rescue this exception and it bombs right to user page. Why? I am on Linux. Ferret 0.9.3 with C extentions. >> class A >> def self.b >> Book.index.search(''isbn:00*'') >> rescue >> puts ''ok'' >> end >> end =>
2016 Sep 13
1
R-intro: function 'stderr' and 'sd'
While you are editing that, you might change its name from 'stderr' to standardError (or standard_error, etc.) so as not to conflict with base::stderr(). Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Sep 13, 2016 at 8:55 AM, Martin Maechler <maechler at stat.math.ethz.ch > wrote: > >>>>> Suharto Anggono Suharto Anggono via R-devel <r-devel at r...
2010 Jul 26
2
Exception Pages when behind a proxy
...ould like to verify that this is in fact a problem. The bug is here: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5166-actiondispatchshowexception-always-calls-rescue_action_locally-if-there-is-a-reverse_proxy I believe there is a workaround - you could use rescue_from with StandardError but then you are having to reproduce the exception type to http error code logic. I also think this issue will/should be affecting a bunch of other users as well. Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To...
2010 Sep 24
1
Fitting GLMM models with glmer
...SURVT) cens=1 proc nlmixed data=liver; parms logsig2 = 0 b0 = -2.8 btrt = -0.54 bhrt =0.18; xb= log_s + b0 + btrt * treat + bhrt * heart+ bi; lambda=exp(xb); model cens ~ poisson(lambda); random bi ~ normal(0,exp(logsig2)) subject=INST; run; I obtained the same results for parameters estimates and standarderrors, by using: glmer(cens ~ treat + heart + offset(log(SURVT) + (1 | INST), data=liver, family=poisson) After that, the authors present the same model, but now bi = log(gi) where gi has the following gamma distribution: f(gi | theta1) = gi ^ (1/theta1 - 1) exp(-gi/theta1)/ GAMMA(1/theta1)(theta1^(...
2006 Mar 11
3
website monitor?
hi all. i have a site powered by ROR. now, i try to find a monitor based on ruby. any one have any idea? regards. -- Posted via http://www.ruby-forum.com/.
2008 Feb 05
5
App upgrade steps from 1.2.4 to 2.0.2?
Hi all, experienced programmer but complete RoR newbie here, this is my first rails post/question so bear with me. I have a working RoR app on 1.2.4 and PostgreSQL, and my first efforts at running it in 2.0.2 show it does not cleanly upgrade without changes. Can anyone give me some hints/pointers as to what I''ll need to change for 2.0.2 and how do I identify it other than trial and