tildes

Activity Graph

Page 1 of 11 | Next »

2018-07-11

[07:57:54] tildes: has joined #ruby
[09:29:36] tildes: Remote host closed the connection

2018-03-06

[15:39:01] tildes: Remote host closed the connection

2018-03-04

[17:52:35] tildes: has joined #ruby

2018-02-02

[11:26:02] tildes: Remote host closed the connection

2017-08-03

[04:47:01] tildes: has joined #ruby
[06:17:44] tildes: Ping timeout: 260 seconds
[06:29:18] tildes: has joined #ruby
[06:39:48] tildes: Remote host closed the connection
[16:38:48] tildes: has joined #ruby
[16:39:51] tildes: Client Quit

2017-07-30

[06:50:56] tildes: has joined #ruby
[07:37:25] tildes: Ping timeout: 255 seconds
[08:23:52] tildes: has joined #ruby
[10:08:12] tildes: Ping timeout: 260 seconds
[11:06:03] tildes: has joined #ruby
[11:11:16] tildes: Ping timeout: 276 seconds

2017-07-29

[11:07:24] tildes: has joined #ruby
[12:13:57] tildes: Ping timeout: 260 seconds
[13:11:51] tildes: has joined #ruby
[13:16:16] tildes: Ping timeout: 255 seconds
[16:46:17] tildes: has joined #ruby
[18:54:18] tildes: Ping timeout: 240 seconds
[19:10:51] tildes: has joined #ruby
[19:33:57] tildes: Ping timeout: 240 seconds
[20:31:19] tildes: has joined #ruby
[20:35:27] tildes: Ping timeout: 240 seconds

2017-05-22

[05:35:57] tildes: has joined #ruby
[06:20:11] tildes: Ping timeout: 268 seconds

2017-05-21

[08:00:18] tildes: has joined #ruby
[11:17:07] tildes: Ping timeout: 246 seconds
[11:46:35] tildes: has joined #ruby
[16:13:08] tildes: Ping timeout: 240 seconds
[19:28:53] tildes: has joined #ruby
[19:33:08] tildes: Ping timeout: 240 seconds

2017-05-20

[07:56:03] tildes: has joined #ruby
[08:19:35] tildes: Ping timeout: 240 seconds
[09:19:19] tildes: has joined #ruby
[10:17:52] tildes: Ping timeout: 260 seconds
[17:52:52] tildes: has joined #ruby
[18:39:32] tildes: Ping timeout: 260 seconds

2017-05-19

[17:02:16] tildes: has joined #ruby
[17:31:43] tildes: Ping timeout: 246 seconds
[18:39:05] tildes: has joined #ruby
[18:51:35] tildes: Ping timeout: 240 seconds
[19:26:19] tildes: has joined #ruby
[20:57:33] tildes: Ping timeout: 260 seconds

2017-05-18

[17:28:28] tildes: has joined #ruby
[18:03:20] tildes: Ping timeout: 260 seconds
[18:39:08] tildes: has joined #ruby
[19:05:27] tildes: Ping timeout: 240 seconds
[19:19:28] tildes: has joined #ruby
[20:07:11] tildes: Ping timeout: 272 seconds

2017-05-17

[06:16:43] tildes: has joined #ruby
[17:57:09] tildes: Ping timeout: 272 seconds
[20:15:35] tildes: has joined #ruby
[20:48:26] tildes: Ping timeout: 255 seconds

2017-05-16

[05:08:09] tildes: has joined #ruby
[05:35:03] tildes: Ping timeout: 268 seconds
[05:42:39] tildes: has joined #ruby
[06:08:08] tildes: Ping timeout: 260 seconds
[16:29:49] tildes: has joined #ruby
[18:14:50] tildes: Ping timeout: 246 seconds
[18:35:29] tildes: has joined #ruby
[18:49:41] tildes: Ping timeout: 240 seconds
[19:07:47] tildes: has joined #ruby
[19:17:41] tildes: Ping timeout: 268 seconds
[20:00:03] tildes: has joined #ruby
[20:23:04] tildes: Ping timeout: 260 seconds

2017-05-15

[05:25:29] tildes: has joined #ruby
[06:08:42] tildes: Ping timeout: 240 seconds
[10:19:22] tildes: has joined #ruby
[10:48:40] tildes: Ping timeout: 240 seconds
[13:35:31] tildes: has joined #ruby
[19:43:48] tildes: Ping timeout: 240 seconds

2017-05-14

[07:05:04] tildes: has joined #ruby
[08:09:13] tildes: Ping timeout: 240 seconds
[08:48:44] tildes: has joined #ruby
[11:59:40] tildes: Ping timeout: 240 seconds
[13:42:50] tildes: has joined #ruby
[14:15:31] tildes: Ping timeout: 272 seconds
[15:07:25] tildes: has joined #ruby
[15:14:54] tildes: Ping timeout: 268 seconds
[18:31:53] tildes: has joined #ruby
[18:38:15] tildes: Ping timeout: 240 seconds
[21:59:53] tildes: has joined #ruby
[22:06:52] tildes: Ping timeout: 260 seconds

2017-05-13

[08:00:38] tildes: has joined #ruby
[18:24:08] tildes: Ping timeout: 260 seconds
[18:28:57] tildes: has joined #ruby
[19:12:49] tildes: Ping timeout: 245 seconds
[20:06:58] tildes: has joined #ruby
[20:56:32] tildes: Ping timeout: 255 seconds

2017-05-12

[06:34:44] tildes: has joined #ruby
[07:18:40] tildes: Ping timeout: 240 seconds
[16:07:18] tildes: has joined #ruby
[21:09:22] tildes: Ping timeout: 264 seconds

2017-05-11

[06:05:49] tildes: has joined #ruby
[06:49:38] tildes: Ping timeout: 255 seconds
[18:40:25] tildes: has joined #ruby
[19:37:13] tildes: Ping timeout: 268 seconds
[19:56:25] tildes: has joined #ruby
[20:30:35] tildes: Ping timeout: 240 seconds
[20:43:25] tildes: has joined #ruby
[21:15:16] tildes: Ping timeout: 268 seconds

2017-05-10

[06:05:16] tildes: has joined #ruby
[06:40:18] tildes: Ping timeout: 240 seconds
[16:46:49] tildes: has joined #ruby
[17:49:39] tildes: Ping timeout: 260 seconds

2017-05-09

[05:06:27] tildes: has joined #ruby
[05:38:05] tildes: Ping timeout: 255 seconds
[06:00:45] tildes: has joined #ruby
[07:32:42] tildes: Remote host closed the connection
[07:33:01] tildes: has joined #ruby
[07:45:38] tildes: Ping timeout: 272 seconds
[16:57:30] tildes: has joined #ruby
[17:28:48] tildes: Ping timeout: 240 seconds
[19:01:48] tildes: has joined #ruby
[19:25:12] tildes: Ping timeout: 260 seconds
[19:44:56] tildes: has joined #ruby
[20:33:28] tildes: Ping timeout: 240 seconds

2017-05-08

[04:48:29] tildes: has joined #ruby
[05:59:35] tildes: Ping timeout: 258 seconds
[16:16:43] tildes: has joined #ruby
[16:58:51] tildes: Ping timeout: 246 seconds
[17:30:13] tildes: has joined #ruby
[19:21:56] tildes: Ping timeout: 240 seconds
[19:38:30] tildes: has joined #ruby
[20:46:16] tildes: Ping timeout: 255 seconds

2017-05-07

[05:55:00] tildes: has joined #ruby
[06:35:51] tildes: Ping timeout: 260 seconds
[10:31:01] tildes: has joined #ruby
[11:21:24] tildes: Ping timeout: 258 seconds
[12:01:45] tildes: has joined #ruby
[12:05:47] tildes: Ping timeout: 240 seconds
[12:43:51] tildes: has joined #ruby
[13:01:47] tildes: Ping timeout: 240 seconds
[13:03:39] tildes: has joined #ruby
[13:17:47] tildes: Ping timeout: 260 seconds
[15:52:11] tildes: has joined #ruby
[15:52:18] tildes: Remote host closed the connection
[19:08:58] tildes: has joined #ruby
[19:53:59] tildes: Ping timeout: 255 seconds

2017-05-06

[14:36:15] tildes: has joined #ruby
[14:55:34] tildes: has joined #RubyOnRails
[15:26:24] tildes: I am running `rake test:benchmark` for my toy app, Ruby 2.2.3/MRI. The output says metrics for memory and objects are not supported. Rails Performance Testing Guide mentions that MRI can be GC-patched. However, the freshest patch I can find is for 1.9.3. Does this mean, that if I want memory and object metrics in Ruby 2.2.3 I would be better of with something other than MRI, JRuby for instance?
[15:37:57] tildes: Also my performance test for GET '/' gives "Completed 200 OK in 23ms", where as if I actually use a browser, the request logging says "Completed 200 OK in 1420ms". :-D
[15:38:19] tildes: So something is really off, I imagine.
[16:00:31] tildes: ... installing jruby ...
[17:36:21] tildes: Ping timeout: 264 seconds
[17:47:53] tildes: has joined #ruby
[18:19:26] tildes: Ping timeout: 240 seconds
[18:31:42] tildes: has joined #ruby
[18:45:35] tildes: Ping timeout: 260 seconds
[22:32:52] tildes: has joined #ruby
[22:42:10] tildes: Ping timeout: 240 seconds

2017-04-09

[17:13:22] tildes: has joined #ruby
[17:13:22] tildes: has joined #RubyOnRails
[17:17:41] tildes: Ping timeout: 245 seconds

2017-04-07

[19:01:54] tildes: has joined #ruby
[19:01:54] tildes: has joined #RubyOnRails
[20:25:41] tildes: Ping timeout: 268 seconds

2017-04-06

[00:00:34] tildes: has joined #RubyOnRails
[00:00:35] tildes: has joined #ruby
[00:04:56] tildes: Ping timeout: 240 seconds
[18:02:06] tildes: has joined #RubyOnRails
[18:02:07] tildes: has joined #ruby
[20:18:55] tildes: Ping timeout: 240 seconds

2017-04-05

[18:54:10] tildes: has joined #RubyOnRails
[18:54:11] tildes: has joined #ruby
[18:58:07] tildes: Ping timeout: 240 seconds
[19:04:57] tildes: has joined #RubyOnRails
[19:04:58] tildes: has joined #ruby
[19:43:56] tildes: Ping timeout: 240 seconds
[19:55:49] tildes: has joined #ruby
[19:55:49] tildes: has joined #RubyOnRails
[20:00:20] tildes: Ping timeout: 260 seconds

2017-04-04

[06:07:31] tildes: has joined #ruby
[06:07:31] tildes: has joined #RubyOnRails
[06:59:55] tildes: Ping timeout: 246 seconds
[16:45:34] tildes: has joined #RubyOnRails
[16:45:35] tildes: has joined #ruby
[17:27:26] tildes: Ping timeout: 240 seconds
[19:06:07] tildes: has joined #RubyOnRails
[19:06:08] tildes: has joined #ruby
[19:27:57] tildes: Ping timeout: 240 seconds
[20:38:18] tildes: has joined #ruby
[20:38:18] tildes: has joined #RubyOnRails
[20:42:25] tildes: Ping timeout: 246 seconds

2017-04-03

[05:31:43] tildes: has joined #ruby
[05:31:43] tildes: has joined #RubyOnRails
[06:31:03] tildes: Ping timeout: 268 seconds
[16:13:31] tildes: has joined #ruby
[16:13:31] tildes: has joined #RubyOnRails
[17:06:46] tildes: Ping timeout: 256 seconds
[17:28:52] tildes: has joined #ruby
[17:28:52] tildes: has joined #RubyOnRails
[17:44:28] tildes: Ping timeout: 240 seconds
[20:02:23] tildes: has joined #ruby
[20:02:23] tildes: has joined #RubyOnRails
[20:13:41] tildes: Ping timeout: 268 seconds
[20:13:59] tildes: has joined #ruby
[20:13:59] tildes: has joined #RubyOnRails
[20:42:04] tildes: Ping timeout: 260 seconds

2017-04-02

[08:41:08] tildes: has joined #ruby
[08:41:08] tildes: has joined #RubyOnRails
[10:38:00] tildes: Ping timeout: 240 seconds
[10:38:33] tildes: has joined #RubyOnRails
[10:38:34] tildes: has joined #ruby
[11:14:09] tildes: Ping timeout: 264 seconds
[15:39:52] tildes: has joined #ruby
[15:39:52] tildes: has joined #RubyOnRails
[20:21:27] tildes: Ping timeout: 240 seconds
[20:32:56] tildes: has joined #ruby
[20:32:56] tildes: has joined #RubyOnRails
[21:09:24] tildes: Ping timeout: 256 seconds

2017-04-01

[19:12:00] tildes: has joined #ruby
[19:12:00] tildes: has joined #RubyOnRails
[20:17:43] tildes: I'm trying to learn about rails security, and I am a bit confused about rate limiting. Are rack-middleware gems such as rack-attack or rack-throttle the best way to rate limit a rails app? What can be done on web server level? I assume rate limiting is not a Rails feature as it is not mentioned on Rail security guides? If it's a good and common thing to do, why not include it? :)
[20:22:29] tildes: Ping timeout: 268 seconds

2017-03-17

[13:28:02] tildes: Remote host closed the connection

2017-03-16

[08:03:23] tildes: linocisco: ... I run stuff in the terminal :-$
[08:06:47] tildes: itarato: cool stuff, thanks :D
[08:11:11] tildes: I need to create a http multipart request, haven't done that before. I can find two seemingly unmaintained gems, multipart-post and httmultiparty, some even older blog posts with code that probably would work...
[08:11:23] tildes: What would you recommend as of 2017? :)
[08:12:35] tildes: Another question is about terminology, what would you call the "header"-like rows for each multipart form field (if that is correct terminology either), i.e. rows 3-6 and row 10 in https://gist.github.com/anonymous/c5031fe6c3953e9296ff7baa458db327
[08:37:32] tildes: jancsi: my_object.methods gives you an Array of all methods the object can respond to
[08:38:24] tildes: jancsi: then you can use https://ruby-doc.org/core-2.4.0/Enumerable.html methods on the array, for instance each, and pass a block to it
[08:39:03] tildes: jancsi: in the block you could use the object's send method, to get results for each method ...
[08:40:27] tildes: jancsi: my_object.instance_variables gives you instance variables defined for that class
[08:40:45] tildes: jancsi: does that list look like what you want?
[08:42:47] tildes: jancsi: are you sure you call instance_variables on the instance of the class, and not on the class itself?
[08:47:38] tildes: jancsi: anyway to respond your question 10:36:23 you could do something like this: my_obj.instance_variables.each{|var| puts my_obj.instance_variable_get(var) unless my_obj.instance_variable_get(var).nil? }
[08:50:13] tildes: nofxxx: what I see is someone who is new to the language itself, asking a question, and I try to give some context and explain the methods, to help someone to learn :)
[08:50:56] tildes: nofxxx: what the answer will be used for is whole another question
[08:51:17] tildes: nofxxx: however, whatever suggestions you have for improvement, please don't hesitate to share
[08:53:51] tildes: nofxxx: you are talking about to_json and to_hash, but how do you know this is what jancsi is trying to achieve?
[08:54:14] tildes: it could be my Thursday eyes, but I can't guess the ultimate goal based on what I actually see
[08:54:45] tildes: jancsi: what is your ultimate goal btw, what are you trying to achieve? :)
[08:56:02] tildes: jancsi: why?
[08:56:34] tildes: this could be first time I see a ruby class inheriting something called SuperStruct
[08:57:46] tildes: jancsi: what does to_json say?
[09:01:01] tildes: jancsi: you are using structs in quite a special way
[09:08:12] tildes: jancsi: using / overwriting (if necessary) to_json method would be nice for future readers
[09:32:25] tildes: jancsi: instance_values gives you a hash to begin with, which you could parse like so my_obj.instance_values.reject{|key, val| val.nil? }
[09:33:51] tildes: jancsi: again you need to check if you call it on class, or class instance
[09:34:33] tildes: I can't really follow the super struct structures you are using given time constraints, but as a general principle
[09:36:49] tildes: Object.respond_to? :instance_values # => true
[09:36:58] tildes: Struct.ancestors.include? Object # => true
[09:37:50] tildes: jancsi: anyway, if you have something working, maybe that is enough at this point. just found myself thinking about your options