Displaying 20 results from an estimated 6000 matches similar to: "not supressing leading zeros when reading a table?"
2008 Oct 09
4
runs of heads when flipping a coin
Can someone recommend a method to answer the following type of question:
Suppose I have a coin with a probability hhh of coming up heads (and 1-hhh
of coming up tails)
I plan on flipping the coin nnn times (for example, nnn = 500)
What is the expected probability or frequency of a run of rrr heads* during
the nnn=500 coin flips?
Moreover, I would probably (excuse the pun) want the answer for a
2010 Mar 29
4
iptables rules
I've got a server with several ip's on eth0. I want to block all traffic
*except* to port 80 on them, but not on any other IPs, so that
eth0 is www.xxx.yyy.zzz
eth0:1 is www.xxx.yyy.ggg
eth0:2 is www.xxx.yyy.hhh
I've tried
-A RH-Firewall-1-INPUT -p tcp -d www.xxx.yyy.ggg --dport ! 80 -j DROP
-A RH-Firewall-1-INPUT -p tcp -d www.xxx.yyy.hhh --dport ! 80 -j DROP
and restarted (and
2001 Apr 10
1
Suspicious shadow listen port
# netstat -an | grep LISTEN
tcp4 0 0 *.32785 *.* LISTEN
tcp4 0 0 130.238.4.133.22 *.* LISTEN
What in ?@# is 32785 ??
# lsof
...
sshd 11152 root 5u IPv4 0x7003ded8 0t0 TCP *:32785 (LISTEN)
sshd 11152 root 6u IPv4 0x7004ded8 0t0 TCP xxx.yyy.zzz.hhh:22 (LISTEN)
...
#cat /etc/sshd_config
Port 22
2012 Jan 24
2
read.table: how to ignore errors?
I get this error from read.table():
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 234 did not have 8 elements
The error is genuine (an extra field separator between 1st and 2nd element).
1. is there a way to see this bad line 234 from R without diving into the file?
2. is there a way to ignore the bad lines and get the data from the good
lines only (I do
1999 May 27
2
Can't connect to samba from foreign network --- 'Gethostbyaddr failed' error in log.smb
I have a samba server at ip address
aaa.bbb.ccc.ddd
I can connect to it from clients on subnets aaa.bbb.eee. and
aaa.bbb.fff.
I can't connect to it from clients on ggg.hhh.
smb.conf has
hosts deny = all
hosts allow = localhost, aaa.bbb., ggg.hhh.
The client can successfully 'ping mysambaserver' (resolves to
aaa.bbb.ccc.ddd). Doing 'net view \\mysambaserver' fails with
2002 Feb 11
1
graph history
Hi everybody.
I was just wondering if this is a bug or I am simply doing something wrong.
Here is what happened:
(1) I typed windows() to get the graph menu bar
(2) I turned record on history menu
(3) I created a couple of plots
(4) I checked with PageUp and PageDown that I can scroll through them
(5) I saved the history to a variable, say, hhh
(6) I dumped hhh to a file called hhh.R
(7) I quit
2015 Dec 18
2
Problem! Dovecot 2.2.9 does not send the information on ending the quota to user
Hi.
I have Dovecot + Postfix + MySQL.
Version of Postix: postfix_2.11.3-1ubuntu1_amd64
Version of Dovecot: 2.2.9
Operations system is: Ubuntu 15.04 x64
Postfix have patched (patch VDA - http://vda.sourceforge.net) for using
with quota, it means that file "maildirsize" in mail directory already
exists and changed when add/delete mail.
Quota for virtual box take in MySQL db.
2009 Oct 15
1
calculating p-values by row for data frames
Hello R-users,
I am looking for an elegant way to calculate p-values for each row of
a data frame.
My situation is as follows:
I have a gene expression results from a microarray with 64 samples
looking at 25626 genes. The results are in a data frame with the
dimensions 64 by 25626
I want to create a volcano plot of difference of means vs. ?log(10) of
the p-values,
comparing normal samples to
2012 Feb 20
2
Help on lattice barchart ploting
Hi friends,
I have following data and would like to plot this with barchart() availble
with lattice package.
RsID Freqs Genotype
AAA 63.636 1/1
AAA 32.727 1/2
AAA 3.636 2/2
BBB 85.965 2/2
BBB 14.035 2/1
CCC 63.158 1/1
CCC 21.053 1/2
CCC 15.789 2/2
DDD 26.786 2/2
DDD 46.429 2/1
DDD 26.786 1/1
EEE 32.759 2/2
EEE 43.103 2/1
2012 Dec 13
3
Combined Marimekko/heatmap
Hi all,
I'm trying to figure out a way to create a data graphic that I haven't ever seen an example of before, but hopefully there's an R package out there for it. The idea is to essentially create a heatmap, but to allow each column and/or row to be a different width, rather than having uniform column and row height. This is sort of like a Marimekko chart in appearance, except that
2009 Feb 26
2
asterisk 1.6.0.5 and IM
hi all,
i have 2 x-lite version 3.0 softphones configured on extension 9000 and 9005.
i have one call the other and then try and send an IM between them using
the x-lite IM facility.
the asterisk console shows the message...
WARNING[27193]: chan_sip.c:11866 receive_message: Received message to
"s"9005 at hhh> from "c"9000 at hhh>;tag=717de473, dropped it...
when i
2010 Aug 29
2
OSX 10.6.4 error with -R option
Hi All,
I have had reports of problems with the -R option on OSX 10.6.4.
Just tested it myself and found this odd result:
When I run this
"dtruss -f path/to/rsync -aHAXNR --fileflags --force-change --protect-decmpfs --stats -v /Users/astrid/Documents/main.m /Users/astrid/Desktop/rrr
it produces the expected results with the relative folder paths in place
2007 Feb 23
4
using "integrate" in a function definition
Dear list members,
I'm quite new to R, and though I tried to find the answer to my probably
very basic question through the available resources (website, mailing
list archives, docs, google), I've not found it.
If I try to use the "integrate" function from within my own functions,
my functions seem to misbehave in some contexts. The following example
is a bit silly, but
2004 Oct 25
1
Scoping and nls.
A colleague of mine is trying to use nls() to effect an optimization,
and is encountering a scoping problem. I should know how to solve it
for him but .... well, I just don't.
I also had a quick scrounge of the archives --- I know I've seen this
topic addressed before --- but I couldn't track it down.
So here's a toy example that demonstrates the problem:
hhh <-
2017 Oct 31
2
Help with Nesting
How do i resolve this?
symbol <- c('RRR' ,'GGG')
for(i in seq_along(symbol)) {
dat <- Quandl("LLL/symbol[i]")
}
required solutionis a loop where Quandl is a function and it loops as flows,
Quandl("LLL/RRR")
Quandl("LLL/GGG")
2005 Aug 12
3
Dating Objects
Hi
I know this subject has been mentioned before but from the mail archives
I'm under the impression that this is not possible ?
I'm trying to carryout the equivalent of ls -l in R to give some
date/time label to each of my objects
If the case is that there is no equivalent, is it possible to list all
objects in an environment that share a common component ?
So that the common
2013 Mar 27
1
Pattern matching repeating digits
'lo, all,
Is there some (possibly undocumented?) way that I can pattern-match on a specified number of repeating digits? (Something similar to regular expressions' {})
Here's an example: let's say I have a string of things that need to be done for both extensions 233 and 255. I can either...
A) Repeat the exact same code for both extensions, like so:
exten =>
2010 Jan 28
2
src/library/grid/src/grid.c (PR#14199)
At around line 2590, in function gridRect() in
src/library/grid/src/grid.c (at the latest svn revision, 50745), ought
not temp, www and hhh to be PROTECTed within this block?
Andrew
2004 Mar 30
1
Windows client using UPPERCASEto connect to Samba3.02aserve
Hi again and thanks
I'm using WinNT 4.0 as my network PDC. The Samba server is only a member
server.
Any idea how to solve this issue?
Thanks,
Miki
> -----Original Message-----
> From: Nigel Marsh [SMTP:Nigel.Marsh@first-linux.com]
> Sent: Mon, March 29, 2004 11:59 AM
> To: samba@lists.samba.org
> Subject: Re: [Samba] Windows client using UPPERCASEto connect to
>
2012 Jan 08
2
uid / gid and systemusers
Hi all,
I'm facing a problem when a user (q and g in this example) is logging into dovecot. Can anybody tell some hint?
Thanks in advance.
George
/var/log/mail.log:
...
Jan 8 16:18:28 test dovecot: User q is missing UID (see mail_uid setting)
Jan 8 16:18:28 test dovecot: imap-login: Internal login failure (auth failed, 1 attempts): user=<q>, method=PLAIN, rip=AAA.BBB.CCC.DDD,