/srv/irclogs.ubuntu.com/2013/02/12/#ubuntu-us-pa.txt

=== rmg511 is now known as rmg51
rmg51Morning10:28
teddy-dbearMorning peoples dogs and turkeys13:10
JonathanDDon't forget bots.13:11
teddy-dbearthe log bot never says anything :-/13:12
=== calvin is now known as argv_turk
ChinnoDoggobble15:13
argv_turkgoob gob15:27
MutantTurkeygooblle18:28
=== rmg511 is now known as rmg51
=== calvin is now known as MutantTurkey
* InHisName is known as InHisName19:38
MutantTurkeyugh I am struggling with a programming problem19:57
MutantTurkeyI want to represent all possible combinations of 4 different letter19:57
MutantTurkeyaaaa aaab aaac aaad19:57
MutantTurkeybut how to do it? beats the heck out of me, because we don't know how long the string needs to be, that's variable19:58
jedijf!20:06
jedijfclue ^20:06
MutantTurkey?20:07
jedijfdo you need the number of possibilities or display all possibilities20:07
MutantTurkeydisplay20:07
MutantTurkeyfor i in `a a a a a a`; do for j in `b b b b b b`; do for k in `c c c c c c`; echo $i$j$k; done; done; done20:08
MutantTurkey!for i in `a a a a a a`; do for j in `b b b b b b`; do for k in `c c c c c c`; echo $i$j$k; done; done; done20:08
MutantTurkeybut how to express that? I dunon20:08
ChinnoDogNot combinations MutantTurkey, permutations20:21
waltmanperl -E '$x = "aaaa"; say $x++ for 1..26**4'20:23
MutantTurkeywaltman: can you restrict that to a b c d?20:25
InHisNamehey it works too,  456976 items.     piped to | wc -l20:25
MutantTurkeyor actually acgt20:25
ChinnoDogOh. You are creating permutations of nucleic acids20:26
waltmanah20:26
waltmanperl -E '$x = "aaaa"; say $x++ for 1..26**4'|grep '^[actg]*$'20:28
waltmanprobably not the best way, but it works :)20:29
waltmanThere are lots of ways to do that20:29
InHisNameYep that works too,  256 members  = 4**420:30
InHisName 456976 = 26 ** 420:31
InHisNamewaltman: you're fast on the draw with that there perl20:32
waltman:)20:32
waltmanhttp://hop.perl.plover.com/book/pdf/HigherOrderPerl.pdf # page 13520:32
waltmanthat might be more than you want20:33
InHisNameWhat ! you looked it up first then typed your answer for MutantTurkey ?20:33
MutantTurkeywaltman: can you decipher this also?20:33
MutantTurkeymat=bsxfun(@rdivide,mat,sum(mat,1)); %column-normalize20:33
MutantTurkeydivides a column of an array by the sum of the column?20:33
waltmanMutantTurkey: I'm just going to look up the functions I don't know in the docs, which I'm sure you're just as capable of as I am :)20:34
MutantTurkeywaltman: ok I looked them up20:35
MutantTurkeyI just don't understand what "right array divide" is20:35
waltmanhttp://en.wikipedia.org/wiki/Division_(mathematics)#Left_and_right_division20:37
waltmanright division is what you probably think division should be20:38
waltmanhttp://abcnews.go.com/Health/heart-attack-grills-unofficial-spokesman-died-heart-attack/story?id=1847714520:40
MutantTurkeythanks :-)20:41
jedijftruth in advertising?20:53
MutantTurkeywaltman: what lab are you in? also is it man-kow-ski?20:55
waltmanI'm in Andy Cohen's lab. And yes.21:26

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!