« Back to channel list

#ruby - 10 April 2019

« Back 1 day Forward 1 day »
[00:11:06] orbyt_: has joined #ruby
[00:13:06] brool: has joined #ruby
[00:15:37] ramfjord: has joined #ruby
[00:17:14] wallace_mu: has joined #ruby
[00:18:26] s3nd1v0g1us: has joined #ruby
[00:22:34] yield: has joined #ruby
[00:23:22] dsmythe_: has joined #ruby
[00:25:06] nwradio87888798: has joined #ruby
[00:25:44] dsmythe: has joined #ruby
[00:37:01] dsmythe: has joined #ruby
[00:39:04] mangold: has joined #ruby
[00:39:51] jottr: has joined #ruby
[00:53:26] yield: has joined #ruby
[01:01:22] duderonomy: has joined #ruby
[01:10:15] ur5us: has joined #ruby
[01:11:00] ur5us: has joined #ruby
[01:14:57] ramfjord: has joined #ruby
[01:18:16] LtHummus: has joined #ruby
[01:19:44] bambanx: has joined #ruby
[01:24:18] yield: has joined #ruby
[01:29:49] mangold: has joined #ruby
[01:39:35] bambanxx: has joined #ruby
[02:10:05] esrse: has joined #ruby
[02:15:52] duderonomy: has joined #ruby
[02:16:16] Swyper_: has joined #ruby
[02:21:12] duderonomy: has joined #ruby
[02:22:41] duderonomy: has joined #ruby
[02:25:22] orbyt_: has joined #ruby
[02:25:39] houhoulis: has joined #ruby
[02:28:24] orbyt_: has joined #ruby
[02:30:12] Swyper: has joined #ruby
[02:35:02] Swyper: has joined #ruby
[02:41:16] jottr: has joined #ruby
[02:42:28] garyserj: has joined #ruby
[02:53:03] barg: has joined #ruby
[03:10:13] gix-: has joined #ruby
[03:10:22] braincrash: has joined #ruby
[03:17:41] jottr: has joined #ruby
[03:17:56] duderonomy: has joined #ruby
[03:19:19] DmitryBochkarev: has joined #ruby
[03:20:13] DmitryBochkarev: has joined #ruby
[03:29:37] duderonomy: has joined #ruby
[03:32:07] yield: has joined #ruby
[03:33:14] yield: has joined #ruby
[03:35:04] doodlebug: has joined #ruby
[03:40:41] DarthGandalf: has joined #ruby
[03:44:00] ramfjord: has joined #ruby
[03:44:15] jenrzzz: has joined #ruby
[03:48:08] apg: has joined #ruby
[03:48:08] apg: has joined #ruby
[04:25:02] ramfjord: has joined #ruby
[04:35:05] jenrzzz: has joined #ruby
[04:47:41] ur5us: has joined #ruby
[04:50:27] duderonomy: has joined #ruby
[05:02:48] ferr: has joined #ruby
[05:18:21] envex: has joined #ruby
[05:19:06] jottr: has joined #ruby
[05:23:36] Fusl__: has joined #ruby
[05:27:54] mochiyoda_: has joined #ruby
[05:32:17] jenrzzz: has joined #ruby
[05:33:43] DmitryBochkarev: has joined #ruby
[05:34:22] sauvin: has joined #ruby
[05:37:38] jenrzzz: has joined #ruby
[05:42:41] danielsju6: has joined #ruby
[05:43:04] sidx64: has joined #ruby
[05:43:16] aqd: has joined #ruby
[05:46:08] danielsju6: has joined #ruby
[05:46:14] ByronJohnson: has joined #ruby
[05:49:57] conta: has joined #ruby
[05:52:29] kapil____: has joined #ruby
[05:52:40] danielsju6: has joined #ruby
[06:07:08] shtirlic: has joined #ruby
[06:21:10] za1b1tsu: has joined #ruby
[06:24:41] teardown: has joined #ruby
[06:24:45] brendan-: has joined #ruby
[06:27:25] snickers: has joined #ruby
[06:30:29] schleppel: has joined #ruby
[06:36:12] HendrikPeter: has joined #ruby
[06:44:11] andikr: has joined #ruby
[06:47:20] aqd: has joined #ruby
[06:48:48] fanta7531: has joined #ruby
[07:00:37] jottr: has joined #ruby
[07:04:43] TomyWork: has joined #ruby
[07:06:30] marmotini_: has joined #ruby
[07:10:31] aqd: has joined #ruby
[07:11:44] clemens3_: has joined #ruby
[07:17:56] ur5us: has joined #ruby
[07:18:43] rindolf: has joined #ruby
[07:19:00] lxsameer: has joined #ruby
[07:19:35] prestorium: has joined #ruby
[07:27:23] reber: has joined #ruby
[07:33:16] teardown: has joined #ruby
[07:33:39] t0xik: has joined #ruby
[07:36:43] conta: has joined #ruby
[07:39:36] ellcs: has joined #ruby
[07:41:06] marmotini: has joined #ruby
[07:46:44] Sylario: has joined #ruby
[07:48:13] DmitryBochkarev: has joined #ruby
[07:56:41] aqd: has joined #ruby
[07:57:33] vondruch: has joined #ruby
[07:59:06] nwradio87888798: has joined #ruby
[08:03:47] hightower2: has joined #ruby
[08:09:57] suukim: has joined #ruby
[08:11:51] beilabs: has joined #ruby
[08:14:20] jenrzzz: has joined #ruby
[08:15:15] claudiuinberlin: has joined #ruby
[08:29:18] aqd: has joined #ruby
[08:31:39] kyrylo: has joined #ruby
[08:38:09] teclator: has joined #ruby
[08:47:53] aqd: has joined #ruby
[08:48:31] alem0lars: has joined #ruby
[09:01:02] alem0lars_: has joined #ruby
[09:03:58] andikr: has joined #ruby
[09:07:58] havenwood: has joined #ruby
[09:07:59] havenwood: has joined #ruby
[09:08:37] tr50: has joined #ruby
[09:14:26] tr50: has left #ruby: ()
[09:14:31] jottr: has joined #ruby
[09:25:03] aqd: has joined #ruby
[09:26:03] ur5us: has joined #ruby
[09:26:29] andikr: has joined #ruby
[09:27:11] Nicmavr: has joined #ruby
[09:27:39] vondruch: has joined #ruby
[09:31:47] Bish: adam12: i think i found the cause of the problem
[09:32:03] teardown: has joined #ruby
[09:32:15] Bish: i am using text_part and html_part
[09:32:26] Bish: which results in a "multipart/alternative"
[09:32:42] Bish: as soon as you have file attachments thunderbirds expects multipart/mixed
[09:33:12] Bish: thunderbird seems to see the attachment just as another version of the email as instead of a attachments
[09:39:17] ogurk: has joined #ruby
[09:39:51] mangold: has joined #ruby
[09:39:58] ogurk: looking for docs on adding local ca cert to rubygmes on Linux - anyone could help?
[09:44:16] dsmythe: has joined #ruby
[09:44:23] Terens: has joined #ruby
[09:44:30] Terens: is there a way to write it in one line
[09:44:36] Terens: return unless enabled return if self.class.valid?
[09:45:08] teardown: has joined #ruby
[09:45:11] Terens: return if !enabled || ( enabled && self.class.valid?) - the only thing i can think
[09:46:53] phaul: !a || (a && b) == !a || b
[09:49:49] phaul: i mean !a && b.
[09:50:46] phaul: no I was right the first time
[09:51:05] phaul: ACTION needs morning coffee first
[09:51:12] Bish: return unless enabled && self.class.valid?
[09:51:23] Bish: ACTION didnt think about this but this should work
[09:52:37] phaul: you would need to negate self.class.valid? Bish
[09:53:03] phaul: !a || (a && b) == !a || b == !(a && !b)
[09:53:49] dviola: has joined #ruby
[09:55:01] conta: has joined #ruby
[09:55:38] aqd: has joined #ruby
[09:56:51] Bish: still that looks better, doesnt it?
[09:56:59] Bish: return unless enabled && !self.class.valid?
[09:59:10] Bish: hm, for me "return unless enabled && self.class.valid? works
[10:00:37] rubydoc: parser error at position 0 around `>'
[10:00:40] phaul: note that terens wanted to return _if_ self.class.valid? was true
[10:00:50] mhlei: has joined #ruby
[10:00:58] phaul: Bish: &>>
[10:01:24] Bish: but that doesnt make sense :p
[10:02:22] Bish: you can just skip checking enabled then and just return if valid
[10:02:40] mhlei: what is the sign '&' after a variable mean? like this: with_locale(user&.preferred_language, &block)
[10:03:25] Bish: mhlei: if you define & inside a parameter list (in "def") you say you want to get the given block as a proc
[10:03:47] Bish: if you call a method with the operator you pass a proc as a block
[10:04:06] Bish: &&> [1].map {|x| x.inc }
[10:04:07] rubydoc: parser error at position 0 around `&'
[10:04:27] phaul: &>> [1].map {|x| x.inc }
[10:04:30] rubydoc: stderr: -e:2:in `block in <main>': undefined method `inc' for 1:Integer (NoMethodError) (https://carc.in/#/r/6p7l)
[10:04:46] Bish: &&> [1].map {|x| x.succ }
[10:04:47] rubydoc: parser error at position 0 around `&'
[10:05:04] phaul: the > is double not the &
[10:05:18] Bish: &>> [1].map {|x| x.inc }
[10:05:19] rubydoc: stderr: -e:2:in `block in <main>': undefined method `inc' for 1:Integer (NoMethodError) (https://carc.in/#/r/6p7m)
[10:05:31] Bish: haha. oh man
[10:05:34] Bish: &>> [1].map {|x| x.succ }
[10:05:35] rubydoc: # => [2] (https://carc.in/#/r/6p7n)
[10:05:36] phaul: we will get there
[10:05:43] Bish: &>> [1].map(&:succ)
[10:05:44] rubydoc: # => [2] (https://carc.in/#/r/6p7o)
[10:05:57] Bish: mhlei: these 2 are identical as you can see
[10:06:46] mhlei: Bish: thank you ,let me think...
[10:06:53] Bish: the reason for that is:
[10:07:29] Bish: :x.to_proc is Proc.new { |obj| obj.x }
[10:07:40] Bish: and &:x implicitly calls .to_proc on the symbol ":x"
[10:07:51] Bish: &>> [1].map(&(:succ.to_proc))
[10:07:52] rubydoc: # => [2] (https://carc.in/#/r/6p7p)
[10:09:27] Bish: &>> [1].map(&Proc.new {|x| x.succ})
[10:09:28] rubydoc: # => [2] (https://carc.in/#/r/6p7q)
[10:09:40] Bish: all the same thing, just syntactic sugar around it
[10:13:23] Bish: haha, fun if you define [] with a &block, and then do [&:x] you get an array of one proc, that would be confusing af to a novice
[10:15:07] ferr: has joined #ruby
[10:15:09] mhlei: rubydoc is just a machine? not a person.
[10:15:22] mhlei: &&> [1].map {|x| x.inc }
[10:15:23] rubydoc: parser error at position 0 around `&'
[10:15:29] mhlei: i think so .
[10:15:50] Bish: mhlei: 2 > not 2 &
[10:15:54] rubydoc: # => 1 (https://carc.in/#/r/6p7y)
[10:16:12] phaul: users manual : https://github.com/phaul/yarr
[10:16:22] Bish: phaul: oh its yours :)?
[10:19:15] gregf_: has joined #ruby
[10:19:40] aqd: has joined #ruby
[10:24:40] Bish: adam12: yeah, m.content_type = m.content_type.gsub('alternative','mixed') "fixes" it
[10:27:26] marmotini_: has joined #ruby
[10:28:26] Bish: &>> def self.to_proc; ->(x){p x} ;end;[*1..2].each(&self)
[10:28:27] rubydoc: # => 1 (https://carc.in/#/r/6p7z)
[10:35:46] marmotini: has joined #ruby
[10:36:00] rubydoc: # => 2 (https://carc.in/#/r/6p80)
[10:36:29] phaul: &fake Hacker.say_something_smart
[10:36:33] rubydoc: Try to connect the FTP hard drive, maybe it will override the multi-byte pixel!
[10:37:09] mhlei: & puts 'hello'
[10:37:09] rubydoc: parser error at position 0 around ` '
[10:38:05] mhlei: i see. '&>>' is the prefix used to execute online for rubydoc. rubydoc is a good machine.
[10:39:44] mhlei: Bish, thank you very much.
[10:40:47] jottr: has joined #ruby
[10:47:56] keden: has joined #ruby
[10:49:19] AJA4350: has joined #ruby
[10:52:59] conta: has joined #ruby
[10:55:52] Bish: mhlei: yw :)
[10:57:26] mhlei: but my question is that the & is behind a variable. not before . was this the same mean?
[10:58:58] mhlei: def with_user_locale(user, &block) with_locale(user&.preferred_language, &block) end
[10:59:10] mhlei: the user& in this sentence.
[10:59:24] phaul: it's coupled with the `.' &.
[10:59:37] jinie: has joined #ruby
[10:59:56] phaul: it means (user.nil? ? nil : user.preferred_language)
[11:00:46] RedSnarf: has joined #ruby
[11:01:02] jenrzzz: has joined #ruby
[11:01:10] mhlei: phaul, thank u, this is syntactic in ruby ?
[11:01:55] phaul: yes it's just a syntactic sugar for the above. relatively recent as well
[11:02:17] phaul: &>> 1&.succ
[11:02:17] rubydoc: # => 2 (https://carc.in/#/r/6p82)
[11:02:21] phaul: &20>> 1&.succ
[11:02:22] rubydoc: stderr: -e:2: syntax error, unexpected '.' (https://carc.in/#/r/6p83)
[11:03:33] phaul: 20 meaning mri 2.0
[11:03:45] themsay: has joined #ruby
[11:04:16] vondruch_: has joined #ruby
[11:05:38] phaul: simply shortens code like if user then if user.address then if user.address.country ...
[11:06:50] themsay: has joined #ruby
[11:08:19] phaul: assuming that anything can be nil along the chain
[11:28:52] danielsju6: has joined #ruby
[11:29:29] kyrylo: has joined #ruby
[11:29:55] danielsju6: has joined #ruby
[11:33:26] jlebrech: has joined #ruby
[11:35:10] kyrylo: has joined #ruby
[11:38:14] ldnunes: has joined #ruby
[11:41:32] jlebrech: missing_method doesn't work with superclasses?
[11:42:37] phaul: I am guessing you mean method_missing
[11:42:46] jlebrech: that way round yes
[11:43:08] jlebrech: if I call, super on a child class and it's missing it won't scoop it up
[11:44:13] jlebrech: just something funky i wanted to try out.
[11:46:19] phaul: &>> class X; def method_missing(name); "from X : #{name}"; end; end; class Y < X; def foo; super; end; end; Y.new.foo
[11:46:20] rubydoc: # => "from X : foo" (https://carc.in/#/r/6p8c)
[11:47:54] phaul: it seems to work
[11:49:27] sidx64: has joined #ruby
[11:50:26] andikr: has joined #ruby
[11:55:11] Cork: anyone know if there is a way to get redcarpet to offset the header level?
[11:55:23] Cork: i would want to have it start at h3 instead of the default h1
[11:57:06] jlebrech: phaul: thanks :)
[11:57:15] aqd: has joined #ruby
[11:57:22] phaul: jlebrech: yw
[11:58:44] PasNox: has left #ruby: ("Parting")
[12:00:16] ramfjord: has joined #ruby
[12:00:23] teardown: has joined #ruby
[12:01:53] lele: has joined #ruby
[12:09:40] sidx64: has joined #ruby
[12:25:46] al2o3-cr: has joined #ruby
[12:30:37] sidx64: has joined #ruby
[12:37:30] tuor: has joined #ruby
[12:37:44] ryouba: when entering a class with `attr_accessor :foo` through a static method on that class, and then inside of that static method doing `x = new` and `x.foo = :bar` and `return x`, why can't i access #foo from the outside?
[12:38:17] DarthGandalf: has joined #ruby
[12:38:55] Cork: ryouba: is x of that class?
[12:39:12] Cork: cause if it is it should work just fine
[12:40:00] tuor: Hi, I'm currently reading https://docs.ruby-lang.org/en/2.6.0/OptionParser.html and wondering what this line exactlly doies: `Options = Struct.new(:name)`
[12:40:56] Cork: Tuor: you mean what the result is or what it does deeper down?
[12:41:01] phaul: &>> class X; def self.blah; x = new; x.foo = :bar; x; end; attr_accessor :foo; end; X.blah.foo
[12:41:03] rubydoc: # => :bar (https://carc.in/#/r/6p8w)
[12:41:37] Cork: Tuor: cause the result is a class (struct) with an accessor name that you can give values
[12:41:56] mangold: has joined #ruby
[12:42:26] jottr: has joined #ruby
[12:43:36] tuor: I don't know what an accessor is and where this class is defined (is Struct a class provided by ruby it self?)
[12:44:09] Cork: Tuor: new takes a list of values, and it returns a new instance with those names defined as accessor
[12:44:26] Cork: this means you can take the result.name or result.<what ever you called it that is a valid format name>
[12:44:48] Cork: struct isn't much more then that, it is basically a hash
[12:46:03] tuor: so Options.name would then be a Struct?
[12:46:26] Cork: no it should be the value of the struct field name
[12:46:34] Cork: optoons should be a struct class
[12:48:25] tuor: OK let me try.
[12:58:48] aqd: has joined #ruby
[12:59:47] prestorium: has joined #ruby
[13:02:27] jenrzzz: has joined #ruby
[13:03:05] ryouba: Cork: phaul: thanks for the MWE ... i must have a different problem then :-/
[13:03:36] dsmythe: has joined #ruby
[13:07:10] sidx64: has joined #ruby
[13:07:23] ryouba: phaul: any reason you put attr_accessor at the end instead of the beginning of your example class?
[13:07:39] phaul: no reason
[13:07:55] ramfjord: has joined #ruby
[13:08:42] sidx64: has joined #ruby
[13:10:14] phaul: If I had to guess, I would say your attr accessor is on the singleton class of X not on X. are you putting it inside class << self block by any chance?
[13:11:30] ryouba: no, it's at the same place as your example
[13:11:46] ryouba: phaul: but my real class derives from Sequel::Model
[13:11:58] phaul: ok that was just a stab in the dark
[13:12:00] ryouba: even though that shouldn't matter
[13:15:32] ryouba: let me try to create a less minimal MWE
[13:24:30] tuor: Cork: I played a bit around. Now I don't understand why this code prints 'Class': `options = Struct.new(:name); puts options.class`
[13:24:30] ryouba: phaul: the problem was in a completely different part of the code. i was just suspecting the static method to be the culprit as that's a new technique to me.
[13:24:57] phaul: ryouba: ok, glad you figured it out
[13:25:25] Cork: Tuor: that is the internal part i talked about before, i THINK Struct just use the generic Class.new to create a dynamic class under the hood, but not sure
[13:26:20] jlebrech: anything better than rails? looking to simplify the: routes -> controller -> model thing. maybe a flat structure to have an api but also run webpacker.
[13:26:23] ryouba: phaul: all answers yield new questions though. from outside the class, "obj = X.blah; pp obj.foo" shows ":bar". but "pp obj" doesn't contain that info anywhere. why?
[13:26:31] jlebrech: can grape be used as an engine?
[13:28:43] mondz: has joined #ruby
[13:29:25] phaul: ryouba: it depends on the inspect method of the object. pp takes the output of that
[13:31:00] ryouba: oh okay ... so in this case, the inspect method of Sequel::Model?
[13:31:57] phaul: correct. pedantically the _instance method_ inspect of Sequel::Model
[13:32:38] ryouba: i.e. the one without "self." in front of it
[13:33:14] ryouba: so if i want these object attributes to appear as part of #to_hash, then i'll have to overwrite Sequel::Model's #to_hash in my derived class
[13:34:19] sidx64: has joined #ruby
[13:34:54] prestori_: has joined #ruby
[13:35:31] phaul: if you are interested, the way this works is somewhat different from other languages, and Ruby doesnt have static methods. even class methods is a term that's accepted by the community but that's not what we really have
[13:35:53] phaul: It's just one kind of methods.
[13:36:02] ryouba: well Ruby is all i want to write
[13:36:14] ryouba: even though my gf has to write her thesis in Matlab, which is why i'm having to learn that, too
[13:36:18] phaul: methods on objects. That object can be a class though
[13:36:24] ryouba: and okay, i enjoy Arduino, which is C++
[13:36:31] ryouba: but my main interest is Ruby :-D
[13:36:53] phaul: so when i say X.foo, it's not a static method, it's a method on class Foo which is just an object
[13:37:38] ryouba: so the distinction between static method and class method is basically just for the benefit of the humans, but makes no difference to the compiler?
[13:38:41] phaul: more like the distinction between class methods and instance methods. (and static methods in other languages are modelled with class methods but ruby doesn't use such term))
[13:40:17] ryouba: phaul: i understood that in order to use more precise language, one should say "class method" instead of "static method", but saying "instance method" is fine?
[13:41:15] mistergibson: has joined #ruby
[13:41:24] phaul: well, thecniqually a class method is an instance method of the classes singleton class. but that's a mouthful. so ppl just shorten it to class method. Saying just instance method would be confused with normal instance methods
[13:43:00] cisco: has joined #ruby
[13:43:21] Rapture: has joined #ruby
[13:44:45] phaul: &>> x = 'a'; def x.up!; x.upcase; end; x.up!
[13:44:47] rubydoc: stderr: -e:2:in `up!': undefined local variable or method `x' for "a":String (NameError) (https://carc.in/#/r/6p9f)
[13:45:04] phaul: &>> x = 'a'; def x.up!; upcase; end; x.up!
[13:45:05] rubydoc: # => "A" (https://carc.in/#/r/6p9g)
[13:45:28] ryouba: ACTION reads and squints and reads some more and squints some more
[13:45:36] jottr: has joined #ruby
[13:45:43] phaul: so here up! is a method put in the singleton class of object x. No other strings have that method.
[13:46:15] phaul: similarly when in a class you define a method self.foo, it's put in the singleton class of that object that is that class.
[13:46:23] phaul: No other classes have that method
[13:46:58] crankharder: has joined #ruby
[13:47:14] Fridtjof: has joined #ruby
[13:47:37] phaul: if you have time for it I recommend https://www.youtube.com/watch?v=X2sgQ38UDVY
[13:48:19] ryouba: not rn as i need to get going but perhaps as something before bed
[13:48:30] ryouba: i like his books, never seen him talk!
[13:59:36] vondruch: has joined #ruby
[14:04:25] tuor: Cork: so options is an instance of the class Class and has an attribute called name?
[14:07:59] wallace_mu: has joined #ruby
[14:09:18] duderonomy: has joined #ruby
[14:09:30] havenwood: Tuor: Options = Struct.new(:name); options = Options.new 'option name'
[14:09:55] havenwood: Tuor: `options` above is an instance of the `Options` Struct
[14:11:02] havenwood: Tuor: in modern Ruby, there's also a nifty `keyword_init:` param that I think is great
[14:11:07] havenwood: Options = Struct.new(:name, keyword_init: true); options = Options.new(name: 'option name')
[14:11:13] havenwood: #=> #<struct Options name="option name">
[14:12:48] havenwood: Tuor: here are some example Structs in the wild: https://github.com/jcoglan/jit/blob/master/lib/revision.rb#L5-L30
[14:14:51] havenwood: Tuor: It's good practice to use a constant with your struct, but you can also use them anonymously. Here's an example of that in the wild: https://github.com/pry/pry/blob/e23aabdbfc83764ba2c4f42ced15d7f86cd2eddb/lib/pry/testable/mockable.rb#L10
[14:15:39] havenwood: &>> Struct.new(:name).new('Lilibeth')
[14:15:40] rubydoc: # => #<struct name="Lilibeth"> (https://carc.in/#/r/6p9h)
[14:16:36] havenwood: Tuor: https://gist.github.com/havenwood/4bf28bbb06f601e7013cefb13f6ab455
[14:17:41] jottr: has joined #ruby
[14:18:41] tuor: Ah now, I'm creating a new class called Option.
[14:19:08] tuor: I was thinking I am instanciating a Class not creating a new class. Thats a big difference... :)
[14:20:22] DmitryBochkarev: has joined #ruby
[14:21:38] tuor: I read your paste. I did understand I think even your metho to_s with the array to comma seperated words in the string.
[14:21:56] Swyper: has joined #ruby
[14:26:59] nowhereman: has joined #ruby
[14:31:11] UnknownSoldier: has joined #ruby
[14:32:13] mhlei: The tags file made by ctags/ripper-tags is not useful to the namespace. who to resolve it? it
[14:34:00] mhlei: Exactly, the ctags is not very firendly while go to the definition of a tag.
[14:37:03] Dbugger: has joined #ruby
[14:38:19] bahamas: has joined #ruby
[14:39:06] bahamas: hello. does ruby still use oniguruma regular expressions?
[14:39:36] bahamas: great! thanks
[14:40:54] leah2: Onigmo really
[14:42:37] bahamas: what's important is that it's close enough to the regex supported by textmate. because I want to use this site to test some regular expressions for syntax highligthing: https://rubular.com/
[14:42:39] beilabs_: has joined #ruby
[14:42:55] havenwood: https://github.com/k-takata/Onigmo
[14:46:12] mistergibson: has joined #ruby
[14:49:20] AndroidKitKat: has joined #ruby
[14:51:26] sidx64: has joined #ruby
[14:53:15] priodev: has joined #ruby
[14:53:34] Swyper: has joined #ruby
[14:54:16] jottr: has joined #ruby
[14:55:24] AndroidKitKat: has joined #ruby
[14:57:20] sidx64_: has joined #ruby
[15:07:44] AndroidKitKat: has joined #ruby
[15:15:55] jottr: has joined #ruby
[15:21:44] crankharder: has joined #ruby
[15:23:32] rippa: has joined #ruby
[15:25:30] eddof13: has joined #ruby
[15:30:17] eddof13: has joined #ruby
[15:30:47] jcarl43: has joined #ruby
[15:31:05] houhoulis: has joined #ruby
[15:31:13] bahamas: has joined #ruby
[15:33:31] DmitryBochkarev: has joined #ruby
[15:34:52] tdy: has joined #ruby
[15:34:56] DmitryBochkarev: has joined #ruby
[15:36:31] Swyper: has joined #ruby
[15:39:26] crankharder: has joined #ruby
[15:48:33] mangold: has joined #ruby
[15:55:19] andikr: has joined #ruby
[16:04:30] orbyt_: has joined #ruby
[16:06:31] polishdub: has joined #ruby
[16:08:02] AJA4350: has joined #ruby
[16:08:12] gix: has joined #ruby
[16:12:16] mondz: has joined #ruby
[16:15:22] jenrzzz: has joined #ruby
[16:15:24] yield: has joined #ruby
[16:19:38] claudiuinberlin: has joined #ruby
[16:23:10] brool: has joined #ruby
[16:26:05] cisco: has joined #ruby
[16:30:25] HendrikPeter: has joined #ruby
[16:30:34] orbyt_: has joined #ruby
[16:30:53] mondz: has joined #ruby
[16:32:28] andikr: has joined #ruby
[16:33:00] Inline: has joined #ruby
[16:40:46] cthulchu_: has joined #ruby
[16:43:22] ua: has joined #ruby
[16:45:45] c-c: has joined #ruby
[16:46:24] yield: has joined #ruby
[16:52:34] n13z: has joined #ruby
[16:56:47] aonemd: has joined #ruby
[16:57:05] pupsikov: has joined #ruby
[16:57:37] aonemd: has joined #ruby
[17:04:39] dsmythe: has joined #ruby
[17:04:45] lxsameer: has joined #ruby
[17:06:51] doodlebug: has joined #ruby
[17:08:42] ramfjord: has joined #ruby
[17:13:41] i1nfusion: has joined #ruby
[17:14:32] wallace_mu: has joined #ruby
[17:17:21] yield: has joined #ruby
[17:18:04] spiette: has joined #ruby
[17:21:32] bahamas: has joined #ruby
[17:24:47] ramfjord: has joined #ruby
[17:27:43] lucasb: has joined #ruby
[17:29:22] duderonomy: has joined #ruby
[17:32:34] cthulchu_: has joined #ruby
[17:38:28] ramfjord_: has joined #ruby
[17:42:59] orbyt_: has joined #ruby
[17:48:19] yield: has joined #ruby
[17:52:58] pupsikov: has joined #ruby
[17:55:15] spiette: has joined #ruby
[18:04:15] yield: has joined #ruby
[18:07:26] SeepingN: has joined #ruby
[18:15:15] jenrzzz: has joined #ruby
[18:19:43] postmodern: has joined #ruby
[18:23:51] Swyper: has joined #ruby
[18:27:22] zapata: has joined #ruby
[18:30:09] dsmythe: has joined #ruby
[18:32:03] c-c: I bumped into https://www.microsoft.com/en-us/research/publication/a-fork-in-the-road/
[18:34:19] c-c: and since my micro sized engine draft uses fork (line 192) https://gist.github.com/csmr/ffc1c691c24cc9bf7b0f2e9bd729c471
[18:34:41] c-c: I'm thinking maybe must posix_spawn() or other fancying
[18:35:14] yield: has joined #ruby
[18:41:11] dsmythe_: has joined #ruby
[18:42:37] c-c: - but is there a posix spawn in ruby libs?
[18:43:32] c-c: hm, maybe this could be bash level stuff
[18:44:49] dsmythe: has joined #ruby
[18:44:54] orbyt_: has joined #ruby
[18:57:02] noboruma: has joined #ruby
[18:59:02] waheedi: has joined #ruby
[19:03:24] orbyt_: has joined #ruby
[19:03:34] UnknownSoldier: has joined #ruby
[19:06:10] yield: has joined #ruby
[19:07:03] miah: \msg zenspider welcome to the team =)
[19:07:41] miah: all you saw was hunter2 right?
[19:09:40] doodlebug: has joined #ruby
[19:12:37] Zarthus: miah: I saw a person trying to cover up a huge mistake.
[19:14:16] hiroaki: has joined #ruby
[19:16:19] miah: by huge you mean asterisks right?
[19:16:23] t0xik: has joined #ruby
[19:21:02] duderonomy: has joined #ruby
[19:25:00] duderonomy: has joined #ruby
[19:28:28] cd: has joined #ruby
[19:30:28] vondruch_: has joined #ruby
[19:31:04] HendrikPeter: has joined #ruby
[19:31:47] yield: has joined #ruby
[19:31:49] eddof13: has joined #ruby
[19:36:50] maxdoubt: has joined #ruby
[19:50:48] duderonomy: has joined #ruby
[19:53:28] mondz: has joined #ruby
[20:01:23] gnufied: has joined #ruby
[20:02:02] crankharder: has joined #ruby
[20:05:39] SeepingN: has joined #ruby
[20:06:56] Nicmavr: has joined #ruby
[20:07:29] doodleb51: has joined #ruby
[20:09:53] code_zombie: has joined #ruby
[20:13:30] doodlebug: has joined #ruby
[20:19:00] ldnunes: has joined #ruby
[20:19:18] crankharder: has joined #ruby
[20:25:32] doodleb37: has joined #ruby
[20:30:34] quarters: has joined #ruby
[20:31:33] doodlebug: has joined #ruby
[20:32:36] HendrikPeter: has joined #ruby
[20:35:15] noboruma: has joined #ruby
[20:38:21] maryo: has joined #ruby
[20:39:03] jenrzzz: has joined #ruby
[20:40:42] Fernando-Basso: has joined #ruby
[20:49:33] doodlebug: has joined #ruby
[20:53:18] duderonomy: has joined #ruby
[20:56:15] zleap: has joined #ruby
[20:56:15] zleap: has joined #ruby
[20:56:21] i1nfusion: has joined #ruby
[20:56:40] ur5us: has joined #ruby
[20:59:52] duderonomy: has joined #ruby
[21:03:18] noboruma: has joined #ruby
[21:04:58] interruptinuse: has joined #ruby
[21:05:57] hightower2: has joined #ruby
[21:10:40] druonysus: has joined #ruby
[21:10:40] druonysus: has joined #ruby
[21:24:36] nwradio878887987: has joined #ruby
[21:27:37] quarters: has joined #ruby
[21:29:29] ur5us: has joined #ruby
[21:30:38] dsmythe: has joined #ruby
[21:30:44] ur5us: has joined #ruby
[21:31:18] dsmythe: has joined #ruby
[21:31:35] doodleb6: has joined #ruby
[21:33:10] nwradio878887987: has joined #ruby
[21:37:36] doodlebug: has joined #ruby
[21:42:09] zachrab: has joined #ruby
[21:45:47] druonysus: has joined #ruby
[21:45:48] druonysus: has joined #ruby
[21:53:20] orbyt_: has joined #ruby
[21:57:19] dsmythe: has joined #ruby
[22:00:13] SuperL4g: has joined #ruby
[22:00:31] dsmythe: has joined #ruby
[22:05:21] nuh^: has joined #ruby
[22:08:51] maryo_: has joined #ruby
[22:09:14] segy: has joined #ruby
[22:10:55] SuperL4g: has joined #ruby
[22:11:23] zachk: has joined #ruby
[22:12:44] zachk: has joined #ruby
[22:12:47] ramfjord: has joined #ruby
[22:13:28] i1nfusion: has joined #ruby
[22:16:39] nwradio878887987: has joined #ruby
[22:20:54] nowhereman: has joined #ruby
[22:23:06] wallace_mu: has joined #ruby
[22:25:58] crankharder: has joined #ruby
[22:31:46] maxdoubt: has joined #ruby
[22:33:43] Lytol: has joined #ruby
[22:34:25] someuser: has joined #ruby
[22:41:38] duderonomy: has joined #ruby
[22:42:11] zachk: has joined #ruby
[22:53:10] teclator_: has joined #ruby
[22:54:59] teclator_test: has joined #ruby
[22:55:19] ellcs1: has joined #ruby
[22:55:19] teclator_test: has left #ruby: ()
[22:56:01] jottr: has joined #ruby
[22:56:23] AJA4350: has joined #ruby
[22:56:41] jenrzzz: has joined #ruby
[22:59:17] cisco: has joined #ruby
[23:10:04] jenrzzz: has joined #ruby
[23:19:50] cisco_: has joined #ruby
[23:24:23] wallace_mu: has joined #ruby
[23:28:09] jottr: has joined #ruby
[23:30:18] amfdsrt^: has joined #ruby
[23:48:39] scientes: has joined #ruby
[23:48:44] scientes: how do i send EOF on a IO object?
[23:52:35] orbyt_: has joined #ruby
[23:54:58] mondz: has joined #ruby
[23:55:45] jenrzzz: has joined #ruby
[23:56:28] scientes: how do i daemonize a script?
[23:57:33] scientes: why is daemonizing a script so painful
[23:58:10] havenwood: scientes: These days with systemd you log to stdout, quit on term/int, reload on hup. Mike Perham wrote a nice summary: https://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
[23:58:39] scientes: yeah I was a developer of systemd in its early days
[23:58:44] scientes: but i am running from a git hook
[23:58:46] scientes: and need to daemonize
[23:59:56] havenwood: scientes: https://www.jstorimer.com/blogs/workingwithcode/7766093-daemon-processes-in-ruby