@# 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 34 35 36



Comments:

<0> do i really need to have seperate open/close for file readinbg and writing?
<1> typewriter: No.
<2> typewriter: No, but it may be better, depending on what you're doing.
<2> It's certainly easier.
<3> this is what im using for my perl script formatting needs : s/\s*//g;
<4> that's a silly thing
<3> something wrong with that?
<4> \s* matches EVERYWHERE. use \s+ instead
<3> right thanks ;-)
<1> eval: $_="abc def";s/\s*//g;$_;
<5> Ani-_: Return: abcdef
<4> eval: $_ = "abc def"; s/\s*/X//g; $_
<5> japhy: Error: Illegal division by zero at (eval 130) line 1.
<4> eval: $_ = "abc def"; s/\s*/X/g; $_
<5> japhy: Return: XaXbXcXXdXeXfX
<4> (oops)



<3> japhy, yes, i wonder though if there is any performance improvement at all since the whole text input is processed
<1> Yes there is.
<4> hells yeah.
<1> And it will be even faster if you use tr///d;
<1> but that would require you to specify all the characters in \s
<4> $str =~ tr/ \n\r\t\f//d;
<6> good night all
<7> "fraterm" at 64.132.13.2 pasted "PoCo Client Ping" (95 lines, 3.3K) at http://sial.org/pbot/17330
<8> that's for you there dngor
<2> Good night, integral
<7> "flecto" at 69.137.103.1 pasted "setting $= for filehandle" (18 lines, 490B) at http://sial.org/pbot/17331
<9> any suggestions on my pasteling is appreciated...thanks all!
<4> flecto: you can do it the idiomatic way:
<4> select((select(FH), $= = 80)[0])
<4> but that's crazy.
<1> I would go with $==80. :)
<9> japhy: I definitely didn't think of that ;)
<4> or you coulde use IO::Handle and do:
<4> format_lines_per_page FH 80;
<9> it's not a big deal really, I was just wondering if there was some perl magic i was missing. I don't need any modules or anything as this is the only time I need to work with the FH - I am actually 99% certain that the OLD FH is STDOUT, but I just like to be carefule in case I use another module somewhere and it doesn't behvae as expected.
<2> japhy: There's discussion about that idiom, and removing it from documentation :)
<10> am i blind or there's no documentation for sqlit perl support in sqlite homepage
<10> in cpan there isn't also many documentation
<11> patches welcome
<12> Insolit: The documentation for sqlite is perfectly adequate.
<13> HALLO
<13> I am so l33t.
<14> Ok.
<10> buu: do you know where i can find documentation for perl support? i'm trying to find out how to set a directory like it's possible in CSV with f_dir "my $dbh = DBI->connect("DBI:CSV:f_dir=../db/categories", "", "",{ RaiseError => 1}) "
<10> but i can't read about that anywhere
<13> uh...
<12> Insolit: What on earth does that have to do with sqlite?
<13> To set a directory in, <insert direct object here>
<12> Oh, actually, I see what you're asking
<13> You know what is l33t.
<13> Rails.
<12> Insolit: If the documentation makes no mention of it, you can not do it. What do you expect a 'setting a directory' would do to sqlite anyway?
<15> Insolit: "Everything for your database is stored in a single disk file, making it easier to move things around than with DBD::CSV."
<15> my $dbh = DBI->connect("dbi:SQLite:dbname=dbfile","","");
<15> what else do you need?
<10> mh strange now it worked
<10> i did not use dbname=
<15> GumbyBRAIN: I am the boy who cried Worf!
<10> and it seems to be working
<16> Right, who recorded it for the to email, one for the breaking in period, and then cmd-p to paste a code or puts you through to the cams manually through a poe::component::irc.
<12> Insolit: It probably did it in memory.
<17> GumbyBRAIN: cube it
<18> my calendar tells me that today is labor day in New Zealand.
<16> Look at it and see that par::dist p***ed everything which means it is a way.
<15> Insolit: I'm sorry that the SYNOPSIS at the top of the page was inadequate documentation, and that I could point you to it. Please come back next time you need someone to read you a perldoc bedtime story.
<10> infi: the way you mention i must have the database file in the same directory as the cgi
<15> no, no you don't.
<15> what makes you think you can't put a path as part of the component?
<10> because it was failing
<3> japhy, thanks
<3> Ani-_, good call
<19> Hmm. if POE session A spawns B which spawns C, and C detaches, is it owned by A or by "kernel"?
<19> and is the answer the same if B detach_child's C
<12> Good question!
<10> infi: i really dislike sarcasms, i've read the synopsis and i was still getting errors connecting to the database. That's why i posted the question. Do you think i just like to waste your time and mine writing you my problems? Maybe you should consider that there might be people that are not used to the stuff you already know, that will make obvious questions for you, but that should have your respect anyway.
<20> Is there an easy way to ensure that the cooke getting sent to your script is being sent from the same browser that originally got it? More basically, what's to stop someone from copying a cookie from somebody else's browser onto their own?



<21> rutski89, nothing. Cookies are not a security mechanism for you.
<22> rutski89: you can't.
<22> but you could, store the IP
<21> Don't do that :(
<20> Botje: that that can get messed up in a lot of ways
<21> Design your system so that cookies are not magic keys
<20> How would I do that?
<17> merlyn: It's owned by "kernel", IIRC.
<15> Insolit: I rather consider the fact that you were covering for your illiteracy by accusing SQLite and CPAN of having inadequate documentation, when I and others found the answer you were looking for mentioned plainly in the documentation in 5 seconds flat.
<21> I dunno. Make cookies expire (server-side) on 5 minutes of inactivity. Reconfirm login for vital pages. Whatever.
<20> Brend: how can I make it so that users don't have to type in their username/p***words without cookies?
<22> infi: perl hackers have extraordinarily large branes. commonly known fact.
<15> Insolit: and it's not stuff I already know, as I've never programmed SQLite (though I know of its existence and what it is useful for.) I can simply do this funny thing called "reading."
<23> hm, is it still safe/proper to use safemalloc() in xs code? it looks like it disappeared from perlguts around 5.6, but plenty of modules are using it
<17> merlyn: Good point, though. detach_child() doesn't say where the child goes (while detach_myself() does).
<20> Brend: or just use SSL throughout the whole site :-/
<15> GumbyBRAIN: branes!
<16> perl hackers have extraordinarily large branes. Commonly known fact.
<15> Botje++
<21> rutski89, or that. Though cookie-theft is not a large problem so far as I know. You phrased the original question in terms of a user deliberately transferring their cookies around
<19> Aha.
<19> so I could have just looked in the source
<19> or the tests.
<22> where's the fun in _THAT_
<19> Hey, I wrote some nice test scripts around local PoCos being developed for $client
<20> Brend: ahh, sorry about that phrasing then. I was really talking about cookie theft.
<19> It was easier than I thought
<10> infi: you either don't understand what i told you, or you simply like to repeat yourself. But as i don't like to repeat myself won' tell you once more that i read what you mentioned, i used it but it was failing. And i just thought that there could be something like f_dir in CSV to set a directory where the database would be. I just hope you can now read my words as well as you do with the synopsis and perl docs.
<21> rutski89, ask for a login once and then serve your entire site through AJAX!!!1!
<20> lol, no way
<20> hey, how about this
<20> make it so that if the same person logs in from 2 different IP's, it fails for one of them
<20> that would for everything but computers behind routers and stuff
<21> You mean, at once?
<20> yea, at once
<19> that'll stop all AOL users too. {grin}
<20> huh?
<20> how so?
<19> since every hit from the AOL proxies come as a different IP
<20> what!?
<19> yes
<24> rutski89: AOL requests come through a proxy cloud
<19> you can't use IP-based auth
<20> ouch
<20> i see
<19> IP != user
<19> repeat after me
<19> IP != user
<20> IP == user?
<19> Nope
<24> IPuser.
<19> that's why you're still a kid
<20> I know, jk
<19> and may never make it to adulthood.
<25> The best way to manage sessions is with butt chips.
<20> butt chips?
<25> Yes. RFID, in the fleshy bit.
<22> HMMM RFID SECKS
<20> merlyn: weren't you a kid once too?
<19> Nope. born a full-grown adults. :)
<26> GumbyBRAIN: how do I managed sessions?
<16> So i do to be the _first_ two words of god and of the managed ones with trunks?
<20> merlyn: your mother must have had a hell of time giving birth :-p
<20> merlyn: think you'll ever write any more books?
<25> merlyn is just plain used up. No books left.
<27> merlyn: write some dirty books
<27> j/k
<11> Webscraping for Pr0n with Perl?
<28> Shouldn't it be "IP ne user"?
<7> "infi" at 219.120.193.247 pasted "Insolit: Oh, gee! The dbname argument of DBD::SQLite accepts pathnames!" (30 lines, 740B) at http://sial.org/pbot/17332
<25> Hello, thrig.
<10> infi: i know that now, but thnks
<19> I'd write books if I could afford more time @ minimum wage.
<19> but I really can't afford that sort of time any more.


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#web
nvidia setting tty resolution ubuntu
gensplash 1920x1200
operation not permitted ping Fedora NVIDIA
#linux
gentoo kuickshow broken
add package bitbake dreambox image
#perl
#linux
javascript



Home  |  disclaimer  |  contact  |  submit quotes