DylanJ

Activity Graph

Page 1 of 11 | Next »

2019-07-09

[11:55:59] DylanJ: *.net *.split
[12:01:27] DylanJ: has joined #RubyOnRails

2019-06-13

[08:58:14] DylanJ: Remote host closed the connection
[08:58:31] DylanJ: has joined #RubyOnRails

2019-05-22

[09:08:58] DylanJ: Ping timeout: 252 seconds
[09:10:49] DylanJ: has joined #RubyOnRails
[14:58:02] DylanJ: Ping timeout: 252 seconds
[15:25:00] DylanJ: has joined #RubyOnRails

2019-05-13

[15:02:47] DylanJ: Ping timeout: 252 seconds
[15:09:39] DylanJ: has joined #RubyOnRails

2019-04-20

[22:56:50] DylanJ: Quit: WeeChat 2.3
[22:58:43] DylanJ: has joined #RubyOnRails

2019-04-13

[16:50:00] DylanJ: *.net *.split

2019-01-14

[17:09:38] DylanJ: catbusters: been a while but maybe use _url instead of path?
[17:22:59] DylanJ: catbusters: https://stackoverflow.com/questions/6725629/route-helpers-in-asset-pipeline answers explains it
[21:11:42] DylanJ: Ping timeout: 268 seconds
[21:12:31] DylanJ: has joined #RubyOnRails

2019-01-07

[12:06:13] DylanJ: Quit: WeeChat 2.3
[16:16:10] DylanJ: has joined #RubyOnRails

2019-01-03

[15:46:03] DylanJ: has joined #RubyOnRails

2018-08-01

[18:00:31] DylanJ: Ping timeout: 256 seconds
[18:13:32] DylanJ: has joined #RubyOnRails

2018-07-27

[05:54:46] DylanJ: Ping timeout: 265 seconds
[05:55:05] DylanJ: has joined #RubyOnRails

2018-07-20

[00:07:17] DylanJ: *.net *.split
[00:15:25] DylanJ: has joined #RubyOnRails

2018-07-19

[05:30:29] DylanJ: Ping timeout: 276 seconds
[05:43:37] DylanJ: has joined #RubyOnRails

2018-07-18

[05:16:28] DylanJ: *.net *.split
[05:35:19] DylanJ: has joined #RubyOnRails

2018-07-12

[02:25:14] DylanJ: Quit: WeeChat 2.1
[07:13:42] DylanJ: has joined #RubyOnRails

2018-07-11

[19:46:27] DylanJ: Ping timeout: 245 seconds
[19:47:55] DylanJ: has joined #RubyOnRails

2018-07-06

[01:21:48] DylanJ: Ping timeout: 256 seconds
[01:22:06] DylanJ: has joined #RubyOnRails

2018-06-11

[14:42:30] DylanJ: yottanami: does your code work in development?
[14:42:48] DylanJ: yottanami: did you rebuild your docker container to include new gems and dependencies
[14:43:29] DylanJ: yottanami: does the same error occur when you run in production mode locally (without docker). try to replicate the bug without docker complicating the debugging.

2018-06-06

[20:08:23] DylanJ: Ping timeout: 255 seconds
[20:27:10] DylanJ: has joined #RubyOnRails

2018-05-29

[02:47:06] DylanJ: *.net *.split
[02:47:49] DylanJ: has joined #RubyOnRails

2018-04-25

[12:25:44] DylanJ: *.net *.split
[12:27:34] DylanJ: has joined #RubyOnRails
[15:01:14] DylanJ: *.net *.split
[15:03:04] DylanJ: has joined #RubyOnRails

2018-04-08

[18:48:46] DylanJ: Quit: WeeChat 2.0
[21:17:44] DylanJ: has joined #RubyOnRails

2018-03-27

[16:22:33] DylanJ: spohnz: you can of course do that, but it's goofy. instead create a comments model with a relationshup to the bug_tracker model (assuming a bug_tracker is like, a single bug).

2018-01-18

[06:55:53] DylanJ: Quit: WeeChat 2.0
[10:28:14] DylanJ: has joined #RubyOnRails

2018-01-12

[18:34:29] DylanJ: *.net *.split
[18:34:46] DylanJ: has joined #RubyOnRails

2017-12-05

[15:11:57] DylanJ: Quit: WeeChat 1.9.1
[15:16:23] DylanJ: has joined #RubyOnRails

2017-11-10

[16:58:38] DylanJ: newrelic free should be good enough so long as you dont need the history past 30 days or whatever their limit is.
[16:58:42] DylanJ: been a while since i used newrelic.
[17:03:57] DylanJ: if your worker is sidekiq or delayed jobs it's automagic with newrelic.
[17:04:13] DylanJ: if its something else, you can add custom instrumentation around the worker.
[17:04:35] DylanJ: custom intrumentation being a "thing" in new relic if you haven't come across it before.
[17:08:08] DylanJ: mustmodify: i'm not sure about redis specifically, maybe. but "sidekiq" https://docs.newrelic.com/docs/agents/ruby-agent/background-jobs/sidekiq-instrumentation

2017-11-08

[09:43:35] DylanJ: *.net *.split
[09:49:08] DylanJ: has joined #RubyOnRails

2017-10-16

[08:49:26] DylanJ: Remote host closed the connection
[08:49:41] DylanJ: has joined #RubyOnRails
[08:51:34] DylanJ: Remote host closed the connection
[08:51:49] DylanJ: has joined #RubyOnRails

2017-10-03

[23:02:10] DylanJ: Ping timeout: 264 seconds
[23:04:10] DylanJ: has joined #RubyOnRails
[23:43:25] DylanJ: Ping timeout: 258 seconds
[23:56:19] DylanJ: has joined #RubyOnRails

2017-10-02

[03:27:11] DylanJ: Ping timeout: 246 seconds
[03:40:54] DylanJ: has joined #RubyOnRails

2017-10-01

[00:28:26] DylanJ: Ping timeout: 246 seconds
[00:28:47] DylanJ: has joined #RubyOnRails

2017-09-26

[10:58:08] DylanJ: you could refactor the hell out of that.
[10:58:19] DylanJ: but calling methods from params is sketchy
[10:58:32] DylanJ: at least whitelist the input
[11:04:59] DylanJ: noob_on_rails: i mean, that wont work as is.
[11:05:06] DylanJ: you'd have to call public_send(case)
[11:05:11] DylanJ: but that's better
[11:05:17] DylanJ: try to avoid calling public_send though
[11:06:37] DylanJ: i left a comment
[11:14:55] DylanJ: noob_on_rails: i added another comment.
[11:23:59] DylanJ: you could refactor this a million ways.
[11:24:36] DylanJ: i just split up the method into three so you can write unit tests
[11:28:08] DylanJ: i'd just call .map { blah } inside the method after your switch
[11:28:22] DylanJ: it should
[11:28:26] DylanJ: i dont see why it wouldn't
[11:30:32] DylanJ: you can do that.
[11:31:01] DylanJ: case returns the last object in whichever statement runs.
[11:31:31] DylanJ: or nil if there are no matches
[11:43:50] DylanJ: well then you should go back to where you can read it.
[11:44:35] DylanJ: to me this is cleaner than what you started with, but you've got this filter_options_new_cg method which i feel is unneeded.
[11:45:47] DylanJ: the last thing i'll mention is try to avoid confusing double negative if statements. `if !thing.blank?` instead -> if thing.present?
[12:24:18] DylanJ: noob_on_rails: no, have a look at one of my comments.
[12:24:32] DylanJ: one has an example of calling map on the object if it exists.
[12:43:47] DylanJ: looks good. now what happens when params[:live] is set and params[:collection_type] is 'foo' ?
[12:44:12] DylanJ: is it okay if you render jsonapi: nil ?

2017-09-11

[20:24:11] DylanJ: *.net *.split
[20:32:31] DylanJ: has joined #RubyOnRails

2017-07-19

[12:33:17] DylanJ: has joined #RubyOnRails

2017-07-13

[19:46:21] DylanJ: Quit: ggwp

2017-06-20

[00:17:18] DylanJ: *.net *.split
[00:22:41] DylanJ: has joined #RubyOnRails

2017-06-03

[07:54:52] DylanJ: Quit: ggwp
[07:55:13] DylanJ: has joined #RubyOnRails

2017-05-26

[10:56:07] DylanJ: has joined #RubyOnRails
[10:56:51] DylanJ: How can I execute an arbitrary SQL statement *with* sanitization of params. Ex: `ActiveRecord::What.execute('select somefunc(?)', args)`

2016-06-08

[22:38:05] DylanJ: Quit: ggwp

2016-06-06

[12:42:48] DylanJ: has joined #ruby

2016-06-05

[19:33:32] DylanJ: Quit: ggwp
[19:36:00] DylanJ: has joined #spree
[19:36:00] DylanJ: has joined #RubyOnRails
[19:36:00] DylanJ: has joined #ruby
[20:13:02] DylanJ: Quit: ggwp

2016-05-24

[13:42:19] DylanJ: Anyone here know Sequel, Postgres and used TSRANGE types? Great! How can I pass a Time range `(Time.now..Time.now+1)` directly to an instance of a Sequel::Model without wrapping it in Sequel.pg_range. I see there's an option to register types `DB.register_range_type('timerange')
[13:42:30] DylanJ: ` but the function does not exist.

2016-05-23

[11:46:32] DylanJ: x = x[0...-1]

2016-04-23

[18:01:17] DylanJ: dh5: [@car.year, @car.manufacturer].join(' | ') ?

2016-04-22

[14:41:54] DylanJ: Does anyone know how to access the current database name inside of a rails migration? I'm using postgres. I need to run a SQL query written by hand which has the database name.
[15:20:26] DylanJ: epochwolf: if people didn't make assumptions about what other people do i would be so happy
[15:20:37] DylanJ: why even have an irc channel? i mean everything is already on stackoverflow

2016-04-17

[11:57:16] DylanJ: richardburton: you can do `gem 'mondo', github: 'ricburton/mondo-ruby'` - but that shouldn't fix your LoadError.
[11:57:50] DylanJ: Where are you calling `require 'mondo'`?
[11:58:06] DylanJ: like, `bundle exec pry` ?

2016-04-08

[08:59:58] DylanJ: hello9: don't think so, but you can do [:post1, :post2].each { |x| errors.add(x, 'post error') }
[09:01:38] DylanJ: depends how you display the errors on the model.
[09:02:15] DylanJ: but if you were to do errors.full_messages.to_sentence for instance you will see the error twice.

2016-04-07

[10:49:17] DylanJ: cabinB: do you want to unstage the changes? or do you actually want your file content to be what it was in the previous commit?
[10:51:09] DylanJ: well now you're confusing me. say you have file a commited in commit 1. and you change file a's content. if you type "git add a" this /stages/ the changes to be commited.
[10:51:23] DylanJ: unstaging doesn't change the file. it just means it wont be commited with "git commit"
[10:51:39] DylanJ: git you want file a to go back in time to the previous commit you must do a "git reset"
[10:52:18] DylanJ: if you have a bunch of crap changes you dont want any more you can "git reset --hard some-commit"
[10:52:48] DylanJ: but be careful. that actually touches your fs. you have to learn how to read git ref-log if you make a mistake.
[12:38:58] DylanJ: is item IN the collection
[12:39:46] DylanJ: = is only for "does this actually equal this exact value"
[12:40:19] DylanJ: if team is an array you should be able to use .where(drivers: { manager_id: team })
[12:41:07] DylanJ: and you have a drivers association ..
[14:46:15] DylanJ: DefV: if you use ruby 2... you can do exactly that and you have a variable called property with a value "og:description"
[14:48:19] DylanJ: DefV: https://gist.githubusercontent.com/DylanJ/2438ca7b61284bc2f0ef864aa2911b7e/raw/d8af9fe145f6a6e5d2e84c06029a6f143cbe16f2/keyargs.rb
[14:52:36] DylanJ: then i guess just do def meta(fields); fields.each { |k,v| whatever }; end
[14:57:28] DylanJ: does /tmp/mysql.sock exist? is mysql running? where did you get /tmp/mysql.sock from?

2016-04-06

[10:38:07] DylanJ: spanky: nicht wirklich
[10:38:31] DylanJ: kennen sie Ruby?
[10:39:41] DylanJ: ich hab nicht das gesehen
[10:39:59] DylanJ: welches OS benutzen sie?
[10:40:31] DylanJ: Sie** lol
[10:41:27] DylanJ: Waaas. Rails + Windows ist möglich aber nicht so gut. Es ist mehr für linux/osx
[10:43:49] DylanJ: leider nicht in deutsch
[10:44:10] DylanJ: das ist ein gut buch

2016-03-28

[17:42:09] DylanJ: Ping timeout: 276 seconds
[21:00:03] DylanJ: has joined #spree
[21:00:03] DylanJ: has joined #RubyOnRails
[21:00:03] DylanJ: has joined #ruby
[21:00:37] DylanJ: has left #spree: ()

2016-03-17

[16:15:08] DylanJ: In Rails 5 how do I send a JSON body in a feature test?
[16:15:24] DylanJ: post "/some/route", { foo: 'bar' }.to_json # is deprecated

2016-03-16

[22:14:54] DylanJ: Ping timeout: 276 seconds
[22:17:00] DylanJ: has joined #RubyOnRails
[22:17:00] DylanJ: has joined #ruby
[22:25:57] DylanJ: Read error: Connection timed out
[22:26:13] DylanJ: has joined #RubyOnRails
[22:26:13] DylanJ: has joined #ruby

2016-03-14

[14:34:47] DylanJ: Is there an ENV var in spring I can use locally to tell spring /not/ to run on just my machine? I have coworkers who like it. But i'm not a fan.
[14:41:02] DylanJ: marceloeloelo: you're a legend.
[14:41:19] DylanJ: ACTION puts it in /etc/environment

2016-03-09

[09:55:37] DylanJ: has left #spree: ("ggwp")
[12:55:38] DylanJ: jhass: what's the difference? rubocop always hates whatever i choose.

2016-03-08

[21:15:11] DylanJ: has joined #spree
[21:15:11] DylanJ: has joined #RubyOnRails
[21:15:11] DylanJ: has joined #ruby

2016-03-07

[20:09:48] DylanJ: Quit: ggwp

2016-03-01

[17:13:44] DylanJ: How can I (outside the context of a request) get a Rails Apps hostname?

2016-02-19

[18:25:35] DylanJ: *.net *.split
[18:27:05] DylanJ: has joined #ruby
[18:27:07] DylanJ: has joined #RubyOnRails

2016-02-17

[04:35:17] DylanJ: Ping timeout: 265 seconds
[04:37:17] DylanJ: has joined #ruby
[04:37:18] DylanJ: has joined #RubyOnRails

2016-02-15

[07:03:54] DylanJ: *.net *.split
[08:27:32] DylanJ: has joined #RubyOnRails
[08:27:32] DylanJ: has joined #ruby

2016-02-14

[00:19:40] DylanJ: has joined #spree
[00:19:40] DylanJ: has joined #RubyOnRails
[00:19:40] DylanJ: has joined #ruby
[00:27:08] DylanJ: Ping timeout: 250 seconds
[00:27:59] DylanJ: has joined #ruby
[00:28:07] DylanJ: has joined #RubyOnRails
[00:28:25] DylanJ: has joined #spree
[01:11:18] DylanJ: Quit: ggwp
[01:14:25] DylanJ: has joined #spree
[01:14:25] DylanJ: has joined #RubyOnRails
[01:14:25] DylanJ: has joined #ruby
[02:39:27] DylanJ: has left #spree: ("ggwp")

2016-02-13

[23:52:48] DylanJ: Remote host closed the connection

2016-02-03

[20:08:09] DylanJ: has left #spree: ("ggwp")

2016-02-01

[22:06:44] DylanJ: offtopic: does anyone know any email as a service providers like sendgrid or mandrill that are based in the eu?

2016-01-20

[13:56:09] DylanJ: *.net *.split
[15:08:26] DylanJ: has joined #spree
[15:08:26] DylanJ: has joined #RubyOnRails
[15:08:26] DylanJ: has joined #ruby
[15:08:34] DylanJ: Max SendQ exceeded
[15:09:00] DylanJ: has joined #ruby
[15:09:08] DylanJ: has joined #RubyOnRails
[15:09:26] DylanJ: has joined #spree

2016-01-08

[17:25:07] DylanJ: Hey what's happening when I do Hash({x: 1})? How come I can call Hash() like a function?
[17:26:40] DylanJ: havenwood: oh neat.
[17:28:36] DylanJ: diegoviola: probably a good idea not to post usernames and passwords in your pastes :)

2015-12-24

[17:17:09] DylanJ: ChameleonSix: you're trying to create an instance of the class you're defining inside the class - as you define it.
[17:17:43] DylanJ: put your 3 lines (name =Name.new(); puts ...) after the "end" yeah
[17:17:50] DylanJ: cause it should work
[17:18:17] DylanJ: no i was just clarifying which 3 lines i was talking about

2015-12-15

[10:07:20] DylanJ: anyone know how i can xor a bignum with a bignum?

2015-12-13

[19:35:52] DylanJ: *.net *.split
[19:35:56] DylanJ: has joined #spree
[19:35:57] DylanJ: has joined #RubyOnRails
[19:36:01] DylanJ: has joined #ruby

2015-12-09

[14:23:36] DylanJ: \W matches tabs Macaveli_
[14:26:19] DylanJ: Macaveli_: do you know what sub does?
[14:26:25] DylanJ: vs what gsub does?
[14:26:53] DylanJ: no, accidents happen

2015-11-26

[19:01:56] DylanJ: *.net *.split
[19:08:03] DylanJ: has joined #spree
[19:08:07] DylanJ: has joined #ruby
[19:08:09] DylanJ: has joined #RubyOnRails

2015-11-17

[15:14:54] DylanJ: hi guys. is it possible to (in a project using active support) instantiate an instance of Date without all of active_supports additions? Essentially: is it possible to load a vanilla core ruby class without monkey patches?
[15:22:32] DylanJ: newdan, jhass. bummer. as i thought. thanks though.

2015-11-09

[15:16:31] DylanJ: Ping timeout: 260 seconds
[15:30:28] DylanJ: has joined #ruby
[15:30:36] DylanJ: has joined #RubyOnRails
[15:30:54] DylanJ: has joined #spree

2015-11-04

[11:34:28] DylanJ: Spami: are you doing something in a callback?
[11:36:48] DylanJ: I dunno about that lock(true).find(xyz). I usually do Item.find(xyz).with_lock { // work }}
[11:43:36] DylanJ: Spami: item = Item.find(params[:id]); item.with_lock do { // }. but if norc is right it wont make a difference.

2015-10-31

[05:23:57] DylanJ: kiki_lamb: not equivalent, works like you said it does.

2015-10-29

[12:29:01] DylanJ: Why in rails 3.2 does an association with a join return instances of models which are read only? I haven't seen this before. Was this changed in Rails 4? Does returning readonly? => true instances make sense on a join?
[12:29:52] DylanJ: i don't think so, i'll check the scopes this query is using though
[12:31:11] DylanJ: rvanlieshout: ah. it's doing a fancy explicit sql join in one of the scopes. that would explain things.
[12:31:17] DylanJ: nvm then ^

2015-10-16

[00:08:28] DylanJ: has joined #spree
[00:08:48] DylanJ: has joined #RubyOnRails
[00:08:56] DylanJ: has joined #ruby

2015-10-09

[09:18:34] DylanJ: has joined #ruby