« Back to channel list

#ruby - 07 July 2016

« Back 1 day Forward 1 day »
[00:01:01] ghr: has joined #ruby
[00:01:26] karapetyan: has joined #ruby
[00:01:50] tubuliferous: has joined #ruby
[00:05:23] jaguarmagenta: has joined #ruby
[00:06:36] snath: has joined #ruby
[00:07:18] tenzan: has joined #ruby
[00:08:30] SilverKey: has joined #ruby
[00:11:28] Mathuin: has left #ruby: ()
[00:12:32] ghr: has joined #ruby
[00:16:24] pawnbox: has joined #ruby
[00:17:10] LoneHerm_: has joined #ruby
[00:17:15] SilverKey: has joined #ruby
[00:19:32] lxsameer: has joined #ruby
[00:20:44] nankyokusei: has joined #ruby
[00:20:58] chouhoulis: has joined #ruby
[00:23:02] ghr: has joined #ruby
[00:28:15] SilverKey: has joined #ruby
[00:29:12] Sammichmaker: has joined #ruby
[00:30:34] ramfjord: has joined #ruby
[00:31:03] ekinmur: has joined #ruby
[00:31:14] Liothen: has joined #ruby
[00:32:33] ghr: has joined #ruby
[00:33:15] Liothen: has joined #ruby
[00:33:21] Pupeno: has joined #ruby
[00:36:57] zacstewart: has joined #ruby
[00:38:17] chipotle: has joined #ruby
[00:39:57] spiette: has joined #ruby
[00:40:48] chouhoulis: has joined #ruby
[00:42:18] macsteps: has joined #ruby
[00:42:37] ghr: has joined #ruby
[00:46:00] mistermocha: has joined #ruby
[00:47:20] JeanCarloMachado: has joined #ruby
[00:51:07] postapocallyptic: ruby seems like something i can learn in one day. XD
[00:52:04] ghr: has joined #ruby
[00:52:27] pawnbox: has joined #ruby
[00:52:29] tao_: has joined #ruby
[00:52:41] neo_: has joined #ruby
[00:56:10] shevy: postapocallyptic you have the superbrain!
[00:59:24] arooni: has joined #ruby
[01:01:26] Radar: https://learnxinyminutes.com/docs/ruby/
[01:02:05] ghr: has joined #ruby
[01:02:43] karapetyan: has joined #ruby
[01:03:09] flashpoint9: has joined #ruby
[01:04:09] flashpoint9: has joined #ruby
[01:04:17] arooni: has joined #ruby
[01:05:58] arooni-mobile: has joined #ruby
[01:08:05] RegulationD: has joined #ruby
[01:09:01] z3ndrag0n: has joined #ruby
[01:10:31] voodoofish4301: has joined #ruby
[01:14:29] arooni-mobile: has joined #ruby
[01:14:48] arooni: has joined #ruby
[01:15:56] flashpoint9: has joined #ruby
[01:20:05] ghr: has joined #ruby
[01:20:54] JeanCarloMachado: has joined #ruby
[01:20:56] akira616: has joined #ruby
[01:22:04] tAn: has joined #ruby
[01:24:30] arooni-mobile: has joined #ruby
[01:24:49] arooni: has joined #ruby
[01:25:18] arescorpio: has joined #ruby
[01:28:04] cdg_: has joined #ruby
[01:32:38] weaksauce: has joined #ruby
[01:34:11] Pupeno: has joined #ruby
[01:34:50] arooni: has joined #ruby
[01:34:53] arooni-mobile: has joined #ruby
[01:35:36] ghr: has joined #ruby
[01:35:52] CloCkWeRX: has joined #ruby
[01:38:08] zacstewart: has joined #ruby
[01:40:24] ekinmur: has joined #ruby
[01:40:46] roamingdog: has joined #ruby
[01:41:57] wigust_: has joined #ruby
[01:41:57] addisonbean: has joined #ruby
[01:44:20] isberg: Is there a way to set the order in which code is evaluated? I.e "a > b > c" => "(a > b) > c" or vise versa (without using ())
[01:44:30] blackmesa: has joined #ruby
[01:44:55] Radar: isberg: no, not without using brackets.
[01:45:02] arooni-mobile: has joined #ruby
[01:45:07] ghr: has joined #ruby
[01:45:08] isberg: Radar Okay, thanks
[01:45:13] isberg: What's the default order?
[01:45:21] Radar: isberg: BODMAS iirc
[01:45:52] Ishido: has joined #ruby
[01:46:14] Mattx: has joined #ruby
[01:47:14] isberg: Radar What's that?
[01:47:21] Radar: ?g bodmans
[01:47:21] ruby[bot]: Radar: I don't see no bodmans, whom should I tell about g?
[01:47:30] Radar: isberg: Google is your friend.
[01:48:43] postapocallyptic: what's a good ruby book online? non-tutorially
[01:50:37] isberg: Radar What's that?
[01:50:41] isberg: Radar Ooops
[01:50:45] isberg: That's not my console
[01:51:25] enterprisey: has joined #ruby
[01:54:54] arooni: has joined #ruby
[01:55:06] arooni-mobile: has joined #ruby
[02:00:23] JeanCarloMachado: has joined #ruby
[02:01:06] sneakerhax: has joined #ruby
[02:01:59] mattwashere: has joined #ruby
[02:02:08] ghr: has joined #ruby
[02:04:52] arooni-mobile: has joined #ruby
[02:04:55] arooni: has joined #ruby
[02:05:03] tenc: has joined #ruby
[02:06:09] jaguarmagenta: has joined #ruby
[02:06:10] Madplatypus: has joined #ruby
[02:06:16] rkazak: has joined #ruby
[02:06:19] roamingdog: has joined #ruby
[02:06:54] LoneHermit: has joined #ruby
[02:08:33] statelesscode_: has joined #ruby
[02:09:09] RegulationD: has joined #ruby
[02:10:08] neo_: has joined #ruby
[02:10:37] Pupeno: has joined #ruby
[02:11:38] ghr: has joined #ruby
[02:15:08] arooni-mobile: has joined #ruby
[02:21:32] nankyokusei: has joined #ruby
[02:21:39] ghr: has joined #ruby
[02:23:06] blake: has joined #ruby
[02:23:13] blake: hey how do I upgrade rspec?
[02:23:19] blake: I have an old verison
[02:25:25] addisonbean: has joined #ruby
[02:29:30] happyface: has joined #ruby
[02:30:04] addisonbean: has joined #ruby
[02:31:09] ghr: has joined #ruby
[02:31:15] vdamewood: has joined #ruby
[02:31:35] addisonbean: has left #ruby: ()
[02:32:45] ur5us: has joined #ruby
[02:37:29] baweaver: blake: what have you tried?
[02:37:33] shakes: has joined #ruby
[02:38:01] baweaver: might be a good idea to start with a search about how to update a gem
[02:38:54] ElFerna: has joined #ruby
[02:39:56] zacstewart: has joined #ruby
[02:41:10] ghr: has joined #ruby
[02:45:35] lkba: has joined #ruby
[02:47:08] Pupeno: has joined #ruby
[02:48:33] tAn: has joined #ruby
[02:48:48] blackmesa: has joined #ruby
[02:50:02] rkazak: has joined #ruby
[02:51:09] mistermocha: has joined #ruby
[02:51:10] ghr: has joined #ruby
[02:52:13] AndyBotwin: has joined #ruby
[02:53:09] calmchaos: has joined #ruby
[02:56:39] mattwashere: has joined #ruby
[02:57:16] tAn: has joined #ruby
[02:57:40] shevy: blake "gem install rspec"
[02:58:58] TheWhip: has joined #ruby
[02:59:17] SilverKey: has joined #ruby
[03:00:41] ghr: has joined #ruby
[03:01:41] interki: has joined #ruby
[03:05:09] Rodya_: has joined #ruby
[03:05:32] mattwashere: has joined #ruby
[03:08:44] arooni: has joined #ruby
[03:12:41] ghr: has joined #ruby
[03:13:13] TheWhip: has joined #ruby
[03:15:18] arooni: has joined #ruby
[03:15:51] gix: has joined #ruby
[03:17:29] flashpoint9: has joined #ruby
[03:19:53] pawnbox: has joined #ruby
[03:21:33] hutch34_: has joined #ruby
[03:22:42] ghr: has joined #ruby
[03:22:45] akira616: has joined #ruby
[03:23:16] Rainbow-Sapphire: has joined #ruby
[03:24:06] braincras: has joined #ruby
[03:25:18] arooni: has joined #ruby
[03:25:32] blake: has joined #ruby
[03:25:33] rkazak: has joined #ruby
[03:32:36] dopamean_: has joined #ruby
[03:35:09] amclain: has joined #ruby
[03:35:18] arooni: has joined #ruby
[03:35:36] Spami: has joined #ruby
[03:35:43] ghr: has joined #ruby
[03:37:09] RabbitKing: has joined #ruby
[03:37:19] RabbitKing: has left #ruby: ("Leaving")
[03:38:14] enterprisey: has joined #ruby
[03:38:40] coffeecupp: has joined #ruby
[03:39:43] nando294021: has joined #ruby
[03:40:40] charliesome: has joined #ruby
[03:41:11] zacstewart: has joined #ruby
[03:43:02] Rainbow-Sapphire: has joined #ruby
[03:43:24] rbennacer: has joined #ruby
[03:43:29] zacts: has joined #ruby
[03:45:13] ghr: has joined #ruby
[03:46:09] Rodya_: has joined #ruby
[03:48:14] Rodya_: has joined #ruby
[03:48:27] Spami: has joined #ruby
[03:48:28] musou: has joined #ruby
[03:48:38] Trynemjoel: has joined #ruby
[03:49:45] dtzuzu: has joined #ruby
[03:52:24] tjbiddle: has joined #ruby
[03:52:38] calmchaos: has joined #ruby
[03:53:26] blackmesa: has joined #ruby
[03:55:44] ghr: has joined #ruby
[03:56:24] Rodya_: has joined #ruby
[03:56:39] nando293921: has joined #ruby
[03:57:57] crystal77: has joined #ruby
[03:59:54] hk238: has joined #ruby
[04:00:17] snowy: has joined #ruby
[04:04:00] terminalrecluse: has joined #ruby
[04:05:36] xlegoman: has joined #ruby
[04:05:47] Rodya_: has joined #ruby
[04:06:55] jaguarmagenta: has joined #ruby
[04:07:19] ghr: has joined #ruby
[04:07:39] cwar: has joined #ruby
[04:08:10] LoneHerm_: has joined #ruby
[04:10:03] RegulationD: has joined #ruby
[04:10:15] tAn: has joined #ruby
[04:11:12] kareeoleez: has joined #ruby
[04:17:45] ghr: has joined #ruby
[04:18:13] rkazak: has joined #ruby
[04:19:20] Rodya_: has joined #ruby
[04:19:22] terminalrecluse: has joined #ruby
[04:21:08] terminalrecluse: has joined #ruby
[04:22:27] nankyokusei: has joined #ruby
[04:22:37] terminalrecluse: has joined #ruby
[04:24:08] terminalrecluse: has joined #ruby
[04:25:37] hahuang61: has joined #ruby
[04:25:48] Liothen: has joined #ruby
[04:26:02] Liothen: has joined #ruby
[04:26:14] ReK2: has joined #ruby
[04:26:25] terminalrecluse: has joined #ruby
[04:26:55] pawnbox: has joined #ruby
[04:27:42] max1: has joined #ruby
[04:27:46] ghr: has joined #ruby
[04:28:37] terminalrecluse: has joined #ruby
[04:29:05] TheWhip: has joined #ruby
[04:29:29] Rodya_: has joined #ruby
[04:30:10] terminalrecluse: has joined #ruby
[04:30:28] Guest43: has joined #ruby
[04:36:26] duncannz: has joined #ruby
[04:37:49] duncannz: has joined #ruby
[04:38:39] karapetyan: has joined #ruby
[04:38:41] duncannz: has joined #ruby
[04:39:52] ghr: has joined #ruby
[04:40:42] Rodya_: has joined #ruby
[04:40:49] Devalo: has joined #ruby
[04:42:54] zacstewart: has joined #ruby
[04:43:31] Eiam_: has joined #ruby
[04:44:29] Wixy: has joined #ruby
[04:44:59] bluOxigen: has joined #ruby
[04:48:45] AndrewIsHere: has joined #ruby
[04:48:54] Pupeno: has joined #ruby
[04:50:17] ghr: has joined #ruby
[04:51:42] Rodya_: has joined #ruby
[04:51:46] alfiemax: has joined #ruby
[04:54:23] smathy: has joined #ruby
[04:55:14] blackmesa: has joined #ruby
[04:57:16] vondruch: has joined #ruby
[04:57:22] zacts: has joined #ruby
[04:58:17] dikaio: has joined #ruby
[04:59:47] ghr: has joined #ruby
[05:01:45] Devalo: has joined #ruby
[05:03:55] zacts: hello rubyists
[05:06:31] mistermocha: has joined #ruby
[05:11:39] TheWhip: has joined #ruby
[05:11:59] the_drow: has joined #ruby
[05:12:35] Atomic2: has joined #ruby
[05:14:23] ghr: has joined #ruby
[05:15:07] Rodya_: has joined #ruby
[05:16:23] Macaveli: has joined #ruby
[05:18:49] flashpoint9: has joined #ruby
[05:20:03] dtzuzu: has joined #ruby
[05:20:52] Ropeney: has joined #ruby
[05:21:36] raeoks: has joined #ruby
[05:23:05] deecross: has joined #ruby
[05:23:36] lkb: has joined #ruby
[05:23:48] ReK2GnULinuX: has joined #ruby
[05:23:54] ReK2GnULinuX: has joined #ruby
[05:24:24] ghr: has joined #ruby
[05:26:14] hahuang61: has joined #ruby
[05:26:33] LoneHerm_: has joined #ruby
[05:28:55] lessless: has joined #ruby
[05:29:49] wigust: has joined #ruby
[05:30:58] jaguarmagenta: has joined #ruby
[05:33:49] ghr: has joined #ruby
[05:34:06] Mrgoose: has joined #ruby
[05:34:09] _mak: has joined #ruby
[05:40:02] Abonec: has joined #ruby
[05:40:14] TeaVirus: has joined #ruby
[05:40:36] alfiemax: has joined #ruby
[05:43:24] ghr: has joined #ruby
[05:43:29] astrobunny: has joined #ruby
[05:44:06] zacstewart: has joined #ruby
[05:50:03] AndrewIsHere: has joined #ruby
[05:50:51] Bugboy1028: has joined #ruby
[05:51:39] ur5us: has joined #ruby
[05:51:54] xue: has joined #ruby
[05:52:05] dminuoso: has joined #ruby
[05:52:16] The_Phoenix: has joined #ruby
[05:52:42] watersoul: has joined #ruby
[05:53:17] jiblet: has joined #ruby
[05:54:50] ghr: has joined #ruby
[05:54:58] dionysus69: has joined #ruby
[05:56:59] blackmesa: has joined #ruby
[06:00:21] yfeldblum: has joined #ruby
[06:01:02] Bugboy1028: has joined #ruby
[06:01:12] hipertracker: has joined #ruby
[06:01:36] z3ndrag0n: has joined #ruby
[06:02:01] yfeldblum: has joined #ruby
[06:06:52] kareeoleez: has joined #ruby
[06:07:21] ghr: has joined #ruby
[06:09:25] alfiemax: has joined #ruby
[06:10:58] RegulationD: has joined #ruby
[06:11:02] Bugboy1028: has joined #ruby
[06:15:38] Rodya_: has joined #ruby
[06:17:04] zacts: has joined #ruby
[06:17:22] ghr: has joined #ruby
[06:17:27] flughafen_: has joined #ruby
[06:19:35] Pixi_: has joined #ruby
[06:22:05] dtzuzu: has joined #ruby
[06:23:13] digneety: has joined #ruby
[06:23:19] nankyokusei: has joined #ruby
[06:24:26] moei: has joined #ruby
[06:26:29] Ponyo: has joined #ruby
[06:26:52] ghr: has joined #ruby
[06:28:07] hays: has joined #ruby
[06:28:54] burgestrand: has joined #ruby
[06:29:25] Rainbow-Sapphire: has joined #ruby
[06:29:26] dminuoso: has joined #ruby
[06:31:25] firstdayonthejob: has joined #ruby
[06:33:56] colegatron: has joined #ruby
[06:34:55] aganov: has joined #ruby
[06:35:48] codecop: has joined #ruby
[06:37:15] conta: has joined #ruby
[06:37:16] the_drow: has joined #ruby
[06:38:31] calmchaos: has joined #ruby
[06:38:53] ghr: has joined #ruby
[06:39:13] calmchaos: has joined #ruby
[06:39:56] alfiemax: has joined #ruby
[06:40:49] atomx: has joined #ruby
[06:41:36] vuoto: has joined #ruby
[06:45:49] zacstewart: has joined #ruby
[06:46:07] mark_66: has joined #ruby
[06:47:39] blaxter: has joined #ruby
[06:48:35] ferr: has joined #ruby
[06:49:09] TomyWork: has joined #ruby
[06:51:01] Pupeno: has joined #ruby
[06:51:14] neanderslob: has joined #ruby
[06:51:53] ghr: has joined #ruby
[06:53:24] agit0: has joined #ruby
[06:53:38] tao_: has joined #ruby
[06:56:04] skade: has joined #ruby
[06:57:21] Xeago_: has joined #ruby
[06:57:38] dminuoso: has joined #ruby
[06:57:41] anisha: has joined #ruby
[06:58:13] Hyuk: has joined #ruby
[06:58:39] pawnbox: has joined #ruby
[06:58:46] blackmesa: has joined #ruby
[07:01:24] ghr: has joined #ruby
[07:03:27] MrBusiness: has joined #ruby
[07:04:03] andikr: has joined #ruby
[07:04:30] aufi: has joined #ruby
[07:09:22] max1: has joined #ruby
[07:09:48] tvw: has joined #ruby
[07:11:59] Amnez777: has joined #ruby
[07:13:33] charliesome: has joined #ruby
[07:13:35] chipotle: has joined #ruby
[07:13:55] ghr: has joined #ruby
[07:14:21] deecross: has joined #ruby
[07:14:54] Pupeno: has joined #ruby
[07:16:16] LoneHermit: has joined #ruby
[07:16:29] daumie: has joined #ruby
[07:17:29] mattwashere: has joined #ruby
[07:18:00] samuelkadolph: has joined #ruby
[07:18:11] ur5us: has joined #ruby
[07:18:17] Gooer: has joined #ruby
[07:18:19] pawnbox: has joined #ruby
[07:21:01] daumie: has joined #ruby
[07:21:08] Xeago_: has joined #ruby
[07:22:30] daumie: has joined #ruby
[07:22:52] dtzuzu: has joined #ruby
[07:22:55] rkazak: has joined #ruby
[07:23:18] DoubleMalt: has joined #ruby
[07:24:07] daumie: has joined #ruby
[07:24:50] Dimik: has joined #ruby
[07:27:29] aryaching: has joined #ruby
[07:27:55] ghr: has joined #ruby
[07:30:27] aries_liuxueyang: has joined #ruby
[07:31:52] antgel: has joined #ruby
[07:33:49] aswen: has joined #ruby
[07:35:39] gwokamollaye: has joined #ruby
[07:36:53] jaruga___: has joined #ruby
[07:38:26] ghr: has joined #ruby
[07:40:27] ddffg: has joined #ruby
[07:41:42] TheWhip: has joined #ruby
[07:42:00] Es0teric: has joined #ruby
[07:43:58] karapetyan: has joined #ruby
[07:44:14] Xeago_: has joined #ruby
[07:45:38] Xiti: has joined #ruby
[07:46:59] zacstewart: has joined #ruby
[07:47:44] ghr: has joined #ruby
[07:48:19] ghr: has joined #ruby
[07:49:31] multi_io: has joined #ruby
[07:49:59] dionysus69: has joined #ruby
[07:52:10] afei: has joined #ruby
[07:53:17] Spami: has joined #ruby
[07:56:16] hahuang61: has joined #ruby
[07:56:20] tAn: has joined #ruby
[07:59:02] daumie: has joined #ruby
[08:00:32] blackmesa: has joined #ruby
[08:01:17] roshanavand: has joined #ruby
[08:02:52] igam: has joined #ruby
[08:02:54] Pumukel: has joined #ruby
[08:03:25] djbkd: has joined #ruby
[08:04:27] djbkd: has joined #ruby
[08:06:25] burgestrand: has joined #ruby
[08:06:52] jaruga____: has joined #ruby
[08:08:33] hipertracker: has joined #ruby
[08:11:13] max1: has joined #ruby
[08:11:48] RegulationD: has joined #ruby
[08:13:28] the_drow: has joined #ruby
[08:13:38] Ropeney: has joined #ruby
[08:17:18] LoneHermit: has joined #ruby
[08:20:00] joonty: has joined #ruby
[08:20:17] cfillion: has joined #ruby
[08:23:08] yeticry: has joined #ruby
[08:23:32] dtzuzu: has joined #ruby
[08:24:00] tomphp: has joined #ruby
[08:24:08] nankyokusei: has joined #ruby
[08:25:05] jaruga____: has joined #ruby
[08:27:41] tao_: has joined #ruby
[08:29:01] schickung: has joined #ruby
[08:30:06] ngw_: has joined #ruby
[08:30:55] marr: has joined #ruby
[08:31:08] CloCkWeRX1: has joined #ruby
[08:32:29] igam`: has joined #ruby
[08:32:59] shinnya: has joined #ruby
[08:33:25] pandaant: has joined #ruby
[08:33:50] pawnbox: has joined #ruby
[08:35:27] karapetyan: has joined #ruby
[08:35:40] blackmesa: has joined #ruby
[08:37:18] rkazak: has joined #ruby
[08:40:55] senayar: has joined #ruby
[08:46:37] Xeago_: has joined #ruby
[08:48:10] xue: has joined #ruby
[08:48:48] zacstewart: has joined #ruby
[08:56:22] tAn: has joined #ruby
[08:56:44] phredus: has joined #ruby
[08:57:16] mnghqf: has joined #ruby
[09:00:27] karapetyan: has joined #ruby
[09:00:55] yfeldblum: has joined #ruby
[09:02:04] Pupeno: has joined #ruby
[09:02:07] TheWhip: has joined #ruby
[09:03:15] jenrzzz: has joined #ruby
[09:05:08] schickung: has joined #ruby
[09:06:22] vdamewood: has joined #ruby
[09:06:42] troulouliou_div2: has joined #ruby
[09:06:52] mistermocha: has joined #ruby
[09:07:01] kareeoleez: has joined #ruby
[09:09:55] yardenbar: has joined #ruby
[09:10:35] sysmonk: has joined #ruby
[09:10:40] sysmonk: has left #ruby: ()
[09:11:14] kareeole_: has joined #ruby
[09:11:24] sasha2sasha: has joined #ruby
[09:12:59] sasha2sasha: Hi. Noob question: a = Hash.new; a["one"] = "test"; a["two"] = a["one"]; a["two"].gsub!(/test/, "XXX"); <- somehow this substitutes both a["one"] and a["two"]
[09:13:26] sasha2sasha: why is that, and how do i only gsub! on a["two"] ?
[09:14:10] aufi: has joined #ruby
[09:14:37] Pupeno: has joined #ruby
[09:14:54] vuoto: has joined #ruby
[09:15:02] tobiasvl: a["two"] = a["one"].dup
[09:15:56] sasha2sasha: oh, so = a["one"] passes the var as a reference?
[09:17:11] kareeoleez: has joined #ruby
[09:17:13] pawnbox: has joined #ruby
[09:17:29] ur5us: has joined #ruby
[09:17:37] igam`: alternatively: a["two"]=a["two"].gsub(/test/, "XXX") # no !
[09:17:53] c355E3B: has joined #ruby
[09:17:53] Pumukel: has joined #ruby
[09:19:12] bruce_lee: has joined #ruby
[09:19:58] flashpoint9: has joined #ruby
[09:20:44] sasha2sasha: igam`: yeah, i've got more gsub's later on so just making it nicer with comments for each gsub
[09:21:19] bob_f: has joined #ruby
[09:22:14] pawnbox: has joined #ruby
[09:22:47] jrabe: has joined #ruby
[09:24:03] kareeole_: has joined #ruby
[09:24:18] dtzuzu: has joined #ruby
[09:24:20] jhass: "comments"? sounds like you should use locals instead of a hash
[09:24:37] igam`: Yes, if you have multiple operations, it may be worth using a local variables.
[09:25:00] conta: has joined #ruby
[09:25:24] Xeago_: has joined #ruby
[09:26:02] kareeoleez: has joined #ruby
[09:28:00] ferr1: has joined #ruby
[09:29:30] schickung: has joined #ruby
[09:31:37] pawnbox: has joined #ruby
[09:32:42] TheWhip: has joined #ruby
[09:34:34] kareeole_: has joined #ruby
[09:35:28] Xeago_: has joined #ruby
[09:36:26] Kedare: has joined #ruby
[09:37:13] postmodern: has joined #ruby
[09:37:39] kareeole_: has joined #ruby
[09:37:50] kies: has joined #ruby
[09:39:57] kareeoleez: has joined #ruby
[09:41:56] kareeole_: has joined #ruby
[09:43:34] kareeole_: has joined #ruby
[09:44:22] astrobunny: has joined #ruby
[09:44:44] daumie: has joined #ruby
[09:45:52] bigkevmcd: has joined #ruby
[09:50:10] tao_: has joined #ruby
[09:50:11] Dry_Lips: has joined #ruby
[09:50:11] Dry_Lips: has joined #ruby
[09:50:39] zacstewart: has joined #ruby
[09:50:45] daniel: has joined #ruby
[09:52:19] AndrewIsHere: has joined #ruby
[09:52:52] sicn: hi, wondering if any of you might know how I can dynamically add routes in Ruby on Rails based on a table in the database? My naive approach was to create a model and in routes.rb I simply did DynamicUrls.find_each do |urlToAdd| #... end, but that seems to make the application not start (and doesn't even make it possible to do a rake db:migrate)
[09:53:09] adaedra: ?rails sicn
[09:53:09] ruby[bot]: sicn: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[09:54:35] sicn: oh sorry, didnt that channel was there, too ;)
[09:55:06] dminuoso: sicn: Don't worry, it is just a friendly reminder. :)
[09:57:00] hahuang61: has joined #ruby
[09:57:02] Xeago_: has joined #ruby
[09:58:29] jgrevich: has joined #ruby
[09:59:30] alfiemax: has joined #ruby
[10:02:57] tAn: has joined #ruby
[10:03:49] jrabe: has joined #ruby
[10:03:50] schickung: has joined #ruby
[10:04:01] charliesome: has joined #ruby
[10:04:26] nettoweb: has joined #ruby
[10:05:50] jenrzzz: has joined #ruby
[10:09:57] helpa: has joined #ruby
[10:12:31] dorenkampm: has joined #ruby
[10:12:40] RegulationD: has joined #ruby
[10:12:55] karapetyan: has joined #ruby
[10:13:04] dorenkampm: hi guys, a question.. when having a multiline variable with << operator , how can i concatenate or insert variables into that?
[10:14:27] tobiasvl: dorenkampm: you can interpolate like usual
[10:14:50] dorenkampm: which means? (sorry im new to ruby)
[10:15:13] tobiasvl: >> a = "dorenkampm"; "hello #{a}"
[10:15:14] ruby[bot]: tobiasvl: # => "hello dorenkampm" (https://eval.in/601838)
[10:15:17] Pupeno: has joined #ruby
[10:15:23] dorenkampm: ah, ok thanks! :)
[10:15:49] hk238: has joined #ruby
[10:16:11] chip_: has joined #ruby
[10:16:32] torandu: has joined #ruby
[10:17:22] MrBusiness: has joined #ruby
[10:18:00] gregf_: dorenkampm: what do mean by a multiline variable?
[10:18:12] binaryplease2: has joined #ruby
[10:18:29] kareeoleez: has joined #ruby
[10:18:30] last_staff: has joined #ruby
[10:18:45] tao_: has joined #ruby
[10:18:46] jaguarmagenta: has joined #ruby
[10:18:48] LoneHermit: has joined #ruby
[10:18:49] bigkevmcd: has joined #ruby
[10:19:24] gregf_: >> a = "dorenkampm"; "hello " << a # that?
[10:19:25] ruby[bot]: gregf_: # => "hello dorenkampm" (https://eval.in/601842)
[10:22:07] terminalrecluse: has joined #ruby
[10:24:16] tobiasvl: probably heredox
[10:25:00] nankyokusei: has joined #ruby
[10:25:04] dtzuzu: has joined #ruby
[10:26:05] burgestrand: has joined #ruby
[10:26:06] mistermocha: has joined #ruby
[10:26:56] Hyuk: has joined #ruby
[10:27:03] workmad3: has joined #ruby
[10:27:10] mistermocha: has joined #ruby
[10:30:37] daumie: has joined #ruby
[10:32:03] arup_r: has joined #ruby
[10:33:32] ur5us: has joined #ruby
[10:34:02] basex: has joined #ruby
[10:34:13] arup_r: Hi, I am getting such a big number as a auth_token https://gist.github.com/aruprakshit/c621bee979d075b4cc75b783f8363f48, and then I send them to user with url and and then user use that url and I validate the authtoken in my end. cool. But can I do apply some encode/decode to the authtoken to reduce it? What should I used in Ruby for that?
[10:34:19] stephan_: has joined #ruby
[10:34:23] lkba: has joined #ruby
[10:34:52] blackmesa: has joined #ruby
[10:35:41] jhass: why is it two lines?
[10:36:26] burgestrand: has joined #ruby
[10:36:28] dminuoso: arup_r: Use Base64 encoding.
[10:36:41] workmad3: arup_r: you could consider using a base64 string instead of a hex string... by increasing your character space by 4, you can reduce the string representation by a similar amount and maintain the same amount of entropy in the underlying information
[10:36:54] arup_r: jhass: it is not 2 lines, it is so long that splittd into two line in gist
[10:37:04] dminuoso: &ri urlsafe_encode64
[10:37:04] `derpy: http://ruby-doc.org/stdlib-2.3.1/libdoc/base64/rdoc/Base64.html#method-i-urlsafe_encode64
[10:37:11] workmad3: arup_r: there is an explicit newline in the gist
[10:37:13] dminuoso: arup_r: Don't get tempted in using the non-urlsafe variant.
[10:37:29] arup_r: dminuoso: I am reading the link http://ruby-doc.org/stdlib-2.1.3/libdoc/base64/rdoc/Base64.html also just got to know
[10:38:14] z3ndrag0n: has joined #ruby
[10:38:18] arup_r: workmad3: ok modified gist https://gist.github.com/aruprakshit/c621bee979d075b4cc75b783f8363f48
[10:38:24] arup_r: dminuoso: let me try that lib
[10:38:41] arup_r: I just want to reduce the size of that big auth token
[10:38:59] workmad3: arup_r: out of curiosity, how are you generating the token currently?
[10:39:21] workmad3: arup_r: also, with an automatic redirect cycle, does it really matter what size the token is?
[10:39:24] giz|work: has joined #ruby
[10:39:26] arup_r: not me the gem sorcery is doing it for me
[10:41:01] arup_r: workmad3: yes people use outlook, and sharing such big url is troublesome. I was discussing it in #rails, but they said newer version outlook is fine for such big url. But I got to know it is not possible for clients to upgrade the outlook. We have to take care of it
[10:41:16] jenrzzz: has joined #ruby
[10:41:44] arup_r: so I am thinking if I can reduce the size of auth token by using ruby with such encoding/decoding mechanism
[10:42:09] workmad3: arup_r: ah, ok... as long as you don't actually weaken security then fair enough
[10:43:21] workmad3: arup_r: you could also consider the standard trick of producing an HTML email that says "Copy this link into your browser <url> or click <a href="...">here</a>"
[10:43:39] arup_r: base64 lib will not help https://gist.github.com/aruprakshit/c621bee979d075b4cc75b783f8363f48#file-irb-rb :(
[10:44:29] snowy: has joined #ruby
[10:45:05] arup_r: workmad3: we have a button and text filed. I click button and then the link comes in the text filed and I copy the url and paste in the email and send it. And outlook is borken sometimes for long url
[10:45:37] workmad3: that sounds like a horrible way to be sending authentication-related data to users :/
[10:46:22] arup_r: workmad3: hm. But how would you suggest to implement this? any standard idea?
[10:48:21] workmad3: arup_r: for starters, I'd suggest having the email automated so that you never see the url (and also never let it leak into the memory of your local workstation)
[10:48:58] workmad3: arup_r: that would also give you more options around HTML emails as suggested
[10:49:08] camonz: has joined #ruby
[10:49:19] workmad3: (as you're not reliant on manually setting up an email template)
[10:50:36] freerobby: has joined #ruby
[10:51:49] zacstewart: has joined #ruby
[10:52:23] jenrzzz: has joined #ruby
[10:52:50] toretore: has joined #ruby
[10:53:20] GodFather: has joined #ruby
[10:53:35] arup_r: hm. thanks let me think
[10:53:50] johnmilton: has joined #ruby
[10:55:20] johnmilton: has joined #ruby
[10:55:24] deecross: has joined #ruby
[10:55:54] conta1: has joined #ruby
[10:56:36] arup_r: workmad3: other things is with that URL in hand, client copy the link and put the emails in the TO list to share. With Rails, I need to know those all TO or user has to put it right there. many things I need to think about now
[10:57:42] Wildfyr: has joined #ruby
[10:57:54] jrabe: has left #ruby: ()
[10:57:56] jrabe: has joined #ruby
[10:57:57] Wildfyr: How to get file name of the script running
[10:58:16] Wildfyr: In python it is sys.argv[0], in ruby it doesn't seem like that help
[10:58:31] al2o3-cr: Wildfyr: $0 or __FILE__ or ENV['_']
[10:58:37] Wildfyr: al2o3-cr: thanks
[10:58:48] Wildfyr: arup_r: that work as well
[11:01:17] jenrzzz: has joined #ruby
[11:04:14] deecross: has joined #ruby
[11:06:21] maloik: has joined #ruby
[11:07:56] bkxd: has joined #ruby
[11:08:09] arup_r: so it is not possible to encde long strings to small size and then decode back to the original one when needed? if that is possible my path is easy. :)
[11:08:22] tAn: has joined #ruby
[11:11:16] arup_r: hmm, after some digging I find I am generating this authtoken so big it is SecureRandom.hex(127) .. What is small limit which still produces uniq values?
[11:11:51] Vingador: has joined #ruby
[11:14:15] Xeago_: has joined #ruby
[11:14:17] jhass: in theory not even this guarantees unqiue values
[11:14:21] workmad3: arup_r: first, try using `SecureRandom.base64` instead... that should produce a character representation that's about half the size
[11:14:24] jhass: just in practice
[11:14:37] workmad3: and yeah, you have nothing more than statistical assurances on uniqueness
[11:14:52] arup_r: yes I am seeing http://ruby-doc.org/stdlib-2.2.3/libdoc/securerandom/rdoc/SecureRandom.html#method-c-base64 and it is urlsafe also right?
[11:15:33] workmad3: arup_r: you could easily add `.tr("+/", "-_")` the result to perform the same transformation as the urlsafe_base64 method
[11:16:05] workmad3: and you don't even need to undo that transformation if it's stored in the database like that
[11:16:16] arup_r: got your point
[11:18:22] JeanCarloMachado: has joined #ruby
[11:19:47] LoneHermit: has joined #ruby
[11:20:07] workmad3: arup_r: you could probably use quite a bit less than 127 for that value though... `SecureRandom.hex(127)` will produce 127 random bytes and then base64 encode them... that would result in nearly 1024 bits of randomness and a pretty low collision rate... in fact, you could probably just do `SecureRandom.uuid` instead and slap that in the URL for a shorter unique string
[11:21:37] Xeago_: has joined #ruby
[11:22:23] workmad3: err... `SecureRandom.base64(127)` even (not SecureRandom.hex(127))
[11:23:01] charliesome: has joined #ruby
[11:23:32] dminuoso: postmodern: Are you around?
[11:24:01] burgestrand: has joined #ruby
[11:25:51] dtzuzu: has joined #ruby
[11:26:23] jrabe: has joined #ruby
[11:30:57] ldnunes: has joined #ruby
[11:33:32] allcentury: has joined #ruby
[11:35:46] anisha_: has joined #ruby
[11:36:35] schickung: has joined #ruby
[11:37:22] flashpoint9: has joined #ruby
[11:38:21] JeanCarloMachado: has joined #ruby
[11:38:23] Xeago_: has joined #ruby
[11:38:53] flashpoi_: has joined #ruby
[11:39:16] burgestrand: Is there an equivalent to Elixir's Enum.scan (http://elixir-lang.org/docs/stable/elixir/Enum.html#scan/2) in Ruby stdlib or core? e.g. >> (1..5).scan { |elem, acc| elem + acc } # => [1, 3, 6, 10, 15]
[11:40:05] rodfersou: has joined #ruby
[11:42:18] sdothum: has joined #ruby
[11:42:49] jhass: not aware of any
[11:43:08] Lord_of_Life: has joined #ruby
[11:43:35] jhass: .each_with_object([]) {|e, res| res << e + res.last || 0 } is probably as good as you get
[11:44:46] vuoto_: has joined #ruby
[11:45:08] Hanmac: has joined #ruby
[11:46:56] Xeago_: has joined #ruby
[11:47:24] JeanCarloMachado: has joined #ruby
[11:48:04] vuoto_: has joined #ruby
[11:48:11] karapetyan: has joined #ruby
[11:48:14] blackmesa: has joined #ruby
[11:51:48] Bish: how are these unit testing things are called
[11:51:56] Bish: those it "does something"
[11:52:04] Bish: is that rails specific, or is a cool gem that does that?
[11:53:34] AndrewIsHere: has joined #ruby
[11:54:14] AngryBuzzy: has joined #ruby
[11:54:23] charliesome: has joined #ruby
[11:55:27] blackgoat: has joined #ruby
[11:55:52] malconis: has joined #ruby
[11:56:42] jottr: has joined #ruby
[11:56:56] Xeago_: has joined #ruby
[11:57:45] hahuang61: has joined #ruby
[11:58:58] shevy: you are so active ... what are you writing? rails stuff?
[11:59:12] synthroid: has joined #ruby
[11:59:25] shevy: which unit testing things
[12:01:55] jokke: is there a method for Complex to make a scalar multiplication?
[12:04:12] harfangk: has joined #ruby
[12:04:57] workmad3: jokke: just multiply by an integer or float
[12:05:08] jokke: workmad3: i mean two complex numbers
[12:05:37] workmad3: jokke: hmm... I don't understand what you mean then...
[12:05:52] jokke: you can view complex numbers as vectors in the complex plane
[12:06:09] jokke: and vectors can be multiplied
[12:06:10] workmad3: yeah... and scalar multiplication would be to multiply one of them by a scalar value
[12:06:36] jokke: maybe i'm using the wrong term since i'm not a native speaker
[12:06:40] workmad3: yes... multiplying two vectors isn't a scalar multiplication, it's an inner or outer product (depending on if you do dot or cross product)
[12:06:44] Vingador_: has joined #ruby
[12:06:49] jokke: dot product!
[12:06:51] jokke: thank you
[12:07:00] jokke: it's called scalar product here
[12:07:08] dkam: has joined #ruby
[12:07:21] jokke: so basically i want to do a dot product of two complex numbers
[12:07:23] workmad3: I'd probably have gotten what you meant if you said scalar product, funnily enough :)
[12:07:39] workmad3: but scalar multiplication is normally to multiply a vector by a scalar ;)
[12:07:58] dkam: has joined #ruby
[12:08:32] joonty: has joined #ruby
[12:08:43] jokke: so how would you make a dot product of a vector in ruby? :)
[12:08:57] workmad3: jokke: I'd either implement it manually or look at the vector class
[12:09:15] jokke: of course there's a vector class <3
[12:10:31] jokke: do i have to require it?
[12:11:03] jokke: workmad3: are you sure a vector class exists?
[12:12:19] jokke: uninitialized constant
[12:12:26] igam`: and there's a map2 method.
[12:12:33] workmad3: http://ruby-doc.org/stdlib-2.2.1/libdoc/matrix/rdoc/Vector.html
[12:12:33] Bish: shevy: what do you mean, by saying active?
[12:12:34] igam`: http://ruby-doc.org/stdlib-1.9.3/libdoc/matrix/rdoc/Vector.html
[12:12:57] Bish: shevy: no, i don't like rails, it tells me to much how to do what, im using webmachine as "backend" for a angular application
[12:12:58] arup_r: has joined #ruby
[12:13:09] jokke: ok so i need to require matrix i guess
[12:13:12] Bish: and unit-tests: i never tested ruby code before, was interested how it works
[12:13:32] RegulationD: has joined #ruby
[12:13:41] Bish: and i remember reading those "it "does something" { ...} " snippets
[12:14:56] neo_: has joined #ruby
[12:15:10] igam`: require 'matrix' ; Vector[1,2,3].map2(Vector[5,6,7]){|a,b|a*b}.inject(:+) ==> 38
[12:16:26] jokke: that's not pretty...
[12:16:32] jokke: thank you
[12:16:36] fmcgeough: has joined #ruby
[12:16:46] workmad3: jokke: Vector[1,2,3].dot(Vector[5,6,7])
[12:16:55] igam`: (reduce '+ (map 'vector '* #(1 2 3) '(5 6 7))) #| --> 38 |# ; in Common Lisp looks much nicer.
[12:17:18] workmad3: igam`: it doesn't look prettier than using the `dot` method that Vector has ;)
[12:17:23] jokke: workmad3: :))
[12:17:36] igam`: Well then: (dot a b) too.
[12:17:55] workmad3: yeah, I'm not a fan of prefix notation in most circumstances though :)
[12:17:57] jokke: i hate prefix notation
[12:18:22] malconis: has joined #ruby
[12:18:37] jokke: but lisp would look even worse without it. imagine all the additional parentheses! /o\
[12:19:31] jaguarmagenta: has joined #ruby
[12:20:19] jmignault: has joined #ruby
[12:21:28] statelesscode: has joined #ruby
[12:24:11] camonz: has joined #ruby
[12:24:16] hutch34_: has joined #ruby
[12:24:44] Mon_Ouie: has joined #ruby
[12:25:10] GinoManWorks: has joined #ruby
[12:25:56] nankyokusei: has joined #ruby
[12:26:32] ytti: who broke france?
[12:26:36] dtzuzu: has joined #ruby
[12:29:38] Bish: ytti: eh?
[12:30:00] Xeago_: has joined #ruby
[12:30:56] Xiti: has joined #ruby
[12:32:40] ruby[bot]: -b Guest_85664!*@*$#ruby-banned
[12:34:15] roamingdog: has joined #ruby
[12:36:09] harfangk: has joined #ruby
[12:36:26] pwnd_nsfw`: has joined #ruby
[12:38:37] chip_: has joined #ruby
[12:39:02] aupadhye: has joined #ruby
[12:39:07] Asher: has joined #ruby
[12:41:28] dtzuzu: has joined #ruby
[12:43:05] Rainbow-Sapphire: has joined #ruby
[12:43:06] jokke: NoMethodError: undefined method `dot' for Vector[1.0, 2.0]:Vector
[12:43:39] jokke: the project is written for ruby 2.0.0p598
[12:45:20] tvw: has joined #ruby
[12:45:54] Mon_Ouie: Do you have #inner_product ?
[12:45:57] pdoherty: has joined #ruby
[12:48:46] blackmesa: has joined #ruby
[12:49:16] vuoto: has joined #ruby
[12:49:18] Sylario: I use the following code : a/b+(a%b >0 ? 1:0)
[12:49:28] Sylario: is there a more elegant syntax in Ruby?
[12:49:57] Sylario: It make a division go to the superior value when there is a remain
[12:49:58] al2o3-cr: has joined #ruby
[12:50:04] Sylario: don't know the english word
[12:52:37] igam`: (10.0/3).ceil => 4
[12:52:52] igam`: But beware if a and b are integers, a/b will truncate.
[12:53:05] Sylario: a and b are integer
[12:53:08] igam`: So: (Float(a)/b).ceil
[12:53:15] Mon_Ouie: a.fdiv(b).ceil
[12:53:18] grn: has joined #ruby
[12:53:18] igam`: sylario: perhaps your formula is better.
[12:54:05] igam`: 2**400.fdiv(3) => 1.371932534373581e+40 ; this may be bad…
[12:54:28] Sylario: as it is for pagination, it may be ugly
[12:54:39] Sylario: i'll stay with my formula
[12:55:37] Mon_Ouie: What's bad about it?
[12:55:37] igam`: ((2**400)/3+1)-(2**400).fdiv(3).ceil => 47781221166459823158558768652126811266595103941005856744533100820560893251843433501458719856460951803222
[12:55:51] igam`: Mon_Ouie: you can have integers greater than the maximum floating point number.
[12:55:55] Mon_Ouie: 2**400.fdiv(3) is 2 ** (400.fdiv(3))
[12:56:11] igam`: Yes, I had to correct hence the parentheses in the following example.
[12:56:13] hipertracker: has joined #ruby
[12:56:25] igam`: and you can have integers with more precision than the floating point numbers, hence the aberant results above.
[12:56:50] pawnbox: has joined #ruby
[12:57:03] Sylario: I do not think the API i am browsing can physically store that many pages of results
[12:57:04] Mon_Ouie: How about Rational(a, b).ceil
[12:57:08] dminuoso: You can have integer numbers as large as your physical memory supports Rubys representation of them.
[12:57:12] Pumukel: has joined #ruby
[12:57:12] igam`: In general, you are way better staying away from floating point numbers.
[12:57:26] igam`: Even something as simple as (a+b)/2 is horrible with floating point numbers.
[12:57:32] griffindy: has joined #ruby
[12:57:36] Sylario: i try to avoid them
[12:57:40] grn: has joined #ruby
[12:57:55] dminuoso: sylario: If you ever need them, chances are you can get away with Rational, and only converting to float during representation.
[12:58:00] grn: has joined #ruby
[12:58:23] digneety: has joined #ruby
[12:58:40] grn: has joined #ruby
[12:58:55] Sylario: don't capitalize rational it brings back bad memories
[12:59:59] evansbee: has joined #ruby
[13:00:17] flashpoint9: has joined #ruby
[13:00:20] dminuoso: sylario: Rational is a Ruby constant, so it's appropriate to capitalize it..
[13:00:42] Sylario: I had to use Rational Rose
[13:01:02] Sylario: It was not fun
[13:02:15] ramortegui: has joined #ruby
[13:03:20] cd-rum: has joined #ruby
[13:07:42] diegoviola: has joined #ruby
[13:11:01] symm-: has joined #ruby
[13:11:44] allcentury: has joined #ruby
[13:12:22] nando293921: has joined #ruby
[13:15:17] chouhoulis: has joined #ruby
[13:16:17] deecross_: has joined #ruby
[13:17:47] bmurt: has joined #ruby
[13:18:44] ekinmur: has joined #ruby
[13:21:11] LoneHermit: has joined #ruby
[13:21:17] toretore: has joined #ruby
[13:23:18] aegis3121: has joined #ruby
[13:23:33] GodFather: has joined #ruby
[13:26:19] tjbiddle: has joined #ruby
[13:26:48] harfangk: has joined #ruby
[13:26:49] Rodya_: has joined #ruby
[13:28:57] nando293921: has joined #ruby
[13:30:32] macsteps: has joined #ruby
[13:30:45] Rodya__: has joined #ruby
[13:31:17] bmurt: has joined #ruby
[13:32:32] `tim`: has joined #ruby
[13:32:57] Xeago_: has joined #ruby
[13:33:04] codecop: has joined #ruby
[13:33:42] snowy: has joined #ruby
[13:34:11] Xeago_: has joined #ruby
[13:36:00] JakFrist: has joined #ruby
[13:36:31] tAn: has joined #ruby
[13:36:39] eval: has joined #ruby
[13:37:13] pawnbox: has joined #ruby
[13:38:18] dennisvennink: has joined #ruby
[13:43:23] chip_: has joined #ruby
[13:46:55] swills: has joined #ruby
[13:46:57] karapetyan: has joined #ruby
[13:47:03] flashpoint9: has joined #ruby
[13:47:05] iamvery: has joined #ruby
[13:47:57] SilverKey: has joined #ruby
[13:48:46] jokke: i'm looking for a simple easy to use rubygem mirror that allows pushing private gems
[13:49:07] jokke: gemirro supports private gems only when manually added into gems directory
[13:49:13] quakephil: has joined #ruby
[13:49:36] jokke: at least it looks like it
[13:50:43] quakephil: Rails/ar question... I have a model called group (can't change the name) with a relationship to user, and I'm trying to do user.group.select.etc but its failling on the .group part with"The method .group() must contain arguments"
[13:50:57] jokke: quakephil: join #RubyOnRails
[13:51:44] blackmesa: has joined #ruby
[13:52:58] Azure|dc: has joined #ruby
[13:56:26] harfangk: has joined #ruby
[13:58:31] hahuang61: has joined #ruby
[14:01:31] eljimmy: has joined #ruby
[14:02:05] Spami: has joined #ruby
[14:02:31] UnKnOwN|: has joined #ruby
[14:05:02] nankyokusei: has joined #ruby
[14:06:05] burgestrand: Bish I don't know if you got a response, but `rspec` is the popular one, http://rspec.info
[14:07:17] dionysus69: has joined #ruby
[14:08:05] blackmesa: has joined #ruby
[14:08:22] dminuoso: jokke: What you are looking for is called a private git repository.
[14:08:25] camilasan: has joined #ruby
[14:08:53] jrafanie: has joined #ruby
[14:09:27] dminuoso: bumao: And minitest is arguably just as popular.
[14:09:54] Xeago_: has joined #ruby
[14:10:06] isberg: has joined #ruby
[14:10:57] nankyokusei: has joined #ruby
[14:11:00] dopamean_: has joined #ruby
[14:11:06] sdothum: has joined #ruby
[14:11:09] rbennacer: has joined #ruby
[14:12:00] jokke: dminuoso: no?
[14:12:04] dminuoso: jokke: How so?
[14:12:11] jokke: dminuoso: gemspec doesn't allow git repos as deps
[14:12:14] jokke: Gemfile does
[14:12:21] dminuoso: Fair point.
[14:12:23] jokke: but then the gem doesn't know its deps
[14:12:44] jokke: dminuoso: but you're right. it works one level deep :)
[14:12:58] dminuoso: jokke: what about running your own gem server?
[14:13:10] jokke: that's what i was thinking
[14:13:13] jokke: gem in a box
[14:13:29] jokke: also has rubygems mirroring functionality
[14:14:07] dminuoso: jokke: Though so far I have managed to set up all my interdependency with Gemfile just fine. :p
[14:14:27] RegulationD: has joined #ruby
[14:14:28] jokke: yeah most of the time it works
[14:14:28] dminuoso: Using just git simplifies things since I don't also need to worry about some gem server.
[14:14:43] djwnoh: has joined #ruby
[14:15:01] jokke: but as soon as you want to write a gem that should be installable with gem install it's annoying
[14:15:10] jokke: (if it has private deps)
[14:15:13] bluOxigen: has joined #ruby
[14:15:47] dminuoso: jokke: Oh yeah, everything here just works with Bundler. :)
[14:15:55] dminuoso: So I guess I don't have that need.
[14:16:15] hck89: has joined #ruby
[14:16:16] jokke: as a matter of fact i'd much more appreciate rubygems allowing git deps
[14:16:20] dminuoso: jokke: Im guessing you won't get around running your own gem server.
[14:16:36] dminuoso: jokke: Though actually I remember quite a lot of valid points why that makes no sense.
[14:16:47] dminuoso: Well, I remember them being made, not the actual points.
[14:17:08] jokke: dminuoso: well as long as you use tags there's no real downside
[14:17:11] dminuoso: ACTION thinks adaedra might have been the person
[14:17:29] adaedra: what is it?
[14:17:44] jokke: i mean sure, it makes no sense to have a gem with a specific version which has git deps that are pulled from master
[14:17:55] dminuoso: adaedra: A few weeks ago, didn't you make a strong case why git dependencies in gemspecs don't make much sense?
[14:18:08] adaedra: No, but I agree
[14:18:17] dminuoso: jokke: well, using tags/release branches would give you that control indeed.
[14:18:29] jokke: adaedra: even with version tags?
[14:18:50] dminuoso: jokke: THe first issue is that tags are just tags.
[14:19:01] jokke: yeah sure
[14:19:12] jokke: crystal for example has git deps only
[14:19:21] dminuoso: ACTION pokes jhill 
[14:19:30] dminuoso: Why does my tab completion no longer works as expected...
[14:19:38] adaedra: git repos are development versions, I'd say.
[14:19:47] jokke: adaedra: umm
[14:19:51] dminuoso: adaedra: If you had a release branch, that semantic was different.
[14:20:06] dminuoso: Or you can tag your releases, and your git dependency would specify a repository and a tag.
[14:20:19] jaguarmagenta: has joined #ruby
[14:20:31] dminuoso: jokke: the issue is that git does not allow for proper numeric versioning, so you couldn't sensibly say >= 1.1
[14:20:34] adaedra: but what would you gain from using git repos as opposed to the released gems?
[14:20:54] dminuoso: adaedra: Not having to run your own gem server if you want to host some gems.
[14:21:04] dminuoso: You could simply just use your own git server directly.
[14:21:15] adaedra: Yeah, so you still need to setup something
[14:21:16] jokke: imho master should be a bleeding edge but stable branch. Everything that might break stuff should be in a separate dev branch. Master should be protected and only be modified via pull requests. But i don't even follow that practice myself all the time so...
[14:21:21] karapetyan: has joined #ruby
[14:21:30] dminuoso: adaedra: Well we have a git server for all our code anyway.
[14:21:50] snath: has joined #ruby
[14:21:52] adaedra: Good for you
[14:21:58] dminuoso: Whats your point?
[14:21:59] jokke: everybody has
[14:22:28] dminuoso: Is that jealousy talking? :-P
[14:22:46] UserInneed: has joined #ruby
[14:22:49] adaedra: Absolutely not; I have no interest in having one.
[14:24:03] jokke: adaedra: so you _only_ work on foss?
[14:24:12] jokke: good for you :)
[14:25:02] stoopidmunkey: has joined #ruby
[14:25:10] raeoks: has joined #ruby
[14:25:47] karapetyan: has joined #ruby
[14:26:20] karapetyan: has joined #ruby
[14:27:56] karapetyan: has joined #ruby
[14:28:39] TheWhip: has joined #ruby
[14:30:33] symm-: has joined #ruby
[14:33:39] synthroid: has joined #ruby
[14:34:21] Devalo: has joined #ruby
[14:36:50] daumie: has joined #ruby
[14:38:11] ghr: has joined #ruby
[14:38:14] blackmesa: has joined #ruby
[14:38:47] ghr: has joined #ruby
[14:41:50] smathy: has joined #ruby
[14:43:09] ruby[bot]: has joined #ruby
[14:43:09] ChanServ: +o ruby[bot]
[14:43:47] mdw: has joined #ruby
[14:44:02] nadir: has joined #ruby
[14:44:05] dminuoso: has joined #ruby
[14:44:22] rippa: has joined #ruby
[14:44:31] treaki: has joined #ruby
[14:44:31] synthroid: has joined #ruby
[14:44:33] alfiemax: has joined #ruby
[14:47:12] ekinmur: has joined #ruby
[14:48:58] hogetaro: has joined #ruby
[14:49:12] SilverKey: has joined #ruby
[14:49:25] d10n-work: has joined #ruby
[14:50:13] zacts: has joined #ruby
[14:52:55] hutch34_: has joined #ruby
[14:55:13] dionysus69: syntax error, unexpected '='
[14:55:38] dionysus69: for =begin =end , in rb file
[14:55:41] dionysus69: why is this??
[14:56:31] adaedra: because this is not valid
[14:57:10] SilverKey: has joined #ruby
[14:57:48] neo: has joined #ruby
[14:57:52] adaedra: if, according to what you said in #RoR, you want to use multi-line comments with =begin and =end, be advised that they can't be idented
[14:58:09] Bish: dionysus69: have you in..
[14:58:22] Bish: was about to google how indented is spelled
[14:59:00] adaedra: But you could also do just as well with classical # comments (all editors should know how to quickly add/remove them for a block)
[14:59:26] Bish: ACTION checks if ed does that
[14:59:27] pld: has joined #ruby
[14:59:39] pld: has joined #ruby
[14:59:39] pld: has joined #ruby
[14:59:47] adaedra: ACTION press q while Bish is in ed
[14:59:49] gizmore: has joined #ruby
[15:00:06] adaedra: Bish: something somthing s/^/# /
[15:00:23] nankyoku_: has joined #ruby
[15:00:25] dionysus69: ok thanks I figured they need to start at the beginning of line, thats very not rubylike behavior lol
[15:00:37] dopamean_: has joined #ruby
[15:00:41] adaedra: tbf, =begin and =end are not really used a lot, iirc.
[15:00:55] Bish: yeah, because it sucks, for the very reasons he just found out
[15:01:03] smathy: s/not really used/hated/
[15:01:05] Bish: but they wouldn't be very pretty either
[15:01:23] agit0: has joined #ruby
[15:01:29] Bish: i use them for temporarely out-comment something, but i have fallen into the same trap already
[15:03:27] aegis3121: has joined #ruby
[15:04:40] smathy: I just delete into an editor buffer for temporarily commenting something out, or just insert #s. The `=begin|end` stuff serious is like Matz had just deployed v1.0 of Ruby and someone said "What about multiline comments?" and he was like "Oh fuck..." => v1.0.1
[15:04:56] smathy: *seriously
[15:07:16] mattwashere: has joined #ruby
[15:08:22] mrodrigues: has joined #ruby
[15:09:03] adaedra: you can also use a if false ... end if you want to comment things :p
[15:10:00] rkazak: has joined #ruby
[15:10:03] baweaver: or just, you know, not leave in dead code
[15:10:09] cb: has joined #ruby
[15:10:26] adaedra: but that wouldn't be dirty!
[15:11:41] benlieb: has joined #ruby
[15:13:08] LoneHerm_: has joined #ruby
[15:15:30] JakFrist: has joined #ruby
[15:19:38] karapetyan: has joined #ruby
[15:20:48] aegis3121: has joined #ruby
[15:20:50] daumie: has joined #ruby
[15:21:39] gregf: has joined #ruby
[15:23:07] minimalism: has joined #ruby
[15:23:19] jaruga___: has joined #ruby
[15:24:02] kareeoleez: has joined #ruby
[15:24:19] Dimik: has joined #ruby
[15:25:39] SilverKey: has joined #ruby
[15:25:53] kareeole_: has joined #ruby
[15:27:57] karapetyan: has joined #ruby
[15:29:14] ghr: has joined #ruby
[15:29:18] AndrewIsHere: has joined #ruby
[15:30:21] mattwashere: has joined #ruby
[15:30:57] the_drow: has joined #ruby
[15:32:26] xaxisx: has joined #ruby
[15:32:26] macsteps: has joined #ruby
[15:33:10] kareeoleez: has joined #ruby
[15:33:40] flashpoint9: has joined #ruby
[15:34:39] stephan_: has joined #ruby
[15:35:32] xaxisx_: has joined #ruby
[15:36:05] jaruga___: has joined #ruby
[15:37:15] deviation: has joined #ruby
[15:39:40] voker57: has joined #ruby
[15:40:53] TomyLobo: has joined #ruby
[15:41:17] allcentury: has joined #ruby
[15:41:42] karapetyan: has joined #ruby
[15:43:20] yaewa: has joined #ruby
[15:43:49] Xeago_: has joined #ruby
[15:45:03] mattwashere: has joined #ruby
[15:45:59] mrodrigues: Hey folks! I released recently a new authorization gem (https://github.com/mrodrigues/know_it_all) heavily inspired on Pundit (https://github.com/elabs/pundit), and I'm doing some research to understand how people usually enforce authorization. Do you use any kind of gem for authorization in your applications? If yes, which one? If not, do you follow any defined pattern?
[15:48:09] kareeoleez: has joined #ruby
[15:49:03] giz|work: has joined #ruby
[15:49:05] Rodya_: has joined #ruby
[15:51:04] grn: has joined #ruby
[15:52:24] mistermocha: has joined #ruby
[15:52:58] smathy: ACTION uses (and maintains) acl9
[15:53:12] aryaching: has joined #ruby
[15:53:52] apeiros: ACTION uses a custom built solution (and more or less stick with it because not important enough to schedule time to switch to something better)
[15:53:53] Devalo: has joined #ruby
[15:54:27] moei: has joined #ruby
[15:54:40] nankyokusei: has joined #ruby
[15:55:10] neo: has joined #ruby
[15:55:24] blackmesa: has joined #ruby
[15:56:52] Silthias: has joined #ruby
[15:57:02] isberg: has joined #ruby
[15:57:25] nankyoku_: has joined #ruby
[15:57:37] apeiros: our needs were: enable switching users as defined by a hierarchy, i.e. a supervisor can switch to any subordinate. but when switching that way, they'd have read-only in most places. allow users to grant read/write to their own resources to another user. allow supporters to switch to any other user assuming all those users rights.
[15:58:02] aryaching: has joined #ruby
[15:58:08] apeiros: all of which while recording the full user-switch chain for any create/update/destroy action
[15:58:18] ekinmur: has joined #ruby
[15:59:14] hahuang61: has joined #ruby
[15:59:29] gizmore: at work we had used cancan
[16:00:08] gizmore: in my own project(s) i used a simple group based auth scheme.... a groups gem totally seemed missing at some point
[16:00:58] kareeole_: has joined #ruby
[16:01:05] bogusdisk: has joined #ruby
[16:01:43] mattwashere: has joined #ruby
[16:02:06] kareeole_: has joined #ruby
[16:02:35] amclain: has joined #ruby
[16:02:51] agent_white: has joined #ruby
[16:02:56] cdg: has joined #ruby
[16:03:41] hutch34_: has joined #ruby
[16:04:07] whathappens: has joined #ruby
[16:06:17] AlexRussia: has joined #ruby
[16:07:26] [Butch]: has joined #ruby
[16:07:41] xaxisx: has joined #ruby
[16:08:42] chouhoulis: has joined #ruby
[16:08:57] jmarinelli: has joined #ruby
[16:09:52] teclator_: has joined #ruby
[16:11:40] RegulationD: has joined #ruby
[16:13:25] daumie: has joined #ruby
[16:14:49] klaas: has joined #ruby
[16:16:05] karapetyan: has joined #ruby
[16:17:50] xaxisx: has joined #ruby
[16:20:25] A124: How do I treat the suberror: #<MemCache::MemCacheError: Net::ReadTimeout>
[16:20:38] gizmore: rinse and repeat
[16:20:52] gizmore: i.e. try again?
[16:21:01] A124: I mean... I got to rescue MemCache::MemCacheError, but what statement to compare the Net::ReadTimeout ?
[16:21:04] jaguarmagenta: has joined #ruby
[16:21:24] spudowiar: has joined #ruby
[16:21:55] agent_white: What is the purpose of pre/appending/ skids to method/variable names? ie - "_foo"
[16:22:08] Wildfyr: has joined #ruby
[16:22:34] workmad3: agent_white: prepending an underscore is sometimes done to indicate a method or variable is 'internal'
[16:22:49] apeiros: IME _lvar is to indicate "not used"
[16:23:01] apeiros: many tools which warn on unused variables will also ignore those
[16:23:10] BigRonnieRon: has joined #ruby
[16:23:15] skade: has joined #ruby
[16:23:16] apeiros: e.g.: some_hash.select { |_key, value| value > 3 }
[16:23:21] Devalo: has joined #ruby
[16:23:22] workmad3: apeiros: ah, yeah that too... just `_` will also fit that purpose in a lot of ruby code
[16:23:35] workmad3: `some_hash.select { |_, value| value > 4 }`
[16:23:39] apeiros: yeah, I prefer having names for skipped variables, though
[16:23:51] apeiros: and if I ignore all variables, I use a plain *
[16:24:00] A124: e.message I guess.
[16:24:01] apeiros: e.g. def foo(*); super; additional_stuff_here; end
[16:24:01] agent_white: workmad3 / apeiros: Ah I see! Thank you.
[16:24:02] hutch34: has joined #ruby
[16:24:20] apeiros: (and yes, this will still pass on all arguments via super :D)
[16:24:23] workmad3: depends on context for me :) something like a select block I'll probably just use `_`, but in a template method override I'll be more explicit as it's less self-documenting
[16:24:58] apeiros: A124: sounds like the Net::ReadTimeout was the Exception#message
[16:25:09] wldcordeiro: has joined #ruby
[16:25:38] A124: Yeah, I just got holes in my memory, trying to mend them, thank you.
[16:25:54] apeiros: A124: i.e. you rescue MemCache::MemCacheError, and then if you have to test against the message. I'd check the exceptions' included/extended modules and ancestry, though. might be they provide a better way.
[16:26:13] xaxisx: has joined #ruby
[16:26:21] wsmoak: has joined #ruby
[16:27:47] A124: apeiros No idea what is that or how do I find out, care to link or hint?
[16:28:59] pawnbox: has joined #ruby
[16:29:13] apeiros: >> module RescueThis; end; class SomeException < StandardError; end; exc = SomeException.new; exc.extend RescueThis; begin; raise exc; rescue RescueThis; puts "rescued!" end
[16:29:14] ruby[bot]: apeiros: # => rescued! ...check link for more (https://eval.in/602158)
[16:29:21] apeiros: ^ that's what they *might* be doing
[16:29:37] mdw: has joined #ruby
[16:29:38] Sashimi: has joined #ruby
[16:29:46] apeiros: and you check by: `exc.singleton_class.ancestors` + `exc.class.ancestors`
[16:30:01] apeiros: there you see by what you can directly resuce
[16:30:06] apeiros: hi Sashimi
[16:30:17] apeiros: be careful, you might accidentally get eaten!
[16:30:21] Sashimi: I'm about to begin learning ruby
[16:30:35] Sashimi: apeiros ▸ yeah i know i often get this :D
[16:30:57] Sashimi: so i'm getting the tools up and running
[16:31:21] Sashimi: i understood there are a number of enhanced text editors around to code ruby
[16:31:31] Sashimi: i happen to already have sublime text (i'm on osx)
[16:31:33] wsmoak: what does `require_paths` in the gemspec actually _do_? I don't know what "add to the $LOAD_PATH" (from the docs) means.
[16:31:40] A124: apeiros Thanks, will take a look.
[16:31:41] apeiros: Sashimi: sublime is pretty decent for ruby
[16:31:46] wsmoak: I added a directory to `require_paths` and it _seemed_ like code under it was loaded, *without* writing `require 'path/to/file' anywhere. Is that possible?
[16:31:51] digneety: has joined #ruby
[16:32:03] AndrewIsHere: Sashimi: Good luck! ST has some great packages for ruby as well.
[16:32:06] apeiros: &ri Kernel#require wsmoak
[16:32:06] `derpy: wsmoak: http://ruby-doc.org/stdlib-2.3.1/libdoc/rubygems/rdoc/Kernel.html#method-i-require
[16:32:13] Sashimi: apeiros ▸ i'm open to suggestions if there's better, i actually bearly use ST anyway
[16:32:17] apeiros: wsmoak: ^ read that, tells you what $LOAD_PATH is.
[16:32:58] apeiros: oh dear, derpy linked the stdlib require…
[16:33:02] AndrewIsHere: Sashimi: Some people find Ruby Mine to be veery helpful if all you will be doing is writing Ruby: https://www.jetbrains.com/ruby/
[16:33:04] Sashimi: i'm a complete noob in ruby, what coding setup would you recommend I follow ?
[16:33:06] AndrewIsHere: Not free though :(
[16:33:19] skade: has joined #ruby
[16:33:30] apeiros: wsmoak: sorry, `derpy linked the wrong require, here's the right one: http://ruby-doc.org/core-2.3.1/Kernel.html#method-i-require
[16:33:35] pietr0: has joined #ruby
[16:33:47] apeiros: AndrewIsHere: neither is sublime
[16:33:48] SCHAAP137: has joined #ruby
[16:34:08] apeiros: Sashimi: I use sublime for my coding
[16:34:14] apeiros: and I'm quite happy with it
[16:34:28] apeiros: especially with the v-align and a git plugin
[16:34:31] rbennacer: has joined #ruby
[16:34:50] apeiros: oh, and one for a couple of case-changes (snake_case to PascalCase etc.)
[16:34:51] Sashimi: apeiros ▸ would you mind helping me out for the setup ? (i actually now nothing about sublime, i just happen to have it installed)
[16:34:58] karapetyan: has joined #ruby
[16:35:07] wsmoak: apeiros: so if I did not 'require' it then there is no way it got loaded _just_ from adding its parent directory to 'require_paths', correct?
[16:36:06] apeiros: Sashimi: not much to do. get https://packagecontrol.io - all interesting plugins can get installed via that.
[16:36:22] wsmoak: something else must have done it, because the code is working. (I overrode a class from another gem by placing a modified version under 'vendor' in _my_ gem. And the modified code seems to be what's running, even though I did not 'require' it.)
[16:36:33] chip_: has joined #ruby
[16:37:02] bjmllr: has joined #ruby
[16:37:25] A124: Either I am mad, or ternary operator is other way around. (condition) ? false : true.
[16:38:04] apeiros: wsmoak: when you use a gem, you do "require 'some/file/from/gem'"
[16:38:22] apeiros: the 'some/file/from/gem' must be relative to one of the paths you added in require_paths
[16:38:31] apeiros: which in turn is relative to the gem's root path
[16:38:32] xaxisx: has joined #ruby
[16:38:54] apeiros: in general you should *not* specify it and follow standards. i.e. have all your requirable files in 'lib'
[16:39:03] apeiros: that's the default value for require_paths
[16:39:16] cschneid_: has joined #ruby
[16:39:42] apeiros: so `YOUR_GEM/lib/foo/bar.rb` is a file in your gem. once installed, you can require it via `require 'foo/bar'`
[16:39:57] apeiros: no specification of require_paths necessary.
[16:40:11] kareeoleez: has joined #ruby
[16:40:32] The_Phoenix: has joined #ruby
[16:40:34] apeiros: and I strongly suggest to read the guide ( http://guides.rubygems.org/make-your-own-gem/ )
[16:40:39] Pupeno: has joined #ruby
[16:40:39] Pupeno: has joined #ruby
[16:41:06] apeiros: A124: you are mad. ternary is `cond ? when_true : when_false`
[16:41:10] SilverKey: has joined #ruby
[16:41:17] apeiros: >> true ? "is true" : "is false" # proof
[16:41:18] ruby[bot]: apeiros: # => "is true" (https://eval.in/602162)
[16:44:47] SilverKey: has joined #ruby
[16:45:01] grn: has joined #ruby
[16:46:32] sebstrax: has joined #ruby
[16:46:41] wsmoak: I am patching/modifying things from a public gem rather than maintaining a fork. in my gem, lib has my code, 'vendor' has modified versions of their code.
[16:47:16] wsmoak: so both lib and vendor are in require_paths. still unclear how the modified version is getting loaded.
[16:47:49] mistermocha: has joined #ruby
[16:48:08] wsmoak: LOAD_PATH is just where to _look_ for things that are required.
[16:48:59] apeiros: I don't see where you're still fuzzy on it then
[16:50:27] wsmoak: apeiros: I did not require my modified file, yet that's the code that is running.
[16:50:52] apeiros: wsmoak: that explanation doesn't do it
[16:51:13] apeiros: full example with paths, how you required it, and how you determined what got required and what you expected instead.
[16:52:38] wsmoak: I wonder... since my modified file has the same path and name as the original one, perhaps the require statement in the _original_ gem is doing it, since... *insert handwaving about how ruby files actually get loaded*
[16:53:40] apeiros: same relative path to load_paths means first one wins
[16:53:46] wsmoak: (I know the modified code is running, or else the app would break. I tried it before adding the modified code to confirm this.)
[16:53:51] apeiros: it's a rather bad idea to do it that way.
[16:54:29] eljimmy: has joined #ruby
[16:54:31] wsmoak: first `require` statement wins (as I understand it) but LAST definition wins right? (when patching?)
[16:55:04] apeiros: "first require" makes no sense since files are only loaded once
[16:55:07] tomchapin: has joined #ruby
[16:55:21] apeiros: when you require, the file which is first found wins
[16:55:31] bpatel: has joined #ruby
[16:55:32] apeiros: load_paths is an array. it's searched from first to last.
[16:55:59] apeiros: and you can't require a file shadowed by another file with the same relative path.
[16:56:16] LoneHerm_: has joined #ruby
[16:56:21] apeiros: anyway, until you answer my question, I'm done here.
[16:56:24] Spami: has joined #ruby
[16:56:29] JakFrist: has joined #ruby
[16:56:46] pilne: has joined #ruby
[16:56:52] karapetyan: has joined #ruby
[16:57:19] iamvery: has joined #ruby
[16:58:20] burgestrand: has joined #ruby
[16:58:26] blackmesa: has joined #ruby
[16:58:30] yfeldblum: has joined #ruby
[16:58:42] wsmoak: ah, so nice to see irc hasn't changed much. :)
[16:59:16] havenwood: Sashimi: Atom is a free option if you're not feeling like learning vim or emacs at the moment: https://atom.io
[16:59:22] xaxisx_: has joined #ruby
[16:59:35] wsmoak: thanks for the links and info apeiros! I've worked through _some_ of my confusion re: how Ruby works, still translating things from Java Classpath.
[16:59:42] kareeole_: has joined #ruby
[16:59:53] havenwood: Sashimi: It's easy to get started with.
[17:00:00] hahuang61: has joined #ruby
[17:00:05] digneety: has joined #ruby
[17:00:31] pwnd_nsfw: has joined #ruby
[17:00:43] mtkd: has joined #ruby
[17:01:10] Vingador__: has joined #ruby
[17:01:30] apeiros: wsmoak: well, if you don't like the strings attached to the free help you get, you can always get paid support.
[17:01:44] aegis3121: has joined #ruby
[17:02:07] apeiros: and I don't think "provide a proper description of your problem" is an outraging request.
[17:02:15] freerobby: has joined #ruby
[17:02:28] xaxisx_: has joined #ruby
[17:03:00] karapetyan: has joined #ruby
[17:03:08] flughafen_: has joined #ruby
[17:03:25] wsmoak: when you are the expert it's very easy to say that. been there, done that, and now starting over as a beginner in ruby!
[17:04:19] wsmoak: a coworker solved the mystery of how the code is getting loaded. There's some code in ActiveMerchant that's doing it.
[17:04:48] apeiros: wsmoak: so? is being a beginner an excuse now for not answering questions?
[17:05:02] wsmoak: thanks again for the pointers to the docs, I was 99% sure it should NOT have been working, yet it _was_.
[17:05:27] pdoherty: has joined #ruby
[17:05:51] xaxisx: has joined #ruby
[17:07:00] freerobby: has joined #ruby
[17:08:10] weaksauce: has joined #ruby
[17:09:11] xaxisx: has joined #ruby
[17:09:52] tomchapin: has joined #ruby
[17:10:36] daumie: after a hard day at work....who's watching football today?
[17:10:59] shinnya: has joined #ruby
[17:11:22] kareeoleez: has joined #ruby
[17:12:05] daumie: al2o3-cr: Niice ....are you betting?
[17:12:14] agit0: has joined #ruby
[17:13:11] JakFrist: has joined #ruby
[17:13:14] daumie: al2o3-cr: 1st half draw...
[17:13:22] al2o3-cr: not with those odds
[17:14:00] daumie: al2o3-cr: hahaa....these are tough teams but in the end we mus have a winner
[17:14:13] xaxisx: has joined #ruby
[17:14:17] al2o3-cr: germany is going to win anyway
[17:15:08] yardenbar: has joined #ruby
[17:15:18] sneakers: has joined #ruby
[17:15:58] shevy: daumie I dunno, it got quite boring quickly... I noticed that in the last 3 or 4, after I saw goals, I quickly lost interest to watch further
[17:16:08] davedev24: has joined #ruby
[17:16:28] A5101: has joined #ruby
[17:17:02] daumie: shevy: Did you watch Germany vs Italy Penalty shootout?
[17:17:14] deadnull_: has joined #ruby
[17:17:59] jmarinelli: how can i create a thread without starting it on creation?
[17:18:25] Madplatypus: has joined #ruby
[17:18:53] apeiros: yuung: pro-tip: don't change nick right after asking a question
[17:19:05] toretore: yuung: 1) what apeiros said 2) you can't
[17:19:16] apeiros: yuung: you can't. you can stop it with a condition variable and signal it to start later
[17:19:52] yuung: apeiros, toretore, mk. so i could theoretically create it, start it and stop it immediately
[17:19:59] yuung: if i really needed to
[17:20:00] wldcordeiro: has joined #ruby
[17:20:11] apeiros: you have to be careful with the "stop it immediately"
[17:20:22] apeiros: easy to have a race condition there.
[17:20:35] yuung: apeiros could you give an example
[17:20:46] daumie: shevy: You'll never want to miss that at shevy
[17:21:10] apeiros: nope, sorry, on my way to a shop. when I'm back and I can find my old example, maybe
[17:21:12] daumie: For those of us watching football...have fun people...bet wisely..
[17:21:22] toretore: yuung: it would be more productive to get to the reason you want to do this in the first place
[17:22:17] isberg: has joined #ruby
[17:22:19] yuung: toretore exploration
[17:22:32] yuung: toretore /curiousity :)
[17:22:35] daumie: has left #ruby: ("Germany vs France , see you later good people")
[17:22:52] yuung: has left #ruby: ()
[17:22:58] calmchaos: has joined #ruby
[17:23:29] firstdayonthejob: has joined #ruby
[17:23:43] swills: has joined #ruby
[17:23:55] swills: has joined #ruby
[17:24:05] bogusdisk: has joined #ruby
[17:24:38] kareeoleez: has joined #ruby
[17:27:22] macsteps: has joined #ruby
[17:28:05] Didac: has joined #ruby
[17:28:52] Silthias1: has joined #ruby
[17:31:38] mistermocha: has joined #ruby
[17:33:06] ekinmur: has joined #ruby
[17:33:08] dikons: has joined #ruby
[17:34:14] dikons_: has joined #ruby
[17:34:55] calmchaos: has joined #ruby
[17:35:16] pwnd_nsfw`: has joined #ruby
[17:35:16] miqlas-H: has joined #ruby
[17:35:48] neo: has joined #ruby
[17:36:18] roamingdog: has joined #ruby
[17:36:29] ascarter: has joined #ruby
[17:36:38] codecop: has joined #ruby
[17:37:38] kirun: has joined #ruby
[17:38:34] mdw7: has joined #ruby
[17:41:18] mrodrigues: smathy, apeiros and gizmore, thank you for the feedback! :) Sorry the wait, a client called me
[17:41:18] mdw: has joined #ruby
[17:41:39] karapetyan: has joined #ruby
[17:42:03] mistermocha: has joined #ruby
[17:42:33] gizmore: mrodrigues: you have no permission to reply to this chat message.
[17:44:43] Xeago_: has joined #ruby
[17:44:59] akira616: has joined #ruby
[17:45:24] ruby-lang552: has joined #ruby
[17:45:38] Vingador: has joined #ruby
[17:49:12] skade: has joined #ruby
[17:49:33] allcentury: has joined #ruby
[17:51:05] karapetyan: has joined #ruby
[17:51:14] deecross: has joined #ruby
[17:52:10] xaxisx: has joined #ruby
[17:52:40] Sashimi: has joined #ruby
[17:53:49] chip_: has joined #ruby
[17:53:52] dagelf: has joined #ruby
[17:55:46] flashpoint9: has joined #ruby
[17:56:55] SilverKey: has joined #ruby
[17:57:16] LoneHermit: has joined #ruby
[17:58:58] nettoweb: has joined #ruby
[17:59:23] xaxisx: has joined #ruby
[17:59:54] miqlas-H: has joined #ruby
[18:00:11] Pumukel: has joined #ruby
[18:01:27] blackmesa: has joined #ruby
[18:02:32] rbennacer: has joined #ruby
[18:02:38] skade: has joined #ruby
[18:03:10] rcvalle: has joined #ruby
[18:05:55] replay: has joined #ruby
[18:06:50] blandflakes: has joined #ruby
[18:06:52] tomchapin: has joined #ruby
[18:09:26] gusrub: has joined #ruby
[18:10:07] dionysus69: has joined #ruby
[18:11:39] zeroDi: has joined #ruby
[18:11:54] deecross: has joined #ruby
[18:12:24] ekinmur: has joined #ruby
[18:13:17] ramfjord: has joined #ruby
[18:17:24] marxarelli: has joined #ruby
[18:18:41] Es0teric: has joined #ruby
[18:21:02] macsteps: has joined #ruby
[18:21:49] jaguarmagenta: has joined #ruby
[18:22:24] Mimorial: has joined #ruby
[18:26:17] bluOxigen: has joined #ruby
[18:26:30] elifoster: has joined #ruby
[18:26:33] spider-mario: has joined #ruby
[18:28:08] nando293921: has joined #ruby
[18:30:59] pawnbox: has joined #ruby
[18:32:51] max2: has joined #ruby
[18:33:17] Mimorial: has joined #ruby
[18:33:56] yardenbar: has left #ruby: ("Leaving")
[18:34:33] aep-shoutlet: has joined #ruby
[18:36:19] Rodya_: has joined #ruby
[18:36:43] RegulationD: has joined #ruby
[18:39:02] colegatron: has joined #ruby
[18:39:44] postmodern: has joined #ruby
[18:41:26] memorasus: has joined #ruby
[18:41:29] AndroidLoverInSF: has joined #ruby
[18:41:47] nando293921: has joined #ruby
[18:43:30] umdstu: has joined #ruby
[18:44:25] Pupeno: has joined #ruby
[18:44:25] Pupeno: has joined #ruby
[18:46:45] Pupeno: has joined #ruby
[18:47:09] macsteps: has joined #ruby
[18:49:56] deecross: has joined #ruby
[18:50:26] nando293921: has joined #ruby
[18:52:21] RegulationD: has joined #ruby
[18:58:06] neo_: has joined #ruby
[18:58:21] LoneHerm_: has joined #ruby
[18:58:29] daumie: has joined #ruby
[19:00:20] freerobby: has joined #ruby
[19:00:43] hahuang61: has joined #ruby
[19:01:47] chouhoulis: has joined #ruby
[19:03:56] blackmesa: has joined #ruby
[19:07:05] SilverKey: has joined #ruby
[19:07:35] Coldblackice: has joined #ruby
[19:17:16] macsteps: has joined #ruby
[19:17:26] tomphp: has joined #ruby
[19:18:37] mistermocha: has joined #ruby
[19:19:12] vuoto: has joined #ruby
[19:19:32] internetbird: has joined #ruby
[19:20:06] tomeara: has joined #ruby
[19:21:13] skade: has joined #ruby
[19:24:51] ruby-lang137: has joined #ruby
[19:25:36] JakFrist: has joined #ruby
[19:29:26] craigp: has joined #ruby
[19:32:37] roamingdog: has joined #ruby
[19:34:22] kavanagh: has joined #ruby
[19:34:27] blandflakes: has joined #ruby
[19:35:28] nando293921: has joined #ruby
[19:36:10] nettoweb: has joined #ruby
[19:36:14] karapetyan: has joined #ruby
[19:37:21] AngryBuzzy: has left #ruby: ("Leaving")
[19:39:30] AngryBuzzy: has joined #ruby
[19:40:06] Miccet: has joined #ruby
[19:40:08] Pupeno: has joined #ruby
[19:40:08] Pupeno: has joined #ruby
[19:42:25] elementaru: has joined #ruby
[19:44:32] antgel: has joined #ruby
[19:46:07] burgestrand: has joined #ruby
[19:48:34] GinoManWorks_: has joined #ruby
[19:49:04] symm-: has joined #ruby
[19:49:45] mistermocha: has joined #ruby
[19:50:20] zacstewart: has joined #ruby
[19:52:45] vuoto: has joined #ruby
[19:52:56] futilegames: has joined #ruby
[19:53:42] Pupeno: has joined #ruby
[19:53:59] Pupeno: has joined #ruby
[19:54:35] whathappens: has joined #ruby
[19:55:22] yfeldblum: has joined #ruby
[19:56:15] Spami: has joined #ruby
[19:56:31] minimalism: has joined #ruby
[19:56:37] solars: has joined #ruby
[19:56:37] Xeago_: has joined #ruby
[19:58:55] mello: has joined #ruby
[20:00:25] TheWhip: has joined #ruby
[20:02:48] calmchaos: has joined #ruby
[20:04:21] john2496: has joined #ruby
[20:05:23] mrodrigues: has joined #ruby
[20:08:53] calmchaos: has joined #ruby
[20:09:14] nankyokusei: has joined #ruby
[20:10:00] antgel: has joined #ruby
[20:10:14] mdw: has joined #ruby
[20:11:23] neo_: has joined #ruby
[20:12:29] A124: I have no ide why it works like it works.
[20:12:43] neo_: has joined #ruby
[20:12:49] A124: I have ternary... ( (m.get( entryname) || '').size < 500 ) ? nil : n
[20:12:54] jenrzzz: has joined #ruby
[20:13:18] neo_: has joined #ruby
[20:13:20] A124: In a map() and then I compact the array so only those larger then 500 should remain. In real it is opposite
[20:14:17] smathy: A124, make a gist of the full section of code.
[20:14:58] thoraxe: has joined #ruby
[20:15:09] todd_dsm_wk: has joined #ruby
[20:15:17] snath: has joined #ruby
[20:17:35] memorasus: has joined #ruby
[20:17:53] todd_dsm_wk: headius: yesterday you said jruby will 1.7 will EOL at end of the year. Is that posted anywhere? I'd like to reference something official in my docs.
[20:17:54] mistermocha: has joined #ruby
[20:18:26] headius: todd_dsm_wk: hmmm...let me see
[20:18:41] todd_dsm_wk: can't find it anywhere myself
[20:18:43] headius: I don't think we officially said it anywhere but we have said we'd maintain 1.7 through 2016
[20:18:49] machinewar: has joined #ruby
[20:19:00] headius: given how 9k adoption has gone I think that will be EOL
[20:19:04] todd_dsm_wk: I'll take that if it's posted somewhere.
[20:19:13] A124: smathy https://gist.github.com/anonymous/ceee8b9f664e5bfec0a4bb1679b3a81b
[20:19:51] todd_dsm_wk: not sure how my company got to this space but if it's not posted - somehow - it's not real.
[20:21:52] A124: I have no idea, I even retrieved the records to confirm. It somehow works the other way around.
[20:22:07] A124: The memcached returns nil if empty else the full record.
[20:22:29] A124: I mean ... not present, instead empty.
[20:22:38] not_a_robot: has joined #ruby
[20:23:07] havenwood: not_a_robot: Yes.
[20:23:39] workmad3: has joined #ruby
[20:23:48] not_a_robot: Greetings :D I'm a first timer on this IRC world
[20:23:56] smathy: A124, I suspdct `num` on line 3 is meant to be `n`
[20:24:32] marsjaninzmarsa: has joined #ruby
[20:24:51] A124: smathy Yeah, sorry my bad, I was simplifiying the gist.
[20:24:59] A124: On the real code it is correct.
[20:25:00] smathy: A124, I can't help you if you do that.
[20:25:17] havenwood: not_a_robot: Welcome
[20:25:28] A124: smathy I just simplified the recrd name
[20:26:15] leea: has joined #ruby
[20:26:16] toretore: fake code :(
[20:26:19] A124: smathy That does not change anything, if I am 100% sure it is correct.
[20:27:01] A124: https://gist.github.com/anonymous/bc90c9e58a88b0f789ccebf9bf474a29
[20:27:06] A124: Fixed the typo.
[20:27:11] not_a_robot: Mind if I drop a question? I don't know if it would be rude
[20:27:15] A124: toretore are you talking about me?
[20:27:29] A124: If so I find it offensive. It is real code, no edits, except record name.
[20:28:21] ramfjord: not_a_robot: shoot away
[20:28:29] cwar: has joined #ruby
[20:28:30] Silthias: has joined #ruby
[20:28:36] smathy: A124, not sure how redo will act in the map, you probably meant retry.
[20:29:06] macsteps: has joined #ruby
[20:29:43] A124: smathy redo should restart just current iteration, not whole loop. Will try, but even when there are no exceptions raised whatsoever, the results are same.
[20:30:16] A124: Just the connection timeouts due to low hardcoded timeout in the ruby driver, pfft.
[20:30:27] mistermocha: has joined #ruby
[20:30:35] ramfjord: A124: you've got some kind of weird stuff in that snippet - "#{n}" || '' will never evaluate the '', because it's impossible for "#{n}" to return a falsy value
[20:30:47] headius: todd_dsm_wk: doesn't seem to be anything, but I just floated the EOL idea on twitter and we'll make it official shortly
[20:31:07] A124: ramfjord watch parenthesis: m.get( "#{n}") || ''
[20:31:10] smathy: ramfjord, you're ignoring the parens.
[20:31:30] A124: It is just to handle if it returns nil, so I can use .size on it.
[20:31:50] ramfjord: doh, missed those completely
[20:32:03] A124: If I swap the ternary it works, but I have no idea why... it defies logic.
[20:32:15] smathy: A124, show the final result in your gist, `puts nums.inspect` or something
[20:32:24] not_a_robot: Thanks. I'm currently struggling to communicate with a W2003 server (keel me, plz) and it seems that making a sort of Web Service with Visual Studio is going to be a pain in the ass
[20:33:14] A124: smathy I did show that.
[20:33:24] not_a_robot: So I'm considering implementing a mini HTTP server with Rack (most likely), and have it running there. It would be consumed by a PHP script on another server
[20:33:43] A124: I mean, I tested that, then I did nums.map { |n| m.get(n).size }
[20:34:05] not_a_robot: I'm relatively new to this legacy development thing so I was hoping there was a more seasoned coder around here to give me a tip
[20:34:17] blackgoat: has joined #ruby
[20:34:18] SilverKey: has joined #ruby
[20:34:51] A124: And they indeed are inversed. There are some missing records and some bogus, this should have filter them to next step where workers in parallel check again and update accordingly.
[20:34:53] ciast: has joined #ruby
[20:35:19] smathy: A124, I mean show it, in your gist.
[20:35:21] tomchapin: has joined #ruby
[20:35:39] A124: smathy What does it change? I do not get it.
[20:36:00] A124: You do not have my DB, so I do not understand what I am supposed to show.
[20:36:20] toretore: A124: the point is that there are many assumptions made in the code you posted that we don't know about
[20:36:20] troulouliou_div2: has joined #ruby
[20:36:33] ramfjord: not_a_robot: you need a web server that runs on windows 2003? What do you need this server to do exactly? What exactly do you mean by "[the web server] would be consumed by a PHP script on another server?"
[20:36:36] A124: toretore what assumptions?
[20:36:46] smathy: A124, the output of `puts nums.inspect` after your map has finished.
[20:36:56] Madplatypus: has joined #ruby
[20:37:16] ciast: has left #ruby: ()
[20:37:17] A124: Oh, a list of numbers, should I really post thousands of numbers?
[20:37:21] Robody: has joined #ruby
[20:37:29] Mon_Ouie: Why are you using redo?
[20:37:57] smathy: A124, you seem like a smart guy, so I'm assuming you understand that ternary is not faulty in ruby, nor in *your* ruby, so there's some assumptions here that you're making which are causing a behavior that is unexpected. If you want help, some of that is going to be testing your assumptions.
[20:38:00] A124: Mon_Ouie in case the connection times out, obviously.
[20:38:19] toretore: 1) ruby's ternary and other core functionality doesn't work 2) your code doesn't do what you think it does
[20:38:19] Mon_Ouie: What do you think redo does?
[20:38:30] A124: I could have removed that for gist, should change nothing, but toretore flames about fake code, even when I did only chaneg record name
[20:38:52] not_a_robot: ramjford: The objective of this Rack server would be to update a local DB. Meaning on another server a PHP script would be executed to send data (from another DB) and the Rack server would receive that data, process it and then insert it to a DB on its localhost
[20:38:52] A124: Mon_Ouie restarts current iteration.
[20:39:04] toretore: A124: it's more about your unwillingness to provide more information when asked by the people you're asking for help
[20:39:21] neo_: has joined #ruby
[20:39:46] neo_: has joined #ruby
[20:39:49] A124: toretore No, that was before anyone asked for more.
[20:40:03] spudowiar: has joined #ruby
[20:40:07] havenwood: not_a_robot: I like Roda with Sequel for such a task, assuming it's a SQL DB.
[20:40:22] A124: p nums.inspect => [1,3,5,...]
[20:40:28] A124: Nothing special about it.
[20:40:54] eljimmy: has joined #ruby
[20:41:01] roamingdog: has joined #ruby
[20:41:04] ramfjord: not_a_robot: have you considered just exposing the database port on the windows server, and writing directly to that database? If you're using something like postgres you may even be able to insert into it directly from the other DB using foreign data wrappers
[20:41:07] havenwood: not_a_robot: http://sequel.jeremyevans.net
[20:41:30] toretore: A124: you're trying to reduce whatever's in `nums` to those for which a memcached entry exists that is more than 500 characters, right?
[20:41:37] havenwood: not_a_robot: http://roda.jeremyevans.net
[20:41:42] bradflaugher: has joined #ruby
[20:41:54] MrBusiness2: has joined #ruby
[20:42:07] havenwood: not_a_robot: Then for auth: http://rodauth.jeremyevans.net
[20:42:08] havenwood: not_a_robot: What's the DB?
[20:43:14] snowy: has joined #ruby
[20:43:37] not_a_robot: havewood: SQL Server 2000. That Roda-Sequel combination looks very good (found this: https://github.com/jeremyevans/roda-sequel-stack)
[20:43:59] A124: toretore Exactly.
[20:45:03] toretore: A124: which means something is not what you think it is, and it's not visible in the code you pasted
[20:45:24] et09: has joined #ruby
[20:45:37] et09: a = {b: nil} <--- how do i distinguish a[:b]'s "nil" from a[:foobar]'s nil
[20:45:39] not_a_robot: ramjford: Yeah hehehe I think it is as simple as that, but the PHP server is using Laravel framework and there seems to be a SQL client incompatibility (eloquent ORM) and syncing the DB externally seemed more robust, for some reason
[20:45:58] toretore: et09: a.include?(:foobar)
[20:46:13] et09: ah, thanks
[20:46:58] smathy: A124, so they're integers? You understand that 501.size => 8 right?
[20:47:43] CausaMortis: has joined #ruby
[20:48:01] A124: Nah, the responses are strings. And no idea why 501.size returns 8
[20:48:38] smathy: A124, because it's an integer, but you're saying they're strings, but that's not what your `p nums.inspect` shows.
[20:48:54] al2o3-cr: A124: it return the number bytes of a fixnum
[20:49:01] A124: al2o3-cr oh.
[20:49:24] A124: smathy but I am using .size on what I return from the db.
[20:49:31] A124: Anyawy.. it seems what I said earlier, either I am mad or ternary are other way around. I am mad.
[20:50:25] A124: If I want to fetch missing, I got to output when they are < 500 which means ? n : nil
[20:50:27] smathy: A124, right, and whatever that is is what you're mapping into `nums`, and hence what's being output in your `nums.inspect` that you showed above.
[20:50:54] mtkd: has joined #ruby
[20:50:59] A124: Thank you kindly to anyone, my apparently shortcircuited brain failed my today big time.
[20:52:05] mistermocha: has joined #ruby
[20:52:15] A124: smathy Correct, though I could be mapping them into strings that are keys for the records, then use those in subsequent worker thread, but I find numbers only more efficient from tranfer perspective.
[20:52:43] A124: I hope and wish Ruby
[20:53:01] jenrzzz: has joined #ruby
[20:53:28] smathy: Whatever is in `nums` after the map is what's being returned from memcache, and your `p nums.inspect` above showed that those are integers. And an_interger.size == 8.
[20:53:53] smathy: Oh, sorry, forget that. I misread your code. You're mapping the `n` not the m.get n
[20:54:12] A124: * Ruby 3 with it's promised speed and memory footprints will be soon. So far the most limiting is that aspect, but the power it gives is .. something I tend to return to. I started doing more, and might mix in go or c/c++ via ffi for best of both.
[20:54:50] Pupeno: has joined #ruby
[20:55:47] yqt: has joined #ruby
[20:55:56] A124: ACTION It is just... "hobby" (solo, nonprofit, public benefit) work, or private stuff what I am doing. Working by pair programming is what I always wanetd to do.
[20:56:40] Robody: has left #ruby: ()
[21:00:41] burgestrand: has joined #ruby
[21:01:02] LoneHerm_: has joined #ruby
[21:01:30] hahuang61: has joined #ruby
[21:03:30] yxhuvud: ruby3 will be soon? Heh, that I'll beleive when I see.
[21:04:49] ytti: i think matz is smart
[21:04:51] A124: Soon is relative term.
[21:04:57] ytti: he won't do big breaking changes from 2.x => 3
[21:05:02] A124: Matz is, but there is not enough manpower.
[21:05:06] ytti: he'll do it on 2.x => 2x.+1
[21:05:28] ytti: to remove psychological barrier in migrating to new release
[21:05:51] havenwood: Yxhuvud: Coming Christmas 2020
[21:06:01] A124: Well, he threw the idea that he would like Ruby 3 to be three times as fast.
[21:06:02] ytti: 1.8 => 1.9 was quite the chore, 1.9 => 2.0 was 0 work
[21:06:12] ivanskie: has joined #ruby
[21:06:12] zacts: has joined #ruby
[21:06:13] pawnbox: has joined #ruby
[21:07:21] havenwood: A124: Mind that's compared with Ruby 2.0, which 2.3 is already faster than.
[21:07:34] A124: An exaple of longest common substring by O(m*n) .. in other words naive approach (Which on short strings is much faster then other aproaches when compiled) is horribly slow.
[21:08:09] Mon_Ouie: That was before adopting semantic versioning
[21:08:22] A124: havenwood Well, not sure how 2.0 was fast/slow, but doing lcs on 32kb document meant half a day
[21:08:59] bluOxigen: has joined #ruby
[21:09:10] A124: Now I was doing that only on 8k documents to generate zlib dictionary, so I can save records with compression per record (DB has no support for compression).
[21:11:06] A124: Else I did calculate and 32kb Page size would be optimal balance in my case. I did also analysis on Linux distributions, and using 128kB page size is relatively huge. CDs might have slow random access but flashdisks are diggerent plus their IOPS differ. so in practice 16-64kb performs better. Just FYI
[21:11:51] j2k: has joined #ruby
[21:12:23] A124: I am using memcache driver on top of berkeley with marshalling. Which is where the timeouts come from, disk not as fast as RAM. But gives key/value, and simple for ruby. I had no luck at usig BDB in ruby with existing drivers.
[21:16:58] blackmesa: has joined #ruby
[21:25:02] akira616: has joined #ruby
[21:26:58] pawnbox: has joined #ruby
[21:27:07] Neo--: has joined #ruby
[21:29:27] whathappens: has joined #ruby
[21:30:01] neoice: has joined #ruby
[21:31:39] DJTrey: has joined #ruby
[21:32:17] neo_: has joined #ruby
[21:32:36] replay: has joined #ruby
[21:33:01] replay: has joined #ruby
[21:33:17] vuoto: has joined #ruby
[21:33:52] replay: has joined #ruby
[21:34:31] bruce_lee: has joined #ruby
[21:34:53] AlexRussia: has joined #ruby
[21:35:14] replay: has joined #ruby
[21:37:21] babblebre: has joined #ruby
[21:39:27] kavanagh: has joined #ruby
[21:40:27] SilverKey: has joined #ruby
[21:41:40] SilverKey: has joined #ruby
[21:41:45] crdpink: has joined #ruby
[21:42:56] smathy: has joined #ruby
[21:45:17] ur5us: has joined #ruby
[21:47:33] bogn: has joined #ruby
[21:48:38] crdpink: has joined #ruby
[21:48:46] joonty: has joined #ruby
[21:50:07] shevy: A124 I think matz actually said during some presentation that the 3x speed improvement won't apply to everything
[21:55:06] Es0teric: has joined #ruby
[21:55:15] rgb-one: has joined #ruby
[21:55:44] rgb-one: How can I reload only a part of the page, say a <div>?
[21:56:22] shevy: rgb-one via happy javascript!
[21:56:55] hipertracker: has joined #ruby
[21:57:09] roamingdog: has joined #ruby
[21:57:16] rgb-one: shevy: How so?
[21:58:31] shevy: rgb-one I am sure javascript people know how to reload tags dynamically
[21:59:55] Pupeno: has joined #ruby
[22:00:40] cd-rum: has joined #ruby
[22:01:20] freerobby: has joined #ruby
[22:01:33] LoneHermit: has joined #ruby
[22:02:48] JeanCarloMachado: has joined #ruby
[22:03:04] wldcordeiro: has joined #ruby
[22:04:24] pawnbox: has joined #ruby
[22:04:35] gusrub: has joined #ruby
[22:05:59] cd-rum: has joined #ruby
[22:08:56] tomphp: has joined #ruby
[22:10:08] nankyokusei: has joined #ruby
[22:12:37] ekinmur: has joined #ruby
[22:14:24] bogn: has joined #ruby
[22:15:54] zacts: has joined #ruby
[22:19:08] mistermocha: has joined #ruby
[22:19:16] Parko: has joined #ruby
[22:20:25] macsteps: has joined #ruby
[22:23:08] jaguarmagenta: has joined #ruby
[22:23:19] ledestin: has joined #ruby
[22:29:30] jenrzzz: has joined #ruby
[22:30:47] minimalism: has joined #ruby
[22:32:01] KnownSyntax_: has joined #ruby
[22:32:01] KnownSyntax_: has joined #ruby
[22:33:18] zenlot: has joined #ruby
[22:39:45] BTRE: has joined #ruby
[22:40:59] malconis: has joined #ruby
[22:42:18] pawnbox: has joined #ruby
[22:48:39] gizless: has joined #ruby
[22:49:00] JeanCarloMachado: has joined #ruby
[22:49:07] swills: has joined #ruby
[22:49:52] whathappens: has joined #ruby
[22:52:23] not_a_robot: has left #ruby: ()
[22:53:33] jenrzzz: has joined #ruby
[22:55:22] Pupeno: has joined #ruby
[22:56:02] CausaMortis: Hey guys, is there a way to parse XMl without using a separate gem like nokogiri or rexml?
[22:57:51] havenwood: CausaMortis: REXML is in the stdlib.
[22:58:13] mtkd: has joined #ruby
[22:58:54] snath: has joined #ruby
[22:59:28] whathappens: has joined #ruby
[22:59:58] CausaMortis: havenwood: sweet :D cant believe i missed that thanks
[23:00:56] CausaMortis: havenwood: im working my way through the first upcase course material on ruby. I would rather implement things without using too many gems for now though I have seen people using nokogiri extensively in the office
[23:01:10] CausaMortis: Would you recommend it?
[23:02:12] hahuang61: has joined #ruby
[23:02:31] LoneHermit: has joined #ruby
[23:02:50] pawnbox: has joined #ruby
[23:03:16] p0p0pr37: has joined #ruby
[23:03:22] havenwood: CausaMortis: It's the most common. Also look at Oga: https://github.com/YorickPeterse/oga#readme
[23:03:54] elomatreb: CausaMortis: If you only parse small amounts of XML you can probably get away with not using Nokogiri, since it saves users of your program the work of having to compile Nokogiri
[23:05:12] CausaMortis: That makes sense thanks. I read that it is dependant on some packages that are not always available on the machine. Since others will be reviewing my code I would rather keep things simple to setup
[23:05:28] CausaMortis: Will definitely look at Oga :) ty for your time
[23:12:20] yfeldblum: has joined #ruby
[23:12:38] Parko: has joined #ruby
[23:12:56] chrisseaton: I want to to foo.gsub(bar, baz), but I don't want bar to be interpreted as a regex, just as a normal string. Do I have to escape it somehow, or is there a better method? I need multiple replacements, so #[]= I think doesn't work for me here.
[23:13:51] dgynn: has joined #ruby
[23:14:32] DEac-: has joined #ruby
[23:15:03] agent_white: Use a normal string?
[23:15:59] chrisseaton: I think it's interpreted as a regex though
[23:16:04] Dreamer3: has joined #ruby
[23:16:10] chrisseaton: The parameter is called 'pattern'
[23:16:12] zacts: has joined #ruby
[23:16:38] svkurowski_: has joined #ruby
[23:16:42] jenrzzz: has joined #ruby
[23:16:55] CybrGhost: has joined #ruby
[23:18:21] havenwood: "[I]f given as a String, any regular expression metacharacters it contains will be interpreted literally, e.g. '\\d' will match a backlash followed by ‘d’, instead of a digit."
[23:19:02] chrisseaton: Sorry, it's actually the replacement parameter that is giving me problems "If replacement is a String it will be substituted for the matched text. It may contain back-references..."
[23:20:38] chrisseaton: 'foo'.gsub('f', '\\0') -> "foo"
[23:22:25] havenwood: >> 'foo'.gsub('f', '\\\0')
[23:22:26] ruby[bot]: havenwood: # => "\\0oo" (https://eval.in/602230)
[23:22:52] chrisseaton: is there a stdlib method for escape regex like that then?
[23:23:07] mistermocha: has joined #ruby
[23:23:51] havenwood: >> 'foo'.gsub('f', Regexp.escape('\0'))
[23:23:52] ruby[bot]: havenwood: # => "\\0oo" (https://eval.in/602231)
[23:25:55] havenwood: you're welcome - I'd never run into that but it's interesting
[23:29:49] nando293921: has joined #ruby
[23:30:40] pawnbox: has joined #ruby
[23:31:02] phrozen77: has joined #ruby
[23:31:20] tw1sted: has joined #ruby
[23:34:59] coffeecupp: has joined #ruby
[23:35:00] PlasmaStar: has joined #ruby
[23:35:23] Scient: has joined #ruby
[23:38:45] arescorpio: has joined #ruby
[23:40:16] koooge: has joined #ruby
[23:40:36] ur5us: has joined #ruby
[23:42:03] badeball: has joined #ruby
[23:43:25] leea: can anyone tell me if i'm understanding this or not: so when you create an instance of a class, reopen the class and add new methods after instantiation, the instance still has access to these new methods because changes happen to the class?
[23:44:20] leea: are there any cases in ruby where this doesn't happen? (not including instance_eval)
[23:44:33] Arcaire: any case where you don't do it? :^)
[23:44:44] Arcaire: You can open the Class class. It works across the board.
[23:50:10] akira616`: has joined #ruby
[23:50:38] BTRE: has joined #ruby
[23:52:53] RegulationD: has joined #ruby
[23:54:00] dmak1112: has joined #ruby
[23:55:23] dmak1112: hi guys! im rather new to ruby. Im using the influxdb ruby gem, which is sending data from my sensu server to influxdb. I'm getting an error and I don't really know what it means: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/influxdb-0.3.5/lib/influxdb/point_value.rb:7:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/influxdb-0.3.5/lib/influxdb/query/core.rb:94:i
[23:55:23] dmak1112: n `new'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/influxdb-0.3.5/lib/influxdb/query/core.rb:94:in `block in generate_payload'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/influxdb-0.3.5/lib/influxdb/query/core.rb:93:in `map'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/influxdb-0.3.5/lib/influxdb/query/core.rb:93:in `generate_payload'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/influxdb-0.3.5/lib/influ
[23:55:23] dmak1112: xdb/query/core.rb:47:in `write_points'\n\tfrom /etc/sensu/handlers/hpc-influxdb-cpu-pcnt-metrics.rb:97:in `handle'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.3.0/lib/sensu-handler.rb:57:in `block in <class:Handler>'\n
[23:56:10] elomatreb: Please post your error as a gist, IRC might kick you since it thinks you're spamming
[23:56:53] nettoweb: has joined #ruby
[23:57:02] dmak1112: sorry! here: https://gist.github.com/dmak1112/47976150ab2917b3ca1a67803de72010
[23:57:34] toretore: fix the newlines
[23:57:39] dmak1112: the sensu server is taking data from clients and uploading it to influxdb. the thing is that for the first client i set up, it works. but when i add a second client, im getting this error
[23:58:17] toretore: and then paste the code where this happens