Displaying 20 results from an estimated 4000 matches similar to: "string array to integer array"
2009 Jul 31
2
Undefined method updated? for <model object>
Hi,
I have two model say-
ZipCode < ActiveRecord::Base
belongs_to :state_provinces
end
StateProvince < ActiveRecord::Base
has_many :zip_codes
end
if I do @zip_code.update_atribute(:city, "My City")
its giving Undefined method updated? for StateProvince
if I remove belongs_to specifier in ZipCode class then it work fine.
Any alternate solution??
Thanks
--
Regards,
Himanshu
2006 Oct 24
2
Installing stats4 package
Hi,
I wantto use 'mle' function in R on linux. As I see its been integrated
into the stats4 package. Am I correct ? If yes, Can anyone suggest how to
install the stats4 package to be able to run 'mle' function in R on linux ?
Otherwise how to sort out this problem ?
Thanks
Himanshu
[[alternative HTML version deleted]]
2008 Oct 16
2
Saving results of Kruskal Walis test
Hello,
I am running Kruskal-Walis test in R. When I try to save results using
write.table it gives me the following error :
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors =
stringsAsFactors) :
cannot coerce class "htest" into a data.frame
The overall code is as follows :
>data_file = read.table("~/DATA.dir/data_file.txt", header=T)
2007 Nov 14
4
Creating a group share
Hello,
I have a Samba PDC (3.x) running in a OpenSUSE 10.2 system. The
authentication backend is Open LDAP.
I want to create a group share (WTCCC) which should be accessible to a
group of users (belonging to a group called WTCCC). The users' possess
this group as their secondary group (NOT primary).
And the share folder would have its gid bit set, so all the writes to
the folder
2006 Apr 07
2
Dealing with missing values in HeatMap generation
Hi,
I want to generate a heatmap for my data (in a matrix). However, the
data has some missing values (represented as blank).
I get the following errors (with the blanks and with blanks replaced by
NA and including the option rm.na = TURE):
> filename = "input_heatmap.txt"
> g <- as.matrix(filedata)
> fg <- rainbow(nrow(g), start=0, end=.3)
> gg <-
2005 Oct 04
2
Question regarding behavior of virt_to_bus ....
Hi Folks,
I need some large chunk of physical memory, so I allocate it early using
alloc_bootmem_low_pages and use it later (akin to bigphysarea patch).
The trouble I am having is the following. Suppose the virtual address
for the memory area is 0xc14d6000. After xen_create_contiguous_region
call, I do a virt_to_bus and the bus address comes out to be 0x18000000.
So far so good. However,
2006 Jun 18
6
integer array columns
Postgres database.
I have a categories table, with two columns id, and name.
I have a recipes table, with a category_ids column.
I want each recipe to belong to one or more category.
in recipe_controller.rb I have this:
def create
@recipe = Recipe.new( @params[''recipe''] )
@recipe.category_ids = @params[''recipe''][''category_ids''].map{
2011 Sep 28
2
[LLVMdev] Instrumenting C/C++ programs
Hey Xiaoming, Thanks for those source codes. Can you please explain what
this llvm-memory-profiling.patch does ?
Thanks,
Himanshu
On Wed, Sep 28, 2011 at 6:49 AM, xiaoming gu <xiaoming.gu at gmail.com> wrote:
> Hi, Himanshu. I once wrote an LLVM IR-based memory profiling
> pass. Basically, I followed the code for EdgeProfiling. The source code is
> enclosed here, which worked
2008 Sep 16
2
[LLVMdev] DOTGraphTraits and GraphWriter
Hi Dan,
Thanks for the reply. I got the labels for each outgoing edge (at the
source node's 'structure' field) working. Is there a way to find out
the outgoing edge number from EdgeIter. (Basically the Node in my
graph has a a bunch of outgoing edges, so that I can just index into
that collection within the node to get the appropriate edges'
attributes).
regards,
Prakash
On Tue,
2011 Aug 11
9
Custom manifest
Hi,
Can I execute a command basis on some criteria in puppet. For example, I
would want to execute the following command
svn up; /usr/local/apache/bin/apachectl restart
only if "revision number of file on host = revision number of file on svn"
i.e.
"/usr/bin/svn info /usr/local/apache/conf/Web_Config/httpd.conf | grep
Revision| cut -d: -f2| sed -e''s/
2011 Sep 29
2
[LLVMdev] Instrumenting C/C++ programs
Hey guys,
I have seen your interesting conversion. I am new for LLVM as well as clang
compiler. I am going to use it now. it is quite difficult when someone
starts it from scratch. But it is enjoyable and it is possible to
familiarize with the environment by short time. Am gonna to use clang + llvm
to generate AST from source code by using clang and to do high level
transformation. Then I want to
2006 Apr 14
1
[PATCH][VT] minor patch for tracing VMEXIT/VMENTRY for 64 bit systems
This patch enables tracing VMEXIT/ENTRY for 64-bit systems (are there any 32-bit
VT enabled systems out there?)
Signed-off by Himanshu Raj (rhim.list@nosuchaddr.com)
--
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
2010 Dec 06
7
error running puppetrun
Hi,
I have been getting the below error for sometime now. Both master and
client are using version 0.24.8.
Output from /var/log/messages
err: Could not call puppetmaster.getconfig: #<#<Class:0xb7b50a9c>:
execution expired>
err: Could not retrieve catalog: execution expired
P.S- all of this was working absolutely fine and suddenly has started
to misbehave.
Regards,
--
You
2012 Aug 07
4
Overlapping a Plot with Dataframe
Hello Everyone,
I am trying to overlap a plot with a data set in the form of a data frame.
Its very easy to overlap the data using "points" function. But the only
problem I am facing is "Standard deviation bar" on the plot.
data <- data.frame(
x = c(3.00,2.00,3.80,2.40,2.00),
error = c(0.0,0.4,1.1,0.7,0.5)
)
I tried plotrix, segments but they are making a new plot
2008 Sep 22
0
[LLVMdev] DOTGraphTraits and GraphWriter
Hi Prakash,
I don't know of an easy way to do this, other than to use random-access
iterators so you can compute the distance between the edge and the
beginning of the list of edges.
Dan
On Sep 16, 2008, at 2:58 PM, Prakash Prabhu wrote:
> Hi Dan,
>
> Thanks for the reply. I got the labels for each outgoing edge (at the
> source node's 'structure' field) working. Is
2008 Nov 04
4
[LLVMdev] Debugging lli using bugpoint
Hi Evan,
Thanks for the pointers. We found a simple test case that causes the problem
(thanks to Tom in my group):
#include<stdio.h>
#include<stdlib.h>
void test();
void (*funcPtr)();
int main(int argc, char **argv) {
funcPtr = test;
test();
}
void test() {
if(funcPtr == test) {
printf("OK!\n");
} else {
fprintf(stderr, "Bad!\n");
exit(1);
2008 Sep 15
2
[LLVMdev] DOTGraphTraits and GraphWriter
Hi all,
I have two questions related to .dot graph output. Basically, I have a
graph representing a program dependence graph like structure with
(a) multiple edges between the same pair of nodes
(b) each edge having a special (different) text/label
I implemented a template-specialized version of DotGraphTraits for the
my graph structure which given a node, uses a map_iterator (similar to
the one
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
The patch file is a diff file generated by "svn diff". It is about other
modifications such as adding some lines to make files to make the added .c
and .cpp files compiled. You may apply the patch file to LLVM source code by
using a "patch" command or make the changes manually by reading the patch
file.
Xiaoming
On Wed, Sep 28, 2011 at 6:05 AM, Himanshu Shekhar
2009 Aug 05
8
Tuning the performance of Samba over LAN network to improve I/O performance
Hello friends,
I am trying to test NAS I/O performance over a network and trying to see the
numbers for write and read speed. I have successfully configured and ran a
lot of tests. However the numbers have not increased, I have reached a
bottleneck.
I tried playing around with the smb.conf file including all possible
variations like,
socket options = TCP_NODELAY SO_RCVBUF=(tried values like
2017 Mar 05
3
GSoc 2017 Introduction(Weighting Schemes)
Hello Everyone,
I am a second year graduate student at IIIT-Bangalore and my interest is in
the field of Information Retrieval. I have successfully compiled Xapian
from source and have implemented some examples. While going through the
project list Weighting Schemes project is the one I was looking to
contribute to. So i went through the xapian-core/weight where most of the
schemes are already