« Back to channel list

#ruby - 30 July 2017

« Back 1 day Forward 1 day »
[00:04:16] bronson: has joined #ruby
[00:11:17] tacoboy: has joined #ruby
[00:12:24] tacoboy: has joined #ruby
[00:12:32] gloscombe: has joined #ruby
[00:12:55] planigan: has joined #ruby
[00:13:16] Rutix: has joined #ruby
[00:13:16] Rutix: has joined #ruby
[00:15:15] someuser: has joined #ruby
[00:16:16] ElFerna: has joined #ruby
[00:21:25] Moosashi: has joined #ruby
[00:34:47] TomyLobo3: has joined #ruby
[00:35:09] mooser: has joined #ruby
[00:36:48] ozcanesen: has joined #ruby
[00:38:49] ar1a: has joined #ruby
[00:41:46] agent_white: has joined #ruby
[00:42:04] houhoulis: has joined #ruby
[00:54:35] Jameser`: has joined #ruby
[00:57:18] Ilie[]: has joined #ruby
[00:57:39] Ilie: has joined #ruby
[00:58:53] Ilie[]: has joined #ruby
[01:13:37] nertzy: has joined #ruby
[01:20:09] muzik: has joined #ruby
[01:25:09] bkxd_: has joined #ruby
[01:27:54] oleo: has joined #ruby
[01:27:57] Moosashi: has joined #ruby
[01:32:29] Mgtuiw211: has joined #ruby
[01:36:46] gizmore|2: has joined #ruby
[01:38:30] Moosashi: has joined #ruby
[01:42:34] bruno-_: has joined #ruby
[01:47:17] eelster: has joined #ruby
[01:48:18] eelster: has joined #ruby
[01:49:05] jnollette: has joined #ruby
[01:49:18] ecuanaso: has joined #ruby
[01:49:39] opekktar: has joined #ruby
[01:50:30] eizua: has joined #ruby
[02:05:24] bronson: has joined #ruby
[02:11:14] jnollette: has joined #ruby
[02:14:00] mjolnird: has joined #ruby
[02:17:54] weathermaker: has joined #ruby
[02:25:36] jrafanie: has joined #ruby
[02:29:56] bkxd: has joined #ruby
[02:36:48] mjolnird: has joined #ruby
[02:43:21] Jameser: has joined #ruby
[02:45:55] Moosashi: has joined #ruby
[02:49:28] Jameser: has joined #ruby
[02:51:26] ahrs: has joined #ruby
[02:53:23] ElFerna: has joined #ruby
[02:55:23] jackjackdripper: has joined #ruby
[02:55:58] ElFerna: has joined #ruby
[03:03:50] Moosashi: has joined #ruby
[03:09:41] govg: has joined #ruby
[03:15:40] mooser: has joined #ruby
[03:18:54] gix: has joined #ruby
[03:28:16] duderonomy: has joined #ruby
[03:37:08] sixsixsix: has joined #ruby
[03:39:19] sixsixsix: How can i write this for loop in ruby? for (int i = 5; num / i > 0; i *= 5) { count += num / i;}
[03:46:16] mooser: has joined #ruby
[03:46:43] apparition: has joined #ruby
[03:51:49] enterprisey: has joined #ruby
[03:58:29] Moosashi: has joined #ruby
[04:01:58] Radar: sixsixsix: hi
[04:02:06] Radar: what language is that?
[04:02:14] sixsixsix: java and c++
[04:03:02] Radar: sixsixsix: thanks. I am not clear what "num" is here. Is it another variable?
[04:03:47] sixsixsix: yeah, num is the variable that is passed as argument for the function
[04:03:54] sixsixsix: just another integer
[04:04:27] Radar: and how is count initialised?
[04:04:56] sixsixsix: count is another integer that is initialized to 0
[04:05:04] _sfiguser: has joined #ruby
[04:05:27] armyriad: has joined #ruby
[04:05:50] Radar: ok thanks. That should be enough for me to go on. Give me a moment.
[04:06:07] bronson: has joined #ruby
[04:06:31] baweaver: What exactly is it supposed to do?
[04:07:14] sixsixsix: computes the trailing zeroes in a factorial
[04:07:29] sixsixsix: i got it from here: https://github.com/careercup/ctci/blob/master/java/Chapter%2017/Question17_3/QuestionB.java
[04:09:04] baweaver: num.to_s.chars.reverse.index { |x| x != 0 } + 1
[04:09:10] Radar: I think you could probably use Integer#digits to work it out
[04:09:54] baweaver: nevermind, need coffee
[04:10:04] Radar: indeed you do :)
[04:11:07] baweaver: Something vaguely like that in any case.
[04:11:34] sixsixsix: what does reverse does?
[04:11:45] baweaver: Take a guess
[04:12:10] Radar: Try [1,2,3].reverse
[04:12:14] Radar: or "123".reverse
[04:12:31] Radar: 23.downto(1).inject(:*).digits.index { |e| e != 0 }
[04:12:36] Radar: >> 23.downto(1).inject(:*).digits.index { |e| e != 0 }
[04:12:38] ruby[bot]: Radar: # => undefined method `digits' for 25852016738884976640000:Bignum (NoMethodError) ...check link for more (https://eval.in/839354)
[04:12:47] Radar: ruby[bot]: You and I can never be friends, can we?
[04:13:00] baweaver: to_s.chars :D
[04:13:01] Radar: >> 23.downto(1).inject(:*).to_s.chars.reverse.index { |e| e != 0 }
[04:13:03] ruby[bot]: Radar: # => 0 (https://eval.in/839355)
[04:13:11] Radar: >> 23.downto(1).inject(:*).to_s.chars.reverse.index { |e| e != "0" }
[04:13:12] ruby[bot]: Radar: # => 4 (https://eval.in/839356)
[04:13:15] Radar: THANK YOU.
[04:13:34] baweaver: ACTION wanders off and runs into random object
[04:13:39] Radar: sixsixsix: Ok, that last code example: 23.downto(1).inject(:*) will get 23!
[04:14:02] Radar: Then to_s + chars will convert the number into an array of strings where each string corresponds to a digit in the factorial
[04:14:12] Radar: then reverse turns that list around, so that the zeroes are at the start
[04:14:25] Radar: index then finds the index of the first element in the array where that element is not the string "0"
[04:14:38] Radar: So this shows that 23! has 4 trailing zeroes.
[04:14:43] baweaver: >> class Fixnum; def factorial; self.downto(1).inject(:*) end; end; 5.factorial # :D
[04:14:44] ruby[bot]: baweaver: # => 120 (https://eval.in/839359)
[04:14:52] Radar: >> 23.downto(1).inject(:*)
[04:14:53] ruby[bot]: Radar: # => 25852016738884976640000 (https://eval.in/839361)
[04:15:02] Radar: baweaver: wouldn't it be nice? :P
[04:15:20] Radar: >> 64.downto(1).inject(:*).to_s.chars.reverse.index { |e| e != "0" }
[04:15:21] ruby[bot]: Radar: # => 14 (https://eval.in/839364)
[04:15:22] baweaver: You sure ActiveSupport doesn't add it?
[04:15:31] Radar: baweaver: I wouldn't be surprised honestly.
[04:15:50] Radar: No mention of "factorial" in the codebase though
[04:16:09] Radar: SciRuby might add it.
[04:16:43] Radar: >> (1..23).inject(:*)
[04:16:44] ruby[bot]: Radar: # => 25852016738884976640000 (https://eval.in/839368)
[04:16:50] mooser: has joined #ruby
[04:16:51] Radar: This would work as well. Silly me for just picking top comment on SO.
[04:16:58] Radar: But I am not paid to think on weekends.
[04:19:57] Radar: 1..23 |> Enum.reduce(&Kernel.*/2) |> Integer.digits |> Enum.reverse |> Enum.find_index(fn (e) -> e != 0 end) <- And just for shits & giggles here's the Elixir equivalent
[04:22:08] hndk: has joined #ruby
[04:23:23] raul782: has joined #ruby
[04:23:28] milardovich: has joined #ruby
[04:24:21] Moosashi: has joined #ruby
[04:27:57] sneakerhax: has joined #ruby
[04:32:05] uZiel: has joined #ruby
[04:33:39] al2o3-cr: (1..23).inject(:*).digits.index &:nonzero? (ruby 2.4)
[04:41:12] al2o3-cr: or your more conventional while loop; https://eval.in/839376
[04:42:58] raul782: has joined #ruby
[04:46:41] Bhootrk_: has joined #ruby
[04:51:13] _whitelogger: has joined #ruby
[04:53:44] Dimik: has joined #ruby
[04:57:35] mooser: has joined #ruby
[04:58:25] mooser: has joined #ruby
[05:03:48] FahmeF: has joined #ruby
[05:04:45] milardovich: has joined #ruby
[05:07:11] ar1a: has joined #ruby
[05:14:18] Ilie: has joined #ruby
[05:14:34] ahrs: has joined #ruby
[05:16:14] nowhere_man: has joined #ruby
[05:24:39] mooser: has joined #ruby
[05:28:28] hndk_: has joined #ruby
[05:33:49] charliesome: has joined #ruby
[05:35:21] mkaito_: has joined #ruby
[05:35:34] mkaito: has joined #ruby
[05:39:07] apparition: has joined #ruby
[05:41:32] mooser: has joined #ruby
[05:51:20] apparition: has joined #ruby
[05:56:15] bkxd: has joined #ruby
[05:58:45] Voxxit: has joined #ruby
[05:59:18] brent__: has joined #ruby
[06:06:34] milardovich: has joined #ruby
[06:07:36] bronson: has joined #ruby
[06:10:28] brent__: has joined #ruby
[06:13:03] alex``: has joined #ruby
[06:27:09] TomyLobo3: has joined #ruby
[06:27:47] yabbes: has joined #ruby
[06:27:56] Ishido: has joined #ruby
[06:31:36] Jameser: has joined #ruby
[06:35:14] mooser: has joined #ruby
[06:47:43] milardovich: has joined #ruby
[06:50:56] tildes: has joined #ruby
[06:56:21] mooser: has joined #ruby
[06:57:36] nowhere_man: has joined #ruby
[06:59:40] cadillac_: has joined #ruby
[07:01:50] lantastic: has joined #ruby
[07:02:16] enterprisey: has joined #ruby
[07:08:04] apparition: has joined #ruby
[07:08:35] moeabdol: has joined #ruby
[07:11:05] dionysus69: has joined #ruby
[07:12:18] scrooloose: has joined #ruby
[07:13:10] Jameser: has joined #ruby
[07:15:14] vuoto: has joined #ruby
[07:19:42] sleetdrop: has joined #ruby
[07:21:56] petrussola: has joined #ruby
[07:26:57] mooser: has joined #ruby
[07:28:43] bkxd: has joined #ruby
[07:29:34] nowhere_man: has joined #ruby
[07:33:44] raul782: has joined #ruby
[07:36:21] raul782: has joined #ruby
[07:41:47] conta: has joined #ruby
[07:42:00] GodFather: has joined #ruby
[07:42:49] antgel: has joined #ruby
[07:46:30] Ilie[]: has joined #ruby
[07:47:07] kapil___: has joined #ruby
[07:47:50] djbkd: has joined #ruby
[07:48:50] yabbes: i just tried to use a decrement operator -= on a string, and having no idea what ruby wanted to tell me why it wouldnt work "no method -" ; until i wanted to ask here, then i remembered that it was not a number already.. so stupid.. so thank you guys ;) "1".to_i
[07:57:26] mooser: has joined #ruby
[08:01:23] _main_: has joined #ruby
[08:01:46] ltem: has joined #ruby
[08:02:24] _main_: has joined #ruby
[08:04:24] _main_: has joined #ruby
[08:08:18] bronson: has joined #ruby
[08:09:33] bkxd_: has joined #ruby
[08:10:19] raul782: has joined #ruby
[08:10:35] phinxy: has joined #ruby
[08:21:24] raul782: has joined #ruby
[08:23:52] tildes: has joined #ruby
[08:28:04] mooser: has joined #ruby
[08:30:43] nofxxx: has joined #ruby
[08:31:47] futilegames: has joined #ruby
[08:32:58] marr: has joined #ruby
[08:36:45] lantastic: has joined #ruby
[08:40:03] rgtk: has joined #ruby
[08:49:03] bkxd: has joined #ruby
[08:58:28] mooser: has joined #ruby
[09:00:13] creat: has joined #ruby
[09:00:49] jinie_: has joined #ruby
[09:01:15] quobo: has joined #ruby
[09:14:14] nOwz: has joined #ruby
[09:15:08] rippa: has joined #ruby
[09:26:25] roshanavand: has joined #ruby
[09:29:04] mooser: has joined #ruby
[09:29:08] andrzejku: has joined #ruby
[09:29:17] djellemah: has joined #ruby
[09:30:53] bkxd_: has joined #ruby
[09:41:07] mooser: has joined #ruby
[09:44:23] TvL2386: hey guys, I'm starting development on several gems. I want them all to be member of the same module
[09:44:35] TvL2386: something like net/ssh net/telnet
[09:46:16] soloscshaw: has joined #ruby
[09:51:21] jrafanie: has joined #ruby
[09:59:37] mooser: has joined #ruby
[10:07:09] gigetoo: has joined #ruby
[10:09:41] bronson: has joined #ruby
[10:11:42] bkxd: has joined #ruby
[10:14:23] vuoto: has joined #ruby
[10:17:32] vuoto: has joined #ruby
[10:30:09] InfinityFye: has joined #ruby
[10:30:12] mooser: has joined #ruby
[10:32:58] charliesome: has joined #ruby
[10:34:37] milardovich: has joined #ruby
[10:37:21] TvL2386: hey guys, I'm making a gem which is going to query the webservices of a piece of software. For that I need a base_url, a username and a password.
[10:38:09] TvL2386: I want to set those 3 variables once in my program
[10:38:21] TvL2386: and not supply them on every request
[10:39:28] TvL2386: I was thinking of `MyGem.configure { |c| c.user = 'bla' ; c.pass = 'secret' ; c.base_url = 'https://...' }`
[10:39:46] TvL2386: not sure if it's a good idea though
[10:42:30] noe: has joined #ruby
[10:43:31] gobertron: has joined #ruby
[10:44:36] Radar: TvL2386: yes that is a pattern I've seen done before.
[10:52:19] apeiros: I see it a lot and I don't like it.
[10:52:52] apeiros: IMO it means you want a class which takes those params on initialize
[10:52:58] bkxd_: has joined #ruby
[10:53:15] apeiros: if you then want one instance of that class in your app, make that part of your app and not that class.
[10:54:11] apeiros: e.g. MyApp::ThatService = ThatService::Client.new(user: "user", password: "1234", base_url: "…")
[10:54:50] jcao219: has joined #ruby
[10:54:51] apeiros: the other way (MyGem.configure) paints you into a corner where you can ever only have one instance per process. it's a bad pattern for that reason.
[10:55:02] apeiros: singleton pattern considered harmful™
[10:58:16] gloscombe: has joined #ruby
[11:00:48] mooser: has joined #ruby
[11:06:03] tildes: has joined #ruby
[11:13:36] runescape07rsps: has joined #ruby
[11:13:53] lantastic: has joined #ruby
[11:14:28] alex``: has joined #ruby
[11:17:21] conta: has joined #ruby
[11:19:56] jrafanie: has joined #ruby
[11:23:07] raul782: has joined #ruby
[11:24:15] oleo: has joined #ruby
[11:24:47] nOwz: has joined #ruby
[11:29:14] Ishido: has joined #ruby
[11:30:50] WeiJunLi: has joined #ruby
[11:31:20] mooser: has joined #ruby
[11:32:11] kx_: has joined #ruby
[11:33:29] bkxd: has joined #ruby
[11:34:27] andrzejku: has joined #ruby
[11:35:32] lxsameer: has joined #ruby
[11:42:03] xall: has joined #ruby
[11:51:58] ineb1: apeiros: is a singleton for app configuration ok?
[11:52:33] ineb1: MyApp::Config.username or whatever
[11:53:41] goyox86: has joined #ruby
[11:55:52] sepp2k: has joined #ruby
[11:56:27] apeiros: in an app I mind it much less. but even an app is IMO a class with the config part of its instance. I just see no reason. and you can still have the convenience of a singleton if you want.
[11:56:55] apeiros: *I just see no reason to artificially limit the way your code can be used
[11:57:01] apeiros: ACTION should pay attention to what he writes
[11:58:14] apeiros: I mean even if you don't want to run multiple instances of your application in a process, it's still nice to be able for e.g. testing. no need to muck around stubbing different configurations you want to test.
[11:58:33] nadir: has joined #ruby
[11:59:02] apeiros: in general "Oh, I have this state I don't want to pass around" - "well, that's exactly what objects do for you"
[11:59:19] Ishido: has joined #ruby
[11:59:41] naftilos76: has joined #ruby
[12:01:55] mooser: has joined #ruby
[12:08:02] _sfiguser: has joined #ruby
[12:09:46] Exagone313: has joined #ruby
[12:10:39] bronson: has joined #ruby
[12:12:49] bkxd_: has joined #ruby
[12:16:12] vuoto: has joined #ruby
[12:18:22] vuoto: has joined #ruby
[12:18:58] gloscombe: has joined #ruby
[12:22:29] yabbes: has joined #ruby
[12:25:11] ineb1: this is what i have currently
[12:25:18] ineb1: a spearate config for the spec suite
[12:25:40] ineb1: iam not too happy about it though
[12:25:47] vuoto: has joined #ruby
[12:27:10] alex``: has joined #ruby
[12:31:14] vuoto: has joined #ruby
[12:31:58] andrzejku: has joined #ruby
[12:32:07] ski7777: has joined #ruby
[12:32:29] mooser: has joined #ruby
[12:32:33] ecuanaso: has joined #ruby
[12:38:10] Ishido: has joined #ruby
[12:40:35] oded: has joined #ruby
[12:44:07] minichiello: has joined #ruby
[12:44:25] minichiello: has left #ruby: ()
[12:52:39] ski7777: has joined #ruby
[12:53:28] apparition: has joined #ruby
[12:57:13] bkxd: has joined #ruby
[12:59:24] vuoto: has joined #ruby
[13:03:05] mooser: has joined #ruby
[13:03:07] dionysus69: has joined #ruby
[13:03:15] ski7777: has joined #ruby
[13:04:40] tacoboy: has joined #ruby
[13:06:16] dstrunk: has joined #ruby
[13:06:27] mooser: has joined #ruby
[13:12:35] mooser: has joined #ruby
[13:24:12] _whitelogger: has joined #ruby
[13:25:26] raul782: has joined #ruby
[13:29:46] selim: has joined #ruby
[13:34:01] mooser: has joined #ruby
[13:35:16] mooser: has joined #ruby
[13:35:36] raul782: has joined #ruby
[13:41:13] GodFather: has joined #ruby
[13:43:00] eizua: has joined #ruby
[13:47:13] Dimik: has joined #ruby
[13:47:31] ElFerna: has joined #ruby
[13:56:06] raul782: has joined #ruby
[14:05:57] houhoulis: has joined #ruby
[14:11:12] DLSteve: has joined #ruby
[14:11:37] bronson: has joined #ruby
[14:13:03] AlexRussia: has joined #ruby
[14:16:54] cahoots: has joined #ruby
[14:20:18] conta: has joined #ruby
[14:23:07] WeiJunLi: has joined #ruby
[14:25:13] raul7821: has joined #ruby
[14:27:27] lantastic: has joined #ruby
[14:30:22] mustaffa: has joined #ruby
[14:30:42] Timba-as: has joined #ruby
[14:31:30] cdg: has joined #ruby
[14:34:56] mooser: has joined #ruby
[14:37:02] uZiel: has joined #ruby
[14:37:55] mooser: has joined #ruby
[14:40:11] yabbes: has joined #ruby
[14:44:27] Pacra: has joined #ruby
[14:44:38] sparkyy: has joined #ruby
[14:45:35] t-recx: has joined #ruby
[14:53:55] rgr: has joined #ruby
[14:57:58] milardovich: has joined #ruby
[15:08:01] al2o3-cr: anyone know why i keep getting this god damn error; https://gist.github.com/gr33n7007h/6ded756e3e67ea62ffc15b9258bf943c
[15:08:52] Papierkorb: al2o3-cr: Motherfucking port under 1024
[15:09:38] al2o3-cr: Papierkorb: i'm using sudo
[15:09:53] al2o3-cr: that's not the issue
[15:10:08] al2o3-cr: been at this an hour
[15:11:09] al2o3-cr: i'm trying to send deauth packets to my access point (aka router)
[15:11:19] al2o3-cr: this should be so simple
[15:12:42] al2o3-cr: Papierkorb: here's the source if it helps; https://gist.github.com/gr33n7007h/822e5edcc53dc647e77c41ae86ee7afc
[15:12:54] al2o3-cr: i've run out of ideas
[15:13:19] romankapitonov: has joined #ruby
[15:13:25] Papierkorb: Read the error message again. it's telling you about a size mismatch
[15:13:30] Papierkorb: hence EINVAL
[15:14:11] xt233: has joined #ruby
[15:14:31] al2o3-cr: i've read it but it does not make any reasoning for a size mismatch
[15:14:44] xt233: has left #ruby: ()
[15:14:52] xt233: has joined #ruby
[15:14:53] al2o3-cr: i'm just passing sockaddr to bind exactly like in C
[15:15:23] Papierkorb: have you made sure sll is exactly 16byte in size?
[15:15:38] al2o3-cr: no let me check
[15:17:09] al2o3-cr: no it's 20 bytes but this is correct
[15:17:23] Papierkorb: the error message disagrees
[15:17:37] Papierkorb: > 20 bytes for 16 bytes sockaddr_in
[15:18:03] al2o3-cr: the packsize is 20 bytes which is right. this is why i'm so puzzled
[15:19:36] Papierkorb: well apparently that #bind method expects a input of 16bytes, no 20. Which one of those is "right" I don't know.
[15:19:46] al2o3-cr: this should flipping work argh...
[15:20:09] al2o3-cr: let me recheck this one sex
[15:20:16] Papierkorb: Though considering this is coming in as Errno error, looks like it's linux (and not ruby..?) bouncing it back
[15:22:03] al2o3-cr: no, its still doomed
[15:23:26] al2o3-cr: OMFG, it works
[15:23:39] runescape07rsps: has joined #ruby
[15:24:49] al2o3-cr: i had AF_INET in the sockaddr instead of AF_PACKET, one hour one flipping hour looking through this
[15:26:05] Phanes: has joined #ruby
[15:26:05] Phanes: has joined #ruby
[15:26:14] al2o3-cr: that has p****d me off
[15:26:28] j0bk: has joined #ruby
[15:27:02] Tralin: has joined #ruby
[15:27:14] LBRapid: has joined #ruby
[15:27:17] jtperreault: has joined #ruby
[15:27:44] Phanes: has joined #ruby
[15:27:44] Phanes: has joined #ruby
[15:27:50] Nightmare: has joined #ruby
[15:29:09] al2o3-cr: >> "HAPPY PIGGING DAYS".gsub /\G/, ?*
[15:29:10] ruby[bot]: al2o3-cr: # => "*H*A*P*P*Y* *P*I*G*G*I*N*G* *D*A*Y*S*" (https://eval.in/839448)
[15:31:55] al2o3-cr: ACTION thinks why would i ever do this
[15:32:58] cam27: has joined #ruby
[15:33:13] dexter1: has joined #ruby
[15:37:46] al2o3-cr: next task beacon frames ...
[15:42:04] xt234: has joined #ruby
[15:46:17] gloscombe: has joined #ruby
[15:49:47] jackjackdripper: has joined #ruby
[15:51:33] gizmore: has joined #ruby
[15:53:26] Cesariox: has joined #ruby
[15:56:48] anuxivm: has joined #ruby
[15:57:22] charliesome: has joined #ruby
[15:58:11] anuxivm: has left #ruby: ()
[16:07:08] bruno-: has joined #ruby
[16:09:57] andrzejku: has joined #ruby
[16:12:58] bronson: has joined #ruby
[16:14:23] goyox86: has joined #ruby
[16:18:19] brent__: has joined #ruby
[16:19:41] Nicmavr: has joined #ruby
[16:23:37] minimalism: has joined #ruby
[16:26:47] belteshazzar: has joined #ruby
[16:31:56] gnufied: has joined #ruby
[16:37:50] goyox86: has joined #ruby
[16:39:18] sepp2k1: has joined #ruby
[16:39:57] milardovich: has joined #ruby
[16:44:58] chouhoul_: has joined #ruby
[16:46:24] chouhoul_: has joined #ruby
[16:46:25] ascarter: has joined #ruby
[16:46:49] vuoto: has joined #ruby
[16:50:00] proctrap: has joined #ruby
[16:51:44] Prawnzy: has joined #ruby
[16:55:36] [spoiler]: has joined #ruby
[16:55:55] goyox86_: has joined #ruby
[16:57:10] raul782: has joined #ruby
[17:02:22] Azure: has joined #ruby
[17:08:56] [spoiler]: has joined #ruby
[17:23:26] milardovich: has joined #ruby
[17:24:21] amclain: has joined #ruby
[17:28:12] goyox86: has joined #ruby
[17:29:53] milardovich: has joined #ruby
[17:35:25] tirej: has joined #ruby
[17:38:58] andrzejku: has joined #ruby
[17:40:38] Timba-as: has joined #ruby
[17:43:53] proctrap: has joined #ruby
[17:43:59] raul782: has joined #ruby
[17:47:14] dstrunk: has joined #ruby
[17:50:03] milardovich: has joined #ruby
[17:51:24] milardovich: has joined #ruby
[17:59:50] Xeago: has joined #ruby
[18:01:52] tom69: has joined #ruby
[18:06:18] tom69: does anybody use ruby without rails? is there any reason to avoid using ruby if you are not doing wweb work?
[18:06:58] eljimmy: has joined #ruby
[18:08:11] Papierkorb: tom69: There's plenty to do outside of web, and plenty other frameworks for web (Roda+Sequel <3)
[18:09:08] GodFather: has joined #ruby
[18:09:23] Papierkorb: Clustering software, all kinds of random small-ish tools (some using simplistic web UIs, some CLIs). You can do almost anything with ruby, except for system programming and high-performance stuff
[18:09:38] treaki: has joined #ruby
[18:10:13] tAn: has joined #ruby
[18:12:04] raul782: has joined #ruby
[18:12:10] milardovich: has joined #ruby
[18:12:36] tom69: Papierkorb - so, pretty comparable to python?
[18:13:13] Papierkorb: Never used python, but I both are general purpose programming languages
[18:13:48] bronson: has joined #ruby
[18:14:33] Papierkorb: Another really useful thing was, when working with a Java shop, to start pry in JRuby, and then explore java libraries from there. Much easier to try stuff than having to mess with that other language
[18:15:57] jcao219: has joined #ruby
[18:17:37] deep-book-gk_: has joined #ruby
[18:21:35] j0bk: has joined #ruby
[18:22:14] deep-book-gk_: has left #ruby: ()
[18:29:42] GodFather: has joined #ruby
[18:34:47] GodFather: has joined #ruby
[18:36:16] codelurker: has joined #ruby
[18:36:28] ruby[bot]: -b newage1!*@*$#ruby-banned
[18:40:11] tAn: has joined #ruby
[18:48:58] ltem: has joined #ruby
[18:48:59] weathermaker: has joined #ruby
[18:50:38] lizard2010: has joined #ruby
[18:51:16] mustaffa: has joined #ruby
[18:52:03] Prawnzy: has joined #ruby
[18:52:16] auxbuss: has joined #ruby
[18:54:24] tom69: has left #ruby: ("WeeChat 1.9")
[18:58:31] ar1arelaybot: has joined #ruby
[18:59:00] yabbes: has joined #ruby
[19:01:54] cadillac_: has joined #ruby
[19:03:28] DLSteve: has joined #ruby
[19:07:06] asjdsahd: has joined #ruby
[19:08:01] GodFather: has joined #ruby
[19:12:01] postmodern: has joined #ruby
[19:16:09] rgtk: has joined #ruby
[19:19:00] average: has joined #ruby
[19:19:13] average: in Ruby, why does one want to do
[19:19:24] average: conn = Some::Obj self.class.name ?
[19:19:26] average: what's the point of that?
[19:19:41] average: that's happening inside a method of a class
[19:20:21] dionysus69: has joined #ruby
[19:26:03] andrzejku: has joined #ruby
[19:27:37] lantastic: has joined #ruby
[19:27:44] Papierkorb: average: Can you give the actual line of code doing what you mean?
[19:30:17] average: it's exactly how I wrote it
[19:30:24] average: uhm, let me rephrase
[19:30:33] Papierkorb: `Some::Obj`..?
[19:30:42] average: conn = Some::Obj.new self.class.name
[19:31:04] average: it's actually Net::HTTP::Persistent , not Some::Obj
[19:31:33] average: still.. idk why it's passing the current class name to it
[19:32:04] Papierkorb: > # Set +name+ to keep your connections apart from everybody else's.
[19:32:28] Papierkorb: Looks like you're also missing the `name:` part. Please, if you ask for help, do NOT try to "simplify" it.
[19:33:09] dviola: has joined #ruby
[19:33:15] Papierkorb: It makes it much harder to help. The simplification in this case made it impossible to get the correct answer to your question.
[19:34:35] average: sorry about that Papierkorb
[19:34:46] Papierkorb: Looks like the net http persistant stuff has an internal "pool" of named connections. The user of `Persistent` chose to use the name of the current class as name for the connection name, which sounds reasonable: If everyone does this, no collisons will occur, so no one else will mess with your connection
[19:35:10] average: like what collision tho?
[19:35:17] lxsameer: has joined #ruby
[19:41:12] raul782: has joined #ruby
[19:43:41] kkiero: has joined #ruby
[19:46:34] Dimik: has joined #ruby
[19:49:27] goyox86: has joined #ruby
[19:51:19] lantastic: has joined #ruby
[19:53:10] uZiel: has joined #ruby
[19:56:00] kkiero_: has joined #ruby
[20:01:32] marr: has joined #ruby
[20:01:51] average: Papierkorb: thanks for brainstorming and helping me
[20:02:00] average: Papierkorb: I made a PR as a result https://github.com/mislav/issuesync/pull/9
[20:02:11] runescape07rsps: has joined #ruby
[20:02:12] ur5us: has joined #ruby
[20:03:28] Papierkorb: average: the persistent.new code works?
[20:03:36] average: Papierkorb: yeh
[20:04:25] Papierkorb: great. just wanted to make sure that you didn't take my super quick look at its initialize for granted ;)
[20:05:56] Qommand0r: has joined #ruby
[20:06:54] _sfiguser: has joined #ruby
[20:09:47] cam27: has joined #ruby
[20:13:43] ResidentBiscuit: has joined #ruby
[20:14:40] bronson: has joined #ruby
[20:18:02] tirej: has joined #ruby
[20:32:46] milardovich: has joined #ruby
[20:40:58] cam27: has joined #ruby
[20:47:31] deep-book-gk_: has joined #ruby
[20:49:45] deep-book-gk_: has left #ruby: ()
[20:54:11] statelesscode: has joined #ruby
[21:02:32] vuoto: has joined #ruby
[21:04:02] milardovich: has joined #ruby
[21:10:30] cam27: has joined #ruby
[21:14:10] Guest12040: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[21:17:01] jnollette: has joined #ruby
[21:20:08] bane_: has joined #ruby
[21:24:07] enodata: has joined #ruby
[21:25:04] QualityAddict: has joined #ruby
[21:34:32] erlend: has joined #ruby
[21:36:12] bruno-: has joined #ruby
[21:40:41] cam27: has joined #ruby
[21:41:13] bruno-: has joined #ruby
[21:43:52] brent__: has joined #ruby
[21:46:12] bruno-: has joined #ruby
[21:50:46] growp: has joined #ruby
[21:51:01] growp: what is an alternative to rubygems?
[21:51:14] bruno-: has joined #ruby
[21:52:28] jnollette: has joined #ruby
[21:54:27] jnollette: has joined #ruby
[21:56:12] bruno-: has joined #ruby
[21:58:21] runescape07rsps: has joined #ruby
[21:59:24] patr0clus: has joined #ruby
[21:59:49] andrzejku: has joined #ruby
[22:02:02] patr0clus: has joined #ruby
[22:03:57] bruno-: has joined #ruby
[22:07:06] milardovich: has joined #ruby
[22:08:58] bruno-: has joined #ruby
[22:09:45] patr0clus: has joined #ruby
[22:10:08] patr0clus: has joined #ruby
[22:10:56] cam27: has joined #ruby
[22:13:34] ruby-lang422: has joined #ruby
[22:16:42] bruno-: has joined #ruby
[22:16:45] bronson: has joined #ruby
[22:18:22] BTRE: has joined #ruby
[22:28:12] dstrunk: has joined #ruby
[22:42:08] cam27: has joined #ruby
[22:48:27] milardovich: has joined #ruby
[22:53:16] kobain: has joined #ruby
[23:02:14] havenwood: growp: Why are you looking for one?
[23:03:11] vladline: has joined #ruby
[23:05:03] bruno-: has joined #ruby
[23:06:43] hndk: has joined #ruby
[23:07:26] fluengo: has joined #ruby
[23:08:17] Psy-Q: has joined #ruby
[23:09:27] marens_: has joined #ruby
[23:09:41] milardovich: has joined #ruby
[23:12:22] cam27: has joined #ruby
[23:12:52] fluengo: has joined #ruby
[23:14:05] average: has left #ruby: ()
[23:15:55] vladline: has joined #ruby
[23:15:59] mjolnird: has joined #ruby
[23:24:26] soloscshaw: has joined #ruby
[23:25:05] dstrunk: has joined #ruby
[23:35:17] tlr: has joined #ruby
[23:36:05] Giphy[m]: has joined #ruby
[23:38:39] alveric2: has joined #ruby
[23:49:38] qsx: has joined #ruby
[23:51:31] milardovich: has joined #ruby
[23:58:57] lasenna[m]: has joined #ruby
[23:58:58] M107262[m]: has joined #ruby
[23:58:58] voltai[m]: has joined #ruby
[23:58:58] torarne: has joined #ruby
[23:58:58] turt2live: has joined #ruby
[23:58:58] heftig: has joined #ruby
[23:58:58] jonjits[m]: has joined #ruby
[23:58:58] aidalgol: has joined #ruby
[23:58:58] aviraldg: has joined #ruby
[23:58:59] gokul_mr[m]: has joined #ruby
[23:58:59] dman[m]: has joined #ruby
[23:58:59] KevinMGranger: has joined #ruby
[23:59:04] Tagami[m]: has joined #ruby
[23:59:05] testnick[m]: has joined #ruby
[23:59:05] aagdbl[m]: has joined #ruby
[23:59:06] Matt[m]1: has joined #ruby
[23:59:06] velu_aon[m]: has joined #ruby