jamiejackson

Activity Graph

Page 1 of 1

2018-07-23

[15:37:24] jamiejackson: has joined #ruby
[17:24:34] jamiejackson: Ping timeout: 256 seconds

2018-07-22

[16:59:36] jamiejackson: has joined #ruby
[17:04:16] jamiejackson: (i asked this yesterday, but had to leave just after i posted.) i'm trying to iterate over a hash inline to build a string: https://gist.github.com/jamiejackson/176cf94c7b1766fd7f0f92601ab16586
[17:05:03] jamiejackson: i could build the string into a variable first, but i'm curious about the inline syntax
[17:06:36] jamiejackson: i've been trying that, too. i'll post what i've got in a minute
[17:17:21] jamiejackson: i got it going, apeiros, thx
[20:43:38] jamiejackson: Ping timeout: 276 seconds

2018-07-21

[22:05:59] jamiejackson: has joined #ruby
[22:12:02] jamiejackson: i'm trying to iterate over a hash inline to build a string: https://gist.github.com/jamiejackson/176cf94c7b1766fd7f0f92601ab16586
[22:12:13] jamiejackson: what am i doing wrong?
[22:21:15] jamiejackson: Ping timeout: 256 seconds

2018-06-04

[03:20:40] jamiejackson: Remote host closed the connection

2018-06-03

[22:35:46] jamiejackson: has joined #ruby

2018-05-30

[15:51:02] jamiejackson: has joined #ruby
[16:07:14] jamiejackson: Ping timeout: 256 seconds
[16:30:06] jamiejackson: has joined #ruby
[17:37:12] jamiejackson: Ping timeout: 256 seconds

2018-05-29

[13:24:19] jamiejackson: has joined #ruby
[18:56:57] jamiejackson: Ping timeout: 240 seconds

2018-05-25

[14:42:28] jamiejackson: has joined #ruby
[16:03:07] jamiejackson: Ping timeout: 245 seconds

2018-05-23

[02:15:56] jamiejackson: has joined #ruby
[05:36:14] jamiejackson: Ping timeout: 252 seconds
[14:41:04] jamiejackson: has joined #ruby
[15:18:04] jamiejackson: Ping timeout: 260 seconds
[15:42:01] jamiejackson: has joined #ruby
[15:42:37] jamiejackson: Remote host closed the connection
[15:43:10] jamiejackson: has joined #ruby
[21:16:46] jamiejackson: Remote host closed the connection

2018-05-22

[14:25:45] jamiejackson: has joined #ruby
[14:32:56] jamiejackson: Remote host closed the connection

2018-05-21

[04:12:34] jamiejackson: Ping timeout: 260 seconds

2018-05-20

[16:12:39] jamiejackson: has joined #ruby

2018-05-18

[14:37:58] jamiejackson: has joined #ruby
[16:29:54] jamiejackson: Ping timeout: 255 seconds

2018-05-17

[17:02:50] jamiejackson: has joined #ruby
[20:09:56] jamiejackson: Ping timeout: 256 seconds
[20:30:45] jamiejackson: has joined #ruby
[21:59:44] jamiejackson: Ping timeout: 256 seconds

2018-05-15

[01:33:55] jamiejackson: Ping timeout: 256 seconds
[15:52:54] jamiejackson: has joined #ruby
[16:11:29] jamiejackson: Ping timeout: 260 seconds
[16:17:09] jamiejackson: has joined #ruby
[16:54:50] jamiejackson: Ping timeout: 265 seconds

2018-05-14

[13:38:18] jamiejackson: has joined #ruby
[14:19:42] jamiejackson: hi folks. i'm using OpenUri's open(). i don't really care about the result. how would i just background it and forget about it?
[15:48:57] jamiejackson: Ping timeout: 240 seconds
[18:53:49] jamiejackson: has joined #ruby
[18:57:43] jamiejackson: apeiros, thanks for the thread tip. do you know why i can't see the third output (in the thread)? https://gist.github.com/jamiejackson/fe23400df2c369828ede4e66516b8fd7s
[18:57:50] jamiejackson: correction: https://gist.github.com/jamiejackson/fe23400df2c369828ede4e66516b8fd7
[19:11:50] jamiejackson: anybody know why i don't get output from the third write? https://gist.github.com/jamiejackson/fe23400df2c369828ede4e66516b8fd7
[19:14:14] jamiejackson: that can go anywhere before my thread block?
[19:39:39] jamiejackson: havenwood, i'm doing something wrong in the context of my module. it's there that i can't seem to get the result of the the third output: https://gist.github.com/jamiejackson/227c4a436b6ca32e2c70c440add775c9
[19:39:48] jamiejackson: do you spot the problem?
[19:40:12] jamiejackson: ruby 2.0, fwiw
[21:11:44] jamiejackson: i'm doing something wrong in the context of my module. it's there that i can't seem to get the result of the the third output: https://gist.github.com/jamiejackson/227c4a436b6ca32e2c70c440add775c9 what am i doing wrong?
[21:35:49] jamiejackson: oh, hmm. i wanted to be able to background a statement and move on without waiting for it to complete. afaik i can do that with some other languages. is that not possible with ruby?
[21:48:11] jamiejackson: this thing's already at the end of the code. fyi what i'd like to be able to do is background a command to sleep for n seconds then request a url. something like `nohup bash -c 'sleep 10; curl http://myurl.com' &`. not sure if that's possible or not. i don't care about the results of the url request, i just want it to have tried.
[21:49:09] jamiejackson: so basically, this would happen, say 10s _after_ the main script has run. maybe it's a crazy idea, but it's worth knowing it's crazy.

2018-05-11

[19:57:26] jamiejackson: has joined #ruby
[21:38:09] jamiejackson: Ping timeout: 264 seconds

2018-05-09

[14:34:59] jamiejackson: has joined #ruby
[14:40:06] jamiejackson: Ping timeout: 255 seconds

2018-05-08

[00:58:18] jamiejackson: has joined #ruby
[01:31:57] jamiejackson: Ping timeout: 240 seconds

2018-05-07

[16:23:46] jamiejackson: has joined #ruby
[17:14:35] jamiejackson: Ping timeout: 276 seconds
[21:41:07] jamiejackson: has joined #ruby
[21:56:05] jamiejackson: Ping timeout: 240 seconds

2018-05-03

[13:44:15] jamiejackson: has joined #ruby
[17:05:05] jamiejackson: Ping timeout: 248 seconds

2018-05-02

[19:42:16] jamiejackson: has joined #ruby
[22:29:09] jamiejackson: Ping timeout: 260 seconds

2018-05-01

[01:18:59] jamiejackson: Ping timeout: 260 seconds

2018-04-30

[17:24:05] jamiejackson: has joined #ruby

2018-04-26

[21:01:13] jamiejackson: has joined #ruby
[21:26:59] jamiejackson: Ping timeout: 260 seconds

2018-03-15

[20:18:42] jamiejackson: has joined #ruby
[20:57:27] jamiejackson: Ping timeout: 240 seconds

2018-03-05

[19:17:39] jamiejackson: has joined #ruby
[21:01:26] jamiejackson: Ping timeout: 256 seconds

2018-03-01

[22:09:15] jamiejackson: has joined #ruby
[23:16:35] jamiejackson: Ping timeout: 240 seconds

2018-02-26

[18:27:49] jamiejackson: has joined #ruby
[22:53:32] jamiejackson: Ping timeout: 245 seconds

2018-02-23

[19:40:55] jamiejackson: has joined #ruby
[20:41:35] jamiejackson: Ping timeout: 240 seconds

2018-02-21

[15:17:07] jamiejackson: has joined #ruby
[16:06:48] jamiejackson: Ping timeout: 240 seconds

2018-02-16

[14:12:31] jamiejackson: has joined #ruby
[17:02:27] jamiejackson: Ping timeout: 240 seconds

2018-02-08

[04:44:35] jamiejackson: has joined #ruby
[04:49:50] jamiejackson: Ping timeout: 256 seconds

2018-01-24

[00:35:30] jamiejackson: Ping timeout: 260 seconds
[09:47:12] jamiejackson: has joined #ruby
[12:51:05] jamiejackson: Ping timeout: 240 seconds

2018-01-23

[00:23:42] jamiejackson: has joined #ruby
[01:38:21] jamiejackson: Remote host closed the connection
[20:43:22] jamiejackson: has joined #ruby

2018-01-20

[16:09:56] jamiejackson: has joined #ruby
[23:50:55] jamiejackson: Ping timeout: 248 seconds

2018-01-19

[19:28:16] jamiejackson: has joined #ruby
[23:19:17] jamiejackson: Remote host closed the connection

2018-01-12

[19:45:49] jamiejackson: has joined #ruby
[22:36:44] jamiejackson: Remote host closed the connection

2018-01-10

[00:31:15] jamiejackson: has joined #ruby
[01:14:32] jamiejackson: Ping timeout: 276 seconds
[12:00:21] jamiejackson: has joined #ruby
[12:33:27] jamiejackson: Remote host closed the connection
[15:37:21] jamiejackson: has joined #ruby
[16:03:44] jamiejackson: Ping timeout: 276 seconds

2018-01-09

[19:49:33] jamiejackson: has joined #ruby
[23:17:53] jamiejackson: Ping timeout: 248 seconds

2017-12-22

[04:37:33] jamiejackson: Ping timeout: 264 seconds

2017-12-21

[14:49:38] jamiejackson: has joined #ruby

2017-12-14

[19:57:44] jamiejackson: has joined #ruby
[21:53:57] jamiejackson: Ping timeout: 240 seconds

2017-12-12

[21:01:24] jamiejackson: has joined #ruby
[22:39:27] jamiejackson: Ping timeout: 248 seconds

2017-12-11

[14:48:45] jamiejackson: has joined #ruby
[16:02:41] jamiejackson: Ping timeout: 255 seconds

2017-12-08

[20:14:50] jamiejackson: has joined #ruby
[22:34:07] jamiejackson: Ping timeout: 248 seconds

2017-12-07

[15:35:36] jamiejackson: has joined #ruby
[16:45:54] jamiejackson: Ping timeout: 255 seconds

2017-12-06

[17:46:49] jamiejackson: has joined #ruby
[19:08:10] jamiejackson: Ping timeout: 264 seconds
[20:32:34] jamiejackson: has joined #ruby
[22:40:41] jamiejackson: Ping timeout: 255 seconds

2017-12-05

[15:17:31] jamiejackson: has joined #ruby
[16:06:30] jamiejackson: Remote host closed the connection

2017-12-04

[21:45:36] jamiejackson: has joined #ruby
[22:28:41] jamiejackson: Ping timeout: 260 seconds

2017-11-30

[17:15:26] jamiejackson: has joined #ruby
[19:40:05] jamiejackson: Ping timeout: 240 seconds

2017-11-29

[19:49:56] jamiejackson: has joined #ruby
[23:41:57] jamiejackson: Ping timeout: 240 seconds

2017-11-27

[20:01:21] jamiejackson: has joined #ruby
[23:21:18] jamiejackson: Ping timeout: 258 seconds

2017-11-22

[17:38:04] jamiejackson: has joined #ruby
[23:28:33] jamiejackson: Ping timeout: 248 seconds

2017-11-17

[17:09:57] jamiejackson: has joined #ruby
[17:10:19] jamiejackson: where' s the documentation for ruby's yaml?
[17:13:15] jamiejackson: apeiros, i don't see anything in that URL's body. where should i be looking on that page?
[17:16:04] jamiejackson: okay, do i require 'psych' or 'yaml'?
[17:47:27] jamiejackson: what's the right way to use the squiggly HEREDOC? i've got it wrong: https://gist.github.com/jamiejackson/4a9e81b77d6f69e9da31de5e88040362
[17:49:49] jamiejackson: elomatreb `ansible_vault_helper.rb:40: syntax error, unexpected keyword_end, expecting end-of-input`
[17:51:14] jamiejackson: elomatreb. i think so. i'm using the latest Vagrant, and i think it uses 2.4
[17:51:41] jamiejackson: from what i can tell: /opt/vagrant/embedded/include/ruby-2.4.0/ruby
[17:59:07] jamiejackson: thanks RickHull. i'm trying to see if something else is going on in my file. brb
[19:45:23] jamiejackson: RickHull, would you expect https://gist.github.com/rickhull/ae058cd98ede8c79aa4e4fe665540598 to preserve the newlines between chunks? it does for me, and i was hoping that wouldn't happen.
[20:00:33] jamiejackson: Ping timeout: 268 seconds

2017-09-14

[17:05:42] jamiejackson: has joined #ruby
[17:06:08] jamiejackson: Remote host closed the connection
[17:06:30] jamiejackson: has joined #ruby
[20:35:07] jamiejackson: Ping timeout: 260 seconds

2017-09-13

[14:18:30] jamiejackson: has joined #ruby
[17:03:48] jamiejackson: Ping timeout: 246 seconds

2017-09-12

[14:26:08] jamiejackson: has joined #ruby
[15:01:28] jamiejackson: Ping timeout: 240 seconds

2017-09-11

[04:29:21] jamiejackson: Ping timeout: 248 seconds

2017-09-10

[17:31:06] jamiejackson: has joined #ruby

2017-09-08

[15:46:48] jamiejackson: has joined #ruby
[15:53:22] jamiejackson: Remote host closed the connection
[18:46:18] jamiejackson: has joined #ruby
[19:36:33] jamiejackson: Ping timeout: 248 seconds

2017-09-06

[14:27:51] jamiejackson: has joined #ruby
[15:33:04] jamiejackson: Ping timeout: 255 seconds

2017-09-05

[15:15:04] jamiejackson: has joined #ruby
[16:38:06] jamiejackson: Ping timeout: 240 seconds

2017-09-01

[02:45:35] jamiejackson: has joined #ruby
[03:23:35] jamiejackson: Ping timeout: 252 seconds

2017-08-29

[21:06:31] jamiejackson: has joined #ruby
[21:52:01] jamiejackson: Ping timeout: 248 seconds

2017-08-24

[15:18:05] jamiejackson: has joined #ruby
[23:00:17] jamiejackson: Ping timeout: 248 seconds

2015-10-15

[12:42:24] jamiejackson: has joined #RubyOnRails
[13:50:52] jamiejackson: hi folks. i want to deliberately create an error on a view if a certain url parameter exists. how do i write that test? this wasn't correct: if (defined? params[:deliberate_error])
[15:01:22] jamiejackson: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[16:16:42] jamiejackson: has joined #RubyOnRails
[19:00:16] jamiejackson: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-10-14

[13:29:54] jamiejackson: has joined #RubyOnRails
[21:16:32] jamiejackson: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-10-13

[20:40:26] jamiejackson: has joined #RubyOnRails
[20:41:31] jamiejackson: hi folks. i'm still pretty inexperienced with rails, but i'm trying to do a 3 => 4.2 upgrade. one thing that's tripping me up is: https://gist.github.com/jamiejackson/7c6eef337611cefa98b9
[20:42:39] jamiejackson: getting ArgumentError (wrong number of arguments (1 for 0)), and i think it's about the all() calls.
[20:42:54] jamiejackson: not sure what that conversion would be
[20:48:12] jamiejackson: gerep:thanks for looking. looks like @site_report_years is set in application_controller.rb (base class), so i don't think that's it
[20:49:34] jamiejackson: did older versions of rails's all() take arguments (and not new rails)?
[20:52:20] jamiejackson: gerep:will try...
[20:54:37] jamiejackson: gerep: i think that's the ticket, thanks. swapping out the rest of the all() instances
[20:56:59] jamiejackson: gerep: i take it back, i think it's not quite behaving as expected. might just be a syntax difference of where. looking into it.
[20:58:13] jamiejackson: gerep, i think it might be find(:all, ...) instead. where do you see "where," btw?
[21:04:09] jamiejackson: gerep, i meant i'm not sure where "where()" is documented.
[21:07:35] jamiejackson: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-02-25

[16:52:57] jamiejackson: hi folks. i've been asked to modify an inherited rails 3.2 app. there's a controller function that i'd like to call on app startup. i could use some pointers as to how to get this going.
[16:59:43] jamiejackson: smathy: thinking...
[17:06:55] jamiejackson: smathy: thanks. i think i get what you're saying. refactoring this isn't going to happen right now, given the amount of time i can work on this (very little) and my ruby/rails experience (very little). i'll punt for now, and make a todo for cleanup
[17:13:21] jamiejackson: hi folks, i just installed ruby dltk in eclipse luna, but i get [Plug-in "org.eclipse.dltk.ruby.ui" was unable to instantiate class "org.eclipse.dltk.ruby.internal.ui.editor.RubyEditor".] when i try to open a rb file with it. any idea what's going on?

2015-02-11

[16:07:33] jamiejackson: hi folks. how do i find out when a method was introduced to a core class? i got a Ruby app dumped on me, and it's complaining about File.path not existing (dumping the methods confirms it).
[17:26:17] jamiejackson: i'm a ruby noob, could you tell me how i'd make this function available within an existing module? http://stackoverflow.com/a/13579195
[17:27:20] jamiejackson: shevy, i think so
[18:11:07] jamiejackson: shevy, i think this pseudocode will demonstrate my various areas of ignorance: https://gist.github.com/jamiejackson/00449f3dc418cdf1b408 <= can you point out how to make that work?
[19:00:54] jamiejackson: i got it shevy, thanks

2012-09-10

[14:43:22] jamiejackson: okay, hang on :P
[14:44:50] jamiejackson: gist is slow today, but i'm working on it...
[14:51:55] jamiejackson: hi folks. i'm trying to get a nested layout going, but am failing. could you please help me figure this out? https://gist.github.com/3691280 <= i want the "errors" sublayout to render inside the "application" layout. right now, i get an empty response
[14:53:34] jamiejackson: i've got a real app error that i'm invoking. i could have also just put <%= var_that_doesnt_exist %> in, say application.html.erb
[14:55:04] jamiejackson: Radar: ...and i have the exception_notification gem
[14:56:05] jamiejackson: Radar: ...and i have [match "/500" => "errors#exception"] in routes.rb

2012-09-07

[14:01:28] jamiejackson: This isn't a Rails-specific question, but: I'd like to set up my apps (may different languages, not just Ruby) to use localhost for email (smtp). Because I'm firewalled, I just want to log those messages, instead of really sending them. I'm just interested in making sure the apps are working.
[14:01:44] jamiejackson: ...Do you know of an app for that, for sort of mocking sendmail?
[14:03:04] jamiejackson: injekt: looks promising... reading.

2012-09-06

[18:12:26] jamiejackson: hi folks, could you point me to instructions on setting up error catching/notification code in rails 3.2? in particular, i'm looking for instructions to catch 500 errors, present a friendly error page, and email me a notification with debug info.
[18:12:41] jamiejackson: it looks like the techniques use for this changed in 3.0, then 3.1, then 3.2, but i don't see a full explanation for how to do it in 3.2
[18:51:37] jamiejackson: hi folks. could you tell me how to catch ugly 500 errors and display my own, friendly error instead?
[18:54:07] jamiejackson: checking out your link, Spaceghostc2c
[18:57:22] jamiejackson: Spaceghostc2c: your link seems to be for <3.2, which was also my problem with googling it, toretore . know of a technique for custom 500 errors that works in >=3.2?
[18:59:20] jamiejackson: Spaceghostc2c: i'll try it out, and see what happens