Displaying 15 results from an estimated 15 matches similar to: "excel"
2006 Jul 29
9
export to a CSV or XLS file
hello everyone,
Any idea how can i export a resultset from a database to a CSV or XLS
file from the application ? would like the user to have the option to
export selected data to a CSV/XLS file.
Any plugins or libraries avaiable to accomplish this ?
Thanks for your time,
VASU.
--
Posted via http://www.ruby-forum.com/.
2009 Oct 15
3
populating an array
Hi,
Can someone please give me a pointer as to how I can set values of an array?
Why does the code below not work?
my_array <- array(dim=c(2,2))
my_array[][] = 0
my_array
[,1] [,2]
[1,] 0 0
[2,] 0 0
for(i in seq(1,2,by=1)){
for(j in seq(1,2,by=1)){
my_array[i][j] = 5
}
}
Warning messages:
1: In my_array[i][j] = 5 :
number of items to replace is not a multiple of
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here..
I have a form where users can write a city name (used with
auto_complete) - and once they click on the desired city in the dropdown
menu - I would like to have the Country field filled automatically as
well...
Is this possible at all ?
If so, can somebody please tell me where I can find some documentation
on the subject, or preferrably an example ?
Many thanks in
2013 Apr 02
2
Create a vector without using an external 'if statement'
Dear R-users,
suppose I have three dataframes like these
df1:
mydate min_temp
31032013 12
01042013 8
02042013 -999
df2:
mydate min_temp
31032013 10
01042013 11
02042013 14
df3:
mydate min_temp
31032013 4
01042013 3
02042013 5
where -999 means that the temperature data is not available (at the moment I cannot change it to NA because I am not the db administrator);
suppose also that oggi is
2012 Feb 24
4
Table into a list
Hello,
I am looking for a way to transform an array into a list (or a string).
My array has two columns 1 and 2, and I would like to create a list of the
values.
Let's say I have :
x1 x2
1 a b
2 c d
3 e f
4 g h
What I would like to obtain is a,b,c,d,e,f,g,h.
I tried without success melt and reshape ( reshape(my_array,
2006 Jul 31
5
PostgreSQL
Hi @ all
Does anyone has some experience with PostgreSQL and RoR? Does it gives
any disadvantages or problems with PostgreSQL? I have a webapplication,
that manage (read/write) many records (no. 200''000 records) and I search
a ideal database. Actually, I have two options: - MySQL / - PostgreSQL
And now, I would like to ascertain a good solution...
Thx, ribit
--
Posted via
2006 Apr 17
9
ruby on rails book, fundamental question
Hi guys,
bought the ROR book. I understand most of it and really like it. There
is just on thing I just dont get.
Lets take this code for example.
def list
@products = paginate :product, :per_page => 10
end
As far as I understand @products should be some kinda hash or array,
with the data of the Database inside.
How can I display this array ?
One solution is to do it like this (like in
2014 Mar 15
1
FLAC-compress data with Python
Hello,
I would like to compress some data, stored in a Numpy Array (Python) with
something like (*):
flac.compress(my_array)
without having to put data in a .wav file, without having to deal with
containers, etc.,
i.e. :
*raw data in / raw data out*
Do you have an idea on how to do that with FLAC?
This could be useful for audio data of course (stored in simple arrays),
but also for other kind
2020 Mar 10
2
DWARF .debug_aranges data objects and address spaces
Hello
I've been looking at a debuginfo issue on an out-of-tree target which uses
DWARF aranges.
The problem is that aranges are generated for both data and code objects, and
the debugger gets confused when program addresses overlap data addresses. The
target is a Harvard Architecture CPU, so the appearance of overlapping address
ranges is not in itself a bug as they reside in different
2009 Oct 13
3
Function to find prime numbers
I need to create a function to find all the prime numbers in an array. Can
anyone point me in the right direction?
Thank you.
AJ
--
View this message in context: http://www.nabble.com/Function-to-find-prime-numbers-tp25868633p25868633.html
Sent from the R help mailing list archive at Nabble.com.
2008 Jun 20
3
Mounting Floppies
Hi - daft one for Friday morning coffee break:
I have been trying to mount floppies on a couple of CentOS5 servers - the
usual "mount /dev/fd0 /mnt/floppy" (yes, /mnt/floppy exists!).
On both servers, the mount command just doesn't come back and I have to hit
CTRL-C. I have tried different media and also changed the floppy drive on
one server, /dev/fd0 is seen as present on both
2006 Aug 16
3
separate row averages for different parts of an array
I have an array with 44800 columns and 24 rows I would like to compute the
row average for the array 100 columns at a time, so I would like to end up
with an array of 24 rows x 448 columns. I have tried using apply(dataset, 1,
function(x) mean(x[])), but I am not sure how to get it to take the average
100 columns at a time. Any ideas would be welcomed.
thanks,
Spencer
[[alternative HTML
2010 Aug 03
3
Drop down box in ruby
Hello I''ve only been playing with ruby and rails for a few short weeks,
I have an class called time in my libs folder and I want to call an
array from this class and populate a drop down box/select box in rails
in one of my view pages.
everything online is so confusing regarding this..
Just say my array is like this
time = [[minute,min,20,50],[hour,hr,10,50]]
How would I get a select
2012 Mar 19
4
[Arrray] grep -v
Hi everyone,
I am trying to simulate the ''grep -v'' behavior in an array:
Ex:
vgrep([''aaa'',''bbb'',''ccc'',''aaaddd''], ''aaa'')
Would return:
[''bbb'', ''ccc'']
So I tried to use ruby to do it: normally the ''-'' operation should be
2015 Jul 01
5
[LLVMdev] C as used/implemented in practice: analysis of responses
On Wed, Jul 1, 2015 at 12:22 PM, Russell Wallace <russell.wallace at gmail.com>
wrote:
> I am arguing in favor of a point, and I understand you disagree with it,
> but I don't think I'm dismissing any use cases except a very small
> performance increment.
>
I'm sure Google has numbers about how much electricity/server cost they
save for X% performance improvement.