closer changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
<znz_jp>
biff: [ruby-changes:42812] naruse:r54886 (trunk): * re.c (str_coderange): to avoid function call when the string already - http://mla.n-z.jp/?ruby-changes=42812
madgen has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-core
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madgen has joined #ruby-core
<znz_jp>
biff: [ruby-changes:42814] usa:r54887 (trunk): * test/ruby/test_file_exhaustive.rb: test UTF-8 filename. see [Bug #12340] - http://mla.n-z.jp/?ruby-changes=42814
<zzak>
[guardian, irc.freenode.net] is there a easy way to print multiple blocks as part of an heredoc, where 1 block would be printed per value in a array?
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zzak>
[Brendan, irc.freenode.net] quick question... i'm reading some code:
<zzak>
[Brendan, irc.freenode.net] what does the [1] at the end signify?
<zzak>
[Brendan, irc.freenode.net] basically host["name"] is formatted like 'string1-mail'
<zzak>
[Brendan, irc.freenode.net] so i get they're trying to split on the -, but not entirely sure what the [1] does at the end
<zzak>
[Tom von Schwerdtner, irc.freenode.net] brendan-_: split turns it into an array, [1] takes the second element from the array
<zzak>
[Tom von Schwerdtner, irc.freenode.net] "one-two-three".split("-")[1] == "two"
nagachika has quit [Remote host closed the connection]
<zzak>
[Brendan, irc.freenode.net] gotchaaa
<zzak>
[Tom von Schwerdtner, irc.freenode.net] I guess a another way of stating that would be that String#split returns an array and Array#[] is a method.
<zzak>
[Tom von Schwerdtner, irc.freenode.net] But, there ya go
<zzak>
[Brendan, irc.freenode.net] any thoughts on how to do that splitting if there are multiple hyphens?
<zzak>
[Brendan, irc.freenode.net] and trying to isolate 'blah'
<zzak>
[Tom von Schwerdtner, irc.freenode.net] That would create an array of string1, mail, blah, blah2, domain
<zzak>
[Brendan, irc.freenode.net] ok
<zzak>
[Tom von Schwerdtner, irc.freenode.net] Try it in irb or pry
<zzak>
[Brendan, irc.freenode.net] then just call the proper location in the array
<zzak>
[Brendan, irc.freenode.net] makes sense
<zzak>
[Tom von Schwerdtner, irc.freenode.net] Yeah... I mean, if the thing you want is always going to be at that position.
nagachika has joined #ruby-core
<zzak>
[Johnathon_E_Wright, irc.freenode.net] What channel would be appropriate for me to ask whether it is typical to receive the sender's port number when receiving a UDP message?
<zzak>
[Tom von Schwerdtner, irc.freenode.net] Maybe #linux could point you in the right direction?
<zzak>
[Tom von Schwerdtner, irc.freenode.net] mustmodify: there is a #networking channel as well.
<zzak>
[Johnathon_E_Wright, irc.freenode.net] Well, it looks like that information is in the datagram, but isn't available in ruby's UDPSocket output.
charliesome has joined #ruby-core
shinnya has quit [Ping timeout: 260 seconds]
<zzak>
[Johnathon_E_Wright, irc.freenode.net] I take that back. I was just confused. As is typical, I guess.
nagachika has quit [Remote host closed the connection]
<zzak>
[dafull97, irc.freenode.net] Question, What is the better language for scripting.. ruby or python? -- try not to answer with one sided bias try to answer with facts. Thanks!
nagachika has joined #ruby-core
<zzak>
[Jason King, irc.freenode.net] dafull97, "better for scripting" is nearly meaningless.
tax has quit [Ping timeout: 276 seconds]
<zzak>
[Johnathon_E_Wright, irc.freenode.net] dafull97: Can you provide criteria to determine "goodness"?
nagachika has quit [Ping timeout: 240 seconds]
<zzak>
[dafull97, irc.freenode.net] Well, Wanting to script networking tools network communications and mainly networking haha
<zzak>
[shevy, irc.freenode.net] that sounds to me as if you will go into networking
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-core
madgen has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-core
ggherdov has quit [Ping timeout: 268 seconds]
ggherdov_ has joined #ruby-core
ggherdov_ is now known as ggherdov
tax has joined #ruby-core
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-core
madgen has joined #ruby-core
ItSANgo has quit [Quit: Leaving...]
Guest94592 has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]