search for: loc2

Displaying 20 results from an estimated 55 matches for "loc2".

Did you mean: loc
2009 Sep 22
1
matching pairs regardless of order,multiple matches
Dear Jim and Henrique, thank you both for your help. I have done this but run into another problem: ? In the example?below "loc1,loc2" occurs in the (now correct, thanks to your advice) "list" twice. ? ? trips=("loc1,loc2","loc2,loc3") ? DF$listoftrips=("loc1,loc2", "loc1,loc3", "loc2,loc3","loc1,loc2"). ? I?am now?using? ? DF$Data[match(trips,listoftrips...
2007 Aug 30
2
How to multiply all dataframe rows by another dataframe's columns
...X and Y, with two columns each and different numbers of rows. # creation of data frame X Loc1.alleles <- c(1,5,6,7,8) Loc1.Freq <- c(0.35, 0.15, 0.05, 0.10, 0.35) Loc1 <- cbind( Loc1.alleles,Loc1.Freq) X <- data.frame(Loc1) #creation of data frame Y Loc2.alleles <- c(1,4,6,8) Loc2.Freq <- c(0.35, 0.35, 0.10, 0.20) Loc2 <- cbind(Loc2.alleles, Loc2.Freq) Y <- data.frame (Loc2) I would like a flexible way to multiply each element of second column of the X data frame by each element of the second column of the Y d...
2009 Sep 18
3
matching pairs regardless of order
Dear list, ? I am using match() to match pairs of locations, e.g. trip="loc1,loc2" from a list of such pairs, e.g. list=("loc1,loc2", "loc1,loc3", "loc2,loc3","loc2,loc1"). ? In this example match() will match "trip" with the first element of "list", but not the 4th, because the order is reversed. ? How can I get...
2004 Dec 28
5
Multiple IP´s in one Zone
Hi everybody I have a Problem with Masquerading from my local net (loc) to my VPN (loc2). I can reach every Service from loc2 in loc, but I can''t get reach any service from loc in loc2. Has somebody an Idea where my mistake is ? Without shorewall, it was working. Thanks for helping Lars Technical Information : Shorewall 2.0.13 Suse 9.0 *177.177.77.X The first 3 Counts...
2012 Apr 06
5
[LLVMdev] Incorrect result in LLVM Alias Analysis
...and b in the program alias. int main() { int *a,*b; a=(int *)malloc(sizeof(int)); b=(int *)malloc(sizeof(int)); *a=10; *b=8; return 0; } I use the below code for this (getAnalysisUsage method has been defined) AliasAnalysis::Location loc1=AliasAnalysis::Location(k1); //a AliasAnalysis::Location loc2=AliasAnalysis::Location(k2); //b AliasAnalysis::AliasResult ar=AA.alias(loc1,loc2); But I get ar=1 i.e May Alias result. Where am I going wrong? I have included -basicaa option in the opt command for running this. -------------- next part -------------- An HTML attachment was scrubbed... URL: <...
2003 Apr 02
1
Firewall+DHCP question
Good Morning. Last week I posted a question about how to set up Shorewall Firewall to coexist with a DHCP server. I set up three zones and assigned two of them to the interfaces: net Zone is assigned to eth0 and loc Zone is to eth1. You said that I shouldn''t type any entries for loc2 Zone (assigned to eth1:1) since Shorewall can''t recognize an interface named eth1:1, but then How do I define rules for loc2 Zone if that zone doesn''t "exists". Shorewall output when starting looks like this: Determining hosts in zones net Zone 0.0.0.0/0 loc Zone 0.0.0...
2010 Jan 05
3
R matching lat/lon pairs from two datasets?
...23.76 2 47.82 -123.75 3 47.82 -123.74 4 47.82 -123.73 #Subset of current R code : lat <- data$V1 lon <- data$V2 yrs <- c(1,2,5,10,25,50,100,200,500,1000) lon2 <- data2$V1 lat2 <- data2$V2 ppt2 <- data2$V3 for(i in 1:length(lat2)) { loc <- match(lat2[i],lat) loc2 <- match(lon2[i], lon) print(loc); print(loc2) #Need to test to make sure loc equals loc2 freq_ppt <- c(data[i,4],data[i,6],data[i,8],data[i,10],data[i,12],data[i,14],data[i,16],data[i,18],data[i,20],data[i,22]) print(freq_ppt) return_value <- appr...
2009 Jun 29
4
[LLVMdev] Limitations of Alias Analysis?
...Loc->y = y; return newLoc; } Location* getDifference(Location *a, Location *b) { Location* newLoc = (Location *)malloc(sizeof(Location)); newLoc->x = a->x - b->x; newLoc->y = a->y - b->y; return newLoc; } int main() { Location *loc1 = getNewLocation(0, 0); Location *loc2 = getNewLocation(1, 2); Location *loc3 = getDifference(loc1, loc2); free(loc1); free(loc2); free(loc3); return 0; } //------------=== End ===------------// The whole process: llvm-gcc -emit-llvm -O0 -c test.c -o test.bc opt test.bc -load libLLVMDataStructure.so -basic-aa -ds-aa -anders...
2012 Apr 06
0
[LLVMdev] Incorrect result in LLVM Alias Analysis
...> a=(int *)malloc(sizeof(int)); > b=(int *)malloc(sizeof(int)); > *a=10; > *b=8; > return 0; > } > > I use the below code for this (getAnalysisUsage method has been defined) > > AliasAnalysis::Location loc1=AliasAnalysis::Location(k1); //a > AliasAnalysis::Location loc2=AliasAnalysis::Location(k2); //b > AliasAnalysis::AliasResult ar=AA.alias(loc1,loc2); > > But I get ar=1 i.e May Alias result. Where am I going wrong? did you run a basic set of optimizers first? Alias analysis assumes that at least mem2reg has been run. Otherwise it returns conservativ...
2007 Sep 21
1
Help create a loopto conduct multiple pairwise operations
...# creation of data frame X X.alleles <- c(1,5,6,7,8) X.Freq <- c(0.35, 0.15, 0.05 , 0.10, 0.35) Loc1 <- cbind( X.alleles,X.Freq) X <- data.frame(Loc1) #creation of data frame Y Y.alleles <- c(1,4,6,8) Y.Freq <- c(0.35, 0.35, 0.10, 0.20 ) Loc2 <- cbind(Y.alleles, Y.Freq) Y <- data.frame (Loc2) # creation of data frame Z Z.alleles <- c(1,4,5,6,8) Z.Freq <- c(0.35, 0.35, 0.05, 0.05, 0.20) Loc3 <- cbind(Z.alleles, Z.Freq) Z <- data.frame (Loc3) X Y Z # I want to create a pair w...
2006 Mar 16
3
lattice tick marks
...ta sets get totally mixed... positions <- rep ( c("1","2","3","4","5","6","9","10","11","12","13","14", "error", "no trial"), 45 ) compound <- matrix( c(loc2, loc1, error, no_trial), nrow=4, byrow=FALSE) barchart(compound ~ positions|gl (45,14, label=template ), col=c("deepskyblue1", "deepskyblue4", "tomato", "brown"), ... If I change the vector 'positions' to something like this: positions <- r...
2009 May 05
2
Way to handle variable length and numbers of columns using read.table(...)
I've got read.table to successfully read in my table of three columns. Most of the time I will have a set number of rows, but sometime that will be variable and sometimes there will be only be two variables in one row, e.g. Time Loc1 Loc2 1 22.33 44.55 2 66.77 88.99 3 222.33344.55 4 66.77 88.99 Is there any way to have read.table handle (1) a variable number of rows, and (2) sometime there are only two variables as shown in Time = 3 above? Just curious about how to handle this, and if read.table is the right way to go about or if...
2008 Feb 20
2
Shorewall vpn and Messenger
...is program installed in their outside computers. I have configured the following shorewall rules. This is only one part: ACCEPT    fw    net    tcp    80 ACCEPT    fw    net    udp    -    43,53,123,443,1024:65535 ACCEPT    loc    net    tcp    -    20,21,22,43,53,80,443,1024:65535 ACCEPT    loc2    net    tcp    -    20,21,22,43,53,80,443,1024:65535 ACCEPT    loc3    net    tcp    -    20,21,22,43,53,80,443,1024:65535 ACCEPT    fw    net    tcp    -    20,21,22,43,53,80,443,1024:65535 ACCEPT    loc    net    udp    -    43,53,123,443,1024:65535 ACCEPT    loc2    net    udp    -    43,5...
2005 Mar 31
3
Multiple subnet question
Hi All, I just added a second subnet and thought I had read all the relevant FAQ''s and had set things up properly, but a few odd things are happening. ZONES: net Net Internet loc Local Local networks 192.168 loc2 Local Local networks 10.151 ppp PPP PPP Dial-in rw RoadWarriors Road Warriors rw2 RoadWarriors Road Warriors INTERFACES: net eth0 detect norfc1918 - eth1 192.168.168.255,10.151.255.255 multi ppp ppp+...
2005 Jan 24
2
Migrate rules from iptables to shorewall - SNAT
Hi all, I''m using Shorewall since one year (1.4, then 2.0) I''m trying to migrate a linux firewall from iptables rules to shorewall. The firewall has three zones - net internet - loc1 lan - loc2 second lan I have a lot of rules like this, to SNAT the ip addresses of some computers on loc1 (192.168.16.0/24) when they connect to loc2 (10.0.0.0/8) iptables -v -t nat -I POSTROUTING -s 192.168.16.40/32 -d 10.150.30.100/32 -j SNAT --to 10.108.5.5 I''m not sure what is the best way t...
2006 Apr 22
6
bridge firewall with two nets
Hi I would like to use shorewall for my bridge firewall. I just read the howto http://www.shorewall.net/bridge.html But in this howto there are only one net behind the bridge and have two nets behind my bridge. Can I use shorewall with two nets behind the bridge. Thanks in advance. roberto -- Ing. Roberto Pereyra ContenidosOnline Servidores BSD, Solaris y Linux Soporte técnico ISPs
2003 Mar 28
2
DHCP+Firewall configuration
Hi. I have a Linux box with two network interfaces. The local interface has an alias so it can listen to two (completely) different subnets. I need to configure a Firewall and a DHCP server in the same machine. I have: eth0 > net eth1 > loc1 eth1:1 > loc2 If my DHCP server will use eth1 IP address (main IP address for that interface), How do I specify the ''dhcp'' option on the interface to be served by my server in the /etc/shorewall/interfaces file if that interface has an alias? Is it possible at all? Best regards! Carlos
2011 Jan 20
1
Problems with ecodist
...I didn't know what's wrong with my data. Would you please help me on this. I am quite new to R. Thanks. > distancematrix <- as.matrix(read.table("test1.txt")) > distancematrix1 <- as.matrix(read.table("test2.txt")) > distancematrix1 Loc1 Loc2 Loc3 Loc4 Loc5 Loc6 Loc7 Loc8 Loc9 Loc10 Loc11 Loc12 Loc1 0.000 2293.8671 2180.7127 7563.934 2494.5049 2522.3946 5953.609 2511.5994 2047.683 4448.721 3180.844 3112.6798 Loc2 2293.867 0.0000 443.2497 9831.220 472.2009 397.4316 8213.58...
2007 Sep 27
2
create data frame(s) from a list with different numbers of rows
...;- matrix(3:ncol(List.elements), byrow=TRUE, ncol=2) Loc1.gamete.counts<- apply(L1.pairwise.columns , 1, function(.row){ paste(List.elements[,1:2], List.elements[,.row]) }) #Locus2 L2.pairwise.columns <- matrix(5:ncol(List.elements), byrow=TRUE, ncol=2) Loc2.gamete.counts<- apply(L2.pairwise.columns , 1, function(.row){ paste(List.elements[,3:4], List.elements[,.row]) }) #Locus3 L3.pairwise.columns <- matrix(7:ncol(List.elements), byrow=TRUE, ncol=2) Loc3.gamete.counts<- apply(L3.pairwise.columns , 1...
2010 Nov 05
3
table with values as dots in increasing sizes
...thinking of a way to present data and if it is possible in R. I have a data frame that looks as follows (this is just mockup data). df location,"species1","species2","species3","species4","species5" "loc1",0.44,0.28,0.37,-0.24,0.41 "loc2",0.54,0.62,0.34,0.52,0.71 "loc3",-0.33,0.75,-0.34,0.48,0.61 location is a factor while all the species are numerical vectors. I would like to present this as a table (or something that looks like a table) but instead of the numbers I would like to present circles (pch = 19) that in...