Jayson_Virissimo

Activity Graph

Page 1 of 1

2018-02-08

[20:35:00] Jayson_Virissimo: has joined #RubyOnRails
[21:44:32] Jayson_Virissimo: has left #RubyOnRails: ()

2018-01-26

[03:41:29] Jayson_Virissimo: has joined #RubyOnRails

2018-01-17

[02:42:26] Jayson_Virissimo: has joined #RubyOnRails
[02:46:48] Jayson_Virissimo: Ping timeout: 256 seconds
[02:53:41] Jayson_Virissimo: has joined #RubyOnRails
[02:59:05] Jayson_Virissimo: Ping timeout: 255 seconds
[03:03:24] Jayson_Virissimo: has joined #RubyOnRails
[03:19:20] Jayson_Virissimo: Remote host closed the connection

2017-12-27

[18:13:36] Jayson_Virissimo: has joined #RubyOnRails
[18:25:20] Jayson_Virissimo: Remote host closed the connection

2017-12-23

[01:56:30] Jayson_Virissimo: has joined #RubyOnRails

2017-11-23

[03:34:05] Jayson_Virissimo: has joined #RubyOnRails

2017-11-22

[21:25:11] Jayson_Virissimo: has joined #RubyOnRails

2017-08-30

[04:00:56] Jayson_Virissimo: has joined #RubyOnRails
[04:00:56] Jayson_Virissimo: has joined #ruby

2017-08-28

[02:47:10] Jayson_Virissimo: has joined #RubyOnRails
[02:47:10] Jayson_Virissimo: has joined #ruby

2017-07-22

2017-07-21

[23:28:11] Jayson_Virissimo: has joined #RubyOnRails
[23:28:11] Jayson_Virissimo: has joined #ruby

2017-07-20

[21:12:05] Jayson_Virissimo: has joined #RubyOnRails
[21:12:05] Jayson_Virissimo: has joined #ruby

2017-07-18

[20:09:24] Jayson_Virissimo: has joined #RubyOnRails
[20:09:24] Jayson_Virissimo: has joined #ruby
[20:38:00] Jayson_Virissimo: benlieb: you try .exists? already?
[21:44:20] Jayson_Virissimo: It's shorter and quicker to add to/ remove from.
[21:44:47] Jayson_Virissimo: Otherwise they are identical.

2017-06-27

[01:59:25] Jayson_Virissimo: fourcolors: you mean a plain old Ruby object?
[02:00:28] Jayson_Virissimo: Don't subclass ActiveRecord, but include ActiveModel::Validations.
[02:01:58] Jayson_Virissimo: Ah, yeah. Rails 5 doesn't sublass ActiveRecord::Base directly anymore.
[02:02:19] Jayson_Virissimo: Most of my projects are still on Rails 4.
[02:04:33] Jayson_Virissimo: Still should work. Depending on what you are doing with your validations, you might be able to just include ActiveModel::Model and attr_accessors, then validates :email, presence: true, etc...
[02:05:05] Jayson_Virissimo: Don't remember if you need to def persisted?; false; end
[02:05:11] Jayson_Virissimo: I'd try it without first.
[02:06:50] Jayson_Virissimo: Hmmm....don't remember ever running into that.

2017-06-26

[22:58:45] Jayson_Virissimo: has joined #RubyOnRails
[22:58:45] Jayson_Virissimo: has joined #ruby

2017-06-20

[22:30:15] Jayson_Virissimo: has joined #ruby

2017-06-16

2017-06-15

[21:22:46] Jayson_Virissimo: has joined #ruby

2017-06-13

[17:36:04] Jayson_Virissimo: has joined #RubyOnRails
[17:36:04] Jayson_Virissimo: has joined #ruby
[20:09:42] Jayson_Virissimo: Read error: Connection reset by peer
[20:10:13] Jayson_Virissimo: has joined #RubyOnRails
[20:10:13] Jayson_Virissimo: has joined #ruby

2017-06-12

[21:49:07] Jayson_Virissimo: has joined #RubyOnRails
[21:49:07] Jayson_Virissimo: has joined #ruby
[22:37:40] Jayson_Virissimo: Depends how much text you want to include/exclude.
[22:39:51] Jayson_Virissimo: "Here is the #{ x ? "thing" : "other things" }."
[22:40:23] Jayson_Virissimo: if x is true, the it's eval to "Here is the thing."
[22:40:35] Jayson_Virissimo: Otherwise "Here is the other things."
[22:40:49] Jayson_Virissimo: That's the ternary operator inside a string interpolation.
[23:10:50] Jayson_Virissimo: zenspider: good point.
[23:11:05] Jayson_Virissimo: Everything in Ruby is truthy except for false and nil.

2017-06-06

[02:42:30] Jayson_Virissimo: has joined #RubyOnRails
[02:42:30] Jayson_Virissimo: has joined #ruby
[15:55:03] Jayson_Virissimo: has joined #RubyOnRails
[15:55:03] Jayson_Virissimo: has joined #ruby

2017-06-04

[19:31:29] Jayson_Virissimo: has joined #RubyOnRails
[19:31:29] Jayson_Virissimo: has joined #ruby

2017-05-11

[20:14:56] Jayson_Virissimo: has joined #RubyOnRails
[20:14:56] Jayson_Virissimo: has joined #ruby

2017-05-05

[00:32:27] Jayson_Virissimo: has joined #RubyOnRails
[00:32:27] Jayson_Virissimo: has joined #ruby
[04:21:37] Jayson_Virissimo: has joined #RubyOnRails
[04:21:37] Jayson_Virissimo: has joined #ruby
[19:51:31] Jayson_Virissimo: has joined #RubyOnRails
[19:51:31] Jayson_Virissimo: has joined #ruby
[22:45:56] Jayson_Virissimo: What's the use-case, there might be a better way.
[22:46:31] Jayson_Virissimo: cagomez: you just want more ambiguity in your query?
[22:57:03] Jayson_Virissimo: You already tried find_by_sql?
[22:57:24] Jayson_Virissimo: Although, honestly, that sounds like it might just be a bad spec.
[22:59:16] Jayson_Virissimo: So, your example is slightly different.
[22:59:56] Jayson_Virissimo: `where.not(title: "foo")` will use `!=`, but `where.not(title: ["foo", "bar"])` will use `NOT IN`.
[23:00:28] Jayson_Virissimo: Yeah, writing pure SQL shouldn't be your first choice.
[23:00:37] Jayson_Virissimo: More difficult to maintain.
[23:01:21] Jayson_Virissimo: When the spec fails, is it actually because it has incorrect output, or is it just in a different order or something?
[23:05:19] Jayson_Virissimo: Yeah, I doubt anyone would be able to help without seeing the specs and the scope/sql. Maybe create a gist or something?

2017-05-04

[03:53:54] Jayson_Virissimo: has joined #RubyOnRails
[03:53:54] Jayson_Virissimo: has joined #ruby
[23:37:05] Jayson_Virissimo: has joined #RubyOnRails
[23:37:05] Jayson_Virissimo: has joined #ruby

2017-05-03

[04:05:44] Jayson_Virissimo: has joined #RubyOnRails
[04:05:44] Jayson_Virissimo: has joined #ruby

2017-04-29

[02:12:53] Jayson_Virissimo: has joined #RubyOnRails
[02:12:53] Jayson_Virissimo: has joined #ruby

2017-04-14

[03:20:32] Jayson_Virissimo: has joined #RubyOnRails
[03:20:32] Jayson_Virissimo: has joined #ruby

2017-04-13

[06:45:24] Jayson_Virissimo: has joined #RubyOnRails
[06:45:24] Jayson_Virissimo: has joined #ruby
[15:22:44] Jayson_Virissimo: has joined #RubyOnRails
[15:22:44] Jayson_Virissimo: has joined #ruby
[21:17:08] Jayson_Virissimo: has joined #ruby
[21:17:09] Jayson_Virissimo: has joined #RubyOnRails
[21:35:55] Jayson_Virissimo: >> OPTIONS_DEFAULT = { flags: [], date: nil }.freeze
[21:37:00] Jayson_Virissimo: Now, if I tried to OPTIONS_DEFAULT[:flags] << flag, it would throw an error.
[21:39:00] Jayson_Virissimo: You know what they say about Ruby: constants aren't, variables don't.
[21:39:40] Jayson_Virissimo: You can change a constant.

2017-04-11

2017-04-10

[01:00:41] Jayson_Virissimo: has joined #RubyOnRails
[01:00:41] Jayson_Virissimo: has joined #ruby
[18:49:31] Jayson_Virissimo: has joined #RubyOnRails
[18:49:31] Jayson_Virissimo: has joined #ruby

2017-04-07

[02:19:35] Jayson_Virissimo: has joined #ruby
[02:19:36] Jayson_Virissimo: has joined #RubyOnRails

2017-04-06

[02:07:13] Jayson_Virissimo: has joined #RubyOnRails
[02:07:13] Jayson_Virissimo: has joined #ruby
[03:16:51] Jayson_Virissimo: def stars(number)
[03:17:03] Jayson_Virissimo: puts '*' * number
[03:25:52] Jayson_Virissimo: I went ahead an answered your stack exchange question with a little more detail.

2017-04-04

[21:16:41] Jayson_Virissimo: has joined #RubyOnRails
[21:16:41] Jayson_Virissimo: has joined #ruby

2017-04-03

[21:57:47] Jayson_Virissimo: has joined #RubyOnRails
[21:57:47] Jayson_Virissimo: has joined #ruby

2017-04-01

[03:45:52] Jayson_Virissimo: has joined #RubyOnRails
[03:45:52] Jayson_Virissimo: has joined #ruby

2017-03-30

[21:04:21] Jayson_Virissimo: has joined #RubyOnRails
[21:04:21] Jayson_Virissimo: has joined #ruby
[21:16:19] Jayson_Virissimo: Remote host closed the connection
[21:16:52] Jayson_Virissimo: has joined #RubyOnRails
[21:16:52] Jayson_Virissimo: has joined #ruby
[21:21:04] Jayson_Virissimo: Ping timeout: 246 seconds

2017-03-29

[02:56:04] Jayson_Virissimo: has joined #RubyOnRails
[02:56:04] Jayson_Virissimo: has joined #ruby
[15:51:15] Jayson_Virissimo: has joined #RubyOnRails
[15:51:15] Jayson_Virissimo: has joined #ruby

2017-03-28

[22:11:03] Jayson_Virissimo: has joined #RubyOnRails
[22:11:03] Jayson_Virissimo: has joined #ruby
[22:28:30] Jayson_Virissimo: model.attributes.keys
[22:29:55] Jayson_Virissimo: Ah, that are true, nvm.
[22:36:21] Jayson_Virissimo: I usually drop those in the model as private.
[22:37:10] Jayson_Virissimo: Then call validate :custom_validation_method_name somewhere near to top in class scope.
[22:37:21] Jayson_Virissimo: Assuming you are talking about model validation.

2017-03-27

[17:53:13] Jayson_Virissimo: has joined #RubyOnRails
[17:53:13] Jayson_Virissimo: has joined #ruby
[18:56:03] Jayson_Virissimo: wizard2011: It's usually better to just ask a question, and if someone has something relevant to say, they'll respond. Otherwise it sounds like you are asking someone to agree to help without them even knowing what they are going to help with and what kind of time commitment that would entail.
[20:51:06] Jayson_Virissimo: Anyone have any recommendations for books/tutorials for the data modeling side of ERP (enterprise resource planning)?
[20:56:50] Jayson_Virissimo: Andr3as: I'm still in the discovery phase, but that's another good option to consider rather than rolling my own.
[21:05:52] Jayson_Virissimo: Owner.oauth_access_tokens.count
[21:06:27] Jayson_Virissimo: Provided you have a join table and belongs_to and has_many through.
[21:09:34] Jayson_Virissimo: If this something that gets run continuously or infrequently as a background job?
[21:11:01] Jayson_Virissimo: Then just using SQL to COUNT(*) and GROUP BY owner ID should work?
[21:11:12] Jayson_Virissimo: Ah, someone already suggested that above.
[21:11:53] Jayson_Virissimo: class OwnerOauthAccessTokens
[21:11:58] Jayson_Virissimo: belongs_to :owner
[21:12:06] Jayson_Virissimo: belongs_to :oauth_access_token
[21:12:26] Jayson_Virissimo: Is the problem that you can't change the DB schema?
[21:14:11] Jayson_Virissimo: We, you'll need a new table the corresponds to that class.
[21:14:30] Jayson_Virissimo: It'll need owner_id, and oauth_access_token_id columns.
[21:23:05] Jayson_Virissimo: Why is it called bit_array, when it is a string?

2017-03-23

[02:39:37] Jayson_Virissimo: has joined #RubyOnRails
[02:39:37] Jayson_Virissimo: has joined #ruby
[22:45:17] Jayson_Virissimo: has joined #RubyOnRails
[22:45:17] Jayson_Virissimo: has joined #ruby

2017-03-14

[19:15:17] Jayson_Virissimo: has joined #RubyOnRails
[19:15:17] Jayson_Virissimo: has joined #ruby

2016-07-27

[21:39:02] Jayson_Virissimo: has joined #RubyOnRails
[21:39:02] Jayson_Virissimo: has joined #ruby

2016-07-24

[22:18:31] Jayson_Virissimo: has joined #RubyOnRails
[22:18:31] Jayson_Virissimo: has joined #ruby

2016-07-22

[22:27:06] Jayson_Virissimo: has joined #RubyOnRails
[22:27:06] Jayson_Virissimo: has joined #ruby

2016-07-21

[03:18:34] Jayson_Virissimo: has joined #RubyOnRails
[03:18:34] Jayson_Virissimo: has joined #ruby
[23:50:41] Jayson_Virissimo: has joined #ruby
[23:50:42] Jayson_Virissimo: has joined #RubyOnRails

2016-07-07

2016-07-06

[21:36:53] Jayson_Virissimo: has joined #RubyOnRails
[21:36:53] Jayson_Virissimo: has joined #ruby

2016-06-27

[21:11:09] Jayson_Virissimo: has joined #RubyOnRails
[21:11:09] Jayson_Virissimo: has joined #ruby

2016-06-21

[20:24:14] Jayson_Virissimo: has joined #RubyOnRails
[20:24:14] Jayson_Virissimo: has joined #ruby
[20:49:01] Jayson_Virissimo: raldu: https://www.codeschool.com/courses/surviving-apis-with-rails
[20:49:28] Jayson_Virissimo: A bit dated by now, but was pretty decent when I went through it.

2016-06-15

[17:37:07] Jayson_Virissimo: has joined #ruby
[17:40:54] Jayson_Virissimo: has joined #RubyOnRails
[17:59:54] Jayson_Virissimo: mwlang: I used to use FF back then and I don't remember tabs keeping different sessions.
[18:16:20] Jayson_Virissimo: I follow style guides pretty closely, since it improves readability if an entire project uses the same style, but I would like to see a style guide with at least attempts at justifying each guideline.
[18:22:09] Jayson_Virissimo: That'll fail in special cases, won't it?
[18:23:04] Jayson_Virissimo: Hmmm...yeah, should be fine.
[18:24:47] Jayson_Virissimo: jhass: That's pretty kewl, I haven't really seen that done. Although, I don't agree with their 20 line method max.