« Back to channel list

#ruby - 18 March 2016

« Back 1 day Forward 1 day »
[00:02:00] rkazak: has joined #ruby
[00:02:33] tubuliferous: has joined #ruby
[00:05:59] Radar: Ox0dea: thanks for the example :) I didn't know CSV.parse ignored values like that.
[00:06:21] Ox0dea: Radar: It... doesn't?
[00:06:46] Radar: I would expect the code on #4 there to include the values
[00:06:56] Radar: Oh never mind, I am not braining well again.
[00:07:07] Pathfinder: has joined #ruby
[00:09:09] joonty: has joined #ruby
[00:09:23] CloCkWeRX: has joined #ruby
[00:10:35] A124: has joined #ruby
[00:14:01] mattwashere: has joined #ruby
[00:15:10] hightower2: has joined #ruby
[00:15:29] uglybandersnatch: has joined #ruby
[00:16:45] freakcoder: has joined #ruby
[00:17:10] johnmilton: has joined #ruby
[00:17:34] PedramT: has joined #ruby
[00:17:54] dopamean_: has joined #ruby
[00:18:51] baweaver: has joined #ruby
[00:19:01] victor_: has joined #ruby
[00:21:49] fedexo: has joined #ruby
[00:23:44] chipotle: has joined #ruby
[00:23:45] davedev24: has joined #ruby
[00:31:04] mistermo_: has joined #ruby
[00:32:14] jyaworski: has joined #ruby
[00:34:27] mistermocha: has joined #ruby
[00:36:29] Some-body_: has joined #ruby
[00:36:37] baweaver: has joined #ruby
[00:36:54] griffindy: has joined #ruby
[00:37:26] alexherbo2: has joined #ruby
[00:37:39] pawnbox: has joined #ruby
[00:37:48] gz_rain: has joined #ruby
[00:38:12] Musashi007: has joined #ruby
[00:38:37] jsaak: has joined #ruby
[00:40:36] kies: has joined #ruby
[00:40:36] crank1988: has joined #ruby
[00:42:33] bricker: has joined #ruby
[00:42:33] Kero: has joined #ruby
[00:44:06] jackjackdripper: has joined #ruby
[00:44:37] Gasher: has joined #ruby
[00:46:17] tjbiddle: has joined #ruby
[00:46:26] duckpuppy: has joined #ruby
[00:46:34] tAn: has joined #ruby
[00:47:31] _blizzy_: has joined #ruby
[00:48:09] mistermocha: has joined #ruby
[00:48:41] Guest34101: has joined #ruby
[00:48:55] tomatoes: has joined #ruby
[00:49:03] ljames: has joined #ruby
[00:51:23] crystal77: has joined #ruby
[00:54:19] Ikri: has joined #ruby
[00:55:24] mgorbach: has joined #ruby
[01:02:02] lyoshajapan: has joined #ruby
[01:03:02] sp4rrow: has joined #ruby
[01:03:49] Marsupermammal: has joined #ruby
[01:08:45] ReK2: has joined #ruby
[01:08:45] ReK2: has joined #ruby
[01:12:07] duckpuppy: has joined #ruby
[01:20:21] SenpaiSilver_: has joined #ruby
[01:21:44] chipotle: has joined #ruby
[01:22:44] ramfjord: has joined #ruby
[01:24:56] dnewkerk: has joined #ruby
[01:26:12] _stu_: has joined #ruby
[01:27:21] nhhc: has joined #ruby
[01:27:29] pawnbox: has joined #ruby
[01:31:25] stannard: has joined #ruby
[01:31:29] statelesscode: has joined #ruby
[01:31:40] Musashi007: has joined #ruby
[01:35:04] cdg: has joined #ruby
[01:36:21] victor_: has joined #ruby
[01:37:52] frustrum: has joined #ruby
[01:39:31] nando293921: has joined #ruby
[01:39:31] circa1984: has joined #ruby
[01:39:36] OnePunchMan: has joined #ruby
[01:39:55] awasum: has joined #ruby
[01:41:40] haraoka: has joined #ruby
[01:42:25] ramfjord: has joined #ruby
[01:44:09] RegulationD: has joined #ruby
[01:44:22] bluOxigen_: has joined #ruby
[01:45:05] pawnbox: has joined #ruby
[01:46:04] djbkd_: has joined #ruby
[01:46:42] rkazak: has joined #ruby
[01:47:26] sp4rrow: has joined #ruby
[01:48:08] crystal77: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[01:50:31] pawnbox: has joined #ruby
[01:54:32] ohaibbq: has joined #ruby
[01:55:58] PedramT: has joined #ruby
[01:56:36] jaequery: has joined #ruby
[01:57:02] bronson: has joined #ruby
[02:00:23] joonty: has joined #ruby
[02:07:56] astrobun_: has joined #ruby
[02:09:06] halfamind: has joined #ruby
[02:10:17] htmldrum: has joined #ruby
[02:12:00] wilbert: has joined #ruby
[02:12:31] liquid-silence: has joined #ruby
[02:12:31] liquid-silence: has joined #ruby
[02:15:58] stannard: has joined #ruby
[02:20:08] astrobun_: has joined #ruby
[02:20:54] astrobun_: has joined #ruby
[02:21:19] Guest34101: has joined #ruby
[02:22:41] chagel: has joined #ruby
[02:25:20] blandflakes: has joined #ruby
[02:26:25] liquid-silence: has joined #ruby
[02:26:25] liquid-silence: has joined #ruby
[02:26:26] awasum: has joined #ruby
[02:26:47] mistermo_: has joined #ruby
[02:27:09] p1k: has joined #ruby
[02:27:13] kies: has joined #ruby
[02:28:08] Chagel_: has joined #ruby
[02:30:09] sucks: has joined #ruby
[02:32:47] DmitryBochkarev: has joined #ruby
[02:36:17] arlek: has joined #ruby
[02:38:21] ghr: has joined #ruby
[02:39:42] chagel: has joined #ruby
[02:43:00] Antiarc1: has joined #ruby
[02:45:12] RegulationD: has joined #ruby
[02:46:04] BtcBen: has joined #ruby
[02:47:25] lyoshajapan: has joined #ruby
[02:49:52] subosito: has joined #ruby
[02:51:27] mbff: has joined #ruby
[02:51:36] fullofcaffeine: has joined #ruby
[02:51:38] arescorpio: has joined #ruby
[02:52:16] tubuliferous: has joined #ruby
[02:52:52] mbff: Hello! I am have created a migration that creates a table. How can I prevent changes to the primary key and the timestamp columns? Surely it is typical to have "normal" columns and columns that are readonly/for the purpose of the db
[02:53:00] roobienoobie: has joined #ruby
[02:54:36] awasum: has joined #ruby
[02:54:49] learnprogramming: has joined #ruby
[02:55:06] learnprogramming: has left #ruby: ()
[02:56:53] armando: has joined #ruby
[02:57:03] gbgdev: has joined #ruby
[02:58:22] fullofcaffeine: has joined #ruby
[02:59:04] jyaworski: has joined #ruby
[02:59:24] _djbkd: has joined #ruby
[03:00:22] gumunculus: has joined #ruby
[03:00:34] halfamind: has joined #ruby
[03:01:13] halfamind: has joined #ruby
[03:03:50] Xeago: has joined #ruby
[03:04:41] mdih: has joined #ruby
[03:05:10] fullofcaffeine: has joined #ruby
[03:05:11] A124: has joined #ruby
[03:11:29] chouhoulis: has joined #ruby
[03:11:35] Abrin: has left #ruby: ()
[03:17:22] zast: has joined #ruby
[03:17:32] kirillzh: has joined #ruby
[03:22:14] quakephil_: has joined #ruby
[03:24:00] uglybandersnatch: has joined #ruby
[03:25:20] S01780: has joined #ruby
[03:25:51] duckpuppy: has joined #ruby
[03:33:11] postmodern: has joined #ruby
[03:34:09] chagel: has joined #ruby
[03:34:36] astrobun_: has joined #ruby
[03:36:26] hxegon: has joined #ruby
[03:37:11] shadoi: has joined #ruby
[03:37:57] Don_John: has joined #ruby
[03:38:04] shadoi: has joined #ruby
[03:40:13] terminal_: has joined #ruby
[03:40:23] shadoi: has joined #ruby
[03:41:51] chagel: has joined #ruby
[03:45:59] RegulationD: has joined #ruby
[03:46:25] jaequery: has joined #ruby
[03:47:48] aeterne_: has joined #ruby
[03:50:00] ramfjord: has joined #ruby
[03:50:09] halfamind: has joined #ruby
[03:52:06] astrobun_: has joined #ruby
[03:53:07] duckpuppy: has joined #ruby
[03:57:07] bronson: has joined #ruby
[03:57:25] PedramT: has joined #ruby
[03:57:52] sysodaff: has joined #ruby
[03:59:35] mattwashere: has joined #ruby
[03:59:47] jpfuentes2: has joined #ruby
[04:01:32] chouhoulis: has joined #ruby
[04:04:51] Spami: has joined #ruby
[04:05:48] Peteykun: has joined #ruby
[04:05:53] awasum: has joined #ruby
[04:06:14] htmldrum: has joined #ruby
[04:06:43] fullofcaffeine: has joined #ruby
[04:07:09] baweaver: has joined #ruby
[04:07:43] ascarter: has joined #ruby
[04:08:53] chagel: has joined #ruby
[04:10:33] lyoshajapan: has joined #ruby
[04:14:36] braincrash: has joined #ruby
[04:17:18] systemsgotyou: has joined #ruby
[04:18:25] dcunit3d: has joined #ruby
[04:24:46] fullofcaffeine: has joined #ruby
[04:26:15] lyoshajapan: has joined #ruby
[04:28:04] treaki__: has joined #ruby
[04:31:14] Azure|dc: has joined #ruby
[04:31:54] chagel: has joined #ruby
[04:33:15] lyoshajapan: has joined #ruby
[04:35:12] halfamind: has joined #ruby
[04:36:16] rkazak: has joined #ruby
[04:37:59] jpfuentes2: has joined #ruby
[04:40:04] lyoshajapan: has joined #ruby
[04:43:05] _djbkd: has joined #ruby
[04:47:04] RegulationD: has joined #ruby
[04:47:12] aupadhye: has joined #ruby
[04:47:23] lyoshajapan: has joined #ruby
[04:49:40] Swervz: has joined #ruby
[04:49:42] _djbkd: has joined #ruby
[04:49:52] Swervz: has joined #ruby
[04:50:32] pwnd_nsfw`: has joined #ruby
[04:50:38] duckpuppy: has joined #ruby
[04:50:41] Swervz: Hi please could someone help me getting this project working https://github.com/nikhgupta/scrapix I have never used ruby before so im not sure where to start.
[04:51:04] rkazak: has joined #ruby
[04:54:10] duncannz: has joined #ruby
[04:54:11] trosborn: has joined #ruby
[04:54:12] gix: has joined #ruby
[04:54:19] Musashi007: has joined #ruby
[04:55:02] duncannz: has joined #ruby
[04:55:11] tw1sted: has joined #ruby
[04:55:12] Dreamer3: has joined #ruby
[04:55:13] JoshL: has joined #ruby
[04:55:19] Sirecote: has joined #ruby
[04:55:21] gsingh93: has joined #ruby
[04:55:22] speakingcode: has joined #ruby
[04:55:22] gnarld_: has joined #ruby
[04:56:02] duncannz: has joined #ruby
[04:56:09] bricker: has joined #ruby
[04:56:16] iamvery: has joined #ruby
[04:56:24] jaequery: has joined #ruby
[04:56:25] D9: has joined #ruby
[04:56:37] slash_nick: has joined #ruby
[04:57:01] shadeslayer: has joined #ruby
[04:57:44] Kuukunen: has joined #ruby
[04:59:14] r4z3r: has joined #ruby
[04:59:18] maxmanders: has joined #ruby
[04:59:58] theRoUS: has joined #ruby
[05:00:20] pwnd_nsfw`: has joined #ruby
[05:01:11] lorn: has joined #ruby
[05:02:08] C0deMaver1ck: has joined #ruby
[05:02:36] rohit: has joined #ruby
[05:02:45] moshee: has joined #ruby
[05:02:45] moshee: has joined #ruby
[05:02:52] giraffe: has joined #ruby
[05:04:04] jenrzzz: has joined #ruby
[05:04:27] lyoshajapan: has joined #ruby
[05:04:43] yfeldblum: has joined #ruby
[05:04:59] darkf: has joined #ruby
[05:05:59] yfeldblum: has joined #ruby
[05:06:52] mg^: has joined #ruby
[05:07:32] kpwarr: has joined #ruby
[05:09:16] fullofcaffeine: has joined #ruby
[05:09:27] clamstar: has joined #ruby
[05:10:11] fullofcaffeine: has joined #ruby
[05:10:51] fullofcaffeine: has joined #ruby
[05:11:34] lyoshajapan: has joined #ruby
[05:13:17] joast: has joined #ruby
[05:14:30] Guest92480: has joined #ruby
[05:15:12] tAn: has joined #ruby
[05:15:42] sauvin: has joined #ruby
[05:16:06] p1k: has left #ruby: ("WeeChat 1.4")
[05:17:38] lyoshajapan: has joined #ruby
[05:18:03] stannard: has joined #ruby
[05:18:04] CloCkWeRX: has joined #ruby
[05:18:49] chagel: has joined #ruby
[05:20:08] ohaibbq: has joined #ruby
[05:20:25] rohit: has joined #ruby
[05:21:08] djbkd: has joined #ruby
[05:23:43] Chagel_: has joined #ruby
[05:25:31] jpfuentes2: has joined #ruby
[05:25:34] Musashi007: has joined #ruby
[05:27:20] Rodya_: has joined #ruby
[05:27:45] i8igmac: has joined #ruby
[05:27:52] duckpuppy: has joined #ruby
[05:30:54] victor_: has joined #ruby
[05:31:55] lyoshajapan: has joined #ruby
[05:34:40] PedramT: has joined #ruby
[05:36:09] TheCubeLord: Swervz: Have You Used or Have Any Books
[05:36:58] lvn: has joined #ruby
[05:37:46] joast: has joined #ruby
[05:38:51] lyoshajapan: has joined #ruby
[05:39:42] lyoshajapan: has joined #ruby
[05:42:43] ur5us: has joined #ruby
[05:44:47] duckpuppy: has joined #ruby
[05:45:08] noService: has joined #ruby
[05:47:00] Musashi007: has joined #ruby
[05:48:10] jenrzzz: has joined #ruby
[05:49:32] janmejay: has joined #ruby
[05:50:19] janmejay: i want to read html in my rails app wich i upload there . how can we do that?
[05:50:47] astrobun_: has joined #ruby
[05:52:10] janmejay: i want to read html in my rails app wich i upload there . how can we do that?
[05:52:33] janmejay: is there anyone?
[05:53:48] Nilium: You should probably ask in the #rubyonrails channel.
[05:54:36] tsunamie: has joined #ruby
[05:56:11] skade: has joined #ruby
[05:57:14] janmejay: Nilium: that channel needs resitererd user
[05:57:25] Nilium: So do that.
[05:57:54] rohit: has joined #ruby
[05:58:59] trosborn: has joined #ruby
[05:59:21] bronson: has joined #ruby
[05:59:36] stryek: has joined #ruby
[06:02:44] CloCkWeRX: has joined #ruby
[06:06:02] liquid-silence: has joined #ruby
[06:06:02] liquid-silence: has joined #ruby
[06:07:25] tAn: has joined #ruby
[06:12:34] Tref: has joined #ruby
[06:12:46] cibs: has joined #ruby
[06:13:22] Rahul_Roy: has joined #ruby
[06:13:38] uglybandersnatch: has joined #ruby
[06:15:14] Tref: is there a way to alias the ruby ** exponent operator?
[06:16:10] chagel: has joined #ruby
[06:18:05] duckpuppy: has joined #ruby
[06:18:37] Ox0dea: tref: Could you clarify?
[06:18:51] tAn: has joined #ruby
[06:18:57] Tref: Yeah, one sec I’ll post
[06:19:29] Tref: what’s the web app where you can post and run ruby code? I paired with someone on it yesterday
[06:19:47] Ox0dea: https://eval.in/
[06:20:08] Tref: Ox0dea: what’s up dude
[06:21:27] Tref: that’s actually not the one that I was thinking about
[06:21:42] yfeldblum: has joined #ruby
[06:22:05] Ox0dea: But it'll do.
[06:22:45] Macaveli: has joined #ruby
[06:22:53] tao_: has joined #ruby
[06:23:49] crankharder: has joined #ruby
[06:24:07] Tref: coderpad.io is what I was thinking of
[06:24:49] hk238: has joined #ruby
[06:24:49] Vlat-: has joined #ruby
[06:25:00] Tref: apparently someone had an account, I see its not free
[06:25:09] Tref: in any event https://eval.in/538444
[06:25:36] Tref: if you see on line 3 the last operator is the exponent operator
[06:26:31] Tref: but the problem is that any expression where use `**` is being usurped by the previous single asterix *
[06:26:50] guideX: has joined #ruby
[06:27:15] Tref: the ** needs to come after the * because of the order of precedence of functions in Ruby
[06:27:45] Tref: Ox0dea: aliasing the ** is the only way I could think of to avoid this
[06:28:14] Tref: if theres a better, different way I’m all ears
[06:29:06] merida: has joined #ruby
[06:29:21] merida_: has joined #ruby
[06:29:57] crowell: has joined #ruby
[06:30:49] Ox0dea: tref: Just put ** before *.
[06:31:01] Tref: Ox0dea: read above
[06:31:45] Tref: It needs to be after because of ruby precedence if I put it before it gets evaluated like ((4+5)**3) when the proper way is (4+(5**3))
[06:32:54] Ox0dea: tref: https://eval.in/538447
[06:33:28] rkazak: has joined #ruby
[06:34:36] aganov: has joined #ruby
[06:34:58] lurch_: has joined #ruby
[06:35:06] ni291187: has joined #ruby
[06:36:03] Tref: Ox0dea: now look when you put multiplication in https://eval.in/538450
[06:36:25] blandflakes: has joined #ruby
[06:37:04] Ox0dea: tref: Wow, your one is way bigger! Well done.
[06:37:11] ni291187: has left #ruby: ()
[06:38:00] Tref: Ox0dea: lol so yeah - back to the original issue
[06:38:09] Ox0dea: tref: Cheekiness aside, you won't be able to get proper order of operations without, y'know, implementing that.
[06:38:32] Tref: Ox0dea: what do you mean by _that_
[06:39:00] Tref: Ox0dea: also where is the effing documentation for the ** operator? I can’t find it
[06:40:10] Ox0dea: tref: `ri 'Fixnum#**'` should take you right to it.
[06:40:36] Ox0dea: &ri Fixnum#**
[06:40:36] `derpy: http://ruby-doc.org/core-2.3.0/Fixnum.html#method-i-2A-2A
[06:40:42] Ox0dea: And it's on the Internet as well.
[06:41:46] tAn: has joined #ruby
[06:42:00] cpup: has joined #ruby
[06:44:05] aufi: has joined #ruby
[06:44:44] Ox0dea: tref: I'm not sure I understand how you figure aliasing is the fix?
[06:47:08] Tref: Ox0dea: since * is iterating before ** its taking expressions like “4**3” and splitting them to [“4”, “”, “3”] instead of [“4”, “3”]
[06:47:18] Tref: Ox0dea: if you trace through the code you’ll see
[06:47:30] Ox0dea: tref: Got that. How does aliasing come into the picture?
[06:48:19] RegulationD: has joined #ruby
[06:49:23] jenrzzz: has joined #ruby
[06:49:29] Tref: so if something like Fixnum#_ was used instead of Fixnum#** there wouldnt be that collision
[06:49:56] Tref: Ox0dea: ^
[06:51:16] Ox0dea: tref: Better than replacing "**" with something arbitrary to avoid the collision would be to properly parse the input.
[06:51:21] jtperreault: has joined #ruby
[06:51:56] Tref: Ox0dea: could you be more specifi
[06:52:19] stryek: has joined #ruby
[06:53:17] mrgrieves: has joined #ruby
[06:53:40] Ox0dea: tref: If you want an immediate "fix" to the problem you've run into, #split can be passed a regular expression, and there are plenty of ways to match "*" without inadvertently matching "**" as well.
[06:54:00] Ox0dea: If you want to do it correctly and learn a great algorithm along the way: https://en.wikipedia.org/wiki/Shunting-yard_algorithm
[06:55:07] jtdoncas: has joined #ruby
[06:58:01] andikr: has joined #ruby
[06:58:44] tvw: has joined #ruby
[07:00:33] bronson: has joined #ruby
[07:00:57] Chagel_: has joined #ruby
[07:02:02] configged: has joined #ruby
[07:03:25] _djbkd: has joined #ruby
[07:06:12] Ox0dea: tref: An RPN calculator is practically a one-liner in Ruby. It's possible to evaluate infix directly, but you essentially end up maintaining your own stack anyway. Converting to RPN and evaluating that is more joy.
[07:06:36] Tref: I’ll look into that then
[07:08:31] jas02: has joined #ruby
[07:08:34] skade: has joined #ruby
[07:08:58] jas02: has left #ruby: ()
[07:09:57] scepticulous: has joined #ruby
[07:10:19] Musashi007: has joined #ruby
[07:11:10] Ox0dea: tref: For reference, then, #** is a method and can be aliased like any other.
[07:11:20] tAn: has joined #ruby
[07:12:00] tAn: has joined #ruby
[07:12:30] stryek: has joined #ruby
[07:12:31] Tref: Ox0dea: can you provide an example of that? I tried to alias it to underscore but it didnt work
[07:12:43] Ox0dea: >> class Fixnum; alias pow **; end; 4.pow 3 # tref
[07:12:44] ruby[bot]: Ox0dea: # => 64 (https://eval.in/538457)
[07:17:09] Peteykun: has joined #ruby
[07:20:03] devbug: has joined #ruby
[07:26:59] mhoungbo: has joined #ruby
[07:28:30] Trynemjoel: has joined #ruby
[07:28:46] KnownSyntax: has joined #ruby
[07:28:48] KnownSyntax: has joined #ruby
[07:29:18] chagel: has joined #ruby
[07:29:32] hightower2: has joined #ruby
[07:31:43] Ox0dea: tref: Just so you know, postfix notation is so simple that you can write an RPN calculator in Ruby without using any letters or numbers: https://eval.in/538462
[07:33:21] devbug_: has joined #ruby
[07:33:37] kam270: has joined #ruby
[07:33:52] emilkarl: has joined #ruby
[07:34:25] Chagel_: has joined #ruby
[07:34:48] vdamewood: has joined #ruby
[07:35:58] kam270: has joined #ruby
[07:37:40] firstdayonthejob: has joined #ruby
[07:37:45] sandelius: has joined #ruby
[07:37:55] Tref: Ox0dea: hold on I have to check this out
[07:38:05] Tref: that’s pretty crypric
[07:38:10] Tref: cryptic*
[07:38:35] Ox0dea: tref: Yes, I guess that was probably intended.
[07:38:42] kam270: has joined #ruby
[07:38:51] reprazent: has joined #ruby
[07:38:58] Musashi007: has joined #ruby
[07:39:05] Tref: Ox0dea: I stll have to get my expression into RPN
[07:39:28] Ox0dea: It's pretty great that you can write Ruby even if all your alphabetical keys are dead.
[07:40:15] Ox0dea: tref: Aye, shunting yard is a little more involved than an RPN calculator, but not by much.
[07:40:48] jaruga: has joined #ruby
[07:41:02] Tref: Ox0dea: at this point im having a hard enough time with a regex that matches two asterix’s
[07:41:12] Mia: has joined #ruby
[07:41:13] Mia: has joined #ruby
[07:41:29] Ox0dea: tref: Using regular expressions is really not the right approach here.
[07:41:32] jaruga: has joined #ruby
[07:41:39] Disavowed: has joined #ruby
[07:41:57] Ox0dea: I offered that as a bad solution because I trusted you to choose the good one. :x
[07:42:15] solocshaw: has joined #ruby
[07:42:51] Tref: Ox0dea: well Im stuck with the age-old dillema. I don’t think I’ll be able to comprehend and implement the RPN solution before my deadline
[07:43:02] Tref: of an hour ago lol
[07:43:17] Rodya_: has joined #ruby
[07:43:17] Disavowed: Morning all. New to Ruby and struggling with Rspec. Could anyone tell me how to debug this: expected #<String:70108787048520> => "Test" got #<String:70108787048600> => "Test"
[07:43:40] bluOxigen: has joined #ruby
[07:43:47] Ox0dea: Disavowed: Use #eq.
[07:44:47] Disavowed: 0x0dea: Damnit! I had 'equal'! Thank you so much!
[07:44:52] Ox0dea: Disavowed: Happy to help.
[07:45:09] Ishido: has joined #ruby
[07:45:38] bricker: has joined #ruby
[07:46:47] codecop: has joined #ruby
[07:46:50] codecop_: has joined #ruby
[07:47:10] aswen: has joined #ruby
[07:48:32] symm-: has joined #ruby
[07:50:46] davee_: has joined #ruby
[07:51:23] pawnbox: has joined #ruby
[07:53:14] spintronic: has joined #ruby
[07:57:54] noServic1: has joined #ruby
[07:59:21] duckpuppy: has joined #ruby
[08:00:22] PlasmaStar: has joined #ruby
[08:03:20] yfeldblum: has joined #ruby
[08:06:53] merida_: has joined #ruby
[08:06:54] merida__: has joined #ruby
[08:07:31] astrobun_: has joined #ruby
[08:07:49] jaruga: has joined #ruby
[08:08:14] chagel: has joined #ruby
[08:13:29] krz: has joined #ruby
[08:14:26] e: has joined #ruby
[08:16:04] vondruch: has joined #ruby
[08:16:05] TomyWork: has joined #ruby
[08:16:17] htmldrum: has joined #ruby
[08:19:00] DoubleMalt: has joined #ruby
[08:19:20] maner: has joined #ruby
[08:19:41] bluOxigen: has joined #ruby
[08:31:04] skade: has joined #ruby
[08:35:23] ixti: has joined #ruby
[08:35:58] rdark: has joined #ruby
[08:37:39] e: has joined #ruby
[08:38:15] [dmp]: has joined #ruby
[08:40:26] ferr: has joined #ruby
[08:41:54] trosborn: has joined #ruby
[08:44:12] avenj: has joined #ruby
[08:46:24] chagel: has joined #ruby
[08:48:02] marr: has joined #ruby
[08:49:27] noService: has joined #ruby
[08:49:40] matp: has joined #ruby
[08:50:06] RegulationD: has joined #ruby
[08:51:20] doublemalt_: has joined #ruby
[08:52:42] terlar: has joined #ruby
[08:53:30] charlemagne: has joined #ruby
[08:57:44] Couch: has joined #ruby
[08:57:45] trosborn: has joined #ruby
[09:00:13] baweaver: has joined #ruby
[09:00:16] futilegames: has joined #ruby
[09:03:17] bronson: has joined #ruby
[09:06:04] SCHAAP137: has joined #ruby
[09:07:14] mikecmpbll: has joined #ruby
[09:08:16] PedramT: has joined #ruby
[09:08:17] merida: has joined #ruby
[09:08:22] merida_: has joined #ruby
[09:08:27] uglybandersnatch: has joined #ruby
[09:09:31] matp: has joined #ruby
[09:11:00] sandelius: has joined #ruby
[09:12:08] GioVdK: has joined #ruby
[09:15:52] uglybandersnatch: has joined #ruby
[09:16:13] igam: has joined #ruby
[09:17:41] aryaching: has joined #ruby
[09:18:56] gbgdev_: has joined #ruby
[09:19:36] sepp2k: has joined #ruby
[09:19:56] steffkes: has joined #ruby
[09:19:56] steffkes: has joined #ruby
[09:20:44] reprazent: has joined #ruby
[09:20:55] stannard: has joined #ruby
[09:21:21] neanderslob_: has joined #ruby
[09:21:53] reprazent: has joined #ruby
[09:21:58] Musashi007: has joined #ruby
[09:23:36] woo: has joined #ruby
[09:23:59] mrgrieves: has joined #ruby
[09:25:38] atmosx: has joined #ruby
[09:33:45] mfaeh: has joined #ruby
[09:37:17] jenrzzz: has joined #ruby
[09:38:42] reprazent: has joined #ruby
[09:38:54] joonty: has joined #ruby
[09:39:26] minimalism: has joined #ruby
[09:39:48] Didac: has joined #ruby
[09:40:36] mdw: has joined #ruby
[09:41:25] steffkes: has joined #ruby
[09:42:58] acalewin: has joined #ruby
[09:42:59] reprazent: has joined #ruby
[09:43:25] dgncn: has joined #ruby
[09:44:28] PedramT: has joined #ruby
[09:45:44] crdpink: has joined #ruby
[09:48:57] Musashi007: has joined #ruby
[09:49:03] htmldrum: has joined #ruby
[09:50:40] _lazarevsky: has joined #ruby
[09:52:27] trosborn: has joined #ruby
[09:54:21] ujjain: Can somebody help me fix this error? no implicit conversion of String into Integer" (using ==) (RSpec::Expectations::ExpectationNotMetError) - http://pastebin.com/7HR1ceYR
[09:54:21] ruby[bot]: ujjain: as I told you already, please use https://gist.github.com
[09:54:41] robbyoconnor: has joined #ruby
[09:55:41] uglybandersnatch: has joined #ruby
[09:55:43] ujjain: Can somebody help me fix this error? no implicit conversion of String into Integer" (using ==) (RSpec::Expectations::ExpectationNotMetError) - Source: https://gist.github.com/ujjain/42ed3507e6c0465658e3
[09:59:27] evidex: has joined #ruby
[10:00:00] biberu: has joined #ruby
[10:00:36] woo: has joined #ruby
[10:01:48] fgvfpr: has joined #ruby
[10:01:50] pawnbox: has joined #ruby
[10:02:18] reprazent: has joined #ruby
[10:02:57] steffkes: has joined #ruby
[10:04:08] charlemagne: has joined #ruby
[10:04:14] ujjain: what is #{} in ruby?
[10:05:04] reprazent: has joined #ruby
[10:06:11] chagel: has joined #ruby
[10:07:30] _lazarevsky: has joined #ruby
[10:07:41] _lazarevsky: I need help parsing a string
[10:08:17] hightower2: ujjain, way to interpolate within strings... e.g. puts "I have #{ number } tasks"
[10:08:25] _lazarevsky: name = "com.app.NAMESPACE.costoptimizer.key";
[10:09:12] _lazarevsky: 'com.app.NAMESPACE.llm.database.root' => merge_configs($llm_mysql),
[10:09:25] _lazarevsky: the first one should return -> com.app.NAMESPACE.costoptimizer.key
[10:09:25] scepticulous: ujjain: which line does the error origin from? the message mentions == , so maybe stage or livecycle_settings['livecycle_state'] is not a string ?
[10:09:37] _lazarevsky: the second one should return -> com.app.NAMESPACE.llm.database.root
[10:10:03] _lazarevsky: I have grep-ed my git project for com.app.NAMESPACE and got thousands of results
[10:10:15] _lazarevsky: now I wanna remove all the noise and just keep the full package name
[10:10:39] _lazarevsky: could someone please give me some pointers? I guess the heuristic should be:
[10:11:14] _lazarevsky: 1) find com.app.NAMESPACE and keep going until you reach a character which is different to a letter or a .
[10:11:18] _lazarevsky: does that make sense?
[10:13:51] platzhirsch: has joined #ruby
[10:13:53] ujjain: scepticulous , thanks, I replaced the array by [0] and [1] and it works now
[10:15:19] PedramT: has joined #ruby
[10:17:47] r4z3r: has joined #ruby
[10:17:47] andrewvos: has joined #ruby
[10:19:55] charlemagne: has joined #ruby
[10:20:02] fluido: has joined #ruby
[10:21:04] yfeldblum: has joined #ruby
[10:24:41] last_staff: has joined #ruby
[10:26:17] PedramT: has joined #ruby
[10:26:26] uglybandersnatch: has joined #ruby
[10:26:52] workmad3: has joined #ruby
[10:28:56] Azure|dc: has joined #ruby
[10:30:14] Xeago: has joined #ruby
[10:33:24] Spami: has joined #ruby
[10:33:51] Cohedrin: has joined #ruby
[10:34:02] tvw: has joined #ruby
[10:35:26] Rodya_: has joined #ruby
[10:37:07] Mon_Ouie: has joined #ruby
[10:39:42] Xeago: has joined #ruby
[10:43:29] snowy: has joined #ruby
[10:43:39] t-ask: has joined #ruby
[10:44:23] htmldrum: has joined #ruby
[10:46:04] mdw: has joined #ruby
[10:46:32] charlemagne: has joined #ruby
[10:47:43] Xeago: has joined #ruby
[10:50:22] manveru: _lazarevsky: you mean like sed?
[10:51:06] gbgdev: has joined #ruby
[10:51:20] mfaeh: has joined #ruby
[10:51:23] RegulationD: has joined #ruby
[10:51:33] manveru: _lazarevsky: not sure why you're expecting the output to be the same as input
[10:53:24] manveru: also, this doesn't exactly look like ruby, maybe PHP or Java?
[10:53:25] platzhirsch: has joined #ruby
[10:54:32] Mon_Ouie: has joined #ruby
[10:54:44] pawnbox: has joined #ruby
[10:54:55] roshanavand: has joined #ruby
[11:00:28] fexilal: has joined #ruby
[11:01:23] baweaver: has joined #ruby
[11:02:00] mrmortondk: has joined #ruby
[11:02:44] mikar: has joined #ruby
[11:03:42] Guest24280: has joined #ruby
[11:04:51] bronson: has joined #ruby
[11:05:12] gumunculus: has left #ruby: ("idle timeout")
[11:05:36] htmldrum: has joined #ruby
[11:05:54] andrewvos: has joined #ruby
[11:06:20] rodfersou: has joined #ruby
[11:06:25] Gasher: has joined #ruby
[11:07:09] CloCkWeRX: has joined #ruby
[11:07:14] Gasher: has joined #ruby
[11:07:36] Gasher: has joined #ruby
[11:08:59] phredus: has joined #ruby
[11:17:43] trinaldi: has joined #ruby
[11:18:06] pawnbox: has joined #ruby
[11:22:59] janelleb: has joined #ruby
[11:25:55] dgncn: has joined #ruby
[11:27:21] spiman: has joined #ruby
[11:27:36] ldnunes: has joined #ruby
[11:30:19] ponga: has joined #ruby
[11:31:15] SenpaiSilver: has joined #ruby
[11:32:54] PedramT: has joined #ruby
[11:33:37] lkba: has joined #ruby
[11:34:25] CasBaIT: has joined #ruby
[11:36:33] Rodya_: has joined #ruby
[11:41:34] Musashi007: has joined #ruby
[11:43:38] but3k4: has joined #ruby
[11:44:56] workmad3_: has joined #ruby
[11:44:57] platzhirsch: has left #ruby: ()
[11:45:07] charlemagne: has joined #ruby
[11:46:20] n008f4g_: has joined #ruby
[11:48:45] sdothum: has joined #ruby
[11:48:46] charlemagne: has joined #ruby
[11:48:51] fretted: has joined #ruby
[11:50:03] workmad3: has joined #ruby
[11:50:12] fretted: has left #ruby: ()
[11:50:16] armyriad: has joined #ruby
[11:52:06] blackoperat: has joined #ruby
[11:53:42] tAn: has joined #ruby
[11:53:53] Ropeney: has joined #ruby
[11:54:38] blackoperat: has joined #ruby
[11:55:08] pawnbox: has joined #ruby
[11:56:31] _blizzy_: has joined #ruby
[11:58:21] quakephil: has joined #ruby
[11:59:16] chouhoulis: has joined #ruby
[12:01:26] wreet: has joined #ruby
[12:03:50] steffkes: has joined #ruby
[12:04:21] Guest34101: has joined #ruby
[12:04:26] spiman_: has joined #ruby
[12:05:45] PedramT: has joined #ruby
[12:06:53] gregf: has joined #ruby
[12:07:36] synthroid: has joined #ruby
[12:08:46] pawnbox: has joined #ruby
[12:09:40] krz: has joined #ruby
[12:10:00] roshanavand: has joined #ruby
[12:10:45] JakFrist: has joined #ruby
[12:11:03] joast: has joined #ruby
[12:11:55] charlemagne: has joined #ruby
[12:19:37] rbennacer: has joined #ruby
[12:20:09] Peteykun: has joined #ruby
[12:21:38] merida: @ujjain this is because when the request and response data type not matching(like json and hash)
[12:22:04] merida: _ujjain this is because when the request and response data type not matching(like json and hash)
[12:22:21] godzillaenlacasa: has joined #ruby
[12:25:09] merida: ujjain, what is #{} in ruby? dis is String Interpolation
[12:28:04] roshanavand: has joined #ruby
[12:30:44] ujjain: thanks a lot merida
[12:30:52] ujjain: eres de merida mismo? me encanto esta ciudad
[12:31:52] merida: ujjain which language is that?
[12:32:08] ujjain: Spanish, the language they speak in Merida, Mexico
[12:32:32] merida: nope i know english :P only
[12:32:41] ujjain: eres => you are, de => from,
[12:32:48] ujjain: hehe no worries :) thanks for your help
[12:35:14] a1187211: has joined #ruby
[12:35:37] but3k4: has joined #ruby
[12:37:40] Rodya_: has joined #ruby
[12:43:46] _blizzy_: has joined #ruby
[12:44:12] SG045734: has joined #ruby
[12:45:49] halfamind: has joined #ruby
[12:49:05] charlemagne: has joined #ruby
[12:52:50] jaiks: has joined #ruby
[12:52:50] chagel: has joined #ruby
[12:53:03] JakFrist: has joined #ruby
[12:53:07] RegulationD: has joined #ruby
[12:53:32] haylon: has joined #ruby
[12:53:39] charlema_: has joined #ruby
[12:55:17] oquidave: has joined #ruby
[12:55:32] Prominent: has joined #ruby
[12:57:00] tkiel: has joined #ruby
[12:59:12] tvw: has joined #ruby
[13:02:07] baweaver: has joined #ruby
[13:03:31] charlemagne: has joined #ruby
[13:04:35] roshanavand: has joined #ruby
[13:05:02] Marsupermammal: has joined #ruby
[13:06:22] woo: has joined #ruby
[13:06:27] toaoMgeorge: has joined #ruby
[13:06:40] _blizzy_: has joined #ruby
[13:07:11] bronson: has joined #ruby
[13:07:36] vdamewood: has joined #ruby
[13:07:52] treehug88: has joined #ruby
[13:12:46] toaoMgeorge: has joined #ruby
[13:13:28] mwlang: has joined #ruby
[13:13:50] mfaeh: has joined #ruby
[13:14:44] Linell: has left #ruby: ()
[13:15:11] pabs: has joined #ruby
[13:15:23] ChiefAlexander: has joined #ruby
[13:17:47] kobain: has joined #ruby
[13:18:59] jottr_: has joined #ruby
[13:21:41] joonty: has joined #ruby
[13:22:11] kerp_: has joined #ruby
[13:23:05] stannard: has joined #ruby
[13:23:06] noService: has joined #ruby
[13:23:26] kerp_: Hi all, does anybody know if the ncursesw gem supports PADs? I was unable to find any resources on the topic...
[13:24:29] ChiefAlexander: has joined #ruby
[13:26:21] tomatoes: has joined #ruby
[13:32:24] htmldrum: has joined #ruby
[13:33:15] malconis: has joined #ruby
[13:33:25] oz: has joined #ruby
[13:33:46] skade: has joined #ruby
[13:34:59] snowy: has joined #ruby
[13:37:49] DoubleMalt: has joined #ruby
[13:38:44] _stu_: has joined #ruby
[13:38:54] malconis: has joined #ruby
[13:38:56] decoponio: has joined #ruby
[13:39:24] nennes: has joined #ruby
[13:39:39] Rodya_: has joined #ruby
[13:39:45] Ropeney: has joined #ruby
[13:40:22] Snowy_: has joined #ruby
[13:42:37] reprazent: has joined #ruby
[13:43:38] reprazent: has joined #ruby
[13:43:39] cdg: has joined #ruby
[13:43:41] nfk|laptop: has joined #ruby
[13:44:50] yeticry: has joined #ruby
[13:44:51] bluOxigen_: has joined #ruby
[13:47:23] griffindy: has joined #ruby
[13:47:40] callen92: has joined #ruby
[13:47:42] roobienoobie: has joined #ruby
[13:47:44] agit0: has joined #ruby
[13:48:18] swills: has joined #ruby
[13:48:24] `tim`: has joined #ruby
[13:48:42] stannard: has joined #ruby
[13:49:39] grill: has joined #ruby
[13:49:42] bricker: has joined #ruby
[13:52:53] n008f4g_: has joined #ruby
[13:53:01] frustrum: has joined #ruby
[13:55:16] jrafanie: has joined #ruby
[13:55:59] duckpuppy: has joined #ruby
[13:56:19] Ropeney: has joined #ruby
[13:56:51] krz: has joined #ruby
[13:57:15] DaniG2k: has joined #ruby
[13:57:43] mattwashere: has joined #ruby
[14:04:13] mattwash_: has joined #ruby
[14:04:59] DmitryBochkarev: has joined #ruby
[14:05:06] Guest34101: has joined #ruby
[14:06:19] ChiefAlexander: has joined #ruby
[14:07:05] reprazent: has joined #ruby
[14:08:01] jottr: has joined #ruby
[14:09:05] reprazent: has joined #ruby
[14:10:28] ChiefAlexander: has joined #ruby
[14:15:05] blandflakes: has joined #ruby
[14:16:22] chouhoulis: has joined #ruby
[14:17:53] shredding: has joined #ruby
[14:18:53] theRoUS: has joined #ruby
[14:20:01] jyaworski: has joined #ruby
[14:22:25] blandflakes: has joined #ruby
[14:22:55] axl_: has joined #ruby
[14:23:36] whippythellama: has joined #ruby
[14:24:13] duckpuppy: has joined #ruby
[14:24:15] fullofcaffeine: has joined #ruby
[14:24:51] guardian: has joined #ruby
[14:25:46] Mon_Ouie: has joined #ruby
[14:27:17] kies: has joined #ruby
[14:28:40] Yiota: has joined #ruby
[14:30:47] niko: has joined #ruby
[14:32:35] tjohnson: has joined #ruby
[14:33:45] shevy: will ruby perserve
[14:34:06] mostlybadfly: has joined #ruby
[14:34:33] Karix: has joined #ruby
[14:37:01] tubuliferous_: has joined #ruby
[14:37:27] Karix: has joined #ruby
[14:37:50] allcentury: has joined #ruby
[14:38:01] tenderlo_: has joined #ruby
[14:38:39] woo: has joined #ruby
[14:40:01] Prominent: has joined #ruby
[14:40:39] matp: has joined #ruby
[14:40:49] Rodya_: has joined #ruby
[14:43:19] alexherbo2: has joined #ruby
[14:46:04] Guest92480: has joined #ruby
[14:47:34] mallu: has joined #ruby
[14:47:44] tekk: has joined #ruby
[14:48:26] jpfuentes2: has joined #ruby
[14:51:23] cpup: has joined #ruby
[14:51:57] zast: has joined #ruby
[14:52:08] davedev24: has joined #ruby
[14:52:46] agit0: has joined #ruby
[14:54:03] rippa: has joined #ruby
[14:54:21] jottr_: has joined #ruby
[14:54:58] Vlat-: has joined #ruby
[14:55:20] AlexRussia: has joined #ruby
[14:59:22] bricker: has joined #ruby
[15:00:31] tamole: has joined #ruby
[15:03:03] baweaver: has joined #ruby
[15:03:20] noway_: has joined #ruby
[15:04:13] tubuliferous_: has joined #ruby
[15:06:09] CasBaIT: has joined #ruby
[15:06:11] jyaworski: has joined #ruby
[15:06:12] krz: has joined #ruby
[15:07:20] jottr: has joined #ruby
[15:08:11] norc: has joined #ruby
[15:09:00] bronson: has joined #ruby
[15:09:38] bezhermoso: has joined #ruby
[15:10:40] davedev24: has joined #ruby
[15:12:02] terminalrecluse: has joined #ruby
[15:12:23] davedev24: has joined #ruby
[15:12:57] woo: has joined #ruby
[15:14:06] davedev24: has joined #ruby
[15:15:09] x77686d: has joined #ruby
[15:15:59] Bish: n1colas: HELLO
[15:17:40] sesquipedalian: has joined #ruby
[15:18:24] _blizzy_: has joined #ruby
[15:20:07] chagel: has joined #ruby
[15:20:11] fuzzyhorns: has joined #ruby
[15:22:25] noService: has joined #ruby
[15:25:24] aryaching: has joined #ruby
[15:25:52] dikaio: has joined #ruby
[15:26:47] idletask: has joined #ruby
[15:27:20] hxegon: has joined #ruby
[15:27:21] JakFrist: has joined #ruby
[15:29:00] nerium: has joined #ruby
[15:30:34] Guest34101: has joined #ruby
[15:31:13] eljimmy: has joined #ruby
[15:32:38] uglybandersnatch: has joined #ruby
[15:33:57] jpfuentes2: has joined #ruby
[15:35:45] johnmilton: has joined #ruby
[15:35:55] Prominent: has joined #ruby
[15:37:01] jottr: has joined #ruby
[15:38:47] TomyLobo: has joined #ruby
[15:39:06] ukazap: has joined #ruby
[15:42:04] TheCubeLord: has joined #ruby
[15:43:13] halfamind1: has joined #ruby
[15:43:19] marxarelli: has joined #ruby
[15:47:14] bweston92: has joined #ruby
[15:47:44] Ishido: has joined #ruby
[15:48:14] zarubin: has joined #ruby
[15:48:19] noService: has joined #ruby
[15:48:54] FooMunki: has joined #ruby
[15:50:51] mhoungbo: has joined #ruby
[15:51:19] marr: has joined #ruby
[15:51:22] [Butch]: has joined #ruby
[15:51:53] jottr: has joined #ruby
[15:54:07] decaff: has joined #ruby
[15:54:34] rkazak: has joined #ruby
[15:56:11] myntcake: has joined #ruby
[15:56:16] DarkBushido: has joined #ruby
[15:56:16] DarkBushido: has joined #ruby
[15:56:48] myntcake: has anyone here tried the launch school(previously Tealeaf academy) program? what do you guys think of it?
[15:58:32] gbgdev: has joined #ruby
[15:58:42] mistermocha: has joined #ruby
[15:59:33] mistermocha: has joined #ruby
[15:59:51] bezhermoso: has joined #ruby
[16:00:01] stardiviner: has joined #ruby
[16:00:14] aspiers: has joined #ruby
[16:00:24] amclain: has joined #ruby
[16:01:12] jpfuentes2: has joined #ruby
[16:01:32] bigmyx: has joined #ruby
[16:01:40] DarkBushido: has left #ruby: ("Leaving...")
[16:01:43] DarkBushido: has joined #ruby
[16:02:38] mfaeh: has joined #ruby
[16:02:45] _stu_: has joined #ruby
[16:03:20] devbug: has joined #ruby
[16:03:34] bigmyx: hey folks, I am trying to use Chef's git resource as described here: https://docs.chef.io/resource_git.html, when I try to pass a hash to environment method in the block like this : `environment { 'VAR' => 'whatever' }` - I got error: `syntax error, unexpected =>, expecting '}'`
[16:03:49] reprazent: has joined #ruby
[16:04:54] adaedra: try adding parenthesis.
[16:05:13] fuzzyhorns: has left #ruby: ()
[16:05:38] adaedra: { } is considered as block parameter in this context.
[16:05:39] alexherbo2: has joined #ruby
[16:05:49] freakcoder: has joined #ruby
[16:07:00] merida: has joined #ruby
[16:07:01] merida_: has joined #ruby
[16:08:45] davee_: has joined #ruby
[16:09:02] aryaching: has joined #ruby
[16:09:03] bigmyx: adaedra: what would be the correct syntax than?
[16:10:17] adaedra: either `foo 'a' => 'b'`, either foo({'a' => 'b'})`
[16:10:45] arlek: has joined #ruby
[16:11:28] matp: has joined #ruby
[16:11:44] shredding: has joined #ruby
[16:13:15] bigmyx: adaedra: got it, thanks
[16:13:26] synthroid: has joined #ruby
[16:14:48] bob434: has joined #ruby
[16:16:15] whippythellama: has joined #ruby
[16:16:21] Spami: has joined #ruby
[16:16:27] dhollinger: has joined #ruby
[16:17:28] barberj: has joined #ruby
[16:20:01] spiman: has joined #ruby
[16:20:38] PedramT: has joined #ruby
[16:20:47] TheCubeLord: has joined #ruby
[16:22:20] BtcBen: has joined #ruby
[16:24:46] danielwzd: has joined #ruby
[16:25:39] hxegon: has joined #ruby
[16:25:40] gbgdev: has joined #ruby
[16:28:10] crunk_bear: has joined #ruby
[16:28:18] noway_: has joined #ruby
[16:29:37] d0nn1e: has joined #ruby
[16:31:38] hightower3: has joined #ruby
[16:35:23] nano-: drbrain: excellent, thanks!
[16:35:43] symm-: has joined #ruby
[16:36:03] shevy: does anyone know if there is some direct link to that ruby contributor's convention or agreement? that thing that is new and I think not more than 3 months old or so
[16:36:35] b|ackwolf: has joined #ruby
[16:36:38] jpfuentes2: has joined #ruby
[16:37:17] b|ackwolf: how important enumerator is in Ruby world?
[16:37:54] Dimik: has joined #ruby
[16:38:49] shevy: b|ackwolf very, just look at what you can do with them
[16:39:19] shevy: you have ... .each .each_with_index .inspect .next .size .with_object
[16:41:20] stunder001: has joined #ruby
[16:41:25] Maletor: has joined #ruby
[16:41:36] PedramT: has joined #ruby
[16:42:16] Rodya_: has joined #ruby
[16:43:02] the_drow: has joined #ruby
[16:43:10] aryaching: has joined #ruby
[16:43:20] binaryplease: has joined #ruby
[16:44:52] b|ackwolf: shevy, thanks. I'm reading "The Well-Grounded Rubyist" chapter 10 and I think I don't get the idea. should I continue to read or step back and read again?
[16:45:03] Spami: has joined #ruby
[16:45:32] x77686d: Does anybody know the rationale behind String#each being removed in 1.9?
[16:46:11] darix: x77686d: what do you want to do?
[16:46:44] darix: x77686d: there is s.each_byte s.each_char s.each_codepoint s.each_line
[16:46:49] darix: depending on what you want to do
[16:46:51] x77686d: produce s[0], s[1], ...
[16:47:23] darix: well you want bytes? chars or codepoints?
[16:47:45] darix: s.bytes[1] s.chars[1] s.codepoints[1]
[16:47:57] terminalrecluse: has joined #ruby
[16:49:18] wldcordeiro: has joined #ruby
[16:49:52] x77686d: I want whatever s[0], s[1], ..., produces, just like Array#each produces a[0], a[1], ... :)
[16:50:10] adaedra: &ri String#[]
[16:50:10] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-5B-5D
[16:50:37] adaedra: it says "character", so I guess you want each_char
[16:50:56] x77686d: I understand the distinctions but it seems like removing String#each broke a reasonable behavior and I'm wanting to see what Matz' thinking was.
[16:50:57] PedramT: has joined #ruby
[16:51:14] bronson: has joined #ruby
[16:51:16] jaequery: has joined #ruby
[16:51:39] adaedra: iirc, 1.9 added Unicode support, and in the same time distinction between the three categories above. #each may have feeled too ambiguous.
[16:51:49] tomatoes: has joined #ruby
[16:51:59] gbgdev: has joined #ruby
[16:52:55] Ox0dea: x77686d: String is not Enumerable.
[16:53:37] shevy: b|ackwolf I don't know the chapter, more important than the chapter is that you can iterate through a collection thanks to enumerator
[16:54:26] mhoungbo: has joined #ruby
[16:54:38] shevy: damn unicode breaking old behaviour!
[16:54:40] Ox0dea: x77686d: To clarify, the existence of String#each implies that, say, String#map should "do the right thing", but there's no clear definition thereof.
[16:55:03] pawnbox: has joined #ruby
[16:55:19] adaedra: shevy: damn unicode fixing bad behavior!
[16:55:49] RegulationD: has joined #ruby
[16:58:48] jpfuentes2: has joined #ruby
[16:59:53] ramfjord: has joined #ruby
[17:00:11] tommd: has joined #ruby
[17:00:16] Ox0dea: b|ackwolf: I'd strongly advise against proceeding until you've got the general idea.
[17:00:57] pipework: ACTION salutes General Idea
[17:01:07] Mon_Ouie: has joined #ruby
[17:01:53] Alayde: has joined #ruby
[17:02:30] Alayde: has left #ruby: ()
[17:02:35] lurch_: has joined #ruby
[17:03:01] b|ackwolf: Ox0dea, thanks for your mention.
[17:03:16] thenextmogul: has joined #ruby
[17:03:46] aryaching: has joined #ruby
[17:03:50] Rodya_: has joined #ruby
[17:03:54] gizmore: has joined #ruby
[17:05:24] sucks: has joined #ruby
[17:05:41] merida_: has joined #ruby
[17:05:49] pawnbox: has joined #ruby
[17:05:57] tvw: has joined #ruby
[17:05:57] Ox0dea: b|ackwolf: Enumerators give you external iteration (arbitrary control of the loop with something more versatile than an index) and "internal construction", to put it to a phrase. Array on steroids, give or take.
[17:06:35] freakcoder: has joined #ruby
[17:07:15] Ox0dea: Lazy and infinite sequences as well, because Ruby is secretly a functional programming language. :P
[17:07:37] shevy: such pretty words ... Array on steroids :D
[17:09:19] shinnya: has joined #ruby
[17:10:57] choke: has joined #ruby
[17:12:29] `tim`: has joined #ruby
[17:13:09] djbkd: has joined #ruby
[17:13:43] djbkd: has joined #ruby
[17:14:08] yuung: has joined #ruby
[17:14:39] yuung: i have a string and an array of words i'd like to replace within that string. does ruby have a method for this or am i going to have to iterate over the array?
[17:15:06] yuung: for ex, `"this is my string", ["is", "string"] should be replaced ["IS", "STRING"] respectively
[17:15:22] Ox0dea: yuung: Why ["is", "string"]?
[17:15:26] Hanmac: shevy: http://geek-and-poke.com/geekandpoke/2013/8/29/when-it-all-began
[17:15:48] yuung: 0x0dea it's a contrived example
[17:16:15] VeryBewitching: has joined #ruby
[17:16:16] Ox0dea: >> s = 'this is my string'; s.gsub(/\w+/, &:upcase) # yuung
[17:16:18] ruby[bot]: Ox0dea: # => "THIS IS MY STRING" (https://eval.in/538849)
[17:16:42] yuung: 0x0dea i see - but what if i only want 'is' and 'string' to be uppercased?
[17:16:56] apeiros: yuung: if you have an array - how do you know with *what* you want to replace them?
[17:17:07] yuung: apeiros, i just want to uppercase them :)
[17:17:18] yuung: should have made that clearer, my bad
[17:17:34] Ox0dea: >> s = 'this is my string'; words = %w[is string]; s.gsub(Regexp.union(words), &:upcase)
[17:17:35] ruby[bot]: Ox0dea: # => "thIS IS my STRING" (https://eval.in/538850)
[17:17:39] apeiros: use Regexp.union(array)
[17:17:43] yuung: ahhhh nice
[17:17:49] yuung: i'll just pad the words with spaces too
[17:17:53] apeiros: but… you see in his example
[17:18:13] apeiros: you might be better off using \b
[17:18:22] apeiros: /\b#{union}\b/
[17:18:37] yuung: nice, nice
[17:18:41] Ox0dea: Kinda seems like there should be a nicer way to say that.
[17:18:57] jottr: has joined #ruby
[17:19:00] yuung: 0x0dea /\b#{union}\b/?
[17:19:40] Ox0dea: yuung: It's exactly what you're looking for.
[17:19:49] Hanmac: yuung: yeah i did this:
[17:19:49] Hanmac: >> "this is my string".gsub(/\b#{Regexp.union("is", "string")}\b/, &:upcase)
[17:19:51] ruby[bot]: hanmac: # => "this IS my STRING" (https://eval.in/538851)
[17:20:13] KensoDev: has joined #ruby
[17:20:30] yuung: hanmac, 0x0dea, apeiros, ty very much! :)
[17:21:08] jackjackdripper: has joined #ruby
[17:21:14] eam: what's the hot take on how to do: {...}.include? :a, :b
[17:21:53] yfeldblum: has joined #ruby
[17:22:46] eam: seems like I want {}.values_at(:a, :b).empty? except values_at returns [nil] instead of no entry
[17:22:49] apeiros: keys.all? { |key| hash.has_key?(key) } # with not too many keys
[17:23:05] moeabdol: has joined #ruby
[17:23:43] eam: {}.values_at(:a, :b).select {|e| e}.empty? ?
[17:23:55] eam: include? oughta take a list
[17:24:00] eam: aha compact is way better
[17:24:13] ljarvis: (hash.keys & keys).any?
[17:24:27] ljarvis: ACTION runs away
[17:24:30] eam: I don't wanna traverse the entire hash if I can help it
[17:24:41] moeabdol1: has joined #ruby
[17:24:44] eam: this should be O(keys to be tested)
[17:25:11] ljarvis: huh.. but you want to check it includes all of them, or any?
[17:25:20] eam: all of them
[17:25:26] ljarvis: so then you have to traverse the hash
[17:25:28] eam: but testing a hash for inclusion is O(1)
[17:25:44] ljarvis: the keys, rather
[17:25:53] eam: O(keys to be tested) not O(size of hash)
[17:26:06] djellemah: Wild guess %i[a b].reduce(true){|k,b| b && hash.key? k}
[17:26:06] eam: so O(2) and not O(really huge)
[17:26:27] araujo: has joined #ruby
[17:26:27] araujo: has joined #ruby
[17:26:31] eam: if I'm testing for :a, :b in some bigass {}
[17:26:49] eam: I'm really liking apeiros' suggestion of {}.values_at(:e, :b).compact.empty?
[17:26:51] ljarvis: but yeah I'd write what apeiros suggested
[17:27:02] apeiros: eam: I prefer the keys.all?
[17:27:43] eam: but that traverses the entire hash
[17:27:49] Ox0dea: eam: It doesn't.
[17:27:52] Ox0dea: `keys` is a confusing name there.
[17:28:04] apeiros: candidate_keys then
[17:28:04] eam: oh I see
[17:29:02] apeiros: if it'd traverse the entire hash, I'd not have shown it with the comment "for small list of keys" :)
[17:29:24] apeiros: with a large list of keys, I'd switch to Array#-
[17:29:27] eam: oh I see - sorry I wasn't clear I want || not &&
[17:29:37] eam: "true if one or more exists"
[17:29:47] apeiros: then replace all? with any?
[17:29:48] eam: but yeah I'd do that for &&
[17:30:18] apeiros: though, .none? if you want the true/false behavior of the .empty? solution
[17:30:21] eam: [:a, :b].any? { |k| {}[k] }
[17:30:56] eam: In perl I can just say if @h{a, b}
[17:31:03] Alayde: has joined #ruby
[17:31:28] stunder001: has joined #ruby
[17:33:13] Guest34101: has joined #ruby
[17:34:27] Alayde: has left #ruby: ()
[17:35:02] SCHAAP137: has joined #ruby
[17:37:03] Ox0dea: >> ["\#{}", /#\{}/]
[17:37:04] ruby[bot]: Ox0dea: # => ["\#{}", /#\{}/] (https://eval.in/538855)
[17:37:10] joonty: has joined #ruby
[17:37:11] Ox0dea: Say, how come the backslash only teleports for the String?
[17:37:35] Ox0dea: >> ["#\{}", /#\{}/]
[17:37:36] ruby[bot]: Ox0dea: # => ["\#{}", /#\{}/] (https://eval.in/538856)
[17:40:36] bob434: has joined #ruby
[17:41:36] evidex: has joined #ruby
[17:46:18] niko: has joined #ruby
[17:47:36] Rodya_: has joined #ruby
[17:48:37] ohaibbq: has joined #ruby
[17:48:48] graffix222: has joined #ruby
[17:48:49] pawnbox: has joined #ruby
[17:49:12] pawnbox_: has joined #ruby
[17:49:39] jpfuentes2: has joined #ruby
[17:49:54] binaryplease: has joined #ruby
[17:50:17] PaulCapestany: has joined #ruby
[17:50:19] troulouliou_div2: has joined #ruby
[17:50:56] Guest34101: has joined #ruby
[17:51:24] Xiti: has joined #ruby
[17:52:05] bronson: has joined #ruby
[17:52:46] halfamind1: Puma question: I'm running with 2 workers and my config includes `directory` and `prune_bundler` entries. Occasionally, I see an old worker process stick around after a deploy. Output of `ps axjf` looks like: https://gist.github.com/joeyAghion/f7c65ad7b528531f03f7
[17:52:58] halfamind1: Any pointers?
[17:54:03] shevy: pumas run faster than humans but as long as you runf aster than your two co-workers, you should be safe
[17:54:33] eam: 0xffff88007ad4bf38
[17:54:42] chagel: has joined #ruby
[17:55:15] araujo: has joined #ruby
[17:58:37] Marsupermammal: has joined #ruby
[18:01:02] firstdayonthejob: has joined #ruby
[18:01:40] bob434: has joined #ruby
[18:02:34] halfamind1: Lol thanks shevy. But seriously, I'm stumped.
[18:02:43] sneakerhax: has joined #ruby
[18:07:25] howardg: has joined #ruby
[18:09:17] DexterLB: has joined #ruby
[18:09:37] Hanmac: shevy, but humans are better to run in curves, pumas can't keep up with that ,P
[18:10:47] yqt: has joined #ruby
[18:12:34] BtcBen: has joined #ruby
[18:13:00] dcunit3d: has joined #ruby
[18:13:40] eam: we don't even know if humans *can* run in curves, since it's still undecided whether the universe is discrete or continuous
[18:17:06] weemsledeux: has joined #ruby
[18:19:13] workmad3: eam: we're better at running in either curves, or discrete approximations of curves, depending on which statement is true at the finest resolution of reality
[18:20:23] neilhwatson: has joined #ruby
[18:20:37] workmad3: shevy: what happens if you're being chased by a pack of 3 pumas, and you only have 2 co-workers?
[18:20:42] davedev24: has joined #ruby
[18:20:47] eam: without some kind of evidence that reality exist I'm going to have to reject this whole train of thought
[18:21:02] eam: non-circular evidence please
[18:21:20] workmad3: eam: if reality doesn't exist, it's still interesting to examine what exactly it is that doesn't exist
[18:21:42] ramfjord: has joined #ruby
[18:22:19] PaulCapestany: has joined #ruby
[18:22:48] workmad3: eam: and why it doesn't exist in the specific way that is observed
[18:23:32] zast: has left #ruby: ()
[18:24:29] mrsolo: has joined #ruby
[18:24:33] ckrailo: has joined #ruby
[18:25:40] atmosx: has joined #ruby
[18:26:04] arlek: has joined #ruby
[18:26:13] pawnbox_: has joined #ruby
[18:27:19] pawnbox: has joined #ruby
[18:27:19] chouhoulis: has joined #ruby
[18:27:49] whippythellama: has joined #ruby
[18:28:35] chouhoulis: has joined #ruby
[18:29:13] aphprentice: has joined #ruby
[18:29:38] ramfjord_: has joined #ruby
[18:30:07] baweaver: has joined #ruby
[18:31:29] djbkd: has joined #ruby
[18:32:30] jottr: has joined #ruby
[18:35:27] pwnd_nsfw: has joined #ruby
[18:37:24] mhoungbo: has joined #ruby
[18:38:31] slawrence00: has joined #ruby
[18:41:28] baweaver: has joined #ruby
[18:42:21] awasum: has joined #ruby
[18:43:25] shadoi: has joined #ruby
[18:43:31] Tref: has joined #ruby
[18:43:54] mleung: has joined #ruby
[18:45:14] Eiam: has joined #ruby
[18:46:25] grill: how exactly do i set the initial value of an attr_reader :some_attr
[18:47:24] workmad3: grill: in the `initialize` method, just assign to `@some_attr`
[18:47:33] grill: interesting
[18:47:39] bkulbida: has joined #ruby
[18:48:21] mostlybadfly: has joined #ruby
[18:48:27] apeiros: grill: note that all that attr_reader does is create a method for you
[18:48:41] grill: i just wasn't sure where to set the value
[18:48:43] BtcBen: has joined #ruby
[18:48:59] nofxx: has joined #ruby
[18:48:59] nofxx: has joined #ruby
[18:49:06] apeiros: i.e. it's not "attr_reader :some_attr" which has a value, but the corresponding ivar @some_attr
[18:49:24] last_staff: has joined #ruby
[18:50:01] Guest5: has joined #ruby
[18:50:21] diegoviola: has joined #ruby
[18:51:37] Guest5: has joined #ruby
[18:53:08] `tim`: has joined #ruby
[18:53:18] agit0: has joined #ruby
[18:53:42] Parker0: has joined #ruby
[18:55:51] nanoz: has joined #ruby
[18:56:05] tonyynot: has joined #ruby
[18:57:25] RegulationD: has joined #ruby
[18:58:46] shevy: halfamind1 did you try in the ruby on rails channel yet? usually the percentage of people using webserver-related things would be higher than on #ruby
[18:59:02] Guest38: has joined #ruby
[18:59:11] shevy: workmad3 cats are lazy, they'll settle for the first-to-go-down!
[19:00:00] shevy: grill one day we may have attr* with question marks!
[19:00:31] PedramT: has joined #ruby
[19:01:55] Xiti: has joined #ruby
[19:02:00] djbkd: has joined #ruby
[19:02:23] Musashi007: has joined #ruby
[19:03:03] darkf: has joined #ruby
[19:03:21] djbkd: has joined #ruby
[19:04:09] yuung: has joined #ruby
[19:04:39] kies: has joined #ruby
[19:05:31] lemur: has joined #ruby
[19:07:28] codecop: has joined #ruby
[19:09:51] BSaboia: has joined #ruby
[19:11:15] adgtl: What's best way to write pmap in Ruby?
[19:11:32] SCHAAP137: has joined #ruby
[19:12:24] Maletor: has joined #ruby
[19:13:14] apeiros: a) define best, b) what's pmap?
[19:14:03] djbkd: has joined #ruby
[19:15:48] chrisseaton: has joined #ruby
[19:15:58] baweaver: memory map of processes if they're talking unix
[19:16:07] baweaver: parallel map if they're talking async
[19:16:14] baweaver: name collisions are fun
[19:16:31] baweaver: https://clojuredocs.org/clojure.core/pmap
[19:16:37] baweaver: http://linux.die.net/man/1/pmap
[19:16:55] kobain: has joined #ruby
[19:17:03] tonini: has joined #ruby
[19:17:55] crunk_bear: has joined #ruby
[19:17:58] chipotle: has joined #ruby
[19:19:37] yfeldblum: has joined #ruby
[19:19:41] apeiros: baweaver: well, I guess it's not of too high importance to adgtl.
[19:19:50] baweaver: http://www.opensource.apple.com/source/xnu/xnu-1228.0.2/osfmk/i386/pmap.c
[19:19:55] baweaver: ACTION shrugs
[19:20:19] apeiros: ACTION shrugs too, does better things with his time
[19:20:36] tAn: has joined #ruby
[19:20:43] djbkd: has joined #ruby
[19:21:13] jenrzzz: has joined #ruby
[19:21:22] shevy: ACTION shrugs better than baweaver and apeiros COMBINED!
[19:21:43] baweaver: !.kick shevy
[19:21:44] apeiros: baskervillian dogs are the best shruggers
[19:24:18] SCHAAP137: has joined #ruby
[19:24:25] adgtl: apeiros: pmap like clojure
[19:24:49] apeiros: adgtl: yeah, no. I'm not gonna look it up.
[19:24:52] shevy: I am glad that apeiros knows clojure
[19:25:17] ixti: has joined #ruby
[19:25:58] shevy: good thing that adgtl does not need to explain anything
[19:26:28] davedev24: has joined #ruby
[19:28:01] joonty: has joined #ruby
[19:28:02] diego4: has joined #ruby
[19:29:22] nerium: has joined #ruby
[19:29:34] mdw: has joined #ruby
[19:29:49] mistermocha: has joined #ruby
[19:29:53] diego4: has joined #ruby
[19:30:11] stunder001: has joined #ruby
[19:32:27] baweaver: adgtl: what have you tried?
[19:33:11] baweaver: https://github.com/clojure/clojure/blob/clojure-1.7.0/src/clj/clojure/core.clj#L6719
[19:34:15] axl__: has joined #ruby
[19:34:32] uglybandersnatch: has joined #ruby
[19:34:38] baweaver: including looking at the source and trying to reimplement it from there.
[19:35:59] spider-mario: has joined #ruby
[19:37:26] pawnbox: has joined #ruby
[19:37:38] diego4: has joined #ruby
[19:37:41] halfamind: has joined #ruby
[19:37:48] bluOxigen: has joined #ruby
[19:37:52] diego4: has joined #ruby
[19:39:02] adgtl: baweaver: yes
[19:39:09] kirun: has joined #ruby
[19:39:15] baweaver: what code do you have so far?
[19:40:14] jabreity: has joined #ruby
[19:40:26] adgtl: baweaver: i mean, pmap can be easily writen elixir or is there in clojure. Is there any standard implementation with Ruby and threads that's legit
[19:40:27] mrsolo: has joined #ruby
[19:41:21] baweaver: Normally parallel and async in ruby is a bad idea. Very rarely done well
[19:41:52] therealGent: has joined #ruby
[19:41:58] baweaver: If you're getting to a point where you _need_ it then it's probably time to try one of those other languages.
[19:42:01] bricker1: has joined #ruby
[19:42:50] therealGent: Hello. Could anyone recommend the best solution to quickly installing ruby so I can use jekyll? Preferably something that doesn't modify my cd command :)
[19:44:14] tubuliferous_: has joined #ruby
[19:45:01] PedramT: has joined #ruby
[19:45:36] therealGent: neilhwatson, linux
[19:45:50] baweaver: https://github.com/bruceadams/pmap/blob/master/lib/pmap.rb#L76
[19:45:55] neilhwatson: use your package manager. Ruby is probably already installed.
[19:46:09] stunder001: has joined #ruby
[19:46:21] therealGent: neilhwatson, I need a 2.x version. The current Ubuntu LTS has 1.9 or something
[19:46:26] yuung: has joined #ruby
[19:47:15] neilhwatson: There are these installers, that remind me of Perlbrew, but I can't say which one to use: https://www.ruby-lang.org/en/documentation/installation/#installers
[19:48:11] bob434: has joined #ruby
[19:50:43] maletor_: has joined #ruby
[19:51:13] washt: has joined #ruby
[19:52:43] sdothum: has joined #ruby
[19:53:23] tomchapin: has joined #ruby
[19:54:33] _stu_: has joined #ruby
[19:54:35] diego4: has joined #ruby
[19:54:51] diego4: has joined #ruby
[19:55:24] uglybandersnatch: has joined #ruby
[19:56:50] nerium: has joined #ruby
[19:57:21] shevy: theRealGent: wget ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.xz; tar xf ruby*xz; cd ruby*2.3*; ./configure --prefix=/usr # or any other prefix like into the home dir as done by e. g. RVM
[19:58:21] Xeago: has joined #ruby
[20:00:05] tAn: has joined #ruby
[20:02:09] stunder001: has joined #ruby
[20:02:22] callen92: has joined #ruby
[20:03:43] skweek: has joined #ruby
[20:04:15] atmosx: has joined #ruby
[20:06:35] intrigueD: has joined #ruby
[20:08:09] PedramT: has joined #ruby
[20:08:37] stunder001: has joined #ruby
[20:09:02] moeabdol: has joined #ruby
[20:09:52] Xeago: has joined #ruby
[20:10:38] ohaibbq: has joined #ruby
[20:10:57] Xeago: has joined #ruby
[20:11:22] lkba: has joined #ruby
[20:12:31] PedramT: has joined #ruby
[20:15:50] ChiefAlexander: has joined #ruby
[20:17:59] yqt: has joined #ruby
[20:21:10] darix: neilhwatson: use the packages that come with your distro?
[20:21:29] neilhwatson: He said he wanted a newer version.
[20:21:55] roshanavand: has joined #ruby
[20:22:06] darix: an ubuntu still with 1.9
[20:22:08] darix: sounds old
[20:22:53] mdw: has joined #ruby
[20:23:52] neilhwatson: Very, even debian stable is at 2+
[20:24:47] danielwzd: has joined #ruby
[20:25:06] pawnbox: has joined #ruby
[20:25:23] darix: new lts is coming next month
[20:25:24] darix: if i recall correctly
[20:26:33] freerobby: has joined #ruby
[20:27:53] kies: has joined #ruby
[20:28:23] djbkd: has joined #ruby
[20:28:54] replay: has joined #ruby
[20:29:33] wldcordeiro: has joined #ruby
[20:30:07] Gadgetoid: has left #ruby: ()
[20:31:41] baweaver: has joined #ruby
[20:33:26] PedramT: has joined #ruby
[20:34:18] rht: has joined #ruby
[20:34:27] codecop: has joined #ruby
[20:34:47] DOK_23123123qq: has joined #ruby
[20:34:58] snowy: has joined #ruby
[20:35:02] devbug: has joined #ruby
[20:35:23] shevy: debian is the king of the snails! only beaten by centos
[20:35:43] baweaver: has joined #ruby
[20:36:15] stunder001: has joined #ruby
[20:37:17] hinbody: has joined #ruby
[20:37:47] tAn: has joined #ruby
[20:38:15] Xeago: has joined #ruby
[20:38:22] duncannz: has joined #ruby
[20:44:06] NathanHiggers: has joined #ruby
[20:44:06] ChanServ: +b nathanhiggers!*@*
[20:44:07] ChanServ: ChanServ kicked nathanhiggers: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[20:44:07] baweaver: has joined #ruby
[20:44:09] ruby[bot]: -b+b nathanhiggers!*@* nathanhiggers!*@*$#ruby-banned
[20:45:13] atmosx: shevy: true
[20:45:24] choke: has joined #ruby
[20:45:51] tAn: has joined #ruby
[20:47:32] cdg: has joined #ruby
[20:51:31] roshanavand: has joined #ruby
[20:53:30] hahuang65: has joined #ruby
[20:54:24] VeryBewitching: CentOS? Really?
[20:55:38] zeon: has joined #ruby
[20:55:40] zeon: has left #ruby: ()
[20:55:41] zeon: has joined #ruby
[20:56:09] baweaver: VeryBewitching: It makes cents
[20:56:45] VeryBewitching: sudo apt-get remove centos --purge
[20:56:46] postmodern: has joined #ruby
[20:57:00] snowy: has joined #ruby
[20:57:08] niggets: has joined #ruby
[20:57:08] ChanServ: +b *NIGGET*!*@*
[20:57:08] ChanServ: ChanServ kicked niggets: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[20:57:14] VeryBewitching: I do appreciate the pun though :D
[20:57:24] ruby[bot]: -b+b *NIGGET*!*@* *NIGGET*!*@*$#ruby-banned
[20:57:34] baweaver: ACTION chuckles
[20:58:11] VeryBewitching: I think I grew an aversion to RPM through overuse.
[20:58:29] VeryBewitching: Started with RH 5.0, eventually SuSE, Mandrake, then Kubuntu.
[20:58:37] jas02: has joined #ruby
[20:58:59] RegulationD: has joined #ruby
[20:59:06] jas02: has left #ruby: ()
[20:59:50] PedramT: has joined #ruby
[21:00:24] nerium: has joined #ruby
[21:02:52] bricker: has joined #ruby
[21:03:13] djbkd: has joined #ruby
[21:04:52] cpup: has joined #ruby
[21:05:16] snockerton: has joined #ruby
[21:05:43] snockerton: this feels like a bad idea
[21:05:48] snockerton: url = opts[:url] ||= ENV['URL'] ||= "http://localhost"
[21:06:18] snockerton: oops, forgot the first double pipe
[21:06:18] snockerton: url ||= opts[:url] ||= ENV['URL'] ||= "http://localhost"
[21:06:25] baweaver: has joined #ruby
[21:10:41] djellemah: adgtl: pmap in ruby https://gist.github.com/djellemah/cbc1d350547f043c1b70
[21:10:42] BeatBlaxx: has joined #ruby
[21:15:14] stardiviner: has joined #ruby
[21:16:27] bezhermoso: has joined #ruby
[21:18:03] jenrzzz: has joined #ruby
[21:18:15] elifoster: has joined #ruby
[21:19:17] roshanavand: has joined #ruby
[21:19:20] SCHAAP137: has joined #ruby
[21:19:36] H31LH1TL3R: has joined #ruby
[21:19:50] adaedra: !badnick H31LH1TL3R
[21:19:50] ruby[bot]: +bbb $a:H31LH1TL3R$#ruby-banned H31LH1TL3R!*@*$#ruby-banned *!*@gateway/web/freenode/ip.45.32.36.166$#ruby-banned
[21:19:50] ruby[bot]: ruby[bot] kicked H31LH1TL3R: is not suitable for this channel, see http://ruby-community.com/pages/user_rules
[21:19:57] ruby[bot]: -bbb $a:crispus$#ruby-banned *!*@unaffiliated/omfgtora$#ruby-banned govt!*@*$#ruby-banned
[21:21:45] TomyLobo: has joined #ruby
[21:22:35] roshanavand: has joined #ruby
[21:22:52] Victor777: has joined #ruby
[21:22:52] chipotle_: has joined #ruby
[21:23:11] fullofcaffeine: has joined #ruby
[21:23:12] valeri_uF0: has joined #ruby
[21:23:29] marr123: has joined #ruby
[21:23:31] ghoti_: has joined #ruby
[21:24:16] ur5us: has joined #ruby
[21:24:36] Mendenhall_: has joined #ruby
[21:24:37] nlsun_: has joined #ruby
[21:24:56] bob434: has joined #ruby
[21:24:59] thejoecarroll_: has joined #ruby
[21:25:30] _Tristan-Speccy_: has joined #ruby
[21:25:45] Janno: has joined #ruby
[21:25:50] mmasaki: has joined #ruby
[21:25:56] rtl: has joined #ruby
[21:26:06] timonv1: has joined #ruby
[21:26:08] Sou|cutter: has joined #ruby
[21:26:13] bezhermoso: has joined #ruby
[21:26:14] unreal: has joined #ruby
[21:26:16] Jello_Raptor: has joined #ruby
[21:26:17] cfloare: has joined #ruby
[21:26:20] hoylemd: has joined #ruby
[21:26:23] sunya7a_: has joined #ruby
[21:26:23] whippythellama: has joined #ruby
[21:26:29] Amnez777: has joined #ruby
[21:26:30] Affix: has joined #ruby
[21:26:31] Roa: has joined #ruby
[21:26:32] rheddry: has joined #ruby
[21:26:34] elaptics`away: has joined #ruby
[21:26:36] jpoole: has joined #ruby
[21:26:38] toretore: has joined #ruby
[21:26:42] rideh: has joined #ruby
[21:26:43] ekem: has joined #ruby
[21:26:44] skweek: has joined #ruby
[21:26:45] raldu: has joined #ruby
[21:26:45] ljames: has joined #ruby
[21:26:48] segy: has joined #ruby
[21:26:48] theRealAlexz: has joined #ruby
[21:26:52] papercode: has joined #ruby
[21:26:52] joeyjones: has joined #ruby
[21:26:53] unsymbol: has joined #ruby
[21:26:56] rikai: has joined #ruby
[21:27:05] qpls: has joined #ruby
[21:27:07] jpfuentes2: has joined #ruby
[21:27:09] strongcode: has joined #ruby
[21:27:10] j0bk: has joined #ruby
[21:27:12] ssm: has joined #ruby
[21:27:21] fumk: has joined #ruby
[21:27:22] cats: has joined #ruby
[21:27:29] v0n: has joined #ruby
[21:27:35] humd1ng3r: has joined #ruby
[21:27:47] Rush: has joined #ruby
[21:29:07] bezhermo_: has joined #ruby
[21:29:14] blackgoat: has joined #ruby
[21:29:23] Coldblackice: has joined #ruby
[21:30:07] hahuang61: has joined #ruby
[21:30:08] g3funk: has joined #ruby
[21:30:21] ruurd: has joined #ruby
[21:30:23] joonty: has joined #ruby
[21:30:43] mdw: has joined #ruby
[21:32:03] Victor777: has joined #ruby
[21:32:44] baweaver: has joined #ruby
[21:33:17] choke: has joined #ruby
[21:35:59] musl: has joined #ruby
[21:37:47] mrgrieves: has joined #ruby
[21:40:27] dcunit3d: has joined #ruby
[21:41:18] Don_John: has joined #ruby
[21:43:37] AnonymousIsAJoke: has joined #ruby
[21:44:01] AnonymousIsAJoke: prove the holocaust is real
[21:44:05] AnonymousIsAJoke: because it's not
[21:44:06] ruby[bot]: +qqq $a:AnonymousIsAJoke AnonymousIsAJoke!*@* *!*@gateway/web/freenode/ip.82.103.128.155
[21:44:38] ChanServ: +o havenwood
[21:45:14] replay_: has joined #ruby
[21:48:30] roshanavand: has joined #ruby
[21:50:22] blackgoat: has joined #ruby
[21:51:15] freakcoder: has joined #ruby
[21:51:26] jenrzzz: has joined #ruby
[21:51:57] solocshaw: has joined #ruby
[21:54:00] t-ask: has joined #ruby
[21:56:26] adaedra: +b *!*@gateway/web/freenode/*$#ruby-banned
[21:57:34] ruby[bot]: -b strcmp1!*@*$#ruby-banned
[21:59:29] stannard: has joined #ruby
[22:01:31] mdw7: has joined #ruby
[22:02:19] djbkd: has joined #ruby
[22:03:49] hxegon: has joined #ruby
[22:04:13] ybakos: has joined #ruby
[22:05:23] replay: has joined #ruby
[22:05:56] ybakos: has left #ruby: ()
[22:06:39] nerium: has joined #ruby
[22:10:34] CasBaIT: has joined #ruby
[22:11:18] tAn: has joined #ruby
[22:12:42] KINGSABRI_: has joined #ruby
[22:14:25] KINGSABRI_: has joined #ruby
[22:18:19] ChanServ: -o havenwood
[22:19:14] devbug: has joined #ruby
[22:19:38] stunder001: has joined #ruby
[22:21:23] DmitryBochkarev: has joined #ruby
[22:21:49] KINGSABRI_: has joined #ruby
[22:23:28] halfamind: has joined #ruby
[22:24:48] SCHAAP137: has joined #ruby
[22:25:08] djbkd: has joined #ruby
[22:26:23] DmitryBochkarev: has joined #ruby
[22:26:54] Renich: has joined #ruby
[22:30:26] shevy: http://www.kesiev.com/kesievchiefs/sources-0.4/kesievchiefs-0.4.rb
[22:30:45] Mattx: has joined #ruby
[22:31:15] shevy: a job for rubocop!
[22:31:28] shevy: 1 file inspected, 2693 offenses detected, 2123 offenses corrected
[22:32:04] Mattx: Hello. What should be required so we have functions like .camelcase outside of Rails?
[22:32:25] adaedra: The active_support gem or an equivalent like facets
[22:32:25] shevy: damn... rubocop corrected some but not all problems :(
[22:33:44] baweaver: has joined #ruby
[22:34:44] halfamind: has joined #ruby
[22:35:37] stunder001: has joined #ruby
[22:37:39] siaW: has joined #ruby
[22:38:26] mostlybadfly: has joined #ruby
[22:40:01] Xiti: has joined #ruby
[22:40:02] zenlot6: has joined #ruby
[22:40:34] ftj: has joined #ruby
[22:41:18] fullofcaffeine: has joined #ruby
[22:41:52] freakcoder: has joined #ruby
[22:43:20] Dysp: has joined #ruby
[22:43:45] bronson: shevy: that's pretty great, go go rubocop.
[22:44:31] ruby[bot]: -qqq $a:AnonymousIsAJoke AnonymousIsAJoke!*@* *!*@gateway/web/freenode/ip.82.103.128.155
[22:46:15] Dysp: Hi guys. I am very much new to Ruby and trying to understand it. I can't see what I am doing wrong here, I hope someone will enlighten me. I'm using Shoes. https://gist.github.com/anonymous/5accc447006a07e31b0a
[22:47:10] RegulationD: has joined #ruby
[22:47:17] bronson: shevy: "brewed with only 300 lines of Ruby code" dunno why he didn't just go for 100 lines, only take a few more semicolons.
[22:47:22] bronson: how big was it after rubocop was done?
[22:48:07] tomatoes: has joined #ruby
[22:48:21] bronson: omg, Shoes is still a thing? that's awesome!
[22:49:15] Dysp: Haha. Trying to create a program that can help me handle tedious data-analyzing
[22:49:28] bronson: Dysp: no idea what's going wrong... Care to share a bit more?
[22:49:43] Dysp: As of now we are just copy/pasting between excel sheets.
[22:50:09] Dysp: I'm simply trying to make a button. When I press it I want it to read a file and post the content.
[22:51:03] Dysp: And I can actually get that to work if I just place it all inside the button code block. But, then to challenge myself a bit, I wanted to make it so that the button just loads the file and content; and another block would the post it. I get nothing. Not even errors :(
[22:51:37] stunder001: has joined #ruby
[22:52:09] bronson: so what code did you paste?
[22:52:24] bronson: your indentation is weird. you realize your click handler only has two lines of Ruby right?
[22:52:32] Cohedrin: has joined #ruby
[22:52:56] Dysp: Identation? Like how it looks?
[22:53:23] Dysp: Im totally new to programming
[22:54:38] bronson: like line 11 is indented, but I don't know why it would be.
[22:55:02] bronson: @b1.click could be rewritten like this: @b1.click { f = File.open("tester.txt", "r"); @text = f.read }
[22:55:52] Dysp: What is the function of the semicolon there?
[22:56:18] millerti: has joined #ruby
[22:56:19] bronson: also, fwiw, you can just do @text = File.read('tester.txt', 'r')
[22:56:41] bronson: the semicolon separates statements, like a newline
[22:57:00] bronson: I just used it because pasting multiple lines on IRC is irritating
[22:57:02] nerium: has joined #ruby
[22:58:33] Dysp: Sure it is. I'll remember that.
[22:58:52] bronson: My point is that your indentation indicates that @b1.click's block is ~15 lines long, but your code shows it's only 2 lines long (lines 7 and 8)
[22:59:58] baweaver: has joined #ruby
[23:00:06] Dysp: Okay.. So
[23:00:06] Dysp: https://gist.github.com/anonymous/bde4cc94a9054073a176
[23:00:41] justinweiss: has joined #ruby
[23:00:54] shevy: bronson yeah
[23:00:59] crowell: has joined #ruby
[23:01:05] Dysp: I guess is that it actually reads the file, but doesn't 'refresh' to actually paste the content. But I then don't know how to make it do that.
[23:01:32] minimalism: has joined #ruby
[23:01:47] shevy: bronson it was not much bigger... perhaps +60 lines or so, putting some methods onto more lines or those weird huge hash constants onto several lines
[23:02:03] shevy: but some other errors were not corrected like wrong indent
[23:02:22] mhoungbo: has joined #ruby
[23:03:34] stunder001: has joined #ruby
[23:05:11] shevy: what gets me is how this guy could have used like 80 $variables
[23:05:45] bronson: shevy: ha, time for some more rubocop rules. "error: more than four globals used in one file"
[23:05:51] shevy: I can't tell whether he was deliberately trolling or not... because the weird thing is, his old code still works on ruby 2.x and current ruby-gtk bindings too
[23:06:04] bronson: Dysp: I haven't used Shoes for years but maybe something like this: https://gist.github.com/bronson/a5fddc59f277a2caa3f1
[23:06:10] shevy: bronson hahahaha yeah that would be sweet
[23:06:22] bronson: Dysp: oops, add that missing ')'
[23:07:12] avahey: has left #ruby: ()
[23:07:18] Dysp: Nope. Doesn't work. Hm.
[23:07:28] Dysp: Maybe it doesn't load any content afterall
[23:08:10] pawnbox: has joined #ruby
[23:08:28] joonty: has joined #ruby
[23:08:51] berk: has joined #ruby
[23:08:51] Dysp: On the other hand.. https://gist.github.com/anonymous/60c5d6a16093dbbc581a
[23:08:54] Dysp: This works, bronson
[23:09:29] ur5us: has joined #ruby
[23:09:35] plzDocUrCode: has left #ruby: ()
[23:09:38] bronson: Dysp: did you try the example I pasted? no idea if it'll work.
[23:09:41] Dysp: And now the other button suddenly works.
[23:10:05] hightower3: has joined #ruby
[23:11:02] rigel_: has joined #ruby
[23:11:10] kam270: has joined #ruby
[23:11:44] berk: has joined #ruby
[23:12:17] PaulCapestany: has joined #ruby
[23:14:11] NeckBeardPrince: has joined #ruby
[23:15:25] Dysp: bronson https://gist.github.com/anonymous/291d2f8a7acc40686999 This actually works. Can you maybe explain me the difference?
[23:16:31] chouhoulis: has joined #ruby
[23:17:43] stunder001: has joined #ruby
[23:20:22] Noxilex: has joined #ruby
[23:20:36] aeterne: has joined #ruby
[23:23:21] choke: has joined #ruby
[23:25:33] devbug: has joined #ruby
[23:26:36] pawnbox: has joined #ruby
[23:27:38] davedev24: has joined #ruby
[23:28:17] fullofcaffeine: has joined #ruby
[23:28:23] mikecmpbll: has joined #ruby
[23:30:43] SCHAAP137: has joined #ruby
[23:31:20] nertzy: has joined #ruby
[23:33:08] hightower3: has joined #ruby
[23:34:02] Gasher: has joined #ruby
[23:34:18] roshanavand: has joined #ruby
[23:40:35] chouhoulis: has joined #ruby
[23:40:43] djbkd: has joined #ruby
[23:42:34] stunder001: has joined #ruby
[23:42:41] bob434: has joined #ruby
[23:43:09] PaulCapestany: has joined #ruby
[23:44:36] rbennacer: has joined #ruby
[23:44:46] arlek: has joined #ruby
[23:47:27] Pupeno: has joined #ruby
[23:48:40] SG045734: has joined #ruby
[23:49:11] BSaboia: has joined #ruby
[23:55:15] mistermocha: has joined #ruby