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



Comments:

<0> that's what happens when golfers get fixated on by the public
<1> btw what you think about this code?
<0> the anti-perl people wave golfing as if it's typical perl behavior
<0> and it isn't
<2> what is golfing and japhing
<3> so what heh
<3> people do that with every language
<1> it's the heading in my website @ ilunix.org :)
<4> it's perl extremists! perl terrorists!
<0> I mean, xahlee can rightfully point to japh and golf and say "no real language would encourage this"
<3> people in language wars pull something off the daily wtf and say "Look what you can do!"
<5> merlyn: what about the IOCCC?
<3> yeah
<4> it's a perl jihad on other programming languages.
<3> the IOCCC *started* it



<0> Larry Wall actually won an IOCCC entry
<0> he entered the Perl source code. :)
<3> hahaha
<3> I thought there was a length limit :O
<6> mauke: on the plus side, the IOCCC has uncovered a fair number of compiler bugs :)
<0> but seriously, he wrote a maze-creating program that was shaped like a maze
<0> and yes won that year
<3> so the existence of perl itself is an affront to other languages? :O
<5> http://www.ioccc.org/winners.html#W
<1> LoliDesu, mauke you were serious! :P
<1> oops
<1> stupid xchat.
<1> I mean LOL
<5> there's also http://www.ioccc.org/2000/dlowe.c
<0> Oh - he won twice
<0> thank you tivo
<0> I sure wish tivo-to-go worked on a mac!
<4> mmm. mac and cheese.
<1> why doesn't perl support multi-line comments?
<1> when i program in a computer without VIM and want to comment more than 4 line, that's a real hard job.
<0> =begin COMMENT \n your code here \n =end COMMENT =cut
<7> =cut ... =end
<8> ofer0: would you say that a comment longer than four lines should be in user documentation?
<9> oops
<10> gute nacht
<11> anyone having problems with mysql being unable to "LOAD DATA INFILE" after updating to OSX 10.4.7?
<0> s/mysql.*/mysql/ :)
<1> merlyn, Botje, thanks. didn't know it's possible
<11> merlyn: :-p
<0> ofer0 - you oughta read the faq from time to time
<0> lots of good stuff in there
<0> including that question
<11> PG isn't the be-all-end-all
<9> robkinyon: there's nothing that mysql does, that _something_ else doesn't do better :)
<1> merlyn, yeah.. i'll read it
<0> mysql's crappy replication is offered as an add-on in the pg distro, for example
<0> and there are far better replications available for free and for pay
<12> hobbs: I know of no other RDBMS that does a better job of deciding that 'FOO' = 'foo' ... ?
<9> Woosta: well obviously I wasn't counting THOSE features
<0> mysql is so powerful that it can store a value too large for a field into a field WITHOUT an error! amazing!
<12> :-P
<0> *that's* the kind of power you don't see in most databases.
<9> Woosta: mysql has a lock on the "unwanted features" category ;)
<12> And so powerful it can store 'foo' in an int without even a WARNING
<11> even if i wanted to change, it's still the DB that we're using on this project so i, as the DBA, have to support it
<12> (Well .. older versions didn't warn .. they broke that 'feature' :))
<0> Yes, these square wheels... work nicely on this cart ahead of this horse.
<1> a
<11> :-P
<13> I'm getting "Can't call method "err_headers_out" on an undefined value at /opt/perl/lib/site_perl/5.8.8/darwin-2level/Apache2/Cookie.pm line 83." when I try to call $cookie->bake (this is Apache2::Cookie I'm using).
<11> what does line 83 say?
<13> robkinyon: $r->err_headers_out->add("Set-Cookie", $c->as_string)
<0> I'd say $r is probably undef
<0> did you check when you got an $r
<1> Perl's process, file, and text manipulation facilities make it particularly well-suited for tasks involving quick prototyping, system utilities, software tools, system management tasks, database access, graphical programming, networking, and world wide web programming. These strengths make it especially popular with system administrators and CGI script authors, but mathematicians, geneticists, journalists, and even managers also use Perl. Maybe
<1> you should, too.
<0> I should!
<4> Perl is like a vial with "Drink Me" written on a label on it



<0> ... in hex.
<4> PHP is like a cake with "Eat Me" scrawled on it in crayon
<1> lol :P
<4> I'm here all night, try the veal
<14> japhy: Most web tools can only claim to separate content from presentation, PHP goes futher and separates logic from programming.
<15> is there anyway to tell if a scalar is ascii or binary?
<16> What's the difference between PHP and PCP? I always get the two confused.
<17> heh
<11> sparkman: ASCII is binary
<15> robkinyon: heh, guess i'll have to be more specific
<15> is there anyway to determine if the results of gethostbyname() is an ip (in pack("C4") form) or a host (in ascii form)
<15> the problem i'm having is that the results i'm getting are CNAMEs
<0> sparkman - read the docs?
<0> it only always comes back in a consistent form
<0> you can dump the result to verify that
<11> $ip =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/
<11> or am i missing something?
<0> gethostbyname chases cnames
<0> you'll never see a "cname"
<0> gethostbyname returns the usable "a" record, or nothing
<15> not true
<0> eh?
<0> ... ($name,$aliases,$addrtype,$length,@addrs) = gethost*
<0> see @addres
<0> see @addrs I mean
<0> those are always the ultimate addresses
<15> oh
<15> perhaps
<15> i was using it in scalar context
<0> I suspect you'll always get one of the addresses then
<15> nope
<13> merlyn: yea, doing "ref $r" in the script shows that it's an Apache2::RequestRec as expected. And I do p*** $r to Apache2::Cookie->new() as said in the docs.
<0> give me a host to check with
<0> so far, everything (including cnames) is returning a usable address in a sclar context
<15> $ perl -e 'print gethostbyname("irc.freenode.net"), "\n"'
<15> chat.freenode.netirc.freenode.net24R`@
<0> right - you're printing the list
<0> that's list context
<15> oh
<15> hm
<15> $ perl -e 'print scalar gethostbyname("irc.freenode.net"), "\n"'
<15> R`@
<15> that looks right :)
<15> thanks
<0> perl -le 'print for unpack "C*", gethostbyname("irc.freenode.net")'
<0> that'll print the 4-bytes
<0> perl -le 'print join ".", unpack "C*", gethostbyname("irc.freenode.net")'
<0> that'll print it in "normal" format
<0> at least it seems to be working here
<0> you don't get aliases that way
<0> you'll have to use list context and grab starting at item 4
<11> merlyn: Doesn't unpack() apply list context?
<0> not in this case
<0> looks like scalar context
<0> it's pack that has list context
<11> that's odd
<0> unpack takes only a format and a scalar
<0> so it's scalar context
<11> ahh
<11> good point
<11> i -was- confusing the two
<0> eval:prototype('CORE::unpack')
<18> merlyn: $$
<0> see. $$
<0> eval:prototype('CORE::pack')
<18> merlyn: $@
<0> and there's your list context
<13> I'm getting "Can't call method "err_headers_out" on an undefined value at /opt/perl/lib/site_perl/5.8.8/darwin-2level/Apache2/Cookie.pm line 83." when I try to call $cookie->bake (this is Apache2::Cookie I'm using). Line 83 is $r->err_headers_out->add("Set-Cookie", $c->as_string)
<0> rutski89 - as we said before, when that call is being made, $r is undef
<0> that's what your error is
<0> you have to find out why $r is undef AT THAT MOMENT
<0> don't repeat your question without adding what you now know
<13> merlyn: hmm... ok; I'll go and mess around with the guts of Apache2::Cookie then


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

keylogger showkey
#linux
sendmail smart relay host sendmail.cf aix
pyparsing function call
rdesktop copy clipboard dapper
#lisp
ar325w firmware
#linux
#web
#linux



Home  |  disclaimer  |  contact  |  submit quotes