hightower3

Activity Graph

Page 1 of 2 | Next »

2018-11-13

[13:26:26] hightower3: Remote host closed the connection

2018-11-12

[19:40:07] hightower3: has joined #RubyOnRails

2018-11-11

[11:09:37] hightower3: has joined #RubyOnRails
[19:43:51] hightower3: Ping timeout: 268 seconds

2018-11-06

[09:05:00] hightower3: Ping timeout: 252 seconds

2018-11-05

[21:53:20] hightower3: has joined #ruby
[21:54:13] hightower3: Hey, how can I conveniently change hash keys and values while iterating over it? (Or rather, how can I conveniently do a deep clone and then modify one after iterating another)?
[21:54:41] hightower3: I would need to transform both keys and values in some places, and end up with the modified hash or its copy in the end
[22:14:01] hightower3: wnd: I used the suggestion from https://stackoverflow.com/questions/812541/how-to-change-hash-values#812551
[22:14:08] hightower3: with hash.inject
[23:35:30] hightower3: havenwood, ah, good one, thanks!

2018-11-01

[09:34:45] hightower3: has joined #RubyOnRails
[09:34:56] hightower3: has joined #ruby
[09:35:30] hightower3: Hey, I am looking at rspec tests where they invoke e.g. "post" to make a HTTP POST request, and then the response object is automatically available in the 'response' variable or method.
[09:35:58] hightower3: How exactly is this 'response' defined and set? I would need to write a helper method which does the same thing essentially
[10:02:23] hightower3: Hey, I am looking at rspec tests where they invoke e.g. "post" to make a HTTP POST request, and then the response object is automatically available in the 'response' variable or method. How exactly is this 'response' defined and set? I would need to write a helper method which does the same thing essentially
[10:20:14] hightower3: but you have header files for it, right?
[10:30:51] hightower3: NL3limin4t0r, of course it could
[10:32:22] hightower3: tbuehlmann, hm, yeah I was trying to assign @response with no effect. Must be I have been doing it on the wrong class
[10:32:41] hightower3: (for a quick test I just placed @response = in the test itself, but that didn't have effect)
[10:43:12] hightower3: Oh ok great, if it's an accessor I'll be able to assign it. Thanks!
[21:12:11] hightower3: Ping timeout: 260 seconds

2018-10-31

[00:20:24] hightower3: has joined #ruby
[00:21:13] hightower3: Hm, when I do 'string'.sub /x/, 'y', this of course works. But when I call this from a method_missing() handler, sub() doesn't seem to work and instead prints: can't convert String to Hash (String#to_hash gives String) (TypeError).
[00:35:16] hightower3: Here it is: https://pastebin.com/qBwSHnU0
[00:35:38] hightower3: not sure why gsub inside method_missing doesn't work...
[00:37:15] hightower3: It's not... I just made a quick example that would work if it wasn't executing in method_missing handler
[00:37:27] hightower3: but since it is executing there, it throws an error instead of working
[00:37:40] hightower3: and I don't understand why
[00:42:36] hightower3: name gets filled in with the name of method that is missing
[00:52:27] hightower3: yes but we are beating around the bush... the example fails even if no sub() is used. I can just reference the contents of the hash (the args) and it'll fail
[00:53:48] hightower3: havenwood, my pastebin link above contains an example of what doesn't work
[01:02:43] hightower3: havenwood, but you got it actually, it works within a class
[01:09:01] hightower3: havenwood, I've got another issue... if I do: puts "#{'TEST'.to_s.gsub /(T)/, 'x\1'}" , that of course works, and prints xTESxT. But if I want to print "\" instead of "x" and do puts "#{'TEST'.to_s.gsub /(T)/, '\\\1'}", the \1 somehow gets escaped unintentionally
[01:09:17] hightower3: yeah, thanks
[01:13:56] hightower3: ah nice one, thanks!
[08:58:24] hightower3: Ping timeout: 250 seconds
[17:53:52] hightower3: has joined #RubyOnRails
[17:54:24] hightower3: Hey, I want get(), post() etc. to be available in all rspec tests and not just ones of type: request. How do I do that?
[18:00:00] hightower3: Got it, I needed line "config.include RSpec::Rails::RequestExampleGroup" inside RSpec.confgure()
[18:00:55] hightower3: dachi, I want to do it because all my requests need it, and for some which don't (but which aren't that much different) it makes no sense to painstakingly control where do I add type: request and where not
[18:20:16] hightower3: broppk, you're asking the question in front of a biased audience :) but sure, start with that video tutorial on rubyonrails.org and the couple intro documents found there
[21:11:27] hightower3: Ping timeout: 240 seconds

2018-10-30

[01:22:36] hightower3: has joined #ruby
[01:23:01] hightower3: Hey, is there a way to output a backspace into a string and effectively remove the last char?
[01:23:32] hightower3: I am not looking for #chop or so... I'm looking for something like "string #{exp}", where 'exp' would evaluate to deleting the char before it
[01:23:58] hightower3: baweaver, yeah I'm doing some templates and expansion and could use it
[01:24:10] hightower3: although I just came to a realization how to do it in a different way
[01:25:10] hightower3: I tried it but it didn't work
[01:25:56] hightower3: baweaver, so that when I have a string like "content \n#{exp || "\b"}, I can either output content of exp or delete the newline
[01:26:41] hightower3: havenwood, yeah I mean within a string, not on screen
[09:05:14] hightower3: Ping timeout: 272 seconds
[12:53:33] hightower3: has joined #RubyOnRails
[12:54:04] hightower3: Hey, how do I access configuration stored in Rails.application.configure...? Do I do it via Rails.configuration.key_name ?
[13:10:11] hightower3: great, thanks
[19:30:35] hightower3: Hey, using rspec, how do I define some global 'before' and 'after'?
[19:30:52] hightower3: I don't want to put these in every file in the 'describe' block
[19:31:51] hightower3: oh in RSpec.configure they work
[20:01:46] hightower3: I'd like to add a new method to RSpec's DSL so that it becomes available to the tests in "it" blocks. Any hints how to do that?

2018-06-17

[15:43:32] hightower3: has joined #ruby
[20:08:39] hightower3: Ping timeout: 256 seconds

2018-06-03

[22:17:38] hightower3: has joined #ruby
[22:17:54] hightower3: Hey, I have code with used SAFE=3. What do I replace it with now? Or just remove that line?
[23:23:11] hightower3: has left #ruby: ("Leaving")

2018-01-01

[02:21:04] hightower3: Ping timeout: 268 seconds
[02:21:46] hightower3: has joined #ruby
[02:37:53] hightower3: Ping timeout: 248 seconds
[02:38:31] hightower3: has joined #ruby
[04:39:35] hightower3: Ping timeout: 256 seconds

2017-12-31

[02:20:57] hightower3: Ping timeout: 240 seconds
[02:22:08] hightower3: has joined #ruby
[04:17:14] hightower3: Ping timeout: 252 seconds
[13:31:52] hightower3: has joined #ruby

2017-12-30

[19:07:03] hightower3: has joined #ruby

2017-08-16

[07:42:57] hightower3: Ping timeout: 248 seconds

2017-08-14

[10:41:25] hightower3: has joined #ruby
[23:51:25] hightower3: *.net *.split
[23:55:16] hightower3: has joined #ruby
[23:57:28] hightower3: *.net *.split
[23:59:43] hightower3: has joined #ruby

2017-08-12

[02:06:33] hightower3: Ping timeout: 240 seconds

2017-08-11

[02:10:16] hightower3: Ping timeout: 255 seconds
[19:57:14] hightower3: has joined #ruby

2017-08-10

[02:08:15] hightower3: has joined #ruby
[02:51:30] hightower3: Ping timeout: 240 seconds
[09:28:46] hightower3: has joined #ruby

2017-06-14

[00:43:52] hightower3: Ping timeout: 255 seconds
[09:23:43] hightower3: has joined #ruby
[09:56:42] hightower3: Ping timeout: 260 seconds

2017-06-12

[23:27:07] hightower3: has joined #ruby

2017-04-27

[11:30:54] hightower3: has joined #ruby
[11:31:24] hightower3: Hey, I am in the IRB shell and I am trying to find the variable containing the IRB shell history. Any pointers as to where is it?
[11:33:21] hightower3: I see "HISTORY", but it contains the filename in which history will be saved, and not the actual content/lines
[11:39:38] hightower3: gr33n7007h, yes, yes, I enabled it
[11:39:49] hightower3: kke_, awesome, that's it, thanks. I kept looking within the IRB namespace
[11:42:53] hightower3: kke_, it's fine, I just wanted to check the size of all strings in it
[11:47:56] hightower3: Remote host closed the connection

2016-06-14

[00:42:51] hightower3: Ping timeout: 258 seconds

2016-06-13

[21:52:27] hightower3: has joined #ruby
[22:08:34] hightower3: Ping timeout: 240 seconds
[23:29:45] hightower3: has joined #ruby

2016-06-09

[07:24:49] hightower3: Ping timeout: 258 seconds

2016-06-08

[07:21:22] hightower3: has joined #ruby
[09:23:09] hightower3: Ping timeout: 276 seconds
[09:28:51] hightower3: has joined #ruby

2016-06-03

[21:22:39] hightower3: Remote host closed the connection

2016-06-01

[00:12:45] hightower3: has joined #RubyOnRails
[00:12:45] hightower3: has joined #ruby

2016-05-31

[02:57:28] hightower3: Ping timeout: 264 seconds
[06:35:08] hightower3: has joined #ruby
[07:24:39] hightower3: Ping timeout: 260 seconds

2016-05-30

[00:33:04] hightower3: Ping timeout: 240 seconds
[08:01:23] hightower3: has joined #ruby

2016-05-29

[07:24:28] hightower3: Ping timeout: 264 seconds
[07:24:58] hightower3: has joined #ruby

2016-05-28

[10:11:14] hightower3: has joined #ruby
[20:19:34] hightower3: dessm, .class results in object of type Class, not Integer
[20:22:38] hightower3: dessm, '123'.to_i.is_a? Integer, not to_i.class.is_a?
[20:30:40] hightower3: dessm, but there is no point in calling .to_i and then asking whether is_a? Integer. String.to_i will always give you integer, which will be 0 in worst case
[20:31:01] hightower3: So in any case to_i will give you int

2016-05-27

[15:27:13] hightower3: has joined #ruby
[15:34:28] hightower3: Ping timeout: 252 seconds

2016-05-26

[02:23:12] hightower3: Ping timeout: 260 seconds
[06:17:40] hightower3: has joined #ruby
[07:24:10] hightower3: Ping timeout: 258 seconds

2016-05-25

[08:49:57] hightower3: has joined #ruby
[08:50:08] hightower3: Hey what is a double-quoted variant of %w() ?
[08:50:30] hightower3: found it, %W
[13:29:33] hightower3: Ping timeout: 244 seconds
[17:18:09] hightower3: has joined #ruby
[23:17:42] hightower3: havenwood, impressive :)

2016-05-24

[07:21:11] hightower3: has joined #ruby
[08:02:24] hightower3: Hey how do I get the IP of the remote end from a TCP socket?
[14:42:38] hightower3: *.net *.split
[15:40:22] hightower3: has joined #ruby
[15:40:23] hightower3: Quit: Leaving

2016-05-23

[01:02:52] hightower3: Ping timeout: 264 seconds
[01:17:34] hightower3: has joined #ruby
[01:23:44] hightower3: Ping timeout: 276 seconds
[07:24:24] hightower3: has joined #ruby
[10:27:38] hightower3: Ping timeout: 244 seconds
[20:50:19] hightower3: has joined #ruby
[22:48:01] hightower3: Ping timeout: 244 seconds

2016-05-22

[22:58:30] hightower3: has joined #ruby

2016-05-19

[08:09:19] hightower3: has joined #ruby
[09:18:32] hightower3: Ping timeout: 260 seconds
[18:38:05] hightower3: has joined #ruby
[23:01:57] hightower3: Ping timeout: 276 seconds

2016-05-18

[00:06:09] hightower3: Ping timeout: 276 seconds
[06:31:24] hightower3: has joined #ruby
[07:07:05] hightower3: Ping timeout: 244 seconds
[16:54:21] hightower3: has joined #ruby
[22:57:41] hightower3: Read error: Connection reset by peer
[22:57:49] hightower3: has joined #ruby
[23:24:18] hightower3: Ping timeout: 276 seconds

2016-05-17

[22:58:00] hightower3: has joined #ruby
[23:08:48] hightower3: Hey, how do I create a here document that is effectively surrounded by ' and not " ?
[23:10:05] hightower3: (i.e. no interpolation in it)
[23:13:07] hightower3: Oh ok, didn't think it was the same as in Perl, thanks!

2016-05-16

[08:01:16] hightower3: Hey, what's the common way in Ruby to hash directory names like "abcdef" into "a/ab/abc/abcdef" ?
[08:09:21] hightower3: toretore, right, right, I mean is there a lib or something dealing with that and providing extra options
[08:09:31] hightower3: (the functionality itself, in the basic sense, is trivial of course)
[09:23:09] hightower3: Ping timeout: 246 seconds
[16:43:04] hightower3: has joined #ruby
[23:01:05] hightower3: Ping timeout: 250 seconds

2016-05-15

[22:57:39] hightower3: has joined #ruby

2016-05-04

[17:02:15] hightower3: Remote host closed the connection

2016-04-15

[03:32:35] hightower3: *.net *.split
[03:40:14] hightower3: has joined #RubyOnRails
[03:40:14] hightower3: has joined #ruby

2016-04-05

[16:37:21] hightower3: has joined #RubyOnRails
[16:37:23] hightower3: has joined #ruby
[17:39:42] hightower3: Ping timeout: 260 seconds
[20:07:11] hightower3: has joined #ruby
[20:07:11] hightower3: has joined #RubyOnRails
[22:26:40] hightower3: Ping timeout: 252 seconds

2016-04-04

[00:24:01] hightower3: Ping timeout: 252 seconds
[14:25:27] hightower3: has joined #ruby
[14:25:27] hightower3: has joined #RubyOnRails
[16:40:49] hightower3: Ping timeout: 252 seconds

2016-04-03

[16:36:59] hightower3: has joined #RubyOnRails
[16:37:01] hightower3: has joined #ruby

2016-04-02

[00:32:04] hightower3: Ping timeout: 240 seconds
[00:45:55] hightower3: has joined #ruby
[00:45:55] hightower3: has joined #RubyOnRails
[16:40:34] hightower3: Ping timeout: 240 seconds

2016-04-01

[16:36:58] hightower3: has joined #ruby
[16:36:58] hightower3: has joined #RubyOnRails
[18:19:40] hightower3: Ping timeout: 264 seconds
[18:32:49] hightower3: has joined #ruby
[18:32:49] hightower3: has joined #RubyOnRails

2016-03-31

[12:47:43] hightower3: Ping timeout: 250 seconds
[12:51:41] hightower3: has joined #RubyOnRails
[12:51:42] hightower3: has joined #ruby
[13:10:06] hightower3: Ping timeout: 244 seconds
[13:17:51] hightower3: has joined #RubyOnRails
[13:17:52] hightower3: has joined #ruby
[13:27:38] hightower3: Ping timeout: 244 seconds
[16:03:39] hightower3: has joined #ruby
[16:03:39] hightower3: has joined #RubyOnRails
[16:37:23] hightower3: Ping timeout: 250 seconds

2016-03-30

[16:33:47] hightower3: has joined #ruby
[16:33:47] hightower3: has joined #RubyOnRails

2016-03-28

[08:41:44] hightower3: has joined #RubyOnRails
[08:41:45] hightower3: has joined #ruby
[16:37:09] hightower3: Ping timeout: 276 seconds

2016-03-27

[21:52:26] hightower3: has joined #ruby
[21:52:26] hightower3: has joined #RubyOnRails
[23:46:24] hightower3: Ping timeout: 276 seconds

2016-03-26

[01:20:16] hightower3: Ping timeout: 264 seconds
[07:19:31] hightower3: has joined #ruby
[07:19:31] hightower3: has joined #RubyOnRails
[16:36:00] hightower3: Ping timeout: 244 seconds

2016-03-25

[16:32:30] hightower3: has joined #ruby
[16:32:30] hightower3: has joined #RubyOnRails

2016-03-24

[00:41:07] hightower3: Ping timeout: 248 seconds
[06:54:02] hightower3: has joined #ruby
[10:04:47] hightower3: has joined #RubyOnRails
[10:05:16] hightower3: Hey, what's some good OAuth2.0 server in Ruby?
[10:06:24] hightower3: Hey, what's some good OAuth2.0 server in Ruby?
[10:08:43] hightower3: workmad3, great, thanks!
[16:36:02] hightower3: Ping timeout: 260 seconds

2016-03-23

[16:32:06] hightower3: has joined #ruby

2016-03-21

[00:46:39] hightower3: Ping timeout: 276 seconds
[07:18:50] hightower3: has joined #ruby
[15:21:47] hightower3: Ping timeout: 244 seconds
[19:16:17] hightower3: has joined #ruby
[20:22:59] hightower3: Ping timeout: 248 seconds

2016-03-20

[16:35:54] hightower3: Ping timeout: 276 seconds
[16:48:49] hightower3: has joined #ruby
[22:43:09] hightower3: Ping timeout: 276 seconds
[22:50:51] hightower3: has joined #ruby

2016-03-19

[07:40:07] hightower3: Ping timeout: 252 seconds
[07:45:25] hightower3: has joined #ruby
[08:44:02] hightower3: Ping timeout: 260 seconds
[09:35:46] hightower3: has joined #ruby
[10:30:04] hightower3: Ping timeout: 252 seconds
[10:42:38] hightower3: has joined #RubyOnRails
[10:43:09] hightower3: In a form with collection_select, how do I specify the default value that should be selected if no choice exists yet?
[11:15:55] hightower3: ropeney, thanks. (Right, I figured in the meantime that was the solution; I just thought there could be a default: or something)
[12:13:33] hightower3: Ping timeout: 240 seconds
[12:25:02] hightower3: has joined #ruby
[12:25:02] hightower3: has joined #RubyOnRails
[12:34:21] hightower3: Ping timeout: 276 seconds
[13:34:32] hightower3: has joined #ruby
[13:34:32] hightower3: has joined #RubyOnRails
[13:41:09] hightower3: Ping timeout: 268 seconds
[20:51:54] hightower3: has joined #ruby