paul0

Activity Graph

Page 1 of 1

2019-04-20

[11:30:41] paul0: Read error: Connection reset by peer

2019-04-17

[22:26:59] paul0: has joined #RubyOnRails

2019-04-16

[00:17:25] paul0: has joined #RubyOnRails
[13:50:22] paul0: Ping timeout: 268 seconds

2019-03-27

[05:07:35] paul0: Read error: Connection reset by peer

2019-03-26

[11:26:08] paul0: has joined #RubyOnRails
[20:14:51] paul0: Ping timeout: 250 seconds
[23:02:53] paul0: has joined #RubyOnRails

2019-03-22

[17:11:46] paul0: Ping timeout: 252 seconds

2019-03-21

[21:27:35] paul0: has joined #RubyOnRails

2018-06-08

[07:55:33] paul0: has joined #ruby
[13:58:21] paul0: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2018-05-29

[05:13:27] paul0: has joined #ruby
[06:40:54] paul0: Ping timeout: 252 seconds
[06:54:36] paul0: has joined #ruby
[09:16:10] paul0: Ping timeout: 260 seconds
[09:16:28] paul0: has joined #ruby
[10:50:09] paul0: Ping timeout: 248 seconds
[11:38:07] paul0: has joined #ruby
[12:08:05] paul0: Ping timeout: 240 seconds

2018-05-28

[06:58:29] paul0: has joined #ruby
[09:16:27] paul0: Ping timeout: 245 seconds
[09:16:46] paul0: has joined #ruby
[13:04:47] paul0: Ping timeout: 245 seconds

2018-05-25

[11:17:46] paul0: has joined #ruby
[14:01:35] paul0: Ping timeout: 260 seconds
[15:40:19] paul0: has joined #ruby
[15:50:05] paul0: Ping timeout: 260 seconds

2018-05-23

[05:11:58] paul0: has joined #ruby
[06:00:40] paul0: Ping timeout: 245 seconds
[06:01:13] paul0: has joined #ruby
[06:26:05] paul0: Ping timeout: 245 seconds
[06:39:36] paul0: has joined #ruby
[13:04:45] paul0: Ping timeout: 268 seconds

2018-05-22

[07:14:05] paul0: has joined #ruby
[11:10:43] paul0: beefjoe70: Maybe the safest way to do what you are trying (so without overriding global variables) would be to create a tmp-file and redirect stdout and stderr to it. Then output that and default stdout and stderr again.
[11:13:37] paul0: So basically craete some tmp-file and use IO#reopen (stderr.reopen(tmpfile); stdout.reopen(tmpfile)) to really capture all of it while not being too intrusive.
[11:17:04] paul0: beefjoe70: And for the input, lookup the ARGF constant. I think its better suited for your use case than stdin.
[11:17:31] paul0: (it basically acts like a file for the stdin input stream)
[11:18:41] paul0: clemens3 I think thats just what he wants to do with the code once hes got it from the cmd line.
[11:19:28] paul0: with ARGF I think it would just be `Object.instance_eval ARGF.read`
[11:25:27] paul0: And Im completely wrong about ARGF by the way. It Just replaces file-names in ARGV with their respective contents :/ So I guess STDIN will have to do.
[11:30:47] paul0: As far as I can see ARGF takes ARGV and treats the args as file names. ARGF.read then concatenates all of them. ARGV is just an array of the args (whitespace seperated I think).
[11:31:30] paul0: so "echo "puts ARGF.read" > argf.rb && ruby argf.rb argf.rb" returns "puts ARGF.read"
[11:59:34] paul0: getxsick You kann use `remove_const` and then redefine
[11:59:45] paul0: https://ruby-doc.org/core-2.5.1/Module.html#method-i-remove_const
[12:01:19] paul0: No for a class. The class will be gone then ( I guess, never used it myself).
[12:04:55] paul0: getxsick Yeah I mistook it for `Module#remove_const`. I thought there was a way to undefine a class though...
[12:09:25] paul0: apeiros thanks thats a good example :)
[13:02:56] paul0: Ping timeout: 252 seconds
[17:50:12] paul0: has joined #ruby
[19:02:14] paul0: Ping timeout: 260 seconds

2018-05-18

[07:38:14] paul0: has joined #ruby
[07:50:34] paul0: Good morning everyone :) Rails screnario: I have a User that can be identified by either an ID or a slug (String). I want to create a post by that user and pass the string into the mass assignment (user_id). Does anyone know of some library that already solved this problem of "polymorphic primary keys"?
[07:52:30] paul0: Of course I could just "case" over the parameter manually but I think there could be a more general solution. Think https://github.com/norman/friendly_id but for creation.
[08:18:09] paul0: dminuoso: That sounds like a good idea thank you. The most general way to do this would to make a class like `ident` and turn it into a general CreationOrUpdate command object that just wraps around the active-record
[08:18:48] paul0: Ident.create_or_update(Post, attributes) #=> Post
[08:19:53] paul0: And with some delegation magic one could Post.friendly_create (if thats more readable)
[08:45:52] paul0: dminuoso: We decided to have these global slugs as identifiers for every resource. So we hide the id (dont ask me why i forgot). The frontend then sends us these slugs back
[08:46:49] paul0: And im not interested in making an exception for things that could be sent back
[08:57:17] paul0: vivsoni: which gem were you installing? Or rubygems itself?
[08:58:59] paul0: vivsoni: http://secret-garden.hatenablog.com/entry/2015/10/01/000000 seems to be the same error, but I can't speak japanese. If anyone here could get an answer from that thread it would be very helpful :)
[09:02:07] paul0: vivsoni: And I guess you didn't do something similar, right?
[09:03:21] paul0: vivsoni: Oh that was the solution not the problem. My bad xD I thought he got that error because he accidentally deleted ~/.gem
[12:54:39] paul0: Ping timeout: 265 seconds

2017-11-11

[08:20:41] paul0: has joined #ruby
[08:25:07] paul0: Ping timeout: 250 seconds
[10:22:10] paul0: has joined #ruby
[10:26:21] paul0: Ping timeout: 240 seconds
[14:23:55] paul0: has joined #ruby
[14:28:05] paul0: Ping timeout: 240 seconds
[18:25:23] paul0: has joined #ruby
[18:30:12] paul0: Ping timeout: 260 seconds
[19:15:26] paul0: has joined #ruby
[19:16:19] paul0: Client Quit

2017-11-10

[00:17:13] paul0: has joined #ruby
[00:21:53] paul0: Ping timeout: 248 seconds
[02:18:11] paul0: has joined #ruby
[02:22:28] paul0: Ping timeout: 240 seconds

2017-11-09

[21:02:23] paul0: has joined #ruby
[21:59:45] paul0: Remote host closed the connection
[22:00:18] paul0: has joined #ruby
[22:04:49] paul0: Ping timeout: 248 seconds
[22:16:06] paul0: has joined #ruby
[22:20:35] paul0: Ping timeout: 268 seconds

2016-06-07

[22:51:52] paul0: has joined #ruby
[23:30:09] paul0: Ping timeout: 244 seconds

2016-06-06

[05:40:57] paul0: has joined #ruby
[05:56:12] paul0: Ping timeout: 244 seconds
[23:20:43] paul0: has joined #ruby
[23:28:08] paul0: Ping timeout: 244 seconds

2016-05-25

[23:07:26] paul0: has joined #ruby
[23:47:07] paul0: Read error: Connection reset by peer

2016-04-12

[02:32:25] paul0: Ping timeout: 244 seconds

2015-09-30

[22:41:08] paul0: has joined #RubyOnRails
[22:44:09] paul0: Quit: Colloquy for iPad - http://colloquy.mobi

2015-05-30

[16:09:30] paul0: has joined #RubyOnRails
[16:18:08] paul0: has left #RubyOnRails: ()

2015-01-22

[13:18:26] paul0: I've upgraded my app to rails 4.2, but the assets seems too slow
[13:18:45] paul0: any tips and ideas about how to improve assets performance?
[13:19:41] paul0: xhoy: development
[13:19:56] paul0: xhoy: but seems slower compared to rails 3.2, in development
[16:13:10] paul0: anyone else having issues with slow requests on rails 4.2? just upgraded to rails 4.2 and I noticed some performance issue

2015-01-21

[19:08:00] paul0: any ideas why this code don't work on rails 4.2? http://pastebin.com/raw.php?i=6URKywri
[19:12:49] paul0: cnk: found the problem, I should have used includes instead of include

2015-01-20

[16:35:34] paul0: trying to upgrade to rails 4.2, and now I get this error: cannot load such file -- active_support/basic_object (LoadError)
[16:35:51] paul0: tried a new gemset, but no success yet
[16:36:44] paul0: workmad3: ruby 2.1.5p273
[16:37:59] paul0: workmad3: yes, I have my system running on rails 4.0.0 now
[16:45:15] paul0: workmad3: rails 4.2 should work with ruby 2.1.5, right?
[16:45:34] paul0: workmad3: installing 2.2.0 now
[16:57:11] paul0: tbuehlmann: rails is trying to load active_support/baisc_oject, which seems to not be available here
[16:57:36] paul0: rails 4.2 and ruby 2.2
[16:57:45] paul0: (works on rails 4.0.0)
[16:58:04] paul0: tbuehlmann: I'm upgrading my rails app to 4.2
[16:58:53] paul0: tbuehlmann: http://pastebin.com/raw.php?i=sLjrtu4j
[16:59:53] paul0: this error happens after I upgrade from 4.0.0 to 4.2.0, with ruby 2.1.5 and 2.2.0
[17:00:49] paul0: workmad3: ah, that may fix
[17:02:29] paul0: workmad3: yeah, that was the problem, thanks! (also, thanks tbuehlmann)

2013-10-03

[15:40:06] paul0: trying to remove the country field from the address form
[15:40:32] paul0: Deface::Override.new(:virtual_path => 'spree/address/_form', :remove => 'p#bcountry', :name => 'remove_country')
[15:40:40] paul0: is that correct?
[15:45:37] paul0: it is not, trying to find out what is wrong
[15:45:40] paul0: the latest
[15:48:07] paul0: ah, right
[15:48:57] paul0: what should I use to remove id=<%="#{address_id}country"?
[15:49:53] paul0: no problem
[15:59:08] paul0: cool, thanks briandquinn
[16:00:24] paul0: want to create site for a delivery service, so I need to remove country/state and use neighborhood instead
[16:00:41] paul0: doing some changes in the views, then I'll go to the logic