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



Comments:

<0> looking for a module that will simply download a file off the web and save to disk - I've found Net::Download::Queue but it wants to install a bunch of database stuff too. Anyone know of any easier ways?
<0> ECarroll: haha i'm in texas too, i love it
<1> Berto: Excellent.
<2> Berto: LWP::Simple, getstore
<0> mauke: ahhh thanks -- googlign for "download file in perl" is the worst thing ever :)
<0> ECarroll: where you at? i'm in austin here
<1> Houston
<1> later, I'm going to go running before it cools down
<1> AFK.
<0> haha nice... enjoy
<3> O.o
<3> nice method name: http://search.cpan.org/~pgollucci/mod_perl-2.0.2/docs/api/Apache2/RequestRec.pod#***backwards
<4> rutski89's url is at http://xrl.us/mz4j
<5> can someone help me figure out how to put this data (http://www.ericdaugherty.com/trainschedule/upw.xml) into a SQL database? the code i can figure out myself, what i'm more looking for are suggestions on designing the DB , like what kind of columns i should have and stuff.
<3> zack_: which DB are you going to be using?
<5> MySQL



<6> load it using your choice of XML cl*** then normalize.
<6> kind of an ugly mix of atributes and contents there.
<6> normalization design depends alot on the queries you're going to make.
<6> for basic "rip data from xml" stuff I still like xsh.
<5> xsh?
<7> Is there a function that takes a path and a regex, then returns an array of filenames of files in the given path that match the regex, complete with path?
<6> http://search.cpan.org/~pajas/XML-XSH-1.8.2/lib/XML/XSH.pm
<8> Perl.
<2> Aerdan: not really
<6> File::find?
<7> Okay. I figured I'd ask if there was a wheel I'd be reinventing before I set out to reinvent it.
<9> And the programmer to go with it.
<2> Aerdan: perldoc -f glob
<8> cfedde: It has "xcopy". It needs to die ;)
<6> hobbs: xcopy?
<7> mauke: glob() appears to take a regex and search the whole filesystem. :\
<2> uh, no?
<6> Aerdan: not the whole file system. just the pwd
<6> cwd even
<6> or what ever directory it is given.
<7> basically, I want something that fits this description:
<10> woah, Aerdan :O
<7> ** Returns an array with complete paths to all files in path. Omits the entries "." and "..". If slash is not specified, "/" will be used. You may specify a mask using "*" at the start or end of the string as wildcards. For example, "*.php" matches all files ending in ".php", "php*" will match all files starting with PHP. "*php*" or "php" will match all files containing "php" anywhere in their filenames.
<6> Aerdan: then Get Busy with File::Find.
<5> ahh, f'ing file::find
<2> Aerdan: glob "/foo/bar/*.php"
<7> ah.
<7> okay, cool, this does what I need without any special magic.
<11> mauke: that will recurse?
<2> Khisanth: no
<6> I'll point to File::Find once more. Sheesh!
<2> but that's recursive!
<6> that's what he's asking for isn't it?
<3> is Apache2::Request->new($r) supposed to clobber all outgoing headers?
<12> Aerdan: you can use a combination of modules. Or simple: chdir $dir or die "Could not change to directory: $!"; @files = glob "*.php"; foreach $file (@files) { if ($file =~ /WHATEVER/) { do this... } }
<2> why chdir?
<12> Aussuming he doesn't want to glob from cwd ;)
<12> Which I would use Cwd; for anyways.
<12> s/Aussiming/***uming/
<13> Hi, in the perldoc page for 'keys' i don't understand what the '<=>' operator does, can someone please explain it to me?
<12> It's called spaceship operator
<13> hah
<12> And it compairs $a and $b to sort
<13> thanks\
<12> Oh, and it sorts by number
<12> cmp for string
<13> thanks
<14> Quick question on redefined errors (in command line, not Apache)
<14> If one sees a double slash (Subroutine X redefined at /usr/local/lib//double.pm) is that an automatic clue?
<15> nope
<14> snap
<14> I'm seeing three sets of double slashes on some of these.
<14> Subroutine reshape redefined at /usr/local/lib/perl/5.8.7/PDL//Graphics//TriD//GL.pm line 649.
<12> eval: @numbers = (1, 3, 4, 14, 21); @sorted_numbers = sort { $a <=> $b } @numbers; @sorted_numbers
<16> eggzeck: Return: 5
<8> actually it could mean something. Might explain why it got double-included in the first place. But why would it happen?
<15> perl -le 'print grep m{/$}, @INC'
<13> perl is awsome!
<14> s/w/we/
<13> awesome
<12> I wonder why buubot returned the size of the array instead of whats in it.



<12> eval: @numbers = (1, 3, 4, 14, 21); @sorted_numbers = sort { $a <=> $b } @numbers; print "@sorted_numbers"
<16> eggzeck: 1 3 4 14 21Return: 1
<2> because eval runs in scalar context
<12> Oh I see. Thanks.
<12> And I just noticed I gave it a sorted list of numbers anyways, HAGA
<13> eval: print "hello world";
<16> nachos: hello world Return: 1
<12> eval: @numbers = (14, 1, 3, 4, 21); @sorted_numbers = sort { $a <=> $b } @numbers; print "@sorted_numbers"
<16> eggzeck: 1 3 4 14 21Return: 1
<13> very cool
<12> there we go :P
<2> eval: [sort {$a <=> $b} (14, 1, 3, 4, 21)]
<16> mauke: Return: [1,3,4,14,21]
<13> isn't that a tad unsafe?
<12> What is?
<13> having buubot eval anytihng?
<12> No
<2> no, it's not my machine
<13> eval: system("uname -a");
<8> nachos: people try to break it. Nobody's been able to in quite a while.
<12> Yeah.
<8> eval: fork; $!
<8> hey, where'd the bot go? ;)
<13> hah
<8> mmm. I'm sure buu's going to be happy about that. His host apparently flaked out on him again
<12> Well that was unpleasant.
<13> leedee dee dee doo...
<17> hurm
<17> Windows Vista
<12> And what was the point of that?
<17> I feel like this might be the left jab that gets followed by a right hook for microsoft's operating system division
<12> Are you insinuating that WV will be great?
<17> how did you extract that from my comment
<8> no, he's insinuating that it will punch you in the face
<8> which sounds about right
<17> if it took microsoft 5 years to wind up a left jab, it'll take them 10 years go pull off a right cross, they'll surely be ****ed by then.
<18> How do you capture (first choice) or hide warnings from another module?
<8> b0at: perldoc -f warn :)
<18> hm... sig warn, I don't even remember reading that before
<18> Hot damn
<17> I've spent the last two hours reading windows vista promotional material, and I have yet to see a reason to use it other than maybe if I wanted an interface that looks sort of like OS-X but didn't need to run on apple hardware, but wouldn't run on my hardware either since I really need a gig of ram and 128mb of GPU memory, and a GPU that has WDDM driver support and I don't even know what the...
<17> ...hell that is
<12> $SIG{'WARN'}
<8> b0at: if you want to only trap warnings from a given module, you should be able to use caller(1) to find out where the warning came from and re-call warn if it wasn't where you expected :)
<14> Wut Duz Dat Mean?
<18> In this case I can restrict where I use the module to boil it down to { local $SIG{__WARN__} = ...; foo(); }
<8> tag: I believe it's the replacement for DirectX
<8> b0at: ought to work too :)
<12> oh yeah, it's $SIG{__WARN__}, oops :P
<8> tag: with more OS integration, of course ;)
<17> http://www.ubuntu.com/desktop
<17> dapper released
<3> Messages caused by "use warnings" in my apache handlers are going into /opt/apache/logs/error_log, but I would rather them go into the vhosts error logs are /www/addons/logs/error_log, is that possible?
<17> it's pimp, I've been running it for th elast three months
<11> tag: old news!
<12> tag: Are you just finding out about this?
<11> although the installer was pretty nice
<12> I've had dapper for months now (beta of course).
<17> eggzeck: Me also, but I didn't know they finally released it (non-beta)
<11> however the dist-upgrade didn't go too well, it uninstalled my xserver without installing a new one!
<12> tag: How could you not have known?
<8> tag: yeah, 6/1
<17> eggzeck: uhm, I didn't ever look at the website? It never popped up any thing that says "Now you're running Ubuntu 6.10 TLS, Not 6.10 Flight 8!"
<17> or LTS
<17> or whatever the
<8> It's not October yet ;)
<17> yeah, 6/1
<17> you're giving me **** like it was a month ago
<17> go to hell folks
<17> heh
<17> it's been 3 bloody days
<12> No dude, if you've had beta, you shoudl have known.
<17> how would I have known?


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#physics
tablecontentparser ubuntu
#linux
ubuntu ati driver cannot login
ubuntu unreal tournament segmentation fault
#fedora
#lisp
#kde
postfix subsystem private/scache: No such file or directory
xlib6g ubuntu



Home  |  disclaimer  |  contact  |  submit quotes