FrankD

Activity Graph

Page 1 of 2 | Next »

2019-05-11

[17:25:19] FrankD: Read error: Connection reset by peer

2019-05-08

[00:23:52] FrankD: has joined #RubyOnRails
[00:25:32] FrankD: Hi -- if I have two scaffolds generated for say Triggers and Events.. and I want an interface like GenerateEmails, which grabs Triggers and Events in a certain time range.. would it be appropriate to just create another controller and then use something like render partial inside GenerateEmails?
[00:27:55] FrankD: playing with Rails 5.2

2019-04-24

[22:45:25] FrankD: Ping timeout: 276 seconds

2019-04-23

[14:58:48] FrankD: has joined #ruby
[14:58:49] FrankD: has joined #RubyOnRails

2019-02-12

[06:41:33] FrankD: has joined #ruby
[23:02:20] FrankD: Read error: Connection reset by peer

2018-12-28

[02:31:27] FrankD: has joined #RubyOnRails
[02:31:27] FrankD: has joined #ruby
[10:11:28] FrankD: Read error: Connection reset by peer

2018-11-22

[07:36:56] FrankD: has joined #RubyOnRails
[07:36:56] FrankD: has joined #ruby
[21:44:37] FrankD: Read error: Connection reset by peer

2018-11-18

[05:56:50] FrankD: has joined #RubyOnRails
[05:56:50] FrankD: has joined #ruby
[23:52:14] FrankD: Ping timeout: 244 seconds

2018-04-13

[04:35:58] FrankD: Ping timeout: 240 seconds

2018-04-10

[17:07:10] FrankD: has joined #ruby

2018-04-04

[15:06:35] FrankD: Ping timeout: 240 seconds

2018-03-24

[14:28:16] FrankD: has joined #ruby

2017-11-29

[07:25:37] FrankD: Ping timeout: 260 seconds

2017-11-28

[15:36:12] FrankD: has joined #RubyOnRails
[15:36:12] FrankD: has joined #ruby

2017-11-13

[07:02:37] FrankD: has joined #ruby
[07:02:38] FrankD: has joined #RubyOnRails
[10:34:08] FrankD: Ping timeout: 248 seconds

2017-08-02

[18:28:46] FrankD: has joined #ruby
[18:38:30] FrankD: Ping timeout: 255 seconds

2017-07-29

[09:10:42] FrankD: Ping timeout: 260 seconds

2017-07-28

[20:11:45] FrankD: Ping timeout: 248 seconds
[20:15:53] FrankD: has joined #ruby
[20:41:21] FrankD: has joined #ruby
[20:41:21] FrankD: Changing host

2017-07-17

[19:20:53] FrankD: has joined #RubyOnRails
[19:20:53] FrankD: has joined #ruby

2016-06-28

[01:30:33] FrankD: Ping timeout: 240 seconds

2016-06-27

[01:43:14] FrankD: has joined #RubyOnRails
[01:43:14] FrankD: Changing host
[05:06:03] FrankD: Ping timeout: 240 seconds
[09:01:15] FrankD: has joined #RubyOnRails
[16:04:29] FrankD: has joined #RubyOnRails
[16:04:29] FrankD: Changing host

2016-06-26

[03:41:34] FrankD: Ping timeout: 240 seconds
[03:42:31] FrankD: has joined #RubyOnRails

2016-06-25

[00:57:23] FrankD: has joined #RubyOnRails
[00:57:23] FrankD: Changing host

2016-06-24

[06:54:39] FrankD: has joined #RubyOnRails

2016-06-23

[04:33:39] FrankD: Ping timeout: 260 seconds

2016-06-22

[03:05:55] FrankD: has joined #RubyOnRails
[03:07:38] FrankD: Hey, can anyone tell me how to accept nested parameters in Rails? params.require(:conv_job).permit(:Name, :StyleImage_id, :ContentImage_id, Options: optParams, :CreatedBy) <-- is not working (optParams is an array of strings for the sub-parameters) as I'd hoped
[03:13:38] FrankD: i like to vary case
[03:14:07] FrankD: and optParams is set, I just changed it to {:Options => optParams} and it seems to be working ok
[19:21:19] FrankD: https://gist.github.com/fdimitri/1d1636cd32a2b7a2fec543a614050785
[19:21:30] FrankD: any idea why this would happen? It's writing the SQL select incorrectly
[19:21:37] FrankD: for a has_many through relationship
[19:22:25] FrankD: ^ excerpt error from 'show' uses select_image_id instead of StyleImage_id as per the schema
[19:22:33] FrankD: er style_image_id instead of StyleImage_id
[19:27:15] FrankD: has_many works, but has_many x through y doesnt? thats crap :p
[19:28:07] FrankD: adam12, will do but for the moment
[19:28:13] FrankD: what would I add to get it to select correctly?
[19:28:54] FrankD: dont suppose you could example me? :p
[19:29:19] FrankD: for has_many/belongs_to I understand it, but I don't really get how to write it with has_many through
[19:42:07] FrankD: whew good googly moogly
[19:42:13] FrankD: atleast that worked for now

2015-12-22

[01:44:24] FrankD: has joined #ruby
[03:41:02] FrankD: Quit: Leaving

2015-12-06

[01:36:31] FrankD: has joined #ruby
[22:34:11] FrankD: Ping timeout: 246 seconds

2015-10-31

[02:15:12] FrankD: Disconnected by services

2015-10-29

[20:10:44] FrankD: Ping timeout: 250 seconds

2015-10-26

[03:05:15] FrankD: Ping timeout: 250 seconds
[03:38:05] FrankD: has joined #ruby
[04:16:58] FrankD: has joined #ruby
[04:16:58] FrankD: Changing host

2015-10-25

[23:47:49] FrankD: has joined #ruby

2015-10-07

[00:48:51] FrankD: Ping timeout: 250 seconds
[04:01:53] FrankD: has joined #RubyOnRails
[04:01:53] FrankD: has joined #ruby
[09:56:11] FrankD: Ping timeout: 260 seconds
[10:05:49] FrankD: has joined #ruby
[10:05:49] FrankD: has joined #RubyOnRails
[10:39:07] FrankD: Ping timeout: 240 seconds

2015-10-05

[21:06:18] FrankD: has joined #RubyOnRails
[21:06:58] FrankD: hi, I'm having an issue with ActiveRecord and MySQL2 when I try to save an object.. https://gist.github.com/fdimitri/f0284b7b59e785c46afa
[21:07:18] FrankD: it appears the issue may be the 'x' before the base64 data?
[21:11:34] FrankD: craysiii, ya got me
[21:11:41] FrankD: i just call .save! :P
[21:35:32] FrankD: smathy, ah line clipped
[21:35:35] FrankD: its a .. very long line
[21:35:43] FrankD: but MariaDB doesnt like the double ''s
[21:37:59] FrankD: smathy, --- !ruby/exception:ActiveRecord::StatementInvalid
[21:38:34] FrankD: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'setContents'', ''4c53307449434a63496d35764948567a5a53427a64484a7059335263496a746' at line 1
[21:38:34] FrankD: MariaDB [cstest1]> INSERT INTO `file_changes` (`changeType`, `changeData`, `startLine`, `startChar`, `DirectoryEntry_id`, `revision`, `User_id`, `created_at`, `updated_at`) VALUES (''setContents'', ''4c53307449434a63496d35764948567a5a53427a64484a7059335263496a7463626a736f5a6e5675593352706232346f64326c755a4739334b5342370a584735705a69416f64486c775a57396$'', 0, 0, 81681, 0, 1, ''2015-10-05 17:07:44'', ''2015-10-05 17:07:44'');
[21:39:54] FrankD: smathy, yeah but what about --- !ruby/exception:ActiveRecord::StatementInvalid ?
[21:40:15] FrankD: and it always does this with the same incoming data
[21:40:49] FrankD: smathy, then why would it always happen only for the same set of input data?
[21:44:28] FrankD: smathy, it inserts thousands of other records
[21:45:25] FrankD: its not really a rails app
[21:45:55] FrankD: #ruby cries that anything ActiveRecord is Rails
[22:33:30] FrankD: smathy, basically im taking all the files in a directory, and creating a directory/file tree in the database
[22:33:35] FrankD: so i can have revision history
[22:33:52] FrankD: so right now the issue is when it initially loads the files.. some of them pop that error

2015-10-03

[06:42:58] FrankD: Ping timeout: 244 seconds
[07:12:54] FrankD: has joined #RubyOnRails
[07:12:54] FrankD: has joined #ruby
[09:40:40] FrankD: Ping timeout: 240 seconds
[09:41:27] FrankD: has joined #ruby
[09:41:27] FrankD: has joined #RubyOnRails
[10:15:20] FrankD: Ping timeout: 240 seconds
[10:30:32] FrankD: has joined #ruby
[10:30:32] FrankD: has joined #RubyOnRails
[11:03:53] FrankD: Ping timeout: 250 seconds
[11:04:49] FrankD: has joined #ruby
[11:04:49] FrankD: has joined #RubyOnRails
[13:12:20] FrankD: Ping timeout: 240 seconds

2015-10-02

[01:52:56] FrankD: has joined #RubyOnRails
[01:52:56] FrankD: has joined #ruby
[05:37:15] FrankD: has joined #ruby
[05:37:15] FrankD: has joined #RubyOnRails
[05:37:15] FrankD: Changing host

2015-10-01

[05:44:10] FrankD: Ping timeout: 244 seconds
[09:09:12] FrankD: has joined #ruby
[09:09:12] FrankD: has joined #RubyOnRails
[10:18:31] FrankD: Ping timeout: 244 seconds
[17:10:54] FrankD: has joined #RubyOnRails
[17:10:54] FrankD: has joined #ruby
[18:09:12] FrankD: Ping timeout: 244 seconds
[19:04:13] FrankD: has joined #RubyOnRails
[19:04:13] FrankD: has joined #ruby
[19:38:04] FrankD: Ping timeout: 244 seconds
[21:12:30] FrankD: has joined #RubyOnRails
[21:12:30] FrankD: has joined #ruby
[22:53:53] FrankD: Ping timeout: 244 seconds
[23:05:52] FrankD: has joined #RubyOnRails
[23:05:52] FrankD: has joined #ruby
[23:50:12] FrankD: Ping timeout: 244 seconds

2015-09-30

[01:24:41] FrankD: has joined #ruby
[01:24:41] FrankD: has joined #RubyOnRails
[01:25:17] FrankD: has joined #RubyOnRails
[01:25:17] FrankD: has joined #ruby
[01:25:17] FrankD: Changing host
[02:25:18] FrankD: Ping timeout: 244 seconds
[07:04:11] FrankD: has joined #ruby
[07:04:11] FrankD: has joined #RubyOnRails
[07:38:24] FrankD: Ping timeout: 244 seconds
[16:03:17] FrankD: has joined #ruby
[16:03:17] FrankD: has joined #RubyOnRails
[16:23:21] FrankD: Changing host
[16:23:22] FrankD: has joined #RubyOnRails
[16:23:22] FrankD: has joined #ruby
[19:37:48] FrankD: hey, I just moved development systems from Ubuntu 13 to Fedora 22 and am having some issues
[19:38:00] FrankD: ie I get: Mysql2::Error: Unknown column 'projects.Owner' in 'where clause': SELECT COUNT(*) FROM `projects` WHERE `projects`.`Owner` = 1
[19:38:10] FrankD: where it used to check projects.Owner_id, not projects.Owner
[19:38:28] FrankD: arup_r, i copied the DB
[19:38:56] FrankD: although i did get errors when copying the DB
[19:45:31] FrankD: arup_r, seems like an AR problem maybe? It's not appending "_id" to anything that was defined by t.references
[19:49:08] FrankD: smathy, I didn't think so
[19:49:14] FrankD: what defines whether _id is added?
[19:50:50] FrankD: smathy, https://gist.github.com/fdimitri/8c856bd9b412d70d9a0a
[19:51:30] FrankD: smathy, both servers are running rails 4.2.3
[19:54:28] FrankD: well it DOES work on one server :p
[19:55:46] FrankD: has_many :OwnedProjects, class_name: "Project", foreign_key: "Owner"
[19:56:00] FrankD: in models/user.rb ^
[19:56:22] FrankD: so i realize im explicitly calling the foreign_key Owner, but server #1 appends _id to it
[19:56:30] FrankD: server #2 does not
[19:56:34] FrankD: is there a reason that would be? :p
[19:57:24] FrankD: smathy, then why does it work on one server? both are using the same datbase backend
[19:57:47] FrankD: ie both are mysql2 adapter, i dumped the database on one and pulled it in on the other
[19:58:04] FrankD: both are rails 4.2.3
[19:58:31] FrankD: well if I change it to Owner_id, it breaks the other server :P
[20:00:34] FrankD: eh more concerned about it working on server 2, getting the hell off of cloud9 :P
[21:15:45] FrankD: so I'm writing a ruby program with AR, and establish_connection is giving me this: /home/carbide/.gem/ruby/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
[21:15:53] FrankD: mysql2 is loaded
[21:16:03] FrankD: any way around that?
[21:17:10] FrankD: rhizome, https://gist.github.com/fdimitri/f5232b06188cee042299
[21:17:16] FrankD: list of loded gems
[21:17:50] FrankD: from `puts Gem.loaded_specs.values.map {|x| "#{x.name} #{x.version}"}

2015-09-29

[08:27:32] FrankD: Ping timeout: 244 seconds
[14:52:40] FrankD: has joined #ruby
[14:52:40] FrankD: has joined #RubyOnRails
[15:36:22] FrankD: Ping timeout: 244 seconds
[17:48:35] FrankD: has joined #ruby
[17:48:35] FrankD: has joined #RubyOnRails
[18:22:44] FrankD: Ping timeout: 244 seconds

2015-09-28

[00:56:22] FrankD: Ping timeout: 255 seconds
[01:11:47] FrankD: has joined #ruby
[01:11:47] FrankD: has joined #RubyOnRails
[01:40:33] FrankD: has joined #RubyOnRails
[01:40:33] FrankD: has joined #ruby
[01:40:33] FrankD: Changing host
[04:47:40] FrankD: Ping timeout: 255 seconds
[04:52:12] FrankD: has joined #ruby
[04:52:12] FrankD: has joined #RubyOnRails
[04:58:13] FrankD: has joined #RubyOnRails
[04:58:13] FrankD: has joined #ruby
[04:58:13] FrankD: Changing host
[06:24:06] FrankD: Ping timeout: 244 seconds
[23:16:52] FrankD: has joined #RubyOnRails
[23:16:52] FrankD: has joined #ruby

2015-09-27

[00:24:04] FrankD: Ping timeout: 265 seconds
[00:26:43] FrankD: has joined #ruby
[00:26:43] FrankD: has joined #RubyOnRails
[00:26:47] FrankD: has joined #RubyOnRails
[00:26:47] FrankD: has joined #ruby
[00:26:47] FrankD: Changing host
[10:18:05] FrankD: Ping timeout: 265 seconds
[20:11:21] FrankD: has joined #ruby
[20:11:21] FrankD: has joined #RubyOnRails
[22:51:16] FrankD: Ping timeout: 255 seconds
[23:05:21] FrankD: has joined #ruby
[23:05:21] FrankD: has joined #RubyOnRails

2015-09-26

[01:06:27] FrankD: Ping timeout: 244 seconds
[01:44:39] FrankD: has joined #ruby
[01:44:39] FrankD: has joined #RubyOnRails
[01:44:47] FrankD: has joined #RubyOnRails
[01:44:47] FrankD: has joined #ruby
[01:44:47] FrankD: Changing host
[11:20:46] FrankD: Ping timeout: 244 seconds
[17:04:42] FrankD: has joined #ruby
[17:04:42] FrankD: has joined #RubyOnRails
[19:07:00] FrankD: Ping timeout: 265 seconds
[19:13:00] FrankD: has joined #ruby
[19:13:00] FrankD: has joined #RubyOnRails

2015-09-25

[21:20:12] FrankD: has joined #RubyOnRails
[21:20:12] FrankD: has joined #ruby
[22:45:55] FrankD: Ping timeout: 244 seconds
[23:22:27] FrankD: has joined #ruby
[23:22:27] FrankD: has joined #RubyOnRails
[23:22:36] FrankD: has joined #RubyOnRails
[23:22:36] FrankD: has joined #ruby
[23:22:36] FrankD: Changing host

2015-09-21

[02:28:13] FrankD: Ping timeout: 265 seconds

2015-09-19

[04:35:43] FrankD: hey does anyone have an example of using TarWriter to recursively tar a directory?

2015-09-17

[05:00:32] FrankD: Ping timeout: 246 seconds
[06:58:50] FrankD: has joined #ruby
[06:58:50] FrankD: has joined #RubyOnRails

2015-09-14

[01:16:36] FrankD: has joined #RubyOnRails
[01:16:36] FrankD: has joined #ruby
[01:16:36] FrankD: Changing host

2015-09-13

[22:08:57] FrankD: has joined #RubyOnRails
[22:08:58] FrankD: has joined #ruby

2015-09-12

[18:20:31] FrankD: Ping timeout: 250 seconds

2015-09-10

[09:14:19] FrankD: has joined #RubyOnRails
[09:14:19] FrankD: has joined #ruby