Displaying 10 results from an estimated 10 matches for "category1".
Did you mean:
category
2007 Feb 25
0
moving local files, remote mirroring, and --link-dest awkwardness
I have some pictures that I unload from the camera into:
dir/tmp
and at night I automatically rsync all of dir/ to some remote:dir/
Then days or weeks later I do some local sorting, and I make lots of image
moves of the sort where image dir/tmp/bar goes to to dir/category1/bar,
possibly linked also into dir/category2/bar.
Then rsync runs the next night, notices the "new" image dir/category1/bar
and does the huge image upload all over again, despite the remote system
already having that image in dir/tmp/bar from the previous night.
I need to make rsync use...
2006 May 28
3
Working with topics and categories
...name(varchar,255)
======================================
--Models:--
class Topic < ActiveRecord::Base
has_many :categories
end
class Category < ActiveRecord::Base
belongs_to :topic
end
I need page structure like this:
<h3>Topic1</h3> (id = 1)
<ul><li>Category1</li> (topic_id = 1)
<li>Category2</li> (topic_id = 1)
<li>Category3</li> (topic_id = 1)
<li>Category4</li></ul> (topic_id = 1)
<h3>Topic2</h3> (id = 2)
<ul><li>Category1</li> (topic_id = 2)
<li>Cat...
2009 Aug 06
1
Using 'field names' of a data.frame in a function
...F M
30-39 0 1
40-49 2 1
50-59 2 1
60-69 0 1
Calling the function as: myfunc ("mydataset$ages, mydataset$sex") doesn't work either and nor does myfunc (c("mydataset$ages", "mydataset$sex"))
Now in the simple version above I could make the function (category1, category2) and then call table (category1, category2) - but what if I might have a category 3, category 4 etc... How can I pass the dataset name to the function without it trying to actually pass the data to the function? I've also tried paste - but perhaps I'm mis-using it?
Many thanks...
2008 Apr 01
1
Navigation Problems
Hi,
I am having problems with my page. I have a banner and navigation bar in
controller_name.rhtml in app/views/layout. Can someone please help?
Thanks
In the navigation bar, I have the following links:
Category1
Sub-Category1
Sub-Category2
Sub-Category3
Sub-Category4
Sub-Category5
Sub-Category6
In the main content, I have the following links:
Sub-Category1 edit delete
Sub-Category2 edit delete
Sub-Category3 edit delete
Sub-Category4 edit delete
Sub-Categ...
2009 Jul 17
2
Count data categories from table
...ies (described as
character strings) in a second column] and have a pie chart describing the
distribution of all 1000 entries into these 30 categories.
The problem I have is to make R count how many times each of the 30
categories is present in the table; then if I have them counted (e.g. if I
have category1 - 234 times, category2 - 356 times, etc. in a vector/table)
the rest will be easier.
Thanx for the help in advance!
Best,
Miro
--
View this message in context: http://www.nabble.com/Count-data-categories-from-table-tp24531524p24531524.html
Sent from the R help mailing list archive at Nabble.com...
2011 Sep 26
0
horizontal labels for a dendrogram
...isualize the clustering of a dataset with a
dendrogram. I'm using the following script:
data = read.table("data.csv", header=T, sep=";")
require(cluster)
res = as.dendrogram(agnes(data))
chlab <- function(n) {
if(is.leaf(n)) {
att <- attributes(n)
labx <- data$category1[att$label]
lab_color <- ifelse(labx == "A", "black", ifelse(labx == "B", "red",
"green"))
attr(n, "nodePar") <- c(att$nodePar, lab.col = lab_color, pch = NA)
attr(n, "label") <- labx
}
n
}
# lab.col = lab_color,...
2008 Dec 27
1
Want to create empty vectors inside a empty data frame
...ding to the categories i have [Caregories is again
collection of items...........[Able to do this]
recmeanC1=>this and others (like recmeanC2,recmeanC3,recmeanC4)=>should be
all vectors having the means of each records set item mean for a particular
category.....[]
Say i have 2 categories:--
Category1 say has==>i1,i2(say i have 10 records,i.e i1,i2 pair values)
Category2 say has==>i3,i4(10 records )
recmeanC1=>means of each i1,i2 value per record for category 1 as vector (i
keep adding rows of means ,using rbind)
recmeanC2=>means of each i3,i4 value per record for category 1 as vecto...
2008 Nov 14
3
migration with data
...NAMES.each{|name| Category.create(:name => name)}
end
def self.down
NAMES.each{|name| Category.find_by_name(name).destroy}
end
end
My problem is if I seperately done these migrations ie one by one
everything is ok .I get sequence starts with 100 and the values like
100 Category1
101 Category2
102 Category3
But if I just migrate two migrations at once I get error
-- execute("ALTER SEQUENCE categories_id_seq RESTART WITH 100;")
rake aborted!
RuntimeError: ERROR C42P01 Mrelation "categories_id_seq" does not
exist Fnamespace.c L273 RR...
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
...nuItems class, which
contained the position of the child in relation to it''s siblings, where the
parent and the child were polymorphic. Then a given childable object can
find it''s parentable by going through the menu_items table.
I want my nav to be able to do things like this:
--Category1
----SubCategory1
------Product1
------Product2
----Product3
--Category2
----Product4
--Page1
--Page2
--Page3
This is the current setup:
MODELS
class MenuItem < ActiveRecord::Base
belongs_to :childable , :polymorphic => true
belongs_to :parentable , :polymorphic => true
acts_as_...
2006 Jun 03
2
Parent listing children.
My database is set up as Categories > Things associated by category_id
and has_many and belongs_to.
How would I go about listing all the categories and under each Category
is it''s children? Is there an easy rails way to do this - preferably
without using acts as tree? Any help is appreciated - thanks!
--
Posted via http://www.ruby-forum.com/.