Page 1 of 49 | Next »
[09:09:56] norc: I have a naming question. I have two models like this: https://gist.github.com/anonymous/dbd37d282361adb965727fcd5a2c6b92
[09:33:53] norc: adac: One thing Im curious. The error message even told you what to do. Why did you still have no idea what you can do about it?
[09:46:44] norc: adac: As the error message quite clearly indicated, it assumes the binary to be in $PATH
[10:07:25] norc: andromedian: Please include the actual code from whatever is related to this. Models, controllers, views.
[10:13:56] norc: dionysus69: You said some request ends up in the wrong controller/action. What HTTP verb/URL are you sending on that request? Please copy this from your log.
[10:14:45] norc: What HTTP verb/URL are you sending on that request? Please copy this from your log.
[10:15:11] norc: What HTTP verb/URL are you sending on that request? Please copy this from your log.
[10:55:22] norc: dionysus69: [12:16] <dionysus69> Started GET "/en/admin/news/1/edit" for ::1 at 2016-06-23 14:16:05 +0400
[10:58:37] norc: dionysus69: You request PATCH "/en/news/1" which is fulfilled by the following route:
[10:58:38] norc: https://gist.github.com/anonymous/e933a0ce1f5e75dad5582f6fc1c5c65d#file-routes-output-L78
[11:06:14] norc: (About the only useful default setting rubocop has is to complain about double quoted strings without interpolation)
[11:07:34] norc: jhass: I think that is a brilliant example of why rubocop needs to be configured. ;-)
[11:09:57] norc: If performance is relevant enough to justify subtle coding rules, then Ruby is by far a bad language pick.
[11:12:15] norc: dionysus69: dont jump the queue. start with your log. start understanding what is happening.
[11:13:30] norc: dionysus69: the error you are getting is strong params validation. You told the controller that "admin_news" is required - but somehow its not present. So take a look at what is being sent.
[11:27:26] norc: jhass: Perhaps Crystal will be my first language to be supported in a year from now when I have userspace support. :o)
[11:30:15] norc: Whenever valgrind determines a program probably doesn't use some memory anymore, it gets taken from it.
[12:07:50] norc: binaryplease: Fair enough. Well Im fairly certain that it won't provide you with access to music.
[12:09:40] norc: binaryplease: note if you click on for example "Get a track" you will get a full description of what that endpoint offers.
[12:16:14] norc: jhass: That is neat. Wasn't aware you could create an associated model that way. :)
[12:25:32] norc: So. My colleague correctly pointed out to me, that I have been whistling christmas songs all day long..
[12:36:07] norc: jhass: except with playing in hardcore mode I dont want to guess more than one letter at a time :p
[12:40:23] norc: jhass: One of the few things I really dislike about Ruby is how methods can be called without an explicit receiver. Does Cr share this peculiarity?
[12:46:07] norc: Well adding self as a receiver does not increase the size of your methods or classes.
[12:46:59] norc: See, in a way ruby feels like variables are dynamically created - when in reality they are not.
[12:54:39] norc: jhass: In my case it makes more sense to indent it like that becuase of what the methods do.
[16:50:18] norc: dRbiG, your filesystem sucks if the ruby code changed while you stopped doing anything to it. :p
[18:43:26] norc: kallisti6, I think it's a design thing. Perhaps you need to transmit a large object across the network as part of a POST request - at that point you may not want the object transmitted back again.
[18:44:55] norc: desnudopenguino, models have available whatever you give to them (usually the controller or perhaps a service module)
[18:56:39] norc: skwp, I think the only way you can sensibly debug this is if you rebuild ruby and attach a memory debugger like valgrind.
[19:05:48] norc: havenwood, from what I can tell is that this particular line triggers the segmentation fault https://github.com/ruby/ruby/blob/v2_3_1/gc.c#L688
[19:11:50] norc: skwp, some stress test creating objects might be able to more reliably produce the crash.
[19:17:48] norc: skwp, no because Im not exactly sure whats broken. From the call path the ruby object heap is screwed up somehow.
[19:30:47] norc: apawl, though from the looks of it the build process is not using the correct ruby header.
[19:35:14] norc: apawl, it just never occured to me to install ruby by unpacking a prepackaged directory from someone
[19:37:01] norc: isberg, assuming you are on a regular PC, you can probably get as high as 2^47-1 or around that ballpark.
[21:16:01] norc: Given some input the method should behave predictably. If there is a random component, use seeds and mocks to enforce it.
[21:16:20] norc: Otherwise you have a case where a test might sometimes fail depending on what it returns.
[21:24:44] norc: skroon, you can simply change the adapter configuration and force a reconnect if you insist.
[21:26:32] norc: http://guides.rubyonrails.org/active_record_querying.html#using-array-hash-of-named-associations
[21:28:01] norc: Though toying around with kernel development leaves me with not much time these days. :(
[21:35:06] norc: wrkrcoop, the best way to recognize the value of a particular part is to interact with it enough until you get a feeling for it.
[21:35:43] norc: And you won't know any better other than to quote someone who said something on some IRC channel