Displaying 20 results from an estimated 700 matches similar to: "Counting the occurences of a charater within a string"
2011 Jan 10
2
Calculating Portfolio Standard deviation
Dear R helpers
I have following data
stocks <- c("ABC", "DEF", "GHI", "JKL")
prices_df <- data.frame(ABC = c(17,24,15,22,16,22,17,22,15,19),
DEF = c(22,28,20,20,28,26,29,18,24,21),
GHI = c(32,27,32,36,37,37,34,23,25,32),
2005 May 30
4
Very simple traffic shaping script for H.323
Hello -
What I want to do seems very simple - I want to make sure any H.323
traffic gets processed before anything else entering or leaving this
network. The network has a videoconferencing device on the LAN at
192.168.16.4. A Linux firewall NATs an external IP Address to this
internal address and I have appropriate SNAT and DNAT rules that work.
The NAT and connection tracking rules all work
2012 Jul 11
0
(no subject)
We are looking for creative problems solvers at all levels of experience who are passionate about R, statistics, visualisation and data science to join an innovative modelling team in the heart of an exciting London media agency. If you are interested please email me at simon.raper at mindshareworld.com
Privileged/Confidential Information may be contained in this message. If you
are not the
2014 Jan 23
7
[PATCH 0/7] Various fixes for Ceph drives and parsing libvirt XML.
Miscellaneous fixes to:
- Handling of Ceph drives now works end-to-end (RHBZ#1026688).
- In particular, you can now use rbd:/// URIs in guestfish (and
they work).
- Parse Ceph & NBD network drives from libvirt XML correctly, so
that existing domains with Ceph/NBD drives can be added
(eg. using guestfish -d option).
- Add more testing of the above.
2014 Feb 03
1
[PATCH] hivex: python: value_value no longer generates Unicode strings
This fixes Github issue #2 reported by "kupiakos".
<https://github.com/libguestfs/hivex/issues/2>
---
generator/generator.ml | 2 +-
python/t/210-setvalue.py | 26 +++++++++++++++++---------
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/generator/generator.ml b/generator/generator.ml
index 908c5f3..02aaf12 100755
--- a/generator/generator.ml
+++
2009 Oct 02
3
break up a string into strings with a fixed length
dear all,
I have some very long strings and would like to break up each long string
into multiple strings with a fixed length, e.g. to break up
abcdefghijkl
into
abc, def, ghi, jkl
I tried a couple of commands but was not successful. Any help will be
appreciated.
Best,
Jimmy
--
View this message in context:
2013 Nov 18
3
Sending a matrix in an email
I have a matrix which has colnames and I would like to send this matrix using sendmailR. How can I convert this simple matrix to a format which can be used as the body variable in sendmailR? I see how I can create a file attachment using mime_part but I would like to send the matrix in the body of the email.
The matrix looks like:
ABD DEF GHI JKL MNO TOT
[1,] 0.44 0.81 1.67 0.37
2008 Jun 12
2
Request for added functionality - tracking and blocking attacks
Somebody please forward this, if this is not an appropiate place
to ask the OpenSSH developers for a new feature.
As many of us have seen, any sshd left open on the internet eventually
becomes the target of password guessing attacks. I am aware of
tools for scanning the security logs, and manipulating iptables to
block ongoing attacks, but I am not aware of a way to configure
sshd itself to
2014 Jan 15
4
[PATCH 1/4] hivex: Python 2.6 does not have sysconfig.
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6785037..203f34f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -329,8 +329,8 @@ AS_IF([test "x$enable_python" != "xno"],
AC_MSG_CHECKING([for Python extension suffix (PEP-3149)])
if test -z "$PYTHON_EXT_SUFFIX"; then
2019 Jan 17
1
[hivex PATCH] ruby: improve test functions
Use better functions to check for proper values instead of assert:
- refute_nil for non-null functions
- assert_equal for checking equality
Also, make sure that the parameters for assert_equal are correct:
expected value, then got value.
---
ruby/tests/tc_120_rlenvalue.rb | 4 ++--
ruby/tests/tc_130_special.rb | 12 ++++++------
ruby/tests/tc_200_write.rb | 4 ++--
2011 Nov 04
1
Creating a sequence from two samples with several constraints (frequency and repeats)
I'm attempting to create a sequence for an experiment and am hoping I can
use R to create it. It has several constraints:
(1) It is made up of two sequences (red and green) that have 4 different
repeating triplets (e.g. T1=ABC T2=DEF T3=GHI JKL)
(2) Each sequence has the following constraints: (a) there cannot be
repeating triplets (e.g. T1 T1), (b) there cannot be repeating triplet
pairs
2008 Jul 14
2
Wine 1.1.1 bz2 Slackware compiling source problem
Hi,
I'm new here but I will try to stay and contribute as much as can.
I have forced to use a Slackware Linux distro because of some constrains.
In order to access some of my old Windows applications I use wine like most of this forum users.
I have downloaded today the bz2 wine 1.1.1 source and I have tried to compile it on my Slackware 11.0.
./configure command was finished without any
2005 May 28
1
(PR#7899) seek(con, 0, "end", rw="r") does not always work
Tony Plate wrote:
> ligges@statistik.uni-dortmund.de wrote:
>
>> tplate@blackmesacapital.com wrote:
>>
>>
>>> I've noticed that seek(con, 0, "end", rw="r") on a file connection
>>> does not always work correctly after a write (R 2.1.0 on Windows).
>>>
>>> [Is a call to fflush() needed inside file_seek() in
2016 Oct 04
1
error handling in strcapture
It is also not catching the cases where the number of capture expressions
does not match the number of entries in proto. I think all of the
following should give an error about the mismatch.
> strcapture("(.)(.)", c("ab", "cde", "fgh", "ij", "lm"),
proto=list(A="",B="",C=""))
A B C
1 a b cd
2 d
2007 Apr 18
1
[Bridge] Setting the interfaces in promiscuous mode
Hello,
I have been using the bridging facilities provided by Linux (vanilla
2.6.7 SMP with UML skas host patch applied) to bridge a regular
physical ethernet network (on interface eth0) with a virtual network
(on interface tap0, cf uml_switch,
http://user-mode-linux.sourceforge.net/networking.html). A couple of
virtual machines (run using user-mode linux, a tool that enables you
to run linux
2010 Apr 08
1
Strange csv parsing problem
> url <- "http://dl.dropbox.com/u/41902/22240.csv"
>
> read.csv(url)[, 1]
[1] "oppose" NA "oppose" "support"
> read.csv(url, header = F)[, 1]
[1] "url"
[2] "http://maplight.org/us-congress/bill/109-hr-5825/387248"
[3] "http://maplight.org/us-congress/bill/110-hr-3546/378743"
[4]
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi,
This patch series is based on a prior patch[1], splitting off changes as
requested and incorporating feedback from Richard Jones. It introduces type
validation to avoid segmentation faults (instead, it reports an exception) and
fixes handling of the bytes type in Python 3.
Major changes since that series:
- Drop newly introduced support for integer types for DWORD/QWORDS
- Reject Unicode
2009 Jan 01
0
Computing/Interpreting Odds Ratios for 3-way interactions from lmer
Hello,
I am a relative novice at both using regression analysis and at using R in general (and at object oriented programing). A colleague convinced me that binary logistic regression is the most appropriate analysis for the data that I have though, so I've been trying to muddle through.
I'm currently stumped on how to interpret/compute odds ratios for two and three way interactions
2006 Jan 20
1
error on compiling wine 0.9.6 on fedora core 4 - wine 0.9.5 works!
gcc -g -O2 -o widl client.o hash.o header.o proxy.o server.o typegen.o
typelib.o utils.o widl.o write_msft.o parser.tab.o lex.yy.o -L../../libs
-lwpp -lwine_port -lfl
../../libs/libwpp.a(lex.yy.o)(.text+0x5e8): In function
`_yy_dummy_uses_of_static_functions_b2f4_517d_02ff_b30c_3e5a_47d7_aaa3_3b5d_':
/usr/local/rpm/wine-0.9.6/libs/wpp/lex.yy.c:3357: multiple definition of
2010 Jul 28
1
Libiberty/mkstemps compile problem
Hello people.
Somewhat hardheaded, and after doing so for years without problems, I
started to compile wine 1.2 for my 86_64 system. Configuration went well,
but compilation aborted on:
make[1]: Entering directory `/home/jcoppens/wine-1.2/tools/widl'
gcc -m32 -g -O2 -o widl client.o expr.o hash.o header.o proxy.o server.o
typegen.o typelib.o typetree.o utils.o widl.o write_msft.o