« Back to channel list

#ruby - 21 April 2017

« Back 1 day Forward 1 day »
[00:01:05] developBIR: so im trying to get the length of relative arrays, but if I call .length on them it says its an undefined method?
[00:01:18] pickle_: has joined #ruby
[00:03:07] Verity: has joined #ruby
[00:03:12] Verity: pi_piper requires RubyGems version >= 2.0.0. Try 'gem update --system' to update RubyGems itself. is there a fix?
[00:06:37] pickle_: has joined #ruby
[00:07:09] Channel6: has joined #ruby
[00:11:37] brent__: has joined #ruby
[00:12:05] chouhoulis: has joined #ruby
[00:14:05] mogaj: has joined #ruby
[00:14:08] ghornet: has joined #ruby
[00:15:40] jeffreylevesque: has joined #ruby
[00:16:56] CloCkWeRX: has joined #ruby
[00:17:09] nicesignal: has joined #ruby
[00:17:42] ncthom91: has joined #ruby
[00:19:05] pickle_: has joined #ruby
[00:21:25] havenwood: Verity: Try 'gem update --system' to update RubyGems itself.
[00:21:59] nankyokusei: has joined #ruby
[00:24:48] nicesignal: has joined #ruby
[00:25:59] GodFather_: has joined #ruby
[00:27:39] negatifze: has joined #ruby
[00:28:19] DLSteve: has joined #ruby
[00:29:41] nicesignal: has joined #ruby
[00:29:59] Bespoormsed: has joined #ruby
[00:30:17] Fysicus: has joined #ruby
[00:31:03] imightbestupid12: has joined #ruby
[00:31:20] imightbestupid12: what is the best resource on-line to learn Ruby?
[00:31:39] havenwood: imightbestupid12: https://ruby-community.com/pages/links
[00:31:51] havenwood: imightbestupid12: https://www.ruby-lang.org/en/documentation/
[00:32:14] sid_fules: has joined #ruby
[00:32:44] imightbestupid12: thank you very much :)_
[00:34:31] maxirater: has joined #ruby
[00:37:59] mogaj: has joined #ruby
[00:49:14] olivier__: has joined #ruby
[00:52:07] tgha: has joined #ruby
[00:54:29] jhack: has joined #ruby
[00:54:56] tgha: has joined #ruby
[01:02:00] juggler: has joined #ruby
[01:02:44] bronson: has joined #ruby
[01:09:04] jusa: has joined #ruby
[01:09:14] naprimer: has joined #ruby
[01:09:55] charliesome: has joined #ruby
[01:16:22] nowhereman: has joined #ruby
[01:19:10] cagomez: has joined #ruby
[01:22:29] Guest96: has joined #ruby
[01:27:31] bonhoeffer: has joined #ruby
[01:27:52] brent__: has joined #ruby
[01:33:21] mim1k: has joined #ruby
[01:36:20] olivier__: has joined #ruby
[01:38:46] jenrzzz: has joined #ruby
[01:38:46] jenrzzz: has joined #ruby
[01:44:07] jamesaxl: has joined #ruby
[01:45:32] charliesome: has joined #ruby
[01:45:44] Jameser: has joined #ruby
[01:46:25] nadir: has joined #ruby
[01:47:10] olivier__: has joined #ruby
[01:47:53] bonhoeffer: has joined #ruby
[01:52:36] steffes: has joined #ruby
[02:01:50] KnownSyntax: has joined #ruby
[02:01:50] KnownSyntax: has joined #ruby
[02:04:37] gusrub: has joined #ruby
[02:06:21] libastral: has joined #ruby
[02:06:51] olivier__: has joined #ruby
[02:08:21] bonhoeffer: has joined #ruby
[02:19:02] hutch34: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:22:29] bronson: has joined #ruby
[02:26:18] bonhoeffer: has joined #ruby
[02:27:16] nertzy: has joined #ruby
[02:28:12] hndk: has joined #ruby
[02:35:05] duderonomy: has joined #ruby
[02:39:19] jusa: has joined #ruby
[02:39:58] bonhoeffer: has joined #ruby
[02:40:36] Channel6: has joined #ruby
[02:42:51] Rodya_: has joined #ruby
[02:49:21] username1: has joined #ruby
[02:53:00] aredridel: has joined #ruby
[02:55:03] gix-: has joined #ruby
[02:58:25] olivier__: has joined #ruby
[03:01:16] Vile`: has joined #ruby
[03:03:17] helpa: has joined #ruby
[03:03:56] hays: has joined #ruby
[03:03:56] hays: has joined #ruby
[03:04:05] PaulCape_: has joined #ruby
[03:04:11] Jameser`: has joined #ruby
[03:04:21] rgr_: has joined #ruby
[03:05:33] davic: has joined #ruby
[03:05:45] catbusters: has joined #ruby
[03:06:06] Antiarc: has joined #ruby
[03:07:25] KnownSyntax: has joined #ruby
[03:07:25] KnownSyntax: has joined #ruby
[03:15:13] astrobunny: has joined #ruby
[03:16:05] spectra: has joined #ruby
[03:16:16] cfec0b8d: has joined #ruby
[03:21:57] mooser: has joined #ruby
[03:26:10] KnownSyntax: has joined #ruby
[03:26:10] KnownSyntax: has joined #ruby
[03:30:41] username1: has joined #ruby
[03:31:03] bronson: has joined #ruby
[03:33:18] mooser: has joined #ruby
[03:33:56] mim1k: has joined #ruby
[03:35:20] mogaj: has joined #ruby
[03:35:31] sid_fules: has joined #ruby
[03:43:45] ericmath1son: has joined #ruby
[03:45:34] jcao219: has joined #ruby
[03:51:23] ihavsn: has joined #ruby
[03:52:05] aryaching: has joined #ruby
[03:52:40] __Yiota: has joined #ruby
[03:54:00] bronson: has joined #ruby
[03:54:08] Bock: has joined #ruby
[03:55:33] millerti: has joined #ruby
[03:56:57] gix: has joined #ruby
[03:56:59] KnownSyntax: has joined #ruby
[03:57:48] Bock: has joined #ruby
[04:03:05] thebigj: has left #ruby: ()
[04:04:50] Rodya_: has joined #ruby
[04:06:47] astrobunny: has joined #ruby
[04:08:12] bloosi: has joined #ruby
[04:11:07] RenQ7: has joined #ruby
[04:16:45] KnownSyntax: has joined #ruby
[04:16:45] KnownSyntax: has joined #ruby
[04:18:24] username1: has joined #ruby
[04:18:48] jarray52: has joined #ruby
[04:20:39] govg: has joined #ruby
[04:22:40] Cohedrin: has joined #ruby
[04:28:30] futilegames: has joined #ruby
[04:29:28] futilegames: has left #ruby: ()
[04:31:15] mim1k: has joined #ruby
[04:32:30] mooser: has joined #ruby
[04:36:02] renchan: has joined #ruby
[04:37:35] govg: has joined #ruby
[04:42:04] Cohedrin: has joined #ruby
[04:56:33] Macaveli: has joined #ruby
[05:03:34] username1: has joined #ruby
[05:06:24] bronson: has joined #ruby
[05:07:05] pwnd_nsfw: has joined #ruby
[05:08:27] dmtd: has joined #ruby
[05:12:24] anisha: has joined #ruby
[05:12:30] futilegames: has joined #ruby
[05:14:59] developBIR: has joined #ruby
[05:16:02] developBIR: im trying to put a variable into quoted text to click a button but it doesnt work
[05:16:15] developBIR: browser.a(:href => "/#{user}/following/").click
[05:16:37] otherj: has joined #ruby
[05:16:47] developBIR: the "user" is input by me. i use this same principal to get to the page and it works just fine
[05:16:49] charliesome: has joined #ruby
[05:21:49] enterprisey: has joined #ruby
[05:22:27] Cohedrin: has joined #ruby
[05:23:41] PorcoRex: has joined #ruby
[05:23:49] PorcoRex: Good evening Ruby.
[05:32:05] mooser: has joined #ruby
[05:34:30] mogaj: has joined #ruby
[05:41:13] AnoHito: has joined #ruby
[05:43:53] anisha: has joined #ruby
[05:45:03] developBIR: im plugging in a variable and when i do its throwing in \n into the string as well
[05:46:25] developBIR: "/#{user}/following/" turns into this "/valueEntered\n/following/"
[05:47:00] PorcoRex: Try "/#{user.chomp}/following/"
[05:47:25] PorcoRex: Or, if you want to get rid of the "\n" permanently: user.chomp!
[05:48:01] PorcoRex: An then "/#{user}/following/".
[05:50:40] developBIR: PorcoRex, THANK YOU
[05:51:30] domgetter: has joined #ruby
[05:51:51] nickjj_: has joined #ruby
[05:52:34] PorcoRex: Sure, no problem.
[05:52:37] developBIR: so thats the only reason .chomp is in place is to get rid of record separators?
[05:53:29] PorcoRex: developBIR, chomp removes (by default) the last "\n" character. If the string does not end in "\n" it won't modify it.
[05:54:17] PorcoRex: You can pass a string as a parameter to chomp if you want to "chomp" a different character:
[05:54:36] PorcoRex: "Hello, world!".chomp("!") #=> "Hello, world"
[05:54:42] developBIR: to me its really curious. Why would it add \n into my variable?!
[05:54:51] developBIR: also ^ thats really cool!
[05:55:01] developBIR: but it will only chomp the first one
[05:55:06] PorcoRex: developBIR, were are you obtaining the value for your variable?
[05:55:28] lhambley: has joined #ruby
[05:55:32] AnoHito: has joined #ruby
[05:56:02] PorcoRex: Do you need to remove more than one "\n" from your string?
[05:56:31] developBIR: nope! what you said helped and fixed the problem!
[05:57:09] PorcoRex: When you enter the value from the console it's probably also adding "\n" to take into account when you press enter.
[05:57:09] developBIR: and now that I know I can pass a parameter, it will help me more later on!
[05:57:20] developBIR: Makes sense! PorcoRex
[05:57:52] PorcoRex: Sure. I believe you can pass more that one character as well (might be wrong though): "asdqwe".chomp("qwe") #=> "asd"
[06:01:34] developBIR: I was scrolling through the ruby docs for chomp.. and i realized all of what i was looking at was just string methods
[06:01:48] developBIR: there is so much
[06:01:51] PorcoRex: Oh yeah, quite possibly. :)
[06:09:36] pwnd_nsfw`: has joined #ruby
[06:09:37] gusrub: has joined #ruby
[06:11:39] tohuw: has joined #ruby
[06:12:24] alazred: has joined #ruby
[06:12:24] alazred: has joined #ruby
[06:14:03] bloosi: has joined #ruby
[06:17:25] AnoHito: has joined #ruby
[06:18:29] bloosi: has left #ruby: ()
[06:19:18] govg: has joined #ruby
[06:25:25] aufi: has joined #ruby
[06:26:28] otherj: has joined #ruby
[06:33:08] cfec0b8d: has joined #ruby
[06:34:09] mark-otaris: has joined #ruby
[06:34:25] Cohedrin: has joined #ruby
[06:37:58] Cyrus: has joined #ruby
[06:39:45] Guest85822: has joined #ruby
[06:45:38] etehtsea: has joined #ruby
[06:48:15] mogaj: has joined #ruby
[06:52:38] gusrub: has joined #ruby
[06:56:51] vali: has joined #ruby
[07:06:35] anisha: has joined #ruby
[07:11:57] jenrzzz: has joined #ruby
[07:11:57] jenrzzz: has joined #ruby
[07:17:33] bigkevmcd: has joined #ruby
[07:18:43] jarray52: has left #ruby: ()
[07:20:47] mikecmpbll: has joined #ruby
[07:29:01] mark_66: has joined #ruby
[07:32:43] snickers: has joined #ruby
[07:33:09] lhambley: has joined #ruby
[07:34:40] alazred: has joined #ruby
[07:37:19] nofxxxx: has joined #ruby
[07:44:08] GetGoal: has joined #ruby
[07:46:22] jaequery: has joined #ruby
[07:48:29] djbkd: has joined #ruby
[07:50:15] jaruga: has joined #ruby
[07:52:06] Silthias: has joined #ruby
[07:52:33] hutch34: has joined #ruby
[07:54:50] mogaj: has joined #ruby
[07:55:14] Silthias1: has joined #ruby
[07:55:40] rgtk: has joined #ruby
[07:55:45] mogaj: has joined #ruby
[07:56:07] burgestrand: has joined #ruby
[07:57:22] marr: has joined #ruby
[08:05:01] mikecmpbll: has joined #ruby
[08:05:39] eGGshke: has joined #ruby
[08:05:44] olivier__: has joined #ruby
[08:07:11] biberu: has joined #ruby
[08:08:30] username1: has joined #ruby
[08:10:37] jcao219: has joined #ruby
[08:11:18] maxp: has joined #ruby
[08:13:03] vondruch: has joined #ruby
[08:15:36] Sassle: has joined #ruby
[08:16:39] starmix: has joined #ruby
[08:18:38] Sassle: has left #ruby: ()
[08:24:55] djbkd: has joined #ruby
[08:25:15] toretore: has joined #ruby
[08:26:55] Beams: has joined #ruby
[08:27:51] mim1k: has joined #ruby
[08:29:31] whiteline: has joined #ruby
[08:33:22] whiteline: has joined #ruby
[08:37:52] govg: has joined #ruby
[08:38:30] sdwrage: has joined #ruby
[08:41:50] KrzaQ: has joined #ruby
[08:42:37] binaryplease: has joined #ruby
[08:45:36] xenops: has joined #ruby
[08:47:42] poerror: has joined #ruby
[08:47:56] minimalism: has joined #ruby
[08:48:43] poerror: hi guys, what does mean this? For what reason is written like this? https://pastebin.com/kDHapWZH
[08:48:44] ruby[bot]: poerror: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/608c88ac6b23b0c0c4c3aea996a47c4c
[08:48:45] ruby[bot]: poerror: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[08:48:55] mikecmpbll: has joined #ruby
[08:49:38] apeiros: poerror: care to be more specific?
[08:50:13] poerror: is it some design pattern?
[08:50:40] apeiros: delegating class methods to instance methods?
[08:50:56] tvw: has joined #ruby
[08:52:07] lxsameer: has joined #ruby
[08:52:52] apeiros: yes, it's somewhat common
[08:53:15] g_maeda: has joined #ruby
[08:53:16] apeiros: one I frequently use is with "command classes", like: SomeWorker.run(*params)
[08:53:29] apeiros: it'll do SomeWorker.new.run(*params). i.e. it's just convenience.
[08:54:09] poerror: yeah, I see
[08:55:29] alazred: has joined #ruby
[08:55:29] alazred: has joined #ruby
[08:57:23] alazred: has joined #ruby
[08:57:23] alazred: has joined #ruby
[08:58:10] futilegames: has joined #ruby
[09:01:21] fusta: has joined #ruby
[09:03:19] Beams: has joined #ruby
[09:05:54] gregf_: has joined #ruby
[09:07:56] binaryplease: has joined #ruby
[09:08:10] sid_fules: has joined #ruby
[09:22:52] ben_h: has joined #ruby
[09:23:27] sid_fules: has joined #ruby
[09:24:26] ski7777: has joined #ruby
[09:24:37] apeiros: hm, is there a way to get rake to emit where a task was defined? --trace only shows the tasks it executes, but not their "origin"
[09:25:22] apeiros: ooh, `rake -W`, nice
[09:25:29] djbkd: has joined #ruby
[09:28:15] Beams: has joined #ruby
[09:33:32] KnownSyntax: has joined #ruby
[09:35:01] workmad3: has joined #ruby
[09:44:26] mikecmpbll: has joined #ruby
[09:48:06] govg: has joined #ruby
[09:48:07] olivier__: has joined #ruby
[09:50:37] HoierM: has joined #ruby
[09:51:21] pandaant: has joined #ruby
[09:55:25] brent__: has joined #ruby
[09:57:14] arnew-: if i want ruby to multithread, i can use fork to have a better experience right?
[09:57:26] mogaj: has joined #ruby
[09:57:47] arnew-: will mutexes get shared between those ruby instances? will it be it's own processes etc?
[09:59:20] cassianoleal: has joined #ruby
[10:00:50] apeiros: arne__: fork means separate process, so no, mutexes are not shared
[10:00:52] ferr: has joined #ruby
[10:01:10] apeiros: also fork will kill all threads except the main thread (in the spawned process)
[10:01:43] apeiros: and "better experience" is rather subjective. you get to use multiple cores in parallel, but it's not exactly more convenient.
[10:03:14] gingray: has joined #ruby
[10:07:27] pppktz: has joined #ruby
[10:08:47] sepp2k: has joined #ruby
[10:11:26] arnew-: what happens to my @mutex variable when i fork?
[10:11:29] arnew-: i mean.. it has a mutex
[10:12:55] gingray_: has joined #ruby
[10:15:20] ferr: has joined #ruby
[10:16:17] apeiros: same as with all other variables
[10:16:31] apeiros: not sure about thread related state, though, since all threads except main get killed.
[10:19:29] schickung: has joined #ruby
[10:19:44] gingray__: has joined #ruby
[10:20:03] pickle_: has joined #ruby
[10:21:13] ben_h: has joined #ruby
[10:21:43] gingray__: has joined #ruby
[10:22:09] mim1k: has joined #ruby
[10:23:29] jenrzzz: has joined #ruby
[10:23:29] jenrzzz: has joined #ruby
[10:26:18] Arpanet69: has joined #ruby
[10:28:26] mostlybadfly: has joined #ruby
[10:32:03] gingray__: has joined #ruby
[10:39:35] gingray__: has joined #ruby
[10:39:53] anisha: has joined #ruby
[10:41:30] jujule: has joined #ruby
[10:43:00] jujule_: has joined #ruby
[10:43:28] anisha: has joined #ruby
[10:49:45] pickle_: has joined #ruby
[10:50:40] alazred: has joined #ruby
[10:51:10] bonhoeffer: has joined #ruby
[10:51:51] minimalism: has joined #ruby
[10:51:57] olivier__: has joined #ruby
[10:52:14] misto: has joined #ruby
[10:54:01] pickle_: has joined #ruby
[10:58:49] misto: has joined #ruby
[11:00:47] binaryplease: has joined #ruby
[11:01:21] Robtop__: has joined #ruby
[11:02:20] Beams: has joined #ruby
[11:05:49] eGGshke: has joined #ruby
[11:11:03] misto: has joined #ruby
[11:16:14] misto: has joined #ruby
[11:17:45] misto: has joined #ruby
[11:19:04] olivier__: has joined #ruby
[11:19:20] ledestin: has joined #ruby
[11:23:26] misto: has joined #ruby
[11:24:03] morfin: has joined #ruby
[11:24:30] Silthias: has joined #ruby
[11:24:54] apeiros: moin morfin
[11:25:17] burgestrand: mighty morfin!
[11:26:00] morfin: i am trying to connect to IMAP server, select inbox and then idle. I receive different UntaggedResponses and if EXISTS i know new message appeared but how do i get message itself?
[11:27:00] morfin: of course i can use resp.data as seq_number but there could be some issues with that i guess
[11:28:38] burgestrand: morfin I don't know about everybody else, but I could use some more backstory, e.g. where is `resp` coming from, what is it?
[11:29:00] burgestrand: Not saying I can help, mainly saying the information is lacking a bit :)
[11:29:23] mikecmpb_: has joined #ruby
[11:30:02] morfin: resp is response IMAP send to me
[11:30:22] morfin: as i said i do imap.idle do |resp| ... end
[11:30:50] rhyselsmore: has joined #ruby
[11:30:50] burgestrand: morfin yeah, but with what? You using Net::IMAP from stdlib, or something else?
[11:31:00] morfin: yes stdlib
[11:31:07] morfin: *that's stdlib
[11:31:09] mikecmpb_: has joined #ruby
[11:34:39] mogaj: has joined #ruby
[11:34:48] darix: morfin: you need to fetch the message
[11:35:45] hndk: has joined #ruby
[11:35:45] darix: it should give you the UID of the message in the notify if i recall correctly
[11:37:05] morfin: it give only messages number to me
[11:37:13] morfin: which could be problem to keep track on that
[11:40:02] Silthias: has joined #ruby
[11:47:43] chouhoulis: has joined #ruby
[11:50:22] ahrs: has joined #ruby
[11:51:15] chouhoulis: has joined #ruby
[11:53:02] hutch34: has joined #ruby
[11:53:04] bonhoeffer: has joined #ruby
[11:55:56] Doow: has joined #ruby
[12:01:32] Doow: Hi, i*m getting an invalid certificate from https://rubygems.org, but only from command-line on one specific computer (not via chrome on the same computer nor from a second computer)
[12:02:35] Doow: https://gist.github.com/anonymous/c5ca981675060b0bc681f74b27d7fb8e
[12:02:51] bvcosta: has joined #ruby
[12:04:15] whiteline: has joined #ruby
[12:07:15] totimkopf: the whiteline
[12:08:32] burgestrand: Doow what does `gem --version` output?
[12:11:57] brent__: has joined #ruby
[12:13:05] morfin: i thought i can handle imap message instantly without doing idle_done
[12:15:56] dasher^0_o: has joined #ruby
[12:16:14] Guest96: has joined #ruby
[12:16:24] Doow: Burgestrand: 2.4.6
[12:16:47] burgestrand: Doow I'd try upgrading to 2.6, http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages
[12:17:22] Doow: Burgestrand: thanks (It's 2.5.2 on the computer that works, so doesn't sound unlikely)
[12:17:54] hutch34: has joined #ruby
[12:20:57] Guest96: has joined #ruby
[12:22:05] olivier__: has joined #ruby
[12:23:38] two: has joined #ruby
[12:23:39] two: FOR THOSE THAT HAVENT SEEN IT: JASON BANDY'S EFNET NEWS EPISODE 18 IS OUT: https://youtu.be/W6G34pPE8LU <- EMOTIONAL TIMES - THE DRAMA IS REAL
[12:24:04] misto: has joined #ruby
[12:26:32] jenrzzz: has joined #ruby
[12:26:40] harfangk: has joined #ruby
[12:26:43] anisha: has joined #ruby
[12:28:00] Doow: Burgestrand: Everything worked greath now, thanks!
[12:28:09] burgestrand: Doow glad to hear :)
[12:30:37] millerti: has joined #ruby
[12:32:22] jsrn_: has joined #ruby
[12:33:48] maxirater: has joined #ruby
[12:34:24] olivier__: has joined #ruby
[12:37:19] robert_reilly: has joined #ruby
[12:39:33] pickle_: has joined #ruby
[12:39:43] jphase: has joined #ruby
[12:40:22] segmond: has joined #ruby
[12:47:34] bloosi: has joined #ruby
[12:48:39] bkxd: has joined #ruby
[12:48:51] pupsicle: has joined #ruby
[12:53:58] truenito: has joined #ruby
[12:56:03] mim1k: has joined #ruby
[12:58:57] jeffreylevesque: has joined #ruby
[13:00:11] tomphp: has joined #ruby
[13:00:57] bonhoeffer: has joined #ruby
[13:01:05] balo_: has joined #ruby
[13:03:27] misto: has joined #ruby
[13:03:49] ramortegui: has joined #ruby
[13:05:57] GodFather_: has joined #ruby
[13:08:42] pickle_: has joined #ruby
[13:09:20] tomphp: has joined #ruby
[13:09:23] username1: has joined #ruby
[13:12:43] Guest96: has joined #ruby
[13:14:27] cfec0b8d: has joined #ruby
[13:18:31] starmix: has joined #ruby
[13:19:17] olivier__: has joined #ruby
[13:19:34] olivier__: has joined #ruby
[13:21:20] nemish: has joined #ruby
[13:24:31] nemish: has joined #ruby
[13:24:34] agent_white: has joined #ruby
[13:25:30] agent_white: Mornin' folks
[13:25:46] xall_: has joined #ruby
[13:27:25] ben_h: has joined #ruby
[13:29:49] ben_h: has joined #ruby
[13:30:39] borodin: has joined #ruby
[13:32:22] bkxd_: has joined #ruby
[13:34:32] DLSteve: has joined #ruby
[13:34:55] apeiros: moin agent_white
[13:35:12] Beams: has joined #ruby
[13:41:11] tomphp: has joined #ruby
[13:44:27] jrafanie: has joined #ruby
[13:53:09] dlitvak: has joined #ruby
[13:54:14] nemish: has joined #ruby
[13:55:24] ben_h: has joined #ruby
[13:56:15] moei: has joined #ruby
[13:56:40] moei: has joined #ruby
[13:56:45] GetGoal: has joined #ruby
[13:58:42] enterprisey: has joined #ruby
[13:59:39] whiteline: has joined #ruby
[14:01:21] Stan: has joined #ruby
[14:01:40] bonhoeffer: has joined #ruby
[14:01:43] harfangk: is there a built-in ruby method for building product of multiple arrays where order matters and duplicates are not allowed? for example, passing [2,3], [2,3], [3,5] as arguments should give [2, 3, 5], [3, 2, 5].
[14:04:45] enterprisey: has joined #ruby
[14:05:45] arnew-: are those input arrays always ordered?
[14:06:01] Rodya_: has joined #ruby
[14:06:23] lookbeat-: has joined #ruby
[14:07:06] apeiros: I don't think that's a product?
[14:07:13] apeiros: >> [2,3].product([3,5])
[14:07:14] ruby[bot]: apeiros: # => [[2, 3], [2, 5], [3, 3], [3, 5]] (https://eval.in/780255)
[14:08:30] Stan: has joined #ruby
[14:10:15] pliniker: has left #ruby: ("WeeChat 1.4")
[14:11:31] sepp2k: has joined #ruby
[14:11:36] charliesome: has joined #ruby
[14:11:43] shinnya: has joined #ruby
[14:12:47] __Yiota: has joined #ruby
[14:18:55] dcunit3d: has joined #ruby
[14:19:10] chouhoulis: has joined #ruby
[14:19:51] chouhoulis: has joined #ruby
[14:20:36] skweek: has joined #ruby
[14:21:43] Stan: has joined #ruby
[14:21:57] rgtk: has joined #ruby
[14:25:18] theunraveler: has joined #ruby
[14:26:06] Xiti`: has joined #ruby
[14:28:31] chouhoul_: has joined #ruby
[14:28:32] jenrzzz: has joined #ruby
[14:28:32] jenrzzz: has joined #ruby
[14:30:08] mim1k: has joined #ruby
[14:31:15] umdstu: has joined #ruby
[14:31:30] chouhoul_: has joined #ruby
[14:31:42] qguv: has joined #ruby
[14:32:43] umdstu: trying to use capistrano to deploy an app to another server than my normal one. things go ok until it gets to precompiling the assets. I get this odd Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF-32LE) error. it's the same branch
[14:33:12] harfangk: Array#product does not care about duplication so it doesn't really work
[14:33:19] harfangk: i guess i'll have to manually implement it
[14:33:38] raul782: has joined #ruby
[14:37:13] kolchan11: has joined #ruby
[14:37:35] kolchan11: has left #ruby: ()
[14:41:48] Guest96: has joined #ruby
[14:44:02] xenops: has joined #ruby
[14:44:17] patarr: has joined #ruby
[14:45:15] burgestrand: has joined #ruby
[14:46:17] hotpancakes: has joined #ruby
[14:47:36] mooser: has joined #ruby
[14:47:47] chouhoulis: has joined #ruby
[14:56:15] SuperLag: has joined #ruby
[14:57:50] __Yiota: has joined #ruby
[14:58:41] mzo: has joined #ruby
[14:59:08] jaruga: has joined #ruby
[14:59:38] jaruga: has joined #ruby
[15:01:09] vondruch: has joined #ruby
[15:02:46] Nicmavr: has joined #ruby
[15:05:51] vondruch: has joined #ruby
[15:05:59] xcesariox: has joined #ruby
[15:06:22] Guest62004: has joined #ruby
[15:11:11] binaryplease: has joined #ruby
[15:13:10] xcesariox: has joined #ruby
[15:13:46] Cesario__: has joined #ruby
[15:14:57] cbyrda: has joined #ruby
[15:17:43] cbyrda: has joined #ruby
[15:24:50] hotpancakes: has joined #ruby
[15:26:13] vondruch: has joined #ruby
[15:27:43] ikopico: harfangk: this might work: [2,3].product([2,3], [3,5]).select {|a| Set.new(a).size == a.size} (hack-y and might have edge cases)
[15:27:59] ikopico: >> [2,3].product([2,3], [3,5]).select {|a| Set.new(a).size == a.size}
[15:28:00] ruby[bot]: ikopico: # => uninitialized constant Set (NameError) ...check link for more (https://eval.in/780332)
[15:28:16] DARPA: has joined #ruby
[15:28:21] ikopico: >> require 'set'; [2,3].product([2,3], [3,5]).select {|a| Set.new(a).size == a.size}
[15:28:22] ruby[bot]: ikopico: # => [[2, 3, 5], [3, 2, 5]] (https://eval.in/780333)
[15:29:03] herwin: a.uniq.size would give the same value as Set.new(a).size
[15:29:11] herwin: it's faster and clearer
[15:29:15] ikopico: True herwin
[15:29:19] ikopico: Good point
[15:29:20] apeiros: ikopico: harfangk has long left
[15:29:42] ikopico: Oh. I filter all leave/join msgs. Sorry.
[15:30:06] mzo: and that's why you shouldn't do that
[15:30:08] apeiros: a good client would show parts/quits of people who talked :-/
[15:30:34] ikopico: apeiros: maybe it's possible to do so with weechat, somehow
[15:30:38] vondruch: has joined #ruby
[15:32:18] brent__: has joined #ruby
[15:32:28] ikopico: Oh http://dev.weechat.org/post/2008/10/25/Smart-IRC-join-part-quit-message-filter
[15:32:41] ikopico: It's been there for 9 years
[15:33:20] hotpancakes: has joined #ruby
[15:34:12] hotpanca_: has joined #ruby
[15:35:55] polishdub: has joined #ruby
[15:36:45] electrostat: has joined #ruby
[15:39:52] spicerack: has joined #ruby
[15:40:12] spicerack: has joined #ruby
[15:41:08] jcao219: has joined #ruby
[15:44:15] Hanmac: apeiros: hey what do you guys think of that:
[15:44:15] Hanmac: >> [2,3].product([2,3], [3,5]).reject(&:uniq!)
[15:44:16] ruby[bot]: hanmac: # => [[2, 3, 5], [3, 2, 5]] (https://eval.in/780335)
[15:44:52] patarr: has joined #ruby
[15:45:27] apeiros: looks nice. I just still don't really know what they've actually been after.
[15:46:23] baweaver: Dunno, but they're Set on it
[15:46:30] Arpanet69: has joined #ruby
[15:46:56] mzo: hanmac: how does that one work
[15:47:23] Hanmac: mzo: uniq! does return nil if nothing has changed
[15:47:44] mzo: i like that one
[15:47:52] username1: has joined #ruby
[15:47:52] baweaver: that's a bit magic though
[15:48:22] baweaver: (also I really dislike some of the behavior that shifts things to nil like that)
[15:48:31] mzo: what does it return if something does change? the receiver?
[15:48:36] baweaver: (but I also rarely if ever use ! methods so I don't see them)
[15:48:36] mzo: >> [1, 1, 2].uniq!
[15:48:38] ruby[bot]: mzo: # => [1, 2] (https://eval.in/780340)
[15:49:25] apeiros: many bang methods in core work that way
[15:49:29] mim1k: has joined #ruby
[15:49:30] apeiros: it's why you shouldn't chain them
[15:49:31] catbusters: has joined #ruby
[15:49:44] baweaver: or use them much at all
[15:49:54] apeiros: they have their uses
[15:49:59] mzo: yeah that does seem odd
[15:49:59] apeiros: especially with ruby -pe :)
[15:50:03] baweaver: hence much at
[15:50:16] apeiros: but yeah, I agree
[15:50:17] baweaver: instead of at all
[15:50:21] mzo: imo, uniq! should be the same as uniq except in-place
[15:50:24] apeiros: I tend to use non-bang far far more often
[15:50:41] mzo: non-bang
[15:50:45] Hanmac: you can use them with if <con>; <then> "something has changed"; end
[15:51:38] Hanmac: i looked into the methods, and there is currently no uniq? which is sad :(
[15:52:01] amclain: has joined #ruby
[15:53:52] baweaver: So just check if it's unique already?
[15:54:36] Hanmac: yeah, without the need of making a new array or changing this one in place
[15:58:03] DARPA: has joined #ruby
[15:58:21] rgtk: has joined #ruby
[15:58:29] balo: en most meg csak gemeket kezdtem el updatelni. a fo app, amivel foglalkozom is 2.2. de mas service-ek mas verzion vannak
[15:58:34] balo: sry wrong window
[16:02:31] segy: has joined #ruby
[16:02:35] binaryplease: has joined #ruby
[16:03:15] stee_3_: has joined #ruby
[16:04:49] baweaver: balo: Nem probléma. Sok szerencsét :)
[16:05:09] balo: baweaver: :D pacsi
[16:05:50] baweaver: balo: Nagyon szegény magyarat írok :P
[16:06:06] vondruch: has joined #ruby
[16:06:33] hotpancakes: has joined #ruby
[16:07:21] hotpanca_: has joined #ruby
[16:09:36] misto: has joined #ruby
[16:10:35] vondruch: has joined #ruby
[16:11:05] ltem: has joined #ruby
[16:12:08] hotpancakes: has joined #ruby
[16:16:04] vondruch: has joined #ruby
[16:16:35] Guest32442: has joined #ruby
[16:17:37] Guest32442: Hi, one question - how one should manage (or debug) memory leak in Ruby? I have a script to check mongo db for certain records, and it keeps leaking memory
[16:18:23] gusrub: has joined #ruby
[16:19:05] baweaver: How do you know it's leaking memory? (not that I don't believe you, just seeing what you're using)
[16:19:37] baweaver: https://github.com/SamSaffron/memory_profiler - this tends to be handy
[16:19:43] baweaver: seeing if I can find that other one
[16:20:16] baweaver: https://github.com/ruby-prof/ruby-prof - there it was
[16:20:33] vondruch: has joined #ruby
[16:20:42] gusrub: has joined #ruby
[16:23:00] yeticry_: has joined #ruby
[16:24:22] DARPA: has joined #ruby
[16:24:26] hxegon: apeiros: de-banged
[16:25:01] Guest32442: baweaver: I'm using htop to see memory usage, and it keeps growing
[16:26:03] vondruch: has joined #ruby
[16:26:15] hotpancakes: has joined #ruby
[16:27:21] helpa-bot: has joined #ruby
[16:27:45] rgr_: has joined #ruby
[16:28:03] anisha: has joined #ruby
[16:29:22] helpa: has joined #ruby
[16:30:35] vondruch: has joined #ruby
[16:31:49] hahuang65: has joined #ruby
[16:35:01] hxegon: Guest32442: What does your script do?
[16:35:11] jaequery: has joined #ruby
[16:36:01] Benshiro: has joined #ruby
[16:37:21] muelleme_: has joined #ruby
[16:42:12] Guest32442: hxegon: It checks records in mongo db against some json, which I'm getting through rabbitmq. If one field is wrong in record, it should tag it for migration
[16:43:01] outreachdan: has joined #ruby
[16:43:27] theRoUS: has joined #ruby
[16:46:52] hotpancakes: has joined #ruby
[16:47:54] xall: has joined #ruby
[16:48:54] alazred: has joined #ruby
[16:48:58] alazred: has joined #ruby
[16:50:17] steffes: has joined #ruby
[16:51:01] vondruch: has joined #ruby
[16:52:25] mooser: has joined #ruby
[16:55:31] __Yiota: has joined #ruby
[16:55:33] vondruch: has joined #ruby
[16:56:21] patarr1: has joined #ruby
[16:56:25] pragmatism: has joined #ruby
[16:57:57] two: has joined #ruby
[16:59:07] t-recx: has joined #ruby
[16:59:18] xenops: has joined #ruby
[16:59:41] theRoUS: has joined #ruby
[17:00:24] fusta: has joined #ruby
[17:01:06] choke: has joined #ruby
[17:01:22] dviola: has joined #ruby
[17:01:22] gusrub: has joined #ruby
[17:01:52] gusrub: has joined #ruby
[17:01:57] sdwrage: has joined #ruby
[17:02:36] choke: has joined #ruby
[17:02:36] dviola: has joined #ruby
[17:04:17] hotpanca_: has joined #ruby
[17:04:48] balo: => "http://ssh://google.com"
[17:04:48] balo: irb(main):010:0> URI.parse(value).kind_of?(URI::HTTP)
[17:05:04] balo: damn i should leave this channel :D
[17:05:17] balo: or just go to sleep
[17:05:49] domgetter: has joined #ruby
[17:06:11] vondruch: has joined #ruby
[17:10:55] vondruch: has joined #ruby
[17:14:40] mooser: has joined #ruby
[17:16:18] steffes: has left #ruby: ()
[17:22:05] whiteline: has joined #ruby
[17:22:18] Cohedrin: has joined #ruby
[17:22:34] mikecmpbll: has joined #ruby
[17:31:06] steffes: has joined #ruby
[17:35:28] gusrub: has joined #ruby
[17:37:40] whiteline: has joined #ruby
[17:38:13] truenito: has joined #ruby
[17:38:38] tvw: has joined #ruby
[17:39:18] hotpancakes: has joined #ruby
[17:39:32] SuperLag: has joined #ruby
[17:43:27] jcao219: has joined #ruby
[17:45:32] raul782: has joined #ruby
[17:47:27] jusa: has joined #ruby
[17:53:33] jrafanie: has joined #ruby
[17:54:02] steffes: has joined #ruby
[17:54:16] furkanusta: has joined #ruby
[17:55:44] naprimer_2: has joined #ruby
[17:56:49] govg: has joined #ruby
[17:59:51] ledestin: has joined #ruby
[18:00:40] jcao219: has joined #ruby
[18:04:48] ddffg: has joined #ruby
[18:04:59] patarr: has joined #ruby
[18:05:27] cfec0b8d: has joined #ruby
[18:07:43] Guest96_: has joined #ruby
[18:10:06] Guest32442: baweaver: Thx, using MemoryProfiler I was able to determine the issue with my code
[18:11:25] weaksauce: has joined #ruby
[18:11:56] bronson: has joined #ruby
[18:15:05] patarr: has joined #ruby
[18:15:39] gbgdev: has joined #ruby
[18:16:13] jenrzzz: has joined #ruby
[18:16:13] jenrzzz: has joined #ruby
[18:18:24] cagomez_: has joined #ruby
[18:19:38] cagomez: has joined #ruby
[18:20:18] cagomez: has joined #ruby
[18:24:40] Arpanet69: has joined #ruby
[18:24:55] mim1k: has joined #ruby
[18:25:26] nertzy: has joined #ruby
[18:27:03] ghostNaStuff: has joined #ruby
[18:29:48] newlearner: has joined #ruby
[18:31:05] __Yiota: has joined #ruby
[18:34:14] outreachdan: has joined #ruby
[18:35:52] t-recx: has joined #ruby
[18:37:30] gigetoo: has joined #ruby
[18:40:36] nicesignal: has joined #ruby
[18:41:52] hotpancakes: has joined #ruby
[18:43:13] hotpanca_: has joined #ruby
[18:43:52] enterprisey: has joined #ruby
[18:46:17] vondruch: has joined #ruby
[18:47:06] postmodern: has joined #ruby
[18:47:30] jenrzzz: has joined #ruby
[18:50:34] vondruch: has joined #ruby
[18:50:41] Rodya_: has joined #ruby
[18:51:19] bronson: has joined #ruby
[18:52:52] t-recx: has joined #ruby
[18:53:33] lxsameer: has joined #ruby
[18:53:53] jud: has joined #ruby
[18:54:15] anisha: has joined #ruby
[18:55:26] futilegames: has joined #ruby
[18:57:43] sparr: has joined #ruby
[18:58:40] unreal: has joined #ruby
[18:59:52] ozcanesen: has joined #ruby
[19:03:44] gbailey: has joined #ruby
[19:06:00] DARPA: has joined #ruby
[19:06:03] jcao219: has joined #ruby
[19:06:35] gusrub: has joined #ruby
[19:12:31] mooser: has joined #ruby
[19:23:30] ghostNaStuff: has joined #ruby
[19:23:35] hotpancakes: has joined #ruby
[19:29:44] skweek: has joined #ruby
[19:31:25] hotpancakes: has joined #ruby
[19:32:30] hotpanca_: has joined #ruby
[19:33:21] nhhc: has joined #ruby
[19:35:48] hotpancakes: has joined #ruby
[19:36:23] r3m: has left #ruby: ("WeeChat 1.8-dev")
[19:46:28] sepp2k: has joined #ruby
[19:48:46] olivier__: has joined #ruby
[19:49:44] Polysics: has joined #ruby
[19:51:03] __Yiota: has joined #ruby
[19:52:03] gusrub: has joined #ruby
[19:53:06] jenrzzz: has joined #ruby
[19:53:10] Rodya_: has joined #ruby
[19:54:51] ddffg: has joined #ruby
[19:55:51] olivier__: has joined #ruby
[19:56:03] vondruch: has joined #ruby
[19:56:32] mooser: has joined #ruby
[19:56:40] misto: has joined #ruby
[19:57:50] outreachdan: has joined #ruby
[19:58:48] treeman: has joined #ruby
[19:59:30] dviola: has joined #ruby
[20:00:36] vondruch: has joined #ruby
[20:00:43] gusrub: has joined #ruby
[20:02:44] pifon: has joined #ruby
[20:03:54] blipz: has joined #ruby
[20:04:32] username1: has joined #ruby
[20:06:03] skweek: has joined #ruby
[20:07:16] SteenJobs: has joined #ruby
[20:11:05] vondruch: has joined #ruby
[20:11:48] alazred: has joined #ruby
[20:12:04] Rodya_: has joined #ruby
[20:13:39] __Yiota: has joined #ruby
[20:17:26] __Yiota: has joined #ruby
[20:19:37] jeffreylevesque: has joined #ruby
[20:20:34] vondruch: has joined #ruby
[20:21:22] ddffg: has joined #ruby
[20:24:37] Lucky_ABA: has joined #ruby
[20:26:03] vondruch: has joined #ruby
[20:28:16] cagomez: has joined #ruby
[20:29:00] patarr: has joined #ruby
[20:30:34] vondruch: has joined #ruby
[20:31:19] hotpancakes: has joined #ruby
[20:31:39] hotpanca_: has joined #ruby
[20:33:43] jenrzzz: has joined #ruby
[20:33:43] jenrzzz: has joined #ruby
[20:35:13] __Yiota: has joined #ruby
[20:37:31] rgr: has joined #ruby
[20:38:05] arup_r: has joined #ruby
[20:38:39] __Yiota: has joined #ruby
[20:39:29] Mia: has joined #ruby
[20:39:33] sdwrage: has joined #ruby
[20:40:07] Cohedrin: has joined #ruby
[20:40:37] dviola: has joined #ruby
[20:46:01] vondruch: has joined #ruby
[20:46:07] gizmore: has joined #ruby
[20:50:53] vondruch: has joined #ruby
[20:51:45] misto: has joined #ruby
[21:02:31] Polysics: has joined #ruby
[21:02:43] __Yiota: has joined #ruby
[21:03:49] Polysics: has joined #ruby
[21:05:01] Renerte852: has joined #ruby
[21:05:11] Renerte: has joined #ruby
[21:06:03] vondruch: has joined #ruby
[21:06:04] Renerte417: has joined #ruby
[21:08:09] _sfiguser: has joined #ruby
[21:10:18] TreyG: has joined #ruby
[21:10:33] vondruch: has joined #ruby
[21:10:42] outreachdan: has joined #ruby
[21:12:05] Renerte222: has joined #ruby
[21:12:59] rexb0t: has joined #ruby
[21:13:09] BinaryOverlod: has joined #ruby
[21:15:06] BinaryOverlod: has left #ruby: ()
[21:16:30] Renerte551: has joined #ruby
[21:17:19] __Yiota: has joined #ruby
[21:17:22] ddffg: has joined #ruby
[21:17:48] Renerte: has left #ruby: ()
[21:17:52] jusa: has joined #ruby
[21:19:32] kent\n: has joined #ruby
[21:20:02] brent__: has joined #ruby
[21:22:46] outreachdan: has joined #ruby
[21:23:11] hotpancakes: has joined #ruby
[21:24:43] mim1k: has joined #ruby
[21:28:41] patarr: has joined #ruby
[21:34:36] A124: has joined #ruby
[21:40:42] SeepingN_: has joined #ruby
[21:42:47] esObe_: has joined #ruby
[21:44:15] d5sx43: has joined #ruby
[21:46:23] pupsicle: has joined #ruby
[21:47:51] joelwallis: has joined #ruby
[21:48:41] Renich: has joined #ruby
[21:49:02] __Yiota: has joined #ruby
[21:49:59] hotpancakes: has joined #ruby
[21:50:28] esObe_: has joined #ruby
[21:51:31] SteenJobs: has joined #ruby
[21:56:01] vondruch: has joined #ruby
[22:00:00] mooser: has joined #ruby
[22:00:35] vondruch: has joined #ruby
[22:03:56] __Yiota: has joined #ruby
[22:06:49] __Yiota: has joined #ruby
[22:08:19] hotpancakes: has joined #ruby
[22:10:00] __Yiota: has joined #ruby
[22:10:59] volty: has joined #ruby
[22:11:22] bronson: has joined #ruby
[22:21:02] vondruch: has joined #ruby
[22:21:57] CloCkWeRX: has joined #ruby
[22:22:56] esObe_: has joined #ruby
[22:25:37] vondruch: has joined #ruby
[22:28:01] workmad3: has joined #ruby
[22:32:55] __Yiota: has joined #ruby
[22:33:08] pilne: has joined #ruby
[22:33:50] olivier__: has joined #ruby
[22:35:24] patr0clus: has joined #ruby
[22:38:30] __Yiota: has joined #ruby
[22:39:48] hotpancakes: has joined #ruby
[22:40:24] hotpancakes: has joined #ruby
[22:42:15] ddffg: has joined #ruby
[22:42:56] esObe_: has joined #ruby
[22:43:56] mzo: has joined #ruby
[22:44:47] brent__: has joined #ruby
[22:45:27] brent__: has joined #ruby
[22:46:20] brent__: has joined #ruby
[22:50:10] gusrub: has joined #ruby
[22:50:12] dviola: has joined #ruby
[22:50:50] gusrub: has joined #ruby
[22:52:01] hotpancakes: has joined #ruby
[22:53:22] bronson: has joined #ruby
[22:56:57] gusrub: has joined #ruby
[22:57:21] __Yiota: has joined #ruby
[22:58:12] RobertBirnie: has joined #ruby
[23:01:02] vondruch: has joined #ruby
[23:01:20] esObe_: has joined #ruby
[23:02:18] negatifze: has joined #ruby
[23:03:25] lxsameer: has joined #ruby
[23:05:15] __Yiota: has joined #ruby
[23:05:36] vondruch: has joined #ruby
[23:07:57] jcao219: has joined #ruby
[23:08:11] dcunit3d: has joined #ruby
[23:08:39] fourcolors: has joined #ruby
[23:08:59] brent__: has joined #ruby
[23:09:09] ddffg: has joined #ruby
[23:09:39] fourcolors: Hey, I'm trying to use 'test/unit' a very simple ruby program I'm writing but I can't seem to get test to run with a simple `ruby my_file_test.rb`
[23:09:51] fourcolors: I have included `test/unit`
[23:09:55] fourcolors: and extended the class
[23:10:06] fourcolors: is there something more I should be doing to get a test to run?
[23:10:34] fourcolors: https://gist.github.com/fourcolors/bdd7be51cd4a3c4d0ce0b7fac763d73b
[23:10:39] fourcolors: this is what I have
[23:10:46] fourcolors: shouldn't that return true?
[23:10:47] username1: has joined #ruby
[23:12:41] hotpancakes: has joined #ruby
[23:16:01] vondruch: has joined #ruby
[23:16:46] fourcolors: Ok, I figured this out. Each method must have the `test_` lol
[23:22:43] mooser: has joined #ruby
[23:24:18] dviola: has joined #ruby
[23:25:08] mim1k: has joined #ruby
[23:25:34] vondruch: has joined #ruby
[23:25:35] jenrzzz: has joined #ruby
[23:25:35] jenrzzz: has joined #ruby
[23:30:22] hotpancakes: has joined #ruby
[23:33:27] cseder: has joined #ruby
[23:35:40] olivier__: has joined #ruby
[23:36:03] vondruch: has joined #ruby
[23:40:35] vondruch: has joined #ruby
[23:41:41] SteenJobs: has joined #ruby
[23:44:46] rhyselsmore: has joined #ruby
[23:47:39] brent__: has joined #ruby
[23:50:32] mikeiniowa: has joined #ruby