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



Comments:

<0> and the percentage completed will be display until 100% is reached
<0> so wolverian poe is a like a shell?
<0> event driven like, when ftp server is requested attention?
<0> basically it uses interruptions....?
<1> hello
<2> caonex, not really. it's a library that uses callbacks to handle things a bit at a time. check out co-operative multitasking on wikipedia and read the POE docs
<3> away sleep
<1> what are some good perl pluggins for eclipse that i can use with activestate perl
<4> is "" consider undefined or just null?
<5> neither
<5> it's a zero length string
<4> does undefined == null?
<5> there is no "null" just undefined
<4> okay
<5> to be checked by defined()
<6> im trying to figure this out right now but can a function call itself so as to make recursive funciton definitions possible?



<7> of course
<8> merl15: just be sure to use parentheses.
<8> it should work easily.
<6> ok
<6> thanks guys
<9> is ($data=~/^ing/i) is this correct regexp for finding out if $data starts with the word ing* ?
<8> Rockj: it'll also match "ingf etc"
<8> but otherwise yes
<10> What's the simplest way to download a known, fixed amount of characters from a uri (via http) and then stop? I'm trying to read a stream's currently-playing title.
<9> so how could I make it detect ing[0-9][0-9] ? ex: ing98 ing04 Sorry for asking such newbish regexp's.
<7> b0at: isn't there an ICY protocol for doing that?
<8> b0at: there's an LWP::UserAgent option for reading only a certain amount
<8> b0at: and LWP might support ICY responses
<11> Rockj: like that
<10> Ok, thanks.
<10> infi: I'll look into that
<10> I have no idea what it provides
<8> the "ICY protocol" is just http with an extra header possible, icy-metadata
<7> what's the base stream format?
<8> if you don't send a request with it, it won't act any different than http
<7> oh, you said, http.
<10> Ah, so if I could just grab that and quit it'd be perfect
<8> (with icy-metadata: 1)
<9> mauke: I think it maybe would be something like /^ing[0-9][0-9]$/i ?
<8> b0at: actually...
<8> b0at: most servers send that data in the headers
<8> so if you can just get the headers, you should be able to scrape what you need out of that
<10> Well, "head uri" doesn't have it listed
<8> try curl (-v). i don't trust lwp completely.
<8> and -o /dev/null, of course
<10> The stream metadata seems to be encoded in the file; it's nsv, and its format has a place to store it
<12> Could someone eplain to me what you would use =~ for? Or show me a reference to it? I can't seem to find any.
<13> Yawgmoth7: Regex operators.
<13> Perlop.
<10> Though they could've used some of the icy headers
<12> Okay, thanks
<12> I'll look tht up
<8> b0at: there's two ways it could be encoded... icy headers and icy-metadata interspersed into the stream, or id3 tags
<12> Saw it used in a a script I was looking at and thought "o_O" to myself
<8> given you're talking to an icecast/shoutcast-compatible server
<12> eval:print "blabla";
<14> Yawgmoth7: blablaReturn: 1
<12> err
<15> hiya. i'm strugglin to try to find a decent work regex. I need to match a word with boundries, as long as it is NOT within any html tags
<11> thecheerios: bzzt
<16> use a HTML parser!
<11> well, a HTML parser won't help if it's not HTML
<16> well there are HTML tags :)
<16> it's at least broken HTML
<11> not necessarily
<11> it could be plain text
<15> well, for example
<15> <img src="..." alt="some word or phrase here">blah blah some word ...
<15> i want to grab 'some word' but i dont want it to grab what's in the alt
<15> but i dont want to STRIP the tags out
<11> oh, that
<11> yeah, use a html parser
<15> if possible, i wanna avoid an HTML parser hehe
<11> how are you going to parse html without a html parser?
<17> Don't avoid that wich you need
<17> s/wich/which/



<11> (note: "a html" is actually correct if you pronounce "html" in german)
<15> well, i understand what you're saying
<18> eval:system('strace perl -e "print \"blabla\""'
<14> lala: Error: syntax error at (eval 142) line 2, at EOF
<18> eval:system('strace perl -e "print \"blabla\""')
<14> Killing 681 due to run time
<11> lala: print on unopened filehandle blabla
<19> When I request https://www.ivyware.net/secure/LoginAuth my error logs get the message: "[Mason] Cannot resolve file to component: /www/sites/ivyware/secure/LoginAuth (is file outside component root?)" And that is true, because the comp root is /www/sites/ivyware/htdocs/, not /www/sites/ivyware. I have no clue why it's trying to resolve /www/sites/ivyware/secure/LoginAuth and not /www/sites/ivyware/htdocs/LoginAuth
<16> DocumentRoot?
<19> the DocumentRoot is /www/sites/ivyware/htdocs
<19> I understand that Mason uses the DocRoot as the MasonCompRoot by default
<19> oh, btw; mason works fine over http://, it's the https:// stuff that's resolving incorrectly.
<19> ahh, i got it
<19> an old now unnecessary ScriptAlias was messing it up
<20> rutski89: mason is similary to django?
<19> django? http://search.cpan.org/search?query=django&mode=all
<21> django is python's MVC web framework, iirc.
<22> bkolden had a nice quit message there. :)
<21> Ruben - Catalyst is Perl's best equivalent, I believe. Mason is a templating system.
<20> ok, thanks
<20> yes, djanjo uses python
<23> mason is slightly more than a templating system. But it's no Catalyst either :)
<16> hmm another thing with permanent training wheels? :)
<19> Mason rocks :)
<19> well, at least I like it
<19> so if django is python's MVC framework, Catalyst is Perl's, and Mason is a templating system and then some.
<19> what's PHP?
<20> rutski89: hehehe
<20> a deprecated lang?
<20> not sure :D
<19> exactly :)
<20> yeah
<13> YAY
<23> BUU
<13> What?
<13> rutski89: An overgrown templating system
<23> nothing
<23> buu: If that's the case why do you need to add a templating system to it? ;)
<19> I really don't get why people are into PHP
<19> it's so ugly
<13> hobbs: You don'
<13> t
<13> Sigh
<13> Frigging idiots, why the **** people release torrents of .rar chunks
<24> buu, because they want to waste your time downloaded a protected rar and searching for a p***word that doesn't exist
<25> same reason they rar up already compressed files to begin with
<13> Kulrak: They're retarded?
<25> buu: exactly
<20> one stupid question, what is this editor? or what is?
<20> http://www.ajaxian.com/archives/catalyst-movie.png
<16> textmate
<20> is the same editor?
<20> http://rubyonrails.com/screencasts
<20> texmate, uhmmm
<26> I don't suppose there's any way to preserve the blessing on a reference from a do($file) is there? I have files returning hashrefs, sometimes with an object in the mix.
<16> looks the same but you can't really trust that sort of thing these days
<26> I think I'm just going to end up changing my design scheme.
<20> Khisanth: this program is avaiable for unix?
<16> if you count OSX as unix
<20> well :D
<20> linux or BSD for example?
<13> Kinks: What do you mean.. preserve?
<16> Ruben: no
<20> Khisanth: :/
<26> I mean after it's returned, it's no longer blessed, it just sees it as any old reference rather than an object.. meaning I have to bless it in the result of do()
<16> "countless requests for both a Windows and Linux port, but TextMate remains exclusive for the Mac, and that is how we like it!"
<26> maybe I should just give an example, my wording is kind of crappy.
<16> buu: is the combined size of the rars larger than the actual files? :)
<13> Khisanth: Yeah
<26> perlbot paste
<27> 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
<13> Kinks: Er, really?
<26> unless I'm doing something horribly wrong, yes
<13> Kinks: buu@ded430-deb-175-30:/tmp$ perl -le'sub foo { } print $x=do "ret.pl";$x->foo'


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#math
#oe
#physics
coolcubix
#perl
how to boot from an ISO
#web
umount: it seems /dev/hda is mounted multiple times
#mysql
#gaim



Home  |  disclaimer  |  contact  |  submit quotes