| |
| |
| |
|
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> hi, what's the difference between a hard interrupt and a soft interrupt ? <1> not <1> any howto <1> ? <2> MaikelNai: that is the howto! <3> yrlnry: here? <4> ping <3> yrlnry: hi. <3> yrlnry: you've mentioned a certain web scraping module in HOP. What was it? <2> yrlnry is apparently such a perfect acoustic mirror that he responds to pings with pings, instead of pongs. <4> WWW::SimpleRobot, I think. <4> Ave Wrigley <3> yrlnry: yes. <3> yrlnry: he also has WWW::Robot. <3> What's the difference between them? <4> I don't know.
<4> Probably one is even more overwritten than the other one. <4> I am about to write a base cl*** for operating on flat text files like the Unix p***word file. Has someone done this already for me? <5> Um. Tie file? DBD csv? <5> Ignoring the obvious getents <6> i'm sure cpan has at least one module matching p***wd <7> I need help installing 2 perl modules XML::Grove and Net:DBus <7> the install says they fail test and won't install <7> what should I do? please <3> hussam: didn't you also post to the perl community in LiveJournal? <5> hussam: Fix the failing tests. <3> hussam: not that I mind helping you now here. <8> I remember I found a weird bug in the CSV DBD <3> hussam: have you tried downloading them from CPAN and installing them using perl Makefile.PL ; make ; make test ; make install? <2> hussam: An error message isn't an invitation to panic and ask people to fix things; it's an invitation to read it, find out what it thinks is wrong, and do something about that <3> hussam: what is your distro? <2> hussam: "do something" about that might include asking people to fix things, but in a much more _informed_ sort of way <7> archlinux. and I know extremely little about perl <7> rindolf: that's the method of installation I used <1> i try to create the regex <3> hussam: I see. <7> this is the error http://pastebin.com/770366 <9> The paste 770366 has been moved to http://erxz.com/pb/1457 <1> $url =~m{([^/]+)/?$1}; <10> MaikelNai: And? <1> my filename = $1 <1> but not works <2> MaikelNai: that doesn't make sense <1> ? <10> MaikelNai: You don't need that $1 in there <10> MaikelNai: take it out <1> ok <1> but $ <1> ? <10> MaikelNai: And that regex is not what you want, I'm almost sure. <2> Or even close. So why not use URI? <1> :/ <1> :( <1> i don't understand you <2> I've notice <1> i want to get the same namefile from http://example.com/file.html <2> d <2> MaikelNai: Yes, we know this. <1> but i don'tunderstand you <2> MaikelNai: USE THE URI MODULE TO GET THE NAME SO THAT YOU CAN GIVE IT TO LWP <1> ok <1> i odn't understand you at last <1> sorry sr <10> MaikelNai: use URI; <1> ok <1> and later <1> ? <10> MaikelNai: Then in your terminal type this: perldoc URI <1> ok thanks <11> "godzirra" at 71.16.83.66 pasted "speed issues" (19 lines, 816B) at http://sial.org/pbot/17650 <12> Can someone take a look at that and tell me if there's anything I can do to make it faster? <1> works <1> thanks <1> the regex, that paste here <1> works fine <1> thanks all <13> Is there a call that turns "a/b/c/../t" into "a/b/t"
<2> godzirra: isn't that why fetchall_hashref exists? <13> I thougth File::Spec::canonpath would do that but it doesn't. <14> bronson: "No physical check on the filesystem, but a logical cleanup of a path." <13> mauke: Right. Isn't that a logical cleanup? <1> not sorry, not works <2> bronson: It actually mentions this specifically in the perldoc in the section for canonpath <1> goes to read perldoc <14> bronson: dude, read perldoc File::Spec <9> File::Spec. To access this perldoc please type, at a command line, 'perldoc File::Spec'. You may also find it at http://perldoc.perl.org/File/Spec.html <2> bronson: no, because logically a/b/c/../t isn't necessarily a/b/t <14> it explains exactly what's going on <15> is there some way to use one of the $sth->fetchall's to get a column from a select into an arrayref? <13> Be that as it may, is there an easy way do clean up the path? <13> Turn .. into actual parent dirs? <2> bronson: READ THAT SECTION IN THE PERLDOC <13> I DID. <14> bronson: then you know how to do it <2> bronson: Including the part that says "If you want to do that then here's the function you should call" ? <13> My perldoc doesn't say that. <13> It's two lines. <14> what two lines? <13> One of which mauke pasted here, the other is just an example call. <11> "hobbs" at 67.95.66.69 pasted "perldoc File::Spec" (11 lines, 587B) at http://sial.org/pbot/17651 <13> that's all my perldoc says for File::Spec::canonpath <14> bronson: what's the next line? <13> hobbs, thanks. <16> Lafy, what's wron with while ($sth->fetch()) { print "row from column: $row";} ? <13> mauke, the description for catpath. <14> hobbs: do you have buubot on ignore? :-) <15> tkup: that's not what i asked for? <2> bronson: catpath is about two pages further down here <16> Lafy, my bad then <2> bronson: how old is your perl? ;) <13> Not that old... weird. <14> corelist: File::Spec <9> File::Spec was added to Perl5.005 <2> mauke: huh? <14> hobbs: buubot gave a link to the latest File::Spec docs <0> yrlnry, yes <2> mauke: ahh <0> yrlnry, it's called getent() <17> open source blows <13> hobbs, v5.8.7. I can't explain why my File::Spec has old docs... I should investigate. thanks for the paste. <17> if it was done right, i wouldn't need to edit **** myself <18> is there an easy way to subtract the contents of one list from another? <18> sorry, array <0> you shouldn't be editing /etc/p***wd directly <19> can someone help me with a syntax problem I am having? <20> nothing up my sleeve, presto! [roar:syntax error] <19> heheh <2> adante: ***uming the arrays are full of strings, or things that stringify well: my %seen; $seen{$_} ++ for @another; @one = grep !$seen{$_}, @one <8> Ask the question and someone might be able to help. <13> Oh no... <13> I'm doing path manipulations on an IMAP server. No local files. <4> getent appears to be a C library, not a Perl cl***; there is no CPAN module related to getent that i can find. <4> Did I miss something? <13> Cwd::realpath performs its ops on a filesystem. <13> So... guess I'm on my own. <18> hobbs: thanks, i will no spend the next hour attempting to decode that :] <19> i keep on getting arguments do not match in a script I am working on <2> yrlnry: no, pbelau did <19> in a DCOP function I am trying to get to work <2> yrlnry: ***umed you were intending to screw with p***wd, while you were asking for p***wd-format files <4> I'm not even looking for that format specifically. I wanted something that deals with flat files generally. <0> yrlnry, what do you mean "with flat files generallu" <5> yrlnry: And you didn't like my other suggestions? <4> I could write one from scratch, or I could write one based on Tie::File, but it seems like someone would have written this already. <0> you use "open" for flat files, generally <2> yrlnry: DBD::CSV and Text::xSV both do that sort of thing well, for different applications <0> perl should have some kind of interface to getent() for p***wd stuff <2> (Stay away from Text::CSV_XS unless you like ****iness) <5> IT DOES <0> writing a csv parser in perl takes 5 minutes
Return to
#perl or Go to some related
logs:
Kmail LocalFolder #php #suse where is K3bSetup fc5 #perl *** glibc detected *** dsmc: double free or corruption (fasttop) up2date stdout hang #lisp #sdl nytr8
|
|