« Back to channel list

#RubyOnRails - 23 February 2019

« Back 1 day Forward 1 day »
[00:02:20] agent_white: has joined #RubyOnRails
[00:07:27] beholders_eye: has joined #RubyOnRails
[00:29:41] tdy1: has joined #RubyOnRails
[00:35:29] beholders_eye: has joined #RubyOnRails
[00:36:30] hahuang65: has joined #RubyOnRails
[00:37:04] tdy1: has joined #RubyOnRails
[00:42:32] hahuang65: has left #RubyOnRails: ("WeeChat 2.3")
[00:42:38] hahuang65: has joined #RubyOnRails
[00:44:36] tdy1: has joined #RubyOnRails
[00:50:06] hahuang65_: has joined #RubyOnRails
[00:55:29] bruul: has joined #RubyOnRails
[01:03:46] alnk: has joined #RubyOnRails
[01:10:18] hahuang65: has joined #RubyOnRails
[01:13:31] hahuang65: has joined #RubyOnRails
[01:17:01] hahuang65: has joined #RubyOnRails
[01:29:21] duderonomy: has joined #RubyOnRails
[01:36:41] Technodrome: has joined #RubyOnRails
[01:37:46] alnk: has joined #RubyOnRails
[02:04:29] ariedler: has joined #RubyOnRails
[02:21:02] ariedler: has joined #RubyOnRails
[02:22:29] ariedler: has joined #RubyOnRails
[02:29:21] apparition: has joined #RubyOnRails
[02:33:17] blackmesa: has joined #RubyOnRails
[02:34:43] blackmesa1: has joined #RubyOnRails
[02:47:11] ariedler: has joined #RubyOnRails
[02:51:19] gambl0r3: has joined #RubyOnRails
[02:51:29] tdy: has joined #RubyOnRails
[03:15:39] orbyt_: has joined #RubyOnRails
[03:21:00] v01d4lph4: has joined #RubyOnRails
[03:38:54] kvda: has joined #RubyOnRails
[03:42:15] mangold: has joined #RubyOnRails
[04:09:07] braincrash: has joined #RubyOnRails
[04:57:18] cagomez: has joined #RubyOnRails
[05:03:44] dtzuzu: has joined #RubyOnRails
[05:04:24] DTZUZO: has joined #RubyOnRails
[05:30:18] cagomez: has joined #RubyOnRails
[05:32:40] cagomez: has joined #RubyOnRails
[05:34:55] Saukk: has joined #RubyOnRails
[05:50:00] uksio: has joined #RubyOnRails
[05:50:04] hahuang65: hmm can someone explain to me why rails is connecting thru TCP socket when I don't have the host and port lines uncommented in database.yml?
[05:50:21] hahuang65: Trying to figure out why on my laptop it's doing that, but on my desktop, it's looking for domain socket by default.
[05:50:23] hahuang65: same project
[06:04:18] hahuang65: nm, figured it out. It was `PGHOST` and `PGUSER` being set.
[07:00:52] gambl0r3: has joined #RubyOnRails
[07:17:17] hd1: has joined #RubyOnRails
[07:27:39] apparition: has joined #RubyOnRails
[07:31:39] hellekin: has joined #RubyOnRails
[07:32:46] hahuang65_: has joined #RubyOnRails
[07:37:30] FrostCandy: has joined #RubyOnRails
[07:40:49] Gizmokid2005: has joined #RubyOnRails
[07:41:37] braincrash: has joined #RubyOnRails
[07:45:47] Psy-Q: has joined #RubyOnRails
[07:46:40] FrostCandy: has joined #RubyOnRails
[07:47:01] Dreamer3: has joined #RubyOnRails
[07:47:11] FrostCandy: has joined #RubyOnRails
[08:27:46] mikecmpbll: has joined #RubyOnRails
[09:05:22] blackmesa1: has joined #RubyOnRails
[09:09:40] conta: has joined #RubyOnRails
[09:21:12] sameerynho: has joined #RubyOnRails
[09:43:14] conta: has joined #RubyOnRails
[09:54:23] MrCrackPotBuilde: has joined #RubyOnRails
[10:53:04] Dbugger: has joined #RubyOnRails
[10:56:56] reber: has joined #RubyOnRails
[11:03:31] conta: has joined #RubyOnRails
[11:08:33] ravenousmoose: has joined #RubyOnRails
[11:21:49] catbusters: has joined #RubyOnRails
[11:22:57] catbusters: I have a table that rails keeps modifying in schema.rb upon migration
[11:23:26] catbusters: `create_table "friendly_id_slugs", id: :integer, default: nil, force: :cascade do |t|`
[11:23:31] catbusters: gets changed to
[11:23:39] catbusters: `create_table "friendly_id_slugs", id: :serial, force: :cascade do |t|`
[11:23:41] catbusters: Using postgres
[11:24:30] conta1: has joined #RubyOnRails
[11:47:12] dionysus70: has joined #RubyOnRails
[11:47:56] lankanmon: has joined #RubyOnRails
[11:55:31] ariedler: has joined #RubyOnRails
[11:55:51] dionysus70: it is considered ethical to use pieces of code in multiple project? I have written them but they are for different clients
[11:56:54] dionysus70: login / registration views would be quite similar with different branding of course
[11:57:00] ariedler: has joined #RubyOnRails
[11:57:54] catbusters: I don't see why not
[11:58:06] catbusters: The code you're talking about is generic enough
[11:59:30] dionysus70: ok thanks, just wanted to feel clear with my conscience :D
[12:25:50] ravenousmoose: has joined #RubyOnRails
[12:50:32] randohinn: has joined #RubyOnRails
[12:53:26] blackmesa1: has joined #RubyOnRails
[12:57:49] ariedler: has joined #RubyOnRails
[12:58:17] syndikate: If my clean up strategy is truncation does it truncate only the data added in that test or the whole table?
[13:00:55] apparition: has joined #RubyOnRails
[13:01:20] catbusters: The whole table
[13:09:09] mikecmpbll: has joined #RubyOnRails
[13:21:54] ravenousmoose: has joined #RubyOnRails
[13:22:02] syndikate: Ah okay thanks
[13:26:50] atrius: has joined #RubyOnRails
[13:28:26] srinidhi: has joined #RubyOnRails
[13:41:37] ravenousmoose: has joined #RubyOnRails
[13:50:14] Ryanar: has joined #RubyOnRails
[13:58:36] Fernando-Basso: has joined #RubyOnRails
[14:23:34] beholders_eye: has joined #RubyOnRails
[14:38:21] Saukk: has joined #RubyOnRails
[15:04:29] agent_white: has joined #RubyOnRails
[15:17:08] Saukk: has joined #RubyOnRails
[15:35:36] Menteb: has joined #RubyOnRails
[15:38:14] knight33: has joined #RubyOnRails
[15:45:30] ravenousmoose: has joined #RubyOnRails
[15:59:49] randohinn: has joined #RubyOnRails
[16:00:24] randohinn: Is there an efficient way to search from a HUUGE xml dataset in ruby? several tens of thousands of rows
[16:00:51] randohinn: nokogiri slamemd into a memory allocation failed immediately
[16:02:27] catbusters: Check out https://github.com/ohler55/ox
[16:02:51] tdy: has joined #RubyOnRails
[16:02:57] catbusters: It has a streaming parser module
[16:03:19] randohinn: Will do, thanks
[16:06:50] havenwood: randohinn: Nokogiri has stream parsing too. Oga is another good mention for stream parsing.
[16:07:03] havenwood: https://gitlab.com/yorickpeterse/oga
[16:07:23] randohinn: Okay, so I do have some options then
[16:13:08] ariedler: has joined #RubyOnRails
[16:16:12] KeyJoo: has joined #RubyOnRails
[16:19:01] orbyt_: has joined #RubyOnRails
[16:23:59] conta: has joined #RubyOnRails
[16:28:39] randohinn: If only I could do requests to the db this dataset is from, without a contract
[16:30:22] catbusters: You could import the XML files into postgres locally as the next best thing
[16:32:05] randohinn: that is gonna be a hella lot faster
[16:32:22] randohinn: especially if I need to only find one record
[16:32:23] mikecmpbll: has joined #RubyOnRails
[16:32:32] randohinn: from the entire set
[16:32:37] randohinn: based on user input...
[16:32:45] randohinn: I may actually do this...
[16:33:16] tdy1: has joined #RubyOnRails
[16:35:33] KeyJoo: has joined #RubyOnRails
[16:36:59] ariedler: has joined #RubyOnRails
[16:37:03] Technodrome: has joined #RubyOnRails
[16:43:48] blackmesa1: has joined #RubyOnRails
[16:53:23] Dreamer3: has joined #RubyOnRails
[17:16:11] gambl0r3: has joined #RubyOnRails
[17:29:17] tdy2: has joined #RubyOnRails
[17:31:59] orbyt_: has joined #RubyOnRails
[17:54:11] ule: Anyone here using Kubernetes with our lovelly Rails?
[18:03:48] planigan: has joined #RubyOnRails
[18:06:13] randohinn: Can I not make a DB without a model on it?
[18:06:30] randohinn: Getting a NoMethodError: undefined method `to_sym' for [:unique, true]:Array when adding an index
[18:06:59] randohinn: to a db that will not have a model (I only need to run one simple query on it)
[18:08:12] catbusters: Maybe you could use https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html
[18:12:11] ule: randohinn: What do you mean by "make a DB"? Create a table in your Database and not necessary have a model class for it?
[18:12:28] ule: ActiveRecord::Base.connection.execute("CREATE TABLE foo ... ")
[18:12:38] randohinn: what about migrations?
[18:12:52] ule: Well, if you don't want models, why do you need migrations?
[18:13:05] randohinn: did I say DB? dammit, meant table
[18:13:13] randohinn: one single table that does not need a model
[18:13:34] randohinn: the migration will not allow me to add_index
[18:13:49] ule: randohinn: you can add that command I paste inside a migration
[18:14:07] ule: basically, you can a RAW mysql query directly
[18:14:23] randohinn: Okay, and add the index that way gotcha
[18:14:29] ule: randohinn: is that an Temp Table? Why don't you want a model related?
[18:15:26] randohinn: I'm literally going to be querying for a single field from that table, to save myself from trying to search form 290k rows of an xml file, instead
[18:16:05] randohinn: hoping it will be faster
[18:16:16] ule: lol I did something similar here, but it was to avoid iterating over thousans of lines of an CSV
[18:17:04] ule: randohinn: here, we basically dump the CSV file into a temporary table, then we trigger workers + Sidekiq using a gem that does batch processing for sidekiq to digest that entire list in parallel
[18:17:07] randohinn: yup.. API access to this dataset costs, but they provide a download for free :D
[18:18:22] ule: randohinn: I saw a tweet from UncleBob this morning critizising XML. He said it is a terrible thing
[18:18:52] ule: sorry for my typos, just woke up and English is still catching up on my brain
[18:24:49] knight33: has joined #RubyOnRails
[18:28:05] ariedler: has joined #RubyOnRails
[18:30:01] ariedler: has joined #RubyOnRails
[18:32:22] alnk: ule: link?
[18:35:34] truenito: has joined #RubyOnRails
[18:36:37] ule: alnk: sorry? Link for what?
[18:36:59] ule: It was just a comment. I don't have the procedure written down
[18:41:15] ariedler: has joined #RubyOnRails
[19:11:18] blackmesa1: has joined #RubyOnRails
[19:17:47] se3jay: has joined #RubyOnRails
[19:19:32] randohinn: Loads fassster
[19:21:38] alnk: has joined #RubyOnRails
[19:22:19] catbusters: How fassster?
[19:27:53] randohinn: imported into mysql
[19:27:57] randohinn: run a query
[19:28:04] randohinn: boom, beats any xml parser ever
[19:36:33] conta: has joined #RubyOnRails
[19:40:42] ravenousmoose: has joined #RubyOnRails
[19:43:19] adgtl: has joined #RubyOnRails
[20:02:50] LenPayne: has joined #RubyOnRails
[20:16:26] ravenousmoose: has joined #RubyOnRails
[20:19:50] tdy2: has joined #RubyOnRails
[20:20:41] conta: has joined #RubyOnRails
[20:29:00] cagomez: has joined #RubyOnRails
[20:38:40] dviola: has joined #RubyOnRails
[21:00:06] mangold: has joined #RubyOnRails
[21:23:17] reber: has joined #RubyOnRails
[22:15:56] orbyt_: has joined #RubyOnRails
[22:40:19] conta: has joined #RubyOnRails
[22:41:21] gambl0r3: has joined #RubyOnRails
[22:53:39] alnk: has joined #RubyOnRails
[22:56:57] segy: has joined #RubyOnRails
[23:15:50] conta: has joined #RubyOnRails
[23:30:34] alnk: has joined #RubyOnRails
[23:41:45] orbyt_: has joined #RubyOnRails
[23:48:35] alnk: has joined #RubyOnRails
[23:57:26] gambl0r3: has joined #RubyOnRails