« Back to channel list

#ruby - 10 April 2016

« Back 1 day Forward 1 day »
[00:03:05] blackmesa: has joined #ruby
[00:03:10] tristanp: has joined #ruby
[00:05:28] Inside: has joined #ruby
[00:05:28] Inside: has joined #ruby
[00:06:05] jenrzzz: has joined #ruby
[00:08:31] Xeago: has joined #ruby
[00:10:03] fedexo_: has joined #ruby
[00:13:04] nettoweb: has joined #ruby
[00:18:17] _stu_: has joined #ruby
[00:21:45] flashpoint9: has joined #ruby
[00:23:47] flashpoint9: Im working through a book and they have this code https://gist.github.com/JosephLeon/73117140f098eef7e80a0cac2fde94b8 when I run it from the command line it throws an error (bottom of gist). Anyone know why?
[00:23:54] troulouliou_div2: has joined #ruby
[00:26:46] flashpoint9: Im working through a book and they have this code https://gist.github.com/JosephLeon/73117140f098eef7e80a0cac2fde94b8 when I run it from the command line it throws an error (bottom of gist). Anyone know why?
[00:27:46] darkf: has joined #ruby
[00:28:04] Ox0dea: flashpoint9: You misspelled the parameter in #initialize.
[00:28:46] ensyde__: has joined #ruby
[00:29:48] flashpoint9: Ox0dea: wow, thanks
[00:30:12] Ox0dea: flashpoint9: Sure thing. It doesn't throw a NameError because the `attr_reader` has already defined a method called #chainring (which will return the value of @chainring, which will be `nil` at this point).
[00:30:28] Ox0dea: So you were effectively saying `@chainring = nil`, and thus the NoMethodError.
[00:30:50] Ox0dea: No worries.
[00:31:39] chipotle: has joined #ruby
[00:32:14] nettoweb: has joined #ruby
[00:32:18] ensyde_: has joined #ruby
[00:32:18] Denart_: Building an API on RoR watch live! https://www.livecoding.tv/edge_tor/
[00:32:58] RegulationD: has joined #ruby
[00:36:49] patrick-sartent: has joined #ruby
[00:37:12] diego1: has joined #ruby
[00:38:42] lightheaded: has joined #ruby
[00:39:23] kobain: has joined #ruby
[00:40:05] diego1: has joined #ruby
[00:43:54] cwong_on_irc: has joined #ruby
[00:43:54] ruby[bot]: +b cwong_on_irc*!*@*$#ruby-fix-your-connection
[00:43:54] ruby[bot]: ruby[bot] kicked cwong_on_irc: banned before
[00:45:49] dhinojosa: has joined #ruby
[00:46:00] bronson: has joined #ruby
[00:46:08] houhoulis: has joined #ruby
[00:46:44] shevy: Denart_ so you are a spambot
[00:46:50] madgen: has joined #ruby
[00:50:50] jgt4: has joined #ruby
[00:51:41] Asher: has joined #ruby
[00:51:54] cdg: has joined #ruby
[00:59:43] perlgod: has joined #ruby
[01:02:19] solocshaw: has joined #ruby
[01:02:22] bruno-: has joined #ruby
[01:03:00] fschuindt: Any enlightment? http://stackoverflow.com/questions/36524206/is-possible-to-detect-if-two-images-are-the-same-using-ruby-vips8
[01:03:50] stannard: has joined #ruby
[01:04:59] kobain: has joined #ruby
[01:05:40] flashpoint9: has joined #ruby
[01:06:29] yohle: has joined #ruby
[01:06:43] ensyde: has joined #ruby
[01:08:10] yohle: has joined #ruby
[01:11:18] RyanMcCoskrie: has joined #ruby
[01:15:52] coyo: has joined #ruby
[01:21:26] zacts: hello rubyists
[01:21:30] zacts: :b programming
[01:27:09] baweaver: has joined #ruby
[01:28:18] tristanp: has joined #ruby
[01:31:25] Rubie: has joined #ruby
[01:31:45] shevy: is this a vim command zacts
[01:34:48] ekinmur: has joined #ruby
[01:36:06] cpruitt: has joined #ruby
[01:38:21] troulouliou_div2: has joined #ruby
[01:39:17] blt: has joined #ruby
[01:39:29] lightheaded: has joined #ruby
[01:42:20] Rodya_: has joined #ruby
[01:42:57] flashpoint9: has joined #ruby
[01:44:49] Madplatypus: has joined #ruby
[01:48:39] duckpuppy: has joined #ruby
[01:51:36] krobzaur_: has joined #ruby
[01:53:51] jtoy: has joined #ruby
[01:55:31] danielpclark: has joined #ruby
[01:55:45] danielpclark: Is there a short hand method for this? &" ".chars().next().unwrap()
[01:56:02] danielpclark: oops, wrong room
[01:56:05] bkxd: has joined #ruby
[01:59:45] ManUtd27: has joined #ruby
[02:07:52] chagel: has joined #ruby
[02:20:41] arescorpio: has joined #ruby
[02:24:37] Lildirt: has joined #ruby
[02:26:39] tristanp: has joined #ruby
[02:26:42] Yzguy: has joined #ruby
[02:27:16] greenride: has left #ruby: ()
[02:27:48] Ox0dea: Qb lbh jnaan ohvyq n fabjzna?
[02:28:26] coffeecupp: has joined #ruby
[02:29:00] catpoop: bar gung oernguf sver!
[02:29:59] shevy: this is the day of the weird time again
[02:33:20] Ox0dea: *oerngurf :C
[02:37:51] coffeecupp: has joined #ruby
[02:39:53] braincra-: has joined #ruby
[02:40:12] lightheaded: has joined #ruby
[02:49:41] ur5us: has joined #ruby
[02:54:53] dfockler: has joined #ruby
[02:59:24] hinbody: has joined #ruby
[03:03:08] cdg: has joined #ruby
[03:05:47] sauvin: has joined #ruby
[03:16:19] Dimik: has joined #ruby
[03:17:13] braincrash: has joined #ruby
[03:19:30] ur5us: has joined #ruby
[03:27:40] gix: has joined #ruby
[03:28:22] baweaver: has joined #ruby
[03:28:54] chipotle_: has joined #ruby
[03:31:32] silentpost: has joined #ruby
[03:31:33] Rodya_: has joined #ruby
[03:31:44] jhack: has joined #ruby
[03:34:06] crameth: has joined #ruby
[03:35:21] crameth: has joined #ruby
[03:37:29] Rodya_: has joined #ruby
[03:39:54] ur5us: has joined #ruby
[03:40:04] Xeago: has joined #ruby
[03:40:58] lightheaded: has joined #ruby
[03:41:08] moeabdol4: has joined #ruby
[03:42:44] chipotle: has joined #ruby
[03:44:22] ruby-lang775: has joined #ruby
[03:44:36] josephan: has joined #ruby
[03:49:30] Oog: has joined #ruby
[03:49:36] diegoviola: has joined #ruby
[03:49:47] bronson: has joined #ruby
[03:50:35] Tempesta_: has joined #ruby
[03:51:34] codecop: has joined #ruby
[03:52:41] Rodya_: has joined #ruby
[03:56:53] bkxd: has joined #ruby
[03:59:40] Tempesta: has joined #ruby
[03:59:52] Cohedrin: has joined #ruby
[04:00:06] Suntzu: has joined #ruby
[04:05:47] d0nn1e: has joined #ruby
[04:07:58] araujo: has joined #ruby
[04:08:40] davee_: has joined #ruby
[04:11:54] baweaver: has joined #ruby
[04:13:04] chagel: has joined #ruby
[04:14:29] shmoon_: has joined #ruby
[04:21:47] flashpoint9: has joined #ruby
[04:23:13] cabargas: has joined #ruby
[04:24:49] code2Learn: has joined #ruby
[04:25:24] RyanMcCoskrie: has joined #ruby
[04:26:01] jgt4: has joined #ruby
[04:29:18] Rodya_: has joined #ruby
[04:34:48] RegulationD: has joined #ruby
[04:36:44] existensil: has joined #ruby
[04:41:47] lightheaded: has joined #ruby
[04:47:59] Rodya_: has joined #ruby
[04:48:12] duckpuppy: has joined #ruby
[04:50:28] Devalo: has joined #ruby
[04:51:31] Rodya_: has joined #ruby
[04:57:19] troys: has joined #ruby
[04:57:56] Rodya_: has joined #ruby
[05:00:00] SShrike: has joined #ruby
[05:03:18] BTRE: has joined #ruby
[05:10:41] galeido: has joined #ruby
[05:11:45] rkazak: has joined #ruby
[05:13:51] bronson: has joined #ruby
[05:14:12] ramfjord: has joined #ruby
[05:14:13] tax: has joined #ruby
[05:15:26] merida: has joined #ruby
[05:24:08] bronson: has joined #ruby
[05:27:01] hahuang65: has joined #ruby
[05:30:08] crameth: has joined #ruby
[05:32:28] crameth: has joined #ruby
[05:35:12] slacko30426: has joined #ruby
[05:36:44] joonty: has joined #ruby
[05:36:45] yfeldblum: has joined #ruby
[05:37:01] zzak: has joined #ruby
[05:39:02] rippa: has joined #ruby
[05:40:57] youch: has joined #ruby
[05:42:30] lightheaded: has joined #ruby
[05:44:49] robbyoconnor: has joined #ruby
[05:46:25] Rodya_: has joined #ruby
[05:46:45] tvw: has joined #ruby
[05:49:56] chipotle: has joined #ruby
[05:50:49] naftilos76: has joined #ruby
[05:54:08] snoobydoo: has joined #ruby
[05:55:20] tubuliferous: has joined #ruby
[05:55:21] G: has joined #ruby
[05:55:40] lkba: has joined #ruby
[05:56:22] dionysus69: has joined #ruby
[05:56:27] goglosh: has joined #ruby
[05:57:41] bkxd: has joined #ruby
[05:57:54] barajasfab: has joined #ruby
[06:00:26] merida: has joined #ruby
[06:01:40] kareeoleez: has joined #ruby
[06:03:14] cdg: has joined #ruby
[06:13:14] chagel: has joined #ruby
[06:13:56] kadoppe: has joined #ruby
[06:15:06] bronson: has joined #ruby
[06:16:55] PedramT: has joined #ruby
[06:18:45] chipotle: has joined #ruby
[06:19:56] Musashi007: has joined #ruby
[06:23:35] agit0: has joined #ruby
[06:25:16] stupidystupid: has joined #ruby
[06:25:25] Yzguy: has joined #ruby
[06:26:03] barajasfab: has joined #ruby
[06:26:50] tristanp_: has joined #ruby
[06:27:30] merida_: has joined #ruby
[06:28:14] tristanp: has joined #ruby
[06:28:34] GnuYawk: has joined #ruby
[06:28:44] GnuYawk: has joined #ruby
[06:29:06] hk238: has joined #ruby
[06:29:09] Musashi007: has joined #ruby
[06:30:10] SolarSailor: has joined #ruby
[06:30:50] djbkd: has joined #ruby
[06:35:48] RegulationD: has joined #ruby
[06:39:55] chipotle: has joined #ruby
[06:41:56] PedramT: has joined #ruby
[06:43:15] lightheaded: has joined #ruby
[06:43:40] PedramT_: has joined #ruby
[06:44:07] lxsameer: has joined #ruby
[06:44:52] sandelius: has joined #ruby
[06:49:19] Rodya_: has joined #ruby
[06:50:18] JohnBat26: has joined #ruby
[06:50:33] duckpuppy: has joined #ruby
[06:51:32] ur5us: has joined #ruby
[06:51:44] Devalo: has joined #ruby
[06:52:36] kadoppe: has joined #ruby
[06:54:13] GnuYawk: has joined #ruby
[06:54:26] GnuYawk: has joined #ruby
[06:59:14] PedramT: has joined #ruby
[07:00:48] chipotle: has joined #ruby
[07:01:28] tildes: has joined #ruby
[07:03:28] PedramT_: has joined #ruby
[07:05:49] dionysus69: has joined #ruby
[07:06:33] Macaveli: has joined #ruby
[07:08:13] kareeole_: has joined #ruby
[07:18:35] the_drow: has joined #ruby
[07:21:55] chipotle: has joined #ruby
[07:30:41] CausaMortis: has joined #ruby
[07:31:22] jtoy: has joined #ruby
[07:32:53] bronson: has joined #ruby
[07:32:54] PedramT: has joined #ruby
[07:35:26] moeabdol: has joined #ruby
[07:38:31] zzak: [travis-ci, irc.freenode.net] The build is still failing. by @svn: See https://travis-ci.org/ruby/ruby/builds/122014094
[07:38:46] coffeecupp: has joined #ruby
[07:39:16] PedramT: has joined #ruby
[07:40:05] bkxd: has joined #ruby
[07:41:05] PedramT_: has joined #ruby
[07:41:40] lightheaded: has joined #ruby
[07:43:44] kareeoleez: has joined #ruby
[07:47:12] johnny56_: has joined #ruby
[07:47:17] Mon_Ouie: has joined #ruby
[07:47:20] nanoz: has joined #ruby
[07:47:25] plugine: has joined #ruby
[07:47:55] Yzguy: has joined #ruby
[07:48:12] bkxd: has joined #ruby
[07:50:27] yfeldblum: has joined #ruby
[07:50:49] PedramT: has joined #ruby
[07:51:17] duckpuppy: has joined #ruby
[07:53:32] PedramT_: has joined #ruby
[07:53:46] tAn: has joined #ruby
[07:54:38] PedramT: has joined #ruby
[07:56:18] Devalo: has joined #ruby
[07:58:24] the_drow: has joined #ruby
[07:59:22] firstdayonthejob: has joined #ruby
[07:59:44] tvw: has joined #ruby
[08:00:12] valetudo: has joined #ruby
[08:01:09] cippaciong: has joined #ruby
[08:03:40] tmtwd_: has joined #ruby
[08:03:48] sandelius: has joined #ruby
[08:06:03] PedramT: has joined #ruby
[08:06:39] PedramT_: has joined #ruby
[08:07:24] mhoungbo: has joined #ruby
[08:07:54] mikecmpbll: has joined #ruby
[08:08:16] baweaver: has joined #ruby
[08:08:22] PedramT_: has joined #ruby
[08:08:27] M-Technic: has joined #ruby
[08:19:56] joonty: has joined #ruby
[08:20:00] dgncn: has joined #ruby
[08:20:37] zeroDivisible: has joined #ruby
[08:24:32] TheGreatGudsby: has joined #ruby
[08:24:43] yfeldblum: has joined #ruby
[08:29:50] pawnbox: has joined #ruby
[08:35:08] last_staff: has joined #ruby
[08:35:40] futilegames: has joined #ruby
[08:37:55] the_drow: has joined #ruby
[08:39:59] blackmesa: has joined #ruby
[08:40:44] jerohm: has joined #ruby
[08:43:57] Yzguy: has joined #ruby
[08:45:23] dionysus69: has joined #ruby
[08:45:34] yfeldblum: has joined #ruby
[08:45:36] pawnbox: has joined #ruby
[08:48:46] Zai00: has joined #ruby
[08:49:26] vdamewood: has joined #ruby
[08:49:59] tribals: has joined #ruby
[08:50:17] tribals: can anyone tell me why https://gist.github.com/tribals/8fab6e82eaebef7e6310163420a6fb89
[08:51:26] zapata: has joined #ruby
[08:52:24] noServic1: has joined #ruby
[08:54:52] zzak: [travis-ci, irc.freenode.net] The build was fixed. by @nobu: See https://travis-ci.org/ruby/ruby/builds/122019567
[08:57:48] ur5us: has joined #ruby
[08:58:11] apeiros: tribals: do you really get a NameError?
[08:58:39] tribals: apeiros: yes, you can check it yourself
[08:59:07] tribals: apeiros: no, sory, NoMethodError
[08:59:15] apeiros: tribals: thought so.
[08:59:30] apeiros: tribals: I did check. because NameError was unexpected. NoMethodError was expected.
[08:59:35] tAn: has joined #ruby
[08:59:39] mhoungbo: has joined #ruby
[09:00:03] apeiros: so please - don't do that. don't put random interpretations of errors in your descriptions. copy & paste the *precise* exception. otherwise you're just making it unnecessarily hard for people who want to help.
[09:00:41] ocbtec: has joined #ruby
[09:00:50] apeiros: as for the reason: `spam = spam.swapcase` (line 4) does not call A#spam=, it assigns a value to a local variable.
[09:01:02] apeiros: you want `self.spam = spam.swapcase`
[09:01:49] tribals: apeiros: ok. sorry again, i just typed it by hand, so the mistake leaked
[09:02:20] tribals: apeiros: thanks
[09:03:03] tribals: apeiros: any reasons why `something =` doesn't call accessor but assigns local variable?
[09:03:21] apeiros: tribals: sure - you would not be able to assign to a local variable ever if it'd call the method
[09:04:26] apeiros: or alternatively: assigning locals would mean you'd always have the overhead to go through the full method lookup including method_missing just to set an lvar (huge overhead)
[09:05:10] tribals: apeiros: sure! why i don't thought about that? (rhetorical question)
[09:05:31] tribals: apeiros: thanks!
[09:06:06] nhhc: has joined #ruby
[09:06:26] Tempesta: has joined #ruby
[09:09:29] cwenner: has joined #ruby
[09:10:56] dangerousdave: has joined #ruby
[09:13:13] rolha: has joined #ruby
[09:13:26] terlar: has joined #ruby
[09:16:05] thisirs: has joined #ruby
[09:17:41] antgel: has joined #ruby
[09:18:55] nodejunkie: has joined #ruby
[09:19:02] moeabdol: has joined #ruby
[09:19:33] Softnex: has joined #ruby
[09:20:04] Softnex: hello, is there an official Ruby 1.9+ package for centos 6 ?
[09:21:10] aqoom: has joined #ruby
[09:21:11] DoubleMalt: has joined #ruby
[09:26:03] krobzaur_: has joined #ruby
[09:28:58] kareeoleez: has joined #ruby
[09:30:20] snowy: has joined #ruby
[09:31:23] pawnbox: has joined #ruby
[09:35:17] Ox0dea: I've run into a use case for default block arguments twice in as many days. Do you think that should be a thing?
[09:35:20] nhhc: has joined #ruby
[09:36:17] tAn: has joined #ruby
[09:36:22] Papierkorb: Softnex: Don't know anything about CentOS, https://michaelheap.com/installing-ruby-1-9-3-on-centos-6/ talks about using the "software collections". Ruby1.9 is past its End Of Life, please check if either 1) your application(s) also work with recent rubies or 2) that CentOS still provides recent security patches
[09:37:19] apeiros: Ox0dea: blocks are arguments to me, and as such I find it sad that both, mandatory blocks, as well as block defaults are missing
[09:37:35] apeiros: so yes, IMO default blocks should be a thing. just don't know how to do it well wrt syntax
[09:37:46] jerohm: has joined #ruby
[09:38:03] Softnex: Papierkorb : thanks, in facte, centos 6 is still delivered with ruby 1.8... well, my application works with, at least, ruby 1.9 but I would be happy to have a more recent version
[09:38:11] Begi: has joined #ruby
[09:38:58] forcer: Software collections are a pain to use, but work, if you're stuck in RHEL6/CentOS6
[09:40:17] Papierkorb: >> def foo(a) [ yield(a), yield(a, 4) ] end; foo(3){|bar, baz = 2| bar + baz}
[09:40:19] ruby[bot]: Papierkorb: # => [5, 7] (https://eval.in/550549)
[09:40:33] Papierkorb: Ox0dea: Or do you mean a default supplied block?
[09:41:13] pawnbox: has joined #ruby
[09:41:20] Ox0dea: Papierkorb: I'd like to not have to say `block ||= -> { ... }`, and it'd be nice if `yield` did The Right Thing as well.
[09:41:46] alexherbo2: has joined #ruby
[09:42:52] Ox0dea: `class PriorityQueue; def initialize &comparator = &:itself; end; end` would chuff me to bits.
[09:43:31] Papierkorb: First syntax idea would be def foo(..., &->{ the block})
[09:43:41] Ox0dea: Where does the name go?
[09:43:44] agit0: has joined #ruby
[09:44:24] Papierkorb: Assuming I didn't create ambiguity: def foo(&block = &->{ ... }) So pretty much like any other default value
[09:45:05] Ox0dea: Right, that's what I suggested minus the second (superfluous?) ampersand.
[09:45:18] tildes: has joined #ruby
[09:46:30] Papierkorb: Thought about it, but it keeps it consistent to the without-name version, it also keeps it consistent with the existing syntax I'd say
[09:47:33] merida: has joined #ruby
[09:48:42] darkxploit: has joined #ruby
[09:51:10] darkxploit: hello can someone explain me the difference between bundle install and gem install ?
[09:51:34] SCHAAP137: has joined #ruby
[09:52:04] duckpuppy: has joined #ruby
[09:52:04] Papierkorb: darkxploit: in short, bundle installs gems locally for a project (as defined in the Gemfile), gem install installs gems user oder system-wide. Also, gem install does not use a Gemfile
[09:52:32] jdm: has joined #ruby
[09:52:43] skade: has joined #ruby
[09:53:29] darkxploit: Papierkorb, thank u
[09:53:49] bruno-: has joined #ruby
[09:54:39] jgt4: has joined #ruby
[09:54:54] Suntzu: has joined #ruby
[09:55:54] blackmesa: has joined #ruby
[09:58:31] codecop: has joined #ruby
[09:58:34] codecop_: has joined #ruby
[10:02:25] Polysics: has joined #ruby
[10:05:05] al2o3-cr1: has joined #ruby
[10:05:29] romain_t: has joined #ruby
[10:07:29] ghr: has joined #ruby
[10:10:31] ramfjord: has joined #ruby
[10:17:48] CausaMortis: has joined #ruby
[10:21:47] chagel: has joined #ruby
[10:27:28] dionysus69: has joined #ruby
[10:31:25] dmr8: has joined #ruby
[10:33:46] b|ackwolf: has joined #ruby
[10:34:14] bronson: has joined #ruby
[10:34:17] lomex: has joined #ruby
[10:37:29] youch: has joined #ruby
[10:39:20] mikecmpbll: has joined #ruby
[10:39:27] Nahra: has joined #ruby
[10:40:07] sandelius: has joined #ruby
[10:40:38] the_drow: has joined #ruby
[10:46:08] Nahra: has joined #ruby
[10:48:59] bkxd: has joined #ruby
[10:54:07] atmosx: has joined #ruby
[10:58:06] UserInneed: has joined #ruby
[10:58:34] akkmaxon: has joined #ruby
[11:02:41] yfeldblum: has joined #ruby
[11:03:50] lxsameer: any book recommendation for CRuby development ?
[11:03:51] jdm_: has joined #ruby
[11:04:29] Ox0dea: lxsameer: http://patshaughnessy.net/ruby-under-a-microscope
[11:04:45] lxsameer: Ox0dea: currently reading, any other ?
[11:05:19] sepp2k: has joined #ruby
[11:05:26] Ox0dea: lxsameer: There's the original one written for Ruby 1.6, but I'm blanking on the name and it's only been partially translated into English.
[11:05:33] skade: has joined #ruby
[11:05:56] mrmortondk: has joined #ruby
[11:05:57] lxsameer: Ox0dea: so not useful,
[11:06:29] Ox0dea: lxsameer: Are you scratching an itch, or?
[11:07:28] lxsameer: Ox0dea: I'm really interested in Cruby development and specially byte code process
[11:07:44] PedramT: has joined #ruby
[11:08:46] ur5us: has joined #ruby
[11:09:20] Xeago: has joined #ruby
[11:10:31] Xeago: has joined #ruby
[11:11:07] Papierkorb: lxsameer: Virtual machines in general for that, or Ruby in particular?
[11:11:35] lxsameer: Papierkorb: ruby , but I'm ready to read anything necessary
[11:11:52] Papierkorb: lxsameer: I think the stuff for Lua has some documentation too if you're interested in general. Has nothing to do with Ruby though
[11:12:14] Papierkorb: Most likely some (all?) ideas are similar/same, but I never looked at how Ruby does that
[11:12:16] spider-mario: has joined #ruby
[11:12:25] lxsameer: Lua ? for real ?
[11:12:50] Papierkorb: It has a robust VM too
[11:13:35] forcer: And the work on luajit is excellent as far as I heard.
[11:14:45] Papierkorb: forcer: Only integrated LuaJIT, but from what I've seen it really is excellent.
[11:15:04] lxsameer: interesting, It didn't know, I always thought lua is a weak designed lang
[11:15:30] Papierkorb: Oh absolutely not. It focuses on what it's built for.
[11:16:47] diegoaguilar: has joined #ruby
[11:16:49] Meow-J: has joined #ruby
[11:17:46] lxsameer: cool, I have to check it out too
[11:20:41] merida: has joined #ruby
[11:22:10] kadoppe: has joined #ruby
[11:25:44] skade: has joined #ruby
[11:26:32] jdm: has joined #ruby
[11:31:51] agit0: has joined #ruby
[11:32:36] ur5us: has joined #ruby
[11:32:49] GnuYawk: has joined #ruby
[11:32:55] cpup: has joined #ruby
[11:33:02] GnuYawk: has joined #ruby
[11:33:52] snoobydoo: has joined #ruby
[11:33:57] bluOxigen: has joined #ruby
[11:35:03] noop: has joined #ruby
[11:38:31] aqoom: has joined #ruby
[11:42:18] xcesariox: has joined #ruby
[11:44:13] Coldblackice_: has joined #ruby
[11:44:31] merida: has joined #ruby
[11:47:54] moeabdol: has joined #ruby
[11:48:45] sdothum: has joined #ruby
[11:48:53] bkxd: has joined #ruby
[11:48:59] TheGreatGudsby: has joined #ruby
[11:50:03] TheGreatGudsby: has joined #ruby
[11:50:29] Semtex-H: has joined #ruby
[11:50:33] FooMunki: has joined #ruby
[11:51:38] jdm_: has joined #ruby
[11:52:48] duckpuppy: has joined #ruby
[11:53:11] merida: has joined #ruby
[11:53:40] dionysus69: has joined #ruby
[11:55:49] stannard: has joined #ruby
[11:57:25] valetudo: has joined #ruby
[12:01:08] fnux: n1colas: Hi!
[12:02:55] moeabdol: has joined #ruby
[12:03:06] mikecmpbll: has joined #ruby
[12:05:47] jdm: has joined #ruby
[12:12:07] Gasher: has joined #ruby
[12:12:47] synaps3: has joined #ruby
[12:13:47] Hanmac: has joined #ruby
[12:14:36] agit0: has joined #ruby
[12:15:20] krz: has joined #ruby
[12:19:58] karapetyan: has joined #ruby
[12:21:10] bkxd: has joined #ruby
[12:22:01] skade: has joined #ruby
[12:29:29] kadoppe: has joined #ruby
[12:30:53] sandelius: has joined #ruby
[12:32:18] synaps3: hello, i want to do some pos tagging in ruby, i am currently using engtagger gem to tag the words, it returns xml-like output that i try to parse with nokogiri but somehow it wont work
[12:32:52] synaps3: https://gist.github.com/anonymous/4d067db5c2307be31f983600ba7065fa
[12:33:17] synaps3: it just takes the first tag, like there are no other ones
[12:33:27] blackmes1: has joined #ruby
[12:33:30] synaps3: can someone help me solve it ?
[12:38:11] RegulationD: has joined #ruby
[12:39:34] skade: has joined #ruby
[12:44:34] jhass: synaps3: so you try to parse it as XML, first of all it's not a valid XML document as it's missing the XML header, but nokogiri does its best and ignores that. Next XML can have only a single node at the toplevel, so Nokogiri takes the first one it finds
[12:44:44] tildes: has joined #ruby
[12:44:48] jhass: if you try to parse it as HTML you get closer to what you want
[12:44:51] TheGreatGudsby: has joined #ruby
[12:45:14] darkxploit: im trying to build something on a labo machine which i have already installed nginx, postgresql, RVM. Ruby and also did a gem install puma. My aim is to use Capistrano to deploy an app to the Puma server. Do u have an idea where do i start as from this point.
[12:45:20] jhass: synaps3: though are you sure it's the primary/only interface to the library? because it would suck as an output format
[12:46:58] jhass: synaps3: looks like the tagger instance has helper methods to retrieve stuff from the tagged string, still crappy interface but better than abusing nokogiri for it
[12:49:41] nfk: has joined #ruby
[12:49:58] synaps3: hmm i cant find some good docs about that gem
[12:50:10] jhass: just picked it from the readme
[12:50:21] jhass: https://github.com/yohasebe/engtagger
[12:50:32] jhass: synaps3: getting pry to play around is always a good idea too
[12:50:40] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[12:50:43] synaps3: stuff like get_propper_nouns
[12:51:56] xcesariox: has joined #ruby
[12:52:17] matp: has joined #ruby
[12:52:29] synaps3: i need tag for every word, and as far as i can see add_tags method tags whole text and gets back xml-like stuff, i just want to iterate over every word and write its tag as simple as that
[12:52:51] synaps3: oh thanks for pry jhass, will definetly look into it
[12:52:56] cdg: has joined #ruby
[12:53:41] triangles: has joined #ruby
[12:53:44] Jardayn: has joined #ruby
[12:54:57] sonOfRa: has left #ruby: ("Leaving")
[12:55:58] synaps3: how do i put newline when i write to file
[12:56:24] jhass: add a \n to your string or use IO#puts
[12:57:02] edwinvdgraaf: has joined #ruby
[12:57:22] lkba: has joined #ruby
[12:58:01] krobzaur_: has joined #ruby
[12:58:05] Suntzu: has joined #ruby
[12:58:34] synaps3: https://gist.github.com/anonymous/cdd30df4899c8827d1becc733549a6b3
[12:58:38] synaps3: it wont work :p
[12:59:23] al2o3-cr: synaps3: use file.write('<?xml version="1.0"?>\n') or puts like suggested
[12:59:44] al2o3-cr: double quotes sorry
[13:02:41] jhass: synaps3: also always use File.open with a block or convenience methods like File.write, File.read etc., so you don't forget to close your files
[13:03:10] safe: has joined #ruby
[13:06:17] aqoom: has joined #ruby
[13:06:44] the_drow: has joined #ruby
[13:07:45] snowy: has joined #ruby
[13:07:54] lycaonian: has joined #ruby
[13:08:17] madgen: has joined #ruby
[13:15:11] quakephil_: has joined #ruby
[13:16:38] william3: has joined #ruby
[13:16:53] matp: has joined #ruby
[13:16:59] stannard: has joined #ruby
[13:18:53] edwinvdgraaf: has joined #ruby
[13:19:22] Dry_Lips: has joined #ruby
[13:21:20] GnuYawk`: has joined #ruby
[13:25:44] solocshaw: has joined #ruby
[13:26:38] snowy: has joined #ruby
[13:28:32] Dry_Lips: Hi everyone… I’m new to programming, and I’m trying to figure out if Ruby is suitable for my project. (I’m attempting to create a simple cross platform, desktop program with a GUI.)
[13:29:47] Dry_Lips: Is it for instance true that QtRuby is wxRuby is dead? Is shoes the only graphical toolkit still alive?
[13:30:09] Dry_Lips: *and wxRuby
[13:31:20] Dry_Lips: Or could I just save myself a lot of hassle by choosing another language?
[13:32:59] jhass: going cross platform when new to programming is quite a project ;)
[13:33:10] jhass: especially cross platform GUI
[13:33:34] Dry_Lips: Haha, well, you're probably right... But I have an idea for a project, which is what drives me here :)
[13:33:55] Dry_Lips: And another concern is to find a language that I can stick with in the future
[13:34:26] Dry_Lips: I'm won't ever be a professional programmer, so I'd like to learn something that won't limit my options later on
[13:34:29] jhass: one possibly easier vector is JRuby/Swing the other is doing something web based (so HTML/CSS/JS, possibly a backend in Ruby), former is fairly hard to deploy for your users, latter is fairly hard to deploy for you
[13:35:12] jhass: learning a language is one thing, learning programming another, once you're decent enough at the latter, picking up a new language isn't that much of an issue
[13:35:23] Dry_Lips: I guess that's true
[13:36:16] jhass: maybe tell some more about your project, might give some tips on how others would approach it
[13:36:37] Dry_Lips: Okay, here is a thread that describes my project: http://ubuntuforums.org/showthread.php?t=2319920
[13:37:23] Dry_Lips: I kind of like Ruby as a language, from what I've already seen... But I also want to be realistic... Perhaps Ruby isn't what I should focus on
[13:37:39] shevy: Dry_Lips ruby-gnome works -> https://github.com/ruby-gnome2/ruby-gnome2
[13:37:47] shmoon_: has joined #ruby
[13:37:52] nettoweb: has joined #ruby
[13:38:22] freerobby: has joined #ruby
[13:38:42] shevy: not sure about the "password protection" part
[13:39:38] shmoon_: has left #ruby: ()
[13:39:51] the_drow: has joined #ruby
[13:42:11] shevy: tk also works, it's very ugly though :D
[13:42:20] jhass: Dry_Lips: so basically need a single button and a text box?
[13:42:32] Dry_Lips: shevy: The idea is that the user has to set a password for accessing the app... For a program that blocks content, that is kind of crucial...
[13:42:38] cashnguns: has joined #ruby
[13:43:17] Dry_Lips: jhass: Nah, probably more advanced that that... ;) I want to include some options later on... (For blocking additional content)
[13:43:29] cashnguns: has joined #ruby
[13:43:48] Dry_Lips: But I guess it's not super advanced
[13:47:24] jhass: So, let's be honest, I doubt you'll succeed with the first attempt and a too big project will be overwhelming in the process of learning programming. My advice is to scale down your problem a lot, like start of with a script that works on linux, downloads the entries and adds them to /etc/hosts unless already present, then write another script that removes them again, then one that updates them, then merge them
[13:47:26] jhass: all into one script that takes parameters
[13:47:30] blaxter: has joined #ruby
[13:48:29] jhass: that limits the amount of technologies you need to take care of and you'll probably redo all this in any case since it's unlikely you'll make the best picks from the start
[13:48:39] Dry_Lips: that sounds reasonable
[13:49:09] jhass: so it'll also make it fairly irrelevant what you pick as a language for that first version
[13:50:10] blaxter: has joined #ruby
[13:50:30] Dry_Lips: Yeah... Since it's a learning process I have to take things step by step... I understand that...
[13:51:21] jhack: has joined #ruby
[13:51:31] jhass: exactly, once you have a better grip on one part you can look into adding another, like adding another platform, or a simple gui instead of command line parameters etc
[13:51:35] blaxter: has joined #ruby
[13:51:52] jhass: it'll give you base to also experiment with different technologies for each and so on
[13:52:30] Dry_Lips: Sounds very reasonable :)
[13:53:34] duckpuppy: has joined #ruby
[13:53:36] A124: has joined #ruby
[13:54:33] Dry_Lips: Anyways, thanks a lot guys... I'll start working on my script in Ruby, and then I guess that I'll get a feel after a while what I can do and what I cannot do with Ruby
[13:56:02] blaxter: has joined #ruby
[13:56:11] PedramT: has joined #ruby
[13:56:43] edwinvdgraaf: has joined #ruby
[13:57:22] diegoaguilar: has joined #ruby
[13:58:17] blaxter: has joined #ruby
[13:58:24] PedramT: has joined #ruby
[13:59:05] ocbtec: has joined #ruby
[14:04:16] the_drow: has joined #ruby
[14:04:36] _stu_: has joined #ruby
[14:06:07] Emmanuel_Chanel: has joined #ruby
[14:09:59] hinbody: has joined #ruby
[14:10:47] blaxter: has joined #ruby
[14:10:56] sandelius: has joined #ruby
[14:12:07] ramfjord: has joined #ruby
[14:19:14] shazaum_: has joined #ruby
[14:20:31] synaps3: ok how do I delete stuff in string that I found with regex
[14:20:57] Zarthus: what language?
[14:21:09] Zarthus: I'm totally not in a different channel.
[14:21:15] snowy: has joined #ruby
[14:21:43] Zarthus: you probably want String#gsub
[14:22:00] jhack: has joined #ruby
[14:22:20] synaps3: yup, thanks :D
[14:23:12] SCHAAP137: has joined #ruby
[14:23:14] Rubie: has joined #ruby
[14:25:31] GodFather: has joined #ruby
[14:34:51] aqoom: has left #ruby: ("WeeChat 1.3")
[14:36:09] Azure: has joined #ruby
[14:36:10] bronson: has joined #ruby
[14:40:19] snowy: has joined #ruby
[14:40:45] b|ackwolf: has joined #ruby
[14:41:03] nyu: has left #ruby: ("brb")
[14:42:06] xcesariox: has joined #ruby
[14:43:10] the_drow: has joined #ruby
[14:43:28] nyuszika7h: has joined #ruby
[14:43:37] MuffinPimp: has joined #ruby
[14:43:52] JDeen: has joined #ruby
[14:44:12] xMopxShell: has joined #ruby
[14:45:17] mikecmpbll: has joined #ruby
[14:46:10] Emmanuel_Chanel_: has joined #ruby
[14:47:22] JDeen: Hi guys. I got a module which has few mehods `include`d in a class. Those methods need access some constants defined in the class. Is it possible. ex: `module A; def print; puts ABC; end; end` `class B; include A; ABC=10; end` `B.new.print` => ABC not defined
[14:48:05] bmf: has joined #ruby
[14:48:06] JDeen: What i am trying to o is to seperate some common methods to use in few classes
[14:49:39] JDeen: but unfortunately some methods need to access some constant values defined in the calss that includes it
[14:55:59] minimalism: has joined #ruby
[14:57:13] houhoulis: has joined #ruby
[14:57:58] tubuliferous: has joined #ruby
[14:59:19] silentpost: has joined #ruby
[15:01:52] the_drow: has joined #ruby
[15:01:54] shevy: jdeen http://pastie.org/10792361
[15:06:32] PedramT: has joined #ruby
[15:10:17] noService: has joined #ruby
[15:12:07] czerasz2: has joined #ruby
[15:13:08] shevy: otherwise the constant in the module would override
[15:13:49] tAn: has joined #ruby
[15:15:55] jgt4: has joined #ruby
[15:16:09] the_drow: has joined #ruby
[15:17:06] Emmanuel_Chanel: has joined #ruby
[15:17:34] Emmanuel_Chanel: has joined #ruby
[15:18:59] binaryplease1: has joined #ruby
[15:19:56] djbkd: has joined #ruby
[15:21:03] Meow-J: has joined #ruby
[15:29:22] Xeago: has joined #ruby
[15:29:41] devgiant: has joined #ruby
[15:30:20] futilegames: has joined #ruby
[15:32:04] snowy: has joined #ruby
[15:34:52] ponga: has joined #ruby
[15:37:28] idletask: has joined #ruby
[15:39:14] kadoppe: has joined #ruby
[15:39:39] Rodya_: has joined #ruby
[15:40:05] skweek: has joined #ruby
[15:41:25] nobitanobi: has joined #ruby
[15:42:33] nando293921: has joined #ruby
[15:44:01] solocshaw: has joined #ruby
[15:45:00] jottr: has joined #ruby
[15:47:25] sandelius: has joined #ruby
[15:47:27] triangles: has joined #ruby
[15:47:42] johnny56: has joined #ruby
[15:49:34] LaT0rtue: has joined #ruby
[15:50:15] nhhc: has joined #ruby
[15:50:33] quakephil: has joined #ruby
[15:52:11] infernix: has joined #ruby
[15:53:30] ramfjord: has joined #ruby
[15:54:19] duckpuppy: has joined #ruby
[15:56:16] tubuliferous: has joined #ruby
[16:00:57] edwinvdgraaf: has joined #ruby
[16:01:24] ekinmur: has joined #ruby
[16:06:07] jdm: has joined #ruby
[16:09:10] Aviio: has joined #ruby
[16:09:18] Dimik: has joined #ruby
[16:09:46] Aviio: hmm, any Nokogiri one liners to select a random node from the xml?
[16:10:59] Aviio: eg - I have this https://gist.github.com/Aviio/8b46bab3db448904b71126b211e5d2ec and I want to select a random theme node
[16:11:01] edwinvdgraaf: has joined #ruby
[16:12:51] JDeen: shevy: interesting. thanks
[16:12:53] jhass: Aviio: .xpath("/themes/theme").sample I guess
[16:13:00] Begi: has left #ruby: ()
[16:13:52] Rodya_: has joined #ruby
[16:13:55] jhass: well, .to_a.sample
[16:15:25] nando293921: has joined #ruby
[16:15:36] lomex: has joined #ruby
[16:15:45] Aviio: jhass: huh, excellent! cheers
[16:20:20] rkazak: has joined #ruby
[16:21:35] darkxploit: has joined #ruby
[16:22:52] nanoz: has joined #ruby
[16:26:57] merida: has joined #ruby
[16:27:10] GnuYawk: has joined #ruby
[16:28:45] akkmaxon: has joined #ruby
[16:29:37] kfpratt: has joined #ruby
[16:30:21] Emmanuel_Chanel: has joined #ruby
[16:30:46] Emmanuel_Chanel: has joined #ruby
[16:31:33] snowy: has joined #ruby
[16:31:39] BTRE: has joined #ruby
[16:32:03] Blaguvest: has joined #ruby
[16:33:28] tubuliferous: has joined #ruby
[16:33:54] LoneHerm_: has joined #ruby
[16:34:38] edwinvdgraaf: has joined #ruby
[16:35:02] jottr: has joined #ruby
[16:37:11] Superfox_il_volp: has joined #ruby
[16:38:29] skade: has joined #ruby
[16:39:22] x77686d: has joined #ruby
[16:41:23] snoobydo1: has joined #ruby
[16:42:25] dvinciguerra_: has joined #ruby
[16:42:33] synaps3: i have two arrays of same size, how do i iterate throguh both of them and make table like output to the console
[16:43:46] davedev24: has joined #ruby
[16:44:30] dvinciguerra_: has joined #ruby
[16:44:36] forcer: has joined #ruby
[16:45:32] nofxx: has joined #ruby
[16:45:32] nofxx: has joined #ruby
[16:46:09] dvinciguerra_: has joined #ruby
[16:46:14] bruno-: has joined #ruby
[16:51:52] SCHAAP137: has joined #ruby
[16:52:37] chridal: Anyone using the Alpine Ruby docker image in prod?
[16:53:28] nodejunkie: has joined #ruby
[16:53:30] chipotle: has joined #ruby
[16:55:02] idletask: has joined #ruby
[16:58:55] flashpoint9: has joined #ruby
[16:59:11] shevy: synaps3 you should combine them first in the way you want the output to be; have a look at .zip http://ruby-doc.org/core-2.2.0/Array.html#method-i-zip and the splat operator * https://endofline.wordpress.com/2011/01/21/the-strange-ruby-splat/; then use a separate method that ensures that you will format in the way that you want it to be (I don't think anyone else knows how you want to output this yet)
[16:59:30] jdm: has joined #ruby
[17:01:16] icedp: has joined #ruby
[17:01:18] sepp2k1: has joined #ruby
[17:04:56] sdothum: has joined #ruby
[17:05:59] jdm: has joined #ruby
[17:06:34] moeabdol: has joined #ruby
[17:07:19] havenwood: synaps3: require 'terminal-table'; puts Terminal::Table.new rows: [2, 3, 4].zip(['x', 'y', 'z'])
[17:07:29] dvinciguerra_: has joined #ruby
[17:08:35] havenwood: https://github.com/tj/terminal-table#readme
[17:09:10] klka: has joined #ruby
[17:09:34] dvinciguerra_: has joined #ruby
[17:09:37] klka: I'm calling rb_protect(RUBY_METHOD_FUNC(rb_require), (VALUE) '"./func.rb",&state); and state assigned to the value 6, what it means?
[17:10:06] jgt4: has joined #ruby
[17:10:38] lomex: has joined #ruby
[17:11:17] last_staff: has joined #ruby
[17:12:07] pawnbox: has joined #ruby
[17:13:38] Hanmac: kika are you sure you can use the string as VALUE ? i wouldn't say this might work ...
[17:14:22] GnuYawk: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[17:14:38] klka: hanmac what should I do
[17:14:41] klka: to fix it
[17:15:21] tAn: has joined #ruby
[17:15:57] flashpoint9: has joined #ruby
[17:16:08] Hanmac: kiba why do you call it with rb_protect?
[17:16:24] klka: I get segfault when calling it without
[17:16:28] flashpoi_: has joined #ruby
[17:17:25] niftylettuce: has joined #ruby
[17:17:26] djbkd: has joined #ruby
[17:18:58] william3: has joined #ruby
[17:19:12] d0nn1e: has joined #ruby
[17:20:54] pawnbox: has joined #ruby
[17:21:38] nettoweb: has joined #ruby
[17:24:16] djbkd_: has joined #ruby
[17:24:29] Hanmac: kika hm that shows other problems, because now it just might not do what you want, even when you don't get a seqfault
[17:26:35] jdm: has joined #ruby
[17:26:56] klka: hanmac, i hope you can help me solve it http://stackoverflow.com/questions/36387514/segmentation-fault-when-calling-a-ruby-function-using-c-api
[17:27:03] baweaver: has joined #ruby
[17:27:25] troulouliou_div2: has joined #ruby
[17:28:18] troulouliou_div2: has joined #ruby
[17:28:32] troulouliou_div2: has joined #ruby
[17:29:51] symm-: has joined #ruby
[17:30:39] Superfox_il_volp: has joined #ruby
[17:32:43] Superfox_il_volp: hey, how do we raise an exception that takes multiple arguments. For instance, given something like class MyCustomException < RuntimeError; def initialize(message, type); ... end; end. What's the proper syntax for `raise', something like raise MyCustomException.new("my message", "my type") ?
[17:33:06] _blizzy_: has joined #ruby
[17:34:26] tristanp: has joined #ruby
[17:34:50] tobiasvl: superfox_il_volp: yes
[17:35:04] blaxter: has joined #ruby
[17:35:07] goglosh: has joined #ruby
[17:35:36] tobiasvl: superfox_il_volp: but look into RuntimeError's initialize method, it takes some optional arguments in addition to just the message
[17:36:22] tobiasvl: you might want to call super() with those maybe. not sure
[17:36:47] jdm: has joined #ruby
[17:37:54] Hanmac: kiba your code did work for me, but i did use "rb_funcall(rb_cObject"
[17:39:27] sandelius: has joined #ruby
[17:40:12] william3: has joined #ruby
[17:42:07] nobitanobi: has joined #ruby
[17:42:47] fedexo: has joined #ruby
[17:43:53] edwinvdgraaf: has joined #ruby
[17:47:37] stupidystupid: has joined #ruby
[17:48:09] flopsec: has joined #ruby
[17:49:23] stupidystupid: has joined #ruby
[17:49:30] jdm: has joined #ruby
[17:50:36] alxgsv: has joined #ruby
[17:52:19] dhinojosa: has joined #ruby
[17:53:02] ctrlrsf: has joined #ruby
[17:53:20] klka: hanmac, have any idea what might be the problem if it works for you but it doesnt for me?
[17:53:26] stupidystupid: has joined #ruby
[17:55:05] duckpuppy: has joined #ruby
[17:55:38] blackmes1: has joined #ruby
[17:57:51] lomex: has joined #ruby
[17:58:39] sandelius: has joined #ruby
[18:01:49] klka: Anyone know how to compile statically linked ruby binary?
[18:02:06] JohnBat26: has joined #ruby
[18:02:07] klka: And will it work with Ruby C API?
[18:04:37] Suntzu: has joined #ruby
[18:07:01] blackmes1: has joined #ruby
[18:07:21] jdm: has joined #ruby
[18:07:33] stupidystupid: how do i make a program with ruby?
[18:07:34] n008f4g_: has joined #ruby
[18:07:40] sergey_makagon: has joined #ruby
[18:08:35] x77686d: has joined #ruby
[18:10:42] felipec: has joined #ruby
[18:10:50] felipec: Is there a way to set the standar IO encoding?
[18:10:59] felipec: So I don't have to specify it in every operation?
[18:11:42] kfpratt: has joined #ruby
[18:12:33] shinnya: has joined #ruby
[18:14:21] jdm_: has joined #ruby
[18:15:11] Es0teric: has joined #ruby
[18:15:26] jhass: felipec: IO#encoding=, Encoding.default_external=, it should also respect LC_COLLATE
[18:15:50] jhass: stupidystupid: write it to a file and run ruby your_file
[18:16:44] tAn: has joined #ruby
[18:19:13] tmtwd_: has joined #ruby
[18:20:46] stupidystupid: thanks jhass. i did that and it ran. how do i give it a file?
[18:21:11] jhass: please elaborate
[18:22:14] jdm_: has joined #ruby
[18:22:34] stupidystupid: well, lets say i have a list of emails in a document and i want to use ruby to check whether the emails are valid addresses or not
[18:22:48] nettoweb: has joined #ruby
[18:22:55] stupidystupid: i know how to write the function for that, to read and check the emails
[18:23:05] stupidystupid: but i dont know how to get the emails into my function
[18:23:54] tubuliferous: has joined #ruby
[18:24:10] terlar: has joined #ruby
[18:24:17] tobiasvl: http://ruby-doc.org/core-2.1.4/File.html
[18:24:25] felipec: jhass: That seems wrong.
[18:24:35] felipec: jhass: it should listen to LANG
[18:25:12] xpt: has joined #ruby
[18:25:14] jhass: if LC_COLLATE and LC_ALL are unset, yeah
[18:25:34] felipec: jhass: it doesn't
[18:26:11] RegulationD: has joined #ruby
[18:26:14] smathy: has joined #ruby
[18:26:53] Brackson: has joined #ruby
[18:28:39] stupidystupid: thanks tobiasvl. i read those but i don't understand it. for instance when i write exists?(my_file), i get the error undefined local variable.
[18:29:41] tobiasvl: stupidystupid: ooookay, is my_file a variable you have defined? seems like maybe you're doing an elementary mistake somewhere which is not related to reading a file
[18:30:08] jhass: felipec: mmh, it seems to do something when I set LC_ALL to different values at least
[18:30:17] Yzguy: has joined #ruby
[18:30:19] tobiasvl: stupidystupid: you probably want File.exists? though
[18:30:24] flashpoint9: has joined #ruby
[18:30:26] felipec: jhass: I said LANG, not LC_ALL
[18:30:28] stupidystupid: tobiasvl im a beginner so i dont really know what im doing
[18:30:38] smathy: stupidystupid, https://www.ruby-lang.org/en/documentation/
[18:31:04] jhass: felipec: the question isn't what it should do in your dream world, but what it does do. And that's what we should figure out
[18:31:25] jhass: then have fun without me
[18:31:36] stupidystupid: thank you smathy. i have read many of those things, though i didnt understand all of what i read.
[18:31:53] Brackson: How can I use IO.popen to open a script in the background? The script connects to an IRC server, and I want to make sure that it successfully connected before continuing in my main script. The second script writes "connected" when it successfully connects.
[18:32:35] twistedpixels: has joined #ruby
[18:32:41] stupidystupid: tobiasvl i do not have a variable called my_file, should i add my file to a variable first?
[18:33:05] twistedpixels: has joined #ruby
[18:33:12] smathy: stupidystupid, did you read Learn To Program? It's hard for me to imagine anyone reading that, and doing all the exercises, and still not knowing how to do the task you're asking about.
[18:33:25] tobiasvl: stupidystupid: I think you should at least learn enough ruby to know what a variable is before you start file IO operations
[18:33:39] stupidystupid: i know what variables are.
[18:33:54] codecop: has joined #ruby
[18:34:02] tobiasvl: stupidystupid: then how come you're trying to call "exists?(my_file)" but don't have a variable called my_file?
[18:34:17] felipec: jhass: LANG=C ruby -e 'p Encoding.default_external' works fine, actually
[18:34:19] jdm_: has joined #ruby
[18:34:23] Gasher: has joined #ruby
[18:34:34] stupidystupid: i didn't know i had to add the file to the variable.
[18:34:51] stupidystupid: so i am trying to assign the file to a variable now, but it is still throwing the same error
[18:35:12] stupidystupid: "undefined local variable"
[18:35:14] tobiasvl: stupidystupid: paste your code here please https://gist.github.com
[18:36:45] jhass: felipec: https://github.com/ruby/ruby/blob/trunk/missing/langinfo.c#L69 so LC_CTYPE actually
[18:37:31] felipec: jhack: and LANG
[18:37:40] felipec: Now I have to figure out what to do on Windows systems
[18:38:07] bronson: has joined #ruby
[18:39:05] stupidystupid: https://gist.github.com/anonymous/cafce419a429e79db3932386189bfa57
[18:39:30] smathy: stupidystupid, learn ruby.
[18:39:36] stupidystupid: i did learn it
[18:39:48] stupidystupid: to do basic functions
[18:39:49] jhass: which tutorial did you follow?
[18:40:02] freerobby: has joined #ruby
[18:40:03] stupidystupid: i did all of the tutorials in codeschool and codecademy
[18:40:15] jhass: and you still don't know strings? mh
[18:40:23] stupidystupid: i know about strings
[18:40:35] jhass: well, above hints otherwise :)
[18:40:36] stupidystupid: is the file a string?
[18:40:51] tobiasvl: the file is not a string. the fileNAME is.
[18:40:55] jhass: vague but yes, the filename is a string and the file content is a string too
[18:41:15] jhass: when you have it in your ruby program that is
[18:41:40] tobiasvl: OK, the file content is a string too, that's true. but earlier I linked to documentation on the File object. you even tried to call the exists? method in File. where is the File object in your code example here?
[18:41:46] stupidystupid: https://gist.github.com/anonymous/a64742c60709e1fef71cd9b527542304 okay i updated my code
[18:41:49] nettoweb: has joined #ruby
[18:41:52] stupidystupid: but now it things myfile is just a string
[18:41:56] Yzguy: has joined #ruby
[18:42:01] tobiasvl: it IS just a string
[18:42:05] stupidystupid: so it's printing the string instead of the contents of the file
[18:42:13] jhass: sure, you never read it
[18:42:16] smathy: stupidystupid, that you think `myfile = hello.txt` is valid ruby (assuming hello isn't an instance of a class with a txt method) means that you DIDN'T learn the syntax.
[18:42:17] `derpy: http://ruby-doc.org/core-2.3.0/File.html
[18:42:22] Hanmac: klka: i did use "gcc func.c -o func `pkg-config --cflags --static ruby-2.2` -lruby-2.2-static -lpthread -lgmp -ldl -lcrypt -lm" and that did allow static linking for me and it did work for me
[18:42:40] tobiasvl: stupidystupid: I linked you to the File documentation earlier. did you look at it at all?
[18:42:44] stupidystupid: smathy i don't think it's valid, but i'm just doing what i was instructed
[18:43:01] tobiasvl: where did you get instructed to do this?
[18:43:06] stupidystupid: tobiasvl yes i did read it, but i dont understand it.
[18:43:33] stupidystupid: tobiasvl jhass said that i should declare the file as a variable
[18:43:36] cpup: has joined #ruby
[18:43:42] smathy: stupidystupid, that you think you were instructed to do that is a problem, you don't know enough yet to understand simple instructions.
[18:43:55] smathy: stupidystupid, learn ruby.
[18:44:05] jdawgaz: has joined #ruby
[18:44:38] jhass: stupidystupid: try to do http://rubykoans.com/ next
[18:44:38] stupidystupid: smathy, thats why im posting here. to learn ruby.
[18:44:50] tobiasvl: this is an inefficient way to learn ruby.
[18:44:56] jhass: don't just rush through them, try to question what each one tries to teach you
[18:45:13] colegatron: has joined #ruby
[18:45:14] stupidystupid: look let me show you guys something i wrote
[18:45:17] stupidystupid: let me find a good example
[18:46:57] smathy: ACTION /IGNOREs - can't deal with that shit
[18:47:20] gxmlJP: has joined #ruby
[18:49:17] hays: has joined #ruby
[18:50:27] hays: has joined #ruby
[18:50:32] FooMunki: has joined #ruby
[18:50:34] tubuliferous: has joined #ruby
[18:53:46] stupidystupid: ok here is some code i wrote
[18:53:50] patrick_star_3: has joined #ruby
[18:53:52] stupidystupid: https://gist.github.com/anonymous/7ccdd86b43442731694e67a484069fe1
[18:54:05] stupidystupid: https://gist.github.com/anonymous/2b46a8f53be1a3e259c26813a9e13e7f
[18:54:12] stupidystupid: https://gist.github.com/anonymous/de597535525645e9943cf1785aae1530
[18:55:19] stupidystupid: so when i do those ruby tutorials and read those guides
[18:55:24] stupidystupid: thats basically what it teaches
[18:55:47] stupidystupid: basic syntax, how to write functions and work with classes and stuff
[18:56:29] stupidystupid: and so i kept asking people how do i make something that isnt just in my console
[18:56:35] stupidystupid: and they kept telling me to switch langues
[18:56:43] stupidystupid: so i kept switching languages
[18:57:06] stupidystupid: but then i just learn the syntax for the new language but i still dont know how to do anything useful
[18:57:08] choke: has joined #ruby
[18:57:10] darkxploit: has joined #ruby
[18:57:46] Rodya_: has joined #ruby
[18:57:55] dionysus69: has joined #ruby
[19:00:37] Devalo: has joined #ruby
[19:00:45] tobiasvl: stupidystupid: you managed to write that code, with blocks and all, but don't understand what a string variable is, or how to use File?
[19:00:48] tobiasvl: I find that hard to believe.
[19:01:11] stupidystupid: i definitely wrote it
[19:01:16] yqt: has joined #ruby
[19:01:22] stupidystupid: and i know what a string is
[19:01:45] stupidystupid: and i dont know how to use the file methods because they aren't taught in beginner courses
[19:02:48] havenwood: stupidystupid: Here's a list of the Ruby core Classes: http://ruby-doc.org/core-2.3.0/#class-index
[19:03:04] jhass: I don't believe you spend more than 3 minutes trying to understand the documentation
[19:03:28] havenwood: stupidystupid: And here's a diagram: https://www.gliffy.com/go/publish/5152080
[19:03:39] tobiasvl: stupidystupid: ok, maybe you know what a string is, but you clearly don't know what puts is
[19:03:51] choke: documentation, what's that?
[19:04:16] havenwood: stupidystupid: It's worthwhile to learn how to read the Ruby documentation. It may seem cryptic at first but once you get the hang of it it's really helpful.
[19:04:34] havenwood: stupidystupid: From the command line you can: ri File
[19:05:25] stupidystupid: puts is put string. it prints the contents of a string to some kind of output. if used in irb it will print to the console. i dont know if it can be rerouted to a different output.
[19:05:31] davedev24: has joined #ruby
[19:05:39] stupidystupid: thats what i understand of puts
[19:05:42] blaxter: has joined #ruby
[19:05:42] BTRE: has joined #ruby
[19:06:09] havenwood: stupidystupid: Or just type `ri` and you'll get into the interactive mode. From there you can type `open` or `file` and explore various classes and modules
[19:06:10] gxml: has joined #ruby
[19:06:11] Cohedrin: has joined #ruby
[19:06:20] stupidystupid: havenwood thank you. i like the ruby documentation. it tends to have useful examples. i just dont understand it insofar as file handling is concerned
[19:06:42] havenwood: stupidystupid: Have you read this yet?: http://ruby-doc.org/core/File.html
[19:06:49] baweaver: has joined #ruby
[19:06:53] tobiasvl: stupidystupid: OK, so why were you confused that puts-ing a string containing a filename just wrote the filename to console, and not the contents of a file with that filename?
[19:07:10] stupidystupid: havenwood yes i have read it, but i do not understand it.
[19:08:07] troulouliou_div2: has joined #ruby
[19:08:17] stupidystupid: tobiasvl i wasnt confused about that. it did what i expected it would do. but i was trying to illustrate that i don't understand the instructions being given to me.
[19:08:48] havenwood: stupidystupid: https://rubymonk.com/learning/books/1-ruby-primer/chapters/42-introduction-to-i-o/lessons/90-using-the-file-class
[19:09:09] havenwood: stupidystupid: http://ruby.bastardsbook.com/chapters/io/#h-2-2
[19:09:12] stupidystupid: havenwood thank you. i will read that now
[19:10:03] havenwood: stupidystupid: Are you sure you did all the Ruby Codecademy??: https://www.codecademy.com/articles/writing-to-file-ruby
[19:10:23] havenwood: Or maybe you didn't read the articles, just did the excercises?
[19:10:38] choke: read? blasphemy!
[19:11:03] stupidystupid: havenwood that codecademy article did not exist at the time when i did it, which was three years ago.
[19:11:13] tobiasvl: aha, three years ago
[19:11:19] tobiasvl: relevant information
[19:11:20] havenwood: stupidystupid: It'd probably be worth brushing up.
[19:12:23] stupidystupid: brushing up on what?
[19:12:44] stupidystupid: ive been doing it for three years
[19:13:01] choke: so the fact that you've been doing it, means you don't have to brush up and continue to learn?
[19:13:30] tobiasvl: stupidystupid: have you been doing it continuously for three years, or did you do some exercises three years ago and then didn't touch ruby again until today?
[19:13:32] sdothum: has joined #ruby
[19:13:41] havenwood: stupidystupid: In any case, there's a File class. Underlying it is an IO class. It'd be worth searching online for a some reading related to those.
[19:13:49] stupidystupid: ive been doing little coding puzzles for three years, like the ones that i just posted
[19:14:02] stupidystupid: i have tons of them all saved on my computer
[19:14:11] flashpoint9: has joined #ruby
[19:14:20] havenwood: stupidystupid: Learning to use the docs is worth your time. I'd suggest studying the Ruby core and stdlib documentation closely.
[19:14:50] _stu_: has joined #ruby
[19:14:56] stupidystupid: i use the docs to find cool methods
[19:15:15] stupidystupid: thats how i learned about gsub and slice
[19:15:57] stupidystupid: i was hoping that if i just kept doing little puzzles, i would eventually understand how to make a program
[19:16:01] havenwood: stupidystupid: now you just need to learn more cool methods, like read and write
[19:16:29] stupidystupid: like for instance i have a spreadsheet that needed to be parsed
[19:16:31] MagePsycho: has joined #ruby
[19:16:34] stupidystupid: and i could do it really easily in ruby
[19:16:42] stupidystupid: it would be so trivial
[19:16:47] stupidystupid: but i didnt know how to get it into ruby
[19:16:53] stupidystupid: so i had to write it into the spreadsheet cell
[19:16:58] stupidystupid: and it looks terrible
[19:17:00] stupidystupid: let me show you guys
[19:17:05] stupidystupid: you'll cry probably
[19:17:55] choke: we're already crying.. 3 years and still "cant make a program"
[19:17:57] stupidystupid: http://i.imgur.com/dPV8XUr.png
[19:18:09] stupidystupid: thats my evil regex child i made
[19:20:12] MagePsycho: how to install ruby in ubuntu 14.0.4
[19:20:20] MagePsycho: rvm or chruby or else
[19:20:27] MagePsycho: which method you guys recommend?
[19:20:42] MagePsycho: I have heard that it’s not good to use sudo apt-get install ruby in ubuntu?
[19:20:43] jhass: MagePsycho: https://www.brightbox.com/docs/ruby/ubuntu/ + chruby
[19:21:30] n008f4g_: has joined #ruby
[19:21:32] johnmilton: has joined #ruby
[19:21:53] diegoviola: has joined #ruby
[19:22:40] UserInneed: has joined #ruby
[19:22:43] e4xit: has joined #ruby
[19:23:25] aguabendilo: has joined #ruby
[19:23:34] pawnbox: has joined #ruby
[19:24:33] jhass: aguabendilo: can we help you?
[19:24:50] helpa: has joined #ruby
[19:25:11] forcer: They were on another channel spamming just moments ago. So I guess "no".
[19:25:30] davedev24: has joined #ruby
[19:26:31] MagePsycho: how to install gem?
[19:26:40] MagePsycho: it’s there by default when we install ruby?
[19:26:51] havenwood: MagePsycho: RubyGems ships with Ruby. The `gem` command will be there.
[19:27:03] MagePsycho: havenwood: cool man
[19:27:13] MagePsycho: I am from PHP background and ruby is on next level
[19:27:22] QORRiE: has joined #ruby
[19:27:27] havenwood: MagePsycho: (It wasn't the case with Ruby 1.8, which is past End-of-Life.)
[19:27:35] MagePsycho: can you guys suggest me what are the best things that we can do with ruby?
[19:27:36] havenwood: MagePsycho: Use Ruby 2.2.4 or 2.3.0!
[19:27:46] MagePsycho: using .2.3.0 for now
[19:28:16] choke: Welcome to the fold MagePsycho, I myself made the switch from a 18 year PHP career to Ruby a year ago
[19:28:37] MagePsycho: choke: wow.. that sounds interesting
[19:28:47] MagePsycho: choke: tell me from what should i start with
[19:29:09] davedev24: has joined #ruby
[19:29:22] spider-mario: has joined #ruby
[19:29:39] havenwood: MagePsycho: Make a Rack app and run it with `rackup`: http://rack.github.io
[19:29:55] choke: Right here is a good spot, the guys in this channel really helped me get started ( same with the Rails channel )... Always real helpful when I can articulate a proper question...
[19:29:57] mesamoo: has joined #ruby
[19:30:53] MagePsycho: https://github.com/tmuxinator/tmuxinator
[19:30:59] MagePsycho: uses ruby gems
[19:31:03] MagePsycho: are everywhere :)
[19:31:11] havenwood: MagePsycho: It *is* a Ruby gem.
[19:31:13] MagePsycho: who has used tmux + tmuxinator here?
[19:31:34] choke: I use tmux, but not tmuxinator
[19:31:46] havenwood: MagePsycho: See the `tmuxinator.gemspec` file? A .gemspec is what defines a gem's spec.
[19:32:06] MagePsycho: didn’t know that
[19:32:10] MagePsycho: that’s cool
[19:32:13] havenwood: MagePsycho: http://guides.rubygems.org/specification-reference/
[19:33:44] droptone: has joined #ruby
[19:34:16] choke: I didn't need anything as powerful as tmuxinator, so I just wrote this: https://gist.github.com/jblac/eb5e1fe21eca34673d1c035525882647
[19:34:21] droptone: Question: If I have a returned file path like "/web/tfcv3/public/assets/artist_profiles/9/original/And_So_The_Story_Goes_-_3_PM.mp3" and I want to trim the string so that it eliminates the path up to /assets, what's the best way to edit the string?
[19:35:02] smathy: droptone, regex
[19:35:41] droptone: Ok, if the path is always prefixed by /web/tfcv3/public, what would the regex string look like to eliminate?
[19:35:53] droptone: In the past I would use .split("/").whatever but I'm not sure if that's optimal
[19:37:57] smathy: droptone, well if it's always the same string then you can just use slice.
[19:38:46] johnmilton: has joined #ruby
[19:38:46] SCHAAP137: has joined #ruby
[19:39:17] havenwood: droptone: What are you trying to get at? Each part? Just the last? First and last?
[19:39:27] droptone: The entire string beginning with /assets...
[19:39:37] droptone: eliminate /web/tfcv3/public
[19:39:49] smathy: droptone, so either `prefix = "/web/tfcv3/public"; path[prefix.length..-1]`
[19:40:10] weemsledeux: has joined #ruby
[19:40:58] smathy: droptone, or if you don't know what could be before `/assets` then: path.sub /#{prefix}/, ''
[19:41:15] droptone: Naah, the data before /assets is consistent.
[19:41:45] smathy: Ok, so just the slice then.
[19:41:47] droptone: That path[prefix.length..-1] did it
[19:41:52] droptone: Thank you, great stuff.
[19:46:24] nobitanobi: has joined #ruby
[19:46:47] hexagoxel: has joined #ruby
[19:48:10] Brackson: has joined #ruby
[19:48:55] hexagoxel: hi. what is the/a "local repository", as seen in `gem help install`?
[19:49:06] Brackson: How do I write a script that starts a Sinatra server and connects to an IRC server in the background?
[19:49:25] hexagoxel: links to the appropriate section in any manual appreciated, too.
[19:54:57] dangerousdave: has joined #ruby
[19:55:51] duckpuppy: has joined #ruby
[19:56:13] ctarx: has joined #ruby
[19:56:50] pawnbox: has joined #ruby
[19:57:12] Brackson: I'm writing a script that has one main console window. It connects to an IRC channel and logs the chats, as well as opens a Sinatra server to interact with the data. Is there any way that I can write the master script to start both services in the background and check for any errors?
[19:58:25] chipotle: has joined #ruby
[19:58:51] Devalo: has joined #ruby
[20:01:06] smathy: hexagoxel, that's just the place on your local hard drive where the code for a gem will be put, and hence can later be loaded into a running ruby program/process. More info: http://guides.rubygems.org/command-reference/
[20:01:12] rolha: has joined #ruby
[20:01:27] bmf: has joined #ruby
[20:03:03] blandflakes: has joined #ruby
[20:04:58] bronson: has joined #ruby
[20:08:11] weemsledeux: has joined #ruby
[20:10:06] ur5us: has joined #ruby
[20:11:07] Don_John: has joined #ruby
[20:12:51] yfeldblum: has joined #ruby
[20:12:54] hexagoxel: what is the default local repository directory?
[20:15:30] hexagoxel: smathy: maybe i am blind, but does the reference actually contain any information in this direction?
[20:15:47] hexagoxel: "RubyGems’ default local repository can be overridden with the GEM_PATH and GEM_HOME environment variables."
[20:16:01] hexagoxel: so i guess there is some default..
[20:16:31] cippaciong: hexagoxel: I think the default depends on your OS
[20:17:40] Brackson: can anyone help with my issue above?
[20:18:00] tAn: has joined #ruby
[20:19:14] smathy: ...and your ruby, that same line you're quoting appears in the second on the command you can use to see the installation directory.
[20:20:36] smathy: brackson, there are a number of different ways, this is a good primer: http://merbist.com/2011/02/22/concurrency-in-ruby-explained/
[20:22:02] dangerousdave: has joined #ruby
[20:22:23] diegoaguilar: has joined #ruby
[20:23:23] hexagoxel: smathy: i see, thanks.
[20:23:40] smathy: hexagoxel, np.
[20:25:04] Brackson: smathy: Using a thread, am I able to make the master script stall until the IRC connection is successfully made?
[20:25:22] Brackson: something like "Connecting to IRC........ done."
[20:25:28] Brackson: if you see what I mean
[20:25:40] baweaver: has joined #ruby
[20:25:53] hexagoxel: ACTION mumbles that `gem environment` does not use the phrase "repository" either.
[20:26:31] smathy: brackson, yes.
[20:27:30] dirpirin: has joined #ruby
[20:28:15] hexagoxel: (it would be helpful if the man-page/reference used consistent wording)
[20:29:04] Brackson: smathy: how can I wait until the thread's STDOUT says "connected!"
[20:29:08] smathy: hexagoxel, http://guides.rubygems.org/contributing/
[20:29:21] dirpirin: has joined #ruby
[20:33:46] Xeago: has joined #ruby
[20:33:54] Es0teric: has joined #ruby
[20:33:57] Cohedrin_: has joined #ruby
[20:34:37] Es0teric: has joined #ruby
[20:35:18] karapetyan: has joined #ruby
[20:35:33] tvon: has joined #ruby
[20:36:28] Total_Meltdown: has joined #ruby
[20:39:11] helpa: has joined #ruby
[20:39:42] nobitanobi: has joined #ruby
[20:43:33] chouhoulis: has joined #ruby
[20:44:22] A5101: has joined #ruby
[20:46:01] karapetyan: has joined #ruby
[20:46:05] smathy: brackson, there are many ways, shared variables, Queues, ConditionVariable, but if you have one thread blocking until another has done something, you might ask why you want to have that other thread in the first place?
[20:46:53] karapetyan: has joined #ruby
[20:47:59] diegoaguilar: has joined #ruby
[20:48:17] Brackson: smathy: the master script starts an IRC connection in the background and logs chats, and also starts Sinatra in the background to interact with the data. I can't really think of another way to accomplish that than having separate threads.
[20:49:11] Brackson: the master script also outputs certain data not really related to those two things.
[20:49:31] weemsledeux: has joined #ruby
[20:50:37] Inside: has joined #ruby
[20:50:47] treaki: has joined #ruby
[20:51:15] DrCode: has joined #ruby
[20:54:31] Mia: has joined #ruby
[20:54:31] Mia: has joined #ruby
[20:54:42] Brackson: https://gist.github.com/anonymous/a9d94f5d23fb2d8aef47a87935237656
[20:55:45] Total_Meltdown: Does anyone know of a good way of supporting plugins in a CLI gem without requiring the user to run it with "bundle exec" all the time?
[20:59:02] Total_Meltdown: I have a tool (https://github.com/seanedwards/cfer) that provides a DSL that a user writes in their own ruby script, and I'd like their scripts to be able to require gems they specified in their gemfile, but I have to run "bundle exec cfer my_script.rb" for that to work. I'm wondering if there's a way for Cfer to use Bundler to read the Gemfile and update LOAD_PATH for you in some way.
[21:00:01] rehat: has joined #ruby
[21:01:07] BTRE: has joined #ruby
[21:03:28] jhack: has joined #ruby
[21:04:17] Es0teric: has joined #ruby
[21:08:47] nettoweb: has joined #ruby
[21:15:28] william3: has joined #ruby
[21:15:57] dvinciguerra_: has joined #ruby
[21:17:12] djbkd: has joined #ruby
[21:19:34] Aviio: Im using MiniTest for my testing framework, is it possible to mock out what a method that belongs to @sut is returning? https://gist.github.com/Aviio/c795901a805c8123746ce9a72d85c3d4
[21:21:28] lomex: has joined #ruby
[21:24:36] Cohedrin: has joined #ruby
[21:26:22] william3: has joined #ruby
[21:26:43] pawnbox: has joined #ruby
[21:26:58] ctarx: has joined #ruby
[21:30:22] Begi1: has joined #ruby
[21:31:46] ixti: has joined #ruby
[21:32:41] rkazak: has joined #ruby
[21:33:05] full_throttle: has joined #ruby
[21:34:05] weemsledeux: has joined #ruby
[21:36:49] nofxx: has joined #ruby
[21:39:53] kobain: has joined #ruby
[21:42:49] adaedra: Total_Meltdown: `Bundler.require` iirc
[21:43:29] Zai00: has joined #ruby
[21:43:37] shellie_: has joined #ruby
[21:43:40] kareeoleez: has joined #ruby
[21:44:05] shellie_: does anyone know of a ruby debugger similar to pdb in python?
[21:46:05] shellie_: adaedra: thank you, that may be good enough, I'll try! cheers
[21:46:09] Rubie: has joined #ruby
[21:51:50] Antiarc: has joined #ruby
[21:52:37] shellie_: it only supports ruby 2.0...
[21:52:46] blackmesa: has joined #ruby
[21:55:58] lpvb: has joined #ruby
[21:56:14] Brackson: how can I start Sinatra in a thread and run other code after it's started?
[21:56:33] Brackson: http://pastie.org/pastes/10792828/text "asdf" doesn't print until I ctrl-c inside my terminal
[21:56:37] duckpuppy: has joined #ruby
[21:56:39] pawnbox: has joined #ruby
[21:57:14] idletask: has joined #ruby
[21:57:37] darix: brackson: http://stackoverflow.com/questions/6496433/multiple-sinatra-apps-using-rack-mount
[21:57:40] darix: something like that
[21:58:56] markfletcher: has joined #ruby
[21:59:37] Brackson: darix: not really sure how the solutions are related
[21:59:49] Brackson: I'm not using multiple Sinatra apps.
[22:00:30] LoneHerm_: has joined #ruby
[22:00:30] darix: brackson: i bet that asdf is a rack app
[22:00:39] darix: Use Rack::Directory to rackup the current directory on port 9292 for availability in a browser
[22:00:42] darix: from the description
[22:00:54] _3by8: has joined #ruby
[22:00:58] _3by8: Has anyone had any success installing Rails on the new Windows Subsystem for Linux?
[22:01:09] Brackson: darix: "asdf" isn't a rack app
[22:01:15] darix: so literally you could just mount Rack::Directory
[22:01:16] darix: brackson: lol
[22:01:22] darix: https://github.com/wycats/asdf/blob/master/lib/asdf.rb
[22:02:50] markfletcher: has joined #ruby
[22:04:50] Brackson: darix: I'm trying to run sinatra in the background of my script to a GUI for controlling it.
[22:04:56] chouhoulis: has joined #ruby
[22:05:08] Brackson: the rest of the script isn't sinatra/server related
[22:06:05] Asher: has joined #ruby
[22:06:49] mustmodify: has joined #ruby
[22:07:13] Xeago: has joined #ruby
[22:07:35] kadoppe: has joined #ruby
[22:07:50] GodFather: has joined #ruby
[22:08:16] mustmodify: so I have two kinds of matching going on... we match on one level using certain criteria and if a match is found, we match against its children using a different criteria. I'm seriously considering naming both methods 'match'... can't think of a reason not to do it. But it feels a bit weird. Is this going to come back to haunt me?
[22:08:57] Brackson: darix: is there any way to terminate the parent script and print the error if the child script gets an error?
[22:13:01] kadoppe: has joined #ruby
[22:15:18] Rubie: has joined #ruby
[22:20:20] marr: has joined #ruby
[22:21:55] tAn: has joined #ruby
[22:23:14] bronson: has joined #ruby
[22:26:40] pawnbox: has joined #ruby
[22:27:06] flashpoint9: has joined #ruby
[22:30:06] shazaum_: has joined #ruby
[22:30:09] baweaver: has joined #ruby
[22:30:14] stupidystupid: has joined #ruby
[22:32:59] mistermocha: has joined #ruby
[22:35:03] Total_Meltdown: adaedera: Nice, I got that working. Thanks.
[22:35:59] freerobby: has joined #ruby
[22:36:20] zast: has joined #ruby
[22:38:00] Xeago: has joined #ruby
[22:38:48] zenlot: has joined #ruby
[22:40:26] jdm_: has joined #ruby
[22:42:08] rolha: has joined #ruby
[22:46:15] shevy: adaedra! you just got some extra chars :)
[22:46:56] thistle: has joined #ruby
[22:48:21] Rith: has joined #ruby
[22:50:25] idletask: has joined #ruby
[22:50:40] kadoppe: has joined #ruby
[22:52:34] baweaver: has joined #ruby
[22:52:44] thistle: has joined #ruby
[22:55:02] sauvin: has joined #ruby
[22:55:14] ensyde: has joined #ruby
[22:55:27] thistle: has joined #ruby
[22:56:41] pawnbox: has joined #ruby
[22:59:20] FooMunki: has joined #ruby
[23:00:08] x77686d: has joined #ruby
[23:01:20] idletask: has joined #ruby
[23:01:34] shellie_: I have a class inside multiple module's, but I can't seem to stub it from rspec. I think I may be writing the path to it wrong. Is there a way for me to easily print out the extended namespace of the function from the initializer to aid in debug?
[23:02:29] jdm: has joined #ruby
[23:05:44] x77686d: has joined #ruby
[23:09:43] mustmodify: self.class.name ?
[23:09:55] mustmodify: or self.ancestors.inspect ?
[23:13:05] duckpuppy: has joined #ruby
[23:15:49] estudo: has joined #ruby
[23:16:39] x77686d: has joined #ruby
[23:18:50] flashpoint9: has joined #ruby
[23:19:37] jdm: has joined #ruby
[23:21:27] Guest79684: has joined #ruby
[23:22:28] dc4: has joined #ruby
[23:22:43] jdm: has joined #ruby
[23:25:00] jdm: has joined #ruby
[23:25:24] Inside: has joined #ruby
[23:32:29] CloCkWeRX: has joined #ruby
[23:33:51] AccordLTN: has joined #ruby
[23:36:52] stannard: has joined #ruby
[23:39:08] nodejunkie: has joined #ruby
[23:40:39] Ropeney: has joined #ruby
[23:42:05] kung: has joined #ruby
[23:42:48] hahuang61: has joined #ruby
[23:43:26] fir3starter: has joined #ruby
[23:43:57] kung: what does the * mean before something?
[23:43:59] kung: s2.connect(*s1.addr.values_at(3,1))
[23:44:10] hakunin_: has joined #ruby
[23:44:27] xcesariox: has joined #ruby
[23:44:38] Radar: kung: it's the splat operator
[23:44:50] Radar: kung: It will pass the array elements as individual arguments to that method.
[23:45:03] kung: Radar, ah ok
[23:45:24] stupidystupid: has joined #ruby
[23:46:46] pawnbox: has joined #ruby
[23:47:06] kung: how to keep ruby running after script has finished?
[23:47:12] kung: wanna analyze the var contents
[23:47:21] Radar: kung: require 'pry', then binding.pry at the end of it.
[23:47:24] Radar: You may need to install the pry gem
[23:47:36] kung: thanks, gonna try :D
[23:48:25] BTRE: has joined #ruby
[23:53:53] RahulT: has joined #ruby
[23:53:56] hexagoxel: has left #ruby: ("Leaving")
[23:54:43] flashpoint9: has joined #ruby
[23:57:28] flashpoint9: has joined #ruby
[23:57:57] dgncn: has joined #ruby