Re: [Boston.pm] OT: look up a host for a URL

2004-09-22 Thread Gyepi SAM
On Wed, Sep 22, 2004 at 11:57:35AM +0100, David Cantrell wrote:
 On Tue, Sep 21, 2004 at 05:56:47PM -0400, Gyepi SAM wrote:
 
  Indeed! The as_check script references to routeviews.org and the Merit Routing 
  database,
  are particularly useful for me since I have recently developed an interest in 
  routing databases.
 
 Just remember that the AS number returned by that script may not be
 *entirely* accurate.  It'll tell you who is announcing a particular
 netblock to routeviews.org, but not who the *real* owner is.  For that
 you need to look at the AS path.  It's on my ever-growing to-do list.

Thanks for the info.`

 Out of interest, what project do you have in mind that'll be using this
 sort of information?

I am working on a mirror database program that finds the best n mirrors for a
given client IP address. The current selection methods are geographically biased:
they prefer mirrors within the client's country, then the closest mirrors in
other countries based on, very rough, geographic distance calculations.
Most results are surprisingly accurate, but edge cases fail pretty badly since
it's working at country granularity: Vancouver, CA is closer to Seattle, US than to 
Alberta, CA
but the latter is selected first. A similar problem occurs for large countries as well.

I am thinking that some knowledge of possible routes from the client to the mirror may 
help here.
My initial approach was to write a client utility that can traceroute and ping a list 
of mirrors to find the
closest/fastest ones, but I'd like to precompute some of that information on the
server, if possible, using routing tables.

-Gyepi

___
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] Print oddity?

2004-09-22 Thread Jeffrey Ferland
Code:
#two simple arrays
@x = (1,2,4,8);
@y = (2,4,8,16);
#print both arrays with values joined by , - end with a newline.
print (join',',@x), \n;
print (join',',@y), \n;
#print colinear check math
print ((($y[0]-$y[1]) * ($x[0]-$x[2])) - (($y[0]-$y[2]) * 
($x[0]-$x[1]))), \n;

Output:
[EMAIL PROTECTED] ~]$ perl numtest.pl
1,2,4,82,4,8,[EMAIL PROTECTED] ~]$
-Jeff
SIG: HUP
___
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm