pupsicle

Activity Graph

Page 1 of 2 | Next »

2017-09-11

[15:05:02] pupsicle: has joined #RubyOnRails
[15:06:05] pupsicle: In this guide: http://guides.rubyonrails.org/routing.html, in 2.8 discussing routing concerns. What would the CommentsController index action look like for something like that?
[19:35:55] pupsicle: orbyt_, bundle add <gemname> is a built in command to add a gem to the current Gemfile
[19:37:35] pupsicle: I don't think so. Just remove from Gemfile and run bundle
[20:24:07] pupsicle: *.net *.split

2017-09-08

[06:34:39] pupsicle: Ping timeout: 248 seconds
[12:44:43] pupsicle: has joined #RubyOnRails
[18:46:02] pupsicle: ShalokShalom, what?
[21:44:18] pupsicle: Remote host closed the connection

2017-09-06

[13:01:00] pupsicle: has joined #RubyOnRails
[13:03:19] pupsicle: Is it frowned upon to "eval" ruby code pulled out of a database to provide "scripting" to certain users of a web application? Any suggested alternative approaches to allowing administrators to add new behavior to an application without redeploying?
[13:06:58] pupsicle: matthewd, it seems odd to try to embed a scripting language into my rails application.
[13:07:11] pupsicle: when ruby itself is available already.

2017-06-19

[12:33:57] pupsicle: Ping timeout: 240 seconds

2017-06-17

[15:34:27] pupsicle: Ping timeout: 240 seconds
[15:45:02] pupsicle: has joined #ruby

2017-06-16

[12:34:41] pupsicle: has joined #ruby
[12:41:41] pupsicle: 'facets/timer'
[12:45:04] pupsicle: Do you have the facets gem installed?
[12:51:28] pupsicle: You want a shell command to timeout?
[12:57:57] pupsicle: warrshrike: Did you see the Timeout class?
[12:58:17] pupsicle: https://ruby-doc.org/stdlib-2.4.1/libdoc/timeout/rdoc/Timeout.html
[13:01:32] pupsicle: If you're using backticks for the shell command, it won't kill that process automatically, but yes.
[13:04:17] pupsicle: I don't know what you're trying to implement exactly so it's hard to say. Have a read through this https://stackoverflow.com/questions/8292031/ruby-timeouts-and-system-commands
[13:24:19] pupsicle: meshsmith: Restate your question.
[13:29:17] pupsicle: meshsmith: If you are using Github Pages' built in Jekyll support, it will. https://github.com/blog/1867-github-pages-now-runs-jekyll-2-2-0
[13:29:49] pupsicle: meshsmith: but in general, no.
[13:31:25] pupsicle: meshsmith: A remote git repo is not the same thing as Github.
[13:31:38] pupsicle: git is not github and github is not git.
[14:07:42] pupsicle: Just create a macro to insert binding.pry
[15:27:52] pupsicle: That increment operation is not atomic
[16:54:23] pupsicle: Quit: Leaving
[17:03:52] pupsicle: has joined #ruby
[17:04:08] pupsicle: Client Quit
[20:47:50] pupsicle: has joined #ruby
[23:46:48] pupsicle: Ping timeout: 240 seconds
[23:47:12] pupsicle: has joined #ruby

2017-06-15

[12:42:09] pupsicle: has joined #ruby
[13:10:31] pupsicle: Remote host closed the connection
[16:18:27] pupsicle: has joined #ruby
[21:23:59] pupsicle: Quit: Leaving

2017-06-14

[12:30:42] pupsicle: has joined #ruby
[12:30:42] pupsicle: has joined #RubyOnRails
[13:18:31] pupsicle: sami: in your loop, you are reassigning the entire movie_complete hash each iteration.
[15:47:47] pupsicle: plujon: ActiveSupport also has a method called "constantize" if you happen to be depending on it.
[15:49:04] pupsicle: It adds method to String object I should say.
[19:17:55] pupsicle: Quit: pupsicle
[19:26:04] pupsicle: has joined #ruby
[19:26:10] pupsicle: has joined #RubyOnRails
[19:50:54] pupsicle: Quit: Leaving
[19:51:58] pupsicle: has joined #ruby
[21:27:04] pupsicle: def post action, params: nil
[21:27:20] pupsicle: def post(action, params: nil)
[21:28:41] pupsicle: https://github.com/rails/rails/blob/843345cae59b73e50af685ac1303a419a06b4c91/actionpack/lib/action_controller/test_case.rb#L399
[21:29:18] pupsicle: thats the actual code for your posted example.
[21:29:47] pupsicle: https://robots.thoughtbot.com/ruby-2-keyword-arguments
[21:30:50] pupsicle: positional args must come before
[21:32:45] pupsicle: otherwise you get a syntax error
[21:33:58] pupsicle: http://ruby-doc.org/core-2.0.0/doc/syntax/methods_rdoc.html#label-Arguments
[21:35:42] pupsicle: it's not magic
[21:36:33] pupsicle: Quit: Leaving

2017-06-13

[12:24:52] pupsicle: has joined #ruby
[12:24:52] pupsicle: has joined #RubyOnRails
[13:54:58] pupsicle: umdstu: https://stackoverflow.com/questions/558803/how-to-add-a-default-include-path-for-gcc-in-linux
[21:40:14] pupsicle: Quit: pupsicle

2017-06-12

[12:27:27] pupsicle: has joined #ruby
[12:27:27] pupsicle: has joined #RubyOnRails
[12:56:27] pupsicle: Quit: pupsicle
[12:58:39] pupsicle: has joined #ruby
[21:40:57] pupsicle: Quit: Leaving

2017-06-09

[12:26:05] pupsicle: has joined #ruby
[12:26:05] pupsicle: has joined #RubyOnRails
[12:29:22] pupsicle: Client Quit
[12:31:32] pupsicle: has joined #ruby
[17:48:57] pupsicle: baweaver: == true is not redundant.
[17:49:56] pupsicle: How in the fuck would you know that?
[17:50:31] pupsicle: If the value is true, yes. But he may specifically need it to be true to meet the condition.
[17:50:38] pupsicle: The status could be anything besides true or false.
[17:50:52] pupsicle: In fact, it's probably a string.
[17:51:02] pupsicle: So it'll always "be truthy"
[17:54:12] pupsicle: << "false" == true
[17:55:52] pupsicle: I guess my point wasn't that it wasn't redundant but that he may not be expressing what he intended to.
[17:55:57] pupsicle: Apologies for getting fired up.
[18:01:19] pupsicle: I just saw 'params' and immediately thought Rails and strings.
[19:11:54] pupsicle: Authenticator: https://stackoverflow.com/questions/41993527/fresh-install-of-rails-and-getting-openssl-errors-already-initialized-constant
[19:12:14] pupsicle: Suggests rolling back to 2.0.2
[19:12:48] pupsicle: or specifiying 2.0.3 in the gemfile vice just openssl
[21:34:17] pupsicle: Quit: Leaving

2017-06-08

[12:27:21] pupsicle: has joined #ruby
[12:27:21] pupsicle: has joined #RubyOnRails
[12:33:55] pupsicle: Remote host closed the connection
[12:38:09] pupsicle: has joined #ruby
[12:52:14] pupsicle: simon__: yes
[17:44:12] pupsicle: Ping timeout: 260 seconds
[17:49:28] pupsicle: has joined #ruby
[18:19:54] pupsicle: require 'universal_parser'
[20:18:58] pupsicle: Ping timeout: 258 seconds
[20:55:36] pupsicle: has joined #ruby
[21:43:28] pupsicle: Read error: Connection reset by peer

2017-06-07

[12:25:39] pupsicle: has joined #ruby
[12:25:39] pupsicle: has joined #RubyOnRails
[12:29:06] pupsicle: Client Quit
[13:02:58] pupsicle: has joined #ruby
[13:03:53] pupsicle: Client Quit
[13:04:43] pupsicle: has joined #ruby
[13:08:16] pupsicle: Client Quit
[13:08:25] pupsicle: has joined #ruby
[13:09:01] pupsicle: Client Quit
[13:09:15] pupsicle: has joined #ruby
[13:10:41] pupsicle: has joined #RubyOnRails
[18:43:01] pupsicle: Ping timeout: 255 seconds
[18:51:56] pupsicle: has joined #ruby
[21:37:33] pupsicle: Quit: Leaving

2017-06-06

[12:30:28] pupsicle: has joined #RubyOnRails
[12:30:29] pupsicle: has joined #ruby
[12:57:52] pupsicle: Remote host closed the connection

2017-06-05

[12:25:10] pupsicle: has joined #ruby
[12:25:10] pupsicle: has joined #RubyOnRails
[13:51:16] pupsicle: unshadow: It's a parameter to the initializer https://apidock.com/ruby/OpenSSL/PKey/DH/new/class
[15:12:21] pupsicle: Quit: pupsicle
[15:14:17] pupsicle: has joined #ruby
[15:15:17] pupsicle: has joined #RubyOnRails
[15:27:45] pupsicle: Read error: Connection reset by peer
[15:29:05] pupsicle: has joined #ruby
[15:30:07] pupsicle: Client Quit
[15:30:25] pupsicle: has joined #ruby
[15:31:27] pupsicle: Client Quit
[15:31:51] pupsicle: has joined #ruby
[17:00:25] pupsicle: has joined #RubyOnRails
[18:04:17] pupsicle: Remote host closed the connection
[18:04:35] pupsicle: has joined #ruby
[18:04:55] pupsicle: has joined #RubyOnRails
[21:36:11] pupsicle: Quit: Leaving

2017-06-02

[13:19:55] pupsicle: has joined #ruby
[13:19:55] pupsicle: has joined #RubyOnRails
[14:05:55] pupsicle: Quit: pupsicle
[15:06:09] pupsicle: has joined #ruby
[15:06:09] pupsicle: has joined #RubyOnRails
[15:13:48] pupsicle: Remote host closed the connection
[16:25:54] pupsicle: has joined #ruby
[16:36:33] pupsicle: Can anyone explain or point me to some documentation explaining why the output of this snippet is true instead of false? https://gist.github.com/anonymous/9c3973e0ffe1660ace4423056b2941d1
[16:38:16] pupsicle: No that's perfect. Thanks very much
[16:43:27] pupsicle: Very cool. It makes sense too, not sure why it didn't occur to me. Thanks.
[16:55:29] pupsicle: LyndsySimon: bar was instance method as well, yeah.
[16:55:32] pupsicle: Thanks though
[17:17:56] pupsicle: has joined #RubyOnRails
[18:03:56] pupsicle: Ping timeout: 260 seconds
[18:12:38] pupsicle: has joined #ruby
[20:58:02] pupsicle: benlieb: If you view the source, you can see that it is: https://github.com/ruby/ruby/blob/d0015e4ac6b812ea1681b1f5fa86fbab52a58960/array.c#L1210
[21:00:02] pupsicle: benlieb: the function fb_ary_entry is called by Array #[] as seen here: https://ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D
[21:00:31] pupsicle: rb_ary_entry*
[21:03:02] pupsicle: >> DateTime.strptime(Time.now.utc.to_i.to_s, '%s').strftime('%Y-%m-%d')
[21:03:42] pupsicle: >> require 'date'; DateTime.strptime(Time.now.utc.to_i.to_s, '%s').strftime('%Y-%m-%d')
[21:04:02] pupsicle: guymanndude: seems to work for me
[21:09:50] pupsicle: guymanndude: add a 'to_i' on the end of that Time.now
[21:53:29] pupsicle: Not sure mocking is the right way to approach testing your method.
[21:54:58] pupsicle: Just in a sense that it is a pure function, there is nothing to mock.
[22:06:50] pupsicle: has joined #RubyOnRails
[23:19:10] pupsicle: Read error: Connection reset by peer

2017-06-01

[15:11:21] pupsicle: Quit: pupsicle
[15:29:03] pupsicle: has joined #ruby
[15:29:03] pupsicle: has joined #RubyOnRails
[15:35:30] pupsicle: Remote host closed the connection
[19:38:39] pupsicle: has joined #ruby
[19:38:39] pupsicle: has joined #RubyOnRails
[21:29:34] pupsicle: Quit: pupsicle

2017-05-31

[12:19:33] pupsicle: has joined #ruby
[12:19:33] pupsicle: has joined #RubyOnRails

2017-05-30

[12:21:54] pupsicle: has joined #RubyOnRails
[12:21:55] pupsicle: has joined #ruby
[21:39:32] pupsicle: Remote host closed the connection

2017-05-26

[12:21:39] pupsicle: has joined #ruby
[12:21:39] pupsicle: has joined #RubyOnRails
[21:40:40] pupsicle: Quit: pupsicle

2017-05-25

[12:28:00] pupsicle: has joined #ruby
[12:28:00] pupsicle: has joined #RubyOnRails
[16:49:16] pupsicle: Ping timeout: 240 seconds
[21:41:38] pupsicle: Quit: pupsicle

2017-05-24

[21:33:22] pupsicle: Quit: pupsicle

2017-05-23

[12:44:00] pupsicle: has joined #ruby
[12:44:00] pupsicle: has joined #RubyOnRails
[18:56:35] pupsicle: Anyone have any experience with browserify-rails working in development but not in production? No errors, just silently removing any stuff that should be 'browserified' from compiled assets

2017-05-22

[13:39:10] pupsicle: noob_on_rails: have you taken a look at this ruby gem https://github.com/elastic/elasticsearch-rails
[13:43:51] pupsicle: noob_on_rails: It's using elasticsearch-transport under the covers which lists how to connect to another host in its docs: http://www.rubydoc.info/gems/elasticsearch-transport
[13:48:30] pupsicle: linetrace: I do ActiveRecord::Base.send(:sanitize_sql_array, query, [params])
[13:49:14] pupsicle: linetrace: https://apidock.com/rails/ActiveRecord/Base/sanitize_sql_array/class
[13:51:48] pupsicle: sorry linetrace, I meant ActiveRecord::Base.send(:sanitize_sql_array, [query, params...])
[20:59:00] pupsicle: Quit: pupsicle

2017-05-19

[13:01:15] pupsicle: Quit: pupsicle
[13:43:45] pupsicle: has joined #ruby
[13:43:45] pupsicle: has joined #RubyOnRails
[14:47:24] pupsicle: Remote host closed the connection
[14:48:51] pupsicle: has joined #ruby
[14:48:51] pupsicle: has joined #RubyOnRails
[17:00:41] pupsicle: Quit: pupsicle
[20:07:59] pupsicle: has joined #ruby
[20:07:59] pupsicle: has joined #RubyOnRails
[20:24:30] pupsicle: Quit: pupsicle
[20:41:48] pupsicle: has joined #ruby
[20:41:48] pupsicle: has joined #RubyOnRails

2017-05-18

[12:27:47] pupsicle: adaedra: hello
[16:23:36] pupsicle: Quit: pupsicle
[16:29:54] pupsicle: has joined #RubyOnRails
[16:29:55] pupsicle: has joined #ruby

2017-05-17

[13:00:55] pupsicle: Remote host closed the connection
[13:04:09] pupsicle: has joined #ruby
[13:04:09] pupsicle: has joined #RubyOnRails

2017-05-16

[12:21:02] pupsicle: Remote host closed the connection
[12:26:05] pupsicle: has joined #ruby
[12:26:05] pupsicle: has joined #RubyOnRails
[13:55:57] pupsicle: durango: browser cache?

2017-05-15

[13:40:30] pupsicle: Quit: pupsicle
[14:35:30] pupsicle: has joined #RubyOnRails
[14:35:31] pupsicle: has joined #ruby
[15:11:20] pupsicle: Quit: pupsicle
[15:18:29] pupsicle: Client Quit
[15:18:29] pupsicle: has joined #ruby
[15:18:29] pupsicle: has joined #RubyOnRails
[17:04:02] pupsicle: has joined #ruby
[17:04:02] pupsicle: has joined #RubyOnRails

2017-05-14

[21:43:08] pupsicle: Ping timeout: 268 seconds

2017-05-12

[16:33:48] pupsicle: has joined #ruby
[16:33:48] pupsicle: has joined #RubyOnRails
[20:19:17] pupsicle: Quit: pupsicle
[20:20:04] pupsicle: has joined #ruby
[20:20:04] pupsicle: has joined #RubyOnRails

2017-05-11

[12:29:23] pupsicle: has joined #ruby
[12:29:23] pupsicle: has joined #RubyOnRails
[13:49:51] pupsicle: Remote host closed the connection
[14:54:58] pupsicle: has joined #ruby
[14:54:58] pupsicle: has joined #RubyOnRails
[15:12:09] pupsicle: Remote host closed the connection
[19:01:34] pupsicle: has joined #RubyOnRails
[19:01:35] pupsicle: has joined #ruby
[21:33:50] pupsicle: Quit: pupsicle

2017-05-10

[17:31:05] pupsicle: Remote host closed the connection
[18:13:00] pupsicle: has joined #ruby
[18:13:00] pupsicle: has joined #RubyOnRails
[21:28:14] pupsicle: Quit: pupsicle

2017-05-09

[18:55:04] pupsicle: has joined #ruby
[18:55:04] pupsicle: has joined #RubyOnRails