hightower2

Activity Graph

Page 1 of 2 | Next »

2018-11-08

[01:18:22] hightower2: martin1_1, if you just want to get anything working as a proof of concept, then A.first.bs.first.cs.first.some_attribute
[01:21:25] hightower2: Do you want to find particular Bs and Cs, or you want to start from A and get all Bs and all Cs and some_attribute() on them?
[19:43:30] hightower2: Ping timeout: 268 seconds

2018-11-07

[22:02:04] hightower2: has joined #RubyOnRails
[22:05:19] hightower2: Hey, how do I return an ActiveRecord::Relation that points to all results in a table?
[22:48:37] hightower2: hehe figured it myself through a couple tests too, thanks for the confirmation :)

2018-10-20

[23:23:03] hightower2: Ping timeout: 252 seconds

2018-10-19

[02:05:15] hightower2: Ping timeout: 268 seconds
[16:57:40] hightower2: has joined #ruby
[16:58:27] hightower2: Hey, regarding formatting with ( "This is %s" % ["a string"] ), is there a version of it which does named replacements, instead of just positional?
[17:01:26] hightower2: yeah I'll use that, thanks
[17:15:07] hightower2: Is there a built-in class or methods for converting strings to camel case and back?
[17:15:54] hightower2: oh yes, camelize and underscore on String. nice
[17:16:18] hightower2: (in Rails, but OK)
[17:23:47] hightower2: yeah I need more variations, and also various combinations of changing back and forth
[17:24:00] hightower2: so I just added active_support/core_ext/string/inflections
[23:22:36] hightower2: Ping timeout: 252 seconds
[23:36:00] hightower2: has joined #ruby

2018-10-18

[10:23:07] hightower2: has joined #RubyOnRails
[13:47:59] hightower2: Hey, I am trying to test my extension with rspec. I have a rake task which builds a dummy app on which tests should run. But I don't understand how to tell rspec that I want to run my tests in the context of this dummy app. Any hints?
[13:53:35] hightower2: ooh yeah got it, thanks
[13:53:49] hightower2: I just needed to load the environment.rb from the dummy app
[13:55:11] hightower2: oh my... spent better part of 2 days on this one...
[21:08:00] hightower2: Hey, my rails app is using Devise for authentication, but I have a case where I have a username and password and need to manually call some authentication method
[21:08:09] hightower2: Anyone knows where/what in Devise I need to call for that?
[22:44:57] hightower2: I am using Rails app's secret_key_base string, and in the place where I looked into it, the code takes chars 0..31 from it. Is this needed, or I can just use the whole content of secret_key_base regardless of size?
[22:45:04] hightower2: (the function in which I am using it is not length-limited)
[22:47:37] hightower2: Right, I am using it to encrypt a JWT token which I send to users who log in
[22:49:26] hightower2: Inside, yes, (regarding my Devise question a bit above), by "manually" I mean I need some low-level function that just takes email and password and returns true/false if password matches, without any other magic
[22:50:03] hightower2: quazimodo, right, I am using it just for auth, not for sessions
[22:50:27] hightower2: also right on #2, I use all of it currently
[22:50:35] hightower2: well, you are right, it doesn't necessarily have to be encrypted, signed would be enough, but well...
[22:51:28] hightower2: right, good point. I'll think about it
[22:53:23] hightower2: quazimodo, I am writing a graphql endpoint for an existing rails app
[22:54:31] hightower2: regarding why exactly JWT, no particular reason, I just assumed it was sort-of standard to use it
[22:55:45] hightower2: primary use case will be a javascript-based frontent app which will be making ajax calls to it
[22:57:03] hightower2: I was assuming it would be returned in JSON content from graphql, and not as a HTTP header
[22:58:20] hightower2: indeed, agreed
[23:01:30] hightower2: Right, sure. Good points. Actually, I thought that I could use JWT to encrypt or sign the user's username in it, and then just read it on the server on incoming requests, and thus avoid the need to use server-side sessions at all. But I just realized this won't work, since there *is* data that needs to be put into user session, and I don't intend to use the cookie for data
[23:05:56] hightower2: sure, sure. Yeah, I can without a problem return the token in a header and data of the user whose login succeeded via JSON response
[23:09:49] hightower2: ooh, valid_password? is what I was looking for, thanks!
[23:09:54] hightower2: (I was trying with .authenticate!)
[23:10:23] hightower2: yeah, not happy myself either but the app already uses it
[23:22:31] hightower2: Ping timeout: 250 seconds
[23:35:57] hightower2: has joined #RubyOnRails

2018-06-20

[12:33:26] hightower2: has joined #ruby
[12:56:02] hightower2: Ping timeout: 245 seconds

2018-06-19

[14:50:29] hightower2: has joined #ruby
[15:16:03] hightower2: Ping timeout: 256 seconds
[16:33:50] hightower2: has joined #ruby
[20:52:58] hightower2: Eiam, some things might not be atomic in jruby like they are in ruby
[20:58:30] hightower2: Ping timeout: 265 seconds

2018-02-03

[09:40:17] hightower2: has joined #ruby
[09:40:17] hightower2: Changing host
[09:40:17] hightower2: has joined #ruby
[11:42:40] hightower2: Remote host closed the connection

2018-01-01

[11:55:41] hightower2: has joined #ruby
[12:08:34] hightower2: has left #ruby: ("Leaving")

2017-12-27

[02:20:41] hightower2: Ping timeout: 256 seconds
[02:21:46] hightower2: has joined #ruby
[03:20:45] hightower2: Ping timeout: 264 seconds
[10:11:53] hightower2: has joined #ruby
[23:00:22] hightower2: Ping timeout: 268 seconds

2017-12-26

[10:40:39] hightower2: has joined #ruby
[13:33:35] hightower2: Ping timeout: 240 seconds
[14:12:23] hightower2: has joined #ruby
[14:19:11] hightower2: Ping timeout: 248 seconds
[21:13:36] hightower2: has joined #ruby

2017-12-06

[12:48:26] hightower2: has joined #ruby
[14:17:26] hightower2: Ping timeout: 260 seconds
[14:18:15] hightower2: has joined #ruby
[14:37:35] hightower2: Ping timeout: 240 seconds

2017-12-01

[12:46:10] hightower2: has joined #ruby
[15:22:30] hightower2: Ping timeout: 268 seconds

2017-11-27

[12:49:02] hightower2: has joined #ruby
[16:12:08] hightower2: Ping timeout: 276 seconds

2017-11-24

[14:11:42] hightower2: has joined #ruby
[17:09:21] hightower2: Ping timeout: 240 seconds

2017-11-22

[07:41:00] hightower2: has joined #ruby
[12:39:08] hightower2: Ping timeout: 240 seconds

2017-11-20

[16:21:35] hightower2: Ping timeout: 255 seconds

2017-11-18

[16:19:58] hightower2: has joined #ruby

2017-11-16

[08:43:59] hightower2: has joined #ruby
[13:15:21] hightower2: Ping timeout: 240 seconds
[14:37:33] hightower2: has joined #ruby
[15:20:35] hightower2: Ping timeout: 240 seconds

2017-11-15

[11:14:25] hightower2: has joined #ruby
[16:20:49] hightower2: Ping timeout: 248 seconds

2017-11-13

[11:44:25] hightower2: has joined #ruby
[15:04:01] hightower2: Ping timeout: 248 seconds

2017-11-10

[13:24:49] hightower2: has joined #ruby
[15:17:20] hightower2: Ping timeout: 248 seconds

2017-11-09

[12:33:14] hightower2: has joined #ruby
[12:43:41] hightower2: Ping timeout: 240 seconds
[12:51:32] hightower2: has joined #ruby
[16:22:48] hightower2: Ping timeout: 240 seconds

2017-11-08

[13:08:17] hightower2: has joined #ruby
[15:06:41] hightower2: Ping timeout: 240 seconds

2017-08-16

[08:24:15] hightower2: has joined #ruby
[13:24:30] hightower2: Ping timeout: 240 seconds

2017-08-15

[01:56:57] hightower2: Remote host closed the connection

2017-08-14

[21:10:25] hightower2: Ping timeout: 248 seconds
[23:29:18] hightower2: has joined #ruby
[23:34:37] hightower2: Ping timeout: 260 seconds
[23:49:10] hightower2: has joined #ruby

2017-08-13

[23:04:39] hightower2: has joined #ruby

2017-08-12

[02:03:03] hightower2: has joined #ruby
[03:23:53] hightower2: Ping timeout: 246 seconds

2017-08-11

[02:06:40] hightower2: has joined #ruby
[02:26:09] hightower2: Ping timeout: 248 seconds
[09:49:30] hightower2: has joined #ruby
[19:57:48] hightower2: Ping timeout: 240 seconds

2017-08-10

[01:18:35] hightower2: Ping timeout: 240 seconds
[01:22:40] hightower2: has joined #ruby
[02:12:02] hightower2: Ping timeout: 260 seconds

2017-08-09

[14:33:37] hightower2: has joined #ruby
[14:34:11] hightower2: Hey, what's some good Ruby library for parsing a directory tree and finding files? (Some Find library/module, but not the one from standard lib)

2017-08-01

[11:17:50] hightower2: has joined #ruby
[14:55:40] hightower2: Ping timeout: 276 seconds

2017-07-20

[06:11:14] hightower2: has joined #ruby
[09:44:59] hightower2: Ping timeout: 240 seconds
[10:39:03] hightower2: has joined #ruby
[13:48:31] hightower2: Ping timeout: 246 seconds

2017-07-19

[05:59:05] hightower2: has joined #ruby
[09:33:00] hightower2: Ping timeout: 240 seconds
[10:29:24] hightower2: has joined #ruby
[14:16:33] hightower2: Ping timeout: 248 seconds

2017-07-18

[05:14:23] hightower2: has joined #ruby
[14:04:01] hightower2: Ping timeout: 240 seconds

2017-07-15

[02:35:53] hightower2: Ping timeout: 260 seconds
[02:50:37] hightower2: has joined #ruby
[08:16:01] hightower2: Ping timeout: 248 seconds

2017-07-14

[08:30:25] hightower2: has joined #ruby
[11:30:04] hightower2: Ping timeout: 260 seconds
[11:36:40] hightower2: has joined #ruby

2017-07-13

[08:50:05] hightower2: has joined #ruby
[12:01:05] hightower2: Ping timeout: 248 seconds
[13:03:47] hightower2: has joined #ruby
[13:12:27] hightower2: Ping timeout: 240 seconds

2017-07-11

[08:38:05] hightower2: has joined #ruby
[10:50:50] hightower2: Ping timeout: 255 seconds

2017-07-07

[08:36:52] hightower2: has joined #ruby
[12:35:05] hightower2: Ping timeout: 240 seconds

2017-07-06

[08:39:02] hightower2: has joined #ruby
[12:16:53] hightower2: Ping timeout: 258 seconds

2017-07-05

[11:31:52] hightower2: has joined #ruby
[15:57:40] hightower2: Ping timeout: 276 seconds

2017-07-04

[11:34:30] hightower2: has joined #ruby
[15:05:05] hightower2: Ping timeout: 255 seconds

2017-07-03

[11:57:14] hightower2: has joined #ruby
[14:49:16] hightower2: Ping timeout: 276 seconds

2017-06-29

[15:21:17] hightower2: has joined #ruby
[17:39:51] hightower2: Ping timeout: 240 seconds
[19:24:07] hightower2: has joined #ruby
[20:47:27] hightower2: Ping timeout: 240 seconds

2017-06-21

[00:56:57] hightower2: Ping timeout: 255 seconds
[05:59:41] hightower2: has joined #ruby
[06:39:05] hightower2: Ping timeout: 240 seconds
[14:43:21] hightower2: has joined #ruby
[17:18:52] hightower2: Ping timeout: 260 seconds

2017-06-20

[00:17:05] hightower2: *.net *.split
[10:23:54] hightower2: has joined #ruby

2017-06-19

[00:38:37] hightower2: yes, it should
[04:20:21] hightower2: Ping timeout: 258 seconds
[06:44:08] hightower2: has joined #ruby
[07:07:08] hightower2: Ping timeout: 246 seconds
[15:04:42] hightower2: has joined #ruby
[21:06:26] hightower2: Ping timeout: 246 seconds
[23:32:26] hightower2: has joined #ruby

2017-06-18

[00:51:06] hightower2: Ping timeout: 268 seconds
[00:53:36] hightower2: has joined #ruby
[02:43:20] hightower2: Ping timeout: 268 seconds
[07:15:36] hightower2: has joined #ruby
[23:45:35] hightower2: geggam, of course it makes new lines. The \n is just the format used for printing out the value to the screen. And keep in mind that if you want to use this in HTML context, you'll need \n<br>, not just \n
[23:49:18] hightower2: geggam, your "map.with_index" makes no sense

2017-06-17

[00:52:27] hightower2: Ping timeout: 255 seconds
[08:16:46] hightower2: has joined #ruby
[08:31:05] hightower2: Ping timeout: 240 seconds
[11:21:25] hightower2: has joined #ruby
[18:22:44] hightower2: Ping timeout: 260 seconds
[19:59:48] hightower2: has joined #ruby

2017-06-16

[06:40:35] hightower2: has joined #ruby
[07:47:08] hightower2: Do you have a quality question for us, x86 sir.
[07:48:52] hightower2: always :) it's a language with cleanest/simplest syntax
[13:25:52] hightower2: shynoob, knowing Ruby will help you a lot

2017-06-15

[19:07:18] hightower2: has joined #ruby
[20:08:57] hightower2: Ping timeout: 240 seconds
[20:28:52] hightower2: has joined #ruby
[20:37:45] hightower2: Ping timeout: 255 seconds

2017-06-12

[12:02:09] hightower2: has joined #ruby
[12:02:53] hightower2: Hey, I would need to run a method and get a report of all methods that were called during its execution. Ideas on what to use for that?
[12:04:35] hightower2: Nice one, thanks
[12:17:58] hightower2: community has really gone wild with those module names...
[15:32:30] hightower2: Ping timeout: 240 seconds

2016-07-13

[16:46:08] hightower2: has joined #RubyOnRails
[16:46:08] hightower2: has joined #ruby

2016-07-09

[06:01:34] hightower2: Ping timeout: 240 seconds

2016-07-02

[20:01:52] hightower2: Read error: Connection reset by peer
[20:03:05] hightower2: has joined #RubyOnRails
[20:03:07] hightower2: has joined #ruby

2016-07-01

[19:42:53] hightower2: Ping timeout: 252 seconds
[19:55:11] hightower2: has joined #RubyOnRails
[19:55:13] hightower2: has joined #ruby

2016-06-30

[20:01:16] hightower2: has joined #RubyOnRails
[20:01:16] hightower2: has joined #ruby

2016-06-25

[11:02:10] hightower2: Remote host closed the connection

2016-06-17

[08:38:09] hightower2: has joined #RubyOnRails
[08:38:11] hightower2: has joined #ruby

2016-06-15

[13:11:41] hightower2: Ping timeout: 258 seconds

2016-06-12

[00:27:01] hightower2: Remote host closed the connection
[00:31:29] hightower2: has joined #ruby
[01:20:31] hightower2: Ping timeout: 244 seconds
[08:35:53] hightower2: has joined #ruby
[17:16:52] hightower2: Ping timeout: 244 seconds
[21:32:52] hightower2: has joined #RubyOnRails
[21:32:52] hightower2: has joined #ruby

2016-06-11

[22:01:14] hightower2: has joined #ruby

2016-06-10

[00:34:12] hightower2: Ping timeout: 276 seconds

2016-06-09

[07:21:31] hightower2: has joined #ruby

2016-06-08

[07:24:39] hightower2: Ping timeout: 246 seconds

2016-06-07

[20:58:25] hightower2: has joined #ruby

2016-06-05

[15:24:26] hightower2: has joined #RubyOnRails
[15:24:26] hightower2: has joined #ruby
[16:07:03] hightower2: Remote host closed the connection

2016-06-02

[07:25:03] hightower2: Ping timeout: 276 seconds

2016-06-01

[07:20:45] hightower2: Read error: Connection reset by peer
[07:20:58] hightower2: has joined #ruby

2016-05-31

[07:20:47] hightower2: has joined #ruby

2016-05-29

[18:59:37] hightower2: Remote host closed the connection

2016-05-27

[07:24:09] hightower2: has joined #ruby
[08:19:04] hightower2: Ping timeout: 260 seconds
[12:30:16] hightower2: has joined #RubyOnRails
[12:30:16] hightower2: has joined #ruby
[12:30:38] hightower2: Remote host closed the connection
[13:01:05] hightower2: has joined #RubyOnRails
[13:01:05] hightower2: has joined #ruby
[13:40:35] hightower2: Ping timeout: 260 seconds
[13:47:04] hightower2: has joined #RubyOnRails
[13:47:04] hightower2: has joined #ruby

2016-05-26

[07:20:29] hightower2: has joined #ruby
[07:41:25] hightower2: Ping timeout: 258 seconds
[07:53:20] hightower2: has joined #ruby
[09:20:52] hightower2: Ping timeout: 260 seconds
[13:47:26] hightower2: has joined #ruby
[22:35:28] hightower2: Ping timeout: 244 seconds

2016-05-22

[21:11:25] hightower2: has joined #ruby
[23:02:30] hightower2: Ping timeout: 276 seconds