Re: perl for machine learning

2017-02-11 Thread James Alton
If you want to learn about machine learning and the first thing you think is: "What Perl libraries are there for this?", you might be going about it all wrong. *The best machine learning libraries are all written for Python*. This isn't a "religious" argument, it's just the way it is. I always thi

Re: Script runs slower with better hardware

2016-06-02 Thread James Alton
p/Tutorial http://sandsoftwaresound.net/perf/perf-tut-count-hw-events/ James Alton On Thu, Jun 2, 2016 at 12:25 AM, David Emanuel da Costa Santiago < deman...@gmail.com> wrote: > > Hello James, > > The CPUs are > > Laptop CPU: i7 Q 720 > Desktop CPU: i5 6500T > > The re

Re: Script runs slower with better hardware

2016-06-01 Thread James Alton
e threaded jobs and faster at multi-threaded jobs (say a Core i7 3.2GHz). Is the program you're trying to run written in such a way as to take advantage of multi-threading? Was the benchmark you mentioned a single threaded or multi-threaded benchmark? Best wishes, James Alton On Wed, Jun 1

Re: Hello

2013-07-12 Thread James Alton
use feature say; use Net::DNS; foreach (Net::DNS::Resolver->new->nameservers) { say; } James Alton 801-388-7497 On Fri, Jul 12, 2013 at 12:31 AM, Frank Vino wrote: > Could you please let me know the perl script how to find DNS IP address of > system.? > > Thanks, > -Vino >

Re: last

2013-06-17 Thread James Alton
lee, You have a post statement if and then a code block. You can only use one of two forms: print "test" if $color eq "blue"; #no parenthesis required if($color eq "blue"){print "test";} As far as last, http://perldoc.perl.org/functions/last.html The example given: LINE: while () {

Re: sha-2 sum of files?

2013-06-12 Thread James Alton
What is the reason for checking file hashes once a month? Are you just trying to do a basic sys admin task like ensuring system file integrity? No sense in reinventing the wheel. Look into tripwire. http://www.linuxjournal.com/article/8758 Cheers, James On Wed, Jun 12, 2013 at 2:27 AM, lee wrot

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread James Alton
Alternatively, output to a file, don't sleep (unless you really need to?), then tail that file in another console. (This would be for if you wanted to see different parts of the "printed" output while the program is still going.) James On Wed, Jun 5, 2013 at 5:18 AM, Nemana, Satya wrote: > H

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread James Alton
Beginner to beginner here, but if you wanted to do two things at once, wouldn't you just need to use threads? http://perldoc.perl.org/threads.html (Disclaimer: Threads might be overkill, but it was the first thing I thought of.) James On Wed, Jun 5, 2013 at 5:18 AM, Nemana, Satya wrote: > Hi*