drbrain

Activity Graph

Page 1 of 10 | Next »

2018-11-08

[10:06:34] drbrain: Ping timeout: 272 seconds
[10:15:39] drbrain: has joined #ruby

2018-11-07

[05:56:11] drbrain: Quit: Goodbye
[05:57:32] drbrain: has joined #ruby
[06:05:47] drbrain: Ping timeout: 240 seconds
[06:06:03] drbrain: has joined #ruby
[06:19:38] drbrain: Quit: Goodbye
[06:21:08] drbrain: has joined #ruby
[06:28:30] drbrain: Ping timeout: 272 seconds
[06:28:38] drbrain: has joined #ruby

2018-10-24

[07:30:26] drbrain: Ping timeout: 268 seconds
[07:30:52] drbrain: has joined #ruby

2018-08-20

[19:55:29] drbrain: Ping timeout: 256 seconds
[19:56:03] drbrain: has joined #ruby

2018-08-18

[09:48:11] drbrain: Ping timeout: 272 seconds
[18:37:53] drbrain: has joined #ruby

2018-08-16

[21:13:35] drbrain: Quit: Goodbye
[21:15:03] drbrain: has joined #ruby
[21:22:48] drbrain: Quit: Goodbye
[21:24:50] drbrain: has joined #ruby
[22:14:11] drbrain: Quit: Goodbye
[22:15:55] drbrain: has joined #ruby
[22:30:33] drbrain: Ping timeout: 260 seconds
[22:31:26] drbrain: has joined #ruby

2018-08-15

[01:15:36] drbrain: Quit: Goodbye
[01:17:33] drbrain: has joined #ruby

2018-08-14

[03:43:29] drbrain: Ping timeout: 248 seconds
[03:43:48] drbrain: has joined #ruby

2018-08-13

[19:27:57] drbrain: Ping timeout: 240 seconds
[19:30:41] drbrain: has joined #ruby

2018-08-12

[06:40:14] drbrain: Quit: Goodbye
[06:42:18] drbrain: has joined #ruby

2018-08-05

[05:16:50] drbrain: Quit: Goodbye
[05:31:40] drbrain: has joined #ruby

2018-07-25

[10:02:41] drbrain: Ping timeout: 255 seconds
[10:02:58] drbrain: has joined #ruby
[10:02:59] drbrain: has joined #ruby
[10:02:59] drbrain: Changing host

2018-07-20

[00:07:17] drbrain: *.net *.split
[00:15:51] drbrain: has joined #ruby

2018-05-29

[02:47:06] drbrain: *.net *.split
[02:48:12] drbrain: has joined #ruby

2018-04-25

[12:25:43] drbrain: *.net *.split
[12:27:17] drbrain: has joined #ruby
[15:01:13] drbrain: *.net *.split
[15:03:20] drbrain: has joined #ruby

2018-04-18

[12:09:17] drbrain: Ping timeout: 276 seconds
[12:26:43] drbrain: has joined #ruby
[12:26:43] drbrain: Changing host
[12:26:43] drbrain: has joined #ruby
[12:33:34] drbrain: Ping timeout: 260 seconds
[12:54:36] drbrain: has joined #ruby
[12:54:36] drbrain: Changing host
[12:54:36] drbrain: has joined #ruby
[13:08:31] drbrain: Ping timeout: 256 seconds
[13:11:19] drbrain: has joined #ruby
[13:11:19] drbrain: Changing host
[13:11:19] drbrain: has joined #ruby

2018-01-18

[10:15:59] drbrain: Ping timeout: 248 seconds
[10:32:47] drbrain: has joined ##new2ruby
[10:32:47] drbrain: has joined #ruby
[10:32:47] drbrain: has joined #ruby-banned
[10:32:47] drbrain: Changing host
[10:32:47] drbrain: has joined #ruby-banned
[10:32:47] drbrain: has joined #ruby
[10:32:47] drbrain: has joined ##new2ruby
[10:33:09] drbrain: has joined #ruby-ops
[10:33:09] drbrain: has joined #ruby-community

2018-01-03

[02:09:48] drbrain: Quit: Goodbye
[02:10:59] drbrain: has joined ##new2ruby
[02:10:59] drbrain: has joined #ruby
[02:10:59] drbrain: has joined #ruby-banned
[02:10:59] drbrain: Changing host
[02:10:59] drbrain: has joined #ruby-banned
[02:10:59] drbrain: has joined #ruby
[02:10:59] drbrain: has joined ##new2ruby
[02:11:13] drbrain: has joined #ruby-ops
[02:11:13] drbrain: has joined #ruby-community
[03:27:20] drbrain: Quit: Goodbye
[03:28:39] drbrain: has joined ##new2ruby
[03:28:40] drbrain: has joined ##new2ruby
[03:28:40] drbrain: has joined #ruby
[03:28:40] drbrain: has joined #ruby-banned
[03:28:40] drbrain: Changing host
[03:28:40] drbrain: has joined #ruby-banned
[03:28:40] drbrain: has joined #ruby
[03:28:58] drbrain: has joined #ruby-ops
[03:28:58] drbrain: has joined #ruby-community

2017-12-15

[08:02:30] drbrain: Ping timeout: 246 seconds
[08:08:43] drbrain: has joined ##new2ruby
[08:08:43] drbrain: has joined #ruby
[08:08:43] drbrain: has joined #ruby-banned
[08:08:43] drbrain: Changing host
[08:08:43] drbrain: has joined #ruby-banned
[08:08:43] drbrain: has joined #ruby
[08:08:43] drbrain: has joined ##new2ruby
[08:09:04] drbrain: has joined #ruby-ops
[08:09:04] drbrain: has joined #ruby-community
[08:15:41] drbrain: Ping timeout: 260 seconds
[08:22:07] drbrain: has joined ##new2ruby
[08:22:07] drbrain: has joined #ruby
[08:22:07] drbrain: has joined #ruby-banned
[08:22:07] drbrain: Changing host
[08:22:07] drbrain: has joined #ruby-banned
[08:22:07] drbrain: has joined #ruby
[08:22:07] drbrain: has joined ##new2ruby
[08:22:35] drbrain: has joined #ruby-ops
[08:22:35] drbrain: has joined #ruby-community
[08:27:16] drbrain: Ping timeout: 265 seconds
[08:37:09] drbrain: has joined #ruby-banned
[08:37:09] drbrain: has joined #ruby
[08:37:09] drbrain: has joined ##new2ruby
[08:37:10] drbrain: has joined ##new2ruby
[08:37:10] drbrain: has joined #ruby
[08:37:10] drbrain: has joined #ruby-banned
[08:37:10] drbrain: Changing host
[08:37:36] drbrain: has joined #ruby-ops
[08:37:36] drbrain: has joined #ruby-community

2017-12-09

[05:06:16] drbrain: *.net *.split
[05:14:33] drbrain: has joined ##new2ruby
[05:14:35] drbrain: has joined #ruby
[05:14:38] drbrain: has joined #ruby-banned

2017-12-07

[14:48:31] drbrain: *.net *.split
[14:54:53] drbrain: has joined #ruby-banned
[14:54:56] drbrain: has joined ##new2ruby
[14:55:10] drbrain: has joined #ruby

2017-12-01

[02:28:20] drbrain: has joined #ruby-community
[02:28:21] drbrain: has joined #ruby-ops
[02:28:22] drbrain: has joined #ruby-banned
[02:28:25] drbrain: has joined ##new2ruby

2017-10-10

[09:27:29] drbrain: Ping timeout: 248 seconds
[09:29:37] drbrain: has joined #ruby-banned
[09:29:37] drbrain: Changing host
[09:29:37] drbrain: has joined #ruby-banned
[09:29:37] drbrain: has joined #ruby
[09:29:37] drbrain: has joined ##new2ruby
[09:29:38] drbrain: has joined ##new2ruby
[09:29:38] drbrain: has joined #ruby
[09:29:50] drbrain: has joined #ruby-ops
[09:29:50] drbrain: has joined #ruby-community
[09:41:27] drbrain: Ping timeout: 240 seconds
[09:42:06] drbrain: has joined ##new2ruby
[09:42:06] drbrain: has joined #ruby
[09:42:06] drbrain: has joined #ruby-banned
[09:42:06] drbrain: Changing host
[09:42:06] drbrain: has joined #ruby-banned
[09:42:06] drbrain: has joined #ruby
[09:42:06] drbrain: has joined ##new2ruby
[09:42:20] drbrain: has joined #ruby-ops
[09:42:20] drbrain: has joined #ruby-community
[11:16:17] drbrain: Ping timeout: 248 seconds
[11:18:22] drbrain: has joined ##new2ruby
[11:18:22] drbrain: has joined #ruby
[11:18:22] drbrain: has joined #ruby-banned
[11:18:22] drbrain: Changing host
[11:18:22] drbrain: has joined #ruby-banned
[11:18:22] drbrain: has joined #ruby
[11:18:22] drbrain: has joined ##new2ruby
[11:18:25] drbrain: has joined #ruby-ops
[11:18:25] drbrain: has joined #ruby-community

2017-09-28

[08:05:05] drbrain: Ping timeout: 240 seconds
[09:04:49] drbrain: has joined ##new2ruby
[09:04:49] drbrain: has joined #ruby
[09:04:49] drbrain: has joined #ruby-banned
[09:04:49] drbrain: Changing host
[09:04:49] drbrain: has joined #ruby-banned
[09:04:49] drbrain: has joined #ruby
[09:04:49] drbrain: has joined ##new2ruby
[09:04:53] drbrain: has joined #ruby-ops
[09:04:53] drbrain: has joined #ruby-community

2017-08-11

[17:56:39] drbrain: has joined ##new2ruby
[17:56:39] drbrain: has joined #ruby
[17:56:39] drbrain: has joined #ruby-banned
[17:56:39] drbrain: Changing host
[17:56:39] drbrain: has joined #ruby-banned
[17:56:39] drbrain: has joined #ruby
[17:56:39] drbrain: has joined ##new2ruby
[17:57:05] drbrain: has joined #ruby-ops
[17:57:05] drbrain: has joined #ruby-community

2016-07-30

[17:55:14] drbrain: works fine from SEA
[17:55:32] drbrain: all 7 minutes downloaded instantly

2016-07-29

[16:57:44] drbrain: Dysp: on line 18 in xerciseclass.rb you don't ned KincomLoader::
[16:57:58] drbrain: if you instead: data = load_file(file)
[16:58:03] drbrain: it'll work like you expect
[16:58:55] drbrain: Dysp: include makes methods in the module appear as instance methods in the including class
[17:03:28] drbrain: Dysp: http://www.poodr.com is the best book
[17:04:51] drbrain: ACTION nods
[17:05:35] drbrain: can you update the gist and include the output of running it?
[17:06:11] drbrain: the new error, and what line it is on
[17:06:19] drbrain: ah, running with `-d` then
[17:10:01] drbrain: so you get the error from line 3 of test.rb
[17:10:14] drbrain: are you using minitest?
[17:10:27] drbrain: yes to minitest?
[17:11:08] drbrain: I use one of two strategies for testing modules in minitest
[17:13:23] drbrain: https://gist.github.com/drbrain/7c0361031ea0252669d85fa63bccd02d
[17:14:11] drbrain: in the `test_kincom_loading` test you call the method directly on KincomLoader, so in my view you're testing the module directly
[17:14:52] drbrain: in my gist the first method, include_module, is what I start with for testing modules
[17:15:10] drbrain: it works great so long as the module doesn't have any state that might conflict with minitest
[17:15:31] drbrain: when the module starts having extra state I'll switch to the test-only class version so the module's functionality stays isolated
[17:16:23] drbrain: no worries
[17:16:26] drbrain: pay it forward
[17:18:24] drbrain: since the module methods aren't accessible without adding module_function I would test them separate
[17:18:58] drbrain: then, for XerciseClass tests, only have enough of a test to make sure they get called
[17:26:56] drbrain: I don't have a bunch of time for looking through things, unfortunately
[18:22:21] drbrain: that's 900 bytes per object
[18:23:51] drbrain: >> require 'objspace'; ObjectSpace.memsize_of({"foo" => "bar"})
[18:24:01] drbrain: I get 232 on a 64 bit machine
[18:25:21] drbrain: it's not recursive
[18:25:57] drbrain: joevandyk: use yajl's streaming output
[18:26:09] drbrain: instead of to_json to build a giant string for output (if you can straem)

2016-07-28

[19:18:10] drbrain: newbism: I guess this line is the problem: c.use Faraday::Request::TokenAuthentication, :token => "9234bca04b2b9aaceab919770528af13a92447ff"
[19:18:24] drbrain: it should probably be : c.use Faraday::Request::TokenAuthentication, "9234bca04b2b9aaceab919770528af13a92447ff"
[19:33:42] drbrain: newbism: you'll probably need to dig into faraday, then, I don't know it well
[20:59:12] drbrain: wrkrcoop: as I understand it's part CDN part WAF
[20:59:27] drbrain: well, s/D/
[20:59:38] drbrain: Web Application Firewall
[21:00:29] drbrain: if it's the same one that I looked into some years ago it can look at incoming requests and make sure they're well-formed
[21:04:23] drbrain: wrkrcoop: I got distracted by something else before really diving into what it could do
[21:04:31] drbrain: or how terrible setting it up through the UI seemed to be
[21:20:25] drbrain: it seemed like a good CDN (*cough* like Fastly *cough) would be a better choice
[21:25:19] drbrain: need a secure connection from CDN to origin servers
[21:25:47] drbrain: since the CDN keeps you from getting DDoSed by regular traffic
[21:40:33] drbrain: I wonder how the serialize that output
[21:40:39] drbrain: it's not json and it's not inspect
[22:28:51] drbrain: kegster: what's strange is this:
[22:29:10] drbrain: >> { 'itemGuid' => 'some value' }.inspect
[22:29:22] drbrain: ↑ ruby prints a hash-arrow (=>)
[22:30:13] drbrain: the output you logged was { itemGuid: 'ab659529-f163-4256-b269-5070412fe2d2' }
[22:30:29] drbrain: which isn't a form of serialization that ruby uses by default
[22:30:41] drbrain: somebody wrote custom code to output ↑
[22:53:58] drbrain: if you're going to send your hashes to other programs just use strings

2016-07-27

[18:26:13] drbrain: Dysp: You can call #path to get the file name back, then File.extname on that
[18:27:09] drbrain: no, it's already saved
[18:27:27] drbrain: open "some_file.txt" do |io| puts io.path; end #
[18:27:34] drbrain: #=> some_file.txt
[18:28:02] drbrain: open "some_file.txt" do |io| File.extname io.path; end # => txt
[20:58:19] drbrain: sharkman: //*[text()[contains(.,'½')]]
[20:58:47] drbrain: sharkman: see: http://stackoverflow.com/questions/3655549/xpath-containstext-some-string-doesnt-work-when-used-with-node-with-more
[21:35:14] drbrain: Dysp: you never include KincomValidator in ValidationHelper
[21:35:40] drbrain: well, not in the right way
[21:36:09] drbrain: Dysp: is ValidationHelper use the included hook: def self.included(other) other.include KincomValidator; end
[21:36:30] drbrain: then including ValidationHelper will bring KincomValidator along with it
[21:38:52] drbrain: Dysp: … and line 14 can be just validate(file, options)