similar to: Chronic parse problem?

Displaying 20 results from an estimated 4000 matches similar to: "Chronic parse problem?"

2012 Jan 01
4
Chronic parsing date range in console but not in application in rails 3
Hey all, Chronic will parse a date range in console: Chronic.parse(1/1/2011 - 1/1/2012, :guess => false) => 2012-01-01 12:00:00 -0500..2012-01-01 12:00:01 -0500 However, when I use logger to check if it''s parsing in application, it is not: logger.info "The value of history date is #{history_date}" => The value of history date is 1/1/2011 - 1/1/2012
2012 Jan 22
4
undefined method `gsub!' for 2012-01-22 17:00:00 -0500..2012-01-23 00:00:00 -0500:Chronic::Span
Hey all, I am getting this error: NoMethodError (undefined method `gsub!'' for 2012-01-22 17:00:00 -0500..2012-01-23 00:00:00 -0500:Chronic::Span): in this code: date_range = Chronic.parse(the_date, :guess => false) reports.sum_distance_by_date(date_range).each do |d| u[:m] << d end def
2007 Mar 13
6
Easy Date question - newb
All I want to do is find the objects that were created today under the ''created_on'' column. I''ve tried many ways, here is one example using the chronic gem. @products = Product.find_all_by_created_on(Chronic.parse(''today'')) I must be missing something right in front of me .... Thanks for any help.
2006 Feb 11
3
read-only access to database?
I have a model (Query) which I use to, of all things, query the database. This is to enable raw SQL access. I want to ensure that db access using this model is read-only. Short of checking the sql query for ''insert'' and ''drop'' and ''update'', is there a more rails-like way of doing this in my app/models/query.rb itself? Thanks in advance,
2011 Jan 03
8
Heroku, needs constant AppController updates?
Dear All, Fairly new to rails and Heroku, so could be doing something wacky - do let me know if you think my code practice is off, even if unrelated to this error, I''d like to learn! I''m using Rails 3.0.0, ruby 1.8.7, and ''sqlite3-ruby'', ''1.2.5'', :require => ''sqlite3''. I''ve got an application that goes off and
2008 Jul 16
4
Likelihood ratio test between glm and glmer fits
Dear list, I am fitting a logistic multi-level regression model and need to test the difference between the ordinary logistic regression from a glm() fit and the mixed effects fit from glmer(), basically I want to do a likelihood ratio test between the two fits. The data are like this: My outcome is a (1,0) for health status, I have several (1,0) dummy variables RURAL, SMOKE, DRINK, EMPLOYED,
2019 Jun 24
3
Vulnerabilities to bind-libs bind-utils - possible to remove these on webservers
I think the subject says it all. We don't run named. It seems there are chronic issues with bind. Can these packages be removed? We locally authenticate. I see this: Removing for dependencies: bind-utils ipa-client sssd sssd-ad sssd-ipa We shouldn't need any of that with local authentication (/etc passwd and /etc/shadow) right? This message contains information which may be
2008 Jul 06
2
Shirewall and ppp interface
I well, my ISP just worked with me to switch in my new gateway. After the switch and bringing up the ppp interface, the new gateway was access the Internet just fine, but none of systems behind it were. Scratched my head, and after some fumbling, I discovered that it seems like I have to restart shorewall after ppp interface is brought up. So. How do I ensure that shorewall is restarted
2009 Jul 20
9
rake error
When I run rake test:units I get this error: 292 tests, 350 assertions, 2 failures, 13 errors rake aborted! Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/ usr/loc...] This error just showed up yesterday --- I have no idea how I caused it. Here is my gem list in case that helps: actionmailer (2.3.2, 2.2.2) actionpack (2.3.2, 2.2.2) activerecord (2.3.2, 2.2.2)
2004 Aug 21
2
system reboot often?
I just deployed * on my home system last Sunday. 2x since then the Zap hardware seems to have malfunctioned on some way. One time it would just screech out one FXS, even though it would ring. The other time * would bridge to my FXO but it never got out on the line. I have a new TDM400 with 3 FXS and 1 FXO. Both times I tried unloading the zaptel drivers (which worked) and reloading them,
2009 Jan 17
0
Chronic Problems with "File system does not support long filenames"
When trying to create a file or folder on a samba share (3.0.28-0.el4.9) from a Windows 2003 R2 server, I occasionally receive an error message stating that the target filesystem does not support long filenames. This happens even if object name follows 8.3 naming conventions. It does not *always* happen. Also, I have another samba 3.0.28-0.el4.9 server where this does not happen at all. What
2009 Jan 20
0
Chronic Intermittent Problems with "File system does not support long filenames."
When trying to create a file or folder, or sometimes even rename a file, on a samba share (3.0.28-0.el4.9) from a Windows 2003 R2 server, I occasionally receive an error message stating that the target filesystem does not support long filenames. It does not always happen. Also, I have another samba 3.0.28-0.el4.9 server where this does not happen at all. What causes this? Here's the
2007 May 03
4
Survival statistics--displaying multiple plots
Hello all! I am once again analyzing patient survival data with chronic liver disease. The severity of the liver disease is given by a number which is continuously variable. I have referred to this number as "meld"--model for end stage liver disease--which is the result of a mathematical calculation on underlying laboratory values. So, for example, I can generate a Kaplan-Meier plot
2006 Apr 02
1
How to count number of pages in a PDF?
Does any know a simple way to count the number of pages in a PDF file? I''m using teh RTEX plugin to generate a PDF via pdflatex with a defined start page number. I want to determine the final page number so I can start the next PDF in sequence. Thanks in advance for your help! -cal
2008 May 28
1
nil.send_request = Incorrect worker name?
Hi, Would greatly appreciate some help with this. Is the following error caused by an incorrect worker name? You have a nil object when you didn''t expect it! The error occurred while evaluating nil.send_request /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:44:in `ask_worker'' Here''s what I''m doing in my rails console.
2008 May 30
1
Adding vendor folder to $load_path
I''m using backgroundrb in a rails project, with packet and chronic unpacked in the vendor folder, to make backgroundrb I''ve added the following line to scribts/backgroundrb $LOAD_PATH << File.join(RAILS_HOME, "vendor") Do you believe it''s a good idea? I don''t like depend on the installed gems ciao ciao paolo -------------- next part
2009 Apr 23
2
BackgrounDRb start error
Hi, I''ve got a Rails 2.2.2 app and I''m trying to get BackgrounDRb running. I''m just following the simple example in Advanced Rails Recipes. I installed BackgrounDRb from Git, installed the packet and chronic gems, ran ''rake backgroundrb:setup'', generated a worker, and then tried to run ''script/backgroundrb start'' but I get:
2013 Apr 11
2
(no subject)
Dear all, Is there a quick and easy way of converting utf characters to the \uxxxx form (necessary e.g. for packages)? I mean something working like this: > utf2uxxxx("õäöü") [1] "\u00f5\u00e4\u00f6\u00fc" It is easy to program but perhaps someone already has implemented this. (I couldn't find anything useful from searches incl RSiteSearch). Thanks in advance, Kenn
2008 Jul 05
1
Re: Shorewall-users Digest, Vol 26, Issue 9
> > ---------- Mensaje reenviado ---------- > From: Roberto C. Sánchez <roberto@connexer.com> > To: shorewall-users@lists.sourceforge.net > Date: Fri, 4 Jul 2008 18:52:36 -0400 > Subject: Re: [Shorewall-users] Shaper > On Fri, Jul 04, 2008 at 04:47:31PM -0500, RokeFeler wrote: > > Saludos, Tengo 3 inferfaces eth0, eth1, eth2 > > eth0 - Net > > eth1 -
2011 May 17
8
Changing Rails Default Date Parse Option
Does anyone know how to change the default option for the Date.parse (which ActiveRecord is using on all date fields). I would like the "comp" option to default to true so I don''t have to account for 2- digit dates throughout my application. http://corelib.rubyonrails.org/classes/Date.html#M001228 Thanks! Tom -- You received this message because you are subscribed to the