SirFunk

Activity Graph

Page 1 of 3 | Next »

2018-11-14

[15:59:11] SirFunk: Quit: ZNC - http://znc.in
[16:05:54] SirFunk: has joined #ruby

2018-11-08

[22:09:37] SirFunk: Quit: ZNC - http://znc.in
[22:47:01] SirFunk: has joined #ruby

2018-11-01

[21:55:08] SirFunk: Quit: ZNC - http://znc.in
[22:03:23] SirFunk: has joined #ruby

2018-09-08

[00:49:26] SirFunk: has joined #ruby

2018-08-10

[18:53:45] SirFunk: Quit: ZNC - http://znc.in
[18:54:34] SirFunk: has joined #ruby

2018-08-09

[21:45:17] SirFunk: has joined #ruby
[22:01:46] SirFunk: Quit: ZNC - http://znc.in
[22:07:11] SirFunk: has joined #ruby

2018-07-10

[02:19:22] SirFunk: Ping timeout: 240 seconds

2018-07-09

[23:23:20] SirFunk: Quit: ZNC - http://znc.in
[23:23:39] SirFunk: has joined #ruby

2018-06-06

[23:18:58] SirFunk: Quit: ZNC - http://znc.in
[23:19:20] SirFunk: has joined #ruby

2018-05-29

[02:47:04] SirFunk: *.net *.split
[02:48:00] SirFunk: has joined #ruby

2018-05-22

[17:22:46] SirFunk: Quit: ZNC - http://znc.in
[17:24:03] SirFunk: has joined #ruby
[17:28:56] SirFunk: Client Quit
[17:35:25] SirFunk: has joined #ruby

2018-05-06

[16:54:28] SirFunk: Ping timeout: 240 seconds
[16:57:33] SirFunk: has joined #ruby

2018-05-02

[20:53:45] SirFunk: Ping timeout: 264 seconds
[20:58:41] SirFunk: has joined #ruby

2018-04-15

[16:17:47] SirFunk: Quit: ZNC - http://znc.in
[16:19:40] SirFunk: has joined #ruby
[16:23:44] SirFunk: Client Quit
[16:47:41] SirFunk: has joined #ruby
[17:19:31] SirFunk: Quit: ZNC - http://znc.in
[17:22:21] SirFunk: has joined #ruby

2018-03-24

[21:53:59] SirFunk: Quit: ZNC - http://znc.in
[22:00:47] SirFunk: has joined #ruby

2018-03-04

[20:08:13] SirFunk: Quit: ZNC - http://znc.in
[20:11:08] SirFunk: has joined #ruby
[20:20:13] SirFunk: Quit: ZNC - http://znc.in
[20:45:13] SirFunk: has joined #ruby

2018-03-01

[04:27:21] SirFunk: Quit: ZNC - http://znc.in
[04:31:12] SirFunk: has joined #ruby
[04:58:13] SirFunk: Quit: ZNC - http://znc.in
[05:09:21] SirFunk: has joined #ruby
[08:17:19] SirFunk: Quit: ZNC - http://znc.in
[08:19:03] SirFunk: has joined #ruby
[09:01:08] SirFunk: Quit: ZNC - http://znc.in
[09:02:58] SirFunk: has joined #ruby

2018-01-12

[13:11:08] SirFunk: Quit: ZNC - http://znc.in
[13:20:46] SirFunk: has joined #ruby
[14:09:50] SirFunk: Quit: ZNC - http://znc.in
[14:12:02] SirFunk: has joined #ruby

2018-01-02

[04:10:59] SirFunk: Remote host closed the connection
[04:32:05] SirFunk: has joined #ruby
[12:49:32] SirFunk: Quit: ZNC - http://znc.in
[12:50:14] SirFunk: has joined #ruby

2017-10-15

[03:39:33] SirFunk: Remote host closed the connection
[03:44:07] SirFunk: has joined #ruby

2017-09-15

[15:55:30] SirFunk: Ping timeout: 246 seconds
[15:56:59] SirFunk: has joined #ruby

2017-07-25

[08:32:53] SirFunk: Ping timeout: 240 seconds
[08:35:09] SirFunk: has joined #ruby

2017-07-12

[17:19:12] SirFunk: Remote host closed the connection
[17:31:20] SirFunk: has joined #ruby

2017-06-20

[00:17:35] SirFunk: *.net *.split
[00:23:12] SirFunk: has joined #ruby

2017-05-30

[10:15:55] SirFunk: Ping timeout: 240 seconds
[10:18:37] SirFunk: has joined #ruby

2017-03-28

[14:07:29] SirFunk: has joined #ruby

2017-03-20

[14:10:35] SirFunk: Ping timeout: 264 seconds

2017-03-15

[02:50:46] SirFunk: has joined #ruby

2016-07-11

[21:23:06] SirFunk: has joined #ruby

2016-06-25

[13:51:17] SirFunk: Ping timeout: 258 seconds

2016-06-22

[07:04:46] SirFunk: *.net *.split
[15:10:48] SirFunk: has joined #ruby

2016-06-07

[19:03:42] SirFunk: Ping timeout: 246 seconds
[19:05:30] SirFunk: has joined #ruby

2016-05-19

[18:26:34] SirFunk: *.net *.split
[18:26:50] SirFunk: has joined #ruby

2016-05-06

[16:27:05] SirFunk: Ping timeout: 250 seconds
[16:33:18] SirFunk: has joined #ruby

2016-05-02

[15:21:37] SirFunk: Ping timeout: 260 seconds
[21:13:13] SirFunk: has joined #ruby

2016-04-27

[00:28:54] SirFunk: Remote host closed the connection
[00:51:08] SirFunk: has joined #ruby

2016-04-21

[17:19:15] SirFunk: *.net *.split
[17:20:00] SirFunk: has joined #ruby

2016-04-18

[13:55:55] SirFunk: Ping timeout: 276 seconds
[13:56:43] SirFunk: has joined #ruby

2016-04-17

[08:12:05] SirFunk: *.net *.split
[08:16:42] SirFunk: has joined #ruby
[08:28:21] SirFunk: Read error: Connection timed out
[08:28:43] SirFunk: has joined #ruby

2016-04-15

[19:03:17] SirFunk: Ping timeout: 260 seconds
[19:04:34] SirFunk: has joined #ruby

2016-04-14

[06:13:03] SirFunk: has joined #ruby

2016-04-13

[20:47:20] SirFunk: *.net *.split

2016-03-17

[01:16:23] SirFunk: Remote host closed the connection
[01:18:23] SirFunk: has joined #ruby
[22:15:19] SirFunk: Ping timeout: 260 seconds
[22:17:57] SirFunk: has joined #ruby

2016-02-28

[12:52:40] SirFunk: Ping timeout: 264 seconds
[13:00:16] SirFunk: has joined #ruby
[13:05:13] SirFunk: Ping timeout: 268 seconds
[13:12:43] SirFunk: has joined #ruby

2016-02-12

[20:16:36] SirFunk: Ping timeout: 248 seconds
[20:19:07] SirFunk: has joined #ruby

2016-02-03

[16:43:23] SirFunk: Ping timeout: 276 seconds
[16:45:47] SirFunk: has joined #ruby

2016-01-31

[12:25:10] SirFunk: *.net *.split
[12:29:47] SirFunk: has joined #ruby
[12:35:48] SirFunk: Ping timeout: 272 seconds
[23:38:00] SirFunk: has joined #ruby

2016-01-20

[18:22:39] SirFunk: has joined #ruby

2016-01-07

[19:38:34] SirFunk: *.net *.split

2016-01-01

[23:56:35] SirFunk: Ping timeout: 250 seconds
[23:58:26] SirFunk: has joined #ruby

2015-12-21

[12:07:01] SirFunk: My mind is blown right now. I have a rails project, I bundle install. It says everything is installed. When I run rake (with or without bundle exec) it keeps complaining about missing gems, unless I manually install them (l18n, rack, tilt, etc). I'm using chruby, any ideas?
[12:15:16] SirFunk: I'll gist it in a sec. I just blew away my .rubies and .gems folders and am reinstalling
[12:18:40] SirFunk: adaedra: https://gist.github.com/jeffutter/585c680da9d092882d21
[12:20:07] SirFunk: adaedra: nope
[12:27:17] SirFunk: Uninstalled all my gems and re-ran bundle install, now everything is working
[12:27:20] SirFunk: that was weird

2015-12-16

[18:47:36] SirFunk: Anyone use any good self-hosted solutions for collecting metrics in ruby? (Things like requests/sec and request durations?)

2015-12-04

[04:42:22] SirFunk: Anyone have any suggestions for a good Ruby book to get for someone who has been doing ruby for a few years. I've read POODR

2015-12-02

[15:35:36] SirFunk: *.net *.split
[15:41:29] SirFunk: has joined #ruby
[15:52:45] SirFunk: *.net *.split
[16:47:45] SirFunk: has joined #ruby

2015-11-30

[00:45:42] SirFunk: Ping timeout: 260 seconds
[00:47:15] SirFunk: has joined #ruby
[03:51:00] SirFunk: Ping timeout: 245 seconds
[04:36:37] SirFunk: has joined #ruby
[07:40:34] SirFunk: Ping timeout: 245 seconds
[08:16:59] SirFunk: has joined #ruby
[16:21:23] SirFunk: Ping timeout: 260 seconds
[16:22:47] SirFunk: has joined #ruby

2015-11-26

[19:01:57] SirFunk: *.net *.split
[19:08:07] SirFunk: has joined #ruby

2015-11-16

[03:50:41] SirFunk: IS there any way to, say delete contents of a directory when a process exits? I realize I can rescue SystemExit or Interrupt but I would have to scope the whole program in that, no?
[03:50:48] SirFunk: aka (can't do it from a gem)

2015-11-12

[03:23:38] SirFunk: Anyone know of a convenient way to share some memory between workers in a forking ruby server (like unicorn) ?
[03:56:50] SirFunk: Is there a good way to share memory between unicorn workers?
[03:58:09] SirFunk: Ox0dea: no, they fork.. Puma Threads share
[03:58:51] SirFunk: hmm, is that so?
[03:59:39] SirFunk: Ox0dea: oh, yeah. I should have specified, I need to write to it from the children
[04:00:29] SirFunk: Dump to where? File?
[04:01:03] SirFunk: Ox0dea: I have an implementation using a PStore to share that seemsm to work better than expected, but it's not "fast enough"
[04:03:52] SirFunk: Ox0dea: It is for this: https://github.com/prometheus/client_ruby/issues/9 I'm actually OK with the performance of the PStore method in my simple tests.. the people with commit bits have reservations?

2015-11-07

[22:23:39] SirFunk: Anyone know if there is a way to share variables between workers in unicorn?

2015-10-16

[00:08:56] SirFunk: has joined #ruby

2015-10-08

[04:07:11] SirFunk: Ping timeout: 268 seconds
[04:08:54] SirFunk: has joined #ruby
[17:54:25] SirFunk: I feel like this is a silly question, but is there a good pattern for a module to make sure that classes that include it implement certian methods?
[18:05:48] SirFunk: drbrain: I don't think that works
[18:05:56] SirFunk: unless perhaps you include at the bottom?
[18:06:05] SirFunk: I don't think the methods will be defined when included gets rrun

2015-09-25

[18:49:11] SirFunk: Ping timeout: 240 seconds
[18:49:35] SirFunk: has joined #ruby

2015-09-10

[05:09:44] SirFunk: Ping timeout: 252 seconds
[05:12:15] SirFunk: has joined #ruby

2015-08-25

[18:17:41] SirFunk: Ping timeout: 244 seconds

2015-08-13

[01:41:15] SirFunk: Remote host closed the connection
[01:42:18] SirFunk: has joined #ruby
[01:42:18] SirFunk: has joined #RubyOnRails

2015-07-23

[17:56:31] SirFunk: Ping timeout: 255 seconds
[18:00:01] SirFunk: has joined #ruby
[18:00:01] SirFunk: has joined #RubyOnRails

2015-07-17

[02:09:23] SirFunk: So... MRI ruby.. threads or no?
[02:09:50] SirFunk: Ox0dea: I've been tempted
[02:10:25] SirFunk: I thought MRI had real threads but they are crippled by the GIL. Someone I work with was asserting MRI has no threading
[02:10:45] SirFunk: a few minutes of googling didn't yield much information
[02:14:06] SirFunk: centrx: IO happens concurrently.. but only 1 thread of ruby executes at a time?
[02:14:23] SirFunk: what is the advantage to having native threads if only one executes at a time vs green threads?
[02:14:46] SirFunk: And how do Puma and Sidekiq get any advantage on MRI... or do they not?
[02:20:44] SirFunk: centrx: right. I'm just trying to better understand what Threading does or doesn't do in MRI

2015-07-16

[23:43:38] SirFunk: Is there any way to save off old methods (like alias_method) when doing object.extend(Module) ?
[23:49:48] SirFunk: wallerdev: trying to do something with self.extended
[23:52:41] SirFunk: wallerdev: super doesn't work
[23:52:55] SirFunk: not when doing .extend
[23:53:09] SirFunk: leme see if I can find a repl to paste an example
[23:54:18] SirFunk: I swear that didn't work before

2015-07-14

[01:38:33] SirFunk: Remote host closed the connection
[01:47:20] SirFunk: has joined #ruby
[01:47:20] SirFunk: has joined #RubyOnRails
[01:56:16] SirFunk: Remote host closed the connection
[01:57:34] SirFunk: has joined #ruby
[01:57:34] SirFunk: has joined #RubyOnRails
[02:21:00] SirFunk: Ping timeout: 252 seconds
[02:30:26] SirFunk: has joined #ruby
[02:30:26] SirFunk: has joined #RubyOnRails

2015-06-20

[21:16:20] SirFunk: Ping timeout: 264 seconds
[21:20:50] SirFunk: has joined #ruby
[21:20:50] SirFunk: has joined #RubyOnRails

2015-05-06

[03:54:38] SirFunk: Anyone here know if it is possible to mock class constants with RR ?
[03:56:20] SirFunk: mocking framework: https://github.com/rr/rr
[03:58:20] SirFunk: yeah, I suppose I'll do that. I was hoping someone would have done it before and could tell me :)
[03:59:35] SirFunk: yeah.. I wish we had too
[04:00:26] SirFunk: we have some 50,000 mocks/stubs written with rr in our test suite
[04:01:47] SirFunk: and we use rspec 2.12
[04:02:08] SirFunk: #bleedingedge :)

2015-04-13

[13:29:02] SirFunk: Is there some way in ruby to pass a class along with some context into a method so that when the method does .new on the class it has some custom context?
[13:29:16] SirFunk: kind of like .bind in javascript?

2015-04-11

[00:34:47] SirFunk: So, Inheritance is using '<' composition is using 'include'. Is there a name for pulling out common functionality into a new class and just instantiating and using it?
[00:49:59] SirFunk: weaksauce: yeah. I just wasn't sure if there was a good name to talk about that pattern
[00:50:14] SirFunk: Generally inheritance and/or composition feel icky to me
[00:50:41] SirFunk: then you end up with methods in the child class calling methods that you have no idea where they come from until you start digging into the includes/parent classes
[00:50:48] SirFunk: which are themselves often a few levels deep
[00:51:02] SirFunk: I'd rather just use some other class that encapsulates the logic and is named for what it does

2015-04-03

[01:58:53] SirFunk: Does anyone know any good articles talking about monolithgs vs multiple frontends + api vs microservices?
[02:00:10] SirFunk: more-so from a high level infrastructure/design standpoint rather than implementation

2014-12-08

[01:19:28] SirFunk: Anyone know of a way to get rails to _not_ log exceptions, but still log everything else?
[01:21:37] SirFunk: Sharcho: well... I'm talking app-wide. I want the exceptions to happen still (so exception catchers like airbrake will catch them). I just don't want them output in my logs
[01:28:02] SirFunk: Sharcho: excellent thanks
[01:52:51] SirFunk: Radar: Well, the problem I'm currently hitting is that I'm using lograge which logs all the rails logs as json. Stacktraces don't end up as json and end up shipping to loggly taking up like 10 entries for one trace. It seems like if you have a dedicated exception checker (like abrake) there would be no need for the exceptions in the logs
[01:53:53] SirFunk: Sharcho: yeah, looking into it. Trying to see if it has some way to just log to stdout instead of shipping to logstache

2014-10-24

[03:29:19] SirFunk: Hi there. I have a question about class inheritance. How do i handle the case where I have a class "class Foo < Bar; def whatever end end" and in another file I want to make a class namespaced inside of that like: "class Foo; class Baz; end; end"
[03:29:33] SirFunk: ruby seems to take issue since the class is defined with inheritance one place and not the ohter
[03:35:19] SirFunk: tmoore: that does seem to work. Is there another solution? These files get autoloaded (padrino app)
[03:37:17] SirFunk: I meant that it seems to work when loaded in that order.
[03:39:51] SirFunk: yeah I was wondering about that
[03:40:13] SirFunk: we'll probably just end up requiring the inherited one at the top of all the others
[03:41:54] SirFunk: yeah, the 'sub classes' arent really using it
[03:42:16] SirFunk: we're just trying to use it for name spacing to keep things easy to follow

2014-10-14

[04:56:08] SirFunk: Is it possible to have a Parent Class that has something like method_missing and in that function access a child classes @class_variable?
[04:57:42] SirFunk: googling :)
[05:00:31] SirFunk: i think i want the opposite of a delegator:)
[05:01:24] SirFunk: so.. just put the method_missing method on a module and include that in my class?
[05:02:00] SirFunk: hmm that doesn't work
[05:02:10] SirFunk: my @class_variable is still coming up nil
[05:03:07] SirFunk: check if the method exists as a key on a hash and return that if it has it
[05:04:52] SirFunk: Sorry it's late. I've been meaning @instance_variable
[05:06:30] SirFunk: oh, i got it
[05:06:35] SirFunk: thanks, including a module worked

2014-04-16

[06:18:09] SirFunk: I am familiar with polymorphic relationships... The relationship between Cars/Computers and Jobs is polymorphic.. but a Customer has_many Computers and Cars. The problem is you can't define two relationships on the :through
[06:23:12] SirFunk: yeah, i thought about using a method. Or i suppose I could just convert Computers and Cars to be polymorphically assosciated to a Customer
[06:28:49] SirFunk: rvanlieshout: that wouldn't play well with active record though, no?
[06:33:59] SirFunk: rvanlieshout: I think I'll just make Cars and Computers polymorphic to Customers... seems the most concise