« Back to channel list

#ruby - 03 July 2017

« Back 1 day Forward 1 day »
[00:10:58] marius: has joined #ruby
[00:11:52] learningruby: has joined #ruby
[00:13:31] jakk: has joined #ruby
[00:22:34] Cohedrin_: has joined #ruby
[00:28:39] darix: has joined #ruby
[00:34:34] VladGh: has joined #ruby
[00:41:36] milardovich: has joined #ruby
[00:42:24] nadir: has joined #ruby
[00:43:38] Cohedrin_: has joined #ruby
[00:47:56] cam27: has joined #ruby
[00:53:49] __Yiota: has joined #ruby
[00:53:57] petruff: has joined #ruby
[00:55:24] gothicsouth: has joined #ruby
[01:02:07] __Yiota: has joined #ruby
[01:04:10] charliesome: has joined #ruby
[01:06:06] mrconfused: has joined #ruby
[01:11:33] learningruby: has joined #ruby
[01:16:34] P1ro: has joined #ruby
[01:19:26] fugue: has joined #ruby
[01:29:23] AnoHito_: has joined #ruby
[01:34:53] Cohedrin_: has joined #ruby
[01:34:59] arescorpio: has joined #ruby
[01:35:08] adam12: Jeez, first time in a while I've had issues getting an app to start.
[01:36:01] enterprisey: has joined #ruby
[01:36:04] milardovich: has joined #ruby
[01:43:33] jakk: has joined #ruby
[01:44:13] d^sh: has joined #ruby
[01:48:48] gizmore: has joined #ruby
[01:49:32] Cohedrin_: has joined #ruby
[01:55:13] kobain: has joined #ruby
[01:57:08] nofxx: has joined #ruby
[01:57:30] umaaji: has joined #ruby
[02:05:28] CustosLimen: has joined #ruby
[02:07:02] Cohedrin_: has joined #ruby
[02:09:34] brent__: has joined #ruby
[02:19:49] Cohedrin_: has joined #ruby
[02:20:20] dcunit3d: has joined #ruby
[02:21:03] milardovich: has joined #ruby
[02:21:41] Jameser: has joined #ruby
[02:23:31] uZiel: has joined #ruby
[02:36:12] Cohedrin_: has joined #ruby
[02:42:15] arescorpio: has joined #ruby
[02:46:32] uZiel: has joined #ruby
[02:51:27] cadillac_: has joined #ruby
[02:56:52] __Yiota: has joined #ruby
[03:09:38] moei: has joined #ruby
[03:13:33] jakk: has joined #ruby
[03:16:18] knight33: has joined #ruby
[03:32:17] learningruby: has left #ruby: ()
[03:32:57] charliesome: has joined #ruby
[03:33:30] perniciouscaffei: has joined #ruby
[03:35:04] nobodyzxc: has joined #ruby
[03:40:29] Jakub: has joined #ruby
[03:41:59] herbmillerjr: has joined #ruby
[03:42:13] sneakerhax: has joined #ruby
[03:49:13] monzie: has joined #ruby
[03:50:33] gix: has joined #ruby
[03:54:56] kies: has joined #ruby
[03:59:40] Cohedrin_: has joined #ruby
[04:07:00] jakk: has joined #ruby
[04:08:56] arescorpio: has joined #ruby
[04:10:43] kies: has joined #ruby
[04:22:36] Cohedrin_: has joined #ruby
[04:50:03] jakk: has joined #ruby
[04:54:12] _whitelogger: has joined #ruby
[04:55:37] ayonkhan: has joined #ruby
[05:04:15] latemus: has joined #ruby
[05:09:36] PaulCapestany: has joined #ruby
[05:09:44] nofxx: has joined #ruby
[05:11:51] gothicsouth: has joined #ruby
[05:14:04] jak: has joined #ruby
[05:20:16] solocshaw: has joined #ruby
[05:27:37] KeyJoo: has joined #ruby
[05:27:39] anisha: has joined #ruby
[05:28:53] lizard2010: has joined #ruby
[05:31:33] aupadhye: has joined #ruby
[05:36:55] conta: has joined #ruby
[05:39:29] cschneid_: has joined #ruby
[05:41:12] patrontechnosoft: has joined #ruby
[05:45:19] muelleme_: has joined #ruby
[05:53:36] gja: has joined #ruby
[05:53:36] jak: has joined #ruby
[05:58:46] uZiel: has joined #ruby
[06:00:57] uZiel: has joined #ruby
[06:06:57] umaaji: has joined #ruby
[06:10:00] sniffer: has joined #ruby
[06:10:01] brent__: has joined #ruby
[06:10:12] choke_: has joined #ruby
[06:16:06] alex``: has joined #ruby
[06:25:23] enterprisey: has joined #ruby
[06:33:16] ledestin: has joined #ruby
[06:37:09] jaruga________: has joined #ruby
[06:38:18] Silthias: has joined #ruby
[06:44:45] patrontechnosoft: has joined #ruby
[06:46:21] tvw: has joined #ruby
[06:57:49] monzie: has joined #ruby
[06:58:58] fugue: has joined #ruby
[07:10:08] aufi: has joined #ruby
[07:11:15] patronte_: has joined #ruby
[07:12:36] ledestin: has joined #ruby
[07:12:44] biberu: has joined #ruby
[07:13:32] jak: has joined #ruby
[07:16:04] patrontechnosoft: has joined #ruby
[07:21:36] antgel: has joined #ruby
[07:23:55] mark_66: has joined #ruby
[07:24:54] bigkevmcd: has joined #ruby
[07:24:56] tAn: has joined #ruby
[07:25:41] patrontechnosoft: has joined #ruby
[07:27:23] patrontechnosoft: has left #ruby: ()
[07:28:26] andikr: has joined #ruby
[07:29:01] DoubleMalt: has joined #ruby
[07:29:41] xall: has joined #ruby
[07:30:40] patrontechnosoft: has joined #ruby
[07:31:21] patronte_: has joined #ruby
[07:33:38] patrontechnosoft: has joined #ruby
[07:36:16] DoubleMalt: has joined #ruby
[07:39:53] jaruga________: has joined #ruby
[07:40:38] mathys: has joined #ruby
[07:43:31] patrontechnosoft: has joined #ruby
[07:45:39] patronte_: has joined #ruby
[07:47:11] dionysus69: has joined #ruby
[07:47:37] patrontechnosoft: has joined #ruby
[07:47:57] Mortomes|Work: has joined #ruby
[07:48:57] patrontechnosoft: has joined #ruby
[07:49:43] patrontechnosoft: has joined #ruby
[07:50:08] patrontechnosoft: has joined #ruby
[07:51:08] patrontechnosoft: has joined #ruby
[07:56:57] alex``: has joined #ruby
[08:01:12] dfsdfssdfsfd: has joined #ruby
[08:01:34] dfsdfssdfsfd: under the heading "How do you get good defaults and flexibility?" of http://www.justinweiss.com/articles/3-ways-to-configure-your-ruby-api-wrappers/ im confused what show_special is there
[08:02:35] PaulCape_: has joined #ruby
[08:02:42] ur5us: has joined #ruby
[08:06:16] jakk: has joined #ruby
[08:07:01] mikecmpbll: has joined #ruby
[08:11:33] ascarter: has joined #ruby
[08:13:20] Qchmqs__: has joined #ruby
[08:13:27] Beams: has joined #ruby
[08:14:21] Pumukel: has joined #ruby
[08:16:27] vondruch: has joined #ruby
[08:19:13] jakk: has joined #ruby
[08:23:30] A124: has joined #ruby
[08:24:27] dminuoso: dfsdfssdfsfd: ?rails
[08:24:36] dminuoso: dfsdfssdfsfd: also it's just a random action they forgot to either talk about or remove.
[08:24:38] quobo: has joined #ruby
[08:29:25] ferr: has joined #ruby
[08:30:33] lxsameer: has joined #ruby
[08:30:39] vondruch: has joined #ruby
[08:31:46] Tempesta: has joined #ruby
[08:35:03] vondruch: has joined #ruby
[08:36:09] Mia: has joined #ruby
[08:36:09] Mia: has joined #ruby
[08:44:21] mim1k: has joined #ruby
[08:44:52] lxsameer: has joined #ruby
[08:46:23] mark_66: has joined #ruby
[08:49:24] marr: has joined #ruby
[08:53:50] djbkd: has joined #ruby
[08:54:22] psychicist__: has joined #ruby
[09:03:41] jak: has joined #ruby
[09:04:40] Pumukel: has joined #ruby
[09:10:01] brent__: has joined #ruby
[09:14:01] patrontechnosoft: has joined #ruby
[09:18:59] cseder: has joined #ruby
[09:21:27] Mon_Ouie: has joined #ruby
[09:23:33] jak: has joined #ruby
[09:28:34] pandaant: has joined #ruby
[09:29:08] ayonkhan: has joined #ruby
[09:29:33] jak: has joined #ruby
[09:30:35] aglorei: has joined #ruby
[09:33:49] Bish: hey guys, i have a method that gets 4 arrays are parameters, that contain database ids
[09:33:58] Bish: the method is pretty slow.. so i wanna cache it
[09:35:01] Bish: so i want to have every output to every possible input, how would u permute the inputs, say i have p1=[1,2,3],p2=[3,6,9],p3=[1,2,3],p4=[4,9,3]
[09:35:13] Bish: and i want to have the permutations to to length of 2
[09:36:00] dminuoso: Bish: What kind of permutations are you looking for?
[09:36:41] Bish: im just giving examples, because i am unable to mathematicially describe it
[09:36:48] lel: has joined #ruby
[09:37:28] Bish: ([1],[],[],[]),([1,3],[],[],[]),([1],[3],[],[])
[09:37:51] Bish: so first 2 parameters have to be atleast 1 entry, 3,4 are optional(can be empty)
[09:37:54] dminuoso: Bish: Does the order matter?
[09:38:06] Bish: its a method, normal parameters
[09:40:11] dminuoso: Bish: [[1,2,3], [3,6,9], [1,2,3], [4,9,3]].reduce(&:product)
[09:40:23] dminuoso: Bish: add nil if you want to allow for the empty case.
[09:40:41] dminuoso: Note that combinatorically this drastically explodes if you increase the array sizes here.
[09:41:19] Bish: yeah thats why i want to limit each array to 2
[09:41:29] Bish: but that doesnt really help in Big-O i guess
[09:41:49] universa1: why don't you cache those, that are actually requested?
[09:41:57] Bish: because the first request will timeout already
[09:42:03] universa1: 1st request slow, following ones will be fast.
[09:42:11] Bish: slow as in, gateway timeout
[09:42:13] NeutronStarr: has joined #ruby
[09:42:51] Bish: which will disrupt the process the user is in, and each user has its own ids there so i cant cache them for al
[09:42:56] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[09:43:31] Bish: i dont know how to explain my problem better, ive given all information i can
[09:43:51] ayonkhan_: has joined #ruby
[09:44:28] Bish: actually its one huge database query these ids will get inserted to
[09:44:30] Bish: that one is slow
[09:44:55] universa1: Bish: well, guessing here: you could move the "slow task" into a background job. if there is database query, it is probably the case, one could optimize either the query or the db to make it faster.
[09:45:20] Bish: i tried to optimize it , pretty hopeless
[09:45:32] Bish: background job doesnt help.. because its a really user interactive thing
[09:45:36] Bish: i would rather remove the feature
[09:45:55] Bish: u can have a shot at the database query if u want :D
[09:46:01] universa1: but with only seeing the arguments, it is basically impossible to actually help you.
[09:46:33] universa1: and i'm not saying that i can actually can, but you are making it hard for others...
[09:47:56] aruns_: has joined #ruby
[09:48:21] Bish: well, so what u demand me to do?
[09:48:30] Bish: u can have the database select, which is basicially the whole method
[09:48:35] Bish: there is not much more
[09:48:54] Bish: (the method just executes the query)
[09:49:16] Bish: and i already spent some time optimizing it.. which wasn't fun
[09:49:19] aruns_: Hi, quick question, running Mac OS X 10.11.6 (El Capitan) on office MacBook, using FISH 2.4.0 as my shell, running RVM 1.29.1 and RVM does not seem to be overriding the default Ruby I have installed.
[09:49:41] universa1: aruns_: rvm use 2.4.1 ?
[09:49:50] universa1: aruns_: set default ruby in rvm?
[09:50:15] aruns_: universa1: Yeah, I have 2.4.1 set as default Ruby under RVM
[09:50:22] aruns_: I have rvm use default in my shell config
[09:50:36] aruns_: I have sourced shell config, exited the shell and spawned a new shell instance
[09:50:39] aruns_: Even restarted
[09:50:46] universa1: aruns_: does rvm actually work? so rvm use 2.4.1 doesn't print some warning?
[09:51:07] aruns_: universa1: It does not, no.
[09:51:25] aruns_: I'm following pretty much the same steps that I do on my Ubuntu and Arch laptops at home
[09:51:35] aruns_: So I'm guessing maybe it's an issue with the RVM installer for Mac
[09:51:47] universa1: aruns_: so after you've run rvm use 2.4.1
[09:52:08] universa1: aruns_: it is actually using the rvm 2.4.1 ruby? so which ruby points to rvm?
[09:52:12] aruns_: Well actually I have 2.4.0 at the moment
[09:52:16] aruns_: I am installing 2.4.1 now
[09:52:20] universa1: aruns_: doesn't amtter
[09:52:26] aruns_: But it has Using /Users/*nameofuser*/.rvm/gems/ruby-2.4.0
[09:52:42] aruns_: Just doesn't override the default Ruby
[09:52:42] universa1: aruns_: so just the default stuff isn't working... what is the output of rvm list ?
[09:53:10] aruns_: universa1: https://bpaste.net/show/dd95f76ca018
[09:53:25] aruns_: I don't recall if I even got it working under Bash
[09:53:29] aruns_: Testing that now
[09:53:36] aruns_: But it worked fine on FISH on Ubuntu and Arch
[09:53:43] universa1: aruns_: this is on a fresh terminal session?
[09:54:20] universa1: aruns_: so: new terminal; rvm list; which ruby <-- this points to system ruby?
[09:54:43] universa1: aruns_: just trying to understand the problem ;) not having any idea why or what might be botched
[09:55:01] aruns_: I'm also running RVM 1.29.1
[09:55:09] aruns_: I recall reading that I migh thave to downgrade
[09:55:22] aruns_: But want to eliminate other possible causes first
[09:55:37] nanoz: has joined #ruby
[09:55:47] ur5us: has joined #ruby
[09:56:15] aruns_: As still waiting for RVM to install 2.4.1 :P
[09:59:23] aruns_: OK so it works under Bash
[09:59:35] aruns_: That's good to know at least.
[10:00:15] Drakevr: has joined #ruby
[10:02:17] milardovich: has joined #ruby
[10:03:59] sekmo: has joined #ruby
[10:04:56] PaulCapestany: has joined #ruby
[10:04:58] DoubleMalt: has joined #ruby
[10:06:55] kryptoz: has joined #ruby
[10:07:26] arup_r: has joined #ruby
[10:08:59] zenspider: more fish complaints about rvm...?
[10:09:28] ddddddd: has joined #ruby
[10:09:45] zenspider: aruns_: eliminate rvm. that's the variable in common
[10:09:54] aruns_: Wait something I haven't tried.
[10:10:01] aruns_: Think I know what the issue is.
[10:10:12] aruns_: No I use it at home and works fine.
[10:11:18] arup_r: I am setting up an end to end test outside of my rails projects folder. I have couple of shell scripts to start rails and my frontend application. When in my shell I run `./bin/setup` manually no error. All good. When I am calling the same from my Rspec hook like %x[ ./bin/setup ] .. It is telling `rails not found`. Can anyone help me to fix this shell issue? Here I asked the same question with more description https://www.reddit.com/r/rails/comme
[10:11:19] arup_r: nts/6ktlun/loaderror_cannot_load_such_file_rails/
[10:11:42] arup_r: it is not rails question, ruby and shell I am not able to handle :)
[10:12:06] elomatreb: aruns_: You probably have to install a wrapper for RVM with fish, it's a collection of bash scripts after all
[10:12:15] aruns_: elomatreb: No I did that
[10:12:40] ascarter: has joined #ruby
[10:12:41] aruns_: The same steps I've followed on my Ubuntu and Arch laptops I've followed here
[10:12:45] aruns_: Works on those two
[10:12:47] aruns_: Just not on here
[10:12:50] aruns_: Except under Bash
[10:12:57] aruns_: And I've got FISH on both
[10:13:48] zenspider: which still means you have a problem with rvm... one you wouldn't have if you used a much simpler ruby version mgr
[10:13:54] Pumukel: has joined #ruby
[10:14:24] zenspider: but whatever flips your skirt up...
[10:17:21] elomatreb: A combination of https://github.com/postmodern/chruby and https://github.com/postmodern/ruby-install is a good choice
[10:19:48] milardovich: has joined #ruby
[10:19:56] zenspider: certainly safer and easier
[10:20:24] zenspider: I don't like them because they're not +u clean... but they're certainly a valid alternative
[10:20:32] zenspider: ACTION goes to bed
[10:36:51] psychicist__: has joined #ruby
[10:37:53] sepp2k: has joined #ruby
[10:42:31] mim1k: has joined #ruby
[10:48:50] dasher00: has joined #ruby
[10:53:52] milardovich: has joined #ruby
[10:54:35] im0nde: has joined #ruby
[10:55:19] _aeris_: has joined #ruby
[10:57:24] anisha: has joined #ruby
[11:00:00] vuoto: has joined #ruby
[11:01:06] _aeris_: has joined #ruby
[11:02:09] cseder: has joined #ruby
[11:02:47] loechel: has joined #ruby
[11:03:35] aglorei: has joined #ruby
[11:05:11] ur5us: has joined #ruby
[11:05:11] jak: has joined #ruby
[11:05:12] TheBloke: has joined #ruby
[11:05:57] Sp4rKy: has joined #ruby
[11:06:36] WebDawg: has joined #ruby
[11:07:47] Prira: has joined #ruby
[11:12:03] DoubleMalt: has joined #ruby
[11:12:14] _whitelogger: has joined #ruby
[11:19:33] jaruga________: has joined #ruby
[11:19:46] chichou: has joined #ruby
[11:30:18] hkdsun: has joined #ruby
[11:32:46] milardovich: has joined #ruby
[11:34:10] mim1k: has joined #ruby
[11:40:49] ldnunes: has joined #ruby
[11:51:24] ltem: has joined #ruby
[11:52:02] dcunit3d: has joined #ruby
[11:57:14] hightower2: has joined #ruby
[11:57:47] ur5us: has joined #ruby
[12:06:31] GinoMan: has joined #ruby
[12:11:32] charliesome: has joined #ruby
[12:11:39] ayonkhan: has joined #ruby
[12:13:03] jak: has joined #ruby
[12:13:18] swills: has joined #ruby
[12:14:09] ascarter: has joined #ruby
[12:17:33] Danny: has joined #ruby
[12:21:35] GinoMan2440: has joined #ruby
[12:25:36] GinoMan2440: has joined #ruby
[12:27:57] tvw: has joined #ruby
[12:29:57] tvw: has joined #ruby
[12:34:19] blaisebool: has joined #ruby
[12:35:03] mim1k: has joined #ruby
[12:35:06] DoubleMalt: has joined #ruby
[12:41:48] jakk: has joined #ruby
[12:43:00] splitshot: has joined #ruby
[12:43:19] aruns: has joined #ruby
[12:43:43] _moep_: has joined #ruby
[12:44:51] hkdsun_: has joined #ruby
[12:48:02] jphase: has joined #ruby
[12:59:01] anjen: has joined #ruby
[13:04:34] aruns: has joined #ruby
[13:11:14] meshsmith: has joined #ruby
[13:11:14] meshsmith: has joined #ruby
[13:11:32] GodFather: has joined #ruby
[13:11:56] Tau: has joined #ruby
[13:11:57] pandaant: has joined #ruby
[13:12:02] mim1k: has joined #ruby
[13:12:11] knight33: has joined #ruby
[13:15:49] ascarter: has joined #ruby
[13:16:16] ledestin: has joined #ruby
[13:17:50] BSAlb: has joined #ruby
[13:18:22] GodFather: has joined #ruby
[13:19:32] GodFather_: has joined #ruby
[13:22:58] Danny: has joined #ruby
[13:37:18] antgel: has joined #ruby
[13:43:02] jakk: has joined #ruby
[13:44:00] anisha: has joined #ruby
[13:46:53] uZiel: has joined #ruby
[13:49:55] Hess: has joined #ruby
[13:53:38] xMopxShell: has joined #ruby
[13:54:46] AckZ: has joined #ruby
[13:55:16] patarr: has joined #ruby
[13:58:16] meshsmith: has joined #ruby
[13:59:21] xrlk: has joined #ruby
[13:59:23] mark_66: has joined #ruby
[13:59:29] oleo: has joined #ruby
[14:00:05] manveru: anyone know how to tell rubocop not to complain about /(?<var>)/ =~ "something" ... it wants to replace it with Regexp#match? which won't assign the variable :(
[14:01:51] manveru: ah, guess https://github.com/bbatsov/rubocop/pull/4531 fixes that
[14:02:32] Rodya_: has joined #ruby
[14:03:47] jphase: has joined #ruby
[14:04:49] darix: manveru: hmm would match_object = /someregexp/.match(text_variable) do the job?
[14:05:15] kobain: has joined #ruby
[14:05:18] darix: i really prefer that over =~ and $\d variables nowadays
[14:05:26] darix: especially with named match groups
[14:05:27] manveru: sure... but then i have to write `var = match_object[:var]`
[14:05:48] manveru: `next unless /^BEETLE_(?<config_key>.*)/ =~ key`
[14:05:50] manveru: i'm using it like this
[14:06:43] manveru: so after this line the config_key variable has what i need already
[14:07:07] manveru: it works with .match() as well, just not with .match?() :)
[14:07:23] darix: manveru: sure but .match should return nil if it doesnt match no?
[14:07:51] manveru: sure, but then one line becomes 3
[14:08:31] darix: next unless mo = /^BEETLE_(?<config_key>.*)/.match(key)
[14:08:34] darix: mo[:config_key]
[14:08:37] darix: to access it
[14:08:49] herwin: which results in another rubocop warning
[14:08:59] darix: mo = /^BEETLE_(?<config_key>.*)/.match(key)
[14:08:59] manveru: assign in conditional
[14:09:01] herwin: assignment in if-statement, or whatever the exact name they use is
[14:09:03] darix: next if mo.nil?
[14:09:33] manveru: either way, it's a bug in rubocop
[14:10:01] manveru: that check is meant for better performance, not to change the semantics
[14:10:44] manveru: there's just no new release yet... so i'll ignore it until then
[14:11:58] gts7: has joined #ruby
[14:13:06] cam27: has joined #ruby
[14:13:10] Ishido: has joined #ruby
[14:15:56] shinnya: has joined #ruby
[14:17:49] KeyJoo: has joined #ruby
[14:17:52] zacts: has joined #ruby
[14:23:35] knight33: has joined #ruby
[14:23:51] polishdub: has joined #ruby
[14:24:20] petruff: has joined #ruby
[14:26:00] cpruitt: has joined #ruby
[14:27:40] mim1k: has joined #ruby
[14:33:15] DLSteve: has joined #ruby
[14:35:27] hutch34: has joined #ruby
[14:37:52] uZiel: has joined #ruby
[14:39:03] truenito: has joined #ruby
[14:41:03] lxsameer: has joined #ruby
[14:42:48] GodFather_: has joined #ruby
[14:46:04] Tau: has joined #ruby
[14:46:19] jphase_: has joined #ruby
[14:47:11] cdg: has joined #ruby
[14:49:25] cadillac__: has joined #ruby
[14:57:28] isBEKaml: has joined #ruby
[14:57:30] nofxx: has joined #ruby
[14:57:44] ketan: has joined #ruby
[14:58:17] skweek: has joined #ruby
[15:01:13] patarr1: has joined #ruby
[15:01:20] vuoto: has joined #ruby
[15:04:36] miah_: has joined #ruby
[15:05:06] cschneid_: has joined #ruby
[15:06:23] Bish: is there a reduce function that always calls the block with the same reference?
[15:06:35] Bish: it feels stupid always to write .reduce {|a,b| ...;a}
[15:06:40] mim1k: has joined #ruby
[15:06:47] Bish: it feels stupid always to write .reduce() {|a,b| ...;a}
[15:07:02] matthewd: Bish: each_with_object
[15:07:44] Bish: each_with_object.reduce or just each with object?
[15:08:27] ljarvis: just the latter as matthewd suggested
[15:08:38] ljarvis: .reduce { .. ;x } is a code smell
[15:08:48] ljarvis: and it's exactly what each_with_object is for
[15:09:05] ljarvis: you can also chain it with just .with_object
[15:09:14] ljarvis: e.g. .each.with_object
[15:10:43] knight33: has joined #ruby
[15:16:32] ResidentBiscuit: has joined #ruby
[15:17:37] patarr: has joined #ruby
[15:19:45] vuoto: has joined #ruby
[15:27:58] zanshin: has joined #ruby
[15:28:52] noob: has joined #ruby
[15:29:45] doublemalt_: has joined #ruby
[15:30:54] zanshin: I inherited some Ruby code that I'm trying to figure out. The code reads a JSON file and at one point has an if statement that reads `if i['ssl']` where `i` is the iterator and `ssl` is an attribute in the JSON file. ssl has a text value, it is _not_ a boolean. How does this if statement work? Does Ruby have some syntax sugar that treats the presence of a value as true?
[15:31:28] noob: has left #ruby: ()
[15:31:43] apeiros: zanshin: in ruby, everything except nil and false are true-ish
[15:32:03] apeiros: i.e. if i['ssl'] is basically "if there's a value around for this key"
[15:32:19] ljarvis: false is a value *troll*
[15:32:20] apeiros: (would need a change if nil or false was a valid value for that key)
[15:32:40] apeiros: and yes, that *troll* is not really a troll IMO
[15:32:54] apeiros: true, false, nil are all objects in ruby. it's something to be aware of.
[15:33:14] zanshin: apeiros: Lovely. Thanks. That's a new concept for me. I can go home now, I learned something new. :)
[15:33:19] ljarvis: but yeah, if you want to check if "ssl" exists as a key, no matter what value it has, use .key?("ssl")
[15:33:45] apeiros: I love has_ free syntax in ruby, but for this I actually prefer has_key? over key?
[15:34:14] zanshin: has_key would be a lot clearer for the next guy who has to read and understand this.
[15:34:15] ljarvis: tbh i just prefer key? because it's shorter, i do agree has_key? reads significantly better
[15:34:44] [Butch]: has joined #ruby
[15:34:51] isBEKaml: I think key? is better over the has_key? noise. To my eyes, key? just means asking 'is it a key?'
[15:35:14] ljarvis: but has_key? is asking "has it got this key?" which is clearer :D
[15:35:43] ljarvis: we could also use: member? include?
[15:36:11] isBEKaml: well, you're using the hash. So that's implicit (or explicit): hash.key? 'foo' just asks 'is foo a key in this hash?'
[15:36:13] apeiros: isBEKaml: foo.key? asks whether foo is a key IMO. it's why I don't like it.
[15:36:34] ljarvis: yeah I get that too
[15:36:38] isBEKaml: apeiros: ha ha haha
[15:36:46] isBEKaml: Isn't that what we wanted?
[15:37:00] ljarvis: no, you dont want to consider foo being a key
[15:37:02] apeiros: he wants to know whether foo *has* a key given as a parameter
[15:37:03] ljarvis: it's obviously a hash
[15:37:51] apeiros: anyway, tbh, I'd even be fine with key? if in turn ruby got rid of all unnecessary aliases (there are some necessary ones)
[15:37:58] isBEKaml: apeiros: Nope, that's not what I meant. I think you got it backwards to what I meant.
[15:38:18] cdg: has joined #ruby
[15:38:19] isBEKaml: I meant something like: puts "foo is a key in some_hash" if some_hash.key? 'foo'
[15:38:22] brent__: has joined #ruby
[15:38:40] apeiros: yes, I got that
[15:38:46] apeiros: maybe you reread the scrollback ;-)
[15:39:10] isBEKaml: apeiros: I went with what you said: foo.key? is not what I meant at all
[15:40:14] Brent___: has joined #ruby
[15:40:20] patarr: has joined #ruby
[15:40:36] texasmynsted: has joined #ruby
[15:41:22] enterprisey: has joined #ruby
[15:41:48] uZiel_: has joined #ruby
[15:42:18] ar1a: has joined #ruby
[15:42:24] isBEKaml: Oh, I now see where I got sidetracked. Sorry for the noise.
[15:42:54] gizmore: has joined #ruby
[15:43:04] ar1a: can someone link me some info on passing functions as parameters? in some libraries i see yknow "foo { |bar| puts bar }" or whatever, i was wondering if there was any info for implementing that into my own code
[15:43:04] jakk: has joined #ruby
[15:43:12] ar1a: so i can write functions that take functions as a parameter :D
[15:43:25] apeiros: ar1a: they're called "blocks"
[15:43:44] apeiros: and basically you do `yield(arg1, …)` to invoke a block passed to your method
[15:43:53] apeiros: and block_given? to test whether one was passed
[15:43:53] ar1a: not arg1()
[15:44:01] ar1a: thanks, block is the buzzword i needed
[15:44:03] apeiros: no, yield() calls the block
[15:44:04] ar1a: ill go look stuff up :)
[15:44:13] apeiros: yield(arg1, arg2) calls the block passing 2 arguments to it
[15:44:27] sekmo: has joined #ruby
[15:44:34] apeiros: > def foo; yield(1, 2); end; foo { |a,b| … }
[15:44:42] apeiros: a=1 and b=2 in that block.
[15:47:42] mrconfused: has joined #ruby
[15:48:42] mostlybadfly: has joined #ruby
[15:50:35] texasmynsted: has joined #ruby
[15:59:46] dionysus69: has joined #ruby
[16:00:47] amclain: has joined #ruby
[16:01:28] Rodya_: has joined #ruby
[16:02:37] aufi: has joined #ruby
[16:07:15] texasmynsted: has joined #ruby
[16:07:16] sekmo: has joined #ruby
[16:08:00] troys: has joined #ruby
[16:13:44] tgragnato: has joined #ruby
[16:16:25] haylon: has joined #ruby
[16:17:21] gts7: has joined #ruby
[16:17:32] ascarter: has joined #ruby
[16:19:51] solocshaw: has joined #ruby
[16:24:39] Axsuul: has joined #ruby
[16:24:57] cats: has joined #ruby
[16:26:48] Giphy[m]: has joined #ruby
[16:34:33] learner123: has joined #ruby
[16:35:15] hutch34: has joined #ruby
[16:35:36] learner123: Hi, being a Ruby newbie, let me ask some question... might be too basic.
[16:36:16] learner123: I'm very confused with error I'm getting when using <object>.<method>.
[16:36:56] learner123: Looks like, I need to use correct .<method> for the type of <object> whether it's a string, array, or hash.
[16:37:10] choke: has joined #ruby
[16:38:32] learner123: Should I remember which method to use with a string, array, or hash? Or, what's the best way to pass this learning curve?
[16:38:54] elomatreb: Well, what are the methods you want to use?
[16:39:11] elomatreb: Because Hash, Array, and String are entirely different things
[16:39:22] learner123: Maybe looking up some webpage where various methods are listed for each of string, array, and hash?
[16:40:16] alex``: has joined #ruby
[16:40:44] elomatreb: Depending on how you installed Ruby you installed documentation for the ruby core with it, try `ri SomeClass` on the command line
[16:41:07] elomatreb: Alternatively, there are web-based renders of the same docs, e.g. https://ruby-doc.org/core-2.4.1/Array.html
[16:41:18] learner123: elomatreb: Yeah, I know that... so, I already need to know the usage of a method to use for the type, right?
[16:42:44] elomatreb: Yes, since methods can do different things on different types. Typically the standard library is designed to avoid confusion (e.g. length *usually* does what you want on all applicable classes), but it's not guaranteed and third-party code doesn't make any guarantees
[16:43:09] learner123: For example, I should already know that .upper is used for <string>.upper... not with <array>.upper or <hash>.upper.
[16:44:03] elomatreb: Yes, since there obviously is no uppercase version of an Array ;)
[16:44:29] KevinMGranger: has joined #ruby
[16:44:29] johnson[m]: has joined #ruby
[16:44:29] kp666[m]: has joined #ruby
[16:44:29] voltai[m]: has joined #ruby
[16:44:29] jonjits[m]: has joined #ruby
[16:44:30] M107262[m]: has joined #ruby
[16:44:30] Tagami[m]: has joined #ruby
[16:44:30] aidalgol: has joined #ruby
[16:44:30] turt2live: has joined #ruby
[16:44:30] torarne: has joined #ruby
[16:44:30] dman[m]: has joined #ruby
[16:44:30] heftig: has joined #ruby
[16:44:30] intermo[m]: has joined #ruby
[16:44:30] aviraldg: has joined #ruby
[16:44:38] testnick[m]: has joined #ruby
[16:44:38] el_ocho[m]: has joined #ruby
[16:44:40] velu_aon[m]: has joined #ruby
[16:45:32] conta3: has joined #ruby
[16:50:21] frustrum: has joined #ruby
[16:50:33] learner123: Is it similar in other languages like Python?
[16:50:46] learner123: as much confusing or no?
[16:57:38] kangu0: has joined #ruby
[16:57:59] kangu0: Pointer exists in Ruby?
[16:58:07] kangu0: Why Pointer is required
[17:01:00] duderonomy: has joined #ruby
[17:01:07] svara: has joined #ruby
[17:01:16] elomatreb: learner123: This is probably the same in all languages
[17:06:43] BSaboia: has joined #ruby
[17:12:00] splitshot: kangu0, yes. Everything is a reference.
[17:12:24] kangu0: How or why pointer or reference are useful
[17:12:31] kangu0: splitshot
[17:12:40] abhi56rai: has joined #ruby
[17:13:01] jakk: has joined #ruby
[17:14:06] d^sh_: has joined #ruby
[17:14:36] splitshot: Not really sure what you mean by how is it useful... It lets you share a reference to data without copying it. So there are benefits to that, but you also need to be aware that's what happening.
[17:15:06] cdg: has joined #ruby
[17:16:02] dminuoso: <splitshot> kangu0, yes. Everything is a reference.
[17:16:05] dminuoso: That part is completely hidden from you though.
[17:16:10] splitshot: When you, for example, pass an object (reference) to a method, that method has access to *that object*, not a copy of it.
[17:16:12] dminuoso: Ruby is pure pass-by-value.
[17:16:17] dminuoso: But what you pass are pointers under the hood.
[17:16:30] cdg: has joined #ruby
[17:18:49] ketan: has joined #ruby
[17:20:52] texasmynsted: has joined #ruby
[17:21:27] apeiros: kangu0: they are not pointers in the sense as that you can't do pointer arithmetics or point to random space in memory
[17:21:45] apeiros: kangu0: for that matter, reference is a much better term
[17:22:07] dminuoso: apeiros, watch me!
[17:22:15] dminuoso: ACTION fiddles around
[17:22:17] apeiros: ACTION raises Shields
[17:22:30] apeiros: red alert, all hands to stations!
[17:22:49] apeiros: that was a reference, btw. :D
[17:23:03] apeiros: ACTION really wanted to point this out
[17:23:12] dminuoso: ACTION instantiates a Fiddle::Pointer to apeiros' shield object and forcibly casts it to the RClass WoolBlanket
[17:23:28] dminuoso: Has baweaver been teaching you?
[17:25:27] whippythellama: has joined #ruby
[17:25:43] dminuoso: apeiros, by the way.. something sad has happened...
[17:25:52] dminuoso: Do you recall that actual Fiddle hack to cast objects?
[17:26:18] dminuoso: I finally refactored it by just sprinkling a teeny bit of reflection..
[17:26:19] apeiros: not the code, but the idea, yes
[17:26:25] Ishido: has joined #ruby
[17:26:29] dminuoso: No more fiddling in production code :<
[17:26:34] dminuoso: ACTION sad panda
[17:26:54] kang90: has joined #ruby
[17:27:03] dminuoso: apeiros, oh! I gotta run something by you
[17:27:16] apeiros: bad timing, but do try
[17:29:16] abhi56rai: has joined #ruby
[17:29:25] zenguy_pc: has joined #ruby
[17:29:54] gusrub: has joined #ruby
[17:35:15] ddddddd: has joined #ruby
[17:36:15] texasmynsted: has left #ruby: ()
[17:37:32] mim1k: has joined #ruby
[17:37:54] Ishido: has joined #ruby
[17:38:07] Rodya_: has joined #ruby
[17:38:33] kies: has joined #ruby
[17:40:12] ar1a: so in this code im reading, instead of running yield it runs instance_eval &block
[17:40:23] ar1a: what's the difference?
[17:40:28] ar1a: http://speakmy.name/2011/05/29/simple-configuration-for-ruby-apps/ src code, fyi
[17:41:38] Rodya_: has joined #ruby
[17:42:32] splitshot: arla, it executes the block in the context of the module.
[17:42:40] eckhardt: has joined #ruby
[17:42:51] ar1a: does yield not do that?
[17:43:10] ar1a: its a one btw, not an l :p
[17:43:50] jphase: has joined #ruby
[17:44:06] abhi56rai: has joined #ruby
[17:44:41] splitshot: In the example code, the block is sending the parameter message which is defined in the module. Yield would not allow you to do that, no.
[17:45:29] elomatreb: ar1a: Demo: https://eval.in/826713
[17:45:35] abhi56rai: has joined #ruby
[17:45:40] jak: has joined #ruby
[17:46:45] Cohedrin_: has joined #ruby
[17:47:28] abhi56rai: has joined #ruby
[17:48:42] mim1k: has joined #ruby
[17:49:14] dminuoso: ar1a: yield executes the block passed to the current method execution takes place in.
[17:49:27] dminuoso: (That may sound a bit convoluted but I couldn't phrase it any nicer)
[17:50:11] dminuoso: I personally prefer explicit procyfying and then invoking callable.call() most of the time for clarities sake.
[17:50:28] ar1a: sounds complex
[17:50:49] dminuoso: ar1a: The issue is if I phrase it dirrectly, it will not cover special cases..
[17:51:02] elomatreb: It's not as complicated as it sounds for the most part
[17:52:50] perniciouscaffei: has joined #ruby
[17:52:56] dminuoso: It was not even correct..
[17:53:11] dminuoso: ar1a: It executes the block passed to the current execution context.
[17:53:21] dminuoso: Now that sounds confusing!
[17:53:43] ar1a: is there a way to have an async REPL? i'm running a chat bot, and i'd like to be able to send messages from it
[17:54:01] dminuoso: ar1a: ruby[bot] uses http://eval.in
[17:54:07] dminuoso: For better or worse..
[17:54:25] ar1a: no i meant
[17:54:29] ar1a: inside of my script thingy
[17:54:31] ar1a: im confused...
[17:54:35] ar1a: not necessarily a REPL
[17:54:42] ar1a: just a prompt
[17:54:45] uZiel: has joined #ruby
[17:55:25] dminuoso: You mean like.. you want stdin?
[17:55:30] ar1a: i suppose
[17:55:39] ar1a: but asynchronously
[17:56:09] elomatreb: Ruby isn't big with asynchronous inputs, unless you build something with threads yourself there is nothing like that in the standard libray
[17:56:18] ar1a: no, a gem is fine :)
[17:56:21] ar1a: like um... readline? i think
[17:56:36] ar1a: ugh, idk
[17:56:41] ar1a: it's not important, nvm
[17:56:48] dminuoso: Oh you meant non-blocking reading from stdin?
[17:57:09] ar1a: sorry, does asynchronous != non-blocking?
[17:57:16] elomatreb: Usually yes
[17:57:24] elomatreb: Uh, other way around
[17:57:30] dminuoso: Just never heard "async" being used in the context of IO
[17:57:48] elomatreb: Node uses it like that I think?
[17:57:50] dminuoso: So yeah. readline
[17:57:53] dminuoso: curses/ncurses.
[17:58:01] dminuoso: Those kinds of bastarized and completely unusable libraries
[17:58:05] splitshot: async i/o is a big deal
[17:58:19] dminuoso: splitshot: i/o yes. but non-blocking stdin? not so much.
[17:58:37] splitshot: ACTION shrugs
[17:58:41] elomatreb: But stdout yes, as demonstrated by old NPM
[17:59:44] dminuoso: But I guess you could also do it the hardway and use #select ...
[17:59:50] dminuoso: Not that it's something you likely want..
[18:01:01] ar1a: can you guys code review this short module please
[18:01:30] dionysus70: has joined #ruby
[18:01:49] ar1a: http://paste.debian.net/974584/
[18:01:53] dminuoso: >> callable = proc{ yield }; callable.call { puts "1" }
[18:01:54] ruby[bot]: dminuoso: # => no block given (yield) (LocalJumpError) ...check link for more (https://eval.in/826732)
[18:02:19] dminuoso: asm>> { yield }
[18:02:20] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/826734
[18:02:30] muelleme_: has joined #ruby
[18:02:31] dminuoso: asm>> foo = proc{ yield }
[18:02:32] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/826736
[18:03:16] roshanavand: has joined #ruby
[18:03:25] dminuoso: asm>> foo = proc{ yield }; def meth(callable); callable.call; end; meth(foo) { puts "hi" }
[18:03:26] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/826737
[18:03:29] dminuoso: >> foo = proc{ yield }; def meth(callable); callable.call; end; meth(foo) { puts "hi" }
[18:03:30] ruby[bot]: dminuoso: # => no block given (yield) (LocalJumpError) ...check link for more (https://eval.in/826738)
[18:03:38] dminuoso: ACTION gives upo
[18:03:44] elomatreb: ar1a: Chained array access like in line 11 can be nasty to debug when one of the intermediate values is nil, since you just get a undefined method for nil and the line
[18:04:04] dminuoso: Denormalize your data.
[18:04:07] dminuoso: And then normalize it!
[18:04:11] dminuoso: For good measure.
[18:04:13] ar1a: elomatreb: i had found that
[18:04:17] ar1a: dminuoso: what does that mean?
[18:04:56] elomatreb: If you *really* need to do deep access into an array like that Array#dig is really nice
[18:04:58] dminuoso: ar1a: It's something Rubyists dont know about. And neither do API vendors.
[18:05:14] gusrub: has joined #ruby
[18:05:15] ar1a: elomatreb: well its burried that deep
[18:05:24] ar1a: https://www.reddit.com/r/Otters/comments/61k5hr/usual_breakfast/.json for example
[18:05:44] dminuoso: ar1a: Ever heard of BCNF?
[18:05:48] dminuoso: Or 2NF/3NF?
[18:06:03] dminuoso: ar1a: Yeah. Normalize the data you get from the API.
[18:06:15] dminuoso: A quick glance suggests this could be cool: https://github.com/chrokh/normalizr
[18:06:40] ar1a: that seems like a lot of work for something this simple... Array#dig looks cool
[18:06:43] dminuoso: Let's see if I'll trigger anyone with this.
[18:07:27] elomatreb: You need to use machine learning, blockchains, and mongodb big data to normalize your data, obviously
[18:07:48] ar1a: the answer ive been wanting!
[18:08:39] dminuoso: elomatreb: fuck mongodb
[18:08:50] dminuoso: elomatreb: the other things I agree with though.
[18:09:04] dminuoso: Sorry for my language, but that word always triggers ne,.
[18:09:06] montanonic: has joined #ruby
[18:09:16] mim1k: has joined #ruby
[18:09:29] elomatreb: You can substitute for any other hip database to taste
[18:09:36] __Yiota: has joined #ruby
[18:10:10] dminuoso: It makes MySQL look professional in comparison.
[18:10:22] ar1a: dminuoso: its web scale!
[18:11:06] ar1a: dminuoso: has set +b on !ar1a@*
[18:11:16] ar1a: is that how irc hostnames work, i forget
[18:13:33] conta2: has joined #ruby
[18:14:35] whippythellama: has joined #ruby
[18:15:27] anisha: has joined #ruby
[18:15:47] dtzuzu: has joined #ruby
[18:19:11] ascarter: has joined #ruby
[18:20:15] ar1a: is it true ruby isnt truly multi-threaded
[18:20:56] ar1a: uses GIL or something
[18:21:11] abhi56rai: has joined #ruby
[18:22:14] cschneid_: has joined #ruby
[18:22:26] dminuoso: ar1a: And it depends. It is multi-threaded.
[18:22:33] ar1a: Global interpreter lock
[18:22:35] ar1a: whats GVL?
[18:22:38] dminuoso: Global VM lock.
[18:22:48] dminuoso: Ruby hasn't been using an interpreter since 1.9.
[18:23:01] ar1a: so its like java now?
[18:23:10] dminuoso: ar1a: Not as sophisticated. But yeah.
[18:23:32] ar1a: how is it different to an interpreter in ruby's case
[18:24:00] __Yiota: has joined #ruby
[18:24:09] dminuoso: ar1a: By compiling to bytecode first there's certain optimizations that can be made during compilation, that offset the slight overhead.
[18:24:31] dminuoso: ar1a: Ruby 3.0 will take that to new proportions (where you can pre-compile ruby code before shipping easily)
[18:24:46] abhi56rai: has joined #ruby
[18:24:52] ar1a: ruby 3.0
[18:24:56] ar1a: haven't they been promising that for years! :p
[18:29:08] dminuoso: ar1a: But anyway. To answer your original questions, it's just the Ruby code (basically the entire C code) that is protected by the GVL.
[18:29:32] zenguy_pc: has joined #ruby
[18:29:52] mim1k: has joined #ruby
[18:31:25] dminuoso: ar1a: I/O interaction with the kernel typically releases the GVL. Which means you always have concurrency, but with I/O (and a very select few other things) you also have parallelism.
[18:31:52] dminuoso: So if you're doing CPU intensive stuff that does things in the Ruby GVL you will only get concurrency.
[18:32:57] Cohedrin_: has joined #ruby
[18:41:26] abhi56rai: has joined #ruby
[18:45:22] Dimik: has joined #ruby
[18:45:58] clemens3: has joined #ruby
[18:47:52] darix: has joined #ruby
[18:49:06] mim1k: has joined #ruby
[18:50:56] ar1a: debian 8 still on ruby 2.1.5
[18:51:39] ar1a: i think, at least
[18:51:47] Cohedrin_: has joined #ruby
[18:52:46] muelleme_: has joined #ruby
[18:53:21] whippythellama: has joined #ruby
[18:53:46] abhi56rai: has joined #ruby
[18:54:58] quobo: has joined #ruby
[18:55:12] DrCode: has joined #ruby
[18:55:25] PaulCapestany: has joined #ruby
[18:56:39] GinoMan1423: has joined #ruby
[18:57:26] abhi56rai: has joined #ruby
[19:01:10] jphase: has joined #ruby
[19:07:46] blackwind_123: has joined #ruby
[19:09:35] mim1k: has joined #ruby
[19:09:46] andrzejku: has joined #ruby
[19:10:44] tAn: has joined #ruby
[19:11:40] nofxx: has joined #ruby
[19:11:45] jak: has joined #ruby
[19:21:08] ledestin: has joined #ruby
[19:21:37] raspado: has joined #ruby
[19:22:58] yokel: has joined #ruby
[19:25:39] psychicist__: has joined #ruby
[19:27:41] Ishido: has joined #ruby
[19:29:20] postmodern: has joined #ruby
[19:29:36] yokel: has joined #ruby
[19:30:12] mim1k: has joined #ruby
[19:33:53] abrahampolishchu: has joined #ruby
[19:34:03] SeepingN: has joined #ruby
[19:34:45] whippythellama: has joined #ruby
[19:36:26] Cohedrin_: has joined #ruby
[19:39:29] nhhc: has joined #ruby
[19:40:01] montanonic: has joined #ruby
[19:40:33] johnny56_: has joined #ruby
[19:42:18] knight33: has joined #ruby
[19:42:55] tomaw: has joined #ruby
[19:48:01] _moep_: hey, is this room the correct one, for questions about rbenv?
[19:48:07] ar1a: i don't see why not
[19:48:34] havenwood: _moep_: There isn't an #rbenv channel like #chruby or #rvm, so this is the closest.
[19:48:44] mim1k: has joined #ruby
[19:48:54] _moep_: ok, I installed it in ~app like the doc at github
[19:49:31] ruby[bot]: Missing command under rbenv? Did you try `rbenv rehash`?
[19:49:39] solocshaw: has joined #ruby
[19:49:45] _moep_: now I want to run my configurationmanagment tool and it should trigger rbenv (rbenv install …)
[19:50:32] _moep_: and I get at user root the error "no such command install"
[19:51:01] havenwood: _moep_: Show us the line that results in that?
[19:51:27] _moep_: /home/app/.rbenv/bin/rbenv install 2.3.4
[19:51:40] sekmo: has joined #ruby
[19:51:58] havenwood: _moep_: Is ruby-build installed?
[19:52:06] _moep_: I also exported the path before export PATH="/home/app/.rbenv/bin:$PATH"
[19:53:07] havenwood: _moep_: Maybe avoid the entangled command and use ruby-build directly: ruby-build 2.3.4 ~/local/ruby-2.3.4
[19:53:11] brent__: has joined #ruby
[19:53:42] _moep_: its working localy its just not working with my script
[19:53:59] _moep_: (when i try it as user root)
[19:54:34] havenwood: _moep_: If you continue to have ruby-build issues, you can always use ruby-install to install for rbenv: ruby-install --latest --install-dir ~/.rbenv/versions/2.3.4 ruby 2.3.4
[19:55:00] havenwood: _moep_: I'd not be surprised if rbenv scripts don't work as root. Is it only with root you're having trouble?
[19:55:14] oleo: has joined #ruby
[19:55:20] _moep_: yes, with the app user I dont a the problem
[19:55:53] havenwood: _moep_: So I'd suggest using ruby-build directly, hardcoding the path to install to, or use ruby-install for the same.
[19:55:57] Brent___: has joined #ruby
[19:56:27] _moep_: thx I will try it
[19:56:34] havenwood: _moep_: https://github.com/postmodern/ruby-install#integration
[19:59:12] dminuoso: _moep_: Is this for docker?
[19:59:29] dminuoso: Whatever that is :S
[19:59:31] clemens3: join #macosx
[19:59:37] _moep_: something like ansible
[19:59:49] dminuoso: ansible in bash, eh?
[19:59:57] dminuoso: My condolences.
[20:00:53] DeeJayh: has joined #ruby
[20:03:20] solocshaw: has joined #ruby
[20:03:57] tomaw: has joined #ruby
[20:04:43] ketan: has joined #ruby
[20:06:28] tomaw: has joined #ruby
[20:08:37] solocshaw: has joined #ruby
[20:10:52] mim1k: has joined #ruby
[20:13:54] solocshaw: has joined #ruby
[20:16:40] ur5us: has joined #ruby
[20:17:32] pie3: has joined #ruby
[20:19:52] Cohedrin_: has joined #ruby
[20:30:27] shortdudey123: has joined #ruby
[20:34:44] Rodya_: has joined #ruby
[20:39:42] sneakerhax: has joined #ruby
[20:40:12] whippythellama: has joined #ruby
[20:42:17] gothicsouth: has joined #ruby
[20:43:00] jak: has joined #ruby
[20:47:10] mim1k: has joined #ruby
[20:48:26] bauruine: has joined #ruby
[20:49:40] sekmo: has joined #ruby
[20:50:05] solocshaw: has joined #ruby
[20:55:20] spheric: has joined #ruby
[20:56:23] lxsameer: has joined #ruby
[21:00:40] shinnya: has joined #ruby
[21:00:42] mim1k: has joined #ruby
[21:01:00] PaulCapestany: has joined #ruby
[21:01:55] jordanm: has joined #ruby
[21:03:43] xMopxShell: has joined #ruby
[21:04:32] Cohedrin_: has joined #ruby
[21:05:47] Rodya_: has joined #ruby
[21:06:16] Asher: has joined #ruby
[21:10:41] dcunit3d: has joined #ruby
[21:14:41] PaulCapestany: has joined #ruby
[21:15:56] ur5us: has joined #ruby
[21:16:16] mim1k: has joined #ruby
[21:20:39] dcluna: has joined #ruby
[21:25:43] al2o3-cr: has joined #ruby
[21:28:44] whathappen: has joined #ruby
[21:28:56] whathappen: is it okay to indent with spaces
[21:30:25] zenspider: whathappen: not just okay... expected. :P
[21:30:47] whathappen: programmers who indent with spaces seem to make more money
[21:31:11] ljarvis: dont take that article seriously whathappen
[21:32:22] naprimer2: has joined #ruby
[21:32:52] devster31: has joined #ruby
[21:33:07] jphase: has joined #ruby
[21:35:36] whathappen: Will the next version of ruby require semi colons after each line of code
[21:35:45] havenwood: whathappen: Please don't troll.
[21:36:06] PaulCapestany: has joined #ruby
[21:38:29] whippythellama: has joined #ruby
[21:39:51] eckhardt: has joined #ruby
[21:41:25] HoierM_: has joined #ruby
[21:52:25] Fysicus: has joined #ruby
[21:54:48] jphase: has joined #ruby
[21:57:41] mostlybadfly: has joined #ruby
[21:57:52] mim1k: has joined #ruby
[21:59:39] quobo: has joined #ruby
[22:00:03] learner123: If I pass parameters to methods, is it possible get the name of those parameters? For example, myvar = 12345 and calling mymethod (myvar) will print "myvar" instead of 12345.
[22:03:38] al2o3-cr: has joined #ruby
[22:04:54] Papierkorb: learner123: No
[22:05:35] ketan: has joined #ruby
[22:07:19] blackwind_123: has joined #ruby
[22:08:07] cam27: has joined #ruby
[22:10:09] enterprisey: has joined #ruby
[22:11:59] learner123: it's not possible, Papierkorb?
[22:12:06] learner123: Hard to believe!
[22:12:48] clemens3: u can look at caller and parse the file find the line that invoked you method etc., big hack, but could get something
[22:12:58] Papierkorb: learner123: No it's not. Variables only have names so you, the programmer, can access them in your code. The computer, after reading the source, couldn't call less.
[22:13:02] Papierkorb: *couldn't care
[22:13:03] jak: has joined #ruby
[22:13:22] whippythellama: has joined #ruby
[22:13:34] clemens3: there is local_variables, but you want the external one from the caller
[22:14:07] Papierkorb: Well of course, you can try hacking your way through. But those are: Hacks. Nothing that's "usually" possible, and in this case, not easy to do right.
[22:15:49] Cohedrin_: has joined #ruby
[22:16:28] clemens3: yes, what for do you need that?
[22:18:56] SeepingN: has joined #ruby
[22:20:04] learner123: Are you asking me, clements3?
[22:20:41] clemens3: yes, but not important, i guess was just some curiousity of yours
[22:22:22] learner123: myvar = 123 then somehow calling and making "mymethod myvar" print "myvar" = 123.
[22:23:05] learner123: mymethod() would have some way to print the parameter name and parameter value in it.
[22:23:40] ascarter: has joined #ruby
[22:24:29] learner123: a=1, b=2, c=3, d=4..... then printalpha(a, b, c, d) --> then printalpha method would print: a=1, b=2, c=3, d=4
[22:25:06] clemens3: i understand what you want, but why do you want that?
[22:25:22] clemens3: the idea is for the printalpha method to hide that information
[22:25:31] clemens3: of what happened outside
[22:25:55] clemens3: if you have def printalpha( a, b, c, d ) then you are closer already
[22:26:02] learner123: In reality for my task, each of those parameters is an array with a lot of values.
[22:26:21] learner123: So, I want the method to print the parameter name first and then a bunch of its values.
[22:26:56] clemens3: if you have def printalpha(p, q, r, s)
[22:27:11] clemens3: u want to print abcd or pqrs?
[22:27:15] learner123: Of course, I have a few actual processing steps to do before printing those things.
[22:27:22] learner123: (inside a method)
[22:27:48] clemens3: because what is the value? you could give an additional parameter with the abcd names if you cared for printout
[22:28:05] clemens3: then why not add another parameter with those names
[22:28:17] learner123: That's what I was trying to do with no success.
[22:28:45] Cohedrin_: has joined #ruby
[22:28:46] clemens3: but what is the service in printing out the variable names?
[22:28:53] learner123: [ "a", "b", "c", "d" ].each { |param| printalpha param, "#{param}" } didn't work.
[22:30:16] clemens3: you can do printalpha( [ "a", a, "b", b, "c", c, "d", d ] )
[22:30:26] clemens3: and you have all the information inside the method
[22:30:56] roshanavand: has joined #ruby
[22:30:59] learner123: service = I want to create files with the parameter names that are part of the filenames.... and each file would include values of each parameter.
[22:31:46] learner123: ah... let me try. Thanks, clements3!
[22:33:23] learner123: actually, I'm using an myarray.each { |myparam| printalpha myparam }.
[22:33:59] mim1k: has joined #ruby
[22:35:12] SeepingN: has joined #ruby
[22:35:15] al2o3-cr: >> def foo(x, y, z) local_variables.map { |lv| "#{lv} = #{binding.local_variable_get(lv)}" } end; foo(1,2,3)
[22:35:16] ruby[bot]: al2o3-cr: # => ["x = 1", "y = 2", "z = 3"] (https://eval.in/826855)
[22:35:28] learner123: where myarray = [ array1, array2, array3, array4 ]
[22:36:57] learner123: and I'm using the v2.0.0 on Mac.
[22:36:59] learner123: bash-3.2$ ruby --version ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
[22:38:25] clemens3: al2o3-cr: i understood you wanted: a=1; foo(a); and output "a=1" and not "x=1"?
[22:38:34] clemens3: you=learner
[22:38:35] learner123: I'm getting an error:
[22:38:36] learner123: ./test.rb:4:in `block in foo': undefined method `local_variable_get' for #<Binding:0x007fac6c87f8c8> (NoMethodError) from ./test.rb:4:in `map' from ./test.rb:4:in `foo' from ./test.rb:8:in `<main>'
[22:39:21] learner123: It's to al2o3-cr.
[22:39:47] learner123: clements3: Yep, that's what I'm trying to do.
[22:40:19] learner123: Although my parameter is an array of arrays.
[22:40:20] clemens3: but i dont understand the use case yet
[22:40:37] clemens3: this files and parameters business
[22:41:11] clemens3: because when you invoke the method, you have already the variable names there
[22:41:18] clemens3: then what is the problem
[22:41:23] clemens3: and what is it for
[22:41:35] clemens3: maybe u can solve main problem differently
[22:42:19] clemens3: learner, you can use al2o3's appraoch before invoking the sub method
[22:42:23] al2o3-cr: i'm tired and probably didn't read the backlog enough :(
[22:42:29] learner123: array1 = [ 1232, 2552, 23234, 34565634 ]; array2 = [ 12313, 235345, 346545, 456746 ]; array3 = [ 56656, 234324, 567676, 678785678 ]; myarray = [ array1, array2, array3, array4 ]; myarray.each { |myparam| mymethod myparam }
[22:43:21] clemens3: so then use mymethod( myparam, "myparam" )
[22:43:50] clemens3: and feed it with another myarraynames = [ "array1", "array2", array3..
[22:44:19] learner123: the 2nd parameter "myparam" as it is will be passed then not each of "array1", "array2", etc.
[22:44:31] clemens3: u can do it dynamicly with local_variables each like al2o3-cr did above
[22:44:50] clemens3: in you case use "array1"
[22:45:27] clemens3: and feed it with another myarraynames = [ "array1", "array2", "array3", "array4" ]
[22:46:16] clemens3: and use same index to pass one value from myarray and one from myarraynames to the method
[22:46:19] clemens3: with 2 parameters
[22:46:32] learner123: You're recommending me to use a hash instead?
[22:46:44] zenspider: learner123: what? why are you trying to do that?
[22:47:07] zenspider: did nobody even think to ask instead of just sending them down a rabbithole?
[22:47:09] whippythellama: has joined #ruby
[22:47:22] clemens3: was my question above first or second
[22:47:41] clemens3: i still dont know either
[22:47:46] zenspider: I must have missed it in the shitstorm
[22:47:55] zenspider: there it is. yeah. no answer...
[22:48:08] clemens3: something with files and parameters
[22:48:44] clemens3: maybe he wants to serialize something and could use yaml
[22:49:44] zenspider: learner123: whatever you're doing is a bad idea... what's going on?
[22:50:17] clemens3: myarray = [ [ array1, "array1" ], ...
[22:50:48] clemens3: and in the method you have myparam[ 0 ] with the variable value und myparam[ 1 ] with the name of the variable
[22:51:04] clemens3: instead of just myparam
[22:51:34] clemens3: but as zenspider said, we don
[22:53:09] learner123: #!/usr/bin/ruby def mymethod my_passed_parameter # how can I print: # array1 = [ 1, 2, 3, 4 ] # array2 = [ 5, 6, 7, 8 ] # array3 = [ 9, 10, 11, 12 ] end array1 = [ 1, 2, 3, 4 ] array2 = [ 5, 6, 7, 8 ] array3 = [ 9, 10, 11, 12 ] myarraynames = [ array1, array2, array3 ] myarraynames.each { |myparam| mymethod myparam }
[22:54:41] zenspider: learner123: don't do that
[22:54:45] learner123: I thought this would be very simple.
[22:54:54] clemens3: i guess it is some exercise from some class
[22:55:14] zenspider: don't paste a blob of crap in here. use a paste service. because it is polite
[22:55:23] learner123: Let me modify it to make it closer to what I'm trying to do.
[22:55:39] zenspider: and yes, you probably thought thit would be simple. it isn't. and it isn't a good idea for a number of reasons... but you should answer our questions first
[22:55:41] learner123: What's the paste service?
[22:56:02] learner123: OK, thanks. Let me check gist.
[22:56:18] clemens3: learner123: you think you tell us what you do, but actually you are thinking how to do something.
[22:56:20] pitoucc: has joined #ruby
[22:56:57] aglorei: has joined #ruby
[23:01:24] learner123: https://gist.github.com/anonymous/b16c504774c076f0ea7643e16a10a212
[23:01:41] learner123: Sorry for the cumbersome newbie code.
[23:02:28] learner123: But the above creates filenames "[1, 2, 3, 4]", "[5, 6, 7, 8]", etc.
[23:03:03] learner123: instead of filenames /tmp/array1, /tmp/array2, /tmp/array3.
[23:03:13] hkdsun: has joined #ruby
[23:04:37] dcunit3d: has joined #ruby
[23:06:46] clemens3: so the file name should be "array1" and the content of the file should be "[ 1, 2, 3, 4 ]"?
[23:06:56] clemens3: etc for 2, 3, 4 as well
[23:06:59] learner123: clements3: Yep, exactly.
[23:07:32] PaulCapestany: has joined #ruby
[23:07:37] learner123: Right now, what I get is /tmp/[1, 2, 3, 4] as the filename instead of /tmp/array1.
[23:09:48] johnny56_: has joined #ruby
[23:10:07] clemens3: def write( filename, content )
[23:10:08] learner123: I've googled various stack overflow sites, etc. and seen the use of .binding(), local_variable_get(), eval(), inspect(), etc. but with my ruby v2.0, some are not available and others just don't work for me.
[23:10:21] mim1k: has joined #ruby
[23:12:02] learner123: clements3: Hmm.... sorry but could you please show me a modified code using gist, if possible?
[23:12:42] clemens3: File.write( "tmp/array1", array1 )
[23:12:55] ablackack: has joined #ruby
[23:13:48] learner123: For one parameter, I could do that... how would I be able to do it when I had 10 parameters to pass.
[23:14:44] learner123: Tricky to me with myarraynames.each { |myparam| mymethod myparam }
[23:14:54] clemens3: [ [ "tmp/array1", array1 ], ["tmp/array2", array2 ] ]
[23:15:17] learner123: That is, to use hash, right?
[23:15:20] clemens3: and you iterate over the first array and use index 0 and 1 as parameters each
[23:15:51] learner123: an array of hash.
[23:16:06] singer22: has joined #ruby
[23:16:39] nmupwjl: has joined #ruby
[23:16:41] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: Meow-J eputnam ovaltine konsolebox claw ckrailo avir nuck eregon sniffer russt psychicist__ digitalfiz unreal larissa xzhao tatey dmnd slima deimos Danielss89 yorickpeterse maxmanders alveric2 foxxx0 abrahampolishchu bjmllr apeiros gregf_ chmuri DTZUZU MrBloo Archrover bazzy flips gnarf michael_mbp Jello_Raptor D9 klaas kent\n Morrolan bougyman bier mr_rich101 Hobbyboy pwillard blackwind_123 ste gusrub
[23:16:41] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: galeido michael_mbp ytti raatiniemi al2o3-cr gix nickjj zack6849 Travis-42 FifthWall Bish WhatsGoi` nadir jaredrhine Fenhl bauruine seitensei bw\_ guardian typeVoid chrisarcand ta_ x0f Morrolan dmnd zeroDivisible ryotarai Tempesta jak soahccc octomancer justache [dmp] Junaos coffeejunk Fysicus scottschecter lancetw adambeynon bier pwillard TheBrayn linduxed kiltzman Diabolik diegok herbmillerjr xzhao nikivi
[23:16:50] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: tfitts BackEndCoder dyjakan nishiki dminuoso petems rcs oblique Psy-Q swistak35_ ltp JustTheDoctor is_null veloutin jimeh_ bove `derpy nuck sonne TvL2386 hayden___ bayed jwheare [diecast] gf3 mostlybadfly Brak____________ diegok wkoszek_ Danielss89 tessi_zz savoir-faire silverdust joes jasondotstar bougyman sysanthrope cttttt genpaku Junaos sunya7a_ hkdsun vdl MissionCritical webhat mahlon dhollinger octoman
[23:16:51] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: Hobbyboy jolamb potatoe linduxed jwheare Fraeon nopacienc3 herwin wkoszek_ JoshL redondos graft jinie zeroDivisible SeepingN zzxc pizzaops DTZUZU chmuri VladGh vircung tolvstaa friday vqrs clemens3 Rush_ ckrailo SegFaultAX qmr duracrisis johnny56_ joast [dmp] FastJack ACE1503 dfoolz Ka baweaver _mak epochwolf mattp_ szulak infernix Scient kspencer staticfox mbr colstrom bier yokel
[23:16:53] clemens3: [ [ "tmp/array1", array1 ], ["tmp/array2", array2 ] ].each { |myparam| File.write( myparam[ 0 ], myparam[ 1 ] ) } # sorry folks for pasting
[23:17:01] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: freeze_ syndikate raspado nofxx jzigmund SpComb ste lxsameer WhatsGoi` Fire-Dragon-DoL webhat g3funk vqrs matthewd Yxhuvud MasterNayru_ dcunit3d Alina-malina MrBloo amitchellbullard jokke justinmrkva spectra statelesscode AKPWD jwheare jtperreault nickjj Rabbit_ jericon benjen watersoul LyndsySimon JStoker pskosinski ltd_ bayed iNs solidsnack inukshuk HoierM_ bove Tralin darthThorik mach_kernel blackwind_123
[23:17:01] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: P1ro graft blackwind_123 mjuhl qmr Diabolik Fenhl _2easy Cohedrin_ TheBrayn ahuman hplar radic ckrailo boshhead Jello_Raptor aglorei wbnns diegok patteh fumk pizzaops KramerC armyriad joast reinh1 sysanthrope Raboo jsrn nathani linduxed gusrub kaspergrubbe klaas clamstar vifino amitchellbullard Meow-J darthThorik chrisarcand uxp_ chamunks cam27 konsolebox jzigmund sebd vircung bayed dminuoso zenspider
[23:17:11] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: sorah___ jimeh_ latemus gremax chaos95 Kilo`byte havenwood boshhead gothicsouth hsiktas nebiros headius aredridel zzak klaas cydrobolt avelldiroll bier spectra drcode LBRapid mostlybadfly Subfusc scottschecter blackwind_123 ghoti Raboo bw\_ voxxit jericon brixen bazzy funnel Yxhuvud hinbody omninonsens Bish webhat darix raatiniemi jwheare TinkerTyper_ is_null stryek_ jpterry gregf_ heyimwill cout jrm guardia
[23:17:11] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: bhaak gil_ Dreamer3 tessi_zz BTRE unsymbol infernix nOwz ec\ DTZUZU cibs rt nowhere_man heinrich5991 duderonomy shaman42 velu_aon[m] sneakerhax aloy ionte_ spider-mario bjmllr jhass midacts jordanm Bish \13k A124 scrooloose chrisarcand pavelz brixen omninonsens ltd_ esObe ruby[bot] eputnam EvilJStoker jzigmund cevett DarthGandalf freeze_ jak jrmhurs102 RazorX andersh justinmrkva j0bk dyyylan SpComb
[23:17:20] Nilium: In dire need of a k-line here.
[23:17:21] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: bathtub_shark avir pavelz spheric eregon manveru my123 konsolebox spider-mario FastJack klaas Nicmavr gremax d^sh_ chrisarcand TinkerTyper_ funnel Bish bove Hien cyphase dikaio_ csk bodie_ tw1sted V1s1ble adambeynon Kilo`byte graft tsul avelldiroll adaedra zachary12 Rush_ brixen Rutix coffeejunk dlitvak segy Psy-Q Dreamer3 jcast SCHAPiE potatoe dyyylan Guest60457 minimalism cschneid raspado ste
[23:17:21] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: valkyr2e __main__ mjuhl zipkid zenguy_pc darix sonne agrecascino ur5us jrmhurs102 justache chamunks inukshuk balo elarson Emmanuel_Chanel Diabolik drcode Cohedrin_ Rush_ Travis-42 devyn jericon cardoni Nicmavr g3funk ACE1503 rikai SCHAPiE cjohnson sinduck minimalism Iacobus Hien z64 grymmjack Seenox clamstar oz rrichardsr3 greister voxxit kent\n ineb Rodya_ zapata pecan birdyondrugs dminuoso perry
[23:17:31] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: Evesy michael_mbp blackwind_123 jinie devyn jpterry bw\_ ericnw marlinc _mak Fenhl yosafbridge ineb flips marens BSaboia yitsushi ltd_ ElderFain Iacobus dlitvak sonne vayan patteh jzigmund RazorX Ishido Yonk digitalfiz ytti moei vedu __main__ uxp_ JustTheDoctor voxxit CustosLimen Guest54664 D9 ghormoon ggherdov Nilium abrahampolishchu benjen drcode knowtheory latemus cgfbee pabs jordanm
[23:17:31] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: sami Soulcutter jzigmund _br__ xMopxShell midacts SpComb _2easy z3uS mtkd VladGh bhaak spider-mario duderonomy mvensky Phanes hinbody inukshuk nikivi spectra ericnw leonthemisfit Iacobus rcs DarkBushido naprimer2 eputnam Rodya_ podman SirCmpwn Mekkis_ andersh foxxx0 joast JStoker cyphase Lloyd raatiniemi stan roger_rabbit TheMoonMaster jasondotstar shortdudey123 gigetoo Radar Junaos jtperreault unreal A124 J
[23:17:41] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: priodev daemonwrangler tsunamie aloy veloutin nOwz Hien Hobbyboy brixen SCHAPiE FifthWall discopatrick brainslug konsolebox cardoni rikai julian kent\n oblique kt2 kies colstrom dcluna foxxx0 rcs jrgifford iooner Emmanuel_Chanel SuperLag Fysicus vdl alem0lars BTRE sent-hil kapowaz p0p0pr37 jasondotstar ChewCraft llua Ishido gsingh93 BackEndCoder bier dcunit3d mclee singer22 duderonomy Jello_Raptor artmann_ b
[23:17:41] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: davic birdyondrugs alveric2 perry __main__ gsingh93 freedrull infernix kloeri Rabbit_ jtdowney jolamb HoierM_ oleo sniffer cydrobolt montanonic swgillespie soahccc aloy spectra fumk zapata nickjj lele kspencer iamayam dcunit3d Jamo sjums P1ro jxf cyphase Xiti shortdudey123 ec\ p0p0pr37 _mak daemonwrangler kapowaz EvilJStoker PaulCapestany sami Hien Ka gusrub wbnns rapha graft AnoHito_
[23:17:51] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: bougyman vifino elomatreb nadir jhill nicolai86 baweaver _br__ eputnam jasondotstar balo gusrub EvilJStoker aglorei dcunit3d gimmic j0bk elliottcable bodie_ saneax FifthWall gnarf cjk101010 diegok BSaboia freeze_ jrgifford tessi_zz HoierM_ reinh1 jcast Fire-Dragon-DoL dhollinger Klumben sneakerhax alveric2 marens ikopico Rabbit_ G tekacs dunk sebd arahael cam27 devyn connor_goodwolf headius clamstar psychici
[23:17:51] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: gremax aarongodin nOwz Rabbit_ Dreamer3 boshhead Ishido WhatsGoi` TvL2386 artmann_ cydrobolt Scient coffeejunk Subfusc spider-mario Jamo deimos sami Tempesta havenwood Hien j416 jimeh_ zachary12 zipkid jrmhurs102 discopatrick aspiers klaas veloutin el_ocho[m] rileyy Danielss89 darthThorik al2o3-cr drcode segy ltp CVTJNII freeze_ sspreitz Gnubie__ hayden___ genpaku nopacienc3 octomancer michael_mbp AKPWD pfg
[23:18:00] kline: has joined #ruby
[23:18:01] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: vifino hkdsun mesamoo vayan Meow-J yosafbridge csk Seenox ericmath1son twe4ked manveru webnanners j416 Lyubo1 diegok Koshian hayden___ RealMarc aurelien alveric2 gregf_ omninonsens varesa jhass ryotarai KramerC Cohedrin_ AlHafoudh kies tfitts Iacobus BackEndCoder jrgifford solidsnack aarongodin pecan hsiktas Junaos majuscule nug Scient ACE1503 sinduck JStoker kapowaz drcode sneakerhax perry abrahampolishchu
[23:18:01] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: cydrobolt [diecast] pecan Seenox Caius CVTJNII TheBrayn MarkBilk mjuhl sorah___ Diabolik s1kx jak diegok alveric2 scrooloose sysanthrope Brak____________ pelegreno_____ flips typeVoid bayed darix go|dfish gse_ aspiers ruby[bot] SeepingN pragmatism arahael majuscule mtkd cardoni cam27 HoierM_ CustosLimen crayfishx watersoul Ticky reinh1 adaedra gremax reaVer stryek_ krasnus armyriad veloutin jrmhurs102 elomat
[23:18:02] patarr: has joined #ruby
[23:18:08] dlitvak: can we ban this dude?
[23:18:11] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: infernix bigkevmcd jak fumk Meow-J ltd_ Psy-Q greister qmr mr_rich101 majuscule gimmic pragmatism brixen hplar Evesy avelldiroll hkdsun benjen moei Nicmavr zipkid typeVoid krasnus psychicist__ gix zzak nathani darthThorik freedrull `derpy shaman42 vdl sorah___ nchambers spheric tfitts ChewCraft Ticky jimeh_ AnoHito_ FifthWall crayfishx ruby[bot] p0p0pr37 TinkerTyper_ Hien iooner avir am55
[23:18:11] nmupwjl: HAPPY NIGGERS DAY!! quicktalkeh676te.onion/6697: clemens3 jolamb nfsnobody- CustosLimen gimmic julian nchambers Mekkis_ Meow-J jasondotstar nirix vqrs D9 herbmillerjr jxf bathtub_shark dcunit3d Tralin stan s1kx BSaboia postmodern shaman42 syndikate gil_ Ka potatoe freedrull pizzaops xsdg nebben DaveTaboola arahael headius jinie arvindsa- kt2 Caius arthu nekomune petems BTRE FastJack balo sspreitz Morrolan testnick[m] AnoHito_ RazorX yeticry_
[23:18:12] Nilium: Thanks, kline.
[23:18:36] Rodya_: they were just doing the same i ##networking
[23:18:50] Nilium: Yeah, they're hitting the populated channels
[23:19:11] Nilium: Anyway, back to ruby
[23:19:20] Nilium: Or watching, anyway
[23:19:30] PaulCapestany: has joined #ruby
[23:19:46] Nilium: ACTION hadn't written any production ruby in about a year and a half until recently
[23:20:13] im0nde: has joined #ruby
[23:21:29] zenspider: shit. sorry I missed that
[23:22:36] whippythellama: has joined #ruby
[23:23:10] learner123: https://gist.github.com/anonymous/10a011ebf856ca882b27b81af2e606ad
[23:23:24] learner123: https://gist.github.com/anonymous/10a011ebf856ca882b27b81af2e606ad
[23:24:42] clemens3: learner123: yes, looks good:)
[23:24:51] alveric3: has joined #ruby
[23:25:22] kline: has left #ruby: ("*.banana *.split")
[23:25:42] cadillac_: has joined #ruby
[23:27:22] cyphase: has joined #ruby
[23:32:45] NeutronStarr: has joined #ruby
[23:33:17] br0d1n: has joined #ruby
[23:46:34] mim1k: has joined #ruby
[23:47:39] hutch34: has joined #ruby
[23:48:56] johnny56: has joined #ruby
[23:50:03] Cohedrin_: has joined #ruby
[23:52:43] cschneid_: has joined #ruby
[23:58:49] whippythellama: has joined #ruby
[23:59:04] micalexander: has joined #ruby