Re: Exposed Email Addresses & BackupPC future development

2013-04-09 Thread Bill Stephenson
Rajeev and Angela, I apologize for being a member of this group. I'll just quit now so I never have to say that again... On Apr 7, 2013 12:01 AM, wrote: > What a wondeful piece of spam, thank you sir, may I have another? On Mar 29, 2013, at 9:02 AM, John SJ Anderson wrote: > Hi, List Mom h

Re: Selling Perl Code

2013-02-22 Thread Bill Stephenson
On Feb 22, 2013, at 3:59 AM, rjc wrote: > Hi Bill, > > This is a kind request directed to you but also to everyone else to > consider starting a new thread with a new message sent to the mailing > list rather than replying to a previous email and changing the Subject: > line. > > The rationale b

Selling Perl Code

2013-02-20 Thread Bill Stephenson
whatever they want, but restricts their right to resell it. or do I have to make one of those up? I can't even get through the gutenberg.org license without wanting to bang my head on a wall. Will a simple copyright do the trick? How do others deal with this? Attorneys? (I hope there is a si

Re: obfuscating code

2013-02-12 Thread Bill Stephenson
On Feb 12, 2013, at 11:01 AM, Rajeev Prasad wrote: > what is the advice just for obfuscating code? platform is solaris. I played with "Acme::Bleach" http://search.cpan.org/~dconway/Acme-Bleach-1.150/lib/Acme/Bleach.pm It takes a different approach to obfuscating code, but it sort of works.

converting dates to epoch seconds and back

2013-01-18 Thread Bill Stephenson
When converting DMYHMS to Epoch Seconds and back I get cheated out of a day. Why? Bill -- #!/usr/bin/perl use strict; use warnings; use Time::Local; my ($time, $month, $day, $year, $seconds, $minutes, $hours, $wday, $yday, $isdst); my $start_date = '11/30/2012'; print "$start_date \n"; ($

Re: jsFiddle

2013-01-15 Thread Bill Stephenson
> http://ideone.com/ and http://codepad.org Those are both pretty cool. I hadn't seen either before so, Thanks! jsFiddle lets you play with CSS, HTML, and JS, and it displays the combined output as a web page in an iframe. It would seem that you could do all that with a perl script that used

jsFiddle

2013-01-15 Thread Bill Stephenson
Check out this web app: http://jsfiddle.net/ (Google "jsfiddle.net example" for examples of use) It would be nice to have something like that for fiddling with perl. I haven't really thought it through, but it might not take much to create something simple for personal

Re: Hi

2013-01-14 Thread Bill Stephenson
all know and I'll try and help you track down a solution to the problem. Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Time::Local (how to handle bad input)

2013-01-09 Thread Bill Stephenson
On Jan 9, 2013, at 11:26 AM, Andy Bach wrote: > On Wed, Jan 9, 2013 at 10:11 AM, Bill Stephenson wrote: > >> date=11/01/2003 >> >> I want to trap bad data sent to time::local in a loop where I use these >> lines: >> >>my ($date_month, $date_d

Time::Local (how to handle bad input)

2013-01-09 Thread Bill Stephenson
f "$test_date" contains bad data : Month '-1' out of range 0..11 at /Test.pm line 998. How can I evaluate the call to timelocal so I can decide what to do if a date is bad or missing? Thanks for any help with this... Bill Stephenson -- To unsubscribe, e-mail: b

Re: authentication & maintaining state

2012-09-20 Thread Bill Stephenson
On Sep 19, 2012, at 8:38 PM, Bill Stephenson wrote: > I want my scripts to maintain state when a user's session expires. > > When that happens I send them to a login page and here's what I am working on > in the module that does the authentication: Well, after a bit mor

authentication & maintaining state

2012-09-19 Thread Bill Stephenson
it to a list of valid script names and if it doesn't pass the test I'll send the user an error message. Should that be good? Or do I need to ditch the $ENV{'SCRIPT_NAME'}) approach all together? Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Using different libraries dynamically

2012-09-12 Thread Bill Stephenson
ot;Atomic level" and it will not interrupt your app. Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl Code

2012-08-31 Thread Bill Stephenson
On Aug 29, 2012, at 11:59 AM, John SJ Anderson wrote: > On Wednesday, August 29, 2012 at 9:46 AM, Ashwin Rao T wrote: >> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using only >> return functions & regular expressions in Perl. >> 2)Check if the name is valid (has atleast

Re: re-reading from already read file handle

2012-08-20 Thread Bill Stephenson
On Aug 20, 2012, at 7:24 PM, John SJ Anderson wrote: > On Monday, August 20, 2012 at 4:15 PM, Rob Dixon wrote: >> >> This question is double-posted on Stack Overflow >> > So what? I don't see anything in the list FAQ about cross-posting questions > to other resources, just about cross-posting a

Re: array match- help !

2012-08-17 Thread Bill Stephenson
On Aug 17, 2012, at 10:07 AM, jet speed wrote: > Chaps, > > Thanks for all your comments, I am strill trying to resolve my inital > query. Any help would be much appreciated. > > > I have the below program. i can match the entries in actzone.txt file in > bluealias.txt and print it. > > what i

Perl and Windows commands

2012-08-15 Thread Bill Stephenson
I need to write a script that runs a series of Windows commands, and I have to wait while each performs its functions, then go on to the next command. I know almost nothing about Windows, and I can't test it because I don't have a Windows box. I read up a bit and it looks to me that something li

Re: Raspberry Pi: Beginners Web App Example

2012-08-14 Thread Bill Stephenson
On Aug 13, 2012, at 2:55 PM, Perforin wrote: > On 08/13/2012 11:57 AM, Shlomi Fish wrote: >> Hello Perforin, >> >> On Mon, 13 Aug 2012 08:18:13 +0200 >> Perforin wrote: >> >>> On 08/13/2012 12:45 AM, Owen wrote: >>>> On Fri,

Re: Raspberry Pi: Beginners Web App Example

2012-08-14 Thread Bill Stephenson
o draw a track and I've done that with GD too, but I suppose it can be done with CSS too, so demoing both approaches would be nice. Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Raspberry Pi: Beginners Web App Example

2012-08-10 Thread Bill Stephenson
rry pi is pretty darn cool. It's really a perfect sandbox to start playing in with perl. In fact, it may be perfect for developing perl since you can change out the entire system, configured for a single project, with a $6 SD card. I'm having a great time playing and learning with mine

Re: How to zip all files which are value from awk command ?

2012-07-26 Thread Bill Stephenson
On Jul 26, 2012, at 5:14 AM, Rob Coops wrote: > On Thu, Jul 26, 2012 at 12:05 PM, Jack Vo wrote: > >> Hi all, >> >> I need to compress many files in a directory on server. I use "awk" and >> "zip" command to compress these files. >> >> By "awk" command, I filter theses file : >> >>> *# ls -l

Re: Perl MVC framework

2012-07-20 Thread Bill Stephenson
On Jul 20, 2012, at 11:03 AM, shawn wilson wrote: > (disclaimer: totally ot and oppinion) that said, i dislike having sql, > regex, tt, js, html, css, and perl in a project. i can get rid of one > by using nodejs and another by using a json nosql db. though, these > are new and perl has had 20 yea

Re: Perl MVC framework

2012-07-20 Thread Bill Stephenson
one that you can be most productive with. I thought I'd mention that you always have that option too. Kindest Regards, Bill Stephenson On Jul 19, 2012, at 8:38 PM, Chris Stinemetz wrote: > Hello List, > > What is the best Perl MVC framework for someone to learn that has minimal

Re: lexical scope

2012-06-05 Thread Bill Stephenson
Maybe this is what you need? #!/usr/bin/perl use warnings; use strict; my @array; while ( my $line = ) { chomp $line; push (@array = split(/\s+/, $line,-1)); } for my $item ( @array ) { print $item,"\n"; } Kindest Regards, Bill Stephenson On Jun 5, 2012, at 4:15 PM, Chris

Re: mod_perl for n00bs

2012-06-05 Thread Bill Stephenson
the simpler version that Dancer implements. I learned a lot by going over both of their tutorials. I also played around with HTTP::Server::Simple to get a feel for how that works and how I might use it in my own approach. I suggest you do the same. Then you can decide if you feel like investing

Re: subroutine returning data

2012-06-04 Thread Bill Stephenson
Thanks Shawn! The "values %{$href->{$_[0]}}" code is pretty ugly but I get it now. And it make sense to break out of the loop as soon as you don't pass the test. Kindest Regards, Bill Stephenson On Jun 4, 2012, at 12:49 PM, Shawn H Corey wrote: > On 12-06-04 12:3

Re: subroutine returning data

2012-06-04 Thread Bill Stephenson
On Jun 4, 2012, at 11:30 AM, Chris Stinemetz wrote: > I have a subroutine that I want to "return 1" only if the value of > %{$href->{$_[0]}} is equal to 'ND' for the whole 24 occurences. > > Any suggestions is greatly appreciated. > Chris, I don't know how to read your hash directly (hash of ha

Re: mod_perl for n00bs

2012-06-04 Thread Bill Stephenson
) there might be things he can do that don't require rewriting a lot of code, or spending a lot of time learning a lot of new ways of doing things. Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Bill Stephenson
'd require something like a dispatcher that sits between your scripts and the perls you want to use. Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Using Boulder.pm

2012-06-03 Thread Bill Stephenson
I'd like it to search through. But I don't know how to do that, I've tried a few different things, like, open(newFh, "data.txt") or die "couldn't open data.txt : $!"; my $stream = Boulder::Stream->newFh; But I get this error: Name &q

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Bill Stephenson
ng a Mac) It's not the answer they're looking for, but it's a simple and easy solution that's also pretty darn fast. And you can always write a perl script that will do that same thing too ;) Kindest Regards, Bill Stephenson On Jun 2, 2012, at 2:11 PM, Chris Nehren wrote:

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Bill Stephenson
Okay, I get it... Sorry... Kindest Regards, Bill Stephenson On Jun 2, 2012, at 2:01 PM, Shawn H Corey wrote: >>> #!/usr/bin/env perl` -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Using perlbrew to change Perl version for scripts

2012-06-02 Thread Bill Stephenson
Maybe I don't understand what you mean, but I'm using perlbrew on my Mac and running CGI scripts with it. Kindest Regards, Bill Stephenson On Jun 2, 2012, at 1:53 PM, Shawn H Corey wrote: > On my machine, perl is at /usr/bin/perl so it doesn't get clobbered. (And `l

Re: Raspberry Pi for Beginners (and developers ;)

2012-06-02 Thread Bill Stephenson
ted about what I can do with these little devices. There are lot's of potential gizmos to plug into them, cameras, GPS, compass, all kinds of stuff, and we should be able to control them with perl. I know we can do that now, but the RPi really lowers the bar for entry... Kindest Regards, Bil

Raspberry Pi for Beginners (and developers ;)

2012-06-02 Thread Bill Stephenson
RPi gives the perl community the opportunity to grow with the markets these devices will create and serve, which I think will be huge. I lack the credentials to lead the Perl community there, but I've been feeling the need to point out what's going on there and urge others to get involve

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Bill Stephenson
ouple block away. Kindest Regards, Bill Stephenson -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Rasberry Pi

2012-03-03 Thread Bill Stephenson
I was wondering if anyone here has looked into the Rasberry Pi project? I just got wind of it a couple days ago and it looks pretty exciting. From their home page: "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be use