Displaying 20 results from an estimated 110 matches similar to: "interaction with C++ code (PR#10487)"
2009 Jun 23
1
Accessing an object from the function in its .Data slot?
I have an S4 object extending "function". Is it there a good way to
access the object (resp. its slots) from within the function in .Data?
If I'm reading help files correctly, it is not possible to overload
'(' (which would be the most elegant solution, I suppose). I can
enclose the slotted data in the function when it is created, but that
obviously doesn't work when
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):
2010 Jul 22
2
how to write legend of a plot
Dear R Users,
If we issue simple plot command in R we don't get legend of the plot
automatically.
For example, following lines plots two curves, but to write a legend of
these two curves there is no simple command. I checked with ?legend but
it seems bit complicated for me. Does anyone know how to get a legend in a
simple way for following R plot.
Thanks, Yogesh
>plot (x,y,
2007 Jan 26
3
Office 2007 saves files as read only on samba shares?
I've been running the same configuration for a couple of years now,
and since I've upgraded to Office 2007, MS Word and MS Excel files
save to my samba shares as -r-------- even when they are opened as
being chmod 777. Files I create/edit using other editors or windows
explorer are put onto the share with the correct permissions.
My conf looks like this:
[global]
workgroup = WG
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
Hello,
We have a nodejs app which is injecting first boot scripts using virt-customize however the exact same commands are working when triggered manually.
Here is the debug output of the commands
Regards,
Peter
[ 0.0] Examining the guest ...
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: add_drive
2006 Oct 06
2
Extreme slowdown with named vectors. A bug?
Tried the following with R --vanilla on the Rv2.4.0 release (see
details at the end). I think the script and its comments speaks for
itself, but the outcome is certainly not wanted.
for (n in 58950:58970) {
cat("n=", n, "\n", sep="");
# Clean up first
rm(names, x, y); gc();
# Create a named vector of length n
# Try with format "%5d" and it
2010 May 16
1
Reading JPEG file, converting to HEX
Colleagues,
I am using R to assemble RTF documents (which are plain text). I need to embed a JPEG graphic that was created with R. I presume that the steps need to be:
a. read the file into R
b. convert the object to HEX format
c. write the converted object to a textfile.
If I read the file into R using readLines, I get the following (only the first 5 lines shown):
> >
2007 May 07
0
Analyzing "Stacked" Time Series
I have a question about pooling or "stacking" several time series
?samples? (sorry in advance for the long, possibly confusing, message).
I'm sure I'm revealing far more ignorance than I'm aware of, but
that's why I'm sending this...
[Example at bottom]
I have regional migration flows (?samples?) from, say, regions A to B, A
to C, B to A, ?., C to B (Noted as
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
On Mon, Mar 13, 2017 at 11:48:05PM +0200, Keresztes Péter-Zoltán wrote:
> Hello,
>
> We have a nodejs app which is injecting first boot scripts using virt-customize however the exact same commands are working when triggered manually.
>
> Here is the debug output of the commands
Which version of virt-customize? A number of bugs were fixed in this
part of the code in the last
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
I am running libguestfs version 1.34.2
The issue is the following. When I start the vm with virt-log I see this:
Mar 13 17:33:30 multi6 firstboot.sh[358]: /usr/lib/virt-sysprep/firstboot.sh start
Mar 13 17:33:30 multi6 cron[359]: (CRON) INFO (Running @reboot jobs)
Mar 13 17:33:30 multi6 firstboot.sh[358]: Scripts dir: /usr/lib/virt-sysprep/scripts
Mar 13 17:33:30 multi6 firstboot.sh[358]: ===
2006 Feb 05
0
Add LUKS support to fstype, second version
The attached patch adds support for detecting LUKS partitions (Linux
Unified Key Setup - http://luks.endorphin.org/) to fstype. This makes it
easier to automatically detect and activate encrypted (root) partitions
from an initramfs image.
The patch is now against klibc's git tree instead of klibc-1.2.
Signed-off-by: David H?rdeman <david@2gen.com>
--
fstype.c | 17
2006 Oct 07
0
Extreme slowdown with named vectors. A bug? (PR#9280)
On 10/6/2006 6:20 PM, Henrik Bengtsson wrote:
> Tried the following with R --vanilla on the Rv2.4.0 release (see
> details at the end). I think the script and its comments speaks for
> itself, but the outcome is certainly not wanted.
I see a similar effect to what you're describing. I also see it in
2.3.1, so it's not a new bug.
I tracked it down to an overflow occurring in
2006 Aug 29
1
writeChar
I have recently been using writeChar and writeBin to write binary
files. These functions makes it very easy to write OS-independent
files, which I am very happy with.
I have however found a few issues, best illustrated by a short example
> con <- file("test", open = "wb")
> writeChar(as.character(c("ab", "ab")), nchars = c(3), con = con,
2003 Nov 14
2
writeChar potential buffer overrun (PR#5090)
Trying to copy the (binary) header of a input file directly
to an output file, I've had repeatable seg faults. The call:
writeChar(hdr, outfh, nchars=6144)
when hdr just contains one empty string seems to be the
culprit. The stack traces weren't all that illuminating,
with sig 11 in memory-related functions following this. But
in src/main/connections.c it looks like do_writechar
2007 Jun 14
1
Clarification for readChar man page
Hi,
Here's a patch to the readChar manual page (R-trunk as of today) that
better clarifies readChar's return value. It could use some work as I'd
also like to add some text about using nchar() to find the length of the
string that readchar() returns, but I'm unsure which of type="bytes" or
type="chars" to mention. Is it type="chars"?
Index:
2009 May 07
2
for loop vectorization
Hi, I am still not familiar with vectorization.
Could you help with making this for loop more efficient?
The code is trying to make a Q matrix for a multidimensional state space
with specific conditions.
thanks
Mira
tmp = 0:(maxvals[1])
for(i in 2:nchars) {
tmp <- outer(tmp, 0:(maxvals[i]), FUN="paste", sep=".")
}
states = tmp
stateidx = array(1:length(states),
2009 Mar 18
1
Video phone crashing meetme on asterisk 1.4.
Hello,
I am running asterisk 1.4. For argument's sake I have 4 telephones. 2
support video, 2 do not.
Calls between phones work fine and codecs are properly negociated. I
have videosupport=yes in sip.conf and when the two video phones
communicate I have video.
I call meet me with this command
EXEC MEETME 1234|d
SIP looks like this :
-- AGI Script Executing Application: (MeetMe)
2007 Nov 24
7
[Bug 1393] New: patch modifies gnome-ssh-askpass to optionally use one-time password
https://bugzilla.mindrot.org/show_bug.cgi?id=1393
Summary: patch modifies gnome-ssh-askpass to optionally use one-
time password
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: All
URL: http://www.swcp.com/~pgsery
OS/Version: Linux
Status: NEW
Keywords:
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
See description in the attached patch.
-------------- next part --------------
This quick hack adds primitive support of UTF-8 as a server 'character
set' to Samba 2.0.7. All file, share and user names are stored on server
in UTF-8, and translated into client code page (not UCS2) on the fly.
Additionally, server string conversion is added. Tested with Chinese and
Russian Windows clients.
2018 Feb 08
2
[PATCH] syslinux/com32: Fix the printing of left zero padded hexadecimals with a leading '0x'.
From: Brett Walker <brett.walker at geometry.com.au>
When printing hexadecimal numbers to a fixed width, padded with leading zeros,
and also having a leading '0x'; the resultant string can be shortened by up to
two characters if any leading zero padding character required is.
int hexnum = 0x00001234;
printf("%08X", hexnum); // results in 00001234