« Back to channel list

#ruby - 18 November 2017

« Back 1 day Forward 1 day »
[00:03:44] truenito: has joined #ruby
[00:05:35] n305oul93: has joined #ruby
[00:10:23] alveric3: has joined #ruby
[00:11:33] charliesome: has joined #ruby
[00:12:04] chouhoul_: has joined #ruby
[00:12:43] eckhardt: has joined #ruby
[00:15:20] workmad3: has joined #ruby
[00:21:10] ramfjord: has joined #ruby
[00:23:50] scientes: has joined #ruby
[00:25:18] dstrunk: has joined #ruby
[00:27:04] cagomez: has joined #ruby
[00:27:05] ramfjord: has joined #ruby
[00:32:21] orbyt_: has joined #ruby
[00:32:57] apeiros: has joined #ruby
[00:33:39] ramfjord: has joined #ruby
[00:39:33] ramfjord: has joined #ruby
[00:42:41] cagomez: has joined #ruby
[00:45:05] hutch34: has joined #ruby
[00:46:37] ramfjord: has joined #ruby
[00:46:42] apeiros: has joined #ruby
[00:46:58] jenrzzz: has joined #ruby
[00:46:58] jenrzzz: has joined #ruby
[00:52:30] ramfjord: has joined #ruby
[00:53:39] Defenestrate: has joined #ruby
[00:54:06] hutch34: has joined #ruby
[00:58:18] cschneid_: has joined #ruby
[00:58:25] ramfjord: has joined #ruby
[01:03:09] RickHull: is there an rvm version on travis for ruby 2.5?
[01:03:20] edwardly: has joined #ruby
[01:03:20] edwardly: has joined #ruby
[01:03:22] RickHull: there is ruby-head, but it moves fast and breaks stuff
[01:05:30] havenwood: RickHull: there should be a ruby-2.5.0-preview1
[01:05:58] RickHull: sweet, any reason it's not listed here http://rubies.travis-ci.org/
[01:06:20] RickHull: I keep having to push commits to try and see :/
[01:06:33] RickHull: i.e. to .travis.yml
[01:06:50] ramfjord: has joined #ruby
[01:08:55] RickHull: negative on ruby-2.5.0-preview1
[01:09:10] havenwood: RickHull: If you poke them they'll probably add it.
[01:09:23] RickHull: rvm or travis?
[01:09:26] havenwood: RickHull: Travis
[01:09:27] RickHull: The command "rvm use 2.5.0-preview1 --install --binary --fuzzy" failed and exited with 2 during .
[01:09:43] havenwood: RickHull: Travis just needs to add the precompiled binary.
[01:10:04] havenwood: maybe they had an issue with it, or just haven't gotten to it. unsure!
[01:10:09] cdg: has joined #ruby
[01:10:16] RickHull: ok, thanks. I'm bugging #travis now :)
[01:10:22] jottr_: has joined #ruby
[01:11:05] Defenestrate: has joined #ruby
[01:12:45] apeiros: has joined #ruby
[01:12:53] ramfjord: has joined #ruby
[01:13:27] eckhardt: has joined #ruby
[01:18:36] ramfjord: has joined #ruby
[01:23:36] mjolnird: has joined #ruby
[01:27:09] ramfjord: has joined #ruby
[01:28:09] larcara: has joined #ruby
[01:29:41] eightlimbed: has joined #ruby
[01:33:01] ramfjord: has joined #ruby
[01:35:46] haylon: has joined #ruby
[01:36:12] hutch34: has joined #ruby
[01:38:13] TheRealMattM: has joined #ruby
[01:39:00] ramfjord: has joined #ruby
[01:41:07] bmurt: has joined #ruby
[01:41:08] oetjenj: has joined #ruby
[01:43:03] Ollie: has joined #ruby
[01:43:42] Ollie: Is anyone here?
[01:44:43] RickHull: ACTION looks around
[01:45:36] Azure: has joined #ruby
[01:46:42] Ollie: So I'm completely brand new to computer programming
[01:46:50] Ollie: and I was wondering if anyone would be able to help me?
[01:47:24] ramfjord: has joined #ruby
[01:47:44] havenwood: Ollie: We'd be happy to answer any questions!
[01:48:30] Ollie: I'm not sure if you have heard of it, but there's an iOS app called workflow?
[01:49:23] Ollie: I was able to create a workflow with that app that does what I want. However, I'd like to make a similar script or workflow for my mac.
[01:50:01] Technodrome: has joined #ruby
[01:50:34] Ollie: Basically, it takes a picture, and then parses the text in the picture. It then takes that text and breaks it up into a question, and the answer choices. It then takes the text and rewords it so that the format is the following:
[01:50:50] Ollie: "Question? A OR B OR C"
[01:51:11] Ollie: and then it takes the text and puts it into a custom google search engine.
[01:52:10] Ollie: I was able to figure out how to parse the text from an image, and I have a ruby script that will do that for me, using an OCR api. But that's as far as I've gotten.
[01:52:33] havenwood: Ollie: that sounds like a good start
[01:53:17] ramfjord: has joined #ruby
[01:54:09] Ollie: So what I'm trying to do now is a couple of things. I know how to take a screen shot using automator. And so I'd like to be able to pass that screenshot into a script and then have the script use the OCR api to get the text, arrange it appropriately, and plug it into a custom google search engine, like I was able to do with the workflow iOS app.
[01:58:07] JBbanks: has joined #ruby
[01:59:10] ramfjord: has joined #ruby
[02:00:50] Ollie: Does this seem like it would be difficult to do?
[02:07:22] mson: has joined #ruby
[02:07:35] ramfjord: has joined #ruby
[02:08:14] Ouchy`w: has joined #ruby
[02:09:36] Yzguy: has joined #ruby
[02:11:46] lupine: has joined #ruby
[02:13:28] ramfjord: has joined #ruby
[02:15:37] workmad3: has joined #ruby
[02:15:51] apeiros: has joined #ruby
[02:17:38] Jameser: has joined #ruby
[02:19:25] ramfjord: has joined #ruby
[02:20:18] shinnya: has joined #ruby
[02:20:45] bkxd: has joined #ruby
[02:27:18] cdg: has joined #ruby
[02:27:24] QualityAddict: has joined #ruby
[02:28:37] aroaminggeek: has joined #ruby
[02:29:47] apeiros: has joined #ruby
[02:33:26] hutch34: has joined #ruby
[02:37:04] apeiros: has joined #ruby
[02:37:33] dstrunk: has joined #ruby
[02:38:39] konsolebox: has joined #ruby
[02:39:39] d^sh: has joined #ruby
[02:42:32] jeanlinux: has joined #ruby
[02:44:35] apeiros: has joined #ruby
[02:45:59] hays_: has joined #ruby
[02:46:39] xlegoman: has joined #ruby
[02:46:41] hays_: is this a reasonable way to add in the :clamp method to Comparable? https://bpaste.net/show/c254c334867c
[02:48:04] aroaminggeek: has joined #ruby
[02:49:07] matthewd: hays_: What is your bar for reasonable?
[02:49:18] matthewd: It will do what you want, but you don't need me to tell you that
[02:50:35] havenwood: hays_: You might consider: unless Comparable.respond_to? :clamp
[02:51:01] matthewd: method_defined?
[02:51:25] havenwood: >> Comparable.method_defined? :clamp
[02:51:27] ruby[bot]: havenwood: # => false (https://eval.in/902598)
[02:52:41] hays_: reasonable meaning that it is the best way to do it within reason and without upgrading to ruby 2.4
[02:54:09] havenwood: hays_: here's the backports gem implementation: https://github.com/marcandre/backports/blob/1f10152359d33846d14627d1ef86b480450a33c0/lib/backports/2.4.0/comparable/clamp.rb
[02:54:13] matthewd: I wouldn't use an implementation that allocates two arrays
[02:54:37] mim1k: has joined #ruby
[02:54:57] gizmore|2: has joined #ruby
[02:56:15] havenwood: hays_: Or you could patch your Ruby, if that's on the table: https://github.com/nerdinand/ruby/blob/dbcaa9ca9a46bfa70f3a571181696bb996a8074c/compar.c#L193-L203
[02:59:09] Jameser: has joined #ruby
[02:59:23] David_H_Smith: has joined #ruby
[02:59:27] apeiros: has joined #ruby
[02:59:43] hays_: huh. i didn't know ternary was on the table
[03:00:30] Defenestrate: has joined #ruby
[03:00:30] Defenestrate: has joined #ruby
[03:00:43] hays_: this is where i ended up. I think its probably ok https://bpaste.net/show/16b97f8c6352
[03:00:44] QualityAddict: has joined #ruby
[03:01:19] apparition: has joined #ruby
[03:01:31] David_H_Smith: has joined #ruby
[03:01:57] hays_: not sure why method_defined or responds_to would be preferred one way or another
[03:02:10] hays_: but i figured the backport probably is somewhat canonical
[03:03:18] hays_: feel free to rip it apart if you disagree :) love learning
[03:04:17] shazbotmcnasty: has joined #ruby
[03:04:50] sspreitz: has joined #ruby
[03:05:04] hays_: kinda surprised they didn't write a #clamp!
[03:06:58] jottr_: has joined #ruby
[03:13:37] apeiros: has joined #ruby
[03:14:12] jottr_: has joined #ruby
[03:15:15] quobo: has joined #ruby
[03:17:06] havenwood: hays_: https://gist.github.com/havenwood/e72cc3cfe04a5c00f5dc460756a41cf7
[03:18:49] hays_: havenwood: nice use of between
[03:19:17] hays_: i guess that results in one extra compare
[03:19:37] veeti: has joined #ruby
[03:19:45] hays_: but it is nice to get what one might consider the default case out of the way
[03:20:10] havenwood: hays_: it depends what you want to optimize for - i just followed the logic of the truffleruby specs for #clamp
[03:20:46] hays_: I am probably one of the last fans of the ternary operator :)
[03:20:58] drowze: has joined #ruby
[03:21:02] havenwood: hays_: i don't mind *one* ternary, heh
[03:21:09] havenwood: the nested ternaries get fugly
[03:21:13] apeiros: has joined #ruby
[03:21:36] Mutter: has joined #ruby
[03:26:05] matthewd: respond_to? would be checking the wrong thing
[03:26:37] hays_: i was reading about it.. respond_to? is for a class method I guess
[03:26:45] matthewd: I personally prefer module_eval over the module keyword when reopening things, because it'll error if the thing isn't already there... but that doesn't really matter when you've already done the conditional, I guess
[03:27:21] matthewd: Right. Comparable doesn't [ever] respond_to?(:clamp)... but it does respond_to?(:method_defined?), say.
[03:28:37] matthewd: clamp! would be impossible because Comparable can't mutate its value, and Comparable can't mutate its value [partly] because many of its most popular values are always frozen
[03:28:48] Mutter: has joined #ruby
[03:29:34] larcara: has joined #ruby
[03:30:06] bkxd: has joined #ruby
[03:30:51] shazbotmcnasty: has joined #ruby
[03:31:48] houhoulis: has joined #ruby
[03:36:51] Mutter: has joined #ruby
[03:37:52] TheRealMattM: has joined #ruby
[03:38:08] Mutter: How does ruby compare to JavaScript?
[03:38:19] hays_: not equal?
[03:38:39] matthewd: >> "ruby" <=> "JavaScript"
[03:38:40] ruby[bot]: matthewd: # => 1 (https://eval.in/902600)
[03:41:49] eightlimbed: has joined #ruby
[03:42:34] matthewd: Mutter: If you have more specific questions, I'm sure we can be more helpful. But a full discussion comparing the syntaxes and trade-offs seems better covered by the various long-form articles that turn up in a Google search
[03:42:50] apeiros: has joined #ruby
[03:43:50] Mutter: What is a good way to go about learning ruby?
[03:45:40] kitsunenokenja: has joined #ruby
[03:45:57] matthewd: Mutter: https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40
[03:46:00] erlend: has joined #ruby
[03:51:39] Mutter: has joined #ruby
[03:53:49] nofxx: has joined #ruby
[03:55:35] apeiros: has joined #ruby
[04:00:54] jackjackdripper: has joined #ruby
[04:01:51] dviola: has joined #ruby
[04:06:17] ozcanesen: has joined #ruby
[04:07:31] howdoi: has joined #ruby
[04:10:12] apeiros: has joined #ruby
[04:15:55] workmad3: has joined #ruby
[04:22:53] gix: has joined #ruby
[04:26:25] apeiros: has joined #ruby
[04:26:30] cschneid_: has joined #ruby
[04:28:45] cschneid_: has joined #ruby
[04:30:48] mfb2: has joined #ruby
[04:31:06] larcara: has joined #ruby
[04:37:17] nicesignal: has joined #ruby
[04:39:02] apeiros: has joined #ruby
[04:39:45] eightlimbed: has joined #ruby
[04:43:11] cdg: has joined #ruby
[04:46:46] konsolebox: has joined #ruby
[04:55:10] mim1k: has joined #ruby
[05:00:43] allcentury: has joined #ruby
[05:01:07] Freshnuts: has joined #ruby
[05:02:05] bkxd: has joined #ruby
[05:02:47] apeiros: has joined #ruby
[05:07:22] nicesignal: has joined #ruby
[05:13:42] cschneid_: has joined #ruby
[05:14:15] apeiros: has joined #ruby
[05:14:35] k3rn31_: has joined #ruby
[05:15:23] jottr_: has joined #ruby
[05:16:20] aroaminggeek: has joined #ruby
[05:17:35] mson: has joined #ruby
[05:23:05] cognoscente: has joined #ruby
[05:27:02] apeiros: has joined #ruby
[05:29:52] Yzguy: has joined #ruby
[05:31:46] larcara: has joined #ruby
[05:35:02] enterprisey: has joined #ruby
[05:35:37] shazbotmcnasty: has joined #ruby
[05:41:03] apeiros: has joined #ruby
[05:45:42] eckhardt: has joined #ruby
[05:46:39] konsolebox: has joined #ruby
[05:47:01] Defenestrate: has joined #ruby
[05:47:02] Defenestrate: has joined #ruby
[05:50:52] shazbotmcnasty: has joined #ruby
[05:54:11] _whitelogger: has joined #ruby
[05:56:00] mim1k: has joined #ruby
[06:00:24] enterprisey: has joined #ruby
[06:03:50] apeiros: has joined #ruby
[06:09:40] yeshurun: has joined #ruby
[06:12:20] rabajaj: has joined #ruby
[06:12:56] konsolebox: has joined #ruby
[06:14:08] LocaMocha: has joined #ruby
[06:16:11] workmad3: has joined #ruby
[06:18:00] Xiti: has joined #ruby
[06:20:47] apeiros: has joined #ruby
[06:23:12] RickHull: can I mix in a module to a class within #initialize?
[06:24:07] RickHull: the desired mix in is conditional upon the arguments to #initialize
[06:25:52] rippa: has joined #ruby
[06:28:52] apeiros: has joined #ruby
[06:30:52] shazbotmcnasty: has joined #ruby
[06:31:44] dminuoso: RickHull: Sounds horrible.
[06:32:10] dminuoso: In #initialize the underlying Ruby object has been constructed entirely.
[06:32:32] _aeris_: has joined #ruby
[06:32:43] dminuoso: So assuming you are doing something like Class.new { def initialize(magic) end; }
[06:32:47] larcara: has joined #ruby
[06:32:56] dminuoso: Feel free to conditionally include mixins.
[06:33:19] RickHull: case magic; include TheMixIn
[06:33:31] RickHull: but I'm not getting the method available on the class
[06:33:37] RickHull: er, instance
[06:33:56] dminuoso: RickHull: Need more context to understand what you want to do then.
[06:34:20] RickHull: typically you put `include TheMixIn` within the class definition, not #initialize definition
[06:34:59] RickHull: let me confirm that works as expected -- class Foo; include TheMixin
[06:35:06] dminuoso: RickHull: #initialize constructs objects. If you modify the entire class, then you will activate that change for all already constructed objects.
[06:35:29] RickHull: oh yeah, hm
[06:35:36] RickHull: that's really only a theoretical concern
[06:35:41] RickHull: but uh, not intended
[06:35:45] dminuoso: RickHull: Which is why I implied to do this on the singleton class.
[06:36:17] RickHull: I believe you, I'm just getting NoMethodError
[06:37:11] RickHull: ok, when I do: class Foo; include Bar # I get Foo#baz (defined in Bar)
[06:37:31] dminuoso: RickHull: Remember that in effect Ruby checks the ancestory and for methods on every call. (In reality it uses a caching mechanism, but that happens transparently)
[06:37:56] RickHull: i'm not 100% sure what happens when I do: class Foo; def initialize; include Bar
[06:38:07] armyriad: has joined #ruby
[06:38:11] RickHull: I need Foo#baz
[06:38:16] dminuoso: RickHull: You can reason about what would happen.
[06:38:23] matthewd: RickHull: You get a NoMethdError, because your Foo instance doesn't have an include method
[06:38:24] jottr_: has joined #ruby
[06:38:44] dminuoso: RickHull: If you do not specify a receiver, self is taken. self is going to be the instance method. #include is actually an instance method of Module.
[06:38:51] dminuoso: *is going to be the instance
[06:39:53] RickHull: I don't get NoMethodError for Foo.#include
[06:39:58] RickHull: er Foo#include
[06:40:05] RickHull: I get my Foo.new
[06:40:19] dminuoso: >> class Foo; def initialize() include Enumerable; end; end; Foo.new
[06:40:20] ruby[bot]: dminuoso: # => undefined method `include' for #<Foo:0x406b99c4> (NoMethodError) ...check link for more (https://eval.in/902642)
[06:40:23] dminuoso: Yes you do.
[06:40:29] matthewd: Have you defined a Foo#include elsewhere?
[06:40:43] RickHull: no, I can paste actual code
[06:40:54] matthewd: This is sounding like a bad idea in general, FWIW
[06:41:01] dminuoso: 07:31 dminuoso | RickHull: Sounds horrible.
[06:41:03] dminuoso: My first thought :P
[06:41:04] RickHull: yeah, I don't disagree
[06:41:12] RickHull: but now I'm curious
[06:41:31] dminuoso: But seeing as I have wrote code to change the class of an object, or temporarily short circuit an ancestory path...
[06:41:35] dminuoso: This cant be as dirty.
[06:44:40] RickHull: ok, this is pieced together, no guarantees (yet) https://gist.github.com/rickhull/0a288c24278eefa78b9f46a6408543bb
[06:45:00] RickHull: the mixin is `module PushTree`
[06:45:08] RickHull: the class is `NaryTree`
[06:45:32] RickHull: the condition is when the node_class passed to NaryTree.new is *FlexNode
[06:45:53] shazbotmcnasty: has joined #ruby
[06:46:10] RickHull: L201 has the include within #initalize
[06:46:18] RickHull: I don't get a NoMethodError
[06:46:27] RickHull: when I instantiate with a FlexNode
[06:46:51] wilbert: has joined #ruby
[06:47:28] jottr_: has joined #ruby
[06:48:07] RickHull: I want to do: CompSci::NaryTree.new(CompSci::FlexNode, 5, child_slots: 2).push 5
[06:48:22] RickHull: but I get a NoMethodError on #push (defined in PushTree module)
[06:48:35] dminuoso: RickHull: Do you at any point include modules onto Tree?
[06:48:46] RickHull: haven't touched include
[06:48:57] dminuoso: I do not see how that include could not throw then.
[06:49:07] dminuoso: I'd say the case simply does not trigger.
[06:49:36] dminuoso: Unless Tree is derived from another class, but I know its not because Im looking at the original source code.
[06:49:36] RickHull: i just pasted into naked irb
[06:49:59] dminuoso: RickHull: binding.pry into it, and tell me about method(:include).owner
[06:50:43] matthewd: That file isn't calling it
[06:50:57] matthewd: What did you just paste into irb?
[06:51:01] RickHull: my gist will paste into irb
[06:51:05] RickHull: and then do: CompSci::NaryTree.new(CompSci::FlexNode, 5, child_slots: 2).push 5
[06:51:11] RickHull: I get NoMethodError on #push
[06:51:18] RickHull: not NoMethodError on #include
[06:51:28] dminuoso: That was my thought exactly.
[06:51:30] matthewd: Yes, as dminuoso said, the case isn't matching
[06:51:51] RickHull: well how could the case not match?
[06:51:54] dminuoso: &ri Object#===
[06:51:54] `derpy: http://ruby-doc.org/core-2.4.1/Object.html#method-i-3D-3D-3D
[06:52:01] dminuoso: RickHull: case uses this to match.
[06:52:16] dminuoso: And in particular you are asking it to use this one:
[06:52:20] dminuoso: &ri Class#===
[06:52:21] `derpy: http://ruby-doc.org/core-2.4.1/Module.html#method-i-3D-3D-3D
[06:52:47] apeiros: has joined #ruby
[06:52:58] RickHull: ok, that makes sense enough
[06:53:02] RickHull: stupid case
[06:53:48] matthewd: By my count we're now three wrongs deep
[06:53:49] RickHull: so then self.class.include PushTree
[06:54:34] dminuoso: RickHull: Why not include PushTree in general? Once it's been called with a FlexNode, it will have that behavior for all anyway.
[06:55:01] dminuoso: Either it's correct for all cases, or its not.
[06:55:02] RickHull: those methods don't make sense and don't work without a FlexNode
[06:55:18] dminuoso: So why are you pretending a Car and a Goat are the same thing?
[06:55:26] matthewd: Then why are you happy to include it into the class later?
[06:55:57] RickHull: it's kind of like car with little tires vs big tires. put on big tires and you can engage 4wd
[06:56:07] RickHull: but i'm wide open to alternatives
[06:56:14] dminuoso: RickHull: Except you are putting the big tires on all cars, whether they fit or not.
[06:56:18] dminuoso: And you cant remove them.
[06:56:22] RickHull: agreed, and that's not the intent
[06:56:54] RickHull: I suppose I just need a PushTree < NaryTree
[06:57:20] snickers: has joined #ruby
[06:58:38] RickHull: really, I just want those instance methods on that one instance
[06:58:43] matthewd: I don't understand what this is doing.. too much code for me. But my gut says you need fewer classes, not more.
[06:59:27] RickHull: briefly: a node has an array of children. you can add a child by index (non-flex), or you can just accumulate them (flexnode)
[06:59:59] RickHull: with flexnode, the tree can allow push(new_node) and the caller doesn't have to fiddle with indices
[07:00:20] RickHull: without flexnode, the caller has to add a node to a specific node and index
[07:01:16] RickHull: none of which changes the baseline behavior for a tree or a node
[07:02:27] apeiros: has joined #ruby
[07:02:59] eightlimbed: has joined #ruby
[07:03:07] RickHull: at this point, I've chosen for the tree to be instantiated with a node_class. but I was earlier instantiating it with a node object, the root node
[07:03:12] RickHull: could go either way
[07:04:31] matthewd: Still just feels like a load of code to implement a subset of Array
[07:05:05] mjolnird: has joined #ruby
[07:05:22] RickHull: PRs accepted!
[07:05:49] RickHull: https://github.com/rickhull/compsci
[07:06:00] RickHull: s/accepted/solicited/ :)
[07:06:39] matthewd: Why are Node and ChildNode separate?
[07:06:48] RickHull: ChildNode has a reference to @parent
[07:06:56] RickHull: Node just goes downhill
[07:07:00] matthewd: I can see that. But why are they separate?
[07:07:27] RickHull: #siblings isn't available without @parent
[07:08:07] matthewd: Isn't the whole point of a Node concept that you can treat everything equally?
[07:08:17] matthewd: Having a separate class for the root seems to undermine that
[07:08:36] RickHull: no, they're all Nodes
[07:08:39] RickHull: or they're all ChildNodes
[07:08:49] RickHull: I'm not real happy with the name ChildNodes
[07:09:13] RickHull: a tree of Nodes can only go one way from @root
[07:09:20] apeiros: has joined #ruby
[07:09:24] RickHull: a tree of ChildNodes goes bidirectional
[07:09:59] RickHull: and the Nodes themselves actually define the tree. the Tree classes are for additional functions
[07:10:50] shazbotmcnasty: has joined #ruby
[07:10:55] matthewd: Similarly, why are Node and Tree separate? If the methods were on Node, they could naturally operate on a subtree
[07:10:56] RickHull: the Tree classes just track the @root generally and enforce the count of Node children
[07:11:01] dminuoso: RickHull: A root would just be a Node with no parent.
[07:11:47] RickHull: someone has to hold a reference to a Node somewhere. you can instantiate a Tree to do it
[07:11:55] RickHull: or do it yourself :)
[07:12:05] dminuoso: RickHull: My point is, you are trying to use different Node classes to maintain an invariant of the tree. You can just as easily do this with a single Node class.
[07:12:28] RickHull: Tree#push makes sense
[07:12:35] RickHull: how would that look on Node?
[07:14:51] dminuoso: RickHull: The interface is general enough to just not care. Why should one not be able to attach a tree as a sub-tree of another node/tree?
[07:14:56] RickHull: I don't disagree with any of this BTW -- I really would like to refactor this
[07:15:13] matthewd: children.each {|c| return if c.push(v) }; children << v
[07:16:01] RickHull: dminuoso: as it stands, you can do that with Node today. Node is the ultimate in flexibility
[07:16:05] RickHull: you can create cycles, etc
[07:16:16] RickHull: it may not be a tree, but you will have Nodes and links between them
[07:16:30] uZiel: has joined #ruby
[07:16:48] matthewd: I don't understand what problem this is solving. Right now, it looks like it's creating a complicated API that I wouldn't want to use, and then the implementation flows from that. How should you refactor the implementation? By changing the API.
[07:17:02] Mia: has joined #ruby
[07:17:03] Mia: has joined #ruby
[07:17:15] RickHull: right now, nothing uses a FlexNode
[07:17:27] RickHull: Tree#push is handy for filling up a tree for demo purposes
[07:17:38] RickHull: like, gee whiz print a TernaryTree
[07:17:59] RickHull: but I do have BST which uses KeyNode
[07:19:29] matthewd: Why are there separate Flex and non-Flex nodes?
[07:19:44] matthewd: Basically: why isn't this all one Node class?
[07:19:48] dminuoso: RickHull: In my opinion it's the job of the tree to maintain invariants, not the programmers job by picking the correct node types. What's next? AcyclicNode? DisconnectedNode? UnidirectionalNode?
[07:20:08] RickHull: when I made the first Node, and the first Tree, I made the API based on child accumulation
[07:20:17] RickHull: because I wanted to make trees first to play with them
[07:20:29] hailey27: has joined #ruby
[07:20:32] RickHull: i refactored later that first Node impl into FlexNode
[07:20:52] RickHull: because I realized the child accumulation model isn't that useful
[07:20:56] RickHull: aside from Tree#push
[07:20:58] hailey27: Does anyone here know a lot about Nokogiri? I'm stuck with how to use the HUGE option with a DocumentFragment.
[07:21:03] dminuoso: hailey27: ?crosspost
[07:21:07] dminuoso: ?crosspost hailey27
[07:21:07] ruby[bot]: hailey27: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[07:21:19] Dimik: has joined #ruby
[07:21:33] hailey27: I was about to explain that I also posted in RoR channel :\
[07:21:55] Mia: has joined #ruby
[07:21:56] Mia: has joined #ruby
[07:22:00] RickHull: no worries, you gotta be fast on the draw when dminuoso is around
[07:22:03] hailey27: But thanks for the mansplaining about manners on IRC <3
[07:22:05] dminuoso: Personally I think it's rude to ask in multiple channels regardless.
[07:22:11] dminuoso: It implies urgency.
[07:22:33] hailey27: I'm asking in Rails and Ruby because it's a common library with RoR, but is technically a ruby problem.
[07:22:47] RickHull: I'm OK with dropping FlexNode and Tree#push (and all the @open_parent crap)
[07:23:00] RickHull: but they do work, and they do illustrate the difficulties of that approach
[07:23:11] RickHull: and if I do drop them, then I'm glad I factored it out
[07:23:19] cognoscente: has joined #ruby
[07:23:26] dinfuehr: has joined #ruby
[07:23:47] jottr_: has joined #ruby
[07:25:18] Defenestrate: has joined #ruby
[07:25:19] Defenestrate: has joined #ruby
[07:25:57] RickHull: also, maybe there is a tree application where the accumulation model is useful. I haven't gotten too far in my explorations yet
[07:27:55] RickHull: also, I like to think it's a good real world example for deciding on modules vs classes, mixins vs inheritance vs composition, etc
[07:30:53] shazbotmcnasty: has joined #ruby
[07:30:55] Defenestrate: has joined #ruby
[07:31:00] RickHull: so yes, refactorings wanted. I'm not invested in this design, so much as arrived
[07:31:02] apeiros: has joined #ruby
[07:32:14] cschneid_: has joined #ruby
[07:32:16] RickHull: hailey27: what's the problem? I haven't touched noko in years and dunno about HUGE options
[07:33:08] mtkd: has joined #ruby
[07:34:10] jamesaxl: has joined #ruby
[07:35:43] hailey27: RickHull: https://gist.github.com/JackMc/b6192bf1ce112439b7c3d1bc699b2cd4 both these tests pass
[07:36:31] RickHull: what does 16.megabytes return?
[07:36:46] hailey27: RickHull: number of bytes in 16 megabytes, sorry rails magic :)
[07:36:48] RickHull: some big int
[07:36:57] hailey27: A number > 10 megabytes of bytes
[07:37:12] apeiros: has joined #ruby
[07:37:50] RickHull: what do you expect Nokogiri::Fragment(string) to return?
[07:38:12] RickHull: or #to_s anyway
[07:38:18] hailey27: Well, i would hope it would return a untruncated document (16MB of text)
[07:38:28] hailey27: now i understand why it doesn't though
[07:38:43] hailey27: the HUGE option turns off a nokogiri assumtion that bytesize < 10MB
[07:39:02] hailey27: you can't pass that to the Document DocumentFragment uses under the hood because they didn't code it to take that parameter :(
[07:39:36] hailey27: i'm thinking about contributing it to the project
[07:41:32] jenrzzz: has joined #ruby
[07:41:33] jenrzzz: has joined #ruby
[07:42:07] Nahra: has joined #ruby
[07:42:25] matthewd: Seems like you could do https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/xml/document_fragment.rb#L22-L25 for yourself
[07:42:51] hailey27: was trying to avoid that :(
[07:43:01] matthewd: Create an empty fragment, parse as a full document, then move the children over
[07:43:08] hailey27: and it looks like it does a little bit more work than that, not sure if it's important
[07:43:14] Emmanuel_Chanel: has joined #ruby
[07:43:19] hailey27: good idea :D
[07:43:59] matthewd: Alternatively, I don't know whether the ctx parameter there could be useful as an avenue to get some hints into the parser?
[07:45:17] hailey27: `# This is a horrible hack, but I don't care` lol
[07:46:04] matthewd: Given it's all the "real" documentfragment constructor seems to do, I don't think I'd even feel that bad about it :)
[07:47:08] hailey27: i mean this matthewd :) https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/html/document_fragment.rb#L24
[07:48:36] matthewd: ACTION checks blame
[07:48:41] matthewd: Yup, checks out: https://github.com/sparklemotion/nokogiri/commit/c23eb88b2707a82bc04f807d2d043755ff503c8e
[07:49:10] hailey27: who's "tenderlove"? :o
[07:49:35] Ober: Why the unluck stiff
[07:49:44] matthewd: The person I assumed had written the comment :P
[07:50:55] shazbotmcnasty: has joined #ruby
[07:51:06] RickHull: hailey27: https://www.youtube.com/watch?v=JMGmaRZtgM8#t=45s
[07:52:45] apeiros: has joined #ruby
[07:55:39] hailey27: ohhhh he works at GitHub
[07:55:44] hailey27: thought I knew the name from somewhere
[07:56:11] matthewd: He's also on both the Ruby and Rails core teams
[07:56:35] hailey27: makes sense :)
[07:59:28] jottr_: has joined #ruby
[08:01:45] uZiel: has joined #ruby
[08:07:47] hailey27: thanks for the talk link RickHull!
[08:09:31] klaas: has joined #ruby
[08:10:47] shazbotmcnasty: has joined #ruby
[08:12:12] ruby[bot]: -b *!*@adsl-dyn34.78-99-211.t-com.sk$#ruby-banned
[08:12:26] pb122: has joined #ruby
[08:13:40] apeiros: has joined #ruby
[08:14:16] mbr: has joined #ruby
[08:23:22] dionysus69: has joined #ruby
[08:26:45] ltem: has joined #ruby
[08:27:11] larcara: has joined #ruby
[08:30:51] shazbotmcnasty: has joined #ruby
[08:32:52] apeiros: has joined #ruby
[08:33:47] apeiros: has joined #ruby
[08:33:55] tAn: has joined #ruby
[08:33:57] RickHull: no prob, cheers :)
[08:35:45] snickers: has joined #ruby
[08:38:50] konsolebox: has joined #ruby
[08:42:28] cdg: has joined #ruby
[08:50:53] shazbotmcnasty: has joined #ruby
[08:51:39] ArtCorvelay: has joined #ruby
[09:07:20] tomphp: has joined #ruby
[09:07:20] jottr_: has joined #ruby
[09:10:54] shazbotmcnasty: has joined #ruby
[09:11:42] claudiuinberlin: has joined #ruby
[09:17:44] jottr_: has joined #ruby
[09:22:18] quobo: has joined #ruby
[09:23:29] cognoscente: has joined #ruby
[09:25:07] ledestin: has joined #ruby
[09:25:54] shazbotmcnasty: has joined #ruby
[09:29:39] jeanlinux: has joined #ruby
[09:36:06] michael3: has joined #ruby
[09:40:06] guille-moe: has joined #ruby
[09:44:43] jamesaxl: has joined #ruby
[09:45:19] ahrs: has joined #ruby
[09:45:54] shazbotmcnasty: has joined #ruby
[09:47:01] Nahra: has joined #ruby
[09:50:24] marr: has joined #ruby
[09:51:33] mikecmpbll: has joined #ruby
[09:56:27] bjaX: has joined #ruby
[09:59:18] tAn: has joined #ruby
[10:05:04] tAn: has joined #ruby
[10:05:55] shazbotmcnasty: has joined #ruby
[10:09:28] jeanlinux: has joined #ruby
[10:15:29] _sfiguser: has joined #ruby
[10:16:52] workmad3: has joined #ruby
[10:27:12] _whitelogger: has joined #ruby
[10:30:52] shazbotmcnasty: has joined #ruby
[10:34:05] ramfjord: has joined #ruby
[10:38:04] uZiel: has joined #ruby
[10:38:51] biberu: has joined #ruby
[10:38:54] iamarun: has joined #ruby
[10:43:20] FahmeF: has joined #ruby
[10:45:05] dviola: has joined #ruby
[10:45:55] shazbotmcnasty: has joined #ruby
[10:50:02] erlend: has joined #ruby
[10:54:03] tomphp: has joined #ruby
[10:57:44] dinfuehr: has joined #ruby
[10:58:06] tAn: has joined #ruby
[11:07:27] tAn: has joined #ruby
[11:10:55] shazbotmcnasty: has joined #ruby
[11:13:41] jottr_: has joined #ruby
[11:17:48] gigetoo: has joined #ruby
[11:21:16] rabajaj: has joined #ruby
[11:22:17] rouge: has joined #ruby
[11:23:40] cognoscente: has joined #ruby
[11:25:28] Guest2039: has joined #ruby
[11:25:29] Guest2039: has joined #ruby
[11:30:50] shazbotmcnasty: has joined #ruby
[11:34:09] Defenestrate: has joined #ruby
[11:34:09] Defenestrate: has joined #ruby
[11:35:09] Fire-Dragon-DoL: so there is also a metaclass for the metaclass...
[11:36:03] apeiros: infinitely so, yes
[11:37:30] Fire-Dragon-DoL: suddenly I understand why if I do class << self; extend Forwardable; I don't have it everywhere (good by the way)
[11:43:43] konsolebox: has joined #ruby
[11:48:51] charliesome: has joined #ruby
[11:50:54] shazbotmcnasty: has joined #ruby
[11:52:10] dionysus69: has joined #ruby
[11:54:04] uZiel: has joined #ruby
[11:59:30] oetjenj: has joined #ruby
[12:00:06] oetjenj: has joined #ruby
[12:00:41] harfangk: has joined #ruby
[12:00:53] oetjenj: has joined #ruby
[12:02:16] jrabe: has joined #ruby
[12:05:57] shazbotmcnasty: has joined #ruby
[12:16:06] ramfjord: has joined #ruby
[12:16:13] tAn: has joined #ruby
[12:17:12] workmad3: has joined #ruby
[12:19:31] AnoHito: has joined #ruby
[12:20:08] tomphp: has joined #ruby
[12:20:15] plexigras: has joined #ruby
[12:23:14] cognoscente: has joined #ruby
[12:23:18] zanoni: has joined #ruby
[12:30:56] shazbotmcnasty: has joined #ruby
[12:45:55] shazbotmcnasty: has joined #ruby
[12:48:10] ferr: has joined #ruby
[12:49:01] AnoHito: has joined #ruby
[12:52:34] tomphp: has joined #ruby
[12:53:09] shinnya: has joined #ruby
[12:53:58] tomphp: has joined #ruby
[12:57:54] tomphp: has joined #ruby
[13:03:42] ledestin: has joined #ruby
[13:05:56] shazbotmcnasty: has joined #ruby
[13:09:04] GodFather: has joined #ruby
[13:13:54] ferr: has left #ruby: ("WeeChat 1.9.1")
[13:14:06] Sightes: has joined #ruby
[13:15:38] kitsunenokenja: has joined #ruby
[13:20:03] c_nick: has joined #ruby
[13:20:53] c_nick: i want to test a C++ Dll and have decided to do the testing in Ruby .. I can see "IApplication.dll", "Application.ole" dont know what they are ..
[13:25:55] shazbotmcnasty: has joined #ruby
[13:28:05] tAn: has joined #ruby
[13:32:42] Ricky: has joined #ruby
[13:34:06] Ricky: Hello I need help in ruby on rails
[13:37:00] apeiros: ?rails Rick_
[13:37:01] ruby[bot]: Rick_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[13:37:03] banisterfiend: has joined #ruby
[13:37:57] Mia: has joined #ruby
[13:37:57] Mia: has joined #ruby
[13:39:02] apparition: has joined #ruby
[13:50:06] gnufied: has joined #ruby
[13:50:54] shazbotmcnasty: has joined #ruby
[13:52:58] FahmeF: has joined #ruby
[13:55:43] jeanlinux: has joined #ruby
[13:55:47] InfinityFye: has joined #ruby
[13:57:32] c_nick: has joined #ruby
[13:59:42] hutch34: has joined #ruby
[14:02:01] yeticry: has joined #ruby
[14:10:54] shazbotmcnasty: has joined #ruby
[14:14:41] Azure|dc: has joined #ruby
[14:17:25] workmad3: has joined #ruby
[14:22:53] banisterfiend: has joined #ruby
[14:24:13] tAn: has joined #ruby
[14:26:20] valeth: has joined #ruby
[14:30:54] shazbotmcnasty: has joined #ruby
[14:34:19] banisterfiend: has joined #ruby
[14:39:13] allcentury: has joined #ruby
[14:40:15] dtzuzu: has joined #ruby
[14:41:07] konsolebox: has joined #ruby
[14:45:29] xlegoman: has joined #ruby
[14:45:40] bmurt: has joined #ruby
[14:45:42] ferr: has joined #ruby
[14:46:30] ferr: Hey, what is the normal practice to test the ruby gem on development? With Rails I use Rails console. With IRB how do I include my not published gem?
[14:47:34] uZiel: has joined #ruby
[14:49:51] deadnull: has joined #ruby
[14:50:56] shazbotmcnasty: has joined #ruby
[14:53:47] DLSteve: has joined #ruby
[14:54:28] apeiros: ferr: irb -Ilib -ryourgem
[14:54:31] apeiros: same with pry
[14:54:37] ferr: thanks apeiros
[14:54:41] apeiros: pry also has --gem I believe
[14:55:01] xlegoman: has joined #ruby
[14:55:51] apeiros: personally I have code in my pryrc which loads the lib dir in pwd and a single .rb file from the lib dir (since my gems follow the strict pattern of namespacing everything and thus having only a single .rb file in the top lib dir)
[14:57:32] jamesaxl: has joined #ruby
[14:58:07] banisterfiend: has joined #ruby
[15:04:15] Puffball: has joined #ruby
[15:07:49] iamarun: has joined #ruby
[15:09:31] kapil___: has joined #ruby
[15:10:54] shazbotmcnasty: has joined #ruby
[15:13:12] tAn: has joined #ruby
[15:13:57] goyox86_: has joined #ruby
[15:16:16] herbmillerjr: has joined #ruby
[15:16:43] tAn: has joined #ruby
[15:17:20] gnufied: has joined #ruby
[15:18:47] darkmorph: has joined #ruby
[15:19:57] allcentury: has joined #ruby
[15:23:57] aScottishBoat: has joined #ruby
[15:24:32] goyox86_: has joined #ruby
[15:25:56] shazbotmcnasty: has joined #ruby
[15:27:28] sepp2k: has joined #ruby
[15:33:36] jeanlinux: has joined #ruby
[15:33:42] goyox86_: has left #ruby: ()
[15:37:10] goyox86_: has joined #ruby
[15:40:41] mrgrieves: has joined #ruby
[15:40:45] hopsoft: has joined #ruby
[15:46:57] bjaxxen: has joined #ruby
[15:50:56] shazbotmcnasty: has joined #ruby
[15:52:24] hopsoft: has joined #ruby
[15:58:30] Sightes: has joined #ruby
[16:04:28] valeth1: has joined #ruby
[16:08:27] hurricanehrndz: has joined #ruby
[16:10:29] snickers: has joined #ruby
[16:10:55] shazbotmcnasty: has joined #ruby
[16:17:43] workmad3: has joined #ruby
[16:19:58] hightower2: has joined #ruby
[16:21:29] allcentury: has joined #ruby
[16:23:06] sucks: has joined #ruby
[16:26:56] sucks: has left #ruby: ("Leaving")
[16:27:15] sucks: has joined #ruby
[16:28:36] hurricanehrndz: has joined #ruby
[16:29:37] pb122: has joined #ruby
[16:30:16] mim1k: has joined #ruby
[16:30:56] shazbotmcnasty: has joined #ruby
[16:41:25] mrgrieves: has joined #ruby
[16:41:30] pachet: has joined #ruby
[16:45:56] shazbotmcnasty: has joined #ruby
[16:46:21] bronson: has joined #ruby
[16:46:29] allcentury: has joined #ruby
[16:52:54] sucks: has joined #ruby
[16:55:54] tAn: has joined #ruby
[17:06:55] rouge: has joined #ruby
[17:07:46] allcentury: has joined #ruby
[17:08:16] dstrunk: has joined #ruby
[17:10:55] shazbotmcnasty: has joined #ruby
[17:13:16] dgsntro: has joined #ruby
[17:19:58] mrgrieves: has joined #ruby
[17:24:33] rabajaj: has joined #ruby
[17:27:21] Mutter: has joined #ruby
[17:28:25] badeball: has joined #ruby
[17:30:55] shazbotmcnasty: has joined #ruby
[17:31:05] jamesaxl: has joined #ruby
[17:31:15] cschneid_: has joined #ruby
[17:31:29] badeball: has joined #ruby
[17:32:43] badeball: has joined #ruby
[17:37:23] ski7777: has joined #ruby
[17:42:06] kapil___: has joined #ruby
[17:44:00] konsolebox: has joined #ruby
[17:49:13] eightlimbed: has joined #ruby
[17:50:56] shazbotmcnasty: has joined #ruby
[17:51:20] quarters: has joined #ruby
[17:54:36] apeiros: *sob*, it's this time of the year again - nokogiri fails to bundle on high sierra.
[17:54:40] apeiros: newest version
[17:54:55] apeiros: (not a request for help, just venting)
[17:56:07] snickers: has joined #ruby
[17:56:08] lupine: ACTION passes a debian iso over
[17:56:23] apeiros: aha! had an old bundle-config which seems to have interfered.
[17:56:38] apeiros: so not nokogiri's fault but mine for not remembering global configs :<
[17:56:47] apeiros: lupine: debian? srsly? :D
[17:57:14] lupine: well, I'm not about to suggest centos
[17:57:18] apeiros: if, then I'd try my luck with docker, and then with some minimalistic distro
[17:57:34] apeiros: don't know what the current rave is in that regard. last I heard it was alpine linux I think?
[17:57:43] lupine: you'd never run that on a real machine though
[17:57:54] ltem: has joined #ruby
[17:57:58] apeiros: no, you'd run it in a docker container
[17:58:13] lupine: I'm de-dockerising :) basically nothing personal uses it any more
[17:58:22] lupine: it's all plain debian on real hardware these days
[17:58:44] apeiros: mind talking about it over in #ruby-offtopic? I'm quite interested…
[17:59:03] orbyt_: has joined #ruby
[18:00:05] bmurt: has joined #ruby
[18:01:53] nofxx: has joined #ruby
[18:03:52] Dimik: has joined #ruby
[18:04:02] dviola: has joined #ruby
[18:06:03] scientes: has joined #ruby
[18:06:03] scientes: has joined #ruby
[18:08:02] yabbes: has joined #ruby
[18:08:59] lxsameer: has joined #ruby
[18:10:55] shazbotmcnasty: has joined #ruby
[18:12:08] dtzuzu: has joined #ruby
[18:15:10] bjaX: has joined #ruby
[18:18:02] workmad3: has joined #ruby
[18:23:42] Immune: has joined #ruby
[18:24:14] kitsunenokenja: has joined #ruby
[18:26:36] mson: has joined #ruby
[18:30:49] nowhere_man: has joined #ruby
[18:30:55] shazbotmcnasty: has joined #ruby
[18:31:39] apeiros: lupine: no time to talk? :<
[18:32:38] lupine: apeiros: sorry, completely missed the invite
[18:32:50] apeiros: no worries
[18:33:59] eightlimbed: has joined #ruby
[18:40:29] Hanmac: has joined #ruby
[18:41:38] Lytol: has joined #ruby
[18:50:56] shazbotmcnasty: has joined #ruby
[18:54:45] zautomata: has joined #ruby
[19:00:24] Technodrome: has joined #ruby
[19:00:32] cschneid_: has joined #ruby
[19:02:35] mrgrieves: has joined #ruby
[19:05:58] shazbotmcnasty: has joined #ruby
[19:06:17] pb122: has joined #ruby
[19:09:49] selim: has joined #ruby
[19:10:14] nofxx1: has joined #ruby
[19:19:15] jottr: has joined #ruby
[19:19:50] troulouliou_dev: has joined #ruby
[19:21:33] rouge: has joined #ruby
[19:21:47] mrgrieves: has joined #ruby
[19:23:36] millz: has joined #ruby
[19:25:58] shazbotmcnasty: has joined #ruby
[19:32:09] jottr: has joined #ruby
[19:39:58] jackjackdripper: has joined #ruby
[19:43:22] astronavt: has joined #ruby
[19:45:58] shazbotmcnasty: has joined #ruby
[19:49:10] mtkd: has joined #ruby
[19:49:48] dviola: has joined #ruby
[19:50:06] dviola: has joined #ruby
[19:53:42] pachet: has joined #ruby
[19:55:48] tAn: has joined #ruby
[20:00:29] houhoulis: has joined #ruby
[20:00:37] mark[oz]: has joined #ruby
[20:01:49] gone_haywire: has joined #ruby
[20:04:54] mrgrieves: has joined #ruby
[20:05:52] gone_haywire: has joined #ruby
[20:05:58] shazbotmcnasty: has joined #ruby
[20:08:33] hinbody: has joined #ruby
[20:13:01] nowhere_man: has joined #ruby
[20:14:55] rippa: has joined #ruby
[20:17:33] mrgrieves: has joined #ruby
[20:18:02] jottr: has joined #ruby
[20:18:18] cdg: has joined #ruby
[20:18:20] workmad3: has joined #ruby
[20:19:02] tomphp: has joined #ruby
[20:25:57] shazbotmcnasty: has joined #ruby
[20:26:04] scientes: has joined #ruby
[20:26:04] scientes: has joined #ruby
[20:27:11] snickers: has joined #ruby
[20:28:27] jamesaxl: has joined #ruby
[20:28:37] mim1k: has joined #ruby
[20:30:12] Mutter: has joined #ruby
[20:41:42] orbyt_: has joined #ruby
[20:50:55] shazbotmcnasty: has joined #ruby
[20:51:05] mrgrieves: has joined #ruby
[20:53:32] tAn: has joined #ruby
[20:55:12] maxsong123: has joined #ruby
[20:55:21] maxsong123: Hey guys! I have a Q related to OAuth: https://stackoverflow.com/questions/47370693/how-to-convert-oauth-code-with-an-access-token
[20:56:50] eroux: has joined #ruby
[20:57:28] griffindy: has joined #ruby
[20:58:01] TheRealMattM: has joined #ruby
[20:58:19] jottr: has joined #ruby
[20:58:32] Technodrome: has joined #ruby
[21:02:49] bkxd: has joined #ruby
[21:03:17] havenwood: maxsong123: i hope http://some-service.com/login means https://some-service.com/login ;-)
[21:03:34] dionysus69: has joined #ruby
[21:05:38] cschneid_: has joined #ruby
[21:06:34] kculpis: has joined #ruby
[21:06:52] havenwood: Have you considered encrypted cookies as an option for storing the token? Could you store the token in a server-side session?
[21:07:18] cschneid_: has joined #ruby
[21:07:49] kculpis: has joined #ruby
[21:09:09] kculpis: has joined #ruby
[21:10:59] kculpis: has joined #ruby
[21:13:00] kculpis: has joined #ruby
[21:13:46] Mutter: has joined #ruby
[21:14:32] kculpis: has joined #ruby
[21:15:43] kculpis: has joined #ruby
[21:18:32] tomphp: has joined #ruby
[21:20:46] sepp2k1: has joined #ruby
[21:29:04] enterprisey: has joined #ruby
[21:33:17] GodFather: has joined #ruby
[21:33:55] jottr: has joined #ruby
[21:34:59] https__GK1wmSU: has joined #ruby
[21:37:25] https__GK1wmSU: has left #ruby: ()
[21:46:42] cagomez: has joined #ruby
[21:47:30] shazbotmcnasty: has joined #ruby
[21:49:15] jackjackdripper: has joined #ruby
[22:01:49] mson: has joined #ruby
[22:02:17] matti: has joined #ruby
[22:02:18] matti: has joined #ruby
[22:05:35] c0ncealed: has joined #ruby
[22:07:30] shazbotmcnasty: has joined #ruby
[22:09:16] bkxd: has joined #ruby
[22:14:35] tomphp: has joined #ruby
[22:17:52] jottr: has joined #ruby
[22:18:27] _sfiguser: hello all, can jekyll be used to make websites which are static but not blogs ?
[22:18:36] workmad3: has joined #ruby
[22:19:35] hailey27: has joined #ruby
[22:22:36] astronavt: has joined #ruby
[22:27:29] shazbotmcnasty: has joined #ruby
[22:35:01] dstrunk: has joined #ruby
[22:35:26] knight33: has joined #ruby
[22:35:37] nofxx__: has joined #ruby
[22:35:59] gix: has joined #ruby
[22:38:55] m4rCsi: has joined #ruby
[22:41:07] nawi_is: has joined #ruby
[22:42:05] gix: has joined #ruby
[22:43:22] DTZUZO: has joined #ruby
[22:45:01] Luiz_Navarro: has joined #ruby
[22:47:25] shazbotmcnasty: has joined #ruby
[22:48:27] nawi_is: Hello, I am new to coding and ruby. To start I tried to build the gem rpeg-markdown (markdown works) on OpenBSD with Ruby 2.4.2 which failed with the message *** Parse error in /usr/local/lib/ruby/gems/2.4/gems/rpeg-markdown-1.4.6/ext: Need an operator in '' (Makefile:85) has someone a idea ?
[22:48:34] mtkd: has joined #ruby
[22:49:41] orbyt_: has joined #ruby
[22:50:54] RickHull: nawi_is: can you paste more output to a paste site? include the command you ran, and all the ouput please
[22:51:15] nawi_is: yes, one moment
[22:51:16] PaulCapestany: has joined #ruby
[22:51:45] mrconfused: has joined #ruby
[22:52:44] mim1k: has joined #ruby
[22:53:36] p0s1x: has joined #ruby
[22:53:42] nawi_is: RickHull: https://pastebin.com/XMgEew4F
[22:53:43] ruby[bot]: nawi_is: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f99a8e18f64f6dc63afa8e8d5e234832
[22:53:43] ruby[bot]: nawi_is: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[22:54:56] RickHull: looking at https://github.com/rtomayko/rpeg-markdown/blob/master/ext/extconf.rb
[22:55:00] zanoni_: has joined #ruby
[22:56:34] nawi_is: RickHull: is the error related to glib ?
[22:56:57] RickHull: dunno, the error makes it sound like make isn't happy with the Makefile
[22:57:06] RickHull: maybe BSD make vs GNU make?
[22:57:48] RickHull: or maybe the error handling for lack of glib is goofed?
[22:57:57] nawi_is: there is no glib on OpenBSD but a glib2
[22:58:36] RickHull: can you examine the Makefile?
[22:58:46] RickHull: i think the error output shows the path to it
[23:00:35] RickHull: see if it looks ok, and/or paste it :)
[23:00:44] jottr: has joined #ruby
[23:01:04] RickHull: use gist.github.com -- and you can update your existing pastes
[23:01:14] RickHull: not sure if you have to be logged in for that
[23:01:46] bmurt: has joined #ruby
[23:05:31] thinkpad: has joined #ruby
[23:07:00] Kilo`byte: i have a year and a week number. How do i get a date from that
[23:07:10] Kilo`byte: like, for the first day of said week
[23:07:41] nawi_is: RickHull: the paths in the CFLAGS are there on the system but I see no LDFLAGS
[23:08:25] RickHull: Kilo`byte: start here https://ruby-doc.org/stdlib-2.4.2/libdoc/date/rdoc/Date.html
[23:08:33] RickHull: not sure off the top of my head
[23:09:00] Kilo`byte: yeah, haven't found any way
[23:10:00] RickHull: Kilo`byte: you should be able to get the the first day of any year, and do arithmetic with 7
[23:10:17] Kilo`byte: that would have been my backup plan
[23:10:34] Kilo`byte: because then i need to do arithmetic to get start/end of week
[23:10:59] RickHull: look at Date.commercial
[23:11:11] RickHull: it constructs a date based on year, week_num, day_num
[23:11:49] RickHull: nawi_is: not sure -- can you run make over it?
[23:11:56] bkxd: has joined #ruby
[23:12:07] Kilo`byte: RickHull: ah that sounds exactly like what i need
[23:13:19] ^mtkd: has joined #ruby
[23:14:54] nawi_is: RickHull: I have to look at a clean install for it. What I know is, that pkg_config is pkg-config. If I pass the Flags manually I get a new error but my MakeFile is gone.
[23:15:34] codetrane: has joined #ruby
[23:16:04] nawi_is: RickHull: now I get No such file or directory - getcwd
[23:17:10] codetrane: has joined #ruby
[23:22:38] shazbotmcnasty: has joined #ruby
[23:23:48] RickHull: that sounds like your current dir (in your shell) got overwritten
[23:24:08] RickHull: but not sure, maybe someone else knows more. I would still paste your Makefile
[23:26:52] nawi_is: RickHull: like that, I opened a new terminal and the Makefile was there. a make Makefile brings the same error
[23:28:23] jidar: "hey guys, when I do X Y happens, can anybody explain how?" "well we need to understand X, and haven't been provided with the content" "now cwd doesn't work???"
[23:28:55] nawi_is: RickHull: I will try that once again and post the Makefile later, thanks for your help.
[23:29:01] evie_hammond: has joined #ruby
[23:30:59] guardianx: has joined #ruby
[23:31:45] ogres: has joined #ruby
[23:31:46] knight33: has joined #ruby
[23:33:26] hopsoft: has joined #ruby
[23:35:31] cagomez: has joined #ruby
[23:36:41] naprimer2: has joined #ruby
[23:36:41] aroaminggeek: has joined #ruby
[23:36:48] knight33: has joined #ruby
[23:37:12] minim: has joined #ruby
[23:38:46] minim: is there anyone who could help me ?
[23:39:09] ruby[bot]: Just ask your question, if anyone has, is or can, they will respond.
[23:42:00] jottr: has joined #ruby
[23:42:37] shazbotmcnasty: has joined #ruby
[23:43:17] p0s1x: has joined #ruby
[23:44:30] workmad3: has joined #ruby
[23:44:39] Hexafox[I]: has joined #ruby
[23:45:10] nawi_is: has joined #ruby
[23:50:27] havenwood: mini_: Ruby questions are welcome. Ask away!
[23:51:56] guardianx: has joined #ruby
[23:51:58] RickHull: what's a good way to invoke a gem's rake tasks?
[23:53:26] Hexafox[I]: has joined #ruby
[23:54:36] hutch34: has joined #ruby
[23:55:54] minim: havenwood im preparing my file with question
[23:56:23] nawi_is: The Makefile is here https://gist.github.com/anonymous/366799529a025323f62a4fe8238f3625 no registration is required.