mroutis

Activity Graph

« Prev | Page 2 of 6 | Next »

2018-08-22

[00:22:11] mroutis: thoraxe: maybe you can run a headless chrome and call it as written on the documentation
[00:22:40] mroutis: `distill http://example.com/article.html`
[02:39:22] mroutis: has joined #ruby-offtopic
[02:40:04] mroutis: night, all
[02:41:37] mroutis: what are some small open source gems with good quality code?
[02:42:44] mroutis: (with good quality, I mean pleasant to the eyes / with _a e s t h e t i c s_)
[04:12:45] mroutis: Ping timeout: 265 seconds
[14:10:12] mroutis: has joined #ruby
[15:29:31] mroutis: hehe, I also switched from minitest to rspec because of stub/mocks
[15:31:48] mroutis: no, havenwood, I enjoy the expresiveness of rspec `allow x to receive y`

2018-08-21

[03:12:18] mroutis: has joined #ruby
[04:20:58] mroutis: Ping timeout: 260 seconds
[15:23:42] mroutis: has joined #ruby
[16:05:16] mroutis: Remote host closed the connection
[17:16:05] mroutis: has joined #ruby

2018-08-20

[00:32:47] mroutis: has joined #ruby-offtopic
[00:32:47] mroutis: has joined #ruby
[01:31:48] mroutis: indeed, wild_buffalo, however, I couldn't found info about that function, is it defined elsewhere?
[01:36:46] mroutis: wild_buffalo: yes, function names accept a question mark as correct syntax, so it's used for functions that returns a boolean
[01:42:06] mroutis: oh, true, elomatreb, the bang (!) convention is for methods that change data in a "destructive" way (modifying the object they are called on, instead of just outputting the result)
[01:42:12] mroutis: wild_buffalo: ^
[01:46:23] mroutis: ACTION scratches head
[01:46:29] mroutis: that's true, elomatreb
[01:51:15] mroutis: ohh right, the "may raise", as in "save!" or "create!" in ruby on rails
[02:22:57] mroutis: Ping timeout: 240 seconds
[02:40:37] mroutis: has joined #ruby-offtopic
[02:40:37] mroutis: has joined #ruby
[03:21:40] mroutis: Remote host closed the connection

2018-08-19

[17:02:07] mroutis: has joined #ruby
[17:02:08] mroutis: has joined #ruby-offtopic
[17:37:02] mroutis: has left #ruby: ()
[17:40:32] mroutis: Quit: leaving
[17:40:52] mroutis: has joined #ruby-offtopic
[17:40:52] mroutis: has joined #ruby
[17:41:08] mroutis: Client Quit
[17:43:12] mroutis: has joined #ruby-offtopic
[17:43:12] mroutis: has joined #ruby
[17:45:17] mroutis: Client Quit
[17:45:36] mroutis: has joined #ruby-offtopic
[17:45:36] mroutis: has joined #ruby
[17:46:13] mroutis: Client Quit
[18:24:16] mroutis: has joined #ruby-offtopic
[18:24:16] mroutis: has joined #ruby
[18:34:40] mroutis: Quit: leaving
[20:01:05] mroutis: has joined #ruby-offtopic
[20:01:05] mroutis: has joined #ruby
[20:19:29] mroutis: Ping timeout: 276 seconds

2018-08-18

[00:14:52] mroutis: has joined #ruby-offtopic
[00:14:52] mroutis: has joined #ruby
[00:20:48] mroutis: Read error: Connection reset by peer
[00:23:23] mroutis: has joined #ruby
[00:23:24] mroutis: has joined #ruby-offtopic
[01:20:05] mroutis: Remote host closed the connection

2018-08-17

[00:18:09] mroutis: Radar, what do you think about translating documentation/rails guides? (every fork I've opened is outdated)
[00:20:20] mroutis: do you think it's valuable / worth it?
[00:25:56] mroutis: what benefit do you perceive in maintaining a translated doc?
[00:37:09] mroutis: sorry, I meant benefit for the readers
[00:39:12] mroutis: it's always a controversial topic if the programming docs/guides should be translated, as programming is already "biased" in a certian way to english speakers
[00:40:52] mroutis: I guess is easier to teach english as a side track for a programming course (in a non-english-speaking country) than translating and maintaining different forks
[01:06:06] mroutis: Ping timeout: 272 seconds
[02:45:02] mroutis: has joined #ruby-offtopic
[02:45:02] mroutis: has joined #ruby
[03:50:29] mroutis: Remote host closed the connection
[04:12:36] mroutis: has joined #ruby-offtopic
[04:12:36] mroutis: has joined #ruby
[04:34:12] mroutis: Remote host closed the connection

2018-08-16

[03:01:45] mroutis: has joined #ruby-offtopic
[03:01:45] mroutis: has joined #ruby
[04:44:46] mroutis: Remote host closed the connection
[15:39:08] mroutis: has joined #ruby-offtopic
[15:39:08] mroutis: has joined #ruby
[16:35:23] mroutis: no, niexxx, slack is having an outage, tho
[16:45:02] mroutis: jrich523: an attribute writter
[16:45:26] mroutis: ACTION finding documentation about it
[16:46:24] mroutis: yep, I still dream of a way to index "code" for search engines
[17:29:48] mroutis: I burnt my savings going to rails conf; guess I should start saving some bucks for RubyConf 2019
[17:57:59] mroutis: Ping timeout: 244 seconds
[18:37:46] mroutis: has joined #ruby-offtopic
[18:37:46] mroutis: has joined #ruby
[18:41:27] mroutis: baweaver: I just saw advi's keynote, it was surprisingly emotive
[18:42:47] mroutis: this is what I love about ruby / ruby on rails community, there's always a human side of it
[18:44:13] mroutis: btw. avdi has a course on OOP, I'm on the third week of the course an it have been amazing so far
[19:34:09] mroutis: Remote host closed the connection
[23:54:40] mroutis: has joined #ruby
[23:54:41] mroutis: has joined #ruby-offtopic

2018-08-15

[14:46:57] mroutis: has joined #ruby-offtopic
[14:46:57] mroutis: has joined #ruby
[15:18:57] mroutis: Ping timeout: 240 seconds
[16:54:36] mroutis: has joined #ruby-offtopic
[16:54:36] mroutis: has joined #ruby
[17:10:48] mroutis: Ping timeout: 256 seconds

2018-08-14

[01:17:33] mroutis: Ping timeout: 272 seconds
[03:39:43] mroutis: has joined #ruby-offtopic
[03:39:43] mroutis: has joined #ruby
[04:16:02] mroutis: Remote host closed the connection
[21:59:55] mroutis: has joined #ruby
[21:59:56] mroutis: has joined #ruby-offtopic
[22:22:00] mroutis: Remote host closed the connection

2018-08-13

[00:50:25] mroutis: what went wrong, this_dude ?
[00:57:27] mroutis: try using "puts" on your code, so you can debug what's going on with your variables; +1 if you use `binding.pry` or `byebug`
[01:24:45] mroutis: I don't play golf that much, but tried with the countHoles one, some feedback?
[01:24:49] mroutis: def countHoles(n);n.to_s.chars.map{|x|%w(1 2 3 5 7 0 4 6 9 8).zip([0,0,0,0,0,0,1,1,1,2]).to_h[x]}.sum;end
[01:27:48] mroutis: this_dude, a string is just "an array of characters" in C, right?
[01:28:24] mroutis: so, you want to know if those characters are the whole alphabet, isn't it?
[01:29:25] mroutis: how did you solved the countHoles one? can't you take some inspiration from there?
[01:30:23] mroutis: so this is
[01:31:37] mroutis: the input is "an array of strings"
[01:32:04] mroutis: and you need to return 0 or 1 for each of those strings, testing if they are pangram
[01:32:45] mroutis: ['a', 'abcdefghijklmnopqrstwxyz'] #=> [0,1]
[01:34:08] mroutis: now, do you understand why the input is an array of strings? and what you must output?
[01:35:06] mroutis: why are you adding your strings?
[01:35:08] mroutis: strings.sum
[01:35:41] mroutis: dude, you are doing ['a', 'abcdefghijklmnopqrstwxyz'].sum
[01:38:26] mroutis: if a string include a range? mhm I don't think that works
[01:39:15] mroutis: know, but he was doing 'hello world'.include?('a'..'z')
[01:40:42] mroutis: actually something like iterating over the string, counting the unique characters, and if those characters weren't 32
[01:41:10] mroutis: he didn't need to know about the stdlib
[01:41:59] mroutis: .all? is beautiful, tho, but if he would just concentrate on understanding the problem and try to solve it with what he knows, it would work
[01:43:08] mroutis: yep, I mean, for me that would be a redflag
[01:43:37] mroutis: I wouldn't want to enter a bootcamp without solid understanding about the language they are teaching
[01:53:15] mroutis: Remote host closed the connection
[01:53:39] mroutis: has joined #ruby-offtopic
[01:53:39] mroutis: has joined #ruby
[01:55:54] mroutis: Remote host closed the connection
[01:59:29] mroutis: has joined #ruby-offtopic
[01:59:29] mroutis: has joined #ruby
[03:05:06] mroutis: Ping timeout: 256 seconds
[04:27:27] mroutis: has joined #ruby
[04:27:28] mroutis: has joined #ruby-offtopic
[04:52:07] mroutis: Remote host closed the connection
[07:23:22] mroutis: has joined #ruby-offtopic
[07:23:22] mroutis: has joined #ruby
[07:24:32] mroutis: baweaver, have you thought about printing lemur+ruby stickers?
[07:29:41] mroutis: Remote host closed the connection
[15:36:35] mroutis: has joined #ruby
[15:36:36] mroutis: has joined #ruby-offtopic
[17:36:04] mroutis: join #nixos
[17:37:02] mroutis: ACTION ashamed
[17:37:33] mroutis: not promoting, my pinky couldn't reach the slash :/
[17:41:18] mroutis: Quit: leaving
[17:41:36] mroutis: has joined #ruby-offtopic
[17:41:36] mroutis: has joined #ruby
[17:42:14] mroutis: apeiros_: what kind of black magic was that! didn't know about <tab>
[17:55:27] mroutis: unfair comparison, everything in assembly is hard
[17:58:35] mroutis: baweaver: 5 (not target audience, tho it would be awesome that beginners understand how to debug/understand what's going on with their code)
[17:59:41] mroutis: it could help to reduce the frustration at the start of their learning curve
[18:27:35] mroutis: Ping timeout: 240 seconds
[19:14:15] mroutis: has joined #ruby
[19:14:16] mroutis: has joined #ruby-offtopic

2018-08-12

[00:19:41] mroutis: has joined #ruby
[00:19:42] mroutis: has joined #ruby-offtopic
[01:47:21] mroutis: Remote host closed the connection
[02:01:51] mroutis: has joined #ruby-offtopic
[02:01:51] mroutis: has joined #ruby
[02:24:43] mroutis: Remote host closed the connection
[17:25:31] mroutis: has joined #ruby-offtopic
[17:25:31] mroutis: has joined #ruby
[17:45:39] mroutis: it's not that bad, Mike11, being functional not translates into good-quality-handcrafted-by-artisan code
[17:45:57] mroutis: however, you could use each_slice.to_a
[17:46:16] mroutis: >> [20, 2, 3, 30, 3, 4, 40, 4, 5].each_slice.to_a
[17:46:28] mroutis: >> [20, 2, 3, 30, 3, 4, 40, 4, 5].each_slice(3).to_a
[17:47:04] mroutis: >> [20, 2, 3, 30, 3, 4, 40, 4, 5, 6].each_slice(3).to_a
[17:51:55] mroutis: I just completely misunderstood the problem, lol; canton7, that was a pretty clean solution
[18:58:29] mroutis: what do you mean, sagax ?
[18:59:37] mroutis: No, actually the search path is the following: No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
[19:00:28] mroutis: you can specify the rakefile with the `-f` flag
[19:00:52] mroutis: rake -f unconventional_name.rb
[19:22:28] mroutis: sagax, try with Rake::Task['yourtask'].invoke
[19:24:31] mroutis: normally, it would work like that, sagax, you don't need to specify the "namerakefile"
[19:24:45] mroutis: indeed, you need to load_rakefile
[19:25:04] mroutis: you don't need to
[19:25:13] mroutis: just `Rake.load_rakefile`
[19:25:14] mroutis: without name
[19:27:53] mroutis: try this, dude
[19:28:26] mroutis: https://gist.github.com/mroutis/f38fed535a1977eee3d6ddffb22e5ba7
[19:28:51] mroutis: download those files, and run `ruby test.rb`
[19:29:24] mroutis: you'll see that is loading the tasks without specifying explicitly the name of the rakefile
[19:30:20] mroutis: ¯\_(ツ)_/¯
[19:32:05] mroutis: what's the result of two foreign english speakers trying to communicate in english? a joke.
[20:27:54] mroutis: Ping timeout: 272 seconds
[20:28:07] mroutis: has joined #ruby-offtopic
[20:28:07] mroutis: has joined #ruby
[20:50:45] mroutis: Ping timeout: 244 seconds
[21:34:09] mroutis: has joined #ruby-offtopic
[21:34:09] mroutis: has joined #ruby

2018-08-11

[03:10:16] mroutis: has joined #ruby-offtopic
[03:10:16] mroutis: has joined #ruby
[03:20:30] mroutis: samort7, try something like :'api:name'
[03:20:38] mroutis: >>puts :'api:name'
[03:20:58] mroutis: >>puts { 'api:name': 'samort7' }
[03:22:44] mroutis: puts was trippin' with the hash
[03:22:58] mroutis: >> puts { a: 1 }
[03:27:57] mroutis: what are you trying to achieve, samort7 ?
[03:28:18] mroutis: it's clear, sorry
[03:29:26] mroutis: samort7: you are naming the keys of your outer_hash with symbols, you should reference them as symbols, not strings
[03:29:38] mroutis: outer_hash[:x].push...
[03:30:20] mroutis: no, is not, in Rails is pretty common to use HashWithIndiferenceAccess or something like that
[03:31:21] mroutis: samort7: https://api.rubyonrails.org/classes/ActiveSupport/HashWithIndifferentAccess.html
[03:33:30] mroutis: .values and .keys are useful too
[03:34:03] mroutis: and recently, the .transform_keys and .transform_values
[04:20:45] mroutis: that could be an interview question, havenwood; "get the occurence of every character in a string"
[05:54:09] mroutis: Remote host closed the connection
[17:11:54] mroutis: has joined #ruby-offtopic
[17:11:54] mroutis: has joined #ruby
[19:09:42] mroutis: Remote host closed the connection
[23:34:05] mroutis: has joined #ruby
[23:34:06] mroutis: has joined #ruby-offtopic
[23:35:57] mroutis: Remote host closed the connection

2018-08-10

[00:31:50] mroutis: can't compare, since I haven't use REXML :p
[00:41:08] mroutis: has left #ruby: ()
[02:40:56] mroutis: has joined #ruby
[02:41:05] mroutis: has joined #RubyOnRails
[02:45:53] mroutis: my IQ just raised +20 points just by reading that, al2o3-cr
[02:52:37] mroutis: has left #RubyOnRails: ()
[03:03:01] mroutis: are you all grinding codewars XP?
[05:15:55] mroutis: Remote host closed the connection
[15:41:55] mroutis: has joined #RubyOnRails
[15:41:55] mroutis: has joined #ruby
[15:43:41] mroutis: Remote host closed the connection
[15:44:39] mroutis: has joined #RubyOnRails
[15:44:39] mroutis: has joined #ruby
[15:44:52] mroutis: has left #RubyOnRails: ()
[15:45:03] mroutis: has joined #ruby-offtopic
[16:47:19] mroutis: samort14, they are "modules", afair, you can get an idea of the modules reading the docs: http://ruby-doc.org/stdlib-2.5.1/
[16:48:04] mroutis: I don't think those modules are packaged as gems
[16:48:22] mroutis: yw, samort14 ;)
[16:51:49] mroutis: yes, that's right
[16:54:27] mroutis: cool! if that helps, you can read more about gems here: https://guides.rubygems.org/what-is-a-gem/
[17:08:08] mroutis: havenwood: today I learned ^; that's interesting
[17:44:45] mroutis: Remote host closed the connection
[18:01:28] mroutis: has joined #ruby-offtopic
[18:01:28] mroutis: has joined #ruby
[19:18:05] mroutis: Ping timeout: 240 seconds
[19:55:04] mroutis: has joined #ruby-offtopic
[19:55:04] mroutis: has joined #ruby
[20:32:11] mroutis: Remote host closed the connection
[21:57:37] mroutis: has joined #ruby-offtopic
[21:57:37] mroutis: has joined #ruby
[22:35:35] mroutis: Ping timeout: 240 seconds