Displaying 20 results from an estimated 4000 matches similar to: "Exciting Website Development"
2006 Feb 17
4
Table with Constants
I would like to have a table with some constants to use them later on
for a drop down menu. How can this be done?
My table looks like
Table with constants
------------------------
id | key | value | type
------------------------
1 | M | Male | sex
....
I know it can be done like this
<% select ''object'', ''method'', Constants.find(:all, :select =>
2006 Jul 12
5
DRY version of RoR book PAYMENT_TYPES example
In the book there is an example how to convert DB payment value to more
readable from. PAYMENT_TYPES array is defined and then in your views you
can use it as Order::PAYMENT_TYPES.
The problem is: how should I convert DB values (for example with type
char(1)) to full string representation. I know that I can add a Hash to
a model: IM = {''S'' => ''Skype'',
2007 Aug 14
1
What's the good way to cache reference data?
I''m looking at an application that has 30+ lookup tables. By that I
mean your typical (id, description, created_on) affairs that contain
locations, zip codes, contract types and what not. Things that rarely
change, and are maintained by administrators.
It''s well known that when you have many lookup tables in the schema,
eager loading is not good enough anymore, and you need to
2006 Jun 26
5
How can I dynamiclly generate models?
I am trying to write a plugin, ''acts_as_commentable'', for my models -
Image, Book, Music and so on, I do not want to use polymorphic
association, so very model should have its own comment class.
Here is my code
acts_as_commentable.rb
module Commentable
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def
2006 Nov 08
3
How to implement status codes in DB and Rails
This is more of a design issue I''m wrestling with, and was wondering
what other people are doing.
I have a products table with status values of In Stock, Out of Stork or
Discontinued. This is unlikely to change any time soon.
Approach A, is to have thses actual values in the status column, at
least the meaning is very apparent, yet querying for products with a
specific status could
2007 Jan 27
1
Conditional Selection of Columns for Tables
Dear Wizards -
Thank you so much for your help. That was exactly what I was looking
for. Now, I have been working on conditional selection of columns in a
data frame. My goal is to calculate the total revenue per sales
representative per status in a table. I have come to a complete stop:
Let's say, we have a data.frame called df with several columns and a
number of rows:
df <-
2009 Jun 05
1
ADF test
Hi,
While doing the ADF test in R using the following command I am getting the
error and the result..">
x.ct=ur.df(rev$REVENUE,start=1,end=length(rev$REVENUE),frequency=1)
Error in ur.df(rev$REVENUE, start = 1, end = length(rev$REVENUE), frequency
= 1) :
unused argument(s) (start = 1, end = 4, frequency = 1)
>
2011 Jun 18
1
Trouble with Paste and Quotes and List Objects
Dear R Helpers,
I have a list that contains a number of objects, each of them financial
statement data from quantmod (although I don't think that knowledge of
quantmod is necessary to help with this problem).
> str(listfinobj)
chr [1:4815] "A.f" "AA.f" "AACC.f" "AAME.f" "AAN.f" "AAON.f" "AAP.f"
"AAPL.f"
2006 Jun 07
4
Question: coding protected methods
Apologies first, because I need to ramp up on Ruby and coding Ruby in Rails,
however it''s my 3rd day with this beast :) so I''m asking :
When I added protected methods to the model before it was like:
protected
method....................
end
Would this be a valid way to write a protected method as well ?:
attr_protected :column1, :column2
Perhaps this particular call
2009 Nov 12
2
Non linear programming optimization (which package to use?)
Hello,
1) Is there any nonlinear programming optmizer that I can user for the
following problem?
Obj function: (max) revenue = price * volume
Constraints: price and volume pair must be from the following variable data set:
Variable data set:
# price volume
1 10 500
2 20 450
3 30 330
4 40 250
5 50 190
Expected result: 10,000 (variable row#4)
2) Could it also be possible for the suggested
2010 Mar 10
3
see the example and help me
sample report data that i want to forecast
quarter quarter_index Revenue
2007 Q1 1 $3,856,799
2007 Q2 2 $4,243,328
2007 Q3 3 $4,930,369
2007 Q4 4 $5,443,579
2008 Q1 5 $5,164,830
2008 Q2 6 $5,104,413
2008 Q3 7
2010 Mar 11
4
Forecast
sample report data that i want to forecast
quarter quarter_index Revenue
2007 Q1 1 $3,856,799
2007 Q2 2 $4,243,328
2007 Q3 3 $4,930,369
2007 Q4 4 $5,443,579
2008 Q1 5 $5,164,830
2008 Q2 6 $5,104,413
2008 Q3 7
2010 Feb 25
4
different types graphs
>library(RODBC)
>ch<- odbcConnect("durga")
> sqlQuery(ch, paste("SELECT * from emp"))
>sqlQuery(ch, ("SELECT * from xyz"))
store revenue year_y
1 bigbazar 787875 2008
2 more 87876 2008
plot(revenue ~ year_y, data=xyz, pch=16)
can i get any diffrent types of graphs like pie charts, bar
2011 Oct 04
4
[LLVMdev] LLVM IR is a compiler IR
On 5 October 2011 00:19, Chris Lattner <clattner at apple.com> wrote:
> 1. The native client folks trying to use LLVM IR as a portable representation that abstracts arbitrary C calling conventions. This doesn't work because the frontend has to know the C calling conventions of the target.
(...)
> 2. The OpenCL folks trying to turn LLVM into a portable abstraction language by
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi,
in the past few months someone posted an entry on their blog about
how to do validations in non-AR classes and I cant find it any more.
Anyone have a link?
Thanks,
Trevor
--
Trevor Squires
http://somethinglearned.com
2006 Jun 18
10
acts_as_enumerated
Hello All,
Any one using acts_as_enumerated? I need help using (I like that it
caches values in memory)
I am working on a dating website and there are lots of options I want to
store as enumerated like
Status; divorce, single,
Sex: male, female
Eye color; blue, brown, green....
and lots more....
But I do not wanna keep them in seperate tables, and wanna keep them all
together.
Anyone has a
2008 Apr 02
0
[R-SIG-Finance] Bayesian estimation of jump-diffusion processes andself-exciting counting processes
Sincerely,
Jeffrey Todd Lins
Executive Director
Quantitative Analysis
Saxo Bank A/S
(Sent from my BlackBerry)
----- Original Message -----
From: r-sig-finance-bounces at stat.math.ethz.ch <r-sig-finance-bounces at stat.math.ethz.ch>
To: r-help <R-help at stat.math.ethz.ch>; r-sig-finance at stat.math.ethz.ch <r-sig-finance at stat.math.ethz.ch>
Sent: Wed Apr 02 06:49:54 2008
2011 Oct 05
0
[LLVMdev] LLVM IR is a compiler IR
On Oct 4, 2011, at 4:42 PM, Renato Golin wrote:
> On 5 October 2011 00:19, Chris Lattner <clattner at apple.com> wrote:
>> 1. The native client folks trying to use LLVM IR as a portable representation that abstracts arbitrary C calling conventions. This doesn't work because the frontend has to know the C calling conventions of the target.
> (...)
>> 2. The OpenCL folks
2023 Nov 29
2
Barplot for data frame
I have a dataframe df <-
df <- data.frame (Revenue = c("100", "300", "500"),
Brand = c("Apple", "HP", "Lenovo")
)
how can i create a vertical barplot that displays brands in x-axis and Revenue in Y-axis
[[alternative HTML version deleted]]
2011 Jan 09
2
Post hoc analysis for ANOVA with repeated measures
Dear all,
how can I perform a post hoc analysis for ANOVA with repeated measures (in
presence of a balanced design)?
I am not able to find a good example over internet in R...is there among you
someone so kind to give
me an hint with a R example please?
For example, the aov result of my analysis says that there is a statistical
difference between stimuli (there are 7 different stimuli).
...I