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



Comments:

<0> Well, you'd need the HTTP RFCs, IIRC 2616/2617.
<0> probably newer now but those will have it.
<0> lemme lookup the header of interest.
<1> thanks again
<0> try http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1
<2> czthwrk_'s url is at http://xrl.us/kntx
<3> what up dudes
<4> OBLIBION
<3> anyone know of a website or similar that contains a list of all of the categories and headings from Perl best practices?
<4> THAT'S WHAT'S UP
<5> hello
<5> I'm kind of having a small reference problem, and I can't figure out how to solve it
<6> wtf is oblibion? another paul graham startup or something.
<5> I've got a hash, %humans...
<5> it contains references to objects, Humans
<5> instances of the package Humans, I mean



<7> same thing
<5> now this package contains a subroutine, processDay, and I want to call that..
<5> I can't figure out how to call it, and I've tried multiple ways
<7> $humans{$name}->processDay;
<5> I need to call it in the middle of a foreach my $human (%humans)
<7> or whatever you are using as a key
<5> where $human is thus the reference to that instance
<5> I mean
<5> foreach my $human (values %humans)
<7> you don't foreach over a hash like that
<8> $human{$index}->processDay()
<7> $human->processDay;
<5> I'm not interested in the keys of that hash, that's why I'm using values instead of keys
<5> ..Is it really that simple? Jeez, I think too hard...
<5> I was wondering about &{$human}->{processDay}->(); really >.<
<6> crapweasel: that's fine.. don't need the each part tho (to be pedantic)
<7> damn it, this gigabit connection needs to move things faster
<5> Thanks a lot :)
<9> yeah. A billion bits per second JUST ISN'T ENOUGH
<6> for my $human( values %humans )
<7> crapweasel: no, you didn't think too hard actually :)
<7> linuxnohow: that is what he has!
<5> okay, it works! Thanks!
<5> now I got another error... hehe
<6> foreach, for.. i just prefer to write four less letters.. oever
<5> in the line next if(%humans == 0);
<5> (the line begins with next)
<5> eh
<5> last if (%humans == 0) actually
<7> if( keys( %humans ) == 0 )
<6> well if %humans==0 you wont get into the llop anyway
<6> loop
<10> scalar(%humans) == 0 maybe?
<5> Yes, that's the idea behind the thing :)
<7> which can only mean you are trying to modify the %humans hash as you iterate ...
<5> I want to prevent to use an expensive keys/values call for something I don't even need
<5> but it returns the string "1/8"
<5> odd enough
<10> (not %humans) would work too
<7> it's only 0 when completely empty
<5> ( Argument "1/8" isn't numeric in numeric eq (==) at main.pl line 29. )
<5> yes, khisanth_, so that line will exit the loop if all humans are dead. :-)
<7> you are either doing something bad or this is irrelevant
<5> And, the line after the while lus is: print "There's no population left. Your people made it to day ",curDay," of year ",curYear,".\n";
<7> so which is it?
<5> hmmm.. I'd choose for irrelevant.
<11> hobbs, integral - thanks again. excel *was* mangleing with "smart qoutes" - what a f*kin misnomer...
<5> But I've had some drinks. So probably i'm doing something bad
<6> crapweasel: if you're doing that inside the loop, don't
<12> is there a way to get at the transport data on the server side of SOAP::Lite. I've tried tacking "+trace => 'debug'" onto use pragmas for both SOAP::Lite and SOAP::Transport::HTTP, but no beans...
<7> crapweasel: that lasf if ... should not be in the foreach
<13> (the Internet) Larry Wall has announced he will sell the source code of Perl to the highest bidder on eBay the 2nd of April. NTB 01.04.2006
<12> the documentation (http://search.cpan.org/~byrne/SOAP-Lite-0.67/lib/OldDocs/SOAP/Lite.pm#SOAP%3A%3ATrace) suggests it should, and it does for SOAP::Lite clients, but it's not working for me in the server
<2> lukfugl's url is at http://xrl.us/knt8
<10> tech: sweeet ^_^ I bid $0.25!
<6> tech is it april 1st already?
<6> where you are
<12> I get nothing on STDERR
<13> linuxnohow, norway
<6> so, it's 12:40AM?
<13> it's DST now, so 01:41



<13> damn your 24 hour clock, though.
<5> I gtg, thanks, bye
<6> that's a good april fools though
<5> (fast) :(
<6> hey crapweasel is from the netherlands
<6> that's (not) interesting
<14> how do I break; from a while { if{break;} } block ?
<6> last if 'linuxnohow rules';
<12> beetlepun: last
<10> last;
<15> "nobod" at 83.217.172.156 pasted "unknown" (10 lines, 254B) at http://sial.org/pbot/16559
<12> linuxnohow: but wouldn't that be an infinite loop?
<14> lukfugl, ok
<14> :)
<6> lukfugl: not really. would always exit on the first iteration
<6> ohhhh now i get it.. that was an INSULT
<12> heh
<16> hey guys, whats does this code do, and how do I reverse what it does, and whats that code in C? http://sial.org/pbot/16559
<6> perlbot: be nobod
<17> <16> CAN I BORROW SOME OF UR BRAINPOWER PLZ? I DONT WANNA LERN PEARL!@!
<0> :>
<7> the code in C? just remove the $
<6> seems like a c implementation of that code would be trivial
<9> that's realy stupid code, really :)
<16> hobbs, I didn't write it :)
<9> and it also shouldn't work
<6> doesn't do anything useful
<9> it's putting 48 bits of data into a 32-bit value :)
<12> so, anyone in here really familiar with SOAP::Lite (server side, not client)
<12> ?
<16> I think the result you get is -1603708
<7> nope
<12> darn
<18> yo dirty mofo.
<18> hey, up, dawg.
<19> with a floor tile MADE WITH LOVE
<18> and Chris62vw !
<19> b i ngo, b i ngo, b i ngo and bingo was his name-o
<18> >:)
<20> hello
<18> ehlo
<19> ihgh
<18> sorry, Chris62vw
<21> yeah, thought so...one of my users talked me into setting up rails again, on webrick. So I did, and within 2 days the damn thing (which is only running one very small blog) is taking up 17% of my memory
<21> I -hate- rails
<22> I'm trying to use perl to execute a program and monitor it's output. The problem I am having is that this program doesn't stop running unless you hit ctrl-c - I did some reading up on exec and fork but everything talks about child processes that exit on their own. I'dl ike to be able to monitor the output and then after a few lines of output, kill the process ...anyone have any tips?
<18> don't use exec
<22> what should i use?
<23> ``
<22> like i said i need perl to be able to monitor each line of output from the program, as the program outputs it. What i will then do is analyze this output til I get what I need and then just kill the process..
<18> backticks as mentioned. or try POE::Wheel::Run
<19> BinGOs, you can ctcp me all you want! I dont see why people care
<18> >:)
<18> I just never seem to catch you, Chris62vw
<18> we are like ships in the night,
<24> atomjack: I'd probably use the pipe form of open(), in order to be able to kill the subprocess when needed
<1> czthwrk_: still around? These cameras use HTTP 1.0, so I won't be able to keep the socket open, correct?
<19> yeah im not around much anymore
<18> =[
<19> dont do much perl anymore either
<22> hmm ok
<23> atomjack, which os? and what program are you trying to execute?
<22> redhat....it's called azap - for scanning QAM_256 frequencies (HDTV tuner card stuff)
<24> atomjack: like open my $fh, '-|', '/path/to/command' or die "$!";
<22> ok..
<24> atomjack: and then while (<$fh>) { # as usual...
<24> atomjack: closing the filehandle actually kills the subprocess
<22> so that will be able to read output from the process as it's executing? it won't wait til it finishes?


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

libmtp .deb cvs
SuSE+libmp4
resizer_reiserfs
Dell 2405fpw linux xorg.conf quadro
gentoo evolution missing icons
#debian
#ubuntu
Session management error adept ubuntu
#openzaurus
#ubuntu



Home  |  disclaimer  |  contact  |  submit quotes