imperator

Activity Graph

Page 1 of 6 | Next »

2019-04-08

[13:05:58] imperator: has joined #ruby
[15:06:40] imperator: mad_hatter, https://programmingzen.com/ruby-books/
[18:14:37] imperator: Quit: Leaving

2018-07-31

[12:47:43] imperator: has joined #ruby
[12:47:53] imperator: Good morning
[12:48:33] imperator: Isn't there a ruby library out there that will take a rest api specification and autogenerate a bunch of classes for you?
[12:49:38] imperator: ah, that's right, thanks ineb
[12:56:38] imperator: fernandobasso, collection[n..-1].each{ ... }
[13:38:21] imperator: Quit: Leaving

2018-05-04

[13:07:33] imperator: has joined #ruby
[13:15:15] imperator: Quit: Leaving

2017-11-27

[14:25:33] imperator: has joined #ruby
[15:43:03] imperator: Quit: Leaving

2017-11-01

[13:49:49] imperator: has joined #ruby
[13:51:14] imperator: Client Quit

2017-10-31

[21:13:38] imperator: has joined #ruby
[21:14:00] imperator: howdy folks
[21:14:11] imperator: anyone here familiar with Addressable::Template?
[21:14:25] imperator: I'm trying to generate a url with an optional parameter, not sure how to do it
[21:14:38] imperator: basically, it looks like this: t = Addressable::Template.new("/subscriptions{/sub}/resourceGroup{/rg}")
[21:14:55] imperator: but, "resourceGroup" should be dropped if :rg isn't specified
[21:15:23] imperator: is there a way to do that?
[21:16:21] imperator: not sure i follow
[21:20:09] imperator: been fiddling with various combinations, but without success
[21:23:03] imperator: yeah, i was hoping for something nicer :)
[21:34:26] imperator: well, i can't get it to stop encoding query params, so that's a problem, too
[22:37:42] imperator: Quit: This computer has gone to sleep

2017-09-06

[13:56:51] imperator: has joined #ruby
[15:37:39] imperator: Good morning
[15:38:08] imperator: with httpclient, is there a nice way to attach a Bearer token to the HTTPClient instance for future requests?
[15:39:15] imperator: or do i have to explicitly pass an Authorization header on each request?
[15:39:29] imperator: ACTION looked over the docs, couldn't see anything right off
[16:15:29] imperator: Ping timeout: 248 seconds

2017-09-05

[14:17:40] imperator: has joined #ruby
[22:37:16] imperator: Quit: Leaving

2017-09-03

[15:06:56] imperator: has joined #ruby
[15:10:54] imperator: Client Quit

2017-09-01

[20:56:39] imperator: Quit: This computer has gone to sleep

2017-08-30

[02:09:58] imperator: Quit: Leaving

2017-08-29

[12:48:51] imperator: has joined #ruby
[12:59:23] imperator: al2o3-cr, good morning, have another faraday question for you :)
[12:59:47] imperator: (or anyone who is up for it)
[12:59:59] imperator: I'm using oauth2, which uses faraday under the hood for requests
[13:00:38] imperator: However, oauth2 appears to ignore custom error handlers on failed requests, raising an OAuth2::Error instead of using my custom handler
[13:00:42] imperator: https://gist.github.com/djberg96/ad863b3bf1109424b1522edb09ecc27a
[13:01:12] imperator: ideas on how to make it use the handler instead?
[13:59:41] imperator: al2o3-cr, tried that, it just does nothing then
[14:41:55] imperator: al2o3-cr, np, thanks
[16:22:11] imperator: Quit: Leaving
[16:25:15] imperator: has joined #ruby

2017-08-28

[18:56:56] imperator: has joined #ruby
[19:35:45] imperator: Quit: This computer has gone to sleep
[19:37:32] imperator: has joined #ruby
[22:05:50] imperator: Quit: This computer has gone to sleep

2017-08-26

[17:47:00] imperator: has joined #ruby
[18:31:17] imperator: howdy folks
[18:31:55] imperator: anyone know how to automatically raise an error with Faraday if the response was not successful?
[18:32:05] imperator: i've seen some examples online, but am not having any luck
[18:33:04] imperator: https://gist.github.com/djberg96/83a006a732185150683f75a69f1555c6
[18:33:18] imperator: also tried a custom middleware class, no luck
[19:14:45] imperator: al2o3-cr, thanks!
[19:15:05] imperator: i thought it used that adapter by default, so it didn't cross my mind to explicitly set it
[20:35:57] imperator: Quit: Leaving

2017-08-10

[13:55:06] imperator: has joined #ruby
[19:01:35] imperator: has left #ruby: ("Leaving")

2017-08-08

[17:27:53] imperator: has joined #ruby
[18:57:06] imperator: Quit: Leaving

2017-08-03

[13:00:39] imperator: has joined #ruby
[13:13:36] imperator: has left #ruby: ("Leaving")

2017-08-02

[01:34:34] imperator: has joined #ruby
[06:04:18] imperator: Ping timeout: 255 seconds
[06:06:25] imperator: has joined #ruby
[18:42:44] imperator: huh, ruby 2.4 introduces a "main_stack" environment variable into its own process now
[18:58:01] imperator: Quit: Leaving

2017-08-01

[15:15:30] imperator: has joined #ruby
[23:31:44] imperator: Quit: This computer has gone to sleep

2017-06-30

[15:00:46] imperator: has joined #ruby
[15:01:07] imperator: good morning
[15:03:20] imperator: does mime-types just check the extension when determing a file type?
[15:53:29] imperator: has left #ruby: ("Leaving")

2016-07-20

[19:29:06] imperator: has joined #ruby
[19:58:32] imperator: yorickpeterse, you still maintaining oga?
[19:59:50] imperator: Undefined prefix Oga::XML: found (REXML::UndefinedNamespaceException) - that doesn't look right
[20:05:40] imperator: not sure i understand some of the .to_s vs .to_xml implementations
[20:05:51] imperator: but i'm working with it
[20:06:40] imperator: why they return what they return
[20:07:31] imperator: so, let me give you an example
[20:09:48] imperator: https://gist.github.com/djberg96/9bd301987a328ce693c50eb237e88721
[20:10:55] imperator: but, neither does it have .to_xml
[20:11:25] imperator: ok, so what's the oga way here?
[20:16:16] imperator: doing .each(&:to_xml).join('') gives me an Oga::XML::Element
[20:16:29] imperator: yorickpeterse, i'm in the "I just wanna get shit done" camp
[20:17:58] imperator: i thought collect_concat would do that, but i guess not
[20:19:34] imperator: yorickpeterse, seems to be a node method - but it's objects, not text
[20:21:15] imperator: oh, is it just an alias?
[20:52:59] imperator: Quit: Leaving

2016-07-18

[18:46:48] imperator: has joined #ruby
[18:48:21] imperator: if i've got a proxy url with an "@" in the password, but i'm having trouble escaping it
[18:48:26] imperator: proxy = 'http://admin:pass@xxx123@localhost:8080'
[18:50:57] imperator: elomatreb, hm, guess so; don't see a better way
[21:04:02] imperator: Quit: Leaving

2016-07-15

[13:00:56] imperator: has joined #ruby
[15:36:41] imperator: kaleido, get = Net::HTTP::Get.new(uri); get.add_field(key, value)
[15:37:05] imperator: but personally i would just use rest-client, or some other http lib
[20:16:52] imperator: Quit: Leaving

2016-07-13

[15:19:54] imperator: has joined #ruby
[16:14:45] imperator: has left #ruby: ("Leaving")

2016-07-05

[14:50:14] imperator: has joined #ruby
[14:56:03] imperator: need some help with an xml parsing issue: https://gist.github.com/djberg96/04b0723ff72339a0ab6ddd434bf05ccf
[14:56:18] imperator: basically, i have it working with rexml, but would like to have it working with nokogiri if possible
[14:57:13] imperator: the issue seems to be the leading text: "#< CLIXML\r\n"
[14:57:44] imperator: if i remove that, it works as expected, but i'm wondering if there's a way to deal with it without manually parsing that piece out
[15:23:42] imperator: jhass, not sure if it's valid or not, but the .parse method doesn't fail at least
[15:23:47] imperator: yeah, looks like rexml just ignores it
[15:48:07] imperator: jhass, was going to try Nokogiri::Slop, but it seems to be gone
[16:26:40] imperator: has left #ruby: ("Leaving")

2016-06-29

[14:53:13] imperator: has joined #ruby
[14:59:24] imperator: has left #ruby: ("Leaving")

2016-06-27

[03:27:03] imperator: Quit: Leaving
[13:08:27] imperator: has joined #ruby
[13:08:40] imperator: has left #ruby: ()

2016-06-26

[18:59:20] imperator: has joined #ruby
[21:02:53] imperator: CausaMortis-Work, what is the output of rbenv shell ?
[21:05:05] imperator: CausaMortis-Work, then try "rbenv shell 2.2.4"
[21:08:53] imperator: because you could have multiple versions installed
[21:09:26] imperator: if you run "rbenv versions" you'll see the list of possible rubies that you have
[21:09:40] imperator: no, not to my knowledge
[21:09:53] imperator: and, odds are you wouldn't want that anyway
[21:11:16] imperator: anytime after you set it using rbenv shell
[21:12:09] imperator: so, after you run "rbenv shell 2.2.4", and you do "ruby -v", you'll see 2.2.4 as your version
[21:13:23] imperator: i have this in my .bash_profile on my mac, too: https://gist.github.com/djberg96/848935da8f56521402f644f79e1d235d
[22:28:27] imperator: Quit: This computer has gone to sleep
[23:20:43] imperator: has joined #ruby

2016-06-24

[13:42:50] imperator: has joined #ruby
[14:01:56] imperator: has left #ruby: ("Leaving")

2016-06-23

[16:07:40] imperator: has joined #ruby
[17:10:06] imperator: Tonkers, is running ruby without cygwin an option?
[17:11:07] imperator: ACTION recommends just grabbing the one-click installer and pressing on
[18:24:06] imperator: now there's a term i haven't heard in a while
[18:39:10] imperator: has left #ruby: ("Leaving")

2016-06-20

[13:16:50] imperator: has joined #ruby
[15:53:15] imperator: suggestions for handling an arbitrary list of (hash-based) filters on an array of complex objects?
[15:54:03] imperator: right now i'm just iterating over the hash like: filter.each{ |k,v| list = list.select{ |x| x.send(k) == v } }
[15:54:37] imperator: but i suspect there's a better way
[20:22:17] imperator: jhass, thanks
[21:42:30] imperator: Quit: Leaving

2016-06-19

[05:51:05] imperator: Quit: This computer has gone to sleep
[14:24:04] imperator: has joined #ruby
[16:04:01] imperator: Quit: Leaving
[17:11:20] imperator: has joined #ruby
[17:18:35] imperator: Quit: This computer has gone to sleep
[17:18:55] imperator: has joined #ruby
[18:48:44] imperator: Quit: This computer has gone to sleep

2016-06-18

[14:34:32] imperator: has joined #ruby

2016-06-11

[16:24:47] imperator: has joined #ruby
[16:32:21] imperator: good morning peeps
[19:07:18] imperator: Quit: Leaving

2016-06-04

[13:36:05] imperator: has joined #ruby
[16:19:42] imperator: Quit: Leaving

2016-06-01

[13:49:47] imperator: has joined #ruby
[13:58:44] imperator: good morning
[14:01:17] imperator: suggestions for round Time.now.utc.iso8601 to the nearest hour?
[14:12:02] imperator: apeiros, thanks
[17:39:05] imperator: has left #ruby: ("Leaving")

2016-05-30

[16:36:28] imperator: has joined #ruby
[16:36:41] imperator: why does this fail? https://gist.github.com/djberg96/3cdbf3b32454064ff7f5d971bf150b56
[16:38:23] imperator: norc, i think you're right. Adding a small sleep call to the setup worked
[16:40:04] imperator: join the thread?
[16:42:34] imperator: does a thread have to be alive to retain its keys? irb would indicate no
[16:46:48] imperator: norc, how would you test it?
[22:33:11] imperator: Quit: This computer has gone to sleep

2016-05-29

[06:35:55] imperator: has joined #ruby
[06:53:11] imperator: Quit: This computer has gone to sleep
[13:15:12] imperator: has joined #ruby
[15:35:52] imperator: Quit: Leaving

2016-05-28

[09:08:18] imperator: has joined #ruby
[10:30:13] imperator: Quit: This computer has gone to sleep
[15:18:26] imperator: has joined #ruby
[23:33:25] imperator: Quit: This computer has gone to sleep

2016-05-27

[00:35:05] imperator: has joined #ruby
[01:44:53] imperator: ayee, what's your root's umask?
[01:46:36] imperator: change it to 0022 and try again?
[02:20:20] imperator: hxegon, huh, good question - web site is up, but download link is busted
[02:56:17] imperator: thx Arcaire
[04:08:26] imperator: Quit: Leaving
[18:37:47] imperator: has joined #ruby
[19:19:40] imperator: Quit: Leaving

2016-05-25

[14:59:13] imperator: has joined #ruby
[17:13:48] imperator: miqlas-H, not sure, I think you might have better luck in #haiku
[17:15:27] imperator: ACTION hasn't tried haiku in a while, should look at it again
[17:31:48] imperator: miqlas-H, quite old, but perhaps relevant? https://dev.haiku-os.org/ticket/6661
[18:03:28] imperator: miqlas-H, great, glad it worked!
[18:05:17] imperator: hm, don't really have one for qt
[18:05:36] imperator: for cli, dunno that i have a favorite, so much as what i'm using right now
[18:05:40] imperator: azure cli maybe?
[19:36:36] imperator: has left #ruby: ("Leaving")

2016-05-21

[03:47:43] imperator: has joined #ruby
[04:11:59] imperator: Quit: Leaving
[13:36:51] imperator: has joined #ruby
[13:55:57] imperator: does Process.uid= actually do anything on OSX?
[15:26:19] imperator: Quit: Leaving
[18:02:52] imperator: has joined #ruby
[19:22:26] imperator: Quit: Leaving

2016-05-19

[00:58:15] imperator: has joined #ruby
[01:18:20] imperator: dessm, https://www.ruby-forum.com/topic/1393096 - look for the answer from Gary Wright
[01:19:34] imperator: (short version, the semantics for array[x] and array[x,y] are different)
[01:22:03] imperator: weakref question - why doesn't this fail? https://gist.github.com/djberg96/649c423d6a338d6b4694b5cbde77205c
[03:00:03] imperator: Quit: Leaving

2016-05-13

[14:37:51] imperator: has joined #ruby
[20:21:02] imperator: has left #ruby: ("Leaving")

2016-04-29

[17:45:46] imperator: has joined #ruby
[19:00:22] imperator: mallu, http://stackoverflow.com/questions/16589722/openssl-equivalent-command-in-ruby should get you on the right track
[21:42:06] imperator: Quit: Leaving

2016-04-24

[00:32:21] imperator: has joined #ruby
[03:19:58] imperator: Quit: Leaving

2016-04-23

[17:02:56] imperator: has joined #ruby
[17:26:41] imperator: Quit: This computer has gone to sleep
[18:03:37] imperator: has joined #ruby
[19:14:25] imperator: Quit: This computer has gone to sleep
[19:55:06] imperator: has joined #ruby
[21:09:09] imperator: Quit: This computer has gone to sleep

2016-04-09

[02:49:23] imperator: has joined #ruby
[03:31:03] imperator: Quit: Leaving
[13:50:23] imperator: has joined #ruby
[19:17:44] imperator: Quit: Leaving

2016-04-08

[13:38:36] imperator: has joined #ruby
[20:10:09] imperator: has left #ruby: ("Leaving")

2016-04-04

[12:31:10] imperator: has joined #ruby
[13:43:45] imperator: has left #ruby: ("Leaving")

2016-04-01

[14:21:03] imperator: has joined #ruby
[14:21:08] imperator: good morning
[14:21:24] imperator: just tinkering with a local proxy server that i'm using for testing: https://gist.github.com/djberg96/e9eca6387bca29043c0f1ec82a0b0352
[14:21:52] imperator: but, confused why i can still connect without enabling SSL or using an https string
[14:25:44] imperator: e.g. this works: "curl -x localhost:8080 -U admin:passxxx123 http://www.google.com", but i would have expected the --ssl option to be required
[14:39:45] imperator: djellemah, WEBrick::HTTPProxyServer ignores :SSLEnable ?
[14:41:19] imperator: it is a subclass of HTTPServer, which (supposedly) recognizes it, right?
[14:44:32] imperator: maybe it's the authenticator
[14:49:02] imperator: ah, april 1st, i should just stay offline today
[14:51:33] imperator: ACTION is guilty of this sort of stuff, too, but hasn't done it for many years
[15:22:16] imperator: has left #ruby: ("Leaving")

2016-03-31

[16:10:08] imperator: anyone know how to parse an iso 8601 interval string into a Ruby object?
[16:10:14] imperator: e.g. "P10675199DT2H48M5.4775807S"
[16:10:40] imperator: is there a core/stdlib method out there somewhere i'm missing?
[16:49:26] imperator: darix, is it not correct? quite possible, this is coming from MS
[16:53:30] imperator: apeiros, yes :)
[16:57:55] imperator: well, i did find the iso8601 gem, which has ISO8601::Duration and seems to parse it properly
[18:07:52] imperator: has left #ruby: ("Leaving")