search for: while

Displaying 15 results from an estimated 15 matches for "while".

2004 Jul 01
2
how to drop rows from a data.frame
here is a snippet of data where I would like to drop all rows that have zeros across them, and keep the rest of the rows while maintaining the row names (1,2,3, ...10). The idea here is that a row of zeros is an indication that the row must be dropped. There will never be the case where there is a row(of n columns) with less than 5 zeros in this case(n zeros I am unsure how to manipulate the data frame to drop rows whi...
2010 Sep 16
3
If statements for multiple arrays
Hello, I wrote this code which works fine on a single observation: x<-100 y<-200 z<-125 aa<-150 if(x<z && y>z) {aa-z} result: 25 I am trying to apply this logic where x,y,z,and aa are arrays but with very little success. I have tried using loops and whiles but I always get errors of various types. I have consulted a few manuals but with limited success. My hopeful outcome would be: data: X Y Z AA 1 100 200 125 150 2 125 110 105 140 3 110 150 130 200 4 90 200 75 65 Here row 1 would return 25, r...
2013 Feb 22
1
[LLVMdev] Does LLVM optimize variable to constant value in the compiling time?
By optimization, do you mean enable the optimization whiling building llvm or use optimization flag while using clang command to get the bitcode file? In my case, I disable the optimization when I built llvm, and I use the following command to get the bitcode: clang -O0 -emit-llvm hello.c -c -o hello.bc To run the pass: opt -load ../../../Debug+Asserts/lib/Hello.so -hello < hello.bc > /dev/nu...
2004 Apr 14
2
Spoofing CallerID on Demain
I have an outgoing line that allows me to set my caller id. I want to be able to change the caller id when ever I place a call using this line. I would like my user to press 7, then be prompted for their 10 digit caller id number, then be prompted for the number they would like to call in the form 1NXXNXXXXXX. How can I accomplish this??? Right now I am using this script that users have to
2015 Nov 10
4
función par dentro de bucles, representar gráficas en bucle
...e y la segunda, y hacer gráfica, coger la primera variable y la tercera, y hacer gráfica, y así hasta acabar con la primera variable, y coger la segunda, y lo mismo. Coger la segunda variable y la tercera, y gráfica, coger la segunda variable y la cuarta, y gráfica. Quiero hacer una función con dos whiles, para automatizar el proceso. El problema radica en el comando par( mfrow =c(3,3)). Tal y como lo conozco, se escribirlo, y después colocar dos gráficas, por ejemplo par( mfrow =c(2,1)). indexplot bla bla bla indexplot bla bla bla. Pero ahora con el while, no puedo poner "dos" gráfica...
2011 Dec 07
2
reading partial data set
...on) So, if I had only a hundred lines, this would be OK, but I have a few thousands, and It'll take me forever to finish reading if I need to read block by block and check manually where is the problem. My question is: is there anyway I can read my data with some "if's" or "while's" to control the read.table? What I'd like to do is something like: 1. read data set while all lines has the same length 2. if a line has different length from the previous ones, store what was read in a variable and abort reading 3. start reading data set from the line where it stop...
2013 Feb 22
0
[LLVMdev] Does LLVM optimize variable to constant value in the compiling time?
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Robert Sandra > Subject: [LLVMdev] Does LLVM optimize variable to constant value in the compiling time? > Considering the following codes: > int x = 21;  > if(x > 20) {  >    p = &C;  > } else {  >    p = &E;  > } > I looked into the bitcode that LLVM
2006 May 30
3
Current process for tickets
This afternoon I was looking at the tickets posted in Trac, and I saw that there we quite a few stale tickets and patches. A lot of these are filed against very old versions of Rails, I think it''s fair for the people posting these tickets that they get resolved. Either by just removing them all or by weeding them out. I understand that closing tickets is not very glamorous work
2005 May 13
4
Big matrix memory problem
Hi All, I want to read 256 1000x1000 matrices into R. I understand that it is unlikely that I can do this but In the hope that somebody can help me I am mailing this list. I have tried increasing my memory size (I understand that it is the minimum of 1024 or the computers RAM in my case 512) Does anyone think this is possible in R, could it be tried in Splus for example. Any help is
2013 Feb 22
4
[LLVMdev] Does LLVM optimize variable to constant value in the compiling time?
Considering the following codes: int x = 21; if(x > 20) { p = &C; } else { p = &E; } I looked into the bitcode that LLVM generates, it still considers the 'else' branch, which will be never reached during the runtime. Thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL:
2003 May 08
5
MD4 bug-fix for protocol version 27
Hi, while implementing the rsync protocol in one of our projects I found that the current CVS version still has a MD4 bug. I'm using the FreeBSD libmd implementation and I still had checksum mismatches with protocol version 27 for files whose size was a multiple of 64 - 4 ( - 4 due to checksum_seed). A p...
2002 Jan 22
7
AIX reading /etc/environment out of step.
I was discussing with Don about a private topic..and while skimming the code I noticed that during a 'ssh mouring at site ls' the /etc/environment is *ONLY* read if the remote machine is an AIX box. This is undocumented and I'm wondering if someone using AIX could explain WHY it exists in the session.c:do_child()? No other OS has this. I do...
2012 Mar 28
52
[REQUEST] Request for Xen Users to Attempt Jean David Techer's Xen 4.2-unstable VGA Passthrough Documentation
Dear Xen Users, I have _partial_ (that is, less than 100%) success following Jean David Techer''s Xen 4.2-unstable VGA Passthrough Documentation. In both Windows 8 Consumer Preview HVM and Windows XP Home Edition HVM, I get yellow exclamation mark besides NVIDIA Geforce 8400 GS in Device Manager. NVIDIA Geforce 8400 GS in Device Manager reports: 1) Windows has stopped this device
2012 Mar 28
52
[REQUEST] Request for Xen Users to Attempt Jean David Techer's Xen 4.2-unstable VGA Passthrough Documentation
Dear Xen Users, I have _partial_ (that is, less than 100%) success following Jean David Techer''s Xen 4.2-unstable VGA Passthrough Documentation. In both Windows 8 Consumer Preview HVM and Windows XP Home Edition HVM, I get yellow exclamation mark besides NVIDIA Geforce 8400 GS in Device Manager. NVIDIA Geforce 8400 GS in Device Manager reports: 1) Windows has stopped this device
2007 Nov 16
8
[PATCH 0/6] Add online resize for ocfs2-tools,take 1
Add online resize in tunefs.ocfs2 so that user can increase the volume when it is mounted.