« Back to channel list

#ruby - 26 September 2017

« Back 1 day Forward 1 day »
[00:07:59] bambanx: has joined #ruby
[00:19:16] pilne: has joined #ruby
[00:30:04] mikecmpbll: has joined #ruby
[00:34:39] Algebr: and now I am in directory of compiled code, with a .so and .rb, and I did require './unf_ext' but I get LoadError: cannot load such file -- unf_ext.so. The arch is the right one...so...why can't it load?
[00:36:22] __Yiota: has joined #ruby
[00:37:11] bmurt: has joined #ruby
[00:37:46] Algebr: okay, I did $: << "." (also what is $:, GEM PATH? LOAD PATH?), and tried using library and got seg fault.
[00:38:55] ivanskie: has joined #ruby
[00:39:06] orbyt_: has joined #ruby
[00:43:18] workmad3: has joined #ruby
[00:45:18] griffindy: has joined #ruby
[00:46:47] ramfjord: has joined #ruby
[00:50:38] workmad3_: has joined #ruby
[00:52:25] sp4rrow: has joined #ruby
[00:52:44] ramfjord: has joined #ruby
[00:59:35] imode: has joined #ruby
[01:00:45] elsevero: has joined #ruby
[01:04:20] ramfjord: has joined #ruby
[01:07:43] gizmore|2: has joined #ruby
[01:09:24] Algebr: does ruby have an equivalent of python's import pdb; pdb.set_trace()
[01:10:19] ramfjord: has joined #ruby
[01:10:25] Alina-malina: has joined #ruby
[01:11:54] elomatreb: Algebr: You want a debugger? https://github.com/deivid-rodriguez/byebug is the most common one
[01:12:45] Algebr: oh this is nice
[01:13:27] nankyoku_: has joined #ruby
[01:13:36] Algebr: ' Proper documentation will be eventually written.' lol, software projects
[01:16:53] ramfjord: has joined #ruby
[01:18:00] enterprisey: has joined #ruby
[01:24:36] nicesignal: has joined #ruby
[01:26:34] modlin: has joined #ruby
[01:28:57] arescorpio: has joined #ruby
[01:32:03] uZiel: has joined #ruby
[01:32:29] enko: has joined #ruby
[01:33:58] elsevero: has joined #ruby
[01:36:19] enko: has joined #ruby
[01:39:05] conner: has joined #ruby
[01:41:39] ramfjord: has joined #ruby
[01:41:47] jphase: has joined #ruby
[01:42:36] LockPickingDev: new to Ruby - was curious if anyone could show me how I would do this without global variables (the correct way)? https://gist.github.com/anonymous/066c41ff1aa7e19ecd70e46e4e3bb884
[01:43:35] nofxx: LockPickingDev, CITIES = [] , a constant
[01:43:48] nofxx: you may also .freeze in the end, as best practice
[01:50:28] LockPickingDev: thanks for your help
[01:50:59] jphase: has joined #ruby
[01:53:11] ramfjord: has joined #ruby
[01:54:30] mim1k: has joined #ruby
[01:55:41] raynold: has joined #ruby
[01:58:42] d^sh: has joined #ruby
[01:59:10] ramfjord: has joined #ruby
[01:59:40] harfangk: has joined #ruby
[01:59:42] cdg: has joined #ruby
[02:02:26] cdg: has joined #ruby
[02:04:47] jphase: has joined #ruby
[02:05:06] ramfjord: has joined #ruby
[02:05:55] enterprisey: has joined #ruby
[02:08:45] nankyokusei: has joined #ruby
[02:10:41] nankyoku_: has joined #ruby
[02:11:18] ramfjord: has joined #ruby
[02:13:55] jphase: has joined #ruby
[02:17:31] ramfjord: has joined #ruby
[02:23:05] jphase: has joined #ruby
[02:24:34] __Yiota: has joined #ruby
[02:27:18] orbyt_: has joined #ruby
[02:29:12] workmad3: has joined #ruby
[02:34:46] workmad3: has joined #ruby
[02:36:16] ramfjord: has joined #ruby
[02:37:16] tamouse__: has joined #ruby
[02:42:01] ramfjord: has joined #ruby
[02:44:46] cdg: has joined #ruby
[02:46:00] jphase: has joined #ruby
[02:51:58] Ouchy`w: has joined #ruby
[02:53:17] Ouchy: has joined #ruby
[02:54:18] podlech: has joined #ruby
[02:55:28] podlech: has joined #ruby
[02:57:02] tamouse__: has joined #ruby
[02:59:45] jphase: has joined #ruby
[03:08:57] jphase: has joined #ruby
[03:09:50] cschneid_: has joined #ruby
[03:12:38] ornerymoose: has joined #ruby
[03:17:02] Algebr: has joined #ruby
[03:18:10] jphase: has joined #ruby
[03:20:55] mbr: has joined #ruby
[03:25:14] hlmjr: has joined #ruby
[03:27:30] harai: has joined #ruby
[03:32:26] cschneid_: has joined #ruby
[03:34:04] Ouchy: has joined #ruby
[03:34:04] Ouchy: has joined #ruby
[03:36:38] gix: has joined #ruby
[03:39:33] dviola: has joined #ruby
[03:41:04] jphase: has joined #ruby
[03:41:31] WxW: has joined #ruby
[03:42:29] uZiel: has joined #ruby
[03:48:28] milardovich: has joined #ruby
[03:49:04] Cohedrin_: has joined #ruby
[03:50:08] s2013: has joined #ruby
[03:50:14] jphase: has joined #ruby
[03:55:02] mim1k: has joined #ruby
[04:00:51] milardovich: has joined #ruby
[04:03:59] jphase: has joined #ruby
[04:04:48] electrostat_: has joined #ruby
[04:17:45] jphase: has joined #ruby
[04:20:16] eckhardt: has joined #ruby
[04:22:42] Jameser: has joined #ruby
[04:26:56] jphase: has joined #ruby
[04:26:57] jamesaxl: has joined #ruby
[04:27:19] ramfjord: has joined #ruby
[04:37:56] milardovich: has joined #ruby
[04:47:48] ramfjord: has joined #ruby
[04:49:51] jamesaxl: has joined #ruby
[04:51:01] bigkevmcd: has joined #ruby
[04:53:28] mim1k: has joined #ruby
[04:54:36] jamesaxl: has joined #ruby
[04:55:47] enko: has joined #ruby
[04:56:18] enko: has joined #ruby
[05:01:06] enterprisey: has joined #ruby
[05:05:20] ur5us: has joined #ruby
[05:06:09] milardovich: has joined #ruby
[05:06:36] harfangk: has joined #ruby
[05:07:31] d^sh: has joined #ruby
[05:10:13] mkali: has joined #ruby
[05:14:17] tAn: has joined #ruby
[05:16:43] Jameser: has joined #ruby
[05:18:26] kaibro: has joined #ruby
[05:20:34] ozcanesen: has joined #ruby
[05:21:11] ramfjord: has joined #ruby
[05:22:05] Bock: has joined #ruby
[05:23:04] A124: has joined #ruby
[05:24:29] ozcanesen: has joined #ruby
[05:25:41] nocaberi: has joined #ruby
[05:26:06] bigkevmcd: has joined #ruby
[05:29:05] phaul: has joined #ruby
[05:30:56] harai: has joined #ruby
[05:31:10] Dimik: has joined #ruby
[05:33:37] rippa: has joined #ruby
[05:36:45] ramfjord: has joined #ruby
[05:37:24] govg: has joined #ruby
[05:37:57] aupadhye: has joined #ruby
[05:41:35] jamesaxl: has joined #ruby
[05:45:43] alex``: has joined #ruby
[05:47:36] anisha: has joined #ruby
[05:54:11] _whitelogger: has joined #ruby
[05:57:26] harai: has joined #ruby
[05:57:31] Alina-malina: has joined #ruby
[05:58:38] jphase: has joined #ruby
[06:03:28] Jameser: has joined #ruby
[06:04:14] milardovich: has joined #ruby
[06:05:55] jenrzzz: has joined #ruby
[06:07:54] ldepandis: has joined #ruby
[06:11:02] ivanskie: has joined #ruby
[06:11:05] MrBismuth: has joined #ruby
[06:12:23] jphase: has joined #ruby
[06:15:23] cschneid_: has joined #ruby
[06:17:12] cschneid_: has joined #ruby
[06:19:00] Jameser: has joined #ruby
[06:21:39] jphase: has joined #ruby
[06:30:41] naprimer2: has joined #ruby
[06:33:57] Puffball: has joined #ruby
[06:34:16] InfinityFye: has joined #ruby
[06:34:36] ShekharReddy: has joined #ruby
[06:35:20] jphase: has joined #ruby
[06:38:12] shime: has joined #ruby
[06:43:12] andikr: has joined #ruby
[06:43:38] Silthias1: has joined #ruby
[06:45:44] milardovich: has joined #ruby
[06:46:41] conta: has joined #ruby
[06:47:32] raynold: has joined #ruby
[06:49:06] jphase: has joined #ruby
[06:49:07] nankyokusei: has joined #ruby
[06:49:21] shime: has joined #ruby
[06:51:39] marr: has joined #ruby
[06:53:04] burgestrand: has joined #ruby
[06:55:36] rabajaj: has joined #ruby
[06:55:56] jnollette: has joined #ruby
[06:57:32] harfangk: has joined #ruby
[06:58:16] jphase: has joined #ruby
[07:06:29] biberu: has joined #ruby
[07:07:13] huyderman: has joined #ruby
[07:07:15] d5sx43: has joined #ruby
[07:07:26] jphase: has joined #ruby
[07:07:53] govg: has joined #ruby
[07:08:11] jxv: has joined #ruby
[07:08:32] aupadhye: has joined #ruby
[07:08:48] nobitanobi: has joined #ruby
[07:09:58] TomyWork: has joined #ruby
[07:12:17] lacuna: has joined #ruby
[07:14:30] tAn: has joined #ruby
[07:17:02] mark_66: has joined #ruby
[07:20:46] avelldiroll: has joined #ruby
[07:21:00] jnollette_: has joined #ruby
[07:22:13] jnollette: has joined #ruby
[07:22:47] snickers: has joined #ruby
[07:23:03] claudiuinberlin: has joined #ruby
[07:26:30] Silthias: has joined #ruby
[07:29:11] jinie: has joined #ruby
[07:30:21] lxsameer: has joined #ruby
[07:30:22] jphase: has joined #ruby
[07:32:15] gix-: has joined #ruby
[07:33:21] ur5us: has joined #ruby
[07:36:58] ramfjord: has joined #ruby
[07:37:44] Ouchy`w: has joined #ruby
[07:39:36] jphase: has joined #ruby
[07:41:18] im0nde: has joined #ruby
[07:42:42] aufi: has joined #ruby
[07:42:56] ts_: has joined #ruby
[07:45:01] cdg: has joined #ruby
[07:45:57] claudiuinberlin: has joined #ruby
[07:51:36] elsevero: has joined #ruby
[07:53:22] jphase: has joined #ruby
[07:54:01] dionysus69: has joined #ruby
[07:56:18] mikecmpbll: has joined #ruby
[08:03:50] shime: has joined #ruby
[08:07:07] jphase: has joined #ruby
[08:12:05] ldepandis: has joined #ruby
[08:16:24] bigkevmcd: has joined #ruby
[08:17:28] sp4rrow: has joined #ruby
[08:18:19] sp4rrow: has joined #ruby
[08:19:07] sp4rrow: has joined #ruby
[08:20:15] sp4rrow: has joined #ruby
[08:20:51] jphase: has joined #ruby
[08:20:59] sp4rrow: has joined #ruby
[08:24:04] mim1k: has joined #ruby
[08:24:16] ldepandis: has joined #ruby
[08:25:46] drptbl: has joined #ruby
[08:27:57] ldepandis: has joined #ruby
[08:31:08] dionysus69: hello everyone
[08:31:19] dionysus69: i have a object initialization but I have no idea where the lib for it is
[08:31:53] dionysus69: Antpool::API.new for example, there's no gem that would be including it or any lib files that contain the class definition
[08:32:53] claudiuinberlin: has joined #ruby
[08:34:47] jphase: has joined #ruby
[08:37:07] tvw: has joined #ruby
[08:38:14] teatime: dionysus69: can try Antpool::API.method(:new).source_location ?
[08:38:26] dionysus69: I did try that yesterday
[08:38:43] burgestrand: It's likely because `new` is typically defined in C and inherited
[08:39:16] dionysus69: so is there way to track where that is coming from?
[08:39:18] matthewd: One of the instance methods might have more luck
[08:39:27] burgestrand: dionysus69 Try one of the instance methods instead, like matthewd said
[08:39:28] nobitanobi: has joined #ruby
[08:39:42] dionysus69: hmm ok I'll try :)
[08:39:46] burgestrand: dionysus69 Another way is to inspect `$LOADED_FEATURES` and see if you can find something that looks suspicious
[08:40:19] burgestrand: If all that fails, I believe you could possibly use the Tracepoint API to hook in to when the module gets defined
[08:40:32] ldepandis: has joined #ruby
[08:40:36] dionysus69: `$LOADED_FEATURES` returns empty string
[08:41:11] burgestrand: dionysus69 it should contain an array of strings, what version of ruby are you using and are you positive that you typed it correctly?
[08:41:27] dionysus69: btw are any of you into cryptocurrency? looking for bitcoin core ruby implementation
[08:42:05] dionysus69: ye I just did `$LOADED_FEATURES` I have 2.4.1
[08:42:36] burgestrand: >> $LOADED_FEATURES
[08:42:37] ruby[bot]: Burgestrand: # => ["enumerator.so", "thread.rb", "rational.so", "complex.so", "/execpad/interpreters/ruby-2.3.0/lib/ru ...check link for more (https://eval.in/868218)
[08:43:27] dionysus69: ok I thought by `` you meant bash call
[08:47:19] dionysus69: Antpool::API.methods.each { |m| puts Antpool::API.method(m).source_location }
[08:47:28] dionysus69: only outputs rails related locations, nothing external
[08:48:10] matthewd: dionysus69: Are you confused about the source of the entire Antpool::* namespace, or just 'API'?
[08:48:21] jphase: has joined #ruby
[08:48:27] dionysus69: just entire Antpool class
[08:48:55] dionysus69: it has to be defined somewhere in order for me initialize it right
[08:49:46] dionysus69: ok I ll post the location when I find it :D
[08:50:11] burgestrand: Pry might be helpful, by the way, it has a `show-source` command that allows you to target a module and I guess it pretty much looks up everything in it
[08:50:16] matthewd: $LOADED_FEATURES.grep(/ant/i)
[08:50:43] matthewd: git grep -i ant Gemfile
[08:51:24] matthewd: And then failing either of those, just pore over `git grep Antpool`
[08:51:27] sekmo: has joined #ruby
[08:52:15] matthewd: Oh, you were looking at other class methods
[08:52:59] matthewd: Antpool::API.instance_methods.each { |m| puts Antpool::API.instance_method(m).source_location }
[08:54:05] jaruga: has joined #ruby
[08:54:25] phaul: has joined #ruby
[08:57:56] lxsameer: has joined #ruby
[09:00:03] mim1k: has joined #ruby
[09:02:09] jphase: has joined #ruby
[09:04:05] jhass: has joined #ruby
[09:07:06] kassav_: has joined #ruby
[09:11:46] dionysus69: matthewd: thanks allot
[09:12:00] dionysus69: just discovered strange thing
[09:12:29] dionysus69: git grep Antpool > app/lib/antpool/api.rb:module Antpool
[09:12:41] dionysus69: there's no such dir though in lib
[09:14:18] nankyoku_: has joined #ruby
[09:15:52] jphase: has joined #ruby
[09:16:00] cschneid_: has joined #ruby
[09:17:06] ts_: has joined #ruby
[09:18:41] matthewd: That's app/lib
[09:18:52] dionysus69: I was looking at root/lib stupid me
[09:19:14] dionysus69: never heard of anyone using app/lib before now
[09:22:42] ams__: has joined #ruby
[09:24:45] dronov: has joined #ruby
[09:27:16] ldepandis: has joined #ruby
[09:32:03] Silthias1: has joined #ruby
[09:37:04] ramfjord: has joined #ruby
[09:38:12] tvw: has joined #ruby
[09:39:47] t-recx: has joined #ruby
[09:41:02] quobo: has joined #ruby
[09:47:45] Serpent7776: has joined #ruby
[09:47:50] mkali: has joined #ruby
[09:57:49] ldepandis: has joined #ruby
[10:01:54] wald0: has joined #ruby
[10:06:45] sagax: has joined #ruby
[10:08:58] sagax: has joined #ruby
[10:11:45] Bhootrk_: has joined #ruby
[10:35:09] ldepandis: has joined #ruby
[10:35:19] rafadc: has joined #ruby
[10:39:11] selim: has joined #ruby
[10:41:15] dextrey: has joined #ruby
[10:42:54] apparition: has joined #ruby
[10:45:06] InfinityFye: has joined #ruby
[10:53:04] Qchmqs__: has joined #ruby
[10:53:44] clemens3: has joined #ruby
[10:55:22] LazerCat: has joined #ruby
[10:59:27] charliesome: has joined #ruby
[11:03:41] woodruffw: has joined #ruby
[11:03:41] woodruffw: has joined #ruby
[11:09:04] bhator3: has joined #ruby
[11:10:58] bhator3: Hi ! My name is Siddharth Bhatore. I am a research student at IIIT Hyderabad. I am using Ruby in my Rails application for 3 years. Now, I want to contribute back to the community. Can someone get me started ?
[11:12:02] marahin: bhator3: https://github.com/rails/rails#contributing → http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html → https://github.com/rails/rails/issues
[11:12:30] bhator3: Thank you so much marahin. Any other tips ?
[11:13:24] bhator3: And I want to contribute to ruby. Thanks.
[11:13:52] marahin: Ah, sorry, I have both channels next to each other :) and I've seen "Rails" in your message, that's why I assumed you mean Rails. Sorry!
[11:14:58] bhator3: Ok. So any tips on contributing to ruby ?
[11:15:05] marahin: bhator3: https://github.com/ruby/ruby/blob/trunk/CONTRIBUTING.md this would suit you I believe :)
[11:15:25] bhator3: I have contributed to rails before.
[11:22:53] j0rdj0rd_: has joined #ruby
[11:23:05] Qchmqs__: has joined #ruby
[11:26:19] claudiuinberlin: has joined #ruby
[11:29:51] anisha_: has joined #ruby
[11:34:26] jphase: has joined #ruby
[11:37:14] ramfjord: has joined #ruby
[11:38:00] bhator3: https://bugs.ruby-lang.org/projects/ruby-trunk/issues?set_filter=1&tracker_id=1
[11:38:22] bhator3: Is this the link to track bugs in ruby ?
[11:40:33] bhator3: Also its great to see japanese spilled all over.
[11:41:46] tcopeland: has joined #ruby
[11:50:26] dminuoso: has joined #ruby
[11:52:36] ocn: has joined #ruby
[11:53:04] ocn: has left #ruby: ()
[11:53:53] bauruine: has joined #ruby
[11:55:50] bruno-: has joined #ruby
[11:59:02] mtkd: has joined #ruby
[12:00:18] milardovich: has joined #ruby
[12:02:31] synthroid: has joined #ruby
[12:04:47] mikecmpb_: has joined #ruby
[12:07:51] rafadc: has joined #ruby
[12:11:47] dextrey: has joined #ruby
[12:15:31] claudiuinberlin: has joined #ruby
[12:19:36] corezero: has joined #ruby
[12:21:09] __Yiota: has joined #ruby
[12:29:58] nicesignal: has joined #ruby
[12:31:10] kapil___: has joined #ruby
[12:33:25] rafadc_: has joined #ruby
[12:34:25] s2013: has joined #ruby
[12:38:59] bmurt: has joined #ruby
[12:43:38] sepp2k: has joined #ruby
[12:51:11] burgestrand: has joined #ruby
[12:55:50] workmad3: has joined #ruby
[12:57:00] milardovich: has joined #ruby
[12:59:19] griffindy: has joined #ruby
[13:03:03] Mayur: has joined #ruby
[13:05:34] shinnya: has joined #ruby
[13:06:58] gnufied: has joined #ruby
[13:10:45] milardovich: has joined #ruby
[13:10:50] cdg: has joined #ruby
[13:10:51] orbyt_: has joined #ruby
[13:12:14] milardovich: has joined #ruby
[13:24:44] duckpupp1: has joined #ruby
[13:28:52] ldepandis: has joined #ruby
[13:32:59] DLSteve_: has joined #ruby
[13:35:03] coreteam: has joined #ruby
[13:35:16] Xiti`: has joined #ruby
[13:35:22] bmurt: has joined #ruby
[13:35:35] jordanm: has joined #ruby
[13:37:31] ramfjord: has joined #ruby
[13:40:56] tamouse__: has joined #ruby
[13:41:52] banisterfiend: has joined #ruby
[13:43:59] oleo: has joined #ruby
[13:44:00] chouhoulis: has joined #ruby
[13:44:42] claudiuinberlin: has joined #ruby
[13:44:51] Siyfion: has joined #ruby
[13:46:48] rafadc: has joined #ruby
[13:49:19] griffindy: has joined #ruby
[13:53:32] Ishido: has joined #ruby
[13:53:52] synthroid: has joined #ruby
[13:55:31] bmurt: has joined #ruby
[13:57:11] uZiel: has joined #ruby
[13:57:52] bruno-: has joined #ruby
[14:00:18] mson: has joined #ruby
[14:02:13] claudiuinberlin: has joined #ruby
[14:04:31] polishdub: has joined #ruby
[14:06:51] claudiuinberlin: has joined #ruby
[14:08:21] claudiuinberlin: has joined #ruby
[14:10:27] ShalokShalom_: has joined #ruby
[14:12:11] bmurt: has joined #ruby
[14:12:33] dionysus69: has joined #ruby
[14:13:36] Rapture: has joined #ruby
[14:16:12] workmad3: has joined #ruby
[14:28:48] bmurt: has joined #ruby
[14:32:13] rafadc: has joined #ruby
[14:33:26] mikecmpbll: has joined #ruby
[14:35:03] yeticry_: has joined #ruby
[14:35:54] samlisl_: has joined #ruby
[14:36:07] theunraveler: has joined #ruby
[14:41:23] claudiuinberlin: has joined #ruby
[14:41:56] dinfuehr: has joined #ruby
[14:43:25] mkroman: has joined #ruby
[14:46:53] NicolasHov: has joined #ruby
[14:47:57] apparition: has joined #ruby
[14:48:51] dachi: has joined #ruby
[14:50:22] chouhoul_: has joined #ruby
[14:52:32] dachi: hello. could you help me with passing hash as argument that should as "outer" params? let's say we call t("something", var1: "val1", var2: "val2"). let's say I have h={var1: "val1"}. How can I pass h? t("something", h).
[14:53:31] cschneid_: has joined #ruby
[14:53:35] dminuoso: dachi, have you tried.. maybe exactly that?
[14:53:58] bronson: has joined #ruby
[14:55:59] dminuoso: dachi, the thing you have to know, is that Ruby has some automagic when it comes to hashes and kwargs.
[14:56:52] dminuoso: t("something", var1: "val1", var2: "val2") is actually just short for t("something", { var1: "val1", var2: "val2" }) (this is not entirely accurate, but it'll work for now)
[14:57:13] dachi: ok thanks a lot
[14:58:06] nobitanobi: has joined #ruby
[14:59:05] teatime: dachi: if however you want to mix keyword args & a hash of more keyword args, google for the splat operator **
[14:59:25] morfin: has joined #ruby
[15:00:18] morfin: i forgot - only way to call method is using obj.send(:method_name)?
[15:00:27] dminuoso: If you ever use .send its probably wrong.
[15:00:43] dminuoso: If you need dynamic dispatch, use .public_send
[15:01:10] dminuoso: .send should only be used when you want to purposefully break encapsulation.
[15:02:53] centrx: has joined #ruby
[15:02:58] john__: has joined #ruby
[15:05:02] NicolasHov: has left #ruby: ("WeeChat 1.7")
[15:05:20] morfin: hah it can call protected/private things as i remember)
[15:05:35] morfin: and totally break encapsulation
[15:05:50] apparition: has joined #ruby
[15:06:22] synthroid: has joined #ruby
[15:06:24] sp4rrow: has joined #ruby
[15:06:35] synthroid: has joined #ruby
[15:07:56] NicolasHov: has joined #ruby
[15:09:25] dionysus69: has joined #ruby
[15:10:52] claudiuinberlin: has joined #ruby
[15:12:12] dminuoso: morfin, that being said, Im a hypocrite because before I used autocomplete, I cba to type out public_send all the time. ;p
[15:15:56] sepp2k1: has joined #ruby
[15:18:58] claudiuinberlin: has joined #ruby
[15:20:57] rawste: has joined #ruby
[15:23:28] r3QuiEm_cL: has joined #ruby
[15:27:49] yeticry: has joined #ruby
[15:29:06] claudiuinberlin: has joined #ruby
[15:32:40] TomyLobo: has joined #ruby
[15:36:31] fyrril: has joined #ruby
[15:37:47] sepp2k: has joined #ruby
[15:38:21] ruby-lang007: has joined #ruby
[15:40:06] orbyt_: has joined #ruby
[15:40:27] ruby-lang007: Hi I'm trying to make gtk3 native apps with Ruby. Any tips or resources? I've searched and I didn't find much.
[15:40:57] Guest24: has joined #ruby
[15:41:03] aubyoub: has joined #ruby
[15:41:25] ElDoggo: has joined #ruby
[15:41:55] cagomez: has joined #ruby
[15:43:02] phaul: has joined #ruby
[15:45:02] Guest24: has joined #ruby
[15:45:14] Guest24: has left #ruby: ()
[15:47:17] workmad3: has joined #ruby
[15:47:22] mikecmpbll: has joined #ruby
[15:48:21] nadir: has joined #ruby
[15:49:36] Guest24: has joined #ruby
[15:50:17] cagomez: has joined #ruby
[15:51:13] dtzuzu: has joined #ruby
[15:51:54] raynold: has joined #ruby
[15:52:27] dviola: has joined #ruby
[15:52:43] dminuoso: ruby-lang007, that's because Ruby is rarely if ever used natively in combination with graphical frontends.
[15:53:39] bronson: has joined #ruby
[15:54:11] dminuoso: ruby-lang007, either do it the other way around (for example using mruby inside your C++ application), use some communication (sockets, pipelines, message queues) method between a ruby program and the frontend, or -> and that's how most seem to do it -> avoid GTK3 and provide webcontent instead.
[15:54:34] coreteam: has joined #ruby
[15:55:54] coreteam: has left #ruby: ("Leaving")
[15:57:47] claudiuinberlin: has joined #ruby
[15:59:31] r3QuiEm_cL: has joined #ruby
[16:02:26] marxarelli: has joined #ruby
[16:03:24] minimalism: has joined #ruby
[16:06:35] lacuna: has joined #ruby
[16:08:42] tolerablyjake: has joined #ruby
[16:11:09] charliesome: has joined #ruby
[16:13:10] r3QuiEm_cL: has joined #ruby
[16:14:08] voodoofish430: has joined #ruby
[16:15:32] orbyt_: has joined #ruby
[16:20:13] bronson: has joined #ruby
[16:20:27] darix: dminuoso: https://github.com/mvz/gir_ffi
[16:20:51] darix: https://rubygems.org/search?utf8=✓&query=gtk
[16:22:00] lxsameer: has joined #ruby
[16:23:37] mtkd: has joined #ruby
[16:24:58] teatime: ACTION lols slightly at "utf8=✓"
[16:25:26] jphase: has joined #ruby
[16:26:22] eckhardt: has joined #ruby
[16:27:56] morfin: it's because of crap called IE
[16:30:31] Zarthus: ruby programmers using IE should just be purged though
[16:30:37] teatime: ACTION googles it... neat workaround.
[16:35:03] d5sx43: has joined #ruby
[16:38:17] skweek: has joined #ruby
[16:39:12] voice_ftp: has joined #ruby
[16:39:42] s2013: has joined #ruby
[16:44:53] SeepingN: has joined #ruby
[16:46:55] armyriad: has joined #ruby
[16:52:22] uZiel: has joined #ruby
[16:54:37] chouhoulis: has joined #ruby
[16:59:40] veex: has joined #ruby
[17:01:28] kies: has joined #ruby
[17:03:14] dminuoso: darix, ah well - was not aware this existed.
[17:07:09] Cohedrin_: has joined #ruby
[17:07:57] morfin: well, rails utf8=✓ appeared because of IE
[17:08:05] morfin: as i know
[17:15:00] charliesome: has joined #ruby
[17:16:24] poofjavelin: has joined #ruby
[17:16:28] dionysus69: has joined #ruby
[17:16:42] ruby618: has joined #ruby
[17:20:16] zachk: has joined #ruby
[17:25:42] mim1k: has joined #ruby
[17:26:21] hahuang65: has joined #ruby
[17:26:55] workmad3: has joined #ruby
[17:30:21] enterprisey: has joined #ruby
[17:31:03] troys: has joined #ruby
[17:32:23] jamesst20: has joined #ruby
[17:34:59] nobitanobi: has joined #ruby
[17:35:01] __Yiota: has joined #ruby
[17:37:52] opekktar: has joined #ruby
[17:39:39] uZiel: has joined #ruby
[17:40:44] jphase: has joined #ruby
[17:41:30] claudiuinberlin: has joined #ruby
[17:43:30] sepp2k: has joined #ruby
[17:43:51] bmurt: has joined #ruby
[17:44:45] milardovich: has joined #ruby
[17:45:32] imode: has joined #ruby
[17:47:40] milardovich: has joined #ruby
[17:49:15] brent__: has joined #ruby
[17:50:17] claudiuinberlin: has joined #ruby
[17:50:40] PaulCapestany: has joined #ruby
[17:50:59] jacm93: has joined #ruby
[17:52:37] brent__: has joined #ruby
[17:52:56] orbyt_: has joined #ruby
[17:59:46] ElDoggo: has joined #ruby
[18:04:19] Guest87067: has joined #ruby
[18:04:47] bambanx: has joined #ruby
[18:04:48] hahuang65: has joined #ruby
[18:06:27] cschneid_: has joined #ruby
[18:08:15] mikecmpbll: has joined #ruby
[18:08:36] lxsameer: has joined #ruby
[18:09:11] milardovich: has joined #ruby
[18:16:51] jamesst20: has joined #ruby
[18:17:09] uZiel: has joined #ruby
[18:17:42] sp4rrow: has joined #ruby
[18:18:12] tolerablyjake: has joined #ruby
[18:20:23] dcluna: has joined #ruby
[18:22:28] conta1: has joined #ruby
[18:23:22] kies: has joined #ruby
[18:23:22] jenrzzz: has joined #ruby
[18:26:37] jamesaxl: has joined #ruby
[18:28:23] cschneid_: has joined #ruby
[18:29:17] tamouse__: has joined #ruby
[18:29:37] workmad3: has joined #ruby
[18:30:07] claudiuinberlin: has joined #ruby
[18:33:14] kapil___: has joined #ruby
[18:35:52] bronson: has joined #ruby
[18:36:22] ramfjord: has joined #ruby
[18:39:01] jinie: has joined #ruby
[18:39:16] jamesaxl: has joined #ruby
[18:41:23] mjolnird: has joined #ruby
[18:42:52] Dimik: has joined #ruby
[18:43:37] workmad3: has joined #ruby
[18:44:07] FrostCandy: has joined #ruby
[18:45:10] ElDoggo: has joined #ruby
[18:45:24] FrostCandy: If I have array = [], I can create a new key with array['newkey'] = thing. How can I say array['newkey']['new_inner_thing'] = thing ?
[18:46:43] FrostCandy: Basically i'm trying to add an array to a dynamically created key in the main array.
[18:47:06] sp4rrow: has joined #ruby
[18:48:21] Neptu: has joined #ruby
[18:49:15] FrostCandy: myarray['newkey'][:fields] = fieldarray should work
[18:52:55] uZiel: has joined #ruby
[18:54:29] rafadc: has joined #ruby
[18:55:10] jamesaxl: has joined #ruby
[18:55:46] tgragnato: has joined #ruby
[18:56:40] rabajaj: has joined #ruby
[18:59:10] tAn: has joined #ruby
[19:01:19] tobiasvl: FrostCandy: just the same way?
[19:01:25] tobiasvl: array['newkey'] = []
[19:02:09] tobiasvl: but what are array string indices...
[19:02:41] FrostCandy: tobiasvl: yup im so stupid, I wanted to add another key, so i needed a hash instead of an array - array['newkey'] = {:field => "thing"}
[19:02:57] FrostCandy: too old for programming :D lol
[19:03:54] matthewd: If you're using 'newkey', then "array" isn't an array either
[19:04:35] FrostCandy: right it's also a hash, too used to associative arrays i guess
[19:08:55] Slinky_Pete: has joined #ruby
[19:11:58] oetjenj: has joined #ruby
[19:12:16] jc-guy: has joined #ruby
[19:12:49] jc-guy: Can anyone tell me what the non def blocks are in a ruby class?
[19:13:22] jc-guy: oops mt ^^
[19:14:28] tobiasvl: they're blocks
[19:15:15] tobiasvl: that is literally what they're called ;P
[19:15:32] charliesome: has joined #ruby
[19:17:03] jc-guy: are they used to overwrite/monkey patch methods declared in an interface/parent ?
[19:18:09] jamesaxl: has joined #ruby
[19:18:56] frojnd: has joined #ruby
[19:20:52] frojnd: How can I define class "Something" and methhod "sum" so this `Something.new(100).sum` call will work when I call it in console? Better yet what should I read in order to understand argument call upon .new and after that call of method?
[19:21:42] havenwood: frojnd: What should your example return?
[19:22:24] tvw: has joined #ruby
[19:22:24] goyox86__: has joined #ruby
[19:22:45] frojnd: sum of first 100 numbers... it's not how i implement this sum of first 100 numbers but the structure of the class and methods
[19:23:30] goyox86_: has joined #ruby
[19:23:41] havenwood: frojnd: You can change the #sum method in this code: https://gist.github.com/havenwood/676f8c204b10dda1b40729c2dc718750
[19:23:56] goyox86_: has joined #ruby
[19:25:15] frojnd: havenwood: so https://ruby-doc.org/docs/ruby-doc-bundle/UsersGuide/rg/objinitialization.html ?
[19:25:59] frojnd: Ok I see, thank you havenwood
[19:27:16] synthroid: has joined #ruby
[19:28:29] tolerablyjake: has joined #ruby
[19:29:32] s3nd1v0g1us: has joined #ruby
[19:31:21] AndBobsYourUncle: has joined #ruby
[19:32:12] Danielss89: has joined #ruby
[19:35:33] dwn: has joined #ruby
[19:38:39] dwn: so I'm trynna ingest IP ranges in a user-friendly way, so that you don't need to know CIDR well: 10.0.*.1 is 255 addresses with that octet changing. 10.0.*.* is == 10.0.0.0/16. maybe also syntax like 10.0.50-100.1 for only those 50 IPs. is there a lib that handles this and doing comparisons already?
[19:38:55] nobitanobi: has joined #ruby
[19:39:46] havenwood: dwn: Check IPAddr in the stdlib.
[19:39:52] dwn: yeah it doesn't
[19:40:09] dwn: netaddr::cidr looks good too -- but only for cidr
[19:40:22] dionysus70: has joined #ruby
[19:40:39] Ouchy: has joined #ruby
[19:40:39] Ouchy: has joined #ruby
[19:41:39] Ouchy`w: has joined #ruby
[19:43:48] goyox86_: has joined #ruby
[19:46:18] adam12: dwn: If you find anything that supports that, I'd be very surprised.
[19:47:22] dwn: do you mean in ruby? plenty of things outside will parse that in a user friendly way
[19:48:32] dwn: I'm thinking I'll just build wildcard/x-y support on top of netaddr::cidr
[19:48:49] lupine: that is the nastiest format I've seen for IPs for a while
[19:48:58] lupine: don't forget ipv6 support btw
[19:49:03] r3QuiEm_cL: has joined #ruby
[19:49:08] dwn: nmap does it fine
[19:49:23] rafadc: has joined #ruby
[19:56:11] jc-guy: so I guess I’m a little confused on how ruby blocks are working. I see blocks being used all the time in ruby classes where no def is used. Although when I play around with the language and try that i get a “no method” error
[19:58:22] goyox86_: has joined #ruby
[19:59:25] matthewd: jc-guy: You're presumably seeing calls to methods that were defined elsewhere
[20:00:56] ur5us: has joined #ruby
[20:04:11] mtkd: has joined #ruby
[20:06:44] tobiasvl: jc-guy: can you gist some of the code that's confusing you?
[20:07:01] tobiasvl: not sure if you're seeing blocks or what you are seeing
[20:07:05] __Yiota: has joined #ruby
[20:07:24] clemens3: [ 1, 2, 3 ].each { |n| puts n } gives a code block to the each method.. is totally basic concept in ruby, maybe you just have to get used to it..
[20:07:39] nowhere_man: has joined #ruby
[20:07:41] tobiasvl: I guess maybe I misunderstood you earlier, and you weren't talking about blocks at all
[20:09:12] nobitanobi: has joined #ruby
[20:10:43] orbyt_: has joined #ruby
[20:10:49] erlend: has joined #ruby
[20:11:53] jc-guy: ok so one example I see on a file is someone using Sidekiq and using a `sidekiq_retries_exhausted do |msg, e| end`
[20:12:18] tobiasvl: oh, ok. that is a block.
[20:12:36] tobiasvl: the `do |msg, e| ... end` part is a block
[20:12:47] matthewd: jc-guy: Yes, that's calling the sidekiq_retries_exhausted method, which is (I assume) defined by sidekiq
[20:12:50] sp4rrow: has joined #ruby
[20:14:34] clemens3: jc-guy: there are methods that expect a code block... inside that method, some values are so called yielded to that code block..
[20:14:54] goyox86_: has joined #ruby
[20:16:16] jc-guy: ok so i assume that is coming from a module. Now is that method call executed upon instantiation?
[20:16:32] clemens3: most classical example are the iterator methods.. as said, each.. map.. have a look at the docu for array and how you invoke those methods with a code block.. if the method doesnt expect a code block, than you get an error i guess.. it is much less often that you write a method yourself that expects a code block maybe..
[20:17:21] s3nd1v0g1us: has joined #ruby
[20:17:40] clemens3: that depends on your program entrance..
[20:18:20] s3nd1v0g1us: has joined #ruby
[20:18:31] clemens3: i don't know anything about sidekiq what it does etc.
[20:18:52] jc-guy: https://gist.github.com/jtcrank/116d020643492d5d67e097d915025ece
[20:18:57] matthewd: The method call is executed when it's encountered, while loading the class definition
[20:19:25] s3nd1v0g1us: has joined #ruby
[20:19:43] matthewd: jc-guy: run_block is defined on instances of MyClass, but is being called on the class object itself
[20:19:46] theunrav_: has joined #ruby
[20:20:45] claudiuinberlin: has joined #ruby
[20:21:18] __Yiota: has joined #ruby
[20:21:21] matthewd: jc-guy: Contrast `extend MyModule`
[20:21:28] clemens3: the code is executed top to button, but first module is just definition, but second run_block is indead then executed..
[20:22:35] workmad3: has joined #ruby
[20:22:39] charliesome: has joined #ruby
[20:22:50] jc-guy: ok. Thanks for clearing some things up for me
[20:23:07] anisha_: has joined #ruby
[20:26:37] millerti: has joined #ruby
[20:26:39] andygeorge: has joined #ruby
[20:27:28] cagomez: has joined #ruby
[20:29:34] rafadc: has joined #ruby
[20:38:19] jc-guy: has left #ruby: ()
[20:41:55] goyox86_: has joined #ruby
[20:42:27] tvw: has joined #ruby
[20:42:31] hahuang65: has joined #ruby
[20:43:32] workmad3: has joined #ruby
[20:47:57] s3nd1v0g1us: has joined #ruby
[20:49:51] Alina-malina: has joined #ruby
[20:50:05] claudiuinberlin: has joined #ruby
[20:50:43] enko: has joined #ruby
[20:52:49] ged: has joined #ruby
[20:54:05] cdg: has joined #ruby
[21:00:26] nobitanobi: has joined #ruby
[21:02:17] mahlon: has joined #ruby
[21:05:36] moei: has joined #ruby
[21:11:37] Algebr: I see that `bundle install --local` exists, but for my usage of --local, I want it to first look in vendor/cache and if the gem is not there then hit up rubygems.org, but it seems that its an all or nothing thing
[21:11:51] troulouliou_div2: has joined #ruby
[21:17:07] herbmillerjr: has joined #ruby
[21:17:54] havenwood: Algebr: You can point the Gemfile to whatever location you'd like.
[21:18:01] havenwood: On a gem-by-gem basis.
[21:19:11] kus_ubuntui686: has joined #ruby
[21:19:56] Algebr: with :path => 'foo/bar' right?
[21:20:20] Alina-malina: has joined #ruby
[21:24:44] mkroman: has joined #ruby
[21:32:23] snath: has joined #ruby
[21:32:47] snath: has left #ruby: ()
[21:35:05] havenwood: Algebr: yup
[21:37:08] Algebr: so I have a directory where the .gem file is at for a gem dependency, and doing :path => '.' since the gem is in the same directory but still get could not find in sources =/
[21:37:21] Algebr: when I use bundle install
[21:37:28] Algebr: ./ as well
[21:37:51] Algebr: (tried absolute path as well)
[21:38:14] mim1k: has joined #ruby
[21:39:11] eckhardt: has joined #ruby
[21:44:51] __Yiota: has joined #ruby
[21:46:54] tAn: has joined #ruby
[21:49:03] Algebr: ugh, ruby crossplatform bundling is nightmare =/
[21:49:57] nankyokusei: has joined #ruby
[21:59:20] harai: has joined #ruby
[22:00:52] workmad3: has joined #ruby
[22:04:25] eckhardt: has joined #ruby
[22:11:16] iszak: has joined #ruby
[22:11:16] iszak: has joined #ruby
[22:11:53] Slinky_Pete: has joined #ruby
[22:17:42] pilne: has joined #ruby
[22:18:34] skweek: has joined #ruby
[22:19:11] orbyt_: has joined #ruby
[22:23:01] dviola: has joined #ruby
[22:25:54] shinnya: has joined #ruby
[22:27:38] Slinky_Pete: has joined #ruby
[22:27:57] spiette: has joined #ruby
[22:30:00] hahuang65: has joined #ruby
[22:36:12] tamouse__: has joined #ruby
[22:36:33] enterprisey: has joined #ruby
[22:38:16] dstrunk: has joined #ruby
[22:38:25] Alina-malina: has joined #ruby
[22:40:46] eckhardt: has joined #ruby
[22:41:52] mkroman: has joined #ruby
[22:44:34] griffindy: has joined #ruby
[22:45:34] enterprisey: has joined #ruby
[22:57:30] Alina-malina: has joined #ruby
[22:58:08] moei: has joined #ruby
[23:04:28] eckhardt: has joined #ruby
[23:05:02] eckhardt: has joined #ruby
[23:08:43] dysfigur-: has joined #ruby
[23:10:02] nobitanobi: has joined #ruby
[23:11:21] bambanx: has joined #ruby
[23:11:23] Axsuul: has joined #ruby
[23:11:32] Dimik: has joined #ruby
[23:11:33] tcopeland: has joined #ruby
[23:11:53] nofxx: has joined #ruby
[23:11:58] alveric2: has joined #ruby
[23:16:33] sumobob: has joined #ruby
[23:17:31] enterprisey: has joined #ruby
[23:18:52] sumobob: has joined #ruby
[23:21:16] enterprisey_: has joined #ruby
[23:21:40] sumobob_: has joined #ruby
[23:24:08] sumobob_: has joined #ruby
[23:26:37] chouhoulis: has joined #ruby
[23:26:52] sumobob: has joined #ruby
[23:29:03] Parraki: has joined #ruby
[23:29:26] nowhereman: has joined #ruby
[23:30:53] chouhoulis: has joined #ruby
[23:30:57] Alina-malina: has joined #ruby
[23:33:25] mson: has joined #ruby
[23:36:00] SeepingN: has joined #ruby
[23:38:50] knight33: has joined #ruby
[23:38:50] mim1k: has joined #ruby
[23:45:04] naprimer2: has joined #ruby