@# 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> Ani-_: With an axe.
<1> Ok. Then I'll add it on my TODO list. :)
<0> Excellent
<0> Goddamn
<0> Torpenhow hill
<0> I thought they were just making it up =[
<1> I do wonder... Does buu has a module on CPAN? :)
<0> Ani-_: I almost did.
<0> I never got around to uploading
<1> Upload it. Then allow me to send a patch. Then fail to reply/react on it. Then allow me to kill you. :)
<2> what category are Acme modules in?
<0> Ani-_: Well, if you inist.
<0> jpeg: Acme, generally.
<2> thanks buu! *finger pistols*
<0> Is that what you kids call it these days?
<0> Ani-_: You can send me patches for lots of other bits though



<0> Not like I don't have a surfeit of other thingies.
<2> acme are in 02_Perl_Core_Modules, if anyone gives a crap
<1> For what bits? :/
<1> jpeg: really?
<2> yep
<1> jpeg: then how come I also see them in 02_Language_Extensions?
<2> you're drunk
<1> You mean Acme::Drunk?
<1> cpan: Acme::Drunk
<3> Acme::Drunk - - http://search.cpan.org/~CWEST/Acme-Drunk-0.03/lib/Acme/Drunk.pm
<2> i ***ume 02 is 02 with different descriptions. hey, petdance would know. you should ask him.
<4> ?
<2> how come for why acme mods are in 02__Language_Extensions AND 02_Perl_Core_Modules????? OMG WTGF BBQ!??
<4> jpeg: What kind of answer are you looking for?
<4> Does it really matter?
<4> The module list is an arcane artifact that needs to go away.
<2> 1)your discretion 2) no
<4> Well that was easy!
<2> i was just trying to find them in the by-category list. no biggie
<5> GumbyBRAIN: Prince of Persia Sands of time
<6> this is the symbol table lookup each time when i was thinking of something like that to free the memory management can have a list of statistic on a universal launch.
<7> Hi
<7> Is there an easy way to check if an array contains two identical items? I generated a long array filled with random elements and I wanna be sure that every element is unique...
<8> What kind of values are they?
<8> One way is perldoc -q unique
<3> Found How can I get the unique keys from two hashes? at http://perldoc.perl.org/perlfaq4.html; How can I call my system's unique C functions from Perl? at http://perldoc.perl.org/perlfaq8.html;
<7> the values are long strings
<8> or @h{@a}=(1)x@a; and then see if keys%h==@a
<9> DrCurl: One way is to loop through the array and $hash{$elem}++, then check to see if any value in the hash is >1
<8> I wonder if that's significantly faster...
<10> DeCurl - List::Compare
<7> thanks guys
<1> DrCurl: two identical items? Or must the two list be identical? And how long is long?
<7> example of string: "GATTTCCTGAT" "0,0" 0 "0,9" 0 "0,33" "0,33" "( RIKEN cDNA 3321401G04 gene;Mm.24652;AC:AK083917;GI:26350848;m;N)" 1
<1> b0at: a hash slice will be signicantly faster then a for(each) loop (IIRC)
<7> there are 600 of those
<8> That's what I figured
<1> eval: 200 * 600;
<3> Ani-_: 120000
<11> eval: exit 0;
<3> sneex:
<1> So long is less than 120_000 bytes of data?
<11> =)
<7> :D
<1> (of raw data ofcourse - intern it will be some more)
<12> 480_000
<13> if you do $kernel->delay('state' => 10); then 2 secs into delay do $kernel->yield('state'); it will stop the delay right, ie wont happen twice?
<7> I could also check if the item already exist in the array before pushing it...
<1> DrCurl: just use a hash...
<1> Or does the order matter? :/
<12> dabreegster's suggestion preserves the order anyway
<7> the order doesn't matter
<1> Then it's time to start using them.
<7> hehe
<1> They will make the problem far easier
<1> DrCurl: basically: a hash is an array which indexes are strings. This means you don't have two loop over the array, you can just access the element (and it will be faster).
<7> ok
<1> perldoc perldata has some documentation about them... (still looking for a better document)
<3> Type 'perldoc perldata' in your shell or go to http://perldoc.perl.org/perldata.html



<14> Hey guys! If I make a hash with qw(thing1a thing1b thing2a thing2b thing3a thing3b) ... is there a way to get the order in which it was created?
<15> no
<16> CapnDan: look at Tie::IxHash
<17> ugh. Makefile.PL's that ask questions are evil.
<17> I went away for 20 minutes, when I came back, I had a prompt that showed up in the first 30 seconds.
<17> bad bad bad Makefile.PL
<14> How would you do it if you wanted to make a list of codes and values to be turned into HTML?
<17> not surprising it's from Ingy.:(
<1> bad bad merlyn. Installing something and then leaving!
<16> CapnDan: array of hashrefs maybe?
<17> eh - no. I think "hands off installation" is the norm, not the exception
<14> Paladin: sounds good.
<17> if you can't do it without asking questions, take it from command-line params or a config file.
<17> don't STOP TO ASK QUESTIONS.
<17> ugh
<1> merlyn, I wonder do the README/INSTALL file mention the question? Or didn't you read those? :)
<14> In the past I've done it with the hash AND a separate list that shows what order to display the hash in, but that's a pain.
<17> ani - regardless of what INSTALL says, it shoudl not stop to ask questions
<12> Ani-_: that wouldn't change anything
<17> it should merely say "please specufy $x or $y on the command line"
<17> and then go on
<17> install A B C should never pausl
<17> pause
<1> So instead it simply shouldn't install? (until you specify the arguments that is)
<17> Correct.
<1> I would vote for it accepting the arguments and if they are missing asking the question with a reasonable timeout (60 sec or so - with the timeout being stopped if a key is pressed)
<17> That's also fair
<17> this is not what this module does
<17> the infamous "YAML"
<1> Then patch it :)
<18> hi there. I have an array and I want to move an item from the middle to the first item (and move everything else down). How's that done in perl?
<17> do you mean discard everything from the first to the middle?
<17> if you merely move the middle to the first, nothign else moves down. :)
<1> merlyn, that depends on the point of view.
<17> if you start with a, b, c, d, e, f
<17> and you pick "c"
<17> what do you want to end up with?
<17> c, b, d, e, f?
<17> c, d, e, f?
<17> what?
<17> your spec is incomplete
<1> merlyn: $x[0]=$x[2]; The middle is the first, but nothing else moved (down) :/
<17> c, a, b, d, e, f?
<17> just showing gr00ber once again that it's all in how you ask the question.
<15> c, b, c, d, e, f
<17> yeah, that's another possibility
<15> for asm values of "move"
<19> That doesn't move, it overwrites, I believe
<19> right :)
<1> My guess is that he wants c, d, e, f. (Which he obviously could accomplish with perldoc -f splice)
<3> Type 'perldoc -f splice' in your shell or go to http://perldoc.perl.org/functions/splice.html
<17> it's "move" for some people
<1> mv overwrites aswell. :)
<10> : gr00ber ( a b c d e f -- c a b d e f ) >r >r >r -rot r> r> r> ;
<17> forth!
<19> overwrites and leaves a copy, I meant to say. anyway...
<10> Forth happens.
<20> I enjoy guessing, I think he wants c, a, b, d, e, f
<17> may the forth be with you
<17> happy july, forth!
<21> best reserved for May 4th
<22> who is forth?
<15> GumbyBRAIN: who is forth?
<6> Forth is not busy doing page loads.
<18> merlyn, sorry. Had to get coffee. I want to end up with c,b,d,e,f
<18> I need to search for "c" and make it become the first item
<18> the array is all text strings
<17> heh - none of the guesses!
<17> so you want c to replace a, pulling it out of line
<18> sorry, cabdef
<10> : gr00ber ( a b c d e f -- c b d e f ) >r >r >r rot drop r> r> r> ;
<18> sorry, cabdef


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#suse
#perl
we2by
#linux
_dl_out_of_memory
+iterable objects +php
#linux
apev2 TAG ubuntu
xnview +deb
fail2ban backport stable



Home  |  disclaimer  |  contact  |  submit quotes