Displaying 20 results from an estimated 10000 matches similar to: "Get an object other than primary key ID"
2010 Feb 20
1
Contingency Table - output to odfWeave not working for matrix
Hi guys I'm hoping someone can help me with this. It should be easy but it seems to get stuck for no obvious reason! I am trying to set a report up in odfWeave so that we can re-run the same analysis at 3 time points as the data matures and provide an 'instant' report.
To simplify the situation we have two pieces of data: site_id (numerical value 1-9) and reaction (categorical Y or
2010 Jan 20
0
putting labels back on a matrix.
I did not post this question to the ecology list, even though it is about an analysis using Vegan, since my question is based more on basic data manipulation in R. I think this is a fairly simple question but for the life of me I cannot find a reference for in the archives.
I have an analysis using a matrix in which I needed to strip the ID variable off the input data to run the analysis. Now I
2006 Jul 29
0
Accessing vars within helpers in Markaby
I''ve been trying to figure out how to do this:
select_tag ''site_id'',
@helpers.options_from_collection_for_select(Site.find(:all,
:order=>''name''), ''id'', ''name'', @site_id)
The select_tag gets output fine, but the default value
isn''t set. @site_id is set in the controller (@site_id
= cookies[:site_id]). In
2005 Nov 25
2
acts_as_list with 2 fields in the scope
Hi Railers,
I''ve got a Categories table.
I want it to act as a list within the scope of the parent_id AND the
site_id.
Categories table :
id
label
site_id
parent_id
So, in my Category class, I have :
acts_as_list :scope => ''site_id = #{site_id} AND parent_id = #
{parent_id}''
The problem is that when I try to move_up a Category with a parent_id
that is null,
2008 Oct 16
1
merge/combine data
Hi,
I have the following data imported from a csv file
user_id site_id name
1 1 11 februari
2 1 11 redbook
3 1 11 tips
7 3 6 sleep
8 3 6 monitoring
9 3 6 alarm
Which I would like to merge/combine into
user_id site_id name
1 1 11 februari,
2006 Apr 19
4
Weird Problem - probably a noob mistake
I was up late last night trying to find the cause of this, but I''m
stumped.
I have this relatively simple controller to load up a bio. It''s basicly
id, name, desc, type (I use STI).
class BioController < ApplicationController
layout ''layouts/singlepanel''
def index
@bio = Bio.find(:all, :conditions => [''site_id = ?'',
2006 May 12
0
Using primary key that is not named "id"
Hi
I am using a legacy database that the primary key is named "ProductID"
and its type is SERIAL (or INT NOT NULL auto_increment).
set_primary_key "ProductID", is added to the Product class
Then I used >ruby script/generate scaffold Product Admin
to generate my controllers. When I try to insert a new product in the
products table, it gave me this error
RuntimeError:
2006 Dec 13
1
start primary key id > 1
I have a table under ActiveRecord with the primary key as id, integer.
Instead of starting off as id 1 I''d like it to start at 1000. Is there
a way to do this? Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post
2005 Jul 12
4
Calculation of group summaries
I know R has a steep learning curve, but from where I stand the slope
looks like a sheer cliff. I'm pawing through the available docs and
have come across examples which come close to what I want but are
proving difficult for me to modify for my use.
Calculating simple group means is fairly straight forward:
data(PlantGrowth)
attach(PlantGrowth)
stack(mean(unstack(PlantGrowth)))
2006 Oct 27
1
has_many with nullable foreign_key?
Is there a way to use has_many and have it operate like such?
select * from pages where site_id = #{id} or site_id is null
I know there''s finder_sql, but then I''ll lose the find_in_collection
goodness.
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2017 Jun 12
0
plotting gamm results in lattice
Hi Maria
If you have problems just start with a small model with predictions and then plot with xyplot
the same applies to xyplot
Try
library(gamm4)
spring <- dget(file = "G:/1/example.txt")
str(spring)
'data.frame': 11744 obs. of 11 variables:
$ WATERBODY_ID : Factor w/ 1994 levels "GB102021072830",..: 1 1 2 2 2 3 3 3 4 4 ...
$ SITE_ID
2018 Jan 23
0
interaction term by a factor group in gamm4
Dear all,
I am writing as I would really need your help on the problem with gamm4. I have tried to find a solution online but I wasn't very successful.
I am running a gamm4 model with an interaction between two variable using the tensor term, t2. I have a group variable (super end group) with six factors; I would like to run the model to see the how the interaction term varies across the
2006 Apr 04
1
has_many fails where find_by_sql succeeds
Can anyone explain why the method form of the following works, but
the (apparently identical) has_many fails?
I have 3 sites in my fixtures. Initially, for a new StockGroup,
sites_not_using_this_stock_group should return all 3 sites (which it
does). When you add a site to the StockGroup, it should disappear
from the output of sites_not_using_this_stock_group. But the
has_many form
2006 Apr 05
1
''Implicit'' subselection of data in find?
Hi,
I''ve read about this technique on the great Intraweb but can''t find it
any more- hopefully someone can help or point me to a reference! I''d
hate to reinvent the wheel if I can avoid it (and rediscover all the
gotchas that someone has already found).
I''m writing a rails app that I''d like to use to service a number of
different websites out of
2010 May 20
0
RODBC: sqlSave leave primary key and other columns null
I have an existing table, and I am trying to use sqlSave to append
additional rows to this database. I omit the primary key, which is a
uniqueidentifier type (MS SQL), so that the database can populate that
field. However, I get the following error:
> sqlSave( ch, result, tablename=thetablename, append=TRUE,
rownames=FALSE, colnames=FALSE )
Error in odbcUpdate(channel, query, mydata,
2014 Oct 12
5
Help with xapian
Hi,
I am unable to build the letor module. I am generating the configure file
using autoconf. The configure file generated is throwing the error
./configure: line 2057: syntax error near unexpected token `1.10.1'
./configure: line 2057: `AM_INIT_AUTOMAKE(1.10.1 -Wportability tar-ustar)`
I am not too sure what to do with this. Need help with this.
Thank You
Regards
Karthik
On Mon, Sep 29,
2006 Apr 21
4
Dynamic Menu
Hi, I think I''m doing this the right way, but can''t get it going. I''m
building a menu from the values in a mySQL table, and want to build it
on the fly. This is something that should be working but only works
halfway:
<% @pages = Page.find(:all, :conditions => [''site_id = 4'']) %>
<% @pages.each do |p| %>
xyz
<%p.id%>
<%
2018 Mar 14
0
Can't heal a volume: "Please check if all brick processes are running."
On Wed, Mar 14, 2018 at 5:42 PM, Karthik Subrahmanya <ksubrahm at redhat.com>
wrote:
>
>
> On Wed, Mar 14, 2018 at 3:36 PM, Anatoliy Dmytriyev <tolid at tolid.eu.org>
> wrote:
>
>> Hi Karthik,
>>
>>
>> Thanks a lot for the explanation.
>>
>> Does it mean a distributed volume health can be checked only by "gluster
>> volume
2004 Aug 30
2
Rpcclient : cmd_set "getprintprocdir" defined twice
Hi,
In rpcclient/cmd_spoolss.c line 1715 & 1718
struct cmd_set spoolss_commands[] = {
{ "SPOOLSS" },
.
.
{ "getprintprocdir", cmd_spoolss_getprintprocdir, PIPE_SPOOLSS,
"Get print processor directory", "" },
.
.
{ "getprintprocdir", cmd_spoolss_getprintprocdir, PIPE_SPOOLSS,
"Get print processor directory",
2009 Jul 29
6
Doubt in nil object with ajax
hi this is my htnl
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body>
<%= form_tag nil, { :id => ''search_form'' } %>
<%= text_field ''recipe'', ''name'' %>
<%= end_form_tag %>
<div id="recipe">
</div>
<%= observe_form :search_form, :frequency =>