« Back to channel list

#ruby - 04 April 2019

« Back 1 day Forward 1 day »
[00:05:44] mangold: has joined #ruby
[00:11:32] duderonomy: has joined #ruby
[00:20:24] crankharder: has joined #ruby
[00:23:48] orbyt_: has joined #ruby
[00:25:07] bambanx: has joined #ruby
[00:39:15] orbyt_: has joined #ruby
[01:06:13] mangold: has joined #ruby
[01:11:44] AJA4351: has joined #ruby
[01:18:10] StarSeed0000: has joined #ruby
[01:21:03] duderonomy: has joined #ruby
[01:29:46] crankharder: has joined #ruby
[01:31:33] doodlebug: has joined #ruby
[01:33:58] doodleb45: has joined #ruby
[01:35:59] jmcgnh_: has joined #ruby
[01:37:26] Renich: has joined #ruby
[01:38:00] Axy: has joined #ruby
[01:38:00] Axy: has joined #ruby
[01:49:03] duderonomy: has joined #ruby
[01:54:29] ur5us: has joined #ruby
[02:00:33] ur5us: has joined #ruby
[02:02:51] doodlebug: has joined #ruby
[02:03:17] duderonomy: has joined #ruby
[02:04:26] GodFather: has joined #ruby
[02:08:16] KeyJoo: has joined #ruby
[02:11:41] duderonomy: has joined #ruby
[02:15:46] duderonomy: has joined #ruby
[02:26:26] t0xik: has joined #ruby
[02:30:56] violentE: has joined #ruby
[02:34:53] duderonomy: has joined #ruby
[02:38:06] violentE: I don't understand what I'm doing wrong, maybe I shouldn't be writing this in ruby https://bpaste.net/show/fd485244b5c7. The first bit there is a ruby script meant to ping a range of ips. which it does and I've included the output. But then if I run fping (similar to ping) it returns more hosts than the ruby script does. why? I took out wait incase that was a problem. idk just need a sanity check
[02:38:37] pwnd_nsfw`: has joined #ruby
[02:39:38] adam12: violentE: Maybe the 1 count is the issue.
[02:40:22] adam12: violentE: I'm not sure of your network or configuration, but a 1 count might mean a dropped packet could cause a failure. And some routers have been known to deprioritize ICMP so that could even compound it.
[02:41:35] adam12: violentE: That said, I'm sure this would likely be fine in Ruby, albeit it with some tweaks. Could use something like the parallel gem to run multiple pings in parallel. You could then remove the 1 count and keep a short wait in case a few of the hosts take too long to respond.
[02:41:42] violentE: just realized thats not latest code https://bpaste.net/show/41a24d7293c1
[02:41:49] violentE: increase count to 3 still the same
[02:42:56] adam12: violentE: It's always the same host? .7?
[02:44:31] adam12: violentE: Out of curiosity, wha'ts the exit status if you run the ping manually? ping -q -c 3 10.10.10.7 ; echo $?
[02:46:45] violentE: that if $?.exitstatus.zero? was when I was trying to Process.wait pid but I decided against that route
[02:47:21] adam12: violentE: Presuming Linux?
[02:47:46] adam12: violentE: Whats the exit code for one of the other ips?
[02:50:21] Renich_: has joined #ruby
[02:50:58] crankharder: has joined #ruby
[02:51:33] adam12: violentE: I doubt this is Ruby related. My guess for this specifically is a differing of how the ICMP packet is generated by fping and ping.
[02:53:44] pwnd_nsfw: has joined #ruby
[02:54:26] adam12: violentE: Maybe fping is wrong and ping is correct? can you verify?
[02:54:27] violentE: oh shit, you're right
[02:54:59] bambanxx: has joined #ruby
[02:55:56] violentE: yup .7 is a thing
[02:56:33] violentE: did an nmap scan on .7 but I didn't have to include -Pn
[02:56:41] violentE: I'm so confused right now
[02:57:11] adam12: violentE: me too. what about just manually pinging .7 with no arguments. Timeouts?
[02:58:34] violentE: yeah it times out
[02:59:35] adam12: violentE: Maybe ICMP is blocked on the machine and nmap/fping can use some sort of SYN or fragmented ICMP packet to determine response. Hard to say and likely way offtopic for this channel.
[02:59:38] jenrzzz: has joined #ruby
[02:59:42] violentE: but if it doesn't respond to icmp request, I wouldn't be able to get results on a basic nmap scan
[03:00:14] violentE: I'm only doing - nmap -sV 10.10.10.7 - nothing fancy
[03:02:27] adam12: violentE: Instead of shelling out to ping you might be able to try using the net-ping gem. It's been a while since I used it so can't comment on it, and last I remember ICMP through it was reasonably unsafe due to packet creation. YMMV
[03:02:45] adam12: violentE: But it might get you another datapoint to see if you can figure out whats wrong. But it sounds like ping is broken :)
[03:04:25] violentE: I was kind of hoping to not use any gems, is there anything off the top of your head that wouldn't involve using a gem
[03:05:36] adam12: violentE: can you use fping?
[03:05:50] adam12: violentE: you could pair ruby + fping if you really wanted. What's your ultimate goal?
[03:06:32] violentE: yes but the purpose is to build a script in ruby. I feel like thats cheating, the bit of ruby then would be the system() bit
[03:07:59] segy: has joined #ruby
[03:08:24] havenwood: violentE: +1 net-ping to see how it implements a solution in pure Ruby
[03:08:34] havenwood: violentE: https://github.com/chernesk/net-ping/blob/master/lib/net/ping/icmp.rb#L91-L95
[03:10:47] tdy: has joined #ruby
[03:11:14] braincrash: has joined #ruby
[03:11:32] violentE: mmmh okay I'll take a look
[03:11:35] adam12: violentE: I'd just shell out to fping instead, but use a single host. You could craft your own packet like havenwood is suggesting, if you feel so inclined.
[03:12:07] havenwood: best tool for the job!
[03:12:28] violentE: this is supposed to be a simple script, maybe I'm over thinking it
[03:12:51] violentE: but I can't go with what I have, its missing data
[03:23:24] Fenhl: has joined #ruby
[03:39:14] jenrzzz: has joined #ruby
[03:40:21] mangold: has joined #ruby
[03:44:13] jenrzzz: has joined #ruby
[03:46:00] crankharder: has joined #ruby
[04:01:00] mr_rich101: has joined #ruby
[04:07:08] jenrzzz: has joined #ruby
[04:16:22] jenrzzz: has joined #ruby
[04:20:30] StarSeed0000: has joined #ruby
[04:38:30] crankharder: has joined #ruby
[04:42:36] ferr: has joined #ruby
[04:45:53] dar123: has joined #ruby
[04:59:18] crankharder: has joined #ruby
[05:05:31] esrse: has joined #ruby
[05:20:48] sauvin: has joined #ruby
[05:21:44] Tau: has joined #ruby
[05:23:39] reber: has joined #ruby
[05:24:11] reber__: has joined #ruby
[05:41:42] eckhardt: has joined #ruby
[05:49:44] v01d4lph4: has joined #ruby
[05:50:56] DmitryBochkarev: has joined #ruby
[05:51:01] crankharder: has joined #ruby
[05:53:15] mniip: has joined #ruby
[05:55:44] DmitryBochkarev: has joined #ruby
[05:57:23] DmitryBochkarev_: has joined #ruby
[05:57:38] duderonomy: has joined #ruby
[05:59:35] dionysus69: has joined #ruby
[06:00:16] jenrzzz: has joined #ruby
[06:04:40] hightower3: has joined #ruby
[06:05:49] dar123: has joined #ruby
[06:07:45] hightower3: has joined #ruby
[06:08:21] dionysus69: has joined #ruby
[06:08:45] Terens: has joined #ruby
[06:13:42] dionysus69: has joined #ruby
[06:14:30] pwnd_nsfw`: has joined #ruby
[06:15:23] schleppel: has joined #ruby
[06:17:02] themsay: has joined #ruby
[06:17:45] lxsameer: has joined #ruby
[06:18:43] ur5us: has joined #ruby
[06:27:47] crankharder: has joined #ruby
[06:30:20] sidx64: has joined #ruby
[06:31:48] dionysus69: has joined #ruby
[06:39:00] SiliconDon: has joined #ruby
[06:42:40] briarcliff: has joined #ruby
[06:48:02] nowhereman: has joined #ruby
[06:52:21] _joes_: has joined #ruby
[06:56:24] ellcs1: has joined #ruby
[06:58:23] andikr: has joined #ruby
[07:01:10] Tempesta_: has left #ruby: ("Closing Channel, bye.")
[07:01:17] Tempesta: has joined #ruby
[07:04:00] crankharder: has joined #ruby
[07:04:18] conta1: has joined #ruby
[07:11:46] Nicmavr: has joined #ruby
[07:15:13] lele: has joined #ruby
[07:16:05] clemens3: has joined #ruby
[07:21:38] lxsameer: has joined #ruby
[07:24:45] crankharder: has joined #ruby
[07:38:03] ur5us: has joined #ruby
[07:42:40] wildermind: has joined #ruby
[07:45:34] crankharder: has joined #ruby
[07:52:41] aufi: has joined #ruby
[07:55:38] alem0lars: has joined #ruby
[07:58:05] alem0lars_: has joined #ruby
[08:01:23] claudiuinberlin: has joined #ruby
[08:02:01] TomyWork: has joined #ruby
[08:03:44] aupadhye: has joined #ruby
[08:04:33] Ai9zO5AP: has joined #ruby
[08:08:00] segy: has joined #ruby
[08:10:15] briarcliff: has joined #ruby
[08:13:33] TomyWork: has joined #ruby
[08:13:37] prestorium: has joined #ruby
[08:14:20] GodFather: has joined #ruby
[08:16:04] andikr: has joined #ruby
[08:21:17] crankharder: has joined #ruby
[08:24:47] ur5us: has joined #ruby
[08:26:09] _joes_: has joined #ruby
[08:31:47] BH23: has joined #ruby
[08:32:26] tdy: has joined #ruby
[08:34:16] ur5us: has joined #ruby
[08:34:23] jenrzzz: has joined #ruby
[08:37:55] Tau: has joined #ruby
[08:38:02] marz_d`ghostman: has joined #ruby
[08:38:54] kyrylo: has joined #ruby
[08:41:55] crankharder: has joined #ruby
[08:46:30] dellavg_: has joined #ruby
[08:56:37] _joes_: has joined #ruby
[08:56:37] DmitryBochkarev: has joined #ruby
[08:56:54] BH23: has joined #ruby
[08:57:22] felipe: has joined #ruby
[08:57:49] jottr: has joined #ruby
[08:58:39] DmitryBochkarev: has joined #ruby
[08:59:22] andikr: has joined #ruby
[09:01:12] dhollin3: has joined #ruby
[09:02:37] crankharder: has joined #ruby
[09:18:58] linduxed: has joined #ruby
[09:19:20] jottr: has joined #ruby
[09:20:16] briarcliff: has left #ruby: ()
[09:22:32] briarcliff: has joined #ruby
[09:24:48] tdy: has joined #ruby
[09:34:03] dviola: has joined #ruby
[09:39:59] crankharder: has joined #ruby
[09:40:35] dar123: has joined #ruby
[09:42:38] briarcliff: has joined #ruby
[09:43:51] Phage: has joined #ruby
[09:43:52] Phage: has joined #ruby
[09:44:42] mangold: has joined #ruby
[09:52:54] ellcs1: has joined #ruby
[10:00:28] sidx64: has joined #ruby
[10:04:14] phaul: has joined #ruby
[10:07:11] UncleCid__: has joined #ruby
[10:12:53] briarcliff: has joined #ruby
[10:14:26] teclator: has joined #ruby
[10:17:38] crankharder: has joined #ruby
[10:22:24] sidx64: has joined #ruby
[10:25:15] doodleb77: has joined #ruby
[10:26:41] doodleb49: has joined #ruby
[10:28:02] aqd: has joined #ruby
[10:28:34] DmitryBochkarev: has joined #ruby
[10:29:34] briarcliff: has joined #ruby
[10:30:04] ferr: has joined #ruby
[10:30:29] ferr: has joined #ruby
[10:31:13] nowhereman: has joined #ruby
[10:31:28] cfjk: has joined #ruby
[10:37:41] nowhere_man: has joined #ruby
[10:39:35] mangold: has joined #ruby
[10:47:05] briarcliff: has joined #ruby
[10:53:22] crankharder: has joined #ruby
[10:59:12] sidx64: has joined #ruby
[11:01:30] doodleb38: has joined #ruby
[11:01:46] Terens: does calling benchmark.bm etc in production has any side effects?
[11:03:51] doodlebug: has joined #ruby
[11:10:15] teclator: has joined #ruby
[11:11:36] AJA4350: has joined #ruby
[11:15:58] sidx64: has joined #ruby
[11:20:45] sidx64: has joined #ruby
[11:23:52] v01d4lph4: has joined #ruby
[11:27:53] kapil____: has joined #ruby
[11:29:05] crankharder: has joined #ruby
[11:43:03] hightower2: has joined #ruby
[11:46:54] sidx64: has joined #ruby
[11:48:13] sidx64: has joined #ruby
[11:59:03] AJA4350: has joined #ruby
[12:02:17] nowhere_man: has joined #ruby
[12:03:12] DTZUZO: has joined #ruby
[12:03:55] DmitryBochkarev: has joined #ruby
[12:04:21] ldnunes: has joined #ruby
[12:04:46] crankharder: has joined #ruby
[12:05:12] DmitryBochkarev_: has joined #ruby
[12:10:51] nowhereman: has joined #ruby
[12:22:47] hightower2: has joined #ruby
[12:33:33] aqd: has joined #ruby
[12:34:32] aqd: has joined #ruby
[12:39:38] sidx64: has joined #ruby
[12:44:09] doodleb52: has joined #ruby
[12:44:16] Liothen-: has joined #ruby
[12:45:21] phaul: has joined #ruby
[12:45:24] doodlebug: has joined #ruby
[12:48:19] InfinityFye: has joined #ruby
[12:48:52] Liothen: has joined #ruby
[12:49:28] Liothen: has joined #ruby
[12:50:11] rubydoc: has joined #ruby
[12:50:13] moei: has joined #ruby
[12:55:27] ldnunes: has joined #ruby
[12:57:42] doodleb71: has joined #ruby
[12:59:04] doodlebug: has joined #ruby
[13:04:29] AJA4351: has joined #ruby
[13:14:22] phaul: has joined #ruby
[13:24:10] jottr_: has joined #ruby
[13:28:01] jottr: has joined #ruby
[13:28:06] TobiFrano: has joined #ruby
[13:34:21] Swyper: has joined #ruby
[13:36:10] sidx64: has joined #ruby
[13:38:11] Swyper: has joined #ruby
[13:40:40] violentE: has joined #ruby
[13:51:31] AJA4351: has joined #ruby
[13:51:41] Inline: has joined #ruby
[14:00:01] segy: has joined #ruby
[14:03:10] dar123: has joined #ruby
[14:09:32] larissa: has joined #ruby
[14:10:38] doodlebug: has joined #ruby
[14:10:41] Rapture: has joined #ruby
[14:17:41] Swyper: has joined #ruby
[14:18:17] Dbugger: has joined #ruby
[14:21:44] segy: has joined #ruby
[14:22:31] v01d4lph4: has joined #ruby
[14:22:45] Tau: has joined #ruby
[14:25:03] lucasb: has joined #ruby
[14:26:26] gigetoo: has joined #ruby
[14:36:34] eckhardt: has joined #ruby
[14:41:18] gigetoo: has joined #ruby
[14:42:16] rbasak: has joined #ruby
[14:44:48] dar123: has joined #ruby
[14:45:04] conta1: has joined #ruby
[14:50:08] AJA4350: has joined #ruby
[14:51:27] rbasak: Hello! Where would be good to post about Ubuntu packages of gems please? I'm an Ubuntu developer and raised something on the Ubuntu developer list. I'd like to connect with the right part of the community on the Ruby side of things. https://lists.ubuntu.com/archives/ubuntu-devel/2019-April/040622.html for details.
[14:51:33] rbasak: For Rails I posted to rubyonrails-talk (awaiting moderation), but the topic also applies to Ruby generally.
[14:51:37] cisco: has joined #ruby
[14:52:33] mangold: has joined #ruby
[14:54:16] BrianWGray: has joined #ruby
[14:55:46] tdy: has joined #ruby
[14:59:00] DmitryBochkarev_: has joined #ruby
[15:04:51] polishdub: has joined #ruby
[15:05:49] n13z: has joined #ruby
[15:09:06] hightower2: has joined #ruby
[15:10:56] mangold: has joined #ruby
[15:15:26] houhoulis: has joined #ruby
[15:29:18] rippa: has joined #ruby
[15:36:27] towo: Noobish question here. If I have a class and inherit like `class foo < bar`, is bar's initialize() called?
[15:36:53] orbyt_: has joined #ruby
[15:37:07] phaul: if you don't override it with foo'sinitialize. Otherwise you can call super
[15:38:42] phaul: initialize is not a special method, works exactly like any other. The new method on the class first allocates an object then calls initialize on it, with normal method lookup
[15:39:58] DTZUZO: has joined #ruby
[15:42:32] towo: phaul: (Beware, I may be wrong on terms here) So is the class foo an instanced bar? https://github.com/rubocop-hq/ruby-style-guide#single-line-classes seems to imply this. For context, I'm trying to extend https://github.com/puppetlabs/puppetlabs-ruby_task_helper/blob/master/files/task_helper.rb to have some common objects already instanced and don't need to do it for every inheriting class
[15:44:00] towo: i.e. class SomethingTask < TaskHelper begin (something) foo = bar.baz(quux) end; and in class SomeSubTask < SomethingTask I can use foo.
[15:44:35] towo: (Yes, I'm learning Ruby with the "welp, learn to swim already, you're in the ocean" approach...)
[15:46:25] phaul: oh. You are trying to define local var in the class definition? Local vars are local. They are lexically bound to the scope they are defined in
[15:46:29] ua: has joined #ruby
[15:46:50] phaul: Other class definitions won't see it, even methods in that class won't see it
[15:47:08] phaul: they slip though block definitions but that's all
[15:47:45] gigetoo: has joined #ruby
[15:47:57] towo: I figured I was trying to be too fancy.
[15:48:58] towo: Any common practices on getting some objects (assigned to variables) to be there when making a new class? Or is that just not a thing?
[15:49:35] phaul: it is a thing, but I am sure if I tell you how I will send you down the wrong path
[15:50:05] phaul: it's almost certeanly not what you want, only useful in meta programming triicks
[15:50:36] crankharder: has joined #ruby
[15:50:37] towo: Fair enough. What should I look up instead? Don't need you to fully lay this out for me, just give me some hints for ze googles. :)
[15:51:21] phaul: do you want the value stored in the variable to be part of an instance of the class? do you want the value to belong to the class itself?
[15:53:18] towo: Hm; in the end, as far as I understand the constructs used, there'll only be my one object anyway; I don't need to reuse the values between instances as there is only one; main point is saving on code, as there will be multiple different sub-classes (which only ever get instantiated once)
[15:54:12] towo: At the front end, there's this tool just calling a ruby file and passing structured json on stdin, so no special magic sauce at any point needed, AFAIK
[15:55:34] phaul: can you use a module instead of the class? and in the module you can get into the singleton class of it and just use instance variables. Let me demonstrate...
[15:57:08] towo: Well, I can do pretty much anything I want, really, since the front end AFAIK just does 'RUBYLIB=some:special:dirs echo $json | ruby $file.rb'
[15:57:28] towo: Maybe with more fancy stuff surrounding it, but that seems to be the gist of it
[15:57:55] towo: The task_helper I linked above is just some fancy aid to help with the meta issues
[15:59:49] phaul: &>> module X; class<< self ;attr_accessor :foo; def bar; self.foo * 3; end; end; end; X.foo = 10; p [X.foo, X.bar]
[15:59:51] rubydoc: # => [10, 30] (https://carc.in/#/r/6nhx)
[16:00:42] phaul: so here X has a value foo, you can only have 1 X, so it's already a singleton, and bar on X can access it
[16:01:48] phaul: ( you can also refer to foo as @foo inside the class<<self block
[16:02:28] reber: has joined #ruby
[16:03:26] phaul: an other way would be with Singleton
[16:05:23] towo: Still parsing that mentally, stand by. :)
[16:06:56] phaul: I phrased this really confusingly: "here X has a value foo" .. read it as here X.foo is defined
[16:06:58] towo: Hmm, still trying to see how I'd implement that... I'd write a module and use the accessors in my common code to set up the object instances I need, so i.e. MyModule.foo = bar.baz(quux); and then I can use another function like MyModule.bar that can use the things defined for foo?
[16:08:00] bougyman: google is failing me on how to convert the string "1.345e8" to a number
[16:08:15] bougyman: I swore I used something called BigNumber for this before. But I can't find that, either.
[16:08:23] phaul: Integer "1.345e8"
[16:08:33] bougyman: I just tried that
[16:08:46] bougyman: [6] pry(main)> Integer '1.345e8'
[16:08:46] bougyman: ArgumentError: invalid value for Integer(): "1.345e8"
[16:09:12] havenwood: &>> require 'bigdecimal'; require 'bigdecimal/util'; "1.345e8".to_d
[16:09:14] towo: Float.new('1.345e8').to_i?
[16:09:15] rubydoc: # => 0.1345e9 (https://carc.in/#/r/6nhy)
[16:09:22] towo: apparently not
[16:09:23] bougyman: [7] pry(main)> 1.345e8
[16:09:23] bougyman: => 134500000.0
[16:09:26] bougyman: I don't need the decimal place.
[16:09:41] bougyman: and i'm not gonna eval the thing.
[16:10:40] bougyman: [8] pry(main)> num = '1.345e8'
[16:10:40] bougyman: => "1.345e8"
[16:10:40] bougyman: [9] pry(main)> num.to_f
[16:10:40] bougyman: => 134500000.0
[16:10:46] havenwood: bougyman: How about: "1.345e8".to_d.to_i
[16:10:53] bougyman: [10] pry(main)> num.to_f.to_i.to_s
[16:10:53] bougyman: => "134500000"
[16:13:09] phaul: &>> require 'singleton'; class X; include Singleton ; attr_accessor :foo; def bar; self.foo * 3; end; end; x= X.instance ; x.foo = 10; p [x.foo, x.bar] # towo
[16:13:09] rubydoc: # => [10, 30] (https://carc.in/#/r/6nhz)
[16:13:25] phaul: towo: if you would like to have a class rather than a module
[16:13:47] gix: has joined #ruby
[16:14:03] towo: phaul: that would make still using the TaskHelper easier. Thanks a bunch!
[16:17:42] crankharder: has joined #ruby
[16:17:57] phaul: the difference is that in the former foo lives in the module, which cannot be instantiated, in the latter foo lives in the single instance of the class
[16:18:27] towo: Yeah, I think I *roughly* understand the pros/cons.
[16:18:42] Emmanuel_Chanel: has joined #ruby
[16:19:30] zachk: has joined #ruby
[16:24:53] eckhardt: has joined #ruby
[16:25:33] zachk: has joined #ruby
[16:26:29] Terens: has joined #ruby
[16:30:18] hoffentl1chja: has left #ruby: ()
[16:33:51] cschneid: has joined #ruby
[16:35:25] plantroon: has joined #ruby
[16:36:43] orbyt_: has joined #ruby
[16:41:11] plantroon: has left #ruby: ("WeeChat 2.3")
[16:42:18] DmitryBochkarev_: has joined #ruby
[16:56:50] ivanskie: has joined #ruby
[16:58:25] bambanx: has joined #ruby
[17:16:46] aqd: has joined #ruby
[17:20:31] lxsameer: has joined #ruby
[17:25:34] Guest52407: has joined #ruby
[17:28:50] StarSeed0000: has joined #ruby
[17:30:03] cliluw: has joined #ruby
[17:34:59] Terens: has joined #ruby
[17:36:31] hiroaki: has joined #ruby
[17:42:18] doodleb88: has joined #ruby
[17:43:09] v01d4lph4: has joined #ruby
[17:45:16] doodlebug: has joined #ruby
[17:50:54] cliluw: has joined #ruby
[17:51:41] Nicmavr: has joined #ruby
[17:53:01] rprimus: has joined #ruby
[17:54:06] pwnd_nsfw`: has joined #ruby
[17:57:30] havenwood: "on March 31, 2019, all support of the Ruby 2.3 series ends"
[17:57:34] havenwood: ACTION checks the calendar
[17:59:48] havenwood: 2.3 is dead! Long live 2.6!
[18:00:13] ivanskie: has joined #ruby
[18:00:48] havenwood: 2.4 is now in security maintenance mode - so no more bug fixes. Time to bump to 2.5 or 2.6 if you haven't already!
[18:05:15] hightower2: has joined #ruby
[18:16:20] code_zombie: has joined #ruby
[18:26:49] orbyt_: has joined #ruby
[18:27:26] sharma: has joined #ruby
[18:27:47] sharma: can I post about jobs here
[18:28:26] also_uplime: has joined #ruby
[18:32:00] havenwood: sharma: if they're Ruby jobs!
[18:35:05] segy: has joined #ruby
[18:37:09] ua: has joined #ruby
[18:37:52] jenrzzz: has joined #ruby
[18:42:04] aqd: has joined #ruby
[18:44:11] sharma: Opportunity to be a Senior Backend Engineer at a VC funded startup. 2-5 yrs exp. and expertise in Ruby On Rails required. https://flow.invidelabs.com/jobPosting/5c80d2cb9e591c8421a92377
[19:04:09] Lytol: has joined #ruby
[19:12:50] briarcliff: has joined #ruby
[19:13:42] wallace_mu: has joined #ruby
[19:16:00] wallace_mu: anyone know what's the correct syntax for alias_method? i am monkey patching a method from a class and that class is under a module, here is the gist https://gist.github.com/warm200/f18f217de1f4a942417d194d4b2b3fb0
[19:16:23] wallace_mu: module ActiveSupport::Cache::Store # Store is actually a class but i don't know the correct way to put it
[19:24:56] wallace_mu: nvm figured out, should just define class under
[19:25:06] wallace_mu: has left #ruby: ()
[19:26:40] briarcliff: has joined #ruby
[19:31:37] noboruma: has joined #ruby
[19:35:09] jenrzzz: has joined #ruby
[19:38:46] shortdudey123: has joined #ruby
[19:39:35] troulouliou_div2: has joined #ruby
[19:43:36] zleap: has joined #ruby
[19:43:36] zleap: has joined #ruby
[19:49:50] zapata: has joined #ruby
[19:49:57] Swyper: has joined #ruby
[19:59:59] orbyt_: has joined #ruby
[20:00:32] AJA4350: has joined #ruby
[20:04:12] kyrylo: has joined #ruby
[20:05:27] troulouliou_div2: has joined #ruby
[20:07:03] jenrzzz: has joined #ruby
[20:09:12] nowhereman: has joined #ruby
[20:10:10] jottr: has joined #ruby
[20:17:09] jenrzzz: has joined #ruby
[20:22:36] cisco: has joined #ruby
[20:31:17] SeepingN: has joined #ruby
[20:34:29] d10n-work: has joined #ruby
[20:35:45] zleap: has joined #ruby
[20:38:16] doodleb53: has joined #ruby
[20:40:26] doodleb17: has joined #ruby
[20:41:34] doodlebug: has joined #ruby
[20:42:12] lucasb: has joined #ruby
[20:43:46] cisco: has joined #ruby
[20:43:50] doodlebug: has joined #ruby
[20:44:28] AJA4350: has joined #ruby
[20:48:46] fredolinhares: has joined #ruby
[20:48:53] hightower2: has joined #ruby
[20:49:58] graft: has joined #ruby
[21:03:13] ur5us: has joined #ruby
[21:10:37] priodev: has joined #ruby
[21:11:07] AJA4351: has joined #ruby
[21:13:38] jenrzzz: has joined #ruby
[21:13:56] SeepingN: has joined #ruby
[21:14:59] Terens: has joined #ruby
[21:17:14] troulouliou_div2: has joined #ruby
[21:20:15] crankharder: has joined #ruby
[21:22:01] shortdudey123: has joined #ruby
[21:22:05] kent\n: has joined #ruby
[21:22:08] priodev: has joined #ruby
[21:22:21] AJA4350: has joined #ruby
[21:22:53] shortdudey123: has joined #ruby
[21:25:16] crankhar1er: has joined #ruby
[21:25:56] spacesuitdiver: has joined #ruby
[21:27:47] AJA4350: has joined #ruby
[21:29:47] sagax: has joined #ruby
[21:30:53] crankharder: has joined #ruby
[21:31:49] mahlon: has joined #ruby
[21:36:03] orbyt_: has joined #ruby
[21:41:35] aufi: has joined #ruby
[21:54:25] yokel: has joined #ruby
[21:54:36] wallace_mu: has joined #ruby
[21:59:25] orbyt_: has joined #ruby
[22:00:38] yokel: has joined #ruby
[22:18:00] shortdudey123: has joined #ruby
[22:18:50] noboruma: has joined #ruby
[22:25:16] bambanx: has joined #ruby
[22:29:04] AJA4350: has joined #ruby
[22:38:25] wallace_mu: has joined #ruby
[22:41:20] D9: has joined #ruby
[22:50:23] shortdudey123: has joined #ruby
[22:58:32] shortdudey123: has joined #ruby
[23:12:02] shortdudey123: has joined #ruby
[23:12:09] TreyG: has joined #ruby
[23:15:21] terabytes: has joined #ruby
[23:16:11] riceandbeans: has joined #ruby
[23:17:04] shortdudey123: has joined #ruby
[23:17:13] riceandbeans: What's the net/http version of curl -s -i -H "Accept: application/json" example.com/routehere
[23:19:33] shortdudey123: has joined #ruby
[23:20:07] riceandbeans: https://bin.disroot.org/?7f3da819d3bcf444#p+znpiw8LgyE+45QBj/TStSDf+wSq2FBNuXqJqgH4D8=
[23:23:53] mikeiniowa: has joined #ruby
[23:27:21] AJA4351: has joined #ruby
[23:34:15] havenwood: riceandbeans: https://bin.disroot.org/
[23:34:28] havenwood: riceandbeans: i mean: https://bin.disroot.org/?6499b55a4e60d37c#InZ0lXcOzYosTylsftFsEJhgCwKpHy8aXxuv0fix6Kk=
[23:35:29] orbyt_: has joined #ruby
[23:36:15] havenwood: riceandbeans: should be `request["Accept"] = "application/json"`, right?
[23:36:46] havenwood: riceandbeans: (the response header will be "Content-Type")
[23:38:13] havenwood: What you you all expect the result to be for this??:
[23:38:18] havenwood: (0..).cover?(..0)
[23:40:13] havenwood: (valid code in Ruby 2.7, but not the return value I expected)
[23:51:11] _whitelogger: has joined #ruby
[23:56:47] havenwood: https://jhawthorn.github.io/curl-to-ruby/
[23:56:48] havenwood: riceandbeans: ^