« Back to channel list

#ruby - 12 September 2015

« Back 1 day Forward 1 day »
[00:02:26] ngscheurich: has joined #ruby
[00:02:33] Yzguy: has joined #ruby
[00:05:44] shadeslayer: has joined #ruby
[00:05:55] nahtnam: has joined #ruby
[00:07:38] leat2: has joined #ruby
[00:07:39] rakm: has joined #ruby
[00:09:22] khebbie: has joined #ruby
[00:09:30] dgutierrez1287: has joined #ruby
[00:12:17] stardiviner: has joined #ruby
[00:13:32] jdawgaz: has joined #ruby
[00:16:14] poli: has joined #ruby
[00:17:51] GarethAdams: has joined #ruby
[00:18:50] weemsledeux: has joined #ruby
[00:22:04] jgpawletko: has joined #ruby
[00:22:56] senayar: has joined #ruby
[00:22:56] senayar: has joined #ruby
[00:26:07] luckyme: has joined #ruby
[00:29:03] tkuchiki: has joined #ruby
[00:32:14] robbyoconnor: has joined #ruby
[00:32:28] michael_mbp: has joined #ruby
[00:35:09] arescorpio: has joined #ruby
[00:46:20] karapetyan: has joined #ruby
[00:46:36] rbowlby: has joined #ruby
[00:53:16] dopamean_: has joined #ruby
[00:53:56] keen__________18: has joined #ruby
[00:54:35] roxtrongo: has joined #ruby
[00:57:20] baweaver: has joined #ruby
[01:01:02] deject3d: has joined #ruby
[01:05:14] bootstrappm: has left #ruby: ()
[01:07:56] NeverDie: has joined #ruby
[01:08:56] havenwood: has joined #ruby
[01:10:29] rbennacer: has joined #ruby
[01:13:30] chouhoulis: has joined #ruby
[01:15:43] ellisTAA: has joined #ruby
[01:18:22] bkxd: has joined #ruby
[01:18:53] Yzguy: has joined #ruby
[01:19:33] spence6245_: has joined #ruby
[01:22:38] charliesome: has joined #ruby
[01:30:30] nofxx: so here where every monster, spaceship, big bosses come from http://mathworld.wolfram.com/PascalsTriangle.html
[01:31:18] freerobby: has joined #ruby
[01:31:28] deject3d: but what about E.T
[01:31:37] charliesome: has joined #ruby
[01:32:50] texasmade: has joined #ruby
[01:33:21] skade: has joined #ruby
[01:38:33] texasmade: has left #ruby: ()
[01:44:28] Pupeno: has joined #ruby
[01:44:44] chills42: has joined #ruby
[01:45:12] juanpablo_: has joined #ruby
[01:45:38] sampai: has joined #ruby
[01:50:07] devbug: has joined #ruby
[01:58:27] ellisTAA: has joined #ruby
[01:59:56] d5sx43: has joined #ruby
[02:03:53] charliesome: has joined #ruby
[02:11:11] khebbie: has joined #ruby
[02:16:14] dotix: has joined #ruby
[02:16:30] pontiki: has joined #ruby
[02:20:28] michael_mbp: has joined #ruby
[02:23:54] r0bby_: has joined #ruby
[02:26:23] d5sx43: has joined #ruby
[02:31:27] xcesariox: has joined #ruby
[02:32:02] gambl0re: has joined #ruby
[02:33:43] ruby-lang201: has joined #ruby
[02:35:04] dopie: has joined #ruby
[02:36:26] dgutierrez1287: has joined #ruby
[02:39:51] krz: has joined #ruby
[02:42:04] zenguy_pc: has joined #ruby
[02:42:11] djbkd: has joined #ruby
[02:42:50] karmatr0n: has joined #ruby
[02:46:22] tkuchiki: has joined #ruby
[02:48:13] rbowlby: has joined #ruby
[02:49:46] wldcordeiro: has joined #ruby
[02:53:17] failshell: has joined #ruby
[02:54:17] wldcordeiro: has joined #ruby
[02:55:01] chipotle: has joined #ruby
[02:56:36] NeverDie: has joined #ruby
[02:58:10] BTRE: has joined #ruby
[03:00:43] gener1c: has joined #ruby
[03:00:50] banjara: has joined #ruby
[03:02:52] jenrzzz: has joined #ruby
[03:09:17] tejasmanohar: has joined #ruby
[03:12:41] khebbie: has joined #ruby
[03:12:44] braincrash: has joined #ruby
[03:15:33] paulcsmith: has joined #ruby
[03:19:14] michaeldeol: has joined #ruby
[03:21:24] zenguy_pc: has joined #ruby
[03:22:06] UtkarshRay: has joined #ruby
[03:22:27] wldcordeiro: has joined #ruby
[03:29:57] rakm: has joined #ruby
[03:33:07] dravine: has joined #ruby
[03:33:23] siemprefresco: has joined #ruby
[03:33:56] juanpablo_: has joined #ruby
[03:35:49] face: has joined #ruby
[03:40:24] grenierm: has joined #ruby
[03:41:03] nettoweb: has joined #ruby
[03:42:11] [k-: has joined #ruby
[03:42:46] armyriad: has joined #ruby
[03:44:01] devoldmx: has joined #ruby
[03:46:44] karapetyan: has joined #ruby
[03:47:21] gix: has joined #ruby
[03:48:08] chrishough: has joined #ruby
[03:50:32] Lildirt: has joined #ruby
[03:51:42] taylorrf: has joined #ruby
[03:53:13] The_Phoenix: has joined #ruby
[03:55:46] dravine: has joined #ruby
[03:56:29] decoponio: has joined #ruby
[03:56:45] ledestin: has joined #ruby
[03:58:07] mary5030: has joined #ruby
[04:01:39] devoldmx: has joined #ruby
[04:03:53] solocshaw: has joined #ruby
[04:06:25] chipotle_: has joined #ruby
[04:11:01] shmilan: has joined #ruby
[04:11:29] michael_mbp: has joined #ruby
[04:11:43] roxtrongo: has joined #ruby
[04:14:12] darkf: has joined #ruby
[04:15:30] deject3d_: has joined #ruby
[04:16:06] rezzack: has joined #ruby
[04:18:30] tkuchiki: has joined #ruby
[04:20:43] mary5030: has joined #ruby
[04:21:45] shmilan: has joined #ruby
[04:24:32] nanoz: has joined #ruby
[04:24:37] rehat: has joined #ruby
[04:27:06] ledestin: has joined #ruby
[04:27:35] AccordsLTN: has joined #ruby
[04:28:58] baweaver: has joined #ruby
[04:29:30] michael_mbp: has joined #ruby
[04:32:09] rezzack1: has joined #ruby
[04:36:49] grenierm: has joined #ruby
[04:41:04] mooe: has joined #ruby
[04:43:16] wldcordeiro: has joined #ruby
[04:45:43] ramfjord: has joined #ruby
[04:48:26] AccordLTN: has joined #ruby
[04:51:31] Azure|dc: has joined #ruby
[04:52:24] spaced_out: has joined #ruby
[04:53:05] spaced_out: why is that I cant do "spaced out".chomp("\s") and get back "spaced"?
[04:54:02] charliesome: has joined #ruby
[04:56:56] jordanm: spaced_out: chomp removes from the end of a line
[04:57:46] zenguy_pc: has joined #ruby
[04:57:47] spaced_out: how can I do what im trying to do?
[04:58:01] spaced_out: I want to find a space character and just drop the rest of a string
[04:58:47] jordanm: spaced_out: you could do "spaced out".split()[0]
[04:59:12] charliesome: has joined #ruby
[04:59:39] gizmore: has joined #ruby
[04:59:48] jordanm: spaced_out: or more ugly and less efficient: "spaced out".gsub(/\s.*/, "")
[04:59:57] spaced_out: the first I think is better
[05:00:52] baweaver: jordanm: parens are not necessary
[05:02:06] wldcordeiro: has joined #ruby
[05:03:24] dgutierrez1287: has joined #ruby
[05:03:59] deject3d: has joined #ruby
[05:04:43] zenguy_pc: has joined #ruby
[05:04:51] spaced_out: yeah but .split[0] is confusing to look at
[05:06:23] Rollabunna: has joined #ruby
[05:07:01] baweaver: >> 'spaced out'.split.first
[05:07:02] ruboto: baweaver # => "spaced" (https://eval.in/432075)
[05:09:16] spaced_out: thats pretty too
[05:09:17] charliesome: has joined #ruby
[05:09:26] spaced_out: also i present my latest and greatest shitpost: https://gist.github.com/logicrime/f800c55fc799b301fef5
[05:10:11] charliesome: has joined #ruby
[05:10:17] DmitryBochkarev: has joined #ruby
[05:10:23] spaced_out: im sure someone will golf me and put the 64 bytes version in here
[05:11:06] wldcordeiro: has joined #ruby
[05:11:57] baweaver: https://gist.github.com/logicrime/f800c55fc799b301fef5#gistcomment-1571860
[05:12:45] spaced_out: i used to think 'why bother?' but now i think that if i write enough shit that maybe itll get better
[05:13:13] charliesome: has joined #ruby
[05:14:32] khebbie: has joined #ruby
[05:15:15] baweaver: also remember suffix conditionals
[05:15:24] baweaver: value if condition
[05:16:29] juanpablo_: has joined #ruby
[05:17:23] spaced_out: yeah rubocop is always yelling at me for that
[05:20:03] chrishough: has joined #ruby
[05:22:21] arup_r: has joined #ruby
[05:23:29] claw: has joined #ruby
[05:25:28] acke: has joined #ruby
[05:26:08] craysiii: has joined #ruby
[05:28:07] karmatr0n: has joined #ruby
[05:28:16] sp4rrow: has joined #ruby
[05:29:19] devoldmx: has joined #ruby
[05:31:17] mary5030: has joined #ruby
[05:35:15] devoldmx: has joined #ruby
[05:37:11] Guest: has joined #ruby
[05:38:27] casadei_: has joined #ruby
[05:39:03] Guest: has joined #ruby
[05:40:25] Guest: has joined #ruby
[05:41:20] wldcordeiro: has joined #ruby
[05:48:54] demonlove: has joined #ruby
[05:49:43] alphaatom: has joined #ruby
[05:51:27] rippa: has joined #ruby
[05:51:54] acke_: has joined #ruby
[05:52:58] wldcordeiro: has joined #ruby
[05:53:37] dionysus69: has joined #ruby
[05:56:20] techietrash: has joined #ruby
[05:58:04] workmad3: has joined #ruby
[06:08:42] vdamewood: has joined #ruby
[06:08:55] wldcordeiro: has joined #ruby
[06:12:38] minotep: has joined #ruby
[06:13:20] wldcordeiro: has joined #ruby
[06:13:42] karapetyan: has joined #ruby
[06:17:18] charliesome: has joined #ruby
[06:17:48] wldcordeiro: has joined #ruby
[06:19:53] weemsledeux: has joined #ruby
[06:20:38] lokulin: has joined #ruby
[06:21:10] howdoi: has joined #ruby
[06:21:49] nanoz: print 'What is your name?'!
[06:21:59] nanoz: gives error
[06:22:59] wldcordeiro: has joined #ruby
[06:23:14] zenguy_pc: has joined #ruby
[06:23:52] Oog: has joined #ruby
[06:25:40] Oog: has joined #ruby
[06:25:51] dEPy: has joined #ruby
[06:29:10] Musashi007: has joined #ruby
[06:31:18] mleung: has joined #ruby
[06:32:25] mistermocha: has joined #ruby
[06:34:47] wldcordeiro: has joined #ruby
[06:36:29] Mia: has joined #ruby
[06:36:29] Mia: has joined #ruby
[06:37:48] houhoulis: has joined #ruby
[06:46:48] Musashi007: has joined #ruby
[06:46:59] wldcordeiro: has joined #ruby
[06:47:21] eGGsha: has joined #ruby
[06:48:50] jenrzzz: has joined #ruby
[06:49:36] mleung: has joined #ruby
[06:51:44] tkuchiki: has joined #ruby
[06:51:55] wldcordeiro: has joined #ruby
[06:53:26] cvtsx: has joined #ruby
[06:53:47] karmatr0n: has joined #ruby
[06:58:23] zenguy_pc: has joined #ruby
[06:59:30] shevy: is rubocop able to "autocorrect" code for speed-performance gain?
[06:59:36] Musashi007: has joined #ruby
[06:59:49] alphaatom: has joined #ruby
[06:59:57] CloCkWeRX: has joined #ruby
[07:01:25] wldcordeiro: has joined #ruby
[07:01:27] alphaatom: has joined #ruby
[07:05:15] juanpablo_: has joined #ruby
[07:05:57] wldcordeiro: has joined #ruby
[07:06:28] nhhagen: has joined #ruby
[07:08:33] pontiki: has joined #ruby
[07:09:38] casadei_: has joined #ruby
[07:09:53] bkxd: has joined #ruby
[07:10:48] acke: has joined #ruby
[07:11:03] KnownSyntax: has joined #ruby
[07:13:51] Zai00: has joined #ruby
[07:14:56] chris2: has joined #ruby
[07:16:16] khebbie: has joined #ruby
[07:17:24] mleung: has joined #ruby
[07:19:55] acke_: has joined #ruby
[07:20:13] karmatr0n: has joined #ruby
[07:21:56] leat2: has joined #ruby
[07:26:49] Musashi007: has joined #ruby
[07:27:04] nofxx: shevy, I think some yes. There's also fasterer (or something like it), like a rubocop focused on speed
[07:27:41] nofxx: so many lints now days Im creating a bin/lint in the project to use all
[07:27:42] senayar: has joined #ruby
[07:27:57] nofxx: rubocop, js forgot, fasterer, brakeman, reek
[07:28:07] shevy: fasterer?
[07:28:09] chouhoulis: has joined #ruby
[07:28:12] shevy: how about "fasterest" :D
[07:28:20] jenrzzz: has joined #ruby
[07:28:27] shevy: well I know one default replacement is
[07:28:33] shevy: "foobar" to 'foobar'
[07:28:42] shevy: I was thinking that rubocop could perhaps also replace something like:
[07:29:00] shevy: x = 'foo' y = x+'bar' to y = "#{x}bar"
[07:29:02] nofxx: https://github.com/DamirSvrtan/fasterer
[07:29:07] baweaver: has joined #ruby
[07:29:35] fella6s: has joined #ruby
[07:30:27] DLSteve: has joined #ruby
[07:35:36] rezzack: has joined #ruby
[07:37:13] SCHAAP137: has joined #ruby
[07:38:55] bkxd_: has joined #ruby
[07:39:34] firoxer: has joined #ruby
[07:39:51] EXID123: has joined #ruby
[07:40:14] EXID123: has joined #ruby
[07:43:31] EXID123: has joined #ruby
[07:44:05] last_staff: has joined #ruby
[07:50:05] darkhex: has joined #ruby
[07:50:44] nhhagen: has joined #ruby
[07:51:23] firstdayonthejob: has joined #ruby
[07:53:03] tkuchiki: has joined #ruby
[07:55:47] fxn: has joined #ruby
[08:00:25] mikecmpbll: has joined #ruby
[08:01:39] skinkitten: has joined #ruby
[08:01:48] yfeldblum: has joined #ruby
[08:05:58] Alina-malina: has joined #ruby
[08:06:10] ht__: has joined #ruby
[08:06:27] Zai00: has joined #ruby
[08:08:24] karmatr0n: has joined #ruby
[08:11:41] nux443: has joined #ruby
[08:12:35] Gnomethrower: has joined #ruby
[08:12:58] nanoz: is string interpolation is same as variable substitution ?
[08:13:02] Gnomethrower: has joined #ruby
[08:13:03] karmatr0n: has joined #ruby
[08:14:00] VictorBjelkholm: has joined #ruby
[08:14:34] djbkd: has joined #ruby
[08:14:37] bkxd: has joined #ruby
[08:15:19] howdoicomputer: has joined #ruby
[08:16:38] [k-: has joined #ruby
[08:17:25] firstdayonthejob: has joined #ruby
[08:17:30] faces: has joined #ruby
[08:18:29] karmatr0_: has joined #ruby
[08:21:42] rezzack1: has joined #ruby
[08:23:10] shevy: guess the two terms would be synonymous
[08:23:22] shevy: or perhaps variable substitution is the major part of string interpolation
[08:24:30] Zai00: has joined #ruby
[08:25:40] jhass: nanoz: no, string interpolation can take practically any ruby expression
[08:26:33] jhass: >> "The value of a class expression is the last expression of its body: #{class Foo; :foo_class; end}"
[08:26:34] ruboto: jhass # => "The value of a class expression is the last expression of its body: foo_class" (https://eval.in/432096)
[08:27:37] jhass: >> "I guess you can call this one %s" % "variable substitution"
[08:27:38] ruboto: jhass # => "I guess you can call this one variable substitution" (https://eval.in/432097)
[08:27:46] acke: has joined #ruby
[08:28:40] Averna: has joined #ruby
[08:28:59] chouhoulis: has joined #ruby
[08:30:21] dionysus69: has joined #ruby
[08:30:24] roxtrongo: has joined #ruby
[08:37:57] nanoz: jhass what about first_name=get.chomp;print "Hello "+first_name ?
[08:38:26] jhass: that's called "string "+concatenation and "string #{interpolation" is to prefer
[08:38:27] apeiros: that'd be string concatenation, no substitution happens
[08:39:56] nhhagen: has joined #ruby
[08:40:15] karapetyan: has joined #ruby
[08:40:32] Rutix: has joined #ruby
[08:40:32] Rutix: has joined #ruby
[08:40:41] karapetyan: has joined #ruby
[08:40:59] timonv: has joined #ruby
[08:42:27] firstdayonthejob: has joined #ruby
[08:42:32] Jackneill: has joined #ruby
[08:45:22] DLSteve: has joined #ruby
[08:45:43] pabs: has joined #ruby
[08:50:19] VictorBjelkholm: has joined #ruby
[08:51:14] EXID123: has joined #ruby
[08:53:56] platzhirsch: has joined #ruby
[08:53:59] juanpablo_: has joined #ruby
[08:54:41] charliesome: has joined #ruby
[08:56:15] shevy: finished k
[08:58:17] casadei_: has joined #ruby
[09:00:56] VictorBjelkholm: has joined #ruby
[09:01:50] shevy: we have a new bot here
[09:02:02] shevy: it's always asking yes
[09:02:24] tkuchiki: has joined #ruby
[09:02:47] firstdayonthejob: has joined #ruby
[09:03:59] DmitryBochkarev: has joined #ruby
[09:04:37] ELCALOR: hi ya, i want to split integers by 3, in a way that 9 becomes [3, 3, 3], 10 becomes [3, 3, 4] and 11 becomes [4, 4, 3]. anyone knows how i would do this?
[09:05:01] [k-: i've got 9 million 9 hundred 99 thousand 9 hundred 99 tears to go
[09:05:48] [k-: why is 11 [4,4,3]?
[09:06:27] yardenbar: has joined #ruby
[09:08:00] [k-: ELCALOR ^
[09:08:08] shevy: mystery math!
[09:08:13] [k-: i always get ignored :'(
[09:08:19] shevy: it's your strange nick
[09:08:50] pontiki: has joined #ruby
[09:08:56] [k-: i dont think when a stranger approaches you out from a crowd, you'd look away and not listen
[09:09:10] shevy: ACTION turns his back on [k- 
[09:09:19] [k-: especially when s(h)e is talking about something relevant
[09:09:40] [k-: how do you not know s(h)e is talking to you?
[09:10:08] charliesome: has joined #ruby
[09:10:10] shevy: dunno, ELCALOR seems very quiet
[09:10:23] leafybasil: has joined #ruby
[09:10:47] shevy: ELCALOR a primitive way would be to use .step and gather the results
[09:11:04] [k-: !op(s) my feelings are hurt
[09:11:38] [k-: shevy: but he's results conflict
[09:11:53] [k-: s/he's/his
[09:12:02] shevy: yeah, the last part is weird
[09:12:15] shevy: but probably he calculcated it incorrectly in his mind, ruby will yield the proper results!
[09:12:25] shevy: [3,3,3,2]
[09:12:56] leat2: has joined #ruby
[09:13:43] apeiros: if it'd be consistent (i.e. either 10 -> [4,3,3], 11 -> [4,4,3] OR 10 -> [3,3,4], 11 -> [3,4,4]) it'd be easy. but like this?
[09:13:53] apeiros: ACTION too waits for ELCALOR to clear up the inconsistency
[09:14:46] [k-: why not 10 -> 3,3,3,1?
[09:15:02] apeiros: because that'd be 4 values
[09:15:23] [k-: ah, thats what he meant
[09:15:50] apeiros: and I'd assume (by the pattern) that 10 split 4 -> [2,2,3,3] or [3,3,2,2]
[09:16:06] shevy: we are better than sherlock holmes here
[09:16:16] apeiros: I've actually implemented such a code in a production app
[09:16:20] EXID123: has joined #ruby
[09:17:35] [k-: for ui?
[09:18:05] khebbie: has joined #ruby
[09:18:58] leitz: has joined #ruby
[09:19:29] apeiros: no, for an API call
[09:19:41] apeiros: the UI allows you to specify how much money you want to invest into a fund
[09:19:54] apeiros: but the API wants the funds in percentages, the sum of all percentages being 100
[09:20:12] apeiros: so what do you do when the user specifies 3 funds, and wants to invest 10K in each?
[09:20:13] leitz: If you're writing a program that uses data in files as a part of it's start up, is there a convention to put those files in a particular directory?
[09:20:50] apeiros: leitz: GEMDIR/data/GEMNAME/
[09:21:09] mprelude: has joined #ruby
[09:21:12] apeiros: Gem.datadir(GEMNAME) gives you the path to that dir, no matter where it gets installed to
[09:21:17] Pupeno: has joined #ruby
[09:21:17] Pupeno: has joined #ruby
[09:21:37] leitz: apeiros, thanks!
[09:22:00] apeiros: I usually allow the path to be overridden by an env var
[09:22:20] apeiros: i.e. ENV["GEMNAME_DATA_DIR"] || Gem.datadir(GEMNAME)
[09:22:41] charliesome: has joined #ruby
[09:23:50] leat2: has joined #ruby
[09:24:03] leitz: I haven't even gotten it to a gem state yet.. Still learning a lot.
[09:24:46] ELCALOR: sorry, didn't get any notice of highlights here
[09:25:58] ELCALOR: apeiros: yeah, that's fine too
[09:26:02] ELCALOR: sorry [k- ;-(
[09:26:21] apeiros: ELCALOR: well, can you show some code/approaches you tried?
[09:27:08] ELCALOR: i first tried to do it with divmod, but didn't work
[09:27:16] apeiros: divmod is in my solution
[09:27:24] ELCALOR: oh really?
[09:27:31] apeiros: yeah. one of two lines :)
[09:28:01] apeiros: >> def split(num, div); v,r = num.divmod(div); Array.new(div-r,v)+Array.new(r,v+1); end; split 11, 3
[09:28:02] ruboto: apeiros # => [3, 4, 4] (https://eval.in/432099)
[09:29:18] senayar: has joined #ruby
[09:29:29] shevy: apeiros holds ruby wisdom in his brain
[09:29:36] jgt: has joined #ruby
[09:30:25] chouhoulis: has joined #ruby
[09:30:28] monod: has joined #ruby
[09:32:37] marr: has joined #ruby
[09:33:38] apeiros: should be q, not v :-(
[09:36:03] morenoh149: has joined #ruby
[09:36:04] ELCALOR: after reading a few times through your function, i'm finally getting it :P
[09:36:12] ELCALOR: (i reformatted it too)
[09:36:28] apeiros: sure, you should. it's supposed to be 4 lines.
[09:36:40] jhass: try giving full names to the single letter vars too
[09:36:41] apeiros: we use ; instead of newlines in irc to fit it on one line (it works the same with ;)
[09:39:59] apeiros: ruboto time!
[09:40:51] [k-: ruboto.jump!
[09:40:59] ledestin: has joined #ruby
[09:41:05] pegasuspect: has joined #ruby
[09:42:25] apeiros: more like ruboto.plugins[:channel_moderation].spam("[k-") ;-p
[09:43:10] apeiros: channel moderation is the last plugin to finish in order to switch ruboto to the new foundation.
[09:43:44] leafybasil: has joined #ruby
[09:45:40] apeiros: now if only I remembered where I put those db queries :-(
[09:47:21] shevy: the resurrection of butler! \o/
[09:47:28] wildlander: has joined #ruby
[09:49:43] osmansekerlen: has joined #ruby
[09:50:44] Pupeno: has joined #ruby
[09:50:44] Pupeno: has joined #ruby
[09:53:51] VictorBjelkholm: has joined #ruby
[09:56:38] CorpusCallosum: has joined #ruby
[09:57:32] fantazo: has joined #ruby
[09:58:48] acke: has joined #ruby
[10:00:37] demonlove: has joined #ruby
[10:01:53] VictorBjelkholm: has joined #ruby
[10:02:03] FernandoBasso: has joined #ruby
[10:03:21] leitz: If you have a collection of data points on a "thing", but no methods that really do anything with those points, is an Openstruct better than a class?
[10:04:06] apeiros: what value would openstruct give you over a class?
[10:04:12] apeiros: what value would a class give you over openstruct?
[10:04:23] shevy: method accessors :)
[10:04:37] howdoicomputer: has joined #ruby
[10:04:43] shevy: for some reason though, I almost always end up defining a custom class instead
[10:04:57] apeiros: aka "define better"
[10:05:01] ironcamel: has joined #ruby
[10:05:16] leitz: Mentally meandering. I have a group of those "things" and the data needs to be printed in different formats. It seemed like the format definition (txt, wiki, html) would not be directly associated with the data/class, but in a calling thing.
[10:06:27] acke_: has joined #ruby
[10:06:28] leitz: Here's a json collection of data. I'll need to be able to print it out in various formats, and possible remunge it to SQL or something.
[10:06:31] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/data/vehicles.json
[10:07:52] leitz: Except for "control the output", a struct seems cleaner and less code. If the class had the data, and the output methods, it would gorw organically and perhaps oddly.
[10:08:53] stamina: has joined #ruby
[10:08:54] leitz: On use of that file is that another "thing" will be a military unit that is assigned a vehicle. Outputting that will be different than just the vehicle itself.
[10:10:07] leitz: The flip side is tha anything calling that data has to know about it.
[10:11:18] acke: has joined #ruby
[10:11:25] leitz: There will be another, similar, dataset for weapons. A person might have a weapon or three, and a unit might have one. And a vehicle.
[10:11:45] shevy: "Why Rust - Trustworthy, ConcurrentSystems Programming"
[10:12:13] shevy: I wonder why lately the en vogue move is to have "systems programming". Did the prior languages fail at systems programming?
[10:12:43] leitz: Systems are the new thing as we devolve to the IoT, containers, etc.
[10:12:58] Rurik: has joined #ruby
[10:13:21] shevy: dunno... a lot of it sounds like assigning new names to old(er) ideas and concepts
[10:13:49] Rurik: has joined #ruby
[10:14:17] leitz: Yup. Go is a systems programming language. It can do lots of things, but it's targeted at maybe one level closer to the metal.
[10:14:44] leitz: Ruby is an application programming language; if I have Ruby, pretty much anything underneath is irrelevant.
[10:14:46] shevy: leitz in regards to your question, I'd probably just use a custom class anyway. A struct may have less code but usually, what is the main difference: accessors, as in def foo; @foo; def foo=(i); @foo = i, for all available datapoints (this is usually a hash isn't it?)
[10:15:21] VictorBjelkholm: has joined #ruby
[10:16:03] shevy: I use one class Configuration for yaml-based configuration; one internal hash keeps track of what config options are available, then in code I can do something such as: if @configuration.use_readline (or .use_readline?), to enable readline support etc...
[10:17:16] leitz: Application performance isn't a real need for the app, but i'm trying to learn clean coding as I go.
[10:17:32] leitz: Of course, my OOP skills are weak. :)
[10:17:40] Rurik: has joined #ruby
[10:18:30] drptbl: has joined #ruby
[10:20:05] Coldblackice: has joined #ruby
[10:22:06] bruno-: has joined #ruby
[10:22:48] pandaant: has joined #ruby
[10:23:41] leat2: has joined #ruby
[10:25:07] [k-: functional!
[10:26:17] Rurik: has joined #ruby
[10:26:17] Rurik: has joined #ruby
[10:26:54] beast: has joined #ruby
[10:29:07] firstdayonthejob: has joined #ruby
[10:30:26] leitz: Well, a hash beats an openstruct. The former has a "has_key?" method that openstruct doesn't.
[10:31:10] chouhoulis: has joined #ruby
[10:31:34] shevy: I think you can modify your openstruct object to also include this method
[10:31:47] symm-: has joined #ruby
[10:32:08] apeiros: openstruct has respond_to? ;-p
[10:33:25] leitz: Interesting, apeiros. I didn't see respond_to/ in the docs page.
[10:33:33] apeiros: Object#respond_to?
[10:33:36] leitz: It does work, though. :)
[10:33:41] apeiros: it's something all objects have???
[10:33:46] leitz: Ah, got it.
[10:33:57] leat2: has joined #ruby
[10:34:02] shevy: anyone knows if there is a trivial way for ruby-ftp to query what commands a remote server responds to? In particular, whether the server understands MLST
[10:35:02] user1138: has joined #ruby
[10:35:31] coffeecupp__: has joined #ruby
[10:35:50] solocshaw: has joined #ruby
[10:36:12] tkuchiki: has joined #ruby
[10:36:15] dionysus69: has joined #ruby
[10:37:38] dgs: has joined #ruby
[10:38:09] gizmore: has joined #ruby
[10:38:28] ironcamel: has joined #ruby
[10:40:00] leitz: Is there a typical name for a collection of functions that go into a library file? Sometime to include in a lot of the other bits, like a method that checks for valid json.
[10:40:00] Averna: has joined #ruby
[10:40:15] [k-: module?
[10:40:28] [k-: helper functions?
[10:40:59] adaedra: what's a "library file"
[10:42:43] leitz: Lines 20-27 have a method to check for valid json. It's in a particular file because that's what I was working on when I found the solution on sourceforge.
[10:42:44] juanpablo_: has joined #ruby
[10:42:46] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/bin/vehicle.rb
[10:43:17] leitz: it should go into another file that I can include, since several of the things I'm writing in this project need to check for valid json.
[10:43:28] shevy: usually they will belong to the same namespace when you structure it in a gem-directory layout
[10:43:41] shevy: you can only include a module anyway
[10:43:44] northfurr: has joined #ruby
[10:43:45] leitz: Just trying to understand if there's a common name for the file that holds common functions.
[10:44:44] [k-: helper?
[10:45:21] leitz: Sorry, I may be mixing terms with require. Not enough coffee. For example, line 5. https://github.com/LeamHall/CT_Character_Generator/blob/master/chargen.rb
[10:46:15] k3asd`: has joined #ruby
[10:46:29] leitz: That's what I have been doing. However, on the off chance someone actually wants to join in, I'd prefer my programs follow the community standard, if there is one.
[10:46:37] leitz: Except for the Ruby version, of course. ;)
[10:47:03] FernandoBasso: Why would someone name a method to_s, but not len instead of length?
[10:47:14] casadei_: has joined #ruby
[10:47:17] adaedra: You usually put functions from a library in a module/class and then require the whole module at once
[10:47:23] [k-: len isnt common in Ruby
[10:47:28] devoldmx: has joined #ruby
[10:47:38] adaedra: Don't put functions at top level in a library
[10:48:12] FernandoBasso: [k-: isn't "common"?
[10:49:14] FernandoBasso: Ruby seems to make things short. def instead of define of function, to_s instead of the lengthier to_string.
[10:49:24] ht__: has joined #ruby
[10:49:29] michael_mbp: has joined #ruby
[10:49:34] FernandoBasso: Then, why not len instead of length, and why not ini or init instead of initialize?
[10:49:35] bkxd: has joined #ruby
[10:50:00] adaedra: "seems to make things short" mh, not sure.
[10:50:03] shevy: leitz I'd first define a toplevel constant, usually a module, sometimes people may opt for a class (like apeiros when he gets naughty)
[10:50:08] adaedra: clear to read, rather.
[10:50:19] FernandoBasso: to_s is clearer than to string?
[10:50:27] shevy: FernandoBasso there already is .size too
[10:50:52] shevy: so from .size to .len it's only one character less; if you need to do it, you could do: alias len size
[10:51:11] shevy: note that .to_s is 4 characters :)
[10:51:22] shevy: there also is .to_str
[10:51:40] vdamewood: has joined #ruby
[10:51:58] leitz: apeiros has non-naughty times?
[10:52:03] Ketchy: has joined #ruby
[10:52:11] FernandoBasso: Yeah, sure, but I don't see the reasoning behind those naming conventions.
[10:52:19] FernandoBasso: Anyway, this doesn't matter.
[10:52:23] firstdayonthejob: has joined #ruby
[10:52:40] leitz: ACTION goes to read up on modules again.
[10:52:40] FernandoBasso: Was just curious if someone had an insight about why those two approaches to names.
[10:52:55] shevy: FernandoBasso same reason you have .collect versus .map
[10:53:00] coffeecupp__: has joined #ruby
[10:53:29] shevy: and you can also use define_method() to define a method
[10:53:37] FernandoBasso: Aren't those for two different purposes?
[10:53:43] dasher00: has joined #ruby
[10:53:58] FernandoBasso: shevy: I don't meant to approaches -> size vs length.
[10:54:00] shevy: .map is an alias to .collect (or the other way around, there is usually a link to the source if you look at the official documentation)
[10:54:15] shevy: size also is an alias to length :)
[10:54:34] FernandoBasso: I failed to express my thoughts clearly.
[10:55:30] rickmasta: has joined #ruby
[10:55:35] FernandoBasso: I am creating a language. I decide that to_string should be to_s and to_integer should be to_i, and so on. But then I decide that I will not use that "rule" for initialize, neither for length, etc.
[10:55:58] FernandoBasso: Or the decision came from the other way around, I'm not sure.
[10:56:25] FernandoBasso: They are all very short already, and easy to see what they mean, I'm not complaining about that.
[10:56:43] adaedra: I don't think the goal is to be short
[10:57:09] adaedra: to_#{c} with c being a single char is a common rule for conversion to core type, it's a specialized rule
[10:57:27] tkuchiki: has joined #ruby
[10:59:21] UtkarshRay: has joined #ruby
[10:59:59] decoponyo: has joined #ruby
[11:01:18] shevy: well you said that they are short, but size is 4 chars, and the to_* are also short, so actually, things are short in ruby!
[11:01:41] shevy: you could run some statistics on the amount of letters for all methods in default ruby
[11:01:46] ruurd: has joined #ruby
[11:01:54] shevy: 3 letter variants ... .map ...
[11:02:12] FernandoBasso: shevy: It seems size was created later on, was it not?
[11:02:17] voker57: has joined #ruby
[11:02:25] shevy: how do you know
[11:02:30] startupality: has joined #ruby
[11:02:41] FernandoBasso: It just looks like, since it is an alias.
[11:02:43] shevy: you could try to check the ancient ruby versions
[11:02:56] shevy: and they can not add both the original name, and the alias, at the same time???
[11:03:16] shevy: http://ruby-doc.org/core-2.2.0/Array.html here is a longer method name -> #initialize_copy
[11:03:26] shevy: #repeated_combination
[11:03:57] shevy: I never used these
[11:04:14] Balzrael: has joined #ruby
[11:04:31] FernandoBasso: I say we could go like to_s and make those init_cpy and repeated_comb :D
[11:04:46] allomov: has joined #ruby
[11:04:52] shevy: http://ruby-doc.org/core-2.2.0/Array.html#method-i-initialize_copy
[11:04:56] SCHAAP137: has joined #ruby
[11:04:56] shevy: that one confuses me
[11:04:56] FernandoBasso: When I recreate the universe I'll make people's mind more line mine.
[11:05:02] shevy: the example there does not use initialize_copy()
[11:07:00] firstdayonthejob: has joined #ruby
[11:10:15] adaedra: https://gist.github.com/adaedra/43e2c393da17241b3e66
[11:10:37] shevy: that crashes my computer!
[11:11:09] FernandoBasso: adaedra: That is freaking cool :)
[11:12:16] jenrzzz: has joined #ruby
[11:12:24] adaedra: shevy: download more ram
[11:14:20] adaedra: Average length: 10.23 (10.21 if not removing doubles)
[11:14:52] howdoicomputer: has joined #ruby
[11:16:06] sdothum: has joined #ruby
[11:16:34] nettoweb: has joined #ruby
[11:16:45] adaedra: RSS::Maker::ITunesChannelModel::ITunesCategoriesBase::ITunesCategoryBase#to_feed_for_categories
[11:17:42] adaedra: I wonder if it's in jhass's hangman :D
[11:19:18] jokester: has joined #ruby
[11:19:40] jhass: I see no RSS in stdlib
[11:19:56] khebbie: has joined #ruby
[11:21:08] adaedra: well, it's here http://ruby-doc.org/stdlib-2.2.3/libdoc/rss/rdoc/index.html
[11:21:36] charliesome: has joined #ruby
[11:21:44] jhass: mmh, devdocs doesn't have it
[11:22:09] adaedra: it's empty in rubydoc.info, tbf
[11:26:14] pgharios: has joined #ruby
[11:26:31] pgharios: hi, can i do OOP as awell as functional programming in Ruby?
[11:26:50] shevy: use lambdas everywhere!
[11:29:00] pgharios: what is better ?
[11:29:31] karapetyan: has joined #ruby
[11:30:05] karapetyan: has joined #ruby
[11:30:40] shevy: pgharios well, ruby is an OOP language
[11:30:53] shevy: the pure functional hackers will go to haskell and so forth anyway
[11:31:41] pgharios: shevy: javasscript is not oop right
[11:31:48] pgharios: angularjs too
[11:31:56] chouhoulis: has joined #ruby
[11:35:07] bmurt: has joined #ruby
[11:35:38] firstdayonthejob: has joined #ruby
[11:36:10] apeiros: javascript is an OOP language, pgharios
[11:39:38] roxtrongo: has joined #ruby
[11:40:24] blik71: has joined #ruby
[11:41:01] zenguy_pc2: has joined #ruby
[11:41:26] ordepdev: has joined #ruby
[11:41:41] ocx: has joined #ruby
[11:42:02] burgestrand: has joined #ruby
[11:43:13] blik71: hello all, could anyone tell me what this error means when trying to run ruby-debug in the terminal http://pastebin.com/nb7HWq5t
[11:43:13] ruboto: blik71, as I told you already, please use https://gist.github.com
[11:43:25] blik71: i forgot the link to it
[11:43:49] apeiros: good thing our trusty bot gave it to you again
[11:45:01] blik71: https://gist.github.com/anonymous/6a1d06c6326e5d297230
[11:47:03] arup_r: has joined #ruby
[11:47:55] godfat: has joined #ruby
[11:49:14] leat2: has joined #ruby
[11:50:07] bruno-: has joined #ruby
[11:50:41] shevy: ruby_debug.so: undefined symbol: ruby_current_thread - /var/lib/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError)
[11:50:49] shevy: this probably will be hard blik71
[11:50:56] shevy: people are on ruby 2.x
[11:51:17] shevy: the /var/lib variant says that you probably use a debian-based distro?
[11:52:39] blik71: linux mint
[11:53:21] apt-get: has joined #ruby
[11:54:22] jgt: has joined #ruby
[11:55:05] tkuchiki: has joined #ruby
[11:56:03] shevy: I can't find the github issue tracker
[11:56:09] shevy: for ruby_debug
[11:56:45] shevy: they have more or less been abandoned
[11:58:08] Hrorek: has joined #ruby
[11:58:20] chills42: has joined #ruby
[11:59:41] charliesome: has joined #ruby
[12:00:39] devoldmx: has joined #ruby
[12:02:08] blik71: shoot is there any alternative to debugging in ruby then I'm quite new to ruby and need to finish a project in it
[12:03:16] karapetyan: has joined #ruby
[12:05:07] ruurd: has joined #ruby
[12:05:23] godfat: i think the current one is byebug
[12:05:37] _aeris_: has joined #ruby
[12:06:25] burgestrand: blik71: you are running ruby 1.9.3?
[12:06:42] burgestrand: blik71: (run 'ruby -v' to find out)
[12:08:02] solocshaw: has joined #ruby
[12:08:03] adaedra: 1.9.3 is EOL
[12:08:09] burgestrand: blik71: it's possible that pry still works on 1.9.3 if you're having issues with ruby-debug, if it will help you kind of depends on what you are debugging
[12:08:38] VictorBjelkholm: has joined #ruby
[12:08:40] adaedra: End-of-life
[12:08:50] adaedra: In short: Update.
[12:08:51] burgestrand: blik71: 1.9.3 is no longer receiving security updates and is considered old
[12:09:09] blik71: this is the one my school is using i believe but let me check
[12:09:58] karapetyan: shevy: feel like a rabbit
[12:10:03] burgestrand: blik71: if you're doing a one-off project for your school you don't necessarily need to upgrade your ruby, but if you plan on having your project alive once you're done with it you should use something newer.
[12:10:10] shevy: karapetyan yeah
[12:10:32] shevy: blik71 you can use ruby 1.9.3 without ruby-debug can't you? :)
[12:11:09] karapetyan: shevy: shit that's not so simple as i thought...
[12:11:19] DoubleMalt: has joined #ruby
[12:11:29] blik71: I mean I can but I'm stuck in that my code is doing something weird and I don't know what is going on
[12:12:28] burgestrand: blik71: I would recommend you try using "pry". General instructions: install the gem ("gem install pry"), in the code you're confused about do 'require "pry"' somewhere at the top, and then insert the line "binding.pry" where you want to peek around to get a better idea of what is happening.
[12:12:52] burgestrand: blik71: it will open an interactive interpreter where you can print out local variables and try to figure out what's happening.
[12:13:16] khebbie: has joined #ruby
[12:13:56] khebbie: has joined #ruby
[12:14:00] chills42: has joined #ruby
[12:14:25] osmansekerlen: has joined #ruby
[12:14:53] Balzrael: binding.pry is da bomb when debugging ruby code
[12:15:34] Balzrael: and if you have rubymine as your editor of choice or intellij it comes already with a nice debugger
[12:16:56] blik71: do i just run ruby <filename> as normal
[12:17:24] karapetyan: x[2+x] == nil ? puts "true" : puts "else"
[12:17:34] karapetyan: what's wrong with i?
[12:17:44] drptbl: has joined #ruby
[12:17:57] karapetyan: hm, not actually
[12:18:23] blik71: oh wow this is cool thank you sooo much :DDD!
[12:19:12] Contigi: has joined #ruby
[12:20:35] shevy: karapetyan your code must become clear in its intent
[12:20:56] Balzrael: just type q to be able to issue commands and write code at that point in the source file
[12:21:05] Balzrael: also you have step and next as commands
[12:21:27] Balzrael: and all the other goodies from a debugger that I don't really know how they work :)
[12:21:31] karapetyan: shevy: i trying to split it in simple modules
[12:21:41] startupality: has joined #ruby
[12:21:43] Balzrael: I just inspect my objects to find the problem and run some methods
[12:22:23] Balzrael: do (x[2+x] == nil) ? ...
[12:23:51] burgestrand: has joined #ruby
[12:24:36] pontiki: has joined #ruby
[12:25:04] blik71: wait how do advance through or do I have to put itafter the code i want to inspect
[12:27:53] Balzrael: after you typed q and inspected the obeject from the console and run some code you can type step or next to advance to the next point in the execution
[12:27:58] shmilan: has joined #ruby
[12:27:59] burgestrand: blik71: by default there's no way to advance the program in pry, you just have to put the binding.pry in multiple places
[12:28:40] Balzrael: it has setep and next commands but I never used them
[12:28:48] Balzrael: as most other Ruby devs :)
[12:28:56] Balzrael: just add more binding.pry
[12:29:21] burgestrand: There's no step, unless you're using a debugging plugin with pry.
[12:29:31] Balzrael: next is good for incremental line execution
[12:29:42] burgestrand: There's no next.
[12:30:24] pawnbox: has joined #ruby
[12:30:41] Balzrael: well get a debugging pry based gem then
[12:30:59] arup_r: has joined #ruby
[12:31:25] burgestrand: blik71: like Balzrael mentions, if you want to advance without sprinkling binding.pry all over the place, you could use 'pry-stack_explorer' (https://github.com/pry/pry-stack_explorer), it's compatible with Ruby 1.9
[12:31:29] juanpablo_: has joined #ruby
[12:31:30] ocx: hello, any summary of difference between javascript objects and ruby objects?
[12:31:38] burgestrand: ocx: everything
[12:31:45] kirun: has joined #ruby
[12:32:17] burgestrand: ocx: do you have something more specific?
[12:32:33] ocx: Burgestrand: i am coding in both languages and trying to come up with a summary
[12:32:37] ocx: to clear up my mind
[12:32:40] chouhoulis: has joined #ruby
[12:32:59] ocx: in javascript i define an object as { } in ruby i just define a var and it is a generic object?
[12:33:20] ocx: the generic object can be a number, a hash , an array everything?
[12:33:26] burgestrand: ocx: I'm not sure there's a way to make a good summary without it turning into multiple sentences, at least.
[12:34:01] burgestrand: ocx: in Ruby everything is an object (more or less), in JavaScript you also have primitives (numbers, strings) that are not objects.
[12:34:29] ocx: yea so in ruby even a number has a built in function
[12:34:35] burgestrand: ocx: however, both languages can be written so their usage looks very very similar, even though it's actually different ideas down below.
[12:34:36] ocx: in havascript it is not the case a number is primitive
[12:34:53] khebbie: has joined #ruby
[12:35:40] ocx: Burgestrand: for example in javascript you have the dynamic linking where you inject scopes, and functions into other functions , do you have this in ruby too?
[12:36:01] burgestrand: ocx: yes, there's a way to do it, and it's not uncommon.
[12:36:11] casadei_: has joined #ruby
[12:36:19] burgestrand: ocx: in javascript, there's "this", and in ruby there is "self", they are similar but not the same, and have different rules.
[12:36:49] ocx: i do vat self = this in javascript
[12:37:17] burgestrand: ocx: in javascript you can control this using Function#apply and Function#call, in Ruby you can do it using #instance_exec, and similar methods.
[12:37:23] ocx: Burgestrand: do you have an mvc model in ruby?
[12:37:27] ocx: model view controller?
[12:37:32] ocx: for example in angular that is used
[12:37:34] burgestrand: ocx: MVC is not a language-specific thing.
[12:37:48] burgestrand: ocx: it's a pattern, just like Math is not something you don't have in some languages.
[12:37:58] burgestrand: ocx: an idea, so to speak.
[12:38:44] ocx: mvc is not adpoted a lot in ruby i think since you are dealing with backends
[12:38:48] rbennacer: has joined #ruby
[12:38:52] burgestrand: ocx: Rails claims to be MVC.
[12:39:29] burgestrand: ocx: And frankly, the thought of MVC is older in Ruby than JavaScript. Back before the front-end frameworks came, MVC was the hot thing in back-end development.
[12:39:56] burgestrand: In my opinion it wasn't necessarily MVC, but people like easy ways to communicate what they're doing so it was adopted.
[12:40:20] Aeyrix: Rails isn't mvc?
[12:40:26] ocx: Burgestrand: let me guess , in rails the M is the SQL or the rails internal variables, V is apache or where users connect and C is the lofic inside rails?
[12:40:40] burgestrand: ocx: In short, Ruby has MVC, and it was popular in Ruby before it was popular in JavaScript, but it's not a fair comparison to make when you're putting languages in front to compare them.
[12:40:51] Aeyrix: ocx: what
[12:40:53] jgt: ocx: you're either trolling, or you've been dealt an entire mountain of misinformation
[12:40:55] Aeyrix: ... what the fuck
[12:41:14] jgt: MVC not adopted because backends? WHAT!?
[12:41:17] burgestrand: I think this reaction is not proportional to the question.
[12:41:57] burgestrand: ocx: Rails considers the V as the model of something that is sent to the client, most often HTML.
[12:42:21] burgestrand: ocx: The M tends to be the database layer, the ORM, but it's not necessarily database-connected, it could as well be domain logic.
[12:42:24] Aeyrix: I'm really glad
[12:42:28] Aeyrix: you're not talking about this in #ror
[12:42:37] Aeyrix: where you could be misinforming people who actually want to learn about rails
[12:42:42] jgt: when I read stuff like this, I think of the eloquent words of Steve Losh: ???Stop reading Hacker News, and open a fucking book???
[12:42:49] Aeyrix: Pretty much fam.
[12:42:54] burgestrand: ocx: C is what handles the request.
[12:43:03] ocx: sorry then
[12:43:08] shevy: we shall master C
[12:43:14] tkuchiki: has joined #ruby
[12:43:16] Aeyrix: mods mods mods
[12:43:17] burgestrand: ocx: Keep in mind that this is not the traditional MVC as it was written in the 80s.
[12:43:17] Aeyrix: mods mods mods
[12:43:28] poli: has joined #ruby
[12:43:34] ocx: C handles the request from Apache?
[12:44:03] burgestrand: ocx: C is what decides how the request is handled, yes.
[12:44:40] chills42: has joined #ruby
[12:44:49] burgestrand: ocx: the flow goes Browser -> Apache -> C -> M (maybe multiple) -> V -> HTML -> Browser.
[12:44:57] jgt: Burgestrand: that responsibility is also kinda sorta divided with a router
[12:45:44] CorpusCallosum: has joined #ruby
[12:45:45] jgt: but yeah, the flow above is totally correct
[12:46:29] burgestrand: Like all generalisations this is not entirely correct, but it's a good approximation.
[12:47:13] blik71: thank you for suggesting pry that fixed my problem, also doesnt chomp take off the last specified character such as a ","
[12:47:25] spencer6245_: has joined #ruby
[12:48:21] burgestrand: blik71: http://ruby-doc.org/core-1.9.3/String.html#method-i-chomp
[12:48:31] burgestrand: blik71: in short, it doesn't modify the string, it returns a new one, could be significant.
[12:49:08] ocx: Burgestrand: the main work is in the M then
[12:49:28] blik71: ahh that explains it, i used it thinking it modified the object it was called on
[12:50:04] ocx: so whatever i change in the M, will instantly change in the others too
[12:50:24] ocx: no need to update the view and controller accordingly
[12:50:44] burgestrand: No, it is different from MVC in the front-end.
[12:50:45] ocx: thats how mvc works in javascript at least, trying to see if it is the same
[12:50:54] dorei: has joined #ruby
[12:51:10] burgestrand: ocx: In back-end MVC, the flow is almost always C -> M (multiple) -> V -> finished.
[12:51:18] jgt: ocx: The JavaScript frameworks/libraries that bill themselves as ???MVC??? aren't really doing MVC
[12:52:02] Musashi007: has joined #ruby
[12:52:05] ocx: i see there is a finished here
[12:52:10] howdoicomputer: has joined #ruby
[12:52:11] burgestrand: They're closer to the original idea of MVC than Rails.
[12:52:18] ocx: in havascript you have a listener and you dont have a finished, it is always listening
[12:52:18] burgestrand: closer: You have an unfortunate name. :)
[12:53:06] dopie: has joined #ruby
[12:53:16] burgestrand: Either way, once the real world enters your code base, you'll have to do all kinds of OO tricks to avoid a mess anyway.
[12:54:17] burgestrand: I shouldn't say OO, I should say architecture.
[12:55:59] sdothum: has joined #ruby
[12:56:19] ocx: any recommended books on how to do a proper arch?
[12:56:24] ocx: for scalability
[12:56:34] ocx: and accodomate traffic and growth
[12:57:07] ocx: as far as i understand it goes like users (xmlrpc) -> webserver -> rails -> sql
[12:58:21] freezevee: has joined #ruby
[13:00:12] freezevee: Can someone please help me with an issue described here ? http://serverfault.com/questions/721890/how-to-setup-vagrant-with-nginx-passenger-mysql-rvm
[13:01:29] yosafbridge: has joined #ruby
[13:02:45] jgt: ocx: are you expecting wild growth?
[13:04:48] northfurr: has joined #ruby
[13:05:01] shmilan: has joined #ruby
[13:05:27] araujo_: has joined #ruby
[13:05:55] ruurd: has joined #ruby
[13:06:49] ocx: jgt: yes
[13:08:44] tkuchiki: has joined #ruby
[13:10:06] freerobby: has joined #ruby
[13:10:43] deject3d: has joined #ruby
[13:11:25] startupality: has joined #ruby
[13:12:38] sepp2k: has joined #ruby
[13:16:05] chills42: has joined #ruby
[13:16:29] shevy: ruby ruby ruby
[13:18:05] sankaber: has joined #ruby
[13:18:08] howdoicomputer: has joined #ruby
[13:19:35] deject3d: ruby ruby ruby ruby
[13:20:15] ocx: can rails integrate with redis?
[13:21:53] tkuchiki: has joined #ruby
[13:25:37] psye: has joined #ruby
[13:27:19] taylorrf: has joined #ruby
[13:27:20] Musashi007: has joined #ruby
[13:27:38] shevy: https://ochronus.com/a-rubyists-confessions-on-python/
[13:30:54] centrx: has joined #ruby
[13:31:35] lxsameer: has joined #ruby
[13:31:53] dgutierrez1287: has joined #ruby
[13:33:12] startupality: has joined #ruby
[13:33:35] chouhoulis: has joined #ruby
[13:34:05] atomical: has joined #ruby
[13:39:30] nsuke: has joined #ruby
[13:39:36] youngbaks: has joined #ruby
[13:43:12] yeticry: has joined #ruby
[13:45:23] deject3d: has joined #ruby
[13:46:33] moss: has joined #ruby
[13:47:14] juanpablo_: has joined #ruby
[13:51:37] Soda: has joined #ruby
[13:52:22] victortyau: has joined #ruby
[13:57:04] yeticry: has joined #ruby
[13:57:35] DLSteve: has joined #ruby
[14:03:14] nhhagen: has joined #ruby
[14:05:05] ordepdev: has joined #ruby
[14:05:44] araujo_: has joined #ruby
[14:06:03] jdawgaz: has joined #ruby
[14:09:18] apt-get: has joined #ruby
[14:11:25] esauOp: has joined #ruby
[14:13:43] dionysus69: has joined #ruby
[14:14:26] nsuke: has joined #ruby
[14:15:06] jeanlinux: has joined #ruby
[14:15:39] Yzguy: has joined #ruby
[14:18:49] jeanlinux: i have a rails app that connects to a beanstalkd running on another server using the beaneater gem https://github.com/beanstalkd/beaneater
[14:19:02] jeanlinux: but here is the thing.. i want to keep the connection the the beanstalkd server alive always .. so i can receive new jobs almost instantaneously
[14:19:20] FernandoBasso: has joined #ruby
[14:19:23] jeanlinux: any suggestion on how to achieve that, cron, rails task, or rails 4 Live streaming? which would be more effective
[14:19:40] jeanlinux: sorry this is rails specific.. but i am a little bit stuck on this
[14:20:22] umgrosscol: has joined #ruby
[14:21:14] dac: has joined #ruby
[14:22:45] tmtwd: has joined #ruby
[14:23:56] dcarmich: has joined #ruby
[14:24:44] araujo_: has joined #ruby
[14:25:20] DmitryBochkarev: has joined #ruby
[14:25:22] tkuchiki: has joined #ruby
[14:28:19] araujo: has joined #ruby
[14:28:27] howdoicomputer: has joined #ruby
[14:30:12] jdawgaz: has joined #ruby
[14:34:12] chouhoulis: has joined #ruby
[14:34:30] skade: has joined #ruby
[14:34:58] Yzguy: anyone have experience with sinatra?
[14:35:41] khebbie: has joined #ruby
[14:37:51] yeticry: has joined #ruby
[14:40:02] NeverDie: has joined #ruby
[14:40:47] David27: has joined #ruby
[14:40:52] karapetyan: has joined #ruby
[14:41:32] roxtrongo: has joined #ruby
[14:41:49] athinggoingon: has joined #ruby
[14:44:47] ordepdev: has joined #ruby
[14:45:18] Llama4146: has joined #ruby
[14:47:11] kalzz: has joined #ruby
[14:49:11] kalz: has joined #ruby
[14:49:50] karmatr0n: has joined #ruby
[14:51:32] phutchins: has joined #ruby
[14:53:49] leat2: has joined #ruby
[14:54:12] havenwood: has joined #ruby
[14:55:14] Zackio: has joined #ruby
[14:56:22] LiquidInsect: has joined #ruby
[14:56:58] karmatr0_: has joined #ruby
[14:57:41] haxrbyte: has joined #ruby
[14:58:57] khebbie: has joined #ruby
[15:00:51] Zai00: has joined #ruby
[15:02:19] ordepdev: has joined #ruby
[15:03:18] pawnbox: has joined #ruby
[15:03:42] tkuchiki: has joined #ruby
[15:04:11] shinnya: has joined #ruby
[15:04:17] karmatr0n: has joined #ruby
[15:04:42] mary5030: has joined #ruby
[15:05:04] MVPhelp: has joined #ruby
[15:06:08] frog0909: has joined #ruby
[15:06:41] krz: has joined #ruby
[15:07:12] solocshaw1: has joined #ruby
[15:10:26] nhhagen: has joined #ruby
[15:11:25] deavid: has joined #ruby
[15:11:34] leitz: has joined #ruby
[15:12:14] codecop: has joined #ruby
[15:14:07] jenrzzz: has joined #ruby
[15:14:53] ruurd: has joined #ruby
[15:15:09] astrobunny: has joined #ruby
[15:16:19] morenoh149: has joined #ruby
[15:16:38] futilegames: has joined #ruby
[15:17:29] jamesaxl: has joined #ruby
[15:18:45] pwnd_nsfw: has joined #ruby
[15:19:04] karmatr0n: has joined #ruby
[15:20:28] KramerC: has joined #ruby
[15:21:42] JCOE: has joined #ruby
[15:21:43] karmatr0n: has joined #ruby
[15:22:08] minotep: has joined #ruby
[15:24:13] DmitryBochkarev: has joined #ruby
[15:25:18] casadei_: has joined #ruby
[15:26:12] DLSteve: has joined #ruby
[15:26:27] n1lo: has joined #ruby
[15:27:22] tkuchiki: has joined #ruby
[15:28:27] karmatr0n: has joined #ruby
[15:29:33] Oka: has joined #ruby
[15:29:34] dasher00: has joined #ruby
[15:29:40] karapetyan: has joined #ruby
[15:30:01] fantazo: has joined #ruby
[15:31:20] k3asd`: has joined #ruby
[15:32:29] chouhoulis: has joined #ruby
[15:33:47] izhak: has joined #ruby
[15:34:03] shevy: #sinatra should have
[15:34:34] ekain: has joined #ruby
[15:34:54] izhak: Hi, guys! Is it possible to wrap a missing (but callable) method to a reference. I mean, is it possible to return a reference to a missing method like .method(:some_real_method) does?
[15:36:00] juanpablo_: has joined #ruby
[15:37:38] shevy: return a reference to something that does not exist?
[15:38:02] nanoz: has joined #ruby
[15:38:12] shevy: pay pizza with invisible money :)
[15:38:26] mleung: has joined #ruby
[15:38:36] s00pcan: has joined #ruby
[15:38:39] karmatr0n: has joined #ruby
[15:39:22] izhak: shevy: Why not? If you can call smth that doesn't exist, why can't you just reference it?
[15:39:47] nowhereFast: has joined #ruby
[15:39:59] shevy: ah you are the webchat guy
[15:40:12] karmatr0n: has joined #ruby
[15:41:02] nowhereFast: how would I do a when i % 2 == 0 in a case statement?
[15:41:21] yeticry: has joined #ruby
[15:41:25] elperdut: has joined #ruby
[15:41:46] centrx: nowhereFast, like that works
[15:42:05] centrx: nowhereFast, there are two forms of case
[15:42:06] nowhereFast: then I must be buckling something
[15:42:12] roxtrongo: has joined #ruby
[15:42:34] shevy: you could check-case on the result, such as case (i % 2); when 0; when 1
[15:42:58] nowhereFast: is there a specific pastebin that is preferred?
[15:43:09] shevy: gist I would think
[15:44:33] nowhereFast: https://gist.github.com/anonymous/f894fcc97ef0b13bfbdd
[15:45:26] deject3d: has joined #ruby
[15:46:08] shevy: yeyh you can put it on the case line as shown above
[15:47:01] nowhereFast: except that example doesnt work
[15:47:17] izhak: nowhereFast: if this is the only condition (yes or no) it's better to use _if_. Otherwise, if you need to use _case_ then just omit _i_ after _case_
[15:47:54] centrx: nowhereFast, take out the i on the case line to use the different type of case, see http://ruby-doc.org/docs/keywords/1.9/Object.html#method-i-case
[15:47:55] nowhereFast: lets assume I'm going to be adding cases
[15:48:05] dionysus69: has joined #ruby
[15:48:20] centrx: actually not great link
[15:48:44] izhak: nowhereFast: just omit _i_ after _case_
[15:48:47] nowhereFast: pretty much just started with ruby so looking to make sense of its 'flow'
[15:49:24] shevy: nowhereFast listen to centrx, don't listen to izhak :)
[15:49:49] centrx: All hail shevy
[15:49:54] leat2: has joined #ruby
[15:50:07] shevy: if it helps, you could check the return value in a variable
[15:50:07] fantazo_: has joined #ruby
[15:50:12] nowhereFast: there must be a dirty harry quote somewhere in there
[15:50:13] shevy: and then use: case variable on that result
[15:50:40] nowhereFast: right, so dropping the i on the case line does it... now I've just got to figure out why
[15:50:52] r_baron: has joined #ruby
[15:51:05] shevy: can you update your gist, to reflex your current code?
[15:51:08] nowhereFast: ACTION looks at the not great link
[15:51:51] shevy: you can also save with .rb ending on gist, then you get automatic colour highlighting for ruby
[15:52:12] izhak: nowhereFast: all _when_ conditions considered one by one, if one evaluates to true, this block will be executed
[15:52:16] ht__: has joined #ruby
[15:52:20] sumark: has joined #ruby
[15:53:45] nowhereFast: okay, just not seeing the value to the 'case' keyword as it currently stands
[15:54:00] nowhereFast: not with the when's in there
[15:54:23] nowhereFast: case when when when, -it looks a little like nested cases
[15:54:41] zenguy_pc2: has joined #ruby
[15:55:07] izhak: when you specify an expression after _case_, then _when_ checks for equality of the _case_ expression and _when_ expression and if they are equal executes that block
[15:55:15] centrx: nowhereFast, case is very similar to a series of if-else statements
[15:55:38] centrx: nowhereFast, it's more concise and clean in some cases
[15:56:36] zenguy_pc2: has joined #ruby
[15:56:43] shevy: nowhereFast can you show your current code on gist?
[15:57:18] nowhereFast: yes, about as concise as switch is in general, im mentally comparing to scala's pattern matching I suppose
[15:57:46] nowhereFast: shevy... all I did was as izhak and centrx both suggested and took the i off the case line
[15:58:56] zenguy_pc: has joined #ruby
[15:59:58] karapetyan: has joined #ruby
[16:00:05] amoeba_: has joined #ruby
[16:00:58] zenguy_pc: has joined #ruby
[16:01:22] amoeba_: has joined #ruby
[16:01:41] solocshaw: has joined #ruby
[16:02:22] djbkd: has joined #ruby
[16:02:25] nowhereFast: having multiple when statements, -is there a way to execute a block of code regardless of which condition is met?
[16:02:26] amoeba_: has joined #ruby
[16:02:57] mhib: has joined #ruby
[16:03:04] nowhereFast: so if any when is met... do this
[16:04:05] amoeba_: has left #ruby: ()
[16:04:11] gizmore: nowhereFast: maybe doit = true; case.... else doit = false; ... and then an if doit below
[16:04:32] amoeba_: has joined #ruby
[16:05:31] nowhereFast: yup, an additional check, I was looking to see if there was something like a 'regardless' of sorts
[16:07:21] vigo: has joined #ruby
[16:07:29] leat2: has joined #ruby
[16:07:29] vigo: hi gizmore
[16:07:45] izhak: nowhereFast: you can just merge _when_ conditions with comma
[16:08:56] amoeba: has joined #ruby
[16:09:26] amoeba`: has joined #ruby
[16:09:47] quanzhuo: has joined #ruby
[16:09:58] quanzhuo: has left #ruby: ()
[16:11:30] nowhereFast: izhak, got a link for that merging?
[16:11:49] shevy: when 1,2,3,4,5
[16:12:16] izhak: yeah.. It'll act like any of with both _case_ types.
[16:12:25] apt-get: is there any easy way to get the default browser's name?
[16:12:51] shevy: apt-get it's usually stored somewhere or sent via http isn't it?
[16:13:13] apt-get: shevy: what do you mean?
[16:13:56] DLSteve: has joined #ruby
[16:14:18] phreakocious: has joined #ruby
[16:14:19] jacksonmills: has joined #ruby
[16:14:21] nowhereFast: apt-get, your http headers will have that info
[16:14:41] craysiii: has joined #ruby
[16:14:53] leat2: has joined #ruby
[16:15:26] ruurd: has joined #ruby
[16:15:30] nowhereFast: when the browser connects in the handshake process it tells the server the who and what it is
[16:15:40] jenrzzz: has joined #ruby
[16:16:55] apt-get_: has joined #ruby
[16:17:08] apt-get_: sorry for leaving, connection problems.
[16:17:21] apt-get_: anyway, shevy, I'm not talking about using a web framework
[16:17:24] apt-get_: meant more inside of a script
[16:17:27] nowhereFast: the when's in cases are mutually exclusive if not merged? -so if one when is met the rest are not processed?
[16:17:51] nowhereFast: 246 seconds ping... crazy
[16:18:40] izhak: nowhereFast: right. The first one will win
[16:18:48] amoeba: apt-get_: in linux you can do: xdg-settings get default-web-browser
[16:18:56] amoeba: not sure how portable that is
[16:19:24] nowhereFast: izhak... do you know if ruby runs through them though regardless on if a condition is met?
[16:19:54] nowhereFast: asking more from an efficiency perspective, some languages actually process on regardless making case runs slower
[16:20:31] izhak: nowhereFast: I would think it evaluates them until first true is met
[16:20:48] jgt: has joined #ruby
[16:20:58] nowhereFast: :-) one would think that would do this
[16:21:26] amoeba: nowhereFast: I imagine it depends on the number of conditions
[16:23:04] leat2: has joined #ruby
[16:23:08] izhak: it would be a serious problem it ruby would evaluate them all.. it changes logic, and has side effects. So it shouldn't be depend on number of conditions
[16:24:20] karmatr0n: has joined #ruby
[16:24:57] apt-get_: amoeba: I guess that works
[16:24:58] modern: has joined #ruby
[16:25:13] leat2: has joined #ruby
[16:25:17] apt-get_: but a windows solution would be nice too... :/
[16:25:43] amoeba: not sure, but I bet it's a registry value somewhere
[16:25:59] acke: has joined #ruby
[16:26:24] dgutierrez1287: has joined #ruby
[16:26:39] casadei_: has joined #ruby
[16:26:55] apt-get_: I'll just ask user for default browser
[16:27:02] amoeba: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html
[16:27:15] amoeba: http://ruby-doc.org/stdlib-1.9.2/libdoc/dl/rdoc/Win32/Registry.html
[16:27:23] shevy: ruby makes things easy
[16:27:27] firstdayonthejob: has joined #ruby
[16:28:07] amoeba: nowhereFast: http://www.daniellesucher.com/2013/07/ruby-case-versus-if/
[16:28:12] howdoi: has joined #ruby
[16:29:05] nowhereFast: apt-get, https://www.ruby-toolbox.com/projects/useragent
[16:29:14] howdoicomputer: has joined #ruby
[16:29:20] nowhereFast: https://www.ruby-toolbox.com/categories/User_Agent_Detection
[16:29:35] nowhereFast: might be something useful in there for you
[16:29:59] kloeri: has joined #ruby
[16:30:15] amoeba: I think he is trying to detect via a shell script
[16:30:18] nowhereFast: thanks amoeba, looks like what I was looking for
[16:30:24] mary5030: has joined #ruby
[16:30:55] amoeba: I was curious as well :)
[16:31:57] nowhereFast: ???If you find you???re looking to optimize that intensely you probably don???t want an interpreted language."
[16:32:17] nowhereFast: why must common sense always spoil it for me
[16:32:36] tkuchiki: has joined #ruby
[16:33:34] ekleog: has joined #ruby
[16:34:22] roxtrongo: has joined #ruby
[16:34:34] izhak: I can't understand how are you going to optimize dynamic case expression. The value of _when_ must be calculated in place.
[16:35:03] karmatr0_: has joined #ruby
[16:35:05] izhak: It maybe a function call that reloads world. And you can't precalculate it.
[16:36:02] izhak: http://codepad.org/gph0vD8N
[16:37:03] RandyT: has joined #ruby
[16:37:26] izhak: For static case expressions like in C, where switch values are compile time, it's possible to use hashes, jump tables etc.
[16:37:30] phreakocious: has joined #ruby
[16:40:03] ndrei: has joined #ruby
[16:40:21] Trieste: has joined #ruby
[16:40:26] jgt: has joined #ruby
[16:40:59] amoeba: izhak, yeah expression that mutate state prevents it... I imagine there could be optimization if the expressions were static, but this is one of those things were it probably doesn't matter much.
[16:42:27] NeverDie: has joined #ruby
[16:42:30] WajidKagzi: has joined #ruby
[16:45:09] nowhereFast: I dont think the article was referring to optimizing _when_ as much as it was referring to interpreted languages being slower in general, and that if the detail mattered you'd be better off going a different route
[16:45:25] ordepdev: has joined #ruby
[16:46:12] futilegames: has joined #ruby
[16:47:01] queequeg1: has joined #ruby
[16:47:47] firstdayonthejob: has joined #ruby
[16:48:20] izhak: yes, generally any IFS are evil for superscalar archs, cause they use predictions and conveyor heavily, and when a line of execution can't be predicted they suffer speed degradation, as whole prefetched line should be reset. That's why all dynamic cases are by definition slow.
[16:48:22] stamina: has joined #ruby
[16:48:37] [k-: has joined #ruby
[16:49:18] QORRiE: has joined #ruby
[16:50:22] izhak: where slow means "shouldn't be used in cycles" :)
[16:50:43] nowhereFast: yup, the use case should dictate though, and I think dynamic languages these days hold their own just fine in the majority of cases
[16:51:13] ordepdev: has joined #ruby
[16:51:18] nowhereFast: x = "blah"; x[0] #returns b
[16:51:36] nowhereFast: x = 123; -how do I get the 0'th index here?
[16:51:38] shevy: wheee... ruby ftp just got some new methods: https://github.com/ruby/ruby/blob/trunk/ChangeLog
[16:52:50] nowhereFast: and to have it return as a number x.to_s[0].to_i?
[16:52:55] [k-: please use proper terms...
[16:53:03] Blaguvest: has joined #ruby
[16:53:04] rehat: has joined #ruby
[16:53:13] [k-: use hundreds place or something to make your questiom clearer
[16:53:18] [k-: but you are right
[16:53:27] shevy: nowhereFast yes, usually via []
[16:53:48] [k-: shevy you ignore me too :(
[16:54:05] solocshaw: has joined #ruby
[16:54:10] shevy: your nick is so tiny!
[16:54:11] QORRiE: has joined #ruby
[16:54:26] shevy: xchat displays a vertical | after a nick
[16:54:27] DmitryBochkarev: has joined #ruby
[16:54:31] shevy: so your nick appears like |k|
[16:54:50] [k-: but there is still a line!
[16:54:58] [k-: do you not notice the lines???!
[16:55:00] shevy: random-hit-enter key
[16:56:03] rehat: if I have a path string to a file and I want to remove the '.<extention>' at the end would I use slice minus the last two characters or is there a better way
[16:57:38] startupality: has joined #ruby
[16:57:44] esauOp: has joined #ruby
[16:57:44] [k-: rehat: http://ruby-doc.org/core-2.2.0/File.html#method-c-basename
[16:57:52] Yzguy: has joined #ruby
[16:58:17] solocshaw: has joined #ruby
[16:58:30] karmatr0n: has joined #ruby
[16:58:39] rehat: [k-: sweet!, thanks
[16:59:11] jds: has joined #ruby
[17:01:28] tomchapin: has joined #ruby
[17:02:17] spider-mario: has joined #ruby
[17:02:34] minotep: has joined #ruby
[17:04:11] firstdayonthejob: has joined #ruby
[17:05:00] mistermocha: has joined #ruby
[17:05:05] karapetyan: has joined #ruby
[17:09:46] lipoqil: has joined #ruby
[17:09:57] roxtrongo: has joined #ruby
[17:10:30] greenbigfrog: has joined #ruby
[17:12:48] mleung: has joined #ruby
[17:16:11] jdawgaz: has joined #ruby
[17:16:37] Pathfinder: has joined #ruby
[17:16:59] morenoh149: has joined #ruby
[17:18:35] karmatr0n: has joined #ruby
[17:19:41] sankaber: has joined #ruby
[17:21:39] shevy: "OCaml is an object-oriented, imperative, functional programming language"
[17:21:49] shevy: https://ocaml.org/learn/tutorials/objects.html
[17:21:51] cornerma1: has joined #ruby
[17:22:25] shevy: sorta like the eierlegende Wollmilchsau: https://en.wiktionary.org/wiki/eierlegende_Wollmilchsau it can do everything!
[17:22:31] psye: has joined #ruby
[17:23:06] karmatr0n: has joined #ruby
[17:23:30] Hanmac: has joined #ruby
[17:24:47] juanpablo_: has joined #ruby
[17:25:19] shevy: I don't know the difference anyway
[17:25:28] FernandoBasso: "To use the assignment method you must set the receiver." def my_method=(val) self.some_var = val; end <-- This gives me an error.
[17:26:26] FernandoBasso: Also, is the assignment method = or my_method= ?
[17:26:57] pontiki: has joined #ruby
[17:27:31] casadei_: has joined #ruby
[17:28:13] howdoicomputer: has joined #ruby
[17:28:18] houhoulis: has joined #ruby
[17:29:05] gizmore: is there any working skype api? ... like there is webapi now, and some universal communication for skype... but the docs are horrible... is there maybe a ruby gem that works already?
[17:29:55] newdan: has joined #ruby
[17:29:58] tejasmanohar: has joined #ruby
[17:30:08] [k-: Fernando, try @some_var =
[17:30:34] shevy: FernandoBasso use foo=(i) rather than foo =(i)
[17:30:38] newdan: Is there a shorthand for ["foo", "bar"].map {|s| URI.decode(s))}
[17:30:55] arup_r: has joined #ruby
[17:31:01] shevy: in your example, the = belongs to the method invocation, the ruby parser just is liberal
[17:31:01] newdan: I know in Python I'd be able to do something like map(URI.decode, ['foo', 'bar'])
[17:31:16] [k-: %w[foo bar]
[17:31:43] newdan: [k-: Haha that's not the part I'm looking to shorthand, I mean is there a way to change that block so I can just "reference" URI.decode and give that to map()?
[17:31:53] symm-: has joined #ruby
[17:32:14] [k-: URI.method(:decode)?
[17:32:29] [k-: im not sure if that works though
[17:32:37] shevy: newdan unfortunately ruby does not allow shorthand notation with arguments via &
[17:32:47] karmatr0n: has joined #ruby
[17:33:15] shevy: would be nice if one could do %w( foo bar ).map(&:URI.decode(&input))
[17:33:54] [k-: &URI.method(:decode)
[17:34:11] [k-: that isn't an improvement though
[17:34:28] freezevee: can someone please help ? http://serverfault.com/questions/721890/how-to-setup-vagrant-with-nginx-passenger-mysql-rvm
[17:34:48] newdan: Hmm. I guess I should just accept the block in this case?
[17:34:56] craysiii: %w(foo bar).map(&:URI.decode) would be ideal imo
[17:35:16] shevy: newdan probably; you could however patch URI too, to allow array as input
[17:35:31] shevy: actually, why doesn't URI.decode() accept arrays?
[17:35:46] newdan: shevy: It might, I didn't try
[17:35:51] shevy: http://ruby-doc.org/stdlib-2.2.2/libdoc/uri/rdoc/URI/Escape.html#method-i-unescape
[17:35:55] leat2: has joined #ruby
[17:35:59] [k-: URI.decodeMany
[17:36:04] shevy: unescape(*arg)
[17:36:09] shevy: that will be an Array right?
[17:36:15] ekleog: has joined #ruby
[17:36:16] shevy: decode is an alias to unescape
[17:36:35] baweaver: has joined #ruby
[17:36:41] moeabdol: has joined #ruby
[17:36:58] milanpaperclip: has left #ruby: ()
[17:37:18] shevy: it will concatenate onto the result
[17:37:22] newdan: Still learning Ruby. My train of thought was e.g. %[foo bar].map &:upcase works pretty well, was wondering if there'd be something like that if I was using URI.decode instead
[17:37:35] newdan: But the block's not too bad
[17:37:42] shevy: yeah but your example works because you don't pass an argument
[17:37:45] shevy: you just call .upcase
[17:37:55] milanpaperclip: has joined #ruby
[17:38:12] shevy: perhaps in ruby 3.0!
[17:38:35] dionysus69: has joined #ruby
[17:38:59] newdan: shevy: Sounds good :) Also helps me feel less like I'm doing it wrong now
[17:39:09] craysiii: isn't ruby passing each element of the array as an argument to the block as it's yielded?
[17:39:32] shevy: in the {} variant sure
[17:40:01] northfurr: has joined #ruby
[17:40:01] ytti: if you want in this gang, you gotta love blocks
[17:40:05] craysiii: %[foo bar].map &:upcase < not in this case?
[17:40:07] ytti: it's our gang sign
[17:40:16] baweaver: Symbol to proc
[17:40:19] craysiii: %w{ west side }
[17:40:19] shevy: craysiii well, you don't pass an argument to upcase()
[17:41:00] newdan: AFAIK the ampersand is the same as (:upcase.to_proc).('foo')
[17:41:05] apt-get: how do I install shoes, exactly...?
[17:41:09] apt-get: it's not available in my repositories
[17:41:13] baweaver: %[foo bar].map(&:upcase) -> %[foo bar].map { |i| i.upcase }
[17:41:18] karmatr0n: has joined #ruby
[17:41:47] baweaver: it calls that method on each yielded element
[17:41:55] Taisigue: has joined #ruby
[17:42:12] karmatr0_: has joined #ruby
[17:42:14] uxp: has joined #ruby
[17:42:21] nowhereFast: has left #ruby: ("Leaving")
[17:42:28] baweaver: alo pontiki
[17:42:29] craysiii: you could patch in a URL_decode onto String ( ???? ???? ????)
[17:42:53] ytti: so you don't leak your dirt to external dependencies
[17:43:02] blonp: has joined #ruby
[17:43:21] FernandoBasso: shevy: Same problem.
[17:43:25] apt-get: after doing 'gem install shoes', trying to use 'shoes myapp.rb' gives me an error
[17:43:50] apt-get: http://hastebin.com/raw/koreletibi
[17:43:53] apt-get: specifically, this
[17:44:21] blonp: I hope I'm in the appropriate place. Ruby newb here playing around with a rails app (really just a json api)
[17:44:39] blonp: I'd like to have an action that impacts all instances of a model (eg Users)
[17:44:41] Musashi007: has joined #ruby
[17:44:54] pontiki: if you're questions are more rails than ruby, you want #rubyonrails
[17:44:59] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:45:00] blonp: Ok, thanks
[17:45:11] pontiki: see ya there!
[17:45:22] osmansekerlen: has joined #ruby
[17:45:37] blonp: has left #ruby: ()
[17:46:02] apt-get: a more general question
[17:46:16] apt-get: what's the easiest to use gui framework on ruby?
[17:46:35] apt-get: something that feels like ruby, preferably not just another C/C++ wrapper
[17:48:55] Azure: has joined #ruby
[17:49:02] Pathfinder: How do I get nokogiri to accept a ruby method as a node name?
[17:49:06] Zai00: has joined #ruby
[17:49:35] Pathfinder: Here is my scenario .. https://github.com/sparklemotion/nokogiri/issues/1350
[17:49:58] karmatr0n: has joined #ruby
[17:50:00] morenoh149: has joined #ruby
[17:51:44] CustosL1m3n: has joined #ruby
[17:52:12] karmatr0_: has joined #ruby
[17:53:07] howdoicomputer: has joined #ruby
[17:53:37] Narzew: has joined #ruby
[17:55:35] allomov: has joined #ruby
[17:56:24] Musashi007: has joined #ruby
[17:57:03] roxtrongo: has joined #ruby
[17:58:31] jackjackdripper: has joined #ruby
[17:58:41] ordepdev: has joined #ruby
[17:59:01] WajidKagzi: has joined #ruby
[17:59:40] pragmatism: has joined #ruby
[18:00:04] WajidKagzi: is there any way to clean up all these get requests in my terminal while running rails server
[18:01:05] futilegames: has joined #ruby
[18:02:14] dasher00: has joined #ruby
[18:02:54] startupality: has joined #ruby
[18:03:48] pragmatism: has joined #ruby
[18:03:53] djbkd: has joined #ruby
[18:05:04] veg: has joined #ruby
[18:06:06] FernandoBasso: shevy: (or others :p) http://sprunge.us/GGUB?ruby
[18:13:23] karmatr0n: has joined #ruby
[18:14:14] karmatr0n: has joined #ruby
[18:16:06] dorei: which one: symbol.to_s
[18:16:11] dorei: or "#{symbol}"
[18:16:27] apt-get: what's the easiest to use gui framework on ruby?
[18:16:29] apt-get: something that feels like ruby, preferably not just another C/C++ wrapper
[18:16:59] shevy: dorei in that specific example, these should be equivalent; #{} will invoke .to_s anyway
[18:17:31] shevy: FernandoBasso there is no need for self.name= there is it? I mean you call this recursively so this should not work right?
[18:17:52] shevy: you need to read in your mind "self.name = name" as "self.name= name" :D
[18:18:23] FernandoBasso: shevy: No, no need. I could just do def name=(name); @name = name; end;
[18:18:38] FernandoBasso: But the docs says "you always need a receiver"
[18:18:51] FernandoBasso: http://ruby-doc.org/core-2.1.2/doc/syntax/assignment_rdoc.html#label-Assignment+Methods
[18:18:53] jdawgaz: has joined #ruby
[18:19:10] FernandoBasso: The last example before "abbreviated assignment".
[18:19:30] FernandoBasso: And I could successfully change self.value = 42 with @value = 42 anyway.
[18:19:35] karmatr0n: has joined #ruby
[18:19:38] FernandoBasso: So, I don't make any sense of it right now.
[18:19:43] shevy: it will return 42
[18:20:27] nowhereFast: has joined #ruby
[18:20:48] shevy: FernandoBasso what will this return: http://pastie.org/10415094
[18:20:58] FrankD_: has joined #ruby
[18:21:01] shevy: run it only after you gave an answer :)
[18:21:42] FernandoBasso: OK. Let me think hard about this :p
[18:21:46] shevy: then say what this will yield: http://pastie.org/10415099
[18:22:17] FernandoBasso: Actually, I don't know.
[18:22:18] karapetyan: has joined #ruby
[18:22:24] FernandoBasso: I have no idea how that works.
[18:22:59] FernandoBasso: I would -guess- the first one returns 55.
[18:23:17] karmatr0n: has joined #ruby
[18:23:20] FernandoBasso: But I know JS, for instance, ignores certain return types in certain situations.
[18:24:07] FernandoBasso: If you call a constructor function and return something that is not an object, explicit return is simply ignored, and the newly created object is returned anyway.
[18:24:42] shevy: first one returns 42, second one 55
[18:24:51] shevy: note that the only real difference is the =
[18:25:06] shevy: sounds similar to ruby
[18:25:22] shevy: the explanation I was given was that code like this works: foo.x = foo.y = foo.z = 1
[18:25:30] juanpablo_: has joined #ruby
[18:27:19] FernandoBasso: Ok, I think I see.
[18:27:47] FernandoBasso: But I don't know if i accept that I am unable to learn from the docs, or the docs are just too superficial...
[18:28:09] mleung: has joined #ruby
[18:28:36] shevy: I write down stuff into my own local docu
[18:29:38] firstdayonthejob: has joined #ruby
[18:30:14] FernandoBasso: In my earlier example, although def name=(name); self.name = name; end did not work, a method with another name accepted self.name.
[18:30:23] FernandoBasso: shevy: Me too.
[18:30:36] shevy: yeah because you were recursively calling the method
[18:31:15] ebbflowgo: has joined #ruby
[18:32:31] nowhereFast: has joined #ruby
[18:32:33] FernandoBasso: shevy: Thanks a lot for this invaluable lesson.
[18:33:00] rakm: has joined #ruby
[18:33:09] FernandoBasso: I was able to contribute to some MDN docs (very few things). PHP is hell to contribute to the docs.
[18:33:18] mleung: has joined #ruby
[18:33:37] FernandoBasso: If ruby is easy to contribute to docs, you could consider making some contributions like this from time to time :p
[18:33:58] jeanlinux: has joined #ruby
[18:34:09] Zackio: has joined #ruby
[18:34:15] FernandoBasso: I will try if one day I fell I know what I am talking about.
[18:35:23] roxtrongo: has joined #ruby
[18:35:32] Alina-malina: has joined #ruby
[18:35:48] mistryneel: has joined #ruby
[18:36:12] FernandoBasso: Anyway, thanks once more. I really appreciate you spending time helping others out. Honorable.
[18:36:16] Narzew: has joined #ruby
[18:37:12] solars: has joined #ruby
[18:37:39] shevy: the interface feels sorta weird
[18:38:01] shevy: http://ruby-doc.org/core-2.2.3/String.html
[18:38:33] shevy: http://php.net/manual/en/language.generators.overview.php
[18:38:59] shevy: the ruby one may require some overhaul/change
[18:39:32] karmatr0n: has joined #ruby
[18:39:49] dotix: has joined #ruby
[18:40:16] elperdut: has joined #ruby
[18:40:26] FernandoBasso: I find the comments section in php docs wonderful.
[18:40:36] FernandoBasso: Especially because they end up sorted by "relevance".
[18:40:45] FernandoBasso: Since people can up/down vote them.
[18:41:05] FernandoBasso: I once read on ##php: "for enterprise solutions, look at the comments section" :p
[18:41:36] kobain: has joined #ruby
[18:41:52] nowhereFast: has left #ruby: ()
[18:41:54] FernandoBasso: PDO('mysql:host;dbname=foo;charset=UTF8', $user, $pass) was one such situation, about the charset part.
[18:41:57] karmatr0n: has joined #ruby
[18:42:14] shevy: now if php would not be such an awful language
[18:42:50] nowhereFast: has joined #ruby
[18:43:01] FernandoBasso: It is very practical for the web (imho), but full of shortcomings.
[18:43:09] shevy: it's been interesting to see python overtake php popularity
[18:43:14] shevy: in some areas at least
[18:43:51] shevy: http://goo.gl/qvrG0f
[18:44:00] rehat: regex question. how do you use a character class to capture and ignore at the same time? Trying to avoid capturing the IBAction here http://rubular.com/r/IjLpZOYd8z
[18:44:08] newdan: Is Python overtaking PHP popularity? I thought Ruby/Rails was what took it over
[18:44:15] karapetyan: shevy: rabbbbbiitss :$
[18:45:31] nowhereFast: has left #ruby: ()
[18:46:49] shevy: newdan python yeah, ruby-rails not really
[18:48:44] VeryBewitching: has joined #ruby
[18:48:53] dasher00: has joined #ruby
[18:48:59] nowhereFast: has joined #ruby
[18:49:10] karmatr0_: has joined #ruby
[18:49:41] BraddPitt: has joined #ruby
[18:49:49] crankhar1er: has joined #ruby
[18:50:01] FernandoBasso: shevy: I will show you my boss' php code (only a tiny portion of it).
[18:50:20] BraddPitt: has joined #ruby
[18:50:40] karmatr0n: has joined #ruby
[18:50:51] FernandoBasso: http://sprunge.us/ZhPb?php
[18:50:52] shevy: I abandoned php 10 years ago, don't punish me
[18:50:59] karapetyan: has joined #ruby
[18:51:03] FernandoBasso: That is not PHP's fault, actually.
[18:51:12] shevy: it will remain ugly
[18:51:15] shevy: even if you make it shorter
[18:51:29] shevy: a bad language encourages bad practice
[18:51:36] shevy: but I can show you a better example ;)
[18:51:40] shevy: I mean worse
[18:52:01] shevy: http://www.biophp.org/minitools/reduce_protein_alphabet/
[18:52:11] FernandoBasso: There are at least 5 bad practices in those few lines.
[18:52:15] FernandoBasso: 7 nested ifs, to start with.
[18:52:16] shevy: isn't this brilliant?
[18:52:28] shevy: function print_custom_reduced_alphabet_info(){
[18:52:32] shevy: I really dig this
[18:52:46] weaksauce: rehat what exactly are you trying to accomplish?
[18:52:48] karmatr0n: has joined #ruby
[18:53:31] rehat: trying to get all methods in a objective-c file but avoid methods with the IBAction return type
[18:54:01] FernandoBasso: shevy: But seriously, like in that sentence "just because javascript is classless, it doesn't mean you have to", one doesn't need to write such code in php either.
[18:54:56] shevy: I think javascript is a better programming language compared to php
[18:55:10] FernandoBasso: gravar1_1(), gravar1_2, gravar2_1, etc, magic numbers, unsanitized data to db, direct access to globals, and many other bad things.
[18:55:19] FernandoBasso: shevy: Me too.
[18:55:26] FernandoBasso: I actually like js.
[18:55:31] rehat: I guess I could filter that out later, but it would be cool to know how to do it with a regex pattern
[18:55:33] FernandoBasso: I like almost all langs.
[18:55:47] FernandoBasso: (from the ones I had contact so far)
[18:56:16] weaksauce: rehat i don't think it's really possible with regex. might be but it's not great at rejecting things
[18:56:25] ordepdev: has joined #ruby
[18:56:38] weaksauce: it's meant for regular expressions that have a regular structure.
[18:56:52] FernandoBasso: shevy: And we all know PHP is not php4.x any longer anyway.
[18:56:58] rehat: weaksauce: ahh, ok thanks
[18:57:00] xiii_: has joined #ruby
[18:57:54] xiii_: I have a binary string (like "010111000101010101"). How do I convert this to raw text in Ruby?
[18:58:03] krz: has joined #ruby
[18:58:18] QORRiE: has joined #ruby
[18:58:55] shevy: raw text?
[18:59:28] xiii_: shevy: Yeah, like the raw ascii values
[18:59:31] weaksauce: rehat i haven't used them but you might be able to use http://www.regular-expressions.info/lookaround.html
[18:59:39] xiii_: shevy: Which will likely be unreadable characters
[19:00:08] leafybasil: has joined #ruby
[19:00:29] weaksauce: http://rubular.com/r/Ae4Oa9DrhT
[19:00:40] allomov: has joined #ruby
[19:01:36] leat2: has joined #ruby
[19:01:36] elperdut: has joined #ruby
[19:01:43] rehat: weaksauce: oh nice! That site seems like a good doc for regex , thanks
[19:02:44] weaksauce: rehat yeah very thorough
[19:03:39] weaksauce: rehat and if you change the ! to a : it will only find the IBAction lines
[19:03:46] weaksauce: might be useful later on
[19:04:15] rehat: weaksauce: thanks dude
[19:05:37] jeanlinux: has joined #ruby
[19:06:01] ebbflowgo: my investigation tank is running on empty... http://stackoverflow.com/questions/32541075/no-such-file-to-load-when-requiring-jruby-pg-on-heroku
[19:09:06] rickmasta: has joined #ruby
[19:10:40] workmad3: has joined #ruby
[19:10:58] weaksauce: > "010111000101010101".to_i(2)
[19:11:04] weaksauce: >> "010111000101010101".to_i(2)
[19:11:05] ruboto: weaksauce # => 94549 (https://eval.in/432230)
[19:11:27] tjohnson: has joined #ruby
[19:11:37] nowhereFast: has left #ruby: ()
[19:11:59] crdpink: has joined #ruby
[19:13:02] mblagden_: you want the ascii values of the 0 character and 1 character, or you want to interpret that binary as numbers, then use those numbers as ascii codes?
[19:13:31] mblagden_: if the latter.. I have no idea how you seinsibly map 18 binary digits to ascii
[19:14:24] symm-: has joined #ruby
[19:14:42] mblagden_: a multiple of 8 or multiple of 7 would make a bit more sense
[19:15:21] nofxx: has joined #ruby
[19:15:21] nofxx: has joined #ruby
[19:16:11] lkba: has joined #ruby
[19:16:32] roxtrongo: has joined #ruby
[19:17:24] jenrzzz: has joined #ruby
[19:17:35] fedexo: has joined #ruby
[19:23:34] platzhirsch: has joined #ruby
[19:26:31] dgutierrez1287: has joined #ruby
[19:27:10] pontiki: has joined #ruby
[19:28:14] jackr: has joined #ruby
[19:28:22] jackr: has joined #ruby
[19:29:15] DanielI: has joined #ruby
[19:29:46] apt-get: how do I use the gtk toolkit?
[19:29:53] apt-get: I get this error: tooltips.rb:48:in `<main>': undefined method `init' for Gtk:Module (NoMethodError)
[19:29:57] shevy: apt-get did you download the package?
[19:30:02] apt-get: http://hastebin.com/raw/avaxecider
[19:30:04] apt-get: here's the code
[19:30:12] apt-get: shevy: I gem installed gtk and gtk3
[19:30:33] mkosaki: has joined #ruby
[19:31:27] pontiki: does that even pass syntax??
[19:31:39] karmatr0_: has joined #ruby
[19:31:48] apt-get: pontiki: first link when searching "ruby gtk" on google
[19:31:51] apt-get: so I assume the code is correct
[19:32:01] ledestin: has joined #ruby
[19:32:12] shevy: download http://sourceforge.net/projects/ruby-gnome2/files/ruby-gnome2/ruby-gnome2-3.0.1/ruby-gnome2-all-3.0.1.tar.gz
[19:32:15] shevy: extract it
[19:32:22] shevy: cd into it; go to either gtk2/ or gtk3/
[19:32:25] shevy: gtk2 should be more stable
[19:32:41] shevy: there, find sample/ directory
[19:32:51] roxtrongo: has joined #ruby
[19:32:52] UtkarshRay: has joined #ruby
[19:32:55] shevy: then go to gtk-demo/
[19:32:59] shevy: then run "ruby main.rb"
[19:33:15] shevy: you'll have lots of examples, all with working code in that directory
[19:33:32] shevy: in total I think you can find about 500 examples
[19:33:34] apt-get: shevy: thanks!
[19:33:44] karmatr0_: has joined #ruby
[19:33:59] Rurik: has joined #ruby
[19:34:50] shevy: here is hello world for gtk2: http://pastie.org/10415303 - it may work if you replace gtk2 with gtk3
[19:34:51] karmatr0_: has joined #ruby
[19:35:22] shevy: but gtk is sorta semi-stable... for instance it does not work for me right now /Programs/Ruby/2.2.3/lib/ruby/site_ruby/2.2.0/glib2/deprecatable.rb:138:in `const_get': uninitialized constant ExtensionMode (NameError)
[19:35:31] shevy: I mean *gtk3, the ruby-bindings to it
[19:39:15] karmatr0n: has joined #ruby
[19:41:33] karmatr0n: has joined #ruby
[19:41:49] FernandoBasso: What is the difference between arr = 1, 2, 3 (which I got), arr = *[1, 2, 3] and arr = 1, *[2, 3]. The last two seem to result in just the same thing as the first one.
[19:42:21] shevy: well the first variant is the lazy variant of arr = [1, 2, 3]
[19:42:50] frog0909_: has joined #ruby
[19:43:17] FernandoBasso: Ah, a, b, c = *[1, 2, 3] ?
[19:43:26] shevy: the * is the splat operator: https://endofline.wordpress.com/2011/01/21/the-strange-ruby-splat/
[19:43:53] shevy: a, b, c = *[1, 2, 3] would be the same as a, b, c = [1, 2, 3]
[19:44:28] FernandoBasso: Well, the doc is (sorry), -useless- about splat then (at least the part I am reading now).
[19:44:36] MichaelSmith: has joined #ruby
[19:45:11] FernandoBasso: Reading that post. Thanks.
[19:45:30] karmatr0_: has joined #ruby
[19:46:20] apt-get: shevy: the code in some of the examples really looks more like c++ code than ruby code :-(
[19:46:39] shevy: apt-get yeah
[19:46:41] apt-get: is there any ruby gui framework that's more than just a c wrapper?
[19:46:42] apt-get: apart from shoes
[19:46:48] apt-get: because I've been trying to install that for 2 hours
[19:46:49] yfeldblum: has joined #ruby
[19:47:03] apt-get: and the 3.x version download page is down
[19:47:11] shevy: it all erodes
[19:47:29] shevy: the problem is that the underlying api always leaks through
[19:47:44] shevy: you have this problem in ruby-gnome/ruby-gtk and you have it in ruby-kde/ruby-qt
[19:47:58] apt-get: shoes looked pretty good
[19:48:03] apt-get: ... until I tried to install it
[19:48:09] shevy: shoes was started by _why
[19:48:13] shevy: _why retired some years ago
[19:48:28] shevy: projects change with different maintainers
[19:48:41] shevy: go use ruby-gnome, change it to your liking
[19:48:50] leat2: has joined #ruby
[19:49:08] shevy: you can model all the ruby-code on your side to any way look how you want it to be
[19:52:44] workmad3: has joined #ruby
[19:55:33] nowhereFast: has joined #ruby
[19:55:41] nowhereFast: has left #ruby: ()
[19:57:23] roxtrongo: has joined #ruby
[19:59:34] DeweyD: has joined #ruby
[20:02:37] ohaibbq: has joined #ruby
[20:03:07] cashnguns: has joined #ruby
[20:08:16] ordepdev: has joined #ruby
[20:08:44] JackRG: has joined #ruby
[20:08:44] bruno-: has joined #ruby
[20:11:05] valeri_ufo: has joined #ruby
[20:13:41] anibara: has joined #ruby
[20:14:14] juanpablo_: has joined #ruby
[20:15:58] valeri_ufo: has joined #ruby
[20:16:49] mooe: has joined #ruby
[20:16:56] shinnya: has joined #ruby
[20:18:06] Rurik: has joined #ruby
[20:18:30] mary5030: has joined #ruby
[20:20:44] towski_: has joined #ruby
[20:21:02] haidahaha: has joined #ruby
[20:21:22] haidahaha: has left #ruby: ()
[20:22:46] arup_r: shevy: good night!
[20:23:04] arup_r: today a cat took my milk packet :/
[20:23:17] toretore: has joined #ruby
[20:25:25] yqt: has joined #ruby
[20:25:38] dagda1: has joined #ruby
[20:26:16] jeanlinux: has joined #ruby
[20:27:19] drptbl: has joined #ruby
[20:29:27] jdawgaz: has joined #ruby
[20:31:32] mrtomme: has joined #ruby
[20:31:34] moeabdol: has joined #ruby
[20:33:15] bmurt: has joined #ruby
[20:33:16] jenrzzz: has joined #ruby
[20:33:55] atmosx_: has joined #ruby
[20:34:05] tkuchiki: has joined #ruby
[20:35:00] DmitryBochkarev: has joined #ruby
[20:35:36] autrilla: has left #ruby: ()
[20:36:29] Sembei: has joined #ruby
[20:39:01] roxtrongo: has joined #ruby
[20:39:15] jeanlinux: has joined #ruby
[20:39:51] lxsameer: has joined #ruby
[20:42:59] valeri_ufo: has joined #ruby
[20:46:54] drptbl: has joined #ruby
[20:47:16] mhenrixon: has joined #ruby
[20:47:32] michael_mbp: has joined #ruby
[20:52:05] DLSteve: has joined #ruby
[20:56:49] fostertheweb: has joined #ruby
[21:02:32] esauOp: has joined #ruby
[21:04:25] Tuxero: has joined #ruby
[21:05:54] djbkd: has joined #ruby
[21:06:05] minotep: has joined #ruby
[21:07:02] bmurt: has joined #ruby
[21:08:32] Asher: has joined #ruby
[21:10:17] jackr: has joined #ruby
[21:13:47] roxtrongo: has joined #ruby
[21:15:19] juanpablo_: has joined #ruby
[21:16:00] QORRiE: has joined #ruby
[21:17:44] altivection: has joined #ruby
[21:18:00] pppss: has joined #ruby
[21:18:02] dagda1: has joined #ruby
[21:19:11] pppss: hi there friends, I'm using the Couchbase Ruby client library (official) built atop libcouchbase https://github.com/couchbase/couchbase-ruby-client
[21:19:31] pppss: But i'm trying to add a big file into one bucket
[21:19:55] pppss: And i'm receiving timeouts from the CouchBase server node
[21:21:37] rnga: has joined #ruby
[21:24:24] jeanlinux: has joined #ruby
[21:26:19] pppss: has left #ruby: ()
[21:27:18] NeverDie: has joined #ruby
[21:30:39] blackjid: has joined #ruby
[21:31:07] karapetyan: has joined #ruby
[21:36:53] xxneolithicxx: has joined #ruby
[21:38:50] Coldblackice: has joined #ruby
[21:39:08] dgs: has joined #ruby
[21:40:52] workmad3: has joined #ruby
[21:41:51] yfeldblum: has joined #ruby
[21:42:18] coffeecupp__: has joined #ruby
[21:44:05] freerobby: has joined #ruby
[21:44:06] ordepdev: has joined #ruby
[21:45:51] mary5030: has joined #ruby
[21:46:16] banjara: has joined #ruby
[21:52:16] nfk: has joined #ruby
[21:53:31] dgutierrez1287: has joined #ruby
[21:55:09] coffeecupp__: has joined #ruby
[21:55:41] banjara: has joined #ruby
[21:56:21] dotix: has joined #ruby
[22:00:08] howdoicomputer: has joined #ruby
[22:00:55] nofxx: has joined #ruby
[22:01:15] jamesaxl|2: has joined #ruby
[22:01:19] decoponio: has joined #ruby
[22:03:28] Rurik: has joined #ruby
[22:03:47] Rurik: has joined #ruby
[22:07:26] fostertheweb: has joined #ruby
[22:07:40] devbug: has joined #ruby
[22:10:18] rickmasta: has joined #ruby
[22:16:06] pontiki: has joined #ruby
[22:18:23] firstdayonthejob: has joined #ruby
[22:19:25] Rurik: has joined #ruby
[22:19:58] Tuxero: has joined #ruby
[22:20:45] jimborodes: has joined #ruby
[22:20:49] jimborodes: https://www.codecademy.com/en/courses/html-css-prj
[22:20:51] jimborodes: are there any more challenges like the codecademy web dev challenges?
[22:23:37] dagda1: has joined #ruby
[22:23:51] apt-get: has joined #ruby
[22:24:06] nofxx: jimborodes, there's exercism and others like it
[22:24:55] Tuxero: has joined #ruby
[22:24:57] bmurt: has joined #ruby
[22:25:21] northfurr: has joined #ruby
[22:25:49] jeanlinux: has joined #ruby
[22:27:30] jeanlinux: has joined #ruby
[22:28:29] finisherr: has joined #ruby
[22:29:05] finisherr: How can I have rvm create the proper ruby version and gemset upon entrance
[22:29:13] finisherr: i keep trying to use the project rvmrc
[22:29:25] finisherr: rather .rvmrc
[22:29:31] finisherr: in conjunctino with .ruby-version
[22:29:34] finisherr: and .ruby-gemset
[22:29:36] finisherr: not working though
[22:29:49] dreinull75: has left #ruby: ("undefined")
[22:30:12] Rurik: has joined #ruby
[22:30:18] finisherr: my .rvmrc has rvm_install_on_use_flag=1 rvm_project_rvmrc=1 rvm_gemset_create_on_use_flag=1
[22:30:37] finisherr: my .ruby-version has 2.0.0
[22:30:46] finisherr: my .ruby-gemset just has the project name
[22:30:51] finisherr: when I cd into the directory, nothing happens
[22:31:38] iko1: has joined #ruby
[22:35:26] esauOp: has joined #ruby
[22:35:27] tkuchiki: has joined #ruby
[22:38:00] firstdayonthejob: has joined #ruby
[22:39:02] finisherr: Figured it out
[22:39:09] finisherr: Had to put those values in ~/.rvmrc
[22:39:19] finisherr: and then just specify the gemset to use in the project .rvmrc
[22:39:30] finisherr: like rvm ruby-2.0.0@myproject
[22:39:50] finisherr: can???t use that in conjunction with the other two .ruby-version or .ruby-gemset files
[22:39:55] finisherr: that wasn???t too clear from the docs
[22:40:59] pwnd_nsfw: has joined #ruby
[22:41:31] jackr: has joined #ruby
[22:42:34] bmurt: has joined #ruby
[22:43:18] devoldmx: has joined #ruby
[22:43:33] CloCkWeRX: has joined #ruby
[22:44:53] gambl0re: has joined #ruby
[22:44:55] ruby-lang922: has joined #ruby
[22:45:42] solocshaw: has joined #ruby
[22:45:50] absolutejam: has joined #ruby
[22:46:08] solocshaw: has joined #ruby
[22:53:08] Helheim: has joined #ruby
[22:55:19] tkuchiki: has joined #ruby
[22:55:22] Vile`: has joined #ruby
[22:55:29] Tuxero: has joined #ruby
[22:56:07] platosha_: has joined #ruby
[23:00:49] tkuchiki_: has joined #ruby
[23:01:45] CorpusCallosum: has joined #ruby
[23:03:21] tkuchiki_: has joined #ruby
[23:03:47] jdawgaz: has joined #ruby
[23:03:53] juanpablo_: has joined #ruby
[23:13:54] minimalism: has joined #ruby
[23:16:26] Rurik: has joined #ruby
[23:16:54] JDiPierro: has joined #ruby
[23:18:47] VictorBjelkholm: has joined #ruby
[23:21:04] tkuchiki: has joined #ruby
[23:22:30] coffeecupp__: has joined #ruby
[23:28:35] duncannz: has joined #ruby
[23:29:31] grenierm: has joined #ruby
[23:30:44] coffeecupp__: has joined #ruby
[23:31:21] michaeldeol: has joined #ruby
[23:33:29] n1lo: has joined #ruby
[23:34:17] Azure: has joined #ruby
[23:35:05] Pathfinder: has joined #ruby
[23:38:15] platosha: has joined #ruby
[23:40:15] FrankD_: has joined #ruby
[23:43:12] karapetyan: has joined #ruby
[23:43:15] platosha: has joined #ruby
[23:43:32] weemsledeux: has joined #ruby
[23:45:02] jackr: has joined #ruby
[23:49:13] freerobby: has joined #ruby
[23:54:03] allomov: has joined #ruby
[23:55:13] ddrmanxbxfr: has joined #ruby
[23:57:05] dotix: has joined #ruby
[23:57:05] dotix: has joined #ruby
[23:58:58] stardiviner: has joined #ruby