« Back to channel list

#ruby - 30 November 2015

« Back 1 day Forward 1 day »
[00:00:03] krobzaur: Ox0dea: Oh, idk I'm an amateur programmer I just like to mess around with whatever it useful
[00:00:13] krobzaur: Ox0dea: But my main language is python I'd say
[00:00:40] ElderFain: has joined #ruby
[00:00:44] VeryBewitching: krobzaur: Which window manager?
[00:01:04] krobzaur: VeryBewitching: TotalSpaces2
[00:01:08] krobzaur: VeryBewitching: I used OSX =)
[00:01:09] DarkBushido: has joined #ruby
[00:01:59] uber: has joined #ruby
[00:02:03] soahccc: has joined #ruby
[00:02:22] Ox0dea: krobzaur: Why do you reckon a mutative loop would be the best approach?
[00:02:41] iko1: has joined #ruby
[00:02:42] VeryBewitching: I thought MacOS had it's own native pager.
[00:02:49] krobzaur: Ox0dea: Because it was immediately obvious to me that it would get the job done lol
[00:03:09] krobzaur: Ox0dea: Not saying it is objectively the best way to accomplish the task
[00:03:18] Ox0dea: Fair enough.
[00:03:26] krobzaur: VeryBewitching: It does but its sucks
[00:03:55] krobzaur: VeryBewitching: And I switch between different display setups a lot at work, home, etc and it always fucks up all my windowx
[00:04:07] krobzaur: VeryBewitching: I got tired of fixing them so I'm writing this script
[00:04:54] krobzaur: Ox0dea: I'm willing to take constructive criticism. I am here as a student seeking knowledge
[00:05:00] Ox0dea: ?code krobzaur
[00:05:01] ruboto: krobzaur, We can't help you without your code, please post it to https://gist.github.com
[00:05:06] shanemcd: has joined #ruby
[00:05:16] Ox0dea: krobzaur: I shall be happy to provide it. :)
[00:05:41] leslie1: has joined #ruby
[00:06:42] rflot: has joined #ruby
[00:07:03] PhilK: has joined #ruby
[00:07:29] DanKnox[away]: has joined #ruby
[00:07:34] bronson: has joined #ruby
[00:07:40] Ox0dea: I should mention at the outset that I'm entirely unfamiliar with TotalSpaces2.
[00:07:42] calderonroberto: has joined #ruby
[00:08:03] spastorino: has joined #ruby
[00:08:04] alxndr_: has joined #ruby
[00:08:20] krobzaur: lol doesn't matter the API is super simple
[00:08:39] zrl: has joined #ruby
[00:09:12] cosmicfires: has joined #ruby
[00:09:31] arescorpio: has joined #ruby
[00:09:45] Guest85414______: has joined #ruby
[00:10:25] alem0lars: has joined #ruby
[00:10:48] Ox0dea: krobzaur: If you'd rather not bother to pare your code down to a minimal demonstrative example, a prosaic description of what you're doing might suffice.
[00:11:10] krobzaur: https://gist.github.com/kwrobert/a155377ef7d234bde7b0
[00:11:12] twe4ked: has joined #ruby
[00:11:54] maloik: has joined #ruby
[00:11:57] frankS2: has joined #ruby
[00:12:49] krobzaur: Its that first .each loop at the top
[00:13:07] krobzaur: This function is declared as a static method inside a class so I can access it from the cli
[00:13:29] Ox0dea: krobzaur: I trust you're not on Ruby 2.3?
[00:13:35] epochwolf: has joined #ruby
[00:13:37] universa1: has joined #ruby
[00:13:39] krobzaur: no 1.9 i think
[00:13:56] krobzaur: Ah 2.0 actually
[00:14:23] C0deMaver1ck: has joined #ruby
[00:14:42] bnizzle: has left #ruby: ()
[00:15:04] Ox0dea: How come `#has_value?`? Is the key not deterministic?
[00:15:14] spastorino_: has joined #ruby
[00:15:15] jmcc_: has joined #ruby
[00:15:26] Scroff: has joined #ruby
[00:16:05] Ox0dea: Ah, well, I suppose those values show up under different keys.
[00:16:54] krobzaur: It does have the display name set under a deterministic key
[00:17:03] krobzaur: I suppose I should just directly check that key
[00:17:09] krobzaur: instead of using has_value
[00:17:12] paradisaeidae: has joined #ruby
[00:17:36] davedev24: has joined #ruby
[00:17:41] DarkBushido: has joined #ruby
[00:19:07] Hobbyboy: has joined #ruby
[00:19:11] jimeh: has joined #ruby
[00:20:06] hahuang61: has joined #ruby
[00:20:48] alxndr: has joined #ruby
[00:21:06] Radar: ACTION disappears back into the shadows
[00:21:07] GGMethos: has joined #ruby
[00:21:34] spastorino__: has joined #ruby
[00:23:21] diego3: has joined #ruby
[00:25:23] krobzaur: I think I might be able to use the "find" or "select" methods to return the display_id I'm looking for but what I have gets the job done
[00:25:26] jackcom: casual = names.map {|name| extract_first_name(name) } <??? what something map do?
[00:26:11] lacrosse: has joined #ruby
[00:26:14] vayan: has joined #ruby
[00:26:14] Hobbyboy: has joined #ruby
[00:26:23] spastorino___: has joined #ruby
[00:26:59] babblebre: has joined #ruby
[00:27:21] Ox0dea: krobzaur: Well, will `display_list` only ever contain those two displays?
[00:28:37] Ox0dea: Ah, never mind. That was supreme derpage.
[00:28:45] devbug: has joined #ruby
[00:28:55] flavi0: has joined #ruby
[00:29:25] krobzaur: Ox0dea: Actually, yes it will only contain these two. All this stuff gets called from another script that checks the display setup beforehand. It only ever gets into this function if the display setup matches my setup at home
[00:29:38] im0b: has joined #ruby
[00:29:52] krobzaur: Ox0dea: Which by nature only contains the two displays with the two names that are hardcoded into that snippet i posted
[00:29:54] Ox0dea: Well, given that you're repeating every aspect of the script for both displays, it'd make sense to extract everything out into a method and just invoke it twice.
[00:30:11] Ox0dea: s/twice/conditionally/, I suppose.
[00:30:13] krobzaur: Ox0dea: mmm true good point
[00:30:15] DarkBushido: has joined #ruby
[00:30:15] DarkBushido: has joined #ruby
[00:30:42] Ox0dea: It's regrettable that you can't "add" negative desktops. :P
[00:30:52] Ox0dea: Would clean up that conditional quite nicely.
[00:31:43] krobzaur: That would be nice
[00:31:54] apipkin: has joined #ruby
[00:32:05] universa1: has joined #ruby
[00:32:42] nertzy: has joined #ruby
[00:33:04] minimalism: has joined #ruby
[00:33:19] Ox0dea: Alas, it expects an unsigned int: http://git.io/vBSCu
[00:33:42] flavi0: is it possible to use multiple attributes in a group_by block? i want to group by year month and mday of a date, but not by time. it looks like group_by calculates some hash, so what i'm trying is just to build the sum of those 3 inside the block. is that reasonable?
[00:33:43] drPoggs: has joined #ruby
[00:33:58] Ox0dea: flavi0: Sure, use an Array.
[00:34:24] Ox0dea: `group_by { |d| [d.year, d.month, d.day] }` or some such.
[00:35:18] krobzaur: Ox0dea: I didn't even think to look I just kind of assumed haha
[00:35:19] flavi0: Ox0dea: cool, let me see. i'm very new to ruby, come from c++. ruby seems really nice and idiomatic to me.
[00:35:50] chinmay_dd: has joined #ruby
[00:35:51] jaxxstorm: has joined #ruby
[00:36:06] Ox0dea: krobzaur: I mean, I pretty much knew what I was gonna find, but I figured I'd check. :P
[00:38:07] lele: has joined #ruby
[00:38:08] epochwolf: has joined #ruby
[00:38:14] Ox0dea: flavi0: You might also consider #strftime: `group_by { |d| d.strftime '%Y%m%d' }`
[00:38:28] Ox0dea: That's probably more aligned with how you want to access the groups anyway.
[00:39:00] bluOxigen: has joined #ruby
[00:39:08] flavi0: Ox0dea: yeah it works nice, but i'm doing #{date[0]}/#{date[1]}/#{date[2]} now. this is inside slim.
[00:39:23] sparr: has joined #ruby
[00:39:41] TvL: has joined #ruby
[00:40:02] Guest85414______: has joined #ruby
[00:40:19] flavi0: Ox0dea: this way i'd get the string right? i still need to be able to access the single elements. in that case array?
[00:40:31] renderful: has joined #ruby
[00:40:32] rickmasta: has joined #ruby
[00:42:09] Nanuq: has joined #ruby
[00:42:48] rideh: has joined #ruby
[00:42:48] mostlybadfly: has joined #ruby
[00:43:12] cosmicfires: has joined #ruby
[00:44:12] akitada: has joined #ruby
[00:44:43] jimeh: has joined #ruby
[00:44:47] shanemcd: has joined #ruby
[00:44:55] flavi0: Ox0dea: anyways, works nicely. merci!
[00:45:05] tobiasgreen: has left #ruby: ()
[00:45:23] maloik: has joined #ruby
[00:45:52] i: has joined #ruby
[00:45:54] Channel6: has joined #ruby
[00:46:06] Sam0163141155: has joined #ruby
[00:46:10] NET||abuse: has joined #ruby
[00:46:23] vikaton: has joined #ruby
[00:46:39] iamvery: has joined #ruby
[00:46:45] LBRapid: has joined #ruby
[00:47:15] SirFunk: has joined #ruby
[00:47:40] lorn: has joined #ruby
[00:47:41] tubuliferous_: has joined #ruby
[00:47:45] Ox0dea: flavi0: `date[0..2].join('/')` is a slightly cleaner way to say that, but you won't be able to "access the single elements" regardless of how you specify the predicate, since they'll just be keys of the Hash that #group_by returns.
[00:47:46] pjaspers: has joined #ruby
[00:47:57] shtirlic: has joined #ruby
[00:48:01] zenspider: has joined #ruby
[00:48:19] adeponte: has joined #ruby
[00:48:30] df: has joined #ruby
[00:48:32] okdas: has joined #ruby
[00:48:33] konopka: has joined #ruby
[00:48:41] cats: has joined #ruby
[00:48:44] z3uS: has joined #ruby
[00:48:51] okdas: has joined #ruby
[00:49:12] im0b: has joined #ruby
[00:49:30] spleeze: has joined #ruby
[00:49:32] mmasaki: has joined #ruby
[00:49:45] absolutejam: has joined #ruby
[00:49:47] ryotarai: has joined #ruby
[00:49:48] jinie: has joined #ruby
[00:49:51] j0bk: has joined #ruby
[00:49:55] Takumo: has joined #ruby
[00:49:56] Takumo: has joined #ruby
[00:50:00] levifig: has joined #ruby
[00:50:06] zotherstupidguy: has joined #ruby
[00:50:09] nlsun: has joined #ruby
[00:50:20] secret: has joined #ruby
[00:50:26] shevy: has joined #ruby
[00:50:40] rflot: has joined #ruby
[00:50:43] imajes: has joined #ruby
[00:51:17] kadoppe: has joined #ruby
[00:51:31] Hobbyboy: has joined #ruby
[00:52:01] scottymeuk: has joined #ruby
[00:52:21] bahar: has joined #ruby
[00:52:58] andersh: has joined #ruby
[00:53:15] duracrisis: has joined #ruby
[00:53:42] cyberfawkes: has joined #ruby
[00:53:45] valeri_ufo: has joined #ruby
[00:53:54] cpup: has joined #ruby
[00:53:56] joeyjones: has joined #ruby
[00:54:00] ndancer: has joined #ruby
[00:54:01] alexblom: has joined #ruby
[00:54:02] TheBrayn: has joined #ruby
[00:54:10] KervyN: has joined #ruby
[00:54:14] Lildirt: has joined #ruby
[00:54:21] Scient: has joined #ruby
[00:54:29] arthurnn: has joined #ruby
[00:54:30] clamstar: has joined #ruby
[00:54:38] BiHi: has joined #ruby
[00:54:43] tomdp: has joined #ruby
[00:54:52] dlitvak: has joined #ruby
[00:56:54] frankS2: has joined #ruby
[00:56:59] kitallis: has joined #ruby
[00:57:59] iko1: has joined #ruby
[00:58:11] davedev24: has joined #ruby
[00:58:38] Outlastsheep: has joined #ruby
[00:59:26] rflot: has joined #ruby
[01:00:03] Nilium: has joined #ruby
[01:00:17] h99h9h88: has joined #ruby
[01:00:20] Guest4184__: has joined #ruby
[01:01:56] ajb: has joined #ruby
[01:02:16] elliottcable: has joined #ruby
[01:02:48] dannluciano: has joined #ruby
[01:03:09] nyandoge: has joined #ruby
[01:04:51] jlyndon: has joined #ruby
[01:06:24] agent_white: Hey folks! I'm adding in a plugin ability to my gem, but am running into some issues moving in the code. It worked fine outside of the gem structure where I tested it, but once I tossed it into the gem things aren't working. https://github.com/jakenotjacob/vapebot/commit/54842408bdd25c4fa8559d7cb046fff0690d0083
[01:07:08] kellabyte: has joined #ruby
[01:07:18] cmoneylulz: has joined #ruby
[01:07:22] agent_white: Here's my commit with the code, and a "test" plugin tossed into the plugins folder. I'm expecting to get a hash with the plugins loaded when I call "plugins()" inside my Bot class, but it's empty.
[01:07:23] akosednar: has joined #ruby
[01:07:38] agent_white: Let me know if there's more code I should provide!
[01:07:42] freerobby: has joined #ruby
[01:07:56] mostlybadfly: has joined #ruby
[01:08:41] amitchellbullard: has joined #ruby
[01:10:41] soahccc: has joined #ruby
[01:11:08] pfg_: has joined #ruby
[01:11:12] twe4ked: has joined #ruby
[01:11:50] DarkBushido: has joined #ruby
[01:11:50] DarkBushido: has joined #ruby
[01:11:51] bauruine: has joined #ruby
[01:11:52] babblebre: has joined #ruby
[01:12:00] diego3: has joined #ruby
[01:12:04] spastorino___: has joined #ruby
[01:12:06] im0b: has joined #ruby
[01:12:14] prosody: has joined #ruby
[01:12:21] agent_white: I have a feeling it has to do with $LOAD_PATH.
[01:13:33] colstrom: has joined #ruby
[01:13:52] napcae_: has joined #ruby
[01:13:54] jhass: agent_white: Dir[] is relative to the current working directory, not the current file
[01:14:51] agent_white: jhass: Aye, so I moved my plugins/ dir from the root dir, into lib/vapebot/plugins/
[01:15:06] vayan: has joined #ruby
[01:15:32] jhass: yes, obviously
[01:15:45] p0m3r4n0: has joined #ruby
[01:15:46] Channel6: has joined #ruby
[01:15:47] allcentury: has joined #ruby
[01:17:02] agent_white: jhass: First, is that a bad idea? Should the plugins directory be in the root directory? And second, so... I'm still lost.
[01:18:14] jhass: do you know what the current working directory of a process is?
[01:18:57] jhass: personally I dislike enumerating files on the FS for require and rather list them explicitly
[01:18:59] varesa: has joined #ruby
[01:19:12] camilasan: has joined #ruby
[01:19:15] spastorino___: has joined #ruby
[01:19:28] dopie: has joined #ruby
[01:19:46] agent_white: Yep! Same current directory as the directory of the shell that ran it.
[01:20:09] jhass: then it should be clear?
[01:20:21] machty: has joined #ruby
[01:20:31] jhass: also why it's a bad idea to rely on it at all in a gem
[01:20:39] xMopxShell: has joined #ruby
[01:21:55] rbenv-will-kill-: has joined #ruby
[01:22:12] frankS2: has joined #ruby
[01:23:01] spastorino: has joined #ruby
[01:23:03] C0deMaver1ck: has joined #ruby
[01:23:20] devbug: has joined #ruby
[01:23:53] agent_white: jhass: Thank you :D
[01:24:10] callumacrae: has joined #ruby
[01:24:48] bauruine: has joined #ruby
[01:25:04] SuperTux88: has joined #ruby
[01:25:16] sonne: has joined #ruby
[01:25:29] apeiros: has joined #ruby
[01:27:00] tekacs: has joined #ruby
[01:27:02] babblebre: has joined #ruby
[01:27:38] RobertBirnie: has joined #ruby
[01:27:46] rbenv-will-kill-: So I am having trouble gettin rbenv properly configured. I seem to have 2 versions, when I am in my shell I installed 1.9.3. when I tried to run i got an error saying version not installed. but it was installed in /usr/local/var/rbenv/version. now when I do ruby -v it says `ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]` when I do 'rbenv versions' I get `1.9.3` as the only one installed. Why is there this discrepancy?
[01:28:15] Fluent: has joined #ruby
[01:28:18] EvilJStoker: has joined #ruby
[01:28:35] tomchapin: has joined #ruby
[01:29:18] jhass: rbenv-will-kill-: because you use rbenv :P
[01:29:25] solocshaw: has joined #ruby
[01:29:27] jhass: more seriously, what does type -a ruby report?
[01:30:07] rbenv-will-kill-: ruby is /Users/ME/.rbenv/shims/ruby ruby is /usr/bin/ruby
[01:30:23] jhass: in that order? mh
[01:30:47] jhass: can you -v the full path of both?
[01:30:55] jhass: /usr/bin/ruby -v and the other too
[01:30:59] jaxxstorm: has joined #ruby
[01:31:05] cashnguns: has joined #ruby
[01:31:46] graffix: has joined #ruby
[01:32:07] graffix: has left #ruby: ()
[01:32:13] hellschreiber_: has joined #ruby
[01:32:28] graffix: has joined #ruby
[01:32:32] kellabyte: has joined #ruby
[01:32:33] mostlybadfly_: has joined #ruby
[01:32:41] amitchellbullard: has joined #ruby
[01:33:01] maloik: has joined #ruby
[01:33:44] rbenv-will-kill-: ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
[01:33:47] jimeh: has joined #ruby
[01:34:10] cbednarski: has joined #ruby
[01:34:11] rflot: has joined #ruby
[01:34:12] rbenv-will-kill-: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]
[01:34:14] Bellthoven: has joined #ruby
[01:34:16] jmcc_: has joined #ruby
[01:34:17] rbenv-will-kill-: is the other one
[01:34:19] jhass: so we found a third version!
[01:34:44] jhass: I think you somehow managed to install 2.2.3 and label it as 1.9.3
[01:34:48] andersh: has joined #ruby
[01:34:50] mjuszczak: has joined #ruby
[01:35:06] jhass: as to how you did that... idk
[01:35:30] ELCALOR: has joined #ruby
[01:35:31] rbenv-will-kill-: so usr/bin/ruby is installed originally on mac
[01:36:08] rbenv-will-kill-: the rbenv version I meant to install is the 2.2.3
[01:36:36] rbenv-will-kill-: and the other one is what my shell is using
[01:37:03] jhass: "the other one" is which now?
[01:37:14] techietrash: has joined #ruby
[01:37:31] duoi: has joined #ruby
[01:37:56] rbenv-will-kill-: that is the /usr/local/var/rbenv/version)
[01:38:04] jhass: so my guess stands, you managed to install 2.2.3 and label it as 1.9.3 ... somehow
[01:38:34] rbenv-will-kill-: no I did rbenv install 1.9.3 earlier today
[01:38:55] Nanuq: has joined #ruby
[01:38:58] pizzaops: has joined #ruby
[01:39:01] duoi: has joined #ruby
[01:39:01] akitada: has joined #ruby
[01:39:07] rbenv-will-kill-: but when i did rbenv shell 1.9.3 it said not installed
[01:39:49] jhass: well, nobody here really uses rbenv and there's no help channel for it. I guess your best bet on getting support for it is opening an issue on github. Or just trash it and use chruby + ruby-install
[01:40:40] railswebdev: has joined #ruby
[01:41:32] Ox0dea: ACTION seconds that motion.
[01:41:49] rbenv-will-kill-: i have no attatchment to rbenv, chruby is a better bet
[01:41:55] tejasmanohar: has joined #ruby
[01:42:15] rbenv-will-kill-: other than its making me crazy
[01:42:15] twe4ked: has joined #ruby
[01:43:10] jhass: chruby is like 200 lines of shell script or something, easier to debug and grasp :P
[01:43:36] zzak: has joined #ruby
[01:43:50] rbenv-will-kill-: thanks for your help jhass :)
[01:43:51] Paradox: has joined #ruby
[01:44:32] Lloyd: has joined #ruby
[01:45:07] eggoez: has joined #ruby
[01:45:13] kellabyte: has joined #ruby
[01:45:27] Guest85414______: has joined #ruby
[01:47:52] yeticry: has joined #ruby
[01:48:15] hellschreiber_: has joined #ruby
[01:48:21] phrozen77: has joined #ruby
[01:48:24] amitchellbullard: has joined #ruby
[01:49:01] shortdudey123: has joined #ruby
[01:50:01] babblebre: has joined #ruby
[01:50:47] jabreity_: has joined #ruby
[01:50:51] JoL1hAHN: has joined #ruby
[01:51:28] bauruine: has joined #ruby
[01:52:58] BiHi: has joined #ruby
[01:55:39] jokke: has joined #ruby
[01:57:06] Hobbyboy|BNC: has joined #ruby
[01:57:10] zast: has joined #ruby
[01:57:15] universa1: has joined #ruby
[01:57:49] Guest4184__: has joined #ruby
[01:58:20] jlyndon: has joined #ruby
[01:58:59] pontiki: has joined #ruby
[02:00:14] colstrom: has joined #ruby
[02:00:44] redlegion: has joined #ruby
[02:01:52] Sam0163141155: has joined #ruby
[02:01:54] spastorino: has joined #ruby
[02:01:54] lacrosse: has joined #ruby
[02:01:54] mostlybadfly: has joined #ruby
[02:02:36] contradictioned: has joined #ruby
[02:02:41] amitchellbullard: has joined #ruby
[02:03:16] greenbigfrog: has joined #ruby
[02:03:26] C0deMaver1ck_: has joined #ruby
[02:04:14] rflot_: has joined #ruby
[02:04:16] jabreity__: has joined #ruby
[02:04:25] im0b: has joined #ruby
[02:04:31] Guest85414______: has joined #ruby
[02:04:33] bf4: has joined #ruby
[02:04:37] sindork: has joined #ruby
[02:04:51] ujjain: has joined #ruby
[02:04:52] ujjain: has joined #ruby
[02:05:16] twe4ked: has joined #ruby
[02:05:33] eaxxae2: has joined #ruby
[02:05:51] deimos: has joined #ruby
[02:06:42] pfg_: has joined #ruby
[02:07:28] eaxxae2: has joined #ruby
[02:07:56] zzak: has joined #ruby
[02:08:35] zrl: has joined #ruby
[02:09:54] hohenfall: has joined #ruby
[02:11:12] andersh: has joined #ruby
[02:11:17] Bellthoven: has joined #ruby
[02:12:57] avdi: has joined #ruby
[02:13:02] jaxxstorm: has joined #ruby
[02:13:20] Sirecote: has joined #ruby
[02:13:31] Arnvald: has joined #ruby
[02:15:03] bronson: has joined #ruby
[02:15:45] Coraline: has joined #ruby
[02:17:46] cdg: has joined #ruby
[02:18:20] mickey_mouse: has joined #ruby
[02:18:27] jsrn: has joined #ruby
[02:20:15] Guest85414______: has joined #ruby
[02:23:34] alindeman: has joined #ruby
[02:25:35] eaxxae2: has left #ruby: ("Leaving")
[02:27:44] constantinexvi: has joined #ruby
[02:29:48] ElderFain: has joined #ruby
[02:32:40] Guest85414______: has joined #ruby
[02:35:05] cyberfawkes: has left #ruby: ()
[02:35:37] yfeldblum: has joined #ruby
[02:37:50] Ox0dea: has joined #ruby
[02:37:57] vayan: has joined #ruby
[02:37:58] avdi_: has joined #ruby
[02:38:16] mickey_mouse: has joined #ruby
[02:38:34] lele: has joined #ruby
[02:39:44] hohenfall: has joined #ruby
[02:41:26] bauruine: has joined #ruby
[02:41:40] skweek: has joined #ruby
[02:43:40] Outlastsheep: has joined #ruby
[02:45:03] lacrosse: has joined #ruby
[02:45:53] jabreity__: has joined #ruby
[02:46:05] spastorino: has joined #ruby
[02:46:06] greenbigfrog: has joined #ruby
[02:46:07] kloeri: has joined #ruby
[02:46:21] cjk101010: has joined #ruby
[02:47:05] duncannz: has joined #ruby
[02:50:11] jaxxstorm: has joined #ruby
[02:50:13] rflot: has joined #ruby
[02:50:19] golgaroth: has joined #ruby
[02:50:54] null__: has joined #ruby
[02:50:54] null__: has joined #ruby
[02:52:21] colstrom: has joined #ruby
[02:55:35] epochwolf: has joined #ruby
[02:55:35] jimeh: has joined #ruby
[02:55:45] DanKnox[away]: has joined #ruby
[02:56:19] Lloyd: has joined #ruby
[02:56:55] mary5030: has joined #ruby
[02:57:54] Fluent: has joined #ruby
[02:58:09] elliottcable: has joined #ruby
[03:02:13] grill: has joined #ruby
[03:02:28] contradictioned: has joined #ruby
[03:02:40] tobiasvl: has joined #ruby
[03:03:16] lacrosse: has joined #ruby
[03:03:36] ebertx: has joined #ruby
[03:03:37] epitron: has joined #ruby
[03:05:56] shanemcd: has joined #ruby
[03:06:50] SuperTux88: has joined #ruby
[03:06:59] ytti: has joined #ruby
[03:07:03] abbe: has joined #ruby
[03:07:19] Coraline: has joined #ruby
[03:07:24] ElderFain: has joined #ruby
[03:07:47] ElderFain: has joined #ruby
[03:08:55] jimeh: has joined #ruby
[03:08:59] redondos: has joined #ruby
[03:09:24] linc01n: has joined #ruby
[03:09:37] thejoecarroll: has joined #ruby
[03:10:34] Trynemjoel: has joined #ruby
[03:11:49] mostlybadfly: has joined #ruby
[03:12:19] Brando753: has joined #ruby
[03:12:30] vifino: has joined #ruby
[03:13:45] jtdowney: has joined #ruby
[03:13:45] jtdowney: has joined #ruby
[03:13:58] null__: has joined #ruby
[03:13:58] null__: has joined #ruby
[03:14:45] jmcc__: has joined #ruby
[03:14:45] cookiez: has joined #ruby
[03:15:28] tsunamie: has joined #ruby
[03:15:28] vifino: has joined #ruby
[03:15:34] aep: has joined #ruby
[03:15:48] vifino: has joined #ruby
[03:16:00] gix: has joined #ruby
[03:16:50] CpuID: has joined #ruby
[03:17:11] bf4: has joined #ruby
[03:17:50] cjk101010: has joined #ruby
[03:17:53] cwong_on_irc: has joined #ruby
[03:18:26] peitera: has joined #ruby
[03:19:07] ajafo: has joined #ruby
[03:19:38] brixen: has joined #ruby
[03:20:09] inukshuk: has joined #ruby
[03:20:20] jmcc__: has joined #ruby
[03:20:57] johnny56: has joined #ruby
[03:21:14] BLuEGoD: has joined #ruby
[03:21:47] LoganG: has joined #ruby
[03:21:57] pfg_: has joined #ruby
[03:22:33] nyandoge: has joined #ruby
[03:22:42] im0b_: has joined #ruby
[03:23:18] zly: has joined #ruby
[03:23:22] jabreity__: has joined #ruby
[03:23:36] Guest85414______: has joined #ruby
[03:24:07] avdi: has joined #ruby
[03:24:10] kellabyte: has joined #ruby
[03:25:48] braderhart: has joined #ruby
[03:26:30] djbkd: has joined #ruby
[03:26:38] jmcc___: has joined #ruby
[03:27:24] techietrash: has joined #ruby
[03:28:05] apipkin: has joined #ruby
[03:28:05] deimos: has joined #ruby
[03:30:53] twe4ked: has joined #ruby
[03:31:17] tmtwd: has joined #ruby
[03:35:10] andersh: has joined #ruby
[03:35:37] Seich: has joined #ruby
[03:37:51] Guest85414______: has joined #ruby
[03:38:36] golgaroth: has joined #ruby
[03:39:13] bf4: has joined #ruby
[03:40:01] krz: has joined #ruby
[03:40:07] pfg_: has joined #ruby
[03:40:51] lacrosse: has joined #ruby
[03:40:53] twe4ked: has joined #ruby
[03:41:45] ceej: has joined #ruby
[03:42:34] jmcc___: has joined #ruby
[03:43:05] DexterLB: has joined #ruby
[03:43:09] amitchellbullard: has joined #ruby
[03:43:11] tekk: has joined #ruby
[03:44:59] jimeh: has joined #ruby
[03:45:00] nfsnobody: has joined #ruby
[03:45:09] omegahm: has joined #ruby
[03:45:52] Laaw: has joined #ruby
[03:46:43] bf4: has joined #ruby
[03:47:12] Uptime-: has joined #ruby
[03:47:14] alem0lars: has joined #ruby
[03:48:10] jordanm: has joined #ruby
[03:49:14] gsingh93: has joined #ruby
[03:49:34] jtdowney: has joined #ruby
[03:49:34] jtdowney: has joined #ruby
[03:51:30] kloeri_: has joined #ruby
[03:51:36] LBRapid: has joined #ruby
[03:51:49] machty: has joined #ruby
[03:51:57] houhoulis: has joined #ruby
[03:52:03] lacrosse: has joined #ruby
[03:52:35] nchambers: is codeacademy.com recommended for ruby?
[03:52:43] chinmay_dd: has joined #ruby
[03:52:46] karapetyan: has joined #ruby
[03:53:05] nchambers: what is then?
[03:53:09] Ox0dea: https://pine.fm/LearnToProgram/
[03:53:32] blubjr: hi ox0dea
[03:53:32] Ox0dea: https://github.com/neo/ruby_koans
[03:53:35] Ox0dea: Hello, blubjr.
[03:53:38] paradisaeidae: has joined #ruby
[03:54:25] lorn: has joined #ruby
[03:54:26] cats: has joined #ruby
[03:54:50] mmasaki: has joined #ruby
[03:54:54] Ox0dea: nchambers: Codecademy might at first "feel" effective because of the immediate feedback, but you're likely to come away from it not having actually learned much.
[03:55:03] CrazyEddy: has joined #ruby
[03:55:17] nchambers: fair enough
[03:55:28] nchambers: tis a shame because I enjoy interactive methods
[03:55:41] ndancer: has joined #ruby
[03:55:50] Ox0dea: The Koans provide a much more hands-on sort of interactivity.
[03:56:59] jimeh: has joined #ruby
[03:57:03] m0nge: has joined #ruby
[03:57:08] kadoppe: has joined #ruby
[03:57:21] svkurowski: has joined #ruby
[03:57:35] devbug: has joined #ruby
[03:57:48] alexblom: has joined #ruby
[03:59:14] jaxxstorm: has joined #ruby
[03:59:49] kitallis: has joined #ruby
[03:59:49] Morrolan: has joined #ruby
[04:00:17] michael_mbp: has joined #ruby
[04:01:05] napcae: has joined #ruby
[04:02:20] scottymeuk: has joined #ruby
[04:02:37] Scient: has joined #ruby
[04:02:54] braincrash: has joined #ruby
[04:03:40] andersh: has joined #ruby
[04:03:49] avdi_: has joined #ruby
[04:05:21] cbednarski: has joined #ruby
[04:05:30] im0b: has joined #ruby
[04:05:38] Coraline: has joined #ruby
[04:05:44] jaxxstorm: has joined #ruby
[04:08:04] Lildirt: has joined #ruby
[04:08:45] Radar: nchambers: there is also http://tryruby.org/levels/1/challenges/0
[04:09:43] jabreity__: has joined #ruby
[04:10:01] universa1: has joined #ruby
[04:10:16] Takumo: has joined #ruby
[04:10:17] Takumo: has joined #ruby
[04:10:57] tejasmanohar: has joined #ruby
[04:11:16] mrsolo: has joined #ruby
[04:12:02] epochwolf: has joined #ruby
[04:12:04] SegFaultAX: has joined #ruby
[04:12:50] jtdowney: has joined #ruby
[04:12:51] jtdowney: has joined #ruby
[04:13:14] Coraline: has joined #ruby
[04:13:41] zenspider: has joined #ruby
[04:13:45] Ox0dea: blubjr: http://i.imgur.com/yAayztp.gif
[04:14:00] Biohazard: has joined #ruby
[04:14:05] Ox0dea: I should just set up a trigger, huh?
[04:14:20] Ox0dea: You've "b<CR>oops"ed three times in as many days.
[04:14:29] amitchellbullard: has joined #ruby
[04:14:30] baweaver: has joined #ruby
[04:15:14] blubjr: its c-x b <ret> to switch back to the last buffer i was looking at and i keep missing the x lately i guess....its very embarrassing
[04:15:16] bf4: has joined #ruby
[04:15:25] im0b_: has joined #ruby
[04:15:41] Ox0dea: C-Q for me.
[04:16:04] bronson: has joined #ruby
[04:16:22] Ox0dea: Your fingers must hate you so hard.
[04:16:41] borkdude: has joined #ruby
[04:16:45] joeyjones: has joined #ruby
[04:16:49] duoi: has joined #ruby
[04:16:51] zast: has joined #ruby
[04:17:03] dannluciano: has joined #ruby
[04:17:06] blubjr: its not so bad
[04:17:18] Ox0dea: I just did it a few times and it sucks way bad.
[04:17:51] blubjr: with control on caps lock ?
[04:18:21] lacrosse: has joined #ruby
[04:18:48] deepu: has joined #ruby
[04:19:12] Ox0dea: Have you been using Emacs since it was Constantly Swapping?
[04:20:16] deepu: hi, I'm a newbie .. I see a code like this Squares.new(2).square_of_sums. Is 'Square' a class and 'new' is a method inside that class? What is 'square_of_sums"?
[04:20:39] blubjr: no im just a babe
[04:20:40] tabakhase: has joined #ruby
[04:20:48] Ox0dea: blubjr: Then why not use Vim emulation?
[04:21:28] jabreity__: has joined #ruby
[04:21:30] Arnvald: has joined #ruby
[04:22:04] kfpratt: has joined #ruby
[04:22:17] blubjr: i used to, but i decided to stop fighting it a few years ago. its simpler this way
[04:22:17] jaxxstorm: has joined #ruby
[04:22:45] akosednar: has joined #ruby
[04:23:12] tmtwd_: has joined #ruby
[04:23:44] Ox0dea: deepu: That code isn't great, but `Squares` is indeed probably a class which has had its `new` singleton method (elseways called a class method) redefined to provide custom initialization, and then `square_of_sums` is an instance method, invocable on instances of `Squares` created via `new`.
[04:23:45] Radar: deepu: ?anyone
[04:23:54] Radar: Oh, I guess ruboto doesn't have that fact.
[04:24:03] Ox0dea: You keep doing it backward.
[04:24:08] valeri_ufo: has joined #ruby
[04:24:56] ElderFain: has joined #ruby
[04:25:38] soahccc: has joined #ruby
[04:26:28] Guest85414______: has joined #ruby
[04:27:02] iamayam: has joined #ruby
[04:27:10] Ox0dea: deepu: Is it the distinction between class and instance methods with which you're having trouble?
[04:27:31] deepu: Ox0dea: yes
[04:27:48] Ox0dea: deepu: This'll be a stretch, but are you familiar with singleton methods?
[04:27:59] deepu: Ox0dea: ys
[04:28:02] jimeh: has joined #ruby
[04:28:16] Ox0dea: deepu: Yay! In that case, a class method is just a singleton method on an instance of the Class class.
[04:28:35] rflot: has joined #ruby
[04:28:52] chinmay_dd: has joined #ruby
[04:29:21] bf4: has joined #ruby
[04:29:32] deepu: Ox0dea: ok.. I am reading about it now... you pointed me to correct direction.. thank you
[04:29:41] Ox0dea: deepu: Happy to help. :)
[04:30:05] ryotarai: has joined #ruby
[04:30:53] Ox0dea: deepu: Given `class Class; def foo; end; end`, what're some objects on which I could now call `foo` without running into a NoMethodError?
[04:31:28] Asher: has joined #ruby
[04:32:20] clamstar: has joined #ruby
[04:32:20] deepu: Class.foo?
[04:33:22] Ox0dea: deepu: Nah, I would've had to say `def self.foo` for it to be callable like that. Have another go?
[04:33:36] greenbigfrog: has joined #ruby
[04:33:37] paradisaeidae: has joined #ruby
[04:34:01] apeiros: has joined #ruby
[04:34:02] amitchellbullard: has joined #ruby
[04:34:05] ajb: has joined #ruby
[04:34:30] deepu: Ox0dea: Class.new.foo
[04:34:32] deepu: Ox0dea: Class.new.foo/
[04:34:52] Ox0dea: deepu: Aye, that's one way.
[04:35:05] deepu: Ox0dea: thank you sir
[04:35:14] Ox0dea: >> class Class; def foo; 42; end; end; [Array.foo, Hash.foo, String.foo] # deepu
[04:35:17] ruboto: Ox0dea # => [42, 42, 42] (https://eval.in/477643)
[04:35:35] Ox0dea: deepu: See what happened there?
[04:35:51] Ox0dea: `foo` became available on *all* instances of the Class class.
[04:35:55] KervyN: has joined #ruby
[04:36:20] deepu: Ox0dea: yes...
[04:36:30] levifig: has joined #ruby
[04:36:37] SirFunk: has joined #ruby
[04:36:38] epochwolf: has joined #ruby
[04:36:40] Ox0dea: Because I defined it as an *instance method* on Class. If I'd defined it as a singleton method, it would only be available on `Class` itself as `Class.foo`.
[04:37:32] BraddPitt: Measuring time complexities, how can we determine the added complexity for sorting an array?
[04:38:05] Ox0dea: BraddPitt: Have you been tasked with not ignoring the coefficients?
[04:39:58] nlsun: has joined #ruby
[04:39:59] BraddPitt: I think I see what you're saying
[04:40:28] okdas: has joined #ruby
[04:40:29] okdas: has joined #ruby
[04:40:48] bf4: has joined #ruby
[04:41:07] lele: has joined #ruby
[04:41:10] blackjid: has joined #ruby
[04:41:32] soahccc: has joined #ruby
[04:42:21] jinie: has joined #ruby
[04:42:21] grzegorz: has joined #ruby
[04:42:58] JoL1hAHN: has joined #ruby
[04:43:08] DarkBushido: has joined #ruby
[04:43:08] DarkBushido: has joined #ruby
[04:44:00] Paradox: has joined #ruby
[04:46:18] calderonroberto: has joined #ruby
[04:48:37] vayan: has joined #ruby
[04:48:56] bahar: has joined #ruby
[04:49:03] Voxxit: has joined #ruby
[04:49:19] akitada: has joined #ruby
[04:50:05] soahccc: has joined #ruby
[04:50:23] Papierkorb: has joined #ruby
[04:51:25] varesa: has joined #ruby
[04:52:21] an0ma1y: has joined #ruby
[04:52:25] jmcc___: has joined #ruby
[04:52:46] shaman42: has joined #ruby
[04:53:46] pen: has joined #ruby
[04:53:49] chinmay_dd: has joined #ruby
[04:54:35] jabreity__: has joined #ruby
[04:55:45] Guest11: has joined #ruby
[04:59:29] ElderFain: has joined #ruby
[05:00:08] SirCmpwn: has joined #ruby
[05:00:52] fulgore_: has joined #ruby
[05:00:57] sonne: has joined #ruby
[05:01:32] ricer2: has joined #ruby
[05:01:41] shevy: has joined #ruby
[05:02:13] skarn: has joined #ruby
[05:03:35] gix: has joined #ruby
[05:04:14] blackjid: has joined #ruby
[05:05:01] kloeri_: has joined #ruby
[05:06:01] RobertBirnie: has joined #ruby
[05:07:12] chinmay_dd: has joined #ruby
[05:09:06] DarkBushido: has joined #ruby
[05:09:13] blackjid: has joined #ruby
[05:09:18] maloik: has joined #ruby
[05:11:23] apipkin: has joined #ruby
[05:11:43] machty: has joined #ruby
[05:15:15] grzegorz: has joined #ruby
[05:15:40] epochwolf: has joined #ruby
[05:17:01] bronson: has joined #ruby
[05:17:16] pontiki: this probably only affects me, but when i'm running minitest, it turns the mode line in any active emacs buffer green or red. and it never turns it off, ever. anyone know how to reset the color of the mode line?
[05:17:32] pontiki: alternatively, how do i tell minitest to stop doing that?
[05:18:14] shevy: has joined #ruby
[05:20:21] null__: has joined #ruby
[05:20:22] null__: has joined #ruby
[05:20:55] cbednarski: has joined #ruby
[05:21:04] pizzaops: has joined #ruby
[05:21:10] blubjr: pontiki: (set-face-background 'mode-line "colour")
[05:23:16] jabreity__: has joined #ruby
[05:23:37] DarkBushido: has joined #ruby
[05:23:37] jimeh: has joined #ruby
[05:23:42] blackjid: has joined #ruby
[05:25:04] hohenfall: has joined #ruby
[05:25:06] Guest85414______: has joined #ruby
[05:25:38] vayan: has joined #ruby
[05:25:42] amitchellbullard: has joined #ruby
[05:27:03] SegFaultAX: has joined #ruby
[05:27:40] Briney: has joined #ruby
[05:27:46] duracrisis: has joined #ruby
[05:27:56] sindork: has joined #ruby
[05:30:37] soahccc: has joined #ruby
[05:30:40] cookiez: has joined #ruby
[05:32:33] lady3bean: has joined #ruby
[05:32:45] ujjain: has joined #ruby
[05:32:46] ujjain: has joined #ruby
[05:33:48] krz: has joined #ruby
[05:33:50] Lloyd: has joined #ruby
[05:34:14] ELCALOR: has joined #ruby
[05:34:59] infernix: has joined #ruby
[05:36:49] sfr^: has joined #ruby
[05:38:11] C0deMaver1ck: has joined #ruby
[05:38:12] lacrosse: has joined #ruby
[05:39:18] DoYouKnow: has joined #ruby
[05:40:10] jmcc____: has joined #ruby
[05:40:20] minimalism: has joined #ruby
[05:40:22] russt: has joined #ruby
[05:40:33] gnarf: has joined #ruby
[05:41:06] amitchellbullard: has joined #ruby
[05:41:25] jaxxstorm: has joined #ruby
[05:41:39] jimeh: has joined #ruby
[05:42:56] Kartikay: has joined #ruby
[05:43:02] Diabolik: has joined #ruby
[05:43:02] twe4ked: has joined #ruby
[05:45:44] peterhil`: has joined #ruby
[05:45:49] skarn: has joined #ruby
[05:47:47] jabreity__: has joined #ruby
[05:48:11] johnny56: has joined #ruby
[05:49:01] jokke: has joined #ruby
[05:49:16] bauruine: has joined #ruby
[05:50:22] Trieste: has joined #ruby
[05:50:58] spastorino: has joined #ruby
[05:52:11] darkf: has joined #ruby
[05:53:13] andersh: has joined #ruby
[05:54:44] machty: has joined #ruby
[05:55:44] Guest4184__: has joined #ruby
[05:56:05] patdohere: has joined #ruby
[05:57:08] hellschreiber_: has joined #ruby
[05:58:31] sakshi_: has joined #ruby
[06:01:10] maloik: has joined #ruby
[06:01:31] ur5us: has joined #ruby
[06:03:52] kloeri: has joined #ruby
[06:05:14] rflot: has joined #ruby
[06:08:02] DanKnox[away]: has joined #ruby
[06:09:23] jabreity__: has joined #ruby
[06:09:42] darkf_: has joined #ruby
[06:10:04] twe4ked: has joined #ruby
[06:10:17] Scriptonaut: has left #ruby: ()
[06:12:28] techietrash: has joined #ruby
[06:12:35] mary5030: has joined #ruby
[06:12:37] PhilK: has joined #ruby
[06:12:45] chinmay_dd: has joined #ruby
[06:13:28] secret: has joined #ruby
[06:14:01] adeponte: has joined #ruby
[06:15:40] Briney: has joined #ruby
[06:16:05] pawnbox: has joined #ruby
[06:16:09] Sirecote: has joined #ruby
[06:16:59] fulgore_: has joined #ruby
[06:19:40] jabreity__: has joined #ruby
[06:20:34] darkf__: has joined #ruby
[06:22:00] roshanavand: has joined #ruby
[06:22:27] sakshi_: Has anyone used https://github.com/kylejginavan/sendgrid_webapi?
[06:22:33] gbailey: has joined #ruby
[06:24:17] sakshi_: I needed some help with the query_api method https://github.com/kylejginavan/sendgrid_webapi/blob/6555fb6be2162056a34dbe621e04a45b34d12fe6/lib/base.rb#L21
[06:24:17] borkdude: has joined #ruby
[06:26:21] arthurnn: has joined #ruby
[06:26:50] jtdowney: has joined #ruby
[06:26:50] jtdowney: has joined #ruby
[06:28:00] ledestin: has joined #ruby
[06:31:39] braderhart: has joined #ruby
[06:31:40] mrsolo: has joined #ruby
[06:33:12] Coraline: has joined #ruby
[06:34:06] jokke: has joined #ruby
[06:34:12] soahccc: has joined #ruby
[06:34:44] frankS2: has joined #ruby
[06:35:06] twe4ked: has joined #ruby
[06:35:29] ur5us: has joined #ruby
[06:36:26] jabreity__: has joined #ruby
[06:40:03] allomov: has joined #ruby
[06:41:00] fulgore_: has joined #ruby
[06:41:16] pfg_: has joined #ruby
[06:41:56] lxsameer: has joined #ruby
[06:41:56] lxsameer: has joined #ruby
[06:41:58] apipkin: has joined #ruby
[06:42:00] ruby-lang386: has joined #ruby
[06:42:52] golgaroth: has joined #ruby
[06:44:50] ibouvousaime: has joined #ruby
[06:46:40] allomov: has joined #ruby
[06:49:26] ohaibbq: has joined #ruby
[06:49:52] auzty_: has joined #ruby
[06:50:32] auzty_: has joined #ruby
[06:51:06] snapcase: has joined #ruby
[06:51:53] z3uS: has joined #ruby
[06:52:32] rickmasta: has joined #ruby
[06:53:09] NET||abuse: has joined #ruby
[06:53:11] trautwein: has joined #ruby
[06:55:16] sanjayu: has joined #ruby
[06:58:02] Hobbyboy|BNC: has joined #ruby
[06:58:11] lorn: has joined #ruby
[06:58:36] yardenbar: has joined #ruby
[06:59:45] spastorino: has joined #ruby
[07:00:31] ndancer: has joined #ruby
[07:01:24] LBRapid: has joined #ruby
[07:03:15] jimeh: has joined #ruby
[07:03:41] tsunamie: has joined #ruby
[07:04:01] ebertx: has joined #ruby
[07:05:15] DoubleMalt: has joined #ruby
[07:06:07] devbug: has joined #ruby
[07:06:07] naftilos76: has joined #ruby
[07:06:30] TheBrayn: has joined #ruby
[07:07:01] scottymeuk: has joined #ruby
[07:07:11] drPoggs: has joined #ruby
[07:07:22] codex: has joined #ruby
[07:07:29] frankS2: has joined #ruby
[07:08:01] kadoppe: has joined #ruby
[07:09:10] kitallis: has joined #ruby
[07:10:38] lacrosse: has joined #ruby
[07:10:42] twe4ked: has joined #ruby
[07:10:49] Lloyd: has joined #ruby
[07:11:20] BLuEGoD: has joined #ruby
[07:11:55] Macaveli: has joined #ruby
[07:13:05] yo61: has joined #ruby
[07:13:16] jimeh: has joined #ruby
[07:14:03] kimegede: has joined #ruby
[07:15:22] epochwolf: has joined #ruby
[07:16:15] omegahm: has joined #ruby
[07:17:45] cats: has joined #ruby
[07:18:42] bronson: has joined #ruby
[07:19:34] kloeri: has joined #ruby
[07:19:53] elliottcable: has joined #ruby
[07:19:54] akosednar: has joined #ruby
[07:20:09] Nilium: has joined #ruby
[07:21:50] kerunaru: has joined #ruby
[07:22:28] nwhirschfeld: has joined #ruby
[07:23:07] jtdowney: has joined #ruby
[07:23:07] jtdowney: has joined #ruby
[07:23:56] pawnbox: has joined #ruby
[07:25:00] sfr^: has joined #ruby
[07:26:31] Diabolik: has joined #ruby
[07:27:32] Brando753: has joined #ruby
[07:28:02] Diabolik: has joined #ruby
[07:28:36] prasselpikachu: has joined #ruby
[07:30:20] x0F: has joined #ruby
[07:30:31] lxsameer: I'm looking for mail server in ruby, is there any ?
[07:31:21] DarkBushido: has joined #ruby
[07:32:55] Diabolik: has joined #ruby
[07:33:35] braderhart: has joined #ruby
[07:34:55] avdi_: has joined #ruby
[07:35:03] spastorino: has joined #ruby
[07:35:07] Diabolik: has joined #ruby
[07:37:33] SegFaultAX: has joined #ruby
[07:38:25] epochwolf: has joined #ruby
[07:40:36] rflot: has joined #ruby
[07:41:24] Fluent: has joined #ruby
[07:42:09] tsunamie: has joined #ruby
[07:43:06] jaxxstorm: has joined #ruby
[07:44:00] Macaveli: has joined #ruby
[07:45:00] krz: has joined #ruby
[07:48:07] im0b_: has joined #ruby
[07:48:48] jimeh: has joined #ruby
[07:48:55] exadeci: has joined #ruby
[07:49:10] shevy: there is a gem called "mail" but I don't think it is a server
[07:50:50] contradictioned: has joined #ruby
[07:51:00] x0F: has joined #ruby
[07:51:12] DanKnox[away]: has joined #ruby
[07:53:14] alem0lars: has joined #ruby
[07:53:15] jtdowney: has joined #ruby
[07:53:15] jtdowney: has joined #ruby
[07:53:15] jabreity__: has joined #ruby
[07:53:26] epochwolf: has joined #ruby
[07:54:53] DarkBushido: has joined #ruby
[07:55:28] KnownSyntax: has joined #ruby
[07:55:57] exadeci: has joined #ruby
[07:56:00] LBRapid: has joined #ruby
[07:56:08] clamstar: has joined #ruby
[07:57:28] solocshaw: has joined #ruby
[07:57:56] inukshuk: has joined #ruby
[07:58:40] Brando753: has joined #ruby
[08:00:04] im0b__: has joined #ruby
[08:00:20] noodle: has joined #ruby
[08:00:26] alem0lars: has joined #ruby
[08:00:30] spastorino_: has joined #ruby
[08:01:00] aep: has joined #ruby
[08:01:17] jds: has joined #ruby
[08:03:32] andersh: has joined #ruby
[08:03:36] anisha: has joined #ruby
[08:04:27] ajafo: has joined #ruby
[08:04:27] tsunamie: has joined #ruby
[08:04:27] vifino: has joined #ruby
[08:05:23] kimegede: has joined #ruby
[08:06:06] apipkin_: has joined #ruby
[08:06:12] x0F: has joined #ruby
[08:07:31] hellschreiber_: has joined #ruby
[08:07:38] tagrudev: has joined #ruby
[08:07:55] prosody: has joined #ruby
[08:08:16] ELCALOR: has joined #ruby
[08:08:31] yo61: has joined #ruby
[08:09:12] C0deMaver1ck: has joined #ruby
[08:09:17] nlsun: has joined #ruby
[08:10:08] zast: has joined #ruby
[08:10:15] borkdude: has joined #ruby
[08:10:25] gix: has joined #ruby
[08:10:26] TomyWork: has joined #ruby
[08:10:44] machty: has joined #ruby
[08:11:10] solars: has joined #ruby
[08:11:42] lacrosse_: has joined #ruby
[08:11:44] avdi_: has joined #ruby
[08:11:52] Lloyd__: has joined #ruby
[08:14:59] shevy: huh I look at perl 6
[08:15:02] shevy: unit class Pod::To::HTML::Renderer is Pod::To::HTML::InlineListener;
[08:15:05] okdas: has joined #ruby
[08:15:05] okdas: has joined #ruby
[08:15:12] shevy: what is that... they don't rename a namespace there or?
[08:15:27] aganov: has joined #ruby
[08:15:45] konopka: has joined #ruby
[08:15:49] pawnbox: has joined #ruby
[08:15:53] skade: has joined #ruby
[08:16:00] Takumo: has joined #ruby
[08:16:01] Takumo: has joined #ruby
[08:16:22] jds: has joined #ruby
[08:16:24] ryotarai: has joined #ruby
[08:16:25] SirCmpwn: has joined #ruby
[08:16:29] svkurowski: has joined #ruby
[08:16:30] redlegion: has joined #ruby
[08:16:32] spleeze: has joined #ruby
[08:16:52] sandstrom: has joined #ruby
[08:16:57] icedragon: has joined #ruby
[08:16:59] SirFunk: has joined #ruby
[08:17:03] absolutejam: has joined #ruby
[08:17:04] valeri_ufo: has joined #ruby
[08:17:07] cpup: has joined #ruby
[08:17:08] j0bk: has joined #ruby
[08:17:10] hagabaka: has joined #ruby
[08:17:23] jinie: has joined #ruby
[08:17:28] Esya: has joined #ruby
[08:17:32] AdamMeghji: has joined #ruby
[08:17:33] d0nn1e: has joined #ruby
[08:17:51] andersh: has joined #ruby
[08:17:57] spastorino: has joined #ruby
[08:17:59] bahar: has joined #ruby
[08:18:03] maloik: has joined #ruby
[08:18:07] ndancer: has joined #ruby
[08:18:10] colstrom: has joined #ruby
[08:18:12] peterhil`: has joined #ruby
[08:18:22] df: has joined #ruby
[08:18:23] russt: has joined #ruby
[08:18:35] Pupp3tm4st3r: has joined #ruby
[08:18:43] KervyN: has joined #ruby
[08:18:46] Morrolan: has joined #ruby
[08:18:53] dannluciano: has joined #ruby
[08:18:54] djbkd: has joined #ruby
[08:19:09] deimos: has joined #ruby
[08:19:34] jmcc____: has joined #ruby
[08:19:39] ndancer_: has joined #ruby
[08:19:49] Pumukel: has joined #ruby
[08:19:53] iamvery: has joined #ruby
[08:19:54] bronson: has joined #ruby
[08:20:09] mmitchell: has joined #ruby
[08:20:10] shtirlic: has joined #ruby
[08:20:19] zenspider: has joined #ruby
[08:20:23] Hobbyboy: has joined #ruby
[08:20:36] greenbigfrog: has joined #ruby
[08:20:41] krobzaur: has joined #ruby
[08:20:55] hagabaka: has joined #ruby
[08:21:05] duracrisis: has joined #ruby
[08:21:12] braincrash: has joined #ruby
[08:21:16] jtdowney: has joined #ruby
[08:21:16] jtdowney: has joined #ruby
[08:21:17] an0ma1y: has joined #ruby
[08:21:27] pjaspers: has joined #ruby
[08:21:48] User458764: has joined #ruby
[08:21:54] tomdp: has joined #ruby
[08:21:55] shinnya: has joined #ruby
[08:21:55] tuelz1: has joined #ruby
[08:21:56] perry: has joined #ruby
[08:21:57] perry: has joined #ruby
[08:22:08] brunto: has joined #ruby
[08:22:11] varesa: has joined #ruby
[08:22:19] BLuEGoD: has joined #ruby
[08:22:45] braderhart: has joined #ruby
[08:22:48] Hounddog: has joined #ruby
[08:23:04] Asher: has joined #ruby
[08:23:06] gsingh93: has joined #ruby
[08:23:52] Asher: has joined #ruby
[08:24:09] zast: has left #ruby: ()
[08:24:10] Xeago: has joined #ruby
[08:24:14] ajb: has joined #ruby
[08:24:53] michael_mbp: has joined #ruby
[08:25:04] techietrash: has joined #ruby
[08:25:05] techietrash: has joined #ruby
[08:25:58] x0F: has joined #ruby
[08:26:07] Pumukel: has joined #ruby
[08:26:28] napcae: has joined #ruby
[08:26:31] machty: has joined #ruby
[08:26:48] solocshaw: has joined #ruby
[08:27:41] blaxter: has joined #ruby
[08:27:56] aibot: has joined #ruby
[08:28:59] iateadonut: has joined #ruby
[08:29:08] jas02: has joined #ruby
[08:29:35] bjmllr: has joined #ruby
[08:29:36] skmp: has joined #ruby
[08:29:37] n1ftyn8_: has joined #ruby
[08:29:37] cstrahan: has joined #ruby
[08:29:40] err_ok: has joined #ruby
[08:29:41] vcoinminer_: has joined #ruby
[08:29:46] acadavid: has joined #ruby
[08:29:48] vondruch: has joined #ruby
[08:29:58] jzigmund: has joined #ruby
[08:30:04] M-prosodyContext: has joined #ruby
[08:30:09] DoYouKnow: has joined #ruby
[08:30:17] vbatts|work: has joined #ruby
[08:30:18] theRoUS: has joined #ruby
[08:30:25] jlyndon: has joined #ruby
[08:30:26] zzak: has joined #ruby
[08:30:28] nyandoge: has joined #ruby
[08:30:31] tejasmanohar: has joined #ruby
[08:30:36] amitchellbullard: has joined #ruby
[08:30:36] johnny56: has joined #ruby
[08:30:37] Guest4184__: has joined #ruby
[08:30:38] PhilK: has joined #ruby
[08:30:40] golgaroth: has joined #ruby
[08:30:41] sanjayu: has joined #ruby
[08:30:43] frankS2: has joined #ruby
[08:30:44] elliottcable: has joined #ruby
[08:30:46] rflot: has joined #ruby
[08:30:48] jabreity__: has joined #ruby
[08:30:48] exadeci: has joined #ruby
[08:30:49] im0b__: has joined #ruby
[08:30:50] anisha: has joined #ruby
[08:30:51] prosody: has joined #ruby
[08:30:52] hellschreiber_: has joined #ruby
[08:30:52] yo61: has joined #ruby
[08:30:53] apipkin: has joined #ruby
[08:30:53] ELCALOR: has joined #ruby
[08:30:55] avdi_: has joined #ruby
[08:30:55] lacrosse: has joined #ruby
[08:30:56] akitada: has joined #ruby
[08:30:58] jds: has joined #ruby
[08:30:59] andersh: has joined #ruby
[08:30:59] AdamMeghji: has joined #ruby
[08:31:00] colstrom: has joined #ruby
[08:31:01] greenbigfrog: has joined #ruby
[08:31:02] jmcc____: has joined #ruby
[08:31:03] Hobbyboy: has joined #ruby
[08:31:05] BLuEGoD: has joined #ruby
[08:31:05] machty: has joined #ruby
[08:31:06] braderhart: has joined #ruby
[08:31:18] Asher: has joined #ruby
[08:31:19] hackeron: has joined #ruby
[08:31:57] vondruch: has joined #ruby
[08:31:58] akitada: has joined #ruby
[08:32:13] tvw: has joined #ruby
[08:32:18] deimos: has joined #ruby
[08:32:38] noodle: has joined #ruby
[08:32:40] MissionCritical: has joined #ruby
[08:32:58] soahccc: has joined #ruby
[08:33:16] DanKnox[away]: has joined #ruby
[08:33:16] Lloyd: has joined #ruby
[08:34:15] sindork: has joined #ruby
[08:34:18] Asher: has joined #ruby
[08:34:41] jmcc____: has joined #ruby
[08:34:42] pfg_: has joined #ruby
[08:34:42] vayan: has joined #ruby
[08:34:47] jlyndon: has joined #ruby
[08:35:15] apeiros: what the heck? I thought there was a const_added in ruby? o0
[08:35:49] Guest85414______: has joined #ruby
[08:36:16] futilegames: has joined #ruby
[08:37:18] sandstrom: has joined #ruby
[08:37:43] jas02: has joined #ruby
[08:37:45] peterhil`: has joined #ruby
[08:38:42] nettoweb: has joined #ruby
[08:39:48] jabreity__: has joined #ruby
[08:40:12] jaxxstorm: has joined #ruby
[08:40:36] amitchellbullard: has joined #ruby
[08:41:23] mrsolo: has joined #ruby
[08:42:59] zzak: has joined #ruby
[08:43:43] nyandoge: has joined #ruby
[08:43:46] rflot: has joined #ruby
[08:43:59] PhilK: has joined #ruby
[08:44:02] kimegede: has joined #ruby
[08:44:18] gnarf: has joined #ruby
[08:44:29] AdamMeghji: has joined #ruby
[08:44:44] edwinvdgraaf: has joined #ruby
[08:44:54] x0F: has joined #ruby
[08:45:59] napcae: has joined #ruby
[08:47:16] ujjain: has joined #ruby
[08:47:16] ujjain: has joined #ruby
[08:47:41] lacrosse: has joined #ruby
[08:47:44] vayan: has joined #ruby
[08:48:13] tejasmanohar: has joined #ruby
[08:48:47] null__: has joined #ruby
[08:48:47] null__: has joined #ruby
[08:48:53] blackmesa: has joined #ruby
[08:48:55] JoL1hAHN: has joined #ruby
[08:49:34] bauruine: has joined #ruby
[08:49:51] apeiros: shevy: yes, similar to method_added
[08:50:14] moty66: has joined #ruby
[08:50:24] spt0: has joined #ruby
[08:50:48] lady3bean: has joined #ruby
[08:50:50] twe4ked: has joined #ruby
[08:50:51] jabreity__: has joined #ruby
[08:51:03] railswebdev: has joined #ruby
[08:51:39] amitchellbullard: has joined #ruby
[08:52:38] nyandoge: has joined #ruby
[08:54:38] yfeldblum: has joined #ruby
[08:54:50] colstrom: has joined #ruby
[08:54:58] soahccc: has joined #ruby
[08:55:24] Guest32: has joined #ruby
[08:57:42] solocshaw: has joined #ruby
[08:58:11] arthurnn: has joined #ruby
[08:58:22] lele: has joined #ruby
[08:58:23] blackmesa: has joined #ruby
[08:58:39] frankS2: has joined #ruby
[08:58:43] amitchellbullard: has joined #ruby
[08:59:01] golgaroth: has joined #ruby
[08:59:36] zzak: has joined #ruby
[08:59:47] borkdude: has joined #ruby
[09:00:18] jds: has joined #ruby
[09:01:08] AdamMeghji: has joined #ruby
[09:01:10] colstrom: has joined #ruby
[09:01:22] aspiers: has joined #ruby
[09:05:03] linc01n: has joined #ruby
[09:06:29] Sembei: has joined #ruby
[09:06:31] davidcelis: has joined #ruby
[09:06:32] davidcelis: has joined #ruby
[09:07:42] pfg_: has joined #ruby
[09:08:22] rflot: has joined #ruby
[09:09:09] epochwolf: has joined #ruby
[09:10:52] yo61: has joined #ruby
[09:12:09] User458764: has joined #ruby
[09:13:47] ElderFain: has joined #ruby
[09:13:50] twe4ked: has joined #ruby
[09:14:58] contradictioned: has joined #ruby
[09:15:22] apeiros: ok, I can hook into creation of classes using Object.inherited. but I can't hook into creation of modules :-|
[09:16:10] vayan: has joined #ruby
[09:16:26] jmcc____: has joined #ruby
[09:19:10] jschmid: has joined #ruby
[09:20:12] lacrosse: has joined #ruby
[09:20:59] apipkin: has joined #ruby
[09:22:05] abra0: has joined #ruby
[09:22:36] Outlastsheep: has joined #ruby
[09:22:38] trampi: has joined #ruby
[09:23:31] DarkBushido: has joined #ruby
[09:23:32] borkdude: has joined #ruby
[09:23:45] napcae: has joined #ruby
[09:24:04] adeponte: has joined #ruby
[09:24:22] lugia: has joined #ruby
[09:24:26] zzak_: has joined #ruby
[09:24:54] amitchellbullard: has joined #ruby
[09:25:00] jimeh: has joined #ruby
[09:25:23] SuperTux88: has joined #ruby
[09:27:11] ur5us: has joined #ruby
[09:28:51] jabreity__: has joined #ruby
[09:29:12] bluOxigen: has joined #ruby
[09:30:25] marcoecc: has joined #ruby
[09:31:01] hellschreiber_: has joined #ruby
[09:31:46] e7d: has joined #ruby
[09:32:01] braderhart: has joined #ruby
[09:32:13] LBRapid: has joined #ruby
[09:32:13] aufi: has joined #ruby
[09:32:44] apeiros: moin yorickpeterse
[09:32:52] Muz: Hi, anyone know of any useful libraries, or methods in std-lib; that'll parse Strings like "1h", "20m" or "45s" etc into Integer values? I could write one; but why reinvent the wheel.
[09:33:01] apeiros: aaand it seems Module#autoload does not use Kernel#require (neither Kernel.require)
[09:33:17] apeiros: Muz: maybe chronic
[09:33:21] SCHAAP137: has joined #ruby
[09:33:22] apeiros: ?toolbox Muz
[09:33:23] ruboto: Muz, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[09:33:26] exadeci: has joined #ruby
[09:33:31] apeiros: ACTION afk
[09:33:49] Muz: Ta, will give chronic a look
[09:34:47] Muz: I know about Ruby Toolbox, but it didn't seem particularly appealing to trawl through anything Time related if someone knew of something off the top of their head :)
[09:35:32] Muz: Chronic seems more Date orientated than anything.
[09:35:53] codecop: has joined #ruby
[09:36:24] blackmesa: has joined #ruby
[09:37:10] terlar: has joined #ruby
[09:37:15] akitada: has joined #ruby
[09:37:17] peterhil`: has joined #ruby
[09:37:28] e7d: has joined #ruby
[09:37:36] joonty: has joined #ruby
[09:38:14] senayar: has joined #ruby
[09:38:14] senayar: has joined #ruby
[09:38:15] yoongkang: has joined #ruby
[09:38:25] e7d: has joined #ruby
[09:38:34] CloCkWeRX: has joined #ruby
[09:38:36] marr: has joined #ruby
[09:39:10] spastorino: has joined #ruby
[09:39:44] mmitchell: has joined #ruby
[09:41:03] howdoi: has joined #ruby
[09:41:06] CloCkWeRX: has left #ruby: ()
[09:41:11] alxndr: has joined #ruby
[09:41:29] e7d: has joined #ruby
[09:42:02] colegatron: has joined #ruby
[09:44:32] kellabyte: has joined #ruby
[09:45:12] gaussblurinc1: has joined #ruby
[09:46:15] stannard: has joined #ruby
[09:46:20] krz: has joined #ruby
[09:47:47] fulgore_: has joined #ruby
[09:47:56] lxsameer: has joined #ruby
[09:48:22] twe4ked: has joined #ruby
[09:48:43] agent_white: has joined #ruby
[09:48:56] ceej: has joined #ruby
[09:49:13] skade: has joined #ruby
[09:50:28] blueOxigen: has joined #ruby
[09:51:44] troulouliou_div2: has joined #ruby
[09:51:54] codex: has joined #ruby
[09:53:17] devbug: has joined #ruby
[09:53:49] jzigmund: has joined #ruby
[09:55:34] tomphp: has joined #ruby
[09:56:11] z3uS: has joined #ruby
[09:56:42] borkdude: why do I get different results when using openssl from the command line and from ruby in this example? https://gist.github.com/borkdude/982399425b62335aa222
[09:57:13] borkdude: never mind, we needed hexdigest
[09:57:18] fulgore_: has joined #ruby
[09:57:34] brunto: has joined #ruby
[09:57:42] bluOxigen: has joined #ruby
[09:57:55] mmasaki: has joined #ruby
[09:58:10] mozzarella: has joined #ruby
[09:59:48] nettoweb: has joined #ruby
[10:00:11] amoeba: has joined #ruby
[10:00:15] edwinvdgraaf: has joined #ruby
[10:00:23] scottstamp: has joined #ruby
[10:01:05] Scient: has joined #ruby
[10:01:37] avelldiroll: has joined #ruby
[10:01:50] joonty: has joined #ruby
[10:02:04] TheMoonMaster: has joined #ruby
[10:02:39] abra0: has joined #ruby
[10:02:57] krobzaur: has joined #ruby
[10:03:39] KervyN: has joined #ruby
[10:04:34] lorn: has joined #ruby
[10:04:38] rickmasta: has joined #ruby
[10:04:54] akosednar: has joined #ruby
[10:05:35] rghose: has joined #ruby
[10:05:49] alexblom: has joined #ruby
[10:05:56] cats: has joined #ruby
[10:05:57] ljarvis: Muz: yeah chronic probably won't help much here, I would do it yourself
[10:06:06] wldcordeiro: has joined #ruby
[10:06:21] ajafo: has joined #ruby
[10:06:34] kitallis: has joined #ruby
[10:06:50] bubbys: has joined #ruby
[10:06:57] ajafo: has left #ruby: ()
[10:07:00] bluOxigen: has joined #ruby
[10:07:47] railswebdev: has joined #ruby
[10:07:55] ljarvis: >> "1h 20m".split.each_with_object({}) { |v, h| h[v[-1]] = v.to_i }
[10:07:56] ruboto: ljarvis # => {"h"=>1, "m"=>20} (https://eval.in/477729)
[10:09:50] kadoppe: has joined #ruby
[10:10:39] huyderman: has joined #ruby
[10:11:05] Lildirt: has joined #ruby
[10:11:36] fenre: has joined #ruby
[10:12:24] darix: has joined #ruby
[10:12:29] abra0_: has joined #ruby
[10:12:44] gregf_: has joined #ruby
[10:13:26] jackcom: has joined #ruby
[10:14:04] blackmesa: has joined #ruby
[10:14:04] sepp2k: has joined #ruby
[10:14:39] levifig: has joined #ruby
[10:14:50] zenspider: has joined #ruby
[10:15:06] darkf_: has joined #ruby
[10:15:08] stephenh: has joined #ruby
[10:15:24] sluukkonen: has joined #ruby
[10:16:34] rodfersou: has joined #ruby
[10:17:12] Macaveli: has joined #ruby
[10:17:19] omegahm: has joined #ruby
[10:17:29] kaspergrubbe: has joined #ruby
[10:18:23] aspiers: has joined #ruby
[10:18:53] abra0: has joined #ruby
[10:18:55] devbug: has joined #ruby
[10:19:02] vikas027: has joined #ruby
[10:20:16] baweaver: has joined #ruby
[10:20:38] shredding: has joined #ruby
[10:21:15] theRoUS: has joined #ruby
[10:22:14] joeyjones: has joined #ruby
[10:22:26] dionysus69: has joined #ruby
[10:22:30] Bellthoven: has joined #ruby
[10:22:56] darkf_: has joined #ruby
[10:23:15] User458764: has joined #ruby
[10:26:55] Nilium: has joined #ruby
[10:27:45] InvGhost: has joined #ruby
[10:28:22] lubekpl: has joined #ruby
[10:28:51] fulgore_: has joined #ruby
[10:30:12] vikas027_: has joined #ruby
[10:30:32] jimeh: has joined #ruby
[10:30:51] teclator: has joined #ruby
[10:34:01] chinmay_dd: has joined #ruby
[10:34:19] Stan: has joined #ruby
[10:34:48] bronson: has joined #ruby
[10:36:57] tsunamie: has joined #ruby
[10:37:41] TPBallbag: has joined #ruby
[10:38:07] ryotarai: has joined #ruby
[10:38:22] cbednarski: has joined #ruby
[10:40:27] pizzaops: has joined #ruby
[10:41:06] shinnya: has joined #ruby
[10:41:29] Papierkorb: has joined #ruby
[10:41:54] KervyN: has joined #ruby
[10:43:46] cpup: has joined #ruby
[10:44:28] sonne: has joined #ruby
[10:44:52] YP-QMUL-W: has joined #ruby
[10:45:26] Paradox: has joined #ruby
[10:48:19] allcentury: has joined #ruby
[10:48:42] johnny56: has joined #ruby
[10:49:30] marr: has joined #ruby
[10:50:49] antgel: has joined #ruby
[10:50:55] User458764: has joined #ruby
[10:51:48] ta: has joined #ruby
[10:53:13] inukshuk: has joined #ruby
[10:53:18] vikas027_: How can I access all items corresponding to a 'login' field, like 'xyz123' in my case ? Forgive my ignorance on this. I've been assigned a task and trying to learn to manipulate hash in ruby. This is my code and the output https://dpaste.de/YLZV
[10:54:26] toretore: has joined #ruby
[10:55:09] jtdowney: has joined #ruby
[10:55:10] jtdowney: has joined #ruby
[10:56:31] svkurowski: has joined #ruby
[10:58:10] zrl: has joined #ruby
[10:58:12] cookiez: has joined #ruby
[11:00:25] russt: has joined #ruby
[11:01:19] slackbotgz: has joined #ruby
[11:04:25] ZeeNoodley: has joined #ruby
[11:05:19] gregf_: vikas027_: do you mean you only want to extract the key :login and its value from the array?
[11:05:24] clamstar: has joined #ruby
[11:06:30] p0m3r4n0: has joined #ruby
[11:06:52] gregf_: vikas027_: if you google for it you would save yourself time and also learn ;)
[11:07:20] ldnunes: has joined #ruby
[11:07:33] gregf_: >> data = [{:login=>"abcd", :foo => 1, :bar => 2}, {:login=>"xyz123", :foo => 2, :bar => 3 }]; [ data.map { |h| { :login => h[:login] } } ]
[11:07:34] ruboto: gregf_ # => [[{:login=>"abcd"}, {:login=>"xyz123"}]] (https://eval.in/477743)
[11:08:05] TheRokh: has joined #ruby
[11:08:16] aep: has joined #ruby
[11:09:26] TPBallbag: has joined #ruby
[11:09:36] g3funk: has joined #ruby
[11:09:38] Trynemjoel: has joined #ruby
[11:11:11] Zackio: has joined #ruby
[11:11:34] blackmesa: has joined #ruby
[11:11:54] stamina: has joined #ruby
[11:12:06] j0bk: has joined #ruby
[11:12:52] vikas027_: gregf: I tried google and I am able to iterate selective elements but not all elements corresponding to a key ':login' I am trying your code now
[11:14:05] RegulationD: has joined #ruby
[11:14:20] j2k: has joined #ruby
[11:15:39] Karunamon: has joined #ruby
[11:16:04] gix: has joined #ruby
[11:17:22] Macaveli: has joined #ruby
[11:17:36] vikas027_: gregf, ruboto: Using you codes, only values of ':login' is in the output. I am looking to access all elements corresponging to the key ':login'.
[11:17:47] gregf_: vikas027_: theres many ways to do what you want :/. but yeah, a hash has unordered keys
[11:17:57] tsunamie: has joined #ruby
[11:18:46] vikas027_: gregf: Please help me with one of them :)
[11:18:57] gregf_: vikas027_: in the data you pasted, :login 'is' a key, and "xyz123" 'is' a value. unless you've not understoon what a hash is :|
[11:19:09] okdas: has joined #ruby
[11:19:10] okdas: has joined #ruby
[11:19:15] pjaspers: has joined #ruby
[11:19:15] gregf_: *understood
[11:19:22] chriscoffee: has joined #ruby
[11:19:38] vikas027_: gregf: Yes, I got that
[11:19:50] gregf_: ok, to make a long story short. you get an array of hashes. like so, ; [{:login=>"abcd", :foo => 1, :bar => 2}, {:login=>"xyz123", :foo => 2, :bar => 3 }]
[11:20:07] dannluciano: has joined #ruby
[11:20:20] gregf_: what do you want to filter from the data?
[11:21:20] adaedra: has joined #ruby
[11:21:51] gsingh93: has joined #ruby
[11:21:58] vikas027_: gregf: In this hash of arrays, I want to take all the elements into an array. Something like this {:login=>"abcd", :foo => 1, :bar => 2} which is usually shown when using '.first' method
[11:22:02] spleeze: has joined #ruby
[11:22:06] vikas027_: for the first array
[11:22:23] gregf_: No, its not a hash of arrays. its an array of hashes
[11:22:25] redlegion: has joined #ruby
[11:22:39] vikas027_: I am sorry, I meant that only
[11:22:57] gregf_: ok, so next. so convert a hash to an array. why?
[11:23:04] SirCmpwn: has joined #ruby
[11:23:15] gregf_: what are you trying to achieve?
[11:23:16] d0nn1e: has joined #ruby
[11:23:19] djanatyn: has joined #ruby
[11:23:41] gregf_: if got other things to do unfortunately, so you'll be quick and to the point i'm afraid :|
[11:23:50] sonOfRa: has joined #ruby
[11:24:06] suchness: has joined #ruby
[11:24:09] vikas027_: gregf: I may be wrong, but I guess it would be easier for me to fetch and manipulate values
[11:24:12] df: has joined #ruby
[11:24:48] gregf_: nothing is difficult in Ruby. you can do whatever , provided you know what you want to achieve
[11:26:00] gregf_: fetch and manipulate what? ok, o put it straight. what do you want to end up with?
[11:26:04] blackmesa: has joined #ruby
[11:26:08] vikas027_: gregf: Yeah, I am learning. My ultimate goal is to use these values in GitHub API calls
[11:26:31] gregf_: vikas027_: use what values please? i'm begging with you :|
[11:29:49] shevy: these values man
[11:29:49] arup_r: has joined #ruby
[11:29:49] nlsun: has joined #ruby
[11:29:49] gregf_: haha, shevy HALP
[11:29:49] gregf_: CAN I HAZ THE VALUES
[11:29:49] vikas027_: gregf: For example, I would get values like url, type (https://dpaste.de/YLZV) and search the corresponding data in other hashes available from application
[11:29:49] bahar: has joined #ruby
[11:29:49] ljarvis: vikas027_: for a specific login?
[11:29:49] vikas027_: gregf: So, if I can filter out these values based on the the key ':login', I will try use them in code
[11:29:49] h99h9h88: has joined #ruby
[11:29:50] ljarvis: vikas027_: data = array.find { |h| h[:login] == "abcd" }; data now has all information for the login "abcd"
[11:30:48] an0ma1y: has joined #ruby
[11:30:52] vikas027_: gregf: I am sorry. As I said, I am new to ruby. Forgive my igorance on this. I've got a new project at my office, in which they use only ruby. If there was an option, I would have used shell in conjunction with ruby and do the tasks
[11:30:54] gregf_: vikas027_: does that solve your problem?
[11:31:46] gregf_: vikas027_: i can understand you are new. everyone starts from scratch. you're guys will give you the time to learn ;)
[11:32:02] htmldrum: has joined #ruby
[11:32:46] ajb: has joined #ruby
[11:32:56] techietrash: has joined #ruby
[11:33:19] gregf_: so as ljarvis has said. you get logins and based on the login you get the other values, like so : logins = [:abcd, :xyz123]; [ logins.each { |l| data.find { |h| h[:login] == l }} ]
[11:33:54] ta: has joined #ruby
[11:34:12] sandstrom: has joined #ruby
[11:34:31] varesa: has joined #ruby
[11:34:52] saneax_AFK: has joined #ruby
[11:35:06] quarcu: has joined #ruby
[11:37:04] tsunamie: has joined #ruby
[11:37:36] gregf_: vikas027_: how to intend on using the values later?
[11:38:01] dhjondoh: has joined #ruby
[11:38:10] sonOfRa: has joined #ruby
[11:38:55] vikas027_: gregf, ljarvis: I got this https://dpaste.de/izOj
[11:39:17] MiracleBlue_: has joined #ruby
[11:39:25] fenre: has joined #ruby
[11:39:34] daxroc: has joined #ruby
[11:40:12] vikas027_: gregf: I am slowly climbing step by step. Once I am confident handling this array of hashes, I will think of the next level
[11:40:49] chihhsin: has joined #ruby
[11:40:56] maloik: ACTION grumbles about wanting to go climbing
[11:41:13] vikas027_: gregf: By far, I have been able to use Ruby Net::LDAP library and octokit gem to query and pull information from AD and GitHub
[11:41:38] gregf_: vikas027_: https://gist.github.com/anonymous/0e35fd92740a7aba0e90
[11:42:05] gregf_: s/to/do you/
[11:42:14] CloCkWeRX: has joined #ruby
[11:42:44] blackmesa: has joined #ruby
[11:43:56] vikas027_: gregf: Thanks a ton for your time. This is exactly what I was trying to do
[11:44:00] gregf_: vikas027_: pp is for printing to the stdout. so please delete it and try
[11:44:25] azgil: has joined #ruby
[11:44:30] michael_mbp: has joined #ruby
[11:44:37] tsunamie: has joined #ruby
[11:45:10] RandyT: has joined #ruby
[11:45:47] rickmasta: has joined #ruby
[11:46:02] spleeze: has joined #ruby
[11:47:22] vikas027_: gregf: When I deleted pp, I just got this #<Sawyer::Resource:0x007fb3b6977a90> not the hash
[11:48:01] mostlybadfly: has joined #ruby
[11:49:06] gregf_: puts is for a string, p, pp and inspect are for serializing objects
[11:49:30] sonOfRa: has joined #ruby
[11:51:24] vikas027_: gregf: https://dpaste.de/711O Not sure what I am missing. I will not bother you guys more, will read docs and Google it out. At least, now I know what to look for.
[11:51:45] konstraint: has joined #ruby
[11:51:55] konstraint: Why does Ruby use a global import/require table?
[11:52:11] konstraint: It would be nice if required files were only visible to those requiring them
[11:52:22] konstraint: Makes for things being unexpectedly visible in areas of the application
[11:53:45] minimalism: has joined #ruby
[11:53:58] gregf_: vikas027_: its not that we dont want to help. youre keeping us in suspense ;). btw, that paste is empty
[11:54:39] ujjain: has joined #ruby
[11:54:40] pawnbox: has joined #ruby
[11:54:40] ujjain: has joined #ruby
[11:55:15] `derpy: has joined #ruby
[11:57:24] gregf_: btw, i may be wrong with that p, puts. but yeah, puts is for string. both seem to work :|
[11:57:35] vikas027_: gregf: I know you are helping me out. But I am unable to ask the exact questions. It is my bad. - https://dpaste.de/nyz9
[11:58:59] secret: has joined #ruby
[11:59:58] gregf_: vikas027_: right, so i guess abc is array of Sawyer::Resource objects. what of you do this: abc.find { |h| h[:login] == "abcd" }.class
[12:00:41] shevy: yo dr. atmosx
[12:00:41] solocshaw: has joined #ruby
[12:00:42] vikas027_: gregf: I got this - Sawyer::Resource
[12:01:24] kerunaru: has joined #ruby
[12:02:08] norc: has joined #ruby
[12:03:24] tulak: has joined #ruby
[12:04:05] atmosx: shevy: not yet
[12:04:14] sonOfRa: has joined #ruby
[12:04:33] atmosx: shevy: I have an exam at 8th december (1 week). I'm actually ready to commit suicide, but it's okay. I think I'll get through it (hopefully).
[12:04:49] blackmesa: has joined #ruby
[12:05:00] gregf_: vikas027_: brill. what does this return: p abc.find { |h| h[:login] == "abcd" }.methods
[12:05:09] ta: has joined #ruby
[12:06:30] arthurnn: has joined #ruby
[12:06:47] vikas027_: gregf: I got this https://dpaste.de/roJN
[12:07:04] allcentury: has joined #ruby
[12:07:16] gregf_: vikas027_: its almost as this: Sawyer = Struct.new(:id, :name); i = 0; data = Array.new(3){ Sawyer.new(i+=1, [*?a..?z][0..3].join) };p data; p data.find { |s| s[:id] % 2 == 0 }; # array of Sawyer objects
[12:07:56] gregf_: vikas027_: good. so you've got an Sawyer::Resource objects and you can call those methods
[12:08:26] gregf_: s/an/a/; s/objects/object/
[12:08:59] yfeldblum: has joined #ruby
[12:09:05] vikas027_: gregf: What does this means s/an/a/; s/objects/object/ .Sorry, did not get that... seems like a unix sed command
[12:10:05] TTilus: vikas027_: that's a correction to previous message by same author
[12:10:18] TTilus: vikas027_: and yes, syntax is sed-inspired :)
[12:10:34] vikas027_: TTilus: got it
[12:10:36] gregf_: yeah yeah, its sed ... for now. please run this: methods = [:login, :avatar_url]; methods.map { |m| abc.find { |h| h[:login] == "abcd" }.send(m) }
[12:10:39] vikas027_: TTilus: thanks
[12:10:46] jackcom: has joined #ruby
[12:11:10] ebertx: has joined #ruby
[12:11:37] platzhirsch: has joined #ruby
[12:11:55] babblebre: has joined #ruby
[12:12:33] vikas027_: gregf: I got no output
[12:12:56] gregf_: put a p before methods.map please
[12:12:59] decoponio: has joined #ruby
[12:14:21] vikas027_: gregf: Just got this -- [:login, :avatar_url]
[12:15:54] dlitvak: has joined #ruby
[12:15:59] znz_jp: has joined #ruby
[12:16:54] aep: has joined #ruby
[12:17:49] platzhirsch: has left #ruby: ()
[12:18:14] davidcelis: has joined #ruby
[12:18:15] davidcelis: has joined #ruby
[12:19:20] XenuLives: has joined #ruby
[12:19:30] XenuLives: What does class Foo < self do?
[12:19:56] jackcom: python vs ruby, they have little differenc?
[12:19:57] gregf_: vikas027_: ok, one last suggestion and i'm done :|. abc.find returns an array of objects that were filtered. filtered = abc.find { |h| h[:login] == "abcd" }; puts filtered.map { |f| f.login + " " + f.avatar_url }
[12:20:50] gregf_: jackcom: cmon man. python is a reptile and ruby is a precious stone :|
[12:21:18] jackcom: what you mean?
[12:21:21] baweaver: has joined #ruby
[12:21:34] azgil: has joined #ruby
[12:21:41] gregf_: oh, syntax wise you mean..... kinda
[12:22:40] vikas027_: gregf: I have this https://dpaste.de/eYnR :(
[12:22:54] gbailey: has joined #ruby
[12:23:40] tuelz1: has joined #ruby
[12:23:44] tatsuo: has joined #ruby
[12:23:54] XenuLives: Or is class Foo < self equivalent to class Foo << self ?
[12:24:08] tsunamie: has joined #ruby
[12:24:39] jhass: no it isn't
[12:24:55] jhass: XenuLives: what it does (whether it makes sense at all) depends on what self is
[12:25:02] jhass: so where you found it
[12:25:06] gregf_: vikas027_: then try this one last time: puts filtered.map { |f| f[:login] + " " + f[:avatar_url] }
[12:25:17] XenuLives: jhass: It's a class def inside another class
[12:25:59] jhass: XenuLives: so class Bar; class Foo < self; is a silly way to write class Bar; class Foo < Bar;
[12:26:20] jhass: XenuLives: classes are just objects (instances of the class Class) assigned to constants
[12:26:39] jhass: self inside a class definition is said object too, so class Bar; Bar == self
[12:27:09] vikas027_: gregf: no implicit conversion of Symbol into Integer (TypeError)
[12:27:20] vikas027_: gregf: I got the above error
[12:28:15] XenuLives: jhass: Thought so. There's so much bad code like this out there
[12:28:59] kobain: has joined #ruby
[12:30:16] aep: has joined #ruby
[12:30:52] marr: has joined #ruby
[12:31:23] dagerik: has joined #ruby
[12:31:37] dagerik: im getting Nov 30 13:29:20 git mcollectived[25700]: /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file
[12:31:40] dagerik: Nov 30 13:29:20 git mcollectived[25700]: from /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[12:31:43] dagerik: Nov 30 13:29:20 git mcollectived[25700]: from /usr/sbin/mcollectived:7:in `<main>'
[12:32:08] jhass: dagerik: looks truncated on the right
[12:32:42] dagerik: `require': cannot load such file -- mcollective (LoadError)
[12:32:50] napcae: has left #ruby: ()
[12:33:28] jhass: how did you install it? how did you install Ruby? Do you have multiple Rubies installed? Did you recently update Rub?
[12:34:38] krz: has joined #ruby
[12:34:44] azgil2: has joined #ruby
[12:35:12] brixen: has joined #ruby
[12:35:39] dagerik: jhass: debian 8 which has ruby ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
[12:35:58] dagerik: yes recent uprade from debian 7 to 8
[12:36:01] jhass: pretty confident Debian won't install Ruby to /usr/local
[12:36:39] bronson: has joined #ruby
[12:38:31] dagerik: jhass: okay I think I installed it manually
[12:38:41] aryaching: has joined #ruby
[12:39:13] TTilus: ive got debian 8 and system ruby is ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
[12:39:22] jhass: okay, that's 1 out of 4 questions
[12:39:45] dagerik: I followed this ruby guide: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/6.x-or-7.x-to-7.14.md
[12:39:50] mbeasley: has left #ruby: ("WeeChat 0.4.2")
[12:41:21] chridal_: has left #ruby: ("WeeChat 1.2")
[12:41:24] jhass: I think gitlab has their own channel?
[12:41:38] chridal: has joined #ruby
[12:41:48] coreyw: has joined #ruby
[12:42:07] jhass: I'm not really up to reading through all that and guessing what things you might have done, whether it's really related at all and what you might have missed from it
[12:42:13] dagerik: how can I uninstall a ruby install that I manually installed?
[12:42:24] kilk: has joined #ruby
[12:42:28] dagerik: cd ruby-2.1.6
[12:42:29] dagerik: ./configure --disable-install-rdoc
[12:42:29] dagerik: sudo make install
[12:42:51] mfqr: has joined #ruby
[12:42:53] TTilus: dagerik: you prolly don't need to
[12:43:24] jhass: you can't cleanly
[12:43:40] jhass: that's why we use packages, version managers and shit
[12:44:00] kirun: has joined #ruby
[12:44:23] sankaber: has joined #ruby
[12:45:12] TTilus: dagerik: if you absolutely want to give it a go, have a backup and see .installed.list in your build dir, http://serverfault.com/questions/146511/uninstall-ruby-from-source
[12:45:15] tuelz1: has joined #ruby
[12:45:28] TTilus: dagerik: debian system ruby prolly works just fine for you
[12:45:30] brunto: has joined #ruby
[12:46:36] TTilus: dagerik: if it doesn't for some weird reason, use a special manager which can install (and uninstall!) multiple rubies cleanly side by side
[12:46:56] TTilus: dagerik: your options are plenty, i personally use chruby
[12:51:35] joonty: has joined #ruby
[12:53:55] oddmunds: has joined #ruby
[12:54:26] railswebdev: has joined #ruby
[12:54:37] Macaveli: has joined #ruby
[12:54:49] johnzorn: has joined #ruby
[12:59:04] Jardayn: has joined #ruby
[12:59:18] shevy: dagerik you can compile into a versioned prefix for instance, then nuke the directory if you no longer need it; this is ultimately what rvm etc.. also do, they will use some prefix into your $HOME directory somewhere
[13:00:37] shevy: dagerik another possibility would be http://porg.sourceforge.net/ but if you only need it for one program then that is rather overkill
[13:00:40] tk: has joined #ruby
[13:02:18] sorah: has joined #ruby
[13:04:08] shevy: I like this in python:
[13:04:09] shevy: import sys, urllib2,re, dateparser,json
[13:04:34] shevy: They even don't use any '' or "" there
[13:04:36] jackcom: shevy: you can do python?
[13:05:03] shevy: I can do hello world
[13:05:06] shevy: but only in python 2.x
[13:05:19] jackcom: you are really genious
[13:05:21] shevy: jackcom are you still failing to learn ruby?
[13:05:31] jackcom: https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/41-exceptions/lessons/92-handling
[13:05:37] shevy: you still are
[13:05:51] shevy: is it not awful?
[13:05:52] jackcom: i don???t know word of stop and give up
[13:06:19] jackcom: ruby is not great. i think so.
[13:06:37] jackcom: C and Assembly is better than other.
[13:06:41] adaedra: You don't like it, it's different.
[13:07:15] shevy: assembler
[13:07:22] shevy: you don't write that jackcom come on
[13:07:45] jackcom: adaedra: yeah, ruby is not bad :)
[13:08:00] jackcom: ruby == python == perl
[13:08:06] jackcom: there is no difference
[13:08:10] NET||abuse: has joined #ruby
[13:08:23] adaedra: Stop saying nonsense.
[13:08:40] jackcom: yeah sir adaedra 8)
[13:09:24] YaknotiS: has joined #ruby
[13:09:46] ta: has joined #ruby
[13:10:12] CloCkWeRX: has left #ruby: ()
[13:10:49] Ilyes512: has joined #ruby
[13:11:30] scottymeuk: has joined #ruby
[13:12:44] akem: has joined #ruby
[13:12:46] sdothum: has joined #ruby
[13:15:09] pandaant: has joined #ruby
[13:15:10] RegulationD: has joined #ruby
[13:15:33] ibouvousaime: has joined #ruby
[13:16:55] lorn: has joined #ruby
[13:17:36] gregf_: jackcom writes haskell *shudders*
[13:18:07] Affix: has joined #ruby
[13:19:49] pfg_: has joined #ruby
[13:19:57] Ox0dea: jackcom does not write code.
[13:20:18] Ox0dea: I've never seen evidence to the contrary, in any case.
[13:20:47] jackcom: anyway, ubuntu terminal show little data comparing mac terminal. then how can i do?
[13:22:53] Ox0dea: > Never forget that a human being with technology is exactly like an alcoholic with a barrel of wine.
[13:23:03] Ox0dea: jackcom: Have you read The Unabomber's "Manifesto"?
[13:23:19] pawnbox: has joined #ruby
[13:23:37] jackcom: Ox0dea: i don???t know
[13:23:40] sgambino: has joined #ruby
[13:23:41] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[13:23:50] dravine: has joined #ruby
[13:23:56] nertzy: has joined #ruby
[13:25:20] shevy: jackcom can you not program in your mind alone?
[13:25:31] Morrolan: has joined #ruby
[13:25:48] shredding: has joined #ruby
[13:25:51] jackcom: i need help from skilled programmer.
[13:25:59] gusTester: has joined #ruby
[13:30:07] Ox0dea: I genuinely believe that a ban of some duration would do them good.
[13:30:36] jackcom: what you mean? Ox0dea
[13:30:46] jackcom: i don???t want be baned.
[13:30:51] shevy: don't bane him!
[13:30:53] Ox0dea: It'd either kindle the fire necessary to get you to actually try to learn the language, or else it'd tempt you to move onto greener pastures. Either is an improvement on the present state of affairs.
[13:31:00] dravine: has joined #ruby
[13:31:07] jinie: has joined #ruby
[13:31:30] jackcom: ok Ox0dea i will study ruby hard
[13:31:34] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[13:31:42] jackcom: don???t ban me :(
[13:32:36] dmcp_: has joined #ruby
[13:32:57] gregf_: jackcom: you can choose only one: either you can be 'banned' or you default to 'baned'
[13:33:13] jhass: jackcom: if you want us to believe that, the next 100 things you say must be ontopic questions related to an actual problem you have while learning Ruby
[13:33:20] gregf_: cmon man, being banned from ruby is better than being a bane to ruby :|
[13:33:24] jackcom: i want learn ruby hard
[13:33:46] jackcom: jhass: i understand it
[13:34:02] dmcp: has joined #ruby
[13:34:47] dmcp: has joined #ruby
[13:34:49] prestorium: has joined #ruby
[13:35:26] Ox0dea: jackcom: Do you have Ruby installed?
[13:35:34] dlitvak: has joined #ruby
[13:35:40] jackcom: Ox0dea: :0
[13:35:45] shevy: is this really the truth
[13:36:08] jackcom: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
[13:36:48] roshanavand: has joined #ruby
[13:37:23] Ox0dea: jackcom: Do you know how to save a Ruby program to a file and execute it?
[13:37:39] jackcom: ruby hello.rb
[13:37:46] jackcom: Ox0dea: :)
[13:37:59] Ox0dea: jackcom: And, finally, do you know how to make your editor do that at the press of a button?
[13:38:07] dravine: has joined #ruby
[13:38:30] jackcom: yes i use ms word for coding. :)
[13:38:54] shevy: you really wanna get baned
[13:39:05] shevy: hi jrblub
[13:39:06] jackcom: microsoft word is really good
[13:39:23] shevy: libreoffice is about as good now
[13:39:55] jhass: enough of that
[13:40:06] ruboto: -o ruboto
[13:40:18] jackcom: has left #ruby: ()
[13:40:26] jhass: -.- did the guys let the list run full again
[13:40:30] Ox0dea: SNR goes down considerably every time they start.
[13:40:45] akitada: has joined #ruby
[13:40:51] tsunamie: has joined #ruby
[13:43:09] jhass: -bbbb *!*@*178.62.241.95 *!321ffc40@gateway/web/freenode/ip.50.31.252.64 mark3!*@*$#ruby-fix-your-connection govt__!*@*
[13:43:11] jhass: -bbbo kp666!*@*$#ruby-fix-your-connection *!*@gateway/web/freenode/ip.206.190.141.7 rgtk!*@*$#ruby-fix-your-connection jhass
[13:44:48] sonne: has joined #ruby
[13:45:26] jhass: -bo *!*@gateway/web/freenode/ip.192.71.213.26 jhass
[13:46:43] azgil: admni chepushili kakieto. snachala rasgovarivaut a potom banyt
[13:46:49] azgil: nafya trolley kormit
[13:46:57] yorickpeterse: azgil: English
[13:47:28] YP-QMUL-W: has joined #ruby
[13:47:44] NET||abuse: has joined #ruby
[13:49:01] g3funk: has joined #ruby
[13:50:32] antgel: has joined #ruby
[13:51:25] marahin: has joined #ruby
[13:52:46] jtdowney: has joined #ruby
[13:52:46] jtdowney: has joined #ruby
[13:53:05] Brando753: has joined #ruby
[13:54:29] davedev24: has joined #ruby
[13:55:25] brunto: has joined #ruby
[13:55:52] lorn: has joined #ruby
[13:56:01] akosednar: has joined #ruby
[13:56:52] Ilyes512: has joined #ruby
[13:57:10] gusTester: has left #ruby: ()
[13:59:47] shadeslayer: has joined #ruby
[14:00:29] ricer2: has joined #ruby
[14:01:26] shevy: random people speaking cthulhu here
[14:01:49] vasilakisFiL: has joined #ruby
[14:02:20] vasilakisFiL: hey.. how can I figure out how much system memory a ruby array with N elements requires ?
[14:02:38] abra0: has joined #ruby
[14:03:48] Ox0dea: >> require 'objspace'; ObjectSpace.memsize_of [1,2,3] # vasilakisfil
[14:03:49] ruboto: Ox0dea # => 20 (https://eval.in/477837)
[14:04:18] vasilakisFiL: is the value in bytes ?
[14:04:43] epochwolf: has joined #ruby
[14:05:10] karapetyan: has joined #ruby
[14:05:56] shevy: >> require 'objspace'; ObjectSpace.memsize_of [1,2,3,3,2,1]
[14:05:57] ruboto: shevy # => 44 (https://eval.in/477838)
[14:06:09] shevy: it eats my RAM!!!
[14:06:10] Ox0dea: KRI optimizes for very tiny arrays.
[14:06:23] shevy: big data wants big arrays!!!!!
[14:06:31] Ox0dea: Did you mean sparse matrices?
[14:06:35] maloik: store it in mongo
[14:06:44] maloik: no sql no problems
[14:06:56] vasilakisFiL: so if I do ObjectSpace.memsize_of_all/8/1024/1024 I get how many mbs my ruby program eats ?
[14:07:24] Ox0dea: vasilakisfil: That would be a very rough approximation, sure.
[14:08:07] Ox0dea: ??? "Mo' SQL, mo' problems" is true, 'cause the mo' SQL for me the mo' problems for you. ???
[14:10:42] cmoneylulz: has joined #ruby
[14:10:53] maloik: hihi I can see your little music note there... a while back my irssi on a work box would have barfed because of encoding
[14:13:24] mary5030: has joined #ruby
[14:14:26] tsunamie: has joined #ruby
[14:15:14] j2k: has joined #ruby
[14:15:21] bahar: has joined #ruby
[14:15:29] timonv: has joined #ruby
[14:18:06] vbatts: has left #ruby: ("found the other side of the rainbow")
[14:18:37] vasilakisFiL: Ox0dea I have a rails console open to my test app and I get 9mbs how shold I interpret that ? :)
[14:18:43] brixen: has joined #ruby
[14:19:03] bubbys: has joined #ruby
[14:20:27] NET||abuse: has joined #ruby
[14:22:17] nertzy: has joined #ruby
[14:23:40] Ox0dea: vasilakisfil: Seems a little low. :P
[14:25:43] vayan: has joined #ruby
[14:25:54] ThePrisoner: has joined #ruby
[14:26:17] ThePrisoner: has left #ruby: ()
[14:28:18] FastJack: has joined #ruby
[14:28:56] Ilyes512: has joined #ruby
[14:31:56] karapetyan: has joined #ruby
[14:32:19] greister: How to set a custom user agent in ruby?
[14:32:39] adaedra: Depends of your HTTP library.
[14:33:24] greister: May I use open method?
[14:34:48] jaxxstorm: has joined #ruby
[14:35:04] karapetyan: has joined #ruby
[14:35:09] plonk: has joined #ruby
[14:35:10] plonk: has joined #ruby
[14:35:26] Ox0dea: I think not.
[14:35:29] pandaant: has joined #ruby
[14:35:58] Ox0dea: Oh, never mind.
[14:36:10] Ox0dea: greister: You can pass a Hash of headers as the second argument.
[14:36:14] binaryplease: has joined #ruby
[14:36:15] dmonster: has joined #ruby
[14:37:18] sankaber: has joined #ruby
[14:38:24] bronson: has joined #ruby
[14:38:34] djcp: has joined #ruby
[14:38:44] user1138: has joined #ruby
[14:38:49] karapetyan: has joined #ruby
[14:40:09] greister: 0xx0dea,ok. I try it.
[14:40:44] sphex: has joined #ruby
[14:41:16] nertzy: has joined #ruby
[14:41:18] alexblom: has joined #ruby
[14:42:32] iamayam: has joined #ruby
[14:42:47] snockerton: has joined #ruby
[14:44:27] Pupp3tm4_: has joined #ruby
[14:45:02] Some-body_: has joined #ruby
[14:45:15] Pupp3tm4st3r: has joined #ruby
[14:45:35] inukshuk: has joined #ruby
[14:48:15] sdothum: has joined #ruby
[14:50:13] sankaber: has joined #ruby
[14:50:37] whippythellama: has joined #ruby
[14:53:00] TomyWork: has joined #ruby
[14:53:11] stannard: has joined #ruby
[14:53:28] jinie: has joined #ruby
[14:54:16] ceej: has joined #ruby
[14:57:47] joonty: has joined #ruby
[15:00:53] favadi: has joined #ruby
[15:01:30] Z00t: has joined #ruby
[15:02:56] shevy: how is ruby positioned in regards to audio-libraries? I searched yesterday and got quite a lot of results with python, using numpy and scipy
[15:03:04] shevy: like decibel calculations
[15:03:51] tsunamie: has joined #ruby
[15:04:39] ujjain: has joined #ruby
[15:04:40] ujjain: has joined #ruby
[15:05:19] andersh: has joined #ruby
[15:05:25] stannard: has joined #ruby
[15:06:38] vasilakisFiL: has joined #ruby
[15:06:38] ElderFain: has joined #ruby
[15:09:35] stannard_: has joined #ruby
[15:10:20] shinnya: has joined #ruby
[15:10:38] Frem: has joined #ruby
[15:11:04] InvGhost: has joined #ruby
[15:11:19] karapetyan: has joined #ruby
[15:13:20] RegulationD: has joined #ruby
[15:15:13] roshanavand: has joined #ruby
[15:15:23] shevy: ACTION starts to spank the channel
[15:15:33] ceej: has joined #ruby
[15:15:55] roshanavand: has joined #ruby
[15:18:35] tsunamie: has joined #ruby
[15:19:53] vondruch: has joined #ruby
[15:19:59] symm-: has joined #ruby
[15:20:34] shadeslayer: has joined #ruby
[15:21:21] ddv: nice shevy
[15:21:58] grzegorz: has joined #ruby
[15:23:29] shevy: I noticed you people were falling asleep
[15:27:27] ta: has joined #ruby
[15:27:40] ltd: has joined #ruby
[15:28:55] shevy: hmm let's do some fancy TIOBE magic again http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
[15:29:26] shevy: if we add all scripting languages... so... we say... these be... python php javascript ruby perl ... lua
[15:29:58] shevy: huh perhaps R as well
[15:30:33] shevy: 14.35% hmmmm
[15:32:01] ujjain: has joined #ruby
[15:32:02] ujjain: has joined #ruby
[15:32:50] ndancer: has joined #ruby
[15:33:36] ryotarai: has joined #ruby
[15:33:46] Paradox: has joined #ruby
[15:34:09] gix: has joined #ruby
[15:34:11] aryaching: has joined #ruby
[15:34:12] SalviaNobile: has joined #ruby
[15:34:19] tsunamie: has joined #ruby
[15:34:21] toretore: has joined #ruby
[15:34:27] kadoppe: has joined #ruby
[15:34:29] Sirecote: has joined #ruby
[15:34:29] secret: has joined #ruby
[15:34:41] scottymeuk: has joined #ruby
[15:34:43] KervyN: has joined #ruby
[15:34:43] gbailey: has joined #ruby
[15:34:50] z3uS: has joined #ruby
[15:34:53] centrx: has joined #ruby
[15:35:01] Papierkorb: has joined #ruby
[15:35:04] Lildirt: has joined #ruby
[15:35:04] nettoweb: has joined #ruby
[15:35:09] vondruch: has joined #ruby
[15:35:24] sankaber: has joined #ruby
[15:35:32] fmcgeough: has joined #ruby
[15:35:35] Scient: has joined #ruby
[15:35:38] tomdp: has joined #ruby
[15:35:47] dopie: has joined #ruby
[15:35:49] railswebdev: has joined #ruby
[15:35:53] NeverDie: has joined #ruby
[15:35:57] adaedra: Part of me that cares about TIOBE
[15:36:01] adaedra: 0.00% hmmmm
[15:36:07] Morrolan: has joined #ruby
[15:36:10] akosednar: has joined #ruby
[15:36:11] tuelz1: has joined #ruby
[15:36:13] brunto: has joined #ruby
[15:36:18] brixen: has joined #ruby
[15:36:18] apeiros: has joined #ruby
[15:36:19] sonne: has joined #ruby
[15:36:19] sonne: has joined #ruby
[15:36:31] codex: has joined #ruby
[15:36:34] kitallis: has joined #ruby
[15:36:37] joeyjones: has joined #ruby
[15:36:39] krz: has joined #ruby
[15:36:42] arthurnn: has joined #ruby
[15:36:45] Couch: has joined #ruby
[15:36:46] ebertx: has joined #ruby
[15:36:47] daivyk: has joined #ruby
[15:36:49] quarcu: has joined #ruby
[15:36:56] djanatyn: has joined #ruby
[15:37:00] perry: has joined #ruby
[15:37:01] perry: has joined #ruby
[15:37:02] ajb: has joined #ruby
[15:37:06] SirCmpwn: has joined #ruby
[15:37:10] Z00t: has joined #ruby
[15:37:15] shevy: the numbers seem a bit weird
[15:37:16] iamvery: has joined #ruby
[15:37:18] tenderlove: has joined #ruby
[15:37:25] okdas: has joined #ruby
[15:37:25] okdas: has joined #ruby
[15:37:25] chouhoulis: has joined #ruby
[15:37:25] shevy: don't most C hackers also use e. g. perl?
[15:37:25] kirun: has joined #ruby
[15:37:26] dorei: has joined #ruby
[15:37:33] skade: has joined #ruby
[15:37:39] dravine: has joined #ruby
[15:37:41] Karunamon: has joined #ruby
[15:37:41] zenspider: has joined #ruby
[15:37:45] aep: has joined #ruby
[15:37:57] Nilium: has joined #ruby
[15:37:59] kies: has joined #ruby
[15:38:06] wsewolod: has joined #ruby
[15:38:17] goodcodeguy: has joined #ruby
[15:38:24] NET||abuse: has joined #ruby
[15:38:30] g3funk: has joined #ruby
[15:38:31] Dood__: has joined #ruby
[15:38:32] dlitvak: has joined #ruby
[15:38:36] varesa: has joined #ruby
[15:38:46] malconis: has joined #ruby
[15:39:05] hinbody: has joined #ruby
[15:39:19] kies: has joined #ruby
[15:39:34] lorn: has joined #ruby
[15:39:35] lianj: has joined #ruby
[15:39:36] lianj: has joined #ruby
[15:39:36] omegahm: has joined #ruby
[15:39:43] h99h9h88: has joined #ruby
[15:40:04] spleeze: has joined #ruby
[15:40:10] freerobby: has joined #ruby
[15:40:20] antgel: has joined #ruby
[15:40:31] grill: has joined #ruby
[15:40:54] vasilakisFiL: has joined #ruby
[15:40:54] ElderFain: has joined #ruby
[15:41:03] duracrisis: has joined #ruby
[15:41:20] jzigmund: has joined #ruby
[15:42:05] hinbody: has joined #ruby
[15:42:06] maikowblue: has joined #ruby
[15:42:21] Brando753: has joined #ruby
[15:42:42] dlitvak_: has joined #ruby
[15:43:28] Dood__: has joined #ruby
[15:44:34] podman: has joined #ruby
[15:44:53] vakor: has joined #ruby
[15:45:12] solenoids: has joined #ruby
[15:45:16] mmasaki: has joined #ruby
[15:45:17] jhass: ?offtopic
[15:45:17] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[15:45:20] bahar: has joined #ruby
[15:45:21] svkurowski: has joined #ruby
[15:46:36] Bish: silence is offtopic?
[15:47:22] Ox0dea: The silence must be Ruby-related.
[15:47:35] shanemcd: has joined #ruby
[15:47:37] varesa: has joined #ruby
[15:47:38] df: has joined #ruby
[15:47:45] jottr: has joined #ruby
[15:47:50] shevy: usage of ruby is offtopic!
[15:47:52] centrx: ruby rub ruby roob robey rib BBBQ
[15:48:16] russt: has joined #ruby
[15:48:34] RandyT: has joined #ruby
[15:49:10] d0nn1e: has joined #ruby
[15:49:25] dlitvak: has joined #ruby
[15:50:10] pjaspers: has joined #ruby
[15:50:26] Ox0dea: centrx: Relevant: https://github.com/tric/trick2013/blob/master/yhara2/entry.rb
[15:50:33] maddmaxx: has joined #ruby
[15:51:19] RobertBirnie: has joined #ruby
[15:51:33] j0bk: has joined #ruby
[15:51:42] jgpawletko: has joined #ruby
[15:51:48] clamstar: has joined #ruby
[15:52:18] luca768: has joined #ruby
[15:52:51] alexblom: has joined #ruby
[15:53:24] railswebdev: has joined #ruby
[15:53:28] derailed: has joined #ruby
[15:54:21] _stu_: has joined #ruby
[15:54:49] DexterLB: has joined #ruby
[15:54:56] redlegion: has joined #ruby
[15:55:13] gsingh93: has joined #ruby
[15:55:14] joonty: has joined #ruby
[15:55:37] Briney: has joined #ruby
[15:55:39] aspiers: has joined #ruby
[15:55:59] marr: has joined #ruby
[15:56:04] an0ma1y: has joined #ruby
[15:56:06] nlsun: has joined #ruby
[15:56:11] adeponte: has joined #ruby
[15:56:41] jpfuentes2: has joined #ruby
[15:58:01] dannluciano: has joined #ruby
[15:58:55] kaspergrubbe: has joined #ruby
[15:59:18] rickmasta: has joined #ruby
[15:59:50] mary5030: has joined #ruby
[16:00:03] TomPeed: has joined #ruby
[16:00:15] pawnbox: has joined #ruby
[16:00:49] InvGhost: has joined #ruby
[16:01:01] patdohere: has joined #ruby
[16:01:10] Sou|cutter: has joined #ruby
[16:01:37] blackmesa: has joined #ruby
[16:01:45] davidcelis: has joined #ruby
[16:01:46] davidcelis: has joined #ruby
[16:02:50] myztic: has joined #ruby
[16:04:48] teclator: has joined #ruby
[16:06:27] saltsa: has joined #ruby
[16:07:13] RobertBirnie: has joined #ruby
[16:07:39] krobzaur: has joined #ruby
[16:08:12] ziggles: has joined #ruby
[16:08:17] blackmesa: has joined #ruby
[16:08:32] rodfersou: has joined #ruby
[16:08:41] oddmunds: has joined #ruby
[16:09:11] ziggles: Anyone know how to have file path spaces escaped? File.join('some lib') # => #<Pathname:/Volumes/code/my_app/some lib>
[16:09:20] h99h9h88: has joined #ruby
[16:09:27] patdohere: has joined #ruby
[16:10:17] jhass: ziggles: what's your actual problem?
[16:10:41] YP-QMUL-W: has joined #ruby
[16:10:49] jhass: escaping the spaces is the solution you think you need to it, there's probably a better way
[16:10:57] landry: has joined #ruby
[16:11:39] slawrence00: has joined #ruby
[16:11:40] michael_mbp: has joined #ruby
[16:11:42] ziggles: jhass: My problem is that i just discovered a bug when my script tries to access files with a space in the path name. I thought that File.join was the preferred way to build up a path
[16:11:48] beneggett: has joined #ruby
[16:12:09] ziggles: I could manually escape the string after joining but i feel like it's probably handled by Ruby some how
[16:12:14] scottymeuk: has joined #ruby
[16:12:16] jhass: I'm not aware of a Ruby function for file access that would choke on unescaped spaces
[16:13:02] wldcordeiro: has joined #ruby
[16:13:42] ziggles: spaces in paths are a pet peeve of mine... but on OSX it's sometimes unavoidable when the system creates a path :/
[16:13:48] googly: has joined #ruby
[16:14:15] Ox0dea: ziggles: Still, they shouldn't be posing you a problem in Ruby.
[16:14:25] zast: has joined #ruby
[16:14:54] nkwsy___4: has joined #ruby
[16:14:59] ziggles: Ox0dea: Unless i'm using the wrong method of generating a path, they are
[16:15:09] azgil: has joined #ruby
[16:15:16] jhass: ziggles: how about you show some actual code with some actual error message?
[16:15:16] Ox0dea: ziggles: Are you interpolating these paths into shell commands or something?
[16:15:48] googly: has joined #ruby
[16:16:14] ziggles: Ox0dea: yeah that's exactly what i'm doing
[16:16:24] jhass: so add some quotes around that
[16:16:51] jhass: rule number one of dealing with your shell in a programmatic way: quote everything
[16:17:05] jhass: but ideally you would just bypass your shell altogether
[16:17:16] havenwood: >> require 'shellwords'; Shellwords.escape 'eek these spaces'
[16:17:17] ruboto: havenwood # => "eek\\ these\\ spaces" (https://eval.in/477885)
[16:17:17] jhass: use the array form of system/spawn
[16:17:27] jhass: havenwood: too early
[16:17:30] banister: has joined #ruby
[16:17:36] ziggles: jhass: jesus christ. i dont know how i could have overlooked just quoting the string
[16:17:38] jhass: havenwood: don't show the ugly solution until we convinced them of the proper one
[16:17:44] solocshaw1: has joined #ruby
[16:17:57] havenwood: jhass: I thought the convincing had happened! :P
[16:18:14] jhass: ziggles: please do yourself a favor and look into the array forms of system/spawn
[16:18:28] jhass: don't invoke a shell if you don't need it
[16:18:34] jhass: and in 90% of the cases you don't
[16:19:22] tuelz1: has joined #ruby
[16:19:31] blackmesa: has joined #ruby
[16:19:40] tuelz: has joined #ruby
[16:21:24] tildes: has joined #ruby
[16:21:43] ziggles: jhass: this, correct? http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-spawn
[16:21:44] The_Phoenix: has joined #ruby
[16:21:55] jhass: yes, system takes the same forms
[16:22:03] darkxploit: has joined #ruby
[16:22:12] BTRE: has joined #ruby
[16:22:47] SirFunk: has joined #ruby
[16:23:46] dhollinger: has joined #ruby
[16:23:50] araujo: has joined #ruby
[16:23:50] araujo: has joined #ruby
[16:24:16] baweaver: has joined #ruby
[16:24:40] Icey: has joined #ruby
[16:24:45] ziggles: jhass: thank you for the help and the education.
[16:25:05] j5s7: has joined #ruby
[16:25:09] shredding: has joined #ruby
[16:25:19] Icey: has joined #ruby
[16:25:56] j5s7: has joined #ruby
[16:26:09] karapetyan: has joined #ruby
[16:26:15] Icey: has joined #ruby
[16:26:29] griffindy: has joined #ruby
[16:27:01] ldnunes: has joined #ruby
[16:27:28] b0yzn01z3: has joined #ruby
[16:28:30] yoongkang: has joined #ruby
[16:29:38] ddubs: has joined #ruby
[16:30:19] skade: has joined #ruby
[16:30:46] aryaching_: has joined #ruby
[16:30:49] tulak: has joined #ruby
[16:30:50] kerunaru: has joined #ruby
[16:32:18] mjuszczak: has joined #ruby
[16:33:08] YP-QMUL-W: has joined #ruby
[16:33:12] karapetyan: has joined #ruby
[16:33:32] danneu: has joined #ruby
[16:34:58] mjuszczak: has joined #ruby
[16:37:48] YP-QMUL-W: has joined #ruby
[16:38:33] gigetoo: has joined #ruby
[16:39:06] x0F: has joined #ruby
[16:39:37] Xeago: has joined #ruby
[16:40:10] j5s7: has joined #ruby
[16:40:15] bronson: has joined #ruby
[16:40:35] tsunamie: has joined #ruby
[16:41:25] lady3bean: has joined #ruby
[16:42:04] blackjid: has joined #ruby
[16:42:15] j5s7: has joined #ruby
[16:43:02] kies: has joined #ruby
[16:43:10] tulak: has joined #ruby
[16:43:19] Gnut: has joined #ruby
[16:43:25] gnarf: has joined #ruby
[16:44:19] Biohazard: has joined #ruby
[16:44:21] yxhuvud: has joined #ruby
[16:45:15] prasselpikachu: has joined #ruby
[16:45:24] shtirlic: has joined #ruby
[16:45:31] linc01n: has joined #ruby
[16:45:39] sindork: has joined #ruby
[16:45:40] karapetyan: has joined #ruby
[16:45:51] gregf_: has joined #ruby
[16:46:21] yardenbar: has joined #ruby
[16:46:54] c0m0: has joined #ruby
[16:48:00] j5s7: has joined #ruby
[16:48:13] SlvrDragn: has joined #ruby
[16:48:47] tethra: has joined #ruby
[16:49:52] malconis: has joined #ruby
[16:50:49] beneggett: has joined #ruby
[16:51:04] jottr_: has joined #ruby
[16:52:18] BlackCoyote: has joined #ruby
[16:53:07] [Butch]: has joined #ruby
[16:54:19] akem: has joined #ruby
[16:55:30] freerobby1: has joined #ruby
[16:57:53] shevy: spawn is faster than system?
[16:58:03] lapide_viridi: has joined #ruby
[16:58:06] jhass: shevy: they do different things
[16:59:20] shevy: hmm... "otherwise, the operating system may accumulate zombies"
[17:00:32] adaedra: You know what is a zombie?
[17:01:15] shevy: something that wants brains
[17:01:55] shevy: its documentation is a bit sparse: http://ruby-doc.org/core-2.2.3/Process.html#method-c-spawn
[17:02:06] shevy: "spawn has bunch of options to specify process attributes"
[17:02:31] adaedra: There are aspects which are not really ruby-related.
[17:02:36] adaedra: Like zombies.
[17:02:51] shevy: there are zombies in the documentation!
[17:03:24] jhass: shevy: look at Kernel#spawn
[17:03:38] adaedra: All of this should make more sense with knowledge one process management and things related.
[17:04:20] speakingcode: has joined #ruby
[17:05:11] shevy: http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-spawn
[17:05:23] shevy: zombies there as well
[17:06:08] adaedra: https://en.wikipedia.org/wiki/Zombie_process
[17:06:09] karapetyan: has joined #ruby
[17:06:18] gregf_: has joined #ruby
[17:06:22] matp: has joined #ruby
[17:06:33] favadi: has joined #ruby
[17:06:55] Hobbyboy: has joined #ruby
[17:07:01] jottr_: has joined #ruby
[17:08:48] mostlybadfly: has joined #ruby
[17:09:00] s2013: has joined #ruby
[17:09:42] diegoaguilar: has joined #ruby
[17:09:43] Outlastsheep: has joined #ruby
[17:10:10] dopie: has joined #ruby
[17:11:13] Jardayn: has joined #ruby
[17:12:04] asccigcc: has joined #ruby
[17:12:37] Bish: >> [(0.0)...(0.3),(0.3)...(0.7),(0.7)..1.0].bsearch { |x| x.begin >= 0.4 }
[17:12:38] ruboto: Bish # => 0.7..1.0 (https://eval.in/477916)
[17:13:15] Ox0dea: Bish: Superfluous parens for days.
[17:13:37] Bish: Ox0dea, pardon?
[17:13:47] Ox0dea: Bish: You didn't need any of those parentheses.
[17:13:57] adaedra: >> [0.0...0.3,0.3...0.7,0.7..1.0].bsearch { |x| x.begin >= 0.4 }
[17:13:58] ruboto: adaedra # => 0.7..1.0 (https://eval.in/477922)
[17:14:07] Bish: >> [0.0...0.3,0.4...0.7]
[17:14:08] ruboto: Bish # => [0.0...0.3, 0.4...0.7] (https://eval.in/477923)
[17:14:14] Bish: :o why am i always doing this
[17:14:16] Ox0dea: Why would I lie to you about something like that?
[17:14:26] cornerma1: has joined #ruby
[17:14:33] adaedra: To spread cahos.
[17:14:38] Ox0dea: Bish: You generally need them for enclosing a Range itself, but not its constituent parts.
[17:15:15] cwong_on_irc: has joined #ruby
[17:15:27] gregf_: has joined #ruby
[17:15:29] Bish: im doing it because i usually do 0..x.method
[17:15:30] s00pcan_: has joined #ruby
[17:16:23] mjuszczak: has joined #ruby
[17:16:45] allomov: has joined #ruby
[17:16:46] hxegon: has joined #ruby
[17:16:49] Bish: but can you actually help me, doing that bsearch correctly, i might be stupid
[17:16:56] Ox0dea: >> 0..2.succ # Bish
[17:16:57] ruboto: Ox0dea # => 0..3 (https://eval.in/477928)
[17:16:59] adaedra: shevy: here, a 5-second zombie. https://gist.github.com/adaedra/f302093d957376aed686
[17:17:07] Ox0dea: `..` and `...` bind quite loosely.
[17:17:36] iamvery: has joined #ruby
[17:18:02] shevy: adaedra lol
[17:18:20] shevy: adaedra you still have control over that zombie
[17:18:49] RobertBi_: has joined #ruby
[17:19:06] adaedra: Oh, I could totally end it after the wait. But if you look with ps during the sleep(3), you'll see a process in Z state, zombie.
[17:19:29] absolutejam: has joined #ruby
[17:19:40] gizmore: has joined #ruby
[17:20:25] davedev24: has joined #ruby
[17:21:07] BTRE: has joined #ruby
[17:21:30] Ox0dea: Bish: Your code is fine?
[17:22:06] mistermocha: has joined #ruby
[17:22:31] Guest38: has joined #ruby
[17:22:35] jobewan: has joined #ruby
[17:22:46] Oatmeal: has joined #ruby
[17:22:49] beneggett: has joined #ruby
[17:23:20] amclain: has joined #ruby
[17:23:31] Oatmeal: has joined #ruby
[17:23:38] solenoids: has joined #ruby
[17:23:44] Bish: >> [(0.0)...(0.3),(0.3)...(0.7),(0.7)..1.0].bsearch { |x| 0.4<=x.end }
[17:23:45] ruboto: Bish # => 0.3...0.7 (https://eval.in/477945)
[17:23:51] Bish: :o that's it, right?
[17:24:00] fantazo: has joined #ruby
[17:25:06] Ox0dea: Looks fine?
[17:25:16] mjuszczak: has joined #ruby
[17:25:27] Ox0dea: Maybe you want `#cover?`?
[17:25:39] Bish: what does cover do!?
[17:26:02] adaedra: No &ri today ???
[17:26:21] towski_: has joined #ruby
[17:27:12] Ox0dea: Bish: #cover? and #include? are just slightly more pleasant ways to check whether a given value occurs within some Range.
[17:27:20] Bish: yeah but it's too slow
[17:27:20] jackjackdripper: has joined #ruby
[17:27:36] symm-: has joined #ruby
[17:28:23] Bish: well, it is for me :D
[17:28:26] Ox0dea: #cover? just checks that the value is gte #begin and lt(e) #end.
[17:28:44] Bish: *checks cover*
[17:29:06] adaedra: Get down Mr President!
[17:29:07] Ox0dea: But, sure, if you have the domain knowledge to do one comparison instead of two, your code needs no improvement.
[17:29:37] Bish: i have a huge array of ranges, and i need to search them faster than i do already
[17:29:46] yoongkang: has joined #ruby
[17:29:57] Bish: (i use find right now)
[17:30:18] dagerik: has left #ruby: ()
[17:30:20] h99h9h88: has joined #ruby
[17:31:10] Ox0dea: Are they sorted?
[17:31:34] Ox0dea: Why do you have a huge array of ranges?
[17:31:44] Bish: because im st00pid
[17:31:57] Ox0dea: >> Errno::EDOOFUS
[17:31:58] ruboto: Ox0dea # => Errno::NOERROR (https://eval.in/477951)
[17:32:50] nertzy: has joined #ruby
[17:33:30] adaedra: Seriously?
[17:33:38] Ox0dea: BSD thing.
[17:33:41] sepp2k: has joined #ruby
[17:33:55] shevy: that's funny... doof also is a german word
[17:34:16] Bish: wow, it actually works
[17:34:34] shevy: your ruby skills are getting better and better by the day Bish
[17:34:40] moei: has joined #ruby
[17:34:42] Bish: yeah, isn't that cooL!?!
[17:34:46] adaedra: At least someone who is improving.
[17:35:21] Bish: im the best arooound~ ???
[17:35:34] Bish: seems a little bit faster now
[17:35:35] shevy: Bish hey ... isnt that from a movie
[17:35:45] adaedra: But I guess that looking at TIOBE index everyday is not the best way to improve ruby skills.
[17:36:05] dlitvak: has joined #ruby
[17:36:12] Ox0dea: shevy: https://www.youtube.com/watch?v=HwaroatABu4
[17:36:16] shevy: if they'd eat more baguette they'd become wiser
[17:36:44] Bish: ruby gettin' higher, and assembly, wut
[17:36:55] Bish: i want high languages and improve them with assembler, wham
[17:37:02] Ox0dea: Bish: Guess where I'm hiding the number of fucks you should give about TIOBE?
[17:37:18] shevy: Bish yeah they seem to have a hard time breaking into the top 3
[17:37:28] jhass: Ox0dea: the same place you store your vacuum?
[17:37:28] Bish: i don't i just google'd it because adeponte
[17:37:31] TomPeed: has joined #ruby
[17:37:36] Bish: adaedra, *
[17:37:57] Bish: how on earth is assembly #11
[17:38:08] Ox0dea: Why shouldn't it be?
[17:38:24] Bish: because people don't use it, that's why (inb4 they use it, it's not what i mean)
[17:38:32] Ox0dea: > People die when they are killed.
[17:38:33] s2013: has joined #ruby
[17:38:34] shevy: embedded I guess
[17:38:41] Bish: the ranking is because of popularity, isn't it?
[17:38:45] Ox0dea: Nobody knows.
[17:38:53] Bish: embedded really gets done in asm? i really doubt in
[17:38:54] adaedra: s/knows/cares/
[17:38:57] Bish: most parts will be c
[17:39:08] Ox0dea: Bish: Are you guessing?
[17:39:11] sandstrom: has joined #ruby
[17:39:28] Bish: im not guessing, im just saying there are more kids willing to "vote" for python than assembly
[17:39:38] Bish: this is a subjective ranking by someone who thinks "yeah java is important"
[17:39:52] Bish: and ofcourse it is.. but this is stupid, as stupid as i am
[17:40:10] Ox0dea: Someone needs a cuddle.
[17:40:51] Bish: im not mad because my programming language isn't on the list, im mad because it's totally pointless
[17:41:07] bronson: has joined #ruby
[17:41:11] shevy: Bish it's also not that far off here, at #13 http://spectrum.ieee.org/static/interactive-the-top-programming-languages-2015
[17:42:10] blubjr: obviously embedded uses assembler..
[17:42:13] Ox0dea: Bish: Sounds like you need some Gandhi in your life.
[17:42:20] Bish: shell comes right after sql hrm hrm
[17:42:34] Bish: ofc embedded uses assembler, but not as much
[17:42:58] shevy: constraint programming
[17:43:00] Ox0dea: Bish: Not as much as what?
[17:43:08] malconis: has joined #ruby
[17:45:10] djbkd: has joined #ruby
[17:45:55] Bish: as much as peecha chakka no wookie boonowa tweepi solo ho ho ho
[17:46:09] Ox0dea: Oh, hey, you are retarded.
[17:46:17] Ox0dea: I thought you might've only been pretending.
[17:46:17] Bish: thank you!
[17:46:32] Bish: i actually googled that comeback, because im not fluent in jabba
[17:47:51] iamayam: has joined #ruby
[17:47:51] dlitvak: has joined #ruby
[17:48:11] Bish: i just can't see whole chips getting written with asm, even small ones
[17:48:11] baroquebobcat: has joined #ruby
[17:48:50] Ox0dea: Why should your lack of insight have any bearing on what is actually true?
[17:48:59] c0m0: has joined #ruby
[17:49:37] Bish: never claimed i was an expert on this, but still, i feel if assembly was that popular, more people wanted to talkw ith me about that topic
[17:49:39] Bish: but they don't
[17:50:04] bronson: has joined #ruby
[17:50:10] toretore: has joined #ruby
[17:50:15] mg^: I write MIPS assembly on occasion
[17:50:25] jbrhbr: has joined #ruby
[17:50:40] mg^: and occasionally Z-80
[17:50:48] mg^: it's just not usually worth talking about :)
[17:51:15] Bish: well, do you do it for a living?
[17:51:44] fantazo: has joined #ruby
[17:52:00] mg^: Nah, hobby. Was going to try to turn it into a living, but decided that firmware programming was not my thing
[17:52:07] Bish: see. that's what i meant.
[17:52:46] Bish: and what platform doesn't have a c compiler, ofcourse you do the high-performance stuff in assembler, but i just don't see it as high in the ranking as someone else
[17:52:50] mg^: I mean, I enjoy it to some level, but the places that pay for it are not where I want to work
[17:53:32] Bish: where do you want to work
[17:53:48] Bish: self employed :D?
[17:53:49] mg^: I'm working where I want to work :)
[17:53:58] mg^: No, I work for a SaaS startup
[17:55:06] blubjr: bish bursts through a door, all the embedded hackers look up, bish says you could just do this in c, everyone stands up and cheers
[17:55:15] mg^: Most of my job can be described as "making software play well with others" :-)
[17:55:20] Alayde: has joined #ruby
[17:55:27] Bish: blubjr, are you one of those hackers?
[17:55:45] Bish: and i never said something like that, you're turning my words
[17:56:01] Bish: and why are you so mad, i just said assembly is not as popular as in that ranking
[17:56:03] mg^: Essentially I spend most of my day taking the output of one things API, munging the data, and stuffing it into some other things API. Not something that's fun with assembly!
[17:56:11] ceej: has joined #ruby
[17:56:15] Bish: grab a coffee dudes, i love assembly
[17:56:22] eam: so, TIOBE is based on search engine queries, right?
[17:56:32] h99h9h88: has joined #ruby
[17:56:41] eam: it's not a measure of how much something's used as much as a measure of how often people have questions about the thing
[17:56:50] Bish: i have no clue, and i also have no clue why people enrage when i say something like that :o
[17:56:52] jbrhbr: eam: i was trying to catch you the other day??? do you know of any other weird things like that [true or false] problem you mentioned last week?
[17:57:03] eam: unsurprising that assembly ranks high in terms of searches, considering it's almost entirely just domain specific knowledge
[17:57:25] Ox0dea: >> [p 1] # jbrhbr
[17:57:25] eam: jbrhbr: sure, the and/or/not parses weird in a few other contexts
[17:57:26] ruboto: Ox0dea # => /tmp/execpad-53867c82ff3d/source-53867c82ff3d:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/477957)
[17:57:53] jbrhbr: eam: i mean aside from those, i noticed they are broken all over the place after you clued me into it :)
[17:58:02] Bish: and i've seen embedded developers, but i haven't seen embedded developers who do assembly
[17:58:20] Ox0dea: jbrhbr: "Broken"?
[17:58:25] eam: >> def f(x);x;end;"f(true)!f(not true)!f((not true))!f not true!f (not true)".split(?!).map { |exp| begin; eval exp; rescue Exception; "busted: "+exp;end }
[17:58:26] ruboto: eam # => [true, "busted: f(not true)", false, "busted: f not true", false] (https://eval.in/477958)
[17:58:59] nofxx: has joined #ruby
[17:58:59] nofxx: has joined #ruby
[17:59:00] Takumo: has joined #ruby
[17:59:01] Takumo: has joined #ruby
[17:59:41] aryaching: has joined #ruby
[17:59:45] migou: has joined #ruby
[17:59:54] jbrhbr: Ox0dea: `x or y` is not a proper expression in the sense that it can be used where any other expression can, without parens for parser disambiguation
[18:00:10] Ox0dea: jbrhbr: But that's also true for method invocation, as I recently demonstrated.
[18:00:12] migou: has left #ruby: ()
[18:00:19] eam: jbrhbr: this annoys me: https://gist.github.com/eam/1800a44a6144830d8479
[18:00:37] jbrhbr: Ox0dea: can you share your example? not sure i saw it
[18:00:41] Ox0dea: >> [p 1] # jbrhbr
[18:00:42] ruboto: Ox0dea # => /tmp/execpad-eda3c22f6b22/source-eda3c22f6b22:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/477959)
[18:01:07] jbrhbr: Ox0dea: good one
[18:01:11] eam: jbrhbr: there's some other fun around when -@ is a method or not
[18:02:20] jbrhbr: the puts one looks reasonable
[18:02:23] eam: >> class Fixnum; def -@; 7 end end; [1, -1, - 1, -1 - 1, -----------------1]
[18:02:24] ruboto: eam # => [1, -1, 7, -2, 7] (https://eval.in/477960)
[18:02:29] Bish: Ox0dea, do you hate me now :(?
[18:03:21] RegulationD: has joined #ruby
[18:03:29] Bish: fun fact: the bsearch thing is so much faster, that the working queue eats my ram, and crashes :(
[18:03:34] jbrhbr: eam: thanks
[18:03:40] dlitvak: has joined #ruby
[18:08:23] jottr_: has joined #ruby
[18:08:35] jbrhbr: eam: can you explain what's going on in that -@ example? i don't know what -@ is but it loads like you're overriding unary negation for integers?
[18:09:36] tuelz: has joined #ruby
[18:10:40] blackjid: has joined #ruby
[18:11:38] peterhil`: has joined #ruby
[18:12:03] Ox0dea: jbrhbr: Just so.
[18:12:10] eam: yeah, sometimes unary - is a method and sometimes it is parsed as part of the numeric literal
[18:12:14] blackmesa: has joined #ruby
[18:12:17] eam: -7 is a numeric literal, no method invocation
[18:12:30] eam: - 7 is a numeric literal of 7, with the - method applied
[18:12:47] eam: x = 7; -x is the latter as well
[18:12:57] jbrhbr: yeah i get it now
[18:13:04] jbrhbr: that possibility seems so distant that i didn't consider it
[18:13:34] eam: everything is a method, except when it isn't
[18:13:47] jbrhbr: it's just very asymmetrical
[18:13:55] shanemcd: has joined #ruby
[18:14:23] jbrhbr: if there are any syntactically valid ways to express unary negation, then one would expect that overriding unary negation would impact all of those cases
[18:14:31] jbrhbr: not selectively
[18:14:32] shanemcd_: has joined #ruby
[18:14:51] eam: yeah it's a bit of a wart
[18:14:55] Ox0dea: There is an inherent ambiguity that matz had to resolve one way or another.
[18:15:08] eam: well, you could argue that "-" should never be part of a literal
[18:15:26] jbrhbr: performance posse would probably argue against that
[18:15:53] eam: I doubt that parsing literals is a significant part of any ruby runtime
[18:15:54] drbrain: has joined #ruby
[18:16:00] Ox0dea: eam: But then how would we represent -7 in the case of an overriden Fixnum#-@?
[18:16:32] eam: Ox0dea: un-override it
[18:16:41] eam: "it hurts when I do this"
[18:16:52] baweaver: has joined #ruby
[18:17:07] Some-body_: has joined #ruby
[18:19:16] jbrhbr: i don't understand the 7 problem
[18:19:18] Jackneill: has joined #ruby
[18:19:22] krz: has joined #ruby
[18:19:33] jbrhbr: if you really wanted to override -, you wouldn't make it return the literal 7
[18:19:34] G: has joined #ruby
[18:19:49] blubjr: has joined #ruby
[18:19:52] jbrhbr: it's just contrived to show the inconsistency
[18:20:31] dhollinger: has joined #ruby
[18:20:55] Ox0dea: "Inconsistency" is the wrong word, in my opinion.
[18:21:07] jtdowney: has joined #ruby
[18:21:07] jtdowney: has joined #ruby
[18:21:07] rakm: has joined #ruby
[18:21:12] jbrhbr: another way would be to not allow overriding of any of those base expression operators, if the expression parser isn't going to honor them
[18:21:31] Ox0dea: Do you have me muted?
[18:21:37] maloik: has joined #ruby
[18:21:42] peterhil`: has joined #ruby
[18:22:18] baroquebobcat: has joined #ruby
[18:22:21] Ox0dea: We don't run into any of these problems if we properly pad our operators.
[18:22:33] techietrash: has joined #ruby
[18:22:34] jbrhbr: i don't doubt that they are easily avoided
[18:22:34] techietrash: has joined #ruby
[18:22:35] C0deMaver1ck: has joined #ruby
[18:22:41] Ox0dea: When we don't pad them, the parser has to disambiguate somehow, and the current approach is hardly the worst.
[18:22:42] aredridel: has joined #ruby
[18:22:49] pipework: has joined #ruby
[18:23:21] mickey_mouse: has joined #ruby
[18:23:42] Alayde: has left #ruby: ("WeeChat 1.1.1")
[18:24:01] shanemcd: has joined #ruby
[18:24:08] Gadgetoid: has joined #ruby
[18:24:11] spacemud: has joined #ruby
[18:24:12] unsymbol: has joined #ruby
[18:24:30] SenpaiSilver: has joined #ruby
[18:24:35] mblagden: has joined #ruby
[18:24:58] lemur: has joined #ruby
[18:25:04] GarethAdams: has joined #ruby
[18:25:31] tris: has joined #ruby
[18:25:34] akkad: has joined #ruby
[18:25:35] jbrhbr: my inquiry isn't about working around them though??? i'm just curious about the cases where the parser might surprise me
[18:26:17] hahuang61: has joined #ruby
[18:27:41] chinmay_dd: has joined #ruby
[18:28:53] Junaos: has joined #ruby
[18:29:07] juanpablo_: has joined #ruby
[18:29:35] postmodern: has joined #ruby
[18:29:40] greedo: has joined #ruby
[18:29:45] platzhirsch: has joined #ruby
[18:29:56] juanpablo_: has joined #ruby
[18:30:01] Liothen: has joined #ruby
[18:30:01] Liothen: has joined #ruby
[18:30:16] juanpablo_: has joined #ruby
[18:30:18] seriousman: has joined #ruby
[18:30:40] SegFaultAX: has joined #ruby
[18:31:20] znz_jp: has joined #ruby
[18:31:30] blowmage: has joined #ruby
[18:31:44] deg: has joined #ruby
[18:31:50] sorah: has joined #ruby
[18:32:27] mahlon: has joined #ruby
[18:32:29] whippythellama: has joined #ruby
[18:33:01] sparr: has joined #ruby
[18:34:09] eam: has joined #ruby
[18:35:03] zapata: has joined #ruby
[18:35:27] dlitvak: has joined #ruby
[18:36:06] jessemcgilallen: has joined #ruby
[18:36:27] null3: has joined #ruby
[18:36:27] Sou|cutter: has joined #ruby
[18:37:03] jokester: has joined #ruby
[18:37:25] nateberkopec: has joined #ruby
[18:37:25] sandstrom: has joined #ruby
[18:38:31] skweek: has joined #ruby
[18:39:28] eam: welp, freenode had a bit of a burp
[18:39:40] eam: not sure if this got through, but: the real question, I think, is whether to apply unary - when parsing a literal in exponent form
[18:39:44] eam: >> 1e-2
[18:39:45] ruboto: eam # => 0.01 (https://eval.in/477975)
[18:39:50] ajb: has joined #ruby
[18:40:07] Lildirt: has joined #ruby
[18:40:08] eam: should that be passed through the unary - method?
[18:40:30] KervyN: has joined #ruby
[18:40:37] hahuang65: has joined #ruby
[18:40:50] Scient: has joined #ruby
[18:41:05] mordocai: has joined #ruby
[18:41:09] Frem: has joined #ruby
[18:41:36] akosednar: has joined #ruby
[18:41:58] arthurnn: has joined #ruby
[18:42:01] aep: has joined #ruby
[18:42:01] perry: has joined #ruby
[18:42:01] perry: has joined #ruby
[18:42:06] eggoez: has joined #ruby
[18:42:18] ryotarai: has joined #ruby
[18:42:21] okdas: has joined #ruby
[18:42:21] okdas: has joined #ruby
[18:42:26] duoi: has joined #ruby
[18:42:35] sonne: has joined #ruby
[18:42:39] ebertx: has joined #ruby
[18:42:40] DanKnox[away]: has joined #ruby
[18:42:42] TDJACR: has joined #ruby
[18:42:45] Paradox: has joined #ruby
[18:42:48] apeiros: has joined #ruby
[18:43:05] twe4ked: has joined #ruby
[18:43:08] zenspider: has joined #ruby
[18:43:13] Nilium: has joined #ruby
[18:43:21] brixen: has joined #ruby
[18:43:23] joeyjones: has joined #ruby
[18:43:40] mordocai: Anyone have a good idea for calculating how many calendar days intersect a time range? I found this http://goo.gl/3cO6AY but I don't particularly like the presented solutions.
[18:43:54] gbailey: has joined #ruby
[18:43:59] devbug: has joined #ruby
[18:44:07] NET||abuse: has joined #ruby
[18:44:08] mordocai: If that's too confusing I can write up the real world problem i'm trying to solve.
[18:44:29] Miron: has joined #ruby
[18:44:46] phildkim: has joined #ruby
[18:44:49] omegahm: has joined #ruby
[18:44:51] pestle: has joined #ruby
[18:44:58] hohenfall: has joined #ruby
[18:45:08] Uptime: has joined #ruby
[18:45:30] Nanuq: has joined #ruby
[18:45:50] pawnbox: has joined #ruby
[18:46:00] duracrisis: has joined #ruby
[18:46:30] Sthebig: has joined #ruby
[18:46:30] Sthebig: has joined #ruby
[18:46:41] hahuang65: has joined #ruby
[18:46:43] jbrhbr: has joined #ruby
[18:46:44] Karunamon: has joined #ruby
[18:48:55] based_pdev: has joined #ruby
[18:49:00] based_pdev_: has joined #ruby
[18:49:12] platzhirsch: has left #ruby: ()
[18:50:02] Uptime: has joined #ruby
[18:50:07] BackEndCoder: has joined #ruby
[18:51:33] dlitvak: has joined #ruby
[18:52:37] aiguu: has joined #ruby
[18:52:46] codex: has joined #ruby
[18:52:46] mmasaki: has joined #ruby
[18:53:01] TheBrayn: has joined #ruby
[18:54:07] ur5us: has joined #ruby
[18:54:08] rodfersou: has joined #ruby
[18:54:30] bahar: has joined #ruby
[18:54:36] chridal: has joined #ruby
[18:55:00] ur5us: has joined #ruby
[18:55:19] Klumben: has joined #ruby
[18:55:51] tpendragon: has joined #ruby
[18:55:59] phildkim: has left #ruby: ()
[18:56:06] twe4ked: has joined #ruby
[18:57:44] aps: has joined #ruby
[18:57:50] codecop: has joined #ruby
[18:58:46] blackjid: has joined #ruby
[18:58:50] centrx: has joined #ruby
[18:59:44] skarn: has joined #ruby
[18:59:53] jbrhbr: eam: i got it at least
[19:00:27] adeponte: has joined #ruby
[19:00:36] hahuang65: has joined #ruby
[19:01:06] _djbkd: has joined #ruby
[19:01:38] ascarter: has joined #ruby
[19:02:03] _djbkd: has joined #ruby
[19:02:08] rvchangue: has joined #ruby
[19:02:50] shevy: triangle!
[19:02:53] jpfuentes2: has joined #ruby
[19:03:07] shevy: what's with you blubjr man
[19:03:08] bronson: has joined #ruby
[19:03:41] momomomomo: has joined #ruby
[19:06:19] `based_pdev`: has joined #ruby
[19:06:25] djbkd: has joined #ruby
[19:06:26] lokulin: has joined #ruby
[19:06:30] shevy: you greet me all the time!
[19:07:10] DexterLB: has joined #ruby
[19:07:28] blubjr: oh sorry....its just saying hi
[19:08:54] Mon_Ouie: has joined #ruby
[19:10:03] replay: has joined #ruby
[19:11:23] shevy: I wasn't even asleep in between the two greets
[19:12:46] baroquebobcat_: has joined #ruby
[19:12:52] alem0lars: has joined #ruby
[19:13:37] hahuang65: has joined #ruby
[19:16:07] cinik: has joined #ruby
[19:16:07] maloik: has joined #ruby
[19:16:18] kadoppe: has joined #ruby
[19:21:11] juddey: has joined #ruby
[19:21:12] peterhil`: has joined #ruby
[19:22:59] maloik: has joined #ruby
[19:25:35] inukshuk_: has joined #ruby
[19:29:30] devbug: has joined #ruby
[19:30:16] moeabdol: has joined #ruby
[19:30:33] maloik: has joined #ruby
[19:31:14] b0yzn01z3: has joined #ruby
[19:31:42] moeabdol: has joined #ruby
[19:32:36] j4d: has joined #ruby
[19:32:45] slash_nick: hey shevy...what's your favorite planet?
[19:32:57] aryaching: has joined #ruby
[19:33:35] chouhoul_: has joined #ruby
[19:34:03] slash_nick: mine's the sun... if you stare at it will burn your eyes
[19:34:08] bronson: has joined #ruby
[19:34:42] vF3hNGxc47h8: has joined #ruby
[19:34:53] zeroDivisible: has joined #ruby
[19:35:00] eam: the sun isn't a planet
[19:35:26] moeabdol: has joined #ruby
[19:35:44] slash_nick: eam: https://screen.yahoo.com/harry-caray-space-infinite-frontier-000000505.html ... i work with a guy that reminds me of that character _EveryDay_
[19:36:55] roshanavand: has joined #ruby
[19:37:15] goodcodeguy: has joined #ruby
[19:37:22] moeabdol: has joined #ruby
[19:37:35] ledestin: has joined #ruby
[19:37:35] calderonroberto: has joined #ruby
[19:37:35] valeri_ufo: has joined #ruby
[19:37:40] shevy: slash_nick tough question
[19:37:40] twistedpixels: has joined #ruby
[19:38:04] shevy: slash_nick guess my answer is kinda lame ... earth :\
[19:38:26] moeabdol: has joined #ruby
[19:38:31] twistedpixels: has joined #ruby
[19:38:42] eam: how do you organize a space party?
[19:39:02] shevy: I'd love to have some cameras put on the other planets and watch through them how things are on the surface there
[19:39:26] johnhamelink: has joined #ruby
[19:40:26] ESpiney: has joined #ruby
[19:40:40] JDiPierro: has joined #ruby
[19:41:07] momomomomo: has joined #ruby
[19:42:36] slash_nick: eam: i give up, how?
[19:42:45] IHATEMIGGERS: has joined #ruby
[19:42:50] veloutin: eam: you planet?
[19:42:55] x0F: has joined #ruby
[19:43:00] eam: ding ding ding
[19:43:03] slash_nick: ba dum tssss
[19:43:20] eam: how do you put a baby alien to sleep?
[19:43:31] shevy: chop the head off
[19:43:35] eam: daaaaamn
[19:43:39] shevy: I saw what they can do in Alien I!
[19:43:50] eam: slow down there sigourney
[19:43:54] shevy: since that day I refuse to eat salad
[19:44:10] slash_nick: ACTION adds sigourney to hilight words
[19:44:29] slash_nick: doubt that'll ever come across my screen again
[19:44:47] eam: you gotta admit almost anything she's involved in is worth paying attention to
[19:45:07] jbrhbr: can you guys suggest some kind of xslt-like json schema gem where i can define a schema and then validate some json against it?
[19:45:32] peterhil`: has joined #ruby
[19:45:37] jhass: jbrhbr: http://json-schema.org/
[19:45:45] jhass: there are a couple of gems implementing it
[19:46:14] jbrhbr: cool, thanks
[19:46:15] thisuser: has joined #ruby
[19:46:49] SCHAAP137: has joined #ruby
[19:48:05] crdpink: has joined #ruby
[19:49:40] djbkd: has joined #ruby
[19:50:08] baweaver: has joined #ruby
[19:50:23] linc01n: has joined #ruby
[19:51:55] goodcodeguy: has joined #ruby
[19:52:40] shtirlic: has joined #ruby
[19:53:44] phantom: has joined #ruby
[19:54:42] Eiam: has joined #ruby
[19:56:07] xet7: has joined #ruby
[19:56:23] michaeldeol: has joined #ruby
[19:57:20] michaelstephens: has joined #ruby
[19:58:40] roshanavand: has joined #ruby
[19:59:50] thisuser: has joined #ruby
[20:01:20] devbug: has joined #ruby
[20:02:04] maloik: has joined #ruby
[20:05:07] brunto: has joined #ruby
[20:06:41] bronson: has joined #ruby
[20:07:00] spider-mario: has joined #ruby
[20:07:42] SleepySensei: has joined #ruby
[20:07:49] rdema: has joined #ruby
[20:08:27] Eiam: has joined #ruby
[20:08:30] gregf: has joined #ruby
[20:08:55] ddubs: has joined #ruby
[20:12:19] tomchapin: has joined #ruby
[20:14:54] mobson: has joined #ruby
[20:15:58] mobson: I have been trying to find a way to make a complete copy of an array in a loop that I can change and then reset each loop
[20:16:19] mobson: but when a do a2 = aoriginal and change the array it changes the original
[20:16:27] mobson: so I am using a.join("-").split("-")
[20:16:28] jhass: mobson: call .dup
[20:16:36] mobson: I tried that and it didnt work
[20:16:45] allcentury: has joined #ruby
[20:17:03] mjuszczak: has joined #ruby
[20:17:06] axl_: has joined #ruby
[20:17:07] jhass: mmh, does Array implement clone properly? I hope so, try .clone if you want a deep copy
[20:18:31] mobson: ok I will try that thank you
[20:19:30] Xeago: has joined #ruby
[20:19:30] duncannz: has joined #ruby
[20:19:31] roshanavand: has joined #ruby
[20:20:05] yoongkang: has joined #ruby
[20:20:25] mordocai: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[20:20:27] Xeago: has joined #ruby
[20:21:19] maloik: has joined #ruby
[20:22:01] sarlalian: has joined #ruby
[20:23:00] Xeago: has joined #ruby
[20:23:04] Papierkorb: >> a = ('a'..'d').to_a; puts a.zip(a.clone).map{|(l, r)| l.object_id == r.object_id}
[20:23:05] ruboto: Papierkorb # => true ...check link for more (https://eval.in/478008)
[20:23:11] Papierkorb: >> a = ('a'..'d').to_a; puts a.zip(a.clone).map{|(l, r)| l.object_id == r.object_id}.all?
[20:23:12] ruboto: Papierkorb # => true ...check link for more (https://eval.in/478009)
[20:23:22] djbkd: has joined #ruby
[20:23:23] Papierkorb: >> a = ('a'..'d').to_a; puts a.zip(a.dup).map{|(l, r)| l.object_id == r.object_id}.all?
[20:23:24] ruboto: Papierkorb # => true ...check link for more (https://eval.in/478010)
[20:23:41] Papierkorb: Array#clone isn't that amazing jhass :(
[20:24:35] Papierkorb: mobson: try: the_copy = the_array.map{|elem| elem.clone}
[20:25:23] solocshaw: has joined #ruby
[20:25:41] blubjr: as a kludge you could serialise and unserialise it
[20:25:42] baweaver: has joined #ruby
[20:26:10] kerunaru: has joined #ruby
[20:26:24] daivyk: has joined #ruby
[20:27:58] bkxd: has joined #ruby
[20:28:01] j5s7: has joined #ruby
[20:29:37] devbug: has joined #ruby
[20:29:56] yalue: has joined #ruby
[20:33:12] baweaver: has joined #ruby
[20:34:15] Meliodas: has joined #ruby
[20:35:45] momomomomo: has joined #ruby
[20:35:53] peterhil`: has joined #ruby
[20:38:31] shawnacscott: has joined #ruby
[20:40:05] roshanavand: has joined #ruby
[20:40:41] SleepySensei: has joined #ruby
[20:40:45] maloik: has joined #ruby
[20:42:41] j5s7: has joined #ruby
[20:44:03] dstarh: has joined #ruby
[20:44:42] j5s7: has joined #ruby
[20:45:39] djbkd: has joined #ruby
[20:46:07] j5s7: has joined #ruby
[20:46:19] Ox0dea: has joined #ruby
[20:46:28] Ox0dea: blubjr: Why's that a kludge?
[20:49:36] camonz: has joined #ruby
[20:51:02] camonz: what are some example repos of bad code?
[20:51:30] Ox29c1: CamonZ: For why?
[20:51:48] camonz: I want to analize them with codeclimate
[20:52:02] Ox29c1: You shouldn't analize things in public.
[20:54:31] Vitor_: has joined #ruby
[20:55:10] iamayam: has joined #ruby
[20:56:03] camonz: Ox29c1: that makes absolutely no sense
[20:56:20] Ox29c1: CamonZ: "Analize" probably doesn't mean what you think it means.
[20:56:42] camonz: *Analyse :)
[20:56:51] dling: has joined #ruby
[20:57:13] Ox29c1: I've written what is arguably the most atrociously bad Ruby code in existence, but it's not in a repo of its own.
[20:57:37] eam: I've got some bad ruby code
[20:58:03] Rutix: has joined #ruby
[20:58:04] Rutix: has joined #ruby
[20:58:12] hxegon: has joined #ruby
[20:58:41] Ox29c1: >> (___=->_,__=''{__=_[$.]+__; _[$.+=$$/$$]?___[_,__]:__})['ZnomaC']
[20:58:42] ruboto: Ox29c1 # => "CamonZ" (https://eval.in/478013)
[20:58:45] eam: CamonZ: try it on this https://github.com/square/rangeclient/blob/master/lib/rangeclient.rb
[20:58:46] chouhoulis: has joined #ruby
[20:58:50] jdawgaz: has joined #ruby
[20:59:19] grotewold: has joined #ruby
[20:59:28] camonz: eam: PERL? :)
[20:59:50] eam: I ported it from perl
[20:59:53] Ox29c1: See also: VIM, JAVA, and UNIX.
[20:59:55] eam: without changing the code much
[21:00:15] camonz: https://codeclimate.com/github/square/rangeclient/issues
[21:00:18] eam: the original perl was similarly bad
[21:00:30] maloik: has joined #ruby
[21:00:42] roshanavand: has joined #ruby
[21:00:58] eam: CamonZ: this is the original perl https://github.com/eam/range/blob/master/perl_seco_data_range/source/lib/Seco/Data/Range.pm
[21:01:01] Ox0dea: We need RuboCop as a Service.
[21:01:12] camonz: it's not very ruby???like, but CC didn't find much, 8 violations, 3 from complexity, 4 in style and a possible bug risk
[21:01:24] eam: that's a shame because I can see quite a few obvious issues ;)
[21:01:44] Mon_Ouie: has joined #ruby
[21:03:42] eam: CamonZ: looks like the sprintf argument error is itself in error
[21:04:13] eam: "Number arguments (4) to sprintf mismatches expected fields (2)" -- except the expected fields is indeed 4
[21:05:14] eam: maybe it understands a subset of sprintf syntax, the %s but not the %0*d
[21:06:04] eam: >> sprintf "%0*d", 5, 6
[21:06:05] ruboto: eam # => "00006" (https://eval.in/478015)
[21:06:10] maloik: has joined #ruby
[21:07:30] eam: the other complaints seem valid, if somewhat superficial
[21:07:54] lakin: has joined #ruby
[21:09:15] camonz: eam: the loop here can be turned into a private method https://gist.github.com/CamonZ/4aad283de81902e035b4
[21:09:29] camonz: and the if condition into another
[21:10:54] casadei: has joined #ruby
[21:11:03] Ox0dea: eam: Have you written any Perl 6?
[21:12:23] camonz: #_sort_nodes is unreadable and the assignment there is the same that is being done in the nodes.each loop that I gist'd
[21:13:13] camonz: eam: dude, thanks! this is a great example. I have to interview a dev tomorrow and really needed some oss code that we could talk-through/refactor
[21:14:05] maloik: has joined #ruby
[21:20:55] cdg: has joined #ruby
[21:21:16] roshanavand: has joined #ruby
[21:22:14] j5s7: has joined #ruby
[21:22:18] kimegede: has joined #ruby
[21:24:02] maloik: has joined #ruby
[21:26:08] momomomomo: has joined #ruby
[21:28:46] neanderslob: has joined #ruby
[21:29:25] spacemud: has joined #ruby
[21:29:33] unsymbol: has joined #ruby
[21:31:12] baweaver: has joined #ruby
[21:31:25] devbug: has joined #ruby
[21:32:17] Xeago: has joined #ruby
[21:33:32] atmosx: eam: can you explain what the obvious errors in the code you pasted?
[21:33:48] patdohere: has joined #ruby
[21:34:19] atmosx: what *are*
[21:34:34] blackmesa: has joined #ruby
[21:36:14] sepp2k1: has joined #ruby
[21:36:26] skweek: has joined #ruby
[21:37:05] MEATCHICKEN: has joined #ruby
[21:37:10] jgorak: has joined #ruby
[21:37:14] patdohere: has joined #ruby
[21:37:15] MEATCHICKEN: would it be possible to write conway's game of life in the console?
[21:37:21] MEATCHICKEN: I just don't know how updating the UI would work
[21:37:28] MEATCHICKEN: without the console scrolling like crazy
[21:37:31] Radar: Who said anything about a UI?
[21:37:44] Radar: Oh, you did.
[21:37:48] Radar: You can design it without a UI.
[21:37:56] MEATCHICKEN: How would I make the console -not- scroll?
[21:37:56] weaksauce: has joined #ruby
[21:38:02] Radar: [08:37:48] <Radar> You can design it without a UI.
[21:38:21] MEATCHICKEN: ok that works lol
[21:38:50] Ox0dea: Because ncurses and the underlying technology aren't things?
[21:39:03] Ox0dea: meatchicken: There are many ways to control the cursor in the terminal.
[21:39:55] Ox0dea: You'd simply move the cursor to the next location and either write a character or clear the one there (done most easily by writing a space).
[21:40:18] azgil: has joined #ruby
[21:40:36] maloik: has joined #ruby
[21:41:45] Coraline: has joined #ruby
[21:41:52] roshanavand: has joined #ruby
[21:41:59] MEATCHICKEN: Ox0dea, thanks - that sounds advanced for what I need to do -> I'll use gosu instead !
[21:42:33] Ox0dea: meatchicken: `print "\e[10;10Hfoo"` would write "foo" at (10,10) going from the top left.
[21:42:38] Ox0dea: It's not that hard, really.
[21:42:59] MEATCHICKEN: Ox0dea, Would that 10,10 be pixel based?
[21:43:00] lorn: has joined #ruby
[21:43:07] Ox0dea: No, rows and columns.
[21:43:16] Ox0dea: Respectively.
[21:43:32] MEATCHICKEN: Ox0dea, I guess I have to adapt my ruby matrix to print to rows and columns
[21:44:00] ruby-lang371: has joined #ruby
[21:44:29] ytti: has joined #ruby
[21:44:37] Ox0dea: meatchicken: As opposed to (x,y) coordinates?
[21:45:12] devbug: has joined #ruby
[21:45:54] adaedra: Note that it's better to have the size of your terminal, not to go outside of bounds.
[21:46:09] Lildirt: has joined #ruby
[21:46:49] sonne: has joined #ruby
[21:46:50] bakingbread: has joined #ruby
[21:47:02] ruby-lang371: has left #ruby: ()
[21:48:00] akosednar: has joined #ruby
[21:48:40] joeyjones: has joined #ruby
[21:50:33] troulouliou_dev: has joined #ruby
[21:51:51] Karunamon: has joined #ruby
[21:52:26] stannard: has joined #ruby
[21:52:32] mooru: has joined #ruby
[21:53:06] calderonroberto: has joined #ruby
[21:53:14] theery: has joined #ruby
[21:54:30] Xeago: has joined #ruby
[21:55:01] belak: has joined #ruby
[21:55:20] maloik: has joined #ruby
[21:57:03] humd1ng3r: has joined #ruby
[21:57:25] edwinvdg_: has joined #ruby
[21:58:03] gusTester1: has joined #ruby
[21:58:21] gusTester1: has left #ruby: ()
[21:58:37] solocshaw: has joined #ruby
[21:59:24] InvGhost: has joined #ruby
[22:02:17] JDiPierro: has joined #ruby
[22:02:29] roshanavand: has joined #ruby
[22:04:46] adeponte: has joined #ruby
[22:04:55] zeroDivisible: has joined #ruby
[22:07:24] RobertBirnie: has joined #ruby
[22:08:07] aiguu: has joined #ruby
[22:08:11] maloik: has joined #ruby
[22:08:15] aiguu: has left #ruby: ()
[22:09:36] jpfuentes2: has joined #ruby
[22:10:05] zeroDivisible: has joined #ruby
[22:12:21] Bellthoven: has joined #ruby
[22:13:53] tomchapin: has joined #ruby
[22:14:23] momomomomo: has joined #ruby
[22:16:04] dlitvak: has joined #ruby
[22:18:40] aiguu: has joined #ruby
[22:18:49] alexherbo2: has joined #ruby
[22:19:28] tomchapin: has joined #ruby
[22:19:49] ixti: has joined #ruby
[22:20:14] htmldrum: has joined #ruby
[22:21:09] null__: has joined #ruby
[22:21:09] null__: has joined #ruby
[22:21:56] sandstrom: has joined #ruby
[22:22:51] grill: anyone have any thoughts on how id' count th enumber of lines in stdout from popen3?
[22:22:56] roshanavand: has joined #ruby
[22:23:58] grill: (using open3)
[22:24:14] yfeldblum: has joined #ruby
[22:24:16] drbrain: grill: gets or each_line
[22:24:44] grill: so like, stdout.each_line blah blah?
[22:24:59] acidrainfall: has joined #ruby
[22:25:15] acidrainfall: Hey all. I'm having a hell of a time with some gem installs.
[22:25:22] acidrainfall: I'm on 1.8.7 and I can't change that.
[22:25:39] acidrainfall: Trying to `gem install builder` gets me an abort due to some rdoc problem, but `gem install rdoc` fails as well
[22:25:59] shevy: what error
[22:26:13] Ox0dea: acidrainfall: EOL means dead. We are not necromancers here. :P
[22:28:15] acidrainfall: Shit I never even thought to look
[22:28:58] Ropeney: has joined #ruby
[22:29:02] rakm: has joined #ruby
[22:31:19] Guest27132: has joined #ruby
[22:32:11] grill: what are you going to do now
[22:32:13] grill: ruby is dead
[22:32:17] Dimik: has joined #ruby
[22:32:35] acidrainfall: She's dead, Jim.
[22:32:46] maloik: has joined #ruby
[22:32:53] drbrain: grill: you could stdout.each_line.count
[22:32:54] acidrainfall: Anyway: https://www.youtube.com/watch?v=9qt5ui3P9QA
[22:32:59] acidrainfall: Sorry, that's a Sia cover
[22:33:06] acidrainfall: undefined method `map' for Gem::Specification:Class
[22:33:13] acidrainfall: Clipboard is wonky on this machine
[22:33:18] grill: who's jim
[22:33:25] grill: i'm not jim. i'm grill
[22:33:31] acidrainfall: grill: Really?
[22:33:42] drbrain: James T. Kirk
[22:34:01] adaedra: grill: http://tvtropes.org/pmwiki/pmwiki.php/Main/HesDeadJim
[22:34:01] acidrainfall: drbrain: That's Captain James T. Kirk to you.
[22:34:01] cgfbee: has joined #ruby
[22:34:08] jhn: has joined #ruby
[22:34:21] acidrainfall: shevy: That's the error, up there after the youtube link
[22:34:24] Ox0dea: >> Gem::Specification.instance_methods.include? :map # acidrainfall
[22:34:25] ruboto: Ox0dea # => false (https://eval.in/478038)
[22:34:35] Ox0dea: There is in fact no such method on that class, regardless of Ruby version.
[22:35:04] drbrain: >> Gem::Specification.respond_to? :map
[22:35:05] ruboto: drbrain # => true (https://eval.in/478039)
[22:35:06] acidrainfall: Well that's rdoc
[22:35:16] Ox0dea: Oh, right.
[22:35:21] wsewolod: has joined #ruby
[22:35:29] acidrainfall: http://fpaste.org/296002/
[22:36:24] drbrain: acidrainfall: well, the gem installed ok
[22:36:30] acidrainfall: drbrain: http://fpaste.org/296003/
[22:36:36] drbrain: so if you don't care about documentation you can disable it in ~/.gemrc
[22:36:37] acidrainfall: didn't mean to tag you on it
[22:36:42] acidrainfall: I do not care about documentation
[22:37:01] drbrain: I think you add "gem: --no-rdoc --no-ri"
[22:38:49] aspiers: has joined #ruby
[22:39:56] drbrain: if you've got a modern ruby you can "gem: --no-doc"
[22:40:11] drbrain: but given the error you're seeing I think you'll need to do it the old way
[22:41:25] nateberkopec: has joined #ruby
[22:42:57] adaedra: Who you gonna call?
[22:43:31] roshanavand: has joined #ruby
[22:43:37] acidrainfall: redhat tech support I guess
[22:43:46] acidrainfall: Oh well it works for now
[22:43:49] acidrainfall: I can forget about it
[22:44:06] adaedra: Even on Red Hats there are ways of getting more recent rubies.
[22:44:23] acidrainfall: There are as long as you're in the ops team and can distribute a new version of ruby, which I'm not
[22:44:25] Radar: [09:25:22] <acidrainfall> I'm on 1.8.7 and I can't change that.
[22:44:48] acidrainfall: I bet you're all super jealous
[22:45:09] myztic: has joined #ruby
[22:45:12] eam: good old rhel6
[22:45:34] eam: an added bonus on your platform is that all the EPEL gems are broken
[22:46:19] acidrainfall: yeah there's that too
[22:46:47] eam: acidrainfall: you should use bundle with --vendor and slurp up your ruby into whatever you use to deploy your application code
[22:47:07] eam: carry around the interpreter entirely along with the full gemset
[22:47:38] acidrainfall: What does that mean, --vendor?
[22:48:08] acidrainfall: Oh the only people here who use Ruby outside of Puppet is one platform and they've got this hacky weird RVM stuff going on
[22:48:09] vondruch_: has joined #ruby
[22:48:15] duwang: has joined #ruby
[22:48:23] eam: I don't do bundle stuff often so I'm being super vague and maybe slightly incorrect, but I believe that's the option to dump the gems into a relative subdirectory
[22:48:39] allomov: has joined #ruby
[22:48:53] eam: instead of say GEMPATH or w/e
[22:49:02] Asher: has joined #ruby
[22:49:03] duwang: guys does ruby suck
[22:49:06] jeremie_: has joined #ruby
[22:49:32] TheHodge: has joined #ruby
[22:49:37] aiguu: sometimes
[22:49:37] duwang: has left #ruby: ()
[22:49:42] calderonroberto: has joined #ruby
[22:49:44] adaedra: suck is suggestive.
[22:49:55] aiguu: It sucks when it's slow
[22:49:59] havenwood: they asked then fled
[22:50:06] adaedra: didn't even see.
[22:50:08] aiguu: It sucks if you try to parse a 1GB json file
[22:50:15] havenwood: aiguu: nuh uh
[22:50:18] aiguu: on a micro amazon ec2 instance
[22:50:35] adaedra: aiguu: potatoes suck when I try to cut iron with them.
[22:50:51] aiguu: But you can at least light a lightbulb with a potatoe
[22:50:54] eam: adaedra: you're not accelerating the potato sufficiently
[22:50:56] acidrainfall: you don't do heavy metal smelting with potato?
[22:51:12] adaedra: eam: that's it, thank you.
[22:51:19] eam: np, here all week
[22:51:21] adaedra: You know what really sucks tho? Vacuums.
[22:51:32] aiguu: those do suck
[22:51:33] tubbo: ^ cats on irc
[22:51:45] aiguu: hit and run questions
[22:51:48] eam: vacuums actually don't suck, rather pressure pushes
[22:52:01] acidrainfall: Pipettes suck?
[22:52:01] eam: that's why you can't suck water up a pipe more than 33'
[22:52:11] acidrainfall: eam: You can't?
[22:52:20] eam: you can't. pumping systems all push water from the bottom
[22:52:24] aiguu: I'll avoid any perverted jokes here
[22:52:34] acidrainfall: What stops it at 33'?
[22:52:44] acidrainfall: aiguu: I /was/ going to say 'You know what else sucks? Monica Lewinsky."
[22:53:00] eam: a column of water 33 feet tall has the same pressure as one atmosphere -- as much as the column of air from sea level to space
[22:53:05] acidrainfall: But that joke is a little old, and she's gotten tired of it (tired enough to do a TED talk on it)
[22:53:40] Log1x: has joined #ruby
[22:53:42] aiguu: damn missed opportunity
[22:53:45] aiguu: doesn't come along often
[22:53:46] edwinvdgraaf: has joined #ruby
[22:54:13] eam: air pressure is what pushes fluid up your straw
[22:54:45] h99h9h88: has joined #ruby
[22:54:48] acidrainfall: eam: That's really interesting
[22:55:05] acidrainfall: eam: So you literally can't, with a vacuum, pull water up, because at 33' the water stops, and a vacuum forms above it?
[22:55:10] eam: correct
[22:55:23] acidrainfall: Things I wouldn't have expected to learn in an IRC channel for a programming language.
[22:55:47] jackcom: has joined #ruby
[22:57:07] eam: well you know what they say, nature abhors a vacuum. And IRC channels abhor staying on topic
[22:57:47] acidrainfall: Can't tell you how many times I've been kicked out of #centos for straying off topic.
[22:57:55] acidrainfall: Actually none, but I got threatened a lot and eventually left.
[22:58:09] acidrainfall: Anyway, thanks guys. I'll be back, I'm certain of it.
[22:58:27] shtirlic: has joined #ruby
[22:58:35] nateberkopec: has joined #ruby
[22:59:17] duncannz: has joined #ruby
[22:59:21] tuor: has joined #ruby
[23:01:27] acidrainfall: has left #ruby: ()
[23:01:33] aiguu: has left #ruby: ("WeeChat 1.3")
[23:03:26] yeticry: has joined #ruby
[23:04:05] roshanavand: has joined #ruby
[23:04:40] maloik: has joined #ruby
[23:05:55] vondruch_: has joined #ruby
[23:05:58] Azure: has joined #ruby
[23:06:09] tomchapin: has joined #ruby
[23:08:49] dorei: i'm looking for smt that returns x if the input array has the form [x, x, x, ..., x, x] else nil, any ideas?
[23:10:32] skweek: has joined #ruby
[23:10:39] ramortegui: has joined #ruby
[23:12:31] mozzarella: write it yourself? I don't think there's a standard function that does exactly that
[23:13:24] baweaver: has joined #ruby
[23:14:01] SleepySensei: has joined #ruby
[23:14:23] jessemcgilallen: has joined #ruby
[23:16:18] neanderslob: has joined #ruby
[23:17:55] shevy: isn't this a simple .all? dorei ?
[23:18:10] ChameleonSix: has joined #ruby
[23:18:19] ChameleonSix: I need help on ruby
[23:18:28] ChameleonSix: I mean more like a solution
[23:18:33] ChameleonSix: Is anyone on ?
[23:19:58] shevy: ack android IRCer!
[23:20:29] ChameleonSix: How to make a program that prints the number of zeroes beetween 3 numbers
[23:20:52] sfmk: has joined #ruby
[23:21:08] ChameleonSix: Do you understand what am I saying
[23:22:39] Asher: has joined #ruby
[23:23:31] sfmk: Could I get a set of eyes on my program?
[23:23:31] havenwood: ChameleonSix: What are you saying? Example input and desired output?
[23:23:36] havenwood: sfmk: Gist away!
[23:23:50] CloCkWeRX: has joined #ruby
[23:24:00] secret: has joined #ruby
[23:24:02] stannard: has joined #ruby
[23:24:02] mozzarella: >> (1..100).inject('') { |acc, i| acc += i.to_s }.count('0')
[23:24:03] ruboto: mozzarella # => 11 (https://eval.in/478071)
[23:24:05] sfmk: Gist with code and terminal output https://gist.github.com/aburgd/a76ee10ed393fa7b4f3a
[23:24:11] iamvery: has joined #ruby
[23:24:37] mozzarella: it's not clear what you want
[23:24:37] jackcom: i think that i complete ruby.
[23:24:41] roshanavand: has joined #ruby
[23:24:49] havenwood: jackcom: Or does Ruby complete you?
[23:24:54] Ox0dea: > # beginning of if..else
[23:24:56] Ox0dea: Worst comment ever.
[23:25:13] sfmk: self documentation lmao
[23:25:14] havenwood: Where's?: # end of if..else
[23:25:17] jackcom: perhaps i master ruby :) havenwood
[23:25:26] havenwood: jackcom: I think not. :)
[23:25:36] jackcom: :( why? havenwood
[23:25:38] Ox0dea: ChameleonSix: Stop.
[23:25:49] Ox0dea: Please take a moment to properly formulate your question.
[23:25:52] ChameleonSix: Aren't you willing to help
[23:27:09] shanemcd: has joined #ruby
[23:27:29] ChameleonSix: 3 numbers go into the input like A , B and C . Count how many 0s we got beetween them . If A = 2 , B = -2 , C = 4 we got 2 zeros
[23:27:33] baweaver: has joined #ruby
[23:28:01] Ox0dea: ChameleonSix: Do you mean the digit 0?
[23:28:12] Ox0dea: Then why are you using such terrible examples?
[23:28:25] Ox0dea: How many zeroes between 10 and 30?
[23:28:32] neanderslob: has joined #ruby
[23:28:44] dorei: i'm looking for smt that returns x if the input array has the form [x, x, x, ..., x, x] else nil, any ideas? i don't know x beforehand
[23:28:47] ChameleonSix: You didn't understand me
[23:28:53] Ox0dea: You didn't understand me.
[23:29:00] Ox0dea: The digit 0 and the number 0 are different entities.
[23:29:03] tubuliferous_: has joined #ruby
[23:29:08] lemur: has joined #ruby
[23:29:22] ChameleonSix: Number 0 will always be one
[23:29:27] havenwood: dorei: So only `x` and nothing else?
[23:29:41] Ox0dea: dorei: `ary.uniq == [x]`
[23:29:59] ChameleonSix: Beetween 10 and 30 (including them ) are 3 zeros
[23:30:02] havenwood: dorei: Or: ary.all? { |i| i == x }
[23:30:25] Ox0dea: ChameleonSix: Yes, is that the quantity you're interested in obtaining?
[23:30:38] TheBloke: has joined #ruby
[23:30:45] ChameleonSix: Can you help me somehow
[23:30:48] Ox0dea: >> [*10..30].join.count '0' # ChameleonSix
[23:30:49] ruboto: Ox0dea # => 3 (https://eval.in/478073)
[23:30:49] ChameleonSix: Quick program ?
[23:30:59] ChameleonSix: That is all ?
[23:31:03] Ox0dea: Yay, Ruby! <3
[23:31:29] Ox0dea: It's not the most efficient approach, but it should suffice.
[23:31:32] ChameleonSix: How do I write it in the algorithm
[23:31:46] bronson: has joined #ruby
[23:31:48] Ox0dea: How do you mean?
[23:31:55] ChameleonSix: Hard to explain
[23:31:59] b0yzn01z3: has joined #ruby
[23:32:43] ChameleonSix: https://www.google.rs/search?q=algorithm&rlz=2Y3GQQX_enME0654ME0654samsung.jflte.jfltexx&biw=360&bih=559&prmd=ivn&source=lnms&tbm=isch&sa=X&ved=0ahUKEwi__fqZp7nJAhVE2ywKHcaXAPEQ_AUIBigB#imgrc=FZuN1BbwJv-pQM%3A
[23:33:07] Ox0dea: You want to do it mathematically?
[23:33:38] ChameleonSix: It is complicated
[23:33:43] ChameleonSix: I just need to
[23:33:46] Ox0dea: You are resisting assistance.
[23:34:00] blubjr: is it homework ?
[23:34:02] ChameleonSix: I need to do that for a project
[23:34:12] ChameleonSix: Yeah somewhat
[23:34:22] ChameleonSix: But I can't understand how
[23:34:32] ChameleonSix: It would be easy if I wrote a code in ruby
[23:34:55] dorei: havenwood: it could be any number, i dont know which number
[23:35:33] sfmk: Quick question: if I pass nil to a constant, would that initialize it or not?
[23:35:46] Ox0dea: >> n = 1020304; z = 0; z += 1 if n % 10 == 0 while (n /= 10) > 0; z # ChameleonSix
[23:35:47] ruboto: Ox0dea # => 3 (https://eval.in/478074)
[23:36:02] Ox0dea: Check whether the number is evenly divisible by 10 at each position.
[23:36:08] ChameleonSix: You are a fucking genius
[23:36:15] Ox0dea: Happy to help.
[23:36:42] Ox0dea: Please take some time to internalize this approach to "handling" each of a decimal number's digits in some fashion.
[23:36:52] Ox0dea: It's a useful idiom that shows up in many places.
[23:37:06] ChameleonSix: Number is taken from the input
[23:38:32] Ox0dea: >> Foo = nil; [defined?(Foo), defined?(Bar)] # sfmk
[23:38:33] ruboto: Ox0dea # => ["constant", nil] (https://eval.in/478075)
[23:38:53] jackcom: i mastered ruby. so it is tiem to leave here. i will back when i want learn high skilled ruby
[23:39:06] baweaver: Oh, you again
[23:39:07] Kabaka: has joined #ruby
[23:39:25] jackcom: thanks baweaver :)
[23:39:43] jackcom: can i back here again?
[23:39:46] jeremie_: has joined #ruby
[23:40:36] baweaver: you can, but realize it's not recommended to claim you mastered something
[23:41:02] baweaver: because chances are extremely high you haven't
[23:41:08] jackcom: baweaver: you can give me question related with ruby?
[23:41:11] jhass: can we not feed them please?
[23:41:21] ruboto: +q jackcom!*@*
[23:41:21] ruboto: -o ruboto
[23:41:26] Radar: Thanks for playing, jackcom.
[23:41:32] benlieb: has joined #ruby
[23:41:36] ChameleonSix: How do I do that with a , b and c
[23:41:46] Ox0dea: ChameleonSix: I've run out of spoons.
[23:41:57] ChameleonSix: On every variable
[23:42:24] jhass: ChameleonSix: what did we say about the "Lol"s?
[23:44:06] baweaver: also note that liberal use of the enter key is discouraged.
[23:44:07] ChameleonSix: How do I output ruby text to a file.txt
[23:44:19] Ox0dea: "ruby text"?
[23:44:31] baweaver: ruby program.rb > my_text.txt
[23:44:40] ChameleonSix: What would that do
[23:45:02] baweaver: all output goes into my_text.txt
[23:45:06] baweaver: all standard anyways
[23:45:09] ChameleonSix: You didn't understand
[23:45:14] ChameleonSix: I said it the wrong way
[23:45:14] roshanavand: has joined #ruby
[23:45:28] Ox0dea: That means you didn't understand.
[23:45:41] baweaver: shenanigans
[23:46:45] KILLALLN1GGERS: has joined #ruby
[23:46:53] yqt: has joined #ruby
[23:47:14] ruboto: +q KILLALLN1GGERS!*@*
[23:47:14] ruboto: -o ruboto
[23:47:26] ChameleonSix: http://ruby.bastardsbook.com/chapters/io/
[23:47:36] ChameleonSix: Applying ruby to real world apps
[23:47:58] zeroDivisible: has joined #ruby
[23:48:49] jbrhbr: anyone know if you can tell pry to truncate long output rather than page it?
[23:49:08] KILLALLN1GGERS: has left #ruby: ()
[23:49:12] jbrhbr: i guess i could make my own output handler
[23:49:14] jackcom: has left #ruby: ()
[23:49:58] sfmk: Ox0dea: Could you explain how this expression is read/works? >> Foo = nil; [defined?(Foo), defined?(Bar)]
[23:50:18] jhass: sfmk: [] is just an array literal
[23:50:34] Ox0dea: jbrhbr: Pry's pager is configurable, but I don't see anything to indicate that truncation would be dead-simple.
[23:50:43] jhass: sfmk: defined? checks whether something is defined, if it is, it returns its type, if not it returns nil
[23:50:55] devbug: has joined #ruby
[23:51:10] jhass: well "type" in as a string sort of describing it
[23:51:10] sfmk: So that explains why defined?(Bar) returns nil
[23:51:13] jbrhbr: Ox0dea: yea it's easily disabled but truncation looks a bit less straight forward. i think i will just set up a truncator proc with Pry.config.print
[23:51:27] Ox0dea: Aye, that should do.
[23:52:20] minimalism: has joined #ruby
[23:52:50] htmldrum: has joined #ruby
[23:52:53] Ox0dea: jbrhbr: Sure thing. I'd be interested in seeing the result of your experimentation.
[23:53:17] Ox0dea: Making truncation Do The Right Thing is surprisingly hard.
[23:53:45] ChameleonSix: Thanks for all your help
[23:53:56] ChameleonSix: We will meet again if I need help
[23:54:07] jbrhbr: it would probably take a lot of work to make it nice??? i just mostly want the default to be concise rather than verbose really, so i will do something simple
[23:55:21] jbrhbr: i could just have a `verbose` function that overrides print back to the default temporarily if i really want to see the whole thing and call verbose(_) or whatever
[23:55:27] minimalism: has joined #ruby