similar to: sub query issue with active record.

Displaying 20 results from an estimated 1000 matches similar to: "sub query issue with active record."

2004 Mar 10
2
Inserting Date Field into Oracle table using ROracle
Hello, Attached is a mail regarding question how to insert Date field using ROracle package. I am stuck with this problem and appreciate receiving help from gurus on this list. Code used mainly is: library(ROracle) ### --- Version 0.53 drv <- dbDriver("Oracle") con <- dbConnect( drv, "user/passwd") d <- data.frame(CDATE = "2004-03-10 10:12:00") ps
2013 Apr 11
4
Understanding contents of packages
Colleagues During the transition to R3.0.0 (OS X), one of the packages that I used -- SASxport -- did not work until I used the "type=source" option in install.packages. This led to an adventure: 1. I downloaded the package source: SASxport_1.2.4.tar.gz 2. in the SASxport/R folder, I found all the functions that are part of the package. I became interested in whether I could
2005 Dec 05
1
Automatic time zone conversion
Dear R-help, I was trying to convert a date and time record extracted from a fortran subroutine I worte and I encounter some problem. The data read in time and date in a format like "2000-05-11_01:00:00.0000" in fortran output. It is in GMT. I need to convert it to CST (GMT+8). I did the following steps. > cdate [1] "2000-05-11_01:00:00.0000\005\003" # I am not sure
2012 Nov 20
1
Buffer overflow in date package
Dear list-members, I have observed quite a strange problem with the date package. You will find below what I get on my machine (Ubuntu). I have been able to reproduce the error on Red Hat too. But it seems not to happen on Windows (and on some other Linux distros?). > require(date) Loading required package: date > sessionInfo() R version 2.15.2 (2012-10-26) Platform: x86_64-pc-linux-gnu
2007 Nov 06
2
passing a parameter only if not blank
I have this form tag: <% form_remote_tag :update => ''hotel-loyalties'', :url => { :action => ''make_hotel_loyalty'', :id => @user.id, :manager => @manager.id end } do -%> I only want to pass the @manager value if it is not blank. I tried: <% form_remote_tag :update => ''hotel-loyalties'', :url => { :action =>
2007 Jun 13
5
Confusion with sapply
Hi, I have some confusion in applying a function over a column. Here's my function. I just need to shift non-March month-ends to March month-ends. Initially I tried seq.dates, but one cannot give a negative increment (decrement) here. return(as.Date(seq.dates(format(xdate,"%m/%d/%Y"),by="months",len=4)[4]) ) Hence this simple function: > mydate <-
2013 Apr 06
1
Replace missing values within a group with the non-missing value
I have a large dataset organised in choice groups see below. Each choice represents a separate occasion with 1 product chosen out of the 6 offered.            +-------------------------------------------------------------------------------------------------+      | dn   obs   choice      acid   br                 date       cdate   situat~n   mth   year   set |     
2018 Jul 26
4
Problem with definition of slist in CFEngine
Hey folks, I have a problem with the definition of a variable of type slist in CFEngine on # uname -a ; cat /etc/redhat-release Linux policyhub.example.com 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux CentOS Linux release 7.4.1708 (Core) I'm not sure if its valid to ask CFEngine questions on this mailing list, but as far as I'm running on
2011 Jul 14
1
ActiveSupport::OrderedHash disappears?
I noticed that ActiveSupport::OrderedHash disappeared from the Rails API pages. Does it mean that it is going to be deprecated? I know that Hash is ordered in Ruby 1.9, but this subject seems controversial, and in my opinion the ordered hash in Ruby 1.9 should have been called OrderedHash (or SequentialHash), even if it be an alias of the current implementation of Hash. That way one would be free
2012 Nov 12
1
problem with Erlang function
I'm beginner with R language My goal is to write a function that takes an input Erlang entering your ? Name ? Name ? Date of birth. The program will calculate age and display output first I do know the system date (month, day, year) I find with Sys.Date () I found a function. net to calculate the age Protected Sub calcul_age() Dim datetimenow = DateTime.Now Dim
2006 Apr 27
6
OrderedHash
Looks like I have skipped on this, but still - a couple of questions: 1) Why there suddenly is an OrderedHash in ActiveSupport? (this glaring omission from ruby core is present in many apps already) 2) Why it doesn''t match the semantics of Hash respectively? 3) Why it''s #nodoc ? -- Julian ''Julik'' Tarkhanov please send all personal mail to me at julik.nl
2012 Apr 21
13
issues with changing directory structure in rails3
class BranchesController < ApplicationController def branch @branch = Branch.new (params[:branch]) branch_back = @branch.*branch* end end in the model have one *branch.rb* class Branch def branch end end In the view have one branches folder, also have the branch.html.erb in that folder. <%= form_for(@branch) do |f| %> <%end%> *routes.rb* * * match
2006 May 02
4
ordering after a inject
Hi, My results are getting out of order after I do the following command: count = result.inject({}) { |hsh, row| hsh[row[''name'']] = row[''count''].to_i; hsh } Why? Here are more specifics: My complete method is this (based off of acts_as_taggable code - not'' DHHs, but the original one): def self.sql_to_count_plays(lookback) sql =
2000 Jan 21
1
DLLs using Borland
I wrote a DLL in C that does some MCMC stuff. It is compiled using Borland's C++ Builder, version 3.0 (build 3.70) on a Windows 98 machine. The DLL loads and runs just fine. But then if I subsequently call R's plot() function, I get an illegal operation message and R crashes. In fact, I've found that this happens even if I merely load the DLL, don't ever run it, and then try to
2005 May 07
4
string syntactic sugar in R? - long post
Currently in R, constructing a string containing values of variables is done using 'paste' and can be an error-prone and traumatic experience. For example, when constructing a db query we have to write, paste("SELECT " value " FROM table where date ='",cdate,"'") we are getting null result from it, because without (forgotten...)
2013 Apr 06
2
Replace missing value within group with non-missing value
Dear List members I have a large dataset organised in choice groups see sample below +-------------------------------------------------------------------------------------------------+ | dn obs choice acid br date cdate situat~n mth year set |
2011 Oct 12
36
ROR setup on ubuntu machine
I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some steps to follow for ROR? or some effective tutorials link to setup this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ciRx6txsgY4J. To post to this group, send
2010 Jan 24
2
OrderedHash Rails 2.3.2
I understand that ActiveSupport::OrderedHash.new [[1,2]] does not work beginning with Rails 2.3. I am running Rails 2.3.2. One commentator suggested simply creating the instance without arguments and then sequentially adding each element as a separate step. I tried that. The hash gets populated just fine but it is not ordered. Can anyone please tell me what the magic trick is under
2006 Jun 21
2
raw sql and columns order
Hi, I''ve a model with the following method: def self.run(sql) return connection.select_all(sql) end so, the value returned is an array of hashes... the problen is that the sql command: "select name, id from table" and select id,name from table" returns the columns in the same order (name, id). And in my view, I need to keep the order of the SQL command.
2002 Dec 04
0
Continuous X Display problems on AIX
Hello Currently i'm using AIX 4.3.3. I've installed OpenSSH version 2.9p1 which by the way works with the way ive hacked it together to get X Displays working correctly. I can ssh into the system as myself export my display back no problem. I can ssh to a system as myself and ( su - userid ) and export my display back but i had to hack this together in order to get it to work. I