lucasb

Activity Graph

Page 1 of 4 | Next »

2018-12-16

[10:27:16] lucasb: has joined #ruby
[17:56:52] lucasb: Quit: Connection closed for inactivity

2018-12-15

[01:24:13] lucasb: Quit: Connection closed for inactivity
[11:22:40] lucasb: has joined #ruby
[23:22:08] lucasb: Quit: Connection closed for inactivity

2018-12-14

[01:22:49] lucasb: Quit: Connection closed for inactivity
[12:24:36] lucasb: has joined #ruby

2018-12-13

[12:03:53] lucasb: has joined #ruby

2018-12-12

[00:31:54] lucasb: Quit: Connection closed for inactivity
[10:35:49] lucasb: has joined #ruby
[17:45:30] lucasb: Quit: Connection closed for inactivity
[18:06:54] lucasb: has joined #ruby
[23:46:34] lucasb: Quit: Connection closed for inactivity

2018-12-11

[01:48:14] lucasb: Quit: Connection closed for inactivity
[10:52:12] lucasb: has joined #ruby

2018-12-10

[01:34:58] lucasb: Quit: Connection closed for inactivity
[09:18:53] lucasb: has joined #ruby

2018-12-09

[02:05:35] lucasb: Quit: Connection closed for inactivity
[10:35:19] lucasb: has joined #ruby

2018-12-08

[01:21:53] lucasb: Quit: Connection closed for inactivity
[10:56:01] lucasb: has joined #ruby
[22:40:21] lucasb: has joined #RubyOnRails
[23:45:44] lucasb: has left #RubyOnRails: ()

2018-12-07

[00:03:49] lucasb: which formats the tarball are available? :) https://www.ruby-lang.org/en/news/2018/12/06/ruby-2-6-0-rc1-released/
[00:04:41] lucasb: ^^ must have been a copy-paste error
[00:05:17] lucasb: ah, ok. It was seen already. thanks :)
[00:05:47] lucasb: anyway, just download my prefered flavour: tar.xz
[00:05:57] lucasb: *I downloaded
[00:09:52] lucasb: havenwood: https://github.com/ruby/www.ruby-lang.org/commit/aae76c9f90e6d98fe4d4160192cd6b5ef1da382a
[00:10:14] lucasb: someone looked to the left, but didn't look to the right
[00:12:36] lucasb: I hope the extensions matchs the checksums :)
[00:12:42] lucasb: havenwood: thanks!
[02:30:49] lucasb: Quit: Connection closed for inactivity
[10:13:00] lucasb: has joined #ruby
[11:03:50] lucasb: RubyVM::AbstractSyntaxTree!
[11:04:22] lucasb: look at the size of the that word :) I guess they didn't wanted just "RubyVM::AST"
[11:08:20] lucasb: it seems it was AST before... https://github.com/ruby/ruby/commit/1d7d08262e07b7d0d11ec2d4efa29ad2b52c565a
[11:08:41] lucasb: IMO shorter names are better. anyway, just a detail I spotted on the RC1 announcement

2018-12-06

[02:36:09] lucasb: Quit: Connection closed for inactivity
[10:06:22] lucasb: has joined #ruby

2018-12-05

[03:36:56] lucasb: Quit: Connection closed for inactivity
[11:17:02] lucasb: has joined #ruby
[17:36:09] lucasb: Quit: Connection closed for inactivity
[18:04:53] lucasb: has joined #ruby

2018-12-04

[01:54:44] lucasb: Quit: Connection closed for inactivity
[09:37:50] lucasb: has joined #ruby

2018-12-03

[02:14:36] lucasb: Quit: Connection closed for inactivity

2018-11-25

[17:45:45] lucasb: has joined #ruby

2018-05-10

[14:30:45] lucasb: has joined #ruby
[18:18:27] lucasb: Ping timeout: 240 seconds
[18:19:40] lucasb: has joined #ruby
[18:23:40] lucasb: Client Quit

2017-06-17

[13:51:10] lucasb: has joined #ruby
[15:32:38] lucasb: Quit: leaving

2016-04-29

[18:38:40] lucasb: has joined #ruby
[18:55:50] lucasb: Quit: leaving

2016-02-18

[00:12:01] lucasb: Quit: leaving

2016-02-17

[23:05:18] lucasb: has joined #ruby
[23:05:22] lucasb: has joined #ruby-offtopic
[23:06:20] lucasb: shevy: ping. still around?
[23:07:00] lucasb: shevy: I saw this: https://bugs.ruby-lang.org/issues/9969
[23:07:11] lucasb: shevy: I fully support your idea :)
[23:08:35] lucasb: shevy: I made a comment on #10121. I didn't see the #9969 before.
[23:26:34] lucasb: keys also can be anything :)
[23:27:54] lucasb: Ox0dea: indeed, #hash is only on Object :)
[23:30:38] lucasb: right. makes sense for two different string objects to have the same hash
[23:39:08] lucasb: foo['bar']['baz'].values.only?(...) ?
[23:39:40] lucasb: or .one? if ony? meant that
[23:43:38] lucasb: there was an issue about adding a .bury method, with the oposite semantics of .dig :)
[23:44:52] lucasb: new in 2.3
[23:47:54] lucasb: shall we play?
[23:48:13] lucasb: I wish there was more irc games besides hangman
[23:48:34] lucasb: would cows and bulls be fun to play here?
[23:49:35] lucasb: https://en.wikipedia.org/wiki/Bulls_and_Cows
[23:50:22] lucasb: I never heard of it either, but someone mentioned it on #ruby sometime ago
[23:50:41] lucasb: yeah, as a kid, I remember seeing something like mastermind

2016-02-13

[17:16:11] lucasb: has joined #ruby
[17:16:17] lucasb: has joined #ruby-offtopic
[17:35:17] lucasb: has joined #RubyOnRails
[17:38:50] lucasb: what's cooking?
[20:54:40] lucasb: Quit: leaving

2016-02-12

[00:02:16] lucasb: 24 possibilites :)
[00:07:35] lucasb: DeBot: open
[00:07:46] lucasb: DeBot: M:
[00:09:16] lucasb: I wasn't doing it serious, just some adhoc filtering from within vim
[00:10:19] lucasb: why so serious?
[00:19:29] lucasb: DeBot: !hangman ruby 5
[00:20:50] lucasb: 35 possibilities :D
[00:20:56] lucasb: super serious now
[00:24:08] lucasb: DeBot: tp
[00:24:33] lucasb: DeBot: starttls
[00:31:21] lucasb: DeBot: starttls
[00:58:45] lucasb: DeBot: du
[01:08:43] lucasb: do you mean like BigDecimal.new(...).to_f ?
[01:19:34] lucasb: Quit: leaving
[14:41:16] lucasb: has joined #ruby
[14:41:22] lucasb: has joined #ruby-offtopic
[14:42:50] lucasb: hey good people
[15:02:57] lucasb: ah, good you noticed it. you're welcome :)
[15:04:34] lucasb: yes, I think (false.present? ? false : true) == (false || true) is a tautology :)
[15:05:09] lucasb: so, ruby[bot] besides evaluating snippets, is also the bot who logs the channel?
[15:05:23] lucasb: wouldn't be better to split into separate bots?
[16:10:17] lucasb: put outside the parens
[16:16:02] lucasb: if I understood correctly, those methods are just hooks that will be called for you, if you define them
[16:21:13] lucasb: i don't know, but I think you can put them in the class that includes the PageObject module
[16:21:41] lucasb: class MyPage; include PageObject; def initialize_accessors; ... end; def initialize_page; ...; end end
[17:13:42] lucasb: module Kernel; def MyObject(*args); MyObject.new(*args); end end
[17:16:18] lucasb: DeBot: !hangman ruby 5
[17:19:26] lucasb: DeBot: r#
[17:38:16] lucasb: DeBot: matrix coerce
[18:08:26] lucasb: at the end of the method, the generated is getting parsed with JSON.parse to see if it's valid. Maybe you can comment that code to speed things
[18:08:47] lucasb: *the generated string
[18:54:16] lucasb: Quit: leaving
[19:24:23] lucasb: has joined #ruby
[19:24:27] lucasb: has joined #ruby-offtopic
[20:29:54] lucasb: DeBot: fc
[20:38:53] lucasb: DeBot: !hangman ruby 5
[20:43:12] lucasb: DeBot: Process::ID::switch
[21:04:05] lucasb: I was in doubt between uid and gid :)
[21:04:52] lucasb: Ox0dea: hey, sorry for cheating hangman yesterday
[21:29:00] lucasb: Time.new(gets, gets, gets).yday :D
[21:29:19] lucasb: just kidding, it doesn't work :)
[21:30:51] lucasb: oops, it does work. I thought it wouldn't accept strings as arguments, but it accepts
[23:10:18] lucasb: you missed the oportunity to say 'ohays'
[23:36:05] lucasb: Quit: leaving

2016-02-11

[23:40:33] lucasb: has joined #ruby
[23:40:38] lucasb: has joined #ruby-offtopic
[23:43:16] lucasb: I don't know if apeiros is still around, but... the ruby community log doesn't log ruby[bot] responses
[23:52:16] lucasb: DeBot: !hangman ruby
[23:54:50] lucasb: DeBot: :B
[23:55:37] lucasb: I always forget the special chars :)

2016-02-01

[00:29:18] lucasb: Quit: leaving

2016-01-31

[00:15:34] lucasb: Quit: leaving
[12:51:39] lucasb: has joined #ruby
[12:51:45] lucasb: has joined #ruby-offtopic
[14:20:03] lucasb: It's good that I'm an touch typist
[14:39:23] lucasb: split qwerty: https://eval.in/510740
[15:28:52] lucasb: DeBot: #!/usr/bin/perl
[18:44:30] lucasb: DeBot: ip

2016-01-30

[13:56:46] lucasb: has joined #ruby
[13:56:51] lucasb: has joined #ruby-offtopic
[17:02:33] lucasb: what did you write in database.yml?
[18:27:21] lucasb: ruby doesn't know how to read named pipes given on the command line with the bash <(...) syntax
[18:27:38] lucasb: both perl and python can handle those
[18:28:09] lucasb: ruby <(echo 'p 42') # error
[18:28:29] lucasb: ruby -e 'eval File.read(ARGV.shift)' <(echo 'p 42') # but this works
[18:29:09] lucasb: havenwood: strange... O.o
[18:29:33] lucasb: maybe something on my environment? my ruby here is 2.3
[18:30:33] lucasb: full error for me:
[18:30:35] lucasb: /dev/fd/63: No such file or directory @ realpath_rec - /proc/5379/fd/pipe:[140678] (Errno::ENOENT)
[18:30:48] lucasb: yeah, maybe I have some outdated library or something :(
[18:31:05] lucasb: shevy: your system is screwed! :D
[18:35:50] lucasb: Linux kernel 3.18 here. I should update my distro :)
[19:03:51] lucasb: if you just yield once, and call #next once, it doesn't even raise that 'fiber called across threads'; so I guess the Enumerator maybe caches the first value somehow.
[21:18:18] lucasb: it starts with a bee
[21:48:42] lucasb: DeBot: :P
[21:57:13] lucasb: and people call me cheater... I'm an amateur grepper at most
[22:02:49] lucasb: DeBot: :D
[23:39:38] lucasb: DeBot: lol
[23:48:23] lucasb: DeBot: DUPLOYAN LETTER
[23:48:28] lucasb: oh, almost :)
[23:50:09] lucasb: DeBot: armenian

2016-01-29

[12:45:40] lucasb: has joined #ruby
[12:45:45] lucasb: has joined #ruby-offtopic
[16:10:00] lucasb: Ox0dea: hey, cool gem! :)
[16:10:32] lucasb: but you would still classify the enumerator getting rewind as a bug, no?
[16:20:12] lucasb: Ox0dea: hm, ok. I must still understand how everything works. Thanks for the explanation!
[16:26:39] lucasb: kbni: bear in mind that bbatsov's style guide is very good, but it's not the absolute answer for everything. a google search for "ruby style guide" yields some other interesting ones. even some core developers write ruby in their own way, so just follow your intuition.
[16:52:28] lucasb: parents always helps their children
[17:02:38] lucasb: I still think someone should submit a redmine issue for this "automatic" behavior, since nobody expects that to happen.
[17:08:59] lucasb: I just wrote some simple snippet that I think is clearer the issue. hold on a sec
[17:11:59] lucasb: https://eval.in/509874
[17:20:46] lucasb: that is one side of the issue, to *not* automatically rewind
[17:21:06] lucasb: the other side is if someone wants to keep going, past the raised exception
[17:21:26] lucasb: like, if there was more yields after the raise; yield 3; yield 4, etc.
[19:44:07] lucasb: DeBot: asimo robot
[19:51:33] lucasb: Ox0dea: for a second, I thought that was an image from a charlie chaplin movie
[20:38:21] lucasb: is there some way to steal some methods from a class and insert in another?
[20:38:43] lucasb: stdlib 'scanf' inserts some methods in IO, but I want to use an StringIO to play with it
[20:39:41] lucasb: if 'scanf' defined some module, it would be easy to insert into StringIO, but it declares directly under class IO
[20:42:25] lucasb: so, I just grab the methods with IO.method(:scanf), and insert into strio.define_singleton_method(:scanf, the_method) ?
[20:42:43] lucasb: I'll try that...
[20:44:51] lucasb: yeah, strange. I don't why it said Kernel there. scanf declares both IO#scanf and Kernel#scanf
[20:46:17] lucasb: I think it's easier if I just write a file. It's just that the generic problem of moving methods around got me interested in how to solve it.
[20:48:44] lucasb: Papierkorb: interesting. I'm taking a look. thank you.
[20:51:37] lucasb: btw, I was trying to understand this: https://bugs.ruby-lang.org/issues/12035
[20:52:03] lucasb: to see if the scanf handling of whitespace was different between strings and files. but I guess it's not.
[20:52:47] lucasb: yes, I was testing the difference between String#scanf and IO#scanf
[21:09:13] lucasb: slash_nick: about the enumerator rewind? nope. I thought *you* was filing it ;)
[21:10:04] lucasb: sorry, I still don't have much experience in ruby, so I would prefer if somebody else filed it.
[21:19:18] lucasb: Darmani++
[21:35:53] lucasb: slash_nick: awesome. thank you for reporting!
[22:08:12] lucasb: Quit: leaving

2016-01-28

[11:29:19] lucasb: has joined #ruby
[12:11:50] lucasb: has joined #ruby-offtopic
[13:40:04] lucasb: I think you have to 'eval' it
[16:26:05] lucasb: someone opened issue #12029 that is related to the Enumerable block arguments I talked about yesterday. But it is already closed, so I guess I'll get no further explanation on that. :(
[16:30:51] lucasb: exactly that
[16:46:23] lucasb: @response vs. response
[16:46:59] lucasb: I don't even know if just plain 'response' without @ worked for you
[19:28:32] lucasb: because that's the nature of floating point numbers
[19:32:26] lucasb: (Rational('2.47') + Rational('0.2')).to_f #=> 2.67
[19:33:50] lucasb: Canar: lol, I mentally parsed the same way
[19:34:18] lucasb: Ox0deb: thank you. must easier on the fingers :)
[19:36:46] lucasb: Mantissa is Abscissa's sister
[21:04:45] lucasb: did you meant to raise StandardError or StopIteration?
[21:23:04] lucasb: yeah, I'm curious too why the enumerator is getting rewind on errors. there must be some explanation
[21:36:54] lucasb: Ox0dec: interesting. didn't know enumerators had anything to do with fibers.
[21:37:22] lucasb: after all, enumerators can be lazy, but they are not async or concurrenty, right?
[21:39:16] lucasb: yes, makes sense
[21:42:33] lucasb: slash_nick: I'll read that article. Thanks for the link!
[21:44:28] lucasb: Ox0dec: hey, you can write an extension to expose enumerator's fiber as an attribute :)
[21:44:46] lucasb: enum.get_my_damn_fiber
[22:09:23] lucasb: or maybe github? bitbucket?
[23:01:07] lucasb: no, attr_accessor creates both a writer and a reader
[23:39:29] lucasb: Quit: leaving

2016-01-27

[22:47:43] lucasb: I know I can do |*x| and get an array
[22:47:56] lucasb: I just wonder if there's some convention I'm missing
[22:48:25] lucasb: If I do map {|*x| ... } I get [a,b]
[22:48:31] lucasb: If I do select {|*x| ... } I get [[a,b]]
[22:49:07] lucasb: Ox0dea, adaedra: it's for a custom method I created
[22:49:25] lucasb: *custom object
[22:52:01] lucasb: Ox0dea: so, you confirm the weirdiness?
[22:53:15] lucasb: class C; include Enumerable; def each; yield 1, 2; yield 3, 4; end; end
[22:53:21] lucasb: ^^ I just did this
[22:53:51] lucasb: I just have to watch out which way should I write the block arguments
[22:59:04] lucasb: ok, I try to be careful with my blocks arguments signature. thanks everybody for acknowledging the situation.
[23:01:09] lucasb: maybe some core code is considering the arity of the block for some methods and not for others
[23:06:26] lucasb: oh, so there was designs decision behind that. I'll try do dig some discussion on it. thanks for the note Mon_Ouie.
[23:36:25] lucasb: Quit: leaving