similar to: [Arrray] grep -v

Displaying 20 results from an estimated 100 matches similar to: "[Arrray] grep -v"

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
2012 Oct 03
5
is_virtual selector
I too have been pushed into Puppet 3.0. Clients and PuppetMaster are now at 3.0.0. Not sure if this is a version change or syntax error that I am experiencing. We''ll use ''ntp'' as the example and the "build" host is a VM. The old way: class baseline::ntpd { package { "ntp": ensure => $virtual ? { physical => present,
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
2004 Oct 20
1
Relay Icecast shoutcast.
Hello, I would like to put my server Shoutcast in relay with my server Icecast. But I does not understand how to make. You will find my config below. <!--<master-server>67.43.228.244</master-server>--> <!--<master-server-port>8001</master-server-port>--> <!--<master-update-interval>120</master-update-interval>-->
2012 Aug 29
9
puppetlabs-stdlib
I''m confused about this... https://github.com/puppetlabs/puppetlabs-stdlib/ I see a lot of functions there that are the same as the ones that come standard with puppet. If I create a module and dump this stuff in there, what happens to the existing stuff? How does puppet know which one to use? Doug -- You received this message because you are subscribed to the Google Groups
2012 Apr 22
5
Only write file if copy on master is present
Hi, I''m trying to find a way to configure the firewall on centos systems using puppet by copying the /etc/sysconfig/iptables file and restarting the iptables service. That part is simple to accomplish. The twist I need to add though is that I only want to do this if a copy of that file for the node exists on the server. If this file doesn''t exists then I want puppet to not
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,
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
2012 Apr 24
3
How to increment variable in erb template ?
Hi'', I''m looking for a way to increment variable in template (erb file). I tried this, but it didn''t work Compteur <%= compteur %> > <% compteur = compteur + 1 %> > Compteur <%= compteur %> > I''ve got this error : > Error 400 on SERVER: Failed to parse template test/test.erb: undefined > method `+'' for
2012 Sep 08
2
Making a result of custom function available to multiple classes
Hey, I''m using Puppet 2.7.19 with hiera 0.3.0. I have an Openvpn module which has a custom function that queries a mysql db and returns a hash. I also need the hash values in other modules e.g. firewall module. Since the custom function is in the openvpn/lib/puppet/parser/functions folder I believe it is autoloaded and is available from other modules. However, I don''t want
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
2012 Aug 27
5
Append string to list items.
I have an array: $nodes = [''gfs01'' ,''gfs02'', ''gfs03'', ''gfs04] and a string variable: $brick_store = "/var/bricks" How can I append "/var/bricks" to each item in the array? Lack of a looping construct makes this challenging in puppet. Such that: brick_array = [''gfs01:/var/bricks'',
2012 Mar 02
9
zombie child process
Hi, This is the third or fourth time this happens. But puppetd gets a zombie shell childprocess and then never finishes the run. /opt/tc-puppet/bin/ruby /opt/tc-puppet/sbin/puppetd \_ [sh] <defunct> How do I begin looking on what can be wrong? This error has appeared on both 2.7.6 and 2.7.11. Regards, Elias -- You received this message because you are subscribed to the Google Groups
2006 Aug 07
4
excel
Can anyone help me ??? I want to export some data into MS excel and create a pie or line chart. How can I export the data? Does it gives any tutorial websites ? thanks for your help! -- Posted via http://www.ruby-forum.com/.
2008 Aug 27
1
conversion of data structure between R and Perl
Dear R users, I am trying to call a Perl subroutine from R . The subroutine returns an arrray contaning three elements wihch are all strings. But the calling in R return an integer which is 0. I have no idea how this could happen. Maybe becasue I shouldn't use system() in R or I should load a particular package for my R in windows. Please help ....
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
2012 Oct 02
2
[LLVMdev] How best to represent assume statements in LLVM IR?
On 10/02/2012 12:52 AM, Duncan Sands wrote: > Hi Philip, > >> Does anyone have any suggestions on how to best represent an assumption >> statement(*) in IR? > > good question! There have been various attempts, for example Nick tried > teaching the optimizers to not prune the branch to unreachable in > > br %cond, label %assumption_holds, %assumption_doesnt_hold
2012 Oct 02
0
[LLVMdev] How best to represent assume statements in LLVM IR?
On Tue, 02 Oct 2012 14:43:51 -0700 Philip Reames <listmail at philipreames.com> wrote: > On 10/02/2012 12:52 AM, Duncan Sands wrote: > > Hi Philip, > > > >> Does anyone have any suggestions on how to best represent an > >> assumption statement(*) in IR? > > > > good question! There have been various attempts, for example Nick > > tried
2005 Nov 23
15
:conditions => ... formatting
With code like: if @params[:pnumber] =~ /\s*p?(\d+)\s*/ if student = Student.find_first(:conditions => ["pnumber like \":pnumber%\"", {:pnumber => $1}]) @borrower = student elsif emp = Employee.find_first(:condiwions => ["pnumber like \"?\"", {:pnumber => $1}]) @borrower = emp else