« Back to channel list

#ruby - 03 March 2016

« Back 1 day Forward 1 day »
[00:00:17] supplication: has joined #ruby
[00:01:08] Ox0dea: mallu: https://eval.in/529106
[00:01:16] rlf: has joined #ruby
[00:01:25] rlf: anyone here used nginx + puma for rails?
[00:01:34] spuk: has joined #ruby
[00:01:38] Ox0dea: ?rails rlf
[00:01:38] ruby[bot]: rlf: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[00:01:48] rlf: has left #ruby: ()
[00:02:04] nullwarp: has joined #ruby
[00:03:21] Guest34101: has joined #ruby
[00:04:41] baweaver: has joined #ruby
[00:06:25] skade: has joined #ruby
[00:06:36] Don_John: has joined #ruby
[00:07:20] n008f4g_: has joined #ruby
[00:08:29] devbug_: has joined #ruby
[00:08:37] Vingador: has joined #ruby
[00:12:02] BTRE: has joined #ruby
[00:12:26] chouhoulis: has joined #ruby
[00:14:55] deuxcliq_: has joined #ruby
[00:15:43] hogetaro_: has joined #ruby
[00:16:46] deuxcliq_: has joined #ruby
[00:17:18] IrishGringo: has joined #ruby
[00:17:44] baweaver: has joined #ruby
[00:18:09] ledestin: has joined #ruby
[00:18:45] trinaldi: has joined #ruby
[00:22:21] pdoherty: has joined #ruby
[00:23:12] idefine: has joined #ruby
[00:24:04] joonty: has joined #ruby
[00:24:55] trosborn: has joined #ruby
[00:25:18] darix: has joined #ruby
[00:25:44] deuxclique: has joined #ruby
[00:26:30] baweaver: has joined #ruby
[00:26:41] griffindy: has joined #ruby
[00:28:02] hahuang61: has joined #ruby
[00:28:24] Noxilex: has joined #ruby
[00:30:59] baweaver: has joined #ruby
[00:31:58] DLSteve: has joined #ruby
[00:32:59] Uber|Dragon: has joined #ruby
[00:34:46] Azure: has joined #ruby
[00:35:56] duderonomy: has joined #ruby
[00:36:35] atomical_: has joined #ruby
[00:37:58] freerobby: has joined #ruby
[00:38:31] Spami: has joined #ruby
[00:38:55] Respek: has joined #ruby
[00:39:03] Rodya_: has joined #ruby
[00:39:09] darix: has joined #ruby
[00:40:09] darix: has joined #ruby
[00:40:46] atomical_: has joined #ruby
[00:43:38] atomical: has joined #ruby
[00:44:44] rickmasta: has joined #ruby
[00:45:40] ghormoon: has joined #ruby
[00:46:31] kies^: has joined #ruby
[00:48:10] blackmesa: has joined #ruby
[00:49:47] atomical: has joined #ruby
[00:53:40] jenrzzz: has joined #ruby
[00:53:43] rew: has joined #ruby
[00:54:40] idefine: has joined #ruby
[00:56:11] solocshaw: has joined #ruby
[00:57:23] hightower: Hey, is there a way to see where in the chain of ancestors a particular method is defined (e.g. what the "super" hierarchy looks like)?
[01:00:17] Ox0dea: &ri Method#owner @hightower
[01:00:17] `derpy: hightower: http://ruby-doc.org/core-2.3.0/Method.html#method-i-owner
[01:01:33] dfockler: has joined #ruby
[01:02:55] hightower: Ox0dea, that'll work, thanks
[01:02:58] Diabolik: has joined #ruby
[01:03:00] Ox0dea: Sure thing.
[01:03:33] ReK2: has joined #ruby
[01:03:42] ReK2: has joined #ruby
[01:04:47] sondr3: has joined #ruby
[01:04:55] benlieb: has joined #ruby
[01:06:10] nettoweb: has joined #ruby
[01:08:27] kam270: has joined #ruby
[01:08:51] amargherio: has joined #ruby
[01:09:06] baweaver: has joined #ruby
[01:13:42] chouhoulis: has joined #ruby
[01:15:18] Ox0dea: hightower: This is slightly interesting: https://eval.in/529117
[01:16:23] hightower: Ox0dea, pretty great
[01:16:45] hightower: Just what I had in mind
[01:17:22] Spami: has joined #ruby
[01:17:43] kirillzh: has joined #ruby
[01:19:11] krobzaur_: has joined #ruby
[01:19:26] krobzaur_: has left #ruby: ()
[01:21:42] kirillzh: has joined #ruby
[01:22:23] jenrzzz: has joined #ruby
[01:25:03] jenrzzz: has joined #ruby
[01:26:46] Don_John: has joined #ruby
[01:29:14] eregi: has joined #ruby
[01:30:45] baroquebobcat: has joined #ruby
[01:32:00] dnewkerk: has joined #ruby
[01:33:15] baroquebobcat: has joined #ruby
[01:34:03] allcentury: has joined #ruby
[01:36:07] baroquebobcat: has joined #ruby
[01:36:49] baroquebobcat: has joined #ruby
[01:38:20] TBAA: has joined #ruby
[01:38:21] idefine: has joined #ruby
[01:43:06] htmldrum: has joined #ruby
[01:44:59] mostlybadfly: has joined #ruby
[01:46:25] AustinMatherne: has joined #ruby
[01:48:16] idefine: has joined #ruby
[01:49:02] aryaching: has joined #ruby
[01:49:15] DLSteve: has joined #ruby
[01:52:44] dopamean_: has joined #ruby
[01:53:20] DynamicMetaFlow: has joined #ruby
[01:53:38] mattwildig: has joined #ruby
[01:55:09] freerobby: has joined #ruby
[01:55:40] arutemu: has joined #ruby
[02:00:24] joonty: has joined #ruby
[02:07:34] stannard: has joined #ruby
[02:08:36] floatingpoint: has joined #ruby
[02:08:57] braincra-: has joined #ruby
[02:10:00] UtkarshRay: has joined #ruby
[02:11:51] danjam: has joined #ruby
[02:12:53] aryaching_: has joined #ruby
[02:14:28] chouhoulis: has joined #ruby
[02:14:41] baweaver: has joined #ruby
[02:15:03] workmad3_: has joined #ruby
[02:15:03] sphex_: has joined #ruby
[02:15:44] dcunit3d: has joined #ruby
[02:16:04] mattp_: has joined #ruby
[02:16:05] douglasc_: has joined #ruby
[02:16:15] monoprotic: has joined #ruby
[02:16:31] Azure|dc: has joined #ruby
[02:16:47] Zarthus_: has joined #ruby
[02:16:50] BSaboia: has joined #ruby
[02:17:04] bakedb: has joined #ruby
[02:17:16] TheNet: has joined #ruby
[02:18:13] justinmcp_: has joined #ruby
[02:18:26] ahuman_: has joined #ruby
[02:18:50] ericwood_: has joined #ruby
[02:18:56] zacts_: has joined #ruby
[02:19:00] pushcx_: has joined #ruby
[02:19:19] Muz_: has joined #ruby
[02:19:24] sts_: has joined #ruby
[02:19:27] icey_: has joined #ruby
[02:19:29] speaking1ode: has joined #ruby
[02:19:29] Shapeshi1ter: has joined #ruby
[02:19:41] gypsydav15: has joined #ruby
[02:19:51] benlieb: has joined #ruby
[02:19:53] crankhar1er: has joined #ruby
[02:19:59] Sp4rKy_: has joined #ruby
[02:20:03] MuffinPimp_: has joined #ruby
[02:20:49] Graphettion: has joined #ruby
[02:21:49] skakri`: has joined #ruby
[02:22:47] KramerC_: has joined #ruby
[02:22:49] rhg331: has joined #ruby
[02:22:51] _ko10: has joined #ruby
[02:22:54] DenSchub_: has joined #ruby
[02:22:58] bogdanteleaga_: has joined #ruby
[02:23:01] nlsun_: has joined #ruby
[02:23:42] djellemah_: has joined #ruby
[02:23:54] lpvb: has joined #ruby
[02:24:31] EdwardIII: has joined #ruby
[02:24:45] huyderman: has joined #ruby
[02:24:52] hightower6: has joined #ruby
[02:24:59] Brando753: has joined #ruby
[02:25:10] todd: has joined #ruby
[02:25:18] aryaching: has joined #ruby
[02:25:51] cgfbee: has joined #ruby
[02:26:26] iko1: has joined #ruby
[02:26:56] bradland: has joined #ruby
[02:28:05] rodolfowtf: has joined #ruby
[02:28:11] Bugboy1028: has joined #ruby
[02:28:21] lessless: has joined #ruby
[02:29:03] arutemu: has left #ruby: ()
[02:29:03] chagel: has joined #ruby
[02:31:15] vikas027: has joined #ruby
[02:32:49] gmas: has joined #ruby
[02:33:31] InternetFriend: has joined #ruby
[02:33:58] chagel: has joined #ruby
[02:42:09] LoneHerm_: has joined #ruby
[02:42:32] Rodya_: has joined #ruby
[02:45:14] BSaboia: has joined #ruby
[02:47:58] nisstyre_: has joined #ruby
[02:48:37] chagel: has joined #ruby
[02:52:15] astrobun_: has joined #ruby
[02:52:50] blackmesa: has joined #ruby
[02:53:12] cassioscabral: has joined #ruby
[02:53:25] idefine: has joined #ruby
[02:54:26] supplication: has joined #ruby
[02:56:20] queequeg1: has joined #ruby
[02:57:33] darkf: has joined #ruby
[02:58:30] chagel: has joined #ruby
[03:01:26] uglybandersnatch: has joined #ruby
[03:05:45] dopamean_: has joined #ruby
[03:05:46] chagel: has joined #ruby
[03:07:28] aryaching: has joined #ruby
[03:09:23] DmitryBochkarev: has joined #ruby
[03:10:35] dcunit3d: has joined #ruby
[03:11:11] fullofcaffeine: has joined #ruby
[03:11:59] DmitryBochkarev: has joined #ruby
[03:13:06] Internet1riend: has joined #ruby
[03:14:31] deuxclique: has joined #ruby
[03:15:12] chouhoulis: has joined #ruby
[03:15:47] Bugboy1028: has joined #ruby
[03:19:38] Channel6: has joined #ruby
[03:20:29] fedexo: has joined #ruby
[03:21:10] e4xit_: has joined #ruby
[03:21:27] pwnd_nsfw`: has joined #ruby
[03:21:47] th_: has joined #ruby
[03:22:00] nertzy2: has joined #ruby
[03:22:08] matled-: has joined #ruby
[03:22:26] Regulati_: has joined #ruby
[03:22:34] BlindSight`: has joined #ruby
[03:22:36] _Suntzu: has joined #ruby
[03:22:50] uxp: has joined #ruby
[03:22:51] heidar_: has joined #ruby
[03:23:51] Utkarsh: has joined #ruby
[03:24:00] x77686d_: has joined #ruby
[03:24:05] havenn: has joined #ruby
[03:24:12] ckrailo_: has joined #ruby
[03:24:36] \pub\bash0r_: has joined #ruby
[03:24:38] fn2187___: has joined #ruby
[03:24:39] rikai_: has joined #ruby
[03:24:48] diegok: has joined #ruby
[03:24:57] Dreamer3_: has joined #ruby
[03:25:09] rodolfowtf_: has joined #ruby
[03:25:19] kalleth_: has joined #ruby
[03:25:21] jtoy_: has joined #ruby
[03:25:26] paultreny_: has joined #ruby
[03:25:26] mosheee: has joined #ruby
[03:25:28] ardian_: has joined #ruby
[03:25:30] uglybandersnatc-: has joined #ruby
[03:25:31] ujjain-: has joined #ruby
[03:25:31] FifthWall_: has joined #ruby
[03:25:32] Eising_: has joined #ruby
[03:25:32] oz`: has joined #ruby
[03:25:35] tvsutton_: has joined #ruby
[03:25:35] \13k_: has joined #ruby
[03:25:35] spacemud_: has joined #ruby
[03:25:36] rethi_: has joined #ruby
[03:25:37] [ace]_: has joined #ruby
[03:25:37] shortdudey123_: has joined #ruby
[03:25:37] miah_: has joined #ruby
[03:25:40] samuelkadolph1: has joined #ruby
[03:25:40] fourq_: has joined #ruby
[03:25:41] joconcepts: has joined #ruby
[03:25:43] Kuukunen-: has joined #ruby
[03:25:43] ljarvis_: has joined #ruby
[03:25:43] Fire-Dragon-DoL-: has joined #ruby
[03:25:45] gregf1: has joined #ruby
[03:25:45] maxmanders_: has joined #ruby
[03:25:45] jzigmund: has joined #ruby
[03:25:47] papercode: has joined #ruby
[03:25:48] jinie_: has joined #ruby
[03:25:48] mhenrixon_: has joined #ruby
[03:25:52] scottyme-: has joined #ruby
[03:25:52] Olipro_: has joined #ruby
[03:25:54] mistym-: has joined #ruby
[03:25:55] rhg135: has joined #ruby
[03:25:55] DefV: has joined #ruby
[03:25:56] queequeg2: has joined #ruby
[03:25:57] Olipro-: has joined #ruby
[03:25:58] saltsa_: has joined #ruby
[03:25:58] antranig1: has joined #ruby
[03:25:59] Prira: has joined #ruby
[03:25:59] juanfra_: has joined #ruby
[03:26:01] Armand: has joined #ruby
[03:26:03] xsdg_: has joined #ruby
[03:26:11] raenk_: has joined #ruby
[03:26:14] tabakhase__: has joined #ruby
[03:26:22] Radar_: has joined #ruby
[03:26:23] Koshian_: has joined #ruby
[03:26:27] Boohbah_: has joined #ruby
[03:26:36] BtcBen: has joined #ruby
[03:26:39] jtdowney: has joined #ruby
[03:26:39] voker57: has joined #ruby
[03:26:40] yokel: has joined #ruby
[03:26:40] _whitelogger_: has joined #ruby
[03:26:42] voker57: has joined #ruby
[03:26:42] yokel: has joined #ruby
[03:26:43] jtdowney: has joined #ruby
[03:26:44] greenhat-: has joined #ruby
[03:26:44] rcs: has joined #ruby
[03:26:44] funnel_: has joined #ruby
[03:26:51] thejoecarroll: has joined #ruby
[03:26:51] wjimenez5271_: has joined #ruby
[03:26:52] donnoc_: has joined #ruby
[03:27:01] kp666: has joined #ruby
[03:27:02] Shidash: has joined #ruby
[03:27:05] Emmanuel_Chanel: has joined #ruby
[03:27:07] coffeejunk: has joined #ruby
[03:27:18] isene: has joined #ruby
[03:27:22] WebDawg: has joined #ruby
[03:27:25] timonv1: has joined #ruby
[03:27:28] pjaspers: has joined #ruby
[03:27:29] lannonbr: has joined #ruby
[03:27:47] go|dfish: has joined #ruby
[03:28:07] ohcibi: has joined #ruby
[03:28:13] uxp: has joined #ruby
[03:28:14] juanfra: has joined #ruby
[03:28:27] clamstar: has joined #ruby
[03:28:34] yorickpeterse: has joined #ruby
[03:29:43] lpvb: has joined #ruby
[03:30:30] todd: has joined #ruby
[03:30:46] Guest121: has joined #ruby
[03:31:04] spectra: has joined #ruby
[03:31:32] callumacrae: has joined #ruby
[03:32:00] dcunit3d: has joined #ruby
[03:32:16] ericn81: has joined #ruby
[03:32:46] davidcelis: has joined #ruby
[03:32:46] davidcelis: has joined #ruby
[03:33:11] Guest123456666: has joined #ruby
[03:33:32] zapata: has joined #ruby
[03:33:43] heyimwill: has joined #ruby
[03:34:13] Mission-Critical: has joined #ruby
[03:34:24] pawnbox: has joined #ruby
[03:37:57] astrobun_: has joined #ruby
[03:38:50] Dragooon: has joined #ruby
[03:38:54] deuxcliq_: has joined #ruby
[03:40:21] sunya7a: has joined #ruby
[03:41:34] agent_white: has joined #ruby
[03:41:40] trosborn: has joined #ruby
[03:41:50] DrCode: has joined #ruby
[03:43:35] howdoi: has joined #ruby
[03:45:18] livcd: has joined #ruby
[03:45:48] Rodya_: has joined #ruby
[03:45:51] makenoise: has joined #ruby
[03:45:53] Bugboy1028: has joined #ruby
[03:45:54] douglascorrea: has joined #ruby
[03:45:56] Antiarc: has joined #ruby
[03:46:26] mclee: has joined #ruby
[03:51:34] matp: has joined #ruby
[03:52:26] epitron: has joined #ruby
[03:53:00] Rasi: has joined #ruby
[03:53:10] duncannz: has joined #ruby
[03:53:26] DmitryBochkarev: has joined #ruby
[03:53:47] blackmesa: has joined #ruby
[03:54:01] duncannz: has joined #ruby
[03:55:03] chagel: has joined #ruby
[03:55:35] Dragooon: has joined #ruby
[03:56:09] bronson: has joined #ruby
[03:56:25] safe: has joined #ruby
[03:56:39] Antiarc: has joined #ruby
[03:56:45] krasnus: has joined #ruby
[03:57:35] krz: has joined #ruby
[04:03:53] jud: has joined #ruby
[04:06:21] devbug: has joined #ruby
[04:07:27] pushcx_: has joined #ruby
[04:08:22] baweaver: has joined #ruby
[04:08:34] SpikeMaster: has joined #ruby
[04:08:55] crystal77: has joined #ruby
[04:09:36] pawnbox: has joined #ruby
[04:10:49] symm-: has joined #ruby
[04:11:46] makenoise: has joined #ruby
[04:13:04] techietrash_: has joined #ruby
[04:13:13] djbkd: has joined #ruby
[04:13:58] braincrash: has joined #ruby
[04:14:30] gix: has joined #ruby
[04:15:44] SpikeMaster: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[04:15:56] chouhoulis: has joined #ruby
[04:16:20] duncannz: has joined #ruby
[04:19:59] aryaching: has joined #ruby
[04:24:00] minimalism: has joined #ruby
[04:24:01] y2mq37: has joined #ruby
[04:27:13] dopie: has joined #ruby
[04:27:36] paultreny_: has joined #ruby
[04:28:06] dopie: has joined #ruby
[04:28:31] htmldrum: has joined #ruby
[04:30:38] Contigi: has joined #ruby
[04:31:50] Bugboy1028: has joined #ruby
[04:35:59] lvn: has joined #ruby
[04:36:29] makenoise: has joined #ruby
[04:38:48] houhoulis: has joined #ruby
[04:39:26] aupadhye: has joined #ruby
[04:40:04] chagel: has joined #ruby
[04:40:46] pawnbox: has joined #ruby
[04:40:53] zast: has joined #ruby
[04:41:09] DmitryBochkarev: has joined #ruby
[04:49:32] sneakerhax: has joined #ruby
[04:50:17] makenoise: has joined #ruby
[04:50:36] sdothum: has joined #ruby
[04:50:46] pawnbox: has joined #ruby
[04:51:03] douglascorrea: has joined #ruby
[04:53:24] bronson: has joined #ruby
[04:54:00] djbkd: has joined #ruby
[04:55:23] eregi: has joined #ruby
[04:56:47] blackmesa: has joined #ruby
[04:57:34] InternetFriend: has joined #ruby
[04:58:04] Chagel_: has joined #ruby
[04:58:15] hightower4: Is there a way, in runtime, to change the parent class of a class?
[05:01:03] hightower4: Based on http://stackoverflow.com/questions/27349583/change-an-instance-of-a-parent-class-into-a-child-class, looks like no offhand way
[05:05:11] astrobun_: has joined #ruby
[05:06:59] Ox0dea: hightower4: https://eval.in/529164
[05:07:03] Ox0dea: But that's terrifying.
[05:10:49] mattwildig: has joined #ruby
[05:10:56] Ox0dea: "Impossible" is my trigger word.
[05:12:46] shanemcd: has joined #ruby
[05:12:58] Ox0dea: I suppose SIZEOF_UINTPTR_T is more likely to be the correct value on more systems, but this is otherwise a pretty "robust" way to do it, scarily enough.
[05:13:07] trosborn: has joined #ruby
[05:13:19] Ox0dea: Internally, RClass is just an RBasic immediately followed by a VALUE, the latter being a pointer to the superclass.
[05:13:32] Ox0dea: I don't think that's liable to have changed since 1.0 or so.
[05:13:51] Ox0dea: s/pointer/reference/
[05:14:16] bmalum: has joined #ruby
[05:14:34] shevy: that reminds me of evil.rb
[05:15:39] Bugboy1028: has joined #ruby
[05:16:24] Ox0dea: evil.rb was the hardcore mode that Fiddle softened up quite nicely.
[05:16:39] chouhoulis: has joined #ruby
[05:16:49] Uber|Dragon: has left #ruby: ()
[05:16:53] Uber|Dragon: has joined #ruby
[05:16:54] Ox0dea: Now that I think on it, why on earth isn't Fiddle::SIZEOF_VALUE a thing?
[05:17:31] moeabdol: has joined #ruby
[05:19:55] youch: has joined #ruby
[05:21:31] adgtl: has joined #ruby
[05:22:16] Contigi: has joined #ruby
[05:22:26] dubalubdub: has joined #ruby
[05:26:11] jtperreault: has joined #ruby
[05:26:59] majjoha: has joined #ruby
[05:27:02] Guest21405: has joined #ruby
[05:28:22] sq271: has joined #ruby
[05:28:26] nickjj_: has joined #ruby
[05:28:42] Jammy_Work: has joined #ruby
[05:29:19] htmldrum: has joined #ruby
[05:30:26] pawnbox: has joined #ruby
[05:33:30] LoneHerm_: has joined #ruby
[05:34:47] DmitryBochkarev: has joined #ruby
[05:36:59] steffkes: has joined #ruby
[05:39:35] Sammichmaker: has joined #ruby
[05:41:20] chagel: has joined #ruby
[05:44:34] ramfjord: has joined #ruby
[05:48:14] coyo: has joined #ruby
[05:48:14] coyo: has joined #ruby
[05:49:18] Rodya_: has joined #ruby
[05:51:06] _whitelogger: has joined #ruby
[05:54:07] baweaver: has joined #ruby
[05:54:49] astrobun_: has joined #ruby
[05:57:07] s00pcan: has joined #ruby
[05:58:21] holyGlitch: has left #ruby: ()
[05:59:49] blackmesa: has joined #ruby
[06:01:03] rodolfowtf: has joined #ruby
[06:01:31] Bugboy1028: has joined #ruby
[06:03:48] sauvin: has joined #ruby
[06:05:08] trosborn: has joined #ruby
[06:06:04] astrobun_: has joined #ruby
[06:06:38] dionysus69: has joined #ruby
[06:11:47] idefine: has joined #ruby
[06:11:51] symm-: has joined #ruby
[06:12:57] moeabdol: has joined #ruby
[06:13:04] Ropeney: has joined #ruby
[06:16:29] adgtl: has joined #ruby
[06:17:29] jayc0b0: has joined #ruby
[06:17:40] skade: has joined #ruby
[06:17:53] moeabdol: has joined #ruby
[06:18:33] kirillzh: has joined #ruby
[06:19:06] chouhoulis: has joined #ruby
[06:20:58] tjbiddle: has joined #ruby
[06:24:12] the_drow: has joined #ruby
[06:30:53] Bugboy1028: has joined #ruby
[06:31:39] chagel: has joined #ruby
[06:32:22] kies^: has joined #ruby
[06:34:31] LoneHermit: has joined #ruby
[06:35:40] norc: has joined #ruby
[06:36:46] whyldfire: has joined #ruby
[06:38:10] norc: Hello whyldfire.
[06:38:32] whyldfire: Are you familiar with the rails framework?
[06:38:51] antranig1: mornings :#
[06:39:15] norc: whyldfire: Yes and you might want to take this to #rubyonrails
[06:39:26] whyldfire: oh! thank you
[06:39:26] norc: Good morning antranigv.
[06:39:59] hxegon: has joined #ruby
[06:42:52] whyldfire: has left #ruby: ()
[06:43:24] bronson: has joined #ruby
[06:48:31] mrp: has joined #ruby
[06:48:43] mrp: i'm new to rails
[06:48:54] mrp: also ruby
[06:49:00] mrp: pls help me
[06:49:23] mrp: what's the differnce between include and require in ruby
[06:49:54] shevy: mrp come on man
[06:52:43] moeabdol: has joined #ruby
[06:53:12] douglascorrea: has joined #ruby
[06:53:42] intrigueD: has joined #ruby
[06:55:26] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[06:56:06] hk238: has joined #ruby
[06:57:27] thevaliantx: has joined #ruby
[06:57:34] antranigv: yea, I had this feeling that most of Ruby programmers use Rails. I hope I'm wrong :))
[06:57:54] norc: antranigv: Rails has certainly helped with the popularity of Ruby without a doubt.
[06:58:43] antranigv: norc: mhm! even my favorite Diaspora is written using Rails ^^
[06:58:49] skade: has joined #ruby
[07:00:41] the_drow: has joined #ruby
[07:00:56] shevy: how many bug or issue trackers would exist for ruby? I know of redmine I think... but is there something simpler? ideally web-interface too but I mostly just need a sorta "todo list manager". my todo files right now are mostly just plain .md files
[07:02:07] ensyde_: has joined #ruby
[07:02:30] antranigv: may I ask, which part of Ruby is influenced by Ada? :)
[07:03:20] astrobun_: has joined #ruby
[07:03:41] shevy: its girly side
[07:03:48] antranigv: shevy: lol:D
[07:04:50] blackmesa: has joined #ruby
[07:06:46] LoneHerm_: has joined #ruby
[07:07:51] tristanp: has joined #ruby
[07:09:43] antranigv: File.open("file.txt", "r") do |f|
[07:09:48] antranigv: what does |f| do?
[07:11:35] pawnbox: has joined #ruby
[07:11:39] mattwildig: has joined #ruby
[07:12:31] chipotle: has joined #ruby
[07:13:56] scepticulous: has joined #ruby
[07:17:05] djellemah: antranigv: |f| is a parameter to the block of code between do and end
[07:17:10] bronson: has joined #ruby
[07:17:40] trosborn: has joined #ruby
[07:17:59] tvw: has joined #ruby
[07:18:07] Mon_Ouie: has joined #ruby
[07:18:41] JohnBat26: has joined #ruby
[07:19:43] neuraload: has joined #ruby
[07:19:52] chouhoulis: has joined #ruby
[07:20:03] trosborn: has joined #ruby
[07:20:47] trosborn: has joined #ruby
[07:22:16] hk238: Hello I just started learning ruby on 'codeacademy' website, there's a task that asks me to print out each word from a user's input into the console, as far as I can tell, that's exactly what's happening, but the website doesnt accept that as an answer... So I'm probably doing something wrong ^^
[07:23:29] hk238: `text = gets.chomp` `words=text.split(" ")` `words.each do |word|` `puts words` `end` , should work?
[07:23:56] Ishido: has joined #ruby
[07:24:23] _whitelogger: has joined #ruby
[07:24:55] tjbiddle: has joined #ruby
[07:29:24] Dimik: has joined #ruby
[07:30:26] lvn: has joined #ruby
[07:31:07] Bugboy1028: has joined #ruby
[07:31:18] htmldrum: has joined #ruby
[07:33:31] devbug: has joined #ruby
[07:35:16] firstdayonthejob: has joined #ruby
[07:35:51] _whitelogger: has joined #ruby
[07:36:03] voker57: has joined #ruby
[07:36:03] voker57: has joined #ruby
[07:36:14] anisha: has joined #ruby
[07:36:17] ohcibi: has joined #ruby
[07:38:20] SebastianThorn: hk238: puts word
[07:39:25] andikr: has joined #ruby
[07:39:29] hk238: oh sorry, I did actually do `puts word` but by accident wrote `words` into irc ^^
[07:40:07] czerasz: has joined #ruby
[07:40:36] SebastianThorn: well there is many ways of doing that task, so they might have a different solution
[07:40:49] SebastianThorn: gets.chomp.split(" ").each {|word| puts word}
[07:40:56] SebastianThorn: should work aswell
[07:41:02] norc: Ox0dea: Hah. I love how rb_fix2int actually returns a long.
[07:41:54] jayc0b0: has joined #ruby
[07:41:54] norc: hk238: How about you pastie your actual code to https://eval.in/
[07:41:56] antranigv: print "printing #{line}..." prints the line, then \n and then ... on the next line. anyway to print ... next to #{line} ? :)
[07:42:23] norc: antranigv: I do not understand your question.
[07:43:23] minimalism: has joined #ruby
[07:43:36] jenrzzz: has joined #ruby
[07:43:38] SebastianThorn: antranigv: in your line variable youo seem to have the \n
[07:44:09] norc: SebastianThorn: You actually understood that?
[07:44:13] norc: I am amazed.
[07:44:35] antranigv: norc: here https://bpaste.net/show/8407e43bc328
[07:44:37] SebastianThorn: took me a while
[07:45:03] antranigv: ha? didn't know that, hm
[07:45:06] SebastianThorn: do this : print "hello #{line.chomp} hi"
[07:45:27] norc: ri String#chomp antranigv
[07:45:29] norc: &ri String#chomp antranigv
[07:45:30] `derpy: antranigv: http://ruby-doc.org/core-2.3.0/String.html#method-i-chomp
[07:46:25] antranigv: and now I just added \n in the end of print and it worked, tnx!
[07:46:58] SebastianThorn: antranigv: with or without .chomp?
[07:47:03] antranigv: SebastianThorn: with :))
[07:47:13] SebastianThorn: got really confused there
[07:47:32] antranigv: btw, I'm just trying to get this https://bpaste.net/show/d9d25d11f383 in Ruby
[07:47:50] SebastianThorn: antranigv: try using puts instead of print, it adds the \n
[07:48:38] antranigv: SebastianThorn: just tried, yup it worked the same without \n
[07:48:54] antranigv: so puts is Put String, and print kust prints whatever it gets, nice:))
[07:49:28] SebastianThorn: might be a bit more to it, not sure
[07:49:29] ferr: has joined #ruby
[07:51:29] tAn: has joined #ruby
[07:57:02] Spami: has joined #ruby
[07:57:06] Domaldel: has joined #ruby
[07:57:23] agent_white: has joined #ruby
[07:57:56] atmosx: has joined #ruby
[07:59:38] jaruga: has joined #ruby
[08:00:40] mfaeh: has joined #ruby
[08:01:00] biberu: has joined #ruby
[08:01:03] pawnbox: has joined #ruby
[08:01:33] Bugboy1028: has joined #ruby
[08:02:11] araujo_: has joined #ruby
[08:04:38] araujo_: has joined #ruby
[08:04:38] uglybandersnatch: has joined #ruby
[08:05:26] vikas027: has joined #ruby
[08:05:35] vikas027: has left #ruby: ()
[08:07:04] baweaver: has joined #ruby
[08:07:50] blackmesa: has joined #ruby
[08:08:31] Bloomer: has joined #ruby
[08:09:04] SOLDIERz: has joined #ruby
[08:09:16] karapetyan: has joined #ruby
[08:09:38] eregi: has joined #ruby
[08:11:45] aufi: has joined #ruby
[08:19:45] adgtl: has joined #ruby
[08:19:45] adgtl: has joined #ruby
[08:19:52] antgel: has joined #ruby
[08:20:36] chouhoulis: has joined #ruby
[08:21:30] emilkarl: has joined #ruby
[08:22:51] djbkd_: has joined #ruby
[08:23:07] TomyWork: has joined #ruby
[08:24:14] DmitryBochkarev: has joined #ruby
[08:24:17] codecop: has joined #ruby
[08:27:11] LoneHermit: has joined #ruby
[08:27:23] _whitelogger: has joined #ruby
[08:27:34] karapetyan: has joined #ruby
[08:27:35] the_drow: has joined #ruby
[08:28:17] Olipro: has joined #ruby
[08:31:02] _whitelogger: has joined #ruby
[08:31:30] grn: has joined #ruby
[08:32:24] adgtl: has joined #ruby
[08:32:38] emilkarl: has joined #ruby
[08:33:00] pawnbox: has joined #ruby
[08:33:18] Bugboy1028: has joined #ruby
[08:35:45] hgl: has joined #ruby
[08:40:11] ur5us: has joined #ruby
[08:41:54] n008f4g_: has joined #ruby
[08:49:36] djbkd: has joined #ruby
[08:50:05] jeanlinux: has joined #ruby
[08:50:28] chagel: has joined #ruby
[08:50:43] skade: has joined #ruby
[08:51:32] tulak: has joined #ruby
[08:55:09] douglascorrea: has joined #ruby
[08:56:11] agent_white: has joined #ruby
[08:57:27] dravine: has joined #ruby
[08:58:17] SCHAAP137: has joined #ruby
[09:00:09] Hounddog: has joined #ruby
[09:01:23] rsc___: has joined #ruby
[09:02:05] UtkarshRay: has joined #ruby
[09:02:57] troulouliou_div2: has joined #ruby
[09:03:41] Bugboy1028: has joined #ruby
[09:04:44] mfaeh: has joined #ruby
[09:06:50] mdw: has joined #ruby
[09:07:07] hayden_: has joined #ruby
[09:09:09] antgel: has joined #ruby
[09:09:37] blackmesa: has joined #ruby
[09:11:38] eregi: has joined #ruby
[09:12:31] mattwildig: has joined #ruby
[09:15:35] bweston92: has joined #ruby
[09:18:12] htmldrum: has joined #ruby
[09:19:06] norc: Hello adaedra
[09:21:19] chouhoulis: has joined #ruby
[09:22:29] chagel: has joined #ruby
[09:22:43] bronson: has joined #ruby
[09:23:12] htmldrum_: has joined #ruby
[09:23:54] mark2: has joined #ruby
[09:27:26] mlehrer: has joined #ruby
[09:27:31] karapetyan: has joined #ruby
[09:28:22] evidex: has joined #ruby
[09:29:03] bronson: has joined #ruby
[09:29:41] blackmesa: has joined #ruby
[09:30:40] schickung: has joined #ruby
[09:30:51] Couch: has joined #ruby
[09:31:30] araujo: has joined #ruby
[09:31:31] araujo: has joined #ruby
[09:32:31] aryaching: has joined #ruby
[09:33:10] snowy: has joined #ruby
[09:33:28] Bloomer: has joined #ruby
[09:33:30] nettoweb: has joined #ruby
[09:33:54] Bugboy1028: has joined #ruby
[09:34:26] LoneHermit: has joined #ruby
[09:34:49] futilegames: has joined #ruby
[09:35:05] karapetyan: has joined #ruby
[09:35:31] karapetyan: has joined #ruby
[09:39:44] sandstrom: has joined #ruby
[09:41:30] Gasher: has joined #ruby
[09:41:38] Bloomer: has joined #ruby
[09:44:17] mlehrer: has joined #ruby
[09:45:10] sandstrom: has joined #ruby
[09:46:41] marr: has joined #ruby
[09:47:29] konsolebox: has joined #ruby
[09:47:43] ruby-lang037: has joined #ruby
[09:47:58] sandstrom: has joined #ruby
[09:49:06] rodfersou: has joined #ruby
[09:49:25] BSaboia: has joined #ruby
[09:49:38] flughafen: greetings fellow human
[09:49:39] schickung: has joined #ruby
[09:49:42] levifig: has joined #ruby
[09:50:06] sandstrom: has joined #ruby
[09:50:14] pandaant: has joined #ruby
[09:50:33] Xeago: has joined #ruby
[09:50:56] Bloomer: has joined #ruby
[09:51:45] karapetyan: has joined #ruby
[09:52:34] jeanlinux: has joined #ruby
[09:53:03] FooMunki: has joined #ruby
[09:53:28] rfi: has joined #ruby
[09:54:07] karapetyan: has joined #ruby
[09:55:10] joonty: has joined #ruby
[09:55:42] julieeharshaw: has joined #ruby
[09:56:18] sandstrom: has joined #ruby
[09:56:40] Vingador: has joined #ruby
[09:57:43] mfaeh: has joined #ruby
[09:57:45] pawnbox: has joined #ruby
[09:58:07] FooMunki: has joined #ruby
[09:58:12] zack6849: has joined #ruby
[09:58:12] zack6849: has joined #ruby
[09:58:38] _whitelogger: has joined #ruby
[09:59:35] trosborn: has joined #ruby
[10:00:31] rfi: has joined #ruby
[10:03:34] Bugboy1028: has joined #ruby
[10:04:51] livcd: has joined #ruby
[10:08:29] douglascorrea: has joined #ruby
[10:12:23] eregi: has joined #ruby
[10:12:41] rdark: has joined #ruby
[10:13:27] nisstyre: has joined #ruby
[10:14:31] TheHodge: has joined #ruby
[10:14:44] hamed_r: has joined #ruby
[10:15:35] nerium: has joined #ruby
[10:15:36] f4cl3y: has joined #ruby
[10:16:59] mfaeh: has joined #ruby
[10:17:45] gregf: has joined #ruby
[10:19:02] uglybandersnatch: has joined #ruby
[10:19:44] Bloomer: has joined #ruby
[10:19:59] gregf: has joined #ruby
[10:21:13] pawnbox: has joined #ruby
[10:22:06] chouhoulis: has joined #ruby
[10:24:32] binaryplease: has joined #ruby
[10:25:31] hgl: has joined #ruby
[10:27:22] jeanlinux: has joined #ruby
[10:27:35] hgl_: has joined #ruby
[10:29:42] schickung: has joined #ruby
[10:30:31] leksster: has joined #ruby
[10:31:14] superrorc: has joined #ruby
[10:31:40] cassioscabral: has joined #ruby
[10:32:15] superrorc: i have a string, how can i print only words thats contain 3 letters ?
[10:32:19] trosborn: has joined #ruby
[10:32:28] karapetyan: has joined #ruby
[10:33:44] rsc___: has joined #ruby
[10:33:49] superrorc: new_string = my_string.scan(\3w+\) like this ?
[10:34:16] Snowy_: has joined #ruby
[10:34:37] hgl: has joined #ruby
[10:35:38] UtkarshRay: has joined #ruby
[10:38:41] jeanlinux: has joined #ruby
[10:40:46] bronson: has joined #ruby
[10:41:01] snowy: has joined #ruby
[10:42:18] Rodya_: has joined #ruby
[10:47:32] karapetyan: has joined #ruby
[10:48:33] pawnbox: has joined #ruby
[10:50:11] Hanmac: superrorc: that should work: /\b\w{3}\b/
[10:50:13] duderonomy: superrorc: try this /\s(.{3})\s/
[10:50:18] ready: has joined #ruby
[10:50:27] chagel: has joined #ruby
[10:50:33] karapetyan: has joined #ruby
[10:51:08] UtkarshRay: has joined #ruby
[10:52:24] blackmesa: has joined #ruby
[10:53:35] barajasfab: has joined #ruby
[10:54:54] pawnbox: has joined #ruby
[10:58:09] chagel: has joined #ruby
[10:58:30] cassioscabral: has joined #ruby
[10:58:47] apeiros: \b is the better choice than \s
[10:59:10] pawnbox: has joined #ruby
[10:59:12] apeiros: and depending on character set, I'd use \p{word} instead of \w
[10:59:39] apeiros: (\w = A-Za-z0-9_, \p{Word} additionally includes unicode letters like öäüéèà etc.)
[11:00:47] pawnbox: has joined #ruby
[11:01:39] karapetyan: has joined #ruby
[11:02:24] cassioscabral: has joined #ruby
[11:04:01] Bugboy1028: has joined #ruby
[11:04:20] trinaldi: has joined #ruby
[11:04:48] rsc___: has joined #ruby
[11:06:50] Tempesta: has joined #ruby
[11:07:25] vondruch: has joined #ruby
[11:07:34] SenpaiSilver: has joined #ruby
[11:08:27] anisha: has joined #ruby
[11:10:31] karapetyan: has joined #ruby
[11:11:53] chagel: has joined #ruby
[11:12:27] n008f4g_: has joined #ruby
[11:13:11] eregi: has joined #ruby
[11:13:15] mattwildig: has joined #ruby
[11:13:49] rsc___: has joined #ruby
[11:14:51] karapetyan: has joined #ruby
[11:17:20] duderonomy: good stuff. thx apeiros!
[11:18:05] colegatron: has joined #ruby
[11:19:38] sepp2k: has joined #ruby
[11:21:38] adgtl: has joined #ruby
[11:22:28] LoneHermit: has joined #ruby
[11:22:49] chouhoulis: has joined #ruby
[11:23:35] dionysus69: has joined #ruby
[11:25:49] m8: has joined #ruby
[11:26:25] schickung: has joined #ruby
[11:26:53] karapety_: has joined #ruby
[11:27:46] platzhirsch: has joined #ruby
[11:27:48] Coral: has joined #ruby
[11:27:57] mfaeh: has joined #ruby
[11:28:14] rsc___: has joined #ruby
[11:29:41] Guest121: has joined #ruby
[11:34:48] chipotle: has joined #ruby
[11:35:40] _whitelogger: has joined #ruby
[11:37:36] tabakhase: has joined #ruby
[11:39:29] dgncn: has joined #ruby
[11:40:04] sgambino: has joined #ruby
[11:42:30] flughafen: good day to all my fellow rubinistos
[11:42:40] jeanlinux: has joined #ruby
[11:42:56] bronson: has joined #ruby
[11:44:11] ferhaty: has joined #ruby
[11:47:00] steffkes: has joined #ruby
[11:47:17] FooMunki: has joined #ruby
[11:47:47] AlexRussia: has joined #ruby
[11:48:02] johnmilton: has joined #ruby
[11:49:43] ltp: has joined #ruby
[11:50:12] bensarz: has joined #ruby
[11:54:36] dcunit3d: has joined #ruby
[11:54:38] charliesome: has joined #ruby
[11:56:15] x0F: has joined #ruby
[11:56:52] binaryplease: has joined #ruby
[11:57:02] arquebus: has joined #ruby
[11:59:44] krz: has joined #ruby
[12:00:29] jeanlinux: has joined #ruby
[12:01:42] karapetyan: has joined #ruby
[12:02:13] ldnunes: has joined #ruby
[12:04:14] BSaboia: has joined #ruby
[12:04:36] Bugboy1028: has joined #ruby
[12:08:19] InternetFriend: has joined #ruby
[12:10:14] freerobby: has joined #ruby
[12:11:27] anagha_: has joined #ruby
[12:11:43] kies: has joined #ruby
[12:12:15] danjam: has joined #ruby
[12:12:41] shadeslayer: has joined #ruby
[12:12:42] blackmesa: has joined #ruby
[12:13:52] adgtl: has joined #ruby
[12:13:56] eregi: has joined #ruby
[12:16:18] nerium: has joined #ruby
[12:17:02] tristanp: has joined #ruby
[12:20:06] niksrc: has joined #ruby
[12:20:14] platzhirsch: has joined #ruby
[12:23:37] chouhoulis: has joined #ruby
[12:26:45] grill: has joined #ruby
[12:27:46] karapetyan: has joined #ruby
[12:30:13] Xeago: has joined #ruby
[12:30:29] sandstrom: has joined #ruby
[12:30:43] astrobun_: has joined #ruby
[12:31:21] shevy: yo flughafen
[12:32:09] Guest121: has joined #ruby
[12:32:56] the_drow: Is there a way to tell paperclip to use fakefs during testing?
[12:34:07] karapety_: has joined #ruby
[12:35:10] aupadhye: has joined #ruby
[12:35:56] jeanlinux: has joined #ruby
[12:36:06] karapetyan: has joined #ruby
[12:36:13] sdothum: has joined #ruby
[12:39:32] aryaching: has joined #ruby
[12:39:50] openstruct: has joined #ruby
[12:40:54] openstruct: has joined #ruby
[12:43:12] charliesome: has joined #ruby
[12:43:15] pawnbox: has joined #ruby
[12:45:34] Rodya_: has joined #ruby
[12:46:43] SHyx0rmZ: has joined #ruby
[12:54:18] allcentury: has joined #ruby
[12:56:15] Xeago: has joined #ruby
[13:00:26] vondruch: has joined #ruby
[13:04:03] Bugboy1028: has joined #ruby
[13:06:29] Guest34101: has joined #ruby
[13:06:40] makenoise: has joined #ruby
[13:08:27] pawnbox: has joined #ruby
[13:09:01] jeanlinux: has joined #ruby
[13:09:14] grill: has joined #ruby
[13:10:46] LoneHermit: has joined #ruby
[13:12:08] Xeago: has joined #ruby
[13:12:56] rickmasta: has joined #ruby
[13:13:11] harryh: has joined #ruby
[13:13:19] synthroid: has joined #ruby
[13:14:14] mattwildig: has joined #ruby
[13:14:24] myntcake: has joined #ruby
[13:14:43] eregi: has joined #ruby
[13:15:20] ilyaman: has joined #ruby
[13:16:08] dcunit3d: has joined #ruby
[13:17:09] mattwildig: has joined #ruby
[13:17:11] Xeago: has joined #ruby
[13:19:20] chagel: has joined #ruby
[13:22:19] IrishGringo: has joined #ruby
[13:22:27] charliesome: has joined #ruby
[13:23:02] b|ackwolf: has joined #ruby
[13:23:28] Xeago: has joined #ruby
[13:24:09] blackmesa: has joined #ruby
[13:24:15] djbkd: has joined #ruby
[13:24:21] chouhoulis: has joined #ruby
[13:27:02] kith_: has joined #ruby
[13:27:07] tvw: has joined #ruby
[13:31:54] jeanlinux: has joined #ruby
[13:31:54] Guest121: has joined #ruby
[13:32:39] astrobun_: has joined #ruby
[13:34:45] howdoi: has joined #ruby
[13:35:10] InternetFriend: has joined #ruby
[13:35:43] ramfjord: has joined #ruby
[13:38:48] pawnbox: has joined #ruby
[13:38:56] myntcake: has joined #ruby
[13:39:09] paul98: has joined #ruby
[13:40:55] mfaeh: has joined #ruby
[13:42:14] bronson: has joined #ruby
[13:45:04] jeanlinux: has joined #ruby
[13:45:52] b|ackwolf: has joined #ruby
[13:45:56] joast: has joined #ruby
[13:48:36] skweek: has joined #ruby
[13:49:56] konsolebox: has joined #ruby
[13:50:05] beawesomeinstead: has joined #ruby
[13:54:17] makenoise: has joined #ruby
[13:57:30] ramortegui: has joined #ruby
[13:58:19] IrishGringo: has joined #ruby
[14:00:55] aryaching: has joined #ruby
[14:01:39] sgambino: has joined #ruby
[14:01:47] dopamean_: has joined #ruby
[14:03:13] anagha_: has joined #ruby
[14:03:46] gregf: has joined #ruby
[14:04:08] duckpuppy: has joined #ruby
[14:05:20] atomical: has joined #ruby
[14:05:50] dcunit3d: has joined #ruby
[14:06:22] cdg: has joined #ruby
[14:06:45] allcentury: has joined #ruby
[14:07:01] shevy: has joined #ruby
[14:07:25] shanemcd: has joined #ruby
[14:07:45] glcx: has joined #ruby
[14:08:05] shanemcd: has joined #ruby
[14:09:12] ItSANgo: has joined #ruby
[14:10:51] workmad3: has joined #ruby
[14:11:18] malconis: has joined #ruby
[14:11:35] synthroid: has joined #ruby
[14:12:04] malconis: has joined #ruby
[14:12:46] hamed_r: has joined #ruby
[14:13:47] bmalum: has joined #ruby
[14:15:18] Es0teric: has joined #ruby
[14:15:28] eregi: has joined #ruby
[14:18:07] DenysLins: has joined #ruby
[14:18:49] harly: has joined #ruby
[14:19:15] aegis3121: has joined #ruby
[14:19:16] DenysLins: has left #ruby: ()
[14:19:56] Rodya_: has joined #ruby
[14:20:41] schickung: has joined #ruby
[14:22:34] InternetFriend: has joined #ruby
[14:25:04] chouhoulis: has joined #ruby
[14:26:21] rdavila: has joined #ruby
[14:26:50] mikecmpbll: has joined #ruby
[14:27:14] vondruch: has joined #ruby
[14:27:57] justbleed: has joined #ruby
[14:30:24] User458764: has joined #ruby
[14:31:08] mikecmpbll: depends on your outlook on life.
[14:31:20] haylon: has joined #ruby
[14:31:20] mikecmpbll: nvm, was scrolled so far back.
[14:32:23] Xeago: has joined #ruby
[14:32:29] Guest34101: has joined #ruby
[14:32:36] hxegon: has joined #ruby
[14:32:39] fullofcaffeine: has joined #ruby
[14:32:54] bmalum: has joined #ruby
[14:33:31] karapetyan: has joined #ruby
[14:35:22] Bugboy1028: has joined #ruby
[14:36:38] humblespoon: has joined #ruby
[14:37:17] fullofca_: has joined #ruby
[14:43:30] synthroid: has joined #ruby
[14:44:00] hayden_: has joined #ruby
[14:44:44] _whitelogger: has joined #ruby
[14:44:46] voker57: has joined #ruby
[14:44:46] voker57: has joined #ruby
[14:44:56] InternetFriend: has joined #ruby
[14:45:53] bmalum: has joined #ruby
[14:45:54] IrishGringo: has joined #ruby
[14:47:15] rippa: has joined #ruby
[14:47:24] gregf1: has joined #ruby
[14:49:09] jeanlinux: has joined #ruby
[14:49:40] symm-: has joined #ruby
[14:50:02] sandstrom: has joined #ruby
[14:52:40] polishdub: has joined #ruby
[14:52:58] nfk: has joined #ruby
[14:53:18] igam: has joined #ruby
[14:53:59] igam: Hi! What would I use to read (and write) ruby literals such as [:name,"foo",:properties,[:color,"red"]] ?
[14:54:30] shevy: igam you mean you have them in a String?
[14:54:45] igam: or in a file.
[14:54:48] igam: (you know, the basic stuff lisp has been doing for 60 years).
[14:54:49] pdoherty: has joined #ruby
[14:54:57] ytti: Marshal?
[14:55:00] shevy: you have to somehow parse it
[14:55:13] ytti: what is outputting them to begin with?
[14:55:15] ytti: can that be changed?
[14:55:18] apeiros: igam: yaml, json
[14:55:52] igam: From Marshal, I don't see if it's serialized in ruby literal source form.
[14:56:06] shevy: igam and if the above does not work, you can use https://github.com/apeiros/literal_parser :)
[14:56:09] ytti: igam, it does not
[14:56:15] igam: I don't want json or yaml.
[14:56:34] igam: Yes, literal_parser is what I want. Thank you!
[14:56:59] brendan-: has joined #ruby
[14:57:40] apeiros: shevy: btw., didn't you want to add ranges to it? :) I can help you with it if you run into troubles.
[14:58:05] shevy: apeiros yeah
[14:58:11] shevy: I think I just made a hack
[14:59:01] shevy: actually I don't even remember ... RRange = /\(\d*..\d*\)/
[14:59:15] apeiros: ah, so only integer ranges
[14:59:26] astrobun_: has joined #ruby
[14:59:28] shevy: there are other ranges too? :)
[14:59:44] apeiros: I'd have done it in a similar way how hashes/arrays are parsed. check for the continuation after a successfully parsed literal.
[14:59:52] apeiros: well… "a".."z" f.ex.
[15:00:07] apeiros: or 2010-01-01..2016-01-01
[15:00:39] Uber|Dragon: has joined #ruby
[15:02:25] shevy: (5.2 .. 5.5).to_a # TypeError: can't iterate from Float
[15:02:33] shevy: did not even know that one either
[15:02:47] public_class: has joined #ruby
[15:03:09] apeiros: yeah, there's no .succ for float
[15:03:28] apeiros: ruby's range syntax lacks a stepsize attribute
[15:03:48] volty: has joined #ruby
[15:03:53] idefine: has joined #ruby
[15:03:53] Hanmac: yeah, even Symbols can succ ;P
[15:03:57] aryaching_: has joined #ruby
[15:04:16] Internet1riend: has joined #ruby
[15:05:17] shanemcd: has joined #ruby
[15:05:24] platzhirsch: has joined #ruby
[15:06:23] mallu: has joined #ruby
[15:08:08] babblebre: has joined #ruby
[15:08:32] uglybandersnatch: has joined #ruby
[15:09:40] skweek: has joined #ruby
[15:10:21] Uber|Dragon: has joined #ruby
[15:10:35] shevy: they can?
[15:10:48] shevy: how weird
[15:10:50] shevy: :foo.succ # => :fop
[15:10:59] Shaboum: has joined #ruby
[15:12:02] ddv: :foo.succ #=> :fap
[15:12:31] idefine: has joined #ruby
[15:12:37] x77686d: has joined #ruby
[15:12:41] dopamean_: has joined #ruby
[15:12:47] shevy: that would be a bug ddv
[15:13:15] shevy: hmm ... is there an opposite to .succ ?
[15:13:58] veloutin: has joined #ruby
[15:15:46] norc: shevy: .pred
[15:16:03] shanemcd: has joined #ruby
[15:16:15] eregi: has joined #ruby
[15:16:33] volty: >> class_drink = Hash[ (:a..:c).zip(%w/shampagne beer water/)]
[15:16:34] ruby[bot]: volty: # => {:a=>"shampagne", :b=>"beer", :c=>"water"} (https://eval.in/529497)
[15:16:39] volty: not a bug
[15:17:23] apeiros: volty: he meant `:foo.succ # => :fap` would be a bug
[15:17:39] apeiros: (since it'd correctly be :fop, not :fap)
[15:17:54] volty: ah, yap, sorry, was distracted
[15:18:09] steffkes: has joined #ruby
[15:18:09] steffkes: has joined #ruby
[15:18:10] volty: >> (:a).pred
[15:18:11] ruby[bot]: volty: # => undefined method `pred' for :a:Symbol (NoMethodError) ...check link for more (https://eval.in/529500)
[15:18:30] norc: The problem with .pred is actually that of collation.
[15:18:38] norc: So it makes no sense for this to be available on String.
[15:18:54] norc: q.succ.pred might not end up with the same original string.
[15:19:27] yos7ph: has joined #ruby
[15:19:45] norc: shevy: So for strings it only makes sense to have one if collation is applied.
[15:20:36] apeiros: collation isn't the only problem. "@".succ # => "A" and "z".succ => "aa" is another.
[15:20:42] norc: Oh indeed.
[15:20:53] SenpaiSilver: has joined #ruby
[15:20:53] shevy: that's getting philosophical!
[15:20:56] shevy: what was before a :)
[15:20:58] norc: No its getting technical.
[15:21:24] norc: apeiros: See the damage that MySQL did to me? The first thought was collation. :S
[15:21:38] volty: it is just confusional, i was always sceptic about succ applied on strings (though no on single chars)
[15:21:53] apeiros: norc: sue oracle!
[15:21:55] norc: I wonder whether Im eligible for damages now.
[15:22:01] volty: with collation defined, of course
[15:23:11] apeiros: ruby only knows one collation (and I'm not even sure that's the proper name for it): ASCII.
[15:23:29] momomomomo: has joined #ruby
[15:23:29] karapetyan: has joined #ruby
[15:23:58] apeiros: or given the way ascii works, you could probably just call the collation "binary".
[15:24:27] volty: >> ['z'.succ, ('z'..'aa').to_a]
[15:24:28] ruby[bot]: volty: # => ["aa", []] (https://eval.in/529512)
[15:24:59] apeiros: heh, yeah. because "z" > "aa"
[15:25:04] karapetyan: has joined #ruby
[15:25:38] adac: has joined #ruby
[15:26:08] adac: what is the difference between "||=" and "||" not sure how these are called so a google search is a bit a problem :)
[15:26:31] apeiros: one does an assignment, the other does not
[15:26:43] apeiros: `a ||= b` expands to `a || a = b`
[15:26:55] Bish: assuming i don't have an MTA, is it stupid to directly deliver the mail with ruby?
[15:26:58] apeiros: i.e., assign b to a, if a is falsy
[15:27:00] djbkd: has joined #ruby
[15:27:18] Bish: i tried doing that but i keep getting "relay access denied", i sniffed on the connection i can't see the difference in the protocol
[15:27:22] apeiros: Bish: you'll most likely never be able to do so
[15:27:36] Bish: apeiros: why?
[15:28:13] apeiros: or well, depends actually a bit. do you do it from the server which has the dns entries for MX?
[15:28:37] Bish: yep, well atleast right now
[15:28:38] Bish: for testing
[15:29:02] Bish: same server, tried to send with postfix=>works,ruby directly=>doesn't work
[15:29:09] Bish: can't see the difference in the protocol (smtp)
[15:29:25] apeiros: not sure then
[15:29:26] eregi: has joined #ruby
[15:30:11] apeiros: my initial response was quite a bit driven by our own infrastructure, where the mail handling is on a different server than web, and ruby is on the webservers. so we'd lack proper dns entries for other mta's to accept the connection.
[15:31:02] Bish: but in theory there is nothing wrong to skip postfix for outgoing mails?
[15:31:12] Bish: there are people who do that?
[15:31:41] darkxploit: has joined #ruby
[15:31:55] apeiros: no idea. I wouldn't do it since postgres handles all the cases.
[15:32:13] adac: apeiros, thanks!
[15:32:17] apeiros: i.e. things like that it should try up to 72h, trying second mx server etc.
[15:32:31] apeiros: and all those things are being used in order to thwart spammers
[15:32:41] decoponio: has joined #ruby
[15:32:43] apeiros: err, s/postgres/postfix/
[15:32:51] Bish: yeah my problem are deferred mails, i don't want them to pile up in postfix queue
[15:32:59] apeiros: fingers on cruise control ;-)
[15:33:29] apeiros: configure your queue accordingly? my knowledge is limited, but iirc postfix was highly configurable.
[15:33:41] mary5030: has joined #ruby
[15:33:45] Bish: yeah it is, but i hate the fact postfix is like "okay, i will deliver this mail"
[15:33:51] Bish: and a week later it tells me "whopsie, it bounced"
[15:34:05] apeiros: but that's according to the standard
[15:34:49] whippythellama: has joined #ruby
[15:34:51] apeiros: but yeah, IMO that standard should get overhauled. the prescribed latencies are ridiculous in todays envs.
[15:34:52] n008f4g_: has joined #ruby
[15:35:10] mary5030: has joined #ruby
[15:35:48] Bish: ofc i can shorten the queue length, but then it will be bounced instantly
[15:36:03] bmn: has joined #ruby
[15:36:10] Bish: sure postfix is highly configureable, but you cannot work with it programaticially, that kinda sucks
[15:36:26] vikas027: has joined #ruby
[15:36:34] Bish: postfix people be like "it's easy, just invoke these 100 prozesses in a bash script"
[15:37:00] Bish: apeiros: "that standard" as in mail?
[15:37:05] apeiros: as in smtp
[15:37:25] apeiros: and you can replace every component of postfix with a custom process ;-)
[15:37:42] adaedra: opensmtpd ftw
[15:37:55] Bish: yeah right, but that's crazy :D
[15:38:01] apeiros: in general, I'm pretty sure you'll be better off adapting postfix than delivering directly from ruby.
[15:38:01] volty_: has joined #ruby
[15:38:08] Bish: yeah i figured
[15:38:14] momomomomo: has joined #ruby
[15:38:18] apeiros: I'm not sure it's more crazy than delivering from ruby :-p
[15:38:45] apeiros: but my smtp/postfix knowledge is limited and somewhat dated. so take it with a chunk of salt.
[15:39:32] vikas027: has left #ruby: ()
[15:39:45] public_class: has joined #ruby
[15:39:57] volty_: require 'Qt'; require 'nokogiri'; Qt::Application.new(ARGV); Qt::Widget.new().show(); $qApp.exec(); // the program always segfaults, no matter what order, no matter code. So it probably has to do with cleanup code of qt and/or nokogir. What I am asking for is hints, ideas, where to look at. what to test. if possible to dispose nokogiri stuff before disposing the Qt application
[15:40:02] mlehrer: has joined #ruby
[15:41:03] amargherio: has joined #ruby
[15:41:47] p0p0pr37: has joined #ruby
[15:41:50] mlehrer: has joined #ruby
[15:42:08] volty_: in alternative — do you think it would be too difficult/laborious to implement a drb nokogiri server ? i do not have clear ideas at the moment.
[15:44:21] mattwildig: has joined #ruby
[15:45:14] makenoise: has joined #ruby
[15:47:13] Respek: has joined #ruby
[15:47:17] skweek: has joined #ruby
[15:47:27] momomomomo: has joined #ruby
[15:48:31] volty_: https://gist.github.com/anonymous/7fceb633618e9934ba35 -- in case somebody can come with a hint/idea
[15:49:21] tulak: has joined #ruby
[15:49:25] eregi: has joined #ruby
[15:52:03] tulak: has joined #ruby
[15:52:10] rickmasta: has joined #ruby
[15:53:37] Bish: apeiros: but what could go wrong, when sending my emails without going over postfix
[15:53:41] Bish: i mean, i cannot come up with something
[15:54:45] apeiros: Bish: google for a list of anti-spam measures and check whether ruby sending mails would handle that.
[15:55:11] diegoviola: has joined #ruby
[15:55:16] tulak_: has joined #ruby
[15:55:18] IrishGringo: has joined #ruby
[15:55:46] shevy: volty_ come join me! come to ruby-gtk :D
[15:55:53] apeiros: when you're through that, google for a list of possible mail sending failures, and then check whether ruby sending mails would handle those.
[15:56:11] agent_white: has joined #ruby
[15:56:15] tulak_: has joined #ruby
[15:57:22] codecop: has joined #ruby
[15:58:35] hxegon_AFK: has joined #ruby
[16:00:14] volty_: shevy: no way, the difference is orders of magnitude (I'm saying this without even trying gtk-bindings)
[16:00:28] Bish: apeiros: well i cannot find anything except for deferring mail / greylisting, which is the exact thing i want to countermeasue
[16:00:32] Bish: by handling mails on my own
[16:00:40] baweaver: has joined #ruby
[16:00:41] hxegon: has joined #ruby
[16:00:56] wilbert: has joined #ruby
[16:01:02] apeiros: do you handle multiple mx where the primary is non-responsive?
[16:01:11] apeiros: (that's one cheap thing I do to counter spams)
[16:01:11] davedev24: has joined #ruby
[16:01:17] Bish: well i could do that
[16:01:28] apeiros: lets hope the list ends with that. I doubt it :)
[16:01:36] Bish: okay, maybe you're right
[16:01:38] Bish: stupid protocol
[16:01:55] apeiros: yeah, not just the protocol by now. stupid spammers ruining it for everybody.
[16:02:00] flak: has joined #ruby
[16:02:47] flak: has joined #ruby
[16:03:06] nettoweb: has joined #ruby
[16:03:09] synthroid: has joined #ruby
[16:03:43] melter: has joined #ruby
[16:04:14] rickmasta: has joined #ruby
[16:05:20] Bish: well the protocol ist stupid because spammers can use it
[16:05:21] dhollinger: has joined #ruby
[16:05:33] shinnya: has joined #ruby
[16:05:53] Bish: but maybe modifying the smtp binary is the way
[16:06:06] momomomomo_: has joined #ruby
[16:06:33] Bish: syscall tracing with ruby on the smtp executable
[16:06:35] bougyman: has joined #ruby
[16:06:37] Bish: THAT SOUNDS LIKE A GOOD IDEA
[16:06:47] x0F: has joined #ruby
[16:08:23] ljames: has joined #ruby
[16:08:39] tjohnson: has joined #ruby
[16:09:19] bronson: has joined #ruby
[16:09:39] hannelita: has joined #ruby
[16:10:14] idletask: has joined #ruby
[16:10:48] idletask: I'm a super beginner and there is something which I'd like to know
[16:11:11] idletask: In print "foo", is print a function or a builtin command?
[16:11:13] Bish: idletask: just ask or your question will remain an idletask
[16:11:28] idletask: Or is it just a function which is provided with Ruby?
[16:11:29] idefine: has joined #ruby
[16:11:37] idletask: Same for puts etc
[16:12:38] Bish: idletask: don't think about it in C-Style, it's a method(function whatever) of the kernel object, the kernel objects gets included in EVERY object, that's why you're able to call it from everyhwere
[16:12:45] Bish: ruby pros, correct me if im wrong
[16:12:54] jaruga: has joined #ruby
[16:13:10] Bish: http://ruby-doc.org/core-2.3.0/Kernel.html
[16:13:23] apeiros: idletask: there's no "built-ins" in ruby. all methods are created equal ;-)
[16:13:37] Ox0dea: That's a little disingenuous, I think.
[16:13:42] apeiros: the way it's differentiated is: "core", "stdlib" and "3rd party"
[16:13:47] fostertheweb: has joined #ruby
[16:13:53] adaedra: and defined?.
[16:13:55] rickmasta: has joined #ruby
[16:13:58] Ox0dea: That's a keyword.
[16:13:59] apeiros: adaedra: not a method
[16:14:07] adaedra: Looks suspiciously like one.
[16:14:22] apeiros: idletask: where core is what's loaded with ruby at startup, and stdlib is part of what ships with ruby but you have to load it explicitly.
[16:14:37] idletask: apeiros: OK, that is useful information, thanks!
[16:14:56] apeiros: and 3rd party is of course stuff you have to install additionally and load explicitly.
[16:15:29] apeiros: idletask: if you want a list of keywords (which might be considered "built-ins" - even though that doesn't fit IMO), then take a look at the quickref:
[16:15:32] ruby[bot]: http://www.zenspider.com/Languages/Ruby/QuickRef.html
[16:15:35] rickmasta: has joined #ruby
[16:15:48] apeiros: adaedra: alias would fit the same bill as defined?
[16:16:12] idletask: apeiros: right now I'm reading through this page: http://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html
[16:16:22] idletask: And also the beginner's page
[16:16:47] apeiros: yeah, "reserved words" on that should come close.
[16:17:04] apeiros: idletask: http://ruby-doc.org/core-2.3.0/ is the API docs of all that's in core.
[16:17:19] glcx: has joined #ruby
[16:17:26] apeiros: (scroll a bit to see the class & methods list)
[16:18:04] jaruga: has joined #ruby
[16:18:15] chouhoulis: has joined #ruby
[16:18:40] B1n4r10: has joined #ruby
[16:20:10] Guest34101: has joined #ruby
[16:20:12] hxegon: has joined #ruby
[16:20:28] Gasher: has joined #ruby
[16:20:32] rdark_: has joined #ruby
[16:20:43] idletask: apeiros: in fact I'm asking this because I'm doing this: https://github.com/litesolutions/sonar-ruby
[16:20:49] DaniG2k: has joined #ruby
[16:20:55] idletask: Strangely enough there isn't a viable Sonar plugin out there for the language
[16:21:04] idletask: So, my first objective is to tokenize it correctly...
[16:21:07] Rodya_: has joined #ruby
[16:21:31] kgirthofer: has anyone set up gem in a bucket? I'm having issues authenticating the aws secret/access keys
[16:21:34] eurialo: has joined #ruby
[16:21:48] kgirthofer: Error fetching s3:///: credentials needed in s3 source, like s3://key:secret@bucket-name/
[16:22:12] kgirthofer: I've configured my /etc/gemrc a local ~/.gemrc and also have my .aws credentials available for the aws-sdk gem
[16:22:22] karapetyan: has joined #ruby
[16:22:36] idletask: kgirthofer: it just looks like you have empty strings somewhere, that URI of yours looks... Well... Empty
[16:22:48] kgirthofer: I deleted my bucket name
[16:22:51] idletask: Legal, but empty
[16:23:58] nettoweb: has joined #ruby
[16:24:07] kgirthofer: sudo gem sources --add s3://my-gems/ Error fetching s3://my-gems/: credentials needed in s3 source, like s3://key:secret@bucket-name/ (s3://my-gems/specs.4.8.gz)
[16:24:51] chipotle: has joined #ruby
[16:25:29] idefine: has joined #ruby
[16:25:52] sucks: has joined #ruby
[16:26:43] karapetyan: has joined #ruby
[16:28:34] Xeago: has joined #ruby
[16:29:29] pawnbox: has joined #ruby
[16:29:48] blackgoat: has joined #ruby
[16:31:02] idletask: <-- idling on the channel and keeping an eye to learn things
[16:31:37] rdark_: has joined #ruby
[16:31:40] apeiros: idletask: eh, 95% in here are idling, so not even necessary to announce that ;-)
[16:31:45] SebastianThorn: and looking smart the next day when someone asks the same thing
[16:32:01] rcvalle: has joined #ruby
[16:32:49] shanemcd: has joined #ruby
[16:33:25] idletask: Ah, well, I have a question...
[16:33:41] idletask: In irb, if I type __ = 2, then p 2, the return value is 2
[16:33:48] idletask: But with puts, it's nil
[16:33:53] idletask: Why the difference?
[16:34:04] adaedra: because puts returns nil and p returns the parameter value
[16:34:23] idletask: OK, a choice of implementation, then?
[16:34:27] apeiros: p is a tool for inspection
[16:34:35] havenwood: idletask: the return value of #puts is always nil, that's what they chose for it to return since its purpose is printing not the return value
[16:34:39] apeiros: and as such it was thought that it is convenient if it can be put inside expressions
[16:34:40] idletask: Ah, p is not the same as print?
[16:34:46] idletask: I thought it was a shorthand
[16:34:49] apeiros: like x = (p some_expression)
[16:34:50] adaedra: p inspects
[16:34:58] havenwood: idletask: the return value for #p makes it so you can inspect print for debugging without changing the return value
[16:35:02] idletask: Is it usable in "real code", too?
[16:35:10] apeiros: you generally shouldn't
[16:35:11] havenwood: idletask: use #p for debugging
[16:35:19] apeiros: it's really an inspection/development/debugging tool
[16:35:26] idletask: apeiros: good, I have a candidate for a rule already :)
[16:35:51] DaniG2k_: has joined #ruby
[16:35:52] adaedra: idletask: also, if you have complex values to print, take a look at pp.
[16:36:04] adaedra: (for inspection in debugging, still.)
[16:36:35] coe: has joined #ruby
[16:37:16] ramfjord: has joined #ruby
[16:37:18] coe: Hi guys, can I know where is the rails channel or can I ask something about rails here?
[16:37:36] apeiros: ?rails coe
[16:37:37] ruby[bot]: coe: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:37:43] apeiros: also #rails and #ror
[16:37:46] apeiros: hard to miss, really.
[16:38:03] volty_: could hard to try :)
[16:38:09] coe: I've tried to joun rails but the server told me that that channel was erased
[16:38:33] apeiros: coe: the server certainly didn't tell you any such thing
[16:38:35] karapetyan: has joined #ruby
[16:38:53] coe: You've tried to join an unavailable channel. The channel you may be attempting to join may be in a different namespace (try ##channel) or not on this network. Please see http://freenode.net/policy.shtml#channelnaming for more information about on-topic usage and channel naming, and '/msg ALIS help' for help with finding channels on freenode.
[16:39:04] havenwood: coe: /join #rubyonrails
[16:39:15] coe: now I know, thank you havenwood
[16:39:31] coe: apeiros are you bored or you are just an asshole?
[16:39:39] ruby[bot]: +qq coe!*@* *!*@84.236.172.49
[16:39:41] fullofcaffeine: has joined #ruby
[16:39:54] decoponio: has joined #ruby
[16:40:16] apeiros: wow, they actually dropped the redirect
[16:40:26] n008f4g_: has joined #ruby
[16:40:48] apeiros: only on #rails, though. #ror still redirects.
[16:41:00] apeiros: thanks @ havenwood
[16:41:17] havenwood: I wonder why the #rails redirect was dropped?
[16:41:24] nyandoge: has joined #ruby
[16:41:30] momomomomo: has joined #ruby
[16:41:47] volty_: but imho 'asshole' wasn't that heavy
[16:41:55] apeiros: volty_: it's inacceptable.
[16:42:20] diegoviola: has joined #ruby
[16:42:50] volty_: yap, but I would have told him that before silencing. and if he persist, then ok. but nm, just mho
[16:42:53] havenwood: volty_: Just an hour mute for overt rudeness.
[16:42:59] shanemcd: has joined #ruby
[16:43:41] apeiros: volty_: experienced showed that telling people is futile. consequences have a better success ratio.
[16:44:09] apeiros: in the opposite. telling people simply leads to them arguing the righteousness of their behavior.
[16:44:16] volty_: one can die in an hour, too much. I would 'rude' with levels, 1 min for easy, 5 for medium, 60 for persistence :)
[16:44:33] volty_: ah ok, got it
[16:45:18] idletask: volty_: if you let "small things" slip, more small things will slip and it ends up being unmanageable... Look at the spelling
[16:47:42] nettoweb: has joined #ruby
[16:48:21] User458764: has joined #ruby
[16:48:48] baroquebobcat: has joined #ruby
[16:49:15] stardiviner: has joined #ruby
[16:51:27] alphaatom: has joined #ruby
[16:54:10] adaedra: I notice there was no questions asked to RoR :o)
[16:55:15] ixti: has joined #ruby
[16:55:42] idletask: Uhm, so global variables do not seem to follow the same rules as other identifiers with regards to naming :/
[16:56:06] Jardayn: has joined #ruby
[16:56:27] synthroid: has joined #ruby
[16:56:31] The_Phoenix: has joined #ruby
[16:56:38] idletask: $/ <-- legal
[16:57:20] jeanlinux: has joined #ruby
[16:58:06] siaW: has joined #ruby
[16:58:34] [Butch]: has joined #ruby
[16:59:06] amclain: has joined #ruby
[16:59:07] volty_: special, you cant $/\/\ = 3
[17:00:52] nando293921: has joined #ruby
[17:01:02] coe: has left #ruby: ()
[17:01:06] volty_: but they follow the same rules when you create a global var. don't they?
[17:01:20] m0rph84: has joined #ruby
[17:01:46] momomomomo: has joined #ruby
[17:01:57] norc: has joined #ruby
[17:02:11] Alayde: has joined #ruby
[17:02:12] idletask: The syntax page I have doesn't tell the rules for globals, so I have no idea :/
[17:02:38] idletask: Right now the rule I have is return sequence('$', oneOrMore(noneOf(" \t\r\n")));
[17:02:38] Alayde: has left #ruby: ()
[17:02:43] idletask: That'll have to do for the moment
[17:02:49] The_Phoenix1: has joined #ruby
[17:03:17] Rodya_: has joined #ruby
[17:06:30] volty_: the rules for globals aren't listed because they are the same. Const starts with upper, global with '$', instance with @, syms end with ':', for the rest apply the constraints
[17:07:02] volty_: you can have $MIne, @Whatever
[17:07:47] symm-: has joined #ruby
[17:07:52] n1colas: has joined #ruby
[17:07:52] IrishGringo: has joined #ruby
[17:07:55] knoxyy: has joined #ruby
[17:08:12] baweaver: has joined #ruby
[17:08:21] djbkd: has joined #ruby
[17:08:25] flughafen_: has joined #ruby
[17:08:50] devbug: has joined #ruby
[17:09:02] trosborn: has joined #ruby
[17:09:37] Rodya_: has joined #ruby
[17:09:47] benlieb: has joined #ruby
[17:09:48] idletask: https://gist.github.com/anonymous/ea09459dffb725537f55 <-- currently tested
[17:11:24] bronson: has joined #ruby
[17:11:52] idletask: OK, so, semicolons are optional after statements, but if there is one you can put several statements on the same line
[17:12:00] ohcibi: has joined #ruby
[17:12:07] _whitelogger: has joined #ruby
[17:12:09] idletask: If you omit it, the new statement has to be on a different line
[17:12:10] voker57: has joined #ruby
[17:12:10] voker57: has joined #ruby
[17:12:25] eam: idletask: statement separator is the semicolon, or *sometimes* the newline
[17:13:07] idletask: eam: newline as in \n only or is \r\n permitted by the way?
[17:13:32] eam: good question, why don't you try it?
[17:13:55] volty_: idletask: what are you after?
[17:14:05] eam: my guess would be that it's simply \n, and \r would be treated as any other whitespace
[17:14:17] idletask: volty_: I'm writing a SonarQube plugin for ruby, since there isn't one
[17:14:34] idletask: The one of GoDaddy doesn't even have a parser
[17:15:37] DmitryBochkarev: has joined #ruby
[17:15:52] volty_: it's not for me
[17:16:02] _whitelogger: has joined #ruby
[17:16:37] volty_: anyway, there isn't any ruby grammar published ?
[17:17:08] Ox0dea: Nothing official, but there's a script for generating a pseudo-BNF grammar from parse.y.
[17:17:15] volty_: https://www.cse.buffalo.edu/~regan/cse305/RubyBNF.pdf ?
[17:17:45] volty_: hope that can at least help idletask
[17:18:38] johnmilton: has joined #ruby
[17:18:43] Ox0dea: volty_: https://git.io/vRu4H
[17:18:47] volty_: it is on ruby-1.4.6, ah ah
[17:18:53] Ox0dea: Mine's for trunk.
[17:18:53] volty_: (the mine)
[17:19:04] konsolebox: has joined #ruby
[17:19:24] volty_: that's nice Ox0dea, going to save it
[17:19:36] freerobby: has joined #ruby
[17:19:49] Ox0dea: idletask: Global identifiers do not in fact follow the same rules as for other identifiers.
[17:20:05] Dimik: has joined #ruby
[17:20:11] Ox0dea: $0, $-w; things like that.
[17:20:15] idletask: Ox0dea: thanks a lot for the link, this is going to help greatly
[17:20:17] volty_: Ox0dea: do not? examples ?
[17:20:42] idletask: Ox0dea: for now I just say that anything which is not a space, \r or \n is valid in it... May need to be refined
[17:20:42] Ox0dea: volty_: To clarify, we're not discussing the sigil used to introduce them ('$' in this case), but the characters which follow.
[17:20:43] volty_: Ox0dea: but aren't those are hard coded ?
[17:20:51] Ox0dea: volty_: No, not really.
[17:20:56] idletask: No, it _does_ need refinement
[17:21:23] makenoise: has joined #ruby
[17:21:36] Ox0dea: idletask: You could write a Ruby script to tell you all the valid ones. :)
[17:21:42] jmignault: has joined #ruby
[17:22:15] volty_: but for user defined global the rules are the same
[17:22:33] idletask: I'm not to that point yet :p
[17:22:59] idletask: I want to parse and tokenize a single file to begin with, that will already be a start
[17:23:47] ramfjord: has joined #ruby
[17:23:53] idletask: FWIW, what I currently parse is this horror: https://demo.cachequality.com/dashboard/index?id=iknowSocial%3AUtil%2FUIBroker.cls
[17:24:17] Ox0dea: >> $-9 = :volty_
[17:24:18] ruby[bot]: Ox0dea: # => :volty_ (https://eval.in/529650)
[17:24:22] idletask: So, ruby should not be a problem :p
[17:25:36] Foren: has joined #ruby
[17:26:31] humblespoon: has joined #ruby
[17:27:59] SCHAAP137: has joined #ruby
[17:28:00] volty_: Ox0dea: yes, I saw it. Tried with letters that aren't yet associated with a dynamic value (like $-b). But to me It seems that those are reserved by means of hard-coding, for dynamic, ENV-like purposes.
[17:28:33] Ox0dea: volty_: They're meant for holding command-line arguments provided to the interpreter.
[17:29:56] volty_: I do not follow you. Which ones? $-b? $-9?
[17:31:13] djbkd: has joined #ruby
[17:31:27] Ox0dea: $ ruby -I . -e 'p $-I.first'
[17:31:30] Ox0dea: "/home/dea"
[17:31:31] Ox0dea: volty_: Like that. ^
[17:31:42] InternetFriend: has joined #ruby
[17:32:11] Ox0dea: There are only a handful of them ($-I, $-w), but all of the letters are valid because it's just easier to not make them syntax errors.
[17:33:10] wilbert: has joined #ruby
[17:33:16] Ox0dea: $-0 is something from awk, and I suspect similar reasoning can be applied to justify the validity of $-1 to $-9.
[17:33:29] czerasz: has joined #ruby
[17:33:43] jmignault: has joined #ruby
[17:34:04] borodin: has joined #ruby
[17:34:07] idletask: Ox0dea: if you are not allergic to Java then I may use your help in the near future :p
[17:34:37] Ox0dea: A psychic!
[17:35:41] sandstrom: has joined #ruby
[17:36:13] binaryplease: has joined #ruby
[17:37:10] kalopsian: has joined #ruby
[17:38:27] volty_: yap, I see. I call them env-like
[17:38:35] karapetyan: has joined #ruby
[17:38:51] baweaver: has joined #ruby
[17:39:00] Ox0dea: But they're totally different things. :P
[17:39:16] mdw: has joined #ruby
[17:39:30] Ox0dea: You can even see it in the signature of main(): int main(int argc, char **argv, char **environ)
[17:39:51] momomomomo: has joined #ruby
[17:39:56] Ox0dea: Conflating ARGV and ENV is slightly terrifying; please don't. ;)
[17:39:59] volty_: opinion, for me they set / change the env, and (expected) behaviour through env-defined
[17:40:22] ruby[bot]: -qq coe!*@* *!*@84.236.172.49
[17:40:44] volty_: that's why env-like, and not env/ they are local env for ruby
[17:40:45] eam: I mean really, what's the difference
[17:41:12] eam: they're both char**
[17:41:16] idletask: Ox0dea: that's an idea for another rule you gave me
[17:41:22] idletask: eam: they are VERY different
[17:42:33] idletask: C requires a huge amount of discipline :p
[17:43:15] volty_: same with ruby, or whatever else
[17:43:55] idletask: Especially C, though; errors are sanctioned much more seriously
[17:44:04] idletask: That's my opinion, at least
[17:44:19] Ox0dea: idletask: Here's your refinement: https://eval.in/529672
[17:44:25] Ox0dea: Mostly just brackets.
[17:44:35] Ox0dea: Not sure why $^ shouldn't be valid.
[17:45:15] eregi: has joined #ruby
[17:45:36] volty_: sorry, but I can't see it that way. in c (some) errors are sanctioned at compile time, while (some) in ruby at runtime. sanction by refuse vs sanction by undesired behavour
[17:47:56] humblespoon: has joined #ruby
[17:49:04] shanemcd: has joined #ruby
[17:49:15] sucks: has joined #ruby
[17:50:17] idletask: Ox0dea: OK, bear with me, I'm going to ask some questions about the code you produce... What I guess of it anyway
[17:50:32] idletask: 128.times --> iterates from 1 to 128 (or is that 0?)
[17:50:53] havenwood: >> 128.times.first
[17:50:54] idletask: .map(&:chr): applies the chr function (?) to the argument (1 to 128)
[17:50:55] ruby[bot]: havenwood: # => 0 (https://eval.in/529678)
[17:51:05] ramfjord: has joined #ruby
[17:51:21] ruby[bot]: havenwood: # => "\x00" (https://eval.in/529680)
[17:51:35] idletask: But then .reject()... Is that to send the result to a function and ignore the return value?
[17:51:53] volty_: >> 128.times
[17:52:08] devbug: has joined #ruby
[17:52:13] havenwood: volty_: => #<Enumerator: ...>
[17:52:25] volty_: >> 128.times..to_a
[17:52:28] nettoweb: has joined #ruby
[17:52:42] havenwood: volty_: !> NameError: undefined local variable or method `to_a' for main:Object
[17:52:58] dfockler: has joined #ruby
[17:53:02] volty_: >> 128.times.to_a
[17:53:40] idletask: >> 3.times.join(",")
[17:53:41] ruby[bot]: idletask: # => undefined method `join' for #<Enumerator: 3:times> (NoMethodError) ...check link for more (https://eval.in/529681)
[17:53:43] ziyadb: has joined #ruby
[17:53:49] idletask: Ahwell, I'll have tried
[17:54:01] volty_: >> 10.times.reject(&:even)
[17:54:08] havenwood: idletask: 3.times.to_a.join
[17:54:16] EdwardIII: hey, if you have your own collection i.e. implement Enumerable, what's the right way to make sure when people call stuff like .select and .reject they get the same kind of instance, not just a raw Array?
[17:54:21] casadei: has joined #ruby
[17:54:26] havenwood: volty_: 10.times.reject(&:even?)
[17:54:37] EdwardIII: just override those and return like new(@items.select(params))?
[17:54:47] volty_: >> 10.times.reject(&:even?)
[17:54:49] EdwardIII: or is there something more magical?
[17:55:04] havenwood: volty_: => [1, 3, 5, 7, 9]
[17:55:20] volty_: havenwood: you have a big big lag
[17:55:28] havenwood: volty_: I am a mere mortal.
[17:55:43] havenwood: My internal Ruby interpreter is on old hardware.
[17:55:57] havenwood: old wetware*
[17:56:21] volty: somebody blocked me or the reason is that i'm not authenticated with the server ?
[17:56:30] havenwood: volty: not authed
[17:56:43] schickung: has joined #ruby
[17:58:24] volty: EdwardIII: the only way is implementing those methods in your enumerator
[17:58:38] fullofca_: has joined #ruby
[17:58:51] jeanlinux: has joined #ruby
[17:58:56] hahuang65: has joined #ruby
[17:59:21] EdwardIII: volty: righty ho then
[17:59:23] volty: - you add filters, so the each produces with those filters. but I find that solution quite weird
[17:59:27] wldcordeiro: has joined #ruby
[17:59:43] nb_bez___: has joined #ruby
[17:59:57] Ox0dea: EdwardIII: Just a second.
[18:00:31] volty: Ox0dea will come with something anew, as usual
[18:00:41] Ox0dea: EdwardIII: https://eval.in/529683
[18:00:45] Ox0dea: Something like that, anyway.
[18:01:08] EdwardIII: ACTION headsplode
[18:01:11] brendan-: has joined #ruby
[18:01:28] B1n4r10: has joined #ruby
[18:01:50] EdwardIII: what even...
[18:02:05] EdwardIII: Enumerable.instance_methods.each isn't inside a method?
[18:02:13] EdwardIII: i'm not all that familiar with ruby yet i should point out heh
[18:02:33] volty: ops, right, he said the 'same kind of instance'. while I erronously read 'same instance'
[18:02:43] volty: same class
[18:03:26] EdwardIII: yeah that would perhaps have been clearer, sorry
[18:03:28] Ox0dea: EdwardIII: This just does what volty suggested (overwrite the methods to return your new type), but programmatically.
[18:03:39] Ox0dea: *metaprogrammatically
[18:03:51] system64: has joined #ruby
[18:03:54] EdwardIII: but like... i can just put code anywhere in my class and it'll get executed at instantiation-time?
[18:04:02] EdwardIII: unrelated to this particular question heh
[18:04:07] Ox0dea: Classes are executed. :)
[18:04:27] Ox0dea: Er, no, at definition time, not instantiation time.
[18:04:39] EdwardIII: so this is... monkey patching Enumerable?
[18:04:39] Ox0dea: You only have to put the methods in place once.
[18:05:02] volty: Да. да. конечна
[18:05:55] firstdayonthejob: has joined #ruby
[18:05:59] deuxclique: has joined #ruby
[18:06:19] voidDotClass: has joined #ruby
[18:06:28] EdwardIII: i kind of see why it works, it looks like it overrides every single instance method on enumerable to wrap the retval in my class, which is neat
[18:06:39] EdwardIII: but i don't really understand Enumerable.instance_methods.each
[18:06:46] EdwardIII: Enumerable.instance_methods... which instance?
[18:06:59] voidDotClass: I'm getting the error 'ArgumentError: wrong number of arguments (given 1, expected 0)' when I try to do foo = Foo.new(someArg) . In Foo's initialize method I am expecting an argument.
[18:06:59] volty: of your object
[18:07:22] Ox0dea: voidDotClass: Did you misspell "initialize"?
[18:07:24] rhg135: has joined #ruby
[18:07:41] EdwardIII: volty: of my class, no? self.class.new(*ret)
[18:07:42] voidDotClass: Ox0dea, no: def initialize(token)
[18:08:05] Ox0dea: voidDotClass: You'll have to post code.
[18:08:06] volty: sorry, I am fuzzy
[18:08:15] EdwardIII: but the bit that's confusing me is the Enumerable.instance_methods bit
[18:08:32] Ox0dea: EdwardIII: Module#instance_methods just... returns that Module's instance methods. :P
[18:08:40] EdwardIII: but how does it know which enumerable to do that to?
[18:08:47] volty: EdwardIII: Enumerable.instance_methods are the methods that Enumerable add to the object you include Enumerable in (or already included, in case of Array for example)
[18:08:51] Ox0dea: It's doing it to *the* Enumerable, the Module.
[18:09:05] Maletor: has joined #ruby
[18:09:08] EdwardIII: right that's why i confusedly asked if it's monkey patching
[18:09:11] gizmore: has joined #ruby
[18:09:16] EdwardIII: although i kind of knew it wasn't, because you wouldn't suggest that
[18:09:17] kevinfagan: has joined #ruby
[18:09:24] Ox0dea: Monkey-patching would be if it were overriding those methods.
[18:09:29] bronson: has joined #ruby
[18:09:33] Ox0dea: It's just "leveraging" them.
[18:09:37] EdwardIII: e.g. why not @values.instance_methods ?
[18:10:33] voidDotClass: Ox0dea, https://gist.github.com/aliakhtar/205af2ed5694e1eb1146
[18:10:41] EdwardIII: i don't see how ruby knows i mean only the Enummerable on Collection, what stops it from doing it for the next time i create a normal array or a collection that includes Enumerable but doesn't have this metaprogramming bit in it?
[18:10:44] baweaver: has joined #ruby
[18:10:46] volty: because you said you want select called on your class instance, not on your (internal) @values
[18:11:01] voidDotClass: Ox0dea, https://gist.github.com/aliakhtar/205af2ed5694e1eb1146#file-bug-rb-L7 is the line which gives the 'ArgumentError: wrong number of arguments (given 1, expected 0)' error
[18:11:19] EdwardIII: volty: just by virtue of the fact it's definied inside my class?
[18:11:30] idefine: has joined #ruby
[18:12:04] EdwardIII: ah wait... i think i've misunderstood
[18:12:07] stannard: has joined #ruby
[18:12:11] Ox0dea: voidDotClass: Must be autoload's fault. :/
[18:12:16] EdwardIII: where it says define_method, maybe it would help me to think of that as self.define_method?
[18:13:00] volty: you have your object (instance), beloning to your class that includes Enumerable, you want the Enumerable's methods to return a result of the same class, so you have to act on the methods that come from Enumerable
[18:13:18] Ox0dea: In this case, that's done by defining #each and delegating to `super`.
[18:13:23] gregf: has left #ruby: ()
[18:13:55] EdwardIII: so Enumerable.instance_methods.each is just a convenienet way of getting a list of all the methods, we're actually not touching Enumerable itself
[18:14:06] EdwardIII: that's neat
[18:14:30] EdwardIII: how would you share that between your classes?
[18:14:31] gregf_: has joined #ruby
[18:14:33] volty: that's Ox0dea specialized in on-fly redefinitions
[18:14:43] Ox0dea: EdwardIII: Make it a Module and #include it.
[18:14:57] EdwardIII: include SelfReplicatingEnumerable
[18:15:02] Ox0dea: EdwardIII: And hey, it already uses `self.class` instead of hard-coding `Collection`.
[18:15:09] EdwardIII: sweet as a nut
[18:15:39] volty: but now you tell us why you need to return the same class (just curiosity)
[18:16:02] arup_r: has joined #ruby
[18:16:29] bronson: has joined #ruby
[18:16:47] EdwardIII: volty: thinking of a situation where you want to do something like mycollection.select({|x|x.sexy == true}).custom_method('biscuits')
[18:17:03] Ox0dea: It's a perfectly reasonable thing to do.
[18:17:15] Rodya_: has joined #ruby
[18:17:19] volty: absolutely. I do it. was just curious :)
[18:17:32] adac: has joined #ruby
[18:17:34] EdwardIII: always worth checking
[18:17:39] EdwardIII: x,y problems abound
[18:18:15] volty: I find that 'sexy', in front of specialized method, is an art
[18:18:20] aegis3121: has joined #ruby
[18:19:00] EdwardIII: heh ladies love my specialised methods
[18:19:33] volty: heh, but == true is superflous (unless nils there)
[18:19:49] baweaver: has joined #ruby
[18:19:51] volty: without nils too
[18:20:02] volty: (can't call sexy on nil)
[18:20:15] EdwardIII: no, nil is never sexy
[18:20:47] volty: neither proclaims itself as such :)
[18:22:38] KensoDev: has joined #ruby
[18:22:39] platzhirsch: has left #ruby: ()
[18:23:45] fullofcaffeine: has joined #ruby
[18:23:48] freerobby1: has joined #ruby
[18:25:27] mark2: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :barjavel.freenode.net")
[18:27:05] KensoDev: has joined #ruby
[18:28:28] IrishGringo: has joined #ruby
[18:28:51] dionysus69: has joined #ruby
[18:29:16] zacts: has joined #ruby
[18:32:44] mattwildig: has joined #ruby
[18:33:52] kevinfagan: has joined #ruby
[18:34:48] kirillzh: has joined #ruby
[18:36:41] Zggb: has joined #ruby
[18:36:44] kalopsian: has joined #ruby
[18:37:06] sneakerhax: has joined #ruby
[18:37:32] neohunter: has joined #ruby
[18:37:34] crystal77: has joined #ruby
[18:37:51] baweaver: >> class NilClass; def sexy?; true end end; nil.sexy? ? 'baweaver is a bad person' : 'nope' # EdwardIII: volty
[18:37:52] ruby[bot]: baweaver: # => "baweaver is a bad person" (https://eval.in/529715)
[18:39:12] lorn: has joined #ruby
[18:39:22] lorn: has joined #ruby
[18:39:59] blandflakes: has joined #ruby
[18:40:27] makenoise: has joined #ruby
[18:40:30] neohunter: has joined #ruby
[18:40:47] idefine: has joined #ruby
[18:41:42] Ox0dea: `def nil.sexy?` even.
[18:42:40] dasher^0_o: has joined #ruby
[18:42:57] djbkd: has joined #ruby
[18:43:32] x77686d: has joined #ruby
[18:45:32] baweaver: has joined #ruby
[18:46:07] Mekkis: has joined #ruby
[18:47:43] m0rph84: has joined #ruby
[18:48:08] norc: idletask, the most horrific thing about Ruby is not parsing but lexing honestly.
[18:51:15] rdw200169: has joined #ruby
[18:51:58] nettoweb: has joined #ruby
[18:54:22] last_staff: has joined #ruby
[18:54:29] blackmesa: has joined #ruby
[18:55:12] Papierkorb: has joined #ruby
[18:56:32] baweaver: has joined #ruby
[18:56:50] karapetyan: has joined #ruby
[18:56:57] momomomomo: has joined #ruby
[18:58:55] TeresaP: has joined #ruby
[18:59:00] triangles: has joined #ruby
[18:59:23] but3k4: has joined #ruby
[18:59:48] dfockler: has joined #ruby
[18:59:52] _3by8: has joined #ruby
[18:59:57] nerium: has joined #ruby
[19:00:15] jeanlinux: has joined #ruby
[19:01:03] kirillzh: has joined #ruby
[19:02:46] _3by8: I have someone asking me out of the blue to build them some software to interface with a USB thermometer for food temperature recording. I don't really know a whole lot about the process but it looks like there's a decent amount of documentation online. My experience with Ruby is limited to Rails and I guess my question is, with that in mind, how possible is this going to be for me? I see that Chrome has a USB API that I might be able use.
[19:03:12] sp4rrow: has joined #ruby
[19:04:33] _3by8: Or should I spend the time learning something like Shoes to just build a native Win32 app?
[19:05:09] troulouliou_div2: has joined #ruby
[19:05:32] snockerton: has joined #ruby
[19:06:10] fostertheweb: has joined #ruby
[19:06:40] stannard: has joined #ruby
[19:06:41] dfockler: _3by8: It depends a lot on the driver for the USB, but I'm guessing Shoes would be a lot of work
[19:07:42] _3by8: dfockler: why is that?
[19:08:32] krobzaur: has joined #ruby
[19:08:47] ramfjord: has joined #ruby
[19:08:59] baweaver: has joined #ruby
[19:09:28] benlieb: has joined #ruby
[19:09:47] dfockler: Just figuring out how to interface between Ruby and the USB, and then connect it up to Shoes
[19:10:30] uglybandersnatch: has joined #ruby
[19:11:26] _3by8: dfockler: I see.
[19:11:53] dfockler: Just my opinion
[19:12:01] solars_: has joined #ruby
[19:12:29] _3by8: They need the ability to print also and I'm not seeing that for shoes...
[19:13:36] aegis3121: has joined #ruby
[19:15:51] daxroc: How would you check if a remote server allows a root index
[19:15:56] arup_r: has left #ruby: ()
[19:16:14] symm-: has joined #ruby
[19:16:21] rippa: has joined #ruby
[19:16:26] daxroc: *remote http server
[19:16:30] pibby: has joined #ruby
[19:17:50] djbkd: has joined #ruby
[19:18:08] kirillzh: has joined #ruby
[19:18:20] but3k4: has joined #ruby
[19:18:48] momomomomo: has joined #ruby
[19:18:58] _3by8: daxroc: talking about being able to see the contents of the whole root directory?
[19:19:33] daxroc: _3by8: yes
[19:20:26] ixti: has joined #ruby
[19:21:58] pawnbox: has joined #ruby
[19:22:10] d0nn1e: has joined #ruby
[19:25:09] IrishGringo: has joined #ruby
[19:25:50] schickung: has joined #ruby
[19:28:36] despai: has joined #ruby
[19:29:38] Mekkis_: has joined #ruby
[19:30:01] steffkes: has joined #ruby
[19:30:08] m0rph84: has joined #ruby
[19:30:25] BtcBen: has joined #ruby
[19:32:07] diego2: has joined #ruby
[19:33:19] AlexRussia: has joined #ruby
[19:34:40] diego2: has joined #ruby
[19:35:42] Don_John: has joined #ruby
[19:39:47] sucks: has joined #ruby
[19:41:01] benlieb: has joined #ruby
[19:42:32] snowy: has joined #ruby
[19:42:38] tim_s007: has joined #ruby
[19:42:54] shadoi: has joined #ruby
[19:42:58] karapetyan: has joined #ruby
[19:44:19] dagda1_: has joined #ruby
[19:44:35] karapetyan: has joined #ruby
[19:45:02] nerium: has joined #ruby
[19:45:14] karapetyan: has joined #ruby
[19:45:23] Cohedrin: has joined #ruby
[19:46:02] karapetyan: has joined #ruby
[19:47:21] intrigueD: has joined #ruby
[19:47:27] sgambino: has joined #ruby
[19:47:43] ur5us: has joined #ruby
[19:47:57] monod: has joined #ruby
[19:48:21] InternetFriend: has joined #ruby
[19:49:40] allcentury: has joined #ruby
[19:49:48] karapetyan: has joined #ruby
[19:50:02] zapata: has joined #ruby
[19:51:11] phredus: has joined #ruby
[19:55:32] chouhoulis: has joined #ruby
[19:55:35] openstruct: has joined #ruby
[19:57:46] fullofcaffeine: has joined #ruby
[19:58:05] xxneolithicxx: has joined #ruby
[19:58:16] karapetyan: has joined #ruby
[19:58:26] dagda1: has joined #ruby
[20:00:25] B4daBing73: has joined #ruby
[20:00:25] B4daBing73: has joined #ruby
[20:00:44] baweaver: has joined #ruby
[20:01:17] dfinninger: has joined #ruby
[20:01:28] B4daBing73: Are you using Ruby for anything else than Web Development (e.g. RoR)?
[20:01:35] B4daBing73: Just interested...
[20:02:06] pawnbox: has joined #ruby
[20:04:41] chouhoul_: has joined #ruby
[20:04:54] phansch: has joined #ruby
[20:05:25] dfockler: B4daBing73: lots of people use Ruby for lots of different things
[20:05:42] karapetyan: has joined #ruby
[20:06:03] idefine: has joined #ruby
[20:06:04] chouhoul_: has joined #ruby
[20:06:21] B4daBing73: dfockler: I just noticed that all the talk is on the Ruby on Rails channel nowadays and the Ruby one is pretty quiet
[20:07:56] futilegames: has joined #ruby
[20:08:13] TomyLobo: has joined #ruby
[20:08:34] steveoh: has joined #ruby
[20:08:57] steveoh: can anyone give me the output of this file as scss or css please? https://github.com/jneen/rouge/blob/master/lib/rouge/themes/github.rb
[20:09:06] steveoh: i'm not sure how to do that
[20:11:03] idefine: has joined #ruby
[20:11:38] treehug88: has joined #ruby
[20:13:46] Rodya_: has joined #ruby
[20:13:55] despai: has joined #ruby
[20:18:21] aegis3121: has joined #ruby
[20:18:29] rmulligan: has joined #ruby
[20:19:12] Gasher: has joined #ruby
[20:19:22] Coldblackice: has joined #ruby
[20:19:25] idefine: has joined #ruby
[20:19:37] snowy: has joined #ruby
[20:19:38] sucks: has joined #ruby
[20:21:55] kgirthofer: anyone got any cool wrappers to require from s3://?
[20:22:01] kgirthofer: a gem that is
[20:22:46] kgirthofer: source 's3://my-gem-bucket' do doesn't fly
[20:23:03] ruby-lang509: has joined #ruby
[20:23:26] steveoh: has left #ruby: ()
[20:23:26] gizless: has joined #ruby
[20:23:39] system64: has joined #ruby
[20:24:22] ruby-lang509: Hi! I'm working on a little personal project and I feel like I'm not doing right, can somebody please give me a quick review?
[20:25:41] chouhoulis: has joined #ruby
[20:26:02] anisha: has joined #ruby
[20:26:11] Rodya_: has joined #ruby
[20:26:24] antgel: has joined #ruby
[20:26:41] stannard: has joined #ruby
[20:26:46] fostertheweb: has joined #ruby
[20:27:26] intrigueD: has joined #ruby
[20:28:04] sp4rrow: has joined #ruby
[20:28:10] idefine: has joined #ruby
[20:30:28] Rodya_: has joined #ruby
[20:31:59] sandstrom: has joined #ruby
[20:32:07] ruby-lang509: somebody here?
[20:33:45] chipotle: has joined #ruby
[20:34:02] riceandbeans: has joined #ruby
[20:34:02] lvn: has joined #ruby
[20:34:05] trosborn: has joined #ruby
[20:34:20] shevy: ruby-lang509 they are all getting rich write ruby code!
[20:34:22] riceandbeans: question, if running ruby 2.3, is there anything WRONG with using 1.8 style hashes instead of 1.9?
[20:34:39] shevy: riceandbeans nope, internally it's using the old one anyway
[20:34:42] riceandbeans: I got yelled at for using 1.9 style hashes instead of the old rocket hash
[20:34:44] nettoweb: has joined #ruby
[20:34:54] shevy: x = { foo: :bar } # => {:foo=>:bar}
[20:35:01] riceandbeans: I was told it would only serve to confuse people
[20:35:07] danjam: has joined #ruby
[20:35:14] shevy: well the new syntax has one advantage in being shorter
[20:35:38] shevy: what I disliked about it was when you want to align it from line to line
[20:36:31] devbug: has joined #ruby
[20:36:39] ruby-lang509: Hi! I'm working on a little personal project and I feel like I'm not doing right, can somebody please give me a quick review?
[20:37:03] troulouliou_div2: has joined #ruby
[20:37:41] shevy: ruby-lang509 are you a real person
[20:37:51] trosborn_: has joined #ruby
[20:38:23] _whitelogger: has joined #ruby
[20:39:29] mattwildig: has joined #ruby
[20:40:16] shevy: then just show your project?
[20:40:18] Rodya_: has joined #ruby
[20:40:27] voker57: has joined #ruby
[20:40:27] voker57: has joined #ruby
[20:40:35] shevy: that way people interested can chime in and critique
[20:40:51] ruby-lang509: https://github.com/darkdevilish/tasky
[20:41:12] ruby-lang509: Is a work in progress
[20:41:23] ruby-lang509: I fell like the help class is doing too much
[20:42:01] idefine: has joined #ruby
[20:42:27] adac: has joined #ruby
[20:44:40] FooMunki: has joined #ruby
[20:44:47] flughafen_: has joined #ruby
[20:45:00] aegis3121: Something to handle the Add functionality might be a good idea. And, potentially, a class for each type of action as applicable. But especially Add, since it requires the valid_priority? and valid_title? sections.
[20:45:57] Rodya_: has joined #ruby
[20:46:21] spider-mario: has joined #ruby
[20:46:27] ruby-lang509: awesome thanks for the feedback
[20:46:53] sgambino: has joined #ruby
[20:47:46] x77686d: has joined #ruby
[20:47:51] godzillaenlacasa: has joined #ruby
[20:48:05] Limix: has joined #ruby
[20:48:30] aegis3121: Really it seems like help.rb is actually an input collector which then delegates to a bunch of various actions. Why not try and build it out like that? So help.rb becomes something like input_collector.rb, takes the inputs, and creates the appropriate class for the kind of action they want to take. Each action would then know about what it needs to function and that only. Any shared functionality between those could be handled afterwards.
[20:48:50] sp4rrow: has joined #ruby
[20:49:59] baweaver: has joined #ruby
[20:50:04] tAn: has joined #ruby
[20:50:39] ruby-lang509: Yeah that sound like a better idea, that file was getting out of control, becoming a bloody mess, so I stop to rethink but I come from php I'm not too object oriented
[20:50:45] aegis3121: Couldn't #valid_task? be defined on the Task object? It seems like you should be able to have a Task#valid? and try to fetch then call that on it. The fetch should handle telling you if something wasn't found and either raising some kind of error, or...not sure what.
[20:51:13] kirun: has joined #ruby
[20:52:09] pawnbox: has joined #ruby
[20:52:29] Rodya_: has joined #ruby
[20:53:19] nickjj: has joined #ruby
[20:54:52] Internet1riend: has joined #ruby
[20:56:59] Rodya_: has joined #ruby
[20:58:26] Limix: Hi all, is there a way to do a instance.type_of? Module1::Module2
[20:58:44] Limix: if the instance is actually type: Module1::Module2::Module3
[20:59:03] Limix: when I try this I get a false
[20:59:11] Xeago: has joined #ruby
[20:59:14] tomeara: has joined #ruby
[20:59:19] Limix: any ideas?
[20:59:41] postmodern: has joined #ruby
[21:00:16] shevy: Limix you can possibly query the inheritance chain somehow ... but I am not sure how either
[21:00:31] Limix: thanks shevy
[21:01:02] daxroc: I'm using httparty to try make a single http get request to a range of addresses it seems to hang after 2 or 3 does any one know why ?
[21:01:15] stannard: has joined #ruby
[21:01:45] daxroc: It's a simple HTTParty.get('http://x.y.z.n')
[21:01:49] makenoise: has joined #ruby
[21:01:53] shevy: I myself tend to do the full part for custom classes... if input.is_a? BigGangster::DeadlyGangster::RookieGangster
[21:02:02] cdg: has joined #ruby
[21:02:26] n008f4g_: has joined #ruby
[21:02:46] Limix: ok I might need to do that too thank you shevy
[21:03:05] aegis3121: a = Blah::Bang::Foobar.new; a.class.to_s.include? 'Blah::Bang' ?
[21:04:08] Rodya_: has joined #ruby
[21:04:36] deuxclique: has joined #ruby
[21:05:24] idefine: has joined #ruby
[21:05:39] grill: why is this invalid ruby? @optionally_enabled.each_with_index do |(flag, value), i| { if (i < @optionally_enabled.length - 1) then "'#{flag.to_s}': #{value},\n" else "'#{flag.to_s}': #{value}\n" end }
[21:06:04] djbkd: has joined #ruby
[21:06:09] aegis3121: why is there a brace at the end ?
[21:06:15] aegis3121: I think you've switched your brace and end
[21:06:58] B1n4r10: has joined #ruby
[21:07:08] aegis3121: wait, why is there a brace at all?
[21:07:12] stannard_: has joined #ruby
[21:07:22] grill: should it be a double end?
[21:07:31] aegis3121: You've already used do...end, there's no need to use braces as well
[21:07:38] aegis3121: grill: yes, I think so
[21:07:40] grill: there's the each_with_index loop
[21:07:54] aegis3121: the first end is for your if..else..end, the second one has to end the do...end that started #each_with_index
[21:07:55] grill: that encloses the other statement with brackets
[21:08:01] Rodya_: has joined #ruby
[21:08:42] benlieb: has joined #ruby
[21:09:01] swills: has joined #ruby
[21:09:21] shevy: aegis3121 hey did you not have another nick before
[21:09:35] aegis3121: I've been this as long as I've been in Freenode.
[21:09:45] lemur: has joined #ruby
[21:09:54] aegis3121: Why do you ask?
[21:10:18] aegis3121: grill: Is this what you were aiming for? https://gist.github.com/jon2992/7da8d58e4a6121bfe426
[21:10:36] grill: yeah. more or less
[21:10:42] grill: my pm wants it to be a one-liner for some reason
[21:10:50] grill: i disagree, but whatever
[21:12:19] Rodya_: has joined #ruby
[21:12:42] aegis3121: should it be printing those then, or just...making strings and doing nothing with them?
[21:12:59] shevy: aegis3121 I think there was another IRC nick... I thought it was aegis1234 or something like that
[21:13:17] shevy: perhaps it was al2o3-cr ... those numbers are the hardest to remember
[21:14:43] grill: aegis3121 it's part of an erb file
[21:14:46] Pumukel: has joined #ruby
[21:17:00] grill: this isn't right
[21:20:10] futilegames: has joined #ruby
[21:21:05] hannelita: has joined #ruby
[21:21:28] aegis3121: h.to_a.map! { |arr| arr = "'#{arr[0]}': #{arr[1]}" }.join(",\n") ?
[21:22:05] aegis3121: where the bang is optional probably unnecessary.
[21:22:21] grill: the odd bit is that the erb file is priting the hash
[21:22:23] mikeatgl: has joined #ruby
[21:22:33] grill: it isn't even entering the if statement
[21:22:36] aegis3121: so each returns the Enum it was called on.
[21:22:46] aegis3121: So erb is, accurately, printing the results of your call.
[21:22:50] blackmesa: has joined #ruby
[21:23:06] grill: i don't understand
[21:23:07] aegis3121: >> {a: 'apple', b: 'bear'}.each { |k, v| 'apricot' }
[21:23:08] ruby[bot]: aegis3121: # => {:a=>"apple", :b=>"bear"} (https://eval.in/529818)
[21:23:16] aegis3121: it returnst he object.
[21:23:45] codecop: has joined #ruby
[21:23:49] FLeiXiuS`: has joined #ruby
[21:23:49] aegis3121: my block was definitely executed, but nothing was done with the result. Likewise, <%= some ruby code %> prints whatever the result of that ruby code is
[21:23:51] FLeiXiuS`: http://keys.gnupg.net/ This doesnt look right....
[21:24:01] aegis3121: the result of an #each call will return the Enumerable object it was called on.
[21:24:35] aegis3121: Does that make sense? Just like your block, mine definitely happened. It just... isn't what's returned.
[21:24:45] grill: it's really annoying
[21:24:47] aegis3121: >> {a: 'apple', b: 'bear'}.each { |k, v| puts 'I can run the block' }
[21:24:48] ruby[bot]: aegis3121: # => I can run the block ...check link for more (https://eval.in/529819)
[21:24:52] aegis3121: https://gist.github.com/jon2992/7da8d58e4a6121bfe426
[21:25:05] aegis3121: something like that which returns a string is more like what you want, I would imagine
[21:25:11] aegis3121: it returns a string, so the result will be printed appropriately.
[21:26:21] hahuang65: has joined #ruby
[21:26:31] DmitryBochkarev: has joined #ruby
[21:28:25] grill: interesting
[21:30:02] SenpaiSilver: has joined #ruby
[21:31:39] eregi: has joined #ruby
[21:31:55] sp4rrow: has joined #ruby
[21:32:09] chipotle: has joined #ruby
[21:32:23] aegis3121: you acutally dont' need that #to_a call
[21:32:27] aegis3121: Ignore that, but beyond that lol
[21:34:21] Ox0dea: Yes, Hash is Enumerable. :P
[21:35:17] mikeatgl: has joined #ruby
[21:35:26] mikeatgl: has left #ruby: ()
[21:37:41] futilegames: has joined #ruby
[21:38:03] gizmore: has joined #ruby
[21:40:01] fullofcaffeine: has joined #ruby
[21:40:04] gizmore|2: has joined #ruby
[21:41:08] FernandoBasso: has joined #ruby
[21:41:56] pawnbox: has joined #ruby
[21:45:22] ruby[bot]: -b *!*@212-200-65-109.3gnet.mts.telekom.rs$#ruby-banned
[21:46:29] snockerton: has joined #ruby
[21:46:54] shevy: long live ruby!
[21:47:26] IrishGringo: has joined #ruby
[21:48:01] Guest38: has joined #ruby
[21:48:46] nogic: has joined #ruby
[21:48:56] idefine: has joined #ruby
[21:50:54] antgel: has joined #ruby
[21:51:07] johnmilton: has joined #ruby
[21:51:33] guardian: has joined #ruby
[21:52:37] idefine_: has joined #ruby
[21:53:32] n008f4g_: has joined #ruby
[21:56:30] Ropeney: has joined #ruby
[21:56:35] karapetyan: has joined #ruby
[21:56:48] sondr3: has joined #ruby
[21:57:33] zeroDivisible: has joined #ruby
[21:58:09] snowy: has joined #ruby
[21:59:29] binaryplease: has joined #ruby
[21:59:30] htmldrum: has joined #ruby
[21:59:42] idefine: has joined #ruby
[22:00:21] uglybandersnatch: has joined #ruby
[22:01:12] _whitelogger_: has joined #ruby
[22:01:23] binaryplease: thinking about writing a console multi messenger. first idea was to make a client for libpurple but every gem for ruby bindings seem to be unmantained. Any tips which direction to go?
[22:01:37] voker57: has joined #ruby
[22:01:37] voker57: has joined #ruby
[22:02:27] binaryplease: has joined #ruby
[22:02:57] jeanlinux: has joined #ruby
[22:03:42] idefine: has joined #ruby
[22:03:42] binaryplease: has joined #ruby
[22:05:41] dfinninger: has joined #ruby
[22:06:07] trabulmonkee: has joined #ruby
[22:06:31] drbrain: unmaintained doesn't necessarily mean they're broken
[22:06:33] Jardayn_two: has joined #ruby
[22:07:02] adaedra: and if they're broken, fork and fix them!
[22:07:05] ruby[bot]: You think this is broken, could be done better, or have a good feature idea? Submit an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
[22:07:14] DmitryBochkarev: has joined #ruby
[22:07:16] rickmasta: has joined #ruby
[22:07:33] safe: has joined #ruby
[22:08:31] Sembei: has joined #ruby
[22:09:47] antgel: has joined #ruby
[22:10:05] drbrain: well, fixing bindings to a C extension gets pretty challenging pretty quick
[22:10:49] nettoweb: has joined #ruby
[22:10:53] BtcBen: has joined #ruby
[22:12:02] hahuang65: has joined #ruby
[22:12:14] shevy: he did not stay for long :\
[22:12:31] johnmilton: has joined #ruby
[22:13:52] binaryplease: has joined #ruby
[22:14:14] baweaver: has joined #ruby
[22:15:23] hannelita: has joined #ruby
[22:15:47] sp4rrow: has joined #ruby
[22:16:57] casadei: has joined #ruby
[22:20:17] kgirthofer: what gem does rackup come with?
[22:21:00] kgirthofer: I did gem install rack
[22:21:06] kgirthofer: bash: rackup: command not found
[22:21:15] adaedra: how did you install ruby and rack?
[22:21:21] skweek: has joined #ruby
[22:21:32] agent_white: has joined #ruby
[22:21:40] kgirthofer: yum install ruby ruby-devel rubygems
[22:21:45] kgirthofer: and gem install rack
[22:21:48] jenrzzz: has joined #ruby
[22:22:10] adaedra: kgirthofer: can you show the output of `echo $PATH` and `gem env` please?
[22:22:27] pawnbox: has joined #ruby
[22:23:25] kgirthofer: https://gist.github.com/Kgirthofer/d4daebd713974905f40d
[22:23:34] Xeago: has joined #ruby
[22:24:16] adaedra: You work as root?
[22:24:23] kgirthofer: not normally lol
[22:24:25] devbug: has joined #ruby
[22:24:37] adaedra: Yeah, you should not.
[22:24:50] adaedra: Do you intend to use the gems as root or as a normal user?
[22:25:13] kgirthofer: when I build this for real the gems will be used by the service account only
[22:25:14] adaedra: (But, for now, you seem to be lacking /usr/local/bin from your $PATH)
[22:25:18] kgirthofer: this server isn't going anywehre
[22:25:39] workmad3: has joined #ruby
[22:25:42] Lucky_ABA: has joined #ruby
[22:27:00] adaedra: If this is just a server for deploy, I'd advise to look at how to install gems locally with bundler (bundle install --path), which would ease things
[22:28:23] Azure: has joined #ruby
[22:28:28] kgirthofer: I need to start hosting gems for chef
[22:29:02] shanemcd: has joined #ruby
[22:29:09] _whitelogger: has joined #ruby
[22:30:47] adaedra: Never tried it personally, I settled with salt for now.
[22:31:05] kgirthofer: cool - vice versa
[22:31:06] adaedra: Just that it's a different, special case, where things are to be taken care of differently
[22:31:30] kgirthofer: I'm great with chef - just not the whole ruby part
[22:31:38] kgirthofer: new to setting up my own gems and stuff
[22:31:51] kirillzh: has joined #ruby
[22:31:58] mondok: has joined #ruby
[22:32:36] _whitelogger: has joined #ruby
[22:33:03] antgel: has joined #ruby
[22:33:31] DmitryBochkarev: has joined #ruby
[22:33:44] nerium: Is there a way to normalize UTF8 in Ruby? I tired activesupport, i18n and UnicodeUtils, but non of them manage to do the conversion
[22:34:16] apeiros: nerium: you mean C & D normalization?
[22:35:45] nerium: apeiros: compose or decompose?
[22:36:41] apeiros: I only remembered the abbreviation. but that would make sense. so probably yes.
[22:37:23] nerium: apeiros: I’m not sure what the difference are
[22:37:43] apeiros: um, ok. let's get back to: I'm asking you what precisely you mean.
[22:38:55] nerium: apeiros: I need to map/convert chars like  (U+63348) to e (for example)
[22:39:06] antgel: has joined #ruby
[22:39:14] sp4rrow: has joined #ruby
[22:40:11] _whitelogger: has joined #ruby
[22:40:38] apeiros: are you making something up here? because U+63348 sounds like a rather high codepoint…
[22:40:44] zenlot6: has joined #ruby
[22:40:50] nerium: apeiros: https://gist.github.com/oleander/d97f54a1555a2f742f29
[22:41:03] nerium: They’re extracted from a PDF
[22:41:13] nerium: and I can search for them in the pdf
[22:41:30] jgpawletko: has joined #ruby
[22:41:43] nerium: THe first one is ”0” if I’m not misstaken
[22:42:43] apeiros: and how do you figure U+63348 should be mapped to "e"?
[22:43:06] nerium: i search for it in the pdf
[22:43:37] apeiros: it makes no sense.
[22:43:56] nerium: apeiros: U+63348 should be T
[22:44:12] apeiros: assuming by U+63348 you mean \uF774, then that codepoint is in the private use section
[22:44:20] machinewar: has joined #ruby
[22:45:01] crowell: has joined #ruby
[22:45:01] crowell: has joined #ruby
[22:45:47] nerium: Okay, that’s strange
[22:46:01] hazelux: has joined #ruby
[22:46:04] nerium: I wounder why my pdf reader are able to encode it
[22:46:11] matp: has joined #ruby
[22:46:31] apeiros: nerium: so back to: how do you figure it's that code point to begin with?
[22:46:49] diegoviola: has joined #ruby
[22:46:53] nerium: apeiros: using ord in ruby
[22:47:42] apeiros: care to show input, code and output?
[22:47:48] kirillzh: has joined #ruby
[22:47:50] nerium: apeiros: PDFToTxt.new("my.pdf").to_txt.split("").map{|a| [a, a.ord]}.uniq.sort_by(&:last)
[22:48:11] apeiros: interesting
[22:48:28] apeiros: I'd assume that PDFToTxt somewhere gets some binary data wrong.
[22:48:38] apeiros: is the to_txt otherwise legible?
[22:48:56] nerium: apeiros: https://gist.github.com/oleander/e1b4bafe8342fd0756c2
[22:49:06] apeiros: or can you gist the output of PDFToTxt.new("my.pdf").to_txt.unpack("U*")?
[22:49:41] nerium: apeiros: The char being shown in the gist is searchable in the pdf, so I would say it works
[22:50:17] apeiros: hm, might be that pdftotxt gets pdf's charset wrong. iirc it has a special charset (all I remember is that I considered it to be rather weird)
[22:50:56] nerium: apeiros: https://gist.github.com/oleander/709062672285c472b0e1
[22:51:15] apeiros: and .unpack("C*") please
[22:51:22] apeiros: instead of .unpack("U*")
[22:52:15] nerium: apeiros: https://gist.github.com/oleander/1848c835a899eff39fd8
[22:52:23] haylon_: has joined #ruby
[22:53:20] apeiros: interesting. packing that again gives a different string
[22:54:07] apeiros: .pack("C*").unpack("U*") your last gist gives ArgumentError: malformed UTF-8 character
[22:54:21] apeiros: which makes me wonder how you managed to unpack("U*") it
[22:54:29] apeiros: (in the second last gist, that is)
[22:54:53] voidDotClass: has left #ruby: ("Leaving")
[22:55:20] apeiros: this is quite weird and I have no idea what's going on :)
[22:55:29] wldcordeiro: has joined #ruby
[22:55:39] nerium: apeiros: to_txt.unpack("U*").pack("C*") works
[22:55:58] nerium: the output is a bit strange, like ”f\xF6rsv\xE5ras"
[22:55:59] idletask: apeiros: missing the encoding, probably
[22:56:13] idletask: Anyway, you can't use strings for binary data
[22:56:32] apeiros: idletask: that doesn't matter. unpack("C*") treats it as binary and gives you the individual bytes.
[22:56:55] apeiros: idletask: um, yes. you can. and in ruby it's how you store binary data.
[22:57:06] idletask: That is, excuse me, but a design mistake
[22:57:06] nerium: apeiros: I ran uniq.sort on the output otherwise it would be unread able
[22:57:35] apeiros: idletask: I see no point in arguing about this with you. doesn't change that strings are how you store binary data in ruby.
[22:58:06] apeiros: nerium: oh. ok, that renders my try to analyze it useless.
[22:58:11] n008f4g_: has joined #ruby
[22:59:04] Azure: has joined #ruby
[22:59:22] idletask: So, it means there is a way to retrieve the binary content of any file as a Ruby string, regardless of the defined character coding? That is, there is a way to actually read the contents of a file as a binary input rather than an input which will be interpreted by a character coding (UTF-8, ISO-8859-15, EBCDIC, whatever)?
[22:59:35] apeiros: nerium: anyway, I bet with you that the result of to_txt is not utf-8.
[22:59:43] apeiros: but you're treating it as utf-8.
[22:59:56] apeiros: idletask: yes
[23:00:01] FooMunki: has joined #ruby
[23:00:09] apeiros: idletask: all strings are binary + encoding-flag.
[23:00:19] apeiros: the encoding-flag is used by ruby to determine character based operations.
[23:00:27] idletask: apeiros: OK, that is strange
[23:00:28] shakes: has joined #ruby
[23:00:46] apeiros: no, it's not. it makes sense. it has certain advantages and certain disadvantages over other approaches.
[23:00:48] eregi: has joined #ruby
[23:00:56] idletask: Just to get technical here, but that is not how Java does things; in Java, string literals are independent of the character coding
[23:01:10] apeiros: yes. but ruby isn't java.
[23:01:18] idletask: Yes, I understand that :)
[23:01:53] idefine: has joined #ruby
[23:01:56] idletask: I just want to understand the differences :)
[23:01:56] mary5030: has joined #ruby
[23:02:09] nerium: apeiros: thanks, I’ll do some experimenting
[23:02:12] binaryplease: has joined #ruby
[23:02:33] idletask: But then, if your file contains text in a given character coding, how do you tell ruby to use that character coding and no other?
[23:02:43] idletask: Say, you have a file with text content in UTF-32 LE?
[23:02:51] apeiros: File.read(path, encoding: …)
[23:03:06] apeiros: if you want ruby to convert it: File.read(path, external_encoding: …, internal_encoding: …)
[23:03:33] mary5030_: has joined #ruby
[23:03:35] idletask: And a standard, reliable, cross-platform way to read as binary would be...?
[23:03:42] idletask: Just specify the encoding on read?
[23:03:47] tAn: has joined #ruby
[23:03:52] eam: File.sysread also supplies binary iirc
[23:03:53] apeiros: File.read(path, encoding: Encoding::BINARY)
[23:03:53] Asher: has joined #ruby
[23:04:08] apeiros: not sure whether you also have to somehow pass that silly "b" flag for windows.
[23:04:10] idletask: I'll try and play with that
[23:04:29] apeiros: might be that the binary encoding triggers that too. I usually stay away from windows.
[23:04:59] idletask: A while ago I have written that: http://fgaliegue.blogspot.fr/2014/03/strings-characters-bytes-and-character.html
[23:05:13] idletask: I was sick of the mishandling of binary and text with Java :p
[23:05:42] apeiros: idletask: midnight here, so I'll not read it now. but this is what I wrote in case you're interested: (searching gist)
[23:06:14] idletask: I am: and it's midnight here too :p
[23:06:22] apeiros: https://gist.github.com/apeiros/39acc5b486f932403638
[23:08:01] makenoise: has joined #ruby
[23:08:18] apeiros: main problem with encodings is still that devs have no clue about them and fail to design file formats which contain encoding information :-/
[23:08:26] uglybandersnatch: has joined #ruby
[23:08:29] apeiros: anyway, as said, midnight, so: good night :)
[23:09:55] idletask: apeiros: agreed; in fact, there are still a lot of Java devs which believe that Java strings have an attached encoding; they do not
[23:10:03] idletask: But that is unlike Ruby, I see
[23:10:05] benlieb: has joined #ruby
[23:10:18] devbug: has joined #ruby
[23:14:16] A124: has joined #ruby
[23:15:03] baweaver: has joined #ruby
[23:17:58] Vingador: has joined #ruby
[23:18:55] idletask: apeiros: I saw a technical mistake in your gist :p
[23:19:10] idletask: Well, I'll talk about this tomorrow
[23:19:19] apeiros: (reading yours atm btw.)
[23:19:40] idletask: In your "encodings" section, you somehow mistake the role of the BOM with regards to UTF-8
[23:19:47] idletask: UTF-8 is impervious to endianness
[23:19:56] apeiros: ah, no. it's just the abbreviated version.
[23:20:02] idletask: The BOM is in fact U+FEFF
[23:20:07] apeiros: in the longer one I explain that ;-)
[23:20:30] apeiros: (the "TL;DR edition")
[23:21:01] apeiros: but if you have a nice way to word it without adding length, I'll gladly improve that
[23:21:01] idletask: And one technical mistake slipped in my post, as well
[23:21:24] idletask: Well, I'd link to fileformat.info
[23:21:31] apeiros: actually not "without adding length", but rather "without adding complexity"
[23:21:41] idletask: As to my post, the technical mistake is that "big, fat question mark"
[23:21:51] idletask: In fact, it is nothing else than U+FFFD
[23:22:01] apeiros: that's probably a good idea in any case (linking to fileformat.info)
[23:22:44] apeiros: "and this default charset depends on your JRE/OS environment." seems like java and ruby made the same bad mistake :)
[23:23:08] apeiros: luckily ruby rectified this at least for literals. I'm not sure about Encoding.default_external, though. I think there it's still making that mistake.
[23:23:09] idletask: They make it differently however
[23:23:45] idletask: In Java, a String literal is a String literal; whatever the encoding of your source file, in byte code, those will be bona fide chars
[23:23:52] darix: http://unspecified.wordpress.com/2012/04/19/the-importance-of-language-level-abstract-unicode-strings/
[23:24:02] FooMunki: has joined #ruby
[23:24:16] idletask: But Java has InputStream/Reader vs OutputStream/Writer
[23:24:20] idletask: And the misuse of those is fatal
[23:24:30] zenguy_pc: has joined #ruby
[23:24:52] darix: that said ... use UTF-8 everywhere. TIA
[23:25:05] apeiros: utf-8 has performance issues for a couple of operations
[23:25:16] apeiros: but yeah, 99.9% of all cases I fully agree
[23:25:51] jeanlinux: has joined #ruby
[23:26:20] dopamean1: has joined #ruby
[23:26:37] apeiros: idletask: your article seems to be a good read, thanks :) ("seems" because I'm not a java coder, last time I touched it is years ago, so I'm not fit to truly judge)
[23:26:53] idletask: As to your page, I'd say that "Unicode defines what is called the BOM (Byte Order Mark). In multibyte encodings where endianness matters, text files thus encoded will include the BOM, which will allow programs reading those files to correctly decode the contents. Note however that for historical reasons, several mainstream Windows programs add a BOM in UTF-8 files even though the encoding theoretically does not require it (among t
[23:26:54] idletask: hem, Excel)"
[23:27:01] Gasher: has joined #ruby
[23:27:09] darix: apeiros: read mine tomorrow... it is fun how much joy you get from just counting chars
[23:27:31] rew: has joined #ruby
[23:27:58] SenpaiSilver: has joined #ruby
[23:29:05] idletask: (and then link to fileformat.info which shows that the bom is u+feff etc)
[23:29:30] diegoviola: has joined #ruby
[23:30:21] fullofcaffeine: has joined #ruby
[23:30:41] deuxclique: has joined #ruby
[23:31:51] icarus: has joined #ruby
[23:32:02] stannard: has joined #ruby
[23:32:39] idefine: has joined #ruby
[23:33:08] trosborn: has joined #ruby
[23:35:16] rmulligan: has joined #ruby
[23:36:33] Rodya_: has joined #ruby
[23:36:41] Vingador: has joined #ruby
[23:38:54] htmldrum: has joined #ruby
[23:39:43] riceandbeans: has left #ruby: ()
[23:41:08] idefine_: has joined #ruby
[23:43:10] Brando753: has joined #ruby
[23:43:50] rmulligan: has joined #ruby
[23:44:17] Maletor: has joined #ruby
[23:45:26] davedev24: has joined #ruby
[23:45:53] ur5us: has joined #ruby
[23:46:17] kam270: has joined #ruby
[23:46:30] kirillzh: has joined #ruby
[23:50:41] uglybandersnatch: has joined #ruby
[23:50:43] fullofca_: has joined #ruby
[23:53:26] idefine: has joined #ruby
[23:53:36] casadei: has joined #ruby
[23:54:43] B4daBing73: has joined #ruby
[23:55:28] B4daBing73: has joined #ruby
[23:55:31] deuxclique: has joined #ruby
[23:57:03] haylon_: has joined #ruby
[23:59:17] Scripore: has joined #ruby