Displaying 20 results from an estimated 5000 matches similar to: "difference between <- and ="
2003 Apr 03
5
MP3player problem
Skipped content of type multipart/related-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2892 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030403/46e84bf5/smime.bin
2009 Dec 16
1
difference between the meaning of MARGIN in sweep() and apply()
For example, subtracting 1:2 from the rows of a two-column matrix:
> t(apply(matrix(1:6,ncol=2),MARGIN=1,function(y) y - 1:2))
[,1] [,2]
[1,] 0 2
[2,] 1 3
[3,] 2 4
> sweep(matrix(1:6,ncol=2),MARGIN=2,1:2,FUN="-")
[,1] [,2]
[1,] 0 2
[2,] 1 3
[3,] 2 4
Is there a logic to this difference, or is it just a quirk of the history of
these
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
Hello,
While reading Dan North''s BDD tutorial <http://dannorth.net/introducing-bdd>,
I tried to implement his ATM example as spec stubs.
When I first implemented it creating a context for each of his scenarios, I
noticed that there is duplication and a combinatorial explosion of the
specs.
I attached the full files to this email. For brevity, I will use scenario 1
in the body of
2007 Sep 10
6
puppetshow setup.pp
Hi guys,
I''ve just checkout the puppetshow code, and I was looking for the
setup.ppfile, but I cant find it anywhere.... anyone has an idea where
should i look
for it?
(or what needs to be done?)
Thanks,
Ohad
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
2012 Aug 22
3
Sieve/pigeonhole rejects email addresses for valid UNIX users
Self-explanatory, I hope (note the period on the end of the username);
sieve/pigeonhole does not allow you to have senders which end with a
period, which means that any UNIX users with such usernames who send
mail have it rejected by sieve:
# useradd testuser.
# su - testuser.
$ mail david at example.com -s 'testing'
123
.
[testuser. at levi ~]$ logout
# less /var/log/maillog
Aug 22
2009 Feb 12
3
getting all pairwise combinations of elements in a character string
I'm able to do this as follows, but am wondering if anyone knows a
simpler way which still avoids explicit loops?
> (mystring <- letters[1:5])
[1] "a" "b" "c" "d" "e"
> unlist(sapply(mystring[-length(mystring)],
+ function(x)
paste(x,mystring[(grep(x,mystring)+1):length(mystring)],sep="")))
a1 a2 a3
2003 Mar 04
1
suggestion for addition to R-lang.texi
Small suggestion for the documentation:
Should the = operator for assignments, described on
http://developer.r-project.org/equalAssign.html, now be included in
the operator table in doc/manual/R-lang.texi? If so, one possibility
could be after lines 1096/7:
@item @code{<-}
@tab Left assignment, binary
@item @code{=}
@tab Left assignment, binary
Also, where is the best place to send
2009 Aug 27
2
setting par(srt) according to plot aspect ratio
How can I look up the aspect ratio of a plot, so I can use that to correctly
adjust the angle of text which is supposed to be parallel to a line in the
plot?
The following example code works for a 1:1 aspect ratio, but puts the text
at the wrong angle if the plot region is short and wide or tall and narrow.
I can't find a par() component containing the plot aspect ratio. It will
be for
2012 Jun 15
1
help in sentDetect() fuction
hello,
I am using the following code
>s<-"I am very happy, excited, and optimistic.I am very scared, annoyed, and
irritated.Iraq?s political crisis entered its second week one step closer to
the potential.dissolution of the government, with a call for elections by a
vital coalition partner and a suicide attack that extended the spate of
violence. that has followed the withdrawal.of
2004 May 29
3
Odd behaviour with "asterisk -rx"
Hello,
I was planning to use the output of asterisk -rx "show queues" in a
script when I noticed that sometimes asterisk only outputs the first
line of the response. e.g:
debian:/# asterisk -rx "zap show channels"
Chan Extension Context Language MusicOnHold
debian:/# asterisk -rx "zap show channels"
Chan Extension Context Language
2006 Mar 21
6
Native MOH - Convert mp3 to ulaw
I'd like to use native moh instead of with mpg123... for some reason the processes never bloody die.
For native moh to not spawn an external player, I'd need to convert the default supplied moh sound files in /var/lib/asterisk/mohmp3 to ulaw and g729 format. Anyone know of a free, easy way to convert them?
Thanks,
Doug.
2009 Dec 04
2
[ggplot2] Wind rose orientation
Aloha all,
I love using ggplot. It took a while to get used to the grammar of
graphics, but it is starting to get easy now that I am thinking in a
more structured way.
A question. I'm making a wind rose that I'd like to be oriented with
due north straight up. I've discovered that the orientation is
sensitive to how north is represented. When north is represented as
0,
2016 Aug 08
6
Gateway question
Hi
There is a Centos 7 up-to-date box with 2 interfaces, let's say
192.168.1.12 - enp2s0, 192.168.1.13 on enp3s0. Default gateway on enp2s0.
The gateway is pfsense, IP is 192.168.1.1 with 2 WAN connections
On the gateway the outgoing traffic is routed by source ip to different
WAN, 192.168.1.12 to WAN1 and 192.168.1.13 to WAN2
On the centos box are set all the route and routing rules:
2005 Jul 26
3
mpg123 - two processes
Does everyone have two processes running for mpg123? I always have them
when I'm running an idle Asterisk box. No calls going in or out and
nothing off hook. Is this normal? Thanks!
5008 ? S 0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 4096
fpm-calm-ri
5015 ? S 0:00 /usr/sbin/asterisk
5061 ? S 0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 4096
2006 Mar 01
9
MOH native files
Where can I find alaw, ulaw, gsm, g729 formats for native music on hold?
I have some mp3 files and I have tried to transcode them to above, but it seams that SOX can't do that. Please, tell me where to download some MOH files (in above formats) or how to transcode mp3?
Thank you for your time!
--
Tomislav Parcina
tparcina#lama.hr
2006 Jan 16
1
ajax search
Hi everyone,
I''m a bit new to rails, but I have played around with it for the last month.
I really enjoy programming in rails and I feel that I should program my new
application through this framework.
I am very exited when I start creating my scaffolds and views, there is some
sense of accomplishment.
Now I would really like to make a search function my page that would search
through
2016 Aug 09
4
Gateway question
On 09/08/2016 20:01, Gordon Messmer wrote:
> On 08/08/2016 04:05 AM, Levente Birta wrote:
>> Can I add this in any config files (ex: route-enp2s0)?
>
>
> Yes. Add a route file for each interface, and set up rules to send
> packets out the corresponding physical interface:
>
> https://blogs.oracle.com/networking/entry/advance_routing_for_multi_homed
>
Yes, but no
2007 Jul 04
2
Loop and cbind
Hi, I would like to apply the following function for i between 1 and 12, and
then construct a list of the return series.
for (i in 1:12){
ewma[i] <- emaTA(calm[[i]]^2,0.03)
standard[i]<- calm[[i]]/sqrt(ewma[i])
standard <- cbind(standard[i])
}
But it does not work. Could anyone give me some advice how can I achieve
this? Many thanks
--
View this message in context:
2006 Jun 27
2
Transaction syntax for > 1 table/model
If I want to wrap two account updates, the syntax is ...
Account.transaction(dennis, david) do
dennis.withdraw(10);
david.deposit(10);
end
.. where both dennis and david are instances of Account.
Can someone please let me know what the syntax is for starting and ending
a *single* database transactions which spans two *different* kinds of
models/tables ?
Dennis Byrne
-------------- next
2008 Nov 24
1
Problem with Samba
Yes, another newbie asking for help. Please bear with me. I don't doubt my problem has a simple solution but it has me stumped.
I have a solaris server which carries some confidential financial information on it. I have been asked to install samba on it to share out a particular directory. They obviously want to restrict access to this information. We run a Windows 2003 domain as well.