« Back to channel list

#ruby - 18 February 2019

« Back 1 day Forward 1 day »
[00:06:02] dmwit: Oh, what, Enumerator does have a rewind. How the heck does that work?
[00:06:11] clemens3: has joined #ruby
[00:11:13] phaul: Enumerator is a wrapper on Fiber , it can reset it. Create a new one drop the old one
[00:16:49] uplime: whats the proper way to encode a hex character into a string?
[00:16:59] uplime: hex code*
[00:20:28] uplime: ah nmd, i don't need it in a string
[00:23:42] my1es: has joined #ruby
[00:30:51] AJA4351: has joined #ruby
[00:34:46] valadares: has joined #ruby
[00:40:20] venmx: has joined #ruby
[01:01:10] Psy-Q: has joined #ruby
[01:06:13] wolfshappen: has joined #ruby
[01:19:41] mozzarella: has joined #ruby
[01:47:12] xrexeon: has joined #ruby
[01:53:28] Superhanz: has joined #ruby
[01:58:08] fanta7531: has joined #ruby
[02:07:51] mangold: has joined #ruby
[02:29:54] sagax: has joined #ruby
[02:50:05] t0xik: has joined #ruby
[02:53:50] sleetdrop: has joined #ruby
[03:06:54] orbyt_: has joined #ruby
[03:08:21] akem: has joined #ruby
[03:12:10] _whitelogger: has joined #ruby
[03:33:10] oosehedaiphequag: has joined #ruby
[03:40:35] oosehedaiphequag: has left #ruby: ()
[03:47:28] houhoulis: has joined #ruby
[04:05:16] blackmesa: has joined #ruby
[04:08:00] teej: has joined #ruby
[04:09:40] braincrash: has joined #ruby
[04:13:05] hahuang6-: has joined #ruby
[04:22:45] orbyt_: has joined #ruby
[04:32:35] jcalla: has joined #ruby
[05:40:49] t0xik: has joined #ruby
[06:10:08] baweaver: Part Two of 'Exploring TracePoint' is out where we take a look at the events we can monitor on, and some of their potential uses in debugging:
[06:10:08] baweaver: https://medium.com/@baweaver/exploring-tracepoint-in-ruby-part-two-events-f4fd291992f5
[06:15:32] conta: has joined #ruby
[06:31:11] dionysus69: has joined #ruby
[07:00:45] aufi: has joined #ruby
[07:05:34] wolfshappen: has joined #ruby
[07:17:34] booboy: has joined #ruby
[07:18:11] Renich: has joined #ruby
[07:20:26] cschneid: has joined #ruby
[07:34:02] nowhere_man: has joined #ruby
[07:41:21] Puffball: has joined #ruby
[07:43:10] v01d4lph4: has joined #ruby
[07:50:38] clemens3_: has joined #ruby
[07:54:11] Cork: i'm creating a class for a http api and would like to group its function. api.user.list, api.user.create, api.contact.list ... instead of api.user_list api.user_create...
[07:54:21] Cork: is there a sain way to do this in ruby?
[07:56:40] Cork: (also i would like api.user.methods to list those methods and not the contact ones and so on)
[08:01:30] tbuehlmann: Cork: sure, just let api.user return an object that responds to the methods you need
[08:02:07] Cork: tbuehlmann: hmm opps missed to point one think out i have a class variable in api i need it to access
[08:02:14] Cork: would i have to copy it over?
[08:02:47] tbuehlmann: you could pass whatever you need
[08:02:57] prestorium: has joined #ruby
[08:03:12] baweaver: You'd basically have to make your own object mapper
[08:03:39] baweaver: There are dynamic ways to do that, sure, but you'd almost need API contracts for that.
[08:04:02] Cork: sounds like i should just stick with _ :)
[08:05:28] baweaver: I mean you could dynamically map things down to OpenStructs
[08:06:03] Cork: interesting
[08:06:16] Cork: didn't even know it existed
[08:07:21] baweaver: https://github.com/aetherknight/recursive-open-struct
[08:07:37] baweaver: Though there are all types of fun issues with that.
[08:13:55] v01d4lph4: has joined #ruby
[08:17:50] clemens3_: has joined #ruby
[08:18:26] v01d4lph4: has joined #ruby
[08:22:40] mikecmpbll: has joined #ruby
[08:38:03] conta: has joined #ruby
[08:38:47] DTZUZO_: has joined #ruby
[08:42:55] BH23: has joined #ruby
[08:48:03] v01d4lph4: has joined #ruby
[08:49:22] cd: has joined #ruby
[08:49:25] livcd: has joined #ruby
[08:51:16] livcd: hmm RubyMotion should get partially open sourced in April
[08:52:16] mikecmpbll: has joined #ruby
[08:57:34] lxsameer: has joined #ruby
[09:04:58] prestorium: has joined #ruby
[09:16:58] mangold: has joined #ruby
[09:33:46] marz_d`ghostman: has joined #ruby
[09:33:56] marz_d`ghostman: anyone using rrd-ffi? do you know how to extract rra data?
[09:34:53] deathwishdave: has joined #ruby
[09:40:25] venmx: has joined #ruby
[09:42:19] blackmesa: has joined #ruby
[09:44:51] Nicmavr: has joined #ruby
[09:49:22] BH23: has joined #ruby
[09:52:48] mniip: has joined #ruby
[09:55:37] wolfshappen_: has joined #ruby
[10:11:16] ams__: has joined #ruby
[10:12:34] akem: has joined #ruby
[10:28:12] drale2k_: has joined #ruby
[10:30:47] xrexeon: has joined #ruby
[10:38:43] xrexeon: has joined #ruby
[10:42:24] xrexeon: has joined #ruby
[10:49:29] mikecmpb_: has joined #ruby
[10:52:08] BH23: has joined #ruby
[10:53:48] alem0lars: has joined #ruby
[11:29:10] conta: has joined #ruby
[11:35:56] alem0lars: has joined #ruby
[11:38:40] crankharder: has joined #ruby
[11:40:47] kapil____: has joined #ruby
[12:08:23] drale2k_: has joined #ruby
[12:21:13] cschneid: has joined #ruby
[12:32:17] donofrio: has joined #ruby
[12:39:22] Dbugger: has joined #ruby
[12:56:37] AJA4350: has joined #ruby
[13:14:56] BH23: has joined #ruby
[13:18:02] deathwishdave: has joined #ruby
[13:20:01] lucasb: has joined #ruby
[13:24:49] marmotini_: has joined #ruby
[13:26:53] blackmesa: has joined #ruby
[13:29:06] blackmesa1: has joined #ruby
[13:41:52] nemesit|znc: has joined #ruby
[13:46:19] deathwishdave: has joined #ruby
[13:52:20] cow[moo]: has joined #ruby
[14:08:02] AJA4350: has joined #ruby
[14:15:47] akem: has joined #ruby
[14:20:50] skryking: has joined #ruby
[14:22:00] gregf_: has joined #ruby
[14:29:33] jcalla: has joined #ruby
[14:31:47] conta: has joined #ruby
[14:46:51] cow[moo]: has joined #ruby
[14:47:17] phaul: I made a thing https://github.com/phaul/pry-hier
[14:50:03] Rapture: has joined #ruby
[14:51:50] cschneid: has joined #ruby
[14:58:50] flips: has joined #ruby
[15:00:31] rippa: has joined #ruby
[15:01:16] spacesuitdiver: has joined #ruby
[15:06:49] al2o3-cr: &>> ObjectSpace.each_object(Numeric.singleton_class).to_a
[15:06:51] rubydoc: # => [Complex, Rational, Float, Integer, Numeric] (https://carc.in/#/r/6aa3)
[15:07:06] al2o3-cr: nice little pry addon.
[15:08:24] tbuehlmann: phaul, feature request: make it so I can navigate the hierarchy with arrow keys :D
[15:16:11] awkwords: has joined #ruby
[15:20:16] akem: has joined #ruby
[15:26:41] phaul: tbuehlmann: :)
[15:28:54] bvdw: has joined #ruby
[15:29:46] spacesuitdiver: has joined #ruby
[15:34:28] bvdw: has joined #ruby
[15:46:37] conta1: has joined #ruby
[15:47:49] Azure: has joined #ruby
[15:51:39] polishdub: has joined #ruby
[15:54:08] conta2: has joined #ruby
[15:54:17] n13z: has joined #ruby
[15:55:54] wolfshappen: has joined #ruby
[15:55:56] n13z: has joined #ruby
[16:11:23] drale2k_: has joined #ruby
[16:12:24] Dbugger: has joined #ruby
[16:17:22] stryek: has joined #ruby
[16:18:26] blackmesa1: has joined #ruby
[16:26:20] marmotini_: has joined #ruby
[16:28:18] AJA4350: has joined #ruby
[16:38:20] venmx: has joined #ruby
[16:48:03] maryo: has joined #ruby
[16:52:25] gix: has joined #ruby
[16:56:10] blackmesa1: has joined #ruby
[16:57:42] Renich: has joined #ruby
[16:58:49] sina: has joined #ruby
[17:00:43] venmx: has joined #ruby
[17:07:40] ogres: has joined #ruby
[17:08:10] orbyt_: has joined #ruby
[17:12:42] aqd: has joined #ruby
[17:13:53] aqd: has joined #ruby
[17:21:44] \void: has joined #ruby
[17:26:57] dinfuehr: has joined #ruby
[17:34:22] havenwood: phaul: nice!
[17:35:10] lxsameer: has joined #ruby
[17:42:30] v01d4lph4: has joined #ruby
[17:45:51] maryo: has joined #ruby
[17:48:03] gix: has joined #ruby
[17:48:54] prestori_: has joined #ruby
[17:49:18] clemens3_: has joined #ruby
[17:51:50] marmotini_: has joined #ruby
[17:53:46] agent_white: has joined #ruby
[17:56:32] dionysus70: has joined #ruby
[18:00:03] maryo: has joined #ruby
[18:00:34] cthulchu: has joined #ruby
[18:04:52] phaul: has joined #ruby
[18:12:52] Paraxial: has joined #ruby
[18:20:39] marmotini_: has joined #ruby
[18:20:47] Paraxial: has joined #ruby
[18:30:52] AndroidKitKat: has joined #ruby
[18:31:27] AndroidKitKat: does ruby differentiate against single and double quotes
[18:31:32] AndroidKitKat: as long as we're consistent
[18:33:15] AJA4350: has joined #ruby
[18:35:30] sauvin: has joined #ruby
[18:37:02] al2o3-cr: has joined #ruby
[18:44:14] marmotini_: has joined #ruby
[18:46:26] mozzarella: AndroidKitKat: yes
[18:46:50] marmotini: has joined #ruby
[18:52:00] oz: has joined #ruby
[18:56:51] blackmesa1: has joined #ruby
[18:58:34] segy: has joined #ruby
[19:07:58] t0xik: has joined #ruby
[19:13:53] blackmesa1: has joined #ruby
[19:14:19] wilbert: has joined #ruby
[19:22:18] flips_: has joined #ruby
[19:29:59] scrptktty: has joined #ruby
[19:31:15] troulouliou_div2: has joined #ruby
[19:31:45] nowhere_man: has joined #ruby
[19:37:57] woodruffw: single quotes don't allow interpolation; double quotes do
[19:38:25] woodruffw: i personally use double quotes everywhere and run `rubocop` to enforce things
[19:41:16] blackmesa1: has joined #ruby
[19:45:19] havenwood: i use single quotes everywhere, unless I'm on a repo with other conventions
[19:45:20] havenwood: ¯\_(ツ)_/¯
[19:49:05] tdy: has joined #ruby
[19:50:37] conta1: has joined #ruby
[19:51:05] orbyt_: has joined #ruby
[19:55:08] woodruffw: yeah, i change to the repo's convention if it doesn't match mine :p
[19:55:19] woodruffw: consistency above all
[20:04:39] jobewan: has joined #ruby
[20:06:06] johnny56_: has joined #ruby
[20:10:20] polishdub: has joined #ruby
[20:20:00] orbyt_: has joined #ruby
[20:50:05] fbrier: has joined #ruby
[20:53:47] fbrier: I installed ruby-libvirt and "gem list" shows it, but RubyMine underlines with the error "no such file to load" for the "require 'libvirt'" statement.
[20:54:56] fbrier: I tried adding "require 'rubygems'" preceding the require in error, but no difference.
[20:59:09] duckpuppy: has joined #ruby
[20:59:10] cagomez: has joined #ruby
[20:59:59] Demos[m]: has left #ruby: ("Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days")
[21:02:01] duckpuppy: has joined #ruby
[21:02:17] orbyt_: has joined #ruby
[21:06:53] johnny56_: has joined #ruby
[21:14:24] havenwood: fbrier: Sounds like RubyMine is using a different Ruby.
[21:15:19] havenwood: fbrier: Do you have a .ruby-version file?
[21:16:24] z64: anyone around that is intimately familiar with Zlib::Inflate? our library wraps a service that provides a streaming zlib transport for websocket messages (i.e., all messages sent over a single zlib context). we buffer deflated messages with Zlib::Infate#<<, and once a byte sequence is read, we call Zlib::Inflate#inflate. this works, but we are seeing a *really* big performance hit over just reading text frames.
[21:16:24] havenwood: fbrier: What's the Ruby version set to in RubyMine? https://www.jetbrains.com/help/ruby/ruby-sdk-and-gems.html
[21:16:25] z64: these messages are really small either way.. any ideas if this can be improved?
[21:25:49] tdy: has joined #ruby
[21:31:40] szulak_: has joined #ruby
[21:32:54] my1es: has joined #ruby
[21:46:31] orbyt_: has joined #ruby
[21:56:08] wolfshappen: has joined #ruby
[21:57:41] cagomez: has joined #ruby
[21:59:52] yokel: has joined #ruby
[22:01:55] havenwood: z64: Is it hard to make a reproduction script that shows the slow speed? How slow?
[22:08:54] blackmesa1: has joined #ruby
[22:15:02] blackmesa1: has joined #ruby
[22:15:16] Inline: has joined #ruby
[22:16:14] awkwords_: has joined #ruby
[22:16:49] fluxAeon: has joined #ruby
[22:22:03] orbyt_: has joined #ruby
[22:25:05] blackmesa: has joined #ruby
[22:42:03] ogres: has joined #ruby
[22:44:59] Renich_: has joined #ruby
[22:49:40] t0xik: has joined #ruby
[22:52:58] blackmesa1: has joined #ruby
[23:00:36] dotemacs: has joined #ruby
[23:02:43] dotemacs: On this page: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-java/ there's talk of WxRuby. But that link is dead. As is the link to FXRuby. Where is the code hosted for the website so that I can create an issue/ticket? Thanks
[23:03:33] havenwood: dotemacs: You can find the website repo here: https://github.com/ruby/www.ruby-lang.org
[23:03:51] havenwood: dotemacs: https://github.com/ruby/www.ruby-lang.org/blob/e54ab05d97618d81cd6229a0d5b749e7d67fc6ff/en/documentation/ruby-from-other-languages/to-ruby-from-java/index.md
[23:15:40] dviola: has joined #ruby
[23:23:49] fbrier: havenwood: Thank you!! I had two Ruby interpreters defined. One ruby-2.2.5-p319 and the other was the Chef DK.
[23:25:31] dotemacs: has left #ruby: ()
[23:30:21] venmx: has joined #ruby
[23:34:08] spacesuitdiver: has joined #ruby
[23:36:08] mangold: has joined #ruby
[23:51:18] endorama: has joined #ruby