Re: [Boston.pm] module introspection

2011-08-09 Thread Ted Zlatanov
On Mon, 08 Aug 2011 12:48:22 -0400 Tom Metro wrote: TM> I have a command line utility I am developing that I'd like to be TM> extendable with additional "verbs" such that you can do: TM> command verb ...args... TM> And I'd like the utility to be able to support new verbs by merely TM> having

Re: [Boston.pm] Q: giant-but-simple regex efficiency

2011-02-06 Thread Ted Zlatanov
On Sun, 06 Feb 2011 11:49:56 -0500 Charlie wrote: C> Given how you frame the problem, then the hash lookup isn't even an C> option! No question, 6000+ string searches will be slow vs. a trie. C> Given the varying requirements we all encounter, day-to-day, I think C> this is an interesting

Re: [Boston.pm] Q: giant-but-simple regex efficiency

2011-02-05 Thread Ted Zlatanov
On Sat, 05 Feb 2011 18:27:13 -0500 Charlie wrote: C> The sample program below runs in 00:09:04 on 1.15GB (1024 copies of C> Moby Dick). Replacing the hard-coded map with 2 entries with 6000 C> words taken from the text (randomly selected, unique, >5 chars) runs C> in 00:09:17. I.e. the

Re: [Boston.pm] Q: giant-but-simple regex efficiency

2011-02-04 Thread Ted Zlatanov
On Fri, 4 Feb 2011 18:10:08 -0600 Ted Zlatanov wrote: TZ> On CPAN you can find Regex::Trie which builds this regex in a more TZ> optimized way TZ> (http://search.cpan.org/~dankogai/Regexp-Trie-0.02/lib/Regexp/Trie.pm). TZ> This is the most general solution. Oh, and for th

Re: [Boston.pm] Q: giant-but-simple regex efficiency

2011-02-04 Thread Ted Zlatanov
On Fri, 4 Feb 2011 18:43:57 -0500 Kripa Sundar wrote: KS> I have a 900 Meg text file, containing random text. I also have a list KS> of 6000 names (alphanumeric strings) that occur in the random text. KS> I need to tag a prefix on to each occurrence of each of these 6000 KS> names. KS> My

Re: [Boston.pm] use Moose ?

2011-02-03 Thread Ted Zlatanov
On Wed, 2 Feb 2011 13:26:52 -0500 "James Eshelman" wrote: JE> Thanks Drew. It's good to hear that there's no noticeable RT penalty after JE> startup, and the roles feature looks especially nice, along with the JE> compatibility with Perl 6. -- Jim There's a very noticeable penalty if you

Re: [Boston.pm] Java for Perl programmers?

2009-06-26 Thread Ted Zlatanov
On Thu, 25 Jun 2009 21:09:05 -0400 "James Eshelman" wrote: JE> That time has finally come for me that all good perl hackers dread -- being JE> forced to code in Java. Most Java tutorials, websites, and books seem to JE> target novice programmers. Anyone know of a condensed, quick reference

Re: [Boston.pm] merging lists that are ordered but not sorted

2008-01-30 Thread Ted Zlatanov
On Tue, 29 Jan 2008 16:27:16 -0500 (EST) Chris Devers <[EMAIL PROTECTED]> wrote: CD> On Tue, 29 Jan 2008, Tolkin, Steve wrote: >> I want to reconstruct the underlying list. In other words the order of >> the elements agrees in all the lists, but there is no sort condition. ... CD> Out of

Re: [Boston.pm] Subroutine definition

2007-09-10 Thread Ted Zlatanov
On Mon, 10 Sep 2007 15:00:30 -0400 Ronald J Kimball <[EMAIL PROTECTED]> wrote: RJK> On Mon, Sep 10, 2007 at 11:51:56AM -0700, Palit, Nilanjan wrote: >> I have to do some format conversions, so I'm defining subroutines like >> "sub FormatConv_X2Y()" ... RJK> Other options include: RJK> Creating

Re: [Boston.pm] quick XML::Twig / variable scope problem

2007-08-25 Thread Ted Zlatanov
On Fri, 24 Aug 2007 19:32:05 -0400 "Alex Brelsfoard" <[EMAIL PROTECTED]> wrote: AB> I would like to call a function that declares a few variables and then runs AB> some XML::Twig processes which in turn access & update said original AB> variables. AB> But I'm getting an error from my twig

Re: [Boston.pm] [OT] DNS lookup? PLEASE REPLY OFF LIST

2007-02-01 Thread Ted Zlatanov
Sorry for posting to the list when the subject clearly said not to. Ted ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] LDAP server recommendations?

2006-11-13 Thread Ted Zlatanov
On 13 Nov 2006, [EMAIL PROTECTED] wrote: > We have OpenLDAP @ $work. We use it for SAMBA and PAM and I am really happy > with it. OpenLDAP is nice. I used it at a previous job. The problems I found lay with LDAP itself rather than this particular implementation. Be careful with the BDB

Re: [Boston.pm] OLE, excel, and perl

2006-10-02 Thread Ted Zlatanov
On 2 Oct 2006, [EMAIL PROTECTED] wrote: On Oct 2, 2006, at 5:56 PM, Greg London wrote: > >> I believe I was informed that OLE was the >> only way to do this. Or maybe I was drunk. > > Definitely not true. In fact, Spreadsheet::{Read,Write}Excel run > just fine on Linux. While this is true,

Re: [Boston.pm] Short time in Boston

2006-09-15 Thread Ted Zlatanov
On 15 Sep 2006, [EMAIL PROTECTED] wrote: On Thu, Sep 14, 2006 at 06:42:48PM -0400, Uri Guttman wrote: >>> "JA" == John Abreau <[EMAIL PROTECTED]> writes: >> >> JA> David H. Adler wrote: So. Mom and I are taking a cruise next month up the east coast and into Canada. We've got a day

Re: [Boston.pm] perl 6

2006-07-14 Thread Ted Zlatanov
On 14 Jul 2006, [EMAIL PROTECTED] wrote: > What other P6 features are considered "big win" motivators to start > using P6 by others? I think the new grammar feature (to me, it's very similar to what Parse::RecDescent does today, but P::RD has problems and it's slow as noted by others) is going

Re: [Boston.pm] Parser for C-like language?

2006-06-26 Thread Ted Zlatanov
On 23 Jun 2006, [EMAIL PROTECTED] wrote: On Fri, Jun 23, 2006 at 09:23:09AM -0400, Ted Zlatanov wrote: > On 23 Jun 2006, [EMAIL PROTECTED] wrote: >>>> Wasn't there a C grammer for Parse::RecDescent ? >>> Not that worked. Damian has acknowledged elsewhere that it shouldn'

Re: [Boston.pm] Parser for C-like language?

2006-06-23 Thread Ted Zlatanov
On 23 Jun 2006, [EMAIL PROTECTED] wrote: >> Wasn't there a C grammer for Parse::RecDescent ? > > Not that worked. Damian has acknowledged elsewhere that it shouldn't > have been included. It works for simple cases, and may be adequate for the OP's needs. I would recommend P::RD, because its

Re: [Boston.pm] Perl Curses clarification

2006-06-02 Thread Ted Zlatanov
On 2 Jun 2006, [EMAIL PROTECTED] wrote: > The key is to let somebody else do as much of the authentication > implementation as possible, as it's tricky and time-consuming to get > right. > > > The Unix login process can be subverted by sudo (not to mention that > > $USER can be set to anything,

Re: [Boston.pm] Perl Curses clarification

2006-06-02 Thread Ted Zlatanov
On 1 Jun 2006, [EMAIL PROTECTED] wrote: > Let me clarify a bit more what I need to do. We want to use $USER > to verify a valid user before running the program, so this is very > unlikely go on the web or have a web interface. You can tie web-based authentication to an external user database

Re: [Boston.pm] Perl Curses?

2006-06-01 Thread Ted Zlatanov
On 1 Jun 2006, [EMAIL PROTECTED] wrote: > I'm writing a command-line program to manage student grading for a > course, which will run on the school's Unix boxes (it can't be put on the > web for security reasons), and was debating what the best choice is to > handle the user interface. Has

Re: [Boston.pm] Put similarities in code and differences in data

2006-04-05 Thread Ted Zlatanov
Logically you can extend data-driven programming to storing opcodes with parameters in a database, and writing an interpreter in any language. That's a valid approach under some circumstances, in fact (see my article on this topic at

Re: [Boston.pm] splitting a string containing quoted fields

2005-10-04 Thread Ted Zlatanov
On Tue, 4 Oct 2005, [EMAIL PROTECTED] wrote: On Tue, Oct 04, 2005 at 12:28:20PM -0400, Donald Leslie {74279} wrote: >> I have a string of the form: >> >> 'a bc "d e f" h "i j"' what I want is the quoted items not >> to split on blanks. >> >> [0] = 'a' , [1] = 'bc' , [2] = 'd e f' ... . >> >>

Re: [Boston.pm] GUI builders, support tools

2005-03-01 Thread Ted Zlatanov
On Mon, 28 Feb 2005, [EMAIL PROTECTED] wrote: > Sean, old boy, I'm astounded. Are you not aware that I've been doing > exactly this using emacs? Daily? For more than 20 years now? It's > called find-tag . . . For the less Emacs-savvy, the speedbar package may be ideal. It shows the

Re: [Boston.pm] (also) Perl

2005-02-28 Thread Ted Zlatanov
On 28 Feb 2005, [EMAIL PROTECTED] wrote: On Fri, 25 Feb 2005, [EMAIL PROTECTED] wrote: > >> i still have my cert that i bought from them for my $2! it is all the >> perl cert i need. > > At the very least there should be a Perl hacker test (I haven't seen one). I found this by googling for

Re: [Boston.pm] (also) Perl

2005-02-28 Thread Ted Zlatanov
On Fri, 25 Feb 2005, [EMAIL PROTECTED] wrote: > i still have my cert that i bought from them for my $2! it is all the > perl cert i need. At the very least there should be a Perl hacker test (I haven't seen one). Here's a start... I'll be glad to maintain this (if there's been others, please

Re: [Boston.pm] reading in a directory

2004-12-08 Thread Ted Zlatanov
On Tue, 7 Dec 2004, [EMAIL PROTECTED] wrote: > Wow, well it's good to see we're all on the same page. Three replies all > suggesting the same option.. zipped files. Yeah here's the trick. > I'm trying to make this process easier for my mother, not myself. So in > the end, this is

Re: [Boston.pm] OT: LDAP

2004-12-07 Thread Ted Zlatanov
On Fri, 03 Dec 2004, [EMAIL PROTECTED] wrote: Ted Zlatanov wrote: >> LDAP is essential if you plan to run a serious mail server. There's >> very few alternatives to a well-managed LDAP server for your user >> user directory. > > There appears to be a trend tow

Re: [Boston.pm] OT: Courier IMAP

2004-12-07 Thread Ted Zlatanov
On Fri, 03 Dec 2004, [EMAIL PROTECTED] wrote: Ted Zlatanov wrote: >> Courier IMAP is very reliable and standards-compliant. > > The problem with Courier IMAP is the support community. When I > researched it I found several people complaining about how the lead > developer(

Re: [Boston.pm] OT: Recommendation for mail server?

2004-12-03 Thread Ted Zlatanov
>From experience (2000+ users, lots of research) I would recommend either qmail-ldap or Postfix for mail delivery (MTA) and Courier IMAP for IMAP and POP service. LDAP is essential if you plan to run a serious mail server. There's very few alternatives to a well-managed LDAP server for your user

Re: [Boston.pm] Tech Meeting Followup

2004-08-06 Thread Ted Zlatanov
On Fri, 6 Aug 2004, [EMAIL PROTECTED] wrote: >>> That's not a typical web crawler, and obviously not what I meant. >>>Such databases already exist (e.g. bugmenot) but using them to rip a >>>page is definitely abusive. > > Not abusive at all. It's a public service. It's abusive to the content

Re: [Boston.pm] Tech Meeting Followup

2004-08-06 Thread Ted Zlatanov
On Fri, 06 Aug 2004, [EMAIL PROTECTED] wrote: >>>>>> "TZ" == Ted Zlatanov <[EMAIL PROTECTED]> writes: > > >>> You misunderstand. If registration is required, a crawler will fail > >>> anyway, > >> > >>

Re: [Boston.pm] Tech Meeting Followup

2004-08-06 Thread Ted Zlatanov
On Fri, 6 Aug 2004, [EMAIL PROTECTED] wrote: On Aug 6, 2004, at 6:14 AM, Ted Zlatanov wrote: >> You misunderstand. If registration is required, a crawler will fail >> anyway, > > Unless the crawler is itself registered. If I wrote a crawler, I'd > keep a database of us

Re: [Boston.pm] Tech Meeting Followup

2004-08-06 Thread Ted Zlatanov
On Fri, 6 Aug 2004, [EMAIL PROTECTED] wrote: > Have you ever noticed a google resultset entry that didn't have a > cache link? I don't know if it is something that a publisher can set > programatically or if it is a business arrangement. Pages are cached by default. To get removed you have to

Re: [Boston.pm] Tech Meeting Followup

2004-08-05 Thread Ted Zlatanov
On Thu, 5 Aug 2004, [EMAIL PROTECTED] wrote: On Thursday, August 5, 2004, at 05:56 PM, Ted Zlatanov wrote: > >> ...or they should provide a mirrored version of the page at least :) > > I'm sure my employer would be thrilled about mirrored versions of the > pages. It would cau

Re: [Boston.pm] Linux cluster and configuration management

2004-06-23 Thread Ted Zlatanov
On Wed, 23 Jun 2004, [EMAIL PROTECTED] wrote: > Then we switched to net-booting over NFS, and it's even easier & > faster. There's no longer any need to configure each machine, beyond > going into the bios and making sure that PXE boot over the network is > enabled. Everything else can be managed

Re: [Boston.pm] Anyway to convert Java to Perl???

2003-11-18 Thread Ted Zlatanov
On Tue, 18 Nov 2003, [EMAIL PROTECTED] wrote: > But, I have a sample application that I need to duplicate in perl. > The example is written in Java and I do NOT know java. I tried to > read through it and while some of it makes sense, I really only need > to know how and when its doing things. >

[Boston.pm] procmail recipes from IP ranges

2003-09-02 Thread Ted Zlatanov
I wrote this script in an hour or two, sorry if it's confusing or unsightly. Basically it will take a list of IP ranges (sample in __DATA__) and produce procmail recipes to match the ranges. I couldn't use Regexp::List, which will optimize a list into a single regular expression, because it

Re: [Boston.pm] Komodo vs. emacs

2003-07-01 Thread Ted Zlatanov
On Mon, 30 Jun 2003, [EMAIL PROTECTED] wrote: > Komodo's code-folding is cool. I installed a code-folding script in > emacs (http://mah.everybody.org/docs/emacs/folding-cperl-mode), but > it wasn't as flexible as Komodo's code-folding; it only folded > top-level subroutines, whereas Komodo allows

Re: [Boston.pm] Help with very sluggish perl process?

2003-06-18 Thread Ted Zlatanov
Have you tested the subroutine without any data assignments, just: open(CXIBIO,"+<$ARGV[0]") or die "Could NOT open $ARGV[0]\n"; print CXIBIO "$ARGV[1]\015"; EP: while (1) { $REC=; if ( $REC =~ m/[EMAIL PROTECTED]/) { next EP; } if ( $REC =~ m/^0999/) { last EP; } }

Re: [Boston.pm] list of possible words

2003-02-12 Thread Ted Zlatanov
On Wed, 12 Feb 2003, [EMAIL PROTECTED] wrote: > Do anyone know perl module that can give list of possible words > of an incorrect spelling word? For example, > > input:dissiapde > output:dissipate, dissipated I use String::Similarity, it is pretty good. Ted

Re: [Boston.pm] Looking for an elegant solution.

2003-02-02 Thread Ted Zlatanov
On Sat, 1 Feb 2003, [EMAIL PROTECTED] wrote: > $_ = 'use_name,mat_id,use_id,use_fname,mat_name,use_lname'; > > > How could I elegantly split/loop this into the following structure? > %hash = ( > use => ["use_name","use_id","use_fname","use_lname"], > mat => ["mat_id","mat_name"]

Re: [Boston.pm] mimes!

2003-01-15 Thread Ted Zlatanov
On Wed, 15 Jan 2003, [EMAIL PROTECTED] wrote: > When I want to forward the email, I do this: > [...] > print MAIL $$r{body}; [...] > and this, of course, screws up html emails and mime-types. What's > the easiest way to forward the email with all the mime types intact? > If I can get away with

Re: [Boston.pm] OT: Algorithm for sorting/grouping sets?

2003-01-01 Thread Ted Zlatanov
On Mon, 30 Dec 2002, [EMAIL PROTECTED] wrote: > For example, take a set of songs, I'd like to be able to > present them people, have them listen to one song, then compare that > song to two (or more) other songs, then select the song that it most > closely matches. > > From this, I'd