| apeiros | teferi, I know of it. that doesn't change anything I said |
| teferi | apeiros: sometimes you want to treat a string as a stream you can read from, thugh |
| apeiros | pluesch0r, do you mean: how can I *split* a string into chunks of 20bytes length? |
| pluesch0r | apeiros: that might also be a valid question. |
| apeiros | teferi, yes. that's what stringio is there for. I still stand by what I said :) |
| pluesch0r | apeiros: so .. how do i tell split to split my string? |
| Aria | You probably want string.scan /.{1,20}/ |
| teferi | pluesch0r: mystring.split(delimiter) |
| Aria | split is for delimited chunks, not length chunks. |
| teferi | ahyes sorry |
| apeiros | also string#[], but scan is faster iirc (and easier) |
| xybre | http://www.ruby-doc.org/core/classes/String.html#M000858 |
| ceeg | http://pastie.caboo.se/52838 - am i doing this right? :] |
| oenone | how can i view the version of the yaml module? |
| ceeg | there's gotta be a better way of multiple condition statements |
| Catfish | ceeg: Case statements? |
| apeiros | ceeg, use an option-parser there is at least one in stdlib and there are dozens out in the wild check rf and raa |
| ceeg | thanks apeiros |
| Catfish | OptionParser is in the standard library, isn't it? |
| ceeg | Catfish: a = "abc"; case a; when a.include?("a"); a1 = true; when a.include?("b"); b1 =true; end; i want both conditions to come out true. but it breaks out of the case once any one of them is true |
| action | branstrom is away: minimized |
| branstrom | is away: minimized |
| action | branstrom is back (gone 00:00:00) |
| branstrom | is back (gone 00:00:00) |
| action | branstrom is away: minimized |
| branstrom | is away: minimized |
| action | branstrom is back (gone 00:00:08) |
| branstrom | is back (gone 00:00:08) |
| action | branstrom is away: minimized |
| branstrom | is away: minimized |
| action | branstrom is back (gone 00:00:20) |
| branstrom | is back (gone 00:00:20) |
| apeiros | branstrom, stop that please. |
| oGMo | hyperion-1.0.2b(381). niven.freenode.net iMZ dncrTS/v4 haven't seen that one |
| branstrom | apeiros, sorry, disabled the stupid autoaway |
| shevy | hehe |
| ceeg | apeiros: that doesnt work because its basically evaluating when true, right? so i tried matching a, like when /a/; b = 1; when /b/; c = 1; and it still only got to the first one it came to |
| knight_ | hey all! |
| ceeg | hey knight_, i remember you ;) want to help me wrap my sleep deprived feeble brain around a certain case statement? :p |