« Back to channel list

#ruby - 19 June 2018

« Back 1 day Forward 1 day »
[00:03:24] matyf: has joined #ruby
[00:03:43] lxsameer: has joined #ruby
[00:05:01] cagomez: has joined #ruby
[00:11:24] ciscam: has joined #ruby
[00:13:57] lxsameer: has joined #ruby
[00:15:31] venmx: has joined #ruby
[00:16:31] nythalcrow: has joined #ruby
[00:17:01] dogweather: has joined #ruby
[00:20:23] white_lilies: has joined #ruby
[00:21:13] rwb: has joined #ruby
[00:24:02] jrafanie: has joined #ruby
[00:24:12] lxsameer: has joined #ruby
[00:25:50] ElFerna: has joined #ruby
[00:26:46] dogweather: has joined #ruby
[00:27:39] matyf: has joined #ruby
[00:31:09] hph^: has joined #ruby
[00:31:30] hph^: has joined #ruby
[00:31:50] hph^: has joined #ruby
[00:32:12] hph^: has joined #ruby
[00:32:34] hph^: has joined #ruby
[00:32:54] hph^: has joined #ruby
[00:34:24] lxsameer: has joined #ruby
[00:34:41] beilabs: has joined #ruby
[00:34:55] JamJam_kid: has joined #ruby
[00:34:56] RougeR: has joined #ruby
[00:36:46] jsaak: has joined #ruby
[00:40:54] roamingdog: has joined #ruby
[00:41:29] matyf: has joined #ruby
[00:42:56] t0xik: has joined #ruby
[00:43:44] roamingdog: has joined #ruby
[00:44:40] lxsameer: has joined #ruby
[00:48:41] karapetyan: has joined #ruby
[00:49:02] matyf: has joined #ruby
[00:54:48] lxsameer: has joined #ruby
[00:54:54] chouhoulis: has joined #ruby
[00:55:11] darkhanb: has joined #ruby
[00:55:23] jsaak: has joined #ruby
[00:55:58] ciscam: has joined #ruby
[01:01:07] chouhoulis: has joined #ruby
[01:04:41] mjolnird: has joined #ruby
[01:05:05] lxsameer: has joined #ruby
[01:06:52] chouhoulis: has joined #ruby
[01:10:32] darkhanb: has joined #ruby
[01:12:26] chamar: has joined #ruby
[01:15:15] matyf: has joined #ruby
[01:15:17] lxsameer: has joined #ruby
[01:15:42] ElFerna: has joined #ruby
[01:17:47] jrafanie: has joined #ruby
[01:18:35] roamingdog: has joined #ruby
[01:19:25] roamingdog: has joined #ruby
[01:20:10] roamingdog: has joined #ruby
[01:21:00] roamingdog: has joined #ruby
[01:21:50] roamingdog: has joined #ruby
[01:25:27] lxsameer: has joined #ruby
[01:34:43] dogweather: has joined #ruby
[01:35:40] lxsameer: has joined #ruby
[01:37:24] andrewray: has joined #ruby
[01:45:56] lxsameer: has joined #ruby
[01:47:39] gsingh93: has joined #ruby
[01:48:39] SeepingN: has joined #ruby
[01:50:19] dogweather: has joined #ruby
[01:50:59] gizmore|2: has joined #ruby
[01:56:07] lxsameer: has joined #ruby
[01:56:55] andrewray: has joined #ruby
[01:59:40] herbmillerjr: has joined #ruby
[02:03:17] nowhere_man: has joined #ruby
[02:06:20] chouhoulis: has joined #ruby
[02:06:20] lxsameer: has joined #ruby
[02:06:35] matyf: has joined #ruby
[02:07:39] nowhere_man: has joined #ruby
[02:16:31] lxsameer: has joined #ruby
[02:17:51] postmodern: has joined #ruby
[02:18:25] dogweather: has joined #ruby
[02:23:11] roamingdog: has joined #ruby
[02:26:48] lxsameer: has joined #ruby
[02:27:20] orbyt_: has joined #ruby
[02:28:02] dogweather: has joined #ruby
[02:33:28] matyf: has joined #ruby
[02:34:23] dogweather: has joined #ruby
[02:37:02] lxsameer: has joined #ruby
[02:43:24] andrewray: has joined #ruby
[02:47:03] cadillac_: has joined #ruby
[02:47:11] lxsameer: has joined #ruby
[02:50:06] kenichi: has joined #ruby
[02:50:19] bobdobbs: has joined #ruby
[02:50:27] karapetyan: has joined #ruby
[02:56:18] chouhoulis: has joined #ruby
[02:57:28] lxsameer: has joined #ruby
[02:57:41] matyf: has joined #ruby
[02:59:51] cagomez: has joined #ruby
[03:00:24] cadillac_: has joined #ruby
[03:01:47] dogweather: has joined #ruby
[03:02:16] darkhanb: has joined #ruby
[03:04:28] gix-: has joined #ruby
[03:07:36] lxsameer: has joined #ruby
[03:11:11] braincrash: has joined #ruby
[03:11:15] matyf: has joined #ruby
[03:12:43] ElFerna: has joined #ruby
[03:13:14] eckhardt: has joined #ruby
[03:14:41] matyf: has joined #ruby
[03:15:11] Fr4n: has joined #ruby
[03:16:16] dogweather: has joined #ruby
[03:16:30] Fr4n: has joined #ruby
[03:16:42] shinnya: has joined #ruby
[03:17:53] lxsameer: has joined #ruby
[03:21:43] kapil___: has joined #ruby
[03:28:07] lxsameer: has joined #ruby
[03:29:07] beilabs: has joined #ruby
[03:29:50] beilabs: has joined #ruby
[03:36:29] dogweather: has joined #ruby
[03:38:18] lxsameer: has joined #ruby
[03:42:40] crankharder: has joined #ruby
[03:46:32] tdy: has joined #ruby
[03:48:33] lxsameer: has joined #ruby
[03:49:27] dogweather: has joined #ruby
[03:57:42] dogweather: has joined #ruby
[03:57:56] tAn: has joined #ruby
[03:58:45] lxsameer: has joined #ruby
[04:00:35] ciscam: has joined #ruby
[04:00:53] cthulchu_: has joined #ruby
[04:00:56] Tempesta_: has joined #ruby
[04:01:05] gix: has joined #ruby
[04:08:56] lxsameer: has joined #ruby
[04:17:42] beilabs: has joined #ruby
[04:19:11] lxsameer: has joined #ruby
[04:25:42] dogweather: has joined #ruby
[04:27:46] eckhardt: has joined #ruby
[04:29:24] lxsameer: has joined #ruby
[04:31:12] tAn: has joined #ruby
[04:35:41] sauvin: has joined #ruby
[04:38:01] eckhardt: has joined #ruby
[04:39:34] lxsameer: has joined #ruby
[04:39:50] woodruffw: has joined #ruby
[04:39:50] woodruffw: has joined #ruby
[04:44:34] ElFerna: has joined #ruby
[04:49:48] lxsameer: has joined #ruby
[04:50:54] howdoi: has joined #ruby
[04:52:00] karapetyan: has joined #ruby
[05:00:06] lxsameer: has joined #ruby
[05:00:24] User458764: has joined #ruby
[05:00:59] andrewray: has joined #ruby
[05:06:47] dogweather: has joined #ruby
[05:08:48] face: has joined #ruby
[05:10:13] lxsameer: has joined #ruby
[05:10:19] chongtxtx: has joined #ruby
[05:12:01] conta: has joined #ruby
[05:15:00] dionysus69: has joined #ruby
[05:15:29] konsolebox: has joined #ruby
[05:18:28] tAn: has joined #ruby
[05:18:59] reber: has joined #ruby
[05:20:30] lxsameer: has joined #ruby
[05:23:06] SeepingN: has joined #ruby
[05:28:00] dogweather: has joined #ruby
[05:30:40] lxsameer: has joined #ruby
[05:37:30] dogweather: has joined #ruby
[05:40:59] lxsameer: has joined #ruby
[05:50:50] aupadhye: has joined #ruby
[05:51:05] lxsameer: has joined #ruby
[05:59:09] ciscam: has joined #ruby
[06:01:18] lxsameer: has joined #ruby
[06:11:33] lxsameer: has joined #ruby
[06:13:54] dionysus69: has joined #ruby
[06:15:28] Nicmavr: has joined #ruby
[06:16:39] biberu: has joined #ruby
[06:20:19] livcd: has joined #ruby
[06:21:48] lxsameer: has joined #ruby
[06:26:43] yxhuvud: has joined #ruby
[06:31:55] c0ncealed2: has joined #ruby
[06:32:29] lxsameer: has joined #ruby
[06:33:12] Tempesta: has joined #ruby
[06:36:42] dogweather: has joined #ruby
[06:36:49] mtkd: has joined #ruby
[06:39:40] suukim: has joined #ruby
[06:47:50] andikr: has joined #ruby
[06:49:21] dionysus70: has joined #ruby
[06:54:54] karapetyan: has joined #ruby
[06:57:53] gnufied: has joined #ruby
[07:00:41] dogweather: has joined #ruby
[07:06:33] claudiuinberlin: has joined #ruby
[07:08:20] Beams: has joined #ruby
[07:09:38] User458764: has joined #ruby
[07:12:29] schleppel: has joined #ruby
[07:13:23] dogweather: has joined #ruby
[07:14:32] sysvalve: has joined #ruby
[07:14:36] yohji: has joined #ruby
[07:17:27] lxsameer: has joined #ruby
[07:21:40] pnkl: has joined #ruby
[07:33:35] ams__: has joined #ruby
[07:42:23] Lytol: has joined #ruby
[07:42:40] mlkkk: has joined #ruby
[07:43:20] asio: has joined #ruby
[07:46:38] RougeR: has joined #ruby
[07:46:38] RougeR: has joined #ruby
[07:46:41] mradmacher: has joined #ruby
[07:47:03] mradmacher: has left #ruby: ()
[07:47:22] mlkkk: has joined #ruby
[07:48:27] mikecmpbll: has joined #ruby
[07:53:45] mikecmpb_: has joined #ruby
[07:54:44] camilasan: has joined #ruby
[07:57:20] triston: has joined #ruby
[07:58:26] lxsameer: has joined #ruby
[08:03:30] burgestrand: has joined #ruby
[08:13:02] erlend: has joined #ruby
[08:15:04] amar: has joined #ruby
[08:18:54] tambet_: has joined #ruby
[08:19:35] anisha: has joined #ruby
[08:22:54] schneider: has joined #ruby
[08:23:52] tambet_: Is there a way to list named variables of formatted string? e.g `"Hello %{name}, today is %{day}”` => [:name, :day]
[08:26:07] dminuoso: tambet_: "Hello #{name}, today is #{day}"
[08:26:27] dminuoso: tambet_: Or if you want that exactly you can use
[08:26:52] dminuoso: >> "foo %{bar} and %{quux}" % { bar: 10, quux: 20 }
[08:26:53] ruby[bot]: dminuoso: # => "foo 10 and 20" (https://eval.in/1023030)
[08:28:08] tambet_: Thanks, I know how to use it, but I want to find out if string has named variables
[08:28:31] dminuoso: asm>> "Hello %{foo}"
[08:28:33] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/1023031
[08:28:49] dminuoso: asm>> "Hello %{foo}" % {foo: 1}
[08:28:51] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/1023032
[08:29:24] dminuoso: tambet_: I dont think so.
[08:31:34] manveru: >> 'Hello %{foo} %{bar}'.scan(/%{([^}]+)}/)
[08:31:41] tambet_: Then some regex magic
[08:32:42] manveru: .+? would also work i think
[08:33:54] beilabs_: has joined #ruby
[08:35:32] Zaab1t: has joined #ruby
[08:37:07] jottr: has joined #ruby
[08:41:11] beilabs: has joined #ruby
[08:47:25] tty: has joined #ruby
[08:47:38] aufi: has joined #ruby
[08:50:57] venmx: has joined #ruby
[08:54:43] arekushi: has joined #ruby
[08:56:07] ellcs: has joined #ruby
[08:56:23] aufi_: has joined #ruby
[08:56:25] karapetyan: has joined #ruby
[09:00:15] clemens3: has joined #ruby
[09:03:07] bijan_: has joined #ruby
[09:04:34] venmx: has joined #ruby
[09:04:58] gigetoo: has joined #ruby
[09:08:18] RougeR: has joined #ruby
[09:08:18] RougeR: has joined #ruby
[09:09:01] jottr: has joined #ruby
[09:09:05] havenwood: has joined #ruby
[09:09:05] havenwood: has joined #ruby
[09:12:20] venmx: has joined #ruby
[09:13:00] chichou: has joined #ruby
[09:28:38] maufart__: has joined #ruby
[09:36:34] mikecmpbll: has joined #ruby
[09:39:55] mjolnird: has joined #ruby
[09:44:15] saTchymoto: has joined #ruby
[09:49:33] amar_: has joined #ruby
[09:51:38] beilabs: has joined #ruby
[09:55:00] User458764: has joined #ruby
[09:55:47] gregf_: has joined #ruby
[10:01:12] za1b1tsu: has joined #ruby
[10:01:39] vonfry: has joined #ruby
[10:02:44] User458764: has joined #ruby
[10:11:43] marius: has joined #ruby
[10:11:55] karapetyan: has joined #ruby
[10:16:09] dogweather: has joined #ruby
[10:18:28] agent_white: has joined #ruby
[10:20:43] tvw: has joined #ruby
[10:28:28] yohji: has joined #ruby
[10:34:40] cyberg: has joined #ruby
[10:35:29] cyberg: has joined #ruby
[10:36:03] User458764: has joined #ruby
[10:39:11] apparition: has joined #ruby
[10:39:19] chamar: has joined #ruby
[10:42:07] GodFather: has joined #ruby
[10:52:29] jrafanie: has joined #ruby
[10:57:13] amatas: has joined #ruby
[10:58:39] amatas: has joined #ruby
[10:59:25] ElFerna: has joined #ruby
[11:02:21] mikecmpbll: has joined #ruby
[11:03:23] matyf: has joined #ruby
[11:04:18] amatas: has joined #ruby
[11:06:10] Dead_: has joined #ruby
[11:06:28] lunarkitty7: has joined #ruby
[11:07:11] User458764: has joined #ruby
[11:09:20] chamar: has joined #ruby
[11:11:29] jzh: has joined #ruby
[11:12:42] nowhere_man: has joined #ruby
[11:17:26] psychicist__: has joined #ruby
[11:17:42] yokel: has joined #ruby
[11:20:38] tambet_: has joined #ruby
[11:21:07] guardian: has joined #ruby
[11:30:11] burgestrand: has joined #ruby
[11:30:38] tAn: has joined #ruby
[11:33:30] roamingdog: has joined #ruby
[11:38:58] dendazen: has joined #ruby
[11:41:16] amar_: has joined #ruby
[11:43:40] AJA4350: has joined #ruby
[11:45:11] ldnunes: has joined #ruby
[11:50:46] Quintasan: has joined #ruby
[12:00:49] roamingdog: has joined #ruby
[12:01:17] beilabs: has joined #ruby
[12:01:38] roamingdog: has joined #ruby
[12:02:24] roamingdog: has joined #ruby
[12:03:14] roamingdog: has joined #ruby
[12:03:59] roamingdog: has joined #ruby
[12:06:32] synthroid: has joined #ruby
[12:09:20] jottr: has joined #ruby
[12:10:06] GodFather: has joined #ruby
[12:18:22] mostly-harmless: has joined #ruby
[12:20:01] burgestrand: has joined #ruby
[12:20:23] RougeR: has joined #ruby
[12:20:23] RougeR: has joined #ruby
[12:21:46] bmurt: has joined #ruby
[12:23:23] mikecmpb_: has joined #ruby
[12:24:25] cadillac_: has joined #ruby
[12:27:37] yohji: has joined #ruby
[12:28:40] micutzu: has joined #ruby
[12:32:22] mikecmpbll: has joined #ruby
[12:39:10] micutzu: has joined #ruby
[12:39:17] karapetyan: has joined #ruby
[12:40:16] aceruser: has joined #ruby
[12:40:46] vondruch: has joined #ruby
[12:44:23] dogweather: has joined #ruby
[12:44:37] burgestrand: has joined #ruby
[12:48:02] jottr: has joined #ruby
[12:49:00] donofrio: has joined #ruby
[12:52:54] alex``: has joined #ruby
[12:54:24] mostly-harmless: has joined #ruby
[12:55:35] dr3wo: has joined #ruby
[12:59:13] rwb: has joined #ruby
[12:59:48] RougeT430: has joined #ruby
[13:01:08] soniya29: has joined #ruby
[13:01:21] soniya29_: has joined #ruby
[13:01:41] dr3wo: has joined #ruby
[13:01:48] fmcgeough: has joined #ruby
[13:05:43] ElFerna: has joined #ruby
[13:07:08] User458764: has joined #ruby
[13:08:19] bauruine: has joined #ruby
[13:11:49] rouget430__: has joined #ruby
[13:13:09] dogweather: has joined #ruby
[13:17:14] alex```: has joined #ruby
[13:22:32] alex````: has joined #ruby
[13:23:25] RougeR: has joined #ruby
[13:26:11] Azure: has joined #ruby
[13:29:00] InfinityFye: has joined #ruby
[13:33:57] User458764: has joined #ruby
[13:36:17] Inline: has joined #ruby
[13:39:11] ElFerna: has joined #ruby
[13:40:54] karapetyan: has joined #ruby
[13:47:22] arne: has joined #ruby
[13:48:05] dogweather: has joined #ruby
[13:48:35] arne: anyone got an idea how i would create a relatively short hash out of a 2 numbers and a domain?
[13:48:46] arne: that does not collide easily
[13:49:43] dogweath_: has joined #ruby
[13:51:45] dminuoso: arne: what is that hash function for?
[13:51:54] RougeT430: has joined #ruby
[13:53:11] dminuoso: Does it need cryptographic properties? What length in bits do you need?
[13:53:18] dminuoso: If crytographic, should it be keyed? unkeyed?
[13:53:55] rouget430__: has joined #ruby
[13:54:09] arne: not crypto
[13:54:13] Hanmac: has joined #ruby
[13:54:19] arne: length of bits, it has to be a dns entry
[13:54:27] arne: meaning encoded in hex or whatever
[13:54:43] dminuoso: thats a matter of encoding on your end.
[13:55:20] dminuoso: whats the hash used for?
[13:55:55] arne: users can add domains in my software, and they get dns entries that they need to insert
[13:56:07] arne: and i want circumvent, that another user.. just adds the same domain to his account
[13:56:24] arne: and it's added as valid domain (because the required key is already set)
[13:56:48] canton7: can't you just check whether a domain has been added to any other account?
[13:56:59] dminuoso: What does this have to do with hashing?
[13:57:38] arne: dminuoso: well, i can do both steps in one: add the domain & check if the user is the owner of the domain
[13:58:03] arne: kinda like the google site authentication
[13:58:24] arne: canton7: yeah, but that might even be possible.
[13:58:28] dminuoso: arne: And you do not want this hash to have cryptographic properties?
[13:58:33] dminuoso: ACTION o_O
[13:58:43] arne: well, i don't care if someone can recreate that hash
[13:58:55] arne: i care if someone creates AND sets that domain key with the hash as a name
[13:59:17] dminuoso: arne: what kind of service are you running if you dont mind my asking
[13:59:20] arne: and that would only be possible, when he/she owns the domain
[13:59:28] arne: dminuoso: i mind :D don't want to be judged
[13:59:48] dminuoso: arne: I dont care about judging, but I have a hard time grasping how things fit together.
[14:00:20] Asher: has joined #ruby
[14:00:20] dminuoso: I mean I know you explained it to me a few months ago, I could just dig up the logs, but lazy...
[14:00:39] arne: yeah i remember slighty, but i haven't implemented it, since then
[14:00:59] arne: basicially, you can add your domain to my software, and you will receive emails from that (sub)domain
[14:01:02] Inside: has joined #ruby
[14:01:39] arne: that requires me to add DKIM keys, example: #{selector}._domainkey.domain.de IN TXT p=#{public_rsa_key}
[14:02:02] arne: and when someone adds a domain, i can tell the user "add this domainkey"
[14:02:22] arne: the domainkey will serve as: a) a domainkey b) verficiation that the user is the owner of the domain
[14:02:44] arne: so if i make selector a hash that has [user_id,domain] i get both
[14:03:04] dhollinger29: has joined #ruby
[14:03:05] dminuoso: arne: what do you mean by "you will receive emails from that (sub)domain"
[14:03:37] arne: user might get emails from his own domain, it's SAAS-like
[14:04:00] Megamos: has joined #ruby
[14:04:24] dhollinger: has joined #ruby
[14:04:25] Rapture: has joined #ruby
[14:04:27] arne: i guess, bug trackers do it that way?
[14:05:40] dminuoso: Shoot why dont I have this in my logs...
[14:06:06] arne: i guess i could do this
[14:06:09] arne: Hashids.encode([471,*"beispiel.de".each_byte.to_a])
[14:06:24] arne: resulting in "rvwigGSb1u8wc05TXYi1YCyVsaRsV3cLESVR", which would be a pretty ugly subdomain
[14:06:45] dmgk: has joined #ruby
[14:06:55] dminuoso: arne: But SPF? ..
[14:07:00] cadillac_: has joined #ruby
[14:07:16] arne: sure, user has to set spf, too
[14:07:21] arne: but i can't use that for authentication
[14:07:31] dminuoso: Just curious.. why not?
[14:07:43] arne: uhm... well the spf value is pretty fixed
[14:07:52] arne: it has to be a list of ips/hosts that is allowed to send mails for that domain
[14:07:53] dminuoso: I mean isn't that the entire purpose of SPF?
[14:08:18] arne: i can't put the information in there which user added that domain
[14:08:28] arne: so if you add your superawesomedomain.de to my software
[14:08:39] BloopMonsterOMG: has joined #ruby
[14:08:47] dminuoso: Fair enough well at any rate
[14:08:47] dionysus69: has joined #ruby
[14:08:48] arne: you might add the right spf key, which i use for authentication. Then another malicious user comes.. add superawesomedomain.de
[14:08:58] arne: and it's valid
[14:09:17] dminuoso: arne: the authorization step happens by virtue of adding the SPF record
[14:09:21] dminuoso: not by adding things to your software.
[14:09:49] arne: right now i have no authorization, and i start to get big companies as customers
[14:09:55] dminuoso: but I get the idea
[14:10:02] dminuoso: arne: how do hash functions come into play?
[14:10:19] arne: and if someone else comes, and adds quelle.de to my software, he might be able to send emails for that domain
[14:10:31] arne: dminuoso: you can have multiple (named) dkim keys per domain
[14:10:45] chouhoulis: has joined #ruby
[14:10:46] arne: so i can define name and value of the domainkey
[14:11:15] dr3wo: has joined #ruby
[14:11:23] jrafanie: has joined #ruby
[14:11:39] dminuoso: arne: so essentially the domain things are just authentiation
[14:11:42] arne: if the second malicous user comes, he can add the domain.. but he will never be able to add #{hash}._domainkey.quelle.de
[14:11:56] dminuoso: fair enough
[14:12:08] chouhoulis: has joined #ruby
[14:12:21] arne: so hash has to be short enough for subdomain, and only contain chars allowed in subdomains
[14:13:47] arne: so, as an input for my hash-function i would have [user_id,domain_id(in case of deletion & reinsert),domain(as string)]
[14:14:32] bmurt: has joined #ruby
[14:14:49] dminuoso: arne: here's a silly thought.. but why not use something else.. like...
[14:14:49] cadillac_: has joined #ruby
[14:14:53] dminuoso: a timestamp?
[14:15:06] catphish: has joined #ruby
[14:15:08] dminuoso: why does it have to be a hash?
[14:15:34] catphish: does ruby cache references to classes? in particular does it cache them inside other classes?
[14:15:36] arne: no, that is not silly but minimal less secure than a hash
[14:16:16] catphish: i have an odd situation where 2 different classes are both calling "User" but are referencing different classes
[14:16:42] arne: catphish could be namespacing, do you have 2 classes named User?
[14:17:00] catphish: no, it's the same class, but a different version of it, it was releaded at some point
[14:17:16] catphish: but different parts of the code are now seeing different versions of it
[14:17:18] arne: well, why would you do that
[14:17:31] catphish: "because rails"
[14:17:51] arne: well, i am sorry
[14:18:01] catphish: rails has some magic that reloads classes between requests, but i'm trying to work out why some old versions are still being referenced
[14:18:12] catphish: i am also sorry :)
[14:18:13] kapil___: has joined #ruby
[14:18:14] arne: that sounds awful
[14:18:16] arne: fuck rails
[14:19:18] catphish: so i suppose my question is why in one class, User would reference one class and on another it would reference a different class, i assime there's a leven of caching somewhere that rails isn't invalidating
[14:20:10] arne: well there might be code that does something like
[14:20:17] arne: something = Model::SomeClass
[14:20:34] arne: i guess that would not dereference that class, no matter how many times u overload Model::SomeClass
[14:21:12] catphish: that would be correct
[14:21:43] konsolebox: has joined #ruby
[14:22:33] catphish: except that even referencing it as SomeClass i get different results depending on where it's called
[14:22:37] catphish: it's very odd
[14:22:51] arne: are those in the same namespace?
[14:23:17] catphish: no, i suppose they're not
[14:23:41] catphish: but they should end up looking in the "root" namespace i thought
[14:24:03] arne: is there a possibility that those worked their way down in the namespace?
[14:24:20] catphish: i'm not sure how to tell
[14:24:32] catphish: but yes, it certainly seems like that's what's happened
[14:24:32] dogweather: has joined #ruby
[14:25:17] mrBen2k2k2k: has joined #ruby
[14:25:36] arne: lul rails
[14:26:06] catphish: i'll ask the rails channel i guess
[14:28:04] Mike11: has joined #ruby
[14:29:17] faces: has joined #ruby
[14:30:02] micutzu: has joined #ruby
[14:31:03] chouhoul_: has joined #ruby
[14:31:07] ^mtkd: has joined #ruby
[14:32:37] karapetyan: has joined #ruby
[14:32:45] agent_white: has joined #ruby
[14:33:11] cadillac_: has joined #ruby
[14:35:33] cadillac__: has joined #ruby
[14:36:10] arne: dminuoso: thanks for the timestamp approach, i guess that would be enough
[14:37:28] arne: putting a sleep in there for security :>
[14:37:46] arne: dminuoso: when 2 people add quelle.de at the same time :D
[14:37:57] arne: "same time"
[14:38:02] ElFerna: has joined #ruby
[14:38:03] dminuoso: arne: why not simply use a UUID/GUID then.
[14:38:08] dminuoso: And be done with this circus.
[14:38:31] arne: BUT COLLISIONS, jk
[14:38:44] dminuoso: arne: USE A UNIQUE CONSTRAINT IN YOUR DATABASE.
[14:39:21] arne: you don't want to know what makes that impossible for me
[14:39:30] arne: please sit down and i tell you
[14:39:48] arne: i have a one-database-per-user sharding-model
[14:40:07] arne: long story short, not a good idea
[14:40:10] dminuoso: And what stops you from having some other database to orchestrate things?
[14:40:28] arne: well, would be more work, i guess
[14:40:28] gizmore: has joined #ruby
[14:40:53] arne: and very bug-prone
[14:41:29] arne: having transactions on 2 datbases.. one fails.. the other one commits, yaddayadda
[14:41:43] dminuoso: saga pattern.
[14:41:49] dminuoso: but ah well
[14:41:57] dminuoso: The quality of these ideas..
[14:42:04] dminuoso: You wouldnt happen to be working on beA would you?
[14:42:15] arne: i don't know any of these words
[14:42:24] dminuoso: arne: You are German, are you not?
[14:42:50] arne: bundesrechtsanwaltskammer?
[14:42:56] dminuoso: That's the one.
[14:42:56] arne: thatgermanword.jpg
[14:43:24] arne: well, no that would be no business for me
[14:43:32] bak1an: has joined #ruby
[14:43:32] arne: law, ewww
[14:43:52] arne: that one-database-per-user thing was not a requirement, that was my own shitty idea
[14:47:20] jottr: has joined #ruby
[14:47:34] lxsameer: has joined #ruby
[14:48:41] Azure: has joined #ruby
[14:50:29] hightower2: has joined #ruby
[14:52:14] dr3wo: has joined #ruby
[14:53:33] rippa: has joined #ruby
[14:55:15] Mrgoose: has joined #ruby
[14:55:50] bmurt: has joined #ruby
[14:57:24] apeiros: has joined #ruby
[14:57:24] lxsameer: has joined #ruby
[14:58:48] Asher: has joined #ruby
[14:59:48] tdy: has joined #ruby
[15:01:23] bmurt: has joined #ruby
[15:01:46] tax: has joined #ruby
[15:02:49] shinnya: has joined #ruby
[15:04:10] havenwood: I'm trying to grok a few functions for Church encoding in Ruby. I just got stumped on two of the functions. Can anyone see what increment and add should be?: https://gist.github.com/havenwood/09fe980ee58046db12c7616dac116299
[15:04:34] havenwood: https://gist.github.com/havenwood/09fe980ee58046db12c7616dac116299#file-church-rb-L31
[15:04:35] havenwood: https://gist.github.com/havenwood/09fe980ee58046db12c7616dac116299#file-church-rb-L54
[15:07:28] lxsameer: has joined #ruby
[15:08:04] ciscam: has joined #ruby
[15:12:06] dionysus69: has joined #ruby
[15:15:16] jottr: has joined #ruby
[15:15:43] chouhoulis: has joined #ruby
[15:17:00] Beams: has joined #ruby
[15:17:02] lxsameer: has joined #ruby
[15:20:51] gizmore: havenwood: what is -> again? .... Proc.new?
[15:21:19] havenwood: gizmore: almost the same, but it's a lambda
[15:21:23] tcopeland: has joined #ruby
[15:21:41] havenwood: gizmore: `-> n { n }` is the same as `lambda { |n| n }`
[15:21:41] gizmore: i dont know Church either.. i recently read about javascript reducers tho
[15:22:06] dminuoso: gizmore: its a function period.
[15:22:23] gizmore: btw.... new gdoruby module in progress "GDO-Login" .... https://github.com/gizmore/GDO-Login/blob/master/spec/gdo_spec.rb
[15:23:01] dar123: has joined #ruby
[15:23:03] Megamos: has joined #ruby
[15:23:06] havenwood: gizmore: here's a classic Fizz Buzz in Ruby lambda calculus: https://github.com/jimweirich/lambda_fizz/blob/master/cfb2.rb
[15:23:53] dminuoso: havenwood: That fizzbuzz sucks
[15:23:56] dminuoso: Here's the best one: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition/
[15:24:07] gizmore: or to phrase it like i thought
[15:24:32] dminuoso: Im willing to bet jim had a code generator for that ;)
[15:24:44] gizmore: havenwood: https://www.wechall.net/challenge/brainfucked/
[15:25:32] dminuoso: honestly most lambda calculus amazements are just simple parlor tricks designed to amaze newbies
[15:26:34] havenwood: ACTION turns in to a dove and flies away
[15:27:04] griffindy: has joined #ruby
[15:27:20] gizmore: dminuoso: i dont use shortcuts like ->
[15:27:32] gizmore: i would Prefer lamda{|arg1|..}
[15:27:39] gizmore: i am not used to -> syntax
[15:28:01] dminuoso: gizmore: its much more concise and less noisy.
[15:29:16] gizmore: i like noisyness, when it aids to code completion
[15:30:23] gizmore: like ::GDO::Signup::Module.instance in favor of gdo_module('Signup')
[15:30:54] gizmore: in php that did miracles to my code completion
[15:31:01] gizmore: i hope ruby adds type hinting one day
[15:31:13] gizmore: and at best in C syntax :P
[15:31:22] gizmore: so type first, then arg-name
[15:31:31] gizmore: like String foo not foo : String
[15:32:35] havenwood: gizmore: I think I've mentioned this before to you, but Matz thinks that's not DRY and has said it's not a thing he'll ever support.
[15:33:00] dminuoso: gizmore: ideally type annotations and code dont go on the same line whenever possible.
[15:33:35] havenwood: gizmore: That doesn't mean your IDE or editor can't do static analysis. Types are just not going to be explicitly repeated in the code.
[15:33:35] gizmore: i dont wanna use some annotation like gem for type validation... i am hoping on rdoc
[15:33:38] dminuoso: simply because they are different concepts in different worlds.
[15:33:38] dminuoso: `f : Int; f = 5` tends to read more nicely
[15:33:54] gizmore: i am just wanting to get code completion work in the first place
[15:33:57] gizmore: i am trying docs
[15:34:06] gizmore: # @return self
[15:34:12] gizmore: not working :(
[15:34:23] dminuoso: gizmore: the problems are all the same
[15:34:28] dminuoso: gizmore: the reason we have a slow implementation, shitty editor integration and bug ridden code is the same:
[15:34:33] dminuoso: we have too much dynamic features.
[15:34:43] havenwood: What's not working? It's too grey? Comments tend to be a sea of grey.
[15:34:57] gizmore: ruby is just too dynamic? no!
[15:35:06] gizmore: we can fix rdoc and eclipse
[15:35:09] cadillac_: has joined #ruby
[15:35:17] gizmore: return self works fine in eclipsePDT
[15:35:34] gizmore: eclipse aptana studio is just bad
[15:35:47] gizmore: intellij is not much better, but a bit
[15:35:55] dminuoso: gizmore: When I annotate a function in Haskell `f :: Int -> Char` haddock will automatically generate the correct code.
[15:36:24] dminuoso: gizmore: There's no value in doing what is - essentially - the poorest of all attempts of a type system
[15:36:29] gizmore: i am talking about automatic code suggestions in my IDE
[15:36:34] gizmore: not about ruby
[15:36:35] dminuoso: automatic code suggestions?
[15:36:37] cschneid: has joined #ruby
[15:36:41] gizmore: yeah "code completion"
[15:36:49] gizmore: this could be improved imho
[15:36:56] gizmore: in eclipse and other IDE
[15:37:06] gizmore: ruby is fine
[15:37:32] gizmore: i was asking for type hinting because it will aid massively to code-completion
[15:37:43] dminuoso: gizmore: types aid everywhere.
[15:38:15] havenwood: gizmore: did you see sorbet at RubyKaigi?: https://sorbet.run/
[15:38:28] dminuoso: gizmore: Here's some fun fact, I just flowtyped a legacy JS project. Found 20 lingering bugs within the first 30 minutes by just throwing // @flow on each file =)
[15:38:45] havenwood: gizmore: what you're looking for seems a lot like what sorbet does
[15:39:01] gizmore: havenwood: yeah.... but what is sorbet?
[15:39:10] gizmore: i dont want to add to the toolchain
[15:39:19] gizmore: have you seen my rdocs?
[15:39:34] havenwood: gizmore: do you or do you not want static type checking? ;-P
[15:39:47] gizmore: i am not sure :)
[15:39:47] havenwood: gizmore: docs aside
[15:39:51] havenwood: ¯\_(ツ)_/¯
[15:40:00] gizmore: i think my new (today) rdocs idea is better
[15:40:12] dminuoso: havenwood: I was so sad btw when I saw that :(
[15:40:12] gizmore: it adds complexity to the IDE and docs, not ruby
[15:40:22] roamingdog: has joined #ruby
[15:40:36] havenwood: dminuoso: which part made you sad?
[15:41:00] havenwood: i'm not rushing to annotate all my code
[15:42:01] dminuoso: havenwood: That types are being added as an afterthought.
[15:42:10] havenwood: dminuoso: ah, right
[15:42:55] havenwood: gizmore: RubyMine supports YARD type annotations, afaik
[15:43:02] dminuoso: havenwood: Especially because implementing a type system is rather simple once you have the semantics and rules laid out. But it requires the language design to be tied into the type system. :(
[15:43:15] dminuoso: The actual hard part of a language is writing the parser... :P
[15:44:17] dminuoso: havenwood: The things Matz have shown about types for Ruby3 are not promising
[15:44:20] gizmore: havenwood: thank you
[15:45:03] dminuoso: And if you check out the issue about typing you will, hilariously, see that 90% of the talk is dedicating to just "how should it look", rather than "what should it be"
[15:45:34] havenwood: dminuoso: i think that talk was just an interesting aside, nothing considered for Ruby3
[15:46:34] havenwood: dminuoso: Matz wants analysis tools built into Ruby that can be exposed to editors, if i recall. We've not seen anything relating to it yet.
[15:46:41] havenwood: It might still disappoint you. ;-P
[15:46:53] dminuoso: havenwood: Well I should just stop complaining and start using Crystal. ;)
[15:47:02] roamingdog: has joined #ruby
[15:47:31] dminuoso: It's what Ruby would have been if it had been designed from first principles, as opposed to just cloning perl. :)
[15:47:46] dminuoso: And Ive liked Ruby enough to critize it. :P
[15:47:47] roamingdog: has joined #ruby
[15:48:37] roamingdog: has joined #ruby
[15:49:24] roamingdog: has joined #ruby
[15:57:40] cagomez: has joined #ruby
[15:59:14] ddffg: has joined #ruby
[16:03:27] karapetyan: has joined #ruby
[16:04:48] catphish: has left #ruby: ("Leaving")
[16:05:16] synthroid: has joined #ruby
[16:05:34] RougeT430: has joined #ruby
[16:06:33] konsolebox: optional static typing sounds good news to me
[16:14:36] gizmore: konsolebox: nah, lets fix YARD and Eclipse and RubyMine
[16:14:43] gizmore: ruby stay as is
[16:15:20] gizmore: havenwood: thanks again... maybe # @return [[::GDO::Core::GDT]] works
[16:15:42] gizmore: or #@return [::GDO::Core::GDT[]] works
[16:15:45] jcarl43: has joined #ruby
[16:15:55] gizmore: type hinting in docs.... way better than static checks
[16:16:32] gizmore: for static checks, big changes would be expected.... there are libs/gems that do that already
[16:16:53] gizmore: in my framework its different.... var is string, and value is runtime object
[16:17:02] gizmore: static check everywhere is too much overhead
[16:18:39] wilbert: has joined #ruby
[16:19:37] rouget430__: has joined #ruby
[16:26:38] amar_: has joined #ruby
[16:28:26] amarks: has joined #ruby
[16:29:57] gizmore: YARD and AptanaStudio does not go well i guess
[16:30:10] gizmore: method = ::GDO::Login::Method::Logout.instance
[16:30:10] gizmore: method = gdo_module('Login').gdo_method('Logout') # get method
[16:30:27] gizmore: the upper one could # @return [self]
[16:30:53] gizmore: and IDE could know type
[16:32:29] Guest58336: has joined #ruby
[16:32:46] wontruefree: has joined #ruby
[16:32:54] konsolebox: "static check everywhere is too much overhead" let's wait for the benchmarks
[16:33:10] aakp: has joined #ruby
[16:33:50] hightower2: has joined #ruby
[16:34:56] karapetyan: has joined #ruby
[16:35:24] tty: has joined #ruby
[16:37:39] icy`: has joined #ruby
[16:38:05] orbyt_: has joined #ruby
[16:38:10] krawchyk: has joined #ruby
[16:38:22] LFF^: has joined #ruby
[16:41:41] SeepingN: has joined #ruby
[16:42:00] biberu: has joined #ruby
[16:42:07] andygeorge: has joined #ruby
[16:44:14] andygeorge: anyone know if there's a separate IRC channel for Ruby Security? I'm really curious about this new Sprockets finding: https://groups.google.com/forum/#!topic/ruby-security-ann/2S9Pwz2i16k
[16:44:23] r29v: has joined #ruby
[16:45:28] andygeorge: specifically, are there any known, working exploits for that yet?
[16:45:56] ldepandis: has joined #ruby
[16:48:14] kristofferR: has joined #ruby
[16:54:50] cagomez: has joined #ruby
[16:55:16] Nicmavr: has joined #ruby
[16:55:29] the_f0ster: has joined #ruby
[16:57:46] [Butch]: has joined #ruby
[16:58:34] \void: has joined #ruby
[17:03:36] amar_: has joined #ruby
[17:05:05] jcarl43: has joined #ruby
[17:05:45] chouhoul_: has joined #ruby
[17:05:59] chat_: has joined #ruby
[17:09:58] havenwood: gizmore: Steep is much more likely to get merged into Ruby than Sorbet, by the way: https://github.com/soutaro/steep#steep---gradual-typing-for-ruby
[17:12:40] Guest58336: has joined #ruby
[17:14:31] karapetyan: has joined #ruby
[17:15:18] clemens3: has joined #ruby
[17:18:42] wontruefree: has joined #ruby
[17:19:33] jcarl43: has joined #ruby
[17:20:07] cagomez: has joined #ruby
[17:27:44] p4p0l0: has joined #ruby
[17:28:24] p4p0l0_: has joined #ruby
[17:30:24] grilix: has joined #ruby
[17:42:22] dhollinger: has joined #ruby
[17:44:17] cagomez: has joined #ruby
[17:44:53] mzo: has joined #ruby
[17:45:16] chouhoulis: has joined #ruby
[17:45:20] cemez: has joined #ruby
[17:45:25] dr3wo: has joined #ruby
[17:47:36] goodnight: has joined #ruby
[17:49:03] __goodnight__: has joined #ruby
[17:49:40] ElFerna: has joined #ruby
[17:52:28] Guest58336: has joined #ruby
[17:54:31] dar123: has joined #ruby
[17:54:55] grilix: has joined #ruby
[17:55:03] roamingdog: has joined #ruby
[17:57:23] chris349: has joined #ruby
[18:01:13] r29v: has joined #ruby
[18:02:40] Guest58336: has joined #ruby
[18:03:21] beilabs: has joined #ruby
[18:03:22] kristoff_: has joined #ruby
[18:04:04] mtkd: has joined #ruby
[18:10:18] mikecmpbll: has joined #ruby
[18:20:58] mzo: has joined #ruby
[18:23:27] ellcs: has joined #ruby
[18:27:19] zachk: has joined #ruby
[18:27:19] zachk: has joined #ruby
[18:30:04] __goodnight__: has joined #ruby
[18:31:12] mtkd: has joined #ruby
[18:33:14] skryking: has joined #ruby
[18:33:26] roamingdog: has joined #ruby
[18:34:16] roamingdog: has joined #ruby
[18:35:06] roamingdog: has joined #ruby
[18:35:16] skryking: has joined #ruby
[18:35:52] roamingdog: has joined #ruby
[18:36:42] roamingdog: has joined #ruby
[18:37:27] roamingdog: has joined #ruby
[18:47:42] Guest58336: has joined #ruby
[18:48:36] mtkd: has joined #ruby
[18:49:23] DoubleMalt: has joined #ruby
[18:50:26] Beams: has joined #ruby
[18:50:32] SeepingN_: has joined #ruby
[18:53:12] donnie: has joined #ruby
[18:59:19] wontruefree: has joined #ruby
[19:00:21] chouhoul_: has joined #ruby
[19:06:17] ElFerna: has joined #ruby
[19:08:26] gizmore: havenwood: do you like active-record?
[19:09:37] gizmore: I am working on my own DBA, quite successfully
[19:10:09] amar: has joined #ruby
[19:10:34] donnie: has joined #ruby
[19:17:26] tdy: has joined #ruby
[19:19:08] cagomez: has joined #ruby
[19:21:59] GodFather: has joined #ruby
[19:25:06] nowhere_man: has joined #ruby
[19:25:59] __goodnight__: has joined #ruby
[19:28:21] roamingdog: has joined #ruby
[19:34:51] cagomez: has joined #ruby
[19:34:56] kapil___: has joined #ruby
[19:37:27] Guest58336: has joined #ruby
[19:37:29] nowhere_man: has joined #ruby
[19:39:13] dogweather: has joined #ruby
[19:39:36] tvw: has joined #ruby
[19:41:02] donnie_1: has joined #ruby
[19:42:55] gizmore: havenwood: fishing for compliments: http://railsbin.wechall.net/pastes/1742
[19:43:54] gizmore: havenwood: note that GDT_IP is an own type that knows how to behave in a db, form, table, etc
[19:44:00] gizmore: this holds for all GDT
[19:44:15] gizmore: code reuse at it's best :)
[19:44:18] orbyt_: has joined #ruby
[19:47:40] Guest58336: has joined #ruby
[19:50:29] StarSeed0000: has joined #ruby
[19:50:35] cagomez: has joined #ruby
[19:51:22] ElFerna: has joined #ruby
[19:52:39] Eiam: has joined #ruby
[19:56:33] sameerynho: has joined #ruby
[20:02:33] Guest58336: has joined #ruby
[20:05:16] ski7777: has joined #ruby
[20:06:33] cagomez: has joined #ruby
[20:08:08] ElFerna: has joined #ruby
[20:09:51] chouhoulis: has joined #ruby
[20:10:07] ruby-lang449: has joined #ruby
[20:12:34] Guest58336: has joined #ruby
[20:12:56] dogweather: has joined #ruby
[20:14:19] Mike11: has joined #ruby
[20:15:27] akaiiro: has joined #ruby
[20:16:40] jenrzzz: has joined #ruby
[20:16:41] jenrzzz: has joined #ruby
[20:19:41] dionysus69: has joined #ruby
[20:24:09] kevinburke: has joined #ruby
[20:25:50] GodFather: has joined #ruby
[20:28:08] baweaver: Woo, new article - https://medium.com/square-corner-blog/challenge-table-of-contents-generator-c99171fde831
[20:28:20] ElFerna: has joined #ruby
[20:30:08] Eiam: wow I really want to stab docker in the face
[20:30:16] Eiam: what horror have I inflicted onto my repo
[20:31:00] karapetyan: has joined #ruby
[20:32:00] amar: has joined #ruby
[20:32:35] baweaver: Eiam: Would you call it cargo container culting? XD
[20:33:00] Eiam: I dont get why people are in their dockerfile copying the gemfile and gemfile.lock over; its a part of your /app anyway and would be copied over
[20:33:38] Eiam: why copy . /app then copy gemfile too, I must be missing something obvious. I guess thats a #docker question
[20:34:08] Eiam: baweaver: ugh, I just wanted to split out the place I do work from the OS I'm currently running, so that where I develop is as close as possible to where it runs. Thats not too much to ask right?
[20:34:41] Eiam: 5 containers later, docker composing my docker instances runnning my docker containers trying to alias these 500 word long docker calls fml
[20:35:04] Eiam: fuck it, ill just dev on 10.14 and deploy on ubuntu and deal with the difference that crop up
[20:35:26] gizmore: i once wrote a game with docker spawning abusing configs to detect running gameservers and proxy them around :)
[20:35:41] gizmore: well.... someone else wrote the game... i dockerized it and built a swarm master
[20:35:55] Eiam: I *think* docker-compose is just a more complicated iteration of the Procfile
[20:36:17] gizmore: my boss later agreed when i told him to use my non-docker swarmed version (less overhead)
[20:36:48] gizmore: only advantage would be easier deployment on some special stacks (hopefully)
[20:37:55] gizmore: GDO::User::GDO_User.blank(user_name: Eiam).insert .... what is the equivalent in ActiveRecord?
[20:38:17] gizmore: GDO::User::GDO_User.create_with(user_name: Eiam) ?
[20:38:30] Eiam: I don't use rails sorry
[20:38:35] Eiam: not since like, rails 2
[20:38:40] gizmore: rails is slow as hell
[20:38:42] Eiam: Sinatra for life
[20:38:52] gizmore: activerecord adds unnecessary complexity
[20:39:21] gizmore: should try sequel
[20:39:26] gizmore: can you add own datatypes?
[20:39:45] gizmore: like "Rot13 column"?
[20:39:56] Eiam: I don't see why not?
[20:40:05] gizmore: in activerecord it would be a pita
[20:40:16] gizmore: adding own column types is not easy there
[20:40:45] gizmore: which makes you write a lot of validators for columns you would want to re-use
[20:40:57] gizmore: and write more dup code for your "wanted to reuse fields"
[20:47:26] p4p0l0: has joined #ruby
[20:47:47] Eiam: hmm maybe jruby
[20:49:27] Eiam: anything I should watch out for if I chase down moving from ruby to jruby?
[20:49:48] Eiam: looks like just some gems might not work
[20:49:57] gizmore: the toolchain is different too, i guess
[20:50:07] gizmore: in ruby it is almost F5 to try again :)
[20:50:36] gizmore: jruby needs to setup some things and the toolchain is maybe more complicated? --- share your exp
[20:52:58] hightower2: Eiam, some things might not be atomic in jruby like they are in ruby
[20:54:05] r29v: has joined #ruby
[20:57:37] Guest58336: has joined #ruby
[21:00:07] ams__: has joined #ruby
[21:01:19] ElFerna: has joined #ruby
[21:01:37] tAn: has joined #ruby
[21:03:47] herbmillerjr: has joined #ruby
[21:05:23] karapetyan: has joined #ruby
[21:07:38] Guest58336: has joined #ruby
[21:08:47] karapety_: has joined #ruby
[21:08:55] dionysus70: has joined #ruby
[21:09:04] workmad3: has joined #ruby
[21:21:00] cbz: has joined #ruby
[21:21:23] StarSeed0000: Eiam, the idea is that if you copy the gemfile over first, then gem install, that whole process can be cached
[21:22:30] StarSeed0000: Eiam, since it's less common that you will be modifying gems, it just makes development that much faster. I have projects that take 5 minutes to install all the gems, I don't want to wait around for that every time I want to build my image
[21:22:59] t0xik: has joined #ruby
[21:24:54] StarSeed0000: If you're not interested in that then copying the whole application in one swoop is perfectly fine.
[21:24:54] roamingdog: has joined #ruby
[21:25:33] p4p0l0: has joined #ruby
[21:25:39] roamingdog: has joined #ruby
[21:26:29] roamingdog: has joined #ruby
[21:27:15] roamingdog: has joined #ruby
[21:28:05] cyberg: has joined #ruby
[21:28:05] roamingdog: has joined #ruby
[21:29:43] Azure: has joined #ruby
[21:31:57] postmodern: has joined #ruby
[21:41:51] jottr: has joined #ruby
[21:42:02] the_f0ster: has joined #ruby
[21:50:09] ElFerna: has joined #ruby
[21:52:39] Guest58336: has joined #ruby
[21:54:06] cthulchu_: hey folks, can I pass a regular expression as an argument into a function that then will .test() it?
[21:54:12] cthulchu_: against something
[21:55:18] cthulchu_: or better yet... can I pass a string OR a regex into a method. And that method will check if they .type_of() is not string then .test() it
[21:56:32] gizmore: cthulchu_: usually the answer to _can_ questions in ruby yield 'yes' :P
[21:56:50] cthulchu_: hehehehe, I noticed that :)
[21:57:11] cthulchu_: it's just in JS it's difficult to test against a regex that is in a variable
[21:57:19] gizmore: >>/hey/.class.name
[21:57:22] cthulchu_: one has to create a regex object first, using new
[21:57:23] gizmore: my eval no work?
[21:57:28] gizmore: << /hey/.class.name
[21:57:31] gizmore: >> /hey/.class.name
[21:57:38] cthulchu_: just .class
[21:57:45] gizmore: try my code
[21:57:46] elomatreb: You need to be authenticated to IRC to use the bot
[21:57:48] cthulchu_: >>/hey/.class
[21:57:49] ruby[bot]: cthulchu_: # => Regexp (https://eval.in/1023737)
[21:57:53] cthulchu_: all is good
[21:58:02] cthulchu_: >>/hey/.class.name
[21:58:03] ruby[bot]: cthulchu_: # => "Regexp" (https://eval.in/1023740)
[21:58:15] cthulchu_: I love Ruby. I do
[21:58:15] elomatreb: Stringified name
[21:58:18] gizmore: thanks elomatreb
[21:58:33] gizmore: ruby is awesome
[21:58:38] gizmore: just dont stick to rails
[21:58:50] cthulchu_: I don't even think we use Rails here
[21:58:55] cthulchu_: how do I check it?
[21:59:01] cthulchu_: I don't remember installing rails
[21:59:09] gizmore: is there a Gemfile?
[21:59:26] gizmore: paste the contents of /config/secrets.yml then
[21:59:51] elomatreb: Anyway: You can pass around regexes, and interpolate strings and regexes into them
[22:00:15] gizmore: the question also asked about how to distingush between string and regexp
[22:00:26] cthulchu_: secrets,yml
[22:00:27] gizmore: >> /foo/.is_a?(Regexp)
[22:00:28] ruby[bot]: gizmore: # => true (https://eval.in/1023759)
[22:00:32] cthulchu_: gonna locate it immediately
[22:00:34] gizmore: >> /foo/.is_a?(String)
[22:00:36] ruby[bot]: gizmore: # => false (https://eval.in/1023761)
[22:01:15] elomatreb: That's one strategy, or if you explicitly want to accept both strings and regexes to match something you can just interpolate them
[22:01:43] cthulchu_: I don't have secrets.yml
[22:01:44] elomatreb: >> a = "a+"; /#{a}/.match?("aaaa")
[22:01:45] ruby[bot]: elomatreb: # => undefined method `match?' for /a+/:Regexp ...check link for more (https://eval.in/1023769)
[22:01:58] elomatreb: (bot is old)
[22:02:23] cthulchu_: >>p /\s*/.test(" ")
[22:02:24] ruby[bot]: cthulchu_: # => private method `test' called for /\s*/:Regexp (NoMethodError) ...check link for more (https://eval.in/1023774)
[22:02:42] Guest58336: has joined #ruby
[22:03:01] elomatreb: That's JS you're thinking of :P
[22:03:54] cthulchu_: I thought regex methods are quite similar across langs
[22:05:14] cthulchu_: >>puts /.*/.methods.sort
[22:05:15] ruby[bot]: cthulchu_: # => ! ...check link for more (https://eval.in/1023782)
[22:05:20] cthulchu_: >>puts /.*/.class.methods.sort
[22:05:21] ruby[bot]: cthulchu_: # => ! ...check link for more (https://eval.in/1023783)
[22:05:35] cthulchu_: >>p /.*/.class.methods.sort
[22:05:36] ruby[bot]: cthulchu_: # => [:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :__id__, :__send__, :allocate, :ancestors, :a ...check link for more (https://eval.in/1023784)
[22:06:02] cthulchu_: >>p "qwe".class.methods.sort
[22:06:18] cthulchu_: errr... it ignores me now? :(
[22:06:29] elomatreb: If you want to play around a local pry session is probably more worthwhile
[22:06:34] elomatreb: ratelimit I think
[22:06:43] cthulchu_: >>p "qwe".class.methods.sort
[22:06:44] ruby[bot]: cthulchu_: # => [:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :__id__, :__send__, :allocate, :ancestors, :a ...check link for more (https://eval.in/1023787)
[22:06:53] cthulchu_: so I can't get them easily
[22:07:02] cthulchu_: ah, maybe it's a partial output
[22:07:12] elomatreb: Can't get what easily?
[22:07:13] cthulchu_: it is indeed
[22:07:18] cthulchu_: regex methods
[22:07:28] cthulchu_: they're all there, in the eval page
[22:07:55] elomatreb: You can pass false to the `method` method and it will exclude inherited methods
[22:08:36] cthulchu_: >>p "qwe".class.methods(false)
[22:08:37] ruby[bot]: cthulchu_: # => [:try_convert] ...check link for more (https://eval.in/1023788)
[22:09:28] cthulchu_: I like how open the language is
[22:09:37] cthulchu_: seems naked.
[22:09:58] elomatreb: Mh, I think I misremembered that, passing false there does something slightly different
[22:10:32] elomatreb: It's both a blessing and a curse, anyone and any random gem can come and modify core classes which may or may not break other gems down the line
[22:10:39] elomatreb: And only convention protects against this
[22:11:02] cthulchu_: that's why I would never use it for serious projects
[22:11:12] cthulchu_: also any dev can come and break random stuff
[22:11:28] cthulchu_: I prefer strictness
[22:11:41] cthulchu_: when it's reasonable
[22:17:48] ElFerna: has joined #ruby
[22:25:14] KeyJoo: has joined #ruby
[22:25:17] RougeR: has joined #ruby
[22:25:17] RougeR: has joined #ruby
[22:29:32] p4p0l0: has joined #ruby
[22:31:28] orbyt_: has joined #ruby
[22:37:31] venmx: has joined #ruby
[22:38:51] cschneid_: has joined #ruby
[22:42:31] Guest58336: has joined #ruby
[22:46:28] Xeago_: has joined #ruby
[22:47:43] Eiam: starseed0000: ah, I see, I guess that does make sense
[22:48:12] Eiam: starseed0000: I think I am going to try to avoid docker and instead just target the jvm using JRuby so my distribution is a .jar and I don't need to worry a bout what platform I'm on for development
[22:48:30] ElFerna: has joined #ruby
[22:49:07] Eiam: that requires some other changes to my project, like removing thin and so on, but thats all stuff I've done before and isn't shoving some whole new huge stack onto my applications in a sort of node.js/module manner I guess. just feels not as heavy, setting aside "jvm" for a minute =)
[22:49:50] Eiam: from a deployment standpoint my endpoint is very JVM focused and .jars are more of a blessed path than any thing else so it elevates me to first class support to provide a .jar
[22:52:47] dendazen: has joined #ruby
[22:57:54] roamingdog: has joined #ruby
[22:59:07] dogweather: has joined #ruby
[22:59:30] Eiam: oh boy sure hope I can still use pry on jrub
[23:00:47] Zarthus: if you couldn't use pry on jruby i'd wonder what the appeal to jruby would be :P
[23:01:19] Zarthus: I couldn't think of a more useful gem.
[23:02:02] Eiam: i know hence my moment of panic
[23:02:16] Eiam: the googles show someone updated it in 2016
[23:02:56] chouhoulis: has joined #ruby
[23:04:03] chouhoul_: has joined #ruby
[23:05:04] chouhoul_: has joined #ruby
[23:06:10] chouhoul_: has joined #ruby
[23:07:15] chouhoulis: has joined #ruby
[23:08:29] chouhoul_: has joined #ruby
[23:09:28] workmad3: has joined #ruby
[23:09:41] chouhoul_: has joined #ruby
[23:10:46] chouhoul_: has joined #ruby
[23:11:48] chouhoul_: has joined #ruby
[23:12:57] chouhoulis: has joined #ruby
[23:13:11] dogweather: has joined #ruby
[23:13:52] chouhoul_: has joined #ruby
[23:14:58] chouhoul_: has joined #ruby
[23:16:03] chouhoul_: has joined #ruby
[23:17:09] chouhoul_: has joined #ruby
[23:18:27] chouhoulis: has joined #ruby
[23:19:32] chouhoul_: has joined #ruby
[23:20:40] chouhoul_: has joined #ruby
[23:21:26] cloaked1: has joined #ruby
[23:21:30] chouhoul_: has joined #ruby
[23:22:28] Guest58336: has joined #ruby
[23:22:40] chouhoul_: has joined #ruby
[23:23:47] chouhoulis: has joined #ruby
[23:25:01] chouhoul_: has joined #ruby
[23:25:55] chouhoul_: has joined #ruby
[23:26:10] dogweather: has joined #ruby
[23:27:05] chouhoul_: has joined #ruby
[23:27:58] ElFerna: has joined #ruby
[23:28:21] chouhoul_: has joined #ruby
[23:28:26] cjohnson: jrub, that's a brand of lubricant right
[23:29:11] chouhoulis: has joined #ruby
[23:29:20] c0ncealed2: has joined #ruby
[23:29:38] knight33: has joined #ruby
[23:30:33] chouhoul_: has joined #ruby
[23:31:30] chouhoul_: has joined #ruby
[23:32:02] Zarthus: chouh____, chouhou__, chouhoulis: fix your connection.
[23:32:30] chouhoul_: has joined #ruby
[23:32:30] Guest58336: has joined #ruby
[23:32:45] CBke: has joined #ruby
[23:32:53] Radar: !connection chouh____
[23:32:53] ruby[bot]: +bbbb chouhoulis!*@*$#ruby-fix-your-connection chouhoul_!*@*$#ruby-fix-your-connection chouhou__!*@*$#ruby-fix-your-connection chouho___!*@*$#ruby-fix-your-connection
[23:32:55] ruby[bot]: +bb chouh____!*@*$#ruby-fix-your-connection *!*@50-207-64-46-static.hfc.comcastbusiness.net$#ruby-fix-your-connection
[23:32:55] ruby[bot]: ruby[bot] kicked chouho___: join/part detected
[23:32:55] ruby[bot]: ruby[bot] kicked chouhoulis: join/part detected
[23:32:55] ruby[bot]: ruby[bot] kicked chouh____: join/part detected
[23:32:57] ruby[bot]: ruby[bot] kicked chouhoul_: join/part detected
[23:32:57] ruby[bot]: ruby[bot] kicked chouhou__: join/part detected
[23:32:58] Radar: !connection chouhoul_
[23:33:22] Radar: Thanks Zarthus.
[23:37:47] Guest58336: has joined #ruby
[23:41:44] ElFerna: has joined #ruby
[23:42:37] roamingdog: has joined #ruby
[23:43:25] anjen: has joined #ruby
[23:43:27] roamingdog: has joined #ruby
[23:44:01] dogweather: has joined #ruby
[23:44:13] roamingdog: has joined #ruby
[23:44:17] nickjj: has joined #ruby
[23:45:01] roamingdog: has joined #ruby
[23:48:44] ElFerna: has joined #ruby
[23:54:11] Eiam_: has joined #ruby
[23:54:44] r29v: has joined #ruby
[23:54:49] Eiam_: hmm, okay so pry does need a special thing =/
[23:54:52] jzhu: has joined #ruby
[23:54:52] Eiam_: byebug doesn't work
[23:57:12] Eiam_: $ gem install pry-debugger-jruby; installs the gem... Successfully installed pry-debugger-jruby-1.2.1-java but then in bundle install, it fails what....
[23:57:16] Eiam_: Could not find gem 'pry-debugger-jruby' in rubygems repository
[23:57:16] Eiam_: https://rubygems.org/ or installed locally.
[23:58:03] r29v: has joined #ruby