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



Comments:

<0> okay, me again
<0> why doesn't glob("{a..b}") doesn't work?
<1> _sawyer_: because that isn't glob syntax
<0> that's what i thought!
<2> perl -MCarp -le'bar(); sub bar {foo();} sub foo {print confess("hi")}' # backtrace to the confess() call.
<1> _sawyer_: btw, that glob thing wasn't meant as a serious suggestion. For your particular problem, you'd have to wait a *really* long time for the output.
<0> hmm..
<3> Sir_J, sorry, the handler is actually called __DIE__ not DIE
<3> i.e. $SIG{__DIE__} = ...
<0> well, i tried algorithm::permute
<1> _sawyer_: what you want is an iterator that you can continually ask for the next value until you're done (or something like that)
<2> Oh. That explains that...
<0> but it doesn't give it in the order i wanted and it's hard to implement more characters
<1> _sawyer_: why do you want this thing anyway>?
<0> oh i see..



<0> brute force QA for an application i wrote
<4> wolverian, oke
<4> it prints stacktrace to server log
<4> how can I print it to screen
<4> ?
<1> _sawyer_: what does that mean exactly?
<5> Okay. Two arrays. Taking a set difference thereof.
<2> _sawyer_: A simple approach starts with keeping an arrayref of the current position [0,3,2] ('adc') and writing a routine to bump the counter along, when the last position wraps increment the next one....
<5> ... what's the pretty way?
<2> Fennec: Turn one of them into a hash and look for the members of the other in the hash.
<1> Fennec: perldoc -q intersection # it talks about differences too
<6> Found How do I compute the difference of two arrays? How do I compute the intersection of two arrays? at http://perldoc.perl.org/perlfaq4.html;
<1> buubot++
<6> PerlJam: ++ is not infix
<7> Perl Cookbook answers it doesn't it?
<0> alright, i'll work on that
<5> hmm
<0> thanks a bunch guys
<7> (with probably the same answer)
<5> that's not as pretty as I had hoped. :/
<1> _sawyer_: you could just use perl's magic autoincrement if you didn't have 0-9 in there.
<5> hmm. could it be done as a double-grep, I wonder?
<0> no, i need combinations
<4> yeah
<4> it works
<4> thanks guys
<1> _sawyer_: but do you need an exhaustive list?
<0> i reckon so.
<0> unless you got other ideas, i'm open to any suggestion
<1> _sawyer_: what's the problem statement again? (I just want to be sure)
<2> Wait a minute, you need combinations? That's different than your initial problem, I think.
<0> well, i want to create all the combinations using the letters 0..9, a..z and A..Z
<7> Combinations or permutations?
<1> _sawyer_: how long are the strings
<1> ?
<2> All combinations independent of order? I.E. 'aab' and 'aba' are distinct?
<0> changing lengths
<0> DrForr: i'd prefer it'd be by order
<0> 000 001.. 0a0 0a1... ccc ccd cce, etc..
<2> How long is the longest string you want to generate? And I'm starting to sense something...
<8> DrForr: it's at least one byte longer than your array size, so I can try to exploit it
<0> hmm.. 10?
<0> maybe 15?
<2> No, that's not what I'm thinking...
<0> can't it be dynamic?
<2> purl, 62**10
<9> temich,What you try to exploit?
<10> hi
<10> can sb tell howto catch errors in DBI?
<11> DBI::Errorstr?
<12> raiseerror
<10> it is undef when no error ?
<2> _sawyer_: You realize there are 7e26 15-character strings, right?...
<11> do something or die
<12> perldoc DBI
<0> hmm...no i didn't
<10> uberspaced: but i do nt want ot die
<2> And what you want to do is count in base 62.
<10> i want to catch, log it and go on
<1> _sawyer_: if you do the math you'll realize that to examine that many strings will take *years*



<12> eval
<11> tdi, $sth->execute or do{PUT YOUR STUFF HERE}
<10> uberspaced: thanks..
<0> hmm..
<13> "Eidolos" at 24.128.121.242 pasted "Defines a successor function, something like what _sawyer_ wants..." (30 lines, 553B) at http://sial.org/pbot/18481
<0> i should learn math?
<2> _sawyer_: Plus there are better tools than brute force for what you're trying to do...
<11> like $sth->execute() or do {print STDERR "This one failed... $DBI::Errorstr";}
<9> is there math in perl?
<9> i was told there was not
<1> In fact, someone asked pretty much the same question the other day and I did the math ***uming you could examine 5 strings per second and I think for strings up to length 6 or 7 we were already at 366 years
<2> eval: $a = 32; print $a ** 2
<6> DrForr: 1024 1
<14> whiteghost: what do you mean by "math in perl"?
<9> yes
<2> And whoever told you that hasn't had much (if any) experience in it...
<9> i know there is math in c++ but what about perl?
<2> whiteghost: What kind of a language would it be *without* math?...
<14> whiteghost: I don't know of any programming language that can't add, subtract, etc..
<9> thanks for the help
<2> perl -le'$a=3;$a/=5; print $a' # There's your math...
<9> thanks
<15> Hi all.
<14> 'lo rindolf
<15> I got a project at $WORK to translate a webapp from PHP to Perl.
<16> rindolf: good
<15> Only problem is the client side is written in Flash 8 which is only available for Windows.
<17> Hi!
<2> Step 1: rm -rf $project_dir
<17> Wow, fun.
<15> sili_: indeed. :-)
<15> I could try cygwin...
<18> Anybody know any good Web-based file management systems? We move lots of files via FTP but have some clients who don't know the workings of FTP well enough to use it reliably. Open-source for use on our own server is what we are looking for.
<17> DrForr: For something of this magnitude, use shred/wipe!
<15> Hi merlyn
<15> merlyn: Rome... Rome, Italy?
<19> Yes
<15> MrPunkin: is WebDAV an option?
<20> I always thought merlyn was particles.
<15> merlyn: nice.
<19> For geekcruise # 33 starting in two days
<21> MrPunkin, i've heard webmin is nice
<15> merlyn: nice.
<15> merlyn: will you reach Israel?
<18> webmin for transferring files? Im not talking admin, talking moving the files.. a user logs in and uploads a directory to us
<22> parli italiano merlyn ?
<19> Not any plans in the future.
<19> no intention either. Looks too scary to me. :)
<15> merlyn: no, I meant if the cruise is going to go thru Israel.
<17> MrPunkin: Can't you just recommend a client or something?
<19> Oh no - we're going west
<18> riczho: We have... im just looking for a web app that can do the job where all they need to know is a username and a p***word, then the UI would tell them the rest. We don't deal with a technological client base
<19> ... http://www.geekcruises.com/itinerary_b/mm045_itinerary.html
<17> MrPunkin: Well, it's kind of hard to upload directories with a web interface, so I'm pretty sure that a normal app would provide a friendlier interface anyway.
<18> riczho: Yeah. It seems like having a web-app that uploads directories will need to get all the contents of that folder client-side, transfer them one at a time, then rebuild the folder structure on the server... so i may be looking for the impossible at this time
<19> and rightfully so
<19> javascript should not be poking around my directories
<15> Can anyone recommend a good and hopefully not too expensive web hosting service with HTTP access? All I need so far is plain HTML, but PHP, Perl, and perhaps Python or Ruby would also be nice.
<2> Dreamhost will doubtless come up.
<12> localhost is pretty cheap
<1> rindolf: start at http://www.freewebspace.net/ :-)
<5> eh, I can't reccomend Dreamhost :)
<23> How do I use split to read an entire file and split the file on ":::" into an array where each array value may contain a few paragraphs of text?
<5> too much downtime lately
<5> maybe they'll clean up their act
<17> Hm.
<12> Fennec: it's where your website is merly a dream. ;) haha
<5> maybe they won't =/
<5> Supaplex: I know. :)
<23> When I read the file should I use @file =<IN> or $file=<IN>
<5> M_A_K: they're two different things
<24> M_A_K: both are valid, but they do different things
<12> they rotate zip disks ever day, and if your site is on there, then it's up.


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

xorg.conf winkey
automatix bleding
#sdl
#web
#css
#perl
howto opendchub
#perl
Debian + E: Couldn't find package kernel-package
perl dup IO::Socket STDIN



Home  |  disclaimer  |  contact  |  submit quotes