| |
| |
| |
|
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
Comments:
<0> it's a different license from a different guy <0> not larry wall <1> merlyn: Ah, k. I was just going to submit some code to a reply. Nevermind ;-) <0> if you can show how to fill in the form elems, I'll listen <2> no,no,no,not larry wall, another ****er down the hall <0> without launching acrobad <0> acrobat <3> heng: perl -lwe 'use strict; my %a = (b => sub {print $_[0]; return $_[0]}); $a{b}->(0)'; FE. <0> ahh - PDF::Reuse has form fillout? <4> dondelelcaro: thanks, let me give it a try first <3> heng: it'd help if you actually showed us the real code. <0> Oddly enough, I got 77 XP for *asking a question* <0> it's been a long time since I got that much for *giving an answer* <0> crazy XP
<5> Hrm. Now my PoCo IRC bot seems to be working right, its just ridiculously slow for some odd reason. <0> I should ask two or three questions a day. :) <0> you're probably blocking somewhere <4> dondelelcaro: the code is exactly the same as I wrote before, hehe <5> How do I figure out where? <0> or looping hard <0> set tracing on <6> i want to connect to mysql database, but just to check whether the connect string works <0> in POE::Kernel it describes how <6> i don't know what databases are present <5> Thanks. <0> trace the event delivery <0> you should see a constant stream <3> heng: if it is, then %hash isn't defined, nor is $key, and you're p***ing no values to the subroutine. <6> so I can't provide the database_name portion of the connect string <0> if you see somethign take a long time, then that state is blocking badly <6> how can i check whether I can connect without specifying a specific database? <4> donedelelcaro: what does (0) mean in $a{b}->(0) ? I think I defined a closure <0> isn't your connect string dependent ona particular database? <0> so you'd need the database, user, p***word triple <6> merlyn: i'm testing the db config <0> not just the user, p***word pair <4> donedelelelcaro: ha <3> heng: that's an argument p***ed to the subroutine. <4> let me check if my hash defined, should be <7> heng, $a{b} holds a coderef, that is calling and sending a 0 as argument <6> i will be, later on, connectiong to several differnet databases <8> merlyn: I did more things. <9> mcrawfor: you are running mysql, I presume? if so you should have a functional test database. <6> Botje: we were using that untill someone tried it with no test database <6> perhaps they dropped it on purpose, but still, i'd like to guard against that <5> merlyn: It -should- be looping continuously through POE::Kernel->run(), right? <3> mcrawfor: the only way to know if you can connect to the server is to actually connect with the correct tripple. Most databases will not allow you to connect without it. <4> amnesiac: thanks, I am trying to determine if hash is defined prior to the routine in the sub <9> A "database" must always be specified. << from DBD::mysql. <2> merlyn, so I'm trying to distribute XML::Parser <2> "Can't locate loadable object for module XML::Parser::Expat in @INC ..." <6> Botje: aw crud <2> is it using some binary distro ****? <0> yes godizrra <0> gr00ber - as I said, XML::Parser requires expat <0> I said that about ten times <0> now it's 11 <9> mcrawfor: maybe you can eval { DBI->connect("dbi:mysql:SURELY_NON_EXISTANT_DB_$$",$username,$p***word); } <2> merlyn, liar <2> it's 3 <9> and check $@ <6> ha! <6> that's novel <10> gr00ber: so ... you're listening to merlyn but mostly ignoring him? <9> you might have to enable RaiseError, i'm not too familiar with that point of DBI <0> apparently <2> merlyn, I don't know jack **** about expat... how is it distributed? it's not a perl module, i take? <0> it's a normal state here. <2> yup <0> expat is a *lib* <2> idiots abound <5> Hrm . How do you get it to ignore the POE::Kernel->run event and watch everything else? <0> it's under the GPL <0> therefore, it's not in the CPAN
<0> and you need to install it separately <2> merlyn, what do you mean by a *lib* ? <0> library <0> dammit <2> a C lib? a perl lib? <0> learn some terminology <2> teach me, master <0> yes - a library, as in libexpat.so <0> I don't care what it's written in <2> okidoki modda <0> it's a lib <2> i care if it's perl :) <0> it's not perl <2> makes distro a breeeeze <0> it's a binary <2> okidoki master <0> as are the things that link to it <0> like XML::Parser::Expat <9> gr00ber: there's a few pure-perl XML parsers. but they're _SLOW_ . <2> well explained grandmaster M <0> and the .so pieces that come from that <7> dynamic library! <0> godzirra - just trace it all <2> Botje, are there any XML::Parser compatible ones written in pure perl ? <0> turn on tracing, make sure you get a steady stream of events <2> since I'm using some XMLRPC module that need XML::Parser <9> gr00ber: if there are, they're on CPAN. <0> if something holds it up, then check that event to make sure it's not looping badly <2> Botje, ok <4> dondelelcaro and amnesiac: %hash did get defined :-s <9> probably under the XML::Parser hierarchy somewhere <5> I'm trying to, but its hard to read through the logs when every half a second it posts a ->run() dump <0> oh - just event dispatch <0> not everything <3> heng: this is why we need to see the actual code. Use one of the pastebots to do so <0> POE_TRACE_EVENTS=1 your_program <4> dondelelcaro: ok, give me a sec <2> Botje, if I install my own XML::Parser under my "lib" directory and there is an existing XML::Parser installed, which one is used? <0> maybe POE_TRACE_SESSIONS=1 too <9> gr00ber: whichever comes first in @INC <2> Botje, ok <9> my perl puts . all the way at the end <5> merlyn: ahh, thanks. Thats what I was trying to find. <9> so system directories get searched first <11> merlyn: sorry i would like to know what do you mean with "Cynco de Maio", i know what's happened on that day...but in a current expression?! (i heard this in your talk about PBP) <2> since I do "use libs" I guess the pre-installed comes first <9> I believe that's teh default for most perls <4> oops, pastebin.com is sloooow... any other pastebin site I can use ? <0> perlbot, paste <12> Paste your code and #perl will be able to view it: http://sial.org/pbot/perl http://dragon.cbi.tamucc.edu:8080 http://erxz.com/pb <0> one of those <0> preferably, in fact. <11> uh? <4> thanks, merlyn <0> cinco de mayo = mexican-american party day <8> articles-code: Eliza <13> Found: Using things from the CPAN (Jun 99) at http://www.stonehenge.com/merlyn/LinuxMag/col01.html; Doctor is IN (part I) (Mar 98) at http://www.stonehenge.com/merlyn/WebTechniques/col23.html; Doctor is IN (part II) (Apr 98) at http://www.stonehenge.com/merlyn/WebTechniques/col24.html; <0> celebrating some minor random crappy event in mexico <0> articles-body: poe <13> Found: Getting your kids to do the work (Aug 00) at http://www.stonehenge.com/merlyn/LinuxMag/col15.html; Forking parallel link checker (Sep 00) at http://www.stonehenge.com/merlyn/LinuxMag/col16.html; Doing many things at once (Oct 02) at http://www.stonehenge.com/merlyn/LinuxMag/col41.html; <0> there we go <14> is there an easy way of listening to <> and some sockets at the same time ? <11> ok, thanks <0> noia - POE <14> POE ? <0> use POE <5> Hrm. how do I delete every line in vim that doesnt contain a specific set of characters? <0> POE uber alls <14> I don;t know what POE is though >.< <0> poe.perl.org <0> go read <5> poe is uber. <0> and perldoc POE once you have it installed
Return to
#perl or Go to some related
logs:
perl use lib relative make resolv conf linux #php ubuntu linux err 8 #perl #xorg #math #nvidia #perl #css
|
|