« Back to channel list

#ruby - 06 February 2018

« Back 1 day Forward 1 day »
[00:09:00] cschneid: has joined #ruby
[00:09:32] nchambers: when writing a commandline app in ruby, is it common to write a unit test for the entry point file in addition to the actual source files?
[00:11:00] bigblind: has joined #ruby
[00:14:16] drocsid: nchambers: not sure about ruby but it sounds like a good idea to me... Not quite sure what you mean by entry point file but assume it's like the launcher class... but I'm a ruby novice.
[00:16:08] nchambers: drocsid: this is my entry point file: https://gitlab.com/ntchambers/cherrybomb/blob/master/bin/cherrybomb its what gem build makes as the entry point
[00:19:11] workmad3: has joined #ruby
[00:20:49] drocsid: nchambers: I would test that class if I was a test driven developer or if using it in production. Good to test all the things...
[00:21:08] guille-moe: has joined #ruby
[00:21:45] elomatreb: nchambers: It's of course never a bad idea to test something, but entry files are often left untested because it would incur significant overhead, since they have to have side effects by design
[00:23:42] drocsid: One thing I understand about TDD is the beleif that tests should be written first, then code written and not the other way around...
[00:24:14] nchambers: thanks guys
[00:24:35] drocsid: To be honest I don't always write TDD when writing scripts, etc. But when I do I feel more confident about what I'm doing...
[00:30:12] Lytol: has joined #ruby
[00:31:03] cagomez: has joined #ruby
[00:40:50] cdg: has joined #ruby
[00:42:18] goatish: has joined #ruby
[00:42:30] guacamole: has joined #ruby
[00:44:29] cagomez: has joined #ruby
[00:44:45] cdg_: has joined #ruby
[00:46:11] milardovich: has joined #ruby
[00:47:51] hahuang61: has joined #ruby
[00:48:26] cagomez: has joined #ruby
[00:49:31] cschneid: has joined #ruby
[00:49:42] linduxed: has joined #ruby
[00:51:31] milardovich: has joined #ruby
[00:55:44] vichib: has joined #ruby
[00:58:05] jeffreylevesque: has joined #ruby
[00:59:45] bigblind: has joined #ruby
[01:00:10] guacamole: has joined #ruby
[01:00:10] guacamole: has joined #ruby
[01:04:42] raul782: has joined #ruby
[01:06:53] deadnull: has joined #ruby
[01:07:50] cdg: has joined #ruby
[01:09:01] bigblind: has joined #ruby
[01:14:11] cadillac_: has joined #ruby
[01:15:06] cagomez: has joined #ruby
[01:16:15] raul782: has joined #ruby
[01:19:35] EXCHGR: has joined #ruby
[01:21:03] cagomez: has joined #ruby
[01:21:16] bmurt: has joined #ruby
[01:22:01] bigblind: has joined #ruby
[01:22:34] zautomata1: has joined #ruby
[01:24:12] mtkd: has joined #ruby
[01:27:34] rwb: has joined #ruby
[01:33:49] linduxed: has joined #ruby
[01:35:05] raynold: Ahh it's a wonderful day
[01:35:48] pastorinni: has joined #ruby
[01:37:33] eckhardt: has joined #ruby
[01:37:34] bigblind: has joined #ruby
[01:38:05] alfiemax: has joined #ruby
[01:42:08] chmurifree: has joined #ruby
[01:52:45] snath: has joined #ruby
[01:53:41] drewmcmillan: has joined #ruby
[01:56:40] ramfjord: Any good news to share with us raynold ?
[01:59:37] zautomata: has joined #ruby
[01:59:53] bigblind: has joined #ruby
[02:00:03] zautomata: has joined #ruby
[02:00:57] cschneid: has joined #ruby
[02:04:20] cagomez: has joined #ruby
[02:11:08] orbyt_: has joined #ruby
[02:12:14] jnyw: has joined #ruby
[02:14:29] arescorpio: has joined #ruby
[02:15:31] pastorinni: has joined #ruby
[02:20:02] workmad3: has joined #ruby
[02:31:06] bigblind: has joined #ruby
[02:37:25] cagomez: has joined #ruby
[02:42:44] cdg: has joined #ruby
[02:48:48] cdg: has joined #ruby
[02:50:09] michael_mbp: has joined #ruby
[02:53:10] bigblind: has joined #ruby
[03:00:11] mjuszczak: has joined #ruby
[03:00:17] cadillac_: has joined #ruby
[03:02:25] hfp_work: has joined #ruby
[03:04:53] cschneid: has joined #ruby
[03:05:55] hfp_work: has joined #ruby
[03:09:20] bigblind: has joined #ruby
[03:11:11] nchambers: can someone explain the bevahior I'm seeing here? http://ix.io/Fl2 why does the first one return nil, but the second one returns 0?
[03:11:50] havenwood: nchambers: The first one didn't match and the second one matched at position 0.
[03:12:57] havenwood: >> /^[a-z][a-z0-9-]*[a-z0-9]$/ =~ 'abcd'; Regexp.last_match.string
[03:12:59] ruby[bot]: havenwood: # => "abcd" (https://eval.in/950310)
[03:13:33] nchambers: so if I wanted to test if a given string matched a regex, I would just want (/regex/ =~ str).nil?
[03:14:32] havenwood: nchambers: In modern Ruby, just: str.match? regex
[03:14:49] havenwood: nchambers: That way there are no captures, so it's faster and takes less memory.
[03:15:18] havenwood: nchambers: Or yeah, if you prefer: str.match? regex
[03:15:41] nchambers: nice thanks
[03:15:50] havenwood: https://ruby-doc.org/core/String.html#method-i-match-3F
[03:16:18] havenwood: nchambers: What version of Ruby are you on?
[03:16:30] havenwood: nchambers: #match? is 2.4+
[03:16:42] nchambers: so I'm all good
[03:16:49] nchambers: much appreciated, thank you!
[03:16:50] My_Hearing: has joined #ruby
[03:17:50] havenwood: I meant, if you prefer##: regex.match? str
[03:21:27] craysiii: How does rspec #respond_to determine which methods there are? I've skimmed the source but haven't found anything telling yet. I ask because I have monkey-patched a method onto Numeric and it's not passing a respond_to expectation. https://gist.github.com/craysiii/9b6adaf1ff713af9fd0eabff6fc11c55
[03:26:43] Jameser: has joined #ruby
[03:29:27] mtkd: has joined #ruby
[03:29:34] bigblind: has joined #ruby
[03:33:55] apeiros: has joined #ruby
[03:36:31] bigblind: has joined #ruby
[03:41:12] dogweather: has joined #ruby
[03:44:44] SeepingN: has joined #ruby
[03:45:18] osvico: has joined #ruby
[03:50:16] fcser__: has joined #ruby
[03:52:28] konsolebox: has joined #ruby
[03:54:51] dogweather: has joined #ruby
[03:58:00] govg: has joined #ruby
[03:59:51] pastorinni: has joined #ruby
[04:10:10] bigblind: has joined #ruby
[04:17:48] gix-: has joined #ruby
[04:22:03] ramfjord: has joined #ruby
[04:25:15] trautwein: has joined #ruby
[04:28:42] bigblind: has joined #ruby
[04:29:35] cdg: has joined #ruby
[04:32:40] craysiii: Oh I just figured it out. Oops.
[04:32:59] reaVer: has joined #ruby
[04:33:03] pastorin_: has joined #ruby
[04:35:47] pastorinni: has joined #ruby
[04:38:28] eckhardt: has joined #ruby
[04:44:19] rwb: has joined #ruby
[04:44:48] barhum2013: has joined #ruby
[04:45:30] barhum2013: has joined #ruby
[04:46:38] barhum2013: has left #ruby: ()
[04:47:21] bigblind: has joined #ruby
[04:53:21] wilbert: has joined #ruby
[04:54:39] wilbert_: has joined #ruby
[05:07:59] bigblind: has joined #ruby
[05:09:42] skweek: has joined #ruby
[05:11:12] ramfjord: has joined #ruby
[05:12:18] alfiemax: has joined #ruby
[05:16:13] kies: has joined #ruby
[05:17:45] yn^: has joined #ruby
[05:17:52] wilbert: has joined #ruby
[05:18:48] shah^: has joined #ruby
[05:21:43] darkhanb: has joined #ruby
[05:25:46] \13k: has joined #ruby
[05:30:58] bigblind: has joined #ruby
[05:33:38] \13k: has joined #ruby
[05:35:34] alfiemax: has joined #ruby
[05:40:43] nchambers: does EM::HttpRequest do https at all? or only http?
[05:52:15] bigblind: has joined #ruby
[05:54:29] milardovich: has joined #ruby
[05:57:00] alfiemax: has joined #ruby
[06:04:07] Dimik: has joined #ruby
[06:06:17] bigblind: has joined #ruby
[06:08:17] konsolebox: has joined #ruby
[06:08:34] skweek: has joined #ruby
[06:09:16] anisha: has joined #ruby
[06:13:52] dionysus69: has joined #ruby
[06:14:20] Liothen: has joined #ruby
[06:18:26] morfin: has joined #ruby
[06:19:26] bigblind: has joined #ruby
[06:20:12] mtkd: has joined #ruby
[06:21:41] workmad3: has joined #ruby
[06:21:44] naprimer: has joined #ruby
[06:23:46] Liothen: has joined #ruby
[06:26:32] \13k: has joined #ruby
[06:29:50] wsx: has joined #ruby
[06:32:50] bigblind: has joined #ruby
[06:38:35] bigblind: has joined #ruby
[06:45:57] konsolebox: has joined #ruby
[06:48:09] Puffball: has joined #ruby
[06:53:33] rabajaj: has joined #ruby
[06:54:44] bigblind: has joined #ruby
[06:57:58] milardovich: has joined #ruby
[07:03:53] roshanavand: has joined #ruby
[07:05:37] roshanavand: has joined #ruby
[07:08:47] schneide_: has joined #ruby
[07:21:30] bigblind: has joined #ruby
[07:23:23] Immune: has joined #ruby
[07:27:26] darkhanb: has joined #ruby
[07:30:55] ferr1: has joined #ruby
[07:32:27] Chronocity: has joined #ruby
[07:38:06] bigblind: has joined #ruby
[07:39:33] dionysus69: has joined #ruby
[07:40:08] conta: has joined #ruby
[07:40:26] pelegreno: has joined #ruby
[07:40:38] guardianx: has joined #ruby
[07:41:16] pelegreno: has joined #ruby
[07:42:14] planigan: has joined #ruby
[07:49:17] Guest14: has joined #ruby
[07:54:03] amatas: has joined #ruby
[07:56:26] alfiemax: has joined #ruby
[07:57:49] ur5us: has joined #ruby
[07:58:53] aufi: has joined #ruby
[07:59:11] matejz: has joined #ruby
[07:59:30] matejz: I have this definition in my Gemfile: gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '~> 3.8'
[07:59:38] matejz: and I have puppet version 5.3.3 installed
[07:59:48] matejz: why does bundler install upgrades puppet to newer version?
[07:59:57] SebastianThorn: has joined #ruby
[08:00:10] matejz: is that how it should work?
[08:04:38] milardovich: has joined #ruby
[08:07:01] schneide_: has joined #ruby
[08:11:44] matejz: has joined #ruby
[08:12:33] matejz: has joined #ruby
[08:14:27] bigblind: has joined #ruby
[08:17:03] yohji: has joined #ruby
[08:18:37] TomyWork: has joined #ruby
[08:18:55] atchoum: has joined #ruby
[08:22:33] workmad3: has joined #ruby
[08:22:54] arkinor: has joined #ruby
[08:26:11] andikr: has joined #ruby
[08:29:53] schneide_: has joined #ruby
[08:33:35] za1b1tsu: has joined #ruby
[08:36:18] yohji: has joined #ruby
[08:37:31] bigblind: has joined #ruby
[08:41:27] aupadhye: has joined #ruby
[08:47:20] marr: has joined #ruby
[08:49:29] claudiuinberlin: has joined #ruby
[08:54:20] alex``: has joined #ruby
[08:56:05] mikecmpbll: has joined #ruby
[08:57:23] burgestrand: has joined #ruby
[09:01:27] dionysus69: has joined #ruby
[09:03:14] yohji: has joined #ruby
[09:03:39] bigblind: has joined #ruby
[09:10:58] venmx: has joined #ruby
[09:11:31] wsx: has joined #ruby
[09:11:53] alex``: has joined #ruby
[09:14:48] mark_66: has joined #ruby
[09:15:01] Beams: has joined #ruby
[09:16:01] arkinor: has joined #ruby
[09:19:13] guille-moe: has joined #ruby
[09:20:05] aufi: has joined #ruby
[09:21:56] RougeR: has joined #ruby
[09:21:56] RougeR: has joined #ruby
[09:25:20] bigblind: has joined #ruby
[09:35:02] cabotto: has joined #ruby
[09:36:34] alfiemax: has joined #ruby
[09:37:23] ramfjord: has joined #ruby
[09:38:50] tomphp: has joined #ruby
[09:42:52] Beams: has joined #ruby
[09:43:15] klixto: has joined #ruby
[09:43:52] ramfjord: has joined #ruby
[09:48:05] milardovich: has joined #ruby
[09:50:14] sameerynho: has joined #ruby
[09:51:03] Beams: has joined #ruby
[09:52:08] venmx: has joined #ruby
[09:53:38] milardovich: has joined #ruby
[09:54:12] Ishido: has joined #ruby
[09:55:03] bigblind: has joined #ruby
[09:57:42] ramfjord: has joined #ruby
[09:58:04] konos5_: has joined #ruby
[09:58:20] Beams: has joined #ruby
[10:00:02] tomphp: has joined #ruby
[10:03:03] Strepsils: has joined #ruby
[10:05:01] workmad3: has joined #ruby
[10:06:35] Serpent7776: has joined #ruby
[10:09:50] drewmcmillan: has joined #ruby
[10:09:54] erlend: has joined #ruby
[10:12:19] banisterfiend: has joined #ruby
[10:14:01] konos5_: Hi, in irb `respond_to?(:define_method, true)` returns true. However since `:define_method` is defined in `Module`, `:define_method` should only be available within a class definition and not in main. Why?
[10:15:32] jottr: has joined #ruby
[10:16:01] bigblind: has joined #ruby
[10:18:50] desperek: has joined #ruby
[10:19:07] dminuoso: >> self.singleton_class.methods
[10:19:08] ruby[bot]: dminuoso: # => [:new, :allocate, :superclass, :<=>, :module_exec, :class_exec, :<=, :>=, :==, :===, :include?, :inc ...check link for more (https://eval.in/950542)
[10:20:37] clemens3: has joined #ruby
[10:22:06] dminuoso: Okay, now that is surprising.
[10:23:04] dminuoso: >> private_methods
[10:23:05] ruby[bot]: dminuoso: # => [:include, :using, :public, :private, :define_method, :DelegateClass, :sprintf, :format, :Integer, : ...check link for more (https://eval.in/950548)
[10:23:31] dminuoso: konos5_: The singleton class of "top self" is initialized during VM boot.
[10:26:28] konos5_: I lost you...
[10:26:40] dminuoso: konos5_: Any method must have a receiver.
[10:27:34] dminuoso: konos5_: The "default receiver" is always "self". In top level scope (outside any class/function) that self is a special object called "top self" (which is usually presented as "main")
[10:28:30] dminuoso: konos5_: If you do not specify a receiver, it defaults to `self` whatever that is in your context. So if you write "define_method", it's kind of equivalent to: self.send(:define_method)
[10:29:02] dminuoso: And that "top self" object - like any object - has a singleton class. That singleton class receives some methods when the ruby VM boots up.
[10:29:39] bigblind: has joined #ruby
[10:29:56] konos5_: since main is an instance of Object it should get Objects' instance methods
[10:30:08] dminuoso: Yup, those too.
[10:30:17] dminuoso: But first in the ancestory is its own singleton class.
[10:30:18] goatish: has joined #ruby
[10:30:37] konos5_: which inherites from Object
[10:30:43] dminuoso: kind of yeah.
[10:31:21] konos5_: but Object is an instance of Class
[10:31:50] dminuoso: konos5_: http://i.imgur.com/04Mlrwp.png
[10:32:29] dminuoso: konos5_: Assume the red one was top self, and you just erased the RClass String.
[10:32:35] dminuoso: That'd be what top self looked like.
[10:33:09] dminuoso: konos5_: The reason you happen to have define_method has to do with how ruby bootstraps.
[10:33:35] konos5_: Object is both superclass of Class and its instance
[10:34:08] dminuoso: konos5_: Indirectly yes.
[10:34:10] konos5_: Either way main.singleton_class shouldn't be getting define_method since its stored in `Module`
[10:34:21] dminuoso: konos5_: No its not "stored" in module.
[10:34:41] dminuoso: konos5_: Core functions exist as C functions. Ruby them creates a "link" in modules to those C functions
[10:34:48] dminuoso: Using rb_define_private_method/rb_define_method
[10:34:57] dminuoso: But you can link the same method into different places.
[10:35:17] dminuoso: And ruby happens to call rb_define_method for that method *twice*
[10:35:24] dminuoso: Once for Module, once for the top self's singleton class
[10:35:49] arkinor: has joined #ruby
[10:35:50] konos5_: so Ruby you are telling me that Ruby is cheating right?
[10:35:51] drewmcmillan: has joined #ruby
[10:36:07] konos5_: cause it doesn't do that for any other regular object's singleton class
[10:36:22] Sylario: has joined #ruby
[10:36:24] dminuoso: konos5_: top self is a bit special yes.
[10:36:34] dminuoso: I wouldnt call it cheating though.
[10:36:42] alfiemax: has joined #ruby
[10:37:08] dminuoso: konos5_: https://github.com/ruby/ruby/blob/trunk/proc.c#L3177-L3184
[10:37:29] dminuoso: konos5_: If you look closely it actually uses two different methods. So strictly speaking its not the same.
[10:37:34] cabotto: has left #ruby: ()
[10:37:38] Jameser: has joined #ruby
[10:37:39] cabotto: has joined #ruby
[10:37:46] klixto: has joined #ruby
[10:38:52] konos5_: Yes. I see
[10:38:59] konos5_: Basically I was focusing on this:
[10:39:00] konos5_: https://imgur.com/a/cjgsW
[10:39:05] konos5_: taken from Ruby metaprogramming
[10:39:22] konos5_: which wouldn't explain how define_method ends up in main.singleton_class
[10:39:52] dminuoso: konos5_: It does =)
[10:40:11] dminuoso: konos5_: Well, the diagram does not explain how methods end up anywhere.
[10:40:28] dminuoso: konos5_: It just explains super/klass relationship.
[10:40:32] dminuoso: and not properly either
[10:41:12] ldnunes: has joined #ruby
[10:42:15] arkinor: has joined #ruby
[10:48:09] bigblind: has joined #ruby
[10:51:11] apparition: has joined #ruby
[10:51:17] ramfjord: has joined #ruby
[10:53:57] oetjenj: has joined #ruby
[10:54:06] za1b1tsu: has joined #ruby
[10:58:13] zautomata: has joined #ruby
[10:58:28] zautomata: has joined #ruby
[11:03:07] govg: has joined #ruby
[11:04:17] Beams: has joined #ruby
[11:06:45] Beams_: has joined #ruby
[11:10:06] scrptktty: has joined #ruby
[11:10:45] quobo: has joined #ruby
[11:17:57] tvw: has joined #ruby
[11:21:22] banisterfiend: has joined #ruby
[11:21:43] ferr1: has left #ruby: ("WeeChat 2.0.1")
[11:22:37] yohji: has joined #ruby
[11:24:26] arkinor: has joined #ruby
[11:24:52] hfp_work: has joined #ruby
[11:28:27] Phage: has joined #ruby
[11:30:06] cdg: has joined #ruby
[11:30:22] mtkd: has joined #ruby
[11:31:45] bigblind: has joined #ruby
[11:40:28] white_lilies: has joined #ruby
[11:41:22] Serpent7776: has joined #ruby
[11:44:01] milardovich: has joined #ruby
[11:45:16] DTZUZO: has joined #ruby
[11:47:00] async_prince: has joined #ruby
[11:48:29] A124: has joined #ruby
[11:49:07] John_Ivan: has joined #ruby
[11:49:07] John_Ivan: has joined #ruby
[11:49:25] async_prince: has joined #ruby
[11:50:32] jaruga: has joined #ruby
[11:51:02] white_lilies: has joined #ruby
[11:53:08] bigblind: has joined #ruby
[11:53:49] konsolebox: has joined #ruby
[11:56:07] schneide_: has joined #ruby
[11:56:49] Psybur_: has joined #ruby
[11:57:54] pmarreck: has joined #ruby
[11:59:25] aarongodin: has joined #ruby
[12:00:26] Psybur__: has joined #ruby
[12:02:05] workmad3: has joined #ruby
[12:02:22] schneide_: has joined #ruby
[12:02:34] rabajaj: has joined #ruby
[12:03:39] drewmcmillan: has joined #ruby
[12:03:46] SynSynack: has joined #ruby
[12:07:36] AJA4350: has joined #ruby
[12:11:05] white_lilies: has joined #ruby
[12:11:23] machty: has joined #ruby
[12:12:26] Psybur: has joined #ruby
[12:14:12] bigblind: has joined #ruby
[12:14:51] yo61: has joined #ruby
[12:14:54] ramfjord: has joined #ruby
[12:16:00] justache: has joined #ruby
[12:17:38] erlend: has joined #ruby
[12:18:32] nowhere_man: has joined #ruby
[12:18:53] alfiemax: has joined #ruby
[12:19:17] romain_t: has joined #ruby
[12:20:18] amatas_: has joined #ruby
[12:21:40] John_Ivan: has joined #ruby
[12:22:01] banisterfiend: has joined #ruby
[12:23:23] mozzarella: has joined #ruby
[12:24:50] InfinityFye: has joined #ruby
[12:26:39] mrsolo: has joined #ruby
[12:27:00] oetjenj: has joined #ruby
[12:27:01] mrsolo: has joined #ruby
[12:27:24] InfinityFye: has left #ruby: ()
[12:33:17] nowhere_man: has joined #ruby
[12:36:11] rabajaj: has joined #ruby
[12:36:22] Bish: has joined #ruby
[12:36:23] konsolebox: has joined #ruby
[12:37:32] qba73: has joined #ruby
[12:37:32] bigblind: has joined #ruby
[12:38:35] tomphp: has joined #ruby
[12:40:37] qba73: has joined #ruby
[12:42:34] Cork: is there any native support for pkcs8 in rubys openssl on the way?
[12:42:42] white_lilies: has joined #ruby
[12:46:33] amatas_: has joined #ruby
[12:46:52] rabajaj: has joined #ruby
[12:47:12] qba73_: has joined #ruby
[12:47:31] arkinor: has joined #ruby
[12:48:20] qba73_: has joined #ruby
[12:49:46] alfiemax: has joined #ruby
[12:50:26] dminuoso: Cork: With some very small fiddling.
[12:50:52] dminuoso: &ri OpenSSL::PKey
[12:50:52] `derpy: http://ruby-doc.org/stdlib-2.4.1/libdoc/openssl/rdoc/OpenSSL/PKey.html
[12:52:12] Cork: dminuoso: i'm using that; but how do i get a pkcs8 pem?
[12:53:07] yohji: has joined #ruby
[12:55:34] aufi_: has joined #ruby
[12:59:51] dminuoso: Cork: uh? do you want to simply read one? what encoding?
[13:01:06] Cork: dminuoso: OpenSSL::PKey::RSA.new().to_pem generates a sslesy pem not a pkcs8 key
[13:01:48] Beams: has joined #ruby
[13:01:50] synthroid: has joined #ruby
[13:14:22] cadillac_: has joined #ruby
[13:16:18] cagomez: has joined #ruby
[13:17:40] white_lilies: has joined #ruby
[13:18:17] schneide_: has joined #ruby
[13:21:00] shinnya: has joined #ruby
[13:24:26] tomphp: has joined #ruby
[13:27:29] Beams: has joined #ruby
[13:28:12] RougeR: has joined #ruby
[13:29:06] qba73: has joined #ruby
[13:29:15] oetjenj: has joined #ruby
[13:31:19] govg: has joined #ruby
[13:34:38] Bish: slightly offtopic: if i want a customer to create a subdomain for me
[13:35:16] Bish: how do i make sure, that another customer doesn't add the subdomain, too, and can use it
[13:35:27] Bish: (i can't make a unique constraint on that, because sharding)
[13:35:32] mtkd: has joined #ruby
[13:36:19] Bish: a.e. user wants to use tracking.somedomain.com to point to my server.. adds in in my software, and my software tests if that A/CNAME entry is made, before he can use it
[13:36:41] Bish: then another customer comes and adds tracking.somedomain.com .. points it to my server, and will get it, too
[13:37:24] jeffreylevesque: has joined #ruby
[13:39:37] dminuoso: Bish: make a unique constraint.
[13:39:57] konsolebox: has joined #ruby
[13:41:56] dminuoso: Bish: One way to tackle this could be to employ the saga pattern.
[13:42:11] jeffreylevesque_: has joined #ruby
[13:42:49] Bish: as i said, i cannot because broken sharding :(
[13:42:56] dminuoso: saga pattern.
[13:43:00] Bish: *googles*
[13:43:03] eckhardt: has joined #ruby
[13:43:04] dminuoso: Or add a singy registry server
[13:43:42] Bish: once again i would prefer the sign method ^^
[13:43:49] Bish: just let the user make a useless entry on the domain
[13:43:55] Bish: which shows its his
[13:43:58] Bish: whatever
[13:44:01] canton7: Bish, is this more a question of making sure that people don't register a subdomain which doesn't belong to them?
[13:44:01] nowhereman_: has joined #ruby
[13:44:21] Bish: canton7: in my app, not on dns level, yes
[13:44:36] dminuoso: Bish: You either need to maintain a single registry to avoid collisions, or you need a distributed way of committing a slow transaction with proper rollback semantics (which sagas give you)
[13:44:47] canton7: most people do that by requiring that the person creates a TXT record with a magic value you supply
[13:45:02] Bish: canton7: yeah something like that, but what magic value do i give it?
[13:45:22] dminuoso: Ohh I misunderstood
[13:45:23] Bish: dminuoso: saga looks like "kanonen auf spatzen"
[13:45:35] canton7: Bish, create a random number, then base64/32/whatever-encode it.
[13:45:43] Bish: then i need to save it :(
[13:45:43] dminuoso: Bish: I think I may have misunderstood your setup.
[13:45:46] canton7: or just pick random letters out of a set
[13:45:58] Bish: dminuoso: my bad, i didn't explain it
[13:46:05] Bish: canton7: could you elaborate?
[13:46:07] milardovich: has joined #ruby
[13:46:25] dminuoso: Bish: Im curious now. Who maintains the nameservers?
[13:46:57] canton7: Bish, so user signs up, provides their subdomain. You say "OK that's great, I need you to create a txt record with <this value>. User does that, clicks "check now". You check for the presence of that TXT record with that value. If it's found, all good, the user controls that subdomain
[13:47:01] Bish: dminuoso: the customers. i have a tracking server, which customers need to add on their page
[13:47:10] Bish: http://tracking.bishscompany.de
[13:47:17] white_lilies: has joined #ruby
[13:47:19] brendan-: has joined #ruby
[13:47:24] dminuoso: Totally clickbaited me there
[13:47:25] Bish: and if people want "bishcompany" in their code.. their can add their own cname/a entry
[13:47:39] Bish: having a nickname like that really baits
[13:47:56] Bish: s/their/they
[13:48:14] Bish: s/want/don't want
[13:48:56] dminuoso: Bish: Ahh that explains it. I thought you were somehow doing some poor mans DNS reselling.
[13:48:58] Bish: and i only check if that cname entry has been made, not if guy actually owns that
[13:49:24] Bish: so company a could use companies b domain.. if he just enters it
[13:49:29] dminuoso: Bish: You cant test for identity anyway. But you can check for authorization by handing them a token that they need to present to you.
[13:49:47] bigblind: has joined #ruby
[13:49:50] Bish: but same problem as few days ago
[13:49:56] Bish: can i do that without writing stuff into my db?
[13:50:05] tomphp: has joined #ruby
[13:50:10] Bish: like.. signing customer_id+domain, and save that result?
[13:50:20] dminuoso: Bish: Probably not even that.
[13:50:31] dminuoso: Bish: If it's asymmetrically signed you dont even need to store it.
[13:50:38] Bish: so i can do that?
[13:50:41] dminuoso: Or symmetrically even.
[13:50:43] burgestrand: has joined #ruby
[13:51:10] Bish: what cryptostuff should i use for that?
[13:51:14] dminuoso: hmac or something
[13:51:36] dminuoso: Or actually since its public knowledge it should be asymmetric. :)
[13:51:55] dminuoso: Or.. no I have no idea. I am sleep deprived.
[13:52:01] dminuoso: Good night.
[13:52:18] Bish: i thought you were german
[13:52:22] Bish: sleep well, thanks for the help
[13:52:34] cadillac_: has joined #ruby
[13:53:38] cdg: has joined #ruby
[13:53:51] cdg: has joined #ruby
[13:55:43] burgestrand: Bish for what? I came in late
[13:56:44] burgestrand: well, doesn't matter I guess, something something crypto something something, then use libsodium: https://github.com/crypto-rb/rbnacl
[13:58:11] Hanmac: has joined #ruby
[14:02:15] Bish: Burgestrand: why not openssl
[14:02:42] cadillac_: has joined #ruby
[14:03:02] Mia: has joined #ruby
[14:03:02] Mia: has joined #ruby
[14:03:22] burgestrand: Bish for most people the primitives in openssl are too easy to use in an incorrect way
[14:03:35] nicesignal: has joined #ruby
[14:05:52] burgestrand: Bish I'm pretty much paraphrasing the readme, but sodiums API is designed to make it easier to use in a secure way and harder to misuse in an insecure way
[14:06:09] tAn: has joined #ruby
[14:06:30] drewmcmillan: has joined #ruby
[14:12:16] bigblind: has joined #ruby
[14:13:38] Defenestrate: has joined #ruby
[14:13:38] Defenestrate: has joined #ruby
[14:17:21] cadillac_: has joined #ruby
[14:18:03] white_lilies: has joined #ruby
[14:22:58] workmad3: has joined #ruby
[14:23:00] jrvlima: has joined #ruby
[14:23:36] yohji: has joined #ruby
[14:23:39] schneide_: has joined #ruby
[14:24:56] bigblind: has joined #ruby
[14:25:09] jrvlima: has joined #ruby
[14:26:46] dextrey: has joined #ruby
[14:28:34] maufart__: has joined #ruby
[14:31:35] DLSteve_: has joined #ruby
[14:32:50] Jameser: has joined #ruby
[14:33:32] qba73: has joined #ruby
[14:42:01] white_lilies: has joined #ruby
[14:45:05] jrvlima: has joined #ruby
[14:47:30] alfiemax: has joined #ruby
[14:49:58] white_lilies: has joined #ruby
[14:50:54] jrvlima: has joined #ruby
[14:51:10] rwb: has joined #ruby
[14:51:14] qba73: has joined #ruby
[14:55:04] Chronocity: has joined #ruby
[14:56:07] imanc_: has joined #ruby
[14:56:21] RevanOne: has joined #ruby
[14:56:27] imanc_: has joined #ruby
[14:56:59] k0mpa: has joined #ruby
[14:57:11] jottr: has joined #ruby
[14:57:18] krawchyk: has joined #ruby
[15:00:17] oetjenj: has joined #ruby
[15:02:38] ramfjord: has joined #ruby
[15:04:22] tcopeland: has joined #ruby
[15:05:34] Defenestrate: has joined #ruby
[15:05:34] Defenestrate: has joined #ruby
[15:10:11] govg: has joined #ruby
[15:12:18] Quintasan: has joined #ruby
[15:12:21] alfiemax: has joined #ruby
[15:13:50] xcesariox: has joined #ruby
[15:14:17] rippa: has joined #ruby
[15:15:45] caw___: has joined #ruby
[15:16:05] cschneid: has joined #ruby
[15:16:11] Meow-J_: has joined #ruby
[15:18:56] oleo: has joined #ruby
[15:20:59] BTRE: has joined #ruby
[15:21:31] RougeR: has joined #ruby
[15:22:04] iamdevnul: has joined #ruby
[15:22:58] arkinor: has joined #ruby
[15:24:53] auv: has joined #ruby
[15:26:08] jottr: has joined #ruby
[15:26:42] foamz: has joined #ruby
[15:27:40] ramfjord: has joined #ruby
[15:27:52] schneide_: has joined #ruby
[15:28:03] Rapture: has joined #ruby
[15:28:10] white_lilies: has joined #ruby
[15:28:46] schneide_: has joined #ruby
[15:30:44] Lloyd: has joined #ruby
[15:30:45] mikecmpb_: has joined #ruby
[15:32:49] jottr: has joined #ruby
[15:37:08] tomphp: has joined #ruby
[15:38:27] dionysus69: has joined #ruby
[15:39:33] synthroid: has joined #ruby
[15:41:13] jetpack_joe: has joined #ruby
[15:42:49] jrvlima: has joined #ruby
[15:50:10] white_lilies: has joined #ruby
[15:55:26] quobo: has joined #ruby
[15:57:20] cschneid: has joined #ruby
[15:57:40] cschneid: has joined #ruby
[15:57:47] locsmif: has joined #ruby
[15:59:48] dviola: has joined #ruby
[15:59:56] rjungemann: has joined #ruby
[16:00:10] dinfuehr: has joined #ruby
[16:03:35] white_lilies: has joined #ruby
[16:03:48] locsmif: has joined #ruby
[16:05:45] npgm: has joined #ruby
[16:06:30] n0m4d1c: has joined #ruby
[16:08:27] krawchyk: has joined #ruby
[16:08:57] drewmcmillan: has joined #ruby
[16:11:40] schneide_: has joined #ruby
[16:14:26] hsiktas: has joined #ruby
[16:15:56] schneide_: has joined #ruby
[16:17:20] troys: has joined #ruby
[16:18:22] pastorinni: has joined #ruby
[16:19:01] schneide_: has joined #ruby
[16:20:19] workmad3: has joined #ruby
[16:25:57] John_Ivan: has joined #ruby
[16:25:57] John_Ivan: has joined #ruby
[16:27:51] Nahra: has joined #ruby
[16:28:28] mikecmpbll: has joined #ruby
[16:29:28] LastWhisper____: has joined #ruby
[16:31:03] jamesaxl: has joined #ruby
[16:31:29] vyorkin: has joined #ruby
[16:33:30] Barrt: has joined #ruby
[16:33:41] Barrt: has joined #ruby
[16:33:44] clemens3: has joined #ruby
[16:33:59] Barrt: has joined #ruby
[16:34:25] c0ncealed: has joined #ruby
[16:35:12] snath: has joined #ruby
[16:36:14] arcturiaen: has joined #ruby
[16:40:05] cagomez: has joined #ruby
[16:40:29] mikhail: has joined #ruby
[16:40:40] white_lilies: has joined #ruby
[16:41:10] ramfjord: has joined #ruby
[16:42:09] vutral|kali: has joined #ruby
[16:42:09] vutral|kali: has joined #ruby
[16:43:32] qba73: has joined #ruby
[16:44:13] SeepingN: has joined #ruby
[16:45:47] c0ncealed: has joined #ruby
[16:46:16] n0m4d1c: has joined #ruby
[16:46:16] tomphp: has joined #ruby
[16:48:57] tomphp: has joined #ruby
[16:50:55] jaruga: has joined #ruby
[16:52:49] oetjenj: has joined #ruby
[16:53:06] schneide_: has joined #ruby
[16:53:22] hoylemd: has left #ruby: ()
[16:58:30] lesce: has joined #ruby
[16:59:39] lesce: hey people , I have an issue while trying to run bundle install
[16:59:46] lesce: I get "Bundler::PermissionError: There was an error while trying to write to `/bundle`. It is likely that you need to grant write permissions for that path.
[16:59:46] lesce: An error occurred while installing rake (12.3.0), and Bundler cannot continue.
[16:59:46] lesce: Make sure that `gem install rake -v '12.3.0'` succeeds before bundling."
[17:00:06] alfiemax: has joined #ruby
[17:00:17] lesce: I don't understand why it's trying to install it in /bundle
[17:01:09] lesce: also it used to work until last Friday
[17:01:19] soahccc: lesce: is there something in .bundle/config in your project fodler?
[17:03:26] lesce: soahccc: you're a life saver :D
[17:03:49] lesce: didn't know about it
[17:04:49] Trel: has joined #ruby
[17:08:30] lesce: soahccc : danke schon ! :)
[17:09:23] ldepandis: has joined #ruby
[17:12:44] white_lilies: has joined #ruby
[17:14:59] petto: has joined #ruby
[17:17:57] conta: has joined #ruby
[17:21:30] guille-moe: has joined #ruby
[17:21:33] guacamole: has joined #ruby
[17:21:33] guacamole: has joined #ruby
[17:25:58] yohji: has joined #ruby
[17:26:39] n0m4d1c_: has joined #ruby
[17:28:56] vyorkin: has joined #ruby
[17:29:08] Flashynuff: has joined #ruby
[17:29:20] darkhanb: has joined #ruby
[17:30:15] cthulchu_: has joined #ruby
[17:31:25] apeiros: has joined #ruby
[17:31:28] marr: has joined #ruby
[17:31:47] bmurt: has joined #ruby
[17:34:51] jrvlima: has joined #ruby
[17:36:37] cthulchu_: I'm new to ruby. Am I understanding it correctly that Ruby is higher than even Python?
[17:36:55] cthulchu_: with this interesting thing... 5.times {}
[17:37:10] llua: define higher
[17:37:29] mikhail: has joined #ruby
[17:39:34] jrvlima: has joined #ruby
[17:40:49] cthulchu_: higher = further from the low level
[17:40:59] cthulchu_: more abstract
[17:41:13] cthulchu_: I just started looking into it
[17:41:16] cthulchu_: so I'm not sure
[17:41:37] cthulchu_: I totally never seen anything like 5.times{} by default
[17:41:55] eam: cthulchu_: they're very similar
[17:42:35] cthulchu_: mhm, as any high-level language. Would you say Ruby's similar to Php and JS as well?
[17:44:19] SeepingN: it's a good replacement for PHP. But there's no client side Ruby scripting for browsers that I'm aware of
[17:44:20] guacamole: has joined #ruby
[17:44:21] guacamole: has joined #ruby
[17:44:47] eam: they all have similar abstractions and protections
[17:44:56] hoylemd: has joined #ruby
[17:45:43] eam: python and php are reference counted, arguably you could say that a gc is a higher level abstraction -- but I don't think this super significant
[17:46:16] eam: and this can vary between implementations -- it's more of a detail of a particular implementation than of the language itself
[17:46:24] cthulchu_: I replace php with Node. But Ruby is used in our QA scripting to work with Selenium and I wanna play with it, so Ruby.
[17:46:41] eam: ruby is pretty fun to work with
[17:46:49] cthulchu_: yeah, I actually can see it
[17:47:31] white_lilies: has joined #ruby
[17:47:40] cthulchu_: irb reminds js console :)
[17:49:04] rrutkowski: has joined #ruby
[17:49:39] alfiemax_: has joined #ruby
[17:49:49] bigblind: has joined #ruby
[17:49:58] cthulchu_: this is interesting: a.[](2)
[17:50:04] orbyt_: has joined #ruby
[17:50:22] cthulchu_: so now [] is a function?
[17:50:29] cthulchu_: that takes arguments
[17:50:53] cthulchu_: and sooo... it's a function in the class of arrays
[17:51:07] cthulchu_: cuz a is an array
[17:51:18] tcopeland: exactly http://ruby-doc.org/core-2.5.0/Array.html#method-i-5B-5D
[17:52:29] arkinor: has joined #ruby
[17:52:59] roshanavand: has left #ruby: ()
[17:55:05] alfiemax: has joined #ruby
[17:55:14] SeepingN: I am in love with Ruby for *nix scripting. Use it extensively to manage millions of devices
[17:55:49] soahccc: SeepingN: Millions? what kind of botnet are you running eh? :D
[17:56:19] SeepingN: er, I mean, solar inverters
[17:56:30] SeepingN: could easily be both
[17:56:53] eam: ooh, which solar company is using ruby to run their inverters? I got solar last year and am interested in this :D
[17:56:54] havenwood: SeepingN: Opal gives you Ruby in the browser: https://github.com/opal/opal#readme
[17:57:51] raynold: has joined #ruby
[17:58:03] soahccc: I'm looking for a new side project (CLI, something with ncurses) but can't think of anything useful :(
[17:58:21] SeepingN: havenwood: that's fantastic
[17:59:30] eckhardt: has joined #ruby
[17:59:48] soahccc: I had so much fun with parallelization, deadlocks and racing conditions... my sudoku
[18:02:15] sanscoeur: has joined #ruby
[18:03:34] rrutkowski: has joined #ruby
[18:04:22] Asher: has joined #ruby
[18:04:29] nowhere_man: has joined #ruby
[18:05:12] rrutkowski: has joined #ruby
[18:05:53] mikecmpbll: has joined #ruby
[18:06:59] rrutkowski: has joined #ruby
[18:08:13] spectra: has joined #ruby
[18:11:41] rrutkowski: has joined #ruby
[18:12:21] venmx: has joined #ruby
[18:12:38] [Butch]: has joined #ruby
[18:14:10] chouhoulis: has joined #ruby
[18:16:17] Dimik: has joined #ruby
[18:18:08] hahuang65: has joined #ruby
[18:21:19] white_lilies: has joined #ruby
[18:21:53] Eiam: has joined #ruby
[18:22:51] roshanavand: has joined #ruby
[18:25:45] bmurt: has joined #ruby
[18:25:47] gshaw: has joined #ruby
[18:30:05] sameerynho: has joined #ruby
[18:32:05] krawchyk: has joined #ruby
[18:35:08] deafscribe: has joined #ruby
[18:36:04] hoylemd: has left #ruby: ()
[18:36:09] ramfjord: has joined #ruby
[18:40:52] mtkd: has joined #ruby
[18:41:46] vyorkin: has joined #ruby
[18:45:28] cagomez: has joined #ruby
[18:45:42] hoylemd: has joined #ruby
[18:47:20] jaruga: has joined #ruby
[18:49:44] alfiemax_: has joined #ruby
[18:51:49] suhdood: has joined #ruby
[18:53:40] nowhereman_: has joined #ruby
[18:53:43] LastWhisper____: has joined #ruby
[18:54:27] venmx: has joined #ruby
[18:55:03] eam: I'm working through figuring this out on my end, but would anyone happen to know why Net::HTTP would have a problem automatically decoding gzip content? Deflate works fine
[18:57:28] jaruga: has joined #ruby
[18:58:09] nowhere_man: has joined #ruby
[18:59:04] TomyLobo: has joined #ruby
[18:59:12] white_lilies: has joined #ruby
[19:01:24] cagomez: has joined #ruby
[19:02:31] orbyt_: has joined #ruby
[19:03:00] tomphp: has joined #ruby
[19:04:33] Mrgoose: has joined #ruby
[19:09:34] s3nd1v0g1us: has joined #ruby
[19:13:20] za1b1tsu: has joined #ruby
[19:13:47] alfiemax: has joined #ruby
[19:13:57] claudiuinberlin: has joined #ruby
[19:14:20] bmurt: has joined #ruby
[19:16:05] cagomez: has joined #ruby
[19:16:46] amatas_: has joined #ruby
[19:18:25] zigzig: has joined #ruby
[19:19:51] ur5us: has joined #ruby
[19:20:00] ur5us: has joined #ruby
[19:24:08] baweaver: eam: more than likely it's stupid in what it does automatically. I seem to remember it disliking redirects as well unless told explicitly otherwise.
[19:25:29] eam: the weird thing is that adjusting the accept-encoding from gzip, deflate to just deflate works ok
[19:27:45] alex``: has joined #ruby
[19:27:58] cajone: has joined #ruby
[19:28:24] cdg: has joined #ruby
[19:30:56] vyorkin: has joined #ruby
[19:34:57] eckhardt: eam i don't think we tested the behavior by just...not setting the accept-encoding header?
[19:35:13] eckhardt: ie, maybe different behavior between setting that or leaving it nil?
[19:35:20] white_lilies: has joined #ruby
[19:35:22] eckhardt: wouldn't put it past Net::HTTP
[19:40:07] jottr: has joined #ruby
[19:42:56] claudiuinberlin: has joined #ruby
[19:43:47] white_lilies: has joined #ruby
[19:44:12] cagomez: has joined #ruby
[19:47:04] baweaver: Net::HTTP is a perpetual box of fun
[19:47:20] Tidty: has joined #ruby
[19:47:59] Tidty: has left #ruby: ()
[19:50:46] amelliaa: has joined #ruby
[19:51:06] alfiemax: has joined #ruby
[19:54:00] drona6: has joined #ruby
[19:58:21] atchoum: has joined #ruby
[20:00:04] milardovich: has joined #ruby
[20:00:15] arcturiaen: faraday => https://github.com/lostisland/faraday_middleware/wiki/Gzip-Compression
[20:00:18] clemens3: has joined #ruby
[20:01:16] rrutkowski: has joined #ruby
[20:02:32] guacamole: has joined #ruby
[20:02:32] guacamole: has joined #ruby
[20:02:44] drona6: I'm trying to get a build to pass on CircleCI. It's failing with "Could not open library 'libsodium.so': libsodium.so: cannot open shared object file: No such file or directory (LoadError)". I can solve this locally with `sudo apt-get install libsodium-dev`, but I don't know enough about CircleCI to tell the CI machine to also install that lib. Does anyone know how/where to configure CircleCI with custom packages to install on the
[20:03:26] mr_foto: has joined #ruby
[20:05:08] hfp_work: has joined #ruby
[20:05:31] ur5us: has joined #ruby
[20:06:31] venmx_: has joined #ruby
[20:08:46] jottr: has joined #ruby
[20:09:37] white_lilies: has joined #ruby
[20:10:02] guille-moe: has joined #ruby
[20:10:38] tweezer: has joined #ruby
[20:17:16] gr33n7007h: has joined #ruby
[20:18:51] clemens3: has joined #ruby
[20:19:24] jamesaxl: has joined #ruby
[20:19:57] white_lilies: has joined #ruby
[20:20:16] ldepandis: has joined #ruby
[20:20:40] sanscoeur: has joined #ruby
[20:21:24] alfiemax: has joined #ruby
[20:22:11] sanscoeur: has joined #ruby
[20:25:07] synthroid: has joined #ruby
[20:27:14] Vapez: has joined #ruby
[20:28:46] hahuang65: has joined #ruby
[20:29:19] jcalla: has joined #ruby
[20:29:23] cagomez: has joined #ruby
[20:31:24] sanscoeur: has joined #ruby
[20:31:33] jcalla: had to learn Ruby for work over the weekend. you guys have an interesting language!
[20:31:40] dc30: has joined #ruby
[20:32:13] jcalla: just one main question, do you have a great alternative to irb (similar to ipython)?
[20:33:26] drona6: @jcalla http://pryrepl.org/
[20:33:30] havenwood: ?pry jcalla
[20:33:30] ruby[bot]: jcalla: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[20:34:15] jcalla: thanks. i tried that out briefly last night. however, the syntax highlighting didn't kick in until i submitted a line
[20:34:28] havenwood: jcalla: gem install pry-coolline
[20:34:56] dc30: is there some way to prevent implicit conversion on NULL to 0?
[20:34:59] jcalla: havenwood: i'll do that, thanks
[20:35:28] havenwood: dc30: Use Integer()
[20:35:32] havenwood: >> Integer(nil)
[20:35:33] ruby[bot]: havenwood: # => can't convert nil into Integer (TypeError) ...check link for more (https://eval.in/950997)
[20:36:04] havenwood: dc30: Say more about what's happening?
[20:37:25] havenwood: >> class NilClass; undef to_i end; nil.to_i # Don't actually undefine #to_i though...
[20:37:26] ruby[bot]: havenwood: # => undefined method `to_i' for nil:NilClass ...check link for more (https://eval.in/950999)
[20:37:43] jcalla: havenwood: this looks better. i'll have to install it at home as well.
[20:38:30] guacamole: ACTION gem installs pry-coolline
[20:39:32] dc30: need to catch the value Seconds_Behind_Master when it's NULL
[20:40:04] bmurt: has joined #ruby
[20:41:38] Prutheus: has joined #ruby
[20:43:45] Prutheus: Hello. A Rails question: The application template has something like that `<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>` in it ... I also want to include all tempaltes and themes in the mailers template, but this line of code jsut embeds them relative, not absolute, so their path is /assets/.... and not https://www.domain.com/.....
[20:43:49] Prutheus: how to fix that?
[20:45:56] mtkd: has joined #ruby
[20:48:02] roshanavand: has joined #ruby
[20:48:13] guacamole: does Rails.root.join('path/to/file') fix it?
[20:48:27] guacamole: also might want to try #rubyonrails they might have a better idea
[20:48:59] Prutheus: what do you mean? i do not know the path of it :/
[20:49:55] guacamole: i don't understand the question, sorry
[20:51:08] Prutheus: in the mail, from the usage of the code i showed you, there are some links generated like: `<link rel=3D"stylesheet" media=3D"all" href=3D"/assets/application.se= lf-596c2fa6c5d7dbf2dd37bac9a44f82d983db1a31b09c0518e0108a49324d666f.css?b= ody=3D1" data-turbolinks-track=3D"reload" />`
[20:51:33] Prutheus: but this link can not get resolved from my email client cause there is no web domain/ip given in front of the path
[20:51:59] guacamole: i think mailers need inline styling
[20:52:19] guacamole: or maybe something like this https://github.com/premailer/premailer/
[20:52:29] guacamole: i hope these answers are more relevant to you lol
[20:52:42] guacamole: i would ask #rubyonrails channel they would know better
[20:53:16] Prutheus: the premailer looks great
[20:54:22] workmad3: has joined #ruby
[20:54:26] guacamole: i hope it works for you!
[20:58:57] orbyt_: has joined #ruby
[20:59:27] mtkd: has joined #ruby
[21:00:18] guacamole: has joined #ruby
[21:00:18] guacamole: has joined #ruby
[21:03:04] sanscoeur: has joined #ruby
[21:04:40] dc30: basically I'm catching the output of command as a hash and need to check if specific key value is 0 or NULL
[21:07:03] milardovich: has joined #ruby
[21:07:25] RougeR: has joined #ruby
[21:07:25] RougeR: has joined #ruby
[21:08:11] ur5us: has joined #ruby
[21:11:15] eckhardt: has joined #ruby
[21:15:06] milardovich: has joined #ruby
[21:15:58] wilbert: has joined #ruby
[21:18:32] dc30: if it would be easier https://github.com/sensu-plugins/sensu-plugins-mysql/blob/master/bin/check-mysql-replication-status.rb
[21:20:00] dc30: if the results is an array of hashes each_hash will only work on the first element in array
[21:21:06] dc30: while subsequent elements will not be touched here - looks like a bug?
[21:26:40] workmad3: has joined #ruby
[21:31:09] synthroid: has joined #ruby
[21:34:43] guacamole: has joined #ruby
[21:36:05] hoylemd: has left #ruby: ()
[21:37:16] cdg: has joined #ruby
[21:39:12] cdg_: has joined #ruby
[21:42:47] alfiemax: has joined #ruby
[21:43:30] Dude: has joined #ruby
[21:45:08] Dude: Why are there huge left & right margins on Rails pages for all the content within <% yield %>? My headers take up the width of the entire browser. I googled this and cannot find any discussion about it, which makes me think I didn't use the correct search terms.
[21:45:29] cagomez: has joined #ruby
[21:47:57] hoylemd: has joined #ruby
[21:50:23] cajone: has left #ruby: ()
[21:50:56] Dude: Anyone here?
[21:51:53] venmx: has joined #ruby
[21:52:31] drona6: dude: I think you're describing an issue outside the context of Rails itself. The margins you describe would be the result of CSS, which you can certainly modify. Check app/assets/stylesheets for any CSS files. Don't hesitate to follow up here if I've misunderstood the question. Also #RubyOnRails might be a better place for the question, if it does end up being very Rails-specific.
[21:52:57] mtkd: has joined #ruby
[21:55:35] Dude: drona6: Thanks. I tried joining #Rails which doesn't exist. I already checked stylesheets but body etc doesn't have margins set. I was able to get a sidebar all the way to the left but still have ridiculous padding between sidebar and content. This might be a bootstrap thing since I'm using that gem.
[21:55:51] Dude: So I'll ask at RubyOnRails
[21:56:24] drona6: dude: Sounds good. If possible, paste a link to the repo. It shouldn't be too hard for someone to check out your Bootstrap usage and identify the issue.
[21:56:52] drona6: You could also look for a channel for HTML or CSS specifically, since it sounds like this issue is front-end related. Good luck!
[21:57:01] Dude: Thank you
[22:10:59] dviola: has joined #ruby
[22:14:33] ivanskie: has joined #ruby
[22:17:46] matti: has joined #ruby
[22:17:46] matti: has joined #ruby
[22:22:19] white_lilies: has joined #ruby
[22:23:34] veduardo: has joined #ruby
[22:25:33] Mrgoose2: has joined #ruby
[22:25:37] n0m4d1c: has joined #ruby
[22:28:35] ramfjord: has joined #ruby
[22:29:03] erikm: has joined #ruby
[22:29:13] Dbugger: has joined #ruby
[22:29:16] Dbugger: Hi everyone
[22:30:05] Dbugger: I just saw this line: "@user ||= ... if something" and I am not sure what is the order of operators
[22:30:05] dangeranger: has joined #ruby
[22:30:33] Dbugger: is it "(@user ||= ...) if something" or is it "@user ||= (... if something)"
[22:31:03] Dbugger: what takes precedence? ||= or "postfix if"?
[22:33:16] guacamole: whats the whole line?
[22:34:31] Dbugger: well, that is the whole line
[22:34:32] guacamole: "(@user ||= ...) if something"
[22:34:49] Dbugger: ah, so the "if" takes precedence then
[22:35:01] guacamole: i would try it out to be sure
[22:35:10] Dbugger: mmm, I guess I could check it in the console
[22:35:17] Dbugger: didnt think of that *facepalm*
[22:35:17] guacamole: you can look up operator precedence charts for ruby
[22:37:29] Papierkorb: has joined #ruby
[22:37:53] s1detracking: i mash enemies with destructive malice
[22:37:56] s1detracking: and make them respect
[22:38:00] s1detracking: of the grind status
[22:38:21] Papierkorb: has left #ruby: ("Konversation terminated!")
[22:39:08] dangeranger: has joined #ruby
[22:40:04] Dbugger: seems like it was the other way around. It is "(a ||= b) if c
[22:40:33] guacamole: thats the one i put up there, no?
[22:40:43] guacamole: guacamole: "(@user ||= ...) if something"
[22:40:58] chouhoul_: has joined #ruby
[22:41:21] Dbugger: right, I read your answer the wrong way :P
[22:41:27] guacamole: hah no worries
[22:44:58] qyliss: has joined #ruby
[22:45:05] rwb: has joined #ruby
[22:45:27] [dmp]: has joined #ruby
[22:53:13] guille-moe: has joined #ruby
[22:55:39] mtkd: has joined #ruby
[22:58:55] infinitone_: has joined #ruby
[23:00:16] infinitone_: has joined #ruby
[23:03:36] infinitone_: has joined #ruby
[23:14:40] goatish: has joined #ruby
[23:25:53] guacamole: has joined #ruby
[23:25:53] guacamole: has joined #ruby
[23:36:02] leah2: has joined #ruby
[23:37:39] alfiemax: has joined #ruby
[23:45:07] workmad3: has joined #ruby
[23:53:00] lele: has joined #ruby
[23:54:23] milardovich: has joined #ruby
[23:55:04] pastorinni: has joined #ruby
[23:55:52] orbyt_: has joined #ruby
[23:57:32] ltp: has joined #ruby