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:42805] nobu:r54879 (trunk): string.c: fix braces - http://mla.n-z.jp/?ruby-changes=42805
shinnya has joined #ruby-core
shinnya has quit [Ping timeout: 240 seconds]
deepak has quit [Ping timeout: 260 seconds]
deepak has joined #ruby-core
<znz_jp> biff: [ruby-changes:42806] akr:r54880 (trunk): * test/ruby/test_refinement.rb (test_inspect): Use Integer instead of Fixnum. - http://mla.n-z.jp/?ruby-changes=42806
<znz_jp> biff: [ruby-changes:42807] nobu:r54881 (trunk): string.c: fix doc - http://mla.n-z.jp/?ruby-changes=42807
<znz_jp> biff: [ruby-changes:42808] nobu:r54882 (trunk): string.c: shortcut - http://mla.n-z.jp/?ruby-changes=42808
madgen has quit [Ping timeout: 260 seconds]
LongyanG has quit [Remote host closed the connection]
LongyanG has joined #ruby-core
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
tax has joined #ruby-core
<zzak> [candy, irc.freenode.net] Howdy-do ruby-er-inos!
<zzak> [candy, irc.freenode.net] just installed https://github.com/tpope/vim-endwise and it's seeming to do the trick
<zzak> [dea, irc.freenode.net] linuxuser9000: What's your younger sibling's power level?
<zzak> [candy, irc.freenode.net] I have no younger sibling!
<zzak> [dea, irc.freenode.net] >> 9e3.next_float
<zzak> [Butler IRC Bot, Version 0.1.0, irc.freenode.net] Ox0dea: # => 9000.000000000002 (https://eval.in/563373)
<zzak> [Brandon Weaver, irc.freenode.net] not over 9000? Disappointing
<zzak> [dea, irc.freenode.net] Did you know Vegeta actually just says "It's over nine."? :/
<zzak> [candy, irc.freenode.net] now hold up baweaver since when is goku Vegeta's younger siblig
<zzak> [Brandon Weaver, irc.freenode.net] In the original Japanese it's over 8000
<zzak> [Brandon Weaver, irc.freenode.net] but anyways.
<zzak> [Brandon Weaver, irc.freenode.net] Vegeta has a younger sibling at least.
<zzak> [candy, irc.freenode.net] aw man im really liking ruby
<zzak> [candy, irc.freenode.net] this whole optional parenthesis thing is great
<zzak> [Brandon Weaver, irc.freenode.net] be careful of it
<zzak> [shevy, irc.freenode.net] yeah ruby is so liberal
<zzak> [Brandon Weaver, irc.freenode.net] there are certain really bad cases for it
<zzak> [candy, irc.freenode.net] i also set up vim with some plugins for better ruby support, and 'end' automatically pops up where it's supposed to
<zzak> [Brandon Weaver, irc.freenode.net] >> [1,2,3].reduce 0 { |a, i| a + i }
<zzak> [Butler IRC Bot, Version 0.1.0, irc.freenode.net] baweaver: # => /tmp/execpad-7b2be4da2068/source-7b2be4da2068:2: syntax error, unexpected '{', expecting keyword_end ...check link for more (https://eval.in/563411)
<zzak> [Brandon Weaver, irc.freenode.net] >> [1,2,3].reduce(0) { |a, i| a + i }
<zzak> [Butler IRC Bot, Version 0.1.0, irc.freenode.net] baweaver: # => 6 (https://eval.in/563412)
<zzak> [Brandon Weaver, irc.freenode.net] it'll confuse the block for an argument like that
<zzak> [Brandon Weaver, irc.freenode.net] or...
<zzak> [Brandon Weaver, irc.freenode.net] >> [1,2,3].reduce 0 do |a, i| a + i end
<zzak> [Butler IRC Bot, Version 0.1.0, irc.freenode.net] baweaver: # => 6 (https://eval.in/563413)
<zzak> [Brandon Weaver, irc.freenode.net] also be aware of how super works in Ruby, as ignoring parens does odd things as well
<zzak> [candy, irc.freenode.net] is there a plugin i can use to look stuff up from inside ruby
<zzak> [Brandon Weaver, irc.freenode.net] expand on that
<zzak> [candy, irc.freenode.net] when im working in lisp i can do (edit 'something) and i get a definition of "something"
shinnya has joined #ruby-core
tax has quit [Ping timeout: 276 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
shinnya_ has joined #ruby-core
shinnya has quit [Ping timeout: 276 seconds]
shinnya_ has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby-core
madgen has joined #ruby-core
shinnya has quit [Ping timeout: 260 seconds]
<znz_jp> biff: [ruby-changes:42810] kazu:r54884 (trunk): fix a typo [ci skip] - http://mla.n-z.jp/?ruby-changes=42810
<znz_jp> biff: [ruby-changes:42809] kazu:r54883 (trunk): fix typos [ci skip] - http://mla.n-z.jp/?ruby-changes=42809
<znz_jp> biff: [ruby-changes:42811] kazu:r54885 (trunk): Update rdoc of Integer#modulo [ci skip] - http://mla.n-z.jp/?ruby-changes=42811
<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
<znz_jp> biff: [ruby-changes:42813] svn:r54888 (trunk): * remove trailing spaces. - http://mla.n-z.jp/?ruby-changes=42813
<znz_jp> biff: [ruby-changes:42815] usa:r54889 (trunk): * win32/win32.c, include/ruby/win32.h (rb_w32_utruncate): implements new - http://mla.n-z.jp/?ruby-changes=42815
ItSANgo has joined #ruby-core
madgen has quit [Ping timeout: 260 seconds]
unreal is now known as unreal_
unreal_ is now known as unreal
enebo has joined #ruby-core
tax has joined #ruby-core
wycats has quit [Ping timeout: 260 seconds]
zzak has quit [Ping timeout: 260 seconds]
deepak has quit [Ping timeout: 260 seconds]
swistak35 has quit [Ping timeout: 260 seconds]
unreal has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby-core
wycats_ has joined #ruby-core
unreal_ has joined #ruby-core
swistak35_ has joined #ruby-core
unreal_ is now known as unreal
madgen has joined #ruby-core
dbussink has joined #ruby-core
tarui has joined #ruby-core
wycats_ is now known as wycats
shinnya has joined #ruby-core
deepak has joined #ruby-core
Aethenelle has joined #ruby-core
Aethenelle has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-core
Aethenelle has joined #ruby-core
nagachika has joined #ruby-core
Aethenelle has quit [Ping timeout: 260 seconds]
heroux has quit [Ping timeout: 260 seconds]
charliesome_ has joined #ruby-core
charliesome has quit [Ping timeout: 260 seconds]
heroux has joined #ruby-core
madgen has quit [Ping timeout: 250 seconds]
madgen has joined #ruby-core
Aethenelle has joined #ruby-core
madgen has quit [Ping timeout: 244 seconds]
madgen has joined #ruby-core
zzak has joined #ruby-core
<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] host["role"] = host["name"].split('-')[1]
<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] 'string1-mail-blah-blah2-domain'
<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…]
<znz_jp> biff: [ruby-changes:42816] svn:r54891 (trunk): * 2016-05-03 - http://mla.n-z.jp/?ruby-changes=42816
<znz_jp> biff: [ruby-changes:42817] normal:r54890 (trunk): process.c (disable_child_handler_fork_child): initialize handler for SIGPIPE - http://mla.n-z.jp/?ruby-changes=42817
tax has quit [Ping timeout: 252 seconds]
tax has joined #ruby-core
Guest94592 has joined #ruby-core
charliesome has joined #ruby-core
madgen has quit [Ping timeout: 240 seconds]
Aethenelle has quit [Quit: Aethenelle]
enebo has quit [Quit: enebo]
tax has quit [Ping timeout: 260 seconds]
madgen has joined #ruby-core
Aethenelle has joined #ruby-core
madgen has quit [Ping timeout: 246 seconds]
Aethenelle has quit [Quit: Aethenelle]