« Back to channel list

#ruby - 19 February 2016

« Back 1 day Forward 1 day »
[00:01:46] johnmilton: has joined #ruby
[00:02:05] Rodya_: has joined #ruby
[00:02:36] ur5us: has joined #ruby
[00:02:49] speaking1ode: has joined #ruby
[00:03:13] bronson: has joined #ruby
[00:03:26] casadei: has joined #ruby
[00:04:25] aryaching: has joined #ruby
[00:05:19] william3: has joined #ruby
[00:05:24] DanKnox_: has joined #ruby
[00:05:24] DanKnox: has joined #ruby
[00:05:52] _djbkd: has joined #ruby
[00:08:46] dopamean1: has joined #ruby
[00:09:36] shevy: does anyone of you happen to have a standalone ruby script that shows a bit how to use fibers? I remember I sorta understood what threads were doing after an example from the pickaxe, batch-downloading several remote webpages concurrently. I have not yet found a similar good example for fibers
[00:10:43] Ebok: has joined #ruby
[00:11:14] askhat: has joined #ruby
[00:12:04] duckpuppy: has joined #ruby
[00:12:16] yfeldblum: has joined #ruby
[00:14:41] robbyoconnor: has joined #ruby
[00:15:27] theery: has joined #ruby
[00:15:51] ManUtd27: has joined #ruby
[00:19:06] zackzorman: has joined #ruby
[00:19:15] kies^: has joined #ruby
[00:19:26] _djbkd: has joined #ruby
[00:21:49] cpup: has joined #ruby
[00:22:11] marxarelli: has joined #ruby
[00:23:00] DLSteve: has joined #ruby
[00:23:49] s2013: has joined #ruby
[00:25:36] kugelis: has joined #ruby
[00:25:36] tulak: has joined #ruby
[00:27:18] gheegh: has joined #ruby
[00:27:24] cjbottaro: has joined #ruby
[00:28:10] roshanavand: has joined #ruby
[00:32:16] juanpablo__: has joined #ruby
[00:33:03] loc22: has joined #ruby
[00:33:29] tulak: has joined #ruby
[00:34:25] _djbkd: has joined #ruby
[00:39:00] idefine: has joined #ruby
[00:39:16] aupadhye: has joined #ruby
[00:40:12] lemur: has joined #ruby
[00:41:21] whippythellama: has joined #ruby
[00:43:37] pizzaops: shevy: it seems like there are a lot of blog posts/explanations/etc from just googling `ruby fibers`
[00:44:14] sneakerhax: has joined #ruby
[00:44:42] Deck`: has joined #ruby
[00:46:06] volty: this one is enough imho http://stackoverflow.com/questions/9052621/why-do-we-need-fibers
[00:46:19] ur5us: has joined #ruby
[00:46:23] patrick99e99: has joined #ruby
[00:46:44] patrick99e99: is there a way to do {:foo => 'lol'}.slice(:foo, :bar) and get { :foo => 'lol', :bar => nil } ?
[00:47:36] Radar: >> {:foo => 'lol'}.reverse_merge(bar: nil, foo: nil)
[00:47:37] ruby[bot]: Radar: # => undefined method `reverse_merge' for {:foo=>"lol"}:Hash ...check link for more (https://eval.in/521467)
[00:47:39] Radar: Oh right.
[00:47:49] mg^: has joined #ruby
[00:47:54] Radar: It's a Rails thing.
[00:48:15] weemsledeux: has joined #ruby
[00:52:02] pizzaops: ACTION imagines that IRC had emoji and imagines that :trollface: rendered into the appropriate image and directs the imaginary trollface image at Radar
[00:52:58] DanKnox: has joined #ruby
[00:52:59] DanKnox_: has joined #ruby
[00:53:29] patrick99e99: hmm.. ok well whats the easiest way to turn an array of keys into a hash with nil values?
[00:53:57] patrick99e99: x = [:foo, :bar]... x.each_with_object({}) { |key, hash| hash[key] = nil } ?
[00:55:03] Papierkorb: >> [:foo, :bar].zip([]).to_h # patrick99e99
[00:55:04] ruby[bot]: Papierkorb: # => {:foo=>nil, :bar=>nil} (https://eval.in/521472)
[00:55:11] patrick99e99: ooo i like it.
[00:55:36] Papierkorb: patrick99e99: while shorter, your solution is a bit more obvious
[00:56:25] volty: patrick99e99:
[00:56:41] patrick99e99: volty: I like that even better.. no code!
[00:56:46] volty: >> { foo: 'blah' }.values_at(:foo, :bar)
[00:56:47] ruby[bot]: volty: # => ["blah", nil] (https://eval.in/521473)
[00:57:16] Papierkorb: ACTION wonders if there's a channel dedicated to the Whitespace language
[00:57:52] mg^: There probably is, but you can't see much.
[00:57:56] volty: >> { :foo => 'blah' }.values_at(:foo, :bar)
[00:57:58] ruby[bot]: volty: # => ["blah", nil] (https://eval.in/521474)
[01:01:27] tulak: has joined #ruby
[01:04:44] volty: >> class Hash; def slice(*keys); keys.zip(values_at(*keys)).to_h; end; end; { foo: 'lol' }.slice(:foo, :bar)
[01:04:46] ruby[bot]: volty: # => {:foo=>"lol", :bar=>nil} (https://eval.in/521476)
[01:05:01] B1n4r10: has joined #ruby
[01:05:32] rakm: has joined #ruby
[01:06:13] mary5030: has joined #ruby
[01:06:30] Rodya_: has joined #ruby
[01:06:46] william3: has joined #ruby
[01:09:21] dstarh: has joined #ruby
[01:09:45] Rodya_: has joined #ruby
[01:12:33] Chau: has joined #ruby
[01:12:35] robbyoconnor: has joined #ruby
[01:12:40] johnmilton: has joined #ruby
[01:12:41] duckpuppy: has joined #ruby
[01:14:37] theery: has joined #ruby
[01:18:42] Dreamer3_: has joined #ruby
[01:19:37] kirillzh: has joined #ruby
[01:19:56] william3: has joined #ruby
[01:20:58] guacamole: has joined #ruby
[01:21:40] sucks: has joined #ruby
[01:21:44] guacamole: has joined #ruby
[01:23:16] JoshGlzBrk: has joined #ruby
[01:23:52] BlkDynmt: has joined #ruby
[01:25:34] karapetyan: has joined #ruby
[01:26:58] eregi: has joined #ruby
[01:28:02] chipotle: has joined #ruby
[01:28:39] ohaibbq: has joined #ruby
[01:33:02] juanpablo__: has joined #ruby
[01:33:20] ReK2: has joined #ruby
[01:34:23] azure32: has joined #ruby
[01:34:27] william3: has joined #ruby
[01:35:09] decaff: has joined #ruby
[01:35:15] decaff: #rubyonrails
[01:37:16] shevy: #all-the-good-things
[01:38:45] KnownSyntax: has joined #ruby
[01:38:48] KnownSyntax: has joined #ruby
[01:42:25] astrofog: has joined #ruby
[01:44:16] sankaber: has joined #ruby
[01:46:44] Deck`: has joined #ruby
[01:47:12] jcdesimp: has joined #ruby
[01:48:04] allcentury: has joined #ruby
[01:50:03] Rodya_: has joined #ruby
[01:50:49] nettoweb: has joined #ruby
[01:53:02] sankaber: has joined #ruby
[01:53:21] weemsledeux: has joined #ruby
[01:55:04] s2013: has joined #ruby
[01:55:56] bb010g: has joined #ruby
[01:56:09] loc22: has joined #ruby
[01:58:53] theery: has joined #ruby
[02:00:12] darkf: has joined #ruby
[02:06:01] j2k: has joined #ruby
[02:06:53] william3: has joined #ruby
[02:07:33] theery_: has joined #ruby
[02:08:15] Terens: <%= f.text_field :partial_starting, value: params[:request][:partial_starting] %>
[02:08:21] Terens: how can I check params for non nil?
[02:09:25] norc-2: has joined #ruby
[02:12:02] allcentury: has joined #ruby
[02:12:12] Vingador: has joined #ruby
[02:12:43] northfurr: has joined #ruby
[02:13:03] rbennacer: has joined #ruby
[02:13:14] robbyoconnor: has joined #ruby
[02:13:27] duckpuppy: has joined #ruby
[02:14:46] nfk: has joined #ruby
[02:19:07] shazaum_: has joined #ruby
[02:24:32] triangles: has joined #ruby
[02:25:26] mary5030: has joined #ruby
[02:25:51] pizzaops: I mean... you can do != nil
[02:26:24] karapetyan: has joined #ruby
[02:27:23] bronson: has joined #ruby
[02:30:10] dexter_: has joined #ruby
[02:30:33] dlitvak: has joined #ruby
[02:31:12] drbrain: params.dig :request, :partial_starting
[02:31:20] drbrain: (Ruby 2.3+)
[02:31:26] hxegon: has joined #ruby
[02:33:36] frudo: has joined #ruby
[02:33:47] juanpablo__: has joined #ruby
[02:35:59] Abrin: has joined #ruby
[02:41:01] baweaver: has joined #ruby
[02:41:08] dopamean_: has joined #ruby
[02:41:54] william3: has joined #ruby
[02:42:35] devbug: has joined #ruby
[02:43:14] sucks: has joined #ruby
[02:43:26] Flakes: has joined #ruby
[02:47:00] Vingador: has joined #ruby
[02:47:32] Deck`: has joined #ruby
[02:53:06] solocshaw: has joined #ruby
[02:54:08] JDiPierro: has joined #ruby
[02:54:39] babblebre: has joined #ruby
[02:55:30] akem: has joined #ruby
[02:56:09] postmodern: if you trust a JSON API, would it be wise to use JSON.parse(data, symbolize_names: true) ?
[02:56:15] UtkarshRay: has joined #ruby
[02:58:00] havenwood: postmodern: seems kosher to me Ruby 2.2+
[02:58:26] toretore: gotta have those symbols
[02:58:40] p1k: has joined #ruby
[02:58:46] eam: the difference is symbolic at best
[02:58:50] havenwood: as long as they get GCed, why not?!
[02:59:37] toretore: the name "symbolize" makes me think they start out as strings anyway
[02:59:44] havenwood: toretore: well, json
[02:59:57] eregi: has joined #ruby
[03:00:27] toretore: i'm just taking the opportunity to rant about symbolitis again
[03:00:36] havenwood: >> require 'json'; JSON.parse({aim: true}.to_json)
[03:00:37] ruby[bot]: havenwood: # => {"aim"=>true} (https://eval.in/521484)
[03:00:57] zacstewart: has joined #ruby
[03:01:41] montyboy: has joined #ruby
[03:02:18] havenwood: max_nesting maybe to prevent something absurd?
[03:02:38] havenwood: default 100, nvm
[03:04:15] sankaber: has joined #ruby
[03:05:09] A124: has joined #ruby
[03:06:19] frudo: has joined #ruby
[03:08:33] shevy: to raise my own errors, I must subclass a new name for e. g. StandardError, and then raise that?
[03:09:10] robbyoconnor: has joined #ruby
[03:12:40] jackjackdripper: has joined #ruby
[03:13:51] havenwood: shevy: TroubleWithTribbles = Class.new StandardError
[03:14:33] shevy: the weird thing is, the oldschool < sorta looks nicer :)
[03:14:47] havenwood: shevy: think of your ancestry chain!
[03:15:30] duckpuppy: has joined #ruby
[03:15:41] havenwood: >> TroubleWithTribbles = Class.new StandardError; TroubleWithTribbles.ancestors
[03:15:42] ruby[bot]: havenwood: # => [TroubleWithTribbles, StandardError, Exception, Object, Kernel, BasicObject] (https://eval.in/521487)
[03:16:49] DLSteve: has joined #ruby
[03:17:59] havenwood: >> class PopplesCarWash < StandardError; end; PopplesCarWash.ancestors
[03:18:00] ruby[bot]: havenwood: # => [PopplesCarWash, StandardError, Exception, Object, Kernel, BasicObject] (https://eval.in/521489)
[03:18:13] havenwood: I was actually not expecting that to be the same, hence posting.
[03:18:25] rbennacer: has joined #ruby
[03:18:26] havenwood: My memory failed me.
[03:18:35] havenwood: Struct was what I was thinking.
[03:19:25] shevy: did you have your coffee yet!
[03:19:43] jamw: has joined #ruby
[03:19:46] yonatankoren: has joined #ruby
[03:20:36] havenwood: many, many shots - alas it wore off
[03:21:06] Grays0n: has joined #ruby
[03:23:28] x0F: has joined #ruby
[03:23:33] havenwood: https://github.com/elixir-lang/ecto/blob/610934b79bfc29c411776bdf7b058872547ab302/lib/ecto/repo/preloader.ex#L84-L86
[03:23:35] Maletor: has joined #ruby
[03:24:38] Guest6991: has joined #ruby
[03:26:10] bronson: has joined #ruby
[03:27:57] JoshGlzBrk: has joined #ruby
[03:29:41] DmitryBochkarev: has joined #ruby
[03:32:47] eregi: has joined #ruby
[03:34:52] techietrash_: has joined #ruby
[03:35:59] Guest72653: has joined #ruby
[03:36:36] shevy: do the elixir folks have something that ruby can incorporate?
[03:39:08] havenwood: shevy: https://github.com/havenwood/elixir.rb
[03:39:16] havenwood: shevy: I jest, but yeah!
[03:40:09] DEA7TH: has joined #ruby
[03:40:12] peterevjan: has joined #ruby
[03:40:51] havenwood: shevy: One thing Ruby 3 is contemplating is the pipeline operator |>
[03:41:41] havenwood: shevy: Elixir has implement multiple things proposed for Ruby
[03:41:57] toretore: what would |> do?
[03:42:42] havenwood: toretore: Somewhat similar to the | in Streem: https://github.com/havenwood/elixir.rb
[03:42:46] havenwood: ACTION https://github.com/matz/streem#readme
[03:43:00] havenwood: toretore: gah - key fail, anyways - that link ^
[03:43:15] baweaver: has joined #ruby
[03:45:13] shevy: and elixir has had a pipeline operator?
[03:45:17] kies^: has joined #ruby
[03:45:24] toretore: how would work under the hood though?
[03:45:42] havenwood: toretore: fancy things
[03:47:13] toretore: i'd prefer more lower level primitives tbh
[03:47:21] shevy: low level primitives?
[03:48:18] Deck`: has joined #ruby
[03:48:46] toretore: |> would hide a large amount of decisions and complexity that i wouldn't have any control over
[03:49:26] toretore: is it an event loop, threads, fibers, an interface contract like #call is, etc
[03:50:04] havenwood: toretore: threads are pain
[03:50:27] havenwood: toretore: the plan is warning don't do this when one insists
[03:50:49] UtkarshRay: has joined #ruby
[03:51:05] toretore: threads have their place
[03:51:16] havenwood: toretore: purgatory is a place indeed!
[03:51:43] toretore: no parallelism without threads!
[03:52:19] toretore: but yes, for everyday use, there should be abstractions on top
[03:52:27] toretore: that's the difficult part
[03:53:35] sucks: has joined #ruby
[03:56:54] baweaver: has joined #ruby
[03:56:57] Don_John: has joined #ruby
[03:59:43] ferr: has joined #ruby
[04:00:18] william3: has joined #ruby
[04:02:11] shtirlic: has joined #ruby
[04:02:35] peterevjan: has joined #ruby
[04:02:51] s2013: has joined #ruby
[04:03:44] shakes: has joined #ruby
[04:05:57] chouhoulis: has joined #ruby
[04:10:27] braincrash: has joined #ruby
[04:10:48] darkf: has joined #ruby
[04:14:03] jcdesimp_: has joined #ruby
[04:14:29] juanpablo__: has joined #ruby
[04:15:02] arthurl: has joined #ruby
[04:15:20] krz: has joined #ruby
[04:15:51] tildes: has joined #ruby
[04:16:17] duckpuppy: has joined #ruby
[04:19:11] wedgwood: has joined #ruby
[04:21:57] zast: has joined #ruby
[04:22:00] UtkarshRay: has joined #ruby
[04:22:44] jackjackdripper: has joined #ruby
[04:23:15] zeepickler: has joined #ruby
[04:24:09] zeepickler: has left #ruby: ()
[04:27:30] gix: has joined #ruby
[04:33:30] hxegon: has joined #ruby
[04:34:30] bluOxigen: has joined #ruby
[04:36:12] Cyrus: has joined #ruby
[04:36:32] krz: has joined #ruby
[04:37:51] DanKnox: has joined #ruby
[04:38:45] sami: has joined #ruby
[04:39:10] DmitryBochkarev: has joined #ruby
[04:40:44] kirillzh: has joined #ruby
[04:42:01] kirillzh: has joined #ruby
[04:43:12] Helheim: has joined #ruby
[04:44:37] hakunin: has joined #ruby
[04:48:53] Dreamer3_: has joined #ruby
[04:49:06] Deck`: has joined #ruby
[04:55:20] sami: has joined #ruby
[04:56:16] LoneHermit: has joined #ruby
[04:58:54] weemsledeux: has joined #ruby
[04:59:44] hxegon: has joined #ruby
[05:00:18] perrier: has joined #ruby
[05:01:43] william3: has joined #ruby
[05:03:54] charlemagne: has joined #ruby
[05:04:31] dubek: has joined #ruby
[05:08:28] sami: has joined #ruby
[05:11:07] stevemackinnon: has joined #ruby
[05:17:05] duckpuppy: has joined #ruby
[05:18:36] sneakerhax: has joined #ruby
[05:20:37] jamw: has joined #ruby
[05:22:28] darkf: has joined #ruby
[05:25:40] yfeldblum: has joined #ruby
[05:26:49] darkf_: has joined #ruby
[05:29:27] chipotle: has joined #ruby
[05:31:11] blackgoat: has joined #ruby
[05:33:15] teej: has joined #ruby
[05:38:46] Infra-Red: has joined #ruby
[05:39:04] mack25: has joined #ruby
[05:40:53] chipotle: has joined #ruby
[05:43:50] ZerGabriel: has joined #ruby
[05:47:39] robbyoconnor: has joined #ruby
[05:49:21] bronson: has joined #ruby
[05:49:36] frudo: has joined #ruby
[05:50:08] Deck`: has joined #ruby
[05:52:13] jamw: has joined #ruby
[05:53:04] UtkarshRay: has joined #ruby
[05:53:52] chipotle: has joined #ruby
[05:54:51] ptierno: has joined #ruby
[05:55:47] kegster: if i have ng-model="" on a textarea, how can i prevent the line breaks from being removed?
[05:56:04] darkf_: has joined #ruby
[05:56:39] ptierno: has joined #ruby
[05:59:49] fullofcaffeine: has joined #ruby
[06:02:16] karapetyan: has joined #ruby
[06:05:34] mack25: I keep getting Stripe SSL Cert errors in my Ruby app. Here's the error message - https://gist.github.com/tcope25/d93887f45cfd5e3da679 - any help would be greatly appreciated
[06:05:36] chipotle: has joined #ruby
[06:07:47] kegster: wrong channel :P
[06:08:07] ZerGabriel: has left #ruby: ()
[06:13:52] Diaoer: has joined #ruby
[06:16:40] yardenbar: has joined #ruby
[06:17:45] duckpuppy: has joined #ruby
[06:18:56] pandaant: has joined #ruby
[06:21:16] bronson: has joined #ruby
[06:21:34] mattp__: has joined #ruby
[06:24:01] william3: has joined #ruby
[06:24:02] pdoherty: has joined #ruby
[06:26:43] smplx: has joined #ruby
[06:26:54] mwlang: has joined #ruby
[06:27:50] vdamewood: has joined #ruby
[06:30:38] p1k: has joined #ruby
[06:31:40] alphaatom: has joined #ruby
[06:32:53] sandstrom: has joined #ruby
[06:33:36] crdpink: has joined #ruby
[06:33:58] solocshaw1: has joined #ruby
[06:35:16] marxarelli: has joined #ruby
[06:37:32] ur5us: has joined #ruby
[06:39:23] smplx: has left #ruby: ()
[06:39:37] jetpack_joe: has joined #ruby
[06:39:59] AnoHito: has joined #ruby
[06:41:45] Deck`: has joined #ruby
[06:44:25] steffkes: has joined #ruby
[06:44:25] steffkes: has joined #ruby
[06:46:24] oliver__: has joined #ruby
[06:50:37] aufi: has joined #ruby
[06:51:23] joonty: has joined #ruby
[06:52:39] ur5us: has joined #ruby
[06:53:51] Jet4Fire: has joined #ruby
[07:00:23] Xeago: has joined #ruby
[07:01:24] htmldrum: has joined #ruby
[07:02:33] srenatus: has joined #ruby
[07:03:27] roshanavand: has joined #ruby
[07:03:44] solars: has joined #ruby
[07:08:00] lurch_: has joined #ruby
[07:08:35] codecop: has joined #ruby
[07:10:16] roshanavand: has joined #ruby
[07:13:10] elifoster: has joined #ruby
[07:16:47] Infra-Red: has joined #ruby
[07:17:02] andikr: has joined #ruby
[07:17:13] siaW: has joined #ruby
[07:17:16] woo: has joined #ruby
[07:18:31] duckpuppy: has joined #ruby
[07:19:15] TomyLobo: has joined #ruby
[07:19:40] SkepBrain: has joined #ruby
[07:19:46] mhoungbo: has joined #ruby
[07:20:27] nephos: has joined #ruby
[07:21:54] last_staff: has joined #ruby
[07:22:25] azure32: has joined #ruby
[07:25:33] william3: has joined #ruby
[07:27:37] terlar: has joined #ruby
[07:28:47] roshanavand: has joined #ruby
[07:31:41] bluOxigen_: has joined #ruby
[07:34:17] ur5us: has joined #ruby
[07:35:34] firstdayonthejob: has joined #ruby
[07:37:37] mark1: has joined #ruby
[07:39:58] xu: has joined #ruby
[07:41:31] einarj: has joined #ruby
[07:41:51] lubekpl: has joined #ruby
[07:43:28] [dmp]: has joined #ruby
[07:45:58] xuex: has joined #ruby
[07:47:36] fullofca_: has joined #ruby
[07:48:17] srenatus: has left #ruby: ()
[07:48:26] ptierno: has joined #ruby
[07:48:27] ptierno: has joined #ruby
[07:52:21] ptierno: has joined #ruby
[07:52:26] ptierno: has left #ruby: ()
[07:53:18] mangle: has joined #ruby
[07:54:03] sandstrom: has joined #ruby
[07:54:25] ptierno: has joined #ruby
[07:55:52] xuex: has left #ruby: ()
[07:56:15] ptierno: has joined #ruby
[07:56:49] ptierno: has joined #ruby
[07:56:49] ptierno: has joined #ruby
[07:57:00] bruce_lee: has joined #ruby
[07:57:27] bruce_lee: has joined #ruby
[07:59:37] symm-: has joined #ruby
[08:00:08] juanpablo__: has joined #ruby
[08:00:27] skade: has joined #ruby
[08:00:43] tvw: has joined #ruby
[08:03:34] Ox0dea: >> Is evidence admissible if tainted?
[08:03:36] ruby[bot]: Ox0dea: # => nil (https://eval.in/521631)
[08:03:43] Ox0dea: Thanks, ruby[bot].
[08:07:17] _Diaoer: has joined #ruby
[08:07:34] Xeago: has joined #ruby
[08:08:28] william3: has joined #ruby
[08:08:58] aganov: has joined #ruby
[08:12:57] fullofca_: has joined #ruby
[08:13:08] Ebok: has joined #ruby
[08:16:46] tildes: has joined #ruby
[08:18:09] eregi: has joined #ruby
[08:19:12] SCHAAP137: has joined #ruby
[08:19:20] duckpuppy: has joined #ruby
[08:19:46] s2013: has joined #ruby
[08:22:16] YaknotiS: has joined #ruby
[08:25:33] Xeago: has joined #ruby
[08:27:02] eyeh8nigg3rz: has joined #ruby
[08:27:02] ChanServ: +b *NIGG3R*!*@*
[08:27:02] ChanServ: ChanServ kicked eyeh8nigg3rz: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[08:27:15] ruby[bot]: -b+b *NIGG3R*!*@* *NIGG3R*!*@*$#ruby-banned
[08:27:19] htmldrum: has joined #ruby
[08:28:31] patchedmonkey: has joined #ruby
[08:28:45] ta: has joined #ruby
[08:30:03] Gadgetoid: has joined #ruby
[08:30:40] chipotle: has joined #ruby
[08:34:42] mdw: has joined #ruby
[08:39:27] patchedmonkey: has joined #ruby
[08:40:24] jaiks: has joined #ruby
[08:41:10] baweaver: has joined #ruby
[08:42:06] kmckelvi1: has joined #ruby
[08:43:24] lsmola: has joined #ruby
[08:44:52] fontain: has joined #ruby
[08:45:44] norc_: has joined #ruby
[08:45:55] shredding: has joined #ruby
[08:46:21] steffkes_: has joined #ruby
[08:47:05] Guest32113: has joined #ruby
[08:48:16] azure32_: has joined #ruby
[08:49:09] xuex: has joined #ruby
[08:50:11] skade: has joined #ruby
[08:50:28] htmldrum: has joined #ruby
[08:51:28] DEA7TH_: has joined #ruby
[08:53:25] woo: has joined #ruby
[08:55:50] sepp2k: has joined #ruby
[08:56:45] devbug: has joined #ruby
[08:57:00] last_staff: has joined #ruby
[08:57:50] dmolina: has joined #ruby
[08:58:43] atmosx: has joined #ruby
[08:59:47] ur5us: has joined #ruby
[09:02:17] Flipez: has joined #ruby
[09:02:42] timmyBsd: has anybody an idea why loop{} is such slower than other conditional instructions
[09:03:36] zeroDivisible: has joined #ruby
[09:05:07] SCHAAP137: has joined #ruby
[09:07:48] karapetyan: has joined #ruby
[09:09:27] joonty: has joined #ruby
[09:09:38] ur5us: has joined #ruby
[09:12:06] zeroDivisible: has joined #ruby
[09:12:26] Ox0dea: timmyBsd: https://eval.in/521657
[09:12:40] Ox0dea: Kernel#loop is actually a method that takes a block; there's just much more "machinery" involved.
[09:13:45] fullofcaffeine: has joined #ruby
[09:14:17] fullofca_: has joined #ruby
[09:15:44] patchedmonkey: has joined #ruby
[09:15:52] gregf_: oh its a method
[09:15:58] william3: has joined #ruby
[09:16:02] Ox0dea: Of course it's a method. :)
[09:16:15] gregf_: no wonder
[09:16:48] gregf_: theres a repeat {#code} until (<condition>) <== which is as quick as a while/for
[09:18:30] ljames: has joined #ruby
[09:19:26] william3: has joined #ruby
[09:20:06] duckpuppy: has joined #ruby
[09:20:11] eregi: has joined #ruby
[09:20:58] zeroDivisible: has joined #ruby
[09:21:36] gregf_: well, my bad. There is no repeat until :|
[09:21:47] gregf_: it just compiles ;)
[09:21:56] Ox0dea: Hm? `foo until bar` is totally kosher.
[09:24:09] Ox0dea: What'd you mean by there being no "repeat until"?
[09:24:10] gregf_: ive never ever felt the need to use these other constructs :/. just an each, map, select
[09:24:27] woo: has joined #ruby
[09:24:46] gregf_: >> x = 0; repeat { x +=1 } until ( x <= 1000000 );[ x ]
[09:24:47] ruby[bot]: gregf_: # => [0] (https://eval.in/521660)
[09:25:19] gregf_: Ox0dea: ^^ that 'compiles' tho' does not do whats expected
[09:25:31] gregf_: >> x = 0; repeat { x +=1 } until ( x == 1000000 );[ x ]
[09:25:32] ruby[bot]: gregf_: # => undefined method `repeat' for main:Object (NoMethodError) ...check link for more (https://eval.in/521661)
[09:25:37] Ox0dea: gregf_: Your condition is met immediately.
[09:25:52] Ox0dea: >> x = 0; x <= 10000000
[09:25:53] ruby[bot]: Ox0dea: # => true (https://eval.in/521662)
[09:26:06] gregf_: ah - fair enough ;). *ignore me*
[09:26:18] jackjackdripper: has joined #ruby
[09:26:28] Ox0dea: >> x = 0; x += 1 until x > 100; x
[09:26:29] ruby[bot]: Ox0dea: # => 101 (https://eval.in/521663)
[09:26:56] Ox0dea: And the left-hand side can really be any expression, with sequencing provided either by parentheses or an explicit `begin`.
[09:26:58] jimcroft: has joined #ruby
[09:27:14] ruby-lang655: has joined #ruby
[09:27:29] gregf_: i thought it was like a do {} while(<condition>) <== where the condition is executed at the end
[09:27:48] Ox0dea: Right, you only get that semantics with an explicit `begin`.
[09:27:58] snowy: has joined #ruby
[09:28:02] Ox0dea: Ruby's "do while" is spelt `begin; end while`. :/
[09:29:52] gregf_: >> x = 0; begin; x+=1;end while x > 10;[x]
[09:29:53] ruby[bot]: gregf_: # => [1] (https://eval.in/521666)
[09:30:07] gregf_: ^^ there. x is incremented first and then the condition
[09:30:39] gregf_: but anyways. prolly what you'd learn the first month in uni ;)
[09:32:14] fumk: has joined #ruby
[09:33:03] Timberwo|f: has joined #ruby
[09:33:11] dionysus69: has joined #ruby
[09:33:24] FooMunki: has joined #ruby
[09:33:40] neanderslob: has joined #ruby
[09:34:19] evidex: has joined #ruby
[09:43:32] burgestrand: has joined #ruby
[09:45:21] bronson: has joined #ruby
[09:46:45] marr: has joined #ruby
[09:47:05] rikkipitt: has joined #ruby
[09:49:35] CloCkWeRX: has joined #ruby
[09:50:34] tulak: has joined #ruby
[09:51:10] rdark: has joined #ruby
[09:51:25] EdwardIII: not in our unis heh
[09:51:26] Spami: has joined #ruby
[09:53:14] Xeago: gregf_: there's nothing preventing you from making a `repeat` though
[09:53:41] askhat: has joined #ruby
[09:53:58] bruce__lee: has joined #ruby
[09:55:19] william3: has joined #ruby
[09:56:03] andrewvos: has joined #ruby
[09:57:18] chouhoulis: has joined #ruby
[09:57:54] Ox0dea: Xeago: How would you make it work with a modifier conditional?
[09:57:56] jackjackdripper: has joined #ruby
[09:58:01] f4cl3y: has joined #ruby
[09:58:24] chthon: has joined #ruby
[09:59:18] Ox0dea: Derp. `def repeat; yield; end`
[09:59:23] Ox0dea: Kinda silly, though.
[10:00:33] tulak: has joined #ruby
[10:00:43] lubekpl: has joined #ruby
[10:00:52] awea: has joined #ruby
[10:01:23] Ox0dea: I complicated it by assuming that you might want `repeat { foo }` to loop forever.
[10:05:08] ziyadb: has joined #ruby
[10:09:09] trinaldi: has joined #ruby
[10:09:11] nettoweb: has joined #ruby
[10:11:06] apeiros: gregf_: do {} while() in ruby is `begin … end while ()` (and matz dislikes the construct due to its conflicting nature wrt postfix while)
[10:13:20] william3: has joined #ruby
[10:15:32] joonty: has joined #ruby
[10:20:48] duckpuppy: has joined #ruby
[10:20:57] eregi: has joined #ruby
[10:21:35] tulak: has joined #ruby
[10:22:35] siaW: has left #ruby: ()
[10:22:59] lxsameer: has joined #ruby
[10:24:09] nimbu: has joined #ruby
[10:25:54] gregf_: apeiros: sure. i faintly remember ever using a while/for :). much less in prod code
[10:26:14] apeiros: with regards to
[10:26:16] gregf_: with regards to... presumably
[10:26:51] nimbu: hey guys, I'd like to ask a quick question. How might RUBY_ENGINE become undefined in a Rails App? Also I have ruby version 1.9.3 installed but at runtime in my app RUBY_VERSION is set to 1.8.7
[10:27:16] ddv: nimbu: 1.9.3 is EOL don't use it
[10:27:22] ddv: same goes for 1.8.7
[10:27:31] apeiros: nimbu: RUBY_ENGINE is not defined in 1.8
[10:27:36] woo: has joined #ruby
[10:27:36] nimbu: ddv: I'm afraid I really need to get some older code to run
[10:28:01] apeiros: 18>> [RUBY_VERSION, Object.const_defined?(:RUBY_ENGINE)]
[10:28:02] ruby[bot]: apeiros: # => ["1.8.7", false] (https://eval.in/521693)
[10:28:09] apeiros: 19>> [RUBY_VERSION, Object.const_defined?(:RUBY_ENGINE)]
[10:28:10] ruby[bot]: apeiros: # => ["1.9.3", true] (https://eval.in/521694)
[10:29:08] nimbu: apeiros: So if RUBY_ENGINE isn't defined using ruby 1.8.7, where could that version number be coming from. I have 1.9.3 installed with RVM
[10:29:35] apeiros: I think you're confusing things?
[10:29:44] apeiros: RUBY_ENGINE does not give you the version number
[10:29:46] apeiros: RUBY_VERSION does
[10:29:54] nimbu: yep that what I mean
[10:30:09] apeiros: and I think the question you really want to ask is why your rails app runs in 1.8 instead of 1.9
[10:30:10] nimbu: RUBY_VERSION gets set to 1.8.7 somehow even though I have 1.9.3 installed
[10:30:25] apeiros: yeah, no. RUBY_VERSION doesn't "get set to"
[10:31:02] apeiros: but to get to your actual question - does your project have a file named '.ruby-version' or '.rvm'?
[10:31:34] nimbu: apeiros: If i run 'ruby -e RUBY_VERSION' at a shell prompt it spits out 1.9.3 . However at runtime in my app RUBY_VERSION is set to 1.8.7
[10:32:01] apeiros: yeah, you can shorten that to "if I run my app, it uses ruby 1.8.7"
[10:32:02] nimbu: apeiros: it has a .rvmrc
[10:32:11] apeiros: and what does that file contain?
[10:32:49] nimbu: it contains "rvm use 1.9.3@global"
[10:33:11] apeiros: hm, interesting. yet your app is still run by 1.8.7.
[10:33:27] apeiros: how do you run/start rails?
[10:33:31] nimbu: apeiros: its very strange
[10:34:00] nimbu: using mongrel_rails
[10:34:49] apeiros: ok. I have no memory anymore about how mongrel_rails worked.
[10:34:57] chipotle: has joined #ruby
[10:35:03] apeiros: if you run `rails c`, do you get 1.8.7 too? or 1.9.3?
[10:36:45] nimbu: apeiros: not sure what that command was supposed to do??
[10:36:59] nimbu: it just created a bunch of files
[10:37:30] hayden_: has joined #ruby
[10:37:30] Xeago: has joined #ruby
[10:37:34] nimbu: it seemed to use version 1.9.3
[10:37:57] rodfersou: has joined #ruby
[10:38:11] nimbu: I'm trying to get a legacy application working on a virtualbox vm
[10:38:32] apeiros: `rails c` should start the rails console
[10:38:55] apeiros: and I don't remember how old a version it'd have to be for that not to be present
[10:39:09] apeiros: at least iirc rails 2 already had that
[10:39:50] futilegames: has joined #ruby
[10:39:54] aryaching: has joined #ruby
[10:41:13] nimbu: when running mongrel_rails, it crashes and finishes with this output "ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]"
[10:41:52] nimbu: but I don't understand why its outputting this version seeing as in the .rvmrc I am using 1.9.3
[10:42:18] Hanmac: maybe user problem?
[10:42:44] Hanmac: maybe the 1.9.3 is only installed for your user, and the user that does run rails has only 1.8.7?
[10:43:18] nimbu: hanmac: Do you know of any way to check this?
[10:43:50] Hanmac: hm i dont know how your rails is configured, nor did i know mongrel
[10:44:00] baweaver: has joined #ruby
[10:44:15] nimbu: I execute mongrel_rails as my current user if that helps
[10:45:03] youngmathimus0: has joined #ruby
[10:45:30] yardenbar: has joined #ruby
[10:45:56] nimbu: username@my-server:~/dev/myserver$ which ruby
[10:45:59] nimbu: /home/username/.rvm/rubies/ruby-1.9.3-p551/bin/ruby
[10:46:12] nimbu: ^ output from which ruby
[10:46:19] pawnbox: has joined #ruby
[10:53:53] yfeldblum: has joined #ruby
[10:55:30] Xeago_: has joined #ruby
[10:55:37] ldnunes: has joined #ruby
[10:56:45] ocbtec: has joined #ruby
[10:57:31] Xeago_: has joined #ruby
[10:58:03] chouhoulis: has joined #ruby
[10:59:56] youngmathimus0: has joined #ruby
[11:02:55] dstarh: has joined #ruby
[11:07:41] Snowy_: has joined #ruby
[11:09:53] slackbotgz: has joined #ruby
[11:13:15] aryaching: has joined #ruby
[11:17:38] matsutomo: has joined #ruby
[11:17:48] charlemagne: has joined #ruby
[11:18:33] karapetyan: has joined #ruby
[11:18:36] araujo_: has joined #ruby
[11:20:58] araujo_: has joined #ruby
[11:21:36] duckpuppy: has joined #ruby
[11:21:43] eregi: has joined #ruby
[11:22:17] jeanlinux: has joined #ruby
[11:22:19] dlitvak: has joined #ruby
[11:22:26] c355E3B: has joined #ruby
[11:23:15] araujo_: has joined #ruby
[11:24:45] Timberwo|f: has joined #ruby
[11:25:25] snowy: has joined #ruby
[11:28:43] Abrin: has joined #ruby
[11:29:21] alexherbo2: has joined #ruby
[11:31:36] mhoungbo: has joined #ruby
[11:43:35] nimbu: apeiros: thanks for the help it seems I had libruby1.8 installed and also apparently mongrel_rails requires version 1.8
[11:43:56] slackbotgz: has joined #ruby
[11:44:31] charlemagne: has joined #ruby
[11:45:12] manveru: mongrel, now that's something you don't hear every day
[11:46:38] bronson: has joined #ruby
[11:48:02] e4xit: has joined #ruby
[11:48:16] Cohedrin: has joined #ruby
[11:48:19] jaiks: has joined #ruby
[11:48:39] nimbu: has left #ruby: ()
[11:50:00] charlemagne: has joined #ruby
[11:50:12] darix: blast from the past
[11:50:15] myntcake: has joined #ruby
[11:50:30] darix: manveru: but tbh ... parts of mongrel still live in many of the other ruby web server
[11:50:36] manveru: back when zed was still into ruby :)
[11:50:53] manveru: it was really a big step up from webrick
[11:50:55] charlemagne: has joined #ruby
[11:51:41] manveru: and it was the first server i used to implement ramaze before rack was a thing
[11:52:19] alexherbo2: has joined #ruby
[11:52:41] Shaboum: has joined #ruby
[11:53:29] manveru: but still, nobody should be using mongrel now...
[11:53:39] anisha: has joined #ruby
[11:54:43] lxsameer: has joined #ruby
[11:58:50] chouhoulis: has joined #ruby
[11:59:08] charlemagne: has joined #ruby
[11:59:57] dlitvak: has joined #ruby
[12:01:56] e4xit: has joined #ruby
[12:02:50] speaking1ode: has joined #ruby
[12:02:53] Xeago: has joined #ruby
[12:07:10] Xeago: has joined #ruby
[12:09:30] charlemagne: has joined #ruby
[12:12:29] jeanlinux: has joined #ruby
[12:16:39] william3: has joined #ruby
[12:17:42] apeiros: hm, how'd you call the "opposite" operation of padding? cutting? i.e. ensuring a string has a max length (even if that means losing part of the string)
[12:19:43] Papierkorb: apeiros: truncating?
[12:20:07] apeiros: hah! I knew there was a better word
[12:20:13] apeiros: yeah, truncating sounds about right
[12:20:34] chipotle: has joined #ruby
[12:20:57] s2013: has joined #ruby
[12:22:29] eregi: has joined #ruby
[12:24:28] jeanlinux: has joined #ruby
[12:25:52] Ebok: has joined #ruby
[12:28:15] jeanlinux: has joined #ruby
[12:28:57] jeanlinux: has joined #ruby
[12:31:32] Bilge: has joined #ruby
[12:31:51] woo: has joined #ruby
[12:32:35] godzillaenlacasa: has joined #ruby
[12:34:07] htmldrum: has joined #ruby
[12:36:25] sondr3: has joined #ruby
[12:37:25] jamw: has joined #ruby
[12:37:28] phredus: has joined #ruby
[12:37:36] charlemagne: has joined #ruby
[12:40:13] burgestrand: has joined #ruby
[12:44:20] roshanavand: has joined #ruby
[12:45:26] baweaver: has joined #ruby
[12:46:39] jeanlinux: has joined #ruby
[12:46:48] johnmilton: has joined #ruby
[12:48:11] Icey: has joined #ruby
[12:49:26] jottr: has joined #ruby
[12:51:18] s2013: has joined #ruby
[12:51:22] hamed_r: has joined #ruby
[12:51:36] snowy: has joined #ruby
[12:52:27] bkxd: has joined #ruby
[12:53:05] htmldrum: has joined #ruby
[12:54:56] UtkarshRay: has joined #ruby
[12:55:12] momo-reina: has joined #ruby
[12:55:30] trinaldi: has joined #ruby
[12:57:37] Snowy_: has joined #ruby
[12:58:51] s2013: has joined #ruby
[12:59:08] sgambino: has joined #ruby
[12:59:32] chouhoulis: has joined #ruby
[13:01:16] Xeago: has joined #ruby
[13:04:35] duckpuppy: has joined #ruby
[13:05:04] charlemagne: has joined #ruby
[13:05:06] trinaldi: has joined #ruby
[13:06:26] jokester: has joined #ruby
[13:07:22] synthroid: has joined #ruby
[13:07:57] f4cl3y: has joined #ruby
[13:08:28] gokulnath: has joined #ruby
[13:12:31] sdothum: has joined #ruby
[13:13:03] william3: has joined #ruby
[13:13:12] skade: has joined #ruby
[13:13:28] andrewvos: has joined #ruby
[13:15:34] openstruct: has joined #ruby
[13:15:34] charlemagne: has joined #ruby
[13:15:49] william3: has joined #ruby
[13:16:16] openstruct: has joined #ruby
[13:16:16] openstruct: has joined #ruby
[13:19:26] woo: has joined #ruby
[13:21:19] terlar: has joined #ruby
[13:21:52] Kang00: has joined #ruby
[13:22:05] charlemagne: has joined #ruby
[13:23:16] eregi: has joined #ruby
[13:23:58] darix: apeiros: "fit" would also be a good term, if you want to cover truncating and padding
[13:25:34] rippa: has joined #ruby
[13:25:44] rdark_: has joined #ruby
[13:26:00] veloutin: has joined #ruby
[13:27:51] volty: has joined #ruby
[13:28:29] JDiPierro: has joined #ruby
[13:28:34] mdw: has joined #ruby
[13:30:37] Ebok: has joined #ruby
[13:32:36] krz: has joined #ruby
[13:34:17] rizenine: has joined #ruby
[13:35:27] niko: has joined #ruby
[13:36:25] jottr_: has joined #ruby
[13:38:24] ElFerna: has joined #ruby
[13:38:38] askhat: has joined #ruby
[13:41:04] andrewvos: has joined #ruby
[13:41:15] ElFerna: has joined #ruby
[13:42:35] Guest27: has joined #ruby
[13:43:13] hxegon: has joined #ruby
[13:44:15] william3: has joined #ruby
[13:46:26] ramortegui: has joined #ruby
[13:46:54] niko: has joined #ruby
[13:46:58] niko: has joined #ruby
[13:48:00] niko: has joined #ruby
[13:48:12] hnagamin: has joined #ruby
[13:48:19] bronson: has joined #ruby
[13:49:22] dstarh: has joined #ruby
[13:49:26] juanpablo__: has joined #ruby
[13:50:43] dionysus69: has joined #ruby
[13:50:46] floatingpoint: has joined #ruby
[13:51:20] Ebok: has joined #ruby
[13:51:51] B1n4r10: has joined #ruby
[13:52:06] dexter_: has joined #ruby
[13:52:19] Ebok: has joined #ruby
[13:52:55] LoneHerm_: has joined #ruby
[13:53:25] haylon: has joined #ruby
[13:53:40] Ebok: has joined #ruby
[13:55:55] Bish: is it okay to have complex objects as constants?
[13:55:59] timwis: has joined #ruby
[13:56:16] timwis: has left #ruby: ()
[13:57:07] last_staff: has joined #ruby
[14:00:18] chouhoulis: has joined #ruby
[14:00:24] ZerGabriel: has joined #ruby
[14:01:32] shevy: sounds unusual
[14:01:40] shevy: typical constant would be HAS_CHEEZE = true
[14:01:50] araujo: has joined #ruby
[14:01:58] araujo: has joined #ruby
[14:02:40] Xeago: has joined #ruby
[14:03:12] araujo: has joined #ruby
[14:03:58] Emmanuel_Chanel_: has joined #ruby
[14:04:43] Emmanuel_Chanel_: has joined #ruby
[14:04:55] ZerGabriel: has left #ruby: ()
[14:05:11] Emmanuel_Chanel_: has joined #ruby
[14:05:16] araujo: has joined #ruby
[14:07:19] Jardayn: has joined #ruby
[14:07:32] araujo: has joined #ruby
[14:08:38] apeiros: Bish: perfectly fine
[14:09:15] skade: has joined #ruby
[14:09:15] apeiros: Bish: and to contradict shevy - we have such complex objects like classes and modules commonly as constants ;-)
[14:09:34] andrewvos: has joined #ruby
[14:09:41] araujo: has joined #ruby
[14:10:03] ljarvis: Bish: class X #=> X is a constant that's an instance of Class, which I'd say is quite complex
[14:10:15] ljarvis: basically what apeiros said
[14:11:01] ciconia: has joined #ruby
[14:11:18] last_staff1: has joined #ruby
[14:11:57] araujo: has joined #ruby
[14:11:59] Ox0dea: I imagine Bish meant lexically complex.
[14:12:28] allcentury: has joined #ruby
[14:12:34] juanpablo__: has joined #ruby
[14:12:52] malconis: has joined #ruby
[14:13:06] mois3x: has joined #ruby
[14:13:15] shevy: nobody uses simple constants anymore :(
[14:13:45] shevy: yeah volty look above!
[14:13:46] Ox0dea: >> Complex::I
[14:13:47] ruby[bot]: Ox0dea: # => (0+1i) (https://eval.in/521824)
[14:13:55] Abrin: has joined #ruby
[14:14:15] araujo: has joined #ruby
[14:14:33] Ox0dea: There's a super-simple Complex constant.
[14:15:07] hnagamin: has joined #ruby
[14:16:11] malconis: has joined #ruby
[14:16:34] sgambino: has joined #ruby
[14:16:55] idefine: has joined #ruby
[14:18:03] f4cl3y: has joined #ruby
[14:18:14] platzhirsch: has joined #ruby
[14:18:36] araujo: has joined #ruby
[14:18:36] araujo: has joined #ruby
[14:18:47] platzhirsch: What do you use these day for a JSON-Ruby object mapping?
[14:19:03] platzhirsch: I want: Request.from('request.json') to return an instance of class Request :)
[14:19:06] jottr_: has joined #ruby
[14:19:33] ddv: platzhirsch: https://github.com/apotonick/roar
[14:19:39] nettoweb: has joined #ruby
[14:20:00] shevy: hmm if I have: x = 'abc', what ways would I have to convert this into an array? x = [x] only ?
[14:20:25] n1colas: has joined #ruby
[14:20:26] dn5: has joined #ruby
[14:20:38] TomPeed: has joined #ruby
[14:20:47] manveru: shevy: many ways... but what's wrong with [x]?
[14:21:20] adaedra: Array.new(1, x)
[14:21:36] adaedra: (jk, use [x])
[14:21:49] ddv: %w(abc)
[14:22:01] shevy: manveru not sure yet, nothing probably but I have a file specification for ensuring that some entries are always in a specific format; e. g. integer string array etc.., now I wonder how to automatically apply/enforce it (and also offer a way to automatically convert it)
[14:22:35] adaedra: automatic parameter type conversion is yuck.
[14:23:03] manveru: like json schema?
[14:23:43] manveru: anw, i'd be very strict about it, and call #to_ary just to be an ass
[14:24:04] eregi: has joined #ruby
[14:26:08] JDiPierro: has joined #ruby
[14:27:50] diegoviola: has joined #ruby
[14:28:15] Bish: apeiros: you got a point there
[14:29:08] fullofcaffeine: has joined #ruby
[14:29:42] dn5: Whats the reason this code result in error: no implicit conversion of string into integer: https://gist.github.com/dn5/03354cd7ede087754e90
[14:29:50] dn5: the API returns JSON
[14:30:28] B3rg3lm1r: has joined #ruby
[14:31:12] Ox0dea: &ri abort @dn5
[14:31:13] `derpy: dn5: http://ruby-doc.org/core-2.3.0/Kernel.html#method-i-abort
[14:31:27] william3: has joined #ruby
[14:31:38] Bish: Ox0dea: hi, i missed you
[14:31:47] Ox0dea: I missed you too, Bish. <3
[14:31:59] Bish: really? how comes, i literally never helped you
[14:32:07] william3: has joined #ruby
[14:32:08] skade: has joined #ruby
[14:32:09] Ox0dea: I bet you did.
[14:32:12] Bish: unlike you, who helped me atleast 1miox times
[14:32:19] dn5: Ox0dea: I understand what abort method does, but it should output the value from returned json
[14:32:29] dn5: and not throwing me an error
[14:32:36] Ox0dea: dn5: And what kind of value is that?
[14:32:56] Ox0dea: For a certainty?
[14:33:06] Ox0dea: Oh, right, I know what's happening.
[14:33:11] chouhoulis: has joined #ruby
[14:33:13] Ox0dea: You're indexing into an Array with a String.
[14:33:13] Bish: dn5: (guess) maybe one thingy inside the json might become an array, while you're trying to access it with a string as a key
[14:33:36] manveru: thx for the api key :)
[14:33:55] manveru: i'm gonna use that everywhere now
[14:34:19] rdark: has joined #ruby
[14:34:39] dn5: Ox0dea: whats the catch? Bish: Possibly
[14:35:04] Ox0dea: dn5: Bish and I gave the same prognosis.
[14:35:40] hnagamin: has joined #ruby
[14:35:41] maikowblue: has joined #ruby
[14:35:43] Bish: atleast once i am as clever as you Ox0dea
[14:35:48] Bish: what do you do for work Ox0dea ?
[14:35:51] charlemagne: has joined #ruby
[14:36:01] Ox0dea: In a nutshell, I process insurance claims.
[14:36:02] dn5: Ox0dea: Yeah, I get it, but how do I access that value then?
[14:36:11] Ox0dea: dn5: It'll depend on what the API is actually giving you.
[14:36:19] Bish: Ox0dea: like by hard? or you write computer programs who do that
[14:36:27] Ox0dea: Bish: A mix of the two, of course.
[14:36:49] Bish: sounds boring, hope they pay you well, well what job isn't boring, right?
[14:36:58] Ox0dea: So much of the human component has gone out of it in recent years, but the robots aren't generally intelligent just yet. :)
[14:37:23] dn5: Ox0dea: http://codebeautify.org/jsonviewer/cb34d3d0 <- this
[14:37:42] akem: has joined #ruby
[14:38:09] jamw: has joined #ruby
[14:38:14] Ox0dea: dn5: "weatherDesc" is an Array.
[14:38:29] Ox0dea: You'll have to say `...['weatherDesc'][0]['value']`. :/
[14:41:39] dn5: Ox0dea: Ahhhh, I see. The current_condition is also an array, so I missed [0] there too
[14:41:48] dn5: Thank you.
[14:41:53] Ox0dea: dn5: Happy to help.
[14:42:07] Ox0dea: Do consider Hash#dig if you're on 2.3.
[14:46:10] baweaver: has joined #ruby
[14:49:41] hxegon: has joined #ruby
[14:50:35] polishdub: has joined #ruby
[14:54:54] Renich: has joined #ruby
[14:54:58] treehug88: has joined #ruby
[14:55:29] JDiPierro: has joined #ruby
[14:56:15] justbleed: has joined #ruby
[14:56:16] askhat: has joined #ruby
[14:56:33] codecop: has joined #ruby
[14:57:19] Kang00: has joined #ruby
[14:57:55] babblebre: has joined #ruby
[14:57:56] chipotle: has joined #ruby
[14:59:58] zotherstupidguy: has joined #ruby
[15:00:33] zotherstupidguy: what you use for testing REST api?
[15:00:33] aweis: has joined #ruby
[15:00:58] freerobby: has joined #ruby
[15:01:35] LoneHerm_: has joined #ruby
[15:02:18] ddv: zotherstupidguy: rspec
[15:02:19] s2013: has joined #ruby
[15:02:33] havenwood: zotherstupidguy: minitest
[15:02:54] skade: has joined #ruby
[15:03:25] aweis: has joined #ruby
[15:03:33] fullofcaffeine: has joined #ruby
[15:04:35] kmckelvin: has joined #ruby
[15:04:42] zacstewart: has joined #ruby
[15:05:12] arthurl: has joined #ruby
[15:05:27] karapetyan: has joined #ruby
[15:05:59] SHyx0rmZ: has joined #ruby
[15:07:50] akem: has joined #ruby
[15:08:00] duckpupp1: has joined #ruby
[15:08:34] karapetyan: has joined #ruby
[15:08:56] chthon: has joined #ruby
[15:09:02] whippythellama: has joined #ruby
[15:09:19] chthon: has left #ruby: ()
[15:09:29] havenwood: https://github.com/brynary/rack-test
[15:10:25] manveru: that's the one, i use it with bacon :)
[15:10:35] havenwood: i've used it with Minitest!
[15:10:51] nofacade: has joined #ruby
[15:10:58] manveru: way tastier than minitestt
[15:11:57] manveru: though sometimes i feel i'm the only one still using it
[15:11:57] B3rg3lm1r: has joined #ruby
[15:12:27] havenwood: I use neither vegetables nor meats when testing.
[15:12:52] x77686d: has joined #ruby
[15:12:56] havenwood: Yeah, bacon seemed nice.
[15:12:57] akem: has joined #ruby
[15:13:12] manveru: "minitest is 98% more popular than bacon"...
[15:13:21] havenwood: ships with Ruby!
[15:13:35] havenwood: and spec mode
[15:13:49] manveru: and it's _not_ Test::Unit
[15:14:14] havenwood: I tend to use the spec style of Minitest except with the unit style asserts. :O
[15:14:36] havenwood: ljarvis style ;)
[15:14:43] havenwood: (if i recall)
[15:15:10] havenwood: I've been surprised a few times seeing others do just that.
[15:15:12] melter: has joined #ruby
[15:15:16] Hanmac: havenwood: had you time to checkout my game_data stuff yet?
[15:15:25] havenwood: hanmac: I still have the tab open!
[15:15:48] havenwood: hanmac: But no, yesterday was crazy and my brain hasn't woken up yet today.
[15:16:16] dangeranger: has joined #ruby
[15:16:20] VeryBewitching: has joined #ruby
[15:16:30] malcolmva: has joined #ruby
[15:16:31] ljarvis: minitest/spec blocks with assert_* methods = winning
[15:16:51] havenwood: VeryBewitching: g'morn'n
[15:17:14] manveru: VeryBewitching: g'm'n
[15:17:26] havenwood: hanmac: looking now over coffee
[15:17:28] Macaveli: has joined #ruby
[15:17:32] akem: has joined #ruby
[15:17:48] havenwood: (https://github.com/Hanmac/rpg_gamedata/tree/master/lib)
[15:18:20] sankaber: has joined #ruby
[15:18:20] havenwood: the tabs, they burn my eyes!
[15:18:40] havenwood: githubs need a two-space tab mode
[15:19:03] havenwood: ACTION resigns to clone the repo
[15:19:05] Hanmac: yeah ... i prefer tabs for my files, but it does look shitty on github
[15:19:06] tvon: has joined #ruby
[15:19:06] mdw: has joined #ruby
[15:19:08] ljarvis: yeah that's so hard to read
[15:19:52] pawnbox: has joined #ruby
[15:20:18] manveru: https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size
[15:20:44] sankaber: has joined #ruby
[15:21:21] manveru: github actually _sets_ tab-size: 8
[15:21:57] adaedra: there are userstyles that allow to change that
[15:23:16] manveru: but they have a tab-size class in their CSS... so you have to target their tags specifically
[15:23:57] adaedra: ACTION whistles "!important"
[15:24:01] manveru: https://github.com/Hanmac/rpg_gamedata/blob/master/lib/enemy.rb?ts=2
[15:24:11] havenwood: manveru: nice
[15:24:39] Hanmac: wtf i didnt know about that ts=2 parameter oO XD
[15:24:50] eregi: has joined #ruby
[15:25:14] B3rg3lm1r: has joined #ruby
[15:25:25] darix: hanmac: # vim: set sw=2 sts=2 et tw=80 :
[15:25:54] Hanmac: ACTION is not using vim
[15:26:10] ljarvis: https://github.com/Hanmac/rpg_gamedata/blob/master/lib/enemy.rb?ts=12
[15:26:26] KensoDev: has joined #ruby
[15:27:01] darix: ts=28 doesnt work
[15:27:03] darix: 20 neither
[15:27:09] adaedra: 666 neither
[15:27:10] ljarvis: yeah I picked the highest it would go
[15:27:16] ljarvis: I should have pointed that out
[15:27:22] ljarvis: so ya'll couldn't 1-up me
[15:27:23] f4cl3y: has joined #ruby
[15:28:01] karapetyan: has joined #ruby
[15:28:02] decoponio: has joined #ruby
[15:28:10] IanMalcolm: has joined #ruby
[15:29:04] zast: has joined #ruby
[15:29:10] IanMalcolm: has joined #ruby
[15:29:49] manveru: wonder if tmm1 is still on irc
[15:29:50] havenwood: no ts=0 support, what hte heck?
[15:30:08] adaedra: negative ts.
[15:30:09] IanMalcolm: has joined #ruby
[15:30:12] havenwood: ts=3 in honor of lua
[15:31:01] TomPeed: has joined #ruby
[15:31:33] cdg: has joined #ruby
[15:31:34] dlitvak: has joined #ruby
[15:32:05] Xeago: has joined #ruby
[15:34:43] s2013: has joined #ruby
[15:35:25] j2k: has joined #ruby
[15:36:41] zackzorman: has joined #ruby
[15:37:00] futilegames: has joined #ruby
[15:37:08] chouhoulis: has joined #ruby
[15:37:55] IanMalcolm: has joined #ruby
[15:38:27] jayne: has joined #ruby
[15:40:50] gokulnath: has joined #ruby
[15:43:18] eregi: has joined #ruby
[15:43:50] arthurl: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[15:45:59] arlek: has joined #ruby
[15:46:21] EdwardIII: am i going nuts, or do i recall seeing error classes nested inside the classes that throw them sometimes?
[15:46:26] EdwardIII: maybe in rails?
[15:47:05] MindfulMonk: has joined #ruby
[15:48:01] thomas: has joined #ruby
[15:48:04] bkxd: has joined #ruby
[15:48:18] yardenbar: has joined #ruby
[15:48:31] j2k: has joined #ruby
[15:51:44] futilegames: has joined #ruby
[15:53:15] dopamean_: has joined #ruby
[15:53:17] r4z3r: has joined #ruby
[15:53:29] TomPeed: has joined #ruby
[15:53:49] EdwardIII: hrm the website says "The current stable version is 2.3.0" but rbenv says it's gotta be 2.3.0-dev or rbx-2.3.0
[15:53:52] athemeus: has joined #ruby
[15:53:59] EdwardIII: what's rbx?
[15:54:06] havenwood: EdwardIII: Rubinius.
[15:54:25] EdwardIII: so there's no 2.3.x support in cruby yet?
[15:54:40] havenwood: EdwardIII: Huh?
[15:54:49] EdwardIII: ruby mri rather?
[15:54:54] nogic: has joined #ruby
[15:55:08] EdwardIII: just trying to figure out what i should to do get 2.3
[15:55:13] adaedra: ruby 2.3.0 has been out for a long time now
[15:55:13] EdwardIII: so i can use .dig
[15:55:19] havenwood: EdwardIII: The latest stable version of Ruby is 2.3.0. CRuby (MRI now called YARV) is the reference implementation.
[15:55:24] athemeus: Has anyone ever seen ArgumentError specify that it was given a *negative* number of arguments?
[15:55:34] athemeus: specifically of the form "ArgumentError: wrong number of arguments (-2 for 2)"
[15:55:36] adaedra: Maybe you want to update your rbenv, EdwardIII.
[15:55:37] EdwardIII: so... just go for rbx-2.3.0 and be happy?
[15:55:43] EdwardIII: ok, lemme try that
[15:55:45] havenwood: EdwardIII: Nope!
[15:56:12] sucks: has joined #ruby
[15:56:19] nogic: has joined #ruby
[15:56:33] havenwood: EdwardIII: The latest Rubinius is rbx-3.1.4, but sounds like you want ruby-2.3.0.
[15:56:37] polishdub: has joined #ruby
[15:57:08] dexter_: has joined #ruby
[15:57:28] nogic: has joined #ruby
[15:57:54] albedoa: has joined #ruby
[15:58:47] nogic: has joined #ruby
[15:58:49] vbatts|work: has left #ruby: ("found the other side of the rainbow")
[15:58:59] EdwardIII: hrm this is odd
[15:59:43] ixti: has joined #ruby
[15:59:53] havenwood: adaedra: or the latest version 2 is: 2.71828182
[16:00:02] nogic: has joined #ruby
[16:00:12] EdwardIII: i did cd ~/.rbenv && git pull, all is well, but rbenv install 2.3.0 still only shows that same output
[16:00:35] havenwood: EdwardIII: rbenv uses its tool ruby-build to install Rubies
[16:01:00] albedoa: experiencing a weird problem. if i `puts line.count('\t')` it puts the number of tabs, but if i `if line.count('\t') == 0` it acts on every line. anyone know what i could be doing wrong?
[16:01:02] EdwardIII: so i need to upgrade ruby-build?
[16:01:06] havenwood: https://github.com/rubinius/rubinius/tree/v2.71828182
[16:01:14] havenwood: adaedra: actually is ^
[16:01:19] nogic: has joined #ruby
[16:01:29] mondok: has joined #ruby
[16:01:40] havenwood: albedoa: '\t' != "\t"
[16:01:59] EdwardIII: https://gist.github.com/EdwardIII/27dfd8fe35b2b884a4eb
[16:02:08] adaedra: EdwardIII: some people would tell you you need to ditch rbenv and switch to chruby + ruby-install :p
[16:02:21] albedoa: havenwood weeeeeird okay thanks
[16:02:24] havenwood: EdwardIII: You can always: ruby-install --latest ruby
[16:02:28] nogic: has joined #ruby
[16:02:54] albedoa: havenwood why is it put'ing the tab count when i `puts line.count('\t')` ?
[16:03:17] havenwood: EdwardIII: But if you wanted to stick with rbenv you could use ruby-install to install for it or update the ruby-build tool which rbenv is entangled with
[16:03:34] eregi: has joined #ruby
[16:03:38] nogic: has joined #ruby
[16:03:39] EdwardIII: find ~/.rbenv/ -name ruby-install # -bash: ruby-install: command not found
[16:03:44] EdwardIII: i don't seem to have it?
[16:03:52] EdwardIII: something fishy going on?
[16:03:54] havenwood: EdwardIII: Yeah, rbenv ships ruby-build not ruby-intall.
[16:03:59] havenwood: EdwardIII: Nothing fishy.
[16:04:06] ljarvis: albedoa: count('\t') counts the total occurences of the letter t
[16:04:16] nogic: has joined #ruby
[16:04:47] ljarvis: albedoa: so, it doesn't count tabs as you want. As havenwood mentioned, you want "\t" for that
[16:04:56] EdwardIII: ruby-build: definition not found: install ?
[16:04:59] nogic: has joined #ruby
[16:04:59] albedoa: ljarvis ha! i'm an idiot, thanks
[16:05:05] havenwood: EdwardIII: To reiterate, if you want to use rbenv's tool for installing Rubies you'll want to update ruby-build. You can use a different tool, ruby-install, by the author of chruby to install for rbenv but it's not what rbenv ships. In case you wonder: ruby-install > ruby-build
[16:05:14] albedoa: ljarvis i had just assumed the numbers i was seeing were tab counts
[16:05:22] EdwardIII: ok screw it, i'll switch to chruby
[16:05:24] albedoa: thanks havenwood too
[16:05:35] ljarvis: albedoa: :)
[16:05:44] fullofcaffeine: has joined #ruby
[16:06:16] nogic: has joined #ruby
[16:06:22] Frem: has joined #ruby
[16:06:32] EdwardIII: hrm chruby requires global installation?
[16:06:46] havenwood: EdwardIII: you can put it where you please
[16:06:53] EdwardIII: ACTION brews away
[16:06:55] pdoherty: has joined #ruby
[16:06:58] nogic: has joined #ruby
[16:07:02] EdwardIII: rbenv seemed nice, like perls' local::lib
[16:07:35] nogic: has joined #ruby
[16:08:12] nogic: has joined #ruby
[16:08:52] nogic: has joined #ruby
[16:09:19] kies^: has joined #ruby
[16:09:24] bruce__lee: has joined #ruby
[16:09:39] nogic: has joined #ruby
[16:10:14] nogic: has joined #ruby
[16:10:36] manveru: nix ftw :)
[16:10:42] manveru: and hi again
[16:11:14] Rodya_: has joined #ruby
[16:11:19] nogic: has joined #ruby
[16:12:22] nogic: has joined #ruby
[16:12:28] tildes: has joined #ruby
[16:13:16] EdwardIII: manveru: hey
[16:13:25] nogic: has joined #ruby
[16:14:13] nogic: has joined #ruby
[16:14:18] EdwardIII: chruby makes noises about maglev
[16:14:36] william3: has joined #ruby
[16:14:41] EdwardIII: maglev looks cool, probably not very practical for real-life webapps i guess heh
[16:15:05] athemeus: has left #ruby: ()
[16:15:06] nogic: has joined #ruby
[16:15:21] trinaldi: has joined #ruby
[16:15:27] manveru: do they still charge for maglev?
[16:15:45] nogic: has joined #ruby
[16:15:54] htmldrum: has joined #ruby
[16:16:24] nogic: has joined #ruby
[16:17:06] nogic: has joined #ruby
[16:17:18] EdwardIII: "MagLev itself (the Ruby & Smalltalk source released on Github) is free and open source."
[16:17:32] EdwardIII: i'd love to know what david west makes of ruby
[16:17:47] nogic: has joined #ruby
[16:18:07] manveru: maglev needs gemstone/s
[16:18:26] manveru: http://seaside.gemtalksystems.com/docs/GLASS-Pricing-1201.htm
[16:18:26] nogic: has joined #ruby
[16:18:54] manveru: 8 cores for $120k
[16:19:01] mois3x: has joined #ruby
[16:19:02] manveru: that's why smalltalk is dead :P
[16:19:04] nogic: has joined #ruby
[16:19:05] EdwardIII: heh old-school licensing
[16:19:19] EdwardIII: per-core, very enterprise
[16:19:42] nogic: has joined #ruby
[16:20:10] manveru: i guess it's nice for playing around, but really nothing i'd want to build my business on
[16:20:12] EdwardIII: one thing, the idea of everything being completed integrated, your ide, your toolchain, your interpreter everything doesn't seem very "do one thing well"
[16:20:23] nogic: has joined #ruby
[16:20:24] bougyman: zup manveru
[16:20:30] manveru: bougyman: hoi
[16:20:42] symm-: has joined #ruby
[16:20:47] manveru: EdwardIII: smalltalk was invented before "do one thing well" was a thing
[16:21:03] lubekpl: has joined #ruby
[16:21:05] nogic: has joined #ruby
[16:21:06] manveru: and it does one thing well: message passing
[16:21:37] EdwardIII: manveru: wasn't "do one thing" a unix thing?
[16:21:44] nogic: has joined #ruby
[16:21:46] devbug: has joined #ruby
[16:21:54] davedev24: has joined #ruby
[16:22:26] nogic: has joined #ruby
[16:22:35] manveru: not sure how prevalent unix was at xerox
[16:22:54] openstruct: has joined #ruby
[16:22:54] openstruct: has joined #ruby
[16:23:05] nogic: has joined #ruby
[16:23:25] EdwardIII: but doesn't unix predate smalltalk?
[16:23:43] nogic: has joined #ruby
[16:23:46] KensoDev: has joined #ruby
[16:23:57] wprice: has joined #ruby
[16:24:24] ss_much: has joined #ruby
[16:24:49] nogic: has joined #ruby
[16:24:51] terminalrecluse: has joined #ruby
[16:25:19] EdwardIII: chruby and 2.3.0 working well, thanks guys!
[16:25:41] manveru: wonder what year that phrase was coined
[16:25:56] nogic: has joined #ruby
[16:26:07] havenwood: manveru: guy fawkes?
[16:26:20] EdwardIII: hrm, now i need to get bundler going heh
[16:26:26] havenwood: manveru: oh, "do one thing," gotcha
[16:26:33] nogic: has joined #ruby
[16:26:49] havenwood: EdwardIII: gem install bundler
[16:27:05] EdwardIII: tbh, when ever this comes up in discussion usually people point to unix pipes and the conversion ends there
[16:27:10] nogic: has joined #ruby
[16:27:19] EdwardIII: the conversation never seems to be about real stuff you use every day
[16:27:20] crowell: has joined #ruby
[16:27:42] charlemagne: has joined #ruby
[16:27:50] nogic: has joined #ruby
[16:28:10] EdwardIII: ok, i use unix pipes every day too, but i wouldn't say it's got the same amount of work to do as an actual program
[16:28:18] manveru: quote seems to be from a book from mc ilroy from 1978
[16:28:30] nogic: has joined #ruby
[16:28:49] manveru: and smalltalk was first released 1972
[16:29:03] manveru: so i think my timeline is kinda right
[16:29:10] nogic: has joined #ruby
[16:29:23] manveru: not to mention that such publications would've taken quite some time to be widely known back then
[16:29:31] gizmore: has joined #ruby
[16:29:46] nogic: has joined #ruby
[16:30:06] EdwardIII: funny, i didn't think that would be the case
[16:30:25] nogic: has joined #ruby
[16:30:27] manveru: anyway, >> The first version, known as Smalltalk-71, was created by Kay in a few mornings on a bet that a programming language based on the idea of message passing inspired by Simula could be implemented in "a page of code."<<
[16:31:06] EdwardIII: would it be very stupid to say there are some similarities between unix pipes & message passing?
[16:31:30] dangeranger: has joined #ruby
[16:31:47] manveru: from far away... they're not that different
[16:32:08] manveru: both are used for communcation and late binding
[16:32:11] EdwardIII: i guess pipes are about sending data, whereas message passing is about sending a message
[16:32:57] htmldrum: has joined #ruby
[16:33:16] stannard_: has joined #ruby
[16:33:25] nogic: has joined #ruby
[16:34:29] manveru: bougyman: how's life at the big bookstore?
[16:34:39] bougyman: moving fast.
[16:34:41] bougyman: I like fast.
[16:34:56] bougyman: I wish I could hire some people, that's my only blocker now.
[16:35:00] yardenbar: has joined #ruby
[16:35:02] beanHolez: has joined #ruby
[16:35:04] nogic: has joined #ruby
[16:35:08] bougyman: I need people in singapore, dublin, virginia, and seattle
[16:35:19] krz: has joined #ruby
[16:35:42] daxroc: Hey all how do I test the output of a puts in a raise .. I've tried expect{parser.set_uri(invalid_uri)}.to output("Error").to_stdout
[16:36:25] EdwardIII: are you working for THAT big bookstore?
[16:36:57] nogic: has joined #ruby
[16:37:26] dionysus69: has joined #ruby
[16:37:36] nogic: has joined #ruby
[16:38:10] burgestrand: has joined #ruby
[16:38:17] nogic: has joined #ruby
[16:38:39] manveru: daxroc: why would you do that?
[16:38:53] manveru: just rescue the error and check its message
[16:38:55] nogic: has joined #ruby
[16:39:00] jamw: has joined #ruby
[16:39:00] aryaching: has joined #ruby
[16:39:14] manveru: also raises won't go to stdout, they are stderr afaicr
[16:39:34] filipechagas: has joined #ruby
[16:39:52] nogic: has joined #ruby
[16:40:27] Maletor: has joined #ruby
[16:40:34] nogic: has joined #ruby
[16:41:23] Papierkorb: daxroc: Why don't you use expect{ ... }.to raise_error MyError, /roughly the expected error message/
[16:42:22] karapetyan: has joined #ruby
[16:42:28] nogic: has joined #ruby
[16:42:52] blandflakes: has joined #ruby
[16:43:06] Rodya_: has joined #ruby
[16:43:13] haylon: has joined #ruby
[16:44:09] EdwardIII: hrm, am i being dumb? i'm just trying to search for a key that could occur at any level in a nested datastructure for of all kinds of stuff
[16:44:13] EdwardIII: dig doesn't DWIM
[16:44:24] nfk: has joined #ruby
[16:44:26] daxroc: Papierkorb: Doesn't seem to get raised but does when I execute it
[16:44:31] EdwardIII: .find { |h| h.has_key?... chokes if it stumbles on an array
[16:44:39] troulouliou_div2: has joined #ruby
[16:44:50] daxroc: *testing with expect{parser.set_uri(invalid_uri)}.to raise_error URI::InvalidURIError
[16:44:59] william3: has joined #ruby
[16:45:00] nogic: has joined #ruby
[16:45:02] htmldrum: has joined #ruby
[16:45:45] Papierkorb: daxroc: Then it's not being raised. (And set_X isn't really ruby-ish. That'd be 'X=')
[16:46:14] MindfulMonk: has joined #ruby
[16:46:21] nogic: has joined #ruby
[16:47:04] baweaver: has joined #ruby
[16:47:28] kies^: has joined #ruby
[16:48:37] nogic: has joined #ruby
[16:49:18] gokulnath: has joined #ruby
[16:49:25] nogic: has joined #ruby
[16:49:37] idefine: has joined #ruby
[16:50:12] nogic: has joined #ruby
[16:50:15] woo: has joined #ruby
[16:50:36] EdwardIII: kinda thought there might be something like this builtin? https://gist.github.com/EdwardIII/b09fd10ca441d224adce
[16:51:17] daxroc: Papierkorb: thanks ... was an issue with the input data ... pfft pebcak !
[16:51:35] pdoherty: has joined #ruby
[16:51:39] Papierkorb: daxroc: Meaning your code works as expected. Excellent. :)
[16:52:44] daxroc: ACTION call self.pat_self_on_back
[16:53:00] rdark: has joined #ruby
[16:53:01] rdark: has joined #ruby
[16:53:04] bougyman: slash_nick EdwardIII: yes and yes.
[16:53:54] slash_nick: bougyman: might be interested in the dublin position... think you'll still need folks after the US presidential elections?
[16:54:10] bougyman: slash_nick: sure.
[16:54:39] einarj: has joined #ruby
[16:54:40] EdwardIII: that question raises yet more questions for me
[16:54:59] EdwardIII: is it because slash_nick can't jobhunt until the elections are finished? or that aws will be firing all their staff after the elections?
[16:55:22] manveru: his job is probably helping in the election
[16:55:35] manveru: or sabotaging it
[16:55:59] nogic: has joined #ruby
[16:56:17] marxarelli: has joined #ruby
[16:56:18] EdwardIII: works in tech, must be liberal, can't be hillary, must be working for bernie mev
[16:56:31] manveru: either way he'll have to commit seppku if trump wins
[16:56:39] karapetyan: has joined #ruby
[16:56:48] slash_nick: manveru: or run off to dublin :)
[16:56:58] mostlybadfly: has joined #ruby
[16:57:00] manveru: there's always that :)
[16:57:14] idefine: has joined #ruby
[16:57:21] slash_nick: where the h's are haches
[16:57:37] htmldrum: has joined #ruby
[16:57:40] adaedra: go to dublin to drink to death, right?
[16:57:42] dhollinger: has joined #ruby
[16:57:44] beanHolez: has joined #ruby
[16:58:04] EdwardIII: i'm in england, but i've never been to dublin
[16:58:08] EdwardIII: used to live just across the water
[16:58:13] EdwardIII: and the h's are aiches!
[16:58:38] marxarelli: has joined #ruby
[16:58:52] adaedra: there's water all around England, so this is not really giving useful info.
[16:58:53] slash_nick: adaedra: dublin my alcohol intake, y'mean?
[16:59:31] s2013: has joined #ruby
[16:59:50] [Butch]: has joined #ruby
[17:00:31] B1n4r10: has joined #ruby
[17:00:46] EdwardIII: well i lived in wales
[17:00:54] EdwardIII: near the fishguard ferryport
[17:01:03] EdwardIII: but none of that is useful anyway
[17:01:29] beanHolez: has joined #ruby
[17:03:27] Rodya_: has joined #ruby
[17:04:12] bkxd: has joined #ruby
[17:05:24] william3: has joined #ruby
[17:05:29] pawnbox: has joined #ruby
[17:06:17] amclain: has joined #ruby
[17:06:47] DEA7TH: has joined #ruby
[17:07:21] tjohnson: has joined #ruby
[17:09:55] nettoweb: has joined #ruby
[17:10:29] Keltia: has joined #ruby
[17:11:28] symm-: has joined #ruby
[17:12:49] sgambino: has joined #ruby
[17:13:00] pglombardo: has joined #ruby
[17:13:26] sneakerhax: has joined #ruby
[17:14:12] finisherr: has joined #ruby
[17:14:39] HalcyonicStorm: has joined #ruby
[17:16:47] Xeago: has joined #ruby
[17:17:06] Marsupermammal: has joined #ruby
[17:18:10] sucks: has joined #ruby
[17:18:14] kies^: has joined #ruby
[17:19:38] htmldrum: has joined #ruby
[17:19:40] EdwardIII: heh ok this is kinda funny: https://gist.github.com/EdwardIII/56d2883e419f4f633239
[17:20:21] EdwardIII: is it a hash, ruby? "no". ok, what is it then, ruby? "it's a hash, boss"
[17:21:06] EdwardIII: i broke it with my module naming
[17:21:37] EdwardIII: Hash is Api::CoreExtensions::Hash, not ::Hash
[17:21:45] gokul_: has joined #ruby
[17:22:29] EdwardIII: is the lesson here "don't name things after things that already exist"?
[17:22:30] joonty: has joined #ruby
[17:22:50] rht: has joined #ruby
[17:23:40] stannard: has joined #ruby
[17:24:16] BTRE: has joined #ruby
[17:27:05] eregi: has joined #ruby
[17:27:18] shevy: EdwardIII you guard fish??
[17:27:28] EdwardIII: shevy: not any more
[17:27:41] shevy: yeah same names can be confusing
[17:27:44] shevy: module Foo; class Foo
[17:27:55] EdwardIII: ACTION (congratulations, you doxed yourself)
[17:27:55] william3: has joined #ruby
[17:28:06] idefine: has joined #ruby
[17:29:21] idefine: has joined #ruby
[17:29:59] EdwardIII: i guess this is a risk of autoloading rather than having to be explicit
[17:30:16] shevy: you mean autoload?
[17:30:20] idefine: has joined #ruby
[17:30:38] EdwardIII: well whatever rails does at startup that means all constants/class names are accessible everywhere
[17:31:03] fullofcaffeine: has joined #ruby
[17:31:11] idefine: has joined #ruby
[17:31:41] idefine: has joined #ruby
[17:31:51] B1n4r10: has joined #ruby
[17:32:36] yxhuvud: almost everywhere. At least in previous versions it has been possble to get circular dependencies that make the autoloader crap out or not load everything.
[17:33:49] yxhuvud: the latter case was the most fun. half a file simply didn't load.
[17:34:40] MindfulM_: has joined #ruby
[17:35:23] shevy: half a file? hehehe
[17:35:54] malconis: has joined #ruby
[17:36:04] yxhuvud: Yes. I have no idea how that happened.
[17:36:23] htmldrum: has joined #ruby
[17:36:38] yxhuvud: except it disappeared when I removed the circular dependency.
[17:36:59] pandaant: has joined #ruby
[17:37:16] scottrobarts: has joined #ruby
[17:37:43] mary5030: has joined #ruby
[17:38:04] Dakota-choad: has joined #ruby
[17:38:37] Xeago: has joined #ruby
[17:38:51] askhat: has joined #ruby
[17:38:56] idefine: has joined #ruby
[17:39:27] mary5030: has joined #ruby
[17:42:38] sgambino: has joined #ruby
[17:44:38] pglombardo: has joined #ruby
[17:44:43] htmldrum: has joined #ruby
[17:44:58] PaulCapestany: has joined #ruby
[17:47:35] Alayde: has joined #ruby
[17:48:31] Alayde: has left #ruby: ()
[17:49:06] idefine: has joined #ruby
[17:49:42] myntcake: has joined #ruby
[17:50:20] bronson: has joined #ruby
[17:50:23] htmldrum: has joined #ruby
[17:51:36] woo: has joined #ruby
[17:52:21] baweaver: has joined #ruby
[17:52:26] beanHolez: has joined #ruby
[17:52:53] DmitryBochkarev: has joined #ruby
[17:54:31] beanHolez: has joined #ruby
[17:54:33] ElFerna: has joined #ruby
[17:54:40] ricer2: has joined #ruby
[17:54:44] speaking1ode: has joined #ruby
[17:55:19] sgambino: has joined #ruby
[17:55:20] davedev24: has joined #ruby
[17:58:15] htmldrum: has joined #ruby
[17:59:07] Tref: has joined #ruby
[17:59:41] Tref: hey guys, given an array of any size is there a way to find the first record matching a particular attribute in O(1) notation
[18:00:16] Tref: for example an array of users with attributes [first_name, last_name, phone, email]
[18:00:36] Tref: technically, an array of ruby objects
[18:01:00] Tref: or an array of arrays, which should have the same answer I believe
[18:01:52] xrlabs: has joined #ruby
[18:04:39] Papierkorb: tref: Without any guarantees and other things you'll end up with O(n)
[18:05:04] Eiam: has joined #ruby
[18:05:10] beanHolez: has joined #ruby
[18:05:13] Tref: Papierkorb: thanks, can you be more specific about what you mean by “guarantees and other things"
[18:05:28] Tref: Im being asked to do this as an assignment but I dont think there is a way to do it
[18:05:29] Papierkorb: tref: if possible, sorting it and doing a binary search would yield O(log n) which should usually be good enough.
[18:05:33] yxhuvud: tref: not with only an array. You can create an index for the attribute in question but that requires setup and more memory.
[18:06:32] Papierkorb: tref: as yxhuvud said, you can always trade memory load for cpu load. There's no free lunch to get when it comes to optimizations :)
[18:06:45] minimalism: has joined #ruby
[18:07:06] Tref: yxhuvud: are you referring to a database index?
[18:07:13] Papierkorb: tref: Another method could involve using bloom filters. But not to speed up searching, but rather to /guess/ if searching is even worth it. Also quite complex to set up.
[18:07:26] Tref: these records are coming from a csv file so there can’t be any indexing
[18:07:39] dlitvak: has joined #ruby
[18:07:43] Papierkorb: tref: How many rows are you faced with?
[18:07:45] yxhuvud: well, in this case the simplest way would be to have a hash with the attribute values matched to the objects.
[18:07:47] Tref: im beginning to think theres an issue with the wording of the question
[18:08:04] yxhuvud: but it gets complicated really fast
[18:08:04] JDiPierro: has joined #ruby
[18:08:16] shevy: keep things simple!
[18:08:18] Papierkorb: yxhuvud: how boring to use language features :P
[18:08:22] Tref: Papierkorb: there are a variable amount of rows
[18:08:33] welovfree: has joined #ruby
[18:08:34] Papierkorb: tref: How many? a million? Ten million? Beyond that?
[18:08:37] Tref: that’s the purpose of the exercise
[18:08:49] yxhuvud: tref: do you need to look up arbitrary attributes or the same every time?
[18:08:59] Tref: heres the original question
[18:08:59] Tref: https://gist.github.com/Tref/ffc1a33286920263fbd9
[18:09:56] Tref: specifically: there should be a method that allows # finding a single contact by email address in O(1) time.
[18:10:15] Papierkorb: tref: Hash lookups have AFAIK take armotized O(1) time to do their job
[18:10:46] Tref: Papierkorb: let me post my entire code
[18:10:50] Papierkorb: tref: So, as yxhuvud mentioned, use a Hash with the e-mail as key and the record as value.
[18:11:04] stannard: has joined #ruby
[18:11:15] Papierkorb: tref: please also answer [19:08] <yxhuvud> tref: do you need to look up arbitrary attributes or the same every time?
[18:11:31] Tref: Papierkorb: arbitrary
[18:11:41] beanHolez: has joined #ruby
[18:11:59] welovfree: After reading "Eloquent Ruby" do I have what's required to start "Ruby on Rails by Michael Hartl"?
[18:12:20] Tref: https://gist.github.com/Tref/f00014c09e269ff025f3
[18:12:22] Papierkorb: tref: Looks like the client only is interested in doing quick e-mail lookups, not in "everything" fast lookups.
[18:12:37] Tref: there’s my entire code thus far
[18:12:57] Tref: welovfree: that’s a pretty arbitrary question
[18:13:13] Tref: welovfree: if you can read technically you have whats required
[18:13:25] Tref: welovfree: required to what?
[18:13:34] welovfree: tref, what do you mean?
[18:13:55] Papierkorb: tref: build a poor-mans index using a Hash, mapping from the e-mail address to the Contact record. When looking up by e-mail, use that hash.
[18:14:22] kirillzh: has joined #ruby
[18:14:40] Dimik: has joined #ruby
[18:15:25] x77686d: has joined #ruby
[18:15:27] Papierkorb: tref: @email_index = @contacts.group_by(&:email)
[18:15:29] Tref: Papierkorb: that means I would have to create some kind of “primary key” for the original records and use that as the reference to the original?
[18:15:36] welovfree: tref, did you understand my question?
[18:15:56] Tref: welovfree: yeah Im asking you the same thing though. What do you mean by “have whats required”
[18:16:13] welovfree: tref, because someone here on this channel recommended Eloquent Ruby if I don't have any experience whit Ruby
[18:16:15] Rasi: has joined #ruby
[18:16:40] welovfree: tref, before reading that other book by Michael Hartl
[18:16:40] Tref: ok, well there are a number of books you can read before diving into rails
[18:16:51] Tref: Papierkorb: let me try this out
[18:17:20] welovfree: tref, I can or I should read
[18:17:20] davedev24: has joined #ruby
[18:17:34] pglombardo: has joined #ruby
[18:17:53] Papierkorb: tref: I can't guarantee you that Hash#[] is (amortized) O(1) though. I just know that's really fast based on benchmarks I did some months ago when I faced similar (albeit real-world) problems
[18:18:03] rakm: has joined #ruby
[18:18:58] tomaw: has joined #ruby
[18:20:19] pglombar_: has joined #ruby
[18:20:21] Tref: welovfree: Im saying there really is no benchmark on level of ruby proficiency that you need to read a book man. Start reading it and if its over your head go back and read the pickaxe book
[18:20:39] Tref: Papierkorb: Im checking it out
[18:20:50] Tref: Im trying to come up with a good way to benchmark it
[18:21:19] Papierkorb: tref: Generate a bigger CSV file. 10k contacts at least or so. And then run against that.
[18:21:35] Papierkorb: With those 5 or so rows you won't get anywhere benchmark-wise
[18:22:04] cdg: has joined #ruby
[18:24:34] Tref: Ok, so this is awesome
[18:24:34] Tref: https://www.mockaroo.com/
[18:24:36] Tref: never seen this
[18:24:38] fullofcaffeine: has joined #ruby
[18:25:40] jericon: has joined #ruby
[18:25:40] olblak: has joined #ruby
[18:25:41] KramerC: has joined #ruby
[18:25:41] ltd: has joined #ruby
[18:25:42] pwned: has joined #ruby
[18:25:42] jinie: has joined #ruby
[18:25:44] moshee: has joined #ruby
[18:25:45] moshee: has joined #ruby
[18:25:45] Fraeon: has joined #ruby
[18:25:46] ProofTechnique: has joined #ruby
[18:25:46] euoia: has joined #ruby
[18:25:47] pipework: has joined #ruby
[18:25:47] speakingcode: has joined #ruby
[18:25:48] theRoUS: has joined #ruby
[18:25:48] sphex: has joined #ruby
[18:25:49] gregf: has joined #ruby
[18:25:49] ericwood: has joined #ruby
[18:25:49] ozzloy: has joined #ruby
[18:25:49] ljarvis: has joined #ruby
[18:25:49] gypsydave5: has joined #ruby
[18:25:49] ozzloy: has joined #ruby
[18:25:50] Amnez777: has joined #ruby
[18:25:51] djellemah_: has joined #ruby
[18:25:51] lannonbr: has joined #ruby
[18:25:51] bnagy: has joined #ruby
[18:25:52] mosez: has joined #ruby
[18:25:53] Affix: has joined #ruby
[18:25:53] sunya7a: has joined #ruby
[18:25:54] SebastianThorn: has joined #ruby
[18:25:54] raimumizu: has joined #ruby
[18:25:55] hinbody: has joined #ruby
[18:25:55] kitallis: has joined #ruby
[18:25:55] heidar: has joined #ruby
[18:25:57] ikonia: has joined #ruby
[18:26:02] Sou|cutter: has joined #ruby
[18:26:03] blindsight: has joined #ruby
[18:26:05] tris: has joined #ruby
[18:26:08] moufl: has joined #ruby
[18:26:10] yeltzooo: has joined #ruby
[18:26:11] gbailey: has joined #ruby
[18:26:14] Junaos: has joined #ruby
[18:26:16] yasu: has joined #ruby
[18:26:17] cschneid_: has joined #ruby
[18:26:32] Antiarc: has joined #ruby
[18:26:34] derailed: has joined #ruby
[18:26:35] NightMonkey: has joined #ruby
[18:26:43] codecop: has joined #ruby
[18:26:51] fold3: has joined #ruby
[18:27:03] sandstrom: has joined #ruby
[18:27:05] _mak: has joined #ruby
[18:27:05] DylanJ: has joined #ruby
[18:27:05] graffix: has joined #ruby
[18:27:12] moua: has joined #ruby
[18:27:17] noodle: has joined #ruby
[18:27:20] DexterLB: has joined #ruby
[18:27:26] parus_: has joined #ruby
[18:27:27] fourq: has joined #ruby
[18:27:27] cscheib: has joined #ruby
[18:27:27] xsdg: has joined #ruby
[18:27:27] K3rvyN: has joined #ruby
[18:27:27] pushcx: has joined #ruby
[18:27:29] IcyDragon: has joined #ruby
[18:27:29] Phanes-: has joined #ruby
[18:27:29] matled-: has joined #ruby
[18:27:29] Takumo: has joined #ruby
[18:27:30] Takumo: has joined #ruby
[18:27:30] olspookishmagus: has joined #ruby
[18:27:31] mhb: has joined #ruby
[18:27:34] spleeze: has joined #ruby
[18:27:34] aep: has joined #ruby
[18:27:34] konopka: has joined #ruby
[18:27:34] lianj: has joined #ruby
[18:27:34] lianj: has joined #ruby
[18:27:35] mistym: has joined #ruby
[18:27:35] Liothen: has joined #ruby
[18:27:35] mistym: has joined #ruby
[18:27:35] Mr_Pancake-: has joined #ruby
[18:27:36] llua`: has joined #ruby
[18:27:36] alexblom: has joined #ruby
[18:27:36] SirCmpwn: has joined #ruby
[18:27:37] shellie_: has joined #ruby
[18:27:37] C0deMaver1ck: has joined #ruby
[18:27:38] ekem: has joined #ruby
[18:27:38] elaptics: has joined #ruby
[18:27:38] axisys: has joined #ruby
[18:27:39] `derpy: has joined #ruby
[18:27:39] Laaw: has joined #ruby
[18:27:39] ruisantos: has joined #ruby
[18:27:40] tfitts: has joined #ruby
[18:27:43] humd1ng3r: has joined #ruby
[18:27:43] eljimmy: has joined #ruby
[18:27:47] cpruitt: has joined #ruby
[18:27:48] mickey_mouse: has joined #ruby
[18:27:48] ICantCook: has joined #ruby
[18:27:50] matp: has joined #ruby
[18:27:53] Scient: has joined #ruby
[18:27:54] moredhel: has joined #ruby
[18:27:54] Dreamer3: has joined #ruby
[18:27:54] s2013: has joined #ruby
[18:27:55] Esya-: has joined #ruby
[18:27:57] thejoecarroll: has joined #ruby
[18:27:58] perry: has joined #ruby
[18:27:58] perry: has joined #ruby
[18:28:03] v1n: has joined #ruby
[18:28:07] Guest77101: has joined #ruby
[18:28:10] iko1: has joined #ruby
[18:28:12] urbanmonk: has joined #ruby
[18:28:15] sauvin: has joined #ruby
[18:28:18] pglombardo: has joined #ruby
[18:28:23] c0ncealed: has joined #ruby
[18:28:26] p7r: has joined #ruby
[18:28:26] DefV: has joined #ruby
[18:28:35] davidcelis: has joined #ruby
[18:28:35] davidcelis: has joined #ruby
[18:28:35] Conflict: has joined #ruby
[18:28:37] DanielI: has joined #ruby
[18:28:37] bahar: has joined #ruby
[18:28:38] Freeaqingme: has joined #ruby
[18:28:39] conrfrmn: has joined #ruby
[18:28:39] ec\: has joined #ruby
[18:28:40] Toledo|gone: has joined #ruby
[18:28:48] \13k: has joined #ruby
[18:28:48] woodruffw: has joined #ruby
[18:28:49] arthurnn: has joined #ruby
[18:28:49] kappy: has joined #ruby
[18:28:49] TheMoonMaster: has joined #ruby
[18:28:53] DrCode: has joined #ruby
[18:29:11] krobzaur: has joined #ruby
[18:29:15] Log1x: has joined #ruby
[18:29:24] bodie_: has joined #ruby
[18:29:45] Amnez777: has joined #ruby
[18:29:59] sauvin: has joined #ruby
[18:30:16] EdwardIII: ok... is this satanic? https://gist.github.com/EdwardIII/f828d693d9cebe249866
[18:30:18] neanderslob: has joined #ruby
[18:30:21] g3funk: has joined #ruby
[18:30:23] EdwardIII: should i take myself outside and end my own life?
[18:30:39] Darkwater: has joined #ruby
[18:30:39] Darkwater: has joined #ruby
[18:30:44] thomas: has joined #ruby
[18:30:48] mrmargolis: has joined #ruby
[18:31:10] D9-: has joined #ruby
[18:31:10] ur5us: has joined #ruby
[18:31:12] idefine: has joined #ruby
[18:31:40] EdwardIII: i feel a bit like i've abused the exception class a bit
[18:31:51] EdwardIII: by letting it know whether it should raise itself or not
[18:32:00] theRealAlexz: has joined #ruby
[18:32:10] theRealAlexz: has joined #ruby
[18:32:12] sideshowcoder: has joined #ruby
[18:32:16] Toledo|gone: has joined #ruby
[18:32:17] sideshowcoder: has joined #ruby
[18:32:37] EdwardIII: and it creates a fairly chunky cognative disnonance when suddenly you can't pass a string into the constructor of an exception anymore, you have to pass in a Hah
[18:33:06] EdwardIII: damnit, *cognitive dissonance, sorry
[18:33:45] TomyLobo: has joined #ruby
[18:34:40] charlemagne: has joined #ruby
[18:36:03] william3: has joined #ruby
[18:36:40] babblebre: has joined #ruby
[18:36:40] chipotle: has joined #ruby
[18:36:55] Gnut: has joined #ruby
[18:37:33] woodruffw: has joined #ruby
[18:37:55] juanpablo__: has joined #ruby
[18:38:28] woodruffw: has joined #ruby
[18:39:40] jamil: has joined #ruby
[18:42:09] Infra-Red: has joined #ruby
[18:42:37] ziyadb: has joined #ruby
[18:43:46] kirillzh: has joined #ruby
[18:43:57] bronson: has joined #ruby
[18:43:58] azure32: has joined #ruby
[18:46:13] Sembei: has joined #ruby
[18:46:35] iko1: has joined #ruby
[18:46:39] Renich: has joined #ruby
[18:48:42] dtordable: has joined #ruby
[18:49:03] jmurillo: has joined #ruby
[18:49:38] djellemah: EdwardIII: Yeah, that's pretty bad idea.
[18:50:12] Infra-Red: has joined #ruby
[18:50:26] jottr: has joined #ruby
[18:50:43] EdwardIII: djellemah: just that?
[18:51:08] EdwardIII: hrm i gotta run
[18:51:13] EdwardIII: thanks for your input
[18:51:55] _djbkd: has joined #ruby
[18:52:38] eljimmy: has joined #ruby
[18:54:23] intrigueD: has joined #ruby
[18:55:51] shevy: EdwardIII hmm strikes me as fairly complicated
[18:56:17] jottr: has joined #ruby
[18:57:37] herminiotorres: has joined #ruby
[18:57:55] speaking1ode: has joined #ruby
[18:58:21] adgtl: has joined #ruby
[18:59:11] htmldrum: has joined #ruby
[19:01:15] anaeem1_: has joined #ruby
[19:01:22] Jardayn: has joined #ruby
[19:03:47] karapetyan: has joined #ruby
[19:04:02] Gnut_: has joined #ruby
[19:04:16] anaeem1: has joined #ruby
[19:04:39] SCHAAP137: has joined #ruby
[19:05:42] y2mq37: has joined #ruby
[19:05:55] Deck`: has joined #ruby
[19:06:21] pawnbox: has joined #ruby
[19:07:37] kirillzh: has joined #ruby
[19:08:35] tildes: has joined #ruby
[19:09:04] baweaver: has joined #ruby
[19:10:52] Gnut: has joined #ruby
[19:11:04] Affix: has joined #ruby
[19:11:34] Xeago: has joined #ruby
[19:11:54] jeanlinux: has joined #ruby
[19:12:50] last_staff: has joined #ruby
[19:14:29] cpup: has joined #ruby
[19:15:34] william3: has joined #ruby
[19:15:52] shevy: let us code to glory!
[19:17:33] pglombar_: has joined #ruby
[19:18:15] last_staff: has joined #ruby
[19:18:40] htmldrum: has joined #ruby
[19:19:15] naftilos76: has joined #ruby
[19:19:20] nickjj: has joined #ruby
[19:22:45] webopsx: has joined #ruby
[19:26:15] htmldrum: has joined #ruby
[19:29:29] fearnothing: has joined #ruby
[19:29:36] kirun: has joined #ruby
[19:29:53] jeanlinux: has joined #ruby
[19:30:10] fearnothing: hi, I hope this is the right place to ask... I'm having trouble installing a bundle and getting the error "zlib is missing"
[19:30:24] fearnothing: I've tried installing zlibc and zlib1g but neither solved the issue
[19:30:48] fearnothing: can someone point me in the direction of the right package? This is on debian jessie x64
[19:31:42] bluOxigen: has joined #ruby
[19:33:17] B1n4r10: has joined #ruby
[19:34:28] stannard: has joined #ruby
[19:35:47] Macaveli: has joined #ruby
[19:36:15] pdoherty: has joined #ruby
[19:36:35] pawnbox: has joined #ruby
[19:37:49] fearnothing: nvm, found it
[19:41:30] Xiti: has joined #ruby
[19:41:48] arashb: has joined #ruby
[19:45:31] shevy: yeah should be the devel packages usually, they contain the header files
[19:46:28] youngmathimus0: has joined #ruby
[19:46:29] foli_: has joined #ruby
[19:46:46] foli_: has left #ruby: ()
[19:48:31] benlieb: has joined #ruby
[19:49:03] YaknotiS: has joined #ruby
[19:50:18] benlieb: is there a way to pipe to ruby on the command line and have it execute a command requiring everything in Gemfile?
[19:50:32] benlieb: I tried via bundle exec also but couldn't get it to work
[19:51:00] benlieb: in Vim piping puts 'hi' to !ruby works
[19:51:07] benlieb: but I would like to pipe: 'purchase_finalize_utils'.constantize
[19:51:11] benlieb: or something simlar
[19:51:58] andrewvos: has joined #ruby
[19:52:57] jeanlinux: has joined #ruby
[19:53:02] lemur: has joined #ruby
[19:53:12] FernandoBasso: has joined #ruby
[19:56:11] johnny56: has joined #ruby
[19:56:48] ta: has joined #ruby
[19:58:02] shadoi: has joined #ruby
[19:58:52] mdw: has joined #ruby
[19:59:08] speaking1ode: has joined #ruby
[19:59:14] rbennacer: has joined #ruby
[20:00:09] oniMaker: has left #ruby: ()
[20:01:10] Guest71821: has joined #ruby
[20:02:19] Pumukel: has joined #ruby
[20:02:53] llua: has joined #ruby
[20:04:15] elifoster: has joined #ruby
[20:05:44] voobscout: has joined #ruby
[20:07:24] Don_John: has joined #ruby
[20:07:41] Musashi007: has joined #ruby
[20:07:57] Deck`: has joined #ruby
[20:09:27] JohnnyR030T: has joined #ruby
[20:09:28] Google: has joined #ruby
[20:10:55] Liothen: has joined #ruby
[20:12:10] milesmatthias: has joined #ruby
[20:12:32] Xeago: has joined #ruby
[20:12:44] ta: has joined #ruby
[20:12:49] jkumar: has joined #ruby
[20:13:30] einarj: has joined #ruby
[20:14:07] jkumar: trying to understand ruby... need some help..
[20:14:24] jkumar: what is wrong with these few lines of ruby
[20:14:25] jkumar: https://gist.github.com/anonymous/2c74f406fda58e4acd76
[20:14:58] jkumar: get null on stdout
[20:16:15] shevy: what is this
[20:16:19] shevy: did you chop away existing code
[20:16:19] kmckelvin: has joined #ruby
[20:16:32] jkumar: nope..this is all of it
[20:16:40] gregf1: has joined #ruby
[20:17:01] shevy: anyway, this code defines a method called initialize; I do not see that this method is invoked, so @event = JSON.parse(json) is never called
[20:17:40] jkumar: i was following http://www.rubyist.net/~slagell/ruby/objinitialization.html
[20:19:17] voobscout: jkumar: it's supposed to be inside a class
[20:19:22] shevy: if you would have followed it, you would have kept it in a class
[20:19:50] shevy: this is the very fundamental of objects and classes in ruby
[20:20:32] azure32: has joined #ruby
[20:21:34] yfeldblum: has joined #ruby
[20:23:17] jeanlinux: has joined #ruby
[20:24:09] MindfulMonk: has joined #ruby
[20:25:00] tildes: has joined #ruby
[20:25:57] Icey: has joined #ruby
[20:27:03] MindfulM_: has joined #ruby
[20:28:39] chipotle: has joined #ruby
[20:29:06] yqt: has joined #ruby
[20:30:19] steffkes: has joined #ruby
[20:32:09] askhat: has joined #ruby
[20:35:41] andrewvos: has joined #ruby
[20:36:21] pawnbox: has joined #ruby
[20:36:43] ur5us: has joined #ruby
[20:37:49] bluOxigen_: has joined #ruby
[20:39:02] blt: has joined #ruby
[20:39:50] milesmatthias: has joined #ruby
[20:40:11] n0arthur: has joined #ruby
[20:41:16] devbug: has joined #ruby
[20:41:43] guacamole: has joined #ruby
[20:42:27] Xeago_: has joined #ruby
[20:47:17] fantazo: has joined #ruby
[20:47:33] last_staff: has joined #ruby
[20:50:22] thevaliantx: has joined #ruby
[20:51:33] DanielI: has joined #ruby
[20:53:36] tjohnson: has joined #ruby
[20:54:01] Musashi007: has joined #ruby
[20:54:23] mois3x: has joined #ruby
[20:54:59] minimalism: has joined #ruby
[20:58:13] baweaver: has joined #ruby
[20:59:24] idefine: has joined #ruby
[20:59:52] theRoUS: has joined #ruby
[21:00:22] tvon: has joined #ruby
[21:00:25] graffix: has joined #ruby
[21:02:32] mhoungbo: has joined #ruby
[21:04:04] Guest22829: has left #ruby: ("twip")
[21:05:05] s00pcan: has joined #ruby
[21:06:01] Gnut_: has joined #ruby
[21:07:22] baweaver: has joined #ruby
[21:07:51] anisha: has joined #ruby
[21:08:38] thevaliantx: has joined #ruby
[21:08:55] Deck`: has joined #ruby
[21:09:46] blackmesa: has joined #ruby
[21:11:08] kith: has joined #ruby
[21:13:06] ellisTAA: has joined #ruby
[21:13:19] ellisTAA: anyone know the ruby off topic channel?
[21:13:24] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[21:13:49] fearnothing: hi folks, having problems running a ruby application
[21:13:50] fearnothing: https://bpaste.net/show/b0420dcb4619
[21:14:09] fearnothing: NoMethodError type problems
[21:15:13] fearnothing: I don't know ruby at all so no idea how to debug this, google searches suggested doing gem update --system and gem install bundle, but that didn't solve it
[21:16:00] karapetyan: has joined #ruby
[21:17:42] ellisTAA: fearnothing: post your code
[21:18:05] kirillzh: has joined #ruby
[21:18:15] ellisTAA: that error message has a backtick then an apostrophe
[21:18:24] ellisTAA: `require’ maybe thats the problem
[21:18:50] codecop: has joined #ruby
[21:19:55] karapetyan: has joined #ruby
[21:20:09] ElFerna: has joined #ruby
[21:20:11] fearnothing: ellistaa - it's not my code
[21:20:26] Toledo|gone: has joined #ruby
[21:20:58] fearnothing: https://github.com/svent/jsdetox/blob/master/config/boot.rb
[21:20:58] Channel6: has joined #ruby
[21:21:02] fearnothing: I think it's that file
[21:24:10] roshanavand: has joined #ruby
[21:24:24] flughafen_: has joined #ruby
[21:25:09] fearnothing: I think the backtick was just an artefact of how putty or bash is displaying it
[21:25:17] fearnothing: in the code they're both '
[21:25:36] momomomomo: has joined #ruby
[21:26:22] pawnbox: has joined #ruby
[21:27:06] doublemalt__: has joined #ruby
[21:27:11] fearnothing: the thing is, I got it to run before
[21:27:17] fearnothing: not really sure what's different this time
[21:27:38] fearnothing: I rebooted the system in between, but don't know what would have been different
[21:27:46] ellisTAA: i dont think you have access to require
[21:27:49] Eiam_: has joined #ruby
[21:27:59] fearnothing: it's being run with sudo...
[21:28:32] baweaver: has joined #ruby
[21:28:39] beanHolez: has joined #ruby
[21:29:11] ellisTAA: does require work for the other file?
[21:29:28] ellisTAA: if it does maybe you dont have Bundler. if thats the case install it
[21:29:28] roshanavand: has joined #ruby
[21:29:59] cdg: has joined #ruby
[21:31:47] fearnothing: would commenting out the bundler require line be a valid test?
[21:32:10] fearnothing: because that gives me: `<top (required)>': uninitialized constant Padrino (NameError)`
[21:33:31] fearnothing: ok, that's clearly not the solution, it can't get to the next require if you don't load padrino
[21:34:27] fearnothing: man, I can draw some conclusions from my knowledge of other languages but I don't know enough to really understand a ruby problem
[21:34:29] ellisTAA: fearnothing: yes to the first question
[21:34:45] mhoungbo: has joined #ruby
[21:35:02] fearnothing: so does the error I got indicate that my require is working correctly?
[21:35:09] ellisTAA: are you able to require rubygems?
[21:35:21] ellisTAA: if so install bundler
[21:35:43] fearnothing: bundler is installed
[21:36:05] ellisTAA: gem install bundler
[21:36:54] ellisTAA: try restarting the console
[21:36:56] fearnothing: also tried installing it as an aptitude package
[21:37:06] fearnothing: console? as in my putty session?
[21:37:09] drbrain: fearnothing: which instruction did you get to when ↑ occurred: https://github.com/svent/jsdetox/blob/master/doc/INSTALL.rdoc
[21:37:50] fearnothing: drbrain - I'm all the way through that
[21:37:57] fearnothing: it's starting the application that's not working
[21:38:02] drbrain: so you're at `./jsdetox`?
[21:38:13] swills: has joined #ruby
[21:38:13] william3: has joined #ruby
[21:39:37] Xeago: has joined #ruby
[21:39:50] fearnothing: well what do you know
[21:39:56] fearnothing: restarting session seems to have worked
[21:40:03] intrigueD: has joined #ruby
[21:40:19] ellisTAA: has left #ruby: ()
[21:40:59] fearnothing: that's what I thought :P
[21:41:16] fearnothing: totally not what I expected
[21:41:59] swills: has joined #ruby
[21:42:15] symm-: has joined #ruby
[21:42:30] idefine: has joined #ruby
[21:42:55] duckpupp1: has joined #ruby
[21:43:40] bhowe: has joined #ruby
[21:43:40] fantazo: has joined #ruby
[21:44:29] firstdayonthejob: has joined #ruby
[21:46:59] fearnothing: now it is time for pizza
[21:47:10] nkondra: has joined #ruby
[21:47:34] jrcharney: has joined #ruby
[21:48:13] sq271: has joined #ruby
[21:49:15] jrcharney: Yo! What's the best way to install a version of Ruby on a Raspberry Pi 2 that is not so old it has an AARP card?
[21:49:39] Cohedrin: has joined #ruby
[21:49:40] jrcharney: Manager or Installer?
[21:50:16] jrcharney: I really was thinking installer this time around
[21:50:36] bahar: has joined #ruby
[21:51:27] davedev24: has joined #ruby
[21:51:29] fearnothing: well thank you for your help too drbrain even if it wasn't your solution that did it
[21:52:50] allcentury: has joined #ruby
[21:54:50] platzhirsch: has joined #ruby
[21:54:57] kies^: has joined #ruby
[21:55:11] Musashi007: has joined #ruby
[21:55:26] SCHAAP137: has joined #ruby
[21:56:05] element_zer0: has joined #ruby
[21:56:34] burgestrand: has joined #ruby
[21:56:48] bkxd: has joined #ruby
[21:58:03] trinaldi: has joined #ruby
[21:58:03] wmdrossard: has joined #ruby
[21:58:39] jrcharney: has left #ruby: ("WeeChat 1.2")
[21:59:00] futilegames: has joined #ruby
[21:59:43] skade: has joined #ruby
[22:00:04] thevaliantx: has joined #ruby
[22:01:16] touka: has joined #ruby
[22:01:25] dlitvak: has joined #ruby
[22:05:53] mhoungbo: has joined #ruby
[22:06:10] benlieb: has joined #ruby
[22:09:45] akem: has joined #ruby
[22:10:01] Deck`: has joined #ruby
[22:10:10] _djbkd: has joined #ruby
[22:11:18] kegster: has joined #ruby
[22:12:24] joeyjones: has joined #ruby
[22:13:14] chouhoul_: has joined #ruby
[22:13:26] veloutin: has joined #ruby
[22:14:34] Gnut: has joined #ruby
[22:14:44] chouhoul_: has joined #ruby
[22:15:13] volty: has joined #ruby
[22:15:24] sneakerhax: has joined #ruby
[22:18:22] robbyoconnor: has joined #ruby
[22:19:08] momomomomo: has joined #ruby
[22:19:16] skade: has joined #ruby
[22:20:01] eregi: has joined #ruby
[22:21:55] ur5us: has joined #ruby
[22:22:03] ur5us: has joined #ruby
[22:22:51] skade: has joined #ruby
[22:23:54] yfeldblum: has joined #ruby
[22:24:50] jeanlinux: has joined #ruby
[22:25:09] mhoungbo: has joined #ruby
[22:25:38] edmz: has joined #ruby
[22:25:47] edmz: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[22:26:33] SCHAAP137: has joined #ruby
[22:26:34] SCHAAP137: has joined #ruby
[22:27:02] camillo: has joined #ruby
[22:28:52] juanpablo__: has joined #ruby
[22:30:52] jeanlinux: has joined #ruby
[22:34:29] gokul__: has joined #ruby
[22:35:46] beanHolez: has joined #ruby
[22:35:48] haylon: has left #ruby: ("WeeChat 1.4")
[22:37:34] JDiPierro: has joined #ruby
[22:38:33] JDiPierro: has joined #ruby
[22:39:46] william3: has joined #ruby
[22:39:52] duncannz: has joined #ruby
[22:40:52] duncannz: has joined #ruby
[22:41:12] jamil: has joined #ruby
[22:41:59] zenlot2: has joined #ruby
[22:42:47] gustavohmsilva: has joined #ruby
[22:44:49] mattwildig: has joined #ruby
[22:44:52] skade: has joined #ruby
[22:44:53] darkf: has joined #ruby
[22:44:54] mickey_mouse_2: has joined #ruby
[22:45:26] jeanlinux: has joined #ruby
[22:46:03] skade: has joined #ruby
[22:46:47] mrmargolis: has joined #ruby
[22:48:00] dubek: has joined #ruby
[22:48:19] jrcharney: has joined #ruby
[22:50:14] pawnbox: has joined #ruby
[22:51:05] trinaldi: has joined #ruby
[22:51:25] B1n4r10: has joined #ruby
[22:53:28] hays: has joined #ruby
[22:53:56] william3: has joined #ruby
[22:56:25] hahuang65: has joined #ruby
[22:56:57] jrcharney: Do I need to download ruby-install first before installing chruby or do I need to do it the other way around?
[22:57:07] havenwood: jrcharney: either
[22:57:31] jrcharney: chruby won't use install ruby?
[22:57:42] jrcharney: s/install ruby/ruby-install/
[22:57:49] havenwood: jrcharney: nope, they're decoupled
[22:58:26] Tref: has joined #ruby
[22:58:45] jrcharney: OK, how about downloading them through git instead of this wget and PGP stuff?
[22:58:50] openstruct: has joined #ruby
[22:58:57] havenwood: jrcharney: Sure, do that!
[22:59:00] havenwood: jrcharney: OS?
[22:59:12] jrcharney: Linux...Raspbian
[22:59:25] havenwood: jrcharney: Yeah, git cloning the repos is fine.
[22:59:35] andrewvos: has joined #ruby
[23:01:35] B1n4r10: has joined #ruby
[23:04:56] Gnut: has joined #ruby
[23:06:48] shanemcd: has joined #ruby
[23:07:47] ta: has joined #ruby
[23:08:52] baweaver: has joined #ruby
[23:10:45] Deck`: has joined #ruby
[23:12:16] freerobby: has joined #ruby
[23:12:58] Xeago_: has joined #ruby
[23:14:58] thun: has joined #ruby
[23:15:03] shanemcd: has left #ruby: ()
[23:15:05] shanemcd: has joined #ruby
[23:15:11] benlieb_: has joined #ruby
[23:15:26] mary5030: has joined #ruby
[23:16:24] mary5030: has joined #ruby
[23:17:48] TomPeed: has joined #ruby
[23:18:53] openstruct: has joined #ruby
[23:19:56] william3: has joined #ruby
[23:19:58] PaulCapestany: has joined #ruby
[23:20:43] kmckelvin: has joined #ruby
[23:21:10] thun: I am having troubles accessing a class in a gem I just created. The name of the gem is company-data-api. It created sub-folders in lib/company/api which has all the libs, then a api.rb file in lib/company. This was all auto-created by gem.
[23:21:18] thun: The class is nested in modules. Company::Data::Api::MyClassIWantToAccess. rspec works fine but when I build the gem and install locally how to I require it? require 'company-data-api' Does not work.
[23:22:59] drbrain: require 'company/api'
[23:24:00] drbrain: thun: ruby requires by filenames
[23:24:16] Xeago: has joined #ruby
[23:24:22] drbrain: and 'lib/' should be added to $LOAD_PATH automatically
[23:24:58] fourq: has joined #ruby
[23:26:45] Xeago__: has joined #ruby
[23:27:44] thun: Hmm ok ty looks like that work... I have other require path issues now from within my gem... fixing now
[23:28:38] jmignault: has joined #ruby
[23:28:46] thun: Do you have to add files to the git repo locally in order for gem build to include?
[23:28:54] duckpupp1: has joined #ruby
[23:29:24] juanpablo__: has joined #ruby
[23:29:59] JDiPierro: has joined #ruby
[23:31:28] ElFerna: has joined #ruby
[23:32:03] dexter: has joined #ruby
[23:33:54] Xeago: has joined #ruby
[23:35:57] toretore: has joined #ruby
[23:36:32] ricx: has joined #ruby
[23:36:48] chipotle: has joined #ruby
[23:37:06] solocshaw: has joined #ruby
[23:38:20] ricx: hi guys!, quick question why when i define a method like ( def Array.ok; puts 1; end ) its not on Array.methods
[23:39:20] JoshGlzBrk: has joined #ruby
[23:40:06] pawnbox: has joined #ruby
[23:41:00] trinaldi: has joined #ruby
[23:41:03] Xeago_: has joined #ruby
[23:41:12] havenwood: >> def Array.ok; puts 1; end; Array.methods.include? :ok
[23:41:13] ruby[bot]: havenwood: # => true (https://eval.in/522129)
[23:41:24] havenwood: ricx: ^ should be
[23:41:44] jmurillo: class Array; def ok; puts 1; end; end;
[23:42:01] jmurillo: class Array; def ok; puts 1; end; end :ok
[23:42:02] havenwood: jmurillo: self.ok
[23:42:43] xrlabs: has joined #ruby
[23:43:00] havenwood: jmurillo: `def self.ok` is like `def Array.ok` in that it creates a class method
[23:43:08] havenwood: jmurillo: `def ok` creates an instance method
[23:43:56] havenwood: jmurillo: (Inside `Array` a `self` is `Array`. By using `self` it still works if the class name changes.)
[23:44:44] jmurillo: thanks havenwood
[23:45:45] hahuang65: has joined #ruby
[23:47:05] jeanlinux: has joined #ruby
[23:47:35] dopamean_: has joined #ruby
[23:47:36] Xeago: has joined #ruby
[23:51:34] william3: has joined #ruby
[23:52:04] nettoweb: has joined #ruby
[23:53:23] Xeago: has joined #ruby
[23:53:41] blackmesa: has joined #ruby
[23:54:37] lemur: has joined #ruby
[23:55:45] stannard: has joined #ruby
[23:57:31] shevy: let's dance
[23:59:11] railsForDaiz: has joined #ruby
[23:59:34] ur5us: has joined #ruby
[23:59:45] ricx: yeah, it says that is included, but when i do [].ok # => undefined method 'ok'