search for: 5,14

Displaying 19 results from an estimated 19 matches for "5,14".

Did you mean: 1,14
2006 May 30
3
Faster way to zero-pad a data frame...?
...ately I've been wondering if there is a faster way to do this. Here's what I've got: * data1 is a data frame consisting of a timestamp, in seconds, from the beginning of the network log, and the number of network events that fell on that timestamp. Example: time,events 0,1 1,30 5,14 10,4 *data2 is the zero-padded data frame. It has length equal to the greatest value of "time" in data2: time,events 1,0 2,0 3,0 4,0 5,0 6,0 7,0 8,0 9,0 10,0 So I run this for loop: for(i in 1:length(data1[,1])) { data2[data1[i,1],2]<-data1[i,2] } Which...
2012 Dec 03
4
Unnecessary changes when creating facts.yaml
...%= scope.to_hash.reject { |k,v| k.to_s =~ /(uptime.*|timestamp|.*free|macaddress.*|ipaddress)/ }.to_yaml %>"), However, it is creating a lot of unnecessary changes by reordering the facts in the yaml output as you can see in the diff output between to runs; --- facts.yaml 2012-12-03 10:25:15.389570751 +0000 +++ facts.yaml.copy 2012-12-03 10:24:31.982563969 +0000 @@ -5,14 +5,14 @@ clientcert: rhel6test.shef.ac.uk rubyversion: "1.8.7" lsbdistdescription: "Red Hat Enterprise Linux Server release 6.3 (Santiago)" - architecture: x86_64 boardmanufacturer:...
2010 Sep 28
4
drawing samples based on a matching variable
...ching variable, draw a sample of equal size from y. It is the matching variable that is hanging me up. For example-- > # example matrices. lets assume seed always equals 1. (lets also assume I have assigned variable names A and B to my columns..) > set.seed(1) > x<-cbind(1:10,sample(1:5,10,rep=T)) > x [A] [B] [1,] 1 2 [2,] 2 2 [3,] 3 3 [4,] 4 5 [5,] 5 2 [6,] 6 5 [7,] 7 5 [8,] 8 4 [9,] 9 4 [10,] 10 1 > y<-cbind(1:14,sample(1:5,14,rep=T)) > y [A] [B] [1,] 1 2 [2,] 2 2 [3,]...
2007 Apr 18
1
[PATCH 1/5] Add pagetable allocation notifiers
...erve as write protect/unprotect requests. Signed-off-by: Zachary Amsden <zach@vmware.com> Patch-subject: Add pagetable allocation notifiers Index: linux-2.6.13/arch/i386/mm/init.c =================================================================== --- linux-2.6.13.orig/arch/i386/mm/init.c 2005-08-24 09:31:05.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/init.c 2005-08-24 09:31:31.000000000 -0700 @@ -79,6 +79,7 @@ static pte_t * __init one_page_table_ini { if (pmd_none(*pmd)) { pte_t *page_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); + SetPagePTE(virt_to_page(page_table));...
2007 Apr 18
1
[PATCH 1/5] Add pagetable allocation notifiers
...erve as write protect/unprotect requests. Signed-off-by: Zachary Amsden <zach@vmware.com> Patch-subject: Add pagetable allocation notifiers Index: linux-2.6.13/arch/i386/mm/init.c =================================================================== --- linux-2.6.13.orig/arch/i386/mm/init.c 2005-08-24 09:31:05.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/init.c 2005-08-24 09:31:31.000000000 -0700 @@ -79,6 +79,7 @@ static pte_t * __init one_page_table_ini { if (pmd_none(*pmd)) { pte_t *page_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); + SetPagePTE(virt_to_page(page_table));...
2005 Mar 02
1
[PATCH] avoid size_t redefinition
...blem; not covered by this patch. Regards, Erik diff -urN klibc-0.202-pristine/include/bits32/bitsize/stddef.h klibc-0.202/include/bits32/bitsize/stddef.h --- klibc-0.202-pristine/include/bits32/bitsize/stddef.h 2004-07-07 02:41:04.000000000 +0200 +++ klibc-0.202/include/bits32/bitsize/stddef.h 2005-03-02 20:41:19.000000000 +0100 @@ -5,12 +5,14 @@ #ifndef _BITSIZE_STDDEF_H #define _BITSIZE_STDDEF_H +#ifndef _SIZE_T #define _SIZE_T #if defined(__s390__) || defined(__hppa__) || defined(__cris__) typedef unsigned long size_t; #else typedef unsigned int size_t; #endif +#endif #define...
2004 Aug 17
6
dialplan woes
...I have a couple of layers of menu's and I am not sure how to handle them. Here is how it should work (sorry for the crappy diagram) main menu --------Dial 1 for support | Dial 2 for special | Dial 3 sales | Dial 5 For sales | | |______________________________submenu Dial 1 for product a support Dial 2 for pdoduct b support Dial 3 for product c support My problem is that if you choose option one in the second menu it loop back to the first menu. I don't...
2006 Dec 30
0
[810] trunk/wxruby2/swig/classes/Window.i: Added WINDOW_VARIANT enum to support small/mini controls on OS X
...VARIANT enum to support small/mini controls on OS X</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>810</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-30 08:58:15 -0500 (Sat, 30 Dec 2006)</dd> </dl> <h3>Log Message</h3> <pre>Added WINDOW_VARIANT enum to support small/mini controls on OS X</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesWindowi">trunk/wxr...
2010 Jul 16
0
Mixed Conditional Logit with nested data
...h,duration_short,duration_medium,duration_long,severity_low,severity_medium,severity_high 1,1,A,1,0,0,1,1,0,0,1,0,0 1,1,B,0,0,1,0,0,0,1,0,0,1 1,2,A,1,1,0,0,1,0,0,0,0,1 1,2,B,0,0,1,0,0,1,0,0,1,0 1,3,A,0,0,0,1,0,1,0,1,0,0 1,3,B,1,1,0,0,0,0,1,0,1,0 1,4,A,1,0,0,1,0,1,0,1,0,0 1,4,B,0,0,1,0,0,0,1,0,0,1 1,5,A,1,0,1,0,1,0,0,1,0,0 1,5,B,0,1,0,0,0,1,0,0,1,0 1,6,A,1,1,0,0,1,0,0,0,0,1 1,6,B,0,0,0,1,0,0,1,0,1,0 1,7,A,1,1,0,0,0,0,1,1,0,0 1,7,B,0,0,1,0,0,1,0,0,0,1 1,8,A,1,0,0,1,1,0,0,0,1,0 1,8,B,0,0,1,0,0,1,0,0,0,1 1,9,A,1,0,1,0,1,0,0,1,0,0 1,9,B,0,0,0,1,0,1,0,0,1,0 1,10,A,1,1,0,0,1,0,0,0,1,0 1,10,B,0,0,0,1,0...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...--- src/Makefile.am | 26 +++++++++------- src/host.cpp | 2 + src/host.h | 3 ++ src/processors.cpp | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/processors.h | 48 +++++++++++++++++++++++++++++ src/schema.xml | 11 +++++++ 6 files changed, 165 insertions(+), 11 deletions(-) create mode 100644 src/processors.cpp create mode 100644 src/processors.h diff --git a/src/Makefile.am b/src/Makefile.am index 8c94fba..ee30443 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -5,14 +5,16 @@ sbin_PROGRAMS = matahari first = qmf/com/redhat/mat...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average() method is now const since it does not change the object's state.
2007 Apr 18
2
pgd_alloc and [cd]tors
Is there any real use in having a ctor/dtor for the pgd cache? Given that all pgd allocation happens via pgd_alloc/pgd_free, why not just fold the [cd]tor in? I'm asking because Xen wants pgd[3] to be unshared in the PAE case, and it looks to me like the easiest way to handle that is by making pgd_alloc/free pv-ops and doing the appropriate thing in the Xen code. Would need to sort out the
2007 Apr 18
2
pgd_alloc and [cd]tors
Is there any real use in having a ctor/dtor for the pgd cache? Given that all pgd allocation happens via pgd_alloc/pgd_free, why not just fold the [cd]tor in? I'm asking because Xen wants pgd[3] to be unshared in the PAE case, and it looks to me like the easiest way to handle that is by making pgd_alloc/free pv-ops and doing the appropriate thing in the Xen code. Would need to sort out the
2010 Mar 22
1
Resend with loadavg as a statistic...
After some feedback from Slow, mainly about the load_average API being a method rather than an ongoing statistic. So I've converted the code over to instead update the load average statistic on a regular basis.
2006 Nov 21
0
[746] trunk/wxruby2/doc/textile/listbox.txtl: Correct ruby method signature for methods that accept an array of strings
...nature for methods that accept an array of strings</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>746</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-21 17:25:49 -0500 (Tue, 21 Nov 2006)</dd> </dl> <h3>Log Message</h3> <pre>Correct ruby method signature for methods that accept an array of strings</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2doctextilelistboxtxtl"&g...
2007 Apr 18
1
[RFC, PATCH 19/24] i386 Vmi mmu changes
...tables may then be mapped in at will. In this case, the kernel must notify the hypervisor of these mappings when they change. This is the purpose of the changes to the pte_offset_map functions. This need more comments. Signed-off-by: Zachary Amsden <zach@vmware.com> Index: linux-2.6.16-rc5/arch/i386/kernel/efi_stub.S =================================================================== --- linux-2.6.16-rc5.orig/arch/i386/kernel/efi_stub.S 2006-03-10 12:55:05.000000000 -0800 +++ linux-2.6.16-rc5/arch/i386/kernel/efi_stub.S 2006-03-10 13:03:39.000000000 -0800 @@ -8,7 +8,6 @@ #include &l...
2007 Apr 18
1
[RFC, PATCH 19/24] i386 Vmi mmu changes
...tables may then be mapped in at will. In this case, the kernel must notify the hypervisor of these mappings when they change. This is the purpose of the changes to the pte_offset_map functions. This need more comments. Signed-off-by: Zachary Amsden <zach@vmware.com> Index: linux-2.6.16-rc5/arch/i386/kernel/efi_stub.S =================================================================== --- linux-2.6.16-rc5.orig/arch/i386/kernel/efi_stub.S 2006-03-10 12:55:05.000000000 -0800 +++ linux-2.6.16-rc5/arch/i386/kernel/efi_stub.S 2006-03-10 13:03:39.000000000 -0800 @@ -8,7 +8,6 @@ #include &l...
2007 Oct 24
16
PATCH 0/10: Merge PV framebuffer & console into QEMU
...Config.mk | 1 a/tools/check/check_libvncserver | 38 - a/tools/check/check_sdl | 27 a/tools/xenfb/Makefile | 32 a/tools/xenfb/sdlfb.c | 342 --------- a/tools/xenfb/vncfb.c | 522 --------------- a/tools/xenfb/xenfb.c | 779 ---------------------- a/tools/xenfb/xenfb.h | 35 - b/tools/ioemu/hw/xen_console.c | 432 ++++++++++++ b/tools/ioemu/hw/xen_console.h | 25 b/tools/ioemu/hw/xen_machine_fv.c | 288 ++...
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
...32/cmenu/libmenu/help.h | 2 +- com32/cmenu/libmenu/menu.c | 2 +- com32/cmenu/simple.c | 2 +- com32/elflink/Makefile | 3 - com32/elflink/ldlinux/Makefile | 15 +- com32/elflink/ldlinux/cli.c | 1 - com32/elflink/ldlinux/colors.c | 1 - {core/elflink => com32/elflink/ldlinux}/execute.c | 74 ++- com32/{libutil => elflink/ldlinux}/get_key.c | 0 {core/elflink => com32/elflink/ldlinux}/ke...