« Back to channel list

#ruby - 17 January 2016

« Back 1 day Forward 1 day »
[00:00:18] apeiros: hell no :D
[00:00:19] corecode: well, ruby libusb segfaults
[00:00:42] apeiros: I think both of my suggestions are better. the one with the method being the better of the two.
[00:01:54] lucasb: apeiros: hm, ok. let's agree that there's more than way to do it :)
[00:02:14] corecode: i think tap is elegant enough
[00:02:34] apeiros: lucasb: your 1.times do ??? end is essentially the same as ->(){}.(), just more convoluted :)
[00:02:52] apeiros: or rather, even less intention revealing?
[00:03:27] corecode: how does that create a newly scoped variable?
[00:03:43] jxs_: has joined #ruby
[00:04:25] apeiros: though, both possible "that"'s do it the same way - by having their own scope.
[00:04:53] lucasb: the only thing I don't like about 1.times is the singular/plural mismatch :)
[00:04:57] corecode: 1.times do ... end
[00:05:17] lucasb: corecode: ^^ that's a block, and it has it's own scope
[00:05:18] volty: the only 'clean' way to get it is to eval "lambda { #{val} }"
[00:05:32] volty: so that you have an immediate value
[00:05:44] corecode: lucasb: oh, on the outside; yes.
[00:05:52] apeiros: volty: immediates are not that
[00:05:59] volty: otherwise you end with soup code or ...
[00:06:15] volty: apeiros: sorry, i meant a constant value
[00:06:16] apeiros: nil, true, false, fixnums and symbols are immediates.
[00:06:23] corecode: well, anyways, seems i can't use it anyways
[00:06:36] corecode: because libusb is crashing the program
[00:06:46] corecode: so no parallelism for me
[00:07:03] user083: has joined #ruby
[00:07:23] apeiros: corecode: no parallelism in a part of your app maybe
[00:07:40] apeiros: unless libusb has a problem even when interfacing with it is unthreaded.
[00:08:18] volty: corecode: where it crashes, at start ?
[00:08:20] corecode: i am unthreaded
[00:08:32] corecode: i'm just submitting transfers in parallel
[00:08:37] corecode: after a while, poof
[00:08:41] apeiros: corecode: ok, then I don't get your "no parallelism for me" comment
[00:08:47] CloCkWeRX: has joined #ruby
[00:08:50] apeiros: sounded like you had issues with libusb when using it in a threaded app.
[00:09:05] corecode: no, single thread, multiple outstanding transfers
[00:09:12] volty: corecode: do you call ruby methods on return values from usblib ?
[00:09:43] corecode: volty: i do what?
[00:10:12] volty: it happened to me with String#sub on lib values, for example
[00:10:35] volty: external references come and go
[00:10:38] karapetyan: has joined #ruby
[00:10:47] volty: (happened with taglib)
[00:11:07] myntcake: has joined #ruby
[00:11:28] apeiros: sounds like a bug
[00:12:15] volty: apeiros: it all works fine now, just passing my filename along, instead of using taglib's Fileref.filename (or like that)
[00:13:46] tubuliferous_: has joined #ruby
[00:16:08] d0nn1e: has joined #ruby
[00:23:06] gbgdev: has joined #ruby
[00:25:21] tuelz1: has joined #ruby
[00:27:42] chipotle: has joined #ruby
[00:28:35] zacts: has joined #ruby
[00:29:01] cpup: has joined #ruby
[00:29:11] zeroDivisible: has joined #ruby
[00:29:36] awox: is there a basic equivalent to pylint?
[00:29:55] awox: something that will tell me why my code is terrible without having to show another human would be nice
[00:30:13] sandstrom: has joined #ruby
[00:30:13] havenwood: awox: rubocop is one option
[00:30:40] pawnbox: has joined #ruby
[00:31:23] awox: 1 file inspected, 42 offenses detected
[00:32:14] awox: Use 2 (not 4) spaces for indentation.
[00:32:22] awox: is this a thing?
[00:32:28] havenwood: awox: Absolutely.
[00:33:01] awox: what if I use tabs instead?
[00:33:19] zacts: has joined #ruby
[00:33:25] havenwood: awox: Nooo. Two-spaced soft tabs.
[00:33:27] awox: holy crap 100 offenses
[00:33:49] awox: rubocop is even easier to piss off than my girlfriend
[00:34:38] bronson: has joined #ruby
[00:34:44] awox: Space inside parentheses detected.
[00:34:56] awox: why is this a thing?
[00:35:17] awox: @doc.root << ( XML::Node.new('entity') << entity ) is much more readable than @doc.root << (XML::Node.new('entity') << entity) no?
[00:36:15] chipotle: has joined #ruby
[00:37:02] jhass: I'd prefer a local there actually
[00:37:10] awox: a local?
[00:37:30] havenwood: >> local_variables
[00:37:31] ruby[bot]: havenwood: # => [] (https://eval.in/503206)
[00:37:45] jhass: container = XML::Node.new('entity'); root << entity; @doc.root << container
[00:37:55] jhass: eh s/root/container/
[00:39:44] hannelita: has joined #ruby
[00:40:49] pawnbox: has joined #ruby
[00:41:14] Yzguy: has joined #ruby
[00:41:59] janebootydoe: has joined #ruby
[00:43:48] snowball_: has joined #ruby
[00:43:54] usershell: has joined #ruby
[00:44:55] casadei: has joined #ruby
[00:45:05] sleepee: has joined #ruby
[00:45:17] janebootydoe: has joined #ruby
[00:45:22] northfurr: has joined #ruby
[00:45:33] Mon_Ouie: has joined #ruby
[00:45:35] usershell: has joined #ruby
[00:47:04] al2o3-cr: has joined #ruby
[00:47:22] sandstrom: has joined #ruby
[00:49:06] northfurr: has joined #ruby
[00:50:56] chipotle: has joined #ruby
[00:53:03] pawnbox: has joined #ruby
[00:53:18] awox: https://gist.github.com/kbni/85c28e8d24a1007e4a86 behold my terrible first ruby thing (for anyone interested in offering harsh feedback)
[00:54:26] awox: not sure how I feel about the whole @ thing, but I think using self. behaves differently :S
[00:54:59] ericfreese: has joined #ruby
[00:58:00] dlitvak: has joined #ruby
[00:58:12] B1n4r10: has joined #ruby
[01:02:30] JohnT: has joined #ruby
[01:03:06] newbie: has joined #ruby
[01:03:19] disconnekted: has joined #ruby
[01:03:27] chipotle: has joined #ruby
[01:04:48] hahuang65: has joined #ruby
[01:05:02] sandstrom: has joined #ruby
[01:05:08] crdpink2: has joined #ruby
[01:05:20] pawnbox: has joined #ruby
[01:05:47] aspire: has joined #ruby
[01:06:28] emilford: has joined #ruby
[01:07:19] cndiv: has joined #ruby
[01:08:33] jackjackdripper: has joined #ruby
[01:11:47] casadei: has joined #ruby
[01:12:27] jamw: has joined #ruby
[01:15:06] atmosx: I wonder, can capistrano be used to connect via cli to a remote host and issue instructions to a postgresql db? like create new role etc.
[01:16:17] chipotle: has joined #ruby
[01:17:38] pawnbox: has joined #ruby
[01:20:06] freerobby: has joined #ruby
[01:21:47] myntcake: has joined #ruby
[01:22:13] sandstrom: has joined #ruby
[01:23:32] northfurr: has joined #ruby
[01:26:06] tuelz1: has joined #ruby
[01:28:00] dlitvak: has joined #ruby
[01:29:05] arob: has joined #ruby
[01:29:39] ico: has joined #ruby
[01:29:53] hannelita: has joined #ruby
[01:30:00] pawnbox: has joined #ruby
[01:30:09] cholq: has joined #ruby
[01:33:13] nchambers: has joined #ruby
[01:34:20] Channel6: has joined #ruby
[01:37:21] rkazak: has joined #ruby
[01:39:24] sandstrom: has joined #ruby
[01:41:18] marcdel: has joined #ruby
[01:42:15] pawnbox: has joined #ruby
[01:43:02] dangeranger: has joined #ruby
[01:43:14] jamw: has joined #ruby
[01:44:25] DLSteve: has joined #ruby
[01:44:25] hahuang65: has joined #ruby
[01:46:38] blackmesa: has joined #ruby
[01:47:21] ruby[bot]: -bbbb $a:phreakocious phreakocious!*@* *!*@recalcitrant.phreakocious.net jackcom!*@*
[01:47:21] ruby[bot]: -bb $a:jackcom *!*@unaffiliated/jackcom
[01:47:21] ruby[bot]: -qqq *!*@gateway/web/freenode/ip.95.141.47.72 ihatemiggers!*@* chusucksdick!*@*
[01:49:21] ruby[bot]: -bbbb $a:phreakocious phreakocious!*@* *!*@recalcitrant.phreakocious.net jackcom!*@*
[01:49:21] ruby[bot]: -bb $a:jackcom *!*@unaffiliated/jackcom
[01:49:21] ruby[bot]: -qqq *!*@gateway/web/freenode/ip.95.141.47.72 ihatemiggers!*@* chusucksdick!*@*
[01:52:11] yeticry: has joined #ruby
[01:53:41] ruby[bot]: has joined #ruby
[01:53:41] ChanServ: +o ruby[bot]
[01:53:52] northfurr: has joined #ruby
[01:54:00] ruby[bot]: -bbb JonathanWilson!*@*$#ruby-banned senayar!*@*$#ruby-fix-your-connection cwong_on_irc*!*@*$#ruby-fix-your-connection
[01:54:01] ruby[bot]: -qqq Jean_Luc!*@* angrywombat!*@* Porcpdio!*@*
[01:54:36] pawnbox: has joined #ruby
[01:57:01] sandstrom: has joined #ruby
[01:58:42] karapetyan: has joined #ruby
[01:58:42] hahuang65: has joined #ruby
[01:59:10] emilford: has joined #ruby
[01:59:31] apeiros: +bbbb $a:phreakocious phreakocious!*@* *!*@recalcitrant.phreakocious.net jackcom!*@*
[01:59:43] apeiros: +bb $a:jackcom *!*@unaffiliated/jackcom
[01:59:58] apeiros: +qqq *!*@gateway/web/freenode/ip.95.141.47.72 ihatemiggers!*@* chusucksdick!*@*
[02:00:34] apeiros: +bbb JonathanWilson!*@*$#ruby-banned senayar!*@*$#ruby-fix-your-connection cwong_on_irc*!*@*$#ruby-fix-your-connection
[02:00:46] apeiros: +qq Jean_Luc!*@* angrywombat!*@*
[02:03:30] chipotle_: has joined #ruby
[02:03:59] ruby[bot]: has joined #ruby
[02:03:59] ChanServ: +o ruby[bot]
[02:04:19] ruby[bot]: -bb *!*@unaffiliated/jackcom *!*@unaffiliated/jackcom
[02:04:19] ruby[bot]: -bb jackcom!*@* jackcom!*@*
[02:04:21] ruby[bot]: -bb phreakocious!*@* phreakocious!*@*
[02:04:21] ruby[bot]: -bbbb |3|ackn|gg3|2!*@*$#ruby-banned roger_g!*@*$#ruby-banned small-chimp!*@*$#ruby-banned doodlehaus!*@*$#ruby-banned
[02:04:23] ruby[bot]: -bbbb klmlfl!*@*$#ruby-banned rau!*@*$#ruby-banned diggernick!*@*$#ruby-banned *DeHiggers!*@*$#ruby-banned
[02:04:23] ruby[bot]: -b JonathanWilson!*@*$#ruby-banned
[02:04:23] ruby[bot]: -qqqq omgtora!*@* txdv!*@* YuhMon!*@* septor!*@*
[02:04:26] akem: has joined #ruby
[02:04:38] ruby[bot]: -qqqq rooby!*@* Jean_Luc!*@* angrywombat!*@* nottora!*@*
[02:04:38] ruby[bot]: -q walla!*@*
[02:04:52] ruby[bot]: -qqq ihatemiggers!*@* chusucksdick!*@* *!*@gateway/web/freenode/ip.95.141.47.72
[02:05:46] apeiros: !unban cwong_on_irc
[02:05:47] ruby[bot]: apeiros: I could not identify any bans matching the nick "cwong_on_irc"
[02:06:20] underplank: has joined #ruby
[02:06:41] pawnbox: has joined #ruby
[02:09:03] al2o3-cr: has joined #ruby
[02:09:23] s00pcan: has joined #ruby
[02:11:21] dorei: there's probably a bug with the bot :p
[02:12:05] arescorpio: has joined #ruby
[02:13:13] ruby[bot]: has joined #ruby
[02:13:14] ChanServ: +o ruby[bot]
[02:13:31] ruby[bot]: -bb $a:jackcom $a:jackcom
[02:13:32] ruby[bot]: -b+b $a:phreakocious $a:phreakocious$#ruby-banned
[02:14:14] sandstrom: has joined #ruby
[02:15:16] hightower2: has joined #ruby
[02:15:30] hightower2: Hey, the only type of variable I can define at the Module level is a constant, right?
[02:15:45] hahuang65: has joined #ruby
[02:15:48] apeiros: hightower2: you can assign to all types of variables
[02:15:56] apeiros: they're just not all associated with the module
[02:16:26] hightower2: apeiros, right, right, I mean the ones which are associated directly to the module
[02:16:30] apeiros: 3 types can be related to the module: constants, instance variables and class variables
[02:19:04] hightower2: Another question, if I run some object.extend() , does the "included" Ruby callback get called, or some other callback?
[02:19:11] pawnbox: has joined #ruby
[02:20:06] kalopsian: has joined #ruby
[02:20:22] hightower2: Oh I see, it has the separate 'extended' callback. Ok.
[02:20:30] hightower2: (http://blog.khd.me/ruby/ruby-callbacks/)
[02:22:33] apeiros: dorei: if it's only one ("a bug"), I'd actually be happy. I fear it's more.
[02:23:38] rodolfowtf: has joined #ruby
[02:23:58] oo7cat: has joined #ruby
[02:26:54] tuelz1: has joined #ruby
[02:31:27] sandstrom: has joined #ruby
[02:31:47] pawnbox: has joined #ruby
[02:39:43] chipotle: has joined #ruby
[02:40:58] dome22xl: has joined #ruby
[02:44:04] pawnbox: has joined #ruby
[02:44:49] cholq: has joined #ruby
[02:45:22] norc_: has joined #ruby
[02:45:25] oo7cat: i can do ruby on windows?
[02:45:31] norc-2: has joined #ruby
[02:45:37] oo7cat: my os is windows xp now
[02:46:14] jackjackdripper: has joined #ruby
[02:48:15] apeiros: oo7cat: yes. ruby runs on windows.
[02:48:18] dome22xl: oo7cat - http://rubyinstaller.org/downloads/
[02:48:29] apeiros: ah, dome22xl was faster.
[02:48:40] sandstrom: has joined #ruby
[02:48:57] oo7cat: http://rubyinstaller.org/downloads/ <?????? this is not original ruby? dome22xl
[02:49:03] dome22xl: Yeah you might need to look in the archives but there is 32bit - 64bit release for XP you'll need a 32bit obviously should be ok
[02:49:48] clueless_arthrop: has joined #ruby
[02:50:21] oo7cat: they may have virus, because it is not public ruby. dome22xl ?
[02:51:09] oo7cat: what os is better for running ruby? apeiros ?
[02:52:20] apeiros: oo7cat: it's the official ruby compiled for windows for you. if you don't want that, you have to compile it yourself. you find the sources linked on ruby-lang.org
[02:52:33] northfurr: has joined #ruby
[02:52:55] apeiros: oo7cat: I'm biased. everything is better than windows for everything but games and ms office.
[02:53:08] rodolfowtf: has joined #ruby
[02:54:38] oo7cat: ok apeiros i want use ide, what ide is good for ruby?
[02:54:44] jamw: has joined #ruby
[02:55:10] apeiros: IMO text editors are sufficient with ruby. but if you insist on an IDE then probably rubymine by jetbrains.
[02:55:19] ruby[bot]: apeiros: I don't know anything about ide
[02:55:52] oo7cat: how about eclipse? apeiros
[02:55:57] pawnbox: has joined #ruby
[02:56:25] apeiros: !fact add ide an IDE is not necessary to develop with ruby. A decent text editor is sufficient. If you truly want an IDE, take a look at RubyMine by JetBrains (https://www.jetbrains.com/ruby/).
[02:56:26] ruby[bot]: apeiros: I will remember that ide is an IDE is not necessary to develop with ruby. A decent text editor is sufficient. If you truly want an IDE, take a look at RubyMine by JetBrains (https://www.jetbrains.com/ruby/).
[02:56:44] apeiros: oo7cat: well, I suppose they've got materials online which can tell you whether it'll work for ruby?
[02:56:51] griffindy: has joined #ruby
[02:57:02] dome22xl: Ecilpse dropped the support for Ruby a while back thats why there are Ruby versions of Eclipse like Rubymine / Komodo
[02:57:34] dome22xl: I just use Geany on Linux
[02:57:41] dome22xl: does the job very well.
[02:57:47] Azure: has joined #ruby
[02:58:11] oo7cat: ok thanks
[02:58:17] cholq: has joined #ruby
[02:58:21] oo7cat: has left #ruby: ()
[02:58:56] dome22xl: I've tried Komodo recently and ok but i didn't get on with it back to Geany
[03:00:38] dome22xl: Just thinking if your on XP then checkout Editplus has Ruby syntax highlighting and supports XP
[03:01:03] dome22xl: https://www.editplus.com/download.html
[03:01:05] fsapo: has joined #ruby
[03:01:30] apeiros: -o apeiros
[03:02:06] Abrin: has joined #ruby
[03:05:15] Limix: has joined #ruby
[03:06:01] sandstrom: has joined #ruby
[03:08:34] fedexo: has joined #ruby
[03:08:41] pawnbox: has joined #ruby
[03:08:41] jbrhbr: has joined #ruby
[03:10:46] dome22xl: aperios - what your opinion of calling a function after unless - i.e print_to_screen(linecounter, text_highlighter(data), quietmode) unless skip(linecounter)
[03:11:37] apeiros: ?tabnick dome22xl
[03:11:37] ruby[bot]: dome22xl: pro-tip - use tab completion for nicks. avoids typos in nicks.
[03:12:04] apeiros: method after unless is fine IMO
[03:13:10] dome22xl: Yeah thought about it the other day yet it kind of had me in the does that look right thing
[03:13:32] krobzaur: has joined #ruby
[03:15:04] dlitvak: has joined #ruby
[03:19:00] rkazak: has joined #ruby
[03:19:37] Ebok: When you have two arrays with variables, ex: foo = [1,1,2,3] ; bar = [1,2]. And you want to get the output foobar = [1,3]. (non set subtraction) is there a good way to go about this? I ended up writing a monkeypatch array the turned one into a string, and iterated sub! over it before joining it again. Feels heavy handed.
[03:19:38] Hanmac1: shevy checkout https://www.youtube.com/watch?v=870OhSp4ai0 ;P
[03:20:35] pawnbox: has joined #ruby
[03:22:10] hightower2: has joined #ruby
[03:23:17] sandstrom: has joined #ruby
[03:23:31] apeiros: Ebok: retaining order? i.e. foo = [1,2,3,1]; foo.your_minus(bar) # => [3,1]?
[03:23:36] dome22xl: foo.first / foo.last ?
[03:23:52] Ebok: I dont care about the order, personally.
[03:24:02] Ebok: Although that seems like a detail that could be important
[03:24:36] Ebok: And yeah, my #my_minus returns [3,1]
[03:25:47] dome22xl: You should probably look at delete_at and index in the Array class
[03:26:36] apeiros: >> foo = [1,1,2,3] ; bar = [1,2]; subtrahend = bar.each_with_object(Hash.new(0)) { |h,e| h[e] += 1 }.to_h; foo.reject { |e| (subtrahend[e] -= 1) > 0 }
[03:27:39] tuelz1: has joined #ruby
[03:27:44] Ebok: I've never seen each_with_object. that's pretty cool
[03:28:48] graffix222: has joined #ruby
[03:30:32] apeiros: ah fuck, I accidentally deleted the channels in the config. so stupid.
[03:30:35] dlitvak: has joined #ruby
[03:31:44] usershell: has joined #ruby
[03:32:48] ruby[bot]: has joined #ruby
[03:32:48] ChanServ: +o ruby[bot]
[03:32:49] pawnbox: has joined #ruby
[03:33:07] Jardayn: has joined #ruby
[03:33:09] ruby[bot]: -b+b *!*@recalcitrant.phreakocious.net *!*@recalcitrant.phreakocious.net$#ruby-banned
[03:34:13] UtkarshRay: has joined #ruby
[03:34:54] ruby[bot]: has joined #ruby
[03:34:54] ChanServ: +o ruby[bot]
[03:35:09] ChanServ: +o ruby[bot]
[03:35:11] ruby[bot]: -b $a:phreakocious$#ruby-banned
[03:35:11] ruby[bot]: -o ruby[bot]
[03:35:18] ChanServ: +o ruby[bot]
[03:35:18] ruby[bot]: -qqq FreeBleeder!*@* mikejonesbra!*@* kikelivestone!*@*
[03:35:18] ruby[bot]: -o ruby[bot]
[03:35:35] ChanServ: +o ruby[bot]
[03:35:48] ruby[bot]: -b *!*@recalcitrant.phreakocious.net$#ruby-banned
[03:39:23] apeiros: >> foo = [1,1,2,3] ; bar = [1,2]; subtrahend = bar.each_with_object(Hash.new(0)) { |h,e| h[e] += 1 }.to_h; foo.reject { |e| (subtrahend[e] -= 1) > 0 }
[03:39:25] ruby[bot]: apeiros: # => no implicit conversion of Hash into Integer (TypeError) ...check link for more (https://eval.in/503210)
[03:39:40] apeiros: >> foo = [1,1,2,3] ; bar = [1,2]; subtrahend = bar.each_with_object(Hash.new(0)) { |e,h| h[e] += 1 }.to_h; foo.reject { |e| (subtrahend[e] -= 1) > 0 }
[03:39:41] ruby[bot]: apeiros: # => [1, 1, 2, 3] (https://eval.in/503211)
[03:40:29] sandstrom: has joined #ruby
[03:41:55] davedev24: has joined #ruby
[03:42:06] bkxd: has joined #ruby
[03:42:34] dlitvak: has joined #ruby
[03:42:43] apeiros: ah, off-by-one. silly me.
[03:42:47] apeiros: >> foo = [1,1,2,3] ; bar = [1,2]; subtrahend = bar.each_with_object(Hash.new(0)) { |e,h| h[e] += 1 }.to_h; foo.reject { |e| (subtrahend[e] -= 1) >= 0 }
[03:42:48] ruby[bot]: apeiros: # => [1, 3] (https://eval.in/503212)
[03:43:03] apeiros: retains order. is O(n+m).
[03:45:56] _Tariq: has joined #ruby
[03:47:17] pawnbox: has joined #ruby
[03:47:41] Ebok: Very cool aperios
[03:47:45] Ebok: thankyou
[03:47:58] terminalrecluse: has joined #ruby
[03:48:17] apeiros: ?tabnick Ebok
[03:48:17] ruby[bot]: Ebok: pro-tip - use tab completion for nicks. avoids typos in nicks.
[03:48:25] apeiros: it's one of those days???
[03:48:59] Nilium: I wrote my own IRC client and my tab-complete just writes out apeiros.
[03:50:11] Abrin: I have a super n00b question I hope someone can help me with please.
[03:51:27] dlitvak: has joined #ruby
[03:52:01] Abrin: Is there a way to change the verison of ruby you are using via the cmd line in Windows.
[03:52:15] Abrin: My default is 2 but I am follow a book that using 1.9.3
[03:53:54] Abrin: sorry if that is a truly stupid question. I am so used to living in a point and click world so the command line is cryptic and exotic to me.
[03:54:02] havenwood: Abrin: 1.9 is past end of life so maybe just use 2 anyways. One option for switching on Windows is uru: https://bitbucket.org/jonforums/uru
[03:54:09] erlang437: has joined #ruby
[03:55:25] Abrin: havenwood: Thanks for the option. Sadly, the baby beginners book I have is for 1.9.3 so that is why I was using them both.
[03:55:48] apeiros: Abrin: about everything which works in 1.9, works the same in 2.x
[03:57:50] pawnbox: has joined #ruby
[03:58:38] Abrin: oh! I've ran into two problems so far that have been vexing me. One was I couldn't get ARVG to pass variables written in a piece of code as the tutorial suggested and then I switched to this book and then I just had a synax error that I don't understand why I got. I'll keep hitting my head against it. If they both should work then the problem by default has got to be something I am doing. Thanks so much for the great advice. :)
[03:59:36] Abrin: I don't know much about Ruby at all so I was kind of fearful that I was in a Python like situation where everything changed so much between 2 and 3.
[03:59:40] Bulo: has joined #ruby
[04:00:49] casadei: has joined #ruby
[04:02:22] govg: has joined #ruby
[04:02:31] apeiros: Abrin: I go offline now. but gist your code (gist.github.com) and your exception, then somebody certainly will help you.
[04:02:36] apeiros: s/offline/afk/
[04:03:35] fedexo: has joined #ruby
[04:04:11] Abrin: I am going to assume that the problem is on my end since it the the safest bet so I'll just keep hitting my head against it. I really do appreciate everyone's help since it does let me know that I should be fine with either verison. You all are super awesome. Thanks. <3
[04:06:00] bronson: has joined #ruby
[04:07:03] BTRE: has joined #ruby
[04:07:18] wsewolod: has joined #ruby
[04:09:43] pawnbox: has joined #ruby
[04:10:07] jamw: has joined #ruby
[04:11:04] Yzguy: has joined #ruby
[04:14:20] RobertBirnie: has joined #ruby
[04:17:43] braincrash: has joined #ruby
[04:17:49] dlitvak_: has joined #ruby
[04:18:38] hannelita: has joined #ruby
[04:25:02] sandstrom: has joined #ruby
[04:27:20] fedexo_: has joined #ruby
[04:28:23] tuelz1: has joined #ruby
[04:30:39] govg: has joined #ruby
[04:34:28] pawnbox: has joined #ruby
[04:36:41] colegatron: has joined #ruby
[04:37:39] oo7cat: has joined #ruby
[04:38:03] howdoicomputer: has joined #ruby
[04:38:12] oo7cat: i don???t know the meaning of ???API???, who can explaint it to me easily?
[04:38:15] symm-: has joined #ruby
[04:38:33] _Tariq: oo7cat: An API is the public methods that you can call on an object
[04:38:54] _Tariq: many websites have an API, which allows you to call certain methods and get results
[04:39:01] _Tariq: but some of those methods are private and are not part of the API
[04:39:45] oo7cat: oh thanks _Tariq, if API is made with java, then i can call it with ruby?
[04:40:07] oo7cat: if API is made by java, then i can call it with ruby?
[04:40:52] hypermist: has joined #ruby
[04:41:28] hypermist: I cannot tell if this is the right place to ask this as its rails/rake
[04:41:46] northfurr: has joined #ruby
[04:41:53] _Tariq: oo7cat: I don.
[04:41:59] hypermist: Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 6 column 3
[04:42:00] hypermist: i get this error, when i run bundle exec rake db:setup
[04:42:00] hypermist: , i've checked the yaml, its vaild
[04:42:06] _Tariq: oo7cat: I don't think so.
[04:42:08] ByronJohnson: has joined #ruby
[04:42:09] _Tariq: It was a typo on my end.
[04:42:12] sandstrom: has joined #ruby
[04:42:26] oo7cat: thanks _Tariq
[04:42:38] dlitvak: has joined #ruby
[04:42:39] oo7cat: i want make API of ruby hyperdri-
[04:42:44] oo7cat: hypermist:
[04:43:01] hypermist: what oo7cat ?
[04:43:20] oo7cat: API question.
[04:43:31] oo7cat: is related with ruby hypermist
[04:43:46] hypermist: I dont know anything about ruby
[04:44:50] _Tariq: oo7cat: Usually when you hear about APIs, it's really in relation to websites
[04:45:15] _Tariq: for example. www.example.com/users/1/profile/super_profile/
[04:45:44] _Tariq: So if you want to make an API that other people can use, even if they don't have the same language, you generally have to make a website
[04:45:59] _Tariq: Which would mean using a Ruby framework such as Ruby on Rails
[04:46:07] _Tariq: There's even a project called Rails-API
[04:46:11] _Tariq: that can help you with making an API
[04:46:16] _Tariq: but I don't know the exact details.
[04:46:40] pawnbox: has joined #ruby
[04:46:46] _Tariq: As for your Java question, if your Java API is online, so you can interact with the API using curl, browser, etc.
[04:47:23] _Tariq: then maybe you can write a Ruby program to interact with that Java API by having that Ruby program act as a virtual browser
[04:47:27] _Tariq: I'm sorry if this sounds way too technical.
[04:48:09] oo7cat: it is very helpful to me thanks :)
[04:48:35] RenatoSilva: has joined #ruby
[04:48:42] _Tariq: you're welcome
[04:48:43] ohaibbq: has joined #ruby
[04:52:12] nerium: has joined #ruby
[04:53:49] symm-: has joined #ruby
[04:54:01] karen96: has joined #ruby
[04:54:14] karen96: has left #ruby: ()
[04:55:59] dlitvak: has joined #ruby
[04:57:32] hypermist: is rails or rake apart of ruby
[04:57:34] gix: has joined #ruby
[04:59:02] pawnbox: has joined #ruby
[04:59:05] sandstrom: has joined #ruby
[04:59:33] RenatoSilva: has left #ruby: ("http://pidgin.renatosilva.me - Pidgin++")
[05:00:51] Dicki: has joined #ruby
[05:02:13] casadei: has joined #ruby
[05:02:19] Radar: rake comes with Ruby by default
[05:02:29] Radar: rails is a gem which is an optional package that you can choose to install
[05:02:39] freerobby: has joined #ruby
[05:03:01] hypermist: Radar, only reason i asked that is because
[05:03:15] hypermist: Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 6 column 3 i get this error, when i run bundle exec rake db:setup
[05:03:22] hypermist: i've also checked the yml file
[05:03:26] Radar: hypermist: Your database.yml is badly formatted.
[05:03:30] Radar: ?rails hypermist
[05:03:30] ruby[bot]: hypermist: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[05:03:38] hypermist: well i did a yml test and it was nice haha
[05:06:52] _Tariq: has joined #ruby
[05:07:00] renderful: has joined #ruby
[05:07:44] bluOxigen: has joined #ruby
[05:07:57] puria: has joined #ruby
[05:08:49] agent_white: has joined #ruby
[05:09:36] Radar: good evening agent_white
[05:10:33] yon0: has joined #ruby
[05:10:39] yon0: has left #ruby: ("+++")
[05:11:09] pawnbox: has joined #ruby
[05:14:30] Meow-J: has joined #ruby
[05:14:41] agent_white: has joined #ruby
[05:16:13] sandstrom: has joined #ruby
[05:17:17] Fezzler: has joined #ruby
[05:18:00] govg: has joined #ruby
[05:20:53] ericfreese: has joined #ruby
[05:23:24] ponga: has joined #ruby
[05:23:28] pawnbox: has joined #ruby
[05:25:36] ericfreese: has joined #ruby
[05:29:09] tuelz1: has joined #ruby
[05:29:23] shevy: is .object_id returning negative numbers by default? I wonder if I messed something up... things like this return negative IDs here for me: x = "foo"; x.object_id # => -573087428
[05:33:30] sandstrom: has joined #ruby
[05:34:38] ericfreese: has joined #ruby
[05:35:42] pawnbox: has joined #ruby
[05:37:32] Xeago: has joined #ruby
[05:38:26] kalopsian: has joined #ruby
[05:38:30] oo7cat: has left #ruby: ()
[05:39:17] fsapo: has joined #ruby
[05:39:24] Ox0dea: has joined #ruby
[05:43:08] hannelita: has joined #ruby
[05:43:14] Ox0dea: >> ObjectSpace._id2ref(-573087428) rescue $! # shevy
[05:43:15] ruby[bot]: Ox0dea: # => #<RangeError: 0xddd7613c is not id value> (https://eval.in/503244)
[05:43:29] usershell: has joined #ruby
[05:44:11] eam: negative object ids are legit
[05:44:26] Ox0dea: They are, but odd ones are not.
[05:44:27] eam: I assume that's just ruby doing something silly by turning them into a signed integer type
[05:44:38] eam: Ox0dea: sure, odd negative object ids are legit
[05:44:45] eam: >> ObjectSpace._id2ref -1
[05:44:46] ruby[bot]: eam: # => -1 (https://eval.in/503245)
[05:44:49] Ox0dea: Err, right.
[05:44:53] eam: the identity object id :D
[05:45:09] eam: but you mean outside of integers
[05:45:11] Ox0dea: >> ObjectSpace.each_object.map(&:object_id).count(&:odd?)
[05:45:13] ruby[bot]: Ox0dea: # => 0 (https://eval.in/503246)
[05:45:31] Ox0dea: Right, Fixnums are just tagged pointers.
[05:45:31] eam: (which is where they're all used up!)
[05:48:18] eam: what's the biggest pizza I can order
[05:49:59] shevy: family pizza!
[05:50:39] sandstrom: has joined #ruby
[05:55:52] Ox0dea: > Where else can you find a King Kong sized 24" pizza that feeds 8-10 people?
[05:56:00] Ox0dea: eam: http://www.newyorkpizzasanbruno.biz/
[05:59:25] agent_white: has joined #ruby
[05:59:35] shevy: lol king kong sized
[06:00:41] WebDawg: has joined #ruby
[06:01:08] WebDawg: I do not know much about ruby but I am working with https://github.com/staannoe/tracks
[06:01:18] radgeRayden_: has joined #ruby
[06:01:32] WebDawg: At the bottom of the page it says: For production use it is highly recommended to update the site.yml.template within the build repo, rename it to site.yml then rebuild the container.
[06:01:43] WebDawg: Can someone tell me what he is talking about?
[06:02:25] pawnbox: has joined #ruby
[06:02:28] usershell: has joined #ruby
[06:02:34] krz: has joined #ruby
[06:02:54] baweaver: has joined #ruby
[06:04:26] lemur: has joined #ruby
[06:05:41] shevy: mv site.yml.template site.yml
[06:06:04] shevy: guess he means site.yml.tmpl
[06:06:09] shevy: he should check his readme for consistency
[06:07:56] Ox0dea: And merge conflict residue.
[06:08:02] sandstrom: has joined #ruby
[06:11:31] eam: Ox0dea: that's fantastic
[06:12:23] darkf: has joined #ruby
[06:12:42] pawnbox: has joined #ruby
[06:14:12] Ox0dea: eam: Are you getting a King Kong, then?
[06:14:33] john: has joined #ruby
[06:14:43] eam: I want one really bad
[06:16:22] devbug: has joined #ruby
[06:16:45] john: has joined #ruby
[06:23:58] lxsameer: has joined #ruby
[06:25:02] pawnbox: has joined #ruby
[06:25:13] sandstrom: has joined #ruby
[06:28:32] zotherstupidguy: has joined #ruby
[06:29:05] baweaver: has joined #ruby
[06:29:55] tuelz1: has joined #ruby
[06:30:16] guacamole: has joined #ruby
[06:34:50] houhoulis: has joined #ruby
[06:34:57] rippa: has joined #ruby
[06:35:28] guacamole: has joined #ruby
[06:36:04] kalopsian: has joined #ruby
[06:36:24] speakingcode: has joined #ruby
[06:37:19] pawnbox: has joined #ruby
[06:40:41] howdoicomputer: has joined #ruby
[06:42:29] sandstrom: has joined #ruby
[06:44:04] hannelita: has joined #ruby
[06:46:34] speakingcode: has joined #ruby
[06:47:00] blackgoat: has joined #ruby
[06:50:42] dcunit3d: has joined #ruby
[06:52:29] cornerma1: has joined #ruby
[06:52:43] riskish: has joined #ruby
[06:53:21] n00bdev_: has joined #ruby
[06:54:29] yardenbar: has joined #ruby
[06:55:12] kspencer: anyone seen 'jade' and its eeriely resemblence to slim
[06:56:46] dionysus69: has joined #ruby
[06:57:20] linocisco: has joined #ruby
[06:59:02] RobertBirnie: has joined #ruby
[07:00:01] sandstrom: has joined #ruby
[07:01:50] pawnbox: has joined #ruby
[07:02:22] usershell: has joined #ruby
[07:03:40] casadei: has joined #ruby
[07:03:51] baweaver: has joined #ruby
[07:05:49] claw: has joined #ruby
[07:06:52] ruby-lang037: has joined #ruby
[07:09:08] arup_r: has joined #ruby
[07:09:30] CloCkWeRX: has joined #ruby
[07:10:44] iateadonut: has joined #ruby
[07:11:05] djellemah: Ox0dea: I realised base 1 numbers would have to be some variation of a tally system, sure enough: https://en.wikipedia.org/wiki/Unary_numeral_system
[07:11:14] Ox0dea: djellemah: Indeed.
[07:11:17] iateadonut: has left #ruby: ()
[07:11:28] Ox0dea: And either nothing or everything is valid in nullary.
[07:12:01] Ox0dea: That is, every string of "digits" represents either 0 or undefined.
[07:12:28] arup_r: Ox0dea: hi . how are you /
[07:13:18] Ox0dea: arup_r: hey : not - bad , yourself \
[07:14:04] pawnbox: has joined #ruby
[07:14:22] Ox0dea: There's been an accident at the punctuation factory.
[07:14:46] arup_r: good to.. lot of works I got this year, so I am happy..
[07:15:48] arup_r: punctuation factory? :p
[07:16:08] OxDeadC0de: has joined #ruby
[07:17:37] sandstrom: has joined #ruby
[07:17:56] eaxxae: has joined #ruby
[07:18:45] baweaver: has joined #ruby
[07:19:13] akem: has joined #ruby
[07:20:04] djellemah: Ox0dea: Nullary, so that's what it's called. It can only represent 0, and there are no digits to represent it with.
[07:20:12] Ox0dea: arup_r: Are you still saving up to emigrate?
[07:20:36] Ox0dea: djellemah: So it clearly *should* be undefined, but the "asymmetry" irks me. :<
[07:21:34] arup_r: Ox0dea: nah, I am in my country still..
[07:23:34] PedramT: has joined #ruby
[07:26:28] pawnbox: has joined #ruby
[07:26:31] yfeldblum: has joined #ruby
[07:27:21] djellemah: Ox0dea: One of those self-feeding paradoxes. Makes me wonder what would happen if one treated both 0 and ??? as limits rather than as numbers.
[07:28:23] Ox0dea: djellemah: Would base-??? be called infinitary?
[07:30:40] tuelz1: has joined #ruby
[07:34:45] sandstrom: has joined #ruby
[07:34:59] djellemah: Ox0dea: Sounds good. You can use as many digits as you like, and the number represented is undefined.
[07:36:07] rkazak: has joined #ruby
[07:37:08] Ox0dea: djellemah: Well, is "10" in infinitary not ????
[07:37:57] tubuliferous_: has joined #ruby
[07:38:12] robbyoconnor: has joined #ruby
[07:38:42] pawnbox: has joined #ruby
[07:40:28] Ox0dea: ??? n ??? ??? - {0,1}: n10 = 10n, where juxtaposition represents "in base".
[07:40:48] Ox0dea: Though of course ??? isn't in ???.
[07:41:58] dlitvak: has joined #ruby
[07:45:08] hannelita: has joined #ruby
[07:45:42] phredus: has joined #ruby
[07:46:33] yfeldblum: has joined #ruby
[07:50:40] kalopsian: has joined #ruby
[07:51:02] pawnbox: has joined #ruby
[07:52:00] sandstrom: has joined #ruby
[07:55:08] tmtwd: has joined #ruby
[07:56:26] kalopsian: has joined #ruby
[07:57:16] guacamole: has joined #ruby
[07:58:21] antgel: has joined #ruby
[07:59:15] PedramT: has joined #ruby
[07:59:18] shibly: has joined #ruby
[07:59:25] shibly: has left #ruby: ("Leaving")
[08:03:17] pawnbox: has joined #ruby
[08:04:53] guacamole: has joined #ruby
[08:07:59] asmodlol: has joined #ruby
[08:08:52] sandstrom: has joined #ruby
[08:09:39] kalopsian: has joined #ruby
[08:10:18] psye: has joined #ruby
[08:11:21] mahk: has joined #ruby
[08:14:40] kalopsian: has joined #ruby
[08:15:48] pawnbox: has joined #ruby
[08:19:27] PedramT: has joined #ruby
[08:25:03] felixal: has joined #ruby
[08:26:09] sandstrom: has joined #ruby
[08:27:59] PedramT: has joined #ruby
[08:28:18] pawnbox: has joined #ruby
[08:29:09] PedramT: has joined #ruby
[08:31:27] tuelz1: has joined #ruby
[08:32:05] futilegames: has joined #ruby
[08:34:35] guacamole: has joined #ruby
[08:35:03] agit0: has joined #ruby
[08:35:54] karapetyan: has joined #ruby
[08:36:11] djellemah: Ox0dea: "11" in infinitary is also ???. So is "www.newyorkpizzasanbruno.biz". So there's no difference in meaning between one string of digits and another.
[08:36:55] Ox0dea: djellemah: Nuh-uh! It's ??? + 1! /s
[08:37:35] Ox0dea: Er, ??? ^ 0 = 1, right?
[08:37:48] n00bDev: has joined #ruby
[08:37:57] Ox0dea: >> Float::INFINITY ** 0
[08:37:58] ruby[bot]: Ox0dea: # => 1.0 (https://eval.in/503267)
[08:38:09] asmodlol: has joined #ruby
[08:38:19] djellemah: I think it depends which hat infinity is wearing at the time...
[08:38:44] n00bdev_: has joined #ruby
[08:41:16] howdoicomputer: has joined #ruby
[08:42:06] djellemah: That is, does ??? denote "meaningless", or does it denote a limit. Disclaimer: I'm not well-read on the meanings of infinity.
[08:43:19] Ox0dea: "Of course it is happening inside your head, Harry, but why on earth should that mean that it is not real?"
[08:43:19] sandstrom: has joined #ruby
[08:44:22] Ox0dea: ??? ??? ??? confirmed.
[08:45:09] Ox0dea: Proof by induction on the wisdom of Albus Dumbledore.
[08:47:03] hannelita: has joined #ruby
[08:48:00] dasher00: has joined #ruby
[08:48:35] kalopsian: has joined #ruby
[08:49:42] usershell: has joined #ruby
[08:52:29] pawnbox: has joined #ruby
[08:53:52] usershell: has joined #ruby
[08:54:13] caffeinic: has joined #ruby
[08:56:49] firstdayonthejob: has joined #ruby
[08:58:19] JamieD: has joined #ruby
[09:00:00] sandstrom: has joined #ruby
[09:00:19] CloCkWeRX: has joined #ruby
[09:04:49] pawnbox: has joined #ruby
[09:20:10] usershell: has joined #ruby
[09:26:36] djellemah: Ox0dea: http://math.stackexchange.com/q/60782 not that I understand that statement fully.
[09:27:11] pskosinski: has joined #ruby
[09:29:20] pawnbox: has joined #ruby
[09:29:30] bkxd_: has joined #ruby
[09:30:50] haraigoshi: has joined #ruby
[09:31:17] vdamewood: has joined #ruby
[09:32:12] tuelz1: has joined #ruby
[09:32:39] Ox0dea: djellemah: I certainly won't contend that ??? is a number, but I do think infinitary could be subjected to a little more rigor than "everything's valid".
[09:33:28] Ox0dea: "0" can be 0, "1" can be 1, and "10" can be ???; it breaks down after that, though.
[09:33:53] marr: has joined #ruby
[09:34:43] Ox0dea: http://math.stackexchange.com/a/714426
[09:36:30] djellemah: "0" == 0 and "1" == 1 imply that ??? ^ 0 == 1, which is true in Ruby ;-)
[09:36:52] Ox0dea: And sometimes math!
[09:37:30] djellemah: Igzakly - sometimes. From that link you just posted, "There is no universal value for ??? ^ 0. It is indeterminate, and the value depends on how you are getting the ??? and the 0."
[09:38:23] djellemah: So the meaning of ??? and 0 depends on what you need them to be in some system (algebra). That's getting more rigorous.
[09:39:50] Ox0dea: If it means not having to add a third special case to my Numeric#to_s patch, I'm okay with ??? ^ 0 = 1.
[09:40:11] Ox0dea: Not sure how NaN plays here.
[09:40:31] Ox0dea: But i in base-i is totally "10".
[09:41:20] djellemah: lol, well if that's what you need ??? to be in you system, nobody can really say you're wrong.
[09:41:40] pawnbox: has joined #ruby
[09:42:01] Ox0dea: Do I have to get it with #succ for it to be rigorous? :)
[09:42:24] djellemah: Ox0dea: you could maybe pull off i == 1 because there's only one digit, so it doesn't matter which one(s) you use, as long as they're there.
[09:43:06] Ox0dea: >> 1i # djellemah: I meant this i.
[09:43:07] ruby[bot]: Ox0dea: # => (0+1i) (https://eval.in/503284)
[09:43:16] Ox0dea: Complex numbers.
[09:43:42] Ox0dea: They work as radices, but not necessarily as the bases for positional number systems.
[09:43:53] Ox0dea: You don't have to have "digits", per se, for the math to work.
[09:44:06] djellemah: Ox0dea: Oh, that one. I thought you meant ??? i ??? ??? : i10 = 10i
[09:44:40] Ox0dea: As best I can tell, that only fails to hold for i ??? {0,1,???}.
[09:45:16] djellemah: Ox0dea: yeah. The math works without the digits. But it becomes a bit, ah, self-referential.
[09:45:54] Ox0dea: Sure, it's basically a demonstration of 1 as the multiplicative identity.
[09:46:10] Jackneill: has joined #ruby
[09:46:55] Ox0dea: >> Float::INFINITY.real? # lol
[09:46:56] ruby[bot]: Ox0dea: # => true (https://eval.in/503285)
[09:47:46] hannelita: has joined #ruby
[09:48:00] hogetaro: has joined #ruby
[09:48:01] djellemah: Clearly ruby adheres to https://en.wikipedia.org/wiki/Extended_real_number_line
[09:48:14] Ox0dea: Seems so.
[09:49:36] vikas027: has joined #ruby
[09:50:34] djellemah: Ox0dea: in unary, "11" == "10" == "aa" == "42".
[09:52:21] ympeg: has joined #ruby
[09:52:23] Ox0dea: djellemah: Bijective unary is TC: https://esolangs.org/wiki/Unary
[09:52:45] JohnT: has joined #ruby
[09:53:55] pawnbox: has joined #ruby
[09:55:10] arup_r: has joined #ruby
[09:56:58] Ox0dea: >> ObjectSpace._id2ref Float.__id__ - 300
[09:56:59] ruby[bot]: Ox0dea: # => Infinity (https://eval.in/503290)
[09:59:01] djellemah: I was somewhat surprised to find out that unary actually has real-world uses https://en.wikipedia.org/wiki/Unary_numeral_system#Applications
[09:59:36] djellemah: >> ObjectSpace._id2ref 70303611 # ??? + 1
[09:59:37] ruby[bot]: djellemah: # => 35151805 (https://eval.in/503291)
[10:01:31] usershell: has joined #ruby
[10:01:36] Ox0dea: djellemah: Whence came 70303611?
[10:02:04] djellemah: >> Float.__id__ - 299
[10:02:05] ruby[bot]: djellemah: # => 551477121 (https://eval.in/503292)
[10:02:22] Ox0dea: It's always different.
[10:02:32] djellemah: Just found that out...
[10:02:48] Ox0dea: But Float::INFINITY is always in the same place relative to Float.
[10:03:17] einarj: has joined #ruby
[10:03:31] iskander: has joined #ruby
[10:03:52] djellemah: Lol, so ObjectSpace._id2ref Float.__id__ - 299 is different every time. Kinda works. In the same way that numerology does :-O
[10:03:58] graffix222: has joined #ruby
[10:04:54] casadei: has joined #ruby
[10:06:13] pawnbox: has joined #ruby
[10:06:21] usershell: has joined #ruby
[10:07:27] yfeldblum: has joined #ruby
[10:07:37] bkxd: has joined #ruby
[10:10:35] blackmesa: has joined #ruby
[10:14:14] mikecmpbll: has joined #ruby
[10:14:44] pawnbox: has joined #ruby
[10:15:52] pawnbox: has joined #ruby
[10:15:54] solocshaw: has joined #ruby
[10:15:58] minimalism: has joined #ruby
[10:16:57] Ox0dea: djellemah: Found it! https://gist.github.com/0x0dea/7652f8f75f64b2c5da59
[10:17:16] Ox0dea: I'd never thought of Church numerals as being "unary", but it fits.
[10:19:22] Ox0dea: Predictably, calculating the Hamming distance of two very tiny numbers using only the lambda calculus takes forever.
[10:19:37] Ox0dea: Er, the inverse of that distance, even.
[10:19:58] norc_: asm>> puts "foo"
[10:20:06] norc_: Good morning Ox0dea.
[10:20:15] Ox0dea: Morning, norc_.
[10:20:31] Ox0dea: I think apeiros might've been pulling your leg. :x
[10:20:46] norc_: Ox0dea, nope. I actually built in asm/tok/ast myself yesterday. :)
[10:20:53] norc_: Just waiting for it to be merged.
[10:21:00] norc_: Or deployed rather.
[10:21:01] Ox0dea: Oh, right. Nice.
[10:21:44] Ox0dea: RubyVM::InstructionSequence.of makes for more channel-friendly output, for what that's worth.
[10:22:34] TomyLobo: has joined #ruby
[10:22:38] norc_: >> RubyVM::InstructionSequence.of(-> { puts "foo" } )
[10:23:15] norc_: has joined #ruby
[10:23:19] norc_: >> RubyVM::InstructionSequence.of(-> { puts "foo" } )
[10:23:20] ruby[bot]: norc_: # => <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-0831c903cb1d/source-0831c903cb1d> (https://eval.in/503294)
[10:23:31] norc_: >> RubyVM::InstructionSequence.of(-> { puts "foo" } ).disasm
[10:23:32] ruby[bot]: norc_: # => "== disasm: #<ISeq:block in <main>@/tmp/execpad-313bd1f1955e/source-313bd1f1955e>\n== catch table\n| ...check link for more (https://eval.in/503295)
[10:23:37] jbrhbr: has joined #ruby
[10:23:50] norc_: >> puts RubyVM::InstructionSequence.of(-> { puts "foo" } ).disasm
[10:23:51] ruby[bot]: norc_: # => == disasm: #<ISeq:block in <main>@/tmp/execpad-4e90fcc3229a/source-4e90fcc3229a> ...check link for more (https://eval.in/503296)
[10:23:53] Ox0dea: .of + #to_a rather.
[10:24:04] norc_: >> puts RubyVM::InstructionSequence.of(-> { puts "foo" } ).to_a
[10:24:15] Ox0dea: >> RubyVM::InstructionSequence.of(-> { 17 + 25 }).to_a[13][4, 3]
[10:24:16] ruby[bot]: Ox0dea: # => [[:putobject, 17], [:putobject, 25], [:opt_plus, {:mid=>:+, :flag=>16, :orig_argc=>1}, false]] (https://eval.in/503298)
[10:24:35] norc_: mm, possibly indeed.
[10:24:37] stamina: has joined #ruby
[10:24:39] Ox0dea: Quite rather.
[10:25:19] norc_: Well, the bytecode will be too long for even trivial statements to be contained within a single line.
[10:25:36] norc_: So might as well keep the full disasm output.
[10:25:51] Ox0dea: Might as well output as Forth, you mean.
[10:26:25] norc_: You have lost me there.
[10:26:34] Ox0dea: Forth, the original concatenative language?
[10:27:12] norc_: I do not know many languages that are nearly twice my age. :-)
[10:27:22] Ox0dea: There are dozens!
[10:27:43] Ox0dea: > mfw speedcoding was called speedcoding
[10:28:26] norc_: asm>> puts "foo"
[10:28:27] ruby[bot]: norc_: I have disassembled your code, the result is at https://eval.in/503299
[10:28:34] norc_: It works. Just was not identified.
[10:28:45] norc_: can also work with tok/ast and you can also override the language like asm20
[10:29:15] fommil: has joined #ruby
[10:29:38] corecode: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[10:29:55] Ox0dea: asm10>> 42
[10:29:56] ruby[bot]: Ox0dea: I have disassembled your code, the result is at https://eval.in/503300
[10:30:28] FooMunki: has joined #ruby
[10:31:16] fommil: hi all. I've never done ruby before but I'm having to use it to hack together a Jekyll page. I've defined a custom variable on a page as per http://jekyllrb.com/docs/variables/ and I want to check when that variable is not defined, so I check `if node.parent == null`... but that never triggers. Is this valid ruby?
[10:31:21] norc_: ast>> def foo; yield; end; puts foo { puts "Why am I not yielded" }
[10:31:23] ruby[bot]: norc_: I have parsed your code, the result is at https://eval.in/503301
[10:31:24] fommil: maybe I should ask on #jekyll
[10:31:59] lxsameer: has joined #ruby
[10:32:00] norc_: Ox0dea, this is the real use case I see for this, as such errors are relatively common here.
[10:32:34] Ox0dea: fommil: The null value is spelled `nil` in Ruby.
[10:32:59] tuelz1: has joined #ruby
[10:33:03] Ox0dea: It's "falsy" in boolean contexts, so you'd likely just say `if node.parent` there.
[10:33:52] jxs_: has joined #ruby
[10:34:30] norc_: Ox0dea, I started with Ruby after spending a considerable time working with SQL. My head was wrapped around the notion that "null" was an unknown value and as such not falsey. Suffice it to say, that is the primary reason I always explicitely test for .nil?
[10:35:00] pawnbox: has joined #ruby
[10:35:02] norc_: (Though I find it quite enjoyable that NULL does not even equal NULL since it is unknown whether two unknown value are equal)
[10:35:39] fommil: Ox0dea: oh, thanks I'll try that.
[10:36:27] fommil: Ox0dea: that doesn't work either.
[10:37:03] fommil: norc_ heh, the theme I'm using does a comparison against null, so I guess that never fails?
[10:37:15] fommil: I'll push my code, maybe that'll be clealer
[10:37:16] colegatron: has joined #ruby
[10:37:29] norc_: fommil, I am strictly talking about SQL.
[10:37:35] jxs_: has joined #ruby
[10:38:05] asmodlol: has joined #ruby
[10:38:14] zotherstupidguy: has joined #ruby
[10:38:24] fommil: https://github.com/fommil/ensime.github.io/blob/master/_includes/sidebar.html#L17-L22
[10:38:40] fommil: norc_ sorry I missed that bit
[10:39:23] norc_: fommil, did you replace "if node.title != null" too?
[10:39:47] futilegames: has joined #ruby
[10:39:55] fommil: norc_ oh that bit works, the failing bit is the second check
[10:40:06] fommil: I also tried !node.parent
[10:40:42] blackmesa: has joined #ruby
[10:41:05] romancpodolski: has joined #ruby
[10:41:39] norc_: fommil, I do not see any variable called "parent" under page variables.
[10:42:04] howdoicomputer: has joined #ruby
[10:42:55] fommil: norc_ there is one for the "build_tools/sbt.md" page (which is wrong actually)
[10:43:10] fommil: norc_ but actually I could probably derive the parents, I just wanted to hack it first with variables
[10:43:37] Xeago: has joined #ruby
[10:43:49] fommil: norc_ because page.path contains the containing folder and that might be very useful here. Maybe I should just hack it by saying "if the path doesn't contain /"
[10:43:59] norc_: fommil, no idea what debugging facilities it provides. Try using node.respond_to?(:parent)
[10:44:10] waka: has joined #ruby
[10:44:32] norc_: fommil, if that still fails, there simply is no such accessor method.
[10:45:15] fommil: norc_ ok, actually I should do the cleaner thing anyway with the node.path
[10:45:32] fommil: I just thought this would be easier, but it seems to have its own problems.
[10:45:59] demond: has joined #ruby
[10:46:06] fommil: norc_ it does access something though, it finds the content when the page does have the variable. I just can't trigger "when this isn't defined".
[10:46:07] demond: has left #ruby: ("+++")
[10:46:15] djellemah: Ox0dea: Heh, I had an intuition that peano and church would come up wrt unary at some point. Also this occurred to me (based on one of those links): there are as many infinities as there are ways to get there (paradoxically). So an infinity is a property of an operation, which may or may not correspond to the infinity of another operation (on possibly different sets).
[10:46:16] BaroMeter: has joined #ruby
[10:48:03] fommil: norc_ I'm starting to think that the problem is with the jekyl interpreter. `if (node.layout == "page" && !node.path.include? "/")` doesn't work either.
[10:48:16] fommil: the second part of the statement is seemingly ignored
[10:48:35] hannelita: has joined #ruby
[10:48:47] Ox0dea: djellemah: "All finitudes are alike; each infinitude is infinite in its own way."
[10:49:12] Ox0dea: That doesn't sound near as good as the original, but it came to mind for some reason.
[10:49:55] djellemah: Ah, the joys of (re)discovery ;-)
[10:50:05] romancpodolski: Is there a shorthand version for method(:method_name).curry.call(parameters...) ?
[10:50:14] FernandoBasso: has joined #ruby
[10:50:32] Ox0dea: romancpodolski: 'Fraid not.
[10:50:45] Ox0dea: You could use Otokari? :P
[10:52:01] hightower2: has joined #ruby
[10:52:02] norc_: romancpodolski, You definitely want to use Otokari
[10:52:27] norc_: It was written to make the transition from C++ to Ruby much much easier.
[10:52:30] norc_: ACTION blinks
[10:52:32] fommil: seems jekyll uses Liquid and it has an incredibly minimal boolean logic implementation. ok...
[10:53:03] romancpodolski: Otokari? Cool, I am going to check this out
[10:53:15] Ox0dea: romancpodolski: This is Otokari: https://eval.in/501472
[10:53:28] Ox0dea: Have your laugh and then pretend this didn't happen.
[10:54:30] Ox0dea: But, well, it probably could be finagled into doing the right thing 90% of the time.
[10:54:38] norc_: I can already see it Ox0dea. 5 years from now I will have a contract to fix some non working Ruby application, where I will find a mysterious weird calling convention..
[10:54:51] norc_: And at the top I will see a "require 'otokari'"
[10:55:18] Ox0dea: Scary shit, innit?
[10:55:22] Ox0dea: Ruby is dangerous.
[10:56:09] Ox0dea: Hey, what are these? http://ai http://dk http://to http://uz
[10:56:23] Ox0dea: Is there a name for this?
[10:58:41] waka: has joined #ruby
[10:59:30] PedramT: has joined #ruby
[10:59:44] Ox0dea: norc_: https://eval.in/503302 Can you think of a way to sneak a Hash in there somewhere such that it looks like a third "block"?
[10:59:50] hogetaro: has joined #ruby
[11:00:36] Macaveli: has joined #ruby
[11:04:59] symm-: has joined #ruby
[11:05:34] dn`: has joined #ruby
[11:08:35] asmodlol: has joined #ruby
[11:09:50] sigurding: has joined #ruby
[11:11:21] DoubleMalt: has joined #ruby
[11:17:28] s00pcan_: has joined #ruby
[11:20:06] karapetyan: has joined #ruby
[11:21:02] Ishido: has joined #ruby
[11:29:21] sftrabbit: has joined #ruby
[11:32:58] norc_: Ox0dea, sure.
[11:33:32] govg: has joined #ruby
[11:33:47] norc_: Ox0dea, https://eval.in/503314
[11:33:47] tuelz1: has joined #ruby
[11:33:58] norc_: But you wanted this withotu a komma eh?
[11:34:21] fommil: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[11:34:45] Ox0dea: Comma's not bad, but its absence is to be desired.
[11:35:35] Ox0dea: Could maybe Define Proc#-(Hash) to do something crazy. :P
[11:39:32] UtkarshRay: has joined #ruby
[11:40:25] kalopsian: has joined #ruby
[11:44:00] BSaboia: has joined #ruby
[11:46:02] dmolina: has joined #ruby
[11:46:56] Rutix: has joined #ruby
[11:46:56] Rutix: has joined #ruby
[11:47:47] blackmesa: has joined #ruby
[11:49:20] hannelita: has joined #ruby
[11:52:57] oo7cat: has joined #ruby
[11:53:05] oo7cat: has left #ruby: ()
[11:53:26] oo7cat: has joined #ruby
[11:53:46] Dbugger: has joined #ruby
[11:55:02] oo7cat: API means that app company provide source code for programmer to use programming to their app?
[11:56:46] arup_r: has joined #ruby
[11:57:26] apeiros: norc_, Ox0dea: as you already found out, I wasn't pulling norc_'s leg. but the new bot requires registration & authentication with nickserv for a couple of commands.
[11:57:55] spider-mario: has joined #ruby
[11:58:13] Ox0dea: norc_: https://eval.in/503319
[11:58:13] speaking2ode: has joined #ruby
[11:59:04] Ox0dea: apeiros: Triple blocks!
[12:00:19] apeiros: now let me wake up and figure out what the heck you did there :D
[12:01:21] arup_r: has joined #ruby
[12:01:24] Ox0dea: I do apologize for assuming malice there.
[12:04:35] jhass: oo7cat: it can mean quite a bunch of things. I'd generalize to "reusable implementation of some functionality with a stable interface"
[12:05:06] apeiros: oo7cat: https://en.wikipedia.org/wiki/Application_programming_interface
[12:05:32] Ox0dea: oo7cat: You may be conflating API with SDK.
[12:05:36] casadei: has joined #ruby
[12:05:42] kalopsian: has joined #ruby
[12:05:53] Ox0dea: Er, well, an SDK is an API, but the reverse isn't necessarily true.
[12:06:16] lxsameer: has joined #ruby
[12:07:31] norc_: p ([0][1]).--> { :t } { :f } { :w }
[12:07:32] ruby[bot]: norc_: I have parsed your code, the result is at https://eval.in/503323
[12:07:38] oo7cat: thanks jhass and apeiros and Ox0dea
[12:07:40] norc_: ast>> p ([0][1]).--> { :t } { :f } { :w }
[12:07:41] ruby[bot]: norc_: I have parsed your code, the result is at https://eval.in/503324
[12:08:19] Ox0dea: Two occurrences of :method_add_block, you say? ;)
[12:09:05] oo7cat: if i want to invest stock with ruby it is possi ble when stock company must provide API
[12:09:23] norc_: Ox0dea, that is interesting parser behavior.
[12:09:26] norc_: Ox0dea, didnt expect that.
[12:09:32] apeiros: oo7cat: or a SOAP or a REST API
[12:09:46] apeiros: ah, somehow I read "must provide a *ruby* API"
[12:09:47] norc_: SOAP needs to die.
[12:10:05] oo7cat: what is soap?
[12:10:10] bronson: has joined #ruby
[12:10:11] apeiros: yes. if the stock company provides an API which has methods to invest, then you can invest stock with ruby.
[12:10:19] apeiros: oo7cat: you know google?
[12:10:25] apeiros: and wikipedia?
[12:10:27] oo7cat: oh great apeiros
[12:10:33] norc_: It is something invented by very self important business java developers who spent weeks to describe the descrpition of a meta description.
[12:10:48] apeiros: norc_: SOAP isn't all that bad. but people do horrible stuff with it.
[12:11:16] Ox0dea: >> def _(*) end; _ _ _ _ _ {} {} {} {} {} # norc_
[12:11:18] ruby[bot]: Ox0dea: # => nil (https://eval.in/503326)
[12:11:21] oo7cat: what is SOAP?
[12:11:30] apeiros: norc_: as far as I see it, JSON API's tend to be less horrible because it's just not as powerful and thus a bit harder to do horrible things with it???
[12:11:36] Ox0dea: oo7cat: Stupid Object, Asinine Protocols.
[12:11:57] norc_: apeiros, most SOAP APIs can either be easily replaced by REST (signifying how little of SOAP is used), or is better done with actual RPC frameworks like CORBA.
[12:12:09] apeiros: oo7cat: please use google & wikipedia before asking the most trivial questions here. thanks.
[12:12:16] Ox0dea: CORBA lives?
[12:12:36] norc_: Ox0dea, it does indeed. I have even implemented a full fledged ORB on some weird embedded hardware.
[12:12:40] apeiros: norc_: can't comment on most
[12:12:49] norc_: apeiros, fair enough.
[12:12:51] norc_: Most that I have seen.
[12:13:04] apeiros: norc_: but at work we're consuming some SOAP apis, and some of them have proper xsd's, which is a great support.
[12:13:04] who42: has joined #ruby
[12:13:42] apeiros: some others I'd agree - they could just as well use JSON - essentially they're hashes and have no xsd to speak of (some autogenerated xsd which is worthless)
[12:14:20] Tempesta: has joined #ruby
[12:14:24] norc_: apeiros, if you just care about validations and descriptions I think OData is an elegant solution to REST
[12:15:05] apeiros: norc_: not json-schema?
[12:15:24] apeiros: haven't heard of 0Data, but will certainly take a look
[12:15:32] apeiros: oh, OData, not 0Data
[12:18:16] last_staff: has joined #ruby
[12:18:34] oo7cat: i understand API
[12:20:28] apeiros: norc_: good heavens, yet another terminology for limit/offset :D
[12:21:55] oo7cat: i want make automation trading app with api, then i want sell it with high price. is it possible?
[12:22:32] apeiros: norc_: but it's nice to see how every generation reinvents relational algebra / set theory
[12:23:33] dtordable: has joined #ruby
[12:23:49] Ox0dea: Out with the old, in with the old.
[12:26:40] shinnya: has joined #ruby
[12:30:53] bottiger: has joined #ruby
[12:31:28] bottiger: How can I convert ["6162635a", "6162635a"] into two UTF-32 characters
[12:31:41] sleepee: has joined #ruby
[12:32:51] bottiger: I tried .force_encoding("UTF-32") but it gives me "\x36\x31\x36\x32\x36\x33\x35\x61" which doesn't look correct
[12:33:02] s00pcan: has joined #ruby
[12:33:08] volty: has joined #ruby
[12:34:31] tuelz1: has joined #ruby
[12:34:31] apeiros: uh, yeah, how could that work???
[12:34:45] apeiros: it doesn't know those bytes in your source string are supposed to be hex
[12:35:21] bottiger: apeiros: Right, thats' what I'm thinking
[12:35:33] apeiros: >> ["6162635a"].pack("H*")
[12:35:34] ruby[bot]: apeiros: # => "abcZ" (https://eval.in/503340)
[12:35:41] karapetyan: has joined #ruby
[12:35:48] apeiros: this packs the hex data into the 4 bytes they represent
[12:35:50] DoubleMalt: has joined #ruby
[12:36:00] apeiros: >> ["6162635a"].pack("H*").force_encoding('utf-32')
[12:36:01] ruby[bot]: apeiros: # => "\x61\x62\x63\x5A" (https://eval.in/503341)
[12:36:21] apeiros: and now you tell ruby via force-encoding to consider those 4 bytes as utf-32
[12:36:33] apeiros: but honestly, that doesn't look like an existing codepoint to me.
[12:36:38] emilford: has joined #ruby
[12:36:45] apeiros: are you sure that the hex you have there is utf-32?
[12:37:15] bottiger: apeiros: It's not valid UTF-32, but it's just a hack to "compress" some text (in terms of characters, not bytes)
[12:38:09] volty: Hi. With drb I access a sequel dataset from another process. But the problem lies in that the producing (or receiving - the prob. remains the same if I revert server & client) lies in a thread separate from the main thread (using a library that does not allow to call outside of the main thread). Any idea how can I 'bridge' across threads?
[12:38:53] volty: (e.c. - in that the thread is separate from the main thread)
[12:39:00] volty: different
[12:39:02] apeiros: bottiger: um, you are aware that it doesn't really compress?
[12:39:15] bottiger: apeiros: absoluty :)
[12:39:29] apeiros: *shrug* okay
[12:39:57] FernandoBasso: has joined #ruby
[12:40:15] bottiger: apeiros: but it's a company challenge. Write the shortest program - you know the deal. And they are counting characters, not bytes
[12:40:36] apeiros: volty: that's an odd limitation. you can use a queue in the main thread to read instructions from.
[12:41:00] apeiros: bottiger: lol. well, yeah, abuse the loophole then :D
[12:41:12] apeiros: just hope they don't retroactively change the rules ;-)
[12:41:49] bottiger: apeiros: they already did after my first solution in witespace :P (they had a rule that whitespace didn't count to encurage readability)
[12:41:50] apeiros: adding things like "invalid byte sequences are counted as individual bytes" (that's probably what I'd do)
[12:41:54] bottiger: *whitespace
[12:42:39] apeiros: you could even use any language, treating \t and " " as bits and in ruby e.g. use tr + pack
[12:42:50] howdoicomputer: has joined #ruby
[12:43:32] apeiros: so basically eval(["???code in whitespace here???"].tr(" \t","01").pack("B*")) - could probably be shortened even more.
[12:46:19] bottiger: apeiros: yeah, but they split the competition into two competitions. And if you whitespace is "functional" it counts
[12:46:19] c355E3B: has joined #ruby
[12:46:54] bottiger: but I like my new idea of just "compressing" the output text into utf-32, since that's by far the most characters
[12:46:55] volty: apeiros: the limitation comes from Qt. And the limits are same in c++ too. If I could only have a drb server working in the main thread, asynchronously! Is drb only ruby source?
[12:47:24] apeiros: I think drb is plain ruby, no native code.
[12:47:54] Ox0dea: bottiger: What's your process for writing Whitespace programs?
[12:48:38] apeiros: 1. think hard, 2. type spaces and tabs and whatever else, 3. run the program!
[12:48:45] bottiger: apeiros: but I also considered making a solution like: "while (sha256('100 random words")!=sha256sum)"
[12:48:47] apeiros: ACTION hides
[12:49:10] jamw: has joined #ruby
[12:49:21] volty: apeiros: fine, thx, going to give it a look, hoping to at least learn something
[12:49:22] bottiger: Ox0dea: I just converted the output text into whitespace using a small ruby script
[12:49:43] bottiger: Ox0dea: but another huy had the same idea and made a much more compact solution
[12:49:48] apeiros: volty: oh, that 1., 2., 3. thing wasn't at you, but at Ox0dea
[12:50:03] hannelita: has joined #ruby
[12:50:05] volty: apeiros: I knew
[12:50:07] Ox0dea: bottiger: Oh, you weren't talking about the Whitespace programming language, then.
[12:50:28] codecop: has joined #ruby
[12:50:54] apeiros: volty: but the consumer/producer pattern with queues communicating with the main thread is probably the easiest. it allows you to do about anything.
[12:51:13] bottiger: Ox0dea: I was. I took the output text and converted it - character by character - into whitespace programmin language source code - writing that character to the screen
[12:51:30] bottiger: output text = the text the program should output
[12:51:46] Ox0dea: bottiger: Er... the program's output is static?
[12:51:52] who42: has joined #ruby
[12:52:05] bottiger: Ox0dea: yes
[12:52:24] bottiger: Ox0dea: otherwise I probably wouldn't have done it :)
[12:52:24] krz: has joined #ruby
[12:52:32] Ox0dea: Whitespace is fun!
[12:52:34] apeiros: bottiger: might want to take a look at wikipedia's compression competition then
[12:53:03] apeiros: though I guess while the output is static, it's probably in the nature of something where generating it is less data than compressing it?
[12:53:37] bottiger: apeiros: never heard about it. Do you have a link?
[12:53:57] apeiros: bottiger: sadly not. but since it was with a high price money, it shouldn't be too hard to find
[12:54:22] volty: apeiros: Yes. But I feel I'll have to do more with low-level streaming than with Queue. Btw for now I resolved it with a trick ??? recreating the same dataset at the receiving end (using Dataset#sql). But I hope I'll succeed in bridging the threads. Going to energize. bye & thx
[12:54:54] Ox0dea: bottiger: Tribonacci numbers in Whitespace: http://ideone.com/xegVdM :)
[12:54:59] Ox0dea: With memoization!
[12:55:28] edwinvdgraaf: has joined #ruby
[12:55:54] bottiger: Ox0dea: did you write it by hand?
[12:56:06] Ox0dea: bottiger: In pseudo-assembly, but yeah.
[12:57:08] sdothum: has joined #ruby
[12:57:43] Ox0dea: https://gist.github.com/0x0dea/0e581e84658dc339d253
[12:59:22] SCHAAP137: has joined #ruby
[12:59:41] graffix222: has joined #ruby
[13:00:56] ta: has joined #ruby
[13:01:04] dorei: has joined #ruby
[13:03:37] norc_: bottiger, technically you can just use utf8
[13:03:45] norc_: and use one single multibyte character spanning as much as you want..
[13:04:36] norc_: bottiger, that would surely give you the longest possible "compression" for your task at hand.
[13:04:37] cpup: has joined #ruby
[13:05:14] norc_: (afaik utf8 has no limit on how long a multibyte character can be)
[13:05:34] bottiger: norc_: I read it could handle 48 bits
[13:05:48] bottiger: norc_: Which is more than utf-32, but I thought it would also be a bit of a PITA
[13:06:14] bottiger: because I assume it needs a high bit set in every byte or something like that
[13:06:48] norc_: bottiger, indeed. you have a leading byte and an arbitrary number of continuiation bytes
[13:07:07] norc_: have not heard of any 48 bit limitation thoguh
[13:07:07] kalopsian: has joined #ruby
[13:07:10] norc_: but I might be wrong
[13:07:13] norc_: apeiros might know more
[13:07:43] bottiger: I'm probably also wrong :P
[13:07:43] norc_: as our residential encoding expert :-)
[13:07:44] apeiros: I thought the limit was either 5 or 7 bytes. but I never studied that in detail.
[13:07:58] apeiros: so no idea really
[13:08:46] bottiger: but I'm just going to use utf-32. That the na??ve implementation of a good idea. I'm not going to spend exponential much more time to do a better implementation :)
[13:09:38] oo7cat: has left #ruby: ()
[13:10:02] apeiros: from WP it seems like 6 byte sequences + 1 byte to indicate it's a 6 byte sequence is the longest. so 7 bytes.
[13:10:16] apeiros: and you're limited to 7 bits in those 6 bytes
[13:10:58] norc_: which means you get 6 bytes of payload
[13:11:31] apeiros: well, 6*7/8 = 5 bytes
[13:11:39] who42: has joined #ruby
[13:11:47] norc_: Math has never been a strength of mine.
[13:11:54] apeiros: or rather every 4 "characters" you get 21 bytes
[13:12:15] apeiros: define strength
[13:12:23] apeiros: "neither was physics" ;-D
[13:13:24] norc_: apeiros, I just realized what I said. "If I take 6 bytes and strip one bit off each byte, I get 6 bytes payload"
[13:13:26] ericfreese: has joined #ruby
[13:13:27] norc_: Brilliant.
[13:13:54] apeiros: wait, what? it looks even like you only get 6 bits of usable payload per byte
[13:14:05] apeiros: first two bits are fixed to 10
[13:14:39] norc_: apeiros, since the length is variable though, the mere presence of a continuation byte is information too thoguh
[13:14:39] apeiros: I wonder why - make detection of non-utf-8 easier?
[13:15:43] iateadonut: has joined #ruby
[13:15:43] norc_: apeiros, btw I figured out this weird bizarre encoding the other day.
[13:16:36] norc_: apeiros, the supplier put in a font into the PDF mapping characters to random codepoints - making copy paste an absolute pointless undertaking.
[13:16:47] norc_: And to make things worse, that font is random in each PDF fiel.
[13:16:52] apeiros: you can have 128+4096+262144+16777216+4294967296+1099511627776+281474976710656 possible values with a single character while being valid utf-8
[13:17:04] norc_: >> 128+4096+262144+16777216+4294967296+1099511627776+281474976710656
[13:17:04] ruby[bot]: norc_: # => nil (https://eval.in/503374)
[13:17:06] ruby[bot]: norc_: # => 282578800349312 (https://eval.in/503375)
[13:17:11] norc_: that looks like a lot.
[13:17:15] apeiros: so you can basically convert that to a numbering scheme and then translate it to bits & bytes
[13:17:31] apeiros: it's a bit more than 48bits per char
[13:18:20] apeiros: oh, actually you can have more than that
[13:18:34] apeiros: there's multiple values starting a 2 byte sequence, same for 3 byte long sequence and 4 byte long sequence
[13:18:42] apeiros: so you can multiply those summands
[13:18:53] apeiros: (it'll still be "only" a bit more than 48bit, though)
[13:18:55] norc_: I am going to change my first name to ???
[13:19:18] El3k0n: has joined #ruby
[13:19:50] fsapo: has joined #ruby
[13:20:07] apeiros: interesting. that WP article basically tells you how to write the regex to validate utf-8.
[13:20:16] arup_r: has joined #ruby
[13:21:03] arup_r: has joined #ruby
[13:21:07] al2o3-cr: has joined #ruby
[13:21:28] karapetyan: has joined #ruby
[13:21:41] arup_r: has joined #ruby
[13:22:20] arup_r: has joined #ruby
[13:22:30] leksster: has joined #ruby
[13:22:46] FooMunki: has left #ruby: ()
[13:22:57] arup_r: has joined #ruby
[13:23:24] apeiros: reading that article just informed me that parallel processing of utf-8 text is well possible
[13:23:29] karapetyan: has joined #ruby
[13:23:37] arup_r: has joined #ruby
[13:23:52] apeiros: I always thought it wasn't because you don't know whether you're in a sequence (i.e. you couldn't split the text into multiple chunks to process separately)
[13:24:18] arup_r: has joined #ruby
[13:24:39] apeiros: but since start-bytes and sequence-bytes are distinct, you can actually indeed split it into chunks.
[13:24:55] arup_r: has joined #ruby
[13:25:16] LoganG: has joined #ruby
[13:25:19] apeiros: it just adds a constant overhead to properly "align" the chunks. i.e. you split based on bytes, then you shift around some of the bytes at the borders.
[13:25:33] arup_r: has joined #ruby
[13:26:11] arup_r1: has joined #ruby
[13:26:18] norc_: honestly though the only real relevant case is browsers, and the major worries there is constructing the dom as quickly as possible while it is still loading.
[13:26:47] arup_r: has joined #ruby
[13:27:27] apeiros: and I just learned that a browser can do that in parallel
[13:27:30] arup_r: has joined #ruby
[13:27:49] apeiros: there are some things which might retroactively change how the parsed text is to be interpreted ("I'm in a comment, so this isn't really a DOM")
[13:28:05] arup_r: has joined #ruby
[13:28:44] apeiros: but I've other use-cases where it matters
[13:28:44] arup_r: has joined #ruby
[13:29:08] usershell: has joined #ruby
[13:29:16] apeiros: I've a definition of a csv-like format, and given that information I might optimize it so it can be processed in parallel.
[13:29:23] arup_r: has joined #ruby
[13:30:10] arup_r: has joined #ruby
[13:30:51] arup_r: has joined #ruby
[13:31:28] arup_r: has joined #ruby
[13:32:06] arup_r: has joined #ruby
[13:32:35] apeiros: !fixcon arup_r
[13:32:36] ruby[bot]: +bbb arup_r!*@*$#ruby-fix-your-connection arup___!*@*$#ruby-fix-your-connection *!*@116.202.126.82$#ruby-fix-your-connection
[13:34:56] peteyg: has joined #ruby
[13:35:03] mfb2: has joined #ruby
[13:35:18] tuelz1: has joined #ruby
[13:37:41] mfb2_: has joined #ruby
[13:39:03] whiteline: has joined #ruby
[13:39:52] peteyg: has joined #ruby
[13:41:09] mostlybadfly: has joined #ruby
[13:41:39] HANJIN: has joined #ruby
[13:42:40] blackmesa: has joined #ruby
[13:44:52] peteyg: has joined #ruby
[13:45:42] who42: has joined #ruby
[13:45:58] ziyadb: has joined #ruby
[13:48:46] HANJIN: has joined #ruby
[13:49:53] peteyg: has joined #ruby
[13:50:52] hannelita: has joined #ruby
[13:51:32] davedev24: has joined #ruby
[13:52:49] ghox: has joined #ruby
[13:53:38] lkba: has joined #ruby
[13:54:26] dionysus69: has joined #ruby
[13:54:39] edwinvdgraaf: has joined #ruby
[14:00:01] aryaching: has joined #ruby
[14:02:30] d0nn1e: has joined #ruby
[14:03:59] vandemar: has joined #ruby
[14:07:06] peteyg: has joined #ruby
[14:07:26] bluOxigen_: has joined #ruby
[14:08:30] Legit: I get 'Zlib::DataError: unknown compression method' whenever I try open() on a wunderground.com URL. Why is that?
[14:11:41] lucasb: has joined #ruby
[14:11:52] blackmesa: has joined #ruby
[14:12:05] peteyg: has joined #ruby
[14:13:37] edwinvdgraaf: has joined #ruby
[14:15:23] bvbrandon: good morning, if 2 models share a method, where would be a good place to store it?
[14:15:52] bvbrandon: currently I have it defined in both models, but I feel like I should be putting it in a module or helper. Just not sure which is more appropriate
[14:17:05] peteyg: has joined #ruby
[14:17:40] Jardayn: has joined #ruby
[14:18:12] apeiros: !unban arup_r
[14:18:13] ruby[bot]: -bbb arup_r!*@*$#ruby-fix-your-connection arup___!*@*$#ruby-fix-your-connection *!*@116.202.126.82$#ruby-fix-your-connection
[14:19:34] edwinvdgraaf: has joined #ruby
[14:21:43] al2o3-cr: does any one use format?
[14:21:46] gregf: has joined #ruby
[14:22:24] apeiros: al2o3-cr: rubycop users I presume
[14:22:30] apeiros: was one of the configs I changed :D
[14:23:12] al2o3-cr: I thought I'd ask as I've bearly seen it myself in code :P
[14:23:33] apeiros: I prefer sprintf over format
[14:23:49] apeiros: while I find the name worse, it's better known due to C
[14:24:08] apeiros: that said, I don't consider "format" to be an apt name for what it does either :-/
[14:24:09] al2o3-cr: My prefered choice too
[14:24:26] apeiros: and for single variable substitutions I use String#%
[14:24:49] apeiros: would be nice if there was a named alias for %
[14:25:08] apeiros: would make chaining easier
[14:25:21] apeiros: and in a couple of places IMO improve readability
[14:25:46] al2o3-cr: can't it be chained with perens?
[14:26:16] al2o3-cr: oh easier never mind :)
[14:26:29] apeiros: you can chain every expression with parens ;-)
[14:26:38] apeiros: since every expression has a return value in ruby
[14:26:58] al2o3-cr: yes, wasn't thinking to much then
[14:28:52] oo7cat: has joined #ruby
[14:28:59] al2o3-cr: apeiros: What was the intention of adding ObjectSpace.internal_class_of do you know?
[14:29:03] dlitvak: has joined #ruby
[14:29:45] apeiros: debugging I'd assume
[14:30:03] apeiros: I'd say all of ObjectSpace is for debugging
[14:30:08] al2o3-cr: Isn't it just the same as .singleton_class
[14:30:41] apeiros: the docs seem to indicate that some objects have a wrapper class around it. I'd ask people who snoop in the innards of ruby like Ox0dea.
[14:31:12] al2o3-cr: ok thanks will ask when he's around
[14:31:14] apeiros: also singleton_class only starts to exist once you use it
[14:31:46] apeiros: so I guess any call to .singleton_class will cause an object which doesn't have a singleton_class to spawn one.
[14:32:05] apeiros: i.e. unsuited for testing whether an object has a singleton_class
[14:32:26] who42: has joined #ruby
[14:32:37] cisco: has joined #ruby
[14:33:37] al2o3-cr: apeiros: Thanks, this made thinks a bit more clear
[14:34:40] dlitvak: has joined #ruby
[14:36:05] tuelz1: has joined #ruby
[14:36:54] carraroj: has joined #ruby
[14:39:37] aryaching_: has joined #ruby
[14:39:46] zeros0623: has left #ruby: ()
[14:39:54] zeros0623: has joined #ruby
[14:42:01] stamina: has joined #ruby
[14:42:19] usershell: has joined #ruby
[14:43:30] howdoicomputer: has joined #ruby
[14:44:39] zeros0623: has left #ruby: ()
[14:44:58] zotherstupidguy: is there a ruby IRC bot with a web interface(sinatra) ?
[14:44:58] arup_r: has joined #ruby
[14:45:56] zeros0623: has joined #ruby
[14:46:34] blackmesa: has joined #ruby
[14:47:42] Macaveli: has joined #ruby
[14:48:32] apeiros: ruby[bot] partially integrates into the ruby-community.com website and will begin to integrate more. but I guess since it's closed source, that's not what you're after :)
[14:49:27] al2o3-cr: apeiros: you're code can't be that bad (jk) :P
[14:50:06] jamw: has joined #ruby
[14:50:32] karapetyan: has joined #ruby
[14:50:44] apeiros: parts of that code are bad. but that's not the main reason for it being closed source atm. it's a case of security through obscurity. and while that does not work, it's still an additional obstacle.
[14:50:50] karapetyan: has joined #ruby
[14:50:56] emilford: has joined #ruby
[14:51:36] hannelita: has joined #ruby
[14:52:07] al2o3-cr: Is this butler; http://butler.rubyforge.org/ ?
[14:52:31] apeiros: it's an overhauled version, yes
[14:52:41] apeiros: updated for ruby 2.3 and ircv3
[14:52:44] shevy: al2o3-cr 10 years ago!
[14:52:51] oo7cat: ruby support ???Component Object Model(com)??? of MS?
[14:52:58] al2o3-cr: apeiros: awesome
[14:53:04] shevy: I can't believe that this is indeed 10 years... almost :(
[14:53:11] al2o3-cr: shevy: I know :p
[14:53:23] shevy: al2o3-cr where has my youth and beauty gone!
[14:53:53] apeiros: the memories - I didn't know that site was still up :D
[14:53:53] al2o3-cr: shevy: these years are passing by so quickly now :(
[14:53:55] aspiers: has joined #ruby
[14:54:08] apeiros: "If you chose to name your **but** differently" - of course, one of the first things I spot is a typo???
[14:54:24] shevy: buttler!!!
[14:54:28] apeiros: oh, even two typos
[14:54:44] shevy: you reached perfection years later apeiros :D
[14:55:04] apeiros: meh, my english is still full of flaws and my typing full of typos
[14:55:12] apeiros: but I do hope it has improved
[14:55:23] oo7cat: ruby support ???Component Object Model(com)??? of MS?
[14:55:44] apeiros: hehe, "Lesson 0", because dijkstra
[14:55:55] apeiros: oo7cat: did you try google yet?
[14:56:12] oo7cat: but i can???t find it apeiros
[14:57:52] apeiros: ok, I have to admit that 'com' isn't a very googleable term
[14:58:40] apeiros: https://www.ruby-toolbox.com/search?utf8=???&q=win32 # <- one in this might be useful, not sure
[15:01:46] apeiros: I still think using __END__ to have single-file plugins with code + metadata was genius :D
[15:03:04] BTRE: has joined #ruby
[15:04:04] aspiers_: has joined #ruby
[15:05:48] shevy: __END__ can be quite useful, I use it for some per-file configuration data... but it is not easily usable from when you have multiple .rb files right? or perhaps I just didn't find out how to use multiple __END__ when you also load these files
[15:06:57] oo7cat_: has joined #ruby
[15:06:58] rikkipitt: has joined #ruby
[15:07:01] jottr: has joined #ruby
[15:07:12] apeiros: shevy: https://github.com/apeiros/scriptfile
[15:07:37] drptbl: has joined #ruby
[15:08:17] Domaldel: has joined #ruby
[15:10:19] dlitvak: has joined #ruby
[15:11:49] bluOxigen: has joined #ruby
[15:12:06] jorum: has joined #ruby
[15:13:34] oo7cat: has left #ruby: ()
[15:13:57] Emmanuel_Chanel: has joined #ruby
[15:14:30] Emmanuel_Chanel: has joined #ruby
[15:14:51] emilford: has joined #ruby
[15:15:00] ericfreese: has joined #ruby
[15:18:27] dlitvak: has joined #ruby
[15:23:35] hannelita: has joined #ruby
[15:27:56] drptbl: has joined #ruby
[15:31:02] dostoyevsky: has joined #ruby
[15:33:07] kalopsian: has joined #ruby
[15:36:35] usershell: has joined #ruby
[15:36:53] tuelz1: has joined #ruby
[15:39:48] blackmesa: has joined #ruby
[15:40:27] arup_r: has joined #ruby
[15:40:35] ponga: has joined #ruby
[15:41:28] User458764: has joined #ruby
[15:41:57] last_staff: has joined #ruby
[15:42:15] norc_: apeiros, http://tools.ietf.org/html/rfc3629
[15:42:27] norc_: looks like 4 octets max
[15:42:53] dlitvak: has joined #ruby
[15:42:58] greister: has joined #ruby
[15:43:11] apeiros: yes, 5 & 6 violate 3629
[15:43:14] apeiros: but they're in use
[15:43:55] blackmes1: has joined #ruby
[15:43:57] norc_: The thing tho is for such a competition it would probably be better if its spec conform.
[15:44:10] apeiros: don't emojis use 5 byte sequences? and that caused havoc with mysql's default settings?
[15:44:17] karapetyan: has joined #ruby
[15:44:38] apeiros: ACTION afk for a bit, cya :)
[15:44:54] apeiros: oh and norc_ - thanks a lot for the asm>>, ast>> and tok>> patches!
[15:45:10] apeiros: remind me to put it in the credits on the website. I'm quite behind with updates there :(
[15:46:58] sonOfRa: has joined #ruby
[15:48:32] emilford_: has joined #ruby
[15:50:24] Xeago: has joined #ruby
[15:56:06] emilford: has joined #ruby
[15:56:41] ympeg: has joined #ruby
[15:58:51] govg: has joined #ruby
[15:59:11] falkhan: has joined #ruby
[16:01:58] karapetyan: has joined #ruby
[16:05:25] The_Phoenix: has joined #ruby
[16:06:08] ljames: has joined #ruby
[16:06:22] drptbl: has joined #ruby
[16:07:17] casadei: has joined #ruby
[16:07:25] aryaching: has joined #ruby
[16:09:26] jorum: has joined #ruby
[16:11:54] bronson: has joined #ruby
[16:11:59] Fluent: has joined #ruby
[16:14:13] zast: has joined #ruby
[16:14:29] Fluent: has joined #ruby
[16:15:52] greister: has joined #ruby
[16:16:29] Guest49451: has joined #ruby
[16:19:34] iskander: has joined #ruby
[16:23:15] aryaching: has joined #ruby
[16:28:04] jottr_: has joined #ruby
[16:29:58] karapetyan: has joined #ruby
[16:30:46] benjohn: has joined #ruby
[16:31:17] cisco: has joined #ruby
[16:32:10] dwfait: has joined #ruby
[16:32:21] cisco: has joined #ruby
[16:32:50] northfurr: has joined #ruby
[16:33:07] hogetaro: has joined #ruby
[16:33:59] rodolfowtf: has joined #ruby
[16:35:11] rkazak: has joined #ruby
[16:35:41] emilford: has joined #ruby
[16:36:47] colegatron: has joined #ruby
[16:36:57] tildes: has joined #ruby
[16:37:35] aryaching: has joined #ruby
[16:37:36] tuelz1: has joined #ruby
[16:37:59] tjohnson: has joined #ruby
[16:39:11] walidvb: has joined #ruby
[16:40:17] walidvb: hi all. trying to create a regexp, but can't get to it right
[16:40:24] dfinninger: has joined #ruby
[16:40:25] walidvb: https://regex101.com/r/pS7nV8/2
[16:41:11] arup_r: has joined #ruby
[16:41:44] walidvb: basically, my user pastes a soundcloud link directly into a wysiwyg, and i then want to convert those to players(using the regexp to find the song id)
[16:43:49] jhass: ?regex_xml walidvb
[16:43:50] ruby[bot]: walidvb: Don't use Regexp to parse XML or HTML. Use an XML parser like nokogiri or oga. See also: http://stackoverflow.com/a/1732454/2199687
[16:43:55] dlitvak: has joined #ruby
[16:44:19] howdoicomputer: has joined #ruby
[16:44:45] emilford: has joined #ruby
[16:45:01] bvbrandon: hey all, I have a field which needs to append it???s value to the current value, i.e. if User.data == ???foo??? and I save the value ???bar??? I need User.data to return ???foo,bar???
[16:45:18] jhass: walidvb: or maybe consider using URI.extract & ruby-oembed
[16:45:42] hannelita: has joined #ruby
[16:45:49] walidvb: jhass: hm. fair enough. however, for this use case, only 1 user, little content that won't change, so i'll stick to regexp. i take your point, though
[16:46:27] vikaton: has joined #ruby
[16:46:45] lucasb: walidvb: $1 is getting set to the url you wanted, no?
[16:46:58] jhass: still consider using oEmbed, it's taking the URL you already sucessfully extracted, url encoding it and using it as a parameter against the endpoint
[16:47:12] jhass: you get some json back with one of the attributes being the embed html
[16:47:48] walidvb: well, it's the wyswiyg who extracts it client side
[16:48:00] walidvb: but it's a really small usecase, teally
[16:50:02] hogetaro: has joined #ruby
[16:50:45] jamw: has joined #ruby
[16:50:52] jhass: walidvb: I think we're not sure what your question is
[16:51:15] walidvb: i think i have found my regexp :)
[16:52:14] kalopsian: has joined #ruby
[16:52:16] walidvb: jhass: it to fix this for my unique usecase: https://github.com/dejan/auto_html/blob/1.6.4/lib/auto_html/filters/soundcloud.rb#L8
[16:52:59] dlitvak_: has joined #ruby
[16:53:19] mhib: has joined #ruby
[16:53:58] emilford: has joined #ruby
[16:56:38] Xeago: has joined #ruby
[16:57:07] edwinvdgraaf: has joined #ruby
[16:58:04] edwinvdgraaf: has joined #ruby
[17:01:31] bvbrandon: hey all, I have a field which needs to append it???s value to the current value, i.e. if User.data == ???foo??? and I save the value ???bar??? I need User.data to return ???foo,bar???
[17:01:43] asccigcc: has joined #ruby
[17:02:47] Mon_Ouie: has joined #ruby
[17:03:00] emilford: has joined #ruby
[17:03:10] pzula: has joined #ruby
[17:04:18] aspiers_: has joined #ruby
[17:04:52] nanoz: has joined #ruby
[17:04:54] hogetaro: has joined #ruby
[17:05:40] jhass: rails/activerecord?
[17:05:48] jhass: consider serialize & an array
[17:06:39] armyriad: has joined #ruby
[17:07:00] JohnT: has joined #ruby
[17:08:23] linduxed: has joined #ruby
[17:09:24] dlitvak: has joined #ruby
[17:12:07] emilford: has joined #ruby
[17:14:59] marr: has joined #ruby
[17:15:45] hogetaro: has joined #ruby
[17:17:52] jottr: has joined #ruby
[17:19:03] funnel: has joined #ruby
[17:21:08] emilford: has joined #ruby
[17:25:10] Limix: has joined #ruby
[17:27:45] troulouliou_div2: has joined #ruby
[17:28:43] mfb2: has joined #ruby
[17:28:56] Xzanron: has joined #ruby
[17:29:18] beast: has joined #ruby
[17:30:16] emilford: has joined #ruby
[17:31:57] hxegon: has joined #ruby
[17:32:34] ruby-lang944: has joined #ruby
[17:32:40] aspiers_: has joined #ruby
[17:33:09] symm-: has joined #ruby
[17:33:31] northfurr: has joined #ruby
[17:34:44] ruby-lang944: I am have been working with ruby for more than a year now. Just last week I noticed the existence of Float::INFINITY. I wonder why does ruby support the concept of Infinity and not simply throw a DevideByZero error.
[17:36:00] ruby-lang944: I would easier for developers to rescue the exception and take corrective actions than checking the value against Infinity and Nan.
[17:37:18] havenwood: ruby-lang944: "Imagine you have zero cookies and split them evenly among zero friends. How many cookies does each person get?"
[17:38:24] tuelz1: has joined #ruby
[17:38:25] ruby-lang944: that's a 0/0. which not defined.
[17:38:34] arup_r: has joined #ruby
[17:38:41] pwnd_nsfw: has joined #ruby
[17:38:58] ruby-lang944: I would be happy to rescue a DevideByZero exception and then assign 0 cookies to each one.
[17:39:13] lucasb: it raises a ZeroDivisionError here on my end
[17:39:17] havenwood: >> 1.fdiv 0
[17:39:18] ruby[bot]: havenwood: # => Infinity (https://eval.in/503412)
[17:39:25] emilford: has joined #ruby
[17:39:29] hxegon: because you shouldn't use error handling for expected behaviour?
[17:39:55] lucasb: ah, I didn't know about fdiv
[17:39:57] ruby-lang944: but when I say 1.fdiv 0, I get infinity which does not make sense.
[17:40:04] dmolina: has joined #ruby
[17:40:30] jottr_: has joined #ruby
[17:41:02] ruby-lang944: there are no cookies to give away, and no friends to receive them. So the Infinity does not make sense to me.
[17:41:08] Xeago: has joined #ruby
[17:41:12] havenwood: ruby[bot]: 1
[17:41:16] shevy: ruby-lang944 you clearly did not do 0/0 in irb man
[17:41:55] ruby-lang944: I did and it gave me ZeroDivisionError.
[17:42:15] ruby-lang944: but this is only for integer devision by zero.
[17:42:16] norc_: 20>> 1.fdiv 0
[17:42:17] ruby[bot]: norc_: # => Infinity (https://eval.in/503416)
[17:42:39] ruby-lang944: I am lost when my cookies count is a float
[17:42:51] hogetaro: has joined #ruby
[17:42:55] who42: has joined #ruby
[17:43:56] northfurr: has joined #ruby
[17:44:58] ruby-lang944: My problem is when working with numbers (consider i am working with floats) and perform a devision somewhere in the long chain of calculations.
[17:45:16] ruby-lang944: Somewhere in between my denominator became zero.
[17:45:32] rickmasta: has joined #ruby
[17:46:06] ruby-lang944: And now i am not aware of this. the system still continue with the further calculations, which will either end in an Infinity or Nan.
[17:46:23] ruby-lang944: That not what I expect of a good language.
[17:46:57] lucasb: sorry to correct you, but it's spelled "division" :)
[17:47:54] shevy: sounds bogus
[17:48:07] ruby-lang944: year sorry bout the spelling.
[17:48:09] dfinninger: has joined #ruby
[17:48:22] ruby-lang944: Sorry... What sounds bogus?
[17:48:27] emilford: has joined #ruby
[17:49:08] zeros0623: has joined #ruby
[17:50:56] yuta: has joined #ruby
[17:53:51] PsionTheory: has joined #ruby
[17:54:00] hannelita: has joined #ruby
[17:54:22] aperyon: has joined #ruby
[17:55:05] northfurr: has joined #ruby
[17:55:41] hogetaro: has joined #ruby
[17:57:33] emilford: has joined #ruby
[17:58:20] ruby-lang944: I don't see a scenario where Infinity will be useful, except when I need an infinite range, which in itself i feel is wrong.
[18:00:45] bronson: has joined #ruby
[18:01:32] howdoicomputer: has joined #ruby
[18:02:03] mostlybadfly: has joined #ruby
[18:02:12] freerobby: has joined #ruby
[18:02:42] aspiers_: has joined #ruby
[18:03:16] dlitvak: has joined #ruby
[18:04:21] tildes: has joined #ruby
[18:04:44] jokester: has joined #ruby
[18:04:58] solars: has joined #ruby
[18:05:11] shevy: I don't see a scenario where this is a problem
[18:06:22] dfinninger: has joined #ruby
[18:06:41] emilford: has joined #ruby
[18:07:49] casadei: has joined #ruby
[18:08:34] northfurr: has joined #ruby
[18:08:52] ruby-lang944: has left #ruby: ()
[18:09:03] ruby-lang944: has joined #ruby
[18:11:39] pawnbox_: has joined #ruby
[18:15:46] emilford: has joined #ruby
[18:21:19] cndiv: has joined #ruby
[18:24:47] emilford: has joined #ruby
[18:24:59] bvbrandon: how does one get the nth occurance of a character?
[18:26:22] gregf: has joined #ruby
[18:26:29] antgel: has joined #ruby
[18:29:39] BrunoSaboia: has joined #ruby
[18:29:46] shevy: here is one way:
[18:29:47] shevy: "abcdefghijkl".chars.select.each_with_index {|char, index| index % 3 == 0 } # => ["a", "d", "g", "j"]
[18:30:02] amclain: has joined #ruby
[18:30:10] jorum: has joined #ruby
[18:32:45] futilegames: has joined #ruby
[18:33:35] BTRE: has joined #ruby
[18:33:57] emilford: has joined #ruby
[18:34:48] yardenbar: has joined #ruby
[18:35:36] speakingcode: has joined #ruby
[18:37:28] jbrhbr: has joined #ruby
[18:38:37] wolffles: has joined #ruby
[18:39:07] tuelz1: has joined #ruby
[18:39:25] arup_r: has joined #ruby
[18:39:43] dlitvak: has joined #ruby
[18:40:11] lucasb: has joined #ruby
[18:41:30] dlitvak_: has joined #ruby
[18:41:34] aperyon: Hey guys! Im trying to find a easy to find in reference as proper documentation on ruby. Im pretty happy with what python has, but i seem to struggle to find similar stuff for ruby?
[18:42:09] griffindy: has joined #ruby
[18:42:59] emilford: has joined #ruby
[18:43:45] aspire: has joined #ruby
[18:43:51] aperyon: rubydocs.info?
[18:44:20] wolffles: oh i just ment the website
[18:44:45] aperyon: ye im browsing it now
[18:44:52] aperyon: just giving each link a try
[18:44:56] aperyon: in a way i enter each
[18:45:03] aperyon: and see what pops up
[18:45:14] wolffles: each is an enumerator
[18:46:16] wolffles: http://ruby-doc.org/core-2.2.0/Enumerator.html
[18:46:19] jgt: has joined #ruby
[18:46:51] aperyon: its just a test to see how easy to navigate and find what im looking for straight from reference rather than stackoverflow
[18:46:51] y3: has joined #ruby
[18:47:14] wolffles: yee super helpful
[18:47:27] havenwood: aperyon: See ri as well: http://www.jstorimer.com/blogs/workingwithcode/7766081-5-reasons-you-should-use-ri-to-read-ruby-documentation
[18:47:50] havenwood: aperyon: ri each
[18:48:08] aperyon: i already saw rdoc
[18:48:12] aperyon: didt make much sense
[18:48:21] aperyon: and i saw ri being mentioned there as well
[18:48:38] havenwood: aperyon: ^ take a look at Storimer's quick recap of ri
[18:48:48] solocshaw: has joined #ruby
[18:48:50] ruby[bot]: Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.
[18:48:50] ruby[bot]: org/ or get it now with: gem install pry pry-doc
[18:49:03] drocsid: has joined #ruby
[18:49:15] havenwood: aperyon: ^ you might also enjoy Pry! That's a great way to introspect code and find docs.
[18:50:20] wolffles: how do you learn how to use pry cuz right now im just using it to test simple lines
[18:51:10] aperyon: interesting
[18:51:18] aperyon: ri doesnt know anything about exit
[18:51:32] jamw: has joined #ruby
[18:51:56] lucasb: I think the ri must be generated first
[18:52:00] lucasb: *the ri database
[18:52:06] emilford: has joined #ruby
[18:52:10] PedramT: has joined #ruby
[18:53:18] havenwood: aperyon: works on my machine
[18:53:22] havenwood: aperyon: How'd you install Ruby?
[18:54:20] havenwood: aperyon: It came preinstalled, package manager, RVM, ruby-build, ruby-instal or you built it yourself?
[18:54:46] hannelita: has joined #ruby
[18:54:51] aperyon: i installed it a while ago almost 'accidentally' cuz of sass
[18:55:01] aperyon: im just starting it now
[18:55:15] aperyon: as a second language after python
[18:55:31] ur5us: has joined #ruby
[18:55:37] drocsid: I installed rvm awhile back and run some cron jobs by rvm created environments. Then recently my rvm environments started giving me trouble. It appeared the rvm installed ruby version had dissappeared somehow. I reinstalled it and continued to use my environment. Now I'm getting errors that have an issue with get_host_by_name. The ruby envionment doesn't seem to be able to resolve hostnames that the system c
[18:55:43] drocsid: an otherwise resolve via nslookup. Has anybody expierenced the get_host_by_name issue or missing rvm rubies?
[18:56:02] aspiers: has joined #ruby
[18:56:44] aperyon: im installing it with apt as ruby-full
[18:57:57] northfurr: has joined #ruby
[18:58:25] aspiers_: has joined #ruby
[18:58:39] aperyon: havenwood: ye, now its working after installing it with apt
[18:58:52] havenwood: aperyon: Was gunna say, ri's a dep of ruby-full!
[18:58:57] havenwood: aperyon: nice
[18:59:07] aperyon: how do i understand what i see?
[18:59:24] aperyon: from kernel, from context from argf
[18:59:27] BSab: has joined #ruby
[19:00:13] c0ncealed: has joined #ruby
[19:00:19] gruz0: has joined #ruby
[19:00:22] aperyon: aaah starts making sense
[19:00:27] aperyon: very interesting
[19:00:53] havenwood: drocsid: It's hard to say why the Ruby you had selected with RVM didn't persist. Especially now that you've reinstalled it. It could have not been sourcing in your dotfiles, you might have set system or another default, etc, etc.
[19:01:08] emilford: has joined #ruby
[19:01:24] tmtwd: has joined #ruby
[19:01:43] havenwood: drocsid: Gist the full errors?
[19:02:18] howdoicomputer: has joined #ruby
[19:03:03] bronson: has joined #ruby
[19:03:18] thoraxe: has joined #ruby
[19:03:51] northfurr: has joined #ruby
[19:04:30] Xeago: has joined #ruby
[19:09:29] dlitvak: has joined #ruby
[19:10:08] A124: has joined #ruby
[19:10:16] emilford: has joined #ruby
[19:12:23] wolffles: so im having issues with a condition in an enumerator. i think its just syntax im having trouble wtih.
[19:13:35] wolffles: https://eval.in/503440
[19:13:54] wolffles: i cant seem to break the loop
[19:15:57] lucasb: do you want to use #each or #select?
[19:16:32] wolffles: select cuz i want to choose the ones that fit the conditions
[19:16:49] wolffles: or im not sure
[19:16:56] ror15: has joined #ruby
[19:18:45] lucasb: if I understand correctly, Prime is an infinite enumerator
[19:19:21] emilford: has joined #ruby
[19:19:43] wolffles: yes it is thats why im having trouble breaking it
[19:19:52] wolffles: if its possible
[19:20:26] wolffles: this is the condition when ??? x <( 600851475143 / 2 )???
[19:20:43] wolffles: or until i mean
[19:21:58] wolffles: i suppose i shouldnt use && cuz it wouldnt make sense for both conditions to pass
[19:22:07] al2o3-cr: >> require 'prime'; Prime.take(2**16).select {|x| (600851475143 % x == 0) && (x < 600851475143 / 2) }
[19:22:08] ruby[bot]: al2o3-cr: # => [71, 839, 1471, 6857] (https://eval.in/503441)
[19:22:48] czsr: has joined #ruby
[19:22:49] czsr: has joined #ruby
[19:23:23] wolffles: al2o3-cr: thats beautiful
[19:23:34] ror15: has left #ruby: ()
[19:23:35] jorum: has joined #ruby
[19:24:00] guardian: has joined #ruby
[19:24:03] wolffles: my first solution took 10 lines :/
[19:24:04] al2o3-cr: wolffles: it's your code :P
[19:24:20] wolffles: but yours al2o3-cr makes sense lol
[19:25:16] al2o3-cr: ACTION goes and checks his euromillions to see if he's a winner winner chicken dinner
[19:26:13] User458764: has joined #ruby
[19:26:37] havenwood: wolffles: Or you could use lazy there: Prime.lazy.select { ... }.first 4
[19:26:48] PedramT: has joined #ruby
[19:28:14] karapetyan: has joined #ruby
[19:28:14] cashnguns: has joined #ruby
[19:28:30] emilford: has joined #ruby
[19:29:11] guardian: has joined #ruby
[19:29:29] victortyau: has joined #ruby
[19:29:58] Dimik: has joined #ruby
[19:30:41] wolffles: havenwood: i should probably learn .lazy
[19:30:51] northfurr: has joined #ruby
[19:32:58] karapetyan: has joined #ruby
[19:33:13] al2o3-cr: >> Prime.prime_division(600851475143).map(&:first)
[19:33:14] ruby[bot]: al2o3-cr: # => uninitialized constant Prime (NameError) ...check link for more (https://eval.in/503445)
[19:33:23] al2o3-cr: >> require 'prime'; Prime.prime_division(600851475143).map(&:first)
[19:33:25] ruby[bot]: al2o3-cr: # => [71, 839, 1471, 6857] (https://eval.in/503446)
[19:33:57] devbug: has joined #ruby
[19:35:11] symm-: has joined #ruby
[19:35:22] victortyau: has joined #ruby
[19:36:10] jorum: has joined #ruby
[19:37:12] wolffles: al2o3-cr: also great. however dont understand the :first
[19:37:33] emilford: has joined #ruby
[19:37:36] Graphettion: has joined #ruby
[19:37:40] wolffles: because it returns more than the first
[19:38:04] guardian: has joined #ruby
[19:38:14] al2o3-cr: &ri Enumerable#first
[19:38:14] `derpy: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-first
[19:38:31] victortyau: has joined #ruby
[19:39:55] tuelz1: has joined #ruby
[19:40:02] victortyau: has joined #ruby
[19:40:52] ta0: has joined #ruby
[19:42:25] wolffles: oh cuz the enumerator will return 1 integer at a time for map to choose from?
[19:42:46] Blaguvest: has joined #ruby
[19:43:31] al2o3-cr: [[71, 1], [839, 1], [1471, 1], [6857, 1]] this is an array of arrays, yes?
[19:44:16] al2o3-cr: map takes each element in the array which is an array so the first one is [71, 1], yes?
[19:45:28] al2o3-cr: then calls [71, 1].first which is 71 do you see what i mean (also not a great explainer) :P
[19:45:47] wolffles: no that was exactly what i needed
[19:46:28] dsfdsgdf: has joined #ruby
[19:46:36] emilford: has joined #ruby
[19:47:07] jgt: has joined #ruby
[19:47:41] Bulo: has joined #ruby
[19:48:44] asthasr: has left #ruby: ("Leaving")
[19:49:18] ericfreese: has joined #ruby
[19:49:41] znz_jp: has joined #ruby
[19:53:53] DrCode: has joined #ruby
[19:55:33] A124: has joined #ruby
[19:55:41] emilford: has joined #ruby
[19:55:55] casadei: has joined #ruby
[19:56:45] hannelita: has joined #ruby
[19:58:07] gbgdev: has joined #ruby
[19:58:17] karapetyan: has joined #ruby
[19:58:22] dionysus69: has joined #ruby
[20:00:39] PedramT: has joined #ruby
[20:01:12] drptbl: has joined #ruby
[20:04:48] emilford: has joined #ruby
[20:05:22] diegoviola: has joined #ruby
[20:06:56] marcdel: has joined #ruby
[20:07:30] marcdel: has joined #ruby
[20:08:04] sonOfRa: has joined #ruby
[20:08:33] yardenbar: has joined #ruby
[20:08:49] dmolina: has joined #ruby
[20:09:12] doublemalt_: has joined #ruby
[20:12:56] ruby-lang069: has joined #ruby
[20:13:53] emilford: has joined #ruby
[20:13:56] ruby-lang069: Can anyone help me with a ruby script I'm trying to write having finished code academt please?
[20:14:27] Radar: ruby-lang069: If you show us your code and explain your problem then we can help you.
[20:14:47] User458764: has joined #ruby
[20:15:04] ruby-lang069: Just trying to write a method that returns one of two strings at random.
[20:15:48] ruby-lang069: I've created methods that convert a string to upper and lower case and my third challenge is to return one string or another.
[20:16:18] j416: ruby-lang069: Array#sample is a quick way to accomplish that.
[20:16:44] ruby-lang069: I've tried that but couldn't get it to work.
[20:16:48] PedramT: has joined #ruby
[20:17:05] blackmes1: has joined #ruby
[20:17:18] j416: ruby-lang069: so show the code
[20:18:34] wolffles: you taking the app academy exam?
[20:18:44] ruby-lang069: array = ["chris","tony"]
[20:18:55] ruby-lang069: this sets the array up yeah?
[20:19:11] wolffles: thats an array yes
[20:19:29] ruby-lang069: array = ["chris","tony"] def random_name(random_name) random_name = array#sample end puts "Hello #{random_name}"
[20:19:33] bluOxigen_: has joined #ruby
[20:19:43] ruby-lang069: sorry, can't get line spacing on here
[20:21:01] dmolina: has joined #ruby
[20:22:37] j416: ruby-lang069: use a pastebin, it'll be easier
[20:23:00] emilford: has joined #ruby
[20:23:01] j416: ruby-lang069: Array#sample means "the instance method called 'sample' on an object of type Array"
[20:23:07] j416: ruby-lang069: it's nothing that you type out as-is
[20:23:14] j416: ruby-lang069: Array#sample means [].sample
[20:23:57] PedramT: has joined #ruby
[20:24:07] ruby-lang069: What should it be then?
[20:24:08] j416: ruby-lang069: so in your case, since you have a variable that you call array, you can do array.sample
[20:24:09] wolffles: ruby-lang069 = array = ["chris","tony"].sample
[20:24:23] j416: wolffles: that is just confusing
[20:24:34] wolffles: but its what he wants
[20:24:53] j416: he does not want two variables ruby-lang069 and array containing a string
[20:24:58] einarj: has joined #ruby
[20:25:01] j416: ruby-lang069: did it work out?
[20:25:12] wolffles: ruby-lang069: is his name sorry
[20:26:00] ruby-lang069: I just want a method that can then be put to the screen with one string or another at random
[20:26:14] j416: ruby-lang069: so you should be done
[20:26:20] j416: ruby-lang069: is there still a problem?
[20:26:53] j416: >> array = ['foo', 'bar]; array.sample
[20:26:55] ruby[bot]: j416: # => /tmp/execpad-a16f2f559a61/source-a16f2f559a61:2: unterminated string meets end of file ...check link for more (https://eval.in/503465)
[20:27:10] j416: >> array = ['foo', 'bar']; array.sample
[20:27:11] ruby[bot]: j416: # => "bar" (https://eval.in/503466)
[20:27:14] ruby-lang069: Would you put that in the method then?
[20:27:41] j416: ruby-lang069: I just told you, twice.
[20:28:08] wolffles: for app accademy tho they want you to create a method
[20:28:12] karapetyan: has joined #ruby
[20:28:22] peeja: has joined #ruby
[20:29:22] wolffles: https://eval.in/503467 ruby-lang069
[20:31:14] ruby-lang069: Sorry I can't get it working. I'll keep trying. Back in 20 mins.
[20:31:37] kobain: has joined #ruby
[20:31:40] j416: ruby-lang069: wolffles just gave you a complete solution
[20:31:49] j416: it's hard to know what your problem is if you can't communicate it..
[20:31:57] wolffles: im doing app accademy too ruby-lang069
[20:32:02] emilford: has joined #ruby
[20:32:09] ruby-lang069: I'll try explaining it again in a bit
[20:32:21] xet7: has joined #ruby
[20:32:27] aef: has joined #ruby
[20:33:00] guacamole: has joined #ruby
[20:34:53] dlitvak: has joined #ruby
[20:36:47] al2o3-cr: has joined #ruby
[20:37:46] Rodya_: has joined #ruby
[20:40:41] tuelz1: has joined #ruby
[20:40:42] yardenbar: has joined #ruby
[20:41:06] emilford: has joined #ruby
[20:42:36] blackmes1: has joined #ruby
[20:43:37] craysiii: has joined #ruby
[20:44:48] craysiii: has joined #ruby
[20:45:11] blackmesa: has joined #ruby
[20:46:45] pawnbox: has joined #ruby
[20:48:04] houhoulis: has joined #ruby
[20:48:26] victortyau: has joined #ruby
[20:48:27] unreal: has joined #ruby
[20:48:37] ruby-lang069: ok. wolffles and j416 are you guys there?
[20:49:25] ruby-lang069: I have a method that converts a string to upper case....
[20:49:31] ruby-lang069: def upper(name) name = name.upcase end
[20:49:43] ruby-lang069: and one that converts to lower case...
[20:49:48] ruby-lang069: def lower(name) name = name.downcase end
[20:50:00] ruby-lang069: When I call them, they work:
[20:50:06] ruby-lang069: puts "Hello #{upper(name)}" puts "Hello #{lower(name)}"
[20:50:14] emilford: has joined #ruby
[20:50:19] gbgdev: has joined #ruby
[20:50:42] j416: ruby-lang069: remove the puts in your randomizer method, voil??.
[20:50:42] wolffles: so whats the problem?
[20:50:43] j416: ACTION off
[20:50:54] ruby-lang069: now I need a method that will output one name or another when called.
[20:51:09] ruby-lang069: the method is called "random_name"
[20:51:17] ruby-lang069: and I need this to call it:
[20:51:23] ruby-lang069: puts "Hello #{random_name}"
[20:51:45] blackmesa: has joined #ruby
[20:52:17] jamw: has joined #ruby
[20:54:25] beast_: has joined #ruby
[20:54:57] blackmesa: has joined #ruby
[20:55:01] wolffles: ruby-lang069: https://eval.in/503472
[20:55:44] ruby-lang069: thanks wolffles but I don't understand. I need: puts "Hello #{random_name}" to call the method
[20:57:22] lucasb: def random_name; ["chris","tony"].sample; end
[20:57:33] hannelita: has joined #ruby
[20:57:52] Radar: ruby-lang069: You're not explaining it very well. What method should it call
[20:58:02] Radar: ruby-lang069: Should it call one of upper or lower?
[20:58:19] ruby-lang069: puts "Hello #{random_name}"
[20:58:32] wolffles: https://eval.in/503473
[20:59:22] emilford: has joined #ruby
[20:59:59] usershell: has joined #ruby
[20:59:59] wolffles: or if you really wanted you could just have done this https://eval.in/503475
[21:00:27] ruby-lang069: is P short for Puts?
[21:00:37] rakm: has joined #ruby
[21:00:37] Radar: ruby-lang069: it's short hand for puts thing.inspect
[21:00:49] Cohedrin: has joined #ruby
[21:01:03] usershell: has joined #ruby
[21:01:17] ruby-lang069: Ok.... now I need to implement a method called `random_case` that will return a lower or upper case version of a string (passed in as an argument) at random.
[21:02:07] Radar: ruby-lang069: We are not going to do your homework for yuo.
[21:02:30] blackmesa: has joined #ruby
[21:02:37] Radar: ruby-lang069: Please show that you've tried something and then we'll guide you along the path to the right answer. We really shouldn't be handing out answers here.
[21:02:46] wolffles: yeah is this the exam? where are you getting these problems cuz i never got these
[21:02:58] wolffles: are you doing the app acdemy in sf?
[21:03:03] howdoicomputer: has joined #ruby
[21:03:07] ruby-lang069: just some help would be nice? I can't get my head around it.
[21:03:11] Radar: "Please help me cheat the exam"
[21:03:17] Radar: ruby-lang069: I told you how to get help. Please follow my instructions.
[21:03:21] Cohedrin: you're trying to cheat on a code school test
[21:03:39] bronson: has joined #ruby
[21:03:53] ruby-lang069: how can I use a paste board? Much easier to give my answer on there
[21:04:40] Radar: ?gist ruby-lang069
[21:04:40] ruby[bot]: ruby-lang069: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[21:04:57] Radar: Cohedrin: ikr
[21:05:32] Radar: ruby-lang069: the trouble with us giving you answers is that you'll become a help vampire and you won't be a very good programmer at all... because the very second you get stuck you'll come crying to us for help.
[21:05:38] wolffles: string = ???this is how you upcase???; string.upcase
[21:05:50] ruby-lang069: Sorry I don't get it. I'll just try it on my own.
[21:05:53] Radar: ruby-lang069: And if you get hired as a "competent" programmer who just asks questions on IRC all the time then the company will see right through that and (very likely) fire you.
[21:06:05] Radar: ruby-lang069: If you're stuck in 15min then show us what you've tried and we'll help you.
[21:06:31] wolffles: id be pretty upset if you got into app academy tbh cuz ive been studying non stop for almsot a 2 months now
[21:07:23] ruby-lang069: I'll do it on my own then
[21:07:59] Cohedrin: wollfles which one are you trying to get into?
[21:08:18] wolffles: the next classes start in march
[21:08:21] Radar: so precise
[21:08:29] emilford: has joined #ruby
[21:08:33] Radar: there are at least a billionty code academies in SF
[21:08:36] pawnbox: has joined #ruby
[21:08:47] Cohedrin: I pass like 5 on my way to work
[21:08:58] Cohedrin: and I only walk 10 minutes
[21:09:23] wolffles: i like AA???s promised benefits
[21:09:37] wolffles: but honestly if i had the money id go with Bloc
[21:09:54] Radar: Hardtail who's sometimes here graduated from Bloc iirc.
[21:10:05] wolffles: they seem to have a more rigourous course and indepth about CS
[21:10:21] blackmes1: has joined #ruby
[21:10:26] Bulo: has left #ruby: ()
[21:10:33] wolffles: cuz so far i havent learned anything about umm operating systems
[21:10:42] Cohedrin: wait I thought code schools were free, they took part of your salary
[21:10:56] wolffles: Block is upfront you pay for school
[21:11:00] Radar: Cohedrin: depends
[21:11:01] wolffles: no exam required
[21:11:09] dlitvak: has joined #ruby
[21:11:26] Radar: Cohedrin: Turing.io tuition can be paid up front or in instalments AND if they don't find you a job within 6mths they refund the whole thing.
[21:11:44] dtordable: has left #ruby: ()
[21:12:18] Cohedrin: I see, the only one I'm familiar with is the one by that havard dropout.. code school? There was a video on it
[21:14:01] wolffles: im definatly going back to uni for a CS degree once i get a job in the industry
[21:14:15] Cohedrin: ah no, make school: https://www.youtube.com/watch?v=6rT00QXqZak
[21:14:32] Cohedrin: wolffles, what do you want to do?
[21:14:52] Cohedrin: web apps, data shit, etc
[21:14:58] ruby-lang069: Ok... can I ask some questions without ridicule? please?
[21:15:01] gruz0: has joined #ruby
[21:15:19] wolffles: tbh i feel like the schooling system is failing
[21:16:53] gbgdev: has joined #ruby
[21:17:12] Cohedrin: wolffles I agree with you that its failing developers. Which is why I'm asking what you want to do.
[21:17:22] ruby-lang069: can I ask please?
[21:17:37] Cohedrin: If you want to make web apps, or something similar, a cs degree is just going to waste your time in most cases
[21:17:57] Cohedrin: _especially_ if you want to work in sf, sf is very progressive in terms of degrees
[21:18:04] lucasb: only if they are ruby programming related questions
[21:19:07] emilford: has joined #ruby
[21:19:07] wolffles: be a developer i think
[21:19:07] wolffles: i havent looked at job possibilitys yet
[21:19:07] wolffles: when i look into the future i get overwhelmed and discourage cuz i have to learn so much more to get there
[21:19:54] ruby-lang069: Isn't the: p names.sample the same as puts names.sample
[21:20:14] Cohedrin: p means puts element.inspect
[21:20:26] ruby-lang069: how do you mean?
[21:20:34] Cohedrin: go into irb
[21:21:01] pawnbox: has joined #ruby
[21:21:17] ruby-lang069: and type: p names.sample
[21:21:33] Cohedrin: yes, for simple objects the output is going to look the same
[21:21:48] Cohedrin: the difference is that p calls the .inspect method on the object
[21:21:51] yfeldblum: has joined #ruby
[21:21:57] Cohedrin: which produces different output depending on the object
[21:22:06] Cohedrin: http://ruby-doc.org/core-2.1.1/Object.html#method-i-inspect
[21:22:19] djellemah: >> puts ["1","2"] # ruby-lang069
[21:22:21] ruby[bot]: djellemah: # => 1 ...check link for more (https://eval.in/503479)
[21:22:25] djellemah: >> p ["1","2"] # ruby-lang069
[21:22:26] ruby[bot]: djellemah: # => ["1", "2"] ...check link for more (https://eval.in/503481)
[21:23:19] ruby-lang069: so why "p" in my case?
[21:23:38] ruby-lang069: the help file you sent suggests that it's the class name?
[21:24:28] lolquery: has joined #ruby
[21:24:33] lolquery: anyone good at regex?
[21:24:36] lolquery: i would like some help with this regular expression: https://repl.it/Be6X
[21:24:39] lolquery: i would like to match only letters
[21:25:01] Cohedrin: I don't know what you're trying to ruby-lang069
[21:25:10] sonOfRa_: has joined #ruby
[21:25:55] Cohedrin: if you're trying to debug, p is usually more suitable for debugging
[21:26:37] emilford_: has joined #ruby
[21:26:40] Cohedrin: puts is usually more suitable for just printing strings
[21:26:46] norc_: if you are trying to debug, pry is your best friend.
[21:27:19] Cohedrin: norc_ has a good point
[21:27:25] drptbl: has joined #ruby
[21:27:37] Cohedrin: https://github.com/pry/pry
[21:27:41] ruby-lang069: so in my line of code.... is: p names.sample the same as: puts names.sample - I don't think it is.
[21:27:52] ico: has joined #ruby
[21:28:24] psyq_: has joined #ruby
[21:28:26] Cohedrin: it depends on what names is
[21:28:32] Cohedrin: is it an array of strings
[21:28:53] norc_: ri Kernel#p
[21:28:56] norc_: &ri Kernel#p
[21:28:56] `derpy: http://ruby-doc.org/core-2.3.0/Kernel.html#method-i-p
[21:29:02] norc_: ruby-lang069, ^--
[21:29:13] Cohedrin: already linked him norc_ lol
[21:29:22] Cohedrin: we're not reading docs here
[21:29:25] Cohedrin: thats too 2000
[21:29:26] bithon: has joined #ruby
[21:29:57] Cohedrin: go into irb, and type puts "a"
[21:29:58] Cohedrin: you'll see the difference
[21:30:41] `derpy: http://ruby-doc.org/core-2.3.0/Regexp.html
[21:30:51] djellemah: lolquery: ^-- look for [[:alpha:]]
[21:30:55] ruby-lang069: one returns nil and the other returns "a"
[21:31:01] ruby-lang069: is that correct?
[21:31:16] klaas: has joined #ruby
[21:31:18] norc_: Cohedrin, I just recommend you dont endulge the troll./
[21:32:06] Cohedrin: I would recommend you read the docs that I and norc_ have linked you
[21:32:40] Cohedrin: thats what they're there for :D
[21:33:17] pawnbox: has joined #ruby
[21:33:48] xProto: has joined #ruby
[21:34:11] lucasb: has joined #ruby
[21:34:24] Darmani: has joined #ruby
[21:34:38] symm-: has joined #ruby
[21:35:42] emilford: has joined #ruby
[21:35:51] finisherr: has joined #ruby
[21:37:36] Psyq: has joined #ruby
[21:39:40] carraroj: has joined #ruby
[21:40:45] Darmani: Lol apeiros.
[21:41:12] Darmani: I'm not sure why I keep getting this error. I don't get it when I run it in my code editor https://repl.it/Be65
[21:41:25] tuelz1: has joined #ruby
[21:41:29] diego1: has joined #ruby
[21:41:37] diego1: has joined #ruby
[21:41:44] Darmani: Besides that error though, the real problem is that the boolean returns true and it shouldn't. I don't know why it comes back as true...
[21:42:02] ohaibbq: has joined #ruby
[21:42:22] apeiros: seems to be a bug with repl.it
[21:42:25] apeiros: works fine in pry
[21:42:49] Darmani: @apeiros - Oh okay.
[21:43:01] Darmani: @apeiros - It shouldn't return as true though... "ab" is not a letter.
[21:43:02] apeiros: but remove those parens. it looks silly and is not necessary.
[21:43:12] Cohedrin: I suspect its a repl thing
[21:43:24] Cohedrin: apeiros beat me to it :D
[21:43:29] apeiros: Darmani: and @ is not required in irc - that makes you look silly.
[21:43:34] havenwood: Darmani: And use two-spaced soft tabs.
[21:43:44] Darmani: lmao okay now that we're done nitpicking...
[21:43:53] havenwood: Darmani: That's a community standard.
[21:44:01] Darmani: Someone tell me why it returns as true. I don't get it.
[21:44:02] apeiros: as for it not doing what you want - well, you'll have to fix your regex then
[21:44:17] apeiros: because "ab" matches /[a-z]/
[21:44:27] apeiros: >> "ab" =~ /[a-z]/
[21:44:28] ruby[bot]: apeiros: # => 0 (https://eval.in/503482)
[21:44:44] emilford: has joined #ruby
[21:44:50] apeiros: you want the regex to mean *exactly one* [a-z]?
[21:44:51] Darmani: How do I fix that...
[21:44:54] havenwood: "ab" has a character in the range of a to z.
[21:45:06] apeiros: >> "ab" =~ /\A[a-z]\z/
[21:45:08] ruby[bot]: apeiros: # => nil (https://eval.in/503483)
[21:45:18] apeiros: the regex is allowed to match anywhere in your string
[21:45:26] pawnbox: has joined #ruby
[21:45:32] apeiros: and \A says "start of string" and \z says "end of string"
[21:45:42] apeiros: don't confuse them with ^ and $ (start of line and end of line)
[21:45:48] Darmani: So the whole string is judged instead of each character?
[21:45:55] norc_: And you should probably include upper case letters too.
[21:46:01] apeiros: yes, =~ will try at every possible position
[21:46:10] apeiros: >> "foobar" =~ /bar/
[21:46:11] ruby[bot]: apeiros: # => 3 (https://eval.in/503484)
[21:46:13] hxegon: How can I get 'context' syntax in minitest specs? I read about minitest-context, but that seems depreciated.
[21:46:17] Darmani: Ahhh. I see. I guess that makes sense.
[21:46:36] havenwood: >> '??' =~ /\A[[:lower:]]\z/
[21:46:38] ruby[bot]: havenwood: # => 0 (https://eval.in/503485)
[21:47:06] Darmani: Cool thanks guys ^.^
[21:47:44] Darmani: apeiros - I'm starting to like you.
[21:47:46] Darmani: Just a little bit.
[21:47:53] havenwood: >> '??' =~/\A\p{Lower}\z/
[21:47:54] hxegon: apeiros also, something I've been wondering. \a and \z are case insensitive right? \a == \A, \z == \Z?
[21:47:55] ruby[bot]: havenwood: # => 0 (https://eval.in/503486)
[21:47:57] apeiros: as long as you don't expect it to be mutual :-p
[21:48:09] Darmani: apeiros - Ha. I wouldn't dream of it =P
[21:48:10] apeiros: hxegon: incorrect
[21:48:17] jgt: has joined #ruby
[21:48:24] apeiros: \z != \Z, and I have no idea what \a is :)
[21:48:27] apeiros: might be just a
[21:48:36] hxegon: apeiros :| I may have some code to run too...
[21:48:46] apeiros: \z = end of string, \Z = end of string, allowing a newline after the \Z
[21:49:08] hxegon: ahh. ty apeiros
[21:49:08] havenwood: or golf: \p{Ll}
[21:49:12] newbie22: has joined #ruby
[21:49:16] Darmani: apeiros - Quick question. So \A and "^" are not the same thing?
[21:49:19] apeiros: >> ["foo\n" =~ /foo\z/, "foo\n" =~ /foo\Z/] # <- hxegon
[21:49:20] ruby[bot]: apeiros: # => [nil, 0] (https://eval.in/503487)
[21:49:33] apeiros: Darmani: correct. \A and ^ differ
[21:49:53] apeiros: >> ["foo\nbar" =~ /^bar/, "foo\nbar" =~ /\Abar/] # <- Darmani
[21:49:55] ruby[bot]: apeiros: # => [4, nil] (https://eval.in/503488)
[21:50:04] havenwood: Darmani: Give the Regexp docs a once over, or at least the cliff notes: http://rubular.com
[21:50:18] apeiros: ^ is start of line - which is any line. hence "foo\nbar" satisfies /^bar/, since there is indeed a line starting with "bar"
[21:50:41] Darmani: havenwood - Roger that.
[21:51:02] Darmani: apeiros - Mmk, thanks.
[21:51:08] b2zeldafreak: has joined #ruby
[21:51:20] apeiros: and yeah, +1 @ regexp docs. they're now in a quite good shape.
[21:51:31] havenwood: http://ruby-doc.org/core/Regexp.html
[21:53:52] emilford: has joined #ruby
[21:54:19] apeiros: Darmani: re your repl.it problem - you're not in toplevel. class ::String instead of class String fixes the problem.
[21:55:01] Darmani: apeiros - ehhh. I'm still a little iffy on how scopes work... I have to study more.
[21:55:20] apeiros: Darmani: essentially you're doing `module Context; class String; ??? ; end; end?
[21:55:31] apeiros: because they eval your code within that Context thingy.
[21:55:47] apeiros: so you create a class Context::String with a single #letter? method, instead of changing String.
[21:56:09] lucasb: this is a repl.it specific thing, right?
[21:56:11] havenwood: Darmani: Use a local REPL! Pry is nice.
[21:56:12] apeiros: and ::String just tells ruby "use toplevel String, not Current::Scope::String"
[21:56:17] apeiros: lucasb: yes
[21:56:23] apeiros: and +1 pry
[21:56:30] havenwood: ?pry Darmani
[21:56:31] ruby[bot]: Darmani: Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https:/
[21:56:31] ruby[bot]: /pryrepl.org/ or get it now with: gem install pry pry-doc
[21:56:38] apeiros: after more than 15min, it's silly to still use repl.it or similar.
[21:57:00] apeiros: hu? who made that longer than a single message? o0
[21:57:06] apeiros: that should be verboten.
[21:57:13] Darmani: apeiros - Okay. That was a little hard to follow but thanks. I'll fix it.
[21:57:34] Darmani: havenwood - I've been using sublime as of late.
[21:57:45] pawnbox: has joined #ruby
[21:57:48] apeiros: oh, I guess cinch didn't split, butler does
[21:58:15] hannelita: has joined #ruby
[21:58:54] mist: has joined #ruby
[21:59:39] havenwood: Darmani: I think you can set Sublime to detect spacing by buffer or whatever they call it. It should know Ruby's convention well. Or in your settings tab_size 2 and translate_tables_to_spaces true.
[21:59:57] havenwood: translate_tabs*
[22:00:18] brack: has joined #ruby
[22:00:24] hxegon: Anyone have an opinion on minitest::unit vs minitest::spec?
[22:00:37] Darmani: havenwood - The sizes for the tabs are 4. It's easier for me to see what I'm doing that way.
[22:00:41] lxsameer: has joined #ruby
[22:01:04] apeiros: sublime sometimes fails wrt spaces/tabs
[22:01:17] apeiros: for some reason it sometimes assumes insane tab-widths
[22:01:27] pwnd_nsfw: has joined #ruby
[22:02:04] guacamole: has joined #ruby
[22:02:58] emilford: has joined #ruby
[22:03:15] havenwood: Darmani: I'd recommend two-spacing anyways for code you publish. It's a strong convention.
[22:03:24] vikas027: has joined #ruby
[22:03:55] Darmani: havenwood - Noted, thanks.
[22:05:48] chridal: has joined #ruby
[22:05:48] chridal: has joined #ruby
[22:05:51] duracrisis: has joined #ruby
[22:05:53] bronson: has joined #ruby
[22:05:54] M-Technic: has joined #ruby
[22:05:55] hinbody: has joined #ruby
[22:05:58] spacemud: has joined #ruby
[22:06:03] Couch: has joined #ruby
[22:06:05] tekk: has joined #ruby
[22:06:08] ccowart: has joined #ruby
[22:06:12] casadei: has joined #ruby
[22:06:13] chouhoulis: has joined #ruby
[22:06:24] hypnosb: has joined #ruby
[22:06:31] mrtomme: has joined #ruby
[22:06:34] TheBrayn: has joined #ruby
[22:06:41] El3ktra: has joined #ruby
[22:06:41] El3ktra: has joined #ruby
[22:06:44] linduxed: has joined #ruby
[22:06:48] KillerFox: has joined #ruby
[22:06:58] Platini: has joined #ruby
[22:07:19] gregf: has joined #ruby
[22:07:45] blackgoat: has joined #ruby
[22:07:45] inkky: has joined #ruby
[22:07:45] inkky: has joined #ruby
[22:08:08] Kryptonical: has joined #ruby
[22:08:48] Azure: has joined #ruby
[22:08:49] haraigoshi: has joined #ruby
[22:09:12] CloCkWeRX: has joined #ruby
[22:10:06] pawnbox: has joined #ruby
[22:10:39] Xeago: has joined #ruby
[22:10:40] mame2: has joined #ruby
[22:10:55] forgot: has joined #ruby
[22:12:00] emilford: has joined #ruby
[22:13:21] guacamole: has joined #ruby
[22:14:52] last_staff: has joined #ruby
[22:15:06] mfb2: has joined #ruby
[22:15:21] Melpaws: has joined #ruby
[22:16:03] diego1: has joined #ruby
[22:16:12] diego1: has joined #ruby
[22:16:41] mistermocha: has joined #ruby
[22:17:27] faewfd: has joined #ruby
[22:17:35] marcdel: has joined #ruby
[22:18:04] mfb2_: has joined #ruby
[22:18:27] mondok: has joined #ruby
[22:19:01] stevemackinnon: has joined #ruby
[22:19:42] changa: has joined #ruby
[22:19:42] ChanServ: +b *!*@gateway/web/freenode/ip.24.6.45.239
[22:19:42] ChanServ: ChanServ kicked changa: goodbye
[22:19:43] ruby[bot]: -b+b *!*@gateway/web/freenode/ip.24.6.45.239 *!*@gateway/web/freenode/ip.24.6.45.239$#ruby-banned
[22:20:01] skade: has joined #ruby
[22:21:06] emilford: has joined #ruby
[22:21:47] sharkman: has joined #ruby
[22:22:20] sharkman: a = [8, 10, 3, 1]... how do i return just 10, and 1... like a[1,3]
[22:22:22] pawnbox: has joined #ruby
[22:23:09] minotep: has joined #ruby
[22:23:27] sharkman: by doing a[1,3] i get [10,3,1] which is not what i want
[22:23:54] lucasb: a.at_values(1, 3)
[22:24:07] lucasb: *values_at
[22:24:37] Melpaws: has joined #ruby
[22:24:41] rkazak: has joined #ruby
[22:26:55] dlitvak: has joined #ruby
[22:27:08] harai: has joined #ruby
[22:27:20] Rodya_: has joined #ruby
[22:27:39] tuelz1: has joined #ruby
[22:27:40] rhg135: has joined #ruby
[22:28:08] renderful: has joined #ruby
[22:28:27] erichmenge: has joined #ruby
[22:28:27] tsunamie: has joined #ruby
[22:28:31] vifino: has joined #ruby
[22:29:36] tsunamie: has joined #ruby
[22:30:17] emilford: has joined #ruby
[22:34:23] dorei: has joined #ruby
[22:34:48] pawnbox: has joined #ruby
[22:36:53] colegatron: has joined #ruby
[22:38:20] guacamole: has joined #ruby
[22:39:03] j_mcnally: has joined #ruby
[22:39:19] emilford: has joined #ruby
[22:39:23] Kruppe: has joined #ruby
[22:39:56] sankaber: has joined #ruby
[22:42:59] skade: has joined #ruby
[22:43:08] zast: has joined #ruby
[22:44:57] zenlot2: has joined #ruby
[22:45:02] duoi: has joined #ruby
[22:45:39] skade: has joined #ruby
[22:45:48] diego1: has joined #ruby
[22:45:59] diego1: has joined #ruby
[22:47:04] yorickpeterse: has joined #ruby
[22:47:10] pawnbox: has joined #ruby
[22:47:54] gruz0_: has joined #ruby
[22:48:08] tekk: has joined #ruby
[22:48:15] timmow: has joined #ruby
[22:49:01] nomadic: has joined #ruby
[22:49:02] codex: has joined #ruby
[22:49:04] stevemackinnon: has joined #ruby
[22:49:32] lannonbr1: has joined #ruby
[22:49:41] marr123: has joined #ruby
[22:49:42] rickmasta: has joined #ruby
[22:50:03] snapcase: has joined #ruby
[22:50:06] emilford: has joined #ruby
[22:50:14] hollywood: has joined #ruby
[22:50:21] matugm: has joined #ruby
[22:50:21] matugm: has joined #ruby
[22:50:34] Brando753-o_O_o: has joined #ruby
[22:50:41] Psyq: has joined #ruby
[22:50:49] Silex: has joined #ruby
[22:50:58] gilesww: has joined #ruby
[22:51:21] unsymbol: has joined #ruby
[22:51:21] webhat: has joined #ruby
[22:51:28] CustosLimen: has joined #ruby
[22:51:31] crowell: has joined #ruby
[22:51:32] crowell: has joined #ruby
[22:51:40] sumark: has joined #ruby
[22:51:47] levifig: has joined #ruby
[22:51:59] tomaw: has joined #ruby
[22:52:21] minimalism: has joined #ruby
[22:52:25] Ropeney: has joined #ruby
[22:52:41] Hanmac: has joined #ruby
[22:53:13] jamw: has joined #ruby
[22:53:56] Zarthus_: has joined #ruby
[22:53:56] armyriad: has joined #ruby
[22:53:58] Nightmare: has joined #ruby
[22:53:58] iamayam: has joined #ruby
[22:54:08] grassass: has joined #ruby
[22:54:10] Cork: has joined #ruby
[22:54:36] jsaak: has joined #ruby
[22:54:45] deimos: has joined #ruby
[22:54:45] daxroc: has joined #ruby
[22:54:53] rfv: has joined #ruby
[22:55:02] jxf: has joined #ruby
[22:55:05] ruisantos: has joined #ruby
[22:55:40] mfb2: has joined #ruby
[22:56:47] aep: has joined #ruby
[22:56:48] chrisarcand: has joined #ruby
[22:56:51] djellemah: has joined #ruby
[22:57:09] kalopsian: has joined #ruby
[22:57:28] edwinvdgraaf: has joined #ruby
[22:57:40] okdas: has joined #ruby
[22:58:01] ELCALOR: has joined #ruby
[22:58:01] sfr^: has joined #ruby
[22:58:01] sharkman: has joined #ruby
[22:58:01] Kryptonical: has joined #ruby
[22:58:01] znz_jp: has joined #ruby
[22:58:01] amclain: has joined #ruby
[22:58:01] davedev24: has joined #ruby
[22:58:01] mahk: has joined #ruby
[22:58:01] phredus: has joined #ruby
[22:58:01] crdpink2: has joined #ruby
[22:58:02] Apocalypse: has joined #ruby
[22:58:02] LiquidInsect: has joined #ruby
[22:58:02] dmonster: has joined #ruby
[22:58:02] mclee: has joined #ruby
[22:58:02] Seich: has joined #ruby
[22:58:02] shadeslayer: has joined #ruby
[22:58:02] Guest4184____: has joined #ruby
[22:58:02] angiebadillo: has joined #ruby
[22:58:02] joaomdmoura__: has joined #ruby
[22:58:02] charles81: has joined #ruby
[22:58:02] adambeynon: has joined #ruby
[22:58:02] jpinnix_______: has joined #ruby
[22:58:02] acadavid: has joined #ruby
[22:58:02] Lloyd: has joined #ruby
[22:58:02] Heero: has joined #ruby
[22:58:02] halfdan: has joined #ruby
[22:58:02] tinnvec: has joined #ruby
[22:58:02] melter: has joined #ruby
[22:58:02] romain_t: has joined #ruby
[22:58:02] Keltia: has joined #ruby
[22:58:02] cschneid: has joined #ruby
[22:58:02] clamstar: has joined #ruby
[22:58:02] ddfreyne: has joined #ruby
[22:58:02] avenj: has joined #ruby
[22:58:02] llua: has joined #ruby
[22:58:02] Coraline: has joined #ruby
[22:58:03] jinie: has joined #ruby
[22:58:03] unsymbol: has joined #ruby
[22:58:03] ELCALOR: has joined #ruby
[22:58:03] greenhat: has joined #ruby
[22:58:03] okdas: has joined #ruby
[22:58:10] sfr^: has joined #ruby
[22:58:11] sfr^: has joined #ruby
[22:58:47] varesa: has joined #ruby
[22:58:53] Keltia: has joined #ruby
[22:58:57] scottymeuk: has joined #ruby
[22:58:59] mfb2_: has joined #ruby
[22:59:13] pawnbox: has joined #ruby
[22:59:15] hannelita: has joined #ruby
[22:59:20] emilford: has joined #ruby
[22:59:38] Meow-J: has joined #ruby
[22:59:41] ELCALOR: has joined #ruby
[22:59:48] Guest4184____: has joined #ruby
[23:02:41] sideshowcoder: has joined #ruby
[23:02:47] bakedb: has joined #ruby
[23:03:17] snapcase: has joined #ruby
[23:03:51] howdoicomputer: has joined #ruby
[23:08:28] emilford: has joined #ruby
[23:08:49] ixti: has joined #ruby
[23:09:19] peteyg: has joined #ruby
[23:09:29] juddey: has joined #ruby
[23:10:21] chouhoulis: has joined #ruby
[23:11:43] pawnbox: has joined #ruby
[23:13:41] Xeago: has joined #ruby
[23:17:29] emilford: has joined #ruby
[23:19:20] stannard: has joined #ruby
[23:19:59] x0F: has joined #ruby
[23:20:21] sandstrom: has joined #ruby
[23:21:18] DLSteve: has joined #ruby
[23:21:57] gbgdev_: has joined #ruby
[23:22:59] Rodya_: has joined #ruby
[23:25:43] pawnbox: has joined #ruby
[23:25:44] blur3d: has joined #ruby
[23:26:30] waka: has joined #ruby
[23:26:38] emilford: has joined #ruby
[23:26:53] Yzguy: has joined #ruby
[23:27:52] dpg1: has joined #ruby
[23:28:00] diego1: has joined #ruby
[23:29:36] ur5us: has joined #ruby
[23:29:58] Yzguy: has joined #ruby
[23:31:30] XxionxX: has joined #ruby
[23:31:43] mistermocha: has joined #ruby
[23:32:03] diego1: has joined #ruby
[23:32:10] ss_much: has joined #ruby
[23:33:59] skade: has joined #ruby
[23:34:37] dlitvak: has joined #ruby
[23:35:42] emilford: has joined #ruby
[23:36:35] pawnbox: has joined #ruby
[23:36:47] casadei: has joined #ruby
[23:37:28] sandstrom: has joined #ruby
[23:37:31] Rodya_: has joined #ruby
[23:40:11] hannelita: has joined #ruby
[23:40:57] musl: has joined #ruby
[23:44:35] griffindy: has joined #ruby
[23:45:52] dostoyevsky: Hi. Does ruby's set_trace_func also include Procs? Like: do {|a| a.something }
[23:46:18] xProto: has left #ruby: ()
[23:47:10] pawnbox: has joined #ruby
[23:48:18] joneshf-laptop: has joined #ruby
[23:49:05] jgt: has joined #ruby
[23:49:24] ur5us: has joined #ruby
[23:51:21] akem: has joined #ruby
[23:52:07] m1dnight_: has joined #ruby
[23:53:52] emilford: has joined #ruby
[23:55:01] sandstrom: has joined #ruby
[23:55:12] mistermocha: has joined #ruby
[23:56:56] mistermocha: has joined #ruby
[23:58:10] casadei: has joined #ruby