,
Post Python code here or provide a link to code posted elsewhere for
additional help.
Good luck.
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
after each HTTP request. That makes my program
more considerate of other people's resources and a better web citizen.
It is also much easier to program.
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
on the left?
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
).
I have done this in the past, but not recently. This should work for
Python (os.system(gnuplot gnuplot.cmd) or Perl (system(gnuplot
gnuplot.cmd) with suitable commands to execute external programs.
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
/
http://www.barebones.com/products/textwrangler/
http://code.google.com/p/macvim/
--
Jim Gibson
--
https://mail.python.org/mailman/listinfo/python-list
Interestingly, somebody named Om Prakash Singh asked the identical
question on the perl beginners list, except with the word perl
substituted for python. Is this a homework problem? Are you unsure
about which language to use? Are you comparison shopping?
--
Jim Gibson
--
https://mail.python.org/mailman
be interesting also to have javascript... and perhaps erlang,
OCaml/F#, Haskell too.
Perl:
sub normal
{
my $sum = 0;
$sum += $_ ** 2 for @_;
my $length = sqrt($sum);
return map { $_/$length } @_;
}
--
Jim Gibson
--
http://mail.python.org/mailman/listinfo/python-list
,
it is more efficient to pre-compute a set of keys, one for each object
to be sorted. That need be done only N times. The sort can then use
these pre-computed keys to sort the objects. See, for example:
http://en.wikipedia.org/wiki/Schwartzian_transform
--
Jim Gibson
Posted Via Usenet.com Premium