@# 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



Comments:

<0> eMishGLX: can you try: install LWP ?
<1> trying
<1> LWP is up to date
<2> whoa, then why does it use wget?
<1> ok, I intalled Expect manually
<1> something's broken with cpan here
<0> eMishGLX: do you mind reconfiguring it?
<0> (eMishGLX: if not then type o conf init in the CPAN shell)
<3> guys
<3> don't slap me
<1> Ani-_ no
<3> http://rafb.net/paste/results/56HnLf26.html
<1> how
<3> is this example wrong ?
<4> The paste 56HnLf26 has been copied to http://erxz.com/pb/2022
<0> Sir_J: Believe me, if I could I would.



<0> mauke, still not ready to give up? :)
<2> Sir_J: -W looks wrong
<1> Ani-_: so, how do I reconfigure it ?
<3> mauke, why
<2> Sir_J: why not -w?
<0> eMishGLX: type o conf init in the CPAN shell (as in, in the thing you typed install Expect)
<3> mauke, I've chaned it
<2> Sir_J: why not 'use warnings;'?
<0> (mauke: -W enabled warnings in modules aswell)
<3> still works
<2> Ani-_: I know, I'm just asking why he's using it
<3> mauke, the same I think
<0> You know? You can't because it's wrong what I said. :)
<0> Should have said something like: enables all warnings regardless of no warnings.
<3> still works :)
<2> oops
<3> what ?
<2> Sir_J: why did you change it?
<3> mauke, coz u asked me :)
<2> no, I didn't
<3> mauke Sir_J: why not 'use warnings;'?
<2> yes. note the "why".
<2> it means I expect an explanation
<3> mauke, I actually don't know the difference between -(w|W) and use warnings
<3> prpbably use warnings recommended way
<3> *probably
<2> yes, 'use warnings;' is preferred. see perldoc perllexwarn for details.
<4> yes: Type 'perldoc perllexwarn' in your shell or go to http://perldoc.perl.org/perllexwarn.html
<3> mauke, oke-oke
<2> $A's scope isn't narrow enough
<1> Ani-_++++
<1> "o conf init" helped
<2> I don't like the ref $A eq 'A' check
<1> it installed Expect after that
<2> new A; is still horrible
<1> who can recommend decent provider for a shell account
<3> mauke, why not enough narrow ?
<2> Sir_J: $A is visible in new for no good reason
<5> what does this "l! a*" means in pack("l! a*", $var, "string") ?
<2> I don't know, check the docs
<1> perldoc -f pack
<4> Type 'perldoc -f pack' in your shell or go to http://perldoc.perl.org/functions/pack.html
<3> mauke, oke you right I'll use Singleton->getInstance instead of creating new
<5> in doc there is nothing about "!" and " * "
<2> yes, there is
<2> Sir_J: here's my version: http://rafb.net/paste/results/GQvaef18.html
<1> yes there is
<4> The paste GQvaef18 has been copied to http://erxz.com/pb/2023
<1> perldoc -f pack| vim -
<6> _Perl_: there is, you have to read further, but we can tell you
<1> then /!
<3> mauke, thank you very much
<6> "l!" means a native long, which can be longer than a "l" which is always 4 bytes
<7> hola
<5> thanks I have found it.
<6> "a*" just puts a string of any length in the result as is I think
<6> btw, the ruby documentation of pack and unpack is a bit more easy to understand, but you have to take care as it differs from perl somewhat, eg iirc unpack "A*" works differently
<5> now, I have a utf-8 encoded string and I want to send it using msgsnd(). For that I am using msgsnd($rcv_id, pack("l! a*", $rcv_type, $RecievedMsg), 0). but it is not writing to the queue. checking the pack output changes some characters in the actuall string to some garbage.
<5> what is the problem



<6> but the perl docs of pack have improved too in 5.8 and it's more thorough and more definitive
<2> what kind of garbage?
<5> some binary non-printable and printable characters.
<2> ok, testcase?
<5> like "oo:ZYK:zind" is changed to "ooZYKzind"
<2> looks ok
<5> then it should write to the queue, without any issue.
<6> can it be an encoding issue? do ascii characters ever get changed?
<8> "ooZYKzind" is the ascii(/byte) representation of "oo:ZYK:zind"
<2> 0xe2 0x98 0xba is the UTF-8 encoding of WHITE SMILING FACE
<5> the actual concern is about it's behavior about not writing to the queue.
<6> where do you get $RecievedMsg from?
<9> anyone knows if Perl 5.8.0 has parsing bugs?
<10> Can anyone tell me what the technical name for this type of statement is called?
<11> LpSolit: not any knwon ones
<10> $self->{param}->[0]
<2> expression statement
<6> LpSolit: I think there's one with qw
<6> I'm not sure though
<5> inside the program I get a message "abc:ZYK:sender:reciever:message string", and after packing it looks like "yabcZYKsenderrecievermessage string". But it is not written to the message queue by msgsnd().
<9> Ikarus, b_jonas: http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/Bugzilla/Auth.pm
<12> LpSolit's url is at http://xrl.us/oyfu
<10> mauke, :| thanks, but I didnt mean statement, I cant think of the exact word because variable keeps on coming in my mind
<2> expression?
<9> Ikarus, b_jonas: when compiled with Perl 5.8.0, we get errors, see http://tinderbox.mozilla.org/showbuilds.cgi?tree=Bugzilla
<9> the Perl 5.8.0 etlicon box is burning
<9> if you click the "L!" link, you will see the error message
<5> $RecievedMessage = "abc:ZYK:sender:reciever:message string";
<11> LpSolit: I will check after I get my daily shot of digicrack
<9> Ikarus: ok
<2> looks like it's trying to run the POD
<11> Looks like it
<5> mauke: In an another program, the same code works fine without any issue. but with the string hardcoded and not taken at run-time.
<6> LpSolit: which L! exactly?
<2> http://tinderbox.mozilla.org/showlog.cgi?log=Bugzilla/1152600608.30940.gz&fulltext=1
<12> mauke's url is at http://xrl.us/oyfw
<5> let me tell you the fact that the culprit code works as a perl plugin inside another program.
<9> b_jonas: the one mauke pasted here
<2> the line numbers are totally off
<11> mauke: no, they are not
<9> b_jonas: that's the upper one in the "perl5.8.0 linux etlicon" column
<9> "View Brief Log" can also be used to only see the error
<9> mauke: yes, exactly
<9> mauke: no idea why
<5> mauke : did you got my problem?
<11> LpSolit: my best guess would be a run away quote or something
<11> But it doesn't make sense
<11> LpSolit: which was the last version that ran succesfully ?
<10> yea any idea what its called, I'm trying to google it, and learn more about it
<2> LpSolit: hah, got it
<2> WHY THE **** ARE YOU USING Switch IN PRODUCTION CODE
<11> ah
<11> That is asking for trouble considering it is implemented using a source filter
<9> mauke: that's the first time we use Switch
<9> what's wrong with it? :)
<11> LpSolit: read the docs next time
<11> LpSolit: it doesn't work reliably
<2> LpSolit: dude, it's a source filter
<11> LpSolit: it is implemented using a source filter, source filters are not a good idea
<13> i have a perl script that uses two packages; how do i bundle the whole thing into a click install thingy. What perldocs do i need to read. This is on windows.
<11> LpSolit: see the part in the doc on Switch that says:
<11> BUGS
<11> There are undoubtedly serious bugs lurking somewhere in code this funky
<11> :-) Bug reports and other feedback are most welcome.
<11> And the author isn't kidding
<6> _Perl_: if it works with a string hardcoded, but not in this code, I think you should examine the way you get the string.
<9> Ikarus: what do you suggest to use instead of Switch?
<11> hold on
<2> LpSolit: run this and see for yourself: perl -MO=Deparse -MSwitch -e 'switch ($fail_code) { case AUTH_ERROR { do_one_thing() } case [FOO, BAR] { do_other_thing(); } else { throw_error(); } }'
<9> here is how we did till now: http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/process_bug.cgi#999
<12> LpSolit's url is at http://xrl.us/oyns
<11> LpSolit: how about a for loop on a hash of tests and subs to do when they succeed ?
<11> LpSolit: that is how I did it last time
<11> LpSolit: or do you always last ?


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

skip badblocks dd
cod2 on unbuntu
date_format() expects
sbin/depscan.sh
detected another electricsheep process
WARNING **: Error saving passphrase in keyring.
ubuntu dapper disable animation
spivak a first course in complex variables
CF +dma_timer_expiry
restrt network interfaces kubuntu



Home  |  disclaimer  |  contact  |  submit quotes