« Back to channel list

#RubyOnRails - 17 March 2018

« Back 1 day Forward 1 day »
[00:00:54] cagomez: has joined #RubyOnRails
[00:02:45] IRCtoo: nevermind, found already logged: https://github.com/rails/rails/issues/16678
[00:04:30] xuyuheng: has joined #RubyOnRails
[00:14:31] cagomez: has joined #RubyOnRails
[00:16:51] shpoont_: has joined #RubyOnRails
[00:18:31] bga57: has joined #RubyOnRails
[00:22:11] apparition: has joined #RubyOnRails
[00:25:08] xuyuheng: has joined #RubyOnRails
[00:34:03] quazimodo: has joined #RubyOnRails
[00:40:32] cagomez: has joined #RubyOnRails
[00:40:45] am55: has joined #RubyOnRails
[00:43:51] xuyuheng: has joined #RubyOnRails
[00:46:46] brycesenz: has joined #RubyOnRails
[00:53:21] xuyuheng: has joined #RubyOnRails
[00:54:46] mices: has joined #RubyOnRails
[00:55:26] mices: can i mix @import and *= require lines in application.css ?
[00:56:00] mices: i thought to always use @import but the instructions for a gem say to use *= require
[01:05:04] AnotherOne: has joined #RubyOnRails
[01:07:47] timdotrb: has joined #RubyOnRails
[01:08:08] am55: has joined #RubyOnRails
[01:13:47] xuyuheng: has joined #RubyOnRails
[01:26:49] workmad3: has joined #RubyOnRails
[01:31:16] brycesenz: has joined #RubyOnRails
[01:34:00] xuyuheng: has joined #RubyOnRails
[01:35:07] timdotrb: Afternoon, all
[01:37:42] timdotrb: I’m getting an error, incompatible library version for mysql2. I’m using 0.4.10 (newest)
[01:37:50] timdotrb: I just upgraded this server to Ubuntu 16.04
[01:38:50] timdotrb: I’ve tried doing gem pristine, as well as completely removing all traces of the gem and reinstalling
[01:38:53] timdotrb: Any ideas on how to fix this?
[01:44:38] timdotrb: If I open irb, I can query the db
[01:45:49] Radar: syndikate: hi again
[01:45:54] Radar: syndikate: re: https://gist.github.com/anonymous/0e5051aaefc05f0cbcf462d97733f059
[01:46:07] Radar: syndikate: Can you make a scope to get all the leaves within that range, rather than doing it in Ruby?
[01:46:25] Radar: Then you can do: @company.employees.includes(:leaves).merge(Leave.whatever_the_scope_is_called)
[01:52:05] xuyuheng: has joined #RubyOnRails
[02:00:16] darkhanb: has joined #RubyOnRails
[02:10:40] xuyuheng: has joined #RubyOnRails
[02:15:23] cawel: has joined #RubyOnRails
[02:18:25] cstls: has joined #RubyOnRails
[02:25:58] xuyuheng: has joined #RubyOnRails
[02:44:28] xuyuheng: has joined #RubyOnRails
[02:49:39] espressocannon: has joined #RubyOnRails
[02:51:29] espressocannon: hey guys. for some reason my association is giving me the wrong input
[02:51:30] espressocannon: https://gist.github.com/ELI7VH/957bb3bdb12aa919c0cb04a075527ee7
[03:03:06] xuyuheng: has joined #RubyOnRails
[03:03:21] quazimodo: has joined #RubyOnRails
[03:09:23] espressocannon: in this lynda series I'm watching, it works for him somehow
[03:09:37] espressocannon: maybe it's because he is using SQL and I am using SQLite
[03:21:26] timdotrb: Here’s a new / weird error
[03:21:47] timdotrb: I have gem ‘pg’ in my gemfile, but I’m getting an error on Heroku: Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile
[03:22:28] timdotrb: It only happens with v1.0 of the pg gem. If I do < 1.0, it installs, but I can’t run rake commands
[03:27:19] workmad3: has joined #RubyOnRails
[03:32:05] xuyuheng: has joined #RubyOnRails
[03:52:34] xuyuheng: has joined #RubyOnRails
[04:07:53] cagomez: has joined #RubyOnRails
[04:12:45] xuyuheng: has joined #RubyOnRails
[04:25:14] trautwein: has joined #RubyOnRails
[04:33:08] xuyuheng: has joined #RubyOnRails
[04:36:16] orbyt_: has joined #RubyOnRails
[04:44:54] gravity_pope: has joined #RubyOnRails
[04:49:44] dviola: has joined #RubyOnRails
[04:51:26] epochwolf: has joined #RubyOnRails
[04:53:28] xuyuheng: has joined #RubyOnRails
[04:54:31] cagomez: has joined #RubyOnRails
[05:13:40] xuyuheng: has joined #RubyOnRails
[05:27:28] workmad3: has joined #RubyOnRails
[05:33:56] Dimik: has joined #RubyOnRails
[05:34:01] xuyuheng: has joined #RubyOnRails
[05:48:16] Saukk: has joined #RubyOnRails
[05:50:10] epochwolf: has joined #RubyOnRails
[05:54:27] xuyuheng: has joined #RubyOnRails
[06:25:37] alfiemax: has joined #RubyOnRails
[06:32:39] kapil___: has joined #RubyOnRails
[06:38:48] alfiemax: has joined #RubyOnRails
[06:38:53] quazimodo: has joined #RubyOnRails
[06:55:35] alfiemax: has joined #RubyOnRails
[07:09:19] pwnd_nsfw: has joined #RubyOnRails
[07:10:34] KeyJoo: has joined #RubyOnRails
[07:35:15] tpendragon: has joined #RubyOnRails
[07:40:18] DTZUZO_: has joined #RubyOnRails
[07:41:29] Saukk: has joined #RubyOnRails
[07:46:27] andrewray: has joined #RubyOnRails
[07:53:39] mtkd: has joined #RubyOnRails
[08:05:16] xuyuheng: has joined #RubyOnRails
[08:08:46] Saukk: has joined #RubyOnRails
[08:10:00] mikecmpbll: has joined #RubyOnRails
[08:23:01] mikecmpbll: has joined #RubyOnRails
[08:25:35] xuyuheng: has joined #RubyOnRails
[08:45:58] xuyuheng: has joined #RubyOnRails
[08:46:37] alfiemax: has joined #RubyOnRails
[08:56:10] marr: has joined #RubyOnRails
[08:59:50] alfiemax: has joined #RubyOnRails
[09:06:10] xuyuheng: has joined #RubyOnRails
[09:10:50] kapil___: has joined #RubyOnRails
[09:12:17] alfiemax: has joined #RubyOnRails
[09:25:23] alfiemax: has joined #RubyOnRails
[09:26:30] xuyuheng: has joined #RubyOnRails
[09:30:54] lunarkitty7: has joined #RubyOnRails
[09:46:52] xuyuheng: has joined #RubyOnRails
[10:06:21] reber: has joined #RubyOnRails
[10:07:10] xuyuheng: has joined #RubyOnRails
[10:09:02] Saukk: has joined #RubyOnRails
[10:15:19] desperek: has joined #RubyOnRails
[10:17:28] one_zero: has joined #RubyOnRails
[10:21:58] kt: has joined #RubyOnRails
[10:25:20] alfiemax: has joined #RubyOnRails
[10:27:28] xuyuheng: has joined #RubyOnRails
[10:31:42] deadnull: has joined #RubyOnRails
[10:32:36] kt: has joined #RubyOnRails
[10:34:23] mtkd: has joined #RubyOnRails
[10:38:32] am55: has joined #RubyOnRails
[10:47:24] Fernando-Basso: has joined #RubyOnRails
[10:48:05] xuyuheng: has joined #RubyOnRails
[10:54:06] conta: has joined #RubyOnRails
[11:02:28] mikecmpbll: has joined #RubyOnRails
[11:07:37] schneider: has joined #RubyOnRails
[11:08:14] xuyuheng: has joined #RubyOnRails
[11:25:37] alfiemax: has joined #RubyOnRails
[11:28:26] workmad3: has joined #RubyOnRails
[11:28:31] xuyuheng: has joined #RubyOnRails
[11:30:23] roshanavand: has joined #RubyOnRails
[11:32:45] quazimodo: has joined #RubyOnRails
[11:34:54] kapil___: has joined #RubyOnRails
[11:44:04] cstls: has joined #RubyOnRails
[11:45:40] sameerynho: has joined #RubyOnRails
[11:47:31] AnotherOne: has joined #RubyOnRails
[11:48:45] xuyuheng: has joined #RubyOnRails
[11:50:58] schneider: has joined #RubyOnRails
[12:09:15] xuyuheng: has joined #RubyOnRails
[12:29:45] xuyuheng: has joined #RubyOnRails
[12:32:24] roshanavand: has joined #RubyOnRails
[12:39:34] mtkd: has joined #RubyOnRails
[12:39:37] pLaTo0n: has joined #RubyOnRails
[12:41:07] fox_mulder_cp: hi. how i can write regexp for match group [a-zA-Z0-9-] but fail, if it contains dot '.' ?
[12:45:24] chridal: fox_mulder_cp: Where will the dot be?
[12:45:59] fox_mulder_cp: ok => 'some', fail => 'some.word'
[12:45:59] chridal: Do you have an example of what you are trying to match? Would it perhaps be possible to have a \.{0} somewhere? And then fail if the RegEx has 0 matches?
[12:46:57] fox_mulder_cp: one phrase earlier
[12:47:05] chridal: Yeapp, I saw it
[12:47:08] chridal: Doing some testing
[12:49:47] xuyuheng: has joined #RubyOnRails
[12:50:00] cstls: has joined #RubyOnRails
[12:52:34] chridal: (?!.*\.){0}[A-Za-z0-9]
[12:52:35] fox_mulder_cp: chridal: seems thah some like ^[\w]+$ is work
[12:52:39] chridal: This would ignore the dot
[12:52:52] chridal: fox_mulder_cp: Yes, but that will allow underscores as well
[12:53:10] chridal: (?!.*\.){0}[A-Za-z0-9] this will do: "foo.bar" and capture "foobar"
[12:53:35] fox_mulder_cp: underscores is a not problem. problem is fail, when dot in string
[12:55:41] chridal: I'm getting a post request to my backend, that has 2100 elements in an array. Each of those correspond to an element in my database. I need to parse all that data, and update my DB records
[12:56:12] chridal: What kind of a performance hit is that? Can I do some batch updating, or should I call one UPDATE for each record?
[12:57:03] fox_mulder_cp: chridal: some like Post.build(comments_array) ?
[12:57:25] chridal: They're not actually records like that, what I'm getting in is data from an IP device, and I'm translating those.
[12:57:58] chridal: So, there's for instance two fields in each of those 2100 elements that I want to update in the DB
[12:58:24] fox_mulder_cp: chridal: search about #build method
[12:58:30] chridal: also, the incoming data does not have the ID of the record, but it has a common name. So I'll have to look each of them up, and then update
[12:58:31] fox_mulder_cp: may be it can help you
[12:58:53] chridal: I'll have a look. Cheers.
[13:00:14] chridal: Still wondering if this would be a big perf hit though: 1. Retrieve item from array 2. Find DB record associated 3. Update DB record -> Next, 2100 times
[13:00:27] chridal: I'm doing this every 5-10 minutes
[13:00:51] chridal: Which makes me thing that this is probably a shitty solution. I need to use SNMP traps instead, probably.
[13:01:31] anotherone2: has joined #RubyOnRails
[13:06:06] fox_mulder_cp: chridal: snmp traps already created in some of monitoring soft. you already written system, don't write your own bike ;)
[13:06:36] fox_mulder_cp: nagios, zabbix, tons of
[13:07:25] apparition: has joined #RubyOnRails
[13:10:25] xuyuheng: has joined #RubyOnRails
[13:12:41] AzaToth: has joined #RubyOnRails
[13:13:59] chridal: SNMP traps can be used for a lot of things :-)
[13:14:02] am55: has joined #RubyOnRails
[13:14:25] qyliss: has joined #RubyOnRails
[13:21:38] cstls: has joined #RubyOnRails
[13:24:14] alfiemax: has joined #RubyOnRails
[13:25:41] DTZUZO_: has joined #RubyOnRails
[13:28:44] workmad3: has joined #RubyOnRails
[13:30:26] xuyuheng: has joined #RubyOnRails
[13:41:36] mtkd: has joined #RubyOnRails
[13:51:05] xuyuheng: has joined #RubyOnRails
[14:11:09] xuyuheng: has joined #RubyOnRails
[14:28:07] Sylario: has joined #RubyOnRails
[14:31:22] xuyuheng: has joined #RubyOnRails
[14:32:52] marr: has joined #RubyOnRails
[14:34:26] gravity_pope: has joined #RubyOnRails
[14:34:49] Dimik: has joined #RubyOnRails
[14:36:48] quazimodo: has joined #RubyOnRails
[14:45:00] quazimodo: has joined #RubyOnRails
[14:51:50] xuyuheng: has joined #RubyOnRails
[14:52:27] za1b1tsu: has joined #RubyOnRails
[15:12:02] xuyuheng: has joined #RubyOnRails
[15:25:55] Cavallari: has joined #RubyOnRails
[15:29:03] workmad3: has joined #RubyOnRails
[15:29:42] quazimodo: has joined #RubyOnRails
[15:32:20] xuyuheng: has joined #RubyOnRails
[15:40:09] DTZUZO_: has joined #RubyOnRails
[15:45:35] mtkd: has joined #RubyOnRails
[15:52:44] xuyuheng: has joined #RubyOnRails
[16:13:20] xuyuheng: has joined #RubyOnRails
[16:22:34] uks: has joined #RubyOnRails
[16:26:22] xuyuheng: has joined #RubyOnRails
[16:27:44] cstls: has joined #RubyOnRails
[16:33:11] Fusselgesicht: has joined #RubyOnRails
[16:34:32] srinidhi: has joined #RubyOnRails
[16:42:12] ResidentBiscuit: has joined #RubyOnRails
[16:43:13] xuyuheng: has joined #RubyOnRails
[16:44:48] drale2k_: has joined #RubyOnRails
[16:45:03] sameerynho: has joined #RubyOnRails
[16:47:42] mtkd: has joined #RubyOnRails
[16:56:17] xuyuheng: has joined #RubyOnRails
[17:02:35] mtkd: has joined #RubyOnRails
[17:09:30] xuyuheng: has joined #RubyOnRails
[17:09:56] reber: has joined #RubyOnRails
[17:20:09] xuyuheng: has joined #RubyOnRails
[17:22:42] ResidentBiscuit: has joined #RubyOnRails
[17:29:21] workmad3: has joined #RubyOnRails
[17:32:17] roshanavand: has joined #RubyOnRails
[17:32:51] xuyuheng: has joined #RubyOnRails
[17:35:38] KeyJoo: has joined #RubyOnRails
[17:47:28] xuyuheng: has joined #RubyOnRails
[18:03:38] am55: has joined #RubyOnRails
[18:06:24] xuyuheng: has joined #RubyOnRails
[18:16:08] cagomez: has joined #RubyOnRails
[18:20:17] Aherin: has joined #RubyOnRails
[18:26:21] xuyuheng: has joined #RubyOnRails
[18:29:44] workmad3: has joined #RubyOnRails
[18:38:06] cagomez: has joined #RubyOnRails
[18:42:06] andrewray: has joined #RubyOnRails
[18:43:12] orbyt_: has joined #RubyOnRails
[18:46:33] xuyuheng: has joined #RubyOnRails
[18:48:00] DrYockel: has joined #RubyOnRails
[19:02:57] alfiemax: has joined #RubyOnRails
[19:06:50] xuyuheng: has joined #RubyOnRails
[19:15:39] Cavallari1: has joined #RubyOnRails
[19:20:48] xuyuheng: has joined #RubyOnRails
[19:24:21] alfiemax: has joined #RubyOnRails
[19:30:27] cagomez_: has joined #RubyOnRails
[19:41:18] xuyuheng: has joined #RubyOnRails
[19:47:22] roshanavand: has joined #RubyOnRails
[19:52:29] mtkd: has joined #RubyOnRails
[19:58:41] sidx64: has joined #RubyOnRails
[20:01:32] xuyuheng: has joined #RubyOnRails
[20:13:56] alfiemax: has joined #RubyOnRails
[20:17:31] mikecmpbll: has joined #RubyOnRails
[20:17:47] am55: has joined #RubyOnRails
[20:19:24] schneider: has joined #RubyOnRails
[20:21:51] xuyuheng: has joined #RubyOnRails
[20:22:09] Ergo: has joined #RubyOnRails
[20:25:25] cstls: has joined #RubyOnRails
[20:31:43] DrYockel1: has joined #RubyOnRails
[20:34:19] xuyuheng: has joined #RubyOnRails
[20:36:18] alfiemax: has joined #RubyOnRails
[20:40:29] za1b1tsu: has joined #RubyOnRails
[20:45:40] duderonomy: has joined #RubyOnRails
[20:54:23] xuyuheng: has joined #RubyOnRails
[20:55:00] cagomez: has joined #RubyOnRails
[20:58:40] roshanavand: has joined #RubyOnRails
[21:11:10] xuyuheng: has joined #RubyOnRails
[21:24:25] saltlake: has joined #RubyOnRails
[21:24:52] saltlake: has left #RubyOnRails: ()
[21:27:36] duderonomy: has joined #RubyOnRails
[21:31:22] mtkd: has joined #RubyOnRails
[21:31:30] xuyuheng: has joined #RubyOnRails
[21:38:02] kn-928: has joined #RubyOnRails
[21:44:50] armyriad: has joined #RubyOnRails
[21:46:41] andrewray: has joined #RubyOnRails
[21:47:25] cagomez: has joined #RubyOnRails
[21:51:52] xuyuheng: has joined #RubyOnRails
[21:59:58] orbyt_: has joined #RubyOnRails
[22:12:07] xuyuheng: has joined #RubyOnRails
[22:24:34] one_zero: has joined #RubyOnRails
[22:32:24] DTZUZO_: has joined #RubyOnRails
[22:32:30] xuyuheng: has joined #RubyOnRails
[22:33:43] schneider: has joined #RubyOnRails
[22:36:59] roca: has joined #RubyOnRails
[22:50:18] xuyuheng: has joined #RubyOnRails
[22:50:49] cstls: has joined #RubyOnRails
[23:05:07] schneider: has joined #RubyOnRails
[23:08:22] alfiemax: has joined #RubyOnRails
[23:08:48] xuyuheng: has joined #RubyOnRails
[23:23:20] xuyuheng: has joined #RubyOnRails
[23:23:25] lomex: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[23:35:09] gravity_pope: has joined #RubyOnRails
[23:42:47] LambdaSource: has joined #RubyOnRails
[23:43:37] xuyuheng: has joined #RubyOnRails
[23:46:28] kapil___: has joined #RubyOnRails
[23:56:23] xuyuheng: has joined #RubyOnRails