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



Comments:

<0> Yeah
<1> finally a full-text search on the faq
<0> I'll have to think about that one
<2> Botje: I know you can get something like that in the Technion if you p*** some tests in a certain psychological institute or stuff.
<3> rindolf: nope. If I take care it isn't too bad.
<0> I was considering just doing perldoc -q
<2> Botje: OK.
<3> rindolf: what language are tests taken in Technion? Hebrew?
<2> Botje: well, I wrote them in Hebrew, and the questions were phrased in Hebrew.
<3> ah.
<2> Botje: for SICP we received English homework, and possibly also English tests.
<3> yes, I can see why
<2> Botje: but there was an American exchange student who studied with me for a year, who didn't know Hebrew very well.



<2> He talked about some arrgangement they made to him so he can write the tests in English.
<3> that would remove some of his handicap, I guess
<3> but it creates extra work for the teachers too, of course
<2> Botje: he was actually a Christian. He studied at Virginia Tech.
<2> Said the Technion was harder than VT.
<3> I can believe that.
<4> rindolf: oops; one evil thing is that I forgot an ; after the catch block and it silently did something strange (ignored the exception)
<2> pasky: yes.
<2> pasky: like I said Error.pm is highly magical.
<5> how can I tell the las time a file was modified ?
<2> the_SB: hi.
<5> hi :-)
<2> the_SB: perldoc -f stat
<6> stat. To access this perldoc please type, at a command line, 'perldoc -f stat'. You may also find it at http://perldoc.perl.org/functions/stat.html
<4> rindolf: it should be at least noted in bold in the documentation, I guess :)
<7> it's always those pesky off by one sharater syntax that get you good.
<8> OBOEs. off-by-one-errors
<5> thanks
<1> HOBOEs - hidden off by one errors
<1> **** HAPPENs - some hidden interference tanked, helps another probable problem emerge nastily
<2> Recently I back-ported some code from PHP 5 to PHP 4 by removing one "&".
<9> talking about "&", merlyn why is still used in the Llama book for sub calls?
<2> fxn: which edition?
<2> Hi fxn
<9> rindolf: I have 3rd, I saw a quote from 4th
<2> fxn: I see.
<2> eval: &substr("Hello", 1, 2)
<6> rindolf: Error: Undefined subroutine &main::substr called at (eval 129) line 2.
<2> Hmmm...
<2> I thought it wouldn't work.
<10> Why would you think that?
<11> should print "hello\a"; give me a bepe?
<2> I used to use & so vim will highlight it in a purty colour.
<11> beep*
<2> profoX`: yes.
<2> profoX`: \a is the audible bell.
<11> rindolf, why doesnt it ;P
<11> rindolf, think pc speaker is broken ?
<12> profoX`: because your terminal doesn't feel like it ;)
<2> profoX`: or your desktop traps it.
<11> anyway, wasnt really asking for myself ;) someone asked the question to me ^
<2> profoX`: or you have a sound device sharing problem.
<13> if i eval {die "x";}, how do i access the die message?
<9> adante: $@
<2> profoX`: I don't hear it either.
<11> rindolf, the audible bell, does it output audio to the pc speaker, or to the speakers, or what
<2> profoX`: it depends on your terminal.
<13> cheers
<11> oh than it makes sense why it would or would not work
<9> adante: if you add \n to the end no additional stuff is appended
<10> profoX`: Make sure you don't have the sound bell disabled in your terminal emulator



<11> eggzeck, rindolf, yes thanks, i already told him about it :) i hope he gets it
<14> oh ****ing world cup -_-
<13> fxn: clever! can $! be used as well?
<11> eggzeck, rindolf, its working. thanks
<9> adante: nope, that variable is used for different stuff
<3> hungry: there's a world cup on ****ing now?
<15> Alright, I never use fork() but...once I call fork() it starts a child at the current point in the program?
<15> So if I call fork() and then call a subroutine that does its job and exits...is that what I want if I just need a subroutine working?
<3> yes
<3> but both parent and child see the fork().
<3> you have to check the return value to see which one you are
<15> next if $kid = fork;sub(); and then within sub if(undef($kid)){exit}
<15> right?
<15> for the child
<3> next only works on loops ..
<15> yeah that is within the parent
<3> my $pid = fork(); die "fork failed: $!" unless defined $pid;
<3> if ($pid) { #parent } else { #child }
<3> so your use would be correct, then.
<1> g0st - I gave you the code
<1> what happened?
<1> did you get a brain transplant?
<15> That was a lot of code.
<1> that was exactly the code you needed!
<16> Oh for the love of Christ.
<1> you said "run a subroutine in a child
<1> that's what I gave you
<15> i got it now
<1> ... http://cl1p.net/forking-good-code
<1> just take that, and PUT YOUR SUBROUTINE where it says "do your subroutine here"
<1> can'tbe much simpler
<17> Hi
<18> anyone use Spreadsheet::WriteExcel? I upgraded and am having problems formating url's. my labels are now getting interpreted as numbers and showing up in scientific notation. Anyway to force the cell type to text?
<17> merlyn, maybe they didn't notice you were talking to them?
<1> he said "cool" before
<1> ...<15> merlyn, thanks
<17> Um..
<17> I've got this:
<15> merlyn, i've got it man
<17> my $lasttime = time; while(1) { my $curtime = time; if($lasttime-$time > 5) { do_stuff() } }
<1> see - he gots it. :)
<17> I think that will be very hard for my processor to take if it's running fulltime
<1> you have $curtime and $time
<17> isn't there a better way?
<1> do yo umean $curtime or $time
<19> hello, i'm wondering, what is the best way to retrieve the last line of a file?
<1> you should probably sleep
<1> Spetsnazgg_ - File::ReadBackward
<17> Um, $curtime
<20> um, ex?
<19> merlyn: thanks..
<1> do you just want to do something every 5 seconds?
<17> Yea, merlyn, but I need to do more than that in that loop
<17> merlyn, No, I need to do something when stuff arrives at a socket
<1> dazjorz - POE!
<1> gotta use the POE
<17> merlyn, wether that's the main listen socket or another


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

bernulli's principle wikipedia
#php
radrails libgtk
#kde
#linux
#linux
#perl
yast inst_sources
#math
FPDF mySQL with Barcode



Home  |  disclaimer  |  contact  |  submit quotes