« Back to channel list

#ruby - 17 February 2016

« Back 1 day Forward 1 day »
[00:00:18] chris2: has joined #ruby
[00:00:26] tildes: has joined #ruby
[00:01:05] mg^: So I did
[00:02:21] mg^: It works, but sometimes it's crashy. Haven't figured out why but either the GC and I have a disagreement or I've got a leak are the likely candidates.
[00:03:10] intrigueD: has joined #ruby
[00:03:53] riceandbeans: if I have a variable foo, that contains a number like 1.2.3, what's the cleanest way to just return a version with the .3 stripped off the end?
[00:05:17] crowell: has joined #ruby
[00:05:24] j4d: has joined #ruby
[00:06:59] wolffles: how do you read a number with 2 decimals
[00:07:00] zach2825: jhass, i ran "rvm -v" and got "rvm 1.26.11 (latest) "
[00:07:17] dnewkerk: has joined #ruby
[00:07:32] J4D_: has joined #ruby
[00:07:40] zach2825: jhass, with "ruby -v" i get "ruby 2.0.0p643"
[00:08:03] zach2825: and i ran "gem install bundle" and still no luck.
[00:08:31] mg^: >> '1.2.3'.split('.')[0..-2].join('.')
[00:08:33] ruby[bot]: mg^: # => "1.2" (https://eval.in/519902)
[00:08:45] mg^: dunno if that's really that clean or fast, but it works
[00:09:10] riceandbeans: mg^: that'll do, that'll do, thank you
[00:09:22] al2o3-cr: >> 1.2.3"[0,3]
[00:09:24] ruby[bot]: al2o3-cr: # => /tmp/execpad-b4541916141b/source-b4541916141b:2: unexpected fraction part after numeric literal ...check link for more (https://eval.in/519903)
[00:09:30] al2o3-cr: >> "1.2.3"[0,3]
[00:09:31] ruby[bot]: al2o3-cr: # => "1.2" (https://eval.in/519904)
[00:09:45] nettoweb: has joined #ruby
[00:09:56] mg^: Of course, what I gave breaks if you give it something like '1'
[00:10:59] nopolitica: has joined #ruby
[00:11:34] havenwood: mg^: Nifty mruby on hexchat! What's the '1.2.3' thing?
[00:11:36] karapetyan: has joined #ruby
[00:11:41] MrSamuel: has joined #ruby
[00:12:14] riceandbeans: al2o3-cr: the number could be 12.15.18
[00:12:24] sjohnsen: has joined #ruby
[00:12:31] mg^: riceandbeans wanted to know how to strip the last bit off of a version-number type of string
[00:12:36] riceandbeans: >> "12.15.18"[0,3]
[00:12:37] ruby[bot]: riceandbeans: # => "12." (https://eval.in/519911)
[00:12:38] havenwood: oh, i totally missed the question, gotcha!
[00:13:00] zach2825: i tried in my Gemfile adding ruby "2.0.0" to force using ruby 2.0.0 but when i run bundle install i get this error
[00:13:01] zach2825: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
[00:13:36] pawnbox: has joined #ruby
[00:13:38] riceandbeans: >> "12.15.18".split('.')[0..-2].join('.')
[00:13:40] ruby[bot]: riceandbeans: # => "12.15" (https://eval.in/519918)
[00:13:46] riceandbeans: and mg^ wins this round
[00:14:49] havenwood: >> File.basename '12.15.18', '.*'
[00:14:50] ruby[bot]: havenwood: # => "12.15" (https://eval.in/519920)
[00:14:58] Ox0dea: I mean, why not?
[00:15:03] mg^: hahah I like it
[00:15:44] zach2825: has anybody else experienced that problem?
[00:15:59] DLSteve: has joined #ruby
[00:16:06] Ox0dea: zach2825: Do you have a .ruby-version file in your project directory?
[00:16:27] Ox0dea: That'll be the problem.
[00:16:27] havenwood: zach2825: What's in it?
[00:16:34] Ox0dea: I'm gonna guess 1.9.3. :P
[00:16:35] zach2825: only "2.0.0" without quotes
[00:16:43] Ox0dea: Burn it all.
[00:16:53] zach2825: i did 2 times today..
[00:16:58] Ox0dea: With fire?
[00:17:15] zach2825: lol i thought you meant to remove and re install.
[00:17:21] CloCkWeRX: has joined #ruby
[00:17:44] Sonja: has joined #ruby
[00:17:47] malconis: has joined #ruby
[00:17:53] zach2825: yes, i've done that.
[00:18:00] al2o3-cr: havenwood: nice :)
[00:18:07] kent\n: has joined #ruby
[00:18:23] Sonja: Python 3 lets you divide 10/3 as floats (instead of int) by default. Is there something like this in Ruby?
[00:18:32] zach2825: i know its something stupid. but i don't know how to tell bundle install to use ruby 2.0.0
[00:18:40] zach2825: no matter what i try it uses 1.9.1
[00:18:51] Ox0dea: sonja: Are you sure you want that?
[00:18:58] zach2825: every setting i can find is pointed to 2.0.0
[00:19:19] Ox0dea: >> require 'mathn'; 10/3 # sonja
[00:19:21] ruby[bot]: Ox0dea: # => (10/3) (https://eval.in/519934)
[00:19:24] Ox0dea: Rational > Float
[00:19:48] ruby[bot]: al2o3-cr: # => (10/3) (https://eval.in/519935)
[00:20:22] zach2825: Ox0dea, do you know how to make bundle install use ruby 2.0.0?
[00:20:52] Rodya_: has joined #ruby
[00:21:03] Ox0dea: zach2825: You're properly telling it how to use it; the problem is that that's not actually your Ruby version.
[00:22:22] Ox0dea: It takes a kinder soul than mine to help diagnose problems caused by RVM. :/
[00:22:49] bnagy: Ox0dea: but you already did
[00:22:52] shevy: he hates it with a passion!
[00:22:57] Ox0dea: bnagy: Oops!
[00:22:58] bnagy: 07:14 < Ox0dea> `rvm implode`
[00:23:00] Sonja: Ox0dea: is that a jedi mind trick?
[00:23:06] Ox0dea: bnagy: Heh.
[00:23:18] zach2825: i can abondon it. if theres an easier wya
[00:23:19] shevy: you are revealed Ox0dea :)
[00:23:25] Ox0dea: sonja's onto me!
[00:23:27] zach2825: i can abandon it. if theres an easier wayu
[00:23:28] zach2825: i can abandon it. if theres an easier way
[00:23:37] shevy: you really can abandon it
[00:23:41] zach2825: sorry i kept making typos
[00:23:57] shevy: havenwood recommends chruby
[00:24:11] shevy: <havenwood> jimeh: chruby supports autoswitching with .ruby-version files
[00:24:12] shevy: <havenwood> jimeh: https://github.com/postmodern/chruby#auto-switching
[00:24:17] bnagy: chruby ftw
[00:24:33] bnagy: but if you don't need to switch you can also just install ruby
[00:24:42] kent\n: has joined #ruby
[00:25:37] bnagy: zach2825: as a heuristic, most of these problems come from your 'ruby' and/or 'gem' commands not invoking the binaries you expect them to invoke
[00:25:52] bnagy: which is diagnosed with `which xxx`
[00:26:00] zach2825: im looking at chruby right now
[00:26:03] shevy: total chaos, total madness, different prefixes, different rubies!
[00:26:11] bnagy: or fixed with just killing everything with fire
[00:27:09] Ox0dea: $ alias rubydo='chruby | tr -d \* | xargs -I ver chruby-exec ver -- ruby -v'
[00:27:16] bnagy: trouble is that all the switchers have different magics that infect rc files
[00:27:29] Ox0dea: bnagy: Not chruby-exec?
[00:27:50] bnagy: well that's not really a switcher
[00:29:11] mfb2: has joined #ruby
[00:31:41] solocshaw: has joined #ruby
[00:31:48] stannard: has joined #ruby
[00:32:05] gizless: has joined #ruby
[00:35:48] JoshGlzBrk: has joined #ruby
[00:40:43] blackmesa: has joined #ruby
[00:40:43] aupadhye: has joined #ruby
[00:41:52] duckpuppy: has joined #ruby
[00:42:11] jottr_: has joined #ruby
[00:42:18] andrewvos: has joined #ruby
[00:43:28] mfb2: has joined #ruby
[00:44:16] yfeldblum: has joined #ruby
[00:44:25] jimeh: zach2825: are you trying to specify Ruby version via a Gemfile?
[00:44:43] zach2825: im trying to force using 2.0.0 because thats the version i need
[00:45:22] jimeh: chruby or rbenv+ruby-install is your best bet...
[00:46:15] havenwood: zach2825: What switcher are you using?
[00:46:26] jimeh: I've not tried chruby yet, but with rbenv and ruby-install you'd just do: rbenv install 2.0.0
[00:46:40] zach2825: i removed the other versions of ruby and now im using symlinks..
[00:46:53] havenwood: jimeh: that's be ruby-build
[00:47:08] havenwood: jimeh: ruby-install can install for rbenv as well, but it's not "integrated" into rbenv
[00:47:21] havenwood: those names are unfortunately close
[00:47:53] jimeh: havenwood: indeed, I meant ruby-build >_<
[00:48:00] lemur: has joined #ruby
[00:48:33] jimeh: zach2825: Bundler doesn't manage or switch Ruby versions, for that you need rbenv, chruby or rvm
[00:49:14] zach2825: sofar i've tried rvm somebody said that sucks so i tried chruby which looks like its for mac im on an ubuntu server..
[00:49:45] mfb2: has joined #ruby
[00:50:02] zach2825: in the beginning i tried rvm use 2.0.0 and when i tried bundle install it was still trying to use ruby 1.9.1
[00:50:28] jimeh: in theory chruby should work anywhere that has bash is available...
[00:50:46] postmodern: zach2825, chruby should still work on bash/zsh, but you probably don't need a ruby manager on the server
[00:51:04] jimeh: Did you first install Ruby 2.0.0? If not that'd be why it couldn't use it...
[00:51:53] zach2825: i apt-get install ruby and it installed 1.9.1. but i want to use ruby 2.0.0.
[00:52:01] arescorpio: has joined #ruby
[00:52:18] dnewkerk: I’m a regex newbie and struggling to get this regex to match all of the lines of text, was wondering if anyone can give me a hint on how to fix it? http://rubular.com/r/kb0JQDOerh … originally found it on https://regex101.com/r/jV9oV2/3 where it does match in pcre format but not when bringing it to ruby
[00:52:24] postmodern: zach2825, https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng just install the brightbox ruby-ng package for ruby-2.0.0
[00:52:26] zach2825: the thing is when i run "ruby -v" i get "ruby 2.0.0p648"
[00:54:08] derailed: has joined #ruby
[00:54:32] jimeh: zach2825: so you've got 2.0, probably just a PATH issue then...
[00:55:09] zach2825: i've symlinked everything. no matter which version it asks for it should be 2.0.0 now.
[00:55:31] LoneHerm_: has joined #ruby
[00:55:37] yosafbridge: has joined #ruby
[00:55:52] yfeldblum: has joined #ruby
[00:57:00] zach2825: ok progress, maybe.
[00:57:26] weemsledeux: has joined #ruby
[00:58:08] havenwood: zach2825: A nice thing about not needing to switch Rubies is not needing a Ruby switcher. :)
[00:58:41] Ropeney: has joined #ruby
[00:59:00] zach2825: its complaining about not having some event gem installed so i try to install it and i get this error
[00:59:01] zach2825: rubygems.rb:8:in `require': cannot load such file -- rbconfig
[01:00:31] Ox0dea: dnewkerk: Weird. https://eval.in/519954
[01:00:33] rgtk: has joined #ruby
[01:00:37] Ox0dea: That works just fine on Ruby 2.4. :/
[01:02:36] Ox0dea: As best I can tell, that regex isn't using any particularly fancy feature that wouldn't be supported by Oniguruma since way back.
[01:02:38] rgtk: has joined #ruby
[01:03:14] dnewkerk: Ox0dea: interesting… I’m still running 2.2 on my dev machine so hadn’t tried with 2.3
[01:03:15] MrSamuel: has joined #ruby
[01:03:33] pawnbox: has joined #ruby
[01:03:33] dlitvak: has joined #ruby
[01:04:25] Ox0dea: dnewkerk: Works on 2.2.2: https://glot.io/snippets/ebzq1td970
[01:04:29] rgtk: has joined #ruby
[01:04:33] Ox0dea: Not sure what's going on with eval.in there.
[01:04:57] Ox0dea: Oh, never mind. It's not matching all the text. Derp.
[01:05:32] casadei_: has joined #ruby
[01:05:52] JoshGlzBrk: has joined #ruby
[01:06:06] Prira: has joined #ruby
[01:06:39] rgtk: has joined #ruby
[01:07:53] bnagy: dnewkerk: that kind of regex is unmaintainable shite, don't use it
[01:08:04] bnagy: having said that, change the $ in the lookahead to \z
[01:08:13] rgtk: has joined #ruby
[01:10:10] rgtk: has joined #ruby
[01:11:15] Diaoer: has joined #ruby
[01:12:00] rgtk: has joined #ruby
[01:12:03] jimeh: dnewkerk: here's what bnagy suggests http://rubular.com/r/ivEyFcai0A
[01:12:06] dnewkerk: bnagy: thanks that worked! Thank you too Ox0dea for having a look. Yeah I agree it’s not a good idea to take this route, just came across this snippet and was hoping to just use it to get an early version of my subtitles parser working and then refactor it better (but then got stumped when the regex didn’t work as expected)
[01:12:32] bnagy: that regex makes me mad >:(
[01:12:34] zach2825: thank you for your help. im done for the day.
[01:12:40] chouhoulis: has joined #ruby
[01:12:42] bnagy: -{2}> >:(
[01:12:55] bnagy: [\s\S] >X(
[01:13:03] Damien22: has joined #ruby
[01:13:17] Ox0dea: It almost looks computer-generated?
[01:13:22] shanemcd: has joined #ruby
[01:13:22] jimeh: Yeah, it's some seriously weird regex... lol
[01:13:55] rgtk: has joined #ruby
[01:14:04] dnewkerk: bnagy: as you’re definitely more knowledgable with regex than me, could you refer me to a trusted resource to learn best practices? So far I’m at the point where I can’t tell good from evil so to speak :P
[01:14:06] dlitvak: has joined #ruby
[01:14:22] c0ncealed: has joined #ruby
[01:15:37] bnagy: not really. I am a huge regex bigot.
[01:15:54] rgtk: has joined #ruby
[01:16:13] bnagy: but -{2}> instead of just --> is just bizarre, same with [\s\S] - like.. say what you mean! SPACE OR NOT SPACE LOL
[01:16:48] bnagy: lookaheads are a good sign you've gone too far. It's like when you start writing functions in shellscripts
[01:16:52] bnagy: just stop and do it properly
[01:17:24] jimeh: Slightly less weird regex: http://rubular.com/r/QvLj9TMNnV
[01:17:49] rgtk: has joined #ruby
[01:17:53] jimeh: But yeah, I agree bnagy
[01:19:50] rgtk: has joined #ruby
[01:19:59] juanfra: has joined #ruby
[01:20:11] dnewkerk: thanks everyone :) and thanks jimeh I’ll compare the two examples and learn how you simplified it
[01:20:46] Melpaws1: has joined #ruby
[01:21:45] rgtk: has joined #ruby
[01:23:32] cjbottaro: has joined #ruby
[01:23:41] rgtk: has joined #ruby
[01:24:05] dlitvak: has joined #ruby
[01:24:25] Melpaws: hiya. I need some guru help with scraping a html table with nokogiri . Here is the table : https://gist.githubusercontent.com/dylnnlsn/5baa9d41fe11fbd7a97d/raw/4c9a000f689753f0a80691e0b7121fd372b728df/gistfile1.txt. I'm needing to scrape the page above and return the td data for the hour and the values picked.
[01:24:48] cjbottaro: has joined #ruby
[01:25:14] jimeh: dnewkerk: I didn't really simplify, more just change confusing stuff to less confusing stuff... lol
[01:25:15] rgtk: has joined #ruby
[01:25:31] dnewkerk: jimeh: it’s a start :)
[01:26:25] dnewkerk: jimeh: in the case of parsing a big block of text like this, would you take a different approach? perhaps like breaking it down into single lines and analyzing each with simpler conditions?
[01:27:11] rgtk: has joined #ruby
[01:27:17] skweek: has joined #ruby
[01:27:43] kirillzh: has joined #ruby
[01:28:31] dnewkerk: thanks I’ll give it a try
[01:29:06] rgtk: has joined #ruby
[01:30:37] jimeh: I would indeed :)
[01:31:01] rgtk: has joined #ruby
[01:32:38] i: has joined #ruby
[01:32:56] rgtk: has joined #ruby
[01:35:01] rgtk: has joined #ruby
[01:35:57] FooMunki: has joined #ruby
[01:36:42] snguyen: has joined #ruby
[01:36:52] rgtk: has joined #ruby
[01:36:56] freerobby: has joined #ruby
[01:37:58] DEA7TH: has joined #ruby
[01:38:27] rgtk: has joined #ruby
[01:39:23] rbennacer: has joined #ruby
[01:40:27] rgtk_: has joined #ruby
[01:41:37] miguel: has joined #ruby
[01:42:17] rgtk: has joined #ruby
[01:42:37] duckpuppy: has joined #ruby
[01:42:38] zast: has joined #ruby
[01:43:00] Guest69653: has joined #ruby
[01:43:24] freerobby: has joined #ruby
[01:44:12] rgtk: has joined #ruby
[01:44:17] msosa: has joined #ruby
[01:45:52] freerobby: has joined #ruby
[01:46:12] rgtk: has joined #ruby
[01:46:22] juanfra: has joined #ruby
[01:47:30] rkazak: has joined #ruby
[01:47:44] crdpink: has joined #ruby
[01:48:17] rgtk: has joined #ruby
[01:48:49] cih: has joined #ruby
[01:49:18] idefine: has joined #ruby
[01:50:13] rgtk: has joined #ruby
[01:51:45] rgtk: has joined #ruby
[01:53:30] pawnbox: has joined #ruby
[01:53:38] rgtk: has joined #ruby
[01:54:07] dlitvak: has joined #ruby
[01:54:09] idefine: has joined #ruby
[01:55:13] duderonomy: has joined #ruby
[01:55:37] rgtk: has joined #ruby
[01:57:22] mary5030: has joined #ruby
[01:57:58] x77686d: has joined #ruby
[01:58:06] DmitryBochkarev: has joined #ruby
[02:00:20] karapetyan: has joined #ruby
[02:02:42] baweaver: has joined #ruby
[02:03:10] nbdy: has joined #ruby
[02:03:34] Ebok: has joined #ruby
[02:03:36] Moblin: has joined #ruby
[02:04:31] dlitvak: has joined #ruby
[02:04:35] Ebok: has joined #ruby
[02:06:13] zeroDivisible: has joined #ruby
[02:06:18] nfk|laptop: has joined #ruby
[02:07:53] LoneHermit: has joined #ruby
[02:08:32] rgtk: has joined #ruby
[02:08:54] znz_jp: has joined #ruby
[02:09:19] pickandmix: has joined #ruby
[02:10:40] mattwildig: has joined #ruby
[02:12:44] rgtk_: has joined #ruby
[02:16:58] rgtk: has joined #ruby
[02:17:14] resin: has joined #ruby
[02:17:49] skade: has joined #ruby
[02:19:32] idefine: has joined #ruby
[02:20:29] bronson: has joined #ruby
[02:21:09] rgtk_: has joined #ruby
[02:24:21] idefine: has joined #ruby
[02:25:28] rgtk: has joined #ruby
[02:26:17] KnownSyntax: has joined #ruby
[02:26:20] KnownSyntax: has joined #ruby
[02:26:46] juanfra: has joined #ruby
[02:28:32] LoneHermit: has joined #ruby
[02:28:40] JoshGlzBrk: has joined #ruby
[02:29:21] rgtk: has joined #ruby
[02:30:06] e4xit: has joined #ruby
[02:32:22] kies^: has joined #ruby
[02:32:30] pwnd_nsfw`: has joined #ruby
[02:33:08] DmitryBochkarev: has joined #ruby
[02:33:17] stannard: has joined #ruby
[02:33:26] rgtk_: has joined #ruby
[02:35:41] Spami: has joined #ruby
[02:36:15] dlitvak: has joined #ruby
[02:37:41] rgtk: has joined #ruby
[02:37:41] nisstyre: has joined #ruby
[02:38:25] dexter_: has joined #ruby
[02:39:05] Grays0n: has joined #ruby
[02:41:37] frozen3: has joined #ruby
[02:42:06] rgtk_: has joined #ruby
[02:44:16] s00pcan__: has joined #ruby
[02:44:24] unl0ckd: has joined #ruby
[02:44:40] duckpuppy: has joined #ruby
[02:44:47] bLUEbYTE: has joined #ruby
[02:49:05] rakm: has joined #ruby
[02:49:29] baweaver: has joined #ruby
[02:54:54] stannard: has joined #ruby
[02:54:58] rgtk: has joined #ruby
[02:58:21] graffix222: has joined #ruby
[02:59:40] p1k: has joined #ruby
[03:01:56] karapetyan: has joined #ruby
[03:02:32] mfb2: has joined #ruby
[03:03:38] cbednarski: has joined #ruby
[03:03:39] moeabdol: has joined #ruby
[03:05:46] cpup: has joined #ruby
[03:06:10] Ropeney: has joined #ruby
[03:06:28] moeabdol1: has joined #ruby
[03:06:43] cbednarski: has left #ruby: ()
[03:08:06] rgtk: has joined #ruby
[03:08:27] tomchapin: has joined #ruby
[03:08:29] hxegon: has joined #ruby
[03:08:33] sucks: has joined #ruby
[03:11:54] rgtk: has joined #ruby
[03:12:04] nogic: has joined #ruby
[03:13:19] bLUEbYTE: has joined #ruby
[03:14:34] bLUEbYTE: has joined #ruby
[03:15:10] LoneHerm_: has joined #ruby
[03:15:53] DanKnox_: has joined #ruby
[03:15:53] DanKnox: has joined #ruby
[03:18:23] bLUE-bYTE: has joined #ruby
[03:18:38] idefine: has joined #ruby
[03:18:52] sucks: has joined #ruby
[03:19:17] sucks: has joined #ruby
[03:21:00] Rodya_: has joined #ruby
[03:22:07] sucks: has joined #ruby
[03:24:29] sucks: has joined #ruby
[03:25:05] rgtk: has joined #ruby
[03:34:28] zacstewart: has joined #ruby
[03:34:33] chouhoulis: has joined #ruby
[03:35:22] kirillzh: has joined #ruby
[03:36:44] Eiam_: has joined #ruby
[03:37:09] LoneHermit: has joined #ruby
[03:39:06] sucks: has joined #ruby
[03:40:50] cih: has joined #ruby
[03:42:31] sucks: has joined #ruby
[03:42:53] chris2: has joined #ruby
[03:43:13] pawnbox: has joined #ruby
[03:45:59] baweaver: has joined #ruby
[03:49:42] jcdesimp: has joined #ruby
[03:52:48] tomchapin: has joined #ruby
[03:57:32] chipotle: has joined #ruby
[03:58:49] dkam: has joined #ruby
[03:59:54] howdoi: has joined #ruby
[04:00:39] Omen: has joined #ruby
[04:02:14] treaki__: has joined #ruby
[04:02:36] tomchapin: has joined #ruby
[04:05:09] LoneHerm_: has joined #ruby
[04:06:36] moeabdol1: has joined #ruby
[04:07:05] Graphettion: has joined #ruby
[04:09:40] tildes: has joined #ruby
[04:10:49] braincrash: has joined #ruby
[04:11:10] hippyphysicist: has joined #ruby
[04:13:26] pickandmix: has joined #ruby
[04:14:20] Ox0dea: Interrobang methods.
[04:15:09] Ox0dea: #foo?! would be the scarier version of #foo?.
[04:15:25] Ox0dea: Not sure about #foo!? though.
[04:16:02] Radar: Modify this object, but only sometimes.
[04:16:22] Radar: or foo!? always takes an argument which is true/false which decides to modify the existing obj or create a new one
[04:16:41] stannard: has joined #ruby
[04:16:43] Ox0dea: Adding them is scary-easy...
[04:17:20] eam: the AYFKM method ???? which raises if false
[04:17:34] eam: thing.zero????
[04:17:40] Ox0dea: Those wouldn't be valid.
[04:17:58] eam: I reject your reality and assert my own
[04:18:44] Ox0dea: https://gist.github.com/0x0dea/e5e71cbe208a1f5decfa
[04:18:53] kent\n: has joined #ruby
[04:19:23] Ox0dea: Even #foo!! and #foo?? would be invalid.
[04:19:33] eam: oh that's just the parser, don't let that constrain your creativity
[04:19:42] eam: define_method and send will save us
[04:19:59] fedexo: has joined #ruby
[04:20:34] eam: we're going to have to write code to create a method already, so why not write some code in the parser ...
[04:20:56] Ox0dea: >> define_method(:define_method) { define_method(:define_method) {} }
[04:20:57] ruby[bot]: Ox0dea: # => :define_method (https://eval.in/520044)
[04:21:09] Ox0dea: Don't call it, though.
[04:22:44] Ox0dea: >> [include, extend(Module.new)]
[04:22:46] ruby[bot]: Ox0dea: # => [Object, main] (https://eval.in/520045)
[04:22:49] Ox0dea: That seems wrong?
[04:23:50] Melpaws: has joined #ruby
[04:24:25] moeabdol2: has joined #ruby
[04:26:35] DanKnox: has joined #ruby
[04:26:41] DanKnox_: has joined #ruby
[04:27:40] bronson: has joined #ruby
[04:28:03] tubulife-: has joined #ruby
[04:29:20] Grays0n: has joined #ruby
[04:29:26] gix: has joined #ruby
[04:30:11] asccigcc: has joined #ruby
[04:32:15] dopamean_: has joined #ruby
[04:33:20] zenlot2: has joined #ruby
[04:34:08] tesuji: has joined #ruby
[04:35:06] _whitelogger: has joined #ruby
[04:35:27] voker57: has joined #ruby
[04:35:28] voker57: has joined #ruby
[04:36:08] krz: has joined #ruby
[04:36:27] drPoggs: has joined #ruby
[04:37:17] DylanJ: has joined #ruby
[04:37:18] Morrolan: has joined #ruby
[04:39:06] JStoker: has joined #ruby
[04:41:14] duncannz: has joined #ruby
[04:41:18] mwlang: has left #ruby: ()
[04:41:22] DynamicMetaFlow: has joined #ruby
[04:41:22] pawnbox: has joined #ruby
[04:44:50] kirillzh: has joined #ruby
[04:47:24] skweek: has joined #ruby
[04:49:25] ramortegui: has joined #ruby
[04:51:00] sakix: has joined #ruby
[04:51:24] ramortegui: Hi All, I'm wondering if there is a way to access to memory objects in a running application.
[04:51:29] karapetyan: has joined #ruby
[04:52:27] ramortegui: I defined a singleton class in a sinatra app, and I can run racksh in order to get access to a console. But It seems like there is no access to the same namespace, because when I get an instance of an object.. it's new.
[04:53:32] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[04:58:44] kp666: has joined #ruby
[04:59:24] godzillaenlacasa: has joined #ruby
[04:59:44] treaki_: has joined #ruby
[05:00:04] kp666: has joined #ruby
[05:00:15] ramortegui: I get it. I have a sinatra app that use a chat lib in order to create a chat. The chat app is a singleton, and always get the same instance for any petition to the sinatra app. I'd like to use a shell to access the chat object that is in execution. I use racksh, but I have like a new sinatra app, not the same that is working is in execution. Could I get access to the objects of my sinatra app by a console?
[05:00:18] perrier_: has joined #ruby
[05:00:51] Ox0dea: racksh does not give you access to a running instance of your application.
[05:01:48] darkf: has joined #ruby
[05:01:57] darkf: has joined #ruby
[05:03:43] asprillia: has joined #ruby
[05:04:28] darkf_: has joined #ruby
[05:05:04] ramortegui: ok 0Ox0dea, thanks! , and is there a way to do that?
[05:06:04] Ox0dea: ramortegui: You want to attach racksh to an instance of your application that you didn't spawn with racksh?
[05:08:14] ramortegui: Yes, I want to get access to the instance of my application by racksh or irb.
[05:09:46] Radar: For what purpose?
[05:10:47] chipotle: has joined #ruby
[05:11:22] ramortegui: I'd like to manage the Objects by console for now, instead of creating a user interface to manage the objects.
[05:11:45] chouhoulis: has joined #ruby
[05:11:55] ramortegui: I will create the user interface.
[05:12:02] diegoviola: has joined #ruby
[05:12:05] Radar: Sounds like you're trying to intentionally make things hard for yourself.
[05:12:19] Prawnzy: has joined #ruby
[05:12:29] ramortegui: lol. and for curiosity.
[05:12:45] Radar: Yeah, I'm not into answering these sort of impossible questions.
[05:13:03] ramortegui: ok. Thanks Radar.
[05:13:22] Radar: imo: build the damn interface now and stop faffing about
[05:14:20] ramortegui: Yes, I'm doing right now. :)
[05:18:07] shanemcd: has joined #ruby
[05:18:31] Prawnzy: has left #ruby: ("WeeChat 1.3")
[05:19:10] havenwood: ramortegui: One way to do something along those lines is to add pry-remote to your Gemfile then require it in your config.ru: https://github.com/Mon-Ouie/pry-remote
[05:20:01] DEA7TH: has joined #ruby
[05:20:22] havenwood: ramortegui: That kinda assumes that you're going to drop a `binding.remote_pry` in your code though. Yay DRb!
[05:24:21] skweek: has joined #ruby
[05:24:25] havenwood: Rescue errors to a binding.remote_pry and page yourself to hop on the server and fix it with pry-remote.
[05:24:32] whiteline: has joined #ruby
[05:25:51] Giordano: has joined #ruby
[05:26:03] DEA7TH: has joined #ruby
[05:26:41] adgtl: has joined #ruby
[05:27:27] ramortegui: thanks havenwood I'll try.
[05:29:44] snguyen: has joined #ruby
[05:30:07] idefine: has joined #ruby
[05:36:25] KensoDev: has joined #ruby
[05:36:59] yfeldblum: has joined #ruby
[05:42:33] darkf: has joined #ruby
[05:45:03] PolarIce: has joined #ruby
[05:45:10] skweek: has joined #ruby
[05:45:48] swills: has joined #ruby
[05:47:13] dkam: has joined #ruby
[05:49:11] blackgoat: has joined #ruby
[05:50:59] asianMike: has joined #ruby
[05:52:03] agentmeerkat: has joined #ruby
[05:54:26] DanKnox: has joined #ruby
[05:54:32] DanKnox_: has joined #ruby
[05:58:44] terminal_: has joined #ruby
[05:59:40] krzkrz: has joined #ruby
[06:00:23] agentmeerkat: has joined #ruby
[06:01:16] karapetyan: has joined #ruby
[06:03:16] rkazak: has joined #ruby
[06:03:22] itsgokul: has joined #ruby
[06:05:07] mary5030: has joined #ruby
[06:05:39] lxsameer: has joined #ruby
[06:09:26] mephistophocles: has joined #ruby
[06:09:48] chipotle: has joined #ruby
[06:10:37] hakunin: has joined #ruby
[06:11:46] hakunin: has joined #ruby
[06:11:46] LoneHermit: has joined #ruby
[06:12:16] clauswitt: has joined #ruby
[06:12:41] chouhoulis: has joined #ruby
[06:13:20] sauvin: has joined #ruby
[06:15:16] Rodya_: has joined #ruby
[06:16:24] pawnbox: has joined #ruby
[06:17:02] vandemar: has left #ruby: ()
[06:19:49] bluOxigen: has joined #ruby
[06:21:28] Giordano: has joined #ruby
[06:24:40] Diaoer: has joined #ruby
[06:25:44] Diaoer: has joined #ruby
[06:26:26] Diaoer: has joined #ruby
[06:27:46] timmyBsd: has joined #ruby
[06:29:13] floatingpoint: has joined #ruby
[06:29:32] bronson: has joined #ruby
[06:29:41] rickmasta: has joined #ruby
[06:36:09] ziyadb: has joined #ruby
[06:36:17] SusieDerkins: has joined #ruby
[06:36:56] troulouliou_div2: has joined #ruby
[06:37:15] aganov: has joined #ruby
[06:38:17] stannard: has joined #ruby
[06:38:31] SusieDerkins: Hello, any advice for someone who is considering going to a bootcamp?
[06:40:06] SweetSoulBro: has joined #ruby
[06:40:17] SweetSoulBro: Whoever introduced me to YAML
[06:41:18] Melpaws: has joined #ruby
[06:41:45] resin: has joined #ruby
[06:45:12] intrigueD: has joined #ruby
[06:45:56] chipotle: has joined #ruby
[06:46:29] the_drow: has joined #ruby
[06:46:37] SusieDerkins: has joined #ruby
[06:50:07] yfeldblum: has joined #ruby
[06:50:16] Rodya_: has joined #ruby
[06:50:26] zenergi: has joined #ruby
[06:50:52] Ox0dea: SweetSoulBro: You're welcome. :)
[06:51:02] SweetSoulBro: I have a question
[06:51:05] SweetSoulBro: so I'm working on that thing
[06:51:13] shanemcd: has joined #ruby
[06:51:15] Ox0dea: The IRC RPG thing?
[06:51:18] SweetSoulBro: Let me post a chunk of my markup
[06:51:53] SweetSoulBro: https://eval.in/520062
[06:52:09] SweetSoulBro: If I wanted them all to state "level 3" because i either entered or rolled for 3rd level
[06:52:11] dkam: has joined #ruby
[06:52:47] SweetSoulBro: Do I just go Fast Bab [Level 3] ?
[06:53:38] Ox0dea: If your keys are sequential numbers, you want an Array.
[06:53:59] SweetSoulBro: That was my original thought.
[06:54:12] ur5us: has joined #ruby
[06:54:12] SweetSoulBro: How do I even do arrays in yaml? like normal?
[06:54:25] neanderslob_: has joined #ruby
[06:54:43] Ox0dea: "Like normal", or with dashes for bullets.
[06:54:45] SweetSoulBro: They're not outrightly sequentals
[06:54:50] SkepBrain: has joined #ruby
[06:54:55] SweetSoulBro: Like level 2 and level 3 for Reflex may be the same.
[06:54:56] yardenbar: has joined #ruby
[06:55:07] SweetSoulBro: It may go 1,1,2,2,2,3,3,4,4,5
[06:55:11] neanderslob_: has joined #ruby
[06:55:17] Ox0dea: Those would be values, though, your keys are 1, 2, 3...
[06:56:05] solars: has joined #ruby
[06:56:12] aufi: has joined #ruby
[06:56:18] DanKnox: has joined #ruby
[06:56:40] jamw: has joined #ruby
[06:56:41] SweetSoulBro: ...I'm still lost
[06:57:15] SweetSoulBro: So if my key(THe level 1, 2, 3, etc) are sequential
[06:57:21] DanKnox_: has joined #ruby
[06:57:23] SweetSoulBro: I can just put level 1/2/3/4/5/etc?
[06:59:13] Ox0dea: SweetSoulBro: https://eval.in/520072
[06:59:15] SweetSoulBro: Let me update the list so I can show you what I'm tryi-
[06:59:28] SweetSoulBro: ACTION hugs Ox0dea
[06:59:33] Ox0dea: Happy to help.
[06:59:47] Ox0dea: Be advised that Ruby and YAML arrays are both 0-indexed.
[06:59:52] blackmesa: has joined #ruby
[07:00:14] SweetSoulBro: I learned about the 0 index bullshit way back when i started to learn programming in highschool
[07:00:16] futilegames: has joined #ruby
[07:00:19] Ox0dea: Having a dummy "Level 0" value is probably better than remembering to have to subtract 1.
[07:00:35] SweetSoulBro: Or adding 1 to the value always
[07:01:03] anisha: has joined #ruby
[07:01:40] SweetSoulBro: Now, here's the other question
[07:02:00] SweetSoulBro: If I say "Select 3", to make sure it does that just make sure the selection value is the same?
[07:02:19] srenatus: has joined #ruby
[07:02:24] havenwood: >> 3.step.lazy.map { |n| ((Math::PI/Math::E) ** n).floor }.first 10
[07:02:25] ruby[bot]: havenwood: # => [1, 1, 2, 2, 2, 3, 3, 4, 4, 5] (https://eval.in/520073)
[07:02:39] SweetSoulBro: in your example if I wanted to select the 5th level, i'd just make sure that the same varialbe, is the same for both.
[07:02:53] Ox0dea: SweetSoulBro: Have some Dijkstra: http://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF
[07:03:15] Ox0dea: 0-indexing is objectively superior.
[07:03:25] SweetSoulBro: I'm not saying it's not.
[07:03:34] SweetSoulBro: 0 makes more sense
[07:03:43] SweetSoulBro: the center of everything is not 1
[07:03:46] Ox0dea: You called it bullshit?
[07:03:52] SweetSoulBro: I call a lot of things bullshit.
[07:04:00] Ox0dea: That seems like a bug.
[07:04:09] SweetSoulBro: It's an undocumented feature.
[07:04:44] SweetSoulBro: But yes, thanks as always.
[07:04:48] Ox0dea: No worries.
[07:04:53] SweetSoulBro: If I have any questions(I shouldn't), I'll be back~
[07:04:53] freeze: has joined #ruby
[07:05:23] Don_John: has joined #ruby
[07:07:17] Ox0dea: havenwood: I need a general-purpose sequence-to-equation generator ten years ago.
[07:07:32] last_staff: has joined #ruby
[07:07:35] havenwood: Ox0dea: mmm
[07:07:50] Ox0dea: Still, the OEIS is a godsend.
[07:07:50] rgtk: has joined #ruby
[07:08:51] Deas: has left #ruby: ("Part")
[07:09:00] shiffles: has joined #ruby
[07:11:10] anisha: has joined #ruby
[07:13:38] chouhoulis: has joined #ruby
[07:14:48] Infra-Red: has joined #ruby
[07:16:35] Infra-Red: has joined #ruby
[07:18:27] cih: has joined #ruby
[07:19:42] CloCkWeRX: has joined #ruby
[07:19:49] scepticulous: has joined #ruby
[07:20:15] PolarIce: has joined #ruby
[07:20:22] sandstrom: has joined #ruby
[07:22:16] andikr: has joined #ruby
[07:22:20] tvw: has joined #ruby
[07:26:28] bluOxigen_: has joined #ruby
[07:26:38] mhoungbo: has joined #ruby
[07:27:49] bklane: has joined #ruby
[07:28:21] bluOxigen: has joined #ruby
[07:32:07] SweetSoulBro: has joined #ruby
[07:32:20] SweetSoulBro: I don't think the yaml gem is installed.
[07:32:33] SweetSoulBro: Complication: I'm using Windows.
[07:35:03] clauswitt: has joined #ruby
[07:35:26] [dmp]: has joined #ruby
[07:35:27] frozen3: has joined #ruby
[07:37:34] kent\n: has joined #ruby
[07:38:49] firstdayonthejob: has joined #ruby
[07:39:17] Macaveli: has joined #ruby
[07:45:20] mdw: has joined #ruby
[07:49:04] Macaveli_: has joined #ruby
[07:49:39] LoneHermit: has joined #ruby
[07:51:49] sandstrom: has joined #ruby
[07:52:00] codecop: has joined #ruby
[07:52:39] mlehrer: has joined #ruby
[07:53:06] dkam: has joined #ruby
[07:53:47] skade: has joined #ruby
[07:54:06] bklane_: has joined #ruby
[07:58:06] GriffinHeart: has joined #ruby
[07:58:07] dionysus69: has joined #ruby
[07:59:42] sphex_: has joined #ruby
[07:59:47] Giordano: has joined #ruby
[08:00:09] bluOxigen_: has joined #ruby
[08:00:23] lsmola: has joined #ruby
[08:01:48] DanKnox_: has joined #ruby
[08:01:48] DanKnox: has joined #ruby
[08:03:04] roshanavand: has joined #ruby
[08:03:46] jaiks: has joined #ruby
[08:04:15] chipotle: has joined #ruby
[08:07:05] alphaatom: has joined #ruby
[08:07:31] bklane: has joined #ruby
[08:10:26] weemsledeux: has joined #ruby
[08:10:39] SCHAAP137: has joined #ruby
[08:11:55] jottr_: has joined #ruby
[08:14:33] MuffinPimp: has joined #ruby
[08:15:41] chouhoulis: has joined #ruby
[08:16:30] Macaveli: has joined #ruby
[08:18:46] Melpaws: has joined #ruby
[08:20:18] sepp2k: has joined #ruby
[08:21:31] al2o3-cr: has joined #ruby
[08:23:50] bklane: has joined #ruby
[08:24:43] mwq: has joined #ruby
[08:25:33] fontain: has joined #ruby
[08:25:58] karapetyan: has joined #ruby
[08:26:58] sandstrom: has joined #ruby
[08:27:06] kmckelvin: has joined #ruby
[08:27:15] Macaveli: has joined #ruby
[08:27:57] Macaveli: has joined #ruby
[08:28:03] antgel: has joined #ruby
[08:29:24] Zai00: has joined #ruby
[08:29:41] charlemagne: has joined #ruby
[08:29:55] dkam: has joined #ruby
[08:30:18] the_drow: has joined #ruby
[08:30:50] bronson: has joined #ruby
[08:30:52] c0m0: has joined #ruby
[08:32:34] rgtk: has joined #ruby
[08:32:59] pawnbox: has joined #ruby
[08:33:01] futilegames: has joined #ruby
[08:34:11] aryaching: has joined #ruby
[08:34:45] resin: has joined #ruby
[08:35:46] yfeldblum: has joined #ruby
[08:35:47] norc_: has joined #ruby
[08:36:48] c0ncealed: has joined #ruby
[08:36:55] einarj: has joined #ruby
[08:36:58] johnny56_: has joined #ruby
[08:37:31] charlemagne: has joined #ruby
[08:39:08] stannard: has joined #ruby
[08:43:59] neanderslob: has joined #ruby
[08:48:08] Antiarc: has joined #ruby
[08:48:18] roshanavand: has joined #ruby
[08:50:07] nettoweb: has joined #ruby
[08:50:22] last_staff1: has joined #ruby
[08:50:50] cih: has joined #ruby
[08:52:09] patchedmonkey: has joined #ruby
[08:52:19] pawnbox: has joined #ruby
[08:53:29] astrobunny: has joined #ruby
[08:55:06] blaxter: has joined #ruby
[08:57:05] ta: has joined #ruby
[08:57:10] devbug: has joined #ruby
[09:00:01] stannard: has joined #ruby
[09:00:40] mdw: has joined #ruby
[09:00:41] karapetyan: has joined #ruby
[09:03:51] DanKnox_: has joined #ruby
[09:03:51] DanKnox: has joined #ruby
[09:04:36] Melpaws: has joined #ruby
[09:06:10] marienz: has joined #ruby
[09:09:51] Omen: has joined #ruby
[09:10:12] astrobunny: has joined #ruby
[09:13:45] rdark: has joined #ruby
[09:14:15] minimalism: has joined #ruby
[09:16:28] chouhoulis: has joined #ruby
[09:20:08] william3: has joined #ruby
[09:20:37] RTG`: has joined #ruby
[09:23:25] dangerousdave: has joined #ruby
[09:25:04] shiver: has joined #ruby
[09:25:09] kirillzh: has joined #ruby
[09:27:48] ajaiswal_: has joined #ruby
[09:28:14] ocbtec: has joined #ruby
[09:29:51] cih: has joined #ruby
[09:30:40] dkam: has joined #ruby
[09:30:41] Musashi007: has joined #ruby
[09:30:46] platzhirsch: has joined #ruby
[09:31:37] blur3d: has joined #ruby
[09:32:16] the_drow_: has joined #ruby
[09:32:30] snowbro: has joined #ruby
[09:32:58] paulca: has joined #ruby
[09:33:44] zotherstupidguy: has joined #ruby
[09:33:47] rgtk: has joined #ruby
[09:34:21] pandaant: has joined #ruby
[09:34:47] aganov: has joined #ruby
[09:35:29] karapetyan: has joined #ruby
[09:35:34] unsymbol: has joined #ruby
[09:36:58] blackgoat: has joined #ruby
[09:38:09] ocbtec: has joined #ruby
[09:40:17] baweaver: has joined #ruby
[09:41:56] ex0ns: has joined #ruby
[09:42:07] dmolina: has joined #ruby
[09:42:14] william3: has joined #ruby
[09:43:52] Hobbyboy: has joined #ruby
[09:44:16] roshanavand: has joined #ruby
[09:44:46] graffix222: has joined #ruby
[09:45:36] aibot: has joined #ruby
[09:46:58] atmosx: has joined #ruby
[09:47:11] UtkarshRay: has joined #ruby
[09:49:11] glcx: has joined #ruby
[09:49:11] glcx: has joined #ruby
[09:49:38] rodfersou: has joined #ruby
[09:50:58] Xeago: has joined #ruby
[09:52:15] FooMunki: has joined #ruby
[09:52:54] olblak: has joined #ruby
[09:52:54] soahccc: has joined #ruby
[09:52:54] greenhat: has joined #ruby
[09:52:54] sung: has joined #ruby
[09:52:54] muvbit: has joined #ruby
[09:53:01] heftig: has joined #ruby
[09:53:01] th_: has joined #ruby
[09:53:01] icedragon: has joined #ruby
[09:53:01] jamo: has joined #ruby
[09:53:01] twistedpixels: has joined #ruby
[09:53:01] Drakx: has joined #ruby
[09:53:01] livcd: has joined #ruby
[09:53:01] twistedpixels: has joined #ruby
[09:53:01] Keltia: has joined #ruby
[09:53:01] cscheib: has joined #ruby
[09:53:01] philtr: has joined #ruby
[09:53:01] galeido: has joined #ruby
[09:53:01] galeido: has joined #ruby
[09:53:01] ahuman: has joined #ruby
[09:53:02] arian0n-: has joined #ruby
[09:53:02] patronus: has joined #ruby
[09:53:02] SebastianThorn: has joined #ruby
[09:53:02] rtl: has joined #ruby
[09:53:02] miah: has joined #ruby
[09:53:07] lannonbr: has joined #ruby
[09:53:07] raenk: has joined #ruby
[09:53:07] aep: has joined #ruby
[09:53:07] ljarvis: has joined #ruby
[09:53:07] sung: has joined #ruby
[09:53:07] Xat`: has joined #ruby
[09:53:07] veloutin: has joined #ruby
[09:53:07] spk: has joined #ruby
[09:53:08] shellie_: has joined #ruby
[09:53:08] z3uS: has joined #ruby
[09:53:08] kiki_lamb: has joined #ruby
[09:53:08] Raboo: has joined #ruby
[09:53:08] connor_goodwolf: has joined #ruby
[09:53:08] olspookishmagus: has joined #ruby
[09:53:08] DefV: has joined #ruby
[09:53:08] fourq: has joined #ruby
[09:53:08] Amnez777: has joined #ruby
[09:53:08] majjoha: has joined #ruby
[09:53:08] j0bk: has joined #ruby
[09:53:08] Paradox: has joined #ruby
[09:53:08] heinrich5991: has joined #ruby
[09:53:08] pabs: has joined #ruby
[09:53:08] Petazz: has joined #ruby
[09:53:08] jokester: has joined #ruby
[09:53:08] heidar: has joined #ruby
[09:53:08] elektronaut: has joined #ruby
[09:53:08] Emmanuel_Chanel: has joined #ruby
[09:53:08] Olipro: has joined #ruby
[09:53:09] fuzzyfuzz: has joined #ruby
[09:53:09] xMopxShell: has joined #ruby
[09:53:09] KramerC: has joined #ruby
[09:53:09] sarlalian: has joined #ruby
[09:53:09] AustinMatherne: has joined #ruby
[09:53:09] segmond: has joined #ruby
[09:53:09] Veejay: has joined #ruby
[09:53:09] Diabolik: has joined #ruby
[09:53:09] kloeri: has joined #ruby
[09:53:09] fumduq: has joined #ruby
[09:53:12] moufl: has joined #ruby
[09:53:12] Elysia: has joined #ruby
[09:53:12] FooMunki: has joined #ruby
[09:53:12] \13k: has joined #ruby
[09:53:13] psmolen: has joined #ruby
[09:53:20] borkdude: has joined #ruby
[09:53:20] djbkd: has joined #ruby
[09:53:20] nemesit|znc: has joined #ruby
[09:53:22] Lightsword: has joined #ruby
[09:53:22] berserk_ren: has joined #ruby
[09:53:23] df: has joined #ruby
[09:53:23] zenguy_pc: has joined #ruby
[09:53:23] pocketprotector: has joined #ruby
[09:53:23] davidcelis: has joined #ruby
[09:53:23] davidcelis: has joined #ruby
[09:53:23] ankhers: has joined #ruby
[09:53:24] djellemah: has joined #ruby
[09:53:25] mhenrixon: has joined #ruby
[09:53:27] dellavg: has joined #ruby
[09:53:30] ssm: has joined #ruby
[09:53:32] Olipro_: has joined #ruby
[09:53:34] roger_rabbit: has joined #ruby
[09:53:57] mistym: has joined #ruby
[09:53:58] mistym: has joined #ruby
[09:54:14] contradictioned: has joined #ruby
[09:54:15] kalleth: has joined #ruby
[09:54:33] thomasfedb: has joined #ruby
[09:54:33] william3: has joined #ruby
[09:54:33] ohcibi: has joined #ruby
[09:54:33] artmann: has joined #ruby
[09:54:33] thomasfedb: has joined #ruby
[09:55:15] Utkarsh: has joined #ruby
[09:55:18] cih: has joined #ruby
[09:55:19] devster31: has joined #ruby
[09:55:19] Fire-Dragon-DoL: has joined #ruby
[09:55:19] avelldiroll: has joined #ruby
[09:55:34] g3funk: has joined #ruby
[09:55:34] phrozen77: has joined #ruby
[09:55:35] xybre: has joined #ruby
[09:55:35] kriskropd: has joined #ruby
[09:55:35] dyce_: has joined #ruby
[09:55:35] DenSchub: has joined #ruby
[09:55:35] blackgoat: has joined #ruby
[09:55:35] j0n3: has joined #ruby
[09:55:37] gremax: has joined #ruby
[09:55:37] roshanavand: has joined #ruby
[09:55:50] SuperTux88: has joined #ruby
[09:55:55] sekrit: has joined #ruby
[09:55:58] kalzz: has joined #ruby
[09:55:58] mwq: has left #ruby: ()
[09:56:10] linduxed: has joined #ruby
[09:56:11] sole: has joined #ruby
[09:56:23] brixen: has joined #ruby
[09:56:47] ujjain: has joined #ruby
[09:56:47] ujjain: has joined #ruby
[09:57:21] ljames: has joined #ruby
[09:57:29] Guest56206: has joined #ruby
[09:57:45] silverdust: has joined #ruby
[09:57:47] kallisti5: has joined #ruby
[09:57:53] jzigmund: has joined #ruby
[09:58:04] angiebadillo: has joined #ruby
[09:58:06] jevs: has joined #ruby
[09:58:11] justinweiss: has joined #ruby
[09:58:12] S01780: has joined #ruby
[09:58:28] Eleeleth: has joined #ruby
[09:58:32] epitron: has joined #ruby
[09:58:45] gnarf: has joined #ruby
[09:58:49] nibbo: has joined #ruby
[09:58:59] jcp: has joined #ruby
[09:59:19] mroth: has joined #ruby
[09:59:20] pizzaops: has joined #ruby
[09:59:28] evidex: has joined #ruby
[09:59:43] swgillespie: has joined #ruby
[09:59:48] djbender: has joined #ruby
[09:59:49] HashNuke: has joined #ruby
[09:59:50] daxroc: has joined #ruby
[10:00:01] golgaroth: has joined #ruby
[10:00:20] DukeDave: has joined #ruby
[10:00:29] schaary: has joined #ruby
[10:00:39] jpinnix_______: has joined #ruby
[10:00:57] thesheff17: has joined #ruby
[10:01:01] jabreity: has joined #ruby
[10:01:01] deeprave: has joined #ruby
[10:01:27] cpup: has joined #ruby
[10:01:43] boxrick1: has joined #ruby
[10:02:03] silverdust: has joined #ruby
[10:02:05] joonty: has joined #ruby
[10:02:15] zapata: has joined #ruby
[10:02:19] kapowaz: has joined #ruby
[10:02:22] ELCALOR: has joined #ruby
[10:02:24] gmci: has joined #ruby
[10:02:28] colstrom: has joined #ruby
[10:03:33] tejasmanohar: has joined #ruby
[10:03:49] alxndr: has joined #ruby
[10:03:49] thomasfedb: has joined #ruby
[10:03:49] thomasfedb: has joined #ruby
[10:03:49] ujjain: has joined #ruby
[10:03:49] ujjain: has joined #ruby
[10:03:49] heftig: has joined #ruby
[10:03:49] muvbit: has joined #ruby
[10:03:49] sjohnsen: has joined #ruby
[10:03:53] devster31: has joined #ruby
[10:03:53] zenergi: has joined #ruby
[10:03:55] ocbtec: has joined #ruby
[10:03:55] galeido: has joined #ruby
[10:03:56] galeido: has joined #ruby
[10:03:56] _whitelogger: has joined #ruby
[10:03:57] ddfreyne: has joined #ruby
[10:03:57] Domaldel: has joined #ruby
[10:03:58] jokester: has joined #ruby
[10:03:58] jazzonmymind: has joined #ruby
[10:03:58] andrewvos: has joined #ruby
[10:04:00] jaiks: has joined #ruby
[10:04:07] karapetyan: has joined #ruby
[10:04:07] shevy: has joined #ruby
[10:04:12] pawnbox: has joined #ruby
[10:04:12] william3: has joined #ruby
[10:04:12] Xeago: has joined #ruby
[10:04:12] blackms: has joined #ruby
[10:04:16] shelling__: has joined #ruby
[10:04:20] sepp2k: has joined #ruby
[10:04:40] voker57: has joined #ruby
[10:04:40] voker57: has joined #ruby
[10:04:42] shiver: has joined #ruby
[10:04:42] shiver: has joined #ruby
[10:04:47] borkdude: has joined #ruby
[10:04:49] kalleth: has joined #ruby
[10:04:55] contradictioned: has joined #ruby
[10:04:55] artmann: has joined #ruby
[10:05:00] sarlalian: has joined #ruby
[10:05:08] Nanuq: has joined #ruby
[10:05:10] bodgix: has joined #ruby
[10:05:13] clauswitt: has joined #ruby
[10:05:13] soahccc: has joined #ruby
[10:05:13] cjk101010: has joined #ruby
[10:05:13] ohcibi: has joined #ruby
[10:05:15] phrozen77: has joined #ruby
[10:05:17] blaxter: has joined #ruby
[10:05:23] brixen: has joined #ruby
[10:05:33] st1gma: has joined #ruby
[10:05:34] elektronaut: has joined #ruby
[10:05:35] drPoggs: has joined #ruby
[10:05:41] Trieste: has joined #ruby
[10:05:46] nemesit|znc: has joined #ruby
[10:05:52] modin: has joined #ruby
[10:05:56] johnny56_: has joined #ruby
[10:06:13] RTG`: has joined #ruby
[10:06:36] DanKnox: has joined #ruby
[10:06:43] ggherdov_: has joined #ruby
[10:06:47] kireevco: has joined #ruby
[10:07:00] joaomdmoura__: has joined #ruby
[10:07:31] akahn: has joined #ruby
[10:07:34] akitada: has joined #ruby
[10:07:38] mrfooo: has joined #ruby
[10:07:43] charles81: has joined #ruby
[10:07:46] avdi: has joined #ruby
[10:07:54] zzak__: has joined #ruby
[10:08:16] deepak: has joined #ruby
[10:08:18] j0bk: has joined #ruby
[10:09:07] jamo: has joined #ruby
[10:09:08] trinaldi: has joined #ruby
[10:09:08] livcd: has joined #ruby
[10:09:08] Fire-Dragon-DoL: has joined #ruby
[10:09:08] heinrich5991: has joined #ruby
[10:09:08] Biohazard: has joined #ruby
[10:09:08] parus: has joined #ruby
[10:09:08] ruisantos: has joined #ruby
[10:09:08] Gadgetoid: has joined #ruby
[10:09:08] Zai00: has joined #ruby
[10:09:08] zenguy_pc: has joined #ruby
[10:09:08] shellie_: has joined #ruby
[10:09:08] Suntzu: has joined #ruby
[10:09:08] SkepBrain: has joined #ruby
[10:09:09] mclee: has joined #ruby
[10:09:09] tokik: has joined #ruby
[10:09:09] kallisti5: has joined #ruby
[10:09:09] Emmanuel_Chanel: has joined #ruby
[10:09:09] ESpiney: has joined #ruby
[10:09:09] Koshian: has joined #ruby
[10:09:09] tenderlove: has joined #ruby
[10:09:09] dasher00: has joined #ruby
[10:09:09] n1colas: has joined #ruby
[10:09:09] william3: has joined #ruby
[10:09:09] spacemud: has joined #ruby
[10:09:09] tercenya: has joined #ruby
[10:09:09] Infra-Red: has joined #ruby
[10:09:09] Paradox: has joined #ruby
[10:09:09] ocbtec: has joined #ruby
[10:09:10] cookiez: has joined #ruby
[10:09:10] nettoweb: has joined #ruby
[10:09:10] FooMunki: has joined #ruby
[10:09:10] olblak: has joined #ruby
[10:09:10] Hobbyboy: has joined #ruby
[10:09:10] DanKnox_: has joined #ruby
[10:09:11] gagrio: has joined #ruby
[10:09:19] Utkarsh: has joined #ruby
[10:09:24] chipotle: has joined #ruby
[10:09:28] crowell: has joined #ruby
[10:09:28] crowell: has joined #ruby
[10:09:46] thejoecarroll: has joined #ruby
[10:10:04] Mekkis: has joined #ruby
[10:10:05] rikai: has joined #ruby
[10:10:09] sonne: has joined #ruby
[10:10:09] knowtheory: has joined #ruby
[10:10:21] microt: has joined #ruby
[10:10:27] DenSchub: has joined #ruby
[10:10:34] berserk_ren: has joined #ruby
[10:10:39] EvilRoey: has joined #ruby
[10:10:39] yardenbar: has joined #ruby
[10:10:50] groundnuty: has joined #ruby
[10:11:16] gnarf: has joined #ruby
[10:11:46] pseudocumenyl: has joined #ruby
[10:11:54] S01780: has joined #ruby
[10:11:59] dellavg: has joined #ruby
[10:12:00] jmhmccr: has joined #ruby
[10:12:02] dajobat: has joined #ruby
[10:12:03] c355E3B: has joined #ruby
[10:12:16] SuperTux88: has joined #ruby
[10:12:29] gremax: has joined #ruby
[10:12:30] derailed: has joined #ruby
[10:12:45] ex0ns: has joined #ruby
[10:12:45] justinweiss: has joined #ruby
[10:12:54] Terens: has joined #ruby
[10:13:04] cbetta: has joined #ruby
[10:13:06] spastorino: has joined #ruby
[10:13:14] mroth: has joined #ruby
[10:13:27] pmarreck: has joined #ruby
[10:13:45] bove: has joined #ruby
[10:13:52] swgillespie: has joined #ruby
[10:13:56] deeprave: has joined #ruby
[10:13:59] kapowaz: has joined #ruby
[10:14:07] krasnus: has joined #ruby
[10:14:51] benlakey: has joined #ruby
[10:14:56] asprillia: has joined #ruby
[10:15:00] crayfishx: has joined #ruby
[10:15:03] jottr_: has joined #ruby
[10:15:08] joconcepts: has joined #ruby
[10:15:17] mark1: has joined #ruby
[10:15:32] Arcaire: has joined #ruby
[10:17:08] chouhoulis: has joined #ruby
[10:17:23] Guest12896: has joined #ruby
[10:19:37] p1k: has joined #ruby
[10:22:04] joonty: has joined #ruby
[10:23:13] andrewvos: has joined #ruby
[10:24:30] nofxx: has joined #ruby
[10:27:08] dkam: has joined #ruby
[10:27:29] Melpaws1: has joined #ruby
[10:27:33] shanemcd: has joined #ruby
[10:31:24] aryaching_: has joined #ruby
[10:31:47] platzhirsch: has left #ruby: ()
[10:33:29] graffix222: has joined #ruby
[10:33:52] aryaching: has joined #ruby
[10:34:26] jamw: has joined #ruby
[10:34:47] yfeldblum: has joined #ruby
[10:34:59] Hounddog: has joined #ruby
[10:35:42] yfeldblum: has joined #ruby
[10:36:01] tvw: has joined #ruby
[10:40:04] aryaching_: has joined #ruby
[10:40:56] minimalism: has joined #ruby
[10:41:10] sgambino: has joined #ruby
[10:41:55] araujo: has joined #ruby
[10:41:55] araujo: has joined #ruby
[10:43:44] araujo: has joined #ruby
[10:48:29] gagrio: has joined #ruby
[10:48:38] andrewvos: has joined #ruby
[19:40:59] helpa: has joined #ruby
[19:41:05] Radar: cschneid: Erubis I think
[19:41:26] cschneid: Radar: I ended up researching a bit more, ERB 2.0+ seems to support that syntax if you set a flag when you ERB.new
[19:41:50] devbug: has joined #ruby
[19:42:05] cschneid: but I'm writing a library (using ERB to customize yaml config files), and have to deal w/ older rubies.
[19:42:14] cschneid: for now, I'll just tell customers: "Don't do that". :)
[19:43:18] sysanthrope: has joined #ruby
[19:44:52] ur5us: has joined #ruby
[19:44:56] gizmore: has joined #ruby
[19:45:03] ixti: has joined #ruby
[19:45:22] idefine: has joined #ruby
[19:45:23] FernandoBasso: has joined #ruby
[19:46:08] bklane: has joined #ruby
[19:48:12] ElderFain: has joined #ruby
[19:48:12] ElderFain: has joined #ruby
[19:50:26] intrigueD: has joined #ruby
[19:51:53] darkf: has joined #ruby
[19:52:38] roshanavand: has joined #ruby
[19:52:43] jottr: has joined #ruby
[19:53:02] dopie: has joined #ruby
[19:54:46] dopie: has joined #ruby
[19:57:51] dopie: has joined #ruby
[19:57:59] kirillzh: has joined #ruby
[19:58:03] casadei: has joined #ruby
[19:58:04] aegis3121: has joined #ruby
[19:58:07] idefine: has joined #ruby
[19:58:23] Frem: has joined #ruby
[19:59:03] stannard: has joined #ruby
[20:03:06] freerobby: has joined #ruby
[20:03:22] Melpaws: has joined #ruby
[20:04:34] sandstrom: has joined #ruby
[20:04:51] TomyLobo: has joined #ruby
[20:05:29] kith: has joined #ruby
[20:06:47] davedev24: has joined #ruby
[20:06:53] idefine: has joined #ruby
[20:07:08] blackmesa: has joined #ruby
[20:07:52] DanKnox: has joined #ruby
[20:07:53] DanKnox_: has joined #ruby
[20:08:41] karapetyan: has joined #ruby
[20:09:22] A124: has joined #ruby
[20:09:33] replay: has joined #ruby
[20:10:00] blandflakes: has joined #ruby
[20:10:08] baweaver: has joined #ruby
[20:10:48] Infra-Red: has joined #ruby
[20:12:16] beanHolez: has joined #ruby
[20:12:17] zacts: has joined #ruby
[20:12:46] dopie: has joined #ruby
[20:15:05] cpruitt: has joined #ruby
[20:18:34] william3: has joined #ruby
[20:19:08] aaeron: has joined #ruby
[20:19:51] eldariof: has joined #ruby
[20:21:17] arthropododo: has joined #ruby
[20:21:19] crowell: has joined #ruby
[20:23:36] babblebre: has joined #ruby
[20:24:03] jdelaney: has joined #ruby
[20:24:42] dkam__: has joined #ruby
[20:26:11] stannard: has joined #ruby
[20:26:18] DanielI: has joined #ruby
[20:27:18] zackzorman: has joined #ruby
[20:29:24] s00pcan_: has joined #ruby
[20:29:37] skade: has joined #ruby
[20:30:55] idefine: has joined #ruby
[20:31:35] DanKnox: has joined #ruby
[20:31:52] rbennacer: has joined #ruby
[20:31:56] sysanthrope: has joined #ruby
[20:32:38] al2o3-cr: has joined #ruby
[20:34:24] chatzilla: shevy: I'd forgotten, Py doesn't support true consts either but you can whip up some code for it http://code.activestate.com/recipes/65207-constants-in-python/?in=user-97991
[20:34:37] yqt: has joined #ruby
[20:35:18] stannard: has joined #ruby
[20:36:40] yfeldblum: has joined #ruby
[20:37:00] shevy: chatzilla there are some things that python does probably better. I think one complaint is in regards to its import system, ruby has mostly just require and load, which works fine because it is super simple but does not allow for much advanced stuff/control
[20:37:07] shevy: perhaps that will change with ruby 3.x!
[20:37:30] shevy: god I hate python syntax ... def __init__(self,i):
[20:37:42] PedramT: has joined #ruby
[20:38:17] jamw: has joined #ruby
[20:38:29] Zarthus: python oop is awful, yeah
[20:38:31] jottr: has joined #ruby
[20:38:51] Zarthus: I hope they get rid of the whole `self' thing at least.
[20:38:59] EvilRoey: Zarthus: ok hey
[20:39:02] EvilRoey: so ou say it's awful
[20:39:05] EvilRoey: I'm coming from the Python side
[20:39:12] EvilRoey: what do you like about how Ruby does it?
[20:39:16] idefine: has joined #ruby
[20:39:19] nfk|laptop: has joined #ruby
[20:39:26] Zarthus: EvilRoey: This is nothing to compare with ruby (nor really an argument fit for this channel)
[20:39:45] EvilRoey: I mean I'm not arguing, I'm listening to see what I can gain from Ruby
[20:39:49] Zarthus: I've written enough code in python and chose to do it in OOP, and writing it was not a pleasure. that's all
[20:40:03] EvilRoey: *so* with that, what do you like about how Ruby does it?
[20:40:19] EvilRoey: (again not arguing, just asking sincerely as I want to get into Ruby more, myself)
[20:40:20] Zarthus: I mean, for one, ruby doesn't require you to pass self in every method, or has the complexity of import statements
[20:40:31] Zarthus: I also don't remember but I don't think python has private/protected
[20:40:33] shevy: EvilRoey you just have to scroll up for the last 2 hours or so :P
[20:40:40] EvilRoey: when you mean complexity of import statements, what do you mean? (like, how does Ruby do it?)
[20:40:45] EvilRoey: shevy: aye ok :)"
[20:41:23] EvilRoey: I've done PYthon since 1997 and am madly in love with it. Still I can always learn new languages without getting a complex about judging
[20:41:24] shevy: we should probably come up with some import system for ruby 3.x too
[20:41:29] EvilRoey: *can always stand to learn new languages
[20:41:38] benlieb: has joined #ruby
[20:41:50] shevy: that's almost 20 years
[20:42:00] EvilRoey: addiction runs deep what can I say heh
[20:42:21] EvilRoey: I mean I started with C when I was 10 back in 1990-ish, then C++ in 1993, then Python since 1997
[20:42:24] shevy: I think I have been doing ruby since ... hmm ... perhaps 12 years I think... roughly
[20:42:33] EvilRoey: shevy: how old are you now?
[20:42:40] shevy: I am old now
[20:42:53] shevy: I started late too :)
[20:43:09] shevy: chris2 started when he was like 6 years or something :P
[20:43:10] Zarthus: EvilRoey: this part in particular "from core import module; self.ModuleHandler = module.ModuleHandler()" -- granted you can get rid of the module.* thing, it always felt a bit weird.
[20:43:22] shevy: Zarthus the ugly self.!!!
[20:44:19] EvilRoey: Zarthus: ok, and how in Ruby?
[20:44:22] al2o3-cr: Lua oop: Foo = { new = function(self, x) o = {}; o.x = x; self.__index = self; setmetatable(o, self); return o end }; f = Foo:new("foo"); print(f.x) :P
[20:44:25] chatzilla: EvilRoey: I wish I'd found Py or Ruby in 1997. All I knew existed back then was qbasic, perl and vb.
[20:44:43] EvilRoey: chatzilla: before that, I only knew a little TCL and Perl
[20:44:54] EvilRoey: that's what the scripting world look like to me as well
[20:44:55] Zarthus: EvilRoey: `require 'modhandler'; @mh = ModuleHandler.new` i'd reckoon
[20:45:33] Kero: has joined #ruby
[20:45:42] chatzilla: EvilRoey: I still regret not getting into RoR back in ~05 when it hit big. I had friends doing it. Just peeking in today. I'd love to be an old Ruby/RoR pro
[20:46:06] al2o3-cr: oops thought this was #ruby-offtopic :(
[20:46:14] Zarthus: I'm excited to program ruby in 2016, because it seems to have decent windows support now :P
[20:46:24] Zarthus: Yes, sir. I do like hurting myself. But I'm not suicidal.
[20:46:47] s00pcan_: has joined #ruby
[20:46:58] rbennacer: has joined #ruby
[20:47:06] nogic: has joined #ruby
[20:47:15] EvilRoey: Zarthus: ahhh ok
[20:47:17] Zarthus: anyways, if anything, ruby has a lot of sugar that python doesn't
[20:47:26] steffkes: has joined #ruby
[20:47:27] steffkes: has joined #ruby
[20:47:29] EvilRoey: chatzilla: you can still do it, just practice
[20:47:38] Zarthus: for being a scripting language, python still forces you to type quite a bit of redundant things
[20:47:44] last_staff: has joined #ruby
[20:47:57] chatzilla: Zarthus: years ago, the weak Windows support was one main reason I went with Python.. just wanted that possibility open
[20:47:58] Zarthus: and while procedural is okay, classes really just... don't... work.
[20:48:37] chatzilla: Zarthus: good to know that has improved, I tried researching on that recently in fact
[20:48:43] Asher: has joined #ruby
[20:48:51] shevy: I never got into Tcl much, I found it to be quite weird. Perl was how I sorta started
[20:49:18] Zarthus: I started with my IRC client (mIRC) and GTA:San Andreas multiplayer (PAWN)
[20:49:25] shevy: so you were a gamer
[20:49:25] Zarthus: moved on to PHP after that
[20:49:32] Zarthus: My life was full of bad decisions.
[20:49:47] shevy: my life still is!
[20:49:50] chatzilla: I've been a hobbyist since my QBASIC days, avoided becoming a professional dev because everyone kept spooking me about India and outsourcing. I regret listening and going another way for my day job since this is my passion
[20:50:03] DanKnox: has joined #ruby
[20:50:04] DanKnox_: has joined #ruby
[20:50:05] sankaber: has joined #ruby
[20:50:14] Zarthus: I'm pretty young in those regards, 2010 is when I seriously started.
[20:50:31] Zarthus: granted, I'm 20. and I'm just making you all feel old :(
[20:51:02] snowy: has joined #ruby
[20:51:21] idefine: has joined #ruby
[20:51:36] chatzilla: I'm 34, I'm sure I have plenty I could learn from you.. and instruction is welcome ! :D
[20:52:17] al2o3-cr: i'm 177 years young :P
[20:52:49] chatzilla: shoot, I'd work for a 20 year old manager if I could find a willing, open and kind place to start my dev career path. I dont care.
[20:53:01] Zarthus: I'm not a manager though. :P
[20:53:21] Zarthus: ACTION currently is commiting <strike>slavery</strike> internship at a local startup
[20:53:23] agentmeerkat: has joined #ruby
[20:53:54] Guest25605: has joined #ruby
[20:54:04] chatzilla: ^ that is what I do not want. I've worked insane hours as a devops monkey. I'm over granting myself cancer + diabetes for some abusive employer for not enough money.
[20:54:36] shevy: I wanna be 20 too!
[20:54:48] al2o3-cr: shevy: you are 20 :P
[20:55:18] xpt: "I'm not 50 I'm 18 with 32 years of experience"
[20:55:22] _djbkd: has joined #ruby
[20:55:46] shevy: hey that would still be possible
[20:55:59] shevy: but they are looking for 25 years old folks with 50 years of experience! in rails!!!
[20:56:13] al2o3-cr: i'm 10 in the head some days
[20:57:16] Coldblackice: has joined #ruby
[20:58:34] toretore: has joined #ruby
[20:58:59] dkam__: has joined #ruby
[20:59:05] JakFrist: has joined #ruby
[20:59:17] Infra-Red: has joined #ruby
[20:59:23] slash_nick: chatzilla: whoa, cancer?
[20:59:26] idefine: has joined #ruby
[20:59:57] tfitts: has joined #ruby
[21:00:14] slash_nick: diabetes makes perfect sense :)
[21:00:30] apeiros: xpt: hehe, love that
[21:00:36] slash_nick: i'm worried there's some heightened cancer risk for developers
[21:00:38] tfitts: I'm trying to use https://github.com/nehresma/cupsffi and I have cups installed on my system, but when I try to require it I get an error that says libcups not installed
[21:00:46] chatzilla: slash_nick: coworker of mine is only 30 and came down with stage 4 colon cancer. i partially blame the stress of his 24/7 pager as an influence involved
[21:01:34] slash_nick: yikes... ok. i'll try and remember to take more deep breaths, stand up breaks, whatnot
[21:01:40] shanemcd: has joined #ruby
[21:02:05] FooMunki: has joined #ruby
[21:02:37] idefine_: has joined #ruby
[21:02:41] Zarthus: remember not to sit in your chair for 8 hours straight!
[21:02:57] m8: has joined #ruby
[21:03:03] Zarthus: a small walk to the coffee machine every hour is good for your health.
[21:03:19] chatzilla: treadmill desk if you work at home like me
[21:03:36] baweaver: has joined #ruby
[21:03:49] aaeron: has joined #ruby
[21:03:50] DoubleMalt: has joined #ruby
[21:03:51] cdg: has joined #ruby
[21:04:00] al2o3-cr: has joined #ruby
[21:05:06] mdw: has joined #ruby
[21:06:29] idefine_: has joined #ruby
[21:06:32] eam: you can't get cancer from sitting
[21:07:00] mfb2: has joined #ruby
[21:07:16] idefine: has joined #ruby
[21:07:36] Cohedrin: has joined #ruby
[21:07:44] stannard: has joined #ruby
[21:07:55] htmldrum: has joined #ruby
[21:08:44] gizless: has joined #ruby
[21:13:46] poweratom__: has joined #ruby
[21:14:14] william3: has joined #ruby
[21:14:50] idefine: has joined #ruby
[21:15:11] shredding: has joined #ruby
[21:17:52] the_drow: has joined #ruby
[21:19:01] shanemcd: has joined #ruby
[21:20:12] PedramT_: has joined #ruby
[21:21:31] thelacce: has joined #ruby
[21:22:54] firstdayonthejob: has joined #ruby
[21:24:13] al2o3-cr: has joined #ruby
[21:25:59] sinkensabe: has joined #ruby
[21:26:47] shevy: tfitts you may have to install cups first?
[21:27:01] shevy: http://www.cups.org/software/2.1.3/cups-2.1.3-source.tar.bz2
[21:28:06] roshanavand: has joined #ruby
[21:28:24] chipotle: has joined #ruby
[21:31:39] PedramT: has joined #ruby
[21:32:10] wprice_: has joined #ruby
[21:33:32] flughafen: has joined #ruby
[21:33:52] PedramT_: has joined #ruby
[21:34:34] blackmesa: has joined #ruby
[21:34:48] PedramT__: has joined #ruby
[21:37:14] al2o3-cr: has joined #ruby
[21:37:23] idefine: has joined #ruby
[21:38:05] ping-pong: has joined #ruby
[21:40:12] marr: has joined #ruby
[21:40:15] fullofcaffeine: has joined #ruby
[21:41:18] darix: tfitts: you might need the devel package of your distro installed
[21:41:27] darix: so you have the .so symlink
[21:41:34] roshanavand: has joined #ruby
[21:43:04] PedramT: has joined #ruby
[21:43:58] rakm: has joined #ruby
[21:45:26] trinaldi: has joined #ruby
[21:50:45] PedramT: has joined #ruby
[21:52:27] DanKnox: has joined #ruby
[21:52:28] DanKnox_: has joined #ruby
[21:52:39] sinkensabe: has joined #ruby
[21:54:45] TomyLobo: treadmill desk... always reminds me of this: https://www.youtube.com/watch?v=fuS-3HSnpq4#t=11.7
[21:55:08] aegis3121: has joined #ruby
[21:55:23] tvw: has joined #ruby
[21:56:00] idefine: has joined #ruby
[21:56:45] ping-pong: has joined #ruby
[21:57:28] Xiti: has joined #ruby
[21:58:05] skade: has joined #ruby
[21:58:31] PedramT_: has joined #ruby
[21:58:37] jdelaney: has joined #ruby
[21:59:44] dkam__: has joined #ruby
[21:59:50] idefine: has joined #ruby
[22:00:33] yxhuvud: has joined #ruby
[22:00:49] poweratom__: has joined #ruby
[22:01:12] nettoweb: has joined #ruby
[22:01:26] poweratom___: has joined #ruby
[22:02:58] shevy: was a bit late for first april
[22:04:10] stevemackinnon: has joined #ruby
[22:04:49] shevy: TomyLobo isn't that unconstitutional? like you know, torture
[22:04:50] sdothum: has joined #ruby
[22:05:19] dlitvak_: has joined #ruby
[22:05:24] nettoweb: has joined #ruby
[22:06:51] dlitvak__: has joined #ruby
[22:08:08] PedramT: has joined #ruby
[22:10:20] decoponyo: has joined #ruby
[22:10:22] sinkensabe: has joined #ruby
[22:11:45] graffix: has joined #ruby
[22:12:09] Spami: has joined #ruby
[22:12:34] firstdayonthejob: has joined #ruby
[22:12:55] _djbkd: has joined #ruby
[22:13:05] PedramT_: has joined #ruby
[22:13:27] TomyLobo: shevy, nah, it's good for your colon to walk once in a while
[22:13:50] symm-: has joined #ruby
[22:13:55] TomyLobo: you set it to walking speed, not to usain bolt
[22:14:42] dkam__: has joined #ruby
[22:17:10] steffkes: has joined #ruby
[22:17:10] steffkes: has joined #ruby
[22:18:17] jottr: has joined #ruby
[22:19:20] PedramT: has joined #ruby
[22:19:33] tulak: has joined #ruby
[22:19:55] dkam__: has joined #ruby
[22:20:04] sinkensabe: has joined #ruby
[22:20:14] idefine: has joined #ruby
[22:20:35] idefine: has joined #ruby
[22:20:56] poweratom____: has joined #ruby
[22:21:21] DoubleMalt: has joined #ruby
[22:22:24] poweratom______: has joined #ruby
[22:22:55] blackmesa: has joined #ruby
[22:25:19] Azure: has joined #ruby
[22:26:22] shanemcd: has joined #ruby
[22:27:43] devbug: has joined #ruby
[22:27:47] solocshaw: has joined #ruby
[22:27:55] crdpink2: has joined #ruby
[22:28:46] binns: has joined #ruby
[22:29:54] idefine_: has joined #ruby
[22:30:43] mfb2: has joined #ruby
[22:31:01] binns: has left #ruby: ()
[22:35:06] swills: has joined #ruby
[22:35:11] weemsledeux: has joined #ruby
[22:36:55] Maletor: has joined #ruby
[22:37:03] shanemcd: has joined #ruby
[22:38:26] yenic: 1 to 2 mph tops. it's good for more than just your colon, lose 40lbs in a year and remove all sorts of health nasties
[22:38:58] skade: has joined #ruby
[22:40:31] tatsuo: has joined #ruby
[22:40:35] eam: exercise is mostly irrelevant for weight loss -- caloric intake dominates
[22:41:09] yenic: if you're not fat- you may well be storing fat in and around your organs. which is worse because you dont know unlike us traditional fatties
[22:41:21] yenic: i lost 40lbs walking on a treadmill desk 5 hours a day :)
[22:41:59] Xeago: has joined #ruby
[22:42:19] zenlot1: has joined #ruby
[22:42:52] rbennacer: has joined #ruby
[22:44:10] railsForDaiz: has joined #ruby
[22:46:17] TomyLobo: and you can too! order now!
[22:46:21] swills: has joined #ruby
[22:46:40] riceandbeans: if foo = 1 and bar = 2, how would I said, if foo == 1 or bar == 2 but not if both foo == 1 and bar == 2, do this?
[22:47:00] TomyLobo: riceandbeans, xor
[22:47:12] al2o3-cr: best way to lose weight SWINMMING if you a little larger than life :P
[22:47:28] al2o3-cr: without the 'N'
[22:47:58] riceandbeans: TomyLobo: just use ^ or is there a word too?
[22:48:11] Ox0dea: riceandbeans: That's the XOR operator for integers.
[22:48:11] riceandbeans: like, can I say if foo == 1 xor bar == 2 ?
[22:48:17] Ox0dea: But that'd be interesting.
[22:48:39] spacemud: has joined #ruby
[22:48:51] riceandbeans: let's say it's a string or a boolean
[22:48:59] eam: I mean, if you want it to be clear you can literally write: if (foo == 1 or bar == 2) and not (foo == 1 and bar == 2)
[22:49:18] riceandbeans: eam: :\ yeah...I guess...
[22:49:25] Ox0dea: riceandbeans: `if [foo == 1, bar == 2].count(true) == 1`
[22:49:28] aryaching: has joined #ruby
[22:49:30] eam: "if you have to ask about an operator, your colleagues probably won't understand it either"
[22:50:13] eam: the way you decided to express it in english is probably optimal for human interpretation
[22:50:26] riceandbeans: Ox0dea: is that the best way to do it?
[22:51:04] Ox0dea: riceandbeans: That's the most intention-revealing way to do logical XOR if that's what you *actually* need to do.
[22:51:18] Ox0dea: Better would probably be to restructure your thing so that it's not what you need to do. :P
[22:51:27] riceandbeans: here's the idea
[22:51:36] riceandbeans: I want to track if an env is set to do something
[22:51:44] riceandbeans: like, prod, preprod, dev
[22:51:47] TomyLobo: riceandbeans, try != as xor
[22:51:55] chris2: my ruby has boolean ^...
[22:52:03] Ox0dea: I keep forgetting that!
[22:52:05] TomyLobo: if (foo == 1) != (bar == 2)
[22:52:15] Ox0dea: Or just ^ as chris2 suggests.
[22:52:24] riceandbeans: or well... let's say multiple prod envs
[22:52:29] riceandbeans: like say prod1 and prod2
[22:52:33] TomyLobo: well i assumed people are testing things before saying they dont work
[22:52:49] rakm: has joined #ruby
[22:52:52] riceandbeans: so, if prod1 is set for certain action, and prod2 is, as a safety feature, don't do anything, don't let both operate concurrently on something
[22:52:56] chris2: i dont ;)
[22:53:19] riceandbeans: only let prod2 do said action if prod1 is not set to and vice versa
[22:53:34] riceandbeans: prevent concurrent envs from any potential of concurrent downtime
[22:53:34] Ox0dea: Sure, calls for XOR.
[22:53:53] intrigueD: has joined #ruby
[22:53:53] TomyLobo: but if you have n prods, sum them up
[22:54:39] riceandbeans: Ox0dea: so you'd be like, dev = 1 or dev = 0 and prod1 = 1 or prod1 = 0 and do if ( prod1 ^ prod2 ^ prod3 ) ?
[22:54:50] Ox0dea: Saints preserve us!
[22:54:57] Ox0dea: >> [true, false, true].reduce :^
[22:54:58] ruby[bot]: Ox0dea: # => false (https://eval.in/520567)
[22:55:27] riceandbeans: I don't understand
[22:55:43] Rodya_: has joined #ruby
[22:56:02] Ox0dea: `a op b op c op d` == `[a,b,c,d].reduce op`
[22:56:38] TomyLobo: but as you can see, that wont work
[22:56:54] dkam__: has joined #ruby
[22:56:56] Ox0dea: And we're back to `count(true) == 1`.
[22:57:00] Ox0dea: Fancy that.
[22:57:07] TomyLobo: [true, true, true].reduce :^
[22:57:13] TomyLobo: >> [true, true, true].reduce :^
[22:57:14] ruby[bot]: TomyLobo: # => true (https://eval.in/520569)
[22:57:35] DanKnox: has joined #ruby
[22:57:36] DanKnox_: has joined #ruby
[22:57:45] eam: it sounds like riceandbeans actually wants #one?
[22:57:58] TomyLobo: >> [true, true, true].count(true) == 1
[22:58:00] ruby[bot]: TomyLobo: # => false (https://eval.in/520570)
[22:58:04] skade: has joined #ruby
[22:58:20] eam: >> [true, false, false, false, true].one? { |x| x }
[22:58:30] Ox0dea: eam: No need for the explicit block there.
[22:58:38] riceandbeans: the hell was that?
[22:58:39] eam: ah is it the arg by default?
[22:58:49] havenwood: &:itself, it knows!
[22:58:49] eam: riceandbeans: just use #one?
[22:59:07] eam: if you have a list of things and you want exactly one of them to be true, that's your method
[22:59:13] riceandbeans: >> [true, false, true, false].one?
[22:59:14] ruby[bot]: riceandbeans: # => false (https://eval.in/520571)
[22:59:22] riceandbeans: >> [true, false, true, true].one?
[22:59:23] ruby[bot]: riceandbeans: # => false (https://eval.in/520573)
[22:59:29] riceandbeans: >> [true, true, true, true].one?
[22:59:30] ruby[bot]: riceandbeans: # => false (https://eval.in/520574)
[22:59:43] eam: riceandbeans: only one true, the rest must be false
[22:59:48] riceandbeans: >> [true, false, false, false].one?
[22:59:54] havenwood: riceandbeans: true
[23:00:07] riceandbeans: havenwood: why didn't the bot answer?
[23:00:16] havenwood: riceandbeans: bot's shift is over, I'm on call now
[23:01:00] riceandbeans: >> puts "riceandbeans is the nicest guy in the world and he deserves a raise."
[23:01:01] ruby[bot]: riceandbeans: # => riceandbeans is the nicest guy in the world and he deserves a raise. ...check link for more (https://eval.in/520578)
[23:01:12] riceandbeans: havenwood: where were you at man?
[23:01:22] havenwood: riceandbeans: nil
[23:02:18] riceandbeans: let's try this one more time....
[23:02:24] riceandbeans: >> [true, false, false, false].one?
[23:02:25] ruby[bot]: riceandbeans: # => true (https://eval.in/520581)
[23:02:31] riceandbeans: ok, works for me
[23:02:40] spacemud: has joined #ruby
[23:02:45] Ox0dea: See also: #any?, #all?, and #none?.
[23:03:06] riceandbeans: please no, I'm barely grasping this at .one?
[23:03:13] TomyLobo: there's no #two?? aww
[23:03:21] dopamean_: has joined #ruby
[23:03:25] baweaver: has joined #ruby
[23:03:47] aryaching: has joined #ruby
[23:03:47] eam: reiterating my call to add ???? methods
[23:03:51] Ox0dea: And #count doesn't use the same semantics. :/
[23:03:54] idefine: has joined #ruby
[23:03:59] Ox0dea: >> [true, false, nil].count
[23:04:00] ruby[bot]: Ox0dea: # => 3 (https://eval.in/520583)
[23:04:07] idefine: has joined #ruby
[23:04:10] riceandbeans: ???? methods?
[23:04:15] riceandbeans: predicate methods?
[23:04:23] Ox0dea: Super predicates!
[23:04:26] eam: four question marks would raise an exception instead of returning false
[23:04:30] TomyLobo: >> [true, false, nil].count(true)
[23:04:31] ruby[bot]: TomyLobo: # => 1 (https://eval.in/520584)
[23:04:43] Ox0dea: >> [true, false, nil].count { |x| x } # TomyLobo
[23:04:44] ruby[bot]: Ox0dea: # => 1 (https://eval.in/520585)
[23:04:50] eam: so you could be like what? It's num.zero???? # blow up if true, AYFKM
[23:04:52] GriffinHeart: has joined #ruby
[23:05:09] havenwood: >> module Enumerable; def two?; self.select(&:itself).size == 2 end end; [true, false, true].two?
[23:05:10] ruby[bot]: havenwood: # => true (https://eval.in/520586)
[23:05:18] lucasb: has joined #ruby
[23:05:27] tulak_: has joined #ruby
[23:05:31] TomyLobo: havenwood, optimize it :P
[23:05:33] eam: maybe four exclamation points could just unlink $0 and exit!
[23:05:36] havenwood: >> -0.negative?
[23:05:37] ruby[bot]: havenwood: # => false (https://eval.in/520587)
[23:06:00] Ox0dea: Ruby also doesn't have -NaN. :/
[23:06:06] Ox0dea: But it does have -Infinity.
[23:06:13] eam: well, that's because IEEE doesn't
[23:06:15] sdothum: has joined #ruby
[23:06:20] lucasb: shevy: ping. still around?
[23:06:23] eam: it does?
[23:06:32] dlitvak: has joined #ruby
[23:06:40] havenwood: >> (-Float::INFINITY).negative?
[23:06:41] ruby[bot]: havenwood: # => true (https://eval.in/520588)
[23:06:41] shevy: lucasb sorta... slowly entering sleepy mode
[23:06:50] skade: has joined #ruby
[23:07:00] lucasb: shevy: I saw this: https://bugs.ruby-lang.org/issues/9969
[23:07:01] eam: wow, so it does -- but what the heck does it mean
[23:07:04] TomyLobo: >> 1/(-1/0.0)
[23:07:05] ruby[bot]: TomyLobo: # => -0.0 (https://eval.in/520589)
[23:07:11] lucasb: shevy: I fully support your idea :)
[23:07:29] ruby[bot]: TomyLobo: # => -0.0 (https://eval.in/520590)
[23:07:45] shevy: lucasb ah... I completely forgot about that :)
[23:07:49] TomyLobo: >> (-0.0).negative?
[23:07:50] ruby[bot]: TomyLobo: # => false (https://eval.in/520591)
[23:08:35] lucasb: shevy: I made a comment on #10121. I didn't see the #9969 before.
[23:08:46] shevy: lucasb I am thinking of a bigger thing! some import system for ruby... but fitting to ruby, not just a copy/paste of python
[23:08:48] Eiam_: has joined #ruby
[23:09:08] shevy: lucasb I can't remember anything, I forget a lot
[23:09:16] TomyLobo: >> (1/(-1/0.0)).negative? # sorry, my ruby has no #negative?
[23:09:17] ruby[bot]: TomyLobo: # => false (https://eval.in/520592)
[23:09:36] al2o3-cr: >> 0**0 # like wtf but rfc...
[23:09:36] tulak: has joined #ruby
[23:09:37] ruby[bot]: al2o3-cr: # => 1 (https://eval.in/520593)
[23:09:45] shevy: I remember that, in the past, I would modify class String, class Dir etc...
[23:09:56] shevy: but distributing that to other people is cumbersome
[23:10:35] FernandoBasso: has joined #ruby
[23:10:41] TomyLobo: al2o3-cr, 0 supremacy!
[23:11:42] roshanavand: has joined #ruby
[23:12:01] TomyLobo: http://www.wolframalpha.com/input/?i=0%5E0 WA has it right
[23:12:07] dopamean_: has joined #ruby
[23:12:09] TomyLobo: anyway, sleep time
[23:12:29] unsymbol: has joined #ruby
[23:12:34] ur5us: has joined #ruby
[23:13:31] jottr: has joined #ruby
[23:13:53] x64-: has joined #ruby
[23:15:05] al2o3-cr: this is true
[23:15:09] al2o3-cr: >> -0 == +0
[23:15:10] ruby[bot]: al2o3-cr: # => true (https://eval.in/520594)
[23:15:23] aaeron: has joined #ruby
[23:15:47] eam: al2o3-cr: well there's no such thing as a negative zero fixnum
[23:15:59] snowy: has joined #ruby
[23:16:10] al2o3-cr: or positive for that matter
[23:17:42] eam: al2o3-cr: in integer math, yes. With floats zero is signed
[23:17:44] skade: has joined #ruby
[23:18:10] al2o3-cr: in maths in general non is applicable
[23:18:13] eam: strictly speaking, zero is encoded as a positive integer, but I guess you could argue the definition
[23:19:06] Ox0dea: >> nz = -0.0; [nz, nz.negative?] # This is a problem.
[23:19:07] ruby[bot]: Ox0dea: # => [-0.0, false] (https://eval.in/520595)
[23:19:30] unsymbol: has joined #ruby
[23:20:04] al2o3-cr: Ox0dea: like eam said is a positive int
[23:20:13] al2o3-cr: zero that is
[23:20:19] Musashi007: has joined #ruby
[23:20:34] Ox0dea: al2o3-cr: Ruby uses IEEE 754, which supports signed zero.
[23:20:44] havenwood: >> 0.0.equal? -0.0
[23:20:45] ruby[bot]: havenwood: # => false (https://eval.in/520597)
[23:20:52] eam: I said integers are positive zero always. IEEE Floats are signed
[23:20:58] eam: and can be both + or -
[23:21:03] eam: s/both/either/
[23:21:13] al2o3-cr: yeah my bad
[23:21:27] eam: I'm saying ints are either positive or "neither" depending on whether you're strict about the meaning of the sign bit
[23:21:37] riceandbeans: if I want to construct something like foo['bar']['boz'] = 1 and foo['bar']['biff'] = 2 and be able to return foo['bar'] showing baz and biff?
[23:22:05] Ox0dea: Use a Hash...?
[23:22:12] eam: not just one hash!
[23:22:48] Ox0dea: A Matryoshka Hash.
[23:23:12] eam: yo dawg
[23:23:16] Don_John: has joined #ruby
[23:23:20] Ox0dea: I heard you like Russian dolls.
[23:23:26] riceandbeans: >> foo = Hash.new; foo['bar'] = Hash.new; foo['bar']['baz'] = Hash.new
[23:23:27] ruby[bot]: riceandbeans: # => {} (https://eval.in/520598)
[23:23:28] bougyman: who doesn't?
[23:23:40] riceandbeans: did that work?
[23:24:12] spacemud: has joined #ruby
[23:24:48] Ox0dea: riceandbeans: Go nuts: https://eval.in/520600
[23:24:51] lilvim: has joined #ruby
[23:24:52] toretore: >> foo = {'bar' => {'boz' => 1, 'biff' => 2}}; foo['bar']
[23:24:53] ruby[bot]: toretore: # => {"boz"=>1, "biff"=>2} (https://eval.in/520601)
[23:24:54] riceandbeans: seems like it did...
[23:25:30] al2o3-cr: &default_proc when did this come out??
[23:25:47] Ox0dea: Forever ago.
[23:26:04] skade: has joined #ruby
[23:26:10] toretore: riceandbeans: a hash is a k/v table. v can be anything, like another hash
[23:26:18] al2o3-cr: well, shit, i'm behind the times...
[23:26:34] lucasb: keys also can be anything :)
[23:26:44] Ox0dea: Anything that responds to #hash, anyway.
[23:27:06] Don_John: has joined #ruby
[23:27:27] Ox0dea: >> {BasicObject.new => 42} rescue $! # lucasb
[23:27:28] ruby[bot]: Ox0dea: # => #<NoMethodError: undefined method `hash' for #<BasicObject:0x410bdb64>> (https://eval.in/520605)
[23:27:54] lucasb: Ox0dea: indeed, #hash is only on Object :)
[23:28:31] eam: >> x = {}; x[x] = x; x[x]
[23:28:52] eam: why is that nil instead of x?
[23:28:55] Rodya_: has joined #ruby
[23:29:25] Ox0dea: lucasb: #hash is actually custom-defined on many classes.
[23:30:15] eam: is Hash.hash keyed off the hash's entries and not the object_id?
[23:30:32] mg^: has joined #ruby
[23:30:35] eam: looks that way
[23:30:38] lucasb: right. makes sense for two different string objects to have the same hash
[23:30:50] mg^: eam: you got me on that one
[23:31:01] mg^: punched it into my MRuby-enabled hexchat
[23:31:04] toretore: iirc you can't just redefine #hash and #eql? and expect Hash to do what you mean though
[23:31:05] Ox0dea: >> x = {}; x[x] = x; x.rehash; x[x] # eam
[23:31:06] ruby[bot]: Ox0dea: # => {{...}=>{...}} (https://eval.in/520606)
[23:31:32] mg^: > x = {}; x[x] = x; x[x] => /home/mg/build/mruby-1.2.0/mrblib/array.rb:23: stack level too deep. (limit=(0x40000 - 128)) (SystemStackError)
[23:31:38] eam: mg^: hahah
[23:31:50] patchedmonkey: has joined #ruby
[23:32:00] al2o3-cr: ... is a feference to itself
[23:32:02] eam: Ox0dea: oh wow
[23:32:11] Ox0dea: eam: Just gotta let it know what's goin' on.
[23:32:25] baweaver: has joined #ruby
[23:32:29] shevy: advanced trickery saturday night on #ruby live!
[23:32:29] mg^: it crashed hexchat outright though, I guess I should file an issue for myself on github
[23:32:44] shevy: do you feel appropriately guilty now mg^
[23:33:01] al2o3-cr: i'm on wednesday :P
[23:33:17] mikeiniowa: has joined #ruby
[23:33:21] shevy: al2o3-cr I'd wish it was saturday already
[23:33:37] mdw: has joined #ruby
[23:34:20] al2o3-cr: i'd wish it was friday because i'm coming into alot of money apparently :S
[23:34:23] mdw7: has joined #ruby
[23:35:07] Ox0dea: al2o3-cr: http://i.imgur.com/51FAYDM.jpg
[23:35:23] idefine: has joined #ruby
[23:35:29] Ox0dea: Of whose alot of money are you coming into possession?
[23:35:45] al2o3-cr: not dollars anyway :P
[23:35:53] sankaber: has joined #ruby
[23:36:10] Ox0dea: All alots of money are made of dollars.
[23:36:10] swills: has joined #ruby
[23:36:28] idefine: has joined #ruby
[23:36:33] al2o3-cr: which ones?
[23:36:39] Ox0dea: All of the alots of money.
[23:36:43] Ox0dea: They share a phenotype.
[23:37:04] al2o3-cr: have you got a few until i get my memory back :P
[23:37:19] arlek: has joined #ruby
[23:37:19] Ox0dea: Your whole memory's gone? :/
[23:37:26] riceandbeans: ok, new problem
[23:38:06] al2o3-cr: dta (don't trust anyone)
[23:38:08] mary5030: has joined #ruby
[23:38:10] Guest77101: has joined #ruby
[23:38:17] riceandbeans: I want to check foo['bar']['baz']['biff'] for .ony? against all values in foo['bar']['baz'] but it's returning the count of hashes in foo['bar']['baz'] which is > 1
[23:38:32] unsymbol: has joined #ruby
[23:39:08] lucasb: foo['bar']['baz'].values.only?(...) ?
[23:39:19] al2o3-cr: not anymore anyway
[23:39:40] lucasb: or .one? if ony? meant that
[23:40:14] spacemud: has joined #ruby
[23:40:32] al2o3-cr: riceandbeans: just dig it
[23:40:36] eregi: has joined #ruby
[23:40:51] riceandbeans: lucasb: that totally worked
[23:41:24] benlieb: has joined #ruby
[23:41:37] al2o3-cr: dig dig dig!!
[23:41:47] skade: has joined #ruby
[23:41:58] r4z3r: has joined #ruby
[23:42:01] al2o3-cr: shit i sound like shevy hehe
[23:42:06] riceandbeans: I don't get it
[23:42:12] roshanavand: has joined #ruby
[23:42:49] blur3d: has joined #ruby
[23:42:54] al2o3-cr: &ri Hash#dig
[23:42:54] `derpy: http://ruby-doc.org/core-2.3.0/Hash.html#method-i-dig
[23:43:38] lucasb: there was an issue about adding a .bury method, with the oposite semantics of .dig :)
[23:44:32] riceandbeans: my ruby doesn't have dig
[23:44:35] riceandbeans: must be too old
[23:44:41] Ropeney: has joined #ruby
[23:44:52] lucasb: new in 2.3
[23:45:04] riceandbeans: I'm tied to 2.1 at the moment
[23:45:07] al2o3-cr: riceandbeans: 2.3
[23:45:24] al2o3-cr: riceandbeans: upgrade :)
[23:45:32] riceandbeans: ruby upgrades here are a VERY big deal
[23:45:40] riceandbeans: this is a chef shop
[23:45:45] riceandbeans: upgrading ruby can break the entire company
[23:45:55] al2o3-cr: riceandbeans: you work in a chippy?
[23:46:27] al2o3-cr: if you need a new wok, get a new wok :P
[23:46:36] Rodya_: has joined #ruby
[23:46:52] riceandbeans: oh, the company is strong...it's not going away any time soon and makes quite a lot of money....
[23:47:18] riceandbeans: but ruby is very integral, and any upgrades to it is very impacting given the hundreds of thousands of systems it affects
[23:48:00] al2o3-cr: ACTION why do i keep thinking food ....
[23:48:03] riceandbeans: I'm not against upgrading, but it's a vetting process that takes time
[23:48:24] al2o3-cr: sorry riceandbeans my minds in the clouds
[23:49:26] Rodya_: has joined #ruby
[23:49:29] al2o3-cr: that just one mind
[23:50:20] CloCkWeRX: has joined #ruby
[23:50:39] tulak: has joined #ruby
[23:52:20] aryaching: has joined #ruby
[23:53:28] Eiam_: has joined #ruby
[23:53:29] aryaching: has joined #ruby
[23:54:52] shevy: al2o3-cr lol
[23:57:34] Musashi007: has joined #ruby
[23:58:49] avahey: has joined #ruby
[23:59:15] al2o3-cr: shevy: i keep thinking fooooddd lol
[23:59:45] al2o3-cr: give me a steak i'm happy :)