Displaying 20 results from an estimated 10000 matches similar to: "about matrices merge and retrieve algorithm."
2006 Jul 25
12
DRYing - similar named fields, etc.
I''m sorry - just couldn''t come up with a subject that describes the
problem :(
Anyway, this is my problem. I have a long list of fields that need to
be displayed when a ''show'' is requested on the controller. I''m now
doing the list.rhtml and looking for a DRY way to do the following.
For each data item, I have 2 fields - one is the item name, the
2011 Jun 18
3
how to subtract one string from another in R
Dear R Group
Here is what i am trying to do.. but couldnt figure out how..
string<-"ABC DEFG HIJKLM NOPQ RSTUV WXY"
string1<-substr(string,1,4)
I want to create an R object string 2 ( following the logic shown).. R does
not allow string subtraction.. any suggestions how to achieve this?
string2<-string-string1 (it should now hold "DEFG HIJKLM NOPQ RSTUV WXY"
I
2006 Jun 19
9
Railsday 2006
Can you guys post a demo of your application ?
Would be great.
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2014 Jun 20
3
[LLVMdev] Inline Assembly in IR
Dear,
Can anybody comment on inserting inline assembly in LLVM IR?
--
Pratik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140620/03400e95/attachment.html>
2006 Jul 06
5
Single table inheritance
I''m having a class called Person, with subclasses as goalkeeper,
forward, defender.
Now a person can be a forward as well as a defender or a goalkeeper.
I want to use single table inheritance like :
class Goalkeepr < Person
end
And not have multiple boolean columns like in my people table like is
is_goalkpeer, is_forward, is_defender.
How do I go about it ?
Thanks,
Pratik
--
rm
2006 Nov 04
6
Javascript form validation for In place editting in scriptaculous ?
Is there a way by which I can do form validation for form generated by In
Place Editting of scritaculous?
The reason is, I want to avoid server roundtrip for checks which I can
perform at browser.
Regards,
Jatinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060828/ca882668/attachment-0001.html
2006 Apr 15
19
Trouble with Lighty
I''m trying to setup my rails application with Light+fcgi.
This is the error I''m getting when I try to start Lighttpd :
============
[getcapture@alpha getcapture]$ ~/etc/rc.d/lighttpd.sh start
Starting Lighttpd
2006-04-15 11:27:24: (mod_fastcgi.c.1022) execve failed for:
/home/getcapture/application/public/dispatch.fcgi No such file or
directory
[getcapture@alpha getcapture]$
2012 Mar 08
4
Correlation between 2 matrices but with subset of variables
Dear All,
I have two matrices A (40 x 732) and B (40 x 1230) and would like to calculate correlation between them. I can use: cor(A,B, method="pearson") to calculate correlation between all possible pairs. But the issue is that there is one-many specific mappings between A and B and I just need to calculate correlations for those pairs (not all). Some variables in A (proteins, say p1)
2006 Jun 21
5
Problem with observe_field
Hi folks,
I have following in my view :
===================
<div class="foo">
<%= select ''theme'', "id", Theme.find_all.collect {|t| [ t.name, t.id
] }, { :prompt => ''Select a theme'' } %>
</div>
<%= observe_field(
:theme_id,
:update => :my_style,
:url => { :action => :themelookup, :id => @space,},
2007 May 04
2
Get the difference between two matrices with different length
Hello,
I have got two matrices with different length. The matrices have 3
columuns. The first two are coordinates. The third is a measurement.
Now I want to get a subtraction between every single value of the
third column (between matrix1 and matrix2), but only if the two
first coordinates in matrix1 and matrix2 are the same.
I tried "FUN=?" in aggregate and ave, but I don't know
2006 Jun 08
4
weblog.rubyonrails.com - needs upgrade ?
Last 2 articles have 500+ comments.
Also, whenever I comment, it never appears immediately.
It terribly needs an upgrade.
-Pratik
--
rm -rf / 2>/dev/null - http://null.in
2014 Jun 10
2
[LLVMdev] Help required in instruction selection.
Dear,
I have the following problem.
I am given 2 instructions say I1 and I2 whose selection should depend on
the operands.
Say the operands have a boolean attribute 'attr'. I would like to select I1
and I2 by some logic that involves the 'attr' attribute of all the operands
involved.
eg: If all operands have attr set to True, I want I1 to be selected to
operate else I2.
How can I
2006 Jun 25
3
Dummy field in a model
I want to have a field in model, which I''m not storing in a database.
And I want to do something like the following in the model code :
validates_format_of :field_NOT_in_db, :with => session[:field]
How can I do it ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2014 Dec 07
2
[LLVMdev] Interest in LLVM
Hello everyone,
My name is Pratik Bhatu, I am a bachelor student currently studying at IIT Hyderabad, India.
I just finished my Compilers course have been exploring LLVM since the past month (kaleidoscope, writing LLVM passes) and am interested in the llvm-polly project. I am also a potential GSoC applicant and wanted to start working on the project from now. Is there a way I can
2011 Jun 02
4
generating random covariance matrices (with a uniform distribution of correlations)
List members,
Via searches I've seen similar discussion of this topic but have not seen
resolution of the particular issue I am experiencing. If my search on this
topic failed, I apologize for the redundancy. I am attempting to generate
random covariance matrices but would like the corresponding correlations to
be uniformly distributed between -1 and 1.
The approach I have been using is:
2014 Jun 11
2
[LLVMdev] Help regarding ad new functionality in Backend
Dear,
I am looking at the Instructions defined in the XXXXInstrInfo.td where I
can see a def record defined like below
def ADD8rr : I8rr<0x0,
(outs GR8:$dst), (ins GR8:$src, GR8:$src2),
"add.b\t{$src2, $dst}",
[(set GR8:$dst, (*add *GR8:$src, GR8:$src2)),
(implicit SRW)]>;
Now here I would like the to
2006 Jul 15
3
Why app/helpers are not app/view/helpers ?
So that we can write controller code inside helpers ? are we supposed
to do that ?
-Pratik
--
rm -rf / 2>/dev/null - http://null.in
"Things do not happen. Things are made to happen." - JFK
2008 Dec 03
1
intersection of two matrices(updated)
Hi,
I have two matrices as follow:
matrix A =
a=matrix(c(c("abc","abc","bcd","bcd","bce","bce"),c("a1","d2","d1","d2","a1","a2")),6,2)
and matrix B which contains pair of values :
b=matrix(c(c("a1","a1"),c("a2","d2")),2,2)
In short,
2014 Jun 04
2
[LLVMdev] Guidance regarding a dummy project
Dear,
I am looking to build a compiler-assembler with a custom architecture.
I have a new Instruction set defined with me and I would like atleast my C
programs to get converted to assembly language corresponding to the custom
architecture.
I have been going through llvm and its resources on the web, Can any one of
you offer guidance about the above problem.
All I want is to develop a tool
2006 Jun 30
3
@foo = Bar.new(params[:foo])
While doing @foo = Bar.new(params[:foo]) in a controller, the
application is open to injection attacks.
For example,
My model has following attributes :
name
password
admin - boolean
Now, if on my form I''m just acception name & password, and doing @foo
= Bar.new(params[:foo]) in my controller, someone can just enter
following in form :
<%= text_field ''foo'',