« Back to channel list

#ruby - 12 April 2016

« Back 1 day Forward 1 day »
[00:00:38] Vile`: has joined #ruby
[00:02:25] ramfjord: has joined #ruby
[00:03:42] Waqas: has joined #ruby
[00:03:50] rahult_: has joined #ruby
[00:04:16] william3: has joined #ruby
[00:07:21] baweaver: sanity check: 2.0 introduced KWARGS, but it wasn't until 2.1 that you could `def method(blank:)` right?
[00:08:10] baweaver: I'll probably find out in the next hour in any case.
[00:10:29] failshell: has joined #ruby
[00:10:50] shayan: has joined #ruby
[00:11:12] Logico: has joined #ruby
[00:11:46] flashpoint9: has joined #ruby
[00:12:00] Stan: has joined #ruby
[00:13:27] agentmee1kat: has joined #ruby
[00:13:31] flashpoi_: has joined #ruby
[00:16:09] DLSteve: has joined #ruby
[00:17:49] cpruitt: has joined #ruby
[00:18:50] havenwood: Sanity checks out.
[00:19:06] ascarter: has joined #ruby
[00:19:07] weemsledeux: has joined #ruby
[00:19:10] agentmeerkat: has joined #ruby
[00:19:33] mistermo_: has joined #ruby
[00:19:46] charliesome: has joined #ruby
[00:20:22] cpruitt: has joined #ruby
[00:20:47] kies: has joined #ruby
[00:21:16] baweaver: has joined #ruby
[00:23:54] najam: has joined #ruby
[00:24:24] idletask: has joined #ruby
[00:27:41] jaequery: has joined #ruby
[00:31:23] _stu_: has joined #ruby
[00:32:35] flashpoint9: has joined #ruby
[00:35:31] freerobby: has joined #ruby
[00:36:48] stannard: has joined #ruby
[00:37:35] mistermocha: has joined #ruby
[00:37:43] p0p0pre7: has joined #ruby
[00:39:21] eljimbo: has joined #ruby
[00:39:38] karapetyan: has joined #ruby
[00:39:50] karapetyan: has joined #ruby
[00:40:37] karapetyan: has joined #ruby
[00:43:00] RegulationD: has joined #ruby
[00:43:44] NinjaPanzer: has joined #ruby
[00:47:04] chagel: has joined #ruby
[00:49:57] shevy: "C: Freeze mutable objects assigned to constants."
[00:50:08] shevy: hmm is this what everyone else also does? above is a rubocop warning
[00:50:14] diegoaguilar: has joined #ruby
[00:51:24] mistermocha: has joined #ruby
[00:51:39] jenrzzz: has joined #ruby
[00:51:45] eggoez: has joined #ruby
[00:52:25] pawnbox: has joined #ruby
[00:52:59] jinie: has joined #ruby
[00:53:28] idletask: has joined #ruby
[00:56:04] kadoppe: has joined #ruby
[00:57:02] Ropeney: shevy, should do
[00:58:27] flashpoint9: has joined #ruby
[00:58:44] ekinmur: has joined #ruby
[00:59:53] Waqas: has joined #ruby
[01:00:25] workmad3: has joined #ruby
[01:01:52] shazaum_: has joined #ruby
[01:02:08] bruno-: has joined #ruby
[01:06:54] william3: has joined #ruby
[01:12:38] edwinvdgraaf: has joined #ruby
[01:17:19] failshell: has joined #ruby
[01:17:35] nando293921: has joined #ruby
[01:18:26] stannard: has joined #ruby
[01:20:33] kadoppe: has joined #ruby
[01:24:31] freerobby: has joined #ruby
[01:24:37] youch: has joined #ruby
[01:26:32] GodFather: has joined #ruby
[01:28:48] diegoaguilar: has joined #ruby
[01:29:12] auzty: has joined #ruby
[01:35:22] charliesome: has joined #ruby
[01:41:41] RubyJedi-ing: has joined #ruby
[01:50:25] cabargas: has joined #ruby
[01:52:02] ascarter: has joined #ruby
[01:52:35] blt: has joined #ruby
[01:54:26] _stu_: has joined #ruby
[01:55:57] LoganG: has joined #ruby
[01:57:49] hinbody: has joined #ruby
[01:58:07] weemsledeux: has joined #ruby
[01:59:02] karmatr0n: has joined #ruby
[01:59:04] blt: has joined #ruby
[01:59:59] stannard: has joined #ruby
[02:00:08] ascarter: has joined #ruby
[02:00:20] jenrzzz: has joined #ruby
[02:00:35] Musashi007: has joined #ruby
[02:01:49] eljimmy: has joined #ruby
[02:05:51] lkba: has joined #ruby
[02:05:51] ThePolarCat: has joined #ruby
[02:05:51] pawnbox: has joined #ruby
[02:05:58] ThePolarCat: Hi, I need some help with the scan method
[02:06:31] Ox0dea: ThePolarCat: Fire away.
[02:07:09] apes: has joined #ruby
[02:07:37] chouhoulis: has joined #ruby
[02:15:04] ThePolarCat: I'm trying to search for long string that contains a file extention: I'm using this regEx itemStr.scan(/\.[0-9a-z]+$/i) however the return array is always empty
[02:15:04] william3: has joined #ruby
[02:15:04] ur5us: has joined #ruby
[02:15:04] ThePolarCat: example string: "../../lib/images/background/background.jpg"
[02:15:04] smathy: ThePolarCat, you're doing something very wrong then, see: https://gist.github.com/smathy/350f9a083baea628874a6205c40b91f1
[02:15:18] helpa: has joined #ruby
[02:15:38] smathy: ThePolarCat, so gist your code.
[02:15:46] mistermocha: has joined #ruby
[02:15:46] mclee: has joined #ruby
[02:16:00] smathy: Ox0dea, the \. won't be affected by the ?
[02:16:00] blackgoat: has joined #ruby
[02:17:38] Ox0dea: It has to be `[^.]+` rather than `.+`, but I feel like Onigmo could DWIM there.
[02:17:46] perry: has joined #ruby
[02:17:46] perry: has joined #ruby
[02:18:05] shevy: ThePolarCat one of the best ways to test regexes like that is http://rubular.com/ - you can, after the regex matches to your given intpu, click on "make permalink" and link in to this URL in your comment section
[02:18:39] OTORelic: has joined #ruby
[02:18:43] majjoha: has joined #ruby
[02:19:17] rob_: has joined #ruby
[02:19:58] ThePolarCat: ill try rubular
[02:20:16] tmtwd: has joined #ruby
[02:21:16] mozzarella: Ox0dea: what are you trying to do?
[02:22:00] Ox0dea: mozzarella: Extension extraction.
[02:22:08] Ox0dea: >> path = '../../foo/bar/baz.gifv'; path[/\.([^.]+)$/, 1]
[02:22:09] ruby[bot]: Ox0dea: # => "gifv" (https://eval.in/551803)
[02:23:11] ThePolarCat: http://www.rubular.com/r/U9XFE4TqVj
[02:23:24] goglosh: has joined #ruby
[02:23:45] mozzarella: wtf is wrong with ruby-doc?
[02:24:30] goglosh: depends on what you're doing wrong
[02:26:21] shevy: ThePolarCat ah you used a trailing /
[02:26:46] shevy: ThePolarCat http://www.rubular.com/r/hwGMDLgwC1
[02:27:35] timonv: has joined #ruby
[02:27:41] pocketprotector: has joined #ruby
[02:27:56] mozzarella: Ox0dea: anyway, I would just use File.extname
[02:28:03] Ox0dea: Good call.
[02:28:14] ThePolarCat: i'll try it out
[02:28:22] elifoster: has joined #ruby
[02:28:31] mozzarella: anyone familiar with pry?
[02:29:17] cabargas: has joined #ruby
[02:30:15] mozzarella: I don't know how to scroll the list, doesn't do anything when IĀ press the arrow keys: http://i.imgur.com/yZrHJ6K.png
[02:30:20] z4phod: has joined #ruby
[02:30:31] mozzarella: basically, I did File.<tab>
[02:30:51] william3: has joined #ruby
[02:31:29] sdothum: has joined #ruby
[02:31:30] wolffles: has joined #ruby
[02:31:30] stannard: has joined #ruby
[02:31:36] Ox0dea: mozzarella: k = Up, j = Down.
[02:31:58] Ox0dea: Just like in most any other pager.
[02:32:05] LoneHerm_: has joined #ruby
[02:32:24] mozzarella: doesn't do anything
[02:32:39] mozzarella: doesn't vim have it the other way around?
[02:33:07] mozzarella: oops nevermind
[02:33:24] mozzarella: (still doesn't work, though)
[02:34:13] smathy: mozzarella, space?
[02:34:23] smathy: ...just looks like a pager.
[02:35:06] pawnbox: has joined #ruby
[02:35:12] mozzarella: smathy: oh yeah, that does work, but I can't go up
[02:35:48] smathy: I don't know what pager that's using, is it in pry?
[02:36:54] chagel: has joined #ruby
[02:37:02] wolffles: has joined #ruby
[02:37:49] ThePolarCat: this my current code and output, I still get an empty return: https://gist.github.com/ThePolarCat/402b65399ed114936e28ee684fed1efa
[02:38:17] smathy: mozzarella, I dunno, the help says it will use less if available, but it's obviously not: https://github.com/pry/pry/wiki/Customization-and-configuration#Config_pager
[02:38:30] Ox0dea: Or else mozzarella has Caps Lock on or something. :P
[02:38:48] smathy: Ox0dea, maybe, but it didn't work for me either, definitely not less.
[02:39:06] Ox0dea: ThePolarCat: https://eval.in/551807
[02:39:26] Ox0dea: I don't know how you got those empty Arrays...
[02:40:06] OTORelic: has joined #ruby
[02:41:24] shevy: mystery code!
[02:41:35] lyoshajapan: has joined #ruby
[02:41:58] Chagel_: has joined #ruby
[02:42:29] ThePolarCat: Ox0dea: in the link you've provided there is an error in the output "undefined method `scan'"
[02:42:32] smathy: ThePolarCat, you have a hash, and you're using .scan on it.
[02:42:41] smathy: How are you not getting NoMethodError here?
[02:42:48] najam: has joined #ruby
[02:43:37] mdih: has joined #ruby
[02:44:28] smathy: ThePolarCat, where are you running that code?
[02:44:53] cdg: has joined #ruby
[02:49:29] ThePolarCat: when i put a string instead of the regEx it works: https://eval.in/551822
[02:49:46] smathy: mozzarella, believe it or not, the File.<tab> doesn't actually enter the pager code.
[02:50:09] idefine: has joined #ruby
[02:50:28] smathy: ThePolarCat, OMG, no, that's working because you have a String instead of a Hash.
[02:50:55] smathy: ThePolarCat, who are you, and who sent you?
[02:51:01] smathy: Someone over in #Python?
[02:51:21] ThePolarCat: Sorry i've absolutly no experience in ruby, just trying to modify a script
[02:51:52] smathy: ThePolarCat, that's the first thing you've said that makes sense: https://www.ruby-lang.org/en/documentation/
[02:52:15] smathy: ...at least it's clear now how your other code was working, you lied in your paste though.
[02:52:44] OTORelic: ThePolarCat: you're looking to find only png files right?
[02:52:59] ThePolarCat: no any extension
[02:53:24] nanoz: has joined #ruby
[02:53:26] OTORelic: hmm, you should look to Glob the directory your defining
[02:53:58] OTORelic: it works much better than a shitty weird hash
[02:54:04] smathy: ACTION was so afraid you were going to actually help this dolt
[02:54:20] bahar: has joined #ruby
[02:54:20] bahar: has joined #ruby
[02:54:23] stannard: has joined #ruby
[02:54:30] OTORelic: hey we're all here to learn ya know :)
[02:55:35] smathy: If you say so.
[02:55:44] smathy: I think some people are just here for free consulting.
[02:56:02] pawnbox: has joined #ruby
[02:58:23] bronson: has joined #ruby
[02:58:58] Waqas: has joined #ruby
[03:00:07] OTORelic: ThePolarCat: are you only looking for 0x0 hight width files?
[03:01:04] ThePolarCat: i want to tell if the string contains an extension or not, the string can be anything
[03:01:15] OTORelic: smathy, it does kind of seem like a weird site scraper thing hes doing
[03:01:44] havenwood: smathy: Be nice!
[03:01:55] OTORelic: lol its whatever man.
[03:02:09] OTORelic: being mean on the internet is easy, being is hard.
[03:02:25] OTORelic: people like easy things, it makes them feel smart and superior.
[03:02:31] OTORelic: *being nice
[03:02:44] smathy: havenwood, if serious, let me know what was over the line. I'm still getting a feel for this channel.
[03:02:55] Eiam_: has joined #ruby
[03:03:24] Ox0dea: I think it's A-okay to question the motives of somebody who fabricates erroneous return values.
[03:04:42] william3: has joined #ruby
[03:04:49] shevy: he should learn ruby first
[03:05:21] OTORelic: thats what we're all doing in this channel, arent we?
[03:05:40] shevy: not really :)
[03:05:46] OTORelic: im working on elixir.
[03:05:59] OTORelic: so what are you doing on this channel then shevy?
[03:06:02] havenwood: New folk are welcome here! There's also a ##new2ruby channel that's a smaller, quieter place.
[03:06:15] smathy: Even if this channel was for totally Day 1 ruby people, I would still expect a gist that wasn't fabricated.
[03:06:16] shevy: OTORelic I idle to power!
[03:06:47] ThePolarCat: joining this channel was my last resort, i've been working on this script since yesturday
[03:07:12] smathy: Yeah, but ThePolarCat, this paste from you was fiction: https://gist.github.com/ThePolarCat/402b65399ed114936e28ee684fed1efa
[03:07:24] OTORelic: ouch... dude just use a gem then. no reason to reinvent the wheel on some of these simple problems
[03:07:50] OTORelic: i'd be suprisesd if there wasnt a method that handles that stuff
[03:08:00] smathy: ...and you were asked a few times for your actual code and you just didn't respond. You had 3 or 4 people trying to help you and you couldn't even provide enough information for your problem to make sense.
[03:08:18] ThePolarCat: fiction? i've copied from the script
[03:08:33] chagel: has joined #ruby
[03:08:39] shevy: <Ox0dea> I don't know how you got those empty Arrays...
[03:09:27] ThePolarCat: it's fine i was looking for some ideas, that's why im in a CHAT room ;)
[03:10:14] smathy: ThePolarCat, no, you didn't - that code in your paste will have resulted in a NoMethodError because you're calling .scan on a Hash.
[03:11:05] smathy: ThePolarCat, the code you eventually showed in eval.in had you setting itemStr to a *string* containing the hash in your original paste. That was the first time you showed that being set to a string.
[03:11:58] smathy: ThePolarCat, it's still not clear if you just set it to that string to get your code to work, or if a string is what you actually have in your input, because you've never shown your actual code that you're actually struggling with.
[03:12:36] OTORelic: yea i mean, hes scanning but its to a particular file....so why even scan then. it can only find that one file.
[03:12:46] smathy: No one knows :(
[03:13:18] smathy: The output in his paste shows two sets of outputs, as if he's in a loop - but we've never seen a loop.
[03:13:25] OTORelic: and its a "../" so its local, which is even more confusing
[03:13:37] braincrash: has joined #ruby
[03:13:44] OTORelic: if its local, then glob the Dir
[03:14:10] ThePolarCat: my problem is misusing scan
[03:14:11] OTORelic: but whatevs. hows your night been so far smathy?
[03:14:15] smathy: ACTION has no patience for guessing
[03:14:37] cabargas: has joined #ruby
[03:14:41] smathy: Heh, good :)
[03:15:04] flashpoint9: has joined #ruby
[03:15:40] smathy: Who doesn't love spring :) Time for me to go afk. Good luck ThePolarCat, just in case it gets through, just gist ALL your actual source code, someone will be more likely to help.
[03:16:06] Chagel_: has joined #ruby
[03:16:17] ThePolarCat: ok thanks for your help.
[03:19:03] Jandre: has joined #ruby
[03:20:17] bb010g: has joined #ruby
[03:22:41] mistermocha: has joined #ruby
[03:23:25] mistermocha: has joined #ruby
[03:25:27] william3: has joined #ruby
[03:25:33] gix: has joined #ruby
[03:27:13] baweaver: has joined #ruby
[03:32:30] lyoshajapan: has joined #ruby
[03:34:33] todd: has joined #ruby
[03:38:58] theery: has joined #ruby
[03:39:26] skweek: has joined #ruby
[03:41:18] lyoshajapan: has joined #ruby
[03:49:58] wolffles: has joined #ruby
[03:51:09] william3: has joined #ruby
[03:55:01] DLSteve: has joined #ruby
[03:55:51] rbennacer: has joined #ruby
[03:57:46] treaki__: has joined #ruby
[03:59:16] chagel: has joined #ruby
[04:03:20] bronson: has joined #ruby
[04:04:23] bruno-: has joined #ruby
[04:04:42] lele: has joined #ruby
[04:06:24] lyoshajapan: has joined #ruby
[04:14:09] astrobunny: has joined #ruby
[04:14:15] kareeoleez: has joined #ruby
[04:15:10] duncannz: has joined #ruby
[04:15:49] duncannz: has joined #ruby
[04:21:23] phendryx: has joined #ruby
[04:23:56] djbkd: has joined #ruby
[04:25:20] terlar: has joined #ruby
[04:25:53] OTORelic1: has joined #ruby
[04:28:38] pawnbox: has joined #ruby
[04:28:56] CloCkWeRX: has joined #ruby
[04:29:32] rbennacer: has joined #ruby
[04:30:41] ThePolarCat: has joined #ruby
[04:32:34] merida: has joined #ruby
[04:34:59] Regulati_: has joined #ruby
[04:39:01] mtkd: has joined #ruby
[04:40:35] wolffles: i cant seem to initialize this subclass and its method. https://eval.in/551858 can someone show or explain to me how to make it work?
[04:44:13] rbennacer: has joined #ruby
[04:45:12] rbennacer: has joined #ruby
[04:46:02] j0bk: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[04:46:08] rbennacer: has joined #ruby
[04:46:29] gh: has joined #ruby
[04:46:40] htmldrum: has joined #ruby
[04:49:16] lyoshajapan: has joined #ruby
[04:49:58] j0bk: has joined #ruby
[04:50:28] tubuliferous: has joined #ruby
[04:50:38] codecop: has joined #ruby
[04:51:36] rbennacer: has joined #ruby
[04:51:43] j0bk: has joined #ruby
[04:51:48] agentmeerkat: has joined #ruby
[04:54:54] j0bk: has joined #ruby
[04:54:55] baweaver: wolffles: you're missing an end
[04:55:18] nhhc: has joined #ruby
[04:55:38] lyoshajapan: has joined #ruby
[04:55:58] dcunit3d: has joined #ruby
[04:56:17] wolffles: baweaver: yeah i was getting frustrated and put the subclass inside the parent class the end is at the bottom
[04:56:33] baweaver: that's not how subclasses work
[04:57:06] pizzaops: wolffles: https://eval.in/551862
[04:57:28] jenrzzz: has joined #ruby
[04:57:31] pizzaops: There's no #number method in Smaller, in your original version.
[04:57:42] fedexo: has joined #ruby
[04:57:47] pizzaops: so super(number) is calling something undefined.
[04:58:01] pizzaops: plus the "end" problem
[04:58:50] pizzaops: You can't just refer to instance variables by name without an @. The reason you see that so often is because people have created "reader" methods
[04:59:19] baweaver: attr_reader :foo => def foo; @foo end
[04:59:35] mtkd: has joined #ruby
[04:59:50] baweaver: writer would be: def foo=
[04:59:56] baweaver: accessor would be both
[05:00:23] j0bk: has joined #ruby
[05:00:31] baweaver: though I would make a habit of always referring to them with @ inside the class
[05:00:47] baweaver: that way you can make a method if you need to change the logic later
[05:00:59] baweaver: ACTION rereads that
[05:01:19] baweaver: ACTION shakes head
[05:01:22] baweaver: ignore that
[05:01:27] baweaver: ACTION goes to find coffee
[05:02:47] pizzaops: And personally I like to always use self.number not just number, because it's too vague.
[05:02:55] pizzaops: But most people don't do that.
[05:03:11] pizzaops: I also mostly type out parens, so . . . yeah
[05:03:15] baweaver: I tend to use the method names so I can switch out the logic later if necessary
[05:03:33] pizzaops: I'd prefer to have to explicitly change those, because I want it to be clear what's happening.
[05:03:41] Devalo: has joined #ruby
[05:04:11] baweaver: I also like Scala so I'm an implicit to heart
[05:04:47] j0bk: has left #ruby: ()
[05:05:05] bruno-: has joined #ruby
[05:05:20] crameth: has joined #ruby
[05:05:23] wolffles: i havent had to use classes until last week
[05:05:31] wolffles: and im absolutly lost
[05:06:46] baweaver: It takes time
[05:06:57] baweaver: what are you reading for a tutorial?
[05:07:03] ruby[bot]: Practical Object Oriented Design in Ruby http://www.poodr.com/
[05:07:09] baweaver: That will help a lot
[05:07:30] astrobunny: has joined #ruby
[05:08:17] wolffles: i cant find an indepth tutorial that go beyond the basics
[05:08:34] baweaver: See the Poodr link above
[05:09:11] wolffles: im looking at it
[05:09:29] william3: has joined #ruby
[05:10:16] shevy: my tasty waffles!
[05:13:44] skweek: has joined #ruby
[05:19:22] frankier: has joined #ruby
[05:23:54] tildes: has joined #ruby
[05:27:25] wolffles: soo i tried to apply what went wrong in my example to my actual problem and im still getting unitiialized constantā€¦ what am i doing wrong this time? https://eval.in/551874
[05:28:10] goglosh: has joined #ruby
[05:29:19] sauvin: has joined #ruby
[05:29:44] nando293921: has joined #ruby
[05:31:07] Ox0dea: It looks like an elevator.
[05:32:34] CloCkWeRX: has joined #ruby
[05:33:11] shevy: the wafflevator
[05:33:46] xWindow-Free: has joined #ruby
[05:33:56] shevy: ah your indent is wrong
[05:34:14] shevy: wolffles they are inside of class Temperature
[05:34:29] agentmeerkat: has joined #ruby
[05:34:42] rikai: has joined #ruby
[05:34:44] rkazak: has joined #ruby
[05:35:08] bnagy: has joined #ruby
[05:36:54] baweaver: !ban xWindow-Free
[05:36:55] ruby[bot]: +bbb $a:auwooo$#ruby-banned xWindow-Free!*@*$#ruby-banned *!*@unaffiliated/skraito-0x71$#ruby-banned
[05:37:10] ruby[bot]: ruby[bot] kicked xWindow-Free: offense, see http://ruby-community.com/pages/user_rules
[05:37:29] ur5us: has joined #ruby
[05:37:46] wolffles: shevy: :D thank you! i was losing it lol
[05:39:27] jaiks: has joined #ruby
[05:39:53] mosez: has joined #ruby
[05:39:58] Macaveli: has joined #ruby
[05:40:40] hk238: has joined #ruby
[05:43:18] firstdayonthejob: has joined #ruby
[05:45:03] UserInneed: has joined #ruby
[05:46:08] nodejunkie: has joined #ruby
[05:48:06] sandelius: has joined #ruby
[05:48:13] djbkd: has joined #ruby
[05:51:08] krz: has joined #ruby
[05:51:37] htmldrum: has joined #ruby
[05:52:27] rbennacer: has joined #ruby
[05:53:52] lxsameer: has joined #ruby
[05:53:55] jtoy: has joined #ruby
[05:57:29] skade: has joined #ruby
[05:57:50] Ox0dea: wolffles: Some fun things: https://eval.in/551903
[05:57:55] firstdayonthejob: has joined #ruby
[05:58:02] LoneHerm_: has joined #ruby
[05:58:22] Ox0dea: #<=> and #succ are the interesting ones; if you define those, your objects can participate in Ranges.
[05:59:26] jaiks: has joined #ruby
[05:59:33] conta: has joined #ruby
[06:00:25] bluOxigen: has joined #ruby
[06:01:34] Infra-Red: has joined #ruby
[06:05:54] wolffles: Ox0dea: does it have to be <=> and succ? or can i name them anything?
[06:06:15] rbennacer: has joined #ruby
[06:07:28] bruno-: has joined #ruby
[06:07:46] Ox0dea: wolffles: It has to be those names; that's part of the "interface".
[06:08:40] Ox0dea: It's just like how you can define #each and `include Enumerable` to get a heap of nifty methods for free, except it's #<=> for Comparable.
[06:09:10] Ox0dea: #succ and #next are usually aliases, but Range literals specifically try to invoke #succ.
[06:12:05] RubyJedi-ing: has joined #ruby
[06:12:10] william3: has joined #ruby
[06:12:58] kareeoleez: has joined #ruby
[06:14:25] jpfuentes2: has joined #ruby
[06:15:17] jpfuentes2: has joined #ruby
[06:15:46] kareeoleez: has joined #ruby
[06:16:25] the_drow: has joined #ruby
[06:16:50] pawnbox: has joined #ruby
[06:17:10] Polysics_: has joined #ruby
[06:18:33] wolffles: so these are called mixin?
[06:18:50] Ox0dea: Nailed it.
[06:19:25] solars: has joined #ruby
[06:20:02] rbennacer: has joined #ruby
[06:20:16] lyoshajapan: has joined #ruby
[06:23:13] tubuliferous: has joined #ruby
[06:25:23] nisstyre: has joined #ruby
[06:25:28] nisstyre: has joined #ruby
[06:25:51] last_staff: has joined #ruby
[06:27:10] rodfersou: has joined #ruby
[06:28:16] Ox0dea: So many Exceptions! http://imgh.us/ruby_hierarchy.png
[06:28:31] symm-_: has joined #ruby
[06:29:05] bronson: has joined #ruby
[06:29:19] rbennacer: has joined #ruby
[06:33:21] Polysics: has joined #ruby
[06:35:11] aganov: has joined #ruby
[06:37:48] PedramT: has joined #ruby
[06:37:57] perturbation: has joined #ruby
[06:38:20] CausaMortis_: has joined #ruby
[06:38:20] CausaMortis: has joined #ruby
[06:38:39] yfeldblum: has joined #ruby
[06:39:49] rkazak: has joined #ruby
[06:41:16] yfeldblum: has joined #ruby
[06:41:51] jenrzzz: has joined #ruby
[06:43:04] rbennacer: has joined #ruby
[06:47:18] lkba_: has joined #ruby
[06:47:44] jpfuentes2: has joined #ruby
[06:48:35] PedramT: has joined #ruby
[06:49:23] petertretyakov: has joined #ruby
[06:53:03] nanoz: has joined #ruby
[06:54:21] cina: has joined #ruby
[06:54:35] petertretyakov: has joined #ruby
[06:55:16] stannard: has joined #ruby
[06:55:55] astrobunny: has joined #ruby
[06:55:57] cina: is it safe to compare two arrays of strings using their #hash() method? I am trying to keep a record of seen rows in a CSV file, without having to store the whole row. I thought it would be a good idea to store and keep track of the hash of each row instead of the actual row.
[06:56:13] Polysics: has joined #ruby
[06:57:44] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[06:58:53] mark3: has joined #ruby
[06:58:56] yfeldblum: has joined #ruby
[06:59:37] cina: baweaver: thanks. I will try to be a bit more clear. I meant to ask how often the #hash method of two different objects are the same
[06:59:57] baweaver: very rarely, though that's moving in the wrong direction
[07:00:06] baweaver: what are you trying to do overall?
[07:00:22] baweaver: as in, why do you need to keep track of what rows you've seen?
[07:00:23] Ox0dea: cina: Ignore baweaver on this one. Yes, that's a good idea. And the good news is that Ruby provides a convenient Set library for just that sort of thing.
[07:00:25] vondruch_: has joined #ruby
[07:00:28] baweaver: (like an index)
[07:01:13] PedramT: has joined #ruby
[07:01:16] baweaver: ACTION shrugs
[07:01:25] baweaver: trying to figure out what the base issue is.
[07:01:26] rbennacer: has joined #ruby
[07:01:26] Ox0dea: Your XY trigger finger is itchy.
[07:01:40] codecop: has joined #ruby
[07:01:52] cloudbud: has joined #ruby
[07:02:04] bmf: has joined #ruby
[07:02:15] cloudbud: I am trying tio execute command bundle but getting error : Could not fetch specs from http://rubygems.org/
[07:02:45] Ox0dea: cina: https://eval.in/551949
[07:03:10] jpfuentes2: has joined #ruby
[07:04:03] cina: Ox0dea: thanks!
[07:04:08] Ox0dea: cina: Happy to help. :)
[07:04:24] mr_robot_: has joined #ruby
[07:04:38] chagel: has joined #ruby
[07:04:45] rippa: has joined #ruby
[07:04:56] cloudbud: I am trying tio execute command bundle but getting error : Could not fetch specs from http://rubygems.org/
[07:08:30] diegoaguilar: has joined #ruby
[07:08:31] bruno-: has joined #ruby
[07:09:20] tvw: has joined #ruby
[07:10:59] dcunit3d: has joined #ruby
[07:11:31] Polysics: has joined #ruby
[07:12:45] william3: has joined #ruby
[07:14:12] theery: has joined #ruby
[07:14:42] lyoshajapan: has joined #ruby
[07:15:14] rbennacer: has joined #ruby
[07:15:31] TomyWork: has joined #ruby
[07:16:11] Infra-Red: has joined #ruby
[07:19:43] PedramT: has joined #ruby
[07:20:23] czerasz: has joined #ruby
[07:21:17] SCHAAP137: has joined #ruby
[07:21:39] krz: has joined #ruby
[07:22:26] aufi: has joined #ruby
[07:23:16] flughafen: has joined #ruby
[07:24:12] edwinvdgraaf: has joined #ruby
[07:27:27] waxxy: has joined #ruby
[07:27:34] biberu: has joined #ruby
[07:28:58] rbennacer: has joined #ruby
[07:31:21] william3: has joined #ruby
[07:33:23] antgel: has joined #ruby
[07:33:33] rbennacer: has joined #ruby
[07:34:33] rkazak: has joined #ruby
[07:34:39] pandaant: has joined #ruby
[07:37:18] PedramT: has joined #ruby
[07:38:19] Outlastsheep: has joined #ruby
[07:38:52] Ropeney: has joined #ruby
[07:39:28] Zai00: has joined #ruby
[07:44:08] terlar: has joined #ruby
[07:46:23] andikr: has joined #ruby
[07:46:43] lsmola: has joined #ruby
[07:47:28] rbennacer: has joined #ruby
[07:48:48] Xeago: has joined #ruby
[07:50:15] mhib: has joined #ruby
[07:51:02] anisha: has joined #ruby
[07:51:44] jaruga__: has joined #ruby
[07:52:15] rbennacer: has joined #ruby
[07:53:32] kareeole_: has joined #ruby
[07:56:22] krz: has joined #ruby
[08:01:58] tubuliferous: has joined #ruby
[08:02:58] SHyx0rmZ: has joined #ruby
[08:05:12] vondruch: has joined #ruby
[08:06:03] rbennacer: has joined #ruby
[08:08:30] Zai00: has joined #ruby
[08:09:23] baweaver: has joined #ruby
[08:09:25] bruno-: has joined #ruby
[08:09:26] dANOKELOFF: has joined #ruby
[08:10:05] sepp2k: has joined #ruby
[08:10:21] Xeago: has joined #ruby
[08:12:04] Infra-Red: has joined #ruby
[08:12:10] Sn0wy: has joined #ruby
[08:12:31] norc: has joined #ruby
[08:12:59] Couch: has joined #ruby
[08:15:09] rbennacer: has joined #ruby
[08:17:31] tesuji: has joined #ruby
[08:17:32] Chagel_: has joined #ruby
[08:18:05] the_drow: has joined #ruby
[08:21:55] marr: has joined #ruby
[08:26:31] pawnbox: has joined #ruby
[08:26:38] jenrzzz: has joined #ruby
[08:27:37] mrgrieves: has joined #ruby
[08:28:22] mr_robot_: has joined #ruby
[08:28:57] rbennacer: has joined #ruby
[08:29:40] bronson: has joined #ruby
[08:32:32] yfeldblum: has joined #ruby
[08:35:08] dreadingly: has joined #ruby
[08:36:21] tubuliferous: has joined #ruby
[08:37:46] tAn: has joined #ruby
[08:38:49] PedramT: has joined #ruby
[08:40:16] bigkevmcd: has joined #ruby
[08:43:32] evidex: has joined #ruby
[08:47:21] nhhc: has joined #ruby
[08:48:25] infernix: has joined #ruby
[08:48:27] astrobun_: has joined #ruby
[08:50:15] AlexJakeGreen: has joined #ruby
[08:50:15] Infra-Red: has joined #ruby
[08:54:23] Infra-Red: has joined #ruby
[08:56:03] akkmaxon: has joined #ruby
[08:56:42] Xeago: has joined #ruby
[08:57:38] dangerousdave: has joined #ruby
[08:58:23] Macaveli: has joined #ruby
[09:01:20] PedramT: has joined #ruby
[09:02:34] Asher: has joined #ruby
[09:03:08] blackgoat: has joined #ruby
[09:03:27] merida: has joined #ruby
[09:03:50] duderonomy: has joined #ruby
[09:04:26] ocbtec: has joined #ruby
[09:05:16] hays_: has joined #ruby
[09:05:28] sapslaj: has joined #ruby
[09:05:59] NightMonkey: has joined #ruby
[09:06:23] cloaked1: has joined #ruby
[09:08:08] bkxd: has joined #ruby
[09:08:52] crdpink2: has joined #ruby
[09:10:15] M-Kodo: has joined #ruby
[09:11:15] workmad3: has joined #ruby
[09:11:40] M-mistake: has joined #ruby
[09:11:56] cloudbud: how to set the set the environment variable GOOGLE_MAPS_KEY with your Google Maps API key.
[09:12:03] PedramT: has joined #ruby
[09:13:16] raeoks: has joined #ruby
[09:13:51] sabaqh: has joined #ruby
[09:14:22] nobitanobi: has joined #ruby
[09:14:31] Xeago: has joined #ruby
[09:16:58] aurum_infide_: has joined #ruby
[09:19:50] n008f4g_: has joined #ruby
[09:23:02] the_drow: has joined #ruby
[09:23:56] daytime: has joined #ruby
[09:26:11] charliesome: has joined #ruby
[09:26:17] skislak: has joined #ruby
[09:26:32] ferr: has joined #ruby
[09:27:45] LoneHerm_: has joined #ruby
[09:30:25] aurum_infide: has joined #ruby
[09:30:27] mtkd: has joined #ruby
[09:30:33] mr_robot_: has joined #ruby
[09:32:38] astrobun_: has joined #ruby
[09:34:06] tagaulap: has joined #ruby
[09:34:26] bluOxigen_: has joined #ruby
[09:34:33] tagaulap: has joined #ruby
[09:34:33] tagaulap: has joined #ruby
[09:34:50] jtoy: has joined #ruby
[09:36:28] Xeago: has joined #ruby
[09:36:39] FooMunki: has joined #ruby
[09:37:47] M-shine: has joined #ruby
[09:38:47] yfeldblum: has joined #ruby
[09:38:49] rbennacer: has joined #ruby
[09:41:01] dANOKELOFF: has joined #ruby
[09:41:45] Xeago: has joined #ruby
[09:43:39] PedramT: has joined #ruby
[09:45:44] lyoshaja_: has joined #ruby
[09:45:53] blaxter: has joined #ruby
[09:46:41] charliesome: has joined #ruby
[09:47:15] bmf: has joined #ruby
[09:47:44] M-Kodo: has joined #ruby
[09:48:12] rbennacer: has joined #ruby
[09:48:17] PedramT_: has joined #ruby
[09:52:29] snoobydoo: has joined #ruby
[09:53:12] PedramT: has joined #ruby
[09:53:55] platzhirsch: has joined #ruby
[09:55:15] Sn0wy: has joined #ruby
[09:56:36] charliesome: has joined #ruby
[10:01:54] rbennacer: has joined #ruby
[10:02:03] M-mistake: has joined #ruby
[10:02:49] djbkd: has joined #ruby
[10:04:56] gnufied: has joined #ruby
[10:06:33] rbennacer: has joined #ruby
[10:07:07] chriscoffee: has joined #ruby
[10:08:07] PedramT: has joined #ruby
[10:10:25] baweaver: has joined #ruby
[10:11:25] tmba: has joined #ruby
[10:12:20] kadoppe: has joined #ruby
[10:12:43] tmba: Does the winrm gem require the cert subject to be CN=hostname? Will CN=fqdn work?
[10:14:10] charliesome: has joined #ruby
[10:15:49] rbennacer: has joined #ruby
[10:17:18] lkba: has joined #ruby
[10:17:28] charliesome: has joined #ruby
[10:19:04] the_drow: Is there a way to apply grape validators on headers?
[10:20:34] rbennacer: has joined #ruby
[10:21:14] Xeago: has joined #ruby
[10:26:15] madgen: has joined #ruby
[10:27:34] lyoshajapan: has joined #ruby
[10:28:13] PedramT: has joined #ruby
[10:28:56] Balzrael: has joined #ruby
[10:29:30] PedramT_: has joined #ruby
[10:29:36] joseph: has joined #ruby
[10:29:55] jenrzzz: has joined #ruby
[10:31:24] chosen1: has joined #ruby
[10:31:33] bronson: has joined #ruby
[10:37:28] gmas: has joined #ruby
[10:39:44] CloCkWeRX: has joined #ruby
[10:40:33] yfeldblum: has joined #ruby
[10:40:48] lyoshajapan: has joined #ruby
[10:41:49] ur5us: has joined #ruby
[10:43:16] rbennacer: has joined #ruby
[10:44:32] GodFather: has joined #ruby
[10:48:46] chosen1_: has joined #ruby
[10:49:31] mikeiniowa: has joined #ruby
[10:51:09] evidex: has joined #ruby
[10:52:16] pawnbox: has joined #ruby
[10:52:40] bluOxigen: has joined #ruby
[10:53:13] norc: has joined #ruby
[10:53:16] norc: has joined #ruby
[10:53:16] norc: has joined #ruby
[10:53:34] pawnbox: has joined #ruby
[10:53:37] dvinciguerra_: has joined #ruby
[10:54:01] norc: Hi. Can anyone come up with a shorter variant of this? 1234.to_s.gsub(/(.)/, '3\1')
[10:54:23] norc: >> 1234.to_s.gsub(/(.)/, '3\1')
[10:54:25] ruby[bot]: norc: # => "31323334" (https://eval.in/552143)
[10:56:02] stannard: has joined #ruby
[10:57:10] antgel: has joined #ruby
[10:57:15] rbennacer: has joined #ruby
[10:58:25] inukshuk_: has joined #ruby
[10:58:28] millerti: has joined #ruby
[11:00:41] the_drow_: has joined #ruby
[11:00:55] Ox0dea: >> '1234'.gsub /(?!$)/, ?3 # norc
[11:00:56] ruby[bot]: Ox0dea: # => "31323334" (https://eval.in/552145)
[11:01:38] Ox0dea: They're essentially the same size, but this one's fancire.
[11:01:48] diegoaguilar: has joined #ruby
[11:02:17] Ox0dea: Also, I'll show you mine in the hope you'll show me yours: http://imgh.us/ruby_hierarchy.png
[11:02:35] nfk|laptop: has joined #ruby
[11:02:52] norc: Ox0dea: Fortiguard thinks my time is better spent surfing Facebook than imgh.us.
[11:03:07] blt: has joined #ruby
[11:04:04] norc: Ox0dea: The name indicates you made a graph of the object hierarchy from all objects in Ruby, is that correct?
[11:04:08] norc: *classes in Ruby.
[11:04:36] Ox0dea: norc: More or less. I didn't include anonymous leaves or Errno.
[11:04:41] bkxd: has joined #ruby
[11:04:55] norc: Ox0dea: Ill have to dig in my time machine backup, because I think I deleted the results.
[11:05:14] Ox0dea: norc: Was it "pretty" in the programmer's sense of the word? :)
[11:05:20] norc: Can you rehost the graph on imgsafe.org? That one apparently is fine, just like facebook.
[11:05:32] norc: Well, it was informative.
[11:05:43] trinaldi: has joined #ruby
[11:05:45] waxxy: has joined #ruby
[11:05:59] Ox0dea: norc: They shrunk it beyond legibility. That's why I used imgh.us.
[11:06:01] Zai00: has joined #ruby
[11:06:13] Ox0dea: http://i.imgsafe.org/8368323.png
[11:06:36] workmad3: wow, that's pretty awful
[11:07:07] PedramT: has joined #ruby
[11:07:17] norc: Yeah its not there anymore. Ever since I started using time machine backup, I regularly delete everything that is immediately relevant.
[11:10:26] merida: has joined #ruby
[11:10:58] rbennacer: has joined #ruby
[11:12:13] PedramT: has joined #ruby
[11:13:04] johnmilton: has joined #ruby
[11:13:31] dANOKELOFF: has joined #ruby
[11:15:12] moei: has joined #ruby
[11:15:35] rbennacer: has joined #ruby
[11:15:38] RegulationD: has joined #ruby
[11:16:12] gnufied: has joined #ruby
[11:17:27] theery: has joined #ruby
[11:18:51] WebDevB: has joined #ruby
[11:21:38] Skelz0r: has joined #ruby
[11:24:04] norc: Ox0dea: By the way, is that just classes or modules too?
[11:24:55] PedramT: has joined #ruby
[11:24:57] bruno-: has joined #ruby
[11:24:59] Ox0dea: norc: I did `ObjectSpace.each_object { |o| o.respond_to? :ancestors }` just in case something fancy was hiding somewhere.
[11:25:31] norc: Aye, I really want to dig up my solution now.
[11:27:03] giz|work: has joined #ruby
[11:27:36] DoubleMalt: has joined #ruby
[11:28:51] Macaveli: has joined #ruby
[11:28:58] charliesome: has joined #ruby
[11:30:57] bakedb: has joined #ruby
[11:31:27] PedramT: has joined #ruby
[11:31:37] jenrzzz: has joined #ruby
[11:32:04] Ox0dea: norc: Here's my one: https://eval.in/552153
[11:32:05] Macaveli: has joined #ruby
[11:34:37] frankier: has joined #ruby
[11:35:30] bkxd: has joined #ruby
[11:37:21] htmldrum: has joined #ruby
[11:37:47] PedramT: has joined #ruby
[11:38:34] cwenner: has joined #ruby
[11:39:26] full_throttle: has joined #ruby
[11:39:40] full_throttle: what is the easiest to learn paradigm course out there?
[11:39:54] vondruch: has joined #ruby
[11:43:16] rbennacer: has joined #ruby
[11:44:11] gnufied: has joined #ruby
[11:44:29] senayar: has joined #ruby
[11:47:02] ldnunes: has joined #ruby
[11:48:53] apeiros: hm, fascinating - after 3 months, it's still ruby 2.3.0
[11:49:04] gregf_: has joined #ruby
[11:49:51] giz|work: 1.8 is still good enough
[11:50:31] Gasher: has joined #ruby
[11:50:41] dionysus69: has joined #ruby
[11:51:02] skislak: has joined #ruby
[11:51:25] yorickpeterse: giz|work: get out
[11:54:27] IrishGringo: has joined #ruby
[11:54:50] norc: >> a = "quux"; a.instance_eval { def foo; length; end; }; a.foo
[11:54:51] ruby[bot]: norc: # => 4 (https://eval.in/552170)
[11:54:53] norc: workmad3: ^-
[11:55:17] norc: instance_eval sets the default assignee to be the receivers singleton class.
[11:55:48] Ropeney: has joined #ruby
[11:56:13] failshell: has joined #ruby
[11:56:28] workmad3: norc: yeah, I just tried that out locally too to double-check
[11:56:28] rbennacer: has joined #ruby
[11:56:45] Ox0dea: norc: *definee
[11:56:48] workmad3: norc: but it's something I had to verify, and I'd probably need to verify it every time I read the code to be sure :)
[11:56:49] Ox0dea: It's a weird word.
[11:56:51] norc: Ox0dea: Thank you.
[11:56:54] failshell: has joined #ruby
[11:57:14] norc: Ox0dea: That way of looking at it has the only way the method ever made sense to me.
[11:57:18] kareeoleez: has joined #ruby
[11:57:19] norc: has been even.
[11:57:39] futilegames: has joined #ruby
[11:57:41] Ox0dea: Yeah, it's the right approach, I think.
[11:59:10] nfk|laptop: wow, #RubyOnRails has gone shitty
[11:59:41] Ox0dea: Must be an apocalypse comin'.
[11:59:49] norc: nfk|laptop: nope thats just sevenseacat
[12:00:27] augcesar: has joined #ruby
[12:00:29] nfk|laptop: i have never even been banned from #python despite how many times i have compared it to ruby there
[12:00:47] krz: has joined #ruby
[12:00:52] norc: nfk|laptop: Just be glad DHH is not around to tell you how you must redesign your application to look like basecamp.
[12:01:29] rbennacer: has joined #ruby
[12:01:36] norc: nfk|laptop: If you want some real fanatism, go to ##c++ and ask a question about stack allocated objects. They will make fun of you how "The C++ langauge specification knows of no stack"
[12:02:21] nfk|laptop: norc, way back when i was learning C++ that channel was pretty nice
[12:02:31] nfk|laptop: as long as you were willing to listen to what they were saying
[12:03:13] nfk|laptop: anyway, time to grab some food, afk
[12:06:10] solars: has joined #ruby
[12:07:22] conta: has joined #ruby
[12:10:04] giz|work: nfk|laptop: python? ... isnt that the programming language similiar to whitespace?
[12:10:38] rickmasta: has joined #ruby
[12:11:25] baweaver: has joined #ruby
[12:14:35] Hanmac: has joined #ruby
[12:16:27] AlexRussia: has joined #ruby
[12:18:25] rickmasta: has joined #ruby
[12:19:40] Jameser: has joined #ruby
[12:22:36] nfk|laptop: i wouldn't say similar to whitespace but i definitely prefer the ruby syntax
[12:22:45] rodfersou: has joined #ruby
[12:23:31] nobitanobi: has joined #ruby
[12:23:51] nfk|laptop: it just feels much more purposeful to have an end and not just the right number of whitespace, also, iirc, python uses 4 whitespaces by convention and i strongly prefer 2 since i started my modern programming with ruby
[12:24:10] rbennacer: has joined #ruby
[12:24:28] diegoaguilar: has joined #ruby
[12:25:44] nfk|laptop: anyway, i'd say going from ruby to python is unpleasant but easier than from most other languages
[12:25:56] nfk|laptop: and quite likely easier than from python to ruby
[12:26:02] bruno-: has joined #ruby
[12:28:55] Ox0dea: > If default_factory is not None, it is called without arguments...
[12:29:06] nfk|laptop: also python feels like a hodgepodge of stuff (i know, 1337 people say that about ruby) which is kinda annoying and even infuriating when python programmers do not understand what you're talking about
[12:29:50] Ox0dea: Why on *earth* wouldn't the lambda you pass to defaultdict() be invoked with the key?
[12:30:34] nfk|laptop: does ruby also have defaultdict or is that a python issue?
[12:30:39] pawnbox: has joined #ruby
[12:30:47] Ox0dea: Ruby lets you pass a block to Hash.new to do all sorts of nifty things.
[12:31:08] workmad3: you can also pass a default value, but that's less nifty :)
[12:31:31] nfk|laptop: ah, so it's not the same
[12:32:01] nfk|laptop: with defaultdict in python you can only basically have a dictionary of class instances
[12:32:16] Morfeyka: has joined #ruby
[12:32:19] jenrzzz: has joined #ruby
[12:32:38] Ox0dea: To get Hash.new-like behavior in Python, you have to subclass dict and define __missing__().
[12:32:44] nfk|laptop: which is neat since then you can assume that for example your array of arrays is literally an array of arrays at all times otherwise you need to instantiate every element yourself
[12:33:03] workmad3: fib = Hash.new { |h, k| h[k] = h[k - 1] + h[k - 2] }; fib[1] = 1; fib[2] = 1 # Fibonacci hash
[12:33:06] nfk|laptop: Ox0dea, which is why i said it's not the same thing
[12:33:15] Ox0dea: nfk|laptop: Either can emulate the other.
[12:34:00] nfk|laptop: yeah, except in ruby i never needed defaultdict because of how sexy and cool ruby is and in python you can't pass a block to it, you need to do what you described
[12:34:29] nfk|laptop: as for emulation, you can write a web server in asm, heck, binary works, too, who needs hex
[12:35:32] sdothum: has joined #ruby
[12:37:17] theery: has joined #ruby
[12:38:06] aupadhye: has joined #ruby
[12:44:37] augcesar[2]: has joined #ruby
[12:45:30] _stu_: has joined #ruby
[12:46:02] terlar: has joined #ruby
[12:48:55] chagel: has joined #ruby
[12:50:30] Zai00: has joined #ruby
[12:50:45] pabs: has joined #ruby
[12:52:43] tubuliferous: has joined #ruby
[12:52:53] User458764: has joined #ruby
[12:53:05] kadoppe: has joined #ruby
[12:53:56] User458764: has joined #ruby
[12:55:04] PedramT: has joined #ruby
[12:55:29] pawnbox: has joined #ruby
[12:55:45] solocshaw: has joined #ruby
[12:55:48] ramortegui: has joined #ruby
[12:56:29] jmignault: has joined #ruby
[12:57:11] CloCkWeRX: has joined #ruby
[12:57:12] pawnbox: has joined #ruby
[12:57:48] ChiefAlexander: has joined #ruby
[12:58:03] cdg: has joined #ruby
[12:59:40] schemanic: has joined #ruby
[12:59:58] ChiefAlexander: has joined #ruby
[13:00:34] htmldrum: has joined #ruby
[13:01:12] d0nn1e: has joined #ruby
[13:02:09] charliesome: has joined #ruby
[13:03:00] rbennacer: has joined #ruby
[13:04:14] rbennacer: has joined #ruby
[13:04:34] william3: has joined #ruby
[13:04:43] duckpupp1: has joined #ruby
[13:05:15] aegis3121: has joined #ruby
[13:05:32] howdoi: has joined #ruby
[13:06:49] hays: has joined #ruby
[13:07:14] _stu_: has joined #ruby
[13:08:12] thistle: has joined #ruby
[13:08:37] JakFrist: has joined #ruby
[13:08:46] thistle: has joined #ruby
[13:10:35] M-shine: has joined #ruby
[13:11:40] M-mistake: has joined #ruby
[13:11:49] stannard: has joined #ruby
[13:12:27] kadoppe: has joined #ruby
[13:13:10] Macaveli: has joined #ruby
[13:15:34] PedramT: has joined #ruby
[13:16:10] thistle: has joined #ruby
[13:18:44] tubuliferous: has joined #ruby
[13:19:15] ekinmur: has joined #ruby
[13:20:59] eljimbo: has joined #ruby
[13:21:21] Kus: has joined #ruby
[13:22:12] solars: has joined #ruby
[13:24:14] flashpoint9: has joined #ruby
[13:25:40] IrishGringo: has joined #ruby
[13:26:25] Jameser: has joined #ruby
[13:27:06] bruno-: has joined #ruby
[13:28:50] GodFather: has joined #ruby
[13:29:28] Xeago: has joined #ruby
[13:30:21] shevy: use ruby!
[13:31:57] giz|work: ruby is the awesomeest sauce
[13:32:11] giz|work: i recently used "tap" the first time... so neat
[13:32:17] shevy: eh still not at 100% perfection
[13:32:30] shevy: I still have not found a usecase for .tap :(
[13:34:22] bronson: has joined #ruby
[13:34:37] malconis: has joined #ruby
[13:34:44] Waqas: has joined #ruby
[13:34:47] abyx: has joined #ruby
[13:35:18] fmcgeough: has joined #ruby
[13:37:20] dionysus69: has joined #ruby
[13:39:07] tubuliferous: has joined #ruby
[13:40:10] sgambino: has joined #ruby
[13:40:21] Waqas: has joined #ruby
[13:41:13] freerobby: has joined #ruby
[13:41:45] kareeoleez: has joined #ruby
[13:41:47] freerobby: has joined #ruby
[13:42:20] deuterium: has joined #ruby
[13:42:20] djellemah: shevy: pretend Hash.new does not take a block, and you have to use Hash#default_proc=
[13:42:24] shevy: I am not even sure what of the new or semi-new things I am really using
[13:42:41] shevy: I do sometimes use the "new" hash syntax, since it can be shorter
[13:42:54] shevy: haven't used the lonely operator yet either
[13:43:56] nfk|laptop: shevy, i actually formulated it after i had to explain why rails instead of php
[13:44:29] nfk|laptop: i actually got my way but i later thought "why not php? why not asm? why not binray?!"
[13:44:54] idletask: has joined #ruby
[13:45:02] nfk|laptop: since explaining to someone who has never programmed anything but PHP, JS and C# why Ruby is better is futile
[13:45:17] nfk|laptop: also does not want to program anything but what he already knows
[13:45:38] adaedra: There's no "better" language.
[13:45:59] nfk|laptop: i like ruby as long as it's fast enough for the purpose and has the required bindings
[13:46:16] adaedra: For the reason that there is no "better" language than another. Ruby can be more fitted in certain tasks, whereas it can also be problematic in other areas. It all depends on a large number of parameters.
[13:46:51] nfk|laptop: adaedra, i think my fast enough and has the right bindings pretty much implies that it's also the right tool for that purpose
[13:47:17] shevy: if there would be no better language
[13:47:21] shevy: we would all use THE ONE LANGUAGE
[13:47:28] adaedra: It means it can be "better" in a particular case, not generically.
[13:47:28] nfk|laptop: i would never try to write an os in ruby but i also avoid writing any script in anything but ruby unless i must (stupid systemd)
[13:47:30] giz|work: shevy: Thread.list.tap{|t|t.shift}.map{|t|t.join}
[13:47:38] shevy: which is php
[13:47:38] adaedra: And even here, it's objective.
[13:47:46] nfk|laptop: shevy, i thought you meant lisp
[13:47:47] shevy: giz|work I am not even sure what that code does
[13:47:58] shevy: nfk|laptop I dunno... is it still used actually?
[13:48:04] giz|work: shevy: it joins all threads but the first
[13:48:22] shevy: giz|work hmm
[13:48:24] nfk|laptop: shevy, isn't ruby rather lispy under the hood?
[13:48:35] shevy: you can omit () :)))
[13:48:50] shevy: that was just a big smile, not a paren!
[13:49:12] giz|work: still feels better when the smile is closed!
[13:49:19] griffindy: has joined #ruby
[13:50:10] shevy: I feel that ruby is very close to smalltalk and perl
[13:50:21] shevy: I forgot from where ruby took blocks hmm
[13:50:22] nfk|laptop: and isn't smalltalk a lisp dialect?
[13:50:51] ixti: has joined #ruby
[13:50:54] nfk|laptop: whatever, more programming for me, time to kick in the crunch mode
[13:51:01] shevy: scheme can be quite nice; my favourite example is still https://sourceforge.net/projects/nazghul/
[13:51:50] nfk|laptop: code is my blood, trial and error is my bones, so as i pray, unlimited ruby works
[13:51:53] nfk|laptop: or something
[13:52:12] shevy: (kern-mk-sched 'sch_jeff_resigned
[13:52:15] shevy: (list 0 0 kun-road "sleeping")
[13:52:28] shevy: some NPC behaviour
[13:53:09] giz|work: this actually reads more like my own behaviour Oo
[13:53:35] shevy: he wrote a whole game world in scheme that way... I have not written a whole game world in ruby yet :(
[13:54:31] giz|work: i am onward to write a text based rpg for the new chatbot :)
[13:54:54] giz|work: only concern is performance as i use active record heavily atm :/
[13:55:51] shevy: hanmac wanted to do so too
[13:56:00] shevy: and some other dude also from germany... #openrmk or what was it
[13:56:07] Zai00: has joined #ruby
[13:56:13] shevy: I was mighty ambitious in the old days too ... the innocence of youth :(
[13:57:07] nfk|laptop: one thing i do not like about programming is how long how little can take
[13:57:33] nfk|laptop: like i just solved a bug from a week ago by only deleting some characters in the right place
[13:57:37] shevy: can drain a lot of time
[13:57:45] shevy: bugs are the absolutely worst thing
[13:57:47] nfk|laptop: it just took me a week to learn enough to know which ones to delete
[13:57:56] adaedra: often, the silliest errors are the hardest to find
[13:58:19] BiHi: has joined #ruby
[13:58:38] nfk|laptop: also, the navigation now works, booya
[13:58:44] shevy: oh yeah... it took me almost an hour to find out that "def intialize" is not right
[13:59:28] karmatr0n: has joined #ruby
[14:00:19] dcunit3d: has joined #ruby
[14:00:52] Hanmac: shevy one a time i did see a cross between a TextAdventure and a Point&ClickAdventure xD
[14:00:52] Hanmac: shevy but yeah openrmk was a nice idea, but we might had needed more men power to do more ... i did more for rwx and a possible scripting engine but not much to show as game or Editor
[14:03:04] shevy: man power!
[14:03:08] shevy: we need more people with more time
[14:03:18] stannard: has joined #ruby
[14:03:20] shevy: I get to write less and less code :(
[14:03:26] lele: has joined #ruby
[14:03:31] shevy: or actually... I focus more on small things and avoid big things
[14:03:56] adaedra: there's a common base code, which allows you to focus on issues which matters to your project.
[14:04:18] adaedra: common code base*
[14:05:36] karmatr0n: has joined #ruby
[14:08:07] karmatr0_: has joined #ruby
[14:09:55] tubuliferous: has joined #ruby
[14:09:57] chandlerbing: has joined #ruby
[14:11:12] leksster: has joined #ruby
[14:11:29] conta: has joined #ruby
[14:14:43] lele: has joined #ruby
[14:17:10] RegulationD: has joined #ruby
[14:18:03] aufi: has joined #ruby
[14:18:25] jaruga__: has joined #ruby
[14:22:26] tty01: has joined #ruby
[14:23:49] dhollinger: has joined #ruby
[14:25:35] Karix: has joined #ruby
[14:27:06] JesseH: has joined #ruby
[14:27:34] bruno-: has joined #ruby
[14:27:50] KensoDev: has joined #ruby
[14:28:16] diegoaguilar: has joined #ruby
[14:28:28] LastWhisper____: has joined #ruby
[14:29:50] freerobby: has joined #ruby
[14:33:01] tmtwd: has joined #ruby
[14:33:39] jenrzzz: has joined #ruby
[14:33:39] jenrzzz: has joined #ruby
[14:34:57] merida: has joined #ruby
[14:35:55] BTRE: has joined #ruby
[14:36:23] Yiota: has joined #ruby
[14:37:06] phendryx: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:38:23] deuterium: has joined #ruby
[14:41:02] Marsupermammal: has joined #ruby
[14:41:41] Xeago: has joined #ruby
[14:41:50] kriskropd: has joined #ruby
[14:41:52] Zai00: has joined #ruby
[14:47:19] rickmasta: has joined #ruby
[14:48:52] kobain: has joined #ruby
[14:49:41] cpruitt: has joined #ruby
[14:49:45] kobain: has joined #ruby
[14:50:31] agentmeerkat: has joined #ruby
[14:50:33] n008f4g_: has joined #ruby
[14:53:26] Devalo: has joined #ruby
[14:54:34] OTORelic1: has joined #ruby
[14:54:40] merida: has joined #ruby
[14:55:53] william3: has joined #ruby
[14:57:15] smathy: has joined #ruby
[14:57:56] shevy: does anyone know how many major ruby releases there will be before 3.x?
[14:58:52] freerobby: has joined #ruby
[14:58:58] elusiveother: what form of regex does ruby use?
[14:59:55] minimalism: has joined #ruby
[14:59:59] elusiveother: i'm finding a lot of inconsistencies
[15:00:21] smathy: Redefines ^ and $ to be what they are in Perl with the /m modifier.
[15:00:35] yorickpeterse: >> /this is a regex/
[15:00:36] ruby[bot]: yorickpeterse: # => /this is a regex/ (https://eval.in/552267)
[15:00:59] havenwood: elusiveother: Ruby uses Onigmo these days.
[15:01:01] smathy: elusiveother, make a gist - show your question
[15:01:25] havenwood: Oniguruma-mod-mod!
[15:01:33] aegis3121: has joined #ruby
[15:02:06] havenwood: https://github.com/k-takata/Onigmo
[15:03:10] codecop: has joined #ruby
[15:03:46] merida: has joined #ruby
[15:04:02] terlar: has joined #ruby
[15:04:06] havenwood: shevy: 2.5 this Christmas, 2.6 Christmas 2017, 2.7 Christmas 2018, 2.9 Christmas 2019... then 3.0! At least that's the plan. :)
[15:04:14] havenwood: shevy: So I guess that's 4 not 3.
[15:04:34] havenwood: And I was off by a minor version, starts at 2.4.
[15:04:34] elusiveother: yeah, that's what i was having trouble with
[15:04:49] elusiveother: it seems to respect what ^ and $ mean only when its convenient
[15:05:06] lyoshajapan: has joined #ruby
[15:05:31] adaedra: ^ and $ matches begin and end of *lines*. If you want to match beginning/end of string, use \A and \z.
[15:05:59] adaedra: rubular.com can help you test your regexes easily.
[15:08:49] shevy: havenwood damn... that's like 3 years
[15:09:03] shevy: I'll be almost 70 years at that time
[15:09:50] davejlong: has joined #ruby
[15:10:12] PedramT: has joined #ruby
[15:10:16] Yiota: has joined #ruby
[15:10:29] ruby[bot]: manveru: # => 30 (https://eval.in/552276)
[15:10:39] manveru: yeah, pretty much 70
[15:10:43] User458764: has joined #ruby
[15:11:13] htmldrum: has joined #ruby
[15:11:29] LoganG: has joined #ruby
[15:11:34] jhack: has joined #ruby
[15:12:04] shevy: I round up a little!
[15:12:14] elusiveother: high values of 30
[15:12:21] bmf: has joined #ruby
[15:12:43] shevy: perhaps they may go for 2020... would be a round number. 2020: ruby 3
[15:13:08] shevy: let me find out when 1.8.0 hit the world...
[15:13:15] hinbody: has joined #ruby
[15:13:23] manveru: around 2003?
[15:13:43] shevy: hah you are right... I hope you guessed rather than google like I did :D here was the announcement https://www.ruby-lang.org/en/news/2003/08/04/ruby-180-released/
[15:14:09] manveru: yeah, i remember when the pickaxe came out
[15:14:19] idletask: has joined #ruby
[15:14:43] manveru: that was about a year before i started getting into ruby
[15:14:50] manveru: and one year before that was 1.8 :)
[15:14:53] Nuck: has joined #ruby
[15:14:56] x77686d: has joined #ruby
[15:15:17] manveru: anw, it's all ancient history now
[15:15:28] agent_white: has joined #ruby
[15:16:02] shevy: yeah... 13 years ... oh man
[15:16:18] shevy: chris2 was like 11 when he started with ruby or something
[15:16:35] kareeoleez: has joined #ruby
[15:16:45] kadoppe: has joined #ruby
[15:16:46] lyro: has joined #ruby
[15:16:53] chris2: more like 14
[15:17:41] manveru: ACTION still remembers that euruko
[15:18:03] lyoshajapan: has joined #ruby
[15:18:04] kareeoleez: has joined #ruby
[15:18:36] davejlong: Having a total brain fart. Let's say I have an options hash like { trip: 1234, driver: 1890, car: 890 } and I want to validate if either driver or car key exists and also validate that they exist in my database. Is there a quick way to do that with something like a since case statement?
[15:19:25] merida_: has joined #ruby
[15:19:41] aupadhye: has joined #ruby
[15:20:00] pawnbox: has joined #ruby
[15:21:04] manveru: davejlong: a since case?
[15:21:11] havenwood: shevy: Alls I'm sayin' is 24 is the biggest number: https://www.youtube.com/watch?v=RkP_OGDCLY0
[15:21:23] davejlong: manveru: Sorry, I have no idea how the "since" got in there.
[15:22:24] davejlong: manveru: This is what I tried already (https://gist.github.com/davejlong/b1d6b20d0d176c8efacb60f630aa8214), but the case statement breaks out after the first match.
[15:22:43] jaruga__: has joined #ruby
[15:22:45] s00pcan: has joined #ruby
[15:22:53] manveru: yeah... that's now they work in ruby
[15:23:47] CausaMortis: has joined #ruby
[15:24:39] davejlong: Is there any control flow method in Ruby that does let me write concise code like I'm looking for?
[15:25:41] merida: has joined #ruby
[15:25:53] al2o3-cr: has joined #ruby
[15:26:31] davejlong: This is the flow I feel like I'll have to go with.
[15:26:33] davejlong: https://gist.github.com/davejlong/b1d6b20d0d176c8efacb60f630aa8214#file-gistfile2-rb
[15:27:01] shevy: I guess for these control flows, people will just typically use if/elsif/else
[15:28:08] RegulationD: has joined #ruby
[15:28:10] weemsledeux: has joined #ruby
[15:28:43] symm-: has joined #ruby
[15:30:14] AndyBotwin: has joined #ruby
[15:32:52] PedramT: has joined #ruby
[15:32:55] djellemah: >> ha = { trip: 1234, driver: 1890, car: 890 }; driver, car = ha.values_at(:driver, :car) # might help davejlong
[15:32:56] ruby[bot]: djellemah: # => [1890, 890] (https://eval.in/552283)
[15:34:13] davejlong: I think after the conditionals for your solution, I'd end up with code not too disimilar to what you have there.
[15:34:21] PedramT_: has joined #ruby
[15:35:04] al2o3-cr: >> * = *?a..?z
[15:35:05] ruby[bot]: al2o3-cr: # => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", ...check link for more (https://eval.in/552284)
[15:35:06] jenrzzz: has joined #ruby
[15:35:18] al2o3-cr: #values_at what a method :)
[15:35:34] bronson: has joined #ruby
[15:35:35] dcunit3d: has joined #ruby
[15:35:36] kareeoleez: has joined #ruby
[15:35:39] tsherman: has joined #ruby
[15:36:24] jpfuentes2: has joined #ruby
[15:36:43] PedramT__: has joined #ruby
[15:38:36] lyoshajapan: has joined #ruby
[15:38:41] elifoster: has joined #ruby
[15:38:48] Zackio: has joined #ruby
[15:39:21] idletask: has joined #ruby
[15:39:50] whiteline_: has joined #ruby
[15:40:30] VeryBewitching: has joined #ruby
[15:42:57] [Butch]: has joined #ruby
[15:43:11] lyoshajapan: has joined #ruby
[15:43:53] rkazak: has joined #ruby
[15:45:23] kareeoleez: has joined #ruby
[15:45:45] nando293921: has joined #ruby
[15:46:45] edge226: has joined #ruby
[15:47:26] al2o3-cr: has joined #ruby
[15:47:34] edge226: I'm trying to modify a gitlab irc bot, It is written in ruby and I am not entirely familiar with the syntax of Ruby+JSON.
[15:48:04] edge226: I need to add a case statement here https://gitlab.com/orbos/gitlab-irc-commitbot/blob/master/lib/gitlab-irc.rb#L86
[15:48:26] edge226: I'm not sure the syntax to put in the variable if the keys are nested.
[15:48:47] edge226: Would this do: issue_type = json['object_attributes']['noteable_type']
[15:49:30] synthroid: has joined #ruby
[15:49:31] swills: has joined #ruby
[15:49:34] gix: has joined #ruby
[15:49:57] edge226: I'm trying to get it to trigger correctly for each of these events https://gitlab.com/help/web_hooks/web_hooks#comment-events
[15:50:39] edge226: Anyone know the syntax that is correct for that?
[15:51:16] OTORelic: has joined #ruby
[15:51:24] baweaver: has joined #ruby
[15:51:32] bkxd: has joined #ruby
[15:54:58] manveru: edge226: looks good?
[15:55:01] manveru: you tried it?
[15:55:36] edge226: manveru: No, I decided to ask before I did all the work updating it and making a new docker image.
[15:55:48] idletask: has joined #ruby
[15:57:16] edge226: manveru: Its my first time modifying any ruby/json so instead of banging my head against trial and error I figured a second opinion would not hurt ;)
[15:57:45] manveru: well, if you have ruby installed anywhere, you could also try it :)
[15:58:38] manveru: might also help if you add some code that stores the json you get for debugging
[15:59:06] Yiota: has joined #ruby
[15:59:27] manveru: somehting like `File.write('/tmp/last_request', request.body.read.to_s, 'w+')`
[15:59:54] manveru: hm, that'll actually not read twice
[16:00:34] manveru: json = JSON.parse(request.body.read.to_s); File.write('/tmp/last_request', JSON.pretty_unparse(json), 'w+')
[16:00:34] edge226: manveru: I actually removed the case as I dont think it was needed. The issue was one of the keys was wrong.
[16:00:42] manveru: more like this
[16:01:10] edge226: doesnt it do the json.parse part already?
[16:01:11] lyoshajapan: has joined #ruby
[16:01:26] manveru: yes, it's the same as in the source
[16:01:26] edge226: btw I didnt write this I just snagged it and I'm updating it for the parts that arent there.
[16:01:54] manveru: the File.write just writes a pretty formatted version of the json to /tmp/last_request :)
[16:02:18] manveru: just in case you wondered what else is in the response... but i guess github docs also tell you that
[16:02:35] manveru: s/response/body/
[16:03:24] tsherman: has joined #ruby
[16:03:47] Alayde: has joined #ruby
[16:03:51] kareeoleez: has joined #ruby
[16:04:09] amclain: has joined #ruby
[16:04:40] tsherman: has joined #ruby
[16:06:10] conta: has joined #ruby
[16:07:27] gizmore: has joined #ruby
[16:07:55] bronson: has joined #ruby
[16:09:41] eshea: has joined #ruby
[16:10:19] diegoviola: has joined #ruby
[16:10:57] dionysus69: has joined #ruby
[16:12:17] mrgrieves: what approach would you suggest to use to replace a case section with when statement evaluating a pair of conditions using && operator?
[16:13:32] agentmee1kat: has joined #ruby
[16:14:17] gizmore: mrgrieves: the @refactor and recognize the old code was good@ approach
[16:16:17] stannard: has joined #ruby
[16:17:07] hakunin: has joined #ruby
[16:17:24] lyoshajapan: has joined #ruby
[16:18:15] rbennacer: has joined #ruby
[16:21:14] kareeoleez: has joined #ruby
[16:22:12] davejlong: has joined #ruby
[16:22:42] davejlong: has joined #ruby
[16:23:35] davedev24: has joined #ruby
[16:23:52] bruno-: has joined #ruby
[16:27:51] aldodelgado: has joined #ruby
[16:29:11] Macaveli: has joined #ruby
[16:30:41] kareeoleez: has joined #ruby
[16:31:20] MagePsycho: has joined #ruby
[16:31:21] lyoshajapan: has joined #ruby
[16:32:47] baweaver: has joined #ruby
[16:33:35] davejlong: has joined #ruby
[16:34:05] dcunit3d: has joined #ruby
[16:34:26] daytime: has joined #ruby
[16:35:04] SCHAAP137: has joined #ruby
[16:35:21] lele: has joined #ruby
[16:36:03] rcvalle: has joined #ruby
[16:36:37] jenrzzz: has joined #ruby
[16:38:57] binaryplease1: has joined #ruby
[16:40:05] karmatr0n: has joined #ruby
[16:40:19] Macaveli: has joined #ruby
[16:41:07] polll: has joined #ruby
[16:42:31] iNs: has joined #ruby
[16:43:37] adaedra: ACTION dockerizes eam 
[16:43:50] eam: I just can't contain myself
[16:44:32] malconis: has joined #ruby
[16:47:41] benlieb: has joined #ruby
[16:47:42] Akuma: has joined #ruby
[16:48:35] wreet: has joined #ruby
[16:48:39] wreet: has joined #ruby
[16:48:48] wreet: has left #ruby: ()
[16:49:01] kareeoleez: has joined #ruby
[16:50:39] dopie: has joined #ruby
[16:51:31] lyoshajapan: has joined #ruby
[16:51:45] myntcake: has joined #ruby
[16:52:36] sdothum: has joined #ruby
[16:52:37] william3: has joined #ruby
[16:52:48] al2o3-cr: has joined #ruby
[16:53:03] whathappens: has joined #ruby
[16:54:01] madgen: has joined #ruby
[16:54:45] Es0teric: has joined #ruby
[16:55:28] Es0teric: has joined #ruby
[16:55:31] ruby-lang972: has joined #ruby
[16:55:37] sdothum: has joined #ruby
[16:56:16] [Butch]: has joined #ruby
[16:56:37] goodroot: has joined #ruby
[16:57:13] mprelude: has joined #ruby
[16:58:15] tsherman: has joined #ruby
[16:58:27] trinaldi: has joined #ruby
[17:00:17] User458764: has joined #ruby
[17:00:42] tomchapin: has joined #ruby
[17:01:46] zacts: hi rubyists
[17:02:08] Don_John: has joined #ruby
[17:02:15] shevy: yo zacts the man
[17:02:45] ramfjord: has joined #ruby
[17:02:56] Marsupermammal: has joined #ruby
[17:06:17] norc: has joined #ruby
[17:07:06] kareeoleez: has joined #ruby
[17:09:13] giz|work: has joined #ruby
[17:10:35] _blizzy_: has joined #ruby
[17:11:14] thezanke: has joined #ruby
[17:11:20] zacts: hey (%|:-)
[17:11:20] lyoshajapan: has joined #ruby
[17:11:42] william3: has joined #ruby
[17:12:41] theery: has joined #ruby
[17:13:06] thezanke: has joined #ruby
[17:14:16] alyyy: has joined #ruby
[17:15:49] aegis3121: has joined #ruby
[17:15:50] SCHAAP137: has joined #ruby
[17:16:14] kareeoleez: has joined #ruby
[17:16:58] davejlong: has joined #ruby
[17:17:38] lyoshajapan: has joined #ruby
[17:18:05] kareeoleez: has joined #ruby
[17:18:54] bruno-: has joined #ruby
[17:19:50] eshea: has joined #ruby
[17:20:19] shinnya: has joined #ruby
[17:22:07] jpfuentes2: has joined #ruby
[17:22:40] alyyy: I feel totally dumb here, but why won't this substitution work? https://gist.github.com/anonymous/fa5a05d4f41991f40422223e2c53b6d2
[17:22:47] jpfuentes2: has joined #ruby
[17:22:59] Begi: has joined #ruby
[17:23:25] jpfuentes2: has joined #ruby
[17:24:04] jpfuentes2: has joined #ruby
[17:24:43] spider-mario: has joined #ruby
[17:24:44] jpfuentes2: has joined #ruby
[17:25:24] jpfuentes2: has joined #ruby
[17:25:52] alyyy: it's a simple find and replace in a string
[17:26:57] troulouliou_div2: has joined #ruby
[17:28:48] postmodern: has joined #ruby
[17:32:11] ruby-lang762: has joined #ruby
[17:33:48] mdih: has joined #ruby
[17:35:40] norc: >> a = 'aly\'s dog'; a.sub '\'', '\\\''
[17:35:42] ruby[bot]: norc: # => "alys dogs dog" (https://eval.in/552356)
[17:35:59] Gasher: has joined #ruby
[17:36:12] norc: alyyy, it works, just not the way you expect it to.
[17:36:25] norc: Give me a second to find the documentation on this.
[17:36:40] Marsupermammal: has joined #ruby
[17:36:48] jenrzzz: has joined #ruby
[17:37:04] ruby-lang608: has joined #ruby
[17:37:15] conta: has joined #ruby
[17:38:01] finisherr: has joined #ruby
[17:38:05] lyoshajapan: has joined #ruby
[17:38:52] Nawn: has joined #ruby
[17:40:17] stannard: has joined #ruby
[17:40:36] ootput: has joined #ruby
[17:41:55] smathy: Simpler to just use lookahead: a.sub /(?=\')/, '\\'
[17:42:07] smathy: ...but xy problem.
[17:42:27] norc: alyyy, that actually looks like a bug.
[17:43:35] aegis3121: has joined #ruby
[17:44:42] alyyy: norc, really? very weird
[17:44:42] PedramT: has joined #ruby
[17:44:46] alyyy: any work around?
[17:44:52] norc: alyyy, the only explanation I see is that \\\' is being interpreted as $' somehow.
[17:45:11] norc: Which Im still not entirely sure whether it should.
[17:45:17] baweaver: has joined #ruby
[17:45:18] eam: is this an irb bug?
[17:45:33] norc: eam, nope, I just reproduced this here earlier.
[17:45:34] eam: I see different results in irb vs #!
[17:45:37] alyyy: let me try making it a script
[17:45:39] william3: has joined #ruby
[17:45:54] alyyy: just fyi this is ruby 1.9.3
[17:46:02] tsherman: has joined #ruby
[17:46:06] norc: alyyy, ruby[bot] runs on 2.3.0
[17:46:30] edwinvdgraaf: has joined #ruby
[17:46:32] norc: eam, Im guessing irb is treating it differently then?
[17:46:42] eam: '\'' should be just a single character String containing a single quote
[17:47:10] norc: eam, well it definitely is interpreting the \' as $' somehow.
[17:47:16] eam: oh hang on, my error
[17:47:18] norc: >> a = 'a\'b'; a.sub '\'', '\\\''
[17:47:19] ruby[bot]: norc: # => "abb" (https://eval.in/552370)
[17:47:28] norc: Though Im still not entirely sold whether this is a bug.
[17:47:29] eam: I retract everything I said
[17:47:31] norc: This might actually be a thing.
[17:47:40] eam: I was printing out the wrong thing from the #!, hah
[17:48:07] rodfersou: has joined #ruby
[17:48:32] ducklobster: has joined #ruby
[17:48:35] alyyy: I ran this without irb, same result
[17:48:37] mat-svol: has joined #ruby
[17:49:03] alyyy: >> 'aly\'s dog'.sub("'", "\\'")
[17:49:18] alyyy: how do I run things with the bot?
[17:49:27] adaedra: you need to be registered on freenode.
[17:49:28] smathy: ACTION still says to just use lookahead
[17:49:39] norc: It somehow feels like this is a feature that is just not documented.
[17:49:52] norc: Lets see whether jruby does the same.
[17:50:11] smathy: >> a = 'aly\'s dog'; a.sub /(?=\')/, "\\"
[17:50:12] ruby[bot]: smathy: # => "aly\\'s dog" (https://eval.in/552379)
[17:51:13] eam: jruby appears to behave similarly
[17:51:29] norc: Which makes me think that this is an intentional feature.
[17:51:39] norc: \' looks too similar to $' which is the same.
[17:51:44] norc: or rather has the same effect.
[17:51:49] eam: does sub take a regex or a string
[17:52:01] czerasz: has joined #ruby
[17:52:20] adaedra: >> a = 'aly\'s dog'.sub(/'/, '\\\'')
[17:52:21] ruby[bot]: adaedra: # => "alys dogs dog" (https://eval.in/552384)
[17:52:31] alyyy: eam, I think it does? http://ruby-doc.org/core-2.3.0/String.html#method-i-sub
[17:52:40] alyyy: you should still be able to escape out of it I assume
[17:52:40] bkxd: has joined #ruby
[17:53:09] adaedra: >> a = 'aly\'s dog'.sub(/\'/, '\\\'')
[17:53:10] ruby[bot]: adaedra: # => "alys dogs dog" (https://eval.in/552387)
[17:53:16] adaedra: >> a = 'aly\'s dog'.sub(/\\'/, '\\\'')
[17:53:17] ruby[bot]: adaedra: # => "aly's dog" (https://eval.in/552389)
[17:53:27] al2o3-cr: >> a = 'aly\'s dog'.sub(/'/, "\\\\'")
[17:53:28] ruby[bot]: al2o3-cr: # => "aly\\'s dog" (https://eval.in/552391)
[17:53:50] eam: https://github.com/ruby/ruby/blob/trunk/string.c#L4604-L4644
[17:53:51] adaedra: One day I'll learn how to read a doc
[17:54:24] jenrzzz: has joined #ruby
[17:54:28] trinaldi: has joined #ruby
[17:54:30] alyyy: I can't be the first person to try and replace ' with \' in a string, right?
[17:54:47] lyoshajapan: has joined #ruby
[17:54:55] eam: appears that pattern capture groups can be referenced by \ backref style syntax?
[17:54:56] adaedra: look, al2o3-cr succeeded.
[17:55:00] eam: am I reading that correctly?
[17:55:04] adaedra: eam: well yes.
[17:55:21] eam: so by design?
[17:55:36] eam: (sorry I think this is what norc was saying all along, I'm slow)
[17:56:04] adaedra: >> "hello eam".sub(/hello (\w+)/, 'goodbye \1')
[17:56:12] ruby[bot]: adaedra: # => "goodbye eam" (https://eval.in/552400)
[17:56:31] adaedra: but I didn't know about \'
[17:57:20] adaedra: alyyy: so yeah, use more backslashes in your replacement.
[17:57:37] tsherman: has joined #ruby
[17:57:41] Yiota: has joined #ruby
[17:57:47] al2o3-cr: and also use double quotes
[17:58:05] eam: alyyy: you want puts a.sub '\'', '\\\\\''
[17:58:09] adaedra: >> "aly's dog".sub(/'/, "\\\\'")
[17:58:10] ruby[bot]: adaedra: # => "aly\\'s dog" (https://eval.in/552409)
[17:58:10] eam: according to the #sub docs
[17:58:31] norc: eam, try it.
[17:58:37] norc: Just see how Ruby completely chokes on it.
[17:58:41] adaedra: Hello n1colas
[17:58:49] eam: norc: I tried puts a.sub '\'', '\\\\\''
[17:58:51] eam: seems to work
[17:58:54] alyyy: ok, I got it now
[17:59:08] eam: \\\\' is ', and \\ is \
[17:59:13] adaedra: but yeah, that's totally a feature
[17:59:20] alyyy: thank you so much for the help, gotta get back to work :)
[17:59:31] norc: alyyy, just use the block form for readability.
[17:59:44] eam: backreferences :(
[17:59:49] alyyy: blockform?
[18:00:07] renancarvalho: has joined #ruby
[18:00:15] Xeago: has joined #ruby
[18:00:35] djellemah_: has joined #ruby
[18:00:54] djbkd: has joined #ruby
[18:01:05] barajasfab: has joined #ruby
[18:01:22] tsherman: has joined #ruby
[18:02:04] jtoy: has joined #ruby
[18:03:18] tAn: has joined #ruby
[18:03:22] flashpoint9: has joined #ruby
[18:03:51] william3: has joined #ruby
[18:04:41] stannard: has joined #ruby
[18:06:50] renancarvalho: has left #ruby: ()
[18:06:55] tpendragon: has joined #ruby
[18:07:15] jolamb: has joined #ruby
[18:07:23] Dimik: has joined #ruby
[18:07:26] blackjid: has joined #ruby
[18:07:31] aegis3121: has joined #ruby
[18:09:06] ctarx: has joined #ruby
[18:09:51] giz|work: has joined #ruby
[18:10:55] cdg: has joined #ruby
[18:11:26] valetudo: has joined #ruby
[18:11:37] william3: has joined #ruby
[18:12:30] bronson: has joined #ruby
[18:13:52] Infra-Red: has joined #ruby
[18:14:03] kent\n: has joined #ruby
[18:14:03] kent\n: has joined #ruby
[18:14:51] sepp2k: has joined #ruby
[18:18:43] kent\n: has joined #ruby
[18:18:52] baweaver: has joined #ruby
[18:19:43] lyoshajapan: has joined #ruby
[18:19:55] ekinmur: has joined #ruby
[18:21:20] ekinmur: has joined #ruby
[18:21:23] davejlong: has joined #ruby
[18:21:50] skinofstars: has joined #ruby
[18:22:54] kentnl: has joined #ruby
[18:23:44] Xeago: has joined #ruby
[18:24:02] Xeago: has joined #ruby
[18:24:09] n008f4g_: has joined #ruby
[18:24:28] jolamb: are there any libs which provide useful common magic numbers in the standard library?
[18:25:07] pipework: jolamb: I'm always fond of `12`.
[18:25:10] Infra-Red: has joined #ruby
[18:25:31] jolamb: pipework: :P
[18:25:39] jenrzzz: has joined #ruby
[18:26:35] djellemah: >> require 'prime'; Prime.take(11)
[18:26:36] djellemah_: has joined #ruby
[18:26:36] ruby[bot]: djellemah: # => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31] (https://eval.in/552417)
[18:27:20] lyoshajapan: has joined #ruby
[18:27:30] symm-: has joined #ruby
[18:28:02] havenwood: jolamb: If you mean file type detection there are several gems, native or libmagic bindings. Or you could shell out to `file`. :P
[18:28:05] kent\n: has joined #ruby
[18:28:05] kent\n: has joined #ruby
[18:28:08] jpfuentes2: has joined #ruby
[18:28:24] jolamb: havenwood: nope. nevermind, I think I was just being silly
[18:29:07] djellemah: Oh, *those* kind of magic numbers :-p
[18:32:49] kentnl: has joined #ruby
[18:32:50] kentnl: has joined #ruby
[18:33:20] Gasher: has joined #ruby
[18:34:09] jpfuente_: has joined #ruby
[18:35:20] Es0teric: has joined #ruby
[18:36:03] Es0teric: has joined #ruby
[18:39:32] ramfjord: has joined #ruby
[18:41:36] BtcBen: has joined #ruby
[18:42:37] Infra-Red: has joined #ruby
[18:43:31] tao_: has joined #ruby
[18:46:30] jpfuentes2: has joined #ruby
[18:46:51] tsherman: has joined #ruby
[18:48:08] lyoshajapan: has joined #ruby
[18:48:24] jackjackdripper: has joined #ruby
[18:49:34] mario-circe: has joined #ruby
[18:50:02] pawnbox: has joined #ruby
[18:50:06] idletask: has joined #ruby
[18:50:44] User458764: has joined #ruby
[18:50:51] ducklobster: anyone have experience with the Sequel ORM?
[18:51:10] tsherman: has joined #ruby
[18:52:10] skweek: has joined #ruby
[18:52:49] gizless: has joined #ruby
[18:53:16] dravine_: has joined #ruby
[18:54:04] davejlong: has joined #ruby
[18:54:42] adaedra: There's the #sequel channel on freenode
[18:55:08] adaedra: There's even jeremyevans in it (or at least, was last time I looked)
[18:55:35] dravine: has joined #ruby
[18:55:51] tsherman: has joined #ruby
[18:57:36] lyoshajapan: has joined #ruby
[18:58:08] ducklobster: adaedra: thanks, I tried posting in there but its pretty quiet :( i'll wait around some more though
[18:58:22] bronson: has joined #ruby
[18:58:30] rdark: has joined #ruby
[18:58:31] rdark: has joined #ruby
[18:58:31] adaedra: There's not a lot of activity in there, yeah
[18:58:36] diegoaguilar: has joined #ruby
[18:58:46] adaedra: You can also try to ask here (but don't forget to warn #sequel too if you do so)
[18:58:59] dopie: has joined #ruby
[19:00:08] Waqas: has joined #ruby
[19:00:54] leksster: has joined #ruby
[19:04:45] bob434: has joined #ruby
[19:07:32] c00p3r: has joined #ruby
[19:07:38] Infra-Red: has joined #ruby
[19:08:12] zeroDivisible: has joined #ruby
[19:10:09] Devalo: has joined #ruby
[19:10:41] aegis3121: has joined #ruby
[19:11:24] duderonomy: has joined #ruby
[19:11:35] dopie: has joined #ruby
[19:11:53] x77686d: has joined #ruby
[19:13:50] skinofstars: has joined #ruby
[19:14:20] flashpoint9: has joined #ruby
[19:15:24] dopie: has joined #ruby
[19:17:04] huddy: has joined #ruby
[19:17:18] Ox0dea: has joined #ruby
[19:17:38] go|dfish: has joined #ruby
[19:18:14] bronson: has joined #ruby
[19:19:08] Waqas: has joined #ruby
[19:20:14] Omni_: has joined #ruby
[19:20:54] yqt: has joined #ruby
[19:23:09] jtoy: has joined #ruby
[19:23:44] lyoshajapan: has joined #ruby
[19:25:02] Cohedrin: has joined #ruby
[19:25:46] SHyx0rmZ: has joined #ruby
[19:25:46] tsu_: has joined #ruby
[19:25:52] dravine: has joined #ruby
[19:26:39] yfeldblum: has joined #ruby
[19:27:37] dopie: has joined #ruby
[19:32:09] stannard: has joined #ruby
[19:32:16] polishdub: has joined #ruby
[19:32:55] SHyx0rmZ: has joined #ruby
[19:33:19] terlar: has joined #ruby
[19:33:45] karmatr0n: has joined #ruby
[19:34:07] baweaver: has joined #ruby
[19:34:23] Devalo: has joined #ruby
[19:36:17] Begi: has left #ruby: ()
[19:37:43] conta: has joined #ruby
[19:39:50] pawnbox: has joined #ruby
[19:39:53] skinofstars: has joined #ruby
[19:42:56] dopie: has joined #ruby
[19:43:46] Begi1: has joined #ruby
[19:43:48] stannard: has joined #ruby
[19:43:49] lyoshajapan: has joined #ruby
[19:46:23] skinofstars: has left #ruby: ()
[19:46:36] jdawgaz: has joined #ruby
[19:46:53] jtoy: has joined #ruby
[19:46:56] william3: has joined #ruby
[19:46:57] dopie: has joined #ruby
[19:46:59] jessemcgilallen: has joined #ruby
[19:47:24] [Butch]_: has joined #ruby
[19:47:50] lemur: has joined #ruby
[19:48:02] _stu_: has joined #ruby
[19:48:08] Omni_: has joined #ruby
[19:48:43] Omni_: has joined #ruby
[19:48:55] flopsec: has joined #ruby
[19:50:33] william3: has joined #ruby
[19:51:50] dopie: has joined #ruby
[19:52:06] alxgsv: has joined #ruby
[19:53:09] Marsupermammal: has joined #ruby
[19:53:24] bkxd: has joined #ruby
[19:56:00] n008f4g_: has joined #ruby
[19:56:43] Begi1: has joined #ruby
[19:58:17] AlexRussia: has joined #ruby
[19:58:44] ctarx: has joined #ruby
[19:59:28] dopie: has joined #ruby
[19:59:57] jenrzzz: has joined #ruby
[20:00:56] c00p3r: has left #ruby: ("Konversation terminated!")
[20:01:00] go|dfish: has joined #ruby
[20:01:09] Frem: has joined #ruby
[20:03:44] dopie: has joined #ruby
[20:03:58] stannard: has joined #ruby
[20:04:57] jenrzzz: has joined #ruby
[20:05:21] dopie: has joined #ruby
[20:06:05] lyoshajapan: has joined #ruby
[20:06:13] Es0teric: has joined #ruby
[20:06:33] jtoy: has joined #ruby
[20:06:55] Es0teric: has joined #ruby
[20:06:59] raddazong: has joined #ruby
[20:07:52] wilbert: has joined #ruby
[20:07:56] Marsupermammal: has joined #ruby
[20:08:42] stannard: has joined #ruby
[20:08:48] rickmasta: has joined #ruby
[20:11:13] eshear: has joined #ruby
[20:11:32] leksster: has joined #ruby
[20:12:01] ramfjord: Anyone here familiar with ruby's OpenSSL library in the context of cacert bundles and making https requests? I've just updated the root certificate on a bunch of machines and HTTP.get("https://wwww.google.com") is now failing with an SSL error. I've run OpenSSL::X509::DEFAULT_CERT_FILE tells me that the default cacert file is in /etc/.../cert.pem, but when I curl --cacert /etc/.../cert.pem https://www.google.com, it actually works!
[20:13:06] [Butch]_: has joined #ruby
[20:13:22] dopie: has joined #ruby
[20:13:50] Gasher: has joined #ruby
[20:14:38] duderonomy: has joined #ruby
[20:14:41] blackgoat: has joined #ruby
[20:16:02] lyoshajapan: has joined #ruby
[20:16:07] User458764: has joined #ruby
[20:17:01] dopie: has joined #ruby
[20:18:59] dopie: has joined #ruby
[20:19:07] Marsupermammal: has joined #ruby
[20:19:16] tobiasvl: what SSL error?
[20:19:29] duderono_: has joined #ruby
[20:20:04] cdg: has joined #ruby
[20:22:02] kirun: has joined #ruby
[20:24:39] ssiris: has joined #ruby
[20:25:23] bruno-: has joined #ruby
[20:26:38] lyoshajapan: has joined #ruby
[20:26:59] baweaver: has joined #ruby
[20:27:15] _stu_: has joined #ruby
[20:28:05] idletask: has joined #ruby
[20:29:22] sepp2k: has joined #ruby
[20:32:03] go|dfish: has joined #ruby
[20:33:08] djbkd: has joined #ruby
[20:33:36] akkmaxon: has joined #ruby
[20:33:36] jpfuentes2: has joined #ruby
[20:33:47] futilegames: has joined #ruby
[20:33:53] bronson: has joined #ruby
[20:34:45] leksster: has joined #ruby
[20:34:58] tsherman: has joined #ruby
[20:35:00] dopie: has joined #ruby
[20:36:27] jtoy: has joined #ruby
[20:36:36] hexchat: has joined #ruby
[20:37:55] dopie: has joined #ruby
[20:39:06] Es0teric: has joined #ruby
[20:39:19] tlaxkit: has joined #ruby
[20:40:00] dopie: has joined #ruby
[20:40:05] bruno-: has joined #ruby
[20:40:40] dopie: has joined #ruby
[20:40:53] wldcordeiro: has joined #ruby
[20:41:15] Omni_: has joined #ruby
[20:42:25] djbkd: has joined #ruby
[20:42:26] eam: realizing I really ought to open an issue for this rpath quoting bug in mkmf since I'm obviously not going to fix it myself
[20:44:27] dopie: has joined #ruby
[20:44:51] shayan: has joined #ruby
[20:46:17] jenrzzz: has joined #ruby
[20:46:41] x77686d: has joined #ruby
[20:47:04] ur5us: has joined #ruby
[20:47:37] nando293921: has joined #ruby
[20:48:31] lyoshajapan: has joined #ruby
[20:50:40] Omni_: has joined #ruby
[20:51:17] Begi: has left #ruby: ()
[20:53:54] theunraveler: has joined #ruby
[20:55:20] LowLifePerv: has joined #ruby
[20:55:21] lyoshajapan: has joined #ruby
[20:56:49] FooMunki: has joined #ruby
[20:58:54] FooMunki: has joined #ruby
[20:59:04] Polysics: has joined #ruby
[21:00:10] Omni: has joined #ruby
[21:00:18] leksster: has joined #ruby
[21:01:18] jenrzzz: has joined #ruby
[21:02:20] lyoshajapan: has joined #ruby
[21:02:20] arlek_: has joined #ruby
[21:02:58] benlieb: has joined #ruby
[21:03:16] bkxd: has joined #ruby
[21:03:46] ogpastaling: has joined #ruby
[21:03:58] go|dfish: has joined #ruby
[21:04:15] tAn: has joined #ruby
[21:05:24] eshea: has joined #ruby
[21:06:49] eshea: has joined #ruby
[21:07:26] william3: has joined #ruby
[21:08:17] diegoaguilar: has joined #ruby
[21:09:01] Silox|: has joined #ruby
[21:09:24] workmad3: has joined #ruby
[21:09:34] firstdayonthejob: has joined #ruby
[21:11:31] theery: has joined #ruby
[21:11:38] william3: has joined #ruby
[21:16:19] ramfjord: tobiasvl: The ssl error I was referring to above was "OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" - a lot of google search results around this
[21:16:26] swills: has joined #ruby
[21:17:57] mdw: has joined #ruby
[21:18:16] FernandoBasso: has joined #ruby
[21:18:30] dravine: has joined #ruby
[21:18:42] skweek: has joined #ruby
[21:20:54] flashpoint9: has joined #ruby
[21:23:39] duderonomy: has joined #ruby
[21:24:43] ChiefAlexander: has joined #ruby
[21:25:01] duderonomy: has joined #ruby
[21:28:38] e-r-a: has joined #ruby
[21:28:59] jenrzzz: has joined #ruby
[21:30:02] Kus: has joined #ruby
[21:31:17] benlieb: has joined #ruby
[21:35:25] ultrasandwich: has joined #ruby
[21:36:33] lyoshajapan: has joined #ruby
[21:36:50] GodFather: has joined #ruby
[21:38:20] n008f4g_: has joined #ruby
[21:38:31] hotpancakes: has joined #ruby
[21:40:23] yfeldblum: has joined #ruby
[21:42:26] eshea: has joined #ruby
[21:42:30] speakingcode: has joined #ruby
[21:43:02] dopie: has joined #ruby
[21:43:29] eshea: has joined #ruby
[21:44:35] hotpancakes: has joined #ruby
[21:44:56] pawnbox: has joined #ruby
[21:45:21] Gasher: has joined #ruby
[21:47:32] Xeago: has joined #ruby
[21:49:22] baweaver: has joined #ruby
[21:51:26] diegoviola: has joined #ruby
[21:51:30] hotpancakes: has joined #ruby
[21:51:45] Omni_: has joined #ruby
[21:52:55] jdawgaz: has joined #ruby
[21:53:06] leksster: has joined #ruby
[21:53:19] jtoy: has joined #ruby
[21:53:48] leksster: has joined #ruby
[21:54:03] gmas: has joined #ruby
[21:54:20] leksster: has joined #ruby
[21:54:48] lyoshajapan: has joined #ruby
[21:55:20] leksster: has joined #ruby
[21:59:21] speakingcode: has joined #ruby
[21:59:23] siaW: has joined #ruby
[22:00:05] robbyoconnor: has joined #ruby
[22:00:26] Gasher: has joined #ruby
[22:00:31] william3: has joined #ruby
[22:01:33] gmas: has joined #ruby
[22:02:11] Polysics: has joined #ruby
[22:03:16] darix: ramfjord: verify with strace that the file is actually used
[22:04:04] bkxd: has joined #ruby
[22:04:48] lynx_eyes7: has joined #ruby
[22:05:06] jdawgaz: has joined #ruby
[22:05:44] Omni_: has joined #ruby
[22:06:51] jenrzzz: has joined #ruby
[22:06:52] jenrzzz: has joined #ruby
[22:08:48] tAn: has joined #ruby
[22:08:53] akkmaxon: has joined #ruby
[22:11:54] cjbottaro: has joined #ruby
[22:12:35] lyoshajapan: has joined #ruby
[22:13:18] ramfjord: darix: good idea... strace confirms that both curl --cacert and my ruby script are calling open on the /etc/.../cert.pem file
[22:14:09] dopie: has joined #ruby
[22:14:12] cjbottaro: has joined #ruby
[22:15:11] Omni: has joined #ruby
[22:15:30] tax: has joined #ruby
[22:15:31] ramfjord: couple other puzzle pieces: Net::HTTP get works on some https domains, such as slashdot.org, but not others, such as google.com. Also, the ruby OpenSSL::OPENSSL_VERSION is substantially behind the OS installed ssl version (this is centos, so I used yum list to check) - OpenSSL 1.0.1e 11 vs openssl.x86_64 1.0.1e-42.el6_7.4
[22:15:57] baweaver: has joined #ruby
[22:18:56] darix: ramfjord: i dont think the package revision is encoded there
[22:19:46] conta: has joined #ruby
[22:20:22] blandflakes: has joined #ruby
[22:20:59] bkxd: has joined #ruby
[22:21:33] jottr: has joined #ruby
[22:23:47] dgncn: has joined #ruby
[22:24:44] Omni_: has joined #ruby
[22:25:31] lynx_eyes7: has joined #ruby
[22:25:33] aspiers: has joined #ruby
[22:25:48] leksster: has joined #ruby
[22:30:07] Eiam_: has joined #ruby
[22:30:10] workmad3: has joined #ruby
[22:31:22] ramfjord: darix: you're right, and strace indicates that both curl and my script are pulling in /usr/lib64/libssl.so.10
[22:31:59] edge226: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[22:33:10] _stu_: has joined #ruby
[22:34:07] x77686d: has joined #ruby
[22:35:56] dgncn: has joined #ruby
[22:36:01] darkf: has joined #ruby
[22:39:44] zenlot6: has joined #ruby
[22:41:27] ramfjord: has joined #ruby
[22:44:52] hotpancakes: has joined #ruby
[22:45:29] Puffball: has joined #ruby
[22:48:42] Omni_: has joined #ruby
[22:50:42] Tref: has joined #ruby
[22:50:52] dopie: has joined #ruby
[22:50:57] benlieb: has joined #ruby
[22:53:53] theery: has joined #ruby
[22:54:45] p0p0pr37: has joined #ruby
[22:55:39] Nahra: has joined #ruby
[22:57:01] charliesome: has joined #ruby
[22:58:12] Omni_: has joined #ruby
[22:58:58] banister: has joined #ruby
[22:59:01] barajasfab: has joined #ruby
[23:04:15] Polysics: has joined #ruby
[23:05:32] jenrzzz: has joined #ruby
[23:11:56] FooMunki: has joined #ruby
[23:15:38] _stu_: has joined #ruby
[23:17:25] eljimmy: has joined #ruby
[23:17:31] Xeago: has joined #ruby
[23:18:19] mdw: has joined #ruby
[23:19:48] arescorpio: has joined #ruby
[23:20:00] tax: has joined #ruby
[23:20:24] houhoulis: has joined #ruby
[23:21:54] Sidoniuns: has joined #ruby
[23:22:45] bkxd: has joined #ruby
[23:23:07] najam: has joined #ruby
[23:23:19] bob434: has joined #ruby
[23:35:18] Vile`: has joined #ruby
[23:35:34] Nawn: has joined #ruby
[23:35:41] Nawn: has left #ruby: ()
[23:38:53] lyoshajapan: has joined #ruby
[23:39:30] cabargas: has joined #ruby
[23:39:57] DLSteve: has joined #ruby
[23:40:39] duderonomy: has joined #ruby
[23:43:48] Gasher: has joined #ruby
[23:44:41] edwinvdgraaf: has joined #ruby
[23:45:05] hinbody: has joined #ruby
[23:45:09] lyoshajapan: has joined #ruby
[23:45:31] ramfjord: has joined #ruby
[23:47:22] FernandoBasso: has joined #ruby
[23:49:05] blandflakes: has joined #ruby
[23:49:14] cdg: has joined #ruby
[23:50:14] lemur: has joined #ruby
[23:52:14] SFPT: has joined #ruby
[23:52:37] cjbottaro: has joined #ruby
[23:53:21] SFPT: I wrote a program in ruby, and now I'm trying to execute it to join an IRC chatroo, #cemetech on efnet. I don't know how though.
[23:53:24] benzrf: really i recommend using SPC instead
[23:53:26] benzrf: :rimshot:
[23:53:35] benzrf: SFPT: how are you doing the irc?
[23:54:01] SFPT: I just googled ruby IRC chatroom
[23:54:10] SFPT: I usually use Kiwiirc though.
[23:54:25] benzrf: no, i mean
[23:54:34] benzrf: how are you connecting the program
[23:54:47] SFPT: Want me to pastebin the code?
[23:55:34] SFPT: http://pastebin.com/VCEE9Dh0
[23:55:35] ruby[bot]: SFPT: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/23c1171696e0499c69ba3fb8e7b80be7
[23:55:36] ruby[bot]: SFPT: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[23:56:33] SFPT: Wow, rubybot doesn't like pastebin? Rude.
[23:57:10] SFPT: That's a cool botthough.