| |
| |
| |
|
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> well, apache runs as a user (normally www, or nobody) <1> tkp - as I said, I understand that <0> ok <1> there's no place in the system that registers "env vars" for a "user" <0> right <1> (Unless you're running on OSX :) <0> that explains a few thing then :) <2> ok, i am just trying to install a module, when i run perl -MCPAN -e shell, then 'install DateTime::Format::DateManip', it tries to fetch //ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz and basically just sits there... how can i push it forwards? <1> do it interactively first <1> and possibly might need to reconfigure from scratch <1> "o conf init" <1> then "o conf commit" <1> and if you need to have FTP proxy enabled, there's an envar you must set <1> I mean "p***ive" <1> you might need "export FTP_P***IVE=1"
<2> what is the links program it's asking me for? <1> (adjusted for your shell) <1> you probably don't have that. don't worry <1> you just need *something* that can download http from the net <1> actually - you don't.. you can bootstrap LWP once you get initialized <1> generally - just hit return a lot. :) <2> thanks for your help merlyn <2> god this is complex <1> the first time, yes <1> you need to tell CPAN.pm how to plug into the network <1> and how to build things locally <2> i more mean the whole sequence of events that led me here.. <1> yes. welcome to yak shaving <1> wiki: yak shaving <3> 'Yak shaving' is a neologism which describes the act of performing seemingly unrelated and often annoying tasks which stand in the way of an ultimate goal. <1> imagine having also to install irc to get to talk to us to get this solution. :) <4> lol <5> hi, i need the user to download a file stored under the web www folder when he clicks a link, i'm using perl and mason, is $r->internal_redirect_handler the way to do it? (doesn't work) <2> hah.. well try this.. <1> that will present the file to the user, unless soemthing is broken <2> i upgraded my mysql server the other day.. which trashed one of my databases for mythtv.. so i had to rebuild that.. and lost all my epg guide data... so i went to the site to download it.. but my ip got blacklisted... so i tried to d/l a screen scraping script to get my guide data.. but of course i need all these perl modules... so here i am :] <1> heh <2> and of course i need this to be done before the italy v germany match in a few hours! <1> heh <2> good lord it seems to have worked! thanks merlyn <5> can you help me now? :p <1> Kilbor - already gave an answer <1> that *should* work. <1> what part of it isn't working? <4> why do epguide blacklist ips? <4> you raped their bandwidth? <5> hm... well the path i give it, it's not the server path is it? <2> you quite possibly saved me from grevious maiming which would have happened if the rest of the family woke up to find the game wasn't recorded <1> internal redirect redirects to a URL <1> of course, it has to be a URL on the current server <2> row: well i didn't think so.. but evidently they do :] <1> so, not a filepath, but a urlpath <1> generally something like '/foo/bar/thisfile.txt' <5> ok path to file: /home/bla/my.file that file cannot be accessed from the http:// link <6> to install a perl module, it's $perl -MCPAN -e 'install Some::Module' right? ...or correct me, please :) <1> for an internal redirect, they'll need permission to access the new resource <5> and if i put that file, doesn;t work (tried to find it from .com/home/bla/my.file) <1> protocoldoug - more or less <1> provided CPAN.pm is already configured <5> hm... falowing at 100% <6> merlyn, when i do that i get "Cannot locate method 'install' from Some::Module" <1> go interactive instad <1> perl -MCPAN -eshell <1> the type "install Some::Module" <6> 'k gonna try that, thank you :) <1> No - you need to have a mapped URL <1> it would be something they could say http://your.server/THIS/PATH/HERE.txt <1> you redirect to /THIS/PATH/HERE.txt <6> merlyn, working like a charm :) <1> which maps according to your docroot, aliases, etc <5> merlyn: how can i do without a mapped URL ? (point is so users can't access eachothers files) <1> Kilbor - you can't use redirect then <1> you have to deliver the file from a direct opening <1> apache 1 or 2?
<5> so what would be the best way to do it? real the file and print it on screen? <5> apache 2 i think (not sure) <1> Hmm. get sure. <1> find out <5> how? :p <1> the answer is different <1> dammit - you're the web guy, right? <1> if not, ask the web guy <5> hm... perl noob lol <1> doesn't matter <1> learn or hire <5> asking to learn :p <1> if you're the web guy, and you can't even answer "apache 1 or 2" you have NO business being on teh web <1> truly <1> you need to back up about ten steps then <5> well, check, have 27 servers running here, one i'm running on is apache 2, one it might run on is apache 1 or 1.13 or 2 <5> so take your pick :p <7> 1 or 1.13? eh? <1> dude - WHAT ARE YOU RUNNIG? <5> or 2 <1> on the machine in QUESTION <5> well, on the devel machine apache 2 <1> so that's the context of your question? <1> you're using mod_perl2 with apache2? <5> on the production ones, 1 or 1.13 <5> think so, not 100% sure on mod perl <1> Uh - the code you write will be for ONE or the OTHER <1> which ONE <5> lets go with apache 1 <8> eval: *STDOUT <3> joeym: *main::STDOUT <7> could you elaborate on 1 and 1.13? those are bizzare Apache version numbers <5> sorry, 1 or 1.3 <1> you want Apache->send_fd <1> open the file, use ->send_fd on the filehandle <1> but yes, you have to copy the file yourself <5> but i don't see what the apache version has to do with this... sure there is a mason or perl function for it <1> Kilbor - mod_perl 1 is for apache 1 <1> mod_perl 2 is for apache 2 <5> that i figured lol <1> and the code is not compatible <1> dammit, don't lol me when you're being an idiot. it makes you look even more stupid. <1> you're in over your head. <1> apparently. <1> time to learn or hire. <1> and take it seriously <5> well got it runing from simply reading the file and puting it on screen <1> especially for web apps <5> works no proble, but at files of 3 gb, not so sure <1> web apps can be COMPROMISED easily if you're being amateurish on the net <1> and then the spammers have another foothold <5> this stuff is backend, no wories there <1> if you don't take security very very carefully, you're being unethical. <5> just need them to get the download popup lol <1> web programming is a specialized skill. you don't get there in a weekend. <9> whats the best text editor or word processor? I want it to have, aspell spell checker, rectangular text sellection, autocorrect, autocomplete, regex <1> gnu emacs! <5> notepad or vi <1> heh. notepad. :) <1> clearly NOT the choice <10> coding using a word processor? <1> "what's the best car?" "a tricycle!" <10> you just need a powerful text editor <11> HEY. notepad's great. <9> amnesiac yes <5> wtf is wrong with note pad? <11> NOTHING <9> Kilbor I want it to have, aspell spell checker, rectangular text sellection, autocorrect, autocomplete, regex <12> poeklis - you said 'word processor'. You must suffer for twenty months under a hot sun with water only delivered in tiny, mocking 10oz fast-food bottles. <10> merlyn, do you have autocorrect/complete in emacs for Perl? <10> ayrnieu, that sounds great, I want to see him suffer like that :P <1> yes - completion works nicely <12> poeklis - IAC, give us context. What OS?
Return to
#perl or Go to some related
logs:
#suse pin_helper: command not found uber_spaced qt4 sles9 #php #perl qt linux jumping mouse lexmark e220 ubuntu #physics mysql inserting without auto_increment
|
|