« Back to channel list

#ruby - 14 March 2018

« Back 1 day Forward 1 day »
[00:01:01] dmitriy_: has joined #ruby
[00:02:25] roca: has joined #ruby
[00:03:19] rikkipitt: has joined #ruby
[00:06:02] dmitriy_: has joined #ruby
[00:09:07] orbyt_: has joined #ruby
[00:10:57] ramfjord: has joined #ruby
[00:11:00] dmitriy_: has joined #ruby
[00:12:55] rexb0t: has joined #ruby
[00:14:14] jottr: has joined #ruby
[00:16:01] dmitriy_: has joined #ruby
[00:21:00] dmitriy_: has joined #ruby
[00:25:09] nicesignal: has joined #ruby
[00:25:25] hahuang61: has joined #ruby
[00:26:02] dmitriy_: has joined #ruby
[00:26:10] jottr: has joined #ruby
[00:27:17] RedNifre: has joined #ruby
[00:27:49] yashi: has joined #ruby
[00:27:53] ChaosBringer: has joined #ruby
[00:28:06] yashi: Is there something like ruby -run -e httpd . -p 9090, but for https?
[00:28:36] RedNifre: Hi. Is there a way to convert a string with length 14 bytes to an integer and back? Just by interpreting all the bytes as one big number? E.g. 65 should turn into a string with A and 13 NUL bytes.
[00:29:54] RedNifre: I mean I guess I can do it manually somehow but I was wondering if there was an elegant way to do this.
[00:30:49] RedNifre: Hm, looks like I could use Array#pack and String#unpack...
[00:31:05] dmitriy_: has joined #ruby
[00:34:12] kapil___: has joined #ruby
[00:36:02] dmitriy_: has joined #ruby
[00:37:56] RedNifre: ...but what's the inverse of "Hey".bytes.to_a ?
[00:38:58] eam: RedNifre: [72, 101, 121].pack "c*"
[00:40:31] eam: and "Hey".bytes.to_a is rewritten as "Hey".unpack "c*"
[00:40:37] RedNifre: eam nice, I only have to add a .force_encoding('utf-8') to that to deal with the multi byte characters :)
[00:41:05] dmitriy_: has joined #ruby
[00:41:13] eam: `perldoc -f pack` will show you how to use pack/unpack
[00:41:29] eam: c is for 8 bit bytes, s is for 16bit, l is for 32bit, etc
[00:41:33] RedNifre: hm, unpack gives me negative numbers.
[00:41:44] jottr: has joined #ruby
[00:41:46] eam: you can use C for unsigned 8 bit
[00:41:48] eam: c is signed
[00:41:54] eam: check perldoc -f pack :)
[00:42:07] RedNifre: I'll play around with it :)
[00:42:11] bambanx: has joined #ruby
[00:43:49] zenspider: eam: perldoc??
[00:43:58] eam: I mean, do you know of a better doc for pack? :)
[00:44:09] zenspider: VERY detailed
[00:44:26] eam: that is ... actually not bad at all
[00:44:30] jenrzzz: has joined #ruby
[00:44:30] jenrzzz: has joined #ruby
[00:44:37] zenspider: (almost too detailed... at least it needs some good examples)
[00:44:40] RedNifre: Is there a simple way to convert an int to a byte array or do I have to chip away at it with modulo?
[00:45:08] zenspider: um... maybe you're not getting through, eam. :P
[00:45:25] havenwood: 42.digits(2) #=> [0, 1, 0, 1, 0, 1]
[00:45:56] eam: [2054450793].pack "l"
[00:46:02] dmitriy_: has joined #ruby
[00:46:07] bmurt: has joined #ruby
[00:47:06] eam: [1919116659, 1663071333, 1684366447, 1936026912, 1701273971, 1868832883, 544483182, 1819043188, 1701344288, 1634038816, 1919248483].pack "l*"
[00:51:02] dmitriy_: has joined #ruby
[00:52:11] workmad3: has joined #ruby
[01:00:42] ramfjord: has joined #ruby
[01:05:12] captainproton_: has joined #ruby
[01:06:06] dmitriy_: has joined #ruby
[01:10:16] jottr: has joined #ruby
[01:11:02] dmitriy_: has joined #ruby
[01:11:47] bmurt: has joined #ruby
[01:12:36] alfiemax: has joined #ruby
[01:12:58] houhoulis: has joined #ruby
[01:13:44] tolerablyjake: has joined #ruby
[01:15:32] arescorpio: has joined #ruby
[01:16:06] dmitriy_: has joined #ruby
[01:20:23] nowhereman_: has joined #ruby
[01:21:06] dmitriy_: has joined #ruby
[01:21:24] jottr: has joined #ruby
[01:26:06] dmitriy_: has joined #ruby
[01:30:20] jeffreylevesque: has joined #ruby
[01:31:04] dmitriy_: has joined #ruby
[01:31:32] hahuang61: has joined #ruby
[01:34:54] jottr: has joined #ruby
[01:36:07] dmitriy_: has joined #ruby
[01:38:58] xuyuheng: has joined #ruby
[01:41:07] dmitriy_: has joined #ruby
[01:43:19] n0m4d1c: has joined #ruby
[01:44:44] jottr: has joined #ruby
[01:46:07] dmitriy_: has joined #ruby
[01:46:26] c0ncealed: has joined #ruby
[01:51:08] dmitriy_: has joined #ruby
[01:53:46] darkhanb: has joined #ruby
[01:54:59] hahuang65: has joined #ruby
[01:55:41] hahuang65: has joined #ruby
[01:55:41] alfiemax: has joined #ruby
[01:55:55] jottr: has joined #ruby
[01:56:03] dmitriy_: has joined #ruby
[01:57:25] hahuang65: has joined #ruby
[01:59:25] cschneid: has joined #ruby
[02:01:03] dmitriy_: has joined #ruby
[02:06:16] dinfuehr_: has joined #ruby
[02:09:59] jeffreylevesque_: has joined #ruby
[02:11:07] jottr: has joined #ruby
[02:16:10] hahuang65: has joined #ruby
[02:19:56] RalfieRoo: has joined #ruby
[02:23:42] RalfieRoo: has left #ruby: ()
[02:25:42] jottr: has joined #ruby
[02:34:40] jottr: has joined #ruby
[02:38:18] mtkd: has joined #ruby
[02:43:39] jottr: has joined #ruby
[02:46:40] gizmore|2: has joined #ruby
[02:49:42] cdg: has joined #ruby
[02:51:27] jenrzzz: has joined #ruby
[02:52:31] workmad3: has joined #ruby
[02:52:57] mrBen2k2k2k: has joined #ruby
[02:52:57] Jameser: has joined #ruby
[02:57:21] jordanm: has joined #ruby
[02:58:45] jottr: has joined #ruby
[03:05:09] jottr: has joined #ruby
[03:14:10] jottr: has joined #ruby
[03:15:37] n0m4d1c: has joined #ruby
[03:16:34] milardovich: has joined #ruby
[03:18:50] mrush: has joined #ruby
[03:20:34] jottr: has joined #ruby
[03:24:23] nadir: has joined #ruby
[03:29:30] yxhuvud: has joined #ruby
[03:30:30] codelurker: has joined #ruby
[03:35:04] jottr: has joined #ruby
[03:37:03] milardov_: has joined #ruby
[03:38:57] nullset681: has joined #ruby
[03:42:26] jottr: has joined #ruby
[03:48:24] kn-928: has joined #ruby
[03:50:21] jottr: has joined #ruby
[03:54:09] govg: has joined #ruby
[03:55:15] cagomez: has joined #ruby
[03:56:43] cschneid: has joined #ruby
[03:58:16] yxhuvud: has joined #ruby
[03:58:50] pastorinni: has joined #ruby
[03:59:28] jottr: has joined #ruby
[04:01:26] nachoman: has joined #ruby
[04:05:49] detectiveaoi: has joined #ruby
[04:07:13] jottr: has joined #ruby
[04:13:04] gix: has joined #ruby
[04:13:34] kn-928: has joined #ruby
[04:13:56] gil_: has joined #ruby
[04:13:56] gil_: has joined #ruby
[04:15:40] eam: has joined #ruby
[04:19:07] CodeBug: has joined #ruby
[04:19:22] jottr: has joined #ruby
[04:20:27] CodeBug: has joined #ruby
[04:25:15] trautwein: has joined #ruby
[04:25:17] milardovich: has joined #ruby
[04:29:10] Puffball: has joined #ruby
[04:30:13] jottr: has joined #ruby
[04:30:42] milardovich: has joined #ruby
[04:37:27] cschneid: has joined #ruby
[04:37:58] jottr: has joined #ruby
[04:43:30] mtkd: has joined #ruby
[04:44:38] guacamole: has joined #ruby
[04:44:38] guacamole: has joined #ruby
[04:46:39] jenrzzz: has joined #ruby
[04:46:39] jenrzzz: has joined #ruby
[04:51:58] jottr: has joined #ruby
[04:52:57] workmad3: has joined #ruby
[04:56:06] gix-: has joined #ruby
[04:56:50] cschneid: has joined #ruby
[04:59:10] cagomez: has joined #ruby
[05:07:06] jottr: has joined #ruby
[05:12:47] mjolnird: has joined #ruby
[05:13:53] anisha: has joined #ruby
[05:17:55] sauvin_: has joined #ruby
[05:20:12] advorak: has joined #ruby
[05:21:34] jottr: has joined #ruby
[05:32:24] sidx64: has joined #ruby
[05:36:02] jottr: has joined #ruby
[05:51:05] jottr: has joined #ruby
[05:51:31] sidx64: has joined #ruby
[05:52:29] kapil___: has joined #ruby
[05:56:20] cdg: has joined #ruby
[05:57:09] Ryzokuken: has joined #ruby
[05:57:54] eckhardt_: has joined #ruby
[05:59:43] jcarl43: has joined #ruby
[06:00:53] sidx64: has joined #ruby
[06:06:30] jottr: has joined #ruby
[06:17:34] RougeR: has joined #ruby
[06:17:34] RougeR: has joined #ruby
[06:19:20] Gnut: has joined #ruby
[06:19:59] jottr: has joined #ruby
[06:21:10] Jameser`: has joined #ruby
[06:29:56] jottr: has joined #ruby
[06:29:57] Yzguy: has joined #ruby
[06:30:01] nowhere_man: has joined #ruby
[06:34:26] aufi: has joined #ruby
[06:35:54] luminous: has joined #ruby
[06:38:50] sidx64_: has joined #ruby
[06:39:31] guacamole: has joined #ruby
[06:39:31] guacamole: has joined #ruby
[06:39:47] matti: has joined #ruby
[06:39:52] matti: has joined #ruby
[06:42:38] KeyJoo: has joined #ruby
[06:43:41] helpa-bot: has joined #ruby
[06:43:48] jottr: has joined #ruby
[06:44:17] rahul_bajaj: has joined #ruby
[06:44:35] apeiros__: has joined #ruby
[06:44:51] roshanavand: has joined #ruby
[06:45:17] mahlon_: has joined #ruby
[06:45:40] helpa: has joined #ruby
[06:46:13] morfin: has joined #ruby
[06:47:22] cliluw: has joined #ruby
[06:48:14] mtkd: has joined #ruby
[06:53:20] workmad3: has joined #ruby
[06:58:11] alex``: has joined #ruby
[06:59:19] jottr: has joined #ruby
[07:00:35] aufi_: has joined #ruby
[07:09:58] eckhardt_: has joined #ruby
[07:12:20] sidx64_: has joined #ruby
[07:13:14] jottr: has joined #ruby
[07:16:56] andikr: has joined #ruby
[07:18:04] sidx64: has joined #ruby
[07:20:21] reber: has joined #ruby
[07:27:00] jottr: has joined #ruby
[07:28:12] armyriad: has joined #ruby
[07:32:55] \void: has joined #ruby
[07:33:08] suukim: has joined #ruby
[07:33:43] conta: has joined #ruby
[07:36:13] jottr: has joined #ruby
[07:47:13] Yzguy: has joined #ruby
[07:48:05] guardianx: has joined #ruby
[07:49:52] jottr: has joined #ruby
[07:50:34] riotjones: has joined #ruby
[07:53:03] tAn: has joined #ruby
[08:03:14] jottr: has joined #ruby
[08:05:18] dionysus69: has joined #ruby
[08:08:04] dionysus69: has joined #ruby
[08:11:08] jottr: has joined #ruby
[08:12:30] cdg: has joined #ruby
[08:15:17] phaul: has joined #ruby
[08:16:16] ramfjord: has joined #ruby
[08:17:39] burgestrand: has joined #ruby
[08:17:45] TomyWork: has joined #ruby
[08:18:19] rahul_bajaj: has joined #ruby
[08:21:38] cschneid: has joined #ruby
[08:26:17] jottr: has joined #ruby
[08:28:59] Gnut: has joined #ruby
[08:30:16] oetjenj: has joined #ruby
[08:35:10] Sylario: has joined #ruby
[08:40:44] jottr: has joined #ruby
[08:43:15] Jameser: has joined #ruby
[08:47:07] aupadhye: has joined #ruby
[08:47:09] jottr: has joined #ruby
[08:48:52] klaas: has joined #ruby
[08:51:26] morfin60: has joined #ruby
[08:51:31] infernix: has joined #ruby
[08:51:31] moei: has joined #ruby
[08:53:38] jottr: has joined #ruby
[08:53:43] workmad3: has joined #ruby
[08:54:39] mr_rich101: has joined #ruby
[08:56:15] claudiuinberlin: has joined #ruby
[08:59:06] RougeR: has joined #ruby
[09:00:15] willmichael: has joined #ruby
[09:01:38] yohji: has joined #ruby
[09:03:32] mikecmpbll: has joined #ruby
[09:08:02] jottr: has joined #ruby
[09:10:26] guille-moe: has joined #ruby
[09:12:12] schneider: has joined #ruby
[09:14:12] jottr: has joined #ruby
[09:16:23] cdg: has joined #ruby
[09:17:50] cdg_: has joined #ruby
[09:19:03] ule: has joined #ruby
[09:20:36] oetjenj: has joined #ruby
[09:21:32] cdg: has joined #ruby
[09:22:32] Papierkorb: has joined #ruby
[09:23:14] willmichael: has joined #ruby
[09:23:29] Papierkorb: has left #ruby: ("Konversation terminated!")
[09:24:51] n008f4g_: has joined #ruby
[09:25:17] RougeR: has joined #ruby
[09:25:25] jottr: has joined #ruby
[09:25:26] cdg_: has joined #ruby
[09:28:27] tomphp: has joined #ruby
[09:29:05] cdg: has joined #ruby
[09:29:30] nchambers: has joined #ruby
[09:30:52] marr: has joined #ruby
[09:32:26] qba73: has joined #ruby
[09:33:46] Jameser: has joined #ruby
[09:36:46] qba73: has joined #ruby
[09:37:10] jottr: has joined #ruby
[09:38:10] Jameser: has joined #ruby
[09:42:02] tomphp: has joined #ruby
[09:44:41] mtkd: has joined #ruby
[09:47:12] jottr: has joined #ruby
[09:48:38] willmichael: has joined #ruby
[09:49:54] willmichael: has joined #ruby
[09:55:53] Beams: has joined #ruby
[09:56:30] dr3wo: has joined #ruby
[09:56:58] soniya29: has joined #ruby
[09:57:13] jottr: has joined #ruby
[10:00:31] tomphp: has joined #ruby
[10:09:05] yohji: has joined #ruby
[10:11:21] jottr: has joined #ruby
[10:14:39] troulouliou_div2: has joined #ruby
[10:15:29] oetjenj: has joined #ruby
[10:16:00] ramfjord: has joined #ruby
[10:17:12] sidx64: has joined #ruby
[10:18:04] tomphp: has joined #ruby
[10:26:57] jottr: has joined #ruby
[10:29:43] karapetyan: has joined #ruby
[10:35:49] jottr: has joined #ruby
[10:40:47] am55: has joined #ruby
[10:41:19] clemens3: has joined #ruby
[10:44:27] sidx64: has joined #ruby
[10:49:39] Jameser: has joined #ruby
[10:49:53] boshhead: has joined #ruby
[10:50:22] jottr: has joined #ruby
[10:50:40] marius: has joined #ruby
[10:53:11] schneider: has joined #ruby
[10:54:05] workmad3: has joined #ruby
[10:54:48] amatas_: has joined #ruby
[10:55:07] sidx64: has joined #ruby
[10:56:29] jottr: has joined #ruby
[11:02:02] sidx64: has joined #ruby
[11:02:08] amatas_: has joined #ruby
[11:06:03] workmad3: has joined #ruby
[11:07:05] jottr: has joined #ruby
[11:08:18] schneider: has joined #ruby
[11:11:01] karapetyan: has joined #ruby
[11:11:42] sidx64: has joined #ruby
[11:17:46] karapetyan: has joined #ruby
[11:19:25] jottr: has joined #ruby
[11:26:38] oetjenj: has joined #ruby
[11:27:17] tomphp: has joined #ruby
[11:27:33] jottr: has joined #ruby
[11:30:15] goatish: has joined #ruby
[11:30:41] tomphp: has joined #ruby
[11:31:10] KeyJoo: has joined #ruby
[11:32:47] tomphp: has joined #ruby
[11:36:40] ldnunes: has joined #ruby
[11:37:14] morfin60: has joined #ruby
[11:37:27] morfin60: can i somehow count objects allocated by Ruby by types?
[11:38:23] tomphp: has joined #ruby
[11:39:02] dminuoso: morfin60: ObjectSpace
[11:39:25] dminuoso: morfin60: I hope this is for playing/debugging only, and not some feature.
[11:39:47] dminuoso: >> ObjectSpace.each_object(String).count
[11:39:49] ruby[bot]: dminuoso: # => 10603 (https://eval.in/971760)
[11:40:46] jottr: has joined #ruby
[11:40:54] esObe: has joined #ruby
[11:42:22] n008f4g_: has joined #ruby
[11:42:37] morfin60: dminuoso, well i just want to find out which objects count is constantly growing
[11:45:30] dminuoso: morfin60: If applicable ruby-prof could be of interest.
[11:45:56] morfin60: i suspect something "leak"
[11:46:51] AJA4350: has joined #ruby
[11:47:00] Cavallari: has joined #ruby
[11:47:15] morfin60: i have Sidekiq performing some tasks and eventually it consumed all memory + all swap
[11:47:22] Cavallari1: has joined #ruby
[11:48:14] am55: has joined #ruby
[11:51:59] shinnya: has joined #ruby
[11:53:27] jottr: has joined #ruby
[11:57:04] Mia: has joined #ruby
[11:57:05] Mia: has joined #ruby
[12:00:03] roshanavand: has joined #ruby
[12:00:33] roshanavand: has joined #ruby
[12:01:33] jottr: has joined #ruby
[12:06:58] mikecmpb_: has joined #ruby
[12:09:59] synthroid: has joined #ruby
[12:14:20] sonOfRa: has joined #ruby
[12:15:39] ramfjord: has joined #ruby
[12:17:48] chouhoulis: has joined #ruby
[12:19:49] dr3wo: has joined #ruby
[12:19:54] karapetyan: has joined #ruby
[12:20:10] nickjj: has joined #ruby
[12:21:23] n0m4d1c: has joined #ruby
[12:23:00] kapil___: has joined #ruby
[12:25:03] tAn: has joined #ruby
[12:25:24] Psybur_: has joined #ruby
[12:29:31] keyjoo_: has joined #ruby
[12:31:08] Zaab1t: has joined #ruby
[12:32:33] luminous: has joined #ruby
[12:32:40] karapetyan: has joined #ruby
[12:34:25] bmurt: has joined #ruby
[12:35:18] dminuoso: morfin60: Then ObjectSpace is your better friend (if its an object leak)
[12:35:53] dminuoso: morfin60: There is a gem called memory_profiler, but I have no experience with it
[12:36:45] dminuoso: If its a memory leak, then you have to valgrind it.
[12:38:24] tvw: has joined #ruby
[12:41:08] _aeris_: has joined #ruby
[12:41:35] karapetyan: has joined #ruby
[12:44:04] karapetyan: has joined #ruby
[12:44:14] chouhoulis: has joined #ruby
[12:47:40] mikecmpbll: has joined #ruby
[12:49:05] tcopeland: has joined #ruby
[12:50:27] cdg: has joined #ruby
[12:50:36] morfin60: not sure it's real leak
[12:51:41] morfin60: well, i know some native extension can allocate and do not free memory but there is pretty low chance of this because whole thing consumes bunch of memory
[12:53:03] dminuoso: &ri ObjectSpace.trace_object_allocations_start
[12:53:03] `derpy: http://ruby-doc.org/stdlib-2.4.1/libdoc/objspace/rdoc/ObjectSpace.html#method-c-trace_object_allocations_start
[12:53:34] psychicist__: has joined #ruby
[12:53:50] dminuoso: morfin60: You can do other things do (just look at the class description), and finally `dump` it into a file (either human readable or json), and then work with that
[12:54:14] willmichael: has joined #ruby
[12:54:56] ramfjord: has joined #ruby
[12:55:13] dminuoso: morfin60: In my experience the most common cause is somehow maintaing references to objects where you shouldn't (or sometimes where you should be using WeakRef instead)
[12:55:20] dminuoso: morfin60: But use ObjectSpace to trace it down.
[12:55:46] dminuoso: morfin60: It's also possible the GC is misbehaving, so be sure to look at it too
[12:57:47] chouhoulis: has joined #ruby
[12:58:21] mtkd: has joined #ruby
[12:59:00] alex``: has joined #ruby
[13:01:14] dviola: has joined #ruby
[13:05:06] karapetyan: has joined #ruby
[13:07:32] oetjenj: has joined #ruby
[13:09:19] mrproper: has joined #ruby
[13:09:25] mrproper: hello there
[13:11:04] mrproper: Need help with this. I'm using Resolv.getaddress and rescuing from Resolv::ResolvError to see if a hostname exists but this is not handling problems with the DNS server itself (not listening, timeouts, filtered...) how should I control those problems? I can't find any suitable exception in the documentation apart from ResolvTimeout
[13:11:19] bmurt: has joined #ruby
[13:12:00] dminuoso: mrproper: Dont rethrow `Resolv::...` exceptions. Just make your own
[13:12:05] jcalla: has joined #ruby
[13:13:27] mrproper: dminuoso: I'm not trying to rethrow anything. I'm just catching that exception to get a list of hosts not in the dns
[13:14:16] dminuoso: mrproper: guard it with a `begin; rescue; ...; end`
[13:14:34] mrproper: dminuoso: wait, I'll paste the code in a gist. Will be way easier
[13:15:18] tomphp: has joined #ruby
[13:15:46] mtkd: has joined #ruby
[13:16:54] mrproper: dminuoso: so this is part of the code https://gist.github.com/anonymous/a81d252184c62ca71d920a00474a56e7 I check fo a list of hosts and if they are not in the dns I add them to an array to deal with them later. Now, if the dns is not available or I have a timeout or the url of the dns is wrong, the host will be added to the list too
[13:17:14] mrproper: I would like to control it in a better way
[13:18:35] mrproper: imagine that the ip of the dns server answers to pings but the server is down. I don't want to remove hosts just because of this
[13:20:02] cdg: has joined #ruby
[13:20:21] karapetyan: has joined #ruby
[13:20:39] gregf_: has joined #ruby
[13:21:16] desperek: has joined #ruby
[13:22:27] desperek: has joined #ruby
[13:24:56] willmichael: has joined #ruby
[13:25:33] Jameser: has joined #ruby
[13:28:24] dr3wo: has joined #ruby
[13:28:30] tomphp: has joined #ruby
[13:28:30] Axsuul: has joined #ruby
[13:29:54] DLSteve_: has joined #ruby
[13:30:13] tomphp: has joined #ruby
[13:30:26] karapetyan: has joined #ruby
[13:31:02] Psybur: has joined #ruby
[13:32:27] ltem: has joined #ruby
[13:32:43] sidx64: has joined #ruby
[13:37:09] memo1: has joined #ruby
[13:46:38] synthroid: has joined #ruby
[13:46:51] jottr: has joined #ruby
[13:46:53] oetjenj: has joined #ruby
[13:52:08] tomphp: has joined #ruby
[13:54:06] ryandv: has joined #ruby
[13:56:18] tomphp: has joined #ruby
[13:58:04] John_Ivan: has joined #ruby
[13:58:43] ledestin: has joined #ruby
[14:01:11] jrafanie: has joined #ruby
[14:03:44] ryandv: has joined #ruby
[14:07:26] rafik: has joined #ruby
[14:08:00] X-Jester: when using something like net-http or rest-client, is there a way to ignore a certain content type? specifically, can i configure one of these libraries to skip downloading a binary file if the link redirects to one? to save time and bandwidth?
[14:13:44] alfiemax: has joined #ruby
[14:14:30] sidx64: has joined #ruby
[14:15:38] chouhoulis: has joined #ruby
[14:16:16] jottr: has joined #ruby
[14:17:56] Rapture: has joined #ruby
[14:18:31] alex``: has joined #ruby
[14:19:05] oetjenj: has joined #ruby
[14:22:32] tomphp: has joined #ruby
[14:24:14] nicesignal: has joined #ruby
[14:24:47] burgestrand: has joined #ruby
[14:29:33] n008f4g_: has joined #ruby
[14:29:40] ltt: has joined #ruby
[14:29:57] tomphp: has joined #ruby
[14:32:42] jrafanie_: has joined #ruby
[14:32:50] bocaneri: has joined #ruby
[14:33:23] chouhoulis: has joined #ruby
[14:34:11] marius: has joined #ruby
[14:34:42] netherwolfe: has joined #ruby
[14:36:18] Psybur: has joined #ruby
[14:36:37] kn-928: has joined #ruby
[14:39:34] kn-928_: has joined #ruby
[14:39:54] rafik: has joined #ruby
[14:40:25] tomphp: has joined #ruby
[14:40:38] duckpuppy: has joined #ruby
[14:43:45] deathwishdave: has joined #ruby
[14:45:27] nowhere_man: has joined #ruby
[14:50:02] synthroid: has joined #ruby
[14:50:17] bocaneri: has joined #ruby
[14:53:24] tomphp: has joined #ruby
[14:53:30] cschneid: has joined #ruby
[14:54:54] tAn: has joined #ruby
[14:57:24] jrafanie: has joined #ruby
[14:58:24] oleo: has joined #ruby
[14:58:35] oetjenj: has joined #ruby
[14:58:43] cschneid: has joined #ruby
[14:58:52] alfiemax: has joined #ruby
[15:00:57] alex``: has joined #ruby
[15:02:44] kn-928: has joined #ruby
[15:02:53] ansraliant: has joined #ruby
[15:04:05] ltt: has joined #ruby
[15:09:59] mzo: has joined #ruby
[15:10:00] aufi: has joined #ruby
[15:13:27] rafik: has joined #ruby
[15:13:28] oetjenj: has joined #ruby
[15:16:35] SteenJobs: has joined #ruby
[15:16:56] ixti: has joined #ruby
[15:19:43] mzo: has joined #ruby
[15:19:52] pastorinni: has joined #ruby
[15:20:33] mzo: has joined #ruby
[15:23:40] jottr: has joined #ruby
[15:29:22] mzo: has joined #ruby
[15:31:34] synthroid: has joined #ruby
[15:32:31] Lytol: has joined #ruby
[15:33:46] rafik: has joined #ruby
[15:35:12] benharri: has joined #ruby
[15:38:59] oetjenj: has joined #ruby
[15:42:50] cdg: has joined #ruby
[15:45:35] ineb: X-Jester: no, what instance would do the content-type checking? in http, you make a request and get a response (commonly via tcp)
[15:48:43] rafik: has joined #ruby
[15:49:05] ryandv: has joined #ruby
[15:51:42] tomphp: has joined #ruby
[15:52:30] tolerablyjake: has joined #ruby
[15:59:20] troys: has joined #ruby
[15:59:38] rabajaj: has joined #ruby
[16:00:02] cagomez: has joined #ruby
[16:01:30] solocshaw: has joined #ruby
[16:06:10] rafik: has joined #ruby
[16:09:39] Asher1: has joined #ruby
[16:13:53] nicesignal: has joined #ruby
[16:18:27] conta: has joined #ruby
[16:18:28] raynold: has joined #ruby
[16:19:19] rippa: has joined #ruby
[16:19:35] ltt: has joined #ruby
[16:19:50] mikecmpbll: has joined #ruby
[16:20:17] guacamole: has joined #ruby
[16:20:17] guacamole: has joined #ruby
[16:20:22] roca: has joined #ruby
[16:20:59] X-Jester: is there any break between the MIME type being sent and the download continuing, or does it all come together?
[16:21:51] KeyJoo: has joined #ruby
[16:23:38] fiachetti: has joined #ruby
[16:24:05] oetjenj: has joined #ruby
[16:26:13] remix2000: has joined #ruby
[16:27:43] benharri: has joined #ruby
[16:28:10] nowhereman_: has joined #ruby
[16:29:03] chouhoulis: has joined #ruby
[16:30:31] n0m4d1c: has joined #ruby
[16:32:59] pilne: has joined #ruby
[16:35:37] tomphp: has joined #ruby
[16:35:44] karapetyan: has joined #ruby
[16:40:37] jcarl43: has joined #ruby
[16:43:35] darkhanb: has joined #ruby
[16:44:15] cdg: has joined #ruby
[16:45:06] [Butch]: has joined #ruby
[16:47:15] John_Ivan: has joined #ruby
[16:47:15] John_Ivan: has joined #ruby
[16:51:02] nachoman: has joined #ruby
[16:54:41] eckhardt_: has joined #ruby
[16:55:13] guacamole: has joined #ruby
[16:55:13] guacamole: has joined #ruby
[16:56:20] rafik: has joined #ruby
[16:58:02] mgraf: has joined #ruby
[16:59:28] mgraf: Hello, all
[17:06:19] imode: has joined #ruby
[17:13:08] RougeR: has joined #ruby
[17:13:08] RougeR: has joined #ruby
[17:17:42] jamesaxl: has joined #ruby
[17:19:10] dmitriy_: has joined #ruby
[17:19:50] Rapture: has joined #ruby
[17:24:11] dmitriy_: has joined #ruby
[17:24:32] \void: has joined #ruby
[17:25:59] mtkd: has joined #ruby
[17:26:25] kn-928: has joined #ruby
[17:28:17] ramfjord: has joined #ruby
[17:28:41] ltt: has joined #ruby
[17:29:11] dmitriy_: has joined #ruby
[17:34:11] dmitriy_: has joined #ruby
[17:38:37] marius: has joined #ruby
[17:38:45] willmichael: has joined #ruby
[17:39:11] dmitriy_: has joined #ruby
[17:42:43] jenrzzz: has joined #ruby
[17:43:46] yashi: has left #ruby: ()
[17:44:12] dmitriy_: has joined #ruby
[17:45:02] cdg: has joined #ruby
[17:45:50] jottr: has joined #ruby
[17:47:10] deathwishdave: has joined #ruby
[17:48:45] guacamole: has joined #ruby
[17:48:45] guacamole: has joined #ruby
[17:49:12] dmitriy_: has joined #ruby
[17:50:24] Rapture: has joined #ruby
[17:50:45] ltt: has joined #ruby
[17:55:30] postmodern: has joined #ruby
[18:00:00] jamesaxl: has joined #ruby
[18:02:12] Strepsils: has joined #ruby
[18:02:25] orbyt_: has joined #ruby
[18:06:45] workmad3_: has joined #ruby
[18:09:10] conta: has joined #ruby
[18:13:22] guacamole: has joined #ruby
[18:13:22] guacamole: has joined #ruby
[18:13:34] graft: has joined #ruby
[18:13:54] claudiuinberlin: has joined #ruby
[18:13:57] mikecmpbll: has joined #ruby
[18:14:14] graft: hey anyone ever work with hexadecimal floats? e.g. 0x3.243f
[18:14:25] graft: ruby doesn't like it
[18:14:38] graft: but i'm wondering how one would go from hex-float to decimal-float
[18:14:50] apeiros__: graft: no, no one *ever* did
[18:15:01] apeiros__: and yeah, ruby does not have a literal for hex floats
[18:15:07] Mia: has joined #ruby
[18:15:08] Mia: has joined #ruby
[18:15:17] graft: i meant "anyone who is here and awake"
[18:15:25] graft: "and cares to comment"
[18:15:45] tomphp: has joined #ruby
[18:15:48] Flisk: has joined #ruby
[18:15:50] apeiros: and the way you go from one base to another is always the same. a number is built as: ∑ digit * base ** position
[18:16:21] graft: yeah, i can write it myself if need be
[18:16:33] graft: just wondering if there is any nice builtin to help
[18:16:49] graft: so far i have found "%a" % myfloat, which goes decimal => float
[18:17:22] apeiros: but what would actually be nice is Float#to_s supporting a base
[18:18:03] graft: yeah also that
[18:18:29] apeiros: oh, didn't know about %a
[18:18:49] SeepingN: has joined #ruby
[18:18:54] graft: the inverse does not appear to exist
[18:19:41] jamesaxl: has joined #ruby
[18:21:14] mgraf: has anyone tried https://railslts.com/ ?
[18:21:46] apeiros: ?rails mgraf
[18:21:46] ruby[bot]: mgraf: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[18:23:42] mgraf: I'll avoid a long-winded retort – about how Rails is written in ruby, and that this channel should be open to those questions too, and just say: thanks. :-)
[18:24:16] ramfjord: has joined #ruby
[18:24:24] apeiros: mgraf: good decision :-p
[18:26:04] apeiros: mgraf: anyway, you had a question, and you got help. that help was getting directed at a better place.
[18:27:08] mgraf: I disagree, I got an answer, an answer is not _nesessarly_ help, but an answer none the less
[18:27:24] apeiros: *necessarily
[18:27:25] mgraf: so, thank you.
[18:27:51] mgraf: If it's not a method name, I may mispell it
[18:28:52] apeiros: you may also misspell a method name
[18:28:59] apeiros: the world won't end either
[18:29:49] elomatreb: But your script probably wil
[18:30:10] elomatreb: (I'll claim that was an intentional mistake)
[18:30:41] nadir: has joined #ruby
[18:41:09] marius: has joined #ruby
[18:45:47] cdg: has joined #ruby
[18:47:58] dmitriy_: has joined #ruby
[18:49:35] ltt: has joined #ruby
[18:52:57] softpedia_webapp: has joined #ruby
[18:52:59] schneider: has joined #ruby
[18:53:15] rafik: has joined #ruby
[18:53:15] dmitriy_: has joined #ruby
[18:54:31] pavelz: has joined #ruby
[18:54:58] guacamole: has joined #ruby
[18:57:33] connor_goodwolf: has joined #ruby
[18:57:58] dmitriy_: has joined #ruby
[18:58:27] rafik: has joined #ruby
[19:02:58] dmitriy_: has joined #ruby
[19:06:42] mgraf: has joined #ruby
[19:08:02] Dimik: has joined #ruby
[19:14:32] alex``: has joined #ruby
[19:15:54] Yzguy: has joined #ruby
[19:16:07] duckpuppy: has joined #ruby
[19:16:44] cagomez: has joined #ruby
[19:17:06] aufi: has joined #ruby
[19:17:09] dionysus69: has joined #ruby
[19:20:50] dr3wo: has joined #ruby
[19:25:04] rafik: has joined #ruby
[19:25:12] sameerynho: has joined #ruby
[19:25:14] mgraf: has joined #ruby
[19:26:07] eckhardt_: has joined #ruby
[19:26:25] kn-928: has joined #ruby
[19:28:38] duckpuppy: has joined #ruby
[19:30:24] anisha: has joined #ruby
[19:31:23] Axsuul: has joined #ruby
[19:32:03] karapetyan: has joined #ruby
[19:34:14] c0ncealed: has joined #ruby
[19:40:23] schneider: has joined #ruby
[19:43:34] memo1: has joined #ruby
[19:45:28] am55: has joined #ruby
[19:45:52] tolerablyjake: has joined #ruby
[19:46:17] RougeR: has joined #ruby
[19:46:34] cdg: has joined #ruby
[19:46:35] solocshaw: has joined #ruby
[19:47:15] cagomez: has joined #ruby
[19:51:36] orbyt_: has joined #ruby
[19:52:11] jenrzzz: has joined #ruby
[20:02:33] mgraf: has joined #ruby
[20:07:14] duckpuppy: has joined #ruby
[20:09:34] Mike11: has joined #ruby
[20:10:49] sidx64: has joined #ruby
[20:16:00] Mike11: has joined #ruby
[20:17:07] sidx64: has joined #ruby
[20:18:49] cagomez: has joined #ruby
[20:22:38] ryandv: has joined #ruby
[20:23:06] mgraf: has joined #ruby
[20:24:18] weaksauce: has joined #ruby
[20:25:10] orbyt_: has joined #ruby
[20:25:42] dmitriy_: has joined #ruby
[20:26:54] schneider: has joined #ruby
[20:27:26] p0p0pr37: has joined #ruby
[20:27:56] norm: has joined #ruby
[20:28:24] norm: has left #ruby: ()
[20:28:53] solocshaw: has joined #ruby
[20:30:08] guacamole: has joined #ruby
[20:30:36] dmitriy_: has joined #ruby
[20:33:38] karapetyan: has joined #ruby
[20:35:05] duckpuppy: has joined #ruby
[20:35:40] dmitriy_: has joined #ruby
[20:36:00] schneider: has joined #ruby
[20:36:56] John_Ivan: has joined #ruby
[20:36:57] John_Ivan: has joined #ruby
[20:40:37] dmitriy_: has joined #ruby
[20:41:53] karapetyan: has joined #ruby
[20:42:06] Tempesta: has joined #ruby
[20:45:06] schneider: has joined #ruby
[20:45:39] dmitriy_: has joined #ruby
[20:45:52] zenspider: mgraf: dude. please upgrade. Pay someone to do just that if you have to.
[20:46:10] mgraf: Yeah, I'm at a coffee shop. I'll log off
[20:46:13] mgraf: see ya guys :)
[20:46:34] zenspider: I am too? How is that relevant? I'm just saying that being on rails 3.2 these days doesn't make sense
[20:46:52] mgraf: Oh, you're talking about [redacted] - I thought you were talking about my crappy internet
[20:47:08] mgraf: Yes... we need to, we're going to move to 5 by Q4
[20:48:12] mgraf: We had a candidate tell us in some really kind words that we needed to upgrade _badly_ (we are aware) - on top of everything, it looks poor to potential canidates...
[20:49:23] pastorinni: has joined #ruby
[20:50:36] dmitriy_: has joined #ruby
[20:52:14] nicesignal: has joined #ruby
[20:54:16] schneider: has joined #ruby
[20:54:26] cdg: has joined #ruby
[20:55:38] dmitriy_: has joined #ruby
[20:56:48] ltt: has joined #ruby
[20:57:02] netherwolfe: has joined #ruby
[20:58:15] mgraf: @zenspider, where does Unit testing fall, #ruby or #rails?
[20:59:20] zenspider: it doesn't just look poor to candidates... the longer you go, the harder it'll be to upgrade.
[21:00:03] schneider: has joined #ruby
[21:00:10] zenspider: mgraf: we're happy to answer unit testing questions here... but not rails questions. If you're gonna ask things like "how do I test my controller action when it does X", then that really isn't a testing question and is more of a rails question
[21:00:40] dmitriy_: has joined #ruby
[21:00:41] mgraf: of course... It's insult to injury when we have people turn us down because of it...
[21:00:47] zenspider: I was going to offer my consulting services for said upgrade... but you're also hinting you don't have test coverage... THAT also looks bad to candidates
[21:01:05] sanscoeur: has joined #ruby
[21:01:27] jottr: has joined #ruby
[21:01:37] zenspider: like you're carrying a lit match walking through the middle of a gassy swamp
[21:01:59] mgraf: Huh, we actually _do_ have the test coverage. We're rocking 94%
[21:02:12] zenspider: that means nothing
[21:02:44] zenspider: less than nothing. if you think that means something, THAT means something, but the number is meaningless at this point.
[21:02:47] workmad3: has joined #ruby
[21:03:11] mgraf: How else could I convey that our test coverage is nearly the entire monolith ?
[21:03:25] mgraf: In this light conversation :)
[21:03:49] mgraf: I'd be interested to hear about your services, though. We could actually use it.
[21:04:03] zenspider: it doesn't say anything about the quality of your tests nor does it say that it is accurate. test coverage tools are a lie. You could have one controller test that winds up hitting all your models and you'll think that they're actually tested. That's a lie.
[21:05:17] duckpuppy: has joined #ruby
[21:05:38] dmitriy_: has joined #ruby
[21:05:44] ryandv: has joined #ruby
[21:08:12] mgraf: I completely agree. Our recent (past 1.5 years) - have been very explicit. We're hitting every exception, both red and green path testing. We do have some code that is very old (when we were a scrapy start-up), that covers depricated controllers and models. Our clients are still using (some) of the old endpoints, but we're in the process of yanking them. It just takes time...
[21:08:15] dr3wo: has joined #ruby
[21:09:01] tomphp: has joined #ruby
[21:10:39] dmitriy_: has joined #ruby
[21:15:36] dmitriy_: has joined #ruby
[21:15:37] desperek: how can i do something in .each only if it's not last element?
[21:15:51] mgraf: can you give an example?
[21:16:44] rafik: has joined #ruby
[21:16:50] desperek: mgraf, [1,2,3].each do |n| \- n.capitalize (something that's quite logic here) \- if not last -> ',' \ end
[21:17:37] desperek: let me do a gist
[21:17:56] mgraf: yeah, that'd be helpful
[21:18:29] dminuoso: desperek: a[1..-2]
[21:18:56] desperek: mgraf, https://gist.github.com/dracconi/326216bd7075f095c553d548dba0e223
[21:18:59] desperek: something like that
[21:19:08] tolerablyjake: has joined #ruby
[21:19:13] desperek: yup, i have it in haml, i suppose that may complicate some things
[21:19:18] dminuoso: >> arr = [1,2,3]; arr.take(arr.length - 1)
[21:19:19] ruby[bot]: dminuoso: # => [1, 2] (https://eval.in/972109)
[21:19:24] dminuoso: >> arr = [1,2,3]; arr[0..-2]
[21:19:26] ruby[bot]: dminuoso: # => [1, 2] (https://eval.in/972110)
[21:19:39] desperek: dminuoso, but i want it in .each, hopefully
[21:19:55] dminuoso: desperek: ...
[21:20:23] desperek: dminuoso, i mean, i want to add this piece simultaneously
[21:20:35] zenspider: you can always use each_with_index... but this sounds ill-specced
[21:20:36] dmitriy_: has joined #ruby
[21:21:02] mgraf: I don't want to contribute to the X-Y problem here... What are you trying to do exactly?
[21:21:27] apeiros: !fixcon dmitriy_
[21:21:27] ruby[bot]: +bb dmitriy_!*@*$#ruby-fix-your-connection *!*@64.71.9.250$#ruby-fix-your-connection
[21:21:31] mgraf: It seems like a poor approach... but you could always do
[21:21:40] dminuoso: apeiros: get weechat.
[21:21:45] desperek: mgraf, list roles and add removal func if it's permitted
[21:22:49] desperek: it's rails part, actually. but the problem itself is ruby, i believe at least
[21:23:04] desperek: note i don't want to join them, because i need some more things to do in the loop
[21:23:11] apeiros: dminuoso: what for?
[21:23:17] mgraf: https://pastebin.com/raw/a3SHvRTH
[21:23:17] ruby[bot]: mgraf: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[21:23:22] dminuoso: apeiros: smart filter
[21:23:32] apeiros: ok. that's a good reason.
[21:23:38] mgraf: I gotta create a gist one sec
[21:23:45] apeiros: mgraf: the bot already did
[21:23:53] zenspider: haha! reverse.drop.reverse
[21:24:02] dminuoso: zenspider: we need #init
[21:24:08] dminuoso: >> [1,2,3,4].init
[21:24:08] mgraf: https://gist.githubusercontent.com/m-graf/700069d40c9c7792fb8bfe479cdfdd4e/raw/8206c7fa2c4256f0aed96f789f5f911571087739/.rb
[21:24:09] ruby[bot]: dminuoso: # => undefined method `init' for [1, 2, 3, 4]:Array (NoMethodError) ...check link for more (https://eval.in/972111)
[21:24:12] dminuoso: Ah well. Guess not.
[21:24:19] desperek: mgraf, i believe thats dminuoso's approach
[21:24:34] dminuoso: Except I dont copy an array around twice.
[21:24:56] mgraf: you don't need ot
[21:25:10] mgraf: thats a silly, but easy solution
[21:25:21] memo1: has joined #ruby
[21:25:28] dminuoso: mgraf: And that's better than arr[0..-2] how exactly?
[21:26:16] desperek: i want to eval them all tho :/
[21:26:22] mgraf: I'd actually just do this
[21:26:23] mgraf: https://gist.githubusercontent.com/m-graf/60a48816274aaa9bdf133155f739e0c3/raw/1a9f1994100a3343a37c97fc1e08c534922a9506/rb
[21:26:25] kn-928: has joined #ruby
[21:26:33] mgraf: '-2' is silly
[21:26:43] zenspider: desperek: why do you think it's ok to come in here and ask a question and then drop a trail of breadcrumbs of extra requirements?
[21:26:59] desperek: zenspider, hey, i asked it in the first place
[21:27:00] dminuoso: Yes, because ... is such an obvious visual clue that its an exclusive range over ..
[21:27:03] zenspider: either take our advice and run with it or just stop. Don't expect us to do your work for you one step at a time. we're not psychic.
[21:27:34] zenspider: desperek: no, what you asked initially was "how can i do something in .each only if it's not last element?"
[21:27:40] mgraf: desperek - what do you mean you want to eval them?
[21:27:42] zenspider: and you got 3-5 answers on that
[21:28:09] desperek: mgraf, i want to evaluate everything in an array/hash and then ommit one thing for last one
[21:28:55] desperek: zenspider, im just bad at asking. sorry :p
[21:29:02] zenspider: then get better
[21:29:05] zenspider: last_idx = arr.size - 1; arr.each_with_index do |o, i| if i == last_idx then ... else ... end; end
[21:29:20] mgraf: nah, homie you need a collect
[21:29:30] desperek: zenspider, that's not a clean attempt
[21:29:31] zenspider: "evaluate" means something in ruby (and most dynamic languages)
[21:30:01] desperek: okay, then "do something" zenspider
[21:30:08] zenspider: and it isn't what you want to do... you have values. They are evaluated already. You probably mean "process" or something
[21:30:14] sanscoeur: has joined #ruby
[21:30:23] desperek: eh, okay okay.. process
[21:30:44] zenspider: fuck your "clean attempt". it works. it meets your initial "requirements".
[21:30:47] mtkd: has joined #ruby
[21:30:47] gil_: has joined #ruby
[21:30:47] gil_: has joined #ruby
[21:31:10] mgraf: https://gist.githubusercontent.com/m-graf/caaa5baef0e6d169f4cd817b27c82353/raw/3950fa30754e0f4042e5c1a5bfbd31c64b7188e3/whatever
[21:31:15] tolerablyjake: has joined #ruby
[21:31:15] desperek: but its ruby after all, isnt it
[21:31:16] ruby[bot]: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[21:31:22] mgraf: damn dude, calm down
[21:31:42] guacamole: has joined #ruby
[21:31:42] guacamole: has joined #ruby
[21:31:55] zenspider: I highly recommend ..-2 over your ...-1
[21:32:02] mgraf: We have a brittle community, and this dude is new
[21:32:06] mgraf: that's fine, either works
[21:32:18] zenspider: idiomatic ruby is ..-2
[21:32:38] mgraf: Something tells me desperek does not care. but you're right
[21:35:38] desperek: zenspider, here's what i can do https://gist.githubusercontent.com/dracconi/349427b3663e7b680f4a0a3b1e54d77b/raw/62bd392c1f26e17116b2ebc580060c36d31813f5/make%2520it%2520work.rb ; i just ask if there's cleaner way to do it. to be precise regarding my question
[21:35:55] desperek: or wait that doesn't work
[21:36:01] dminuoso: desperek: x.join(", ")
[21:36:17] desperek: dminuoso, i would do it but i have some logic there
[21:36:19] maxvaillancourt1: has joined #ruby
[21:36:36] dminuoso: So your pastie is not represenative of your code..
[21:37:14] guacamole: has joined #ruby
[21:37:14] guacamole: has joined #ruby
[21:37:45] zenspider: yeah. literally x.join ", " at this point
[21:38:37] remix2000: has joined #ruby
[21:38:51] remix2000: has joined #ruby
[21:38:57] desperek: okay, i corrected it
[21:39:41] duckpuppy: has joined #ruby
[21:39:51] desperek: zenspider, tho i have this dillema if it is a good idea to store a big array
[21:40:00] desperek: cause i would need to collect it then
[21:40:11] zenspider: ? not following
[21:40:42] desperek: zenspider, i add a html element to each record
[21:40:49] desperek: and it could be quite long...
[21:41:12] desperek: zenspider, is it even clean?
[21:41:49] zenspider: time ruby -e '1_000_000.times.map { |n| n.to_s }.join ", "' # => 0.419s
[21:42:18] IshMael_: has joined #ruby
[21:42:35] remix2000: has joined #ruby
[21:42:35] zenspider: 3.675s for 10m
[21:42:45] zenspider: IOW, you don't have a problem until you actually have a problem.
[21:43:09] remix2000: has joined #ruby
[21:43:10] dminuoso: Write code that works, write tests for code, profile, optimize.
[21:43:11] dminuoso: In that order.
[21:43:19] dminuoso: (Or flip first two if you are doing TDD)
[21:45:55] clemens3: if you bother to write test code, then definitely write that first
[21:46:18] clemens3: dminuoso: ah, parsed the second line just now ;)
[21:46:23] zenspider: "Yeeesssss" says the guy who's currently trying to fix my client's test coverage... :/
[21:48:21] guacamole: has joined #ruby
[21:48:21] guacamole: has joined #ruby
[21:48:46] banisterfiend: has joined #ruby
[21:49:37] rafik: has joined #ruby
[21:50:16] anjen: has joined #ruby
[21:51:31] karapetyan: has joined #ruby
[21:53:21] duckpuppy: has joined #ruby
[21:53:34] guacamole: has joined #ruby
[22:02:41] nfsnobody: has joined #ruby
[22:03:07] cdg: has joined #ruby
[22:03:21] mgraf: zenspider, if you're interested in talking about consulting, DM me
[22:04:29] schneider: has joined #ruby
[22:07:00] milardovich: has joined #ruby
[22:07:08] volix: has joined #ruby
[22:08:02] rafik: has joined #ruby
[22:10:37] tAn: has joined #ruby
[22:11:53] guacamole: has joined #ruby
[22:11:54] guacamole: has joined #ruby
[22:12:07] goatish: has joined #ruby
[22:13:45] schneider: has joined #ruby
[22:15:04] remix2000: has joined #ruby
[22:16:04] tAn: has joined #ruby
[22:22:52] schneider: has joined #ruby
[22:25:42] weaksauce: anyone like fxruby in here or use something else?
[22:26:10] mjolnird: has joined #ruby
[22:26:43] bmurt: has joined #ruby
[22:26:46] kn-928: has joined #ruby
[22:30:04] shinnya: has joined #ruby
[22:30:22] banisterfiend: has joined #ruby
[22:32:04] rubemlrm: has joined #ruby
[22:33:17] ldnunes: has joined #ruby
[22:34:17] duckpuppy: has joined #ruby
[22:35:07] willmichael: has joined #ruby
[22:36:48] zeds: has joined #ruby
[22:37:39] rafik: has joined #ruby
[22:48:11] IshMael_: has left #ruby: ("WeeChat 2.0.1")
[22:49:07] karapetyan: has joined #ruby
[22:49:46] phaul: has joined #ruby
[22:56:49] tcopeland: has joined #ruby
[23:00:48] cdg: has joined #ruby
[23:01:34] eckhardt_: has joined #ruby
[23:01:45] mgraf: has left #ruby: ()
[23:03:14] workmad3: has joined #ruby
[23:04:47] Yzguy: has joined #ruby
[23:05:35] RougeR: has joined #ruby
[23:05:36] RougeR: has joined #ruby
[23:07:18] cdg_: has joined #ruby
[23:08:31] guacamole: has joined #ruby
[23:08:32] guacamole: has joined #ruby
[23:10:59] tAn: has joined #ruby
[23:11:52] jottr: has joined #ruby
[23:14:25] bambanx: has joined #ruby
[23:15:19] Psybur: has joined #ruby
[23:15:19] Psybur: has joined #ruby
[23:16:34] bambanx: has joined #ruby
[23:16:49] bambanx: has joined #ruby
[23:17:29] KeyJoo: has joined #ruby
[23:18:17] bambanx: has joined #ruby
[23:21:11] kapil___: has joined #ruby
[23:22:52] bambanx: has joined #ruby
[23:23:14] bambanx: has joined #ruby
[23:23:49] bambanx: has joined #ruby
[23:24:33] bambanx: has joined #ruby
[23:25:53] Psybur_: has joined #ruby
[23:27:03] kn-928: has joined #ruby
[23:27:28] pastorinni: has joined #ruby
[23:28:19] willmichael: has joined #ruby
[23:29:45] bambanx: has joined #ruby
[23:30:51] bambanx: has joined #ruby
[23:31:55] Dark_Arc: has joined #ruby
[23:36:43] willmichael: has joined #ruby
[23:36:47] tolerablyjake: has joined #ruby
[23:37:05] gbaptista: has joined #ruby
[23:40:52] am55: has joined #ruby
[23:45:22] pastorin_: has joined #ruby
[23:51:13] duckpuppy: has joined #ruby
[23:51:22] xorgnak: has joined #ruby
[23:52:53] RedNifre: has joined #ruby
[23:53:03] RedNifre: Hello #ruby !
[23:53:05] eckhardt_: has joined #ruby
[23:53:08] havenwood: RedNifre: hi!
[23:53:14] dminuoso: havenwood: bye.
[23:53:58] RedNifre: My joke project is nearing completion, I just have to create the command line inferface for it. Is there something in the standard library for this or should I just handle ARGV myself?
[23:54:23] RedNifre: (I'm aware of good cli gems, but I want this to be one tiny self contained script)
[23:55:05] cschneid: has joined #ruby
[23:58:07] weaksauce: RedNifre OptionParser would be built in
[23:58:22] Dark_Arc: has joined #ruby
[23:59:30] RedNifre: Thank you, I'll have a look.