TheBrayn

Activity Graph

Page 1 of 2 | Next »

2019-09-19

2019-08-22

[00:56:18] TheBrayn: *.net *.split
[01:13:47] TheBrayn: has joined #ruby
[07:11:12] TheBrayn: has joined #ruby

2019-08-06

[12:45:47] TheBrayn: Tuor: do you mean a linter? There is rubocop

2019-07-23

[09:19:06] TheBrayn: Ping timeout: 258 seconds
[10:44:00] TheBrayn: has joined #ruby
[10:44:19] TheBrayn: Client Quit
[10:55:43] TheBrayn: has joined #ruby

2019-07-09

[11:55:58] TheBrayn: *.net *.split
[12:01:32] TheBrayn: has joined #ruby

2019-06-23

[18:34:33] TheBrayn: has joined #ruby

2019-06-19

[06:54:15] TheBrayn: has joined #ruby

2019-05-22

[09:07:52] TheBrayn: Ping timeout: 252 seconds
[09:11:12] TheBrayn: has joined #ruby
[14:56:34] TheBrayn: Ping timeout: 252 seconds
[14:59:41] TheBrayn: has joined #ruby

2019-05-04

[12:47:25] TheBrayn: has joined #ruby

2019-05-03

[21:43:54] TheBrayn: *.net *.split
[22:09:00] TheBrayn: has joined #ruby

2019-04-16

[09:02:08] TheBrayn: has joined #ruby

2019-04-13

[16:49:58] TheBrayn: *.net *.split

2019-03-19

[13:32:00] TheBrayn: has joined #ruby

2019-03-18

[11:20:49] TheBrayn: has joined #ruby
[13:52:27] TheBrayn: IRC was a mistake
[13:52:47] TheBrayn: I think it's not too bad, better than nondescript variable names

2019-03-10

[18:31:51] TheBrayn: has joined #ruby
[18:43:51] TheBrayn: has joined #ruby

2019-03-08

[13:26:56] TheBrayn: what are even usecases for 100% validating an email address?

2019-03-07

[04:53:44] TheBrayn: has joined #ruby
[14:43:05] TheBrayn: you don't have to do anything for that
[14:43:57] TheBrayn: just read ARGV
[14:44:04] TheBrayn: or use an option parser
[14:50:21] TheBrayn: or “ruby puts_stdin.rb <<< 'hi'” if you are using recent versions of bash
[15:00:44] TheBrayn: ruby accepts code on stdin

2019-02-28

[09:40:45] TheBrayn: you could use &. and return nil

2019-02-15

[11:43:50] TheBrayn: Where can I find the documentation for the options here: https://ruby-doc.org/stdlib-2.5.3/libdoc/psych/rdoc/Psych.html#method-c-dump
[12:11:11] TheBrayn: canonical: true is quite the thing

2019-02-13

[15:58:41] TheBrayn: https://gist.github.com/mmerfort/86d2a1fd33828d8fad7ccb4a0a504140 how do you think this could be improved?
[16:00:08] TheBrayn: what do you mean?
[16:00:45] TheBrayn: I renamed that and forgot to update it
[16:01:27] TheBrayn: and the .to_h inside is redundant
[16:02:35] TheBrayn: isn't that from rails?
[16:03:10] TheBrayn: I only transform the keys
[16:07:28] TheBrayn: I think that just makes it harder to read
[16:14:25] TheBrayn: I wrote this on 2.5.3 but I'm usually on 2.6
[16:15:00] TheBrayn: hmm, yes I'll use that in 2.5.3 code
[16:21:39] TheBrayn: Thanks for your ideas

2019-02-12

[12:41:50] TheBrayn: has joined #ruby

2019-02-08

[21:37:59] TheBrayn: I have a block of code where assignments are done in if/elsif statements. Accordings to rubocop's standard they should be avoided. What is a good ways to rewrite this?
[21:38:41] TheBrayn: the assignments are just done from an array
[21:39:18] TheBrayn: should I just assign all of them beforehand and then use “elifif myvar” instead of “elif myvar = something['foo']”
[21:49:29] TheBrayn: https://github.com/rodjek/puppet-lint/blob/master/lib/puppet-lint/lexer.rb#L216
[21:59:52] TheBrayn: havenwood: what is the “possible_regex?“ method?
[22:06:50] TheBrayn: havenwood: thanks, I'll disable it for now until I can think of how to refactor this
[22:22:55] TheBrayn: https://gist.github.com/mmerfort/3fe6eac6d6ac2e941c33a75e3285ee36 what would you prefer?
[22:51:05] TheBrayn: but is it preferred to chain two blocks over using next unless?

2019-02-05

[18:12:46] TheBrayn: Is there any reason to use 1 << 3 instead of 2 ** 3? I'm seeing this in some code I am reviewing
[18:13:38] TheBrayn: I think the person writing this code is just trying to be purposefully obscure
[18:14:15] TheBrayn: yes, absolutely

2019-02-01

[14:06:07] TheBrayn: 2.6 is already out
[14:08:38] TheBrayn: where can I find the documentation for that?

2019-01-30

[09:17:55] TheBrayn: match can be used on a regexp https://ruby-doc.org/core-2.6/Regexp.html#method-i-match or on a string https://ruby-doc.org/core-2.6/String.html#method-i-match
[09:20:53] TheBrayn: don't quote your regexp
[09:20:58] TheBrayn: just do /myregexp$/
[09:25:18] TheBrayn: ntt: do you know how variables in ruby work?

2019-01-13

[01:52:06] TheBrayn: https://rubygems.org/gems/spaghetti/versions/0.3.4 <- this one?

2019-01-08

[13:03:06] TheBrayn: wasn't there a feature in recent ruby versions to do something like this easier: http://chrisholtz.com/blog/lets-make-a-ruby-hash-map-method-that-returns-a-hash-instead-of-an-array/
[13:24:27] TheBrayn: is that new in 2.6?
[13:27:33] TheBrayn: ok, I still have 2.5
[13:27:46] TheBrayn: but nice to know nonetheless

2019-01-07

[15:08:46] TheBrayn: I can really recommend httparty
[15:08:49] TheBrayn: it's a joy to use

2019-01-04

[09:32:09] TheBrayn: mutantkeyboard: I'm using it for Puppet and general scripting
[09:32:36] TheBrayn: I haven't done much web development with it at all

2018-10-24

[18:48:53] TheBrayn: *.net *.split
[18:49:20] TheBrayn: has joined #ruby

2018-10-18

[17:38:42] TheBrayn: is something currently weird with rubygems.org or is it just me? https://gist.github.com/mmerfort/bc0f6e214dca2e061e87815e05769084

2018-10-09

[00:59:40] TheBrayn: Ping timeout: 246 seconds
[01:01:04] TheBrayn: has joined #ruby

2018-09-02

[14:47:16] TheBrayn: Ping timeout: 246 seconds
[15:14:07] TheBrayn: has joined #ruby

2018-08-30

[14:31:57] TheBrayn: has joined #ruby

2018-08-16

[07:59:58] TheBrayn: has joined #ruby

2018-07-27

[11:13:05] TheBrayn: I don't think it has ever been a good resource but that's just from my personal experience
[11:38:43] TheBrayn: do you already know other programming languages?
[11:43:01] TheBrayn: I learned ruby by using ruby koans
[11:43:12] TheBrayn: and then reading the documentation and code

2018-07-26

[07:09:18] TheBrayn: well, you can just do bundle install --path .vendor in your project
[07:09:30] TheBrayn: and then do bundle exec rake
[07:09:50] TheBrayn: but you should usually be able to install gems into your homedir too
[07:09:58] TheBrayn: not sure how ubuntu does things though
[07:15:10] TheBrayn: I wonder what other distributions do differently to allow this
[07:18:05] TheBrayn: I don't think that's necessary at all
[07:18:14] TheBrayn: you should be able to add an additional gem path
[08:12:12] TheBrayn: Radar: I don't really have a use for neither of them

2018-07-25

[07:49:53] TheBrayn: Ping timeout: 248 seconds
[07:50:30] TheBrayn: has joined #ruby

2018-07-20

[00:07:05] TheBrayn: *.net *.split
[00:15:36] TheBrayn: has joined #ruby

2018-07-19

[12:15:55] TheBrayn: I always use https://ruby-doc.org

2018-07-18

[10:54:29] TheBrayn: Quit: WeeChat 2.1
[10:54:58] TheBrayn: has joined #ruby

2018-07-12

2018-07-08

[14:26:24] TheBrayn: Quit: WeeChat 2.1
[14:26:52] TheBrayn: has joined #ruby
[18:35:22] TheBrayn: Quit: WeeChat 2.1
[18:41:49] TheBrayn: has joined #ruby

2018-07-07

[23:33:55] TheBrayn: any idea why rubocop does not recognise these config parameters? https://gist.github.com/mmerfort/28d8c12cbde665e86b7d5e511bef435d
[23:42:50] TheBrayn: that was the solution, thank you

2018-06-26

[11:55:32] TheBrayn: what's the difference between %i() and %I() for an array of symbols?
[11:57:39] TheBrayn: thanks, I see it now
[15:07:18] TheBrayn: bhaak: https://tools.ietf.org/html/rfc4042

2018-06-22

[08:43:20] TheBrayn: Quit: WeeChat 2.1
[08:51:28] TheBrayn: has joined #ruby

2018-05-29

[02:47:09] TheBrayn: *.net *.split
[02:47:59] TheBrayn: has joined #ruby

2018-05-23

[13:49:40] TheBrayn: Ping timeout: 256 seconds
[14:01:56] TheBrayn: has joined #ruby

2018-05-20

[10:58:39] TheBrayn: Quit: WeeChat 2.0.1
[11:16:37] TheBrayn: has joined #ruby

2018-04-25

[12:25:51] TheBrayn: *.net *.split
[12:27:19] TheBrayn: has joined #ruby
[15:01:22] TheBrayn: *.net *.split
[15:03:18] TheBrayn: has joined #ruby

2018-04-12

[07:57:05] TheBrayn: Ping timeout: 256 seconds
[07:58:54] TheBrayn: has joined #ruby

2018-03-13

[10:58:59] TheBrayn: Ping timeout: 276 seconds
[17:50:23] TheBrayn: has joined #ruby

2018-03-10

[13:27:03] TheBrayn: Quit: WeeChat 2.0.1
[13:45:23] TheBrayn: has joined #ruby

2018-02-25

[09:34:48] TheBrayn: *.net *.split
[09:36:30] TheBrayn: has joined #ruby

2018-02-20

[12:10:40] TheBrayn: Ping timeout: 265 seconds
[12:16:42] TheBrayn: has joined #ruby
[12:31:21] TheBrayn: Ping timeout: 256 seconds
[12:44:27] TheBrayn: has joined #ruby

2018-01-28

[03:33:49] TheBrayn: Quit: WeeChat 2.0.1
[03:35:11] TheBrayn: has joined #ruby

2018-01-08

[07:13:16] TheBrayn: *.net *.split
[07:13:59] TheBrayn: has joined #ruby

2018-01-07

[20:35:03] TheBrayn: *.net *.split
[21:07:16] TheBrayn: has joined #ruby

2018-01-04

[10:30:10] TheBrayn: Quit: WeeChat 2.0
[11:02:57] TheBrayn: has joined #ruby
[11:12:34] TheBrayn: Quit: WeeChat 2.0.1
[11:12:53] TheBrayn: has joined #ruby

2018-01-03

[09:46:41] TheBrayn: Ping timeout: 248 seconds
[10:25:40] TheBrayn: has joined #ruby

2017-12-22

[09:50:42] TheBrayn: how is this a ruby question?
[14:33:36] TheBrayn: We don't need no education

2017-12-13

2017-12-11

[10:30:59] TheBrayn: Quit: WeeChat 1.9.1
[10:33:29] TheBrayn: has joined #ruby

2017-12-09

[05:06:24] TheBrayn: *.net *.split
[05:15:54] TheBrayn: has joined #ruby

2017-12-07

[14:48:34] TheBrayn: *.net *.split
[14:55:07] TheBrayn: has joined #ruby

2017-12-01

[02:28:42] TheBrayn: has joined #ruby

2017-11-28

[17:30:26] TheBrayn: Ping timeout: 255 seconds
[17:35:32] TheBrayn: has joined #ruby

2017-11-17

[09:33:42] TheBrayn: Quit: WeeChat 1.9
[09:36:44] TheBrayn: has joined #ruby

2017-11-02

[15:39:17] TheBrayn: have you tried this channel right here?

2017-10-04

[09:34:51] TheBrayn: pavan: You'll need to provide more information than that

2017-09-29

[15:26:12] TheBrayn: is there a list of characters I can use somewhere?
[15:27:27] TheBrayn: havenwood: for %r

2017-09-25

[07:41:04] TheBrayn: has joined #ruby

2017-09-22

[07:43:24] TheBrayn: Quit: WeeChat 1.9
[07:43:42] TheBrayn: has joined #ruby
[07:46:13] TheBrayn: Client Quit
[08:10:51] TheBrayn: has joined #ruby
[15:26:22] TheBrayn: Quit: WeeChat 1.9

2017-09-11

[11:29:59] TheBrayn: Ping timeout: 240 seconds
[13:59:46] TheBrayn: has joined #ruby

2017-09-05

[15:06:01] TheBrayn: Quit: WeeChat 1.9
[15:06:57] TheBrayn: has joined #ruby
[15:28:24] TheBrayn: Quit: WeeChat 1.9
[15:28:50] TheBrayn: has joined #ruby

2017-08-10

[08:37:52] TheBrayn: Quit: WeeChat 1.9
[08:43:37] TheBrayn: has joined #ruby

2017-08-09

[13:50:32] TheBrayn: I have an if call that I want to change: „if foo.bar? && baz = somefunction“ when will the second part fail?
[13:51:56] TheBrayn: but this is an anti-pattern, right?
[13:57:14] TheBrayn: ok I'll just wrap the second statement in parentheses
[13:59:15] TheBrayn: yeah the result is used

2017-07-28

[12:49:08] TheBrayn: Quit: WeeChat 1.8
[12:51:52] TheBrayn: has joined #ruby

2017-07-24

[13:12:38] TheBrayn: I'm trying to install gemstash on archlinux: https://gist.github.com/mmerfort/0536454bea0d62ea76cd621c8b79f6db any idea why this is failing?
[13:15:38] TheBrayn: can you maybe recommend something similar?
[13:23:34] TheBrayn: https://gist.github.com/mmerfort/b529be55c89ea5c5aae9361f768dba73
[13:24:07] TheBrayn: does this only concern internal connections?
[13:24:10] TheBrayn: because that would be ok
[13:24:20] TheBrayn: I'm going to run this locally for the time being
[13:31:31] TheBrayn: that works, thank you

2017-07-18

[02:13:58] TheBrayn: *.net *.split
[02:16:10] TheBrayn: has joined #ruby
[09:06:39] TheBrayn: Sometimes during the installation of a gem native extensions are built, is there a way to specify additional options like parallel jobs?

2017-07-14

[14:51:44] TheBrayn: you have one version and you chose an old one :P

2017-06-26

[13:02:35] TheBrayn: Quit: WeeChat 1.8
[13:06:58] TheBrayn: has joined #ruby
[13:09:45] TheBrayn: Client Quit
[13:11:14] TheBrayn: has joined #ruby
[13:11:22] TheBrayn: Client Quit
[13:12:47] TheBrayn: has joined #ruby

2017-06-23

[07:49:08] TheBrayn: has joined #ruby

2017-06-22

[19:56:59] TheBrayn: Ping timeout: 240 seconds

2017-06-20

[00:17:40] TheBrayn: Read error: Connection reset by peer
[00:41:22] TheBrayn: has joined #ruby

2017-06-18

[00:18:40] TheBrayn: Ping timeout: 246 seconds
[00:34:40] TheBrayn: has joined #ruby

2017-06-17

[18:15:35] TheBrayn: Ping timeout: 240 seconds
[18:38:40] TheBrayn: has joined #ruby
[18:41:17] TheBrayn: Client Quit
[18:43:45] TheBrayn: has joined #ruby
[18:56:27] TheBrayn: Ping timeout: 260 seconds
[19:05:23] TheBrayn: has joined #ruby

2017-06-12

[07:02:19] TheBrayn: has joined #ruby
[09:51:47] TheBrayn: Quit: WeeChat 1.5
[09:53:45] TheBrayn: has joined #ruby

2017-06-07

[18:42:04] TheBrayn: Read error: Connection reset by peer
[18:43:07] TheBrayn: has joined #ruby
[18:45:16] TheBrayn: Read error: Connection reset by peer

2017-05-26

[13:24:17] TheBrayn: Quit: WeeChat 1.5
[13:48:03] TheBrayn: has joined #ruby

2017-05-18