similar to: Count data categories from table

Displaying 20 results from an estimated 6000 matches similar to: "Count data categories from table"

2006 May 28
3
Working with topics and categories
Hello guys, I''m a newbie in RoR and I have a problem. My DB structure is ====================================== topics table : id(int,11) name(varchar,255) categories : id (int,11) topic_id(varchar,255) name(varchar,255) ====================================== --Models:-- class Topic < ActiveRecord::Base has_many :categories end class
2009 Aug 06
1
Using 'field names' of a data.frame in a function
I may be doing this wrong! but I have a function which I have simplified a lot below. I want to pass some 'field names' of a data-frame to the function for it to then do some manipulation of. Here's my code: #build a simple dataset mydataset = data.frame (
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
2008 Dec 27
1
Want to create empty vectors inside a empty data frame
Hi All, I want to create empty vectors inside an empty data frame.The name of the vectors has to come dynamically. For example if record_mean is my empty data frame,and i have say 4 categories,the category names for record mean data frame has to recmeanC1,recmeanC2,recmeanC3,recmeanC4,which will be dynamically created and which will again be inserted in my data frame's as column values.Each
2008 Nov 14
3
migration with data
Hi I am using postgres and have two migration files like 001_create_categories.rb as class CreateCategories < ActiveRecord::Migration def self.up create_table :categories do |t| t.column :name, :string, :limit=>80 end end def self.down drop_table :categories end end and 002_populate_categories.rb class PopulateCategories < ActiveRecord::Migration
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on site navigation that can deal with any model being in the nav, allow nesting, and can dynamically update. So I thought about it for a while, and decided on a MenuItems 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
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
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/.
2005 Nov 30
0
Passing variables with update_all
I''d like to produce an SQL update along the lines of: UPDATE companies SET category2={newcategory} WHERE (category2 = {oldcategory}) At the moment I''ve got: ctype = params[:ctype] Company.update_all("category2=ctype", "category2=ctype") At present this returns a StatementInvalid: Unknown column ''ctype'' in ''where clause'':
2005 Mar 23
2
Optimized Codecs for Blackfin DSP
Hi, Are there any optimized codecs for Analog Blackfin DSP? If yes, from where we can download it? We are looking for Speech, Audio and Video codecs. Best Regards, Miroslav Nachev
2004 Jun 04
2
Help, Ideas and Ready for use Solutions
Hi, I would like to ask you for advice how to solve the following case: I have a client (who happened to be my friend) and I have convinced him that the IP PBX solution is much better than the conventional telephone centrals (PBX). At the beginning he wanted to buy PBX Panasonic, but at this moment he is waiting for my decision. Because at the moment we are not so deeply familiar with these
2004 Jul 22
1
How to calculate the price for Asterisk based Solution
Hi, We have potential client which would like to offer to him VoIP solution for 2000 subscribers (SIP based Phones) and 2 x PRI ISDN interfaces to the PSTN. In the next stage the subscribers will be increased up to 13,000. Because I am not haven't done similar big project I don't know how to calculate the price. The one way is using number of subscribers and the other is using PSTN
2004 Jun 03
1
DSP Coding
Hi, I would like to find some way for hardware coding instead software (using the Host CPU). Are there any PCI boards just with codecs (DSP) or other way? Best Regards, Miroslav Nachev COSMOS Software Enterprises, Ltd. Tel: (+359-2) 983-32-62 Mobile: (+359-88) 897-31-95 E-Mail: m_natchev@yahoo.com miro@space-comm.com http://www.space-comm.com
2004 Jun 22
3
License and Commercial Use
Hi, I can't find anywhere on the Asterisk web the license terms for commercial use of Asterisk software. Do I have to pay something (and how much) if I want to use the Asterisk in our IP PBX solutions? Best Regards, Miroslav Nachev COSMOS Software Enterprises, Ltd. Tel: (+359-2) 983-32-62 Mobile: (+359-88) 897-31-95 E-Mail: m_natchev@yahoo.com
2011 Jan 09
13
yum difference
Hi, Can you tell me what ate differences in the source code between the original Red Hat yum and the one which Centos uses for updates? Regards Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110110/66610d8c/attachment-0002.html>
2008 Apr 25
5
Non-linear system of equations
Hello R users, I am trying to estimate the parameters of a bimodal normal distribution using moments matching, so I have to solve a non-linear system of equations. How can I solve the following simple example? x^2 - y^2 = 6 x ? y = 3 I heard about nlsystemfit, but I don?t know how to run it exactly. I have tried the following code, but it doesn?t really work: f1 <-y~ x[1]^2-x[2]^2-6 f2
2007 Oct 11
5
rearrange data columns
Dear R users, I need to to the the following. Let a= 1 2 3 4 5 6 and b= -1 -2 -3 be (2x3) matrices. -4 -5 -6 I need to combine the two matrices into a new (2x6) matrix like this: ab = ( 1 -1 2 -2 3 -3 ) 4 -4 5 -5 6 -6 How can this be done in R? ----------------------------------------------------------------- ?????? ???
2004 Aug 18
1
How to use more PCI Cards with FXO/FXS in case that TDMoE doesn't work
Hi, We have a case where we need of 16 x FXS, 12 x FXO and 1 x E1. To do this using Digium products I need of 8 PCI slots. This is not possible to be done in one computer and that's why I try to start using TDMoE. Unfortunately all my tries are without success. The network is crashed everytime. Can you give me some ideas/suggestions how to solve this case? Best Regards,
2010 Nov 22
2
I need a very specific unique like function and I don't know even how to properly call this
consider this matrix: [,1] [,2] [1,] 3 7 [2,] 6 5 [3,] 7 5 [4,] 3 5 [5,] 7 5 [6,] 5 5 [7,] 8 4 [8,] 2 4 [9,] 7 4 [10,] 0 6 I need to delete all rows where column 2 above and below has the same value, so the effect would be: [,1] [,2] [1,] 3 7 [2,] 6 5 [6,] 5 5 [7,] 8 4 [9,] 7 4 [10,] 0 6
2012 May 04
4
Git branch with compiling fixes for win32
On Fri, May 04, 2012 at 05:53:23PM +0200, Miroslav Lichvar wrote: > The most interesting part of the patch is the rewrite of the > FLAC__bitreader_read_rice_signed_block function, which in the git repo > seems to have only couple lines changed since 1.2.1. Here is that part of the patch rebased against current git. In a quick test it gives a 10% speedup in decoding. -- Miroslav Lichvar