Displaying 20 results from an estimated 30000 matches similar to: "How to extract rows from matrices consistently?"
2007 Oct 05
1
Sklyar's inline package: how to return a list?
Hi,
Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package.
The question I have is, how do I return multiple values, say in a list?
Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'?
Ultimately, I want to return multiple matrix results. Thanks in advance for any code snipplets/advice!
Regards,
Ken
#
2002 Jul 25
2
rsync with --exclude files
HI,
I'm trying to exclude some files & directories from a filesystem which I
would like to copy to a different site. I did:
# rsync -avz --exclude-file=/fs21/tmp/perl_scripts/exclude.txt
/fs22/a/circuit_design mickey.willow.com:/cpu/store/design
where file /fs21/tmp/perl_scripts/exclude.txt contains the following
directories and files to be excluded from /fs22/a/circuit_design :
1999 Jul 14
1
Users Cannot Use smbpasswd to Change Samba Passwords
Running Samba 2.0.3 on a Digital Unix 4.0D system. All functions of the
new Samba version appear to run properly (previously ran 1.9.15) with
exception of users being able to change their own Samba password
(root is only able to change password on behalf of users).
Following is permissions assigned to smbpasswd:
-rwxr-xr-x 1 root system 901120 Mar 31 16:06 smbpasswd
Following is
2005 Apr 14
1
utmp update for bsd systems (try 2)
re
i have posted this before but received no response...
is there anybod reading on this address?
cu
----- Forwarded message (env-from mickey) -----
re
this is a patch against samba-2.2.12p0 and adds support
for updating utmp on bsds. code similarly ripped from
openbsd's ftpd (;
cu
--
paranoic mickey (my employers have changed but, the name has remained)
--- utmp.c Thu Aug 12
2007 Jun 19
4
How do I avoid a loop?
Hi,
I start with an array of booleans:
x <- c( TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE );
I want to define an y <- f(x) such that:
y <- c( 1, 2, 3, 0, 0, 1, 2, 0, 1 );
In other words, do a cumsum when I see a TRUE, but reset to 0 if I see a FALSE.
I know I can do this with a very slow and ugly loop or maybe use apply,
but I was hoping there are some R experts out
2007 Mar 16
1
Defining a floor value in a data.frame on a row-by-row basis
Hi,
I have a data frame x, and a vector y which limits x by rows
so that no element of x in that row is smaller than y.
For example,
> x <- as.data.frame( t( array( 1:9, dim=c(3,3))))
> y <- c( 2, 8, 0 )
> x
V1 V2 V3
1 1 2 3
2 4 5 6
3 7 8 9
> y
[1] 2 8 0
=============================================
I want to get this:
V1 V2 V3
1 2 2 3
2 8 8 8
3 7 8 9
2007 Apr 02
2
Software RAID 10?
Hello...
I have a server with 4 x SCSI drives and I would like to install Centos
4 (or 5) onto a software RAID 10 array. Do you know if this is
possible? I noticed that under the Centos 4.92 beta, RAID 5 is an option
but for some reason RAID 10 is not listed.
There does appear to be a RAID 10 module....
/lib/modules/2.6.9-42.0.8.ELsmp/kernel/drivers/md/raid10.ko
More info I found here:
2003 Sep 01
6
Change include contexts runtime
Hi there
How do I change the dialplan runtime, if I for example wants all calls on
the main number to be answered by a voicemail (when it is out-of-office
hours).
I want to be able to change the configuration by pressing a DTMF combination
e.g. *82. Can't figure out whether it is necessary to change contexts or how
to do it.
I have read a lot of examples and config documentation, but I
2003 Sep 03
1
MusicOnHold and MP3Player not triggering "answer"
Hi
I have kind of an odd problem.
When dialing in from an outside line via a TE410P card it seems like
MusicOnHold and MP3Player doesn't work properly (for me anyway). The remote
end which is calling * doesn't hear the music but just keeps ringing. But if
I insert a Playback("file_which_dont_exist") just before the Moh or
MP3Player I can hear the music. Actually I observed the
2005 Mar 30
1
utmp update for bsd systems
re
this is a patch against samba-2.2.12p0 and adds support
for updating utmp on bsds. code similarly ripped from
openbsd's ftpd (;
cu
--
paranoic mickey (my employers have changed but, the name has remained)
--- utmp.c Thu Aug 12 14:24:20 2004
+++ /home/mickey/utmp.c Wed Mar 30 15:51:40 2005
@@ -261,6 +261,7 @@
}
#ifndef HAVE_PUTUTLINE
+#include <ttyent.h>
2005 Mar 18
2
Pattern matching in extensions.conf
Hello fellow * users
Hope this isn't a stupid question; I've done my research but could not find
a proper answer.
I have 8 different destinations which I want to match. The numbers are:
###### 00
###### 20
###### 30
###### 40
###### 15
###### 35
###### 12
###### 44
Right now I've solved it by doing this:
exten => _######[0234]0,1,HangUp
exten => _######[13]5,1,HangUp
exten
2002 Aug 12
3
--include option
HI,
I'm trying to have files to be included during rsync. I have the filesystem
/stor/circuit_design/, with the following subdirectories as its contents:
clock_speed
fub_layout
test_simulations
pattern_flow
I would only like to rsync the following 2 subdirectories to the destination
machine:
clock_speed
fub_layout
and they're contained in the file called files_included:
# cat
2012 Mar 07
1
extract same columns and rows in two matrices
Hello,
I have two matrices. They both have different row names and column names,
but they have some common row names and column names. The row names and
column names that are the same are what I am interested in. I also want the
columns in the two matrices aligned the same. In the end, I need to do
rd[1,1] and ua[1,1], for example and be accessing the same column and row
for both matrices. Thank
2003 Sep 04
1
I don't think I understand "Call pickup"
I must be getting something wrong about this call pickup.
In zapata.conf I have just the default callgroup=1 and pickupgroup=1. If I
call from my mobile to * and then try to dial *8 from any other phone than
the one which is ringing I just get a "Nothing to pick up" answer on my *
console.
I also have experimented with those parameters in sip.conf but are not aware
of exactly where to
2003 Nov 04
1
Flash hook -> SIP device
Hi there
I have a Welltech Wellgate SIP device and I want to be able to do a supervised transfer. I've read that in order to do that I have to use flash hook. The problem is just that I can't flash hook with this device.
I'm in contact with the developer of the SIP device but don't know what to tell him in order to get him to fix this.
What is happening when you flash hook, I
2007 Jan 17
3
R.oo Destructors
Has anyone figured out how to create a destructor in R.oo?
How I'd like to use it: I have an object which opens a connection thru RODBC
(held as a private member) It would be nice if the connection closes automatically
(inside the destructor) when an object gets gc()'ed.
Thanks in advance.
Regards,
Ken
BTW, a >BIG< thanks to Henrik Bengtsson for creating the R.oo package!
Lucky
2004 Jun 24
1
Interesting errors...
Greetings,
About 2 months ago, we decided to backup our Oracle test servers via
samba rather than nfs -- the backups were just taking too long using
nfs. No problem mounting the remote file share to the server and the
backup took about one-third of the time. Yep, worked good...and still
continues to out perform nfs hands down.
Problem is - I'm receiving errors on both of the test servers.
2004 May 29
1
Users can not change samba password
Following is permissions assigned to smbpasswd:
-rwxr-xr-x 1 root system smbpasswd
Following is what occurs when root attempts to change a user's password:
# smbpasswd test
New SMB password:
Retype new SMB password:
Password changed for user test
Following is what occurs when the user attempts to change their own
password:
system> whoami
test
system> ./smbpasswd
Old SMB
2003 Jul 05
3
Runtime error: Undefined symbol, have fetched new CVS and recompiled everything
Hello there
Yesterday I updated my pwlib, openh323 and Asterisk from CVS. After making
"clean opt" in pwlib and openh323 and make "clean install" in Asterisk i get
an "Undefined symbol" error when I try to start Asterisk. As far as I can
see its when loading the h323 channel driver the error occurs.
Do I have to update other things as well, by reading the various
2015 Jan 09
5
C-6, Gnome question
On Fri, Jan 09, 2015 at 02:34:38PM -0500, Bill Maltby (C4B) wrote:
> On Fri, 2015-01-09 at 09:17 -0500, Fred Smith wrote:
> > Hi all!
> >
> > Using the default Gnome desktop on Centos-6, I keep having difficulty
> > getting the mouse pointer to lineup exactly on the edge/corner of a
> > window when I want to resize the window. It seems that you have to
> >