hightower3

Activity Graph

Page 1 of 2 | Next »

2019-04-21

[01:33:36] hightower3: Ping timeout: 244 seconds
[03:22:24] hightower3: has joined #ruby
[03:30:36] hightower3: Ping timeout: 246 seconds
[03:37:41] hightower3: has joined #ruby
[05:01:57] hightower3: Ping timeout: 255 seconds
[08:07:36] hightower3: has joined #ruby
[10:40:36] hightower3: has joined #ruby
[10:40:36] hightower3: Changing host
[10:40:37] hightower3: has joined #RubyOnRails
[16:04:42] hightower3: Ping timeout: 244 seconds
[17:34:08] hightower3: has joined #ruby
[18:15:28] hightower3: Read error: Connection reset by peer

2019-04-20

[18:15:20] hightower3: has joined #ruby
[19:22:50] hightower3: has joined #RubyOnRails
[19:22:50] hightower3: has joined #ruby
[19:22:50] hightower3: Changing host
[21:21:30] hightower3: Read error: Connection timed out
[21:22:31] hightower3: has joined #ruby

2019-04-09

[06:13:11] hightower3: has joined #ruby
[06:16:17] hightower3: has joined #ruby
[06:16:17] hightower3: Changing host
[06:16:18] hightower3: has joined #RubyOnRails
[13:08:43] hightower3: Ping timeout: 246 seconds
[17:20:24] hightower3: has joined #ruby
[19:44:48] hightower3: Ping timeout: 246 seconds

2019-04-08

[03:45:40] hightower3: Ping timeout: 246 seconds
[18:14:45] hightower3: has joined #ruby
[19:41:16] hightower3: has joined #RubyOnRails
[19:41:16] hightower3: has joined #ruby
[19:41:16] hightower3: Changing host
[22:30:54] hightower3: Ping timeout: 255 seconds

2019-04-07

[11:43:00] hightower3: has joined #ruby
[21:32:17] hightower3: Changing host
[21:32:18] hightower3: has joined #ruby
[21:32:19] hightower3: has joined #RubyOnRails
[22:20:54] hightower3: Ping timeout: 264 seconds
[22:33:17] hightower3: has joined #ruby
[22:42:57] hightower3: Ping timeout: 245 seconds
[22:50:34] hightower3: has joined #ruby

2019-04-04

[02:15:02] hightower3: Ping timeout: 245 seconds
[06:04:40] hightower3: has joined #ruby
[06:07:45] hightower3: has joined #ruby
[06:07:45] hightower3: Changing host
[11:45:55] hightower3: Ping timeout: 246 seconds

2019-04-03

[11:42:54] hightower3: has joined #ruby
[12:13:30] hightower3: has joined #ruby
[12:13:30] hightower3: Changing host

2019-03-27

[03:24:38] hightower3: has joined #ruby
[09:48:19] hightower3: has joined #ruby
[09:48:19] hightower3: Changing host
[09:48:21] hightower3: has joined #RubyOnRails
[22:09:36] hightower3: Ping timeout: 246 seconds

2019-03-19

[07:07:25] hightower3: has joined #RubyOnRails
[10:14:12] hightower3: Ping timeout: 245 seconds
[10:24:36] hightower3: has joined #ruby
[13:41:00] hightower3: has joined #ruby
[13:41:00] hightower3: Changing host
[13:41:01] hightower3: has joined #RubyOnRails
[16:25:32] hightower3: Ping timeout: 272 seconds

2019-03-18

[13:05:16] hightower3: Ping timeout: 255 seconds
[14:38:38] hightower3: has joined #ruby
[14:39:33] hightower3: has joined #ruby
[14:39:33] hightower3: Changing host
[14:39:35] hightower3: has joined #RubyOnRails
[14:45:54] hightower3: Ping timeout: 272 seconds
[22:36:50] hightower3: has joined #RubyOnRails
[22:36:50] hightower3: has joined #ruby
[22:53:48] hightower3: Ping timeout: 245 seconds
[22:55:50] hightower3: has joined #ruby
[22:56:16] hightower3: has joined #ruby
[22:56:16] hightower3: Changing host

2019-03-17

[20:18:54] hightower3: has joined #ruby
[20:19:08] hightower3: has joined #ruby
[20:19:08] hightower3: Changing host
[20:19:26] hightower3: has joined #RubyOnRails

2019-03-16

[02:46:33] hightower3: has joined #ruby
[07:00:19] hightower3: Ping timeout: 255 seconds
[07:46:17] hightower3: has joined #ruby
[10:04:40] hightower3: has joined #ruby
[10:04:40] hightower3: Changing host
[10:04:41] hightower3: has joined #RubyOnRails
[19:07:12] hightower3: Remote host closed the connection

2019-03-15

[20:18:52] hightower3: has joined #ruby
[20:19:06] hightower3: has joined #ruby
[20:19:06] hightower3: Changing host
[20:20:26] hightower3: has joined #RubyOnRails
[23:12:58] hightower3: Ping timeout: 245 seconds

2019-03-11

[19:52:58] hightower3: Ping timeout: 268 seconds

2019-03-10

[19:49:16] hightower3: has joined #ruby
[21:39:38] hightower3: has joined #ruby
[21:39:38] hightower3: Changing host
[21:39:40] hightower3: has joined #RubyOnRails

2019-03-09

[02:06:21] hightower3: Ping timeout: 250 seconds
[07:28:58] hightower3: has joined #ruby
[18:18:42] hightower3: Changing host
[18:18:43] hightower3: has joined #ruby
[18:18:44] hightower3: has joined #RubyOnRails
[19:46:41] hightower3: Ping timeout: 255 seconds

2019-03-08

[19:45:17] hightower3: has joined #ruby
[22:13:05] hightower3: has joined #ruby
[22:13:05] hightower3: Changing host
[22:13:07] hightower3: has joined #RubyOnRails

2019-03-07

[09:11:17] hightower3: Ping timeout: 255 seconds
[09:15:54] hightower3: has joined #ruby
[09:29:11] hightower3: has joined #ruby
[09:29:11] hightower3: Changing host
[09:29:12] hightower3: has joined #RubyOnRails
[18:22:51] hightower3: Ping timeout: 252 seconds
[18:25:16] hightower3: has joined #ruby
[18:30:33] hightower3: Ping timeout: 252 seconds

2019-03-06

[01:10:53] hightower3: Ping timeout: 245 seconds
[21:14:19] hightower3: has joined #RubyOnRails
[21:14:19] hightower3: has joined #ruby

2019-03-05

[21:12:08] hightower3: has joined #ruby
[22:21:01] hightower3: has joined #RubyOnRails
[22:22:06] hightower3: Hey if I have a N-N table linking user_ids to role_ids, what would its default rails-generated table name be?
[22:22:49] hightower3: Why does 'role' come first?
[22:26:05] hightower3: and also, why is it not named roles_users given N-N?
[22:30:52] hightower3: Great, and is there any particular reason/explanation why roles_users instead of users_roles?

2019-03-04

[02:24:56] hightower3: Ping timeout: 255 seconds
[09:08:44] hightower3: has joined #ruby
[19:44:38] hightower3: Ping timeout: 245 seconds

2019-03-03

[21:07:30] hightower3: has joined #ruby

2019-02-28

[14:15:33] hightower3: has joined #ruby
[14:15:55] hightower3: How do I most conveniently delete [0..x] indices from array and return them as list?
[14:17:25] hightower3: aah, fabulous
[16:11:00] hightower3: What's the best way to spawn a process and only take control of its stdin, leaving stdout/stderr as-is?
[16:47:41] hightower3: Why I get "wrong exec redirect action" when I try to do: input = StringIO.new; spawn(*cmdline, :in => input) ?
[16:47:55] hightower3: (I would like to print into 'input' to be fed into the process' stdin)
[17:17:34] hightower3: is "a, b = b, a" atomic in MRI?
[17:24:29] hightower3: galaxie, something as simple as results = []; 10.times do |i| results.push a_method() end ?
[17:25:19] hightower3: thanks balo, nice one
[19:44:18] hightower3: Ping timeout: 244 seconds

2019-02-26

[22:57:08] hightower3: has joined #ruby
[22:57:29] hightower3: Hey what's a preferred gem for splitting strings on whitespace but honoring quotes? shellwords, or?
[23:03:42] hightower3: thank baweaver
[23:03:44] hightower3: has left #ruby: ("Leaving")

2018-11-26

[21:16:07] hightower3: Ping timeout: 240 seconds

2018-11-25

[21:17:02] hightower3: Ping timeout: 268 seconds
[21:31:00] hightower3: has joined #RubyOnRails

2018-11-24

[21:15:47] hightower3: has joined #RubyOnRails
[21:17:55] hightower3: Hey why does presence: true validation fails for a form input whose value is false? And/or how do I write a validation then for a field that is essentially a boolean
[22:38:02] hightower3: Hey I have a model Reservation which belongs to User and Product. When I do a link_to reservation, it generates URL in the form of /products/<reservation ID>/reservations ... Is this OK, and what might I be missing/doing wrong here?
[22:38:28] hightower3: I was expecting that the link would be either /reservations/:id or at worst /users/:userid/reservations/:reservationid
[22:38:58] hightower3: (this is for the DELETE action, if it matters)
[23:01:43] hightower3: yeah, though I suspect my issue is that I need URL /users/:id/reservations/:id... I don't understand why my URL got created as /products/:reservation_id/reservations
[23:22:12] hightower3: cnsvc, thanks, I got to something like this myself too
[23:22:32] hightower3: also another thing I was looking at was to define resources :user do resources :reservation ....

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

[23:29:45] hightower3: has joined #ruby