Displaying 20 results from an estimated 94 matches for "chronic".
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 #...
2008 Feb 20
1
Chronic parse problem?
Hi all,
Using the Chronic.parse method, I see some weird behavior. Perhaps
someone can set me straight or confirm that it is indeed weird. Note
that the date changes to one day earlier in the last example below.
Since the date and time are uniquely specified using the hh:mm:ss
notation -- though in the future -- I would e...
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 self.sum_distance_by_date(time)
time = time ? Date.parse(time) : Dat...
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups &q...
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
2008 Jul 16
4
Likelihood ratio test between glm and glmer fits
...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, highereduc, INDIG, male, divorced, SINGLE, chronic, vigor_d and moderat_d and AGE is continuous (20 to 100).
My higher level is called munid and has 581 levels.
The data have 45243 observations.
Here are my program statements:
#GLM fit
ph.fit.2<-glm(poorhealth~RURAL+SMOKE+DRINK+EMPLOYED+highereduc+INDIG+AGE+male+divorced+SINGLE+chronic+vigor_d...
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 informatio...
2009 Jul 20
9
rake error
...m 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)
activeresource (2.3.2, 2.2.2)
activesupport (2.3.2, 2.2.2)
authlogic (2.1.1)
bcrypt-ruby (2.0.5)
builder (2.1.2)
calendar_date_select (1.15)
capistrano (2.5.8)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
columnize (0.3.0)
cucumber (0.3.11)
daemons (1.0.10)
devver (2.3.0)
diff-lcs (1.1.2)
engineyard-eycap (0.4.12)
eventmachine (0.12.8)
faker (0.3.1)
fastercsv (1.5.0)
fastthread (1.0.7)
flay (1.3.0)
flog (2.1.2)
gchart (0.5.0)
gem_plugin (0.2.3)
haml (2.2.0)
highline (1.5.1)
hoe (2.3.2)
hpric...
2007 Jan 13
6
nice date function
Hi:
you know the way the google and this forum presents dates? How it''s
measure from the current date/time and presents nicely as "39 minutes
ago", 2 days ago, etc.? Has anyone done a gem or other library object
that I can get to do those types of dates?
Thanks so much in advance!
Mike
--
Posted via http://www.ruby-forum.com/.
2008 Apr 08
0
cron trigger problem
....8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in
`run''
from /Users/pkmiec/src/propertyadmin/trunk/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in
`initialize''
from script/backgroundrb:60:in `new''
from script/backgroundrb:60
Line 119 is,
next_min = Chronic.parse("next minute",:now => current_time)
Not sure what is going on since cron trigger does work correctly few
times before this error occurs. Is it possible for Chronic to be
reloaded? I am running in development mode with chronic (0.2.3).
Has anyone seen something similar? Obviousl...
2008 Jul 06
2
Shirewall and ppp interface
...d that seems more than is needed.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
2011 Jan 03
8
Heroku, needs constant AppController updates?
...0, ruby 1.8.7, and ''sqlite3-ruby'', ''1.2.5'', :require
=> ''sqlite3''.
I''ve got an application that goes off and scrapes websites for event
information, to do this I''m using:
nokogiri - for scraping
date - to help with parsing
chronic - to help recognise dates
open-uri - to open the url
all of these are just gem ''gem-name'', so latest unspecified versions.
The code that does this scraping is in the ApplicationController class -
a bad place for it?
I''ve just got it working as a background process using...
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 ge...
2004 Aug 21
2
system reboot often?
...FXO.
Both times I tried unloading the zaptel drivers (which worked) and reloading
them, which failed. A reboot of the system brought everything back.
Is this common? Are there ways to minimize this? Would a different PCI slot
possibly make a difference? Or a different system? Is this just a chronic
problem with the Digium hardware?
Thanks!
--
-M
There are 10 kinds of people in this world:
Those who can count in binary and those who cannot.
2011 Mar 29
2
Participation in GSOC
...s using semantic databases like
WordNet to improve matching by normalizing the sematics of a query term.
Of course, this is not an easy task, and multilanguage support is quite
hard, but anyway, I think its worth working on it, starting with some
special cases. A natural language date parser, like chronic for ruby
could be a usefull feature, when search for date ranges in a chronical
document archive, like blogs. This is just an example.
A few words to myself:
I'm a computer scientist student from Berlin. I've been working 4 years
at a research center, developing software for 2d/3d image...
2011 Mar 29
2
Participation in GSOC
...s using semantic databases like
WordNet to improve matching by normalizing the sematics of a query term.
Of course, this is not an easy task, and multilanguage support is quite
hard, but anyway, I think its worth working on it, starting with some
special cases. A natural language date parser, like chronic for ruby
could be a usefull feature, when search for date ranges in a chronical
document archive, like blogs. This is just an example.
A few words to myself:
I'm a computer scientist student from Berlin. I've been working 4 years
at a research center, developing software for 2d/3d image...
2007 Oct 24
13
Ryan Bates' Multi-object Forms and the date_select
I think I''ve found a bug with Edge.
I''m trying out Ryan Bates'' multi-object form technique shown in one of
his Rails-casts (railscasts.com/episodes/75). If you use a fields_for
similar to that shown (here: http://pastie.caboo.se/110480), you get a
Server Error 500:
------
Status: 500 Internal Server Error
Conflicting types for parameter containers. Expected an
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:
/vendor/rails/actionpack/lib/action_controller/base.rb:1276: undefined
method `deprecate'' for ActionController::Base:Class (NoMethodErr...
2008 May 28
1
nil.send_request = Incorrect worker name?
...:foo_worker, :job_key => ''1'')
worker.bar()
Querying all workers shows the foo_worker_1 is there..
>> pp MiddleMan.query_all_workers
{:type=>:all_worker_status}
{:log_worker=>nil,
:foo_worker_1=>{:rand=>679}}
I''m using rails 2.02, Packet 0.1.5 and Chronic 0.2.3.
I tried the mainline git version but got this error. It needs a newer version of Packet?
`load_missing_constant'': uninitialized constant Packet::BinParser (NameError)
Many Thanks
Andy Watts
-------------- next part --------------
An HTML attachment was scrubbed...
URL:...