@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37



Comments:

<0> Fork + IO::Select?
<1> hobbs: POE is all that boilerplate code that you just wrote around select!
<2> and I've asked rocco about 50 questions
<0> who's rocco?
<1> god?
<2> POE is released under rocco's careful guidance
<2> at least the core of it
<2> rocco is not responsible for anything else. :)
<2> including the freakin' incompatible changes in POE::Component::IRC (grumble)
<1> incmpatible changes?
<2> Yup.
<2> there was a flag-day about a year ago, I think
<2> and my old code won't work any more
<1> ah, fun.



<2> I'm thinking of adding an IRC bot into my project for $client
<2> but it'd be better if they could have a Yahoo-bot
<2> unfortunately, yahoo has a proprietary chat protocol
<3> jabber + jabber bridge?
<2> so any Y!-chat module is now broken
<4> merlyn: What if you tied it into bitlbee)
<2> the jabber people have given up, I was told
<1> the jabber POE component didn't look so great last I glanced :-/
<1> merlyn: hmm, gaim still seems to try
<2> Adium does too
<1> oh, adium doesn't use libgaim?
<2> but there's nothing in the CPAN that currently works, apparently
<2> yeah - adium uses libgaim
<3> my jabber->yahoo bridge looks up
<5> merlyn: what incompatible changes ?
<2> ahh, speaking of PoCo::IRC;..
<5> One of your 'papers' caused me a world of hurt thank you. Messing with her guts that way.
<2> it was between 2 and 3, if I recall
<2> maybe between 3 and 4
<2> heh
<2> s'ok, we were just trying to sell POE to the next client
<5> merlyn: that tells me not a lot really.
<2> I know. I'm tryhing to remember what I had learned.
<2> I just recall some sort of major API change that outdated old programs
<6> how can I make a copy of an array ref?
<2> including one that I had written for production
<1> tkp: [@$a] ?
<2> tkp - what does that mean?
<2> do you mean a shallow-copy of the data?
<2> or literally a "copy of the array ref"
<5> AFAIK, I have never broken backwards compatibility for people who use the proscribed API.
<2> my $new = $original; # copy of array ref
<6> umm... a new version of the data
<2> how deep?
<2> just shallow-copy?
<6> so the new var does not reference the old one in any way
<2> ahh. deep-copy
<6> ok
<2> use Storable;
<6> deep-copy
<2> my $copy = dclone($original);
<6> really... is that the only way?
<2> and hope you have no coderefs in there
<2> no - there's more than one way
<2> but that's the most thorough
<6> it's not part of the perl core??
<2> serialize and deserialize
<2> Storable is core
<2> you can do it with Data::Dumper too, but that's slower.
<5> merlyn: when you remember drop me an email or something.
<6> ok... i'll look into Storable
<7> dotdotdot
<8> how do you tell what is core? is there a list somewhere?
<1> Pete_I: perldoc perlmodlib
<9> perlmodlib - Perl modules: how to write and use. To access this perldoc please type, at a command line, 'perldoc perlmodlib'. You may also find it at http://perldoc.perl.org/perlmodlib.html
<2> core: Storable
<9> This was added to Perl5.007003
<2> core: Data::Dumper
<9> This was added to Perl5.005



<1> and Module::CoreList
<5> core: Merlyn
<9> This will be added by christmas
<8> ah
<2> which is where "core:" gets it
<2> core:christmase
<9> This will be added by christmas
<2> core: strict
<9> This was added to Perl5
<1> core: Perl6
<9> This will be added by christmas
<6> ;)
<1> last year I said there was a 50/50 chance of perl6 by that christmas *sigh*
<2> cool
<2> core: Acme::Bleach
<9> This will be added by christmas
<1> this year I say 604/40
<10> "mpalatnik" at 128.252.120.95 pasted "Can someone help me explain how this array helps count the matches?" (13 lines, 329B) at http://sial.org/pbot/17537
<1> err, 60/40
<6> ah. that did the trick :)
<11> integral: Your first guess may have been closer
<6> whay did you say 'and hope you have no coderefs in there'?
<2> because coderefs have a tougher time serializing
<8> mpalatnik, which array?
<1> PerlStalker: well someone is being *paid* to code on the perl6-in-perl6 parser :)
<12> see http://sial.org/pbot/17537.. can someone demystify this for me?
<13> mpalatnik: that regex is crap for ip matching
<2> you have to set some extra crap
<12> i understand the reg exp
<12> i dont understand the counter
<12> %hits
<1> DDS can do closures!
<11> integral: That's cause for hope
<6> when you say a codefer, you mean what exactly?
<6> a sub?
<2> yes - but DDS doesn't come in core. :)
<2> I'm referring to a coderef
<2> that's the name
<12> $hits {$ip} ++; for example
<2> a reference to a subroutine yes.
<2> mpalatnik - you need a basic book on Perl
<12> and the sort business
<2> not #perl to read it to you
<12> i have one right in front of me
<2> then please to be readink it
<1> woo! I'm now cool enough to get posts on planet.perl.org
<12> i have
<12> nevermind
<12> useless
<2> OK - then ask a specific question
<1> mpalatnik: %hits is a hash...
<12> sorry -- meant to say hash
<2> not "explain all thsi to me"
<12> ok in particular
<12> my @ips = sort { $hits{ $b } <=> $hits{ $a } } keys %hits;
<2> that's a standard count-em-up-and-show-the-results pattern
<12> what are $a and $b referring to
<2> mpalatnik - perldoc -f sort
<9> sort. To access this perldoc please type, at a command line, 'perldoc -f sort'. You may also find it at http://perldoc.perl.org/functions/sort.html
<1> mpalatnik: perldoc -f sort.
<12> jesus christ
<1> Look up sort in your book!
<2> heh
<14> where?
<2> Jesus *H* Christ? :)
<14> I guess he must have been chasing mpalatnik
<8> he left
<2> Must have been the antichrist
<13> Also, again, that regex is aweful for IP matching.
<2> yeah, we said that last time
<8> it is.
<2> but he's gone
<15> ugh


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#fedora
#centos
interworx relay access denied
Xm/PrimitiveP.h: No such file or directory
#debian
mod_perl smart::comments
#mysql
2.6.15-gentoo-r5 source kernel
#python
php mod function



Home  |  disclaimer  |  contact  |  submit quotes