similar to: Preserving seconds fraction in PG timestamps when updating?

Displaying 20 results from an estimated 10000 matches similar to: "Preserving seconds fraction in PG timestamps when updating?"

2006 Jan 11
2
map.connect - redirect with 302?
Is it possible to write map.connect rules in route.rb that externally redirect (HTTP 302) to other actions? thanks csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Feb 09
2
select options for HABTM?
I''ve looked through the docs and the wiki and can''t figure out how to go about generating select options and the update function for an item that has a HABTM relationship. I have a ''parks'' table and the park model has a HABTM to the ''states'' table. On the park edit page, I''d like a multiple select box to appear with all states show,
2006 Feb 13
2
categories and admin/categories - different controllers and templates?
Is there some way to have these two sets of URLs use totally different controllers and templates? categories/list categories/show/1 admin/categories/list admin/categories/edit/1 admin/categories/destroy/1 admin/categories/update/1 Besides, of course, using different controller names ;). The first URL is publicly accessible, while the second contains admin functions. Also, with the second,
2010 May 01
1
bag.fraction in gbm package
Hi, Dear Greg, Sorry to bother you again. I have several questions about the 'gbm' package. if the train.fraction is less than 1 (ie. 0.5) , then the* first* 50% will be used to fit the model, the other 50% can be used to estimate the performance. if bag.fraction is 0.5, then gbm use the* random* 50% of the data to fit the model, and the other 50% data is used to estimate the
2005 Dec 28
4
undefined method `include''
I''m getting this error in Rails: undefined method `include'' for #<MenusController:0x408efd1c> The offending code is: require "rexml/document" include REXML I see there may be a problem with GCC 4 on OSX, but I''m using Redhat with GCC 3.2. http://weblog.rubyonrails.org/articles/2005/12/22/is-gcc-4-0-incompatible-with-ruby-on-os-x-and-elsewhere
2006 Jan 11
2
Handling ''recognition failed''?
How can I handle ''recognition failed'' errors so they act like typical 404 errors? By displaying a message, page and/or redirecting. thanks csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2009 Jun 22
2
Help needed: Fraction for Histogram > 1 ???
I have been trying to draw histogram for my manscript and found some strange things that I could not figure out why. Using the same code listed below I have successfully draw histograms for a few figures with fraction labeled on Y axis less than 1 (acturally between 0 to 0.1). But one dataset gives the Y axis label 0 to 5 as fraction. This is not true, as fraction are less than 1, although the
2011 Jul 07
0
fraction [a] a partitioning of variation
Hi, After performing a multiple linear regression, I am looking for an R package that can calculate the fraction [a] a partitioning of variation. This fraction measures the proportion of variance of y explained by the explanatory variable x1 (for example) when other variables (x2, x3 ...) are held constant. Thank you in advance for your help -- View this message in context:
2011 Apr 27
0
Preserving timestamps with smbclient
I have a backup script that uses smbclient to push files to a Windows server and I have noticed that the mtime on the server is the time of upload, not the mtime of the original file. I can not find an option to preserve the original mtime. Does such a thing exist? Shouldn't it do this by default?
2011 Jun 03
0
Preserving timestamps with smbclient
I have a backup script that uses smbclient to push files to a Windows server and I have noticed that the mtime on the server is the time of upload, not the mtime of the original file. I can not find an option to preserve the original mtime. Does such a thing exist? Shouldn't it do this by default?
2006 Feb 04
4
Page caching feeds and cache file extensions
I have a feeds controller which generates RSS and Atom pages. I put ''caches_page :show'' in it. The problem is that the pages are saved with an html extension. As a result, browsers display the cached feeds as HTML rather than XML, and feed validators complain. There''s an option to set ''Base.page_cache_extension'' globally, but I don''t want
2006 Feb 08
1
routing: requiring requirements for non-existent params?
With this route: map.connect ''items/:subject/:id'', :controller=>''items'', :action=>''show_redirect'', :requirements => {:subject => /.+/, :id => /\d+/} Is it possible to have it match these URLs: items/biology/123 items/chemistry/234 items/math/456 But not these: items/new items/list ... The problem is that :requirements only
2006 Jan 14
2
I think options_for_select is backwards
With a hash such as: stuff = {''1''=>''desc 1'', ''2''=>''desc 2'', ''3''=>''desc 3''} options_for_select(stuff) will output: <option id="desc 1">1</option> <option id="desc 2">2</option> <option id="desc 3">3</option>
2006 Jan 21
6
Redirecting in a view?
Is there a way to do this in a view? <% redirect_to ''http://url.com'' %> All I can think of is outputting a link and using Javascript to click it, or probably do something like ''doc.location(url)''. csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2008 Feb 01
1
calculation fraction/ratio
Dear R users I wonder if there is a quick way to calculate the ratio/fraction of a list/data frame. For example, if I have a data frame with two fields: "Index" and "A". I would like to know the fractions of A's within the same "Index". That is, for Index =1, three fractions will be "1/(1+2+3)=0.17", "2/(1+2+3)=0.33", and
2005 Sep 18
1
trimmed mean in R seems to round the trimming fraction
subject: trimmed mean in R seems to round the trimming fraction to r-help at stat.math.ethz.ch. Consider the following example of 10 numbers. 10% trimmed mean is correct but you can see that the result is the same for many trimming fractions till 0.20! For example 13% trimmed mean should use interpolation of second and eighth ordered observation. R does not seem to do this. The correct 13%
2006 Jan 12
1
File Upload from URL?
Rather than having a file upload field, I want to have a text field where a URL can be specified, then get the file from the URL and treat it like a typical file upload (presumably saving it in /tmp). Anybody know how to do this? Thanks csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Feb 07
17
Easy way of dealing with nil properties in templates?
Is there an easy way to deal with nil properties in templates? All I''m aware of are these methods, and it''s quite tedious and surely violates DRY. <%= @member.name unless @member.name.nil? %> <%= @member.name.to_is %> <%= "#{@member.name}" %> csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the
2011 Mar 24
1
fraction with timelag
Dear r-help, I'm having this DF df <- data.frame(id = 1:6, xout = c(1234, 2134, 234, 456, 324, 345), xin= c(NA, 34,67,87,34, NA)) and would like to calculate the fraction (xin_t / xout_t-1) The result should be: # NA, 2.76, 3.14, 37.18, 7.46, NA I am sure there is a solution using zoo... but I don't know how... Thanks for any help! Patrick
2012 Mar 11
2
Matrix negative fraction power
Dear list, I understand that to raise matrix A to power (-1/2) we should use something like this: eigen(A)$vectors%*%diag(1/sqrt(eigen(A)$values))%*%t(eigen(A)$vectors) [from previous discussions: http://r.789695.n4.nabble.com/matrix-power-td900335.html] But this will only do it for negative sqrt of the matrix not for other fraction powers like (-3/2). Seeing that these things be can done