grill

Activity Graph

Page 1 of 3 | Next »

2016-07-19

[15:38:33] grill: has joined #ruby
[18:51:41] grill: Quit: yolo.swag

2016-07-18

[14:18:53] grill: has joined #ruby
[14:28:32] grill: Quit: Goodnight

2016-07-06

[15:04:16] grill: has joined #ruby
[17:29:14] grill: Quit: yolo.swag

2016-06-30

[19:21:40] grill: has joined #ruby
[21:01:56] grill: Quit: yolo.swag

2016-06-07

[04:09:09] grill: has joined #ruby
[04:28:37] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[13:55:49] grill: has joined #ruby
[13:57:52] grill: Client Quit
[14:00:28] grill: has joined #ruby
[14:00:29] grill: Client Quit

2016-06-01

[02:22:11] grill: has joined #ruby
[03:41:37] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-05-31

[02:33:00] grill: has joined #ruby
[02:34:08] grill: Max SendQ exceeded
[02:34:46] grill: has joined #ruby
[04:02:08] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[13:59:21] grill: has joined #ruby
[14:00:36] grill: Max SendQ exceeded
[14:01:36] grill: has joined #ruby
[14:50:00] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[15:03:21] grill: has joined #ruby
[22:19:20] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-05-29

[16:09:56] grill: has joined #ruby
[16:11:07] grill: Max SendQ exceeded
[16:11:48] grill: has joined #ruby
[16:14:01] grill: Client Quit
[16:23:01] grill: has joined #ruby
[16:28:04] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[20:07:18] grill: has joined #ruby
[20:16:33] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-04-08

[01:29:08] grill: has joined #ruby
[03:41:17] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[14:11:45] grill: has joined #ruby
[16:27:15] grill: Ping timeout: 276 seconds

2016-04-07

[14:17:00] grill: has joined #ruby
[21:39:09] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-04-06

[14:04:04] grill: has joined #ruby
[15:03:26] grill: Ping timeout: 244 seconds

2016-04-05

[14:05:37] grill: has joined #ruby
[20:37:01] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-04-02

[17:13:08] grill: has joined #ruby

2016-04-01

[02:08:54] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[03:38:12] grill: has joined #ruby
[04:59:19] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[14:13:38] grill: has joined #ruby
[15:19:53] grill: what exactly does this line do, assuming flags['file-list'] is an array, and build_differ.changed_files is a hash? flags['file-list'] ||= []).concat(build_differ.changed_files)
[15:21:28] grill: it does raise
[15:22:22] grill: apeiros i wanted to test your knowledge of ruby
[15:22:41] grill: or maybe i just needed to know what a conditional assign was
[15:24:03] grill: apeiros it is related to my understanding!
[16:07:32] grill: how can i force rake to repackage a gem?
[22:01:17] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-03-31

[20:51:41] grill: has joined #ruby

2016-03-18

[13:49:39] grill: has joined #ruby
[18:46:25] grill: how exactly do i set the initial value of an attr_reader :some_attr
[18:47:33] grill: interesting
[18:48:41] grill: i just wasn't sure where to set the value
[22:46:12] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-03-17

[02:31:06] grill: has joined #ruby
[04:52:56] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[13:56:12] grill: has joined #ruby
[22:29:16] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-03-16

[05:55:23] grill: has joined #ruby
[08:20:15] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[13:44:06] grill: has joined #ruby
[21:52:00] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-03-10

[14:07:57] grill: has joined #ruby

2016-03-03

[12:26:45] grill: has joined #ruby
[12:34:11] grill: Quit: My Mac has gone to sleep. ZZZzzz…
[13:09:14] grill: has joined #ruby
[21:05:39] grill: why is this invalid ruby? @optionally_enabled.each_with_index do |(flag, value), i| { if (i < @optionally_enabled.length - 1) then "'#{flag.to_s}': #{value},\n" else "'#{flag.to_s}': #{value}\n" end }
[21:07:22] grill: should it be a double end?
[21:07:40] grill: there's the each_with_index loop
[21:07:55] grill: that encloses the other statement with brackets
[21:10:36] grill: yeah. more or less
[21:10:42] grill: my pm wants it to be a one-liner for some reason
[21:10:50] grill: i disagree, but whatever
[21:14:43] grill: aegis3121 it's part of an erb file
[21:17:00] grill: this isn't right
[21:22:21] grill: the odd bit is that the erb file is priting the hash
[21:22:33] grill: it isn't even entering the if statement
[21:23:06] grill: i don't understand
[21:24:45] grill: it's really annoying
[21:28:25] grill: interesting
[22:10:31] grill: Quit: My Mac has gone to sleep. ZZZzzz…

2016-02-15

[15:54:36] grill: has joined #ruby
[22:41:23] grill: Quit: My Mac has gone to sleep. ZZZzzz???

2016-02-04

[01:51:36] grill: has joined #ruby
[03:19:31] grill: Read error: Connection reset by peer

2016-02-02

[00:10:03] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[00:11:04] grill: Client Quit
[00:11:04] grill: has joined #ruby
[17:59:15] grill: has joined #ruby
[18:04:14] grill: Ping timeout: 256 seconds
[18:23:46] grill: has joined #ruby
[18:35:57] grill: should Open3.capture3(command) be able to overflow the stdout buffer? (ruby)
[18:46:26] grill: what's the easiest way to match all files recursively in a directory?
[18:46:55] grill: will that only match files?
[18:46:57] grill: not dirs?
[18:47:26] grill: no one say that coming
[18:47:48] grill: i should start making bets on how many times tias gets issued in various channels
[18:52:14] grill: what is &File? I've never seen that syntax before
[18:57:59] grill: I don't undetstand the logical difference between Dir["**/*"] and Dir["*"]
[18:58:50] grill: nah that's ok. i'll just ask around / stackoverflow for an answer. it's faster
[18:59:22] grill: probably getting paid more than you too
[18:59:42] grill: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[19:17:31] grill: has joined #ruby
[19:41:42] grill: Ping timeout: 256 seconds
[19:46:07] grill: has joined #ruby
[20:01:32] grill: Ping timeout: 256 seconds
[20:16:41] grill: has joined #ruby
[20:36:06] grill: Ping timeout: 256 seconds
[20:44:49] grill: has joined #ruby
[20:49:08] grill: Ping timeout: 256 seconds

2016-02-01

[03:59:33] grill: has joined #ruby
[04:07:37] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[05:53:38] grill: has joined #ruby
[06:36:49] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[06:42:29] grill: has joined #ruby
[06:54:56] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[17:15:04] grill: has joined #ruby
[17:16:12] grill: could someone in here explain to me how I could stream stdout using popen3 without filling up its buffer?
[17:31:16] grill: I'm running into this issue where I run rsync via popen3() and monitor stdout. however, if rsync's output is too long, the os buffer fills up and rsync hangs forever. what's going on here?
[17:39:01] grill: i take it no one in here has ever used open3?
[17:45:27] grill: gizmore did you ever have to deal with stdout deadlocks?
[17:57:27] grill: could someone in here explain to me how I could stream stdout using popen3 without filling up its buffer? (ruby)
[17:57:31] grill: I'm running into this issue where I run rsync via popen3() and monitor stdout. however, if rsync's output is too long, the os buffer fills up and rsync hangs forever. what's going on here?
[18:02:57] grill: here's my code. does stdout.each not clear out the os buffer on each line read? http://hastebin.com/jazutuxame.rb
[18:14:27] grill: Mon_Ouie ok. so?
[20:51:41] grill: what is incorrect about this expression? stderr.length > 0 ? raise(Exception, stderr) : return false
[20:56:21] grill: it's because the return needs to be in parenthesis
[20:58:08] grill: but you can't really return a raise statement, can you?

2016-01-31

[02:59:59] grill: has joined #ruby
[04:10:34] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[18:09:51] grill: has joined #ruby
[18:44:01] grill: Quit: My Mac has gone to sleep. ZZZzzz???

2016-01-30

[00:08:47] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[18:49:30] grill: has joined #ruby
[19:53:55] grill: Quit: My Mac has gone to sleep. ZZZzzz???

2016-01-29

[01:29:13] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[05:08:25] grill: has joined #ruby
[06:47:33] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[14:45:26] grill: has joined #ruby
[15:15:48] grill: Quit: Textual IRC Client: www.textualapp.com
[16:51:18] grill: has joined #ruby
[22:18:55] grill: yo. anyone in here familiar with popen3? it looks like popen3 allows for the stdout buffer to fill up under certain circumstances
[22:19:13] grill: this seems to lead to a situation in which a command will hanf indefinitely
[22:24:05] grill: how would one go about flushing stdout when it gets too full

2016-01-28

[17:11:03] grill: has joined #ruby

2016-01-15

[14:26:52] grill: has joined #ruby
[19:03:55] grill: yo. are there any methods that check whether if a string is formatted like a file path?
[19:30:58] grill: does it make more sense to cenclose methods in context, or to create contexts for each method tested (even if the contexts are the same)
[19:31:50] grill: i'm reading this now
[19:32:58] grill: yes, but can you set up the world and then describe what you're testing?
[19:33:08] grill: or must you say what you're testing and then set up the world
[19:33:52] grill: the disadvantage the the latter method is that the world would ostensibly need to be set up very similarly multiple times
[19:34:23] grill: yes they do
[19:39:37] grill: ok. here's a partial example. I have a bunch of nested contexts that jump off parent contexts. http://hastebin.com/aravolemon.dos
[19:40:24] grill: i have several methods that can operate in (and should be tested) within these states. how do I describe multiple methods with shared state?

2016-01-14

[03:06:33] grill: has joined #ruby
[03:37:53] grill: Quit: My Mac has gone to sleep. ZZZzzz???
[03:45:49] grill: has joined #ruby
[03:49:55] grill: Ping timeout: 240 seconds
[14:28:34] grill: has joined #ruby
[21:40:53] grill: what is the "unless" clause attached to in the following statement? ",\"chef_roles\": [" << @roles_hash[hostkey].each { |entry| p entry } << "]" unless @roles_hash.has_key?(hostkey)
[21:46:59] grill: what is the "unless" clause attached to in the following statement? ",\"chef_roles\": [" << @roles_hash[hostkey].each { |entry| p entry } << "]" unless @roles_hash.has_key?(hostkey)
[21:47:43] grill: yes. what does this statement say
[21:48:11] grill: I am trying to get it to not print the statement unless the proper hash value exists
[21:50:09] grill: I am getting an "unexpected keyword_end, expecting ')'" error when i run the following. what gives? (",\"chef_roles\": [" << @roles_hash[hostkey].each { |entry| p entry } << "]") unless @roles_hash.has_key?(hostkey) end
[22:12:03] grill: how would I insert an array of strings into another string? the following code appears to insert the whole array... \"chef_roles\": #{@roles_hash[hostkey].each { |entry| p "\"lol #{entry}\"" }}"
[22:15:12] grill: aegis3121 join works, although I need to surround all strings with quotes...
[22:41:12] grill: any thoughts as to why rspec would not be running a function inside of an expect { } block
[22:44:57] grill: aegis3121 http://hastebin.com/neyoyivude.rb
[22:47:20] grill: the function invoked (Transfer.files_changed?) is supposed to output logging info. it isn't
[22:50:17] grill: if I run it as follows, the function runs, but the test comes back as "failed" expect(Transfer.files_changed?(nil, nil, @flags)).to(raise_error(ArgumentError)
[22:50:36] grill: it's like it doesn't catch the ArgumentError
[22:53:33] grill: ArgumentError
[22:53:40] grill: is why it failes
[23:16:38] grill: Quit: My Mac has gone to sleep. ZZZzzz???

2016-01-13

[14:39:05] grill: has joined #ruby
[22:03:55] grill: yo. do instance vars percolate down to child contexts in rspec?
[22:10:47] grill: old people still think it's slangy
[22:13:02] grill: anyway, i have a before before block where i set an instance var (e.g. @first_file = "/blah"). later on, in a child context's before block, i call FileUtils.touch(@first_file), which promptly comes back with a "can't convert nil into string" error. what gives?
[22:14:19] grill: does let actually allow the var to retain its value across contexts?
[22:15:32] grill: shevy @first_file = "/blah"
[22:40:06] grill: aegis3121 you aren't supposed to use variables defined with let inside before blocks...
[22:41:05] grill: http://hastebin.com/avadojunub.vbs
[22:43:40] grill: here's an example snippet http://hastebin.com/ekavasifuv.rb
[22:45:21] grill: yeah scratch that. sec
[22:48:16] grill: good lord
[22:48:19] grill: it was the missing do
[22:48:41] grill: i HATE it when i do that
[22:49:17] grill: thanks for rubbing it in
[23:03:48] grill: Quit: My Mac has gone to sleep. ZZZzzz???

2016-01-12

[19:59:13] grill: has joined #ruby
[19:59:25] grill: is it possible to pass a file object between methods?
[20:18:43] grill: how would one advance the File.readlines line pointer manually while in a loop
[20:20:47] grill: I need to skip over a bunch of lines in between two lines in a file
[20:21:55] grill: it looks like readlines returns lines as an array
[20:22:18] grill: so, i guess i could just advance the array pointer. but how do i get the index of the current line?
[20:23:08] grill: File.readlines(@config_file) do |line| ... end
[20:23:21] grill: presumably, "line" points to an index, no?
[20:25:43] grill: can you not manually advance an iterator in ruby?
[20:28:32] grill: eh. i guess i'll just use a for loop
[20:32:48] grill: iterate through a file, printing lines to another file. however, if the program finds a specific line (e.g. ##ignore start##), it should ignore all following lines until the end of the file or a second specific line (e.g. ##ignore end##).
[21:05:22] grill: um. why can't I manually increment the value of the iterator in a for loop? http://hastebin.com/qexegemuhu.rb
[21:05:59] grill: this code ignores the incrementing in the while loop
[21:09:00] grill: ok. how would I increment i using another language construct
[21:11:50] grill: ok. why does ruby do this with for loops? i've never seen this behavior in any othe rlanguage
[21:13:43] grill: that doesn't really mean anything to me.
[21:14:53] grill: ruby decided to make its own for convention?
[21:15:53] grill: ruby ruby ruby. such a black sheep
[23:04:08] grill: yo, shoudl an rspec test "fail" if a test for an ArgumentError corretly throws said error?
[23:06:41] grill: http://hastebin.com/furecumoma.rb
[23:49:16] grill: Quit: My Mac has gone to sleep. ZZZzzz???

2015-12-30

[08:02:44] grill: has joined #ruby
[08:06:55] grill: Ping timeout: 240 seconds
[09:50:52] grill: has joined #ruby
[09:55:06] grill: Ping timeout: 240 seconds
[10:51:36] grill: has joined #ruby
[10:56:15] grill: Ping timeout: 255 seconds
[22:00:23] grill: has joined #ruby
[22:05:26] grill: Ping timeout: 272 seconds