« Back to channel list

#ruby - 04 March 2016

« Back 1 day Forward 1 day »
[00:00:52] uglybandersnatch: has joined #ruby
[00:07:05] nettoweb: has joined #ruby
[00:11:24] justbleed: has joined #ruby
[00:12:43] allcentury: has joined #ruby
[00:12:52] Synthead: if I do "if /that/.match(whatever) ... some code ... end", is there a way I can "get" the value returned in the if statement?
[00:13:05] Ox0dea: Synthead: It's in $~.
[00:13:15] Ox0dea: Which, if you require 'English', can be accessed as $MATCH_DATA.
[00:13:42] Ox0dea: Or you could just say `if foo = //.match(bar)` and use `foo` in the body.
[00:14:19] Synthead: I was kinda thinking that
[00:14:22] Synthead: more readable
[00:15:31] Synthead: Ox0dea: thanks for the help!
[00:15:38] Ox0dea: Synthead: Sure thing. :)
[00:16:09] duckpuppy: has joined #ruby
[00:16:40] trosborn: has joined #ruby
[00:17:22] despai: has joined #ruby
[00:17:42] Brando753: has joined #ruby
[00:20:10] idefine: has joined #ruby
[00:22:22] Rodya_: has joined #ruby
[00:24:32] Rodya_: has joined #ruby
[00:24:34] toretore: has joined #ruby
[00:24:37] Synthead: is there a way to make awesome_print always print color (even a script is when piped to less)
[00:24:57] Synthead: bleh, well, you know
[00:25:07] Synthead: ACTION files a bug for mental race condition
[00:27:29] idletask: Synthead: have you tried and less -r?
[00:27:54] jeanlinux: has joined #ruby
[00:28:05] amargherio: has joined #ruby
[00:28:13] Synthead: idletask: awesome_print doesn't print in color when the output isn't stdout I think
[00:28:23] Synthead: idletask: yeah I don't see any escape sequences or anything
[00:28:26] idletask: In this case, uh
[00:28:37] ytti: https://github.com/michaeldv/awesome_print/blob/master/lib/awesome_print/inspector.rb#L113
[00:28:47] ytti: set 'force_colors'
[00:29:02] ytti: (never heard of awesome_print before, so it was considerable effort!)
[00:29:18] ytti: https://github.com/michaeldv/awesome_print/blob/master/lib/awesome_print/inspector.rb#L9
[00:29:42] ellen_: has joined #ruby
[00:29:58] Ox0dea: Line 14's the important one, I would think.
[00:30:20] ytti: doesn't matter
[00:30:25] ytti: there is also accessor
[00:30:34] ytti: so object.force_colours = true
[00:30:38] ytti: so object.force_colours!
[00:30:41] ytti: do the same
[00:31:39] Ox0dea: I know which one I like more.
[00:31:41] ytti: i'd like to think accessor is more readable, but debatable
[00:31:56] Synthead: usually you call it via ap(your_object)
[00:32:54] stannard: has joined #ruby
[00:33:37] idletask: Trying to figure out the code... I can't :(
[00:33:56] ytti: Synthead, try AwesomePrint.force_colors = true
[00:34:00] idletask: I am sure that the '!' has a meaning in force_colors!(value = true)
[00:34:11] ytti: nothing, it's just method name
[00:34:29] Synthead: ytti: yeah! there we go!
[00:34:30] ytti: idiomatic use is to indicate that it modifies the object in-place
[00:34:31] Synthead: thanks all!
[00:35:28] ytti: Synthead, answer to next question, less -R
[00:35:41] Synthead: ytti: oh I already knew that :)
[00:36:34] idletask: ytti: do I take it that a question mark at the end of a method (is that a method?) indicates that this returns a boolean?
[00:36:47] ytti: idletask, yeah
[00:36:58] ytti: justbleed, also purely convention, just normal name factually
[00:37:06] ytti: s/justbleed/idletask/
[00:37:34] Rodya_: has joined #ruby
[00:37:36] ytti: = is also just method name
[00:37:42] idletask: I saw "defined?" a few times already
[00:38:22] idefine: has joined #ruby
[00:38:31] idletask: And it doesn't really return a boolean
[00:38:36] Ox0dea: That's not a method.
[00:38:39] idletask: nil or... Uhm
[00:38:50] Coral: has joined #ruby
[00:38:52] Ox0dea: It's actually part of the syntax; it's a keyword.
[00:39:03] Ox0dea: It has to be "special" to do what it does, of course.
[00:39:22] KensoDev: has joined #ruby
[00:39:59] Rodya_: has joined #ruby
[00:40:20] idletask: Looks like parsing ruby will be just as challenging as I imagined :p
[00:40:42] Ox0dea: How come you don't want to use one of the established parsers?
[00:40:52] Synthead: idletask: a fun way to cast to boolean is !!value
[00:40:58] idletask: Because none of them will work with SonarQube
[00:41:36] idletask: What is more, it's a good opportunity to eat my own dog's food yet again
[00:42:02] Synthead: idletask: !value is the boolean antonym of value, (i.e. a = 1; !a === false), and !! is the antonym of the antonym (i.e. a = 1; !!a === true)
[00:42:21] dcunit3d: has joined #ruby
[00:42:25] nogic: has joined #ruby
[00:42:26] Ox0dea: Synthead: That's a confusing use of `===`.
[00:42:36] yatish27: has joined #ruby
[00:42:52] Synthead: Ox0dea: well, it's just a vessel to explain that true is true
[00:42:54] idletask: Recall: I come from statically typed languages
[00:43:17] Ox0dea: Synthead: Ruby's === is not JavaScript's.
[00:43:20] idletask: I have yet to figure out most parts of Ruby
[00:43:21] Vile`: has joined #ruby
[00:43:28] nogic: has joined #ruby
[00:43:34] Synthead: well you know what I mean
[00:43:41] Ox0dea: I got lucky this time.
[00:43:46] Synthead: !!youre_right
[00:44:14] nogic: has joined #ruby
[00:44:34] sp4rrow: has joined #ruby
[00:44:47] Rodya_: has joined #ruby
[00:45:03] idletask: The fact that you can even write 128.times has yet to fully penetrate my thick, statically typed skull :p
[00:46:59] ytti: i don't think that implies dynamic typing
[00:47:19] ytti: only implication is that integers are actually objects
[00:49:48] ytti: stuff like this implies dynamic typing
[00:49:49] ytti: [1] pry(main)> def moi(k);k+k;end
[00:49:49] ytti: [2] pry(main)> moi(1);moi("k")
[00:50:01] DLSteve: has joined #ruby
[00:50:12] ytti: which i don't think is that useful at all
[00:50:28] Rodya_: has joined #ruby
[00:50:31] idletask: ytti: I have only worked with languages for which 128 and "friends" were primitives; so...
[00:50:56] Uber|Dragon: has joined #ruby
[00:50:57] idletask: In Java by the way that would be IntStream.range(0, 128) to return an IntStream and operate on that :p
[00:50:59] ytti: quite, but you could make static language where 128.times is possible
[00:51:01] charliesome: has joined #ruby
[00:52:02] idletask: Well, I'll come to parse it eventually
[00:52:10] idletask: I _do_ parse ObjectScript after all
[00:52:14] idletask: So Ruby shouldn't be a problem
[00:52:46] LoneHerm_: has joined #ruby
[00:52:50] pawnbox: has joined #ruby
[00:53:39] Ox0dea: Ah, we've been using different definitions of "parse".
[00:53:54] Ox0dea: I thought you meant with a computer, but you've been talking about your eyes. :P
[00:55:22] stannard: has joined #ruby
[00:55:46] idletask: I parse it with a computer... I have an entire SonarQube plugin for ObjectScript
[00:55:50] idletask: Now I want to do it for Ruby
[00:55:54] idefine: has joined #ruby
[00:55:57] kirillzh: has joined #ruby
[00:55:59] ytti: i thought computer too
[00:56:02] ytti: and you would be right
[00:56:04] idletask: And I need to understand the language to parse and tokenize it correcctly
[00:56:08] ytti: parsing ruby isn't SUPER trivial
[00:56:14] ytti: well at least say compared to python
[00:56:30] ytti: but i'll still write program in ruby any day before python
[00:56:58] idletask: Well, that's personal but I dislike python
[00:57:18] ytti: i don't really dislike it, not like php
[00:57:28] ytti: but if i can choose, i'll always choose ruby
[00:58:07] ytti: just feels more productive, more consistent
[00:58:53] astrobun_: has joined #ruby
[00:58:54] y2mq37: has joined #ruby
[00:58:55] idletask: http://laroueduchiffrage.remilemonnier.fr/c13a47d2
[00:59:11] jgpawletko: has joined #ruby
[00:59:45] rmulligan: has joined #ruby
[01:00:17] ytti: that needs to have new and interesting stuff :>
[01:00:31] ytti: like elixir, rust, nim, crystal
[01:01:30] idletask: rust I've heard of
[01:01:54] idletask: But anyway; my goal right now is ruby
[01:02:18] idletask: If I can parse a minimal set of it and do meaningful checks, that'll be a start
[01:03:06] idletask: Like, "avoid using p/pp if not needed" for instance
[01:03:09] nogic: has joined #ruby
[01:03:29] johnmilton: has joined #ruby
[01:03:48] wolffles: has joined #ruby
[01:08:49] nettoweb: has joined #ruby
[01:09:27] x77686d: has joined #ruby
[01:09:29] dopamean1: has joined #ruby
[01:11:02] zenspider: has joined #ruby
[01:11:23] idletask: Well, the net result is that I'll spam this channel with "newby" questions for some time :p
[01:12:23] baweaver: has joined #ruby
[01:13:05] nettoweb: has joined #ruby
[01:13:40] nogic: has joined #ruby
[01:13:58] lemur: has joined #ruby
[01:14:50] nogic: has joined #ruby
[01:14:52] youch: has joined #ruby
[01:19:41] babblebre: has joined #ruby
[01:20:36] nertzy: has joined #ruby
[01:20:48] mattwildig: has joined #ruby
[01:20:58] PaulCapestany: has joined #ruby
[01:22:52] tim_s007: has joined #ruby
[01:27:08] shanemcd: has joined #ruby
[01:27:29] dfockler: has joined #ruby
[01:27:55] shanemcd: has joined #ruby
[01:32:17] TheNet: has joined #ruby
[01:32:53] TheNet_: has joined #ruby
[01:33:14] TheNet: has joined #ruby
[01:33:15] justbleed: has joined #ruby
[01:33:55] ledestin: has joined #ruby
[01:33:58] PaulCapestany: has joined #ruby
[01:35:46] havenwood: idletask: <3 Ruby
[01:36:41] rmulliga`: has joined #ruby
[01:38:08] mudge: has joined #ruby
[01:38:11] mudge: has left #ruby: ("= """)
[01:38:44] bronson: has joined #ruby
[01:40:51] BtcBen: has joined #ruby
[01:41:35] p0p0pr37: has joined #ruby
[01:43:32] yatish27: has joined #ruby
[01:45:28] shanemcd: has joined #ruby
[01:45:39] PaulCapestany: has joined #ruby
[01:48:41] rmulliga`: has joined #ruby
[01:49:10] hannelita: has joined #ruby
[01:51:56] blackmesa: has joined #ruby
[01:54:18] passcod: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[01:54:22] passcod: has joined #ruby
[01:54:32] passcod: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[01:54:38] passcod: has joined #ruby
[01:54:39] passcod: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[01:54:42] passcod: has joined #ruby
[01:54:43] passcod: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[01:57:15] diego2: has joined #ruby
[01:58:27] justbleed: has joined #ruby
[02:00:28] Rodya_: has joined #ruby
[02:00:39] dopamean1: has joined #ruby
[02:03:22] uglybandersnatch: has joined #ruby
[02:04:54] jenrzzz: has joined #ruby
[02:05:39] kknight: has joined #ruby
[02:06:15] Rodya_: has joined #ruby
[02:06:38] lessless: has joined #ruby
[02:09:51] sgambino: has joined #ruby
[02:11:07] sucks: has joined #ruby
[02:11:08] Rodya_: has joined #ruby
[02:11:19] deuxclique: has joined #ruby
[02:13:16] shanemcd_: has joined #ruby
[02:14:19] Rodya_: has joined #ruby
[02:15:16] fullofcaffeine: has joined #ruby
[02:16:12] jayc0b0: has joined #ruby
[02:16:32] deuxclique: has joined #ruby
[02:16:47] eregi: has joined #ruby
[02:18:09] duckpuppy: has joined #ruby
[02:18:21] shanemcd: has joined #ruby
[02:19:28] Sonja: has joined #ruby
[02:19:30] diegoviola: has joined #ruby
[02:19:31] spuk: has joined #ruby
[02:19:45] Sonja: is there a telnet service to a realllly fast cpu that runs ruby?
[02:19:56] Sonja: my laptop runs my ruby scripts too slowly
[02:23:11] deuxcliq_: has joined #ruby
[02:23:24] shanemcd: has joined #ruby
[02:23:38] Rodya_: has joined #ruby
[02:24:34] bronson: has joined #ruby
[02:25:51] shanemcd_: has joined #ruby
[02:26:08] slackbotgz: has joined #ruby
[02:26:54] deuxclique: has joined #ruby
[02:27:00] toretore: Sonja: for what purpose?
[02:28:32] chagel: has joined #ruby
[02:30:40] Ox0dea: Gotta go fast.
[02:32:30] pawnbox: has joined #ruby
[02:36:10] DLSteve: has joined #ruby
[02:36:29] dcunit3d: has joined #ruby
[02:36:36] jenrzzz: has joined #ruby
[02:37:20] rmulliga`: has joined #ruby
[02:37:49] shanemcd: has joined #ruby
[02:37:53] d0nn1e: has joined #ruby
[02:39:08] Channel6: has joined #ruby
[02:39:16] eregi: has joined #ruby
[02:43:07] poguez_: has joined #ruby
[02:43:58] PaulCapestany: has joined #ruby
[02:44:47] RegulationD: has joined #ruby
[02:45:11] ur5us: has joined #ruby
[02:45:33] fullofca_: has joined #ruby
[02:47:57] shanemcd: has joined #ruby
[02:49:41] ebbflowgo: has joined #ruby
[02:52:25] htmldrum: has joined #ruby
[02:53:02] _whitelogger: has joined #ruby
[02:54:56] blackmesa: has joined #ruby
[02:55:40] Lucky_ABA: has joined #ruby
[02:57:51] slackbotgz: has joined #ruby
[02:59:00] shanemcd_: has joined #ruby
[02:59:29] htmldrum: has joined #ruby
[03:00:32] Rodya_: has joined #ruby
[03:01:13] fullofcaffeine: has joined #ruby
[03:03:50] Rodya_: has joined #ruby
[03:04:16] shanemcd: has joined #ruby
[03:05:07] MyMind: has joined #ruby
[03:05:10] A124: has joined #ruby
[03:07:11] DmitryBochkarev: has joined #ruby
[03:08:00] Rodya_: has joined #ruby
[03:08:30] nando293921: has joined #ruby
[03:10:28] eregi: has joined #ruby
[03:11:18] darkf: has joined #ruby
[03:11:46] jayc0b0: has joined #ruby
[03:13:17] baweaver: has joined #ruby
[03:15:02] stannard: has joined #ruby
[03:15:19] Rodya_: has joined #ruby
[03:15:21] shanemcd: has joined #ruby
[03:16:09] _whitelogger: has joined #ruby
[03:18:03] diego2: has joined #ruby
[03:20:35] fpedroso: has joined #ruby
[03:20:51] Dragooon: has joined #ruby
[03:21:10] Mio-chan: has joined #ruby
[03:21:21] diego2: has joined #ruby
[03:21:58] shanemcd: has joined #ruby
[03:22:11] KensoDev: has joined #ruby
[03:22:31] mallu: has joined #ruby
[03:22:47] mallu: has joined #ruby
[03:25:28] jayc0b0_: has joined #ruby
[03:25:40] shanemcd: has joined #ruby
[03:26:02] LoneHerm_: has joined #ruby
[03:26:21] jayc0b0: has joined #ruby
[03:28:03] duckpuppy: has joined #ruby
[03:28:36] KensoDev: has joined #ruby
[03:33:48] tonyynot: has joined #ruby
[03:34:16] x77686d: has joined #ruby
[03:35:28] minimalism: has joined #ruby
[03:35:55] shanemcd_: has joined #ruby
[03:44:03] shanemcd: has joined #ruby
[03:45:26] fpedroso: has joined #ruby
[03:45:56] fpedroso: has joined #ruby
[03:46:55] dcunit3d: has joined #ruby
[03:48:57] uglybandersnatch: has joined #ruby
[03:49:22] douglascorrea: has joined #ruby
[03:49:33] fpedroso: has joined #ruby
[03:51:06] makenoise: has joined #ruby
[03:51:20] howdoi: has joined #ruby
[03:57:26] Asher: has joined #ruby
[03:57:58] blackmesa: has joined #ruby
[03:58:22] DmitryBochkarev: has joined #ruby
[04:01:48] rmulligan: has joined #ruby
[04:02:25] pawnbox: has joined #ruby
[04:05:44] youch: has joined #ruby
[04:07:10] rew: has joined #ruby
[04:08:09] sneakerhax: has joined #ruby
[04:08:26] mallu: has joined #ruby
[04:09:23] kirillzh: has joined #ruby
[04:13:18] moshee: has joined #ruby
[04:13:18] moshee: has joined #ruby
[04:13:53] gix: has joined #ruby
[04:14:29] braincrash: has joined #ruby
[04:14:57] robertcarter: has joined #ruby
[04:15:24] moshee: has joined #ruby
[04:15:24] moshee: has joined #ruby
[04:16:37] chouhoulis: has joined #ruby
[04:17:14] krz: has joined #ruby
[04:19:33] robertcarter: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[04:19:38] pdoherty: has joined #ruby
[04:20:43] Rodya_: has joined #ruby
[04:20:52] mattwildig: has joined #ruby
[04:22:39] hanshenrik: has joined #ruby
[04:23:31] chagel: has joined #ruby
[04:23:40] hanshenrik: has left #ruby: ("Leaving")
[04:24:32] James851: has joined #ruby
[04:25:07] hogetaro: has joined #ruby
[04:25:35] Pisuke: has joined #ruby
[04:25:56] roobienoobie: has joined #ruby
[04:26:25] dc1: has joined #ruby
[04:26:26] roobienoobie: hey i need help with a ruby problem, been googling everywhere and now i just want to know what the solution is
[04:26:40] roobienoobie: so im tryuing to find out how to reverse an array with a for loop
[04:26:43] roobienoobie: without an iteration body
[04:26:48] roobienoobie: def reverse ary
[04:26:49] uglybandersnatch: has joined #ruby
[04:27:02] roobienoobie: for ______ in a
[04:27:03] mattp__: has joined #ruby
[04:27:40] roobienoobie: i guess it would be easier to see with the website
[04:27:41] roobienoobie: http://www.rubeque.com/problems/reverse-array-using-for
[04:27:42] havenwood: roobienoobie: `ary` is unused and `a` is empty.
[04:28:21] paul98: has joined #ruby
[04:28:24] siaw_: has joined #ruby
[04:28:30] havenwood: roobienoobie: ah
[04:28:33] Dreamer3: has joined #ruby
[04:29:10] roobienoobie: i hate problems like that because i can't do anything about it
[04:29:13] roobienoobie: either i know it or i don't
[04:29:15] roobienoobie: and i don't know it
[04:29:15] bakedb_: has joined #ruby
[04:29:22] krz: has joined #ruby
[04:29:25] davidcelis: has joined #ruby
[04:29:25] davidcelis: has joined #ruby
[04:29:26] ljarvis: has joined #ruby
[04:29:32] jevs: has joined #ruby
[04:30:24] greenhat|: has joined #ruby
[04:30:24] funnel: has joined #ruby
[04:30:28] havenwood: roobienoobie: this problem is asking you to write very odd Ruby, and I can see why you'd have trouble seeing what it's asking
[04:31:22] roobienoobie: yeah, a lot of the problems on rubeque are stuff that you'll never find in tutorials, but u never know what something like that could be useful
[04:31:56] rcs: has joined #ruby
[04:31:57] moua: has joined #ruby
[04:32:01] nando293921: has joined #ruby
[04:32:15] deuxclique: has joined #ruby
[04:32:32] gypsydave5: has joined #ruby
[04:32:36] oz: has joined #ruby
[04:32:39] chouhoul_: has joined #ruby
[04:33:07] canton7: has joined #ruby
[04:33:10] Brando753: has joined #ruby
[04:33:34] havenwood: >> [0, 1].unshift 3
[04:33:36] ruby[bot]: havenwood: # => [3, 0, 1] (https://eval.in/529918)
[04:33:44] bougyman: has joined #ruby
[04:34:02] roobienoobie: i think i know what u mean
[04:34:09] aupadhye: has joined #ruby
[04:34:11] shanemcd: has joined #ruby
[04:34:30] roobienoobie: ary = [1, 0, 3]
[04:34:45] eregi: has joined #ruby
[04:34:57] roobienoobie: for send(:unshift) in ary
[04:35:05] havenwood: roobienoobie: so the underscore they expect you to put the variable name you want to call the value of each iteration
[04:35:06] roobienoobie: i have no idea
[04:35:19] bogdanteleaga: has joined #ruby
[04:35:20] roobienoobie: i read somewhere you can have a method name in the underscore
[04:35:23] havenwood: roobienoobie: for example, maybe: item
[04:35:25] rmulliga`: has joined #ruby
[04:35:32] havenwood: roobienoobie: local variable
[04:35:42] havenwood: roobienoobie: for item in ary
[04:35:47] roobienoobie: i know how for loops works normally
[04:35:56] havenwood: roobienoobie: result.unshift(item)
[04:36:02] havenwood: roobienoobie: end
[04:36:11] rmulliga`: has joined #ruby
[04:36:17] majoh: has joined #ruby
[04:36:43] uglybandersnatch: has joined #ruby
[04:37:00] Ox0dea: havenwood: The restriction is that the body must remain empty.
[04:37:17] havenwood: Ox0dea: Oh, I didn't actually read the instructions. >.>
[04:37:18] dubek: has left #ruby: ("Leaving")
[04:37:18] roobienoobie: so just put the hwole thing in the underscore?
[04:37:33] Chagel_: has joined #ruby
[04:37:48] DefV: has joined #ruby
[04:38:28] roobienoobie: i think unshift is part of the answer, i just don't knwow how to work it in
[04:38:29] MissionCritical: has joined #ruby
[04:40:27] roobienoobie: this might help : https://phvalues.wordpress.com/2014/10/05/a-curious-use-of-for-loops-in-ruby/
[04:41:21] lannonbr: has joined #ruby
[04:41:30] roobienoobie: it shows using method in for lop
[04:41:57] fullofcaffeine: has joined #ruby
[04:42:51] roobienoobie: if u put method name in ____________
[04:42:53] roobienoobie: for ______ in ary
[04:43:03] roobienoobie: i get error like
[04:43:05] eljimador: has joined #ruby
[04:43:09] roobienoobie: no method_name for unshift=
[04:43:23] roobienoobie: or undefined method unshift= for ary
[04:43:52] havenwood: roobienoobie: so it likes your strategy, but it's calling #unshift= not #unshift, so what could you do to make it happy?
[04:44:36] Ox0dea: This is scary.
[04:44:44] rew: has joined #ruby
[04:44:48] roobienoobie: maybe ary.send(:unshift)?
[04:45:03] Ox0dea: roobienoobie: Whatever you put there is essentially gonna have an '=' appended to it.
[04:45:15] Ox0dea: `ary.send(:unshift)=` doesn't look like it'll do the trick, eh?
[04:45:20] roobienoobie: i don't know how to make it not use =
[04:45:29] Ox0dea: It's going to use '=' implicitly.
[04:46:21] Ox0dea: I've solved the puzzle, if that'll help you trust me?
[04:46:33] havenwood: Suspicious!
[04:46:35] roobienoobie: i can't solve it
[04:47:10] unreal: has joined #ruby
[04:47:26] pawnbox: has joined #ruby
[04:47:32] e4xit_: has joined #ruby
[04:48:48] Ox0dea: roobienoobie: This is essentially a restatement of the problem: https://eval.in/529919
[04:48:56] Suntzu: has joined #ruby
[04:49:37] roobienoobie: results[-i-1]
[04:49:41] Ox0dea: Whence comes `i`?
[04:50:07] roobienoobie: result.unshift
[04:50:12] douglascorrea: has joined #ruby
[04:50:31] Ox0dea: Do you know another way to spell #unshift?
[04:52:24] Ox0dea: That's literally the exact reverse opposite.
[04:52:36] roobienoobie: sorry, hold on i think i'm on the cusp of getting it
[04:53:04] Ox0dea: I made an owl.
[04:54:12] havenwood: Ox0dea: Or if you really wanted to use #unshift :P result.unshift(nil)[0]
[04:54:27] statelesscode: has joined #ruby
[04:54:28] Ox0dea: Saints preserve us!
[04:54:32] Ox0dea: I like the owl more.
[04:54:38] Ox0dea: Needs his ears boxed, though.
[04:54:43] Nyammy_Work: has joined #ruby
[04:54:46] havenwood: Ox0dea: oh, i mean: Hoo hoo
[04:55:04] Ox0dea: Really gnarly behavior, though.
[04:55:44] ytti: has joined #ruby
[04:56:01] ramfjord: has joined #ruby
[04:56:08] zenlot6: has joined #ruby
[04:56:21] havenwood: Ye ole box-eared owl.
[04:56:40] Ox0dea: roobienoobie: The box-eared owl has the insight you seek.
[04:57:30] levifig: has joined #ruby
[04:57:59] roobienoobie: ohh, i thought u were just being random, argh!
[04:58:45] roobienoobie: how does that work though?
[04:58:52] roobienoobie: because result should be [[]]
[04:58:56] dopie: has joined #ruby
[04:59:10] roobienoobie: i got it working though thanks!
[04:59:45] rmulliga`: has joined #ruby
[04:59:56] LoneHermit: has joined #ruby
[05:00:23] yorickpeterse: has joined #ruby
[05:00:45] Ox0dea: Do you know what's happening?
[05:01:01] blackmesa: has joined #ruby
[05:01:02] sudoubuntu: has joined #ruby
[05:01:26] sudoubuntu: has joined #ruby
[05:01:36] roobienoobie: im not sure, i thought it was inserting it, but then i get an error for negative lengths
[05:01:38] roobienoobie: so im confused
[05:01:56] ruby[bot]: havenwood: # => [0, 0] (https://eval.in/529920)
[05:01:59] havenwood: >> 0.rectangular
[05:02:11] ruby[bot]: havenwood: # => [0, 0] (https://eval.in/529921)
[05:02:16] trosborn: has joined #ruby
[05:02:29] cajone: has joined #ruby
[05:02:42] havenwood: >> 0.gcdlcm 0
[05:02:43] ruby[bot]: havenwood: # => [0, 0] (https://eval.in/529922)
[05:02:49] havenwood: >> 0.coerce 0
[05:02:50] ruby[bot]: havenwood: # => [0, 0] (https://eval.in/529923)
[05:02:53] adgtl: has joined #ruby
[05:03:14] Ox0dea: There's a lot of box-eared owls flyin' about.
[05:03:53] havenwood: just one more
[05:03:59] havenwood: >> 0.divmod 42
[05:04:00] ruby[bot]: havenwood: # => [0, 0] (https://eval.in/529924)
[05:04:02] Scripore: has joined #ruby
[05:06:01] roobienoobie: this is really confusing
[05:06:03] Ox0dea: >> require 'fiddle'; Fiddle::Pointer.new(__id__ * 2)[14, 2].bytes
[05:06:04] ruby[bot]: Ox0dea: # => [0, 0] (https://eval.in/529928)
[05:06:08] Ox0dea: Bit involved, that one.
[05:06:54] nogic: has joined #ruby
[05:07:18] Ox0dea: roobienoobie: `foo[start, n] = bar` will replace the `n` elements in `foo` with the contents of `bar`, starting at `start`.
[05:07:24] roobienoobie: there must be a reason for this [0,0] whats the prupose?
[05:07:30] Ox0dea: This is akin to array slicing in other languages, in case you're familiar with that.
[05:07:54] roobienoobie: well if its like string slicing i think i get it
[05:08:01] Ox0dea: `[0, 0]` says "replace 0 elements starting at the very front".
[05:08:02] roobienoobie: yeah i get it
[05:08:09] Ox0dea: Which is a little weird at first, but it makes sense conceptually.
[05:08:53] roobienoobie: so [-1, 0] is like pop() ?
[05:09:11] Ox0dea: You're just not allowed to do that, but that's the idea.
[05:09:17] Ox0dea: Right, push.
[05:09:39] achamian: has joined #ruby
[05:10:11] roobienoobie: ok cool, is this just a way to shorten the code?
[05:10:35] jayc0b0: has joined #ruby
[05:10:45] Ox0dea: It's just Ruby not imposing arbitrary restrictions on how you, as an individual programmer, might wish to write your code.
[05:10:55] Ox0dea: This whole body-less for loop business is just stupid.
[05:11:28] roobienoobie: well, at least i learned something new
[05:11:45] Ox0dea: And that's certainly to the good, but it strikes me as an accident that's just gone unchecked too long to be removed.
[05:12:05] Ox0dea: Who knows? Maybe somebody actually uses it.
[05:12:56] TinkerTyper: has joined #ruby
[05:13:19] roobienoobie: alright, on to the next problem, thanks dude
[05:13:46] Ox0dea: Happy to help.
[05:16:04] kirillzh_: has joined #ruby
[05:16:30] nogic: has joined #ruby
[05:17:15] Guest00-ru: has joined #ruby
[05:19:17] oz: has joined #ruby
[05:19:31] ReK2: has joined #ruby
[05:20:07] pawnbox_: has joined #ruby
[05:20:38] fedexo: has joined #ruby
[05:20:43] PaulCapestany: has joined #ruby
[05:21:16] hk238: has joined #ruby
[05:22:34] Morrolan: has joined #ruby
[05:22:42] Rodya_: has joined #ruby
[05:25:09] PaulCapestany: has joined #ruby
[05:25:25] nogic: has joined #ruby
[05:26:15] nogic: has joined #ruby
[05:28:38] TheNet: has joined #ruby
[05:29:05] oliver3: has joined #ruby
[05:29:59] coffeecupp: has joined #ruby
[05:32:54] Limix: has joined #ruby
[05:38:11] jayc0b0_: has joined #ruby
[05:40:20] Asher: has joined #ruby
[05:41:10] chagel: has joined #ruby
[05:41:36] system64: has joined #ruby
[05:43:45] bedouin: has joined #ruby
[05:45:35] djbkd: has joined #ruby
[05:46:21] RegulationD: has joined #ruby
[05:47:32] aupadhye: has joined #ruby
[05:48:23] steffkes: has joined #ruby
[05:48:38] steffkes: has joined #ruby
[05:49:06] duckpuppy: has joined #ruby
[05:50:45] bedouin: has joined #ruby
[05:51:39] douglascorrea: has joined #ruby
[05:57:13] uglybandersnatch: has joined #ruby
[05:58:10] UtkarshRay: has joined #ruby
[05:58:13] sudoubuntu: has joined #ruby
[06:00:01] astrobun_: has joined #ruby
[06:02:00] chagel: has joined #ruby
[06:02:37] shevy: hmm say I have a hash that has 10 elements; is there a simple way to obtain the last 5 elements/keys?
[06:04:02] blackmesa: has joined #ruby
[06:04:05] idletask: If the underlying data storage uses hash buckets to store elements, you don't have an iteration order guarantee by definition, do you?
[06:04:31] havenwood: shevy: reverse_each.first(5).to_h
[06:05:04] shevy: oh let me think a moment, thanks!
[06:05:24] havenwood: shevy: drop(5).to_h
[06:05:30] Ox0dea: idletask: No, but RubySpec decrees that implementations explicitly tell Hashes to maintain insertion order.
[06:05:49] idletask: I meant, ow
[06:05:56] idletask: Might be costly
[06:06:30] idletask: But then the spec says so, and I trust the guys to know what they are doing
[06:06:52] Ox0dea: I mean, it's certainly a convenience with associated costs, but this is Ruby. :)
[06:07:26] shevy: oh we are at rubygems v2.6.1 now
[06:07:42] Ox0dea: Is that good?
[06:09:38] shevy: I hope so!
[06:09:58] shevy: https://github.com/rubygems/rubygems/blob/master/History.txt#L3
[06:10:06] shevy: 3 bug fixes
[06:10:07] fullofcaffeine: has joined #ruby
[06:10:35] shevy: hmm I did not check out 2.6.0 either
[06:16:16] nogic: has joined #ruby
[06:17:29] ur5us: has joined #ruby
[06:18:18] pawnbox: has joined #ruby
[06:19:10] eregi: has joined #ruby
[06:19:42] sauvin: has joined #ruby
[06:21:41] flughafen_: has joined #ruby
[06:21:45] mattwildig: has joined #ruby
[06:21:47] idletask: Ox0dea, I'm sorry, but I have beginner questions again -- about the code you posted earlier, that is https://eval.in/529672
[06:22:15] idletask: I don't understand "valid_global" :/
[06:22:30] Ox0dea: idletask: How's your understanding of blocks?
[06:22:49] idletask: I can understand that = is the assignment, but the part I have difficulty with is "-> char"
[06:22:54] idletask: Let me finish first :p
[06:23:09] Ox0dea: Take your time. I'll be back shortly.
[06:23:35] idletask: I see that char is reused in the block (in the eval'ed string)
[06:24:39] idletask: I understand the begin/rescuse/ensure/end construct, even though there is not ensure here
[06:24:48] Rodya_: has joined #ruby
[06:24:56] fullofcaffeine: has joined #ruby
[06:25:35] idletask: My problem really is with this initial "declaration", I don't know how to call it otherwise, which is " -> char"
[06:25:39] Tharbakim: has joined #ruby
[06:26:07] duderonomy: hello. I'm trying to understand this block stuff better...
[06:26:19] duderonomy: found this in Cookbook: 'foobar'.scan( /./ ) { |c| puts c }
[06:26:21] LoneHermit: has joined #ruby
[06:26:53] duderonomy: I want to do something similar: 'foobar'.scan( /./ ) { |c| modify(c) }
[06:27:08] duderonomy: Sorta like a python list comprehension.
[06:27:13] idletask: duderonomy: and what would modify() 2?
[06:27:15] drbrain: idletask: -> char { "#{char}" } is the same as -> (char) { "#{char}" } is the same as proc { |char| "#{char}" }
[06:27:56] idletask: drbrain: so, that defines a... What? An "anonymous function"?
[06:28:00] drbrain: idletask: yes
[06:28:09] drbrain: duderonomy: yes, you can do that
[06:28:17] Ox0dea: drbrain: s/proc/lambda/, technically.
[06:28:26] Mia: has joined #ruby
[06:28:26] Mia: has joined #ruby
[06:28:26] duderonomy: where I have modify, I was actually just going to do a simple hash lookup using c as the key
[06:28:28] drbrain: duderonomy: but I would use 'foobar'.chars.each { |c| … }
[06:29:06] drbrain: Ox0dea: I was wondering if I got those backward
[06:29:11] Ox0dea: duderonomy: You want #gsub's (Regexp, Hash) form, I bet. :)
[06:29:26] drbrain: duderonomy: oh, yeah ↑
[06:30:08] idletask: drbrain: it seems to me however that the -> "operator" could have had a left hand side as well, no?
[06:30:36] Ox0dea: idletask: Nah, `-` is a valid binary operator, but `>` isn't a valid unary one.
[06:30:43] Ox0dea: So it's never ambiguous.
[06:31:02] duderonomy: i was looking at gsub in the docs but my substitutions are not regular. Instead I have a unique value to be looked up via a key
[06:31:36] duderonomy: i'll take your suggestions and try some stuff
[06:31:39] idletask: We have valid_globals, =, ->, char, some block here
[06:31:41] bluOxigen: has joined #ruby
[06:31:47] intrigueD: has joined #ruby
[06:31:53] idletask: = is an assignment, so far so good
[06:31:54] Ox0dea: Yes, it's an assignment.
[06:31:55] drbrain: duderonomy: if you're not doing a replacement, then .each (or .scan) is just fine
[06:32:05] idletask: But what is -> here?
[06:32:07] drbrain: duderonomy: chars.each will be more efficient than scan /./
[06:32:22] Ox0dea: idletask: To reiterate, `-> char { ... }` == `lambda { |char| ... `.
[06:32:27] duderonomy: thx drbrain for the guidance
[06:32:38] drbrain: idletask: it's a λ with a broken top
[06:32:53] Ox0dea: I love that that's the actual justification. :P
[06:33:03] adgtl: has joined #ruby
[06:33:16] idletask: But can such lambdas be defined which return values?
[06:33:25] Ox0dea: Of course.
[06:34:11] Ox0dea: >> my_even = -> x { x % 2 == 0 }; a = [1,2,3,4]; a.select(&:even?) == a.select(&my_even)
[06:34:12] ruby[bot]: Ox0dea: # => true (https://eval.in/529969)
[06:34:21] kriskropd: has joined #ruby
[06:34:51] idletask: So, stupidAdd = -> x { x + 1 } would work...
[06:35:02] Outlastsheep: has joined #ruby
[06:35:24] idletask: In my irb I just did that
[06:35:35] idletask: But I'm unable to invoke it :p
[06:35:43] drbrain: stupidAdd.call 2
[06:35:58] drbrain: >> stupidAdd = -> x { x + 1 }; stupidAdd.call 2
[06:35:59] ruby[bot]: drbrain: # => 3 (https://eval.in/529970)
[06:36:18] idletask: *brains boiling*
[06:36:22] drbrain: or stupidAdd.(2)
[06:36:28] Ox0dea: Or `stupidAdd[2]`.
[06:36:30] drbrain: ↑ alias for .call
[06:37:02] konsolebox: has joined #ruby
[06:37:13] Ox0dea: >> class C; def call; :ogodwhy end end; C.new.()
[06:37:14] ruby[bot]: Ox0dea: # => :ogodwhy (https://eval.in/529971)
[06:37:33] spleeze: has joined #ruby
[06:37:41] idletask: Hmm, an interactive irb?
[06:37:53] Ox0dea: That's redundant. :P
[06:37:58] toretore: interactive interactive ruby
[06:38:06] idletask: Yes, I figured it out just after I typed it :p
[06:38:12] idletask: Let's say a remote irb
[06:38:20] Ox0dea: We'll do it live!
[06:38:21] shevy: a remote interactive interactive ruby?
[06:38:27] aupadhye: has joined #ruby
[06:38:29] drbrain: pry-remote does that
[06:38:54] Ox0dea: idletask: The crucial observation to be made here is the relationship between blocks and Procs (of which lambda is simply a specialization).
[06:39:08] Ox0dea: None of this will have made a great deal of sense if you've not gotten up to speed on blocks.
[06:39:08] utkukaynar: has joined #ruby
[06:40:18] Limix: has joined #ruby
[06:40:19] idletask: https://github.com/litesolutions/sonar-ruby/blob/master/sonar-ruby-parser/src/test/java/es/litesolutions/sonar/ruby/parser/VarParsingTest.java <--- that is my current parsing tests for variable types for now
[06:40:59] idletask: I am very far from parsing these
[06:41:02] Ox0dea: You are in for so much pain.
[06:41:05] Ox0dea: ¯\_(ツ)_/¯
[06:41:17] idletask: After ObjectScript, honestly...
[06:41:38] idletask: OK, here is a valid line of ObjectScript, just to show you... And I parse it:
[06:42:00] Ox0dea: I'm ready.
[06:42:13] eregi: has joined #ruby
[06:42:22] idletask: if x = 1 & y '<3 d ..m(,,2) w x, ! for q:x=3 q
[06:42:35] idletask: I parse it all
[06:42:41] Ox0dea: idletask: This is a Sinatra app: http://i.imgur.com/94jou4v.png
[06:43:04] Ox0dea: That's valid Ruby that presents the user with a dead-simple to-do list.
[06:43:56] idletask: Ox0dea: OK, I'll set that as a parsing goal but just look at that "code" I posted :p I can actually tokenize that crap correctly
[06:44:34] idletask: So, ruby? Meh
[06:44:38] idletask: I'll come to it
[06:44:47] Ox0dea: Godspeed.
[06:45:12] colegatron: has joined #ruby
[06:45:22] _whitelogger: has joined #ruby
[06:46:48] shevy: hmm... I guess we have no inbuilt way in ruby to translate "five" into 5 right?
[06:47:07] duderonomy: drbrain: what if I were doing a replacement, what should I be reading about? map?
[06:47:39] duderonomy: ultimately, I am seeking a new "sequence" in python terms.
[06:47:40] idletask: Ox0dea: I'll set that as a target for me to tokenize correctly... It's just a pity that this is an image :p I'll need an OCR...
[06:47:59] duderonomy: I guess this resule is a string or a list which I can join
[06:49:21] skweek: has joined #ruby
[06:49:24] Ox0dea: idletask: Good thing it's monospaced *and* not anti-aliased. :)
[06:49:53] Ox0dea: duderonomy: #map is for transforming sequences into new ones, yes.
[06:50:09] Ox0dea: Are you keying into your Hash with your matches?
[06:50:30] BlindSight`: has joined #ruby
[06:51:23] Ox0dea: idletask: https://eval.in/529972
[06:51:36] jenrzzz: has joined #ruby
[06:51:56] Ox0dea: Do be sure to copy it from the textarea at the bottom; eval.in flipped its shit trying to syntax-highlight it.
[06:52:03] n1colas: has joined #ruby
[06:53:44] last_staff: has joined #ruby
[06:54:14] Zackio: has joined #ruby
[06:55:50] aufi: has joined #ruby
[06:57:09] shevy: that is awesome Ox0dea
[06:57:19] shevy: you are colourizing via eval-in now
[06:57:57] shevy: I have never seen as much red before
[06:58:41] Ox0dea: I guess that's meant to indicate syntax errors.
[06:59:25] Guest34101: has joined #ruby
[06:59:32] idletask: Ox0dea: saved
[06:59:36] ebbflowgo: has joined #ruby
[07:01:45] bedouin: has joined #ruby
[07:03:01] jobewan: has joined #ruby
[07:04:30] fullofcaffeine: has joined #ruby
[07:05:20] fullofcaffeine: has joined #ruby
[07:05:37] shevy: red is the colour of love!
[07:06:27] y2mq37: has joined #ruby
[07:07:03] blackmesa: has joined #ruby
[07:07:40] Ox0dea: idletask: eval.in uses Pygments, which is a pretty well-established lexer. It's general-purpose, though, so your efforts will give your parser that personal touch. :)
[07:07:50] Ox0dea: Still, maybe take a page from their playbook: https://bitbucket.org/birkenfeld/pygments-main/src/1942c/pygments/lexers/ruby.py
[07:08:39] idletask: Well, my parser _is_ generic too
[07:08:48] idletask: SonarQube happens to be an application for it
[07:09:01] idletask: There is something I just noticed
[07:09:23] idletask: >> x = [ "foo", "bar" ]; x.each { print }
[07:09:24] ruby[bot]: idletask: # => ["foo", "bar"] (https://eval.in/529979)
[07:09:38] idletask: Not even an argument here
[07:09:53] idletask: each seems to be somewhat special
[07:10:22] Ox0dea: Nah, that's just because blocks have the arity restrictions and return semantics of Procs rather than lambdas.
[07:10:35] Ox0dea: You have to pass the correct number of arguments to a lambda, but not a Proc.
[07:10:59] Ox0dea: And `return` in a lambda will return from the lambda, whereas `return` in a Proc will (try to) return from the surrounding method.
[07:11:01] idletask: OK, I understand now why you insisted on the distinction earlier
[07:11:18] sandstrom: has joined #ruby
[07:11:27] idletask: So, after .each, it is a Proc, not a Lambda?
[07:11:36] Ox0dea: It's a block, technically.
[07:11:47] Ox0dea: It's not actually being reified into a Proc there.
[07:12:11] idletask: >> x = [ "foo", "bar" ]; x.each { |meh| print "arg: #{meh}" }
[07:12:12] ruby[bot]: idletask: # => arg: fooarg: bar["foo", "bar"] (https://eval.in/529981)
[07:12:50] idletask: >> x = [ "foo", "bar" ]; x.each -> meh { print "arg: #{meh}" }
[07:12:51] ruby[bot]: idletask: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/529982)
[07:13:04] Ox0dea: That didn't do what you think it did.
[07:13:14] ledestin: has joined #ruby
[07:13:34] idletask: What didn't? My first or second attempt?
[07:13:35] SOLDIERz: has joined #ruby
[07:13:44] idletask: For some reason I expected the second one to fail
[07:13:57] solars: has joined #ruby
[07:14:24] Ox0dea: You're passing that lambda as an argument to #each there, rather than as a block.
[07:14:46] baweaver: has joined #ruby
[07:14:56] Ox0dea: https://eval.in/529983
[07:15:43] idletask: proc and lambda are reserved keywords, then?
[07:15:52] Ox0dea: Nope, they're methods. :)
[07:16:02] Ox0dea: >> method(:proc).owner
[07:16:03] ruby[bot]: Ox0dea: # => Kernel (https://eval.in/529984)
[07:16:43] idletask: OK, I'll try and parse more basic stuff first :p
[07:17:21] Ox0dea: Well, okay, but Proc and friends are pretty pervasive in idiomatic Ruby code.
[07:17:33] idletask: My goal is to parse some basic files by the end of the weekend and have some basic checks done
[07:17:42] Coral: has joined #ruby
[07:18:49] jas02: has joined #ruby
[07:19:08] tjbiddle: has joined #ruby
[07:19:38] Ox0dea: I do wish you all the best in that endeavor.
[07:19:42] idletask: If I can already successfully parse and tokenize correctly something like "def foo(bar)\np bar\nend\nfoo(2)" and warn that "please don't use p in real code" I'll be happy :p I have yet to set up a test server for the plugin
[07:19:49] idletask: Oh, I want to do that
[07:20:26] idletask: I'm too entrenched in Java to even begin to _comprehend_ the mindset of seasoned developers in other languages
[07:20:32] idletask: So, Ruby will be a good experience
[07:20:54] Ox0dea: I'm sure you'll find that plenty of things transfer.
[07:20:58] idletask: I want checks to be relevant to Ruby developers, not from my own perspetive
[07:21:18] Ox0dea: idletask: I take it you don't want to just piggyback on RuboCop?
[07:21:57] idletask: Well, there is the possibility that I could, if not _run_ RuboCop, at least use its results
[07:22:35] idletask: But yeah, after all, the Java plugin reuses checkstyle, the python plugin uses results from pylint...
[07:22:43] idletask: So if I can do that, certainly
[07:23:21] idletask: I do need to parse a reasonable subset of the language first, though
[07:25:01] adgtl: has joined #ruby
[07:25:47] ohaibbq: has joined #ruby
[07:26:07] shanemcd: has joined #ruby
[07:26:39] karapetyan: has joined #ruby
[07:27:35] mondok: has joined #ruby
[07:28:24] Rodya_: has joined #ruby
[07:28:42] sudoubuntu: has joined #ruby
[07:31:07] blackmesa: has joined #ruby
[07:31:20] idletask: Ox0dea: about that "no ascii" example above; my guess is that the first line sets ___ to 1.5
[07:31:53] Ox0dea: idletask: That first line sets three variables. :P
[07:32:20] Ox0dea: ___ is being set to 115.
[07:32:32] idletask: Yes, irb tells me that
[07:33:01] idletask: Hmm, what is + doing here?
[07:33:07] kirillzh: has joined #ruby
[07:33:23] Ox0dea: Addition.
[07:33:27] idletask: _ = 'whatever'=~/$/ is "true", but then what's the final value?
[07:33:36] anisha: has joined #ruby
[07:33:45] Ox0dea: No, that's not quite right.
[07:34:03] Ox0dea: >> ' ' =~ /$/
[07:34:05] ruby[bot]: Ox0dea: # => 4 (https://eval.in/529985)
[07:34:16] Ox0dea: It's just an easy way to get small integers.
[07:34:45] idletask: Uhm, OK, I have misunderstood =~, it seems
[07:34:54] Ox0dea: =~ returns the index at which the match occurs, or nil if it didn't.
[07:34:55] idletask: I thought it tried to perform a single match
[07:35:22] idletask: And nil on failure? Crap
[07:35:27] idletask: I'd have preferred -1 :p
[07:35:34] firstdayonthejob: has joined #ruby
[07:35:39] idletask: Well, $ will always match
[07:35:58] Ox0dea: Sure, but it'll return the length of the string, so it's a nice way to get small integers without explicitly typing them.
[07:36:06] Xeago: has joined #ruby
[07:37:07] idletask: OK, so $$ is the PID of the current process which can never be zero, so $$/$$ is always 1, and that is what __ is set to
[07:37:41] idletask: Do indices start at 0 or 1?
[07:37:47] Ox0dea: ¯\_(ツ)_/¯
[07:37:51] idletask: No, wait, that's the wrong question
[07:37:53] cajone: has joined #ruby
[07:38:30] gaf_: has joined #ruby
[07:38:42] Dreamer3_: has joined #ruby
[07:40:01] idletask: I still can't get to 115
[07:40:10] baweaver: Ox0dea: which one did you show them?
[07:40:32] Ox0dea: baweaver: The big'n.
[07:40:55] baweaver: Well fly me to the moon
[07:41:46] Ox0dea: >> 10 * 10 + 10 + 10 / 2 # idletask
[07:41:47] ruby[bot]: Ox0dea: # => 115 (https://eval.in/529988)
[07:41:53] tAn: has joined #ruby
[07:42:23] idletask: Wait, what's with that operator priority? + has priority over /? :p
[07:42:25] Ox0dea: All those parentheses are for ensuring that the arithmetic operations don't affect the assignments.
[07:42:33] Ox0dea: idletask: Clearly not?
[07:43:23] idletask: I'm getting tired from lack of sleep :(
[07:43:41] idletask: OK, so that is 115, no problem, and I'm -1
[07:44:17] kirillzh: has joined #ruby
[07:44:37] Ox0dea: idletask: I have much smaller non-alphanumeric programs if you want to have a hope of "solving" one. ^_^
[07:44:40] idletask: For the rest of the file, I'll see later, I'm sure $_ has some special signification (at least it has in perl)
[07:45:04] Ox0dea: It's normally the last line of input read from $stdin, but I repurpose it for my own ends there.
[07:47:43] idletask: It certainly seems that after the second "line" it is nothing like a string anymore, but a proc, right?
[07:48:02] baweaver: >> $_=$$/$$;@_=->_{_==''?_:[*?`..?{]['. !#% & , :;<= >@_ `'=~/#{_[$.]}/]+@_[_[$_..-$_]]};_=->&_{_}[&:"#{@_['@%<#']}"];_[_[_[_['',@_['!: @@']],@_[' <!%@_=>@']][-$_-$_],@_['!=<@_']+?_+@_['&%_'],(''<<(_=$_+$_)**_**(_+$_)/(_+$_)-$_)+@_[',;%']],@_['<%`']]
[07:48:03] ruby[bot]: baweaver: # => 2016-03-04 07:48:02 +0000 (https://eval.in/529992)
[07:48:57] baweaver: ACTION still has a stash of translated Ox0dea monsters
[07:49:42] Ox0dea: It's vaguely terrifying that a computer can just gobble that up, no problem.
[07:49:55] Ox0dea: "I see exactly what you did there, more or less immediately."
[07:51:21] jaruga: has joined #ruby
[07:51:29] Ox0dea: idletask: The second line is the most important one.
[07:52:27] Ox0dea: It gets hold of #send as a Proc. I didn't want to resort to the cheap trick of using eval, so that's the key to the kingdom.
[07:52:40] codecop: has joined #ruby
[07:53:27] douglascorrea: has joined #ruby
[07:56:58] _whitelogger: has joined #ruby
[07:57:04] terlar: has joined #ruby
[07:58:19] duckpuppy: has joined #ruby
[07:58:21] stannard: has joined #ruby
[08:03:26] cpup: has joined #ruby
[08:04:20] kirillzh: has joined #ruby
[08:04:28] jeanlinux: has joined #ruby
[08:04:36] Bish: offtopic: there was a ubuntu repo that gives me ruby 2.x on ubuntu
[08:04:42] Bish: can somebody tell me how it was called
[08:05:03] havenwood: Bish: https://www.brightbox.com/docs/ruby/ubuntu/
[08:05:14] Bish: god i hate ubuntu
[08:06:03] TomyWork: has joined #ruby
[08:06:13] karapetyan: has joined #ruby
[08:06:28] Coral: has joined #ruby
[08:07:30] SCHAAP137: has joined #ruby
[08:08:12] uglybandersnatch: has joined #ruby
[08:09:25] eurialo: has joined #ruby
[08:10:54] olli_: has joined #ruby
[08:11:00] eregi: has joined #ruby
[08:11:32] olli_: I've a question - how do I write "no operation" in ruby?
[08:11:39] mark2: has joined #ruby
[08:11:50] olli_: something like "nop" in x86 assembler.
[08:13:11] nando293921: has joined #ruby
[08:13:56] shevy: Bish what ruby and gem version do you have on ubuntu presently?
[08:14:50] siaW: has joined #ruby
[08:14:55] karapetyan: has joined #ruby
[08:15:30] apeiros: olli_: what do you want to achieve by that noop?
[08:15:41] chagel: has joined #ruby
[08:15:53] aibot: has joined #ruby
[08:19:26] karapetyan: has joined #ruby
[08:19:35] ferr: has joined #ruby
[08:21:42] apeiros: ACTION afk
[08:22:02] Mon_Ouie: has joined #ruby
[08:22:33] mattwildig: has joined #ruby
[08:24:11] kirillzh: has joined #ruby
[08:24:13] ramfjord: has joined #ruby
[08:24:29] vondruch: has joined #ruby
[08:26:16] aibot: has joined #ruby
[08:26:25] dopie: has joined #ruby
[08:26:51] ur5us: has joined #ruby
[08:27:42] sandstrom: has joined #ruby
[08:29:01] blackmesa: has joined #ruby
[08:29:35] beawesomeinstead: has joined #ruby
[08:29:47] Rodya_: has joined #ruby
[08:32:11] Tharbakim: has joined #ruby
[08:33:50] modin: has joined #ruby
[08:33:52] the_drow: has joined #ruby
[08:34:10] rdark: has joined #ruby
[08:37:41] despai: has joined #ruby
[08:37:59] charliesome: has joined #ruby
[08:38:34] Mia: has joined #ruby
[08:38:34] Mia: has joined #ruby
[08:40:08] Axy: has joined #ruby
[08:44:28] kirillzh: has joined #ruby
[08:46:40] Gasher: has joined #ruby
[08:49:18] snowy: has joined #ruby
[08:49:52] igam: has joined #ruby
[08:51:40] nicu`: has joined #ruby
[08:52:28] tvw: has joined #ruby
[08:54:15] Foren: has joined #ruby
[08:55:04] sp4rrow: has joined #ruby
[08:55:31] danjam: has joined #ruby
[08:56:21] _whitelogger: has joined #ruby
[08:57:38] nerium: has joined #ruby
[08:58:12] sepp2k: has joined #ruby
[08:58:26] kirillzh: has joined #ruby
[08:58:32] rmulligan: has joined #ruby
[09:00:54] charliesome: has joined #ruby
[09:01:42] antranigv: has left #ruby: ()
[09:02:16] nicu`: has joined #ruby
[09:04:01] kirillzh_: has joined #ruby
[09:05:09] jenrzzz: has joined #ruby
[09:06:03] jmdade: has joined #ruby
[09:08:01] olli_: apeiros, i use case item - skipping one of possibilities
[09:08:39] olli_: is it possible to have a block of code in 'else' within 'case'?
[09:09:15] olli_: if I use 'do end ' or '{}' blocks I get error.
[09:09:18] adgtl: has joined #ruby
[09:09:18] adgtl: has joined #ruby
[09:11:33] olli_: i.e.: "case i when 1 else {code; code;} end" and "case i when 1 else do code; code; end end" both give me an error.
[09:13:55] shevy: olli_ do you normally see free floating blocks in ruby code?
[09:14:20] schickung: has joined #ruby
[09:14:27] shevy: it will work when you pass a block to a method for instance https://gist.github.com/shevegen/08e4653d46d4cb91eedf
[09:14:41] Xeago: has joined #ruby
[09:14:46] paatala_bhairavi: has joined #ruby
[09:16:01] Guest34101: has joined #ruby
[09:18:55] olli_: shevy, so no other way to have multiple code lines after an 'else' within 'case'?
[09:19:08] troulouliou_div2: has joined #ruby
[09:20:16] ur5us: has joined #ruby
[09:20:21] gagrio: has joined #ruby
[09:20:48] kirillzh: has joined #ruby
[09:21:10] shevy: else in a case/when menu works just like one in an if/else clause
[09:21:18] shevy: so you can chain as many if/else past an else there too
[09:21:30] olli_: okay, thank you. :)
[09:27:50] binaryplease: has joined #ruby
[09:28:34] chagel: has joined #ruby
[09:28:36] leksster: has joined #ruby
[09:29:02] trosborn: has joined #ruby
[09:29:12] charliesome: has joined #ruby
[09:29:19] stannard: has joined #ruby
[09:29:48] blackmesa: has joined #ruby
[09:30:02] cajone: has left #ruby: ()
[09:30:04] Expanse: has joined #ruby
[09:31:00] benlieb: has joined #ruby
[09:31:18] skade: has joined #ruby
[09:32:38] brocktimus: has joined #ruby
[09:33:01] cajone: has joined #ruby
[09:33:14] rmulligan: has joined #ruby
[09:35:27] morfin: has joined #ruby
[09:35:58] morfin: hello, anybody know can i somehow in Rake run task in some block without using invoke?
[09:37:21] morfin: as example i have task :mytask => [:task1, :task2, :task3], i want all dependencies run inside of some block which creates some tmp directory
[09:37:36] trosborn: has joined #ruby
[09:38:55] tristanp: has joined #ruby
[09:39:18] baweaver: has joined #ruby
[09:39:29] eurialo: has joined #ruby
[09:39:39] Hanmac: morfin: hm the most easy way would be to have a beforeTask and a afterTask
[09:39:45] djbkd: has joined #ruby
[09:40:22] trosborn: has joined #ruby
[09:41:18] morfin: but as i know tmpdir exists only when block executes
[09:41:54] adgtl: has joined #ruby
[09:42:14] morfin: and when goes out of scope it's being automatically removed
[09:44:45] apeiros: olli_: not sure somebody told you already, but just not having any code in the when clause is perfectly legal.
[09:44:45] Expanse: has joined #ruby
[09:45:21] apeiros: >> a = 1; case a; when 0; "zero"; when 1; when 2; "two"; end
[09:45:23] olli_: apeiros, thanks. Didn't know that.
[09:45:27] ruby[bot]: apeiros: # => nil (https://eval.in/530155)
[09:46:38] morfin: seems like i have to cleanup my mess anyway
[09:46:42] adgtl: has joined #ruby
[09:46:54] Bish: shevy: 2.3 from the repo
[09:48:21] RegulationD: has joined #ruby
[09:50:45] bluOxigen_: has joined #ruby
[09:51:51] LoneHermit: has joined #ruby
[09:52:17] j0n3_: has joined #ruby
[09:55:33] douglascorrea: has joined #ruby
[09:57:02] eregi: has joined #ruby
[09:57:06] rodfersou: has joined #ruby
[09:57:43] astrobun_: has joined #ruby
[09:58:37] schickung: has joined #ruby
[09:59:03] duckpuppy: has joined #ruby
[09:59:50] f4cl3y: has joined #ruby
[10:00:29] graffix222: has joined #ruby
[10:01:49] mfaeh: has joined #ruby
[10:02:20] kirillzh: has joined #ruby
[10:04:59] Xeago: has joined #ruby
[10:05:34] pyrexsmash: has joined #ruby
[10:05:47] trosborn: has joined #ruby
[10:06:30] pyrexsmash: has left #ruby: ()
[10:08:46] Bish: there is no map! right?
[10:09:11] Bish: is there a cool way to do:
[10:09:27] Bish: >> [1,2,3].ma{ |k,v| { k=>v}}
[10:09:28] ruby[bot]: Bish: # => undefined method `ma' for [1, 2, 3]:Array ...check link for more (https://eval.in/530190)
[10:09:32] Bish: >> [1,2,3].map{ |k,v| { k=>v}}
[10:09:33] ruby[bot]: Bish: # => [{1=>nil}, {2=>nil}, {3=>nil}] (https://eval.in/530191)
[10:09:43] trosborn: has joined #ruby
[10:09:45] Bish: well, you get the point
[10:09:56] apeiros: actually, I don't :-|
[10:10:00] apeiros: and Array#map! exists
[10:10:16] apeiros: >> a = [1,2,3]; a.map!(&:to_s); a
[10:10:17] ruby[bot]: apeiros: # => ["1", "2", "3"] (https://eval.in/530192)
[10:10:19] Bish: >> {one:1,two:2,three:3}.map{ |k,v| { k=>v}}
[10:10:20] ruby[bot]: Bish: # => [{:one=>1}, {:two=>2}, {:three=>3}] (https://eval.in/530193)
[10:10:23] Bish: i have something like this
[10:10:51] Bish: and need the second for a js lib
[10:10:53] apeiros: you'd do better to explain the problem you're trying to solve instead of your intended solution
[10:11:10] adaedra: Hash#map! doesn't exist as Hash#map returns an array, and you can't change an object type in place.
[10:11:24] Bish: there is a graph library in js, that wants stupid [{key:x,value:y}] format
[10:11:56] Bish: and i have to write .map { |k,v| {k=>v} } multiple times
[10:12:00] n00bDev: has joined #ruby
[10:12:26] apeiros: {k => v} is quite distinct from {key: k, value: v} ;-)
[10:12:27] Bish: doesn't look very DRY :3
[10:12:35] Bish: well second one is json ofc ;)
[10:12:39] adaedra: make a module/refinement
[10:12:43] apeiros: um, no. still different.
[10:13:01] Bish: well the key names, yeah but you get the point
[10:13:02] apeiros: but yeah, you'd use .map with a block for that kind of transformation.
[10:13:06] adaedra: >> require 'json'; {one:1,two:2,three:3}.map{ |k,v| { k=>v}}.to_json
[10:13:07] ruby[bot]: adaedra: # => "[{\"one\":1},{\"two\":2},{\"three\":3}]" (https://eval.in/530194)
[10:13:27] adaedra: >> require 'json'; {one:1,two:2,three:3}.map{ |k,v| { key: k, value: v }}.to_json
[10:13:28] ruby[bot]: adaedra: # => "[{\"key\":\"one\",\"value\":1},{\"key\":\"two\",\"value\":2},{\"key\":\"three\",\"value\":3}]" (https://eval.in/530195)
[10:13:39] adaedra: isn't it the second one you want?
[10:13:53] Bish: well that was just an example
[10:14:03] Bish: k is actually a unix timestamp and v is an Integer
[10:14:07] Bish: so both integer
[10:14:23] adaedra: doesn't really matter here.
[10:14:56] apeiros: if you think it changes the problem scope, you should probably have mentioned it up front. if you don't think it changes the problem scope - why mention it?
[10:15:14] Bish: [{1457083440=>34}, {1457083500=>95},... this is actually as it looks like
[10:15:33] Bish: well the problem is just that i have to call map multiple times
[10:15:37] Bish: it works fine this way
[10:15:44] trosborn: has joined #ruby
[10:15:50] apeiros: not in the problem description you have given us so far.
[10:16:25] Bish: i told you the exact problem description, i have to call .map multiple times with the same block, which doesn't look try
[10:16:30] Bish: wanted to know if there is a better way
[10:17:06] adaedra: >> a = {one:1,two:2,three:3}; module SillyJS; def to_js; map { |k,v| { k=>v}}; end; end; a.extend SillyJS; a.to_js
[10:17:07] ruby[bot]: adaedra: # => [{:one=>1}, {:two=>2}, {:three=>3}] (https://eval.in/530197)
[10:17:13] Hanmac: you need to call it multiple times because you do it on multiple objects ...
[10:17:22] adaedra: Hop, reusable code.
[10:17:28] apeiros: yeah, no. in the problem description so far there's precisely one .map call. and map yielding multiple times is still a single call to map.
[10:17:41] marr: has joined #ruby
[10:17:59] Bish: apeiros: you got me wrong, maybe i wasn't specific enough
[10:18:02] Bish: hanmac got me though :D
[10:18:07] apeiros: if you mean you have multiple hashes to transform, then common techniques apply. like what adaedra said. or write a method. or whatever.
[10:18:31] adaedra: that may be a nice fit for refinements :D
[10:18:54] apeiros: yeah, or just have a proper class for that data with a .to_json method.
[10:19:29] Hanmac: Bish: i think you got an understanding problem you dont have one hash, you have a array of hashs with "[{1457083440=>34}, {1457083500=>95}]" if you want to transform it into another array of hashs, than you need to call map multiple times for each Hash inside the Array (+ one time for the Array itself)
[10:20:20] Bish: yeah that's what i am doing, but the multiple writing of the same block bugs me
[10:20:29] Bish: sure, i could write a method, but that task seems to small for a method
[10:20:44] Bish: i just wanted to know if there might be an existing method doing that transformation
[10:20:51] Bish: i mean Hash.to_a is pretty similiar, but not the same though :(
[10:21:20] Bish: >>{1=>3,2=>4,3=>4}.to_a.map! { |x| {x.first=>x.last} }
[10:21:21] ruby[bot]: Bish: # => [{1=>3}, {2=>4}, {3=>4}] (https://eval.in/530198)
[10:21:44] adaedra: this won't modify your source hash.
[10:23:27] mattwildig: has joined #ruby
[10:23:28] trosborn: has joined #ruby
[10:24:52] FooMunki: has joined #ruby
[10:26:46] julieeharshaw: has joined #ruby
[10:27:20] rmulligan: has joined #ruby
[10:27:35] evidex: has joined #ruby
[10:28:07] Bish: are there actual code analyzers, that check "double"-code?
[10:28:09] apeiros: confusing explanation is confusing
[10:28:19] Bish: i am a confused guy!
[10:28:41] apeiros: not sure whether for ruby. but for static languages, such tools do exist, yes.
[10:29:04] apeiros: afaik there are projects for ruby too. but no idea how mature those are. check ruby-toolbox for those.
[10:29:43] AlexRussia: has joined #ruby
[10:30:11] apeiros: https://github.com/michaeledgar/laser is the only one I remember by name
[10:30:58] platzhirsch: has joined #ruby
[10:31:10] robbyoconnor: has joined #ruby
[10:32:14] adac: has joined #ruby
[10:32:24] steffkes: has joined #ruby
[10:32:36] Rodya_: has joined #ruby
[10:32:47] blackmesa: has joined #ruby
[10:33:04] sundhell: has joined #ruby
[10:33:12] isxek: has joined #ruby
[10:33:44] trosborn: has joined #ruby
[10:35:00] Mia: has joined #ruby
[10:35:01] Mia: has joined #ruby
[10:36:09] Hanmac: for code duplicate i only know https://codeclimate.com/ but that is more like for projects
[10:36:41] Axy: has joined #ruby
[10:36:41] Axy: has joined #ruby
[10:42:16] [spoiler]: has joined #ruby
[10:42:20] trosborn: has joined #ruby
[10:43:13] danjam: has joined #ruby
[10:43:54] ujjain-: has joined #ruby
[10:48:34] Scripore: has joined #ruby
[10:48:57] ghr: duplicate code? http://ruby.sadi.st/Flay.html
[10:49:57] ensom42: has joined #ruby
[10:51:27] chagel: has joined #ruby
[10:53:12] terlar: has joined #ruby
[10:53:48] schickung: has joined #ruby
[10:55:10] jeanlinux: has joined #ruby
[10:56:09] Bish: > Confessions of a Ruby Sadist
[10:56:23] douglascorrea: has joined #ruby
[10:57:11] ghr: lol, yeah
[10:57:27] ghr: pretty sure codeclimate use flog and flay
[10:57:48] trosborn: has joined #ruby
[10:58:25] shevy: that URL scares me
[11:02:13] ghr: https://github.com/seattlerb/flay :)
[11:02:51] flughafen: is there any reason by in the chrome console a $('div[id=foo.bar]') works, but not in capybara with find(...)?
[11:03:48] trosborn: has joined #ruby
[11:04:40] schickung: has joined #ruby
[11:04:50] pandaant: has joined #ruby
[11:05:14] Bish: flughafen: wrong channel
[11:05:35] Bish: also jquery sucks!
[11:06:18] Bish: oh now i get it
[11:07:47] Bish: flughafen: i didn't say anything
[11:07:53] trinaldi: has joined #ruby
[11:08:06] flughafen: bish? you said "oh now i get it?"
[11:08:22] Bish: no, i didn't know what capybara is
[11:08:42] Bish: flughafen: my guess is that #find wants xpath, jquery selectors are not xpath
[11:08:56] Bish: try //div[id=foobar]
[11:09:15] Bish: "//div[id=foobar]"
[11:09:50] hiljusti: has joined #ruby
[11:11:14] jmdade: has joined #ruby
[11:12:04] adaedra: or find(css: '...')
[11:12:44] flughafen: adaedra: it uses :css by default... ?
[11:13:05] adaedra: I was completing Bish, I don't really know the default
[11:14:07] flughafen: well the id has . in it, so i have to use [id=foo.bar] vs.div#foo.bar
[11:14:35] trosborn: has joined #ruby
[11:15:10] mdw: has joined #ruby
[11:18:28] andikr: has joined #ruby
[11:19:17] shanemcd: has joined #ruby
[11:19:43] shevy: this is why berlin can't have a nice flughafen
[11:20:08] flughafen: ah, it's saying the browser said it's not a valid css selector
[11:21:26] rmulligan: has joined #ruby
[11:21:39] flughafen: ah, that was stupid, i fixed it. thanks shevy we can have nice things
[11:23:13] shevy: that reminds me of the fragmentation of the www
[11:23:28] shevy: knowing html used to be enough at one point!
[11:24:25] bubbys: has joined #ruby
[11:25:00] flughafen: i have a love / hate relationship with js, on one side gmail is nice, on the other i don't need 50 million lines of js to just show me some text on a page and track everything i do.
[11:29:01] flughafen: we should ban js from the web so i can go back to using lynx
[11:29:11] n008f4g_: has joined #ruby
[11:30:16] bubbys: has joined #ruby
[11:30:30] johnmilton: has joined #ruby
[11:30:55] apeiros: flughafen: . in id's are escaped in css selectors via \
[11:31:12] apeiros: #foo\.bar in a .css, or '#foo\\.bar' in .js
[11:31:14] DJ_Spies: has joined #ruby
[11:31:18] but3k4: has joined #ruby
[11:33:06] flughafen: apeiros: that didn't work either. i forgot to wrap the id in ''
[11:33:18] flughafen: so once i did that, it worked in carpyburo
[11:34:06] thevaliantx: has joined #ruby
[11:35:49] blackmesa: has joined #ruby
[11:36:03] but3k4: has joined #ruby
[11:36:40] shanemcd: has joined #ruby
[11:37:49] Rodya_: has joined #ruby
[11:39:07] shevy: the buro for the carps
[11:40:11] LoneHerm_: has joined #ruby
[11:40:28] baweaver: has joined #ruby
[11:41:16] Shidash: has joined #ruby
[11:41:24] leksster_: has joined #ruby
[11:45:12] eregi: has joined #ruby
[11:48:17] sdothum: has joined #ruby
[11:48:40] _whitelogger: has joined #ruby
[11:48:43] adgtl: has joined #ruby
[11:48:43] adgtl: has joined #ruby
[11:49:06] RegulationD: has joined #ruby
[11:49:13] SCHAAP137: has joined #ruby
[11:50:21] despai: has joined #ruby
[11:55:37] ldnunes: has joined #ruby
[11:57:46] DJ_Spies: has joined #ruby
[11:57:57] sandstrom: has joined #ruby
[12:00:28] bogn: has joined #ruby
[12:00:57] graffix222: has joined #ruby
[12:01:04] duckpuppy: has joined #ruby
[12:04:17] igam: has joined #ruby
[12:06:18] alphaatom: has joined #ruby
[12:06:24] maner: has joined #ruby
[12:10:53] adgtl: has joined #ruby
[12:11:18] chandlerbing: has joined #ruby
[12:12:06] bogn: Hello everybody, I need to answer the question whether our Rails app is statically or dynamically linking to unicorn, kgio, raindrops and sidekiq. And I must admit that I'm having a very hard time figuring that out. I have the very fuzzy notion that all ruby gems are dynamically loaded (maybe nokogiri with libxml is an exception). Can someone please shed some light on this.
[12:13:28] shevy: what even is dynamically loading
[12:14:48] bogn: the notion sentence should actually have been "are dynamically linked"
[12:15:02] shanemcd: has joined #ruby
[12:15:46] rmulligan: has joined #ruby
[12:16:17] darix: bogn: why do you care?
[12:16:37] bogn: to prevent licensing issues
[12:17:04] darix: unicorn seems dual licensed
[12:17:10] darix: GPL-2.0+ and ruby
[12:17:15] darix: and the ruby part is BSDish if i recall correctly
[12:17:19] darix: so you should be fine
[12:17:33] bogn: kgio 2.10.0 is LGPL-2.1+
[12:17:36] darix: but other than that ...
[12:17:45] bogn: raindrops 0.15.0 as well
[12:17:46] darix: it doesnt matter if statically or dynamically linked
[12:17:56] darix: what matters what happens at runtime
[12:18:17] darix: and that point if you use a GPL-2.0 based library the whole thing becomes GPL-2.0
[12:18:38] uglybandersnatch: has joined #ruby
[12:18:42] darix: LGPL actually was created to allow linking into commercial software
[12:18:51] stardiviner: has joined #ruby
[12:19:49] bogn: that's my understanding as well, but that legal department said hopefully we're dynamically linking
[12:20:04] darix: that notion is wrong to begin with
[12:20:20] darix: dynamic linking or static linking doesnt matter at all in that case
[12:20:24] IrishGringo: has joined #ruby
[12:22:13] bogn: It's a legal department that has done this review quite a lot for C++ Software, might that be the issue why they care so much?
[12:23:07] bogn: in that scenario it seems to be an important question in their understanding
[12:23:18] darix: after lunch
[12:23:24] darix: still that assumption is wrong
[12:23:46] chilerails: has joined #ruby
[12:24:14] mattwildig: has joined #ruby
[12:25:11] chilerails: has left #ruby: ()
[12:25:13] bubbys: has joined #ruby
[12:25:56] terlar: has joined #ruby
[12:26:07] ddv: in the end you need to consult a lawyer who specializes in this sort of stuff
[12:26:26] bogn: will ldd on unicorn help me find an answer
[12:26:47] bogn: there's a legal department here and they are asking me that question
[12:26:54] bogn: I can't answer it
[12:27:17] adaedra: there's no linking when using ruby gems.
[12:28:52] dgncn: has joined #ruby
[12:29:47] zenspider: has joined #ruby
[12:32:38] shanemcd: has joined #ruby
[12:34:17] y0da: has joined #ruby
[12:34:17] bb010g: has joined #ruby
[12:34:33] Mon_Ouie: has joined #ruby
[12:36:31] bogn: is this true for ruby processes like unicorn and sidekiq as well, that have native extensions?
[12:37:22] tristanp: has joined #ruby
[12:37:40] adaedra: they link to themselves and their own dependencies
[12:38:14] stannard: has joined #ruby
[12:38:50] blackmesa: has joined #ruby
[12:39:38] gagrio: has joined #ruby
[12:39:42] adaedra: bogn: http://programmers.stackexchange.com/questions/141847/how-does-using-a-lgpl-gem-affect-my-mit-licensed-application
[12:40:44] davedev24: has joined #ruby
[12:43:26] Mon_Ouie: has joined #ruby
[12:44:34] atmosx: has joined #ruby
[12:48:07] binaryplease: has joined #ruby
[12:50:37] ItSANgo: has joined #ruby
[12:51:39] charliesome: has joined #ruby
[12:52:44] eurialo: has joined #ruby
[12:56:11] dmonster: has joined #ruby
[12:56:22] dionysus69: has joined #ruby
[12:58:06] douglascorrea: has joined #ruby
[13:01:25] idefine: has joined #ruby
[13:05:42] shanemcd: has joined #ruby
[13:06:15] douglascorrea: has joined #ruby
[13:06:20] duckpuppy: has joined #ruby
[13:09:06] godzillaenlacasa: has joined #ruby
[13:09:56] rmulligan: has joined #ruby
[13:09:58] darix: adaedra bogn: dlopen loads it into your programs space.
[13:10:13] darix: that means the GPL restrictions apply again
[13:11:22] darix: bogn: hosted app or do you ship the rails app?
[13:11:38] synthroid: has joined #ruby
[13:12:17] bogn: we ship it
[13:14:30] Xeago: has joined #ruby
[13:16:22] mattwildig: has joined #ruby
[13:17:48] freerobby: has joined #ruby
[13:18:17] bogn: We ship it. darix where did you find out that ruby gems or specifically unicorn/sidekiq use dlopen to load into programs space
[13:19:01] charliesome_: has joined #ruby
[13:19:09] darix: bogn: that is a standard thing on linux/unix to load plugins
[13:19:16] darix: and that's what native extensions are for linux
[13:19:28] DJ_Spies: has joined #ruby
[13:20:19] Sembei: has joined #ruby
[13:20:44] adgtl: has joined #ruby
[13:20:44] adgtl: has joined #ruby
[13:22:05] JohnBat26: has joined #ruby
[13:22:16] myntcake: has joined #ruby
[13:22:20] myntcake_: has joined #ruby
[13:22:46] bogn: but using dlopen means dynamic linking, so that would be my answer then
[13:22:57] bogn: or am I wrong
[13:23:21] sandstrom: has joined #ruby
[13:23:47] s00pcan: has joined #ruby
[13:24:19] deuterium: has joined #ruby
[13:24:36] hgl: has joined #ruby
[13:24:50] Jardayn: has joined #ruby
[13:26:14] nerium: has joined #ruby
[13:26:40] groundnuty: has left #ruby: ("WeeChat 0.4.2")
[13:27:49] alphaatom: has joined #ruby
[13:28:12] candelabra: has joined #ruby
[13:28:51] candelabra: Hey all, is there any utility that I can run, which can output the lowest compatible version of ruby for a script?
[13:29:11] candelabra: I've got a script I wrote a while back someone wants to use and I just wanted to be able to say "needs ruby >X.xx
[13:29:37] shevy: if you'd have a .gemspec file for a given gem, you could specify that as a dependency including the version
[13:29:53] nando293921: has joined #ruby
[13:30:00] shevy: then it would be e. g. .required_ruby_version = '>= 2.3.0'
[13:30:04] karapetyan: has joined #ruby
[13:30:41] candelabra: shevy: that's a good idea, but I was more looking for something that would read my script and see "oh this array method is only available in ruby version >2.1"
[13:30:51] Xeago_: has joined #ruby
[13:31:38] shevy: don't know of a project that tries that, perhaps someone else here knows
[13:32:32] karapetyan: has joined #ruby
[13:32:39] krz: has joined #ruby
[13:33:14] eregi: has joined #ruby
[13:35:43] chagel: has joined #ruby
[13:36:14] godzillaenlacasa: could there be potential conflicts with RVM and Rbenv installed on the same machine?
[13:36:33] adaedra: Why would you do that?
[13:36:44] casadei: has joined #ruby
[13:36:56] godzillaenlacasa: no clue... inheritied machine
[13:36:59] mdw: has joined #ruby
[13:37:09] skade: has joined #ruby
[13:37:37] adaedra: Remove them all and use chruby :p
[13:38:31] godzillaenlacasa: @adaedra I'm not going to wipe it all clean... from what I can tell, some of the projects use rbenv while some use rvm
[13:38:41] supplication: has joined #ruby
[13:39:13] s00pcan: has joined #ruby
[13:39:13] adaedra: What do you mean by "Use rbenv" and "Use RVM"
[13:40:06] godzillaenlacasa: @adaedra I realized what I said right after I typed... I'm going to uninstall rvm.
[13:41:39] DmitryBochkarev: has joined #ruby
[13:42:23] baweaver: has joined #ruby
[13:42:52] juanfra_: has joined #ruby
[13:42:58] TheNet: has joined #ruby
[13:43:34] graffix222: has joined #ruby
[13:43:46] darix: bogn: dynamic linking does *not* excempt you from the GPL
[13:43:52] mondok: has joined #ruby
[13:44:00] darix: bogn: and again unicorn is dual licensed. not just GPL
[13:44:45] shevy: godzillaenlacasa I think you have at least two different bin/ruby then right? And they must know the full location to these
[13:44:53] leksster__: has joined #ruby
[13:45:06] bogn: regarding unicorn they actually didn't ask the shared/dynaming linking question only whether we modified it
[13:45:16] godzillaenlacasa: @shevy yes, i believe so... I'm getting gem conflicts so was looking into why
[13:45:27] bogn: they asked the linking question regarding kgio, raindrobs and sidekiq all of which are LGPL
[13:45:46] bogn: raindrobs = raindrops
[13:46:09] bogn: kgio and raindrops are dependencies of unicorn
[13:46:31] Dreeg: has joined #ruby
[13:46:41] chagel: has joined #ruby
[13:48:52] darix: bogn: LGPL is not a problem
[13:49:26] darix: bogn: if you use GPL-ed libraries the whole program becomes GPL
[13:49:52] RegulationD: has joined #ruby
[13:50:12] bogn: I don't think it'll make sense for me to answer that
[13:50:54] bogn: I'll try to come out with that excerpt: http://programmers.stackexchange.com/a/141848 that adaedra posted
[13:52:35] bogn: the part that is "work that uses the Library" and that this is out of scope of the license
[13:52:37] aryaching: has joined #ruby
[13:53:38] kgirthofer: does anyone have any experience setting up gem in a box? I just launched a new centos box and got to the point of rackup - but my connection is refused
[13:53:56] freerobby: has joined #ruby
[13:55:14] karapetyan: has joined #ruby
[13:55:16] darix: bogn: real fun starts when you need a GPL-2.0 and GPL-3.0 licensed library e.g. :p
[13:55:26] arbys: has joined #ruby
[13:55:41] darix: bogn: if your app is threadsafe you can use puma
[13:55:45] Rodya_: has joined #ruby
[13:55:46] darix: which is BSD-3-Clause
[13:55:51] arbys: has joined #ruby
[13:55:53] Mio-chan: has joined #ruby
[13:56:34] bogn: as per the comment below that SO answer I will also include the source code of kgio, raindrops and sidekiq in the distribution. It is referring to
[13:56:34] bogn: http://www.gnu.org/licenses/lgpl-java.html
[13:56:34] bogn: When you distribute the library with your application (or on its own), you need to include source code for the library. But if your application instead requires users to obtain the library on their own, you don't need to provide source code for the library.
[13:56:44] InternetFriend: has joined #ruby
[13:57:09] karapetyan: has joined #ruby
[13:57:57] crystal77: has joined #ruby
[13:58:23] darix: bogn: not the issue. you load a GPL-ed library into the app you sell. therefor the app is under GPL -> therefor an user can ask you for the complete source of your app.
[13:58:33] darix: good luck with that. back to work
[13:58:36] bogn: as I'm intending to use bundle install --deployment to include all gems in vendor/bundle I'm distributing the library and thus I will include their source code
[13:58:55] RTG`: has joined #ruby
[13:59:04] darix: bogn: follow the recent discussions on ZFS and ubuntu
[13:59:45] darix: http://softwarefreedom.org/resources/2016/linux-kernel-cddl.html https://sfconservancy.org/blog/2016/feb/25/zfs-and-linux/
[13:59:50] ramortegui: has joined #ruby
[13:59:50] darix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815060
[14:00:42] mary5030: has joined #ruby
[14:00:59] croberts: has joined #ruby
[14:03:31] dtordable: has joined #ruby
[14:03:54] shanemcd: has joined #ruby
[14:04:04] rmulligan: has joined #ruby
[14:10:35] decoponio: has joined #ruby
[14:11:04] sgambino: has joined #ruby
[14:12:04] platzhirsch: has left #ruby: ()
[14:13:36] platzhirsch: has joined #ruby
[14:15:41] cdg_: has joined #ruby
[14:16:17] Scripore: has joined #ruby
[14:16:56] chouhoulis: has joined #ruby
[14:17:01] sepp2k: has joined #ruby
[14:18:42] _whitelogger: has joined #ruby
[14:19:41] anisha: has joined #ruby
[14:20:56] idletask: has joined #ruby
[14:22:37] justbleed: has joined #ruby
[14:23:11] InternetFriend: has joined #ruby
[14:24:12] htmldrum: has joined #ruby
[14:24:53] aegis3121: has joined #ruby
[14:25:04] haylon: has joined #ruby
[14:26:39] fullofcaffeine: has joined #ruby
[14:27:44] Guest34101: has joined #ruby
[14:28:21] terlar: has joined #ruby
[14:30:46] floatingpoint: has joined #ruby
[14:30:50] swills: has joined #ruby
[14:32:17] danjam: has joined #ruby
[14:32:39] DaniG2k: has joined #ruby
[14:33:28] Timberwo|f: has joined #ruby
[14:33:57] Zai00: has joined #ruby
[14:35:29] x77686d: has joined #ruby
[14:36:29] sudoubuntu: has joined #ruby
[14:36:31] ramfjord: has joined #ruby
[14:36:33] InternetFriend: has joined #ruby
[14:37:50] babblebre: has joined #ruby
[14:37:55] bluOxigen: has joined #ruby
[14:38:08] konsolebox: has joined #ruby
[14:39:39] Amnez777: has joined #ruby
[14:39:50] nogic: has joined #ruby
[14:40:30] Mon_Ouie: has joined #ruby
[14:40:48] Xeago: has joined #ruby
[14:40:51] gr0g_: has joined #ruby
[14:41:01] nogic: has joined #ruby
[14:41:13] gr0g_: has left #ruby: ()
[14:42:58] troulouliou_div2: has joined #ruby
[14:43:19] Icey: has joined #ruby
[14:45:45] aegis3121: has joined #ruby
[14:46:24] Bish: when giving a proc as a block
[14:46:36] Bish: why do i still have to prefix it with a & i thought that is for converting TO proc
[14:47:01] norc: has joined #ruby
[14:47:24] Bish: or is it to tell the method "this is the block not a parameter"
[14:48:40] SeerKan: has joined #ruby
[14:48:54] SeerKan: hi guys, anybody available to help me with a very strange problem ? I have an ruby 1.8.7 app setup with nginx+passenger (latest) that simply refuses to serve the application and can't get any error out of passenger. Also the app seems ok, if I start it with thin it works fine, also it works on an old server where there is nginx+unicorn used.
[14:48:56] havenwood: Bish: yup, convert to proc (if neeeded) and use as block
[14:49:05] SeerKan: Any suggestion would be very appreciated, I'm kind of stuck...
[14:49:17] SeerKan: the general nginx+passenger setup is ok, it's done using automation with the same playbook done on several other servers/projects and all work without any problems (including an old app also using 1.8.7)
[14:52:15] blackmesa: has joined #ruby
[14:52:46] sandstrom: has joined #ruby
[14:53:22] anisha_: has joined #ruby
[14:53:30] trinaldi: has joined #ruby
[14:54:37] ddv: SeerKan: 1.8.7 ?
[14:55:08] SeerKan: yes ddv... unfortunately it's an old/huge project that needs time to be rewritten
[14:55:50] Yiota: has joined #ruby
[14:56:15] Yiota: has joined #ruby
[14:56:27] chouhoul_: has joined #ruby
[14:56:38] anisha: has joined #ruby
[14:57:01] shevy: upgrade to 2.3.0!
[14:57:10] rdavila: has joined #ruby
[14:57:25] sts_: has left #ruby: ()
[14:57:53] whippythellama: has joined #ruby
[14:57:56] Rodya_: has joined #ruby
[14:58:11] rmulligan: has joined #ruby
[14:58:45] hxegon: has joined #ruby
[15:00:03] SeerKan: yeah shevy I know... but that really doesn't solve my issue...
[15:00:08] Xeago: has joined #ruby
[15:00:48] Xeago: has joined #ruby
[15:00:52] stannard: has joined #ruby
[15:01:09] Ropeney: has joined #ruby
[15:03:27] rippa: has joined #ruby
[15:04:05] Xeago_: has joined #ruby
[15:04:23] polishdub: has joined #ruby
[15:05:06] diegoviola: has joined #ruby
[15:06:30] TheNet: has joined #ruby
[15:06:45] adgtl: has joined #ruby
[15:06:45] adgtl: has joined #ruby
[15:07:40] codecop: has joined #ruby
[15:07:42] codecop_: has joined #ruby
[15:09:08] jottr: has joined #ruby
[15:10:02] idefine_: has joined #ruby
[15:10:41] Uber|Dragon: has joined #ruby
[15:13:23] idefine: has joined #ruby
[15:14:31] duckpuppy: has joined #ruby
[15:14:32] sudoubuntu: has joined #ruby
[15:15:21] olli_: I've question about ubuntu & rake. There're two 'rake' scripts in PATH. One is generated by ruby-gems and is executed 1st (and fails), the second is from ubuntu package (and is working). "gem list|grep rake" shows two installed versions: 10.3.2 (/usr/share/rubygems-integration/all) and 10.1.0,default (/usr/lib/ruby/gems/2.1.0) , both ubuntu /usr/bin/rake and /usr/lib/ruby/gems/2.1.0/gems/rake-10.1.0/bin/rake show --version "10.3.2" (fun
[15:15:22] olli_: ny,yep?) . So what should I do w/ this mess? Deletion of one of conflicting 'rake' in PATH doesn't help. Though both rake binaries executed w/ full path prefix ( /usr/bin/rake and /usr/lib/ruby/gems/2.1.0/gems/rake-10.1.0/bin/rake) work okay with tests I execute via Rakefile .
[15:15:51] LoneHermit: has joined #ruby
[15:16:17] jgpawletko: has left #ruby: ()
[15:16:44] Timberwo|f: has joined #ruby
[15:16:45] sudoubuntu: has joined #ruby
[15:16:57] siaW: has joined #ruby
[15:17:12] thevaliantx: has joined #ruby
[15:20:59] shevy: dunno, I never got into rake
[15:21:20] eregi: has joined #ruby
[15:21:21] morfin: i use rvm and no packages
[15:22:10] whippythellama: has joined #ruby
[15:22:13] morfin: btw i have a question about rake - is there way to handle exceptions properly?
[15:22:52] Rodya_: has joined #ruby
[15:23:22] tuelz: has joined #ruby
[15:23:53] dhollinger: has joined #ruby
[15:23:55] morfin: ah nvm, seems like same way as regular exceptions handled
[15:24:47] Rodya_: has joined #ruby
[15:25:12] tuelz: hmm, I'm expect flat_map(&:id) and flatten.map(&:id) to do the same thing, but the former throws an error no id on array when ran on `[[#<Category id: 94187, ...>]]`
[15:25:20] tuelz: is that expected behavior?
[15:25:50] tuelz: maybe because activerecord does weird things on top of arrays?
[15:26:37] chouhoulis: has joined #ruby
[15:26:52] aegis3121: #flat_map calls the block on each element of the enum. In your case, the elements of your enum are arrays.
[15:27:38] tuelz: ahh, gotcha
[15:28:17] Rodya_: has joined #ruby
[15:28:49] mallu: has joined #ruby
[15:28:55] howdoi: has joined #ruby
[15:29:24] The_Phoenix: has joined #ruby
[15:29:41] crystal77: has joined #ruby
[15:29:46] havenwood: tuelz: `flat_map(&)` is like `map(&).flatten(1)`
[15:30:29] idefine: has joined #ruby
[15:30:33] aegis3121: That's a better explanation, thanks havenwood
[15:32:40] mdw: has joined #ruby
[15:33:14] blandflakes: has joined #ruby
[15:33:27] niksrc: has joined #ruby
[15:34:50] Xeago: has joined #ruby
[15:35:25] dhollinger: has joined #ruby
[15:35:30] evidex: has joined #ruby
[15:38:59] morfin: >> raise "somestring"
[15:39:00] ruby[bot]: morfin: # => somestring (RuntimeError) ...check link for more (https://eval.in/530492)
[15:39:04] mary5030: has joined #ruby
[15:41:17] morfin: >> RuntimeError.new("somestring")
[15:41:19] ruby[bot]: morfin: # => #<RuntimeError: somestring> (https://eval.in/530495)
[15:41:46] maikowblue: has joined #ruby
[15:42:01] SenpaiSilver: has joined #ruby
[15:43:12] nfk: has joined #ruby
[15:43:46] dionysus69: has joined #ruby
[15:44:32] ruby-lang448: has joined #ruby
[15:44:44] ruby-lang448: Has anyone used the treat gem before?
[15:45:22] mary5030: has joined #ruby
[15:45:50] crowell: has joined #ruby
[15:45:50] crowell: has joined #ruby
[15:49:36] shinnya: has joined #ruby
[15:52:16] rmulligan: has joined #ruby
[15:53:16] tuelz: I've never used it before, but you'll get much better results stating your problem rather than asking if anyone has ever used X
[15:54:45] _whitelogger: has joined #ruby
[15:55:18] tAn: has joined #ruby
[15:55:26] Hammy_Work: has joined #ruby
[15:55:41] terlar: has joined #ruby
[15:56:09] d0nn1e: has joined #ruby
[15:57:45] karapetyan: has joined #ruby
[15:58:08] dopamean_: has joined #ruby
[15:58:09] nogic: has joined #ruby
[15:59:10] nogic: has joined #ruby
[15:59:14] pdoherty: has joined #ruby
[15:59:22] binaryplease: I would like to create a text-based multimessenger because finch sucks. Anyone has any tips on how to start interacting with libpurple? I found the gems purple_ruby and ruborple but thet seem to be unmaintened. Lat commit 5 years ago.
[16:00:17] binaryplease: any tips on ruby + libpurple (or maybe telepathy?)
[16:00:44] mondok: has joined #ruby
[16:02:05] stardiviner: has joined #ruby
[16:02:29] shanemcd: has joined #ruby
[16:02:52] adaedra: I already read that somewhere
[16:03:49] Xeago: has joined #ruby
[16:03:55] eregi: has joined #ruby
[16:04:56] schickung: has joined #ruby
[16:06:59] voobscout: has joined #ruby
[16:11:00] adgtl: has joined #ruby
[16:11:00] adgtl: has joined #ruby
[16:11:57] shanemcd: has joined #ruby
[16:14:50] ruby-lang448: @tuelz My problem is that I can't download some models necessary for the gem so my question is quite literally "Has anyone use treat before" because I want to know if anyone would happen to have those models on their local machine
[16:16:15] mustmodify: has joined #ruby
[16:16:43] ramfjord: has joined #ruby
[16:16:45] polishdub: has joined #ruby
[16:17:37] mustmodify: We're looking at moving from Louisiana. Probably the Carolinas or California. Or if it's trump v clinton, some other country. Anyway, wondering where I can get data about concentrations of Ruby devs. Louisiana has few nerds and I'd love to be in a stronger dev / nerd community.
[16:18:07] mustmodify: I was thinking there might be geodata from rubygems.org.
[16:18:36] mustmodify: or I could just look for ruby groups in that area, but it's hard to know about strength of community.
[16:18:40] mustmodify: from those data.
[16:20:27] uglybandersnatch: has joined #ruby
[16:21:43] diegoviola: has joined #ruby
[16:22:37] nettoweb: has joined #ruby
[16:24:53] adaedra: mustmodify: http://rubyusergroups.org/ ?
[16:25:41] mustmodify: adaedra: nice, I hadn't seen that.
[16:25:56] Lucky_ABA: has joined #ruby
[16:29:58] tjohnson: has joined #ruby
[16:30:11] The_Phoenix: has joined #ruby
[16:32:08] TheNet: has joined #ruby
[16:32:53] krobzaur: has joined #ruby
[16:32:53] atmosx: has joined #ruby
[16:33:25] krobzaur: has left #ruby: ()
[16:35:51] tAn: has joined #ruby
[16:36:19] fostertheweb: has joined #ruby
[16:36:37] tvw: has joined #ruby
[16:36:40] hxegon: has joined #ruby
[16:36:41] diegoviola: has joined #ruby
[16:37:47] IrishGringo: has joined #ruby
[16:38:36] dopamean_: has joined #ruby
[16:39:42] hogetaro: has joined #ruby
[16:41:18] RTG`: has joined #ruby
[16:42:20] roshanavand: has joined #ruby
[16:44:00] roshanavand: has joined #ruby
[16:44:53] Xeago: has joined #ruby
[16:45:50] Khoyo: has joined #ruby
[16:46:28] rmulligan: has joined #ruby
[16:47:00] idefine: has joined #ruby
[16:48:17] bubbys: has joined #ruby
[16:49:17] moeabdol: has joined #ruby
[16:50:23] nando293921: has joined #ruby
[16:50:57] RegulationD: has joined #ruby
[16:51:27] The_Phoenix: has joined #ruby
[16:51:53] voobscout: has joined #ruby
[16:53:35] dhollinger: has joined #ruby
[16:54:12] The_Phoenix: has joined #ruby
[16:56:32] n008f4g_: has joined #ruby
[16:56:36] intrigueD: has joined #ruby
[16:57:52] adgtl: has joined #ruby
[16:57:52] adgtl: has joined #ruby
[16:59:26] jottr: has joined #ruby
[17:00:31] jobewan: has joined #ruby
[17:01:40] amclain: has joined #ruby
[17:02:22] karapetyan: has joined #ruby
[17:02:32] marxarelli: has joined #ruby
[17:03:19] Limix: has joined #ruby
[17:04:26] LoneHerm_: has joined #ruby
[17:06:47] [Butch]: has joined #ruby
[17:06:55] tvw: has joined #ruby
[17:07:00] Limix: has joined #ruby
[17:07:40] ohcibi: has joined #ruby
[17:07:42] _whitelogger: has joined #ruby
[17:07:42] decaff: has joined #ruby
[17:08:18] voker57: has joined #ruby
[17:08:18] voker57: has joined #ruby
[17:08:21] Lucky_ABA: has joined #ruby
[17:08:27] Janno: has joined #ruby
[17:08:57] Ropeney: has joined #ruby
[17:09:29] mfaeh: has joined #ruby
[17:16:45] pwnd_nsfw: has joined #ruby
[17:18:18] ramfjord: has joined #ruby
[17:20:26] synthroid: has joined #ruby
[17:20:40] synthroid: has joined #ruby
[17:21:41] ivanskie: has joined #ruby
[17:23:36] poguez_: has joined #ruby
[17:24:58] NeckBeardPrince: has joined #ruby
[17:25:16] nogic: has joined #ruby
[17:25:17] mark2: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PONG :verne.freenode.net")
[17:25:50] rht: has joined #ruby
[17:26:19] nogic: has joined #ruby
[17:27:25] nogic: has joined #ruby
[17:27:43] sneakerhax: has joined #ruby
[17:27:52] eregi: has joined #ruby
[17:28:17] nogic: has joined #ruby
[17:28:39] zast: has joined #ruby
[17:29:29] nogic: has joined #ruby
[17:30:01] eurialo: has joined #ruby
[17:30:14] rdark: has joined #ruby
[17:30:35] nogic: has joined #ruby
[17:31:30] nogic: has joined #ruby
[17:31:36] snockerton: has joined #ruby
[17:33:12] diego4: has joined #ruby
[17:34:28] Jardayn: has joined #ruby
[17:36:02] cb`: has joined #ruby
[17:38:38] diego4: has joined #ruby
[17:39:54] KensoDev: has joined #ruby
[17:40:17] Maletor: has joined #ruby
[17:40:36] rmulligan: has joined #ruby
[17:42:17] intrigueD: has joined #ruby
[17:43:54] baweaver: has joined #ruby
[17:47:26] flughafen_: has joined #ruby
[17:47:43] sandstrom: has joined #ruby
[17:51:32] ramfjord: has joined #ruby
[17:51:38] evenix: has joined #ruby
[17:51:44] evenix: is there a slcak hannel for this?
[17:53:31] symm-: has joined #ruby
[17:54:32] gizmore: has joined #ruby
[17:54:46] mostlybadfly: has joined #ruby
[17:56:01] ur5us: has joined #ruby
[17:56:46] sucks: has joined #ruby
[17:56:46] Limix: has joined #ruby
[17:57:21] graffix: has joined #ruby
[17:57:25] al2o3-cr: has joined #ruby
[17:57:51] Limix: Instead of [1,2,3].map{|item| item + 1}
[17:57:58] Jardayn: has joined #ruby
[17:58:13] Limix: can I somehow call [1,2,3].map(my_method)
[17:58:43] Limix: I’ve tried .map(:my_method) and (&:my_method)
[17:59:01] Limix: neither work, any ideas?
[17:59:03] al2o3-cr: Limix: .map(&method)
[17:59:11] Limix: thank you
[17:59:18] Xeago: has joined #ruby
[17:59:48] mustmodify: >> [1,2,3].map( &:next )
[17:59:55] Ox0dea: >> def inc x; x + 1; end; [1,2,3].map(&method(:inc)) # Limix
[17:59:56] ruby[bot]: Ox0dea: # => [2, 3, 4] (https://eval.in/530655)
[18:00:04] mustmodify: wait, why didn't that work?
[18:00:16] mustmodify: the bot hates me.
[18:00:44] bricker: has joined #ruby
[18:01:00] y2mq37: has joined #ruby
[18:01:46] ivanskie: has joined #ruby
[18:02:08] IrishGringo: has joined #ruby
[18:02:52] mattwildig: has joined #ruby
[18:03:10] Gasher: hi, in Ruby "./" accesses shell's current folder. how to access the folder in which the Ruby file is located instead?
[18:03:44] shanemcd: has joined #ruby
[18:04:46] Ox0dea: Gasher: `__dir__` should do the trick.
[18:04:48] eam: Gasher: $0 is the path to the script being executed. File.basename will give you the path component
[18:06:19] supplication: has joined #ruby
[18:07:57] Gasher: __dir__ is what I was looking for :)
[18:10:18] Gasher: Ox0dea; you just helped revolutionising Linux package management :D
[18:10:21] al2o3-cr: has joined #ruby
[18:10:36] manveru: Gasher: you also working on Nix? :)
[18:10:46] Gasher: manveru; nope, what is it?
[18:11:04] Ox0dea: Gasher: Is that so? Are you going to unite us all and bring about the year of the Linux desktop?
[18:11:11] manveru: Gasher: http://nixos.org/nix/
[18:11:19] Gasher: Ox0dea; I'll do my best
[18:11:40] Ox0dea: Gasher: Godspeed. :)
[18:11:55] benlieb: has joined #ruby
[18:12:31] LoganG: has joined #ruby
[18:12:57] Gasher: do you hate so many folders for software? /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin and even more?
[18:13:23] rikkipitt: has joined #ruby
[18:13:30] Gasher: my manager will unite everything ^^
[18:13:35] Ox0dea: Arch doesn't really have that problem. ^_^
[18:13:43] despai: has joined #ruby
[18:13:49] Gasher: Ox0dea; it doesn't, but the way they've done it is messy
[18:13:59] Gasher: afaik, I didn't use Arch much
[18:14:02] Guest38: has joined #ruby
[18:14:12] manveru: Gasher: see, nix solved that :P
[18:14:24] pdoherty: has joined #ruby
[18:14:38] manveru: https://xkcd.com/927/
[18:14:44] Canar: Gasher: /home/user/bin don't forget
[18:14:46] Gasher: I'm looking at it, it seems to me that it wants to achieve a similar goal
[18:15:27] Gasher: I'm not sure if the way we do it will be similar
[18:15:31] Gasher: Snappy does the same thing
[18:15:41] codecop: has joined #ruby
[18:15:45] Gasher: Canar; oh yes ;) it varies from distro to distro slightly tho
[18:17:15] Gasher: I have that crazy goal of creating a distro, and I'm creating the package manager to be suited for it, but I think everyone will be able to use it in other places too
[18:17:43] manveru: well, good luck :)
[18:18:17] roobienoobie: has joined #ruby
[18:18:19] Gasher: with Plum, you'll be able to just paste a folder with some software, append a bit of YAML and you're good to go, the app is fully functional
[18:18:21] Gasher: thanks manveru
[18:18:35] snakeryslug: has joined #ruby
[18:18:47] fullofca_: has joined #ruby
[18:18:48] agit0: has joined #ruby
[18:19:28] marr: has joined #ruby
[18:19:33] wtrocki: has joined #ruby
[18:20:03] wtrocki: hi quick question
[18:20:06] wtrocki: def serverConnections=Array.new;
[18:20:06] wtrocki: serverConnections.push(:name => ipaddr,
[18:20:06] wtrocki: :user => defaultUser);
[18:20:20] djbkd: has joined #ruby
[18:20:22] Ox0dea: That's a paddlin'.
[18:20:23] wtrocki: what is the name of the think placed as push argument?
[18:20:35] wtrocki: new to ruby need to do something in chef quickly
[18:20:48] Ox0dea: That's essentially an implicit Hash.
[18:21:03] wtrocki: is there implicit array
[18:21:20] wtrocki: instead of defining Array.new
[18:21:27] wtrocki: thanks a lot
[18:21:31] wtrocki: now I now how to google it
[18:21:41] wtrocki: +10000 for manveru
[18:21:49] wtrocki: thanks a lot - you saved my day
[18:21:53] tftp: has joined #ruby
[18:21:55] Ox0dea: wtrocki: https://eval.in/530674
[18:22:00] Ox0dea: That's what I meant by "implicit".
[18:22:11] Ox0dea: It doesn't have to be a Hash literal like `{a: 1, b: 2}`.
[18:22:12] manveru: what you want is; serverConnections = [{name: ipaddr, user: defaultUser}]
[18:22:27] Ox0dea: manveru: No need for the braces. :)
[18:22:28] Xeago: has joined #ruby
[18:22:42] stannard: has joined #ruby
[18:23:20] eam: >> [0][0]
[18:23:21] ruby[bot]: eam: # => 0 (https://eval.in/530675)
[18:23:33] eam: the robot face
[18:24:15] zeroDivisible: has joined #ruby
[18:24:21] karapetyan: has joined #ruby
[18:24:33] htmldrum: has joined #ruby
[18:24:34] e1z0: has joined #ruby
[18:24:52] eam: Array oughta have #to_int defined as #size
[18:25:16] skade: has joined #ruby
[18:26:37] dfockler: has joined #ruby
[18:27:05] Ox0dea: Ruby should be Perl, you say?
[18:27:13] snakeryslug: hello. very new to ruby. i'm testing out this cli for gmaps distance https://github.com/zavan/google_maps_api-distance_matrix. when i run this ruby file https://gist.github.com/anonymous/0a2c729e53f0646968b9 with `ruby <file>`, i get an uninitialized constant GoogleMapsAPI. I even had this Gemfile https://gist.github.com/anonymous/b2f1e77f77f5c2610852 and ran bundle before i tried to interpret my ruby file. any suggestions on how i
[18:27:13] snakeryslug: should debug this. thank you
[18:27:16] diego3: has joined #ruby
[18:27:27] diego3: has joined #ruby
[18:28:12] ur5us: has joined #ruby
[18:29:00] eam: Ox0dea: every little bit helps
[18:30:56] diego4: has joined #ruby
[18:31:07] diego4: has joined #ruby
[18:31:52] Yiota: has joined #ruby
[18:32:00] manveru: snakeryslug: `bundle exec ruby <file>`
[18:32:27] harryh: has joined #ruby
[18:34:10] snakeryslug: manveru: unfortunately that results in the same error
[18:34:41] rmulligan: has joined #ruby
[18:34:57] drbrain: snakeryslug: you need to require 'google_maps_api/distance_matrix'
[18:35:18] n1colas: has joined #ruby
[18:35:19] jottr_: has joined #ruby
[18:36:47] Limix: has joined #ruby
[18:37:32] snakeryslug: drbrain: it said it can't load such a file.
[18:37:50] Ox0dea: snakeryslug: That should be 'google_maps_api/directions'.
[18:37:57] Ox0dea: You linked to the wrong GitHub repository, I think.
[18:38:06] drbrain: snakeryslug: ↑
[18:38:09] snakeryslug: oh crap. that would make it hard to help me lol
[18:38:19] drbrain: no worries
[18:38:31] drbrain: I didn't look at your Gemfile, so I didn't notice the discrepancy
[18:39:09] treaki: has joined #ruby
[18:39:40] nettoweb: has joined #ruby
[18:39:41] snakeryslug: how did y'all figure that out? i'm getting another strange error, but the googlemapsapi object is initialized.
[18:40:22] elifoster: has joined #ruby
[18:40:50] Ox0dea: eam: Surely you don't *all* of these should be coercible to integers? https://eval.in/530700
[18:40:59] Ox0dea: I accidentally a "think".
[18:41:07] justbleed: has joined #ruby
[18:41:14] juanfra: has joined #ruby
[18:41:36] eam: hm, why not?
[18:42:02] idefine: has joined #ruby
[18:44:44] drbrain: eam: what does {} + 1 equal?
[18:44:56] shanemcd: has joined #ruby
[18:44:57] sandstrom: has joined #ruby
[18:45:19] drbrain: or File.stat('/') + 1?
[18:45:19] eam: one, of course
[18:46:00] roshanavand: has joined #ruby
[18:46:00] adaedra: Did I step into #javascript?
[18:46:29] eam: drbrain: why not?
[18:46:41] drbrain: because {} doesn't have an obvious numeric value
[18:47:18] eam: size is kinda obvious, no?
[18:47:46] eam: anyway I'm not suggesting any of those should - only suggesting []
[18:47:52] drbrain: {}.size + 1 makes sense
[18:47:56] drbrain: but not {} + 1
[18:48:10] drbrain: the types aren't compatible
[18:48:12] eam: but I did entertain Ox0dea's idea with "why not" because it's a fun discussion
[18:48:43] eam: drbrain: I guess it depends if you think there's an inherent numeric trait, it's a bit odd to reason that [] has an inherent size but {} does not
[18:48:52] eam: as they're both collections of objects
[18:49:09] eam: (organizational structure aside)
[18:49:14] snakeryslug: when i ran the script with `bundle exec ruby -wd .\m.rb 2> err.out` and got this error output https://gist.github.com/anonymous/dd87f472a3e519be8ad4
[18:49:31] eam: where this conversation takes a hard turn is when we look at what Perl does with "{} + 1"
[18:49:52] eam: perl -wle'$x={}; print $x + 1' # 140224189443817
[18:50:39] eam: its numeric value is the pointer :(
[18:50:56] eam: obj_id equiv, I suppose
[18:51:16] sp4rrow: has joined #ruby
[18:51:34] eam: anyway I just wanted to write [][[]]
[18:51:59] Rodya_: has joined #ruby
[18:52:01] eam: or [[]][[]]
[18:52:55] davedev24: has joined #ruby
[18:54:20] bricker: has joined #ruby
[18:55:50] ramfjord: has joined #ruby
[18:55:58] nerium: has joined #ruby
[18:56:24] drbrain: oh, if you want to do bizarre things like ↑ I approve!
[18:56:37] n1colas: has joined #ruby
[18:57:11] hangelo: has joined #ruby
[18:57:49] drbrain: snakeryslug: when you add `-d` ruby prints out every exception raised even if it is rescued
[18:58:38] Rodya_: has joined #ruby
[18:58:52] araujo: has joined #ruby
[18:59:27] boboc: has joined #ruby
[18:59:51] drbrain: so if you turn off -d we'll be able to see the problem you're having better
[18:59:56] configged: has joined #ruby
[19:00:37] shanemcd: has joined #ruby
[19:04:05] spider-mario: has joined #ruby
[19:04:46] flughafen_: @list.each { |x| puts "Index: #{@list.index(x)}: #{x.to_s}" } <- this is producing some weird results, the @list.index is printing after x.to_s
[19:04:57] flughafen_: or at least I wouldn't expect it to work that way
[19:06:16] stannard: has joined #ruby
[19:06:19] Guest34101: has joined #ruby
[19:06:42] fostertheweb: has joined #ruby
[19:07:16] adaedra: flughafen_: unrelated, but you can use each_with_index and not have to refetch the index at each iteration.
[19:07:44] chocoelho: has joined #ruby
[19:07:47] flughafen_: thanks adaedra
[19:08:44] neohunter: has joined #ruby
[19:09:11] nibbo: has joined #ruby
[19:11:41] PlasmaStar: has joined #ruby
[19:12:02] pdoherty: has joined #ruby
[19:12:44] ur5us: has joined #ruby
[19:12:51] skweek: has joined #ruby
[19:13:26] graydot: has joined #ruby
[19:13:50] idefine: has joined #ruby
[19:14:23] Xeago: has joined #ruby
[19:15:36] idefine: has joined #ruby
[19:16:05] the_drow: has joined #ruby
[19:16:31] kirun: has joined #ruby
[19:18:21] sucks: has joined #ruby
[19:19:31] inukshuk_: has joined #ruby
[19:20:16] wildlander: has joined #ruby
[19:20:49] flughafen_: >> puts "hi"
[19:21:18] adaedra: flughafen_: need to be registered.
[19:21:30] InternetFriend: has joined #ruby
[19:21:54] kirillzh: has joined #ruby
[19:22:03] flughafen_: >> puts "hi"
[19:22:04] ruby[bot]: flughafen_: # => hi ...check link for more (https://eval.in/530731)
[19:22:42] dfockler: has joined #ruby
[19:22:56] gigetoo: has joined #ruby
[19:23:00] kirillzh: has joined #ruby
[19:24:41] lvn: has joined #ruby
[19:25:05] fullofcaffeine: has joined #ruby
[19:26:01] mdw: has joined #ruby
[19:26:22] baweaver: has joined #ruby
[19:28:51] rmulligan: has joined #ruby
[19:30:15] SCHAAP137: has joined #ruby
[19:32:15] axl_: has joined #ruby
[19:33:58] fullofca_: has joined #ruby
[19:33:59] eregi: has joined #ruby
[19:36:18] Cohedrin: has joined #ruby
[19:38:58] eregi_: has joined #ruby
[19:39:32] FooMunki: has joined #ruby
[19:39:51] kirillzh: has joined #ruby
[19:40:34] TomyLobo: has joined #ruby
[19:40:39] Dimik: has joined #ruby
[19:41:10] ASTP001: has joined #ruby
[19:41:33] ASTP001: has joined #ruby
[19:41:42] fullofcaffeine: has joined #ruby
[19:44:28] Azure: has joined #ruby
[19:44:33] e4xit: has joined #ruby
[19:45:21] Authenticator: has joined #ruby
[19:45:39] ASTP001: has joined #ruby
[19:46:09] ASTP001: has left #ruby: ()
[19:47:02] idefine: has joined #ruby
[19:47:10] Authenticator: Does anyone here have experience with Keyczar? I'm trying to replicate an older program either manually (parse Keyczar format, handle raw RSA ...) or using the keyczar_ruby library.
[19:47:24] flughafen_: >> class a; def to_s() ; puts "x"; end; end;
[19:47:25] ruby[bot]: flughafen_: # => /tmp/execpad-8b10ec82f134/source-8b10ec82f134:2: class/module name must be CONSTANT ...check link for more (https://eval.in/530733)
[19:48:52] dgncn: has joined #ruby
[19:50:25] BtcBen: has joined #ruby
[19:50:57] Limix: has joined #ruby
[19:51:20] hxegon: has joined #ruby
[19:51:35] Ox0dea: eam: That was sort of the point I meant to make; it'd be "surprising" for Array to coerce by way of #size if those semantics weren't applied to everything else in that list.
[19:51:54] snakeryslug: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[19:53:25] skade: has joined #ruby
[19:56:06] hxegon: has joined #ruby
[19:57:24] bitemyapp: has joined #ruby
[19:57:31] bitemyapp: I'm using standalone migrations and can't get it to generate a structure.sql that doesn't have the "SQL_ASCII" encoding. I feel like I'm doing something wrong as I've set the encoding to unicode or utf8 in my database configs and that changes nothing. What do I need to do?
[19:57:52] bitemyapp: I documented my issue a bit here: https://github.com/thuss/standalone-migrations/issues/118
[19:59:19] idletask: I was waaay too optimistic
[19:59:24] baweaver: has joined #ruby
[19:59:45] jeanlinux: has joined #ruby
[20:00:46] statelesscode: has joined #ruby
[20:01:52] Rodya_: has joined #ruby
[20:02:47] _whitelogger: has joined #ruby
[20:02:52] uglybandersnatch: has joined #ruby
[20:03:46] Don_John: has joined #ruby
[20:06:12] idefine: has joined #ruby
[20:07:33] ur5us: has joined #ruby
[20:07:41] idefine_: has joined #ruby
[20:07:54] mattwildig: has joined #ruby
[20:08:16] flughafen_: >> class A; def to_s() ; puts "x"; end; end; a = A.new ; puts a.to_s
[20:08:18] ruby[bot]: flughafen_: # => x ...check link for more (https://eval.in/530736)
[20:08:44] amargherio: has joined #ruby
[20:09:12] rikkipitt: has joined #ruby
[20:10:37] flughafen_: >> class A; def to_s() ; puts "x"; end; end; class B; @a = A.new; def to_s(); puts "Y #{a.to_s}" ; end;end b = B.new ; b.to_s
[20:10:38] ruby[bot]: flughafen_: # => /tmp/execpad-542f3fae4e33/source-542f3fae4e33:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/530740)
[20:11:13] GinoManWorks: has joined #ruby
[20:11:18] Ox0dea: ruby[bot]: Custom definitions of #to_s must return a String, not nil.
[20:11:21] Ox0dea: flughafen_: ^
[20:13:04] flughafen_: >> class A; def to_s() ; puts "x"; end; end; class B; @a = A.new; def to_s(); puts "Y #{@a.to_s}" ; end;end; b = B.new ; b.to_s
[20:13:05] ruby[bot]: flughafen_: # => Y ...check link for more (https://eval.in/530744)
[20:13:16] flughafen_: that's hella truncated output
[20:13:57] Ox0dea: https://eval.in/530745
[20:13:57] roshanavand: has joined #ruby
[20:15:03] flughafen_: Ox0dea: i'll try that. i'm having an issue where I call to_s from one object that calls another to_s , while the data prints out is correct, it's printing in the wrong order.
[20:15:27] Ox0dea: flughafen_: Might just be something weird with your environment?
[20:15:52] bricker: has joined #ruby
[20:16:01] Ox0dea: A stray '\r' returning the cursor to the beginning of the line or some such.
[20:16:28] flughafen_: Ox0dea: that fixed it. i removed the puts and just did "return foobar"
[20:17:26] crowell: has joined #ruby
[20:18:36] robbyoconnor: has joined #ruby
[20:18:38] robbyoconnor: has joined #ruby
[20:18:49] graffix: has joined #ruby
[20:19:17] uglybandersnatch: has joined #ruby
[20:19:57] mustmodify: has left #ruby: ()
[20:21:06] Shaboum: has joined #ruby
[20:21:13] mdw: has joined #ruby
[20:22:37] stannard: has joined #ruby
[20:22:56] rmulligan: has joined #ruby
[20:23:08] Scripore: has joined #ruby
[20:23:21] Ox0dea: idletask: Ruby really does have an ungodly amount of syntax.
[20:23:51] Ox0dea: You'll lose far less hair by interfacing with one of the established parsers.
[20:23:56] nennes: has joined #ruby
[20:25:13] Ox0dea: Ripper, zenspider/ruby_parser, and whitequark/parser will all happily spit out S-expressions representing a given Ruby AST, and those'll be much more pleasant to work with.
[20:27:04] glcx: has joined #ruby
[20:27:04] glcx: has joined #ruby
[20:28:55] baweaver: has joined #ruby
[20:29:03] glcx: has joined #ruby
[20:29:42] sp4rrow: has joined #ruby
[20:29:54] Coldblackice: has joined #ruby
[20:31:06] trosborn: has joined #ruby
[20:31:51] shanemcd: has joined #ruby
[20:32:21] hahuang65: has joined #ruby
[20:33:45] KensoDev: has joined #ruby
[20:35:30] jottr: has joined #ruby
[20:38:07] idefine: has joined #ruby
[20:40:07] LoneHerm_: has joined #ruby
[20:42:39] treehug88: has joined #ruby
[20:43:23] Xeago: has joined #ruby
[20:43:31] deuxclique: has joined #ruby
[20:44:21] pdoherty: has joined #ruby
[20:44:41] hxegon: has joined #ruby
[20:44:53] deuxclique: has joined #ruby
[20:46:08] elifoster: has joined #ruby
[20:46:10] deuxcliq_: has joined #ruby
[20:47:49] deuxcliq_: has joined #ruby
[20:47:51] tomaz_b: has joined #ruby
[20:48:05] vdamewood: has joined #ruby
[20:48:07] supplication: has joined #ruby
[20:51:19] snowy: has joined #ruby
[20:51:32] jenrzzz: has joined #ruby
[20:51:43] aswen: has joined #ruby
[20:54:19] devbug: has joined #ruby
[20:54:34] idefine: has joined #ruby
[20:54:46] deuxclique: has joined #ruby
[20:55:56] al2o3-cr: has joined #ruby
[20:55:56] [Butch]: has joined #ruby
[20:56:32] sneakerhax: has joined #ruby
[20:56:44] idefine: has joined #ruby
[20:59:06] blackmesa: has joined #ruby
[20:59:34] devbug: has joined #ruby
[21:02:38] n00bDev: has joined #ruby
[21:04:07] Rodya_: has joined #ruby
[21:04:11] rattatmatt: has joined #ruby
[21:04:31] failshell: has joined #ruby
[21:04:50] Alina-malina: has joined #ruby
[21:04:58] infernix: has joined #ruby
[21:05:51] rikkipitt: has joined #ruby
[21:09:37] bricker: has joined #ruby
[21:09:54] FernandoBasso: has joined #ruby
[21:10:01] crystal77: has joined #ruby
[21:10:20] johnmilton: has joined #ruby
[21:11:23] Xeago: has joined #ruby
[21:11:38] sgambino: has joined #ruby
[21:11:43] shanemcd: has joined #ruby
[21:11:45] johnmilton: has joined #ruby
[21:13:13] fullofcaffeine: has joined #ruby
[21:13:20] johnmilton: has joined #ruby
[21:15:04] devbug_: has joined #ruby
[21:15:13] despai: has joined #ruby
[21:15:42] zapata: has joined #ruby
[21:17:06] rmulligan: has joined #ruby
[21:18:10] kt2: has joined #ruby
[21:18:48] Mio-chan_: has joined #ruby
[21:18:50] Xeago: has joined #ruby
[21:18:57] Mio-chan_: has joined #ruby
[21:19:04] croberts: has joined #ruby
[21:19:28] cdg: has joined #ruby
[21:20:26] phatypus: has joined #ruby
[21:21:33] Xeago: has joined #ruby
[21:21:59] uglybandersnatch: has joined #ruby
[21:23:23] trosborn: has joined #ruby
[21:23:43] spuk: has joined #ruby
[21:25:29] diegoviola: has joined #ruby
[21:25:44] shanemcd: has joined #ruby
[21:26:19] baweaver: has joined #ruby
[21:26:35] evidex: has joined #ruby
[21:26:52] jxs_: has joined #ruby
[21:27:55] RTG`: has joined #ruby
[21:28:29] gizless: has joined #ruby
[21:29:44] sp4rrow: has joined #ruby
[21:31:46] HalcyonicStorm: has joined #ruby
[21:32:19] rikkipitt: has joined #ruby
[21:36:56] shanemcd: has joined #ruby
[21:37:51] davedev24: has joined #ruby
[21:39:10] x77686d: has joined #ruby
[21:40:00] gizmore: has joined #ruby
[21:40:35] nogic: has joined #ruby
[21:41:06] baweaver: has joined #ruby
[21:41:27] Limix: has joined #ruby
[21:42:18] Limix: Hi, if running a rake task every 3 minutes, is it better to use something like sidekiq or just schedule a cron job?
[21:43:26] eurialo: has joined #ruby
[21:44:41] DmitryBochkarev: has joined #ruby
[21:45:29] lemur: has joined #ruby
[21:48:16] fullofcaffeine: has joined #ruby
[21:51:04] bluOxigen_: has joined #ruby
[21:51:46] bedouin: has joined #ruby
[21:52:30] mdw: has joined #ruby
[21:56:57] devbug: has joined #ruby
[21:57:05] firstdayonthejob: has joined #ruby
[22:01:35] nogic: has joined #ruby
[22:01:46] diegoviola: has joined #ruby
[22:02:30] nogic: has joined #ruby
[22:03:29] nogic: has joined #ruby
[22:04:09] fullofcaffeine: has joined #ruby
[22:04:23] nogic: has joined #ruby
[22:05:32] techietrash: has joined #ruby
[22:06:46] eregi: has joined #ruby
[22:07:17] Rodya_: has joined #ruby
[22:11:15] jeanlinux: has joined #ruby
[22:11:23] terlar: has joined #ruby
[22:11:26] rmulligan: has joined #ruby
[22:12:01] snowy: has joined #ruby
[22:13:00] mdw: has joined #ruby
[22:13:43] baweaver: has joined #ruby
[22:15:30] devbug: has joined #ruby
[22:15:41] jenrzzz: has joined #ruby
[22:16:29] nogic: has joined #ruby
[22:16:33] phatypus: has joined #ruby
[22:16:51] Guest34101: has joined #ruby
[22:17:06] norc: has joined #ruby
[22:18:52] terlar: has joined #ruby
[22:21:23] baweaver: has joined #ruby
[22:22:03] Kilo`byte: has joined #ruby
[22:22:22] Kilo`byte: evening, got a question regarding the readline api.
[22:23:06] Kilo`byte: how can i maintain different instances of readline at the same time. In this case i have multiple file descriptors at the same time each of which should have a different history on it's readline. How would be the best approach to that
[22:23:24] Kilo`byte: the readline api in the standard lib doesn't seem to support that
[22:23:36] shellie_: has joined #ruby
[22:27:05] jhass: I vaguely remember readline to have state in C globals, so wouldn't be too surprised to find out that it's impossible
[22:27:30] jeanlinux: has joined #ruby
[22:28:45] LoneHermit: has joined #ruby
[22:29:11] jhass: in case I'm right, your best bet probably is a multiprocess model with a master controlling them through DRb or something
[22:31:24] bryancp: has joined #ruby
[22:31:38] stannard: has joined #ruby
[22:32:25] karapetyan: has joined #ruby
[22:33:06] htmldrum: has joined #ruby
[22:34:41] charliesome: has joined #ruby
[22:35:01] davedev24: has joined #ruby
[22:36:34] trinaldi: has joined #ruby
[22:40:36] RickHull: has joined #ruby
[22:40:43] RickHull: http://www.rubydoc.info/ # HTTP 503
[22:40:51] Kilo`byte: gah, was hoping i could avoid that...
[22:40:51] Papierkorb: Kilo`byte: Maybe Coolline can do that. (But really, no idea)
[22:40:56] zenlot6: has joined #ruby
[22:41:15] RickHull: what's another rdoc hosting site?
[22:41:34] Papierkorb: RickHull: rubydoc works fine here
[22:41:48] RickHull: oh, works now. thx
[22:42:00] devbug: has joined #ruby
[22:42:06] Papierkorb: RickHull: for everything else, $ yard server --gems
[22:42:23] Kilo`byte: Papierkorb: thanks for that pointer will check it out
[22:42:32] hangelo: has joined #ruby
[22:42:46] Kilo`byte: does look pretty cool though so even if it doesn't support it it's worth a look ^^
[22:43:44] shanemcd: has joined #ruby
[22:43:52] phatypus: has joined #ruby
[22:44:03] jenrzzz: has joined #ruby
[22:44:38] skweek: has joined #ruby
[22:47:57] eregi: has joined #ruby
[22:48:38] jeanlinux: has joined #ruby
[22:48:51] sudoubuntu: has joined #ruby
[22:53:40] charliesome_: has joined #ruby
[22:55:49] chouhoul_: has joined #ruby
[22:56:07] nogic: has joined #ruby
[22:56:45] mdw: has joined #ruby
[22:56:58] iooner: has joined #ruby
[22:57:02] nogic: has joined #ruby
[22:57:45] nogic: has joined #ruby
[22:59:13] eregi: has joined #ruby
[23:01:11] devbug: has joined #ruby
[23:01:27] dgncn: has joined #ruby
[23:04:25] diego3: has joined #ruby
[23:05:03] jenrzzz: has joined #ruby
[23:05:36] rmulligan: has joined #ruby
[23:06:43] sp4rrow: has joined #ruby
[23:08:57] mdw: has joined #ruby
[23:08:57] iooner: has joined #ruby
[23:09:12] intrigueD: has joined #ruby
[23:09:14] devbug: has joined #ruby
[23:09:34] Rodya_: has joined #ruby
[23:09:58] jottr: has joined #ruby
[23:10:38] GBrawl: has joined #ruby
[23:11:28] Xeago: has joined #ruby
[23:12:39] devbug: has joined #ruby
[23:13:21] shanemcd: has joined #ruby
[23:14:54] sp4rrow: has joined #ruby
[23:16:24] devbug__: has joined #ruby
[23:17:51] pawnbox: has joined #ruby
[23:17:52] Xeago: has joined #ruby
[23:21:59] iooner: has joined #ruby
[23:22:51] charliesome: has joined #ruby
[23:23:15] cjbottaro: has joined #ruby
[23:23:34] baweaver: has joined #ruby
[23:23:35] mondok: has joined #ruby
[23:23:36] shanemcd: has joined #ruby
[23:23:50] aredridel: has joined #ruby
[23:26:38] Gasher: has joined #ruby
[23:26:53] deuxclique: has joined #ruby
[23:29:34] spleeze: has joined #ruby
[23:32:41] djbkd: has joined #ruby
[23:35:19] jobewan: has joined #ruby
[23:36:33] Xeago: has joined #ruby
[23:36:55] kirillzh: has joined #ruby
[23:37:37] jottr: has joined #ruby
[23:38:51] kirillzh: has joined #ruby
[23:40:20] failshell: has joined #ruby
[23:42:23] jottr_: has joined #ruby
[23:43:04] KensoDev: has joined #ruby
[23:45:04] solocshaw: has joined #ruby
[23:46:15] lemur: has joined #ruby
[23:52:36] bollullera: has joined #ruby
[23:53:33] A124: has joined #ruby
[23:53:57] spuk: has joined #ruby
[23:57:04] pragmatism: has joined #ruby
[23:57:49] diegoviola: has joined #ruby
[23:58:56] pawnbox: has joined #ruby
[23:59:03] bollullera: has left #ruby: ()
[23:59:46] rmulligan: has joined #ruby