Sylario

Activity Graph

Page 1 of 22 | Next »

2019-01-16

[01:34:37] Sylario: Quit: Connection closed for inactivity

2019-01-15

[01:55:29] Sylario: Quit: Connection closed for inactivity
[08:35:01] Sylario: has joined #RubyOnRails
[08:35:02] Sylario: has joined #ruby

2019-01-14

[16:52:05] Sylario: has joined #ruby
[16:52:05] Sylario: has joined #RubyOnRails

2019-01-10

[00:27:48] Sylario: Quit: Connection closed for inactivity

2019-01-09

[16:26:12] Sylario: has joined #ruby
[16:26:12] Sylario: has joined #RubyOnRails

2018-12-21

[02:17:14] Sylario: Quit: Connection closed for inactivity

2018-12-20

[12:36:11] Sylario: has joined #RubyOnRails
[12:36:12] Sylario: has joined #ruby

2018-12-18

[00:09:19] Sylario: Quit: Connection closed for inactivity

2018-12-17

[02:36:05] Sylario: Quit: Connection closed for inactivity
[09:14:45] Sylario: has joined #ruby
[09:14:45] Sylario: has joined #RubyOnRails

2018-12-16

[14:47:39] Sylario: has joined #RubyOnRails
[14:47:40] Sylario: has joined #ruby

2018-12-04

[01:25:00] Sylario: Quit: Connection closed for inactivity

2018-12-02

[14:59:35] Sylario: has joined #RubyOnRails
[14:59:36] Sylario: has joined #ruby

2018-11-29

[02:21:12] Sylario: Quit: Connection closed for inactivity

2018-11-28

[02:08:18] Sylario: Quit: Connection closed for inactivity
[14:51:06] Sylario: has joined #RubyOnRails
[14:51:07] Sylario: has joined #ruby

2018-11-27

[01:43:01] Sylario: Quit: Connection closed for inactivity
[08:45:03] Sylario: has joined #RubyOnRails
[08:45:04] Sylario: has joined #ruby
[09:35:05] Sylario: I have a block ruby question about a gem doc. How can they call cached_block on serializer ? : https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/serializers.md#has_one
[09:46:49] Sylario: Did I miss something?
[10:30:57] Sylario: Ok, I already asked the question yesterday but, in AMS, is it possible to nest relation in a JSON payload instead of linking it?
[10:32:31] Sylario: "operations":{"data":[{"id":"5","type":"invoice/operation"}]} Is the kind of relation i Have currently
[10:33:01] Sylario: And with ember it works fine with another query on invoice/operation/:id that return operation serialized
[10:33:23] Sylario: But it is the API version of the n+1 query problem

2018-11-26

[01:14:16] Sylario: Quit: Connection closed for inactivity
[19:24:39] Sylario: has joined #ruby
[19:24:39] Sylario: has joined #RubyOnRails
[19:25:03] Sylario: I am trying to figure out AMS(active model serializer) relations
[19:26:04] Sylario: When I have a Parent and CHildren serializer, how do I make AMS embedd the child in the answer instead of only referencing it?
[19:26:21] Sylario: And also, if it's possible how do I make it optionnal
[19:27:21] Sylario: https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/serializers.md#associations

2018-11-24

[03:14:55] Sylario: Quit: Connection closed for inactivity
[11:36:23] Sylario: has joined #ruby
[11:36:23] Sylario: has joined #RubyOnRails
[11:43:18] Sylario: The way I understad Active Model Serializer, it includes relations if there is no serializer for said relation or it reference them if there is a serializer
[11:44:27] Sylario: I would like to be able to have a serializer for a parent and a children, and be able, say when I call the serializer from an index view, to only reference the relation
[11:45:14] Sylario: However when the serializer is called from a show action, I would like to include the whole childrens inside the JSON

2018-11-23

[20:05:53] Sylario: has joined #RubyOnRails
[20:05:54] Sylario: has joined #ruby

2018-11-21

[01:17:02] Sylario: Quit: Connection closed for inactivity

2018-11-20

[11:34:08] Sylario: Well, devise has a constraint on emails, they must be unique

2018-11-19

[14:04:44] Sylario: adgtl: Are you using Devise or something similar ?

2018-11-05

[08:41:27] Sylario: has joined #ruby
[08:41:27] Sylario: has joined #RubyOnRails

2018-09-20

[01:18:21] Sylario: Quit: Connection closed for inactivity

2018-09-19

[07:25:02] Sylario: has joined #ruby
[07:25:02] Sylario: has joined #RubyOnRails
[09:05:26] Sylario: What permissions should /shared/log (or current/log) have in production?

2018-09-08

[03:40:07] Sylario: Quit: Connection closed for inactivity

2018-09-06

[04:50:58] Sylario: Quit: Connection closed for inactivity
[12:35:45] Sylario: has joined #ruby
[12:35:45] Sylario: has joined #RubyOnRails

2018-09-05

[02:45:21] Sylario: Ping timeout: 260 seconds
[02:48:01] Sylario: has joined #RubyOnRails
[02:48:02] Sylario: has joined #ruby
[06:31:15] Sylario: Quit: Connection closed for inactivity
[11:51:23] Sylario: has joined #ruby
[11:51:23] Sylario: has joined #RubyOnRails

2018-09-04

[13:54:11] Sylario: has joined #ruby
[13:54:11] Sylario: has joined #RubyOnRails

2018-08-31

[02:02:01] Sylario: Quit: Connection closed for inactivity
[08:59:25] Sylario: has joined #ruby
[08:59:25] Sylario: has joined #RubyOnRails
[09:34:43] Sylario: the secret to html mail is that you can only do a succession of paragraph
[09:34:57] Sylario: Fancy email are just a collection of pictures
[09:36:22] Sylario: Work on the typo settings, put a nice background color, it's a minimalism exercise
[09:37:05] Sylario: also, browse your spam box to get good ideas
[18:02:38] Sylario: Quit: Connection closed for inactivity

2018-08-30

[02:38:44] Sylario: Quit: Connection closed for inactivity
[08:04:19] Sylario: has joined #RubyOnRails
[08:04:20] Sylario: has joined #ruby
[08:10:33] Sylario: Changing host
[08:10:34] Sylario: has joined #RubyOnRails
[08:10:34] Sylario: has joined #ruby
[14:30:26] Sylario: @blindmoe yes
[14:30:34] Sylario: Do you use faker?
[14:30:50] Sylario: and is en in your default locales?
[14:33:48] Sylario: ok, the issue I have is when en is not a default
[14:33:53] Sylario: so it's not the same
[15:40:33] Sylario: i added :en to locales for the test env

2018-08-29

[01:55:16] Sylario: Quit: Connection closed for inactivity
[07:25:04] Sylario: has joined #RubyOnRails
[07:25:05] Sylario: has joined #ruby
[16:12:50] Sylario: I reinstalled my rails env on a new dev machine. Having problems with running the app, i did a bundle exec rake assets:precompile
[16:13:02] Sylario: I have a one line error : sh: 1: prune: not found

2018-08-17

[15:10:21] Sylario: I need to do a.where(condition_1).joins(relation).merge(Relation.scope).or(a.where(condition_2), and I have a "Relation passed to #or must be structurally compatible. Incompatible values: [:includes, :joins, :references]" error
[15:10:58] Sylario: It seems to me the only way to solve that would be to use UNION, is there any other way?
[15:11:35] Sylario: Basically I am doing A.where(a condition)and(relation condition) OR a.where(other A condition)
[15:14:08] Sylario: Yes but it does not seems I can do a relation condition without altering the selected fields in AR
[15:16:48] Sylario: I do not need the relation
[15:17:03] Sylario: But yes, i am trying to add a select
[15:17:52] Sylario: It does not works
[15:18:40] Sylario: ArgumentError: Relation passed to #or must be structurally compatible. Incompatible values: [:select, :references]
[15:18:44] Sylario: with select in both
[15:18:59] Sylario: WHat bother me is that I can't find how to do it in SQL
[15:20:19] Sylario: I am not sure
[15:20:53] Sylario: I would guess so, but I don't find anything relating to that
[15:37:51] Sylario: @masterasia it san be used with JWT if I remember correctly
[15:41:24] Sylario: masterasia: It seems it would work if authenticate_user_from_token go fetch the token in the header
[15:41:49] Sylario: ha, Devise is probaby using a token that does not follow JWT token formatting rules
[15:57:18] Sylario: Well it seems the only solution was where('table.'
[15:58:42] Sylario: where("table.id IN ( (#{query1.to_sql} ) UNION (#{query2.to_sql}))")
[15:59:03] Sylario: With both query returning IDs of course
[15:59:37] Sylario: Not sure why but it kind of bother me that I need an Union for this query
[21:01:12] Sylario: Quit: Connection closed for inactivity

2018-08-16

[09:07:19] Sylario: has joined #ruby
[09:07:19] Sylario: has joined #RubyOnRails

2018-08-13

[04:47:18] Sylario: Quit: Connection closed for inactivity

2018-08-12

[12:07:24] Sylario: has joined #ruby
[12:07:24] Sylario: has joined #RubyOnRails

2018-08-11

[02:32:36] Sylario: Quit: Connection closed for inactivity

2018-08-10

[01:23:12] Sylario: Quit: Connection closed for inactivity
[09:02:38] Sylario: has joined #ruby
[09:02:38] Sylario: has joined #RubyOnRails

2018-08-09

[07:51:45] Sylario: has joined #ruby
[07:51:45] Sylario: has joined #RubyOnRails
[13:48:28] Sylario: Theory question : Why do service object are object and not class? THey have one method most of the time anyway? I don't see how it would be detrimental to have one public class method
[13:58:14] Sylario: I don't question the utility of service object, it's just that I was reading a post about them, and they insisted against on init+ 1 public method, and I started wondering why it needed to be an object, and it seems there is a consensus on having one action one service
[13:58:29] Sylario: WHat I am wondering is, why an object
[13:58:45] Sylario: WHy not a class and a class method without instanciation
[13:59:13] Sylario: The object just kind of break down var initialization in the init, that's all
[13:59:48] Sylario: I don't get what I am missing

2018-08-04

[03:02:46] Sylario: Quit: Connection closed for inactivity

2018-08-03

[10:55:45] Sylario: has joined #RubyOnRails
[10:55:46] Sylario: has joined #ruby

2018-08-02

[01:37:22] Sylario: Quit: Connection closed for inactivity
[10:31:22] Sylario: has joined #ruby
[10:31:22] Sylario: has joined #RubyOnRails
[11:04:54] Sylario: Remote host closed the connection
[11:07:57] Sylario: has joined #ruby
[11:07:57] Sylario: has joined #RubyOnRails
[13:05:06] Sylario: Quit: Connection closed for inactivity

2018-08-01

[01:35:28] Sylario: Quit: Connection closed for inactivity
[07:22:29] Sylario: has joined #ruby
[07:22:29] Sylario: has joined #RubyOnRails
[16:00:21] Sylario: Assignation question, can I shorten this : a,b=foo.bar1,foo.bar2 ?
[16:13:15] Sylario: @ciro In this case it for time periods
[16:13:25] Sylario: so it kind of make sense
[16:15:24] Sylario: it's also in Python
[16:15:54] Sylario: start_date,end_date=p.date_start,p.date_stop
[16:17:33] Sylario: well, i probably used a bad namming for my objects then :/
[16:25:23] Sylario: Yup, it really seems periods is rarelly used for time interval in english :
[16:26:06] Sylario: in french too
[16:26:38] Sylario: It seems not
[16:26:56] Sylario: well, that code base will probably never be touched by a native speaker
[16:27:23] Sylario: And I bet it's the same in Italian than in French or spanish, so no problems here
[16:28:52] Sylario: that's not a fun activity
[16:32:46] Sylario: Rails was my first framework with pluralization, quickly learned the ie/y english rules
[16:32:57] Sylario: Like, almost instantly ^^
[16:33:15] Sylario: so, no classname in french

2018-07-31

[01:51:25] Sylario: Quit: Connection closed for inactivity
[10:53:04] Sylario: has joined #ruby
[10:53:04] Sylario: has joined #RubyOnRails

2018-07-30

[21:05:52] Sylario: Ping timeout: 256 seconds
[21:06:53] Sylario: has joined #ruby
[21:06:53] Sylario: has joined #RubyOnRails

2018-07-29

[11:53:25] Sylario: has joined #ruby
[11:53:25] Sylario: has joined #RubyOnRails

2018-07-25

[01:58:10] Sylario: Quit: Connection closed for inactivity

2018-07-24

[03:27:45] Sylario: Quit: Connection closed for inactivity
[08:42:44] Sylario: has joined #ruby
[08:42:44] Sylario: has joined #RubyOnRails

2018-07-23

[10:17:12] Sylario: has joined #ruby
[10:17:12] Sylario: has joined #RubyOnRails

2018-07-21

[02:24:26] Sylario: Quit: Connection closed for inactivity

2018-07-20

[00:06:58] Sylario: *.net *.split
[00:15:25] Sylario: has joined #RubyOnRails
[00:15:32] Sylario: has joined #ruby
[01:54:44] Sylario: Quit: Connection closed for inactivity
[07:56:30] Sylario: has joined #ruby
[07:56:30] Sylario: has joined #RubyOnRails

2018-07-19

[14:58:40] Sylario: has joined #ruby
[14:58:40] Sylario: has joined #RubyOnRails

2018-07-18

[13:41:12] Sylario: has joined #ruby
[13:41:12] Sylario: has joined #RubyOnRails
[22:21:08] Sylario: Quit: Connection closed for inactivity

2018-07-14

[02:09:03] Sylario: Quit: Connection closed for inactivity

2018-07-13

[01:44:02] Sylario: Quit: Connection closed for inactivity
[08:36:00] Sylario: has joined #ruby
[08:36:00] Sylario: has joined #RubyOnRails
[13:54:29] Sylario: clients = Client.find([1, 10])
[13:54:29] Sylario: fcser: # Find the clients with primary keys 1 and 10.
[13:54:51] Sylario: from here : http://guides.rubyonrails.org/active_record_querying.html#retrieving-a-single-object
[13:55:23] Sylario: also Client.where(orders_count: [1,3,5]) on the same page
[13:58:04] Sylario: @cavallari post the partial on gist

2018-07-12

[01:24:51] Sylario: Quit: Connection closed for inactivity
[08:13:43] Sylario: has joined #ruby
[08:13:43] Sylario: has joined #RubyOnRails

2018-07-11

[14:26:01] Sylario: I have a rspec test suite hanging at a Test
[14:26:12] Sylario: Is there a way to identify it?
[14:28:12] Sylario: Ok i got it --format d
[15:08:11] Sylario: I have two tests that randomely hang in my test suite
[15:08:18] Sylario: I am not sure how to correct that
[15:15:27] Sylario: It seems to be related to the use of lock!
[15:21:52] Sylario: @yoones it's done when you use it against the provider
[15:23:54] Sylario: If the client forge something, his one time code will symply not work

2018-07-10

[01:23:39] Sylario: Quit: Connection closed for inactivity
[08:44:51] Sylario: has joined #ruby
[08:44:51] Sylario: has joined #RubyOnRails

2018-07-08

[10:27:49] Sylario: has joined #ruby
[10:27:49] Sylario: has joined #RubyOnRails

2018-07-07

[03:37:43] Sylario: Quit: Connection closed for inactivity

2018-07-06

[01:28:50] Sylario: Quit: Connection closed for inactivity
[08:10:36] Sylario: has joined #ruby
[08:10:36] Sylario: has joined #RubyOnRails

2018-07-05

[02:56:18] Sylario: Quit: Connection closed for inactivity
[09:27:16] Sylario: has joined #ruby
[09:27:16] Sylario: has joined #RubyOnRails

2018-07-04

[01:49:45] Sylario: Quit: Connection closed for inactivity
[08:42:04] Sylario: has joined #ruby
[08:42:04] Sylario: has joined #RubyOnRails

2018-07-03

[09:45:56] Sylario: @pupeno: It's probably multiple problems because a slow VM and ruby slow on windows probably have different origins
[15:55:01] Sylario: loincloth: you are using an oauth ID provider for auth in your App in addition to a more classic auth handled by your app?
[15:56:04] Sylario: what you want to do go against the spirit of Oauth
[15:57:02] Sylario: Because you would end up having the login/password going through your app, when the goal of Oauth is among other things, to avoid that
[15:59:04] Sylario: You can probably do it with a lot of awful hacks, but it will be complicated to do, janky and depending on the owner and TOS of the ID provider illegal
[16:07:54] Sylario: @garyserj it's way easier
[16:08:04] Sylario: The session, in rails, is cookies dependent
[16:09:40] Sylario: The three way handshake is for opening a socket, this is abstracted in HTTP
[16:10:16] Sylario: HTTP is a 5+ protocol, no need to worry about lower level mechanisms
[16:12:39] Sylario: You lose all the benefits of abstraction
[16:15:31] Sylario: the OSI model
[16:17:04] Sylario: If you do not know OSI you really do not need to think at the TCP or IP level
[16:18:00] Sylario: @Pupeno VirtualBox is great for me
[16:18:07] Sylario: Just, avoid Gnome
[16:18:41] Sylario: @garyserj why do you want a different session ? what are you trying to achieve?
[16:24:36] Sylario: @Pupeno did you used vanilla ubuntu ? Gnome is massively using 3d hardware and it is often problematic in VMs(very slow), XFCE is a good one
[16:25:19] Sylario: I am going to be shuned out but avoid macs, the hardware is way too fragile for the price
[16:30:49] Sylario: Well, I am considering siwtching to dual boot because 1) big SSD are less and less expensive (i have a small one for the OS) 2) the Linux boot is work time, it's better for boundaries and makes it easier to avoid distraction during work hours
[16:34:45] Sylario: @fryguy \o/
[16:36:28] Sylario: bwaa, switching OS for work is quite easy for me, everything is in the browser,the editor and the CLI (and thunderbird) and Skype is awful on every OS
[16:57:04] Sylario: I think paperclip and carrierwave
[16:57:18] Sylario: But paperclip is deprecated
[16:57:53] Sylario: And active storage is using imageMagick too