« Back to channel list

#ruby - 06 June 2015

« Back 1 day Forward 1 day »
[00:00:15] bruno-: has joined #ruby
[00:01:51] kinduff: baweaver: thanks for pointing that out. Been with Rails for 3 years now, I'm looking to get the right path of starting this service thing. Thanks.
[00:02:04] colin_: I guess I expect everything in the python standard library to be in the ruby standard library, but that's wishful thinking.
[00:03:47] michas: has joined #ruby
[00:04:14] axl_: has joined #ruby
[00:04:40] dnlbyl: has joined #ruby
[00:08:54] ebbflowgo: has joined #ruby
[00:09:23] mdz_: has joined #ruby
[00:09:33] pontiki: has joined #ruby
[00:14:20] g0rx_: has joined #ruby
[00:15:47] caseypat_: has joined #ruby
[00:16:04] workmad3: has joined #ruby
[00:17:18] ghr: has joined #ruby
[00:17:34] ledestin: has joined #ruby
[00:18:22] nedp: has joined #ruby
[00:18:46] mcclurmc_: has joined #ruby
[00:18:54] sarlalian: has joined #ruby
[00:19:48] Rubie: has joined #ruby
[00:20:57] kies: has joined #ruby
[00:21:04] bkxd: has joined #ruby
[00:21:34] al2o3-cr: has joined #ruby
[00:24:24] gsd: has joined #ruby
[00:24:27] cryptarium: has joined #ruby
[00:25:13] jenrzzz: has joined #ruby
[00:25:44] Torrieri: has joined #ruby
[00:27:52] djbkd: has joined #ruby
[00:28:08] serivich: has joined #ruby
[00:33:10] towski_: has joined #ruby
[00:35:27] mark06: has joined #ruby
[00:36:51] fujimura: has joined #ruby
[00:37:02] CloCkWeRX: has joined #ruby
[00:37:37] GnuYawk: has joined #ruby
[00:39:14] jackjackdripper: has joined #ruby
[00:40:42] senayar: has joined #ruby
[00:41:13] fedexo: has joined #ruby
[00:41:43] mark06: has left #ruby: ("http://pidgin.renatosilva.me - Pidgin++")
[00:42:03] jason_rad: has joined #ruby
[00:42:09] jackjackdripper: has joined #ruby
[00:42:51] dnlbyl: has joined #ruby
[00:43:28] jason_rad: Hi guys, learning ruby here ( first language ) and I'm a little confused as to which way things go. For example http://pastie.org/10226029 Do I break down what I want to do in multiple lines, or just create one liners with methods upon methods tied together?
[00:43:59] harly: has joined #ruby
[00:44:06] jason_rad: I find myself doing a mixture of this especially since I don't realize all the methods to certain objects
[00:44:07] jackjackdripper1: has joined #ruby
[00:45:26] robustus: has joined #ruby
[00:46:17] havenwood: jason_rad: puts File.read ARGV.first
[00:46:57] havenwood: jason_rad: Both of the ways you showed leave the file open unless you explicitly: File.close file
[00:47:31] jason_rad: havenwood: I thought ruby does memory management by itself and I don't ahve to explicitly destroy object
[00:47:45] Ox0dea: jason_rad: Closing and destroying aren't synonymous.
[00:48:01] havenwood: jason_rad: File::open with a block will close the file when the block closes. Without a block it leaves the file open.
[00:48:23] havenwood: jason_rad: For a simple read, do like my example.
[00:48:34] havenwood: jason_rad: IO::read
[00:49:04] pontiki: the file will close when the enclosing scope ends, but it's bad form, especially if all of them are opened in the root scope
[00:49:18] havenwood: jason_rad: If you can't read the whole file into memory at once, or need other fine grained access, use File::open with a block. For simple stuff IO::read.
[00:49:59] noethics: i think somehow i went from writing a queue server to a database
[00:50:13] jason_rad: havenwood: Thanks for this info. I'm reading learn ruby the hardway. I can grasp the syntax etc, but find myself struggling with I guess the theory on how to tie it together correctly
[00:50:16] harly: i thought it closed on GC, not scope end? when GC calls finalize.
[00:50:33] Ox0dea: harly: Why?
[00:50:51] harly: becuase that's what I thought?
[00:52:18] Ox0dea: harly: Yes, but there's no precedent for arriving at such a conclusion.
[00:52:28] Ox0dea: It doesn't make any sense to garbage-collect an open file.
[00:52:35] c355E3B: has joined #ruby
[00:53:07] harly: GC doesn't care if a file is open or not. it cleans up things which are no longer referenced. it calls finalize to give that object an option to do anything it needs to do. which in the case of an open file, is to close it.
[00:53:33] harly: but pontiki said it closes when it falls out of scope. That, I don't know how it would do.
[00:53:59] Ox0dea: harly: Blocks make object management very easy.
[00:55:15] sankaber: has joined #ruby
[00:58:40] xxneolithicxx: has joined #ruby
[01:02:10] jackjackdripper: has joined #ruby
[01:03:36] porkqpain: has joined #ruby
[01:04:13] porkqpain: has left #ruby: ()
[01:04:41] bmurt: has joined #ruby
[01:06:24] blue_deref: has joined #ruby
[01:07:01] yoongkang: has joined #ruby
[01:08:23] fabrice31: has joined #ruby
[01:09:32] gambl0re: has joined #ruby
[01:12:08] Limix: has joined #ruby
[01:12:21] rkazak: has joined #ruby
[01:13:34] mh888: has joined #ruby
[01:15:39] bertocode: has joined #ruby
[01:15:57] amclain: has joined #ruby
[01:16:05] icbm: has joined #ruby
[01:16:40] mc_fail_: has joined #ruby
[01:17:44] swgillespie: has joined #ruby
[01:18:02] ghr: has joined #ruby
[01:20:28] j4cknewt: has joined #ruby
[01:20:50] rodfersou: has joined #ruby
[01:22:52] Brozo: has joined #ruby
[01:25:17] Brozo: has joined #ruby
[01:28:19] LITesterB: has joined #ruby
[01:28:45] freerobby: has joined #ruby
[01:29:52] freerobby: has joined #ruby
[01:29:59] wjimenez5271: has joined #ruby
[01:30:27] mh888: has joined #ruby
[01:32:54] Y4Rv1K: has joined #ruby
[01:34:29] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[01:35:15] nizmow: has joined #ruby
[01:35:25] mh888: has left #ruby: ()
[01:35:25] mrmargolis: has joined #ruby
[01:40:15] seanstickle: has joined #ruby
[01:41:16] michas: has joined #ruby
[01:41:23] senayar: has joined #ruby
[01:42:15] snsei: has joined #ruby
[01:42:51] bronson: has joined #ruby
[01:43:19] bnagy: it'll never catch on as a phrase
[01:43:36] Brozo_: has joined #ruby
[01:44:18] RegulationD: has joined #ruby
[01:45:00] mdz_: has joined #ruby
[01:45:01] snsei: has joined #ruby
[01:45:10] seanstickle: bnagy: I???m holding out hope
[01:45:38] elton: has joined #ruby
[01:45:38] abuzze_: has joined #ruby
[01:46:34] Kricir: has joined #ruby
[01:48:36] bogdanteleaga: has joined #ruby
[01:48:39] leat1: has joined #ruby
[01:48:55] dfockler: has joined #ruby
[01:52:38] fujimura_: has joined #ruby
[01:53:20] Y4Rv1K: has joined #ruby
[01:55:48] _seanc_: has joined #ruby
[02:00:34] fluter: has joined #ruby
[02:02:06] Scripore: has joined #ruby
[02:03:47] Y4Rv1K: has joined #ruby
[02:04:44] Y4Rv1K: has joined #ruby
[02:05:25] bronson: has joined #ruby
[02:05:37] caseypatrickdris: has joined #ruby
[02:07:11] Y4Rv1K: has joined #ruby
[02:07:21] yoongkang: has joined #ruby
[02:08:40] Y4Rv1K: has joined #ruby
[02:09:16] Y4Rv1K: has joined #ruby
[02:10:16] Y4Rv1K_: has joined #ruby
[02:10:30] Brozo: has joined #ruby
[02:12:53] bkxd: has joined #ruby
[02:16:02] Y4Rv1K: has joined #ruby
[02:18:10] iamninja: has joined #ruby
[02:19:24] mary5030: has joined #ruby
[02:20:29] Y4Rv1K: has joined #ruby
[02:22:48] diegoviola: has joined #ruby
[02:24:08] balazs: has joined #ruby
[02:28:24] shevy: several from #ruby are not here jhass
[02:28:35] shevy: no I am so dumb
[02:28:38] shevy: I meant to type #ruby-lang
[02:28:45] nahtnam: has joined #ruby
[02:29:12] mozzarella: I??thought that channel was about to get deleted
[02:29:16] mozzarella: or something like that
[02:29:42] Brozo: isnt it the other way around?
[02:30:36] bootstrappm: has joined #ruby
[02:31:58] shevy: well the channel is: * Cannot join #ruby-lang (Channel is invite only).
[02:32:02] shevy: but I wonder
[02:32:05] shevy: who is there?
[02:32:10] swgillespie: has joined #ruby
[02:33:49] xxneolithicxx: i thought we were supposed to exceed 1k :-/
[02:34:00] CustosLimen: has joined #ruby
[02:34:07] jhass: we actually do most of the day
[02:34:19] noethics: has joined #ruby
[02:34:25] jhass: weekends always are a bit lower too
[02:34:29] swgillespie: has joined #ruby
[02:34:33] xxneolithicxx: must not be paying attention during work hrs
[02:36:23] Musashi007: has joined #ruby
[02:36:29] jhass: shevy: so who do you miss?
[02:40:42] rodfersou: has joined #ruby
[02:41:18] Jandre: has joined #ruby
[02:41:24] newbrubyist: has joined #ruby
[02:42:29] senayar: has joined #ruby
[02:42:58] shevy: jhass everyone!
[02:43:39] shevy: it seems as if there are some more nicks here now... let's see
[02:44:17] gsd: has joined #ruby
[02:45:35] Scripore: has joined #ruby
[02:50:04] diegoviola: christ, php still doesn't support UTF8?
[02:50:07] diegoviola: what the f*ck
[02:52:40] serivichi: has joined #ruby
[02:52:41] Ox0dea: has joined #ruby
[02:52:52] Ox0dea: diegoviola: https://github.com/tenderlove/phuby
[02:52:56] bootstrappm: just got out of like 6.5 hours of meetings
[02:53:02] Ox0dea: Seems like a suitable alternative.
[02:53:22] fujimura_: has joined #ruby
[02:53:49] bootstrappm: hey zenspider's on that gem
[02:53:51] duncannz: has joined #ruby
[02:54:56] cryptarium_: has joined #ruby
[02:55:09] shevy: bootstrappm that's a long meeting
[02:55:26] shevy: was much wisdom shared in it?
[02:55:47] pontiki: that's way too long for meetings. i'd be hurting too.
[02:57:29] darkf: has joined #ruby
[02:57:43] Y4Rv1K: has joined #ruby
[02:58:20] mfranzwa: has left #ruby: ()
[02:59:10] bootstrappm: it was sprint review + retrospective then eveybody went home and product backlog refinement with my cofounder
[02:59:28] bootstrappm: first part was like 3 hours, the product backlog was another 3 - 4
[03:00:12] bruno-: has joined #ruby
[03:00:34] bootstrappm: just too much thinking and talking
[03:00:42] bootstrappm: playign Battle for Wesnoth for a couple minutes to reset
[03:01:35] mdz_: has joined #ruby
[03:02:23] riotjones: has joined #ruby
[03:04:16] lkba_: has joined #ruby
[03:05:01] Y4Rv1K: has joined #ruby
[03:05:29] shevy: take elves, they are best
[03:06:46] Brozo: has joined #ruby
[03:06:50] adefa: has joined #ruby
[03:09:04] fabrice31: has joined #ruby
[03:11:47] braincras: has joined #ruby
[03:12:24] gsd: has joined #ruby
[03:13:58] serivich: has joined #ruby
[03:14:46] slawrence00: has joined #ruby
[03:16:35] bootstrappm: has left #ruby: ()
[03:16:39] Channel6: has joined #ruby
[03:18:10] mc_fail: has joined #ruby
[03:18:12] CustosLimen: has joined #ruby
[03:19:56] nini1294: has joined #ruby
[03:23:19] balazs: has joined #ruby
[03:31:37] chipotle: has joined #ruby
[03:42:10] Rubie: has joined #ruby
[03:42:20] jenrzzz: has joined #ruby
[03:42:52] yfeldblum: has joined #ruby
[03:43:22] senayar: has joined #ruby
[03:43:29] Encapsulation: has joined #ruby
[03:47:42] OtterCoder: has joined #ruby
[03:47:42] jack_rabbit: has joined #ruby
[03:49:41] Limix: has joined #ruby
[03:50:02] shevy: is there a way to grab the content of a block given to a method, in form of a String? I need to parse a block for certain keywords, before I evalute it via instance_eval
[03:50:37] Ox0dea: shevy: Alas, no. :(
[03:51:11] Ox0dea: >> RubyVM::InstructionSequence.of(-> { |a, b| a + b }).to_a
[03:51:13] ruboto: Ox0dea # => /tmp/execpad-5bedd0f41fbe/source-5bedd0f41fbe:2: syntax error, unexpected '|' ...check link for more (https://eval.in/376380)
[03:51:20] shevy: I sort of need some kind of finalizer-hook
[03:51:28] shevy: but I haven't thought about it completely yet
[03:51:32] Ox0dea: shevy: at_exit or END?
[03:51:42] shevy: I hate at_exit...
[03:51:56] shevy: I remember when several different .rb files have at_exit, it becomes confusing for me what is going on
[03:52:02] Ox0dea: Wow, I derped on the lambda syntax back there.
[03:52:17] Ox0dea: >> RubyVM::InstructionSequence.of(-> a, b { a + b }).to_a
[03:52:18] ruboto: Ox0dea # => ["YARVInstructionSequence/SimpleDataFormat", 2, 2, 1, {:arg_size=>2, :local_size=>3, :stack_max=>2}, ...check link for more (https://eval.in/376381)
[03:52:35] Ox0dea: shevy: You could try your hand at parsing the block's iseq?
[03:52:55] jerematic: has joined #ruby
[03:53:04] shevy: Ox0dea iseq?
[03:53:08] workmad3: has joined #ruby
[03:53:19] Ox0dea: shevy: Instruction sequence.
[03:53:22] Ox0dea: https://gist.github.com/0x0dea/ff92b5bc4887d1d04f3a
[03:53:48] rushed: has joined #ruby
[03:54:04] swgillespie: has joined #ruby
[03:57:45] deavid: has joined #ruby
[03:58:45] gix: has joined #ruby
[03:59:13] dopie: has joined #ruby
[03:59:16] rickmasta: has joined #ruby
[03:59:22] bkxd: has joined #ruby
[04:09:07] fujimura: has joined #ruby
[04:10:52] aoyr115: has joined #ruby
[04:11:58] Axsuul: has joined #ruby
[04:12:36] baweaver: has joined #ruby
[04:14:43] leat1: has joined #ruby
[04:14:47] Ox0dea: Being able to go from RubyVM::InstructionSequence to string of code would be really nice.
[04:15:32] bantic: has joined #ruby
[04:15:58] Ox0dea: https://github.com/ruby/ruby/blob/trunk/iseq.c#L2343
[04:16:10] Ox0dea: Why not just enable it anyway? It's not like you could accidentally use it.
[04:16:22] charliesome: has joined #ruby
[04:17:57] jacor: has joined #ruby
[04:18:14] yoongkang: has joined #ruby
[04:21:22] kith_: has joined #ruby
[04:21:32] sigden: has joined #ruby
[04:21:46] stonith: has joined #ruby
[04:21:46] stonith: has joined #ruby
[04:26:50] nonparfumee: has joined #ruby
[04:27:42] quesker: has left #ruby: ()
[04:28:32] willharrison: has joined #ruby
[04:29:35] n1x: has joined #ruby
[04:29:39] axsuul_: has joined #ruby
[04:32:47] jenrzzz: has joined #ruby
[04:33:56] aoyr115: Hello, I???m stuck on a problem building a factorygirl object with rspec and ruby and would really appreciate any new ideas. When I run the spec to create a valid factory, I get an argument error of missing keywords, even if I pass in the required keywords to initialize the object in the build(:object)???I???ve tried googling for a while and removing the keyword argument params, with no luck
[04:34:10] ponga: has joined #ruby
[04:35:02] stardiviner: has joined #ruby
[04:36:03] n1x: has joined #ruby
[04:37:41] yfeldblum: has joined #ruby
[04:38:01] mc_fail_: has joined #ruby
[04:38:58] bigmac_: has joined #ruby
[04:39:09] nickmm: has joined #ruby
[04:39:26] keen___________6: has joined #ruby
[04:40:31] sevenseacat: has joined #ruby
[04:43:01] mc_fail: has joined #ruby
[04:43:01] pengin: has joined #ruby
[04:44:37] senayar: has joined #ruby
[04:45:33] RegulationD: has joined #ruby
[04:46:32] Y4Rv1K: has joined #ruby
[04:46:51] HotCoder: has joined #ruby
[04:47:08] rushed: has joined #ruby
[04:50:07] sigden: has joined #ruby
[04:51:18] Miphix: has joined #ruby
[04:51:48] nonparfumee: has joined #ruby
[04:52:15] bantic: has joined #ruby
[04:55:04] Brozo: has left #ruby: ("Leaving...")
[04:55:33] deavid: has joined #ruby
[04:59:20] bkxd: has joined #ruby
[04:59:40] sigden: has joined #ruby
[05:00:37] jbomo: has left #ruby: ()
[05:01:35] GnuYawk: has joined #ruby
[05:03:11] riotjones: has joined #ruby
[05:06:46] mc_fail: has joined #ruby
[05:07:24] iamninja: has joined #ruby
[05:09:47] A205B064: has joined #ruby
[05:09:53] fabrice31: has joined #ruby
[05:09:59] mrsolo: has joined #ruby
[05:10:29] ruby-lang101: has joined #ruby
[05:16:24] leat1: has joined #ruby
[05:22:48] jackjackdripper: has joined #ruby
[05:25:52] chinmay_dd: has joined #ruby
[05:31:28] lxsameer: has joined #ruby
[05:31:40] dopie: has joined #ruby
[05:31:51] bronson: has joined #ruby
[05:32:23] nini1294: has joined #ruby
[05:33:20] Guest51_: has joined #ruby
[05:36:43] revath: has joined #ruby
[05:41:49] agilenav: has joined #ruby
[05:41:49] _blizzy_: has joined #ruby
[05:42:04] workmad3: has joined #ruby
[05:42:33] lavros: has joined #ruby
[05:42:33] Guest51_: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[05:43:47] agilenav: has joined #ruby
[05:45:04] senayar: has joined #ruby
[05:45:11] Axsuul: has joined #ruby
[05:45:46] thelastinuit: has joined #ruby
[05:46:16] agilenav: has joined #ruby
[05:48:20] agilenav: has joined #ruby
[05:48:48] fusillicode: has left #ruby: ()
[05:51:09] mcclurmc: has joined #ruby
[05:51:10] lxsameer: has joined #ruby
[05:51:50] leat1: has joined #ruby
[05:54:49] datanoise: has joined #ruby
[05:55:14] speakingcode: has joined #ruby
[05:56:22] adefa: has joined #ruby
[05:57:53] fujimura: has joined #ruby
[05:58:06] leat1: has joined #ruby
[05:58:40] Soda: has joined #ruby
[05:58:41] Spami: has joined #ruby
[05:59:03] yeticry: has joined #ruby
[06:00:59] ponga: has joined #ruby
[06:02:25] mark[oz]: has joined #ruby
[06:03:25] agent_white: has joined #ruby
[06:03:27] j4cknewt: has joined #ruby
[06:03:46] multi_io: has joined #ruby
[06:08:01] bkxd: has joined #ruby
[06:09:07] mcclurmc: has joined #ruby
[06:10:12] lkba: has joined #ruby
[06:10:19] bruno-: has joined #ruby
[06:11:00] mdw: has joined #ruby
[06:11:08] ellisTAA: has joined #ruby
[06:11:27] KnownSyntax: has joined #ruby
[06:12:58] lkba: has joined #ruby
[06:13:49] agent_white: Evenin' folks
[06:14:31] Igorshp: has joined #ruby
[06:14:55] ellisTAA: has joined #ruby
[06:21:47] ghr: has joined #ruby
[06:22:13] kies: has joined #ruby
[06:22:40] jmhmccr: has joined #ruby
[06:24:18] sandelius: has joined #ruby
[06:25:32] justintv90: has joined #ruby
[06:25:57] sandelius: anyone know it there's a good json serializer gem that does not depend on activesupper/activemodel
[06:28:04] charliesome: has joined #ruby
[06:28:07] Ox0dea: sandelius: Are you using 1.8?
[06:28:12] Jandre: has joined #ruby
[06:29:12] Ox0dea: sandelius: Does the standard JSON library not do what you need?
[06:29:56] sandelius: Ox0dea I need a seriale-mapper to structure my objects. jsonify looks interesing https://github.com/bsiggelkow/jsonify
[06:31:24] Ox0dea: sandelius: And you're certain you want to serialize complex objects to JSON?
[06:31:41] sandelius: Ox0dea it's for a REST api.
[06:33:53] allomov: has joined #ruby
[06:34:02] Ox0dea: sandelius: With what sort of data does your API respond?
[06:34:23] RegulationD: has joined #ruby
[06:34:31] Ox0dea: Arrays, numbers, strings, and hashes, presumably?
[06:35:43] sandelius: Ox0dea Perhaps I should've said that I'm serializing model attributes. It's a SaaS application so it all kind of stuff including relations.
[06:36:59] CloCkWeRX: has joined #ruby
[06:38:51] frank_o: has joined #ruby
[06:41:22] atm0sphere: has joined #ruby
[06:41:36] atm0sphere: what is the difference between end and $end?
[06:42:05] sevenseacat: ones a keyword, one's a global variable
[06:42:33] atm0sphere: when i run a program it gives an error of $end missing but when i give it shows some another error
[06:43:04] sandelius: atm0sphere can you gist it?
[06:43:09] sevenseacat: an error like that means you have an extra `end` - its expeting the end of file and not getting it
[06:43:17] aapole: has joined #ruby
[06:43:54] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[06:45:36] shevy: sevenseacat is a teaching cat
[06:45:57] senayar: has joined #ruby
[06:46:30] mandarinkin: has joined #ruby
[06:50:43] duderonomy: has joined #ruby
[06:52:31] atm0sphere: sadelius: https://gist.github.com/aj07/db93a1fa0ab665ca171d
[06:55:11] Ox0dea: atm0sphere: How did you get yourself into such a mess?
[06:55:28] hubcaps: has joined #ruby
[06:56:09] atm0sphere: beginner can get in such type error..
[06:58:19] bkxd: has joined #ruby
[06:58:57] atm0sphere: https://gist.github.com/aj07/db93a1fa0ab665ca171d
[06:59:05] stardiviner: has joined #ruby
[06:59:12] roolo: has joined #ruby
[06:59:58] bnagy: atm0sphere: $end is not a thing you should use
[07:00:22] atm0sphere: bnagy : it means there is some error in program
[07:00:47] CloCkWeRX1: has joined #ruby
[07:01:08] bnagy: yes, there is
[07:01:29] bnagy: it looks like you want to delete line 6 and change line 10 to end (not $end)
[07:01:54] bnagy: you might also need a newline on line 4 after module AddressBook
[07:01:59] bnagy: even if you don't you should add one
[07:02:05] InternetFriend: has joined #ruby
[07:02:41] rht: has joined #ruby
[07:02:50] atm0sphere: i can say that in line 6 i have put an extra end which was unnecessary.. thanks
[07:03:27] tvw: has joined #ruby
[07:03:28] bnagy: oh, this is partial code
[07:03:48] bnagy: carry on then :)
[07:03:59] atm0sphere: there you will get reuire error..
[07:04:42] atm0sphere: there is no need of newline in line 4 means?
[07:05:24] bnagy: usually 'module Blah' is on a line by itself
[07:06:05] bnagy: well I think it will parse
[07:06:10] bnagy: but you should put one there :)
[07:09:53] sandelius: has joined #ruby
[07:10:42] fabrice31: has joined #ruby
[07:12:29] shevy: how do you guys handle/deal with html via ruby? do you use erb? do you generate html?
[07:13:02] atm0sphere: copy and paste the code oftemplate
[07:13:03] baweaver: shevy: regex
[07:13:39] fujimura: has joined #ruby
[07:13:41] baweaver: Normally HAML honestly though
[07:13:51] baweaver: erb is a bit clunky to me
[07:14:21] davedev24_: has joined #ruby
[07:14:31] sandelius: baweave I like slim
[07:15:03] baweaver: Ah, also, Lemur holding a Ruby in an old school newspaper style because I can: http://i61.tinypic.com/2rer0oo.jpg
[07:15:21] dfockler: has joined #ruby
[07:15:45] Ox0dea: > tinypic
[07:16:14] shevy: http://oi61.tinypic.com/2rer0oo.jpg
[07:16:19] shevy: I can't tell what you are
[07:16:21] shevy: are you a beaver
[07:16:24] shevy: are you a lemur
[07:16:24] MasterPiece: has joined #ruby
[07:16:26] shevy: are you a shapechanger
[07:16:48] baweaver: I am all things to all people
[07:16:49] Ox0dea: >> 'baweaver'['beaver']
[07:16:51] ruboto: Ox0dea # => nil (https://eval.in/376405)
[07:17:01] baweaver: Redesigning the blog again
[07:17:11] baweaver: and the name is technically 'The Lapidary Lemur'
[07:17:19] baweaver: Lapidary being one who works with gems
[07:17:48] baweaver: So screwing about with stock photos and anthropomorphisms.
[07:18:01] baweaver: (there is no way I spelled that right)
[07:18:13] Ox0dea: And yet you did.
[07:18:17] sevenseacat: its right afaik
[07:18:22] marr: has joined #ruby
[07:18:24] baweaver: huh, well go figure.
[07:18:32] baweaver: related to ruby in that I write ruby things on said blog
[07:18:40] Ox0dea: Why not "lapidicolous"?
[07:18:59] baweaver: because I already bought http://www.lapidarylemur.com
[07:19:23] sevenseacat: ACTION bought http://sevensea.cat the other day
[07:19:24] baweaver: wow, that does not like loading images properly. Hm.
[07:20:03] baweaver: side note, chrome hates fixed images
[07:20:31] sandelius: I've open sourced a rack based framework I've used for a while. Anyone want to take a peek at it, it's here: http://ramverk.org/ A sandbox app can be cloned from here: https://github.com/ramverk/sandbox
[07:20:33] ur5us: has joined #ruby
[07:20:53] sandelius: I would really appreciate your thoughts
[07:21:09] sandelius: The website needs a lot of love though :)
[07:22:32] ghr: has joined #ruby
[07:23:44] baweaver: sandelius: Website is actually not bad. Maybe a little less top margins there on the header but not bad by any stretch.
[07:23:53] OrbitalKitten: has joined #ruby
[07:25:10] serivichi: has joined #ruby
[07:25:57] sandelius: baweaver ohh thanks. Writing docs is not easy. Especially when english isn't your native language
[07:26:18] sandelius: baweaver the code is prettier though :)
[07:26:48] senayar: has joined #ruby
[07:28:41] baweaver: http://www.fontsquirrel.com/fonts/nexa-rust - also got a font picked out for the redesign on headers. Going for oldschool design
[07:28:50] Hanmac: has joined #ruby
[07:29:07] baweaver: (that site is handy for finding good free fonts by the way)
[07:29:53] Oog: has joined #ruby
[07:30:09] sevenseacat: oh wow, oxygen has a mono font, that might work for my blog (of which the main font is oxygen)
[07:30:46] baweaver: Also, always pingable on design stuff
[07:32:32] bronson: has joined #ruby
[07:39:34] sandelius: sevenseacat just read your post about database cleaner strategy. What about the transaction strategy?
[07:40:09] sevenseacat: sandelius: you cant use transaction strategy when dealing with integration tests, driven by an external browser
[07:40:27] sandelius: sevenseacat ahh yeah that's true. didn't think of that
[07:42:20] sandelius: I'm trying out yaks (json mapper) https://github.com/plexus/yaks it's really nice
[07:43:15] bruno-: has joined #ruby
[07:44:08] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[07:44:19] arup_r: has joined #ruby
[07:45:41] adefa: has joined #ruby
[07:46:50] bkxd: has joined #ruby
[07:47:06] TheHodge: has joined #ruby
[07:47:14] tsujp: has joined #ruby
[07:48:23] ahmetkapikiran: has joined #ruby
[07:48:27] gagrio: has joined #ruby
[07:49:25] yeticry: has joined #ruby
[07:50:13] charliesome: has joined #ruby
[07:50:20] mister_solo: has joined #ruby
[07:52:06] allomov: has joined #ruby
[07:52:56] nish1294: has joined #ruby
[07:54:10] doctorly: has joined #ruby
[07:58:38] langlands: has joined #ruby
[07:59:57] frank_o: has joined #ruby
[08:00:15] relix: has joined #ruby
[08:01:02] senayar^: has joined #ruby
[08:01:31] starfox_sf: has joined #ruby
[08:03:27] nini1294: has joined #ruby
[08:03:38] mrsolo: has joined #ruby
[08:04:15] IanVorn: has joined #ruby
[08:04:25] car: has joined #ruby
[08:06:33] Rixius: has joined #ruby
[08:06:35] jgt1: has joined #ruby
[08:08:36] mdz_: has joined #ruby
[08:08:56] yeticry: has joined #ruby
[08:09:08] n008f4g_: has joined #ruby
[08:09:28] sandstrom: has joined #ruby
[08:09:52] bkxd: has joined #ruby
[08:10:18] tkuchiki: has joined #ruby
[08:16:40] thelastinuit: has joined #ruby
[08:17:04] codecop: has joined #ruby
[08:17:51] duncannz: has joined #ruby
[08:21:44] yfeldblum: has joined #ruby
[08:22:18] Jackneill: has joined #ruby
[08:22:22] gamer5: has joined #ruby
[08:22:52] jgt: has joined #ruby
[08:23:14] RegulationD: has joined #ruby
[08:23:16] gamer5: Free hosting by 4DY.co MySQL and PHP5 Enabled. Find out more at http://hosting.4dy.co
[08:23:25] ghr: has joined #ruby
[08:23:56] timonv: has joined #ruby
[08:23:56] mikecmpbll: has joined #ruby
[08:28:47] gauke: has joined #ruby
[08:28:53] langlands: has joined #ruby
[08:33:11] k3asd`: has joined #ruby
[08:34:12] huaming: has joined #ruby
[08:35:28] mujou: has joined #ruby
[08:36:03] Rubie: has joined #ruby
[08:41:48] krz: has joined #ruby
[08:43:03] IanVorn: has joined #ruby
[08:43:57] _blizzy_: has joined #ruby
[08:44:47] baweaver: sevenseacat: http://i57.tinypic.com/2d1wxll.png - rough idea of it, though I really like that font.
[08:45:13] sevenseacat: haha thats awesom
[08:45:31] baweaver: It'll take some work to get those vertical bars right though.
[08:46:02] baweaver: Heh, someone just asked if it was a flyer for my magic show
[08:46:24] baweaver: I mean I like to think of half the stuff I do at work as magic but that's pushing it a bit, no?
[08:46:51] sevenseacat: most of the stuff I do at work is... unglamorous
[08:47:57] baweaver: though magic is often a euphemism for please dear god don't poke it too hard or prod will die
[08:48:23] shock_one: has joined #ruby
[08:50:33] jds: has joined #ruby
[08:50:43] chussenot: has joined #ruby
[08:52:30] bkxd_: has joined #ruby
[08:55:44] chussenot: has joined #ruby
[09:02:23] fujimura: has joined #ruby
[09:03:15] senayar: has joined #ruby
[09:04:53] huaming: has joined #ruby
[09:05:05] michas: has joined #ruby
[09:05:06] justintv90: has joined #ruby
[09:05:10] DoubleMalt: has joined #ruby
[09:07:48] aapole: has joined #ruby
[09:11:20] yoongkang: has joined #ruby
[09:11:30] fabrice31: has joined #ruby
[09:12:01] bruno-: has joined #ruby
[09:15:06] fusillicode1: has joined #ruby
[09:15:18] fusillicode1: has left #ruby: ()
[09:18:39] n1x: has joined #ruby
[09:19:49] langlands: has joined #ruby
[09:21:21] fusillicode: has joined #ruby
[09:21:23] symm-: has joined #ruby
[09:21:25] fusillicode: has left #ruby: ()
[09:22:06] CloCkWeRX: has joined #ruby
[09:22:24] joneshf-laptop: has joined #ruby
[09:24:03] ghr: has joined #ruby
[09:24:23] workmad3: has joined #ruby
[09:26:56] msgodf: has joined #ruby
[09:30:04] toretore: has joined #ruby
[09:33:55] adefa: has joined #ruby
[09:35:27] DEA7TH: has joined #ruby
[09:35:40] datanoise: has joined #ruby
[09:35:49] veleno: has joined #ruby
[09:36:42] j4cknewt: has joined #ruby
[09:37:22] armyriad: has joined #ruby
[09:37:22] langlands: has joined #ruby
[09:39:12] sandelius: has joined #ruby
[09:46:49] veleno: has joined #ruby
[09:47:20] zotherstupidguy: baweaver i like your impersonal interview post
[09:48:49] zotherstupidguy: baweaver this is what a team should look like https://www.youtube.com/watch?v=ydRAb9cwHnA
[09:50:47] blt: has joined #ruby
[09:51:28] tibig: has joined #ruby
[09:57:06] Spami: has joined #ruby
[09:58:09] OrbitalKitten: has joined #ruby
[09:59:18] mh888: has joined #ruby
[10:00:24] mandarinkin: has joined #ruby
[10:00:31] Rubie: has joined #ruby
[10:01:29] jgt: good morning
[10:02:17] tkuchiki: has joined #ruby
[10:02:22] jgt: if I check what a string contains with "string".chars.map(&:ord), how can I check what character each number represents?
[10:02:39] Rollabunna: has joined #ruby
[10:03:34] caseypatrickdris: has joined #ruby
[10:03:50] razorgfx: has joined #ruby
[10:05:13] olistik: has joined #ruby
[10:07:28] lessless: has joined #ruby
[10:07:31] sdothum: has joined #ruby
[10:08:11] jgt: >> 92.chr
[10:08:12] ruboto: jgt # => "\\" (https://eval.in/376451)
[10:08:13] AlexAltea: has joined #ruby
[10:08:22] jgt: but wtf is a "\\"? :D
[10:09:55] toretore: >> puts "\\"
[10:09:56] ruboto: toretore # => \ ...check link for more (https://eval.in/376453)
[10:10:28] jgt: toretore: I *think* it???s tab character
[10:10:41] jgt: or??? non-breaking space?
[10:10:48] langlands: has joined #ruby
[10:12:09] RegulationD: has joined #ruby
[10:13:11] micmus: has joined #ruby
[10:14:07] rushed: has joined #ruby
[10:16:05] jgt: the string that I have begins with [92, 116???
[10:16:14] jgt: and together, that makes "\t"
[10:16:39] toretore: what is it exactly you're trying to do?
[10:17:22] aryaching: has joined #ruby
[10:18:22] jgt: validate an email address from a database import
[10:18:37] jgt: when I look at the old data, I see one email address has a leading tab character
[10:18:40] jesterfraud: has joined #ruby
[10:18:46] jgt: and .strip doesn???t remove it
[10:19:06] jgt: the regex I???m validating email addresses against doesn???t allow tab chars
[10:19:58] sepp2k: has joined #ruby
[10:20:25] sevenseacat: regex and email. oh boy.
[10:20:38] jesterfraud: sevenseacat, my thoughts exactly
[10:20:55] sevenseacat: oh hello again jesterfraud
[10:21:06] jgt: sevenseacat: oh here we go???
[10:21:17] jesterfraud: sevenseacat, I figured I'd come visit the original channel
[10:21:17] Ox0dea: has joined #ruby
[10:21:34] jesterfraud: just wish IRC was a little more... modern. :'(
[10:21:36] jgt: in my case, regex is *good enough*
[10:21:51] jesterfraud: jgt, does it support + characters?
[10:21:52] jgt: I *know* I don???t want tab characters in email addresses
[10:22:02] harly: if by good enough you mean it doesn't allow all email addresses, then no, that's not good enough :)
[10:22:02] Ox0dea: jgt: Observe...
[10:22:04] harly: https://fightingforalostcause.net/content/misc/2006/compare-email-regex.php
[10:22:05] Ox0dea: >> '\t' == "\t"
[10:22:05] jenrzzz: has joined #ruby
[10:22:06] ruboto: Ox0dea # => false (https://eval.in/376455)
[10:22:23] jesterfraud: oh wow, that bot
[10:22:24] jgt: jesterfraud: none of the data I???m operating on contains + characters
[10:22:27] Ox0dea: >> ['\t'.length, "\t".length]
[10:22:28] ruboto: Ox0dea # => [2, 1] (https://eval.in/376456)
[10:22:37] jgt: so it doesn???t *need* to support + characters
[10:22:44] jesterfraud: jgt, I use + signs in my email address to make 'subaddresses' if I don't trust a website
[10:23:00] jgt: jesterfraud: I don???t care about you, I care about the data I???m operating on
[10:23:03] jesterfraud: they're not that uncommon
[10:23:14] jgt: they???re non-existent in my data
[10:23:56] sigurding: has joined #ruby
[10:24:18] mc_fail: has joined #ruby
[10:24:50] ghr: has joined #ruby
[10:25:01] langlands: has joined #ruby
[10:25:40] dzejrou: has joined #ruby
[10:25:42] ruurd: has joined #ruby
[10:25:58] jesterfraud: Ox0dea, do you know what the story is behind those strings being different, or am I derping and that's just special... yeah, that's special characters.
[10:26:27] jesterfraud: I'll just be here in the corner
[10:26:33] _blizzy_: has joined #ruby
[10:26:50] idafyaid: has joined #ruby
[10:26:55] Ox0dea: jesterfraud: Single quotes make escape sequences effectively meaningless.
[10:27:03] Ox0dea: They're "raw" strings, more or less.
[10:27:08] jesterfraud: yeah, so it's literally '\t'
[10:29:05] jesterfraud: is there a meaningful difference in runtime if you use "" over '' in code when you don't use special characters? My IDE complains about it
[10:29:32] sevenseacat: no disadvantage.
[10:29:37] ruurd: Ox0dea yep that is why a rubyist should prefer them as long as 'magic' is not necessary...
[10:29:44] iamninja: has joined #ruby
[10:30:02] HoloIRCUser1: has joined #ruby
[10:30:02] Ox0dea: ruurd: If by "magic" you mean interpolation, then sure.
[10:30:15] sandelius: has joined #ruby
[10:30:25] ruurd: Well if you use "" then you invoke interpolation. Which does not find anything. But still unnecessary.
[10:30:41] langlands: has joined #ruby
[10:30:41] Ox0dea: I'm not sure that's the case, but parse.y is scary.
[10:30:44] ruurd: interpolation yes, interpretation of special chars yes...
[10:31:01] Ox0dea: I'm sure there are checks in place to refrain from invoking unnecessarily costly behavior in the parser.
[10:32:19] ruurd: it is probably a pretty performant piece of code yes but that does not excuse me to use the proper quotes to begin with...
[10:32:32] ruurd: From that point: rubocop your code.
[10:33:02] sevenseacat: I use double quotes always. keep it consistent.
[10:33:46] jesterfraud: I feel like I've started a "tabs vs spaces" argument
[10:33:52] jesterfraud: or should that a 'tabs vs spaces' argument?
[10:33:58] sevenseacat: i see what you did there
[10:34:17] jesterfraud: Topic for #dangerzone is: That's how you get ANTS!
[10:34:35] yoongkang: someone actually benchmarked it
[10:34:39] yoongkang: let me find the article
[10:34:53] yoongkang: http://viget.com/extend/just-use-double-quoted-ruby-strings
[10:35:48] yoongkang: the comments are good reading too
[10:35:56] Mon_Ouie: >> puts RubyVM::InstructionSequence.disassemble(lambda { "x" })
[10:35:57] ruboto: Mon_Ouie # => == disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-3660d3aa4cd7/source-3660d3aa4cd ...check link for more (https://eval.in/376457)
[10:36:03] Mon_Ouie: >> puts RubyVM::InstructionSequence.disassemble(lambda { 'x' })
[10:36:05] ruboto: Mon_Ouie # => == disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/execpad-9b6d91682850/source-9b6d9168285 ...check link for more (https://eval.in/376458)
[10:36:17] Mon_Ouie: (They compile to the same code if you don't use string interpolation)
[10:36:44] sevenseacat: some of the comments are like 'i use single quotes to show there is nothing interesting happening in this string' do people use an editor that doesnt highlight things like interpolation in strings?
[10:37:45] atbn: has joined #ruby
[10:38:02] Ox0dea: Mon_Ouie just made the benchmarker look quite a fool.
[10:38:13] atbn: what are the best screencasts to learn ruby for a beginner?
[10:38:25] sevenseacat: Mon_Ouie: nice.
[10:38:31] sevenseacat: i wouldnt say a fool, but thats a good point.
[10:38:42] Ox0dea: __Bn: https://www.youtube.com/watch?v=GlKL_EpnSp8
[10:39:19] atbn: lol Ox0dea but seriously? I prefer screencasts lol
[10:39:47] Ox0dea: __Bn: Then you're doomed. Screencasts should be supplementary.
[10:42:50] jesterfraud: I guess I'll tell my IDE to stop complaining then
[10:46:01] yeticry: has joined #ruby
[10:47:40] olistik: has joined #ruby
[10:50:33] caseypatrickdris: has joined #ruby
[10:51:10] fujimura: has joined #ruby
[10:51:32] caseypatrickdris: has joined #ruby
[10:54:06] sarkyniin: has joined #ruby
[10:54:06] mc_fail: has joined #ruby
[10:54:33] livathinos: has joined #ruby
[10:55:54] spider-mario: has joined #ruby
[10:59:04] alexherbo2: How to make Sinatra work over HTTPS/SSL?
[10:59:08] nfk: has joined #ruby
[10:59:10] Ox0dea: >> [->{'x'},->{"x"},->{%q x },->{%Q x }].map { |q| RubyVM::InstructionSequence.of(q).to_a.hash }.uniq
[10:59:11] ruboto: Ox0dea # => [245533864] (https://eval.in/376468)
[10:59:23] Ox0dea: MRI is pretty clever.
[11:02:18] ferr: has joined #ruby
[11:02:27] langlands: has joined #ruby
[11:02:57] gamer5: has joined #ruby
[11:03:19] jesterfraud: alexherbo2, did you check this article? http://stackoverflow.com/questions/3696558/how-to-make-sinatra-work-over-https-ssl
[11:03:22] ht__: has joined #ruby
[11:04:20] ag4ve: Ox0dea: can you explain that output?
[11:05:15] Ox0dea: Four different lambdas are constructed, each of which returns the letter 'x' using various of Ruby's quoting mechanisms.
[11:05:33] sevenseacat: ah, and they all compile to the same thing
[11:07:57] ag4ve: mmm, ok i think i kinda get that.... cool
[11:08:44] phale: has joined #ruby
[11:08:50] atn: has joined #ruby
[11:08:52] phale: Hello, fellow Rubians
[11:10:05] atn: tell why m getting an error on writting 1:var="sgfvrs" 2:puts var 3: end
[11:10:17] phale: well for one you can't numerate lines
[11:10:36] phale: >> var = "sgfvrs"; puts var;
[11:10:36] ruboto: phale # => sgfvrs ...check link for more (https://eval.in/376469)
[11:10:47] atn: iit is telling unexpected end
[11:10:56] phale: is it in a method?
[11:11:00] chipotle: has joined #ruby
[11:11:07] phale: if it's not in a method, safely remove the end
[11:11:12] atn: its a simple prog for beginner
[11:11:18] phale: remove end ..
[11:12:05] phale: Goodbye, fellow Rubians
[11:12:07] atn: then it tells undefined local / variable method "sgfvrs"
[11:12:17] phale: can you please put your code on pastebin or something?
[11:12:20] fabrice31: has joined #ruby
[11:12:28] phale: simply putting it here while numerating it isn't really helpful
[11:12:37] atn: on gist
[11:13:32] atn: https://gist.github.com/aj07/933f895afd30b9de41d7
[11:13:49] mdw: has joined #ruby
[11:13:52] phale: I'm pretty sure an array of characters is to be put in a string
[11:14:08] phale: remove the end, and replace var = sdsddsf
[11:14:14] phale: with var = "sdsddsf"
[11:14:52] atn: thanks it work great
[11:15:02] phale: no problem, you should read a book on ruby though
[11:15:05] chussenot: has joined #ruby
[11:15:07] phale: or a tutorial online
[11:15:38] atn: i read it but forget it too
[11:15:38] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[11:15:49] phale: try, "The Ruby Programming Language"
[11:15:58] phale: i think they use 1.8.0 or something there which is obsolete
[11:16:07] phale: but everything there should apply to 2.2.0+
[11:16:49] Rubie: has joined #ruby
[11:17:53] senayar: has joined #ruby
[11:19:46] zotherstupidguy: i want someone to help me understand Rack::Utils::OkJson sourcecode
[11:20:14] phale: zotherstupidguy: I think it's a JSON parser.
[11:20:36] phale: so what do you not understand?
[11:21:29] zotherstupidguy: why not just "hi".to_json
[11:22:17] phale: well how does the libary want you to do it
[11:23:01] phale: nevermind
[11:23:08] phale: I?m not specialized to help you with this
[11:23:08] adefa: has joined #ruby
[11:23:28] zotherstupidguy: i would take any leads :)
[11:24:00] zotherstupidguy: i just read a lot of cryptic code in it! i dont get it
[11:25:11] atn: can i ask ffi question of ruby here?
[11:25:25] wasamasa: you are not allowed to ask meta questions
[11:25:32] ghr: has joined #ruby
[11:25:56] zotherstupidguy: atn what is ffi?
[11:26:12] wasamasa: zotherstupidguy: you really do live up to your name, don't you
[11:26:13] atn: foreign function interface
[11:26:35] zotherstupidguy: first time to hear it
[11:27:02] atn: you aere working on json ?
[11:27:27] phale: wasamasa: it would help if you would respect other users on here
[11:27:28] atn: you have used ffi somewhere
[11:27:39] zotherstupidguy: phale no harm, its ok =)
[11:30:44] zotherstupidguy: atn so using somthing like `echo hi` in ruby is considered ffi?
[11:31:16] alexherbo2: jesterfraud: yes :(
[11:31:21] jesterfraud: zotherstupidguy, it's more that JSON handling is passed off to another library
[11:31:25] jesterfraud: as a general rule
[11:31:33] atn: no it is used for inherting the quality of another program to exiting program
[11:31:33] wasamasa: zotherstupidguy: ever used a C library?
[11:31:46] wasamasa: zotherstupidguy: FFI is what allows you to do that from ruby code
[11:31:49] jesterfraud: alexherbo2, what didn't work?
[11:32:14] mc_fail: has joined #ruby
[11:32:16] zotherstupidguy: wasamasa oh, so its related to ruby's c extensions right?
[11:32:24] wasamasa: zotherstupidguy: yup
[11:32:28] phale: wasamasa: FFI doesn't have to originate from C
[11:32:37] zotherstupidguy: wasamasa thanks =)
[11:32:41] alexherbo2: jesterfraud: https://bpaste.net/show/5c4787007c43
[11:32:45] wasamasa: phale: no, of course not, but that's the most common case
[11:32:50] wasamasa: phale: and the simplest one, too
[11:33:04] alexherbo2: server.rb localhost:1234
[11:33:08] phale: alexherbo2: your tabbing triggers me
[11:33:22] alexherbo2: I follow http://www.akadia.com/services/ssh_test_certificate.html
[11:33:29] alexherbo2: to generate cert
[11:33:48] jhass: has joined #ruby
[11:34:21] alexherbo2: then I tried curl https://localhost:1234 --data "echo Hello.world"
[11:34:35] tsou: has joined #ruby
[11:36:00] jesterfraud: alexherbo2, and what happened?
[11:36:02] alexherbo2: jesterfraud: i want to do a chrome extension and use bin/serve to execute shell
[11:36:03] alexherbo2: https://github.com/alexherbo2/dotfiles/tree/master/chromium/Default/Extensions/vi
[11:37:20] alexherbo2: https://bpaste.net/show/b889a73d02d9
[11:37:25] jesterfraud: alexherbo2, I'm not really all that fantastic on Sinatra, but I guess I'm trying to get to the root of the issue so that, at worst, some genius here could answer
[11:37:39] jesterfraud: alexherbo2, that's actually working
[11:37:58] jesterfraud: the issue is that by default, curl (and pretty much everything else) won't accept a self-signed SSL certificate
[11:38:01] iamninja: has joined #ruby
[11:38:03] jesterfraud: because literally anyone can generate one
[11:38:29] zotherstupidguy: jesterfraud is that the same-origin dance?
[11:38:35] jesterfraud: zotherstupidguy, nope
[11:38:43] jesterfraud: self signed certificates are untrusted
[11:38:52] jesterfraud: so pretty much every utility will not accept them by default
[11:38:54] alexherbo2: jesterfraud: i want it works in chrome
[11:38:58] jesterfraud: regardless of origin
[11:39:07] jesterfraud: alexherbo2, you might need to buy an SSL cert then
[11:39:09] alexherbo2: my extension does not work on https page :/
[11:39:28] jesterfraud: otherwise it's self-signed
[11:39:29] jesterfraud: and untrusted
[11:39:35] zotherstupidguy: jesterfraud it doesnt work means you get a warning page and then pass it?
[11:39:44] jesterfraud: not in alex's case
[11:39:54] jesterfraud: because he's trying to load content from an unsecure source on a secure page
[11:40:24] jesterfraud: which, come to think of it, could be a same-origin dance
[11:40:35] jesterfraud: in his specific scenario (not for the cURL call)
[11:42:49] zotherstupidguy: i dont remmber much really, but self-singed ssl wasn't a big deal, it is just not practical becauase it scars users.
[11:43:26] FernandoBasso: has joined #ruby
[11:43:33] jesterfraud: zotherstupidguy, the problem is more that most utilties won't have anything to do with a self-signed certificate, Chrome and cURL being two of them
[11:43:58] jesterfraud: which means unless alexherbo2 adds his SSL cert to his trusted certificates, Chrome won't load the page without prompting him
[11:44:12] jesterfraud: and because he's not visiting the page, but rather loading content from that server, it won't prompt him
[11:44:55] workmad3: has joined #ruby
[11:45:14] phale: has left #ruby: ("Leaving")
[11:46:01] jesterfraud: what was that about? O.o
[11:46:02] sarkyniin: has joined #ruby
[11:46:52] zotherstupidguy: not really sure..
[11:47:02] jesterfraud: alexherbo2, your issues here do not lie with Ruby, so this may not be the right channel to pursue this further.
[11:47:31] jesterfraud: the Ruby side of the equation is working as intended
[11:48:05] ruby-lang475: has joined #ruby
[11:49:06] alexherbo2: jesterfraud: :'(
[11:49:25] alexherbo2: my plugin is useless then :/
[11:49:27] Evangelia: has joined #ruby
[11:49:27] millerti: has joined #ruby
[11:49:32] Evangelia: Check this out, http://crystal-lang.org/
[11:50:29] jesterfraud: Evangelia, http://imgs.xkcd.com/comics/standards.png
[11:50:53] zotherstupidguy: alexherbo2 you can buy a cheap cert btw
[11:51:35] alexherbo2: zotherstupidguy: but all user of my plugin will have to buy cert :/
[11:51:53] jesterfraud: alexherbo2, are you going to require them to run the server on their own computer?
[11:52:20] jesterfraud: if so, they will have to, unless you just want to blindly distribute your certificate over the internet (NOT RECOMMENDED)
[11:52:49] alexherbo2: the server is used to execute shell command
[11:53:12] alexherbo2: there is no way otherwise to have shell access with chrome
[11:53:15] varunwachaspati: has joined #ruby
[11:53:24] jesterfraud: alexherbo2, that's a _feature_
[11:53:25] slopjong: has joined #ruby
[11:53:33] jesterfraud: it's a security issue
[11:54:10] slopjong: what does ruby do with $@ in a string? the command system("SKIP_VAGRANT_INSTALL_PLUGINS=true vagrant $@") doesn't behave as expected
[11:54:21] rickmasta: has joined #ruby
[11:55:17] symm-: has joined #ruby
[11:55:24] slopjong: the arguments are going to be lost
[11:55:41] jesterfraud: alexherbo2, if this doesn't cover what you need, you are out of luck: https://developers.google.com/native-client/
[11:57:16] dorei: has joined #ruby
[11:57:28] zotherstupidguy: slopjong where you got that?
[11:57:30] apt-get_: has joined #ruby
[11:57:31] alexherbo2: ACTION make a facepalm
[11:57:54] alexherbo2: jesterfraud: i will have a look thanks
[11:58:19] slopjong: zotherstupidguy, from a custom ruby script, tbh i'm not a ruby expert
[11:58:31] zotherstupidguy: alexherbo2 i would look at html5 way for a compromise
[11:58:57] Fooster: has joined #ruby
[12:00:33] Scripore: has joined #ruby
[12:00:47] nish1294: has joined #ruby
[12:00:58] RegulationD: has joined #ruby
[12:02:23] chussenot: has joined #ruby
[12:03:29] jesterfraud: I'm going to that part of the world where I don't have to deal with people - bed. Night all!
[12:03:52] zotherstupidguy: jesterfraud goodnight :)
[12:03:54] sevenseacat: lol see ya jesterfraud
[12:05:59] Igorshp: has joined #ruby
[12:06:08] cosmicexplorer: has joined #ruby
[12:06:57] slopjong: zotherstupidguy, http://pastie.org/10226592
[12:07:23] slopjong: zotherstupidguy, is it correct as i pass "#{ARGV}" to the system command?
[12:08:10] icbm: has joined #ruby
[12:09:17] datanoise: has joined #ruby
[12:10:35] SalexW: has joined #ruby
[12:11:11] DeBot_: has joined #ruby
[12:12:08] MrBeardy: has joined #ruby
[12:12:24] DeBot_: has joined #ruby
[12:14:06] zotherstupidguy: slopjong ARGV is a hash, right?
[12:14:58] ytti: ARGV is an array
[12:15:11] ytti: maybe you're confusing to ENV
[12:15:46] slopjong: zotherstupidguy, i want to install some plugins when running specific vagrant commands (up, reload, provision) and the system call should pass the current script's argument to the nested vagrant call
[12:16:06] chridal: has joined #ruby
[12:16:34] slopjong: this seems necessary since i'm getting vagrant section errors because vagrant seems not to load the plugins during its execution
[12:16:52] Fooster_: has joined #ruby
[12:17:20] slopjong: at least not right before Vagrant.configure but before i install the new plugins
[12:18:19] DeBot_: has joined #ruby
[12:18:41] slopjong: ytti, the script's arguments are not related to the environment variable
[12:18:49] DeBot_: has joined #ruby
[12:19:40] slopjong: ytti, the env var is just a flag to skip the installation of the plugins during the nested execution
[12:20:00] chridal: Could someone please tell why this code is so INSANELY slow? https://gist.github.com/christiandalsvaag/ae4e560fc88e75234cc0#file-generate_notification_job-rb-L17-L27
[12:20:04] DeBot: has joined #ruby
[12:20:13] chridal: The files take 9 seconds to load in RSpec...
[12:23:45] chridal: Seems that this might be a problem with my system..
[12:24:51] GriffinHeart: has joined #ruby
[12:26:17] ghr: has joined #ruby
[12:26:19] zotherstupidguy: slopjong check https://gist.github.com/zotherstupidguy/bebd38577d2887dd9388 also #vagrant
[12:30:14] zotherstupidguy: chridal could you explain what youa re trying to do in plain english?
[12:31:04] revath: has left #ruby: ()
[12:31:22] zotherstupidguy: chridal better add it as a comment
[12:31:40] mc_fail_: has joined #ruby
[12:31:43] chridal: zotherstupidguy: It was only slow because of my system. Have no idea why
[12:31:52] victorkohl: has joined #ruby
[12:31:54] chridal: Appreciate your time though
[12:32:56] langlands: has joined #ruby
[12:33:32] slopjong: zotherstupidguy, the array's elements need to be joined and the following works perfectly: exec "SKIP_VAGRANT_INSTALL_PLUGINS=true vagrant #{ARGV.join(' ')}"
[12:34:15] zotherstupidguy: slopjong thanks for the feedback :)
[12:34:17] GriffinHeart: has joined #ruby
[12:39:55] fujimura: has joined #ruby
[12:39:56] elev: has joined #ruby
[12:42:07] Master44: what does eql means?
[12:44:12] yoongkang: has joined #ruby
[12:44:42] qsuscs: is there any difference between "foo" and 'foo' in ruby?
[12:44:57] sevenseacat: with that content? no.
[12:45:12] Mon_Ouie: The #eql? method is used for hash equality, i.e. it's how two objects are compared when they're used as keys in a hash
[12:45:40] zotherstupidguy: also content vs manipulation matters i guess
[12:45:49] qsuscs: sevenseacat: so does this mean there can be a difference if i put more than a simple string in the quotes?
[12:46:16] jgt: has joined #ruby
[12:46:16] michas: has joined #ruby
[12:46:18] sevenseacat: yes, if you had something like '#{foo}' that means something different when used in double quotes - look up string interpolation
[12:46:25] Mon_Ouie: >> '\n'.length
[12:46:29] ruboto: Mon_Ouie # => 2 (https://eval.in/376489)
[12:46:37] Mon_Ouie: >> "\n".length
[12:46:44] ruboto: Mon_Ouie # => 1 (https://eval.in/376490)
[12:47:25] qsuscs: >> foo = 42; puts '#{foo}' + "#{foo}"
[12:47:26] ruboto: qsuscs # => #{foo}42 ...check link for more (https://eval.in/376491)
[12:48:41] msnyon: has joined #ruby
[12:49:13] Master44: sevensecat?
[12:51:33] shevy: no not sevensecat
[12:51:36] shevy: sevenseacat
[12:52:00] sevenseacat: becuase thats how you spell it?
[12:52:58] Master44: can "#{x}" be different from '#{x}'
[12:53:04] Master44: like another value
[12:53:25] MrBeardy: wasn't that question just answered
[12:53:46] Master44: the quote yes, not the value
[12:53:56] Mon_Ouie: Twice, actually
[12:53:56] Master44: so the value can be different?
[12:54:07] Master44: I am using terminal cant scroll up
[12:54:09] Mon_Ouie: See the example code above
[12:54:20] Mon_Ouie: Switch to a better one then
[12:54:40] Master44: like a browser?
[12:55:26] DoubleMalt: has joined #ruby
[12:55:48] GriffinHeart: has joined #ruby
[12:56:18] Mon_Ouie: Most terminal-based IRC clients allow you to scroll
[12:57:00] jhass: fun fact: they've been told how in their case already
[12:58:01] Master44: well how can I scroll?
[12:58:09] Master44: I use terminal on mac osx yosemite
[12:58:17] adaedra: Try Page Up
[12:58:29] a346: has joined #ruby
[12:58:37] adaedra: (Fn + Up if you don't have Page Up key)
[12:59:12] adaedra: The key on your keyboard :)
[12:59:35] Master44: yes it worked xD
[12:59:45] adaedra: (btw, iTerm 2 > Terminal.app ;) )
[13:01:49] RegulationD: has joined #ruby
[13:02:18] ziprar: has joined #ruby
[13:02:38] Sirrr: has joined #ruby
[13:03:55] zipace: has joined #ruby
[13:04:16] intinig: has joined #ruby
[13:06:05] Master44: whats the code if I want to print out a..z in one line of code?
[13:06:26] yardenbar: has joined #ruby
[13:06:38] pardusf: has joined #ruby
[13:06:52] Master44: sevenseacat what?
[13:07:10] tkuchiki: has joined #ruby
[13:07:32] sevenseacat: 'plz give me teh codes'
[13:07:35] atomical: has joined #ruby
[13:07:46] Master44: like I want to print out a,b,c,d,e,f,g
[13:07:48] Master44: on the screen
[13:07:57] Master44: how can I do that without print "a,b,c,d,e,f,g
[13:08:36] shevy: Master44 you have a range
[13:08:47] Master44: range means?
[13:09:07] shevy: it starts somewhere
[13:09:09] shevy: it ends somewhere
[13:09:22] shevy: so first, get your range
[13:09:24] shevy: second, turn into array
[13:09:30] shevy: third, display each element of the array
[13:09:32] MrBeardy: Master44: http://ruby-doc.org/core-2.2.0/Range.html | http://ruby-doc.org/core-2.2.0/Array.html#method-i-join
[13:09:45] ndrei: has joined #ruby
[13:09:45] shevy: if you have never used a Range before, look http://ruby-doc.org/core-2.2.0/Range.html
[13:09:53] shevy: it even gives you examples
[13:10:02] Master44: so i cant just do something easier?
[13:10:08] Master44: like "a".."z"
[13:10:13] MrBeardy: Master44: You can, by reading.
[13:10:49] Master44: ok thanks :)
[13:11:44] mc_fail: has joined #ruby
[13:11:49] bronson: has joined #ruby
[13:12:13] The_Phoenix: has joined #ruby
[13:12:57] jerematic: has joined #ruby
[13:12:59] thisirs: has joined #ruby
[13:13:15] shevy: Master44 have you not looked at the examples
[13:13:19] shevy: how is this possible
[13:13:21] fabrice31: has joined #ruby
[13:13:22] shevy: do you not have a browser
[13:13:38] shevy: ('a'..'e').to_a #=> ["a", "b", "c", "d", "e"]
[13:13:41] shevy: this was the third example
[13:13:54] Master44: I got it now
[13:13:55] shevy: so replace 'e' with 'z'; is this possible?
[13:14:05] Master44: its ("a".."z").to_a
[13:14:38] MrBeardy: also join, to_a gives you an array
[13:14:50] Master44: I am very bad englich so I dont understand all shit
[13:14:53] mrchris: has joined #ruby
[13:14:54] Master44: but thanks thought
[13:15:00] Master44: got it now :)
[13:15:04] mrchris: Good morning.
[13:15:41] Master44: good morning sir
[13:15:42] hollywood: has joined #ruby
[13:16:04] mrchris: How is it possible to call methods within a class outside of definition? For example, in a Rails model its possible to call `has_many :foo`
[13:16:20] mrchris: How would I add such a method to a concern?
[13:17:01] alem0lars: has joined #ruby
[13:17:01] silverdust: has joined #ruby
[13:17:25] yeticry: has joined #ruby
[13:17:34] tekk: has joined #ruby
[13:19:43] atm0sphere: has joined #ruby
[13:20:18] mrchris: I think I've figured it out. Thanks
[13:20:36] freerobby: has joined #ruby
[13:22:03] Master44: your welcome :)
[13:25:04] sarkyniin: has joined #ruby
[13:26:05] atm0sphere: has anyone experience in cbinding with ruby ff
[13:27:01] ghr: has joined #ruby
[13:27:56] atm0sphere: anybody experience in c binding and ruby ffi?
[13:31:36] GnuYawk: has joined #ruby
[13:36:20] micmus: has joined #ruby
[13:37:12] atm0sphere: headius have i think , i h ave googled and foun him. is he present?
[13:37:47] ruboto: Just ask your question, if anyone has or can, they will respond.
[13:37:52] shevy: he is in the channel
[13:38:13] Master44: whats the difference from 1..10 and 1...10?
[13:38:26] shevy: inclusive or exclusive on last element
[13:38:42] Master44: that means?
[13:38:47] shevy: (1..10).to_a # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[13:38:49] sevenseacat: open up irb and check them out
[13:38:55] shevy: (1...10).to_a # => [1, 2, 3, 4, 5, 6, 7, 8, 9]
[13:38:57] atm0sphere: first will include last element while last will not
[13:39:06] atm0sphere: sorry reeverse it
[13:39:32] Mon_Ouie: No, don't reverse it
[13:39:35] sevenseacat: you were right the first time
[13:39:45] Mon_Ouie: >> (1...10).include? 10
[13:39:46] ruboto: Mon_Ouie # => false (https://eval.in/376502)
[13:39:55] atm0sphere: according to my answer ,
[13:40:03] Master44: ok so ... just delete last item?
[13:40:39] shevy: what do you mean with delete
[13:40:40] fujimura: has joined #ruby
[13:40:44] jerematic: has joined #ruby
[13:40:47] Master44: it doesnt include it
[13:41:01] shevy: oh so you mean "does not include" when you say "delete" :)
[13:41:29] shevy: most of the time I use ..
[13:41:46] Master44: well i wasnt sure :D
[13:41:50] Master44: yes ok :) thanks
[13:41:59] Master44: why would you not include the last item btw?
[13:42:09] sevenseacat: when you dont want the last item
[13:42:17] Master44: you can just do 1..9 instead of 1...10
[13:42:21] Master44: well yes xD
[13:42:42] atm0sphere: https://gist.github.com/aj07/fb05ceb34494e9c8aec9
[13:42:49] shevy: best conversation ever:
[13:42:53] shevy: <Master44> why would you not include the last item btw?
[13:42:53] shevy: <sevenseacat> when you dont want the last item
[13:43:00] atm0sphere: ffi problem abhove link
[13:43:04] sevenseacat: silly questions get silly answers.
[13:43:35] atm0sphere: anyone https://gist.github.com/aj07/fb05ceb34494e9c8aec9
[13:43:44] jimmythehat: has joined #ruby
[13:43:50] Master44: I dont know just wanted to know the different
[13:43:52] shevy: there will be a small subset of people who know ffi
[13:44:28] shevy: Master44 ... is less often used than ..
[13:44:28] atm0sphere: shevy: what does namerror means?
[13:44:47] shevy: atm0sphere when something is unkown to ruby
[13:44:52] ruboto: shevy # => uninitialized constant Foo (NameError) ...check link for more (https://eval.in/376510)
[13:44:57] Mon_Ouie: Paste the exact error message with backtrace
[13:45:03] shevy: so the solution is to make it known to ruby atm0sphere
[13:45:15] jimmythehat: hey all, does anyone know anything about domain extensions? I want to register a .solutions domain for a client but I am unaware of SEO (and other) implications? .today is another domain I want to register a company under but I'm unsure if should go for top level? Apologies if this is the wrong channel...direct me to where I can get answers concerning domain names?
[13:45:58] sevenseacat: seems completely unrelated to ruby
[13:46:32] Master44: doesnt have so much to do with ruby lol xd
[13:46:36] Master44: go to ubuntu or something
[13:46:42] MrBeardy: jimmythehat: #SEO seems fairly popular
[13:46:45] sevenseacat: nothing to do with ubuntu either
[13:46:59] MrBeardy: then don't try to help
[13:47:09] sevenseacat: it is better to keep your mouth closed and let people *think* you know nothing....
[13:47:49] sevenseacat: ...than to open your mouth and confirm it.
[13:48:13] Master44: I just got burned lol
[13:48:14] jimmythehat: thanks all. sevenseacat, bit mean
[13:48:18] Master44: no comebacks for that one, you win gg
[13:48:32] sevenseacat: jimmythehat: it wasnt directed at you. if it seemed that way, i apologize.
[13:48:59] Sweeper: the correct ending to that is "open your mouth and remove all doubt" iirc
[13:49:15] Ariadeno: has joined #ruby
[13:49:16] Master44: well same thing
[13:49:18] sevenseacat: sweeper: the original quote makes references to being an idiot too, but I wasnt going to say that :P
[13:49:53] Master44: how old are you guys?
[13:50:01] Sweeper: Master44: get off my lawn
[13:50:05] Outlastsheep: 14 'ver 'ere.
[13:50:17] Sweeper: 19/f/cali here
[13:50:20] Master44: how old are the people in this channel? btw
[13:50:35] Outlastsheep: 14/m/The Netherlands.
[13:50:43] Outlastsheep: MrBeardy: consider 13.
[13:50:48] kirun: has joined #ruby
[13:50:56] Master44: mrbeardy you are 13 y old?
[13:51:07] MrBeardy: No, I'm 12, can't you read
[13:51:10] Outlastsheep: Master44: 'twas a joke.
[13:51:33] Master44: I am like 14
[13:52:05] atm0sphere: i have posted my error too just see the link... https://gist.github.com/aj07/fb05ceb34494e9c8aec9
[13:52:19] aryaching: has joined #ruby
[13:52:23] ebbflowgo: has joined #ruby
[13:52:28] adaedra: add a .rb extension to gist files, so they have syntax colors.
[13:52:36] MrBeardy: atm0sphere: we're not a search engine, changing the message won't make us suddenly be able to solve your problem
[13:53:03] kriskropd: has joined #ruby
[13:53:03] kriskropd: has joined #ruby
[13:54:05] Mon_Ouie: uninitialized constant MyLibrary::FFI
[13:54:12] Mon_Ouie: You haven't loaded the FFI library
[13:54:14] atm0sphere: adaedra: please eleborate it
[13:54:49] atm0sphere: i have mentioned it in my code/
[13:55:19] ndrei: has joined #ruby
[13:55:47] hellosir: has joined #ruby
[13:56:01] jimmythehat: has left #ruby: ()
[13:56:57] sandelius: has joined #ruby
[13:57:17] soulcake: has joined #ruby
[13:58:20] atm0sphere: mon_0uie: how to load ffi ? only by writting require 'ffi' isn't?
[13:58:43] datanoise: has joined #ruby
[13:59:24] atm0sphere: still it shows some error..
[13:59:42] Mon_Ouie: You may have a file called ffi.rb in your load path, shadowing the gem
[13:59:50] mc_fail: has joined #ruby
[13:59:53] atm0sphere: cant load such file- --ffil(loaderror)
[14:00:07] jenrzzz: has joined #ruby
[14:00:08] Mon_Ouie: That's not the same error???
[14:00:33] atm0sphere: m pasting it on gist
[14:00:34] Mon_Ouie: And it's also not the message that Ruby gives you, don't re-type error messages, paste them
[14:01:31] atm0sphere: https://gist.github.com/aj07/fb05ceb34494e9c8aec9
[14:01:38] atm0sphere: see only error message
[14:02:04] Mon_Ouie: Well then it looks like you haven't installed FFI
[14:02:16] hellosir: has left #ruby: ()
[14:02:16] Mon_Ouie: Run 'gem install ffi'
[14:02:22] timmow_: has joined #ruby
[14:02:35] Master44: has left #ruby: ()
[14:02:58] atm0sphere: how to check whether particular gem is installed or not?
[14:03:21] NosuchThing: has joined #ruby
[14:03:21] Mon_Ouie: 'gem list' lists all installed gems
[14:03:38] silverdu1t: has joined #ruby
[14:03:38] alem0lars: has joined #ruby
[14:03:39] alem0lars: has joined #ruby
[14:04:04] Someguy123: has joined #ruby
[14:04:05] gamer5: has joined #ruby
[14:04:53] atm0sphere: it shows only local gem
[14:05:30] Mon_Ouie: I mean??? what else is it going to show? All the gems that exist?
[14:06:08] Guest83713: whats the different between a symbol and a string?
[14:06:48] atm0sphere: mon_0uie just see the link..
[14:06:57] atm0sphere: https://gist.github.com/aj07/fb05ceb34494e9c8aec9
[14:07:06] Mon_Ouie: A string is a sequence of characters. A symbol is a unique object that's convenient to use to identify things.
[14:07:06] atm0sphere: second comment
[14:07:33] Mon_Ouie: (Every time you evaluate :foo, you get the same object back)
[14:07:56] jgt: has joined #ruby
[14:07:58] Mon_Ouie: You can use '--user-install' to install gems without having write access to system directories
[14:08:08] shevy: Guest83713 a symbol always has the same object_id; a (same-named) string has a different object_id; :foo versus "foo"
[14:08:27] atm0sphere: --user-install ffi right
[14:08:37] olistik: has joined #ruby
[14:08:47] Mon_Ouie: I mean, 'gem install --user-install ffi' would be the full command
[14:11:05] atm0sphere: installed now new problem came
[14:11:17] ebbflowgo: has joined #ruby
[14:11:57] ndrei: has joined #ruby
[14:12:00] atm0sphere: mon_0uie: just take a lok at same link
[14:13:01] shevy: yeah mon_0uie
[14:13:26] bkxd: has joined #ruby
[14:16:04] Papierkorb: has joined #ruby
[14:16:08] senayar: has joined #ruby
[14:16:37] mc_fail: has joined #ruby
[14:16:39] elia: has joined #ruby
[14:17:26] caseypatrickdris: has joined #ruby
[14:17:55] atm0sphere: Mon_Ouie: ???
[14:18:24] caseypat_: has joined #ruby
[14:19:53] NeverDie: has joined #ruby
[14:20:25] Fooster: has joined #ruby
[14:23:48] Sirrr: has joined #ruby
[14:25:25] diegoviola: has joined #ruby
[14:26:39] dseitz: has joined #ruby
[14:27:07] joaomdmoura: has joined #ruby
[14:27:46] ghr: has joined #ruby
[14:27:54] freerobby: has joined #ruby
[14:29:34] justintv90: has joined #ruby
[14:29:36] atm0sphere: Mon_Ouie are you there?
[14:30:51] jhass: why do people focus so much on other people
[14:32:23] adaedra: because they think our job is to help them like support hot-lines
[14:34:16] willharrison: has joined #ruby
[14:36:30] Spami: has joined #ruby
[14:40:51] kobain: has joined #ruby
[14:47:32] caseypatrickdris: has joined #ruby
[14:48:22] aryaching: has joined #ruby
[14:50:02] caseypatrickdris: has joined #ruby
[14:50:32] rushed: has joined #ruby
[14:50:43] RegulationD: has joined #ruby
[14:50:59] Rubie: has joined #ruby
[14:52:40] maxshelley: has joined #ruby
[14:52:48] crazymykl: has joined #ruby
[14:52:51] greenbagels: has joined #ruby
[14:53:15] frank_o: has joined #ruby
[14:53:31] Agoldfish: has joined #ruby
[14:53:46] gambl0re: has joined #ruby
[14:54:00] vikaton: has joined #ruby
[14:54:56] goodcodeguy: has joined #ruby
[14:55:00] Rahul_Roy: has joined #ruby
[14:57:30] adefa: has joined #ruby
[14:58:21] bantic: has joined #ruby
[14:59:34] allomov: has joined #ruby
[15:00:03] havenwood: has joined #ruby
[15:01:04] CustosLimen: has joined #ruby
[15:01:08] ferr: has joined #ruby
[15:01:09] ndrei: has joined #ruby
[15:02:07] Feverio: has joined #ruby
[15:03:18] frank_o: howdy havenwood !
[15:04:00] DEA7TH_: has joined #ruby
[15:04:12] langlands: has joined #ruby
[15:04:36] Evangelia: There is a change in irb?
[15:04:46] Evangelia: 2.2.1 :001 >
[15:05:01] CloCkWeRX: has left #ruby: ()
[15:05:19] michas: has joined #ruby
[15:06:52] langlands: has joined #ruby
[15:07:51] havenwood: Evangelia: Your prompt changed?
[15:08:03] al2o3-cr: Evangelia: it's rvm irb
[15:08:20] charliesome: has joined #ruby
[15:08:53] sevenseacat: what does rvm have to do with irb?
[15:09:36] al2o3-cr: sevenseacat: disregard that
[15:10:23] someword: has joined #ruby
[15:10:23] al2o3-cr: long day ;p
[15:10:37] swills: has joined #ruby
[15:11:06] Evangelia: al2o3-cr, It actually is.
[15:11:13] Evangelia: Because it changed after I installed RVM.
[15:12:15] ag4ve: i think something's wrong with the cert (or my ca list): https://pastebin.mozilla.org/8835959
[15:13:08] jhass: OS, rubygems version?
[15:13:34] sevenseacat: ag4ve: update your rubygems. `gem update --system`
[15:13:54] fabrice31: has joined #ruby
[15:15:27] mary5030: has joined #ruby
[15:15:39] ag4ve: https://pastebin.mozilla.org/8835960
[15:16:13] ag4ve: i don't really want to update/care about what ruby/gem my system is running - i'd prefer to stay local
[15:16:21] havenwood: ag4ve: rvm rubygems latest
[15:17:13] Tobarja: has joined #ruby
[15:17:25] someword: has joined #ruby
[15:17:43] sevenseacat: well sorry, but you need to update it.
[15:17:58] ag4ve: that seems to be working
[15:19:37] gauke: has joined #ruby
[15:19:44] goodcodeguy: has joined #ruby
[15:20:30] ag4ve: havenwood: thanks (i think - still building)
[15:20:32] sleungcy: has joined #ruby
[15:22:37] yeticry: has joined #ruby
[15:22:52] zotherstupidguy: has joined #ruby
[15:23:32] frank_o: Hi! I got this Paperclip model which checks an upload (its temp file) whether it's an animated GIF. If so it sets `attachment_is_animated` in the db to true. But, because this job needs to go into the background, the temp file is probably gone by the time it's needed, so I end up with this InfiniteInterpolationError.
[15:23:37] frank_o: https://gist.github.com/dt1973/920263906eb7ace5bd74 -- anybody ever been down this rabbit hole before?
[15:23:56] ndrei: has joined #ruby
[15:27:47] goodcodeguy: has joined #ruby
[15:28:30] ghr: has joined #ruby
[15:29:15] joaomdmoura: has joined #ruby
[15:29:26] fujimura: has joined #ruby
[15:30:42] charliesome: has joined #ruby
[15:31:31] govg: has joined #ruby
[15:33:32] Fooster: has joined #ruby
[15:33:35] willharrison: has joined #ruby
[15:33:40] allomov: has joined #ruby
[15:33:48] govg: has joined #ruby
[15:33:59] langlands: has joined #ruby
[15:34:23] goodcodeguy: has joined #ruby
[15:35:23] jerematic: has joined #ruby
[15:36:09] blue_deref: has joined #ruby
[15:37:00] _djbkd: has joined #ruby
[15:46:48] yfeldblum: has joined #ruby
[15:50:18] jenrzzz: has joined #ruby
[15:50:58] FernandoBasso: has joined #ruby
[15:57:02] jgt: has joined #ruby
[15:58:07] zubov: has joined #ruby
[15:59:06] thatkid: has joined #ruby
[16:04:42] kerunaru: has joined #ruby
[16:05:42] g0rx_: has joined #ruby
[16:06:17] mister_solo: has joined #ruby
[16:06:36] millerti: has joined #ruby
[16:06:43] dseitz: has joined #ruby
[16:06:57] frank_o: yay fixed it..
[16:07:44] frank_o: *that moment of calm when you realize you've fixed all your bugs*
[16:08:55] Sirrr: has joined #ruby
[16:09:08] Scripore: has joined #ruby
[16:09:11] IanVorn: has joined #ruby
[16:09:37] frank_o: *of your project which has consumed your days and nights for the past 5 years*
[16:10:26] Rubie: has joined #ruby
[16:13:09] sandelius: has joined #ruby
[16:13:22] _djbkd: has joined #ruby
[16:15:04] Coraline: Awesome frank_o!
[16:15:10] Coraline: What's the project?
[16:16:32] frank_o: thanks a lot Coraline
[16:17:04] mc_fail: has joined #ruby
[16:17:05] frank_o: Coraline: its basically a heavily customized https://github.com/radar/forem app to help poor ppl in my local community
[16:17:44] Fooster: has joined #ruby
[16:19:24] c355E3B: has joined #ruby
[16:19:43] Scripore: has joined #ruby
[16:19:45] frank_o: much love to Radar for making it happen.. as well as prolly half of the people in here =)
[16:20:45] frank_o: that MINASWAN thing is truly engrained in the DNA of this community and i cant wait to start giving some of it back
[16:21:07] openmind: has joined #ruby
[16:21:08] frank_o: take care guys frank out
[16:22:23] mrsolo: has joined #ruby
[16:23:26] olistik: has joined #ruby
[16:25:47] amclain: has joined #ruby
[16:28:14] jgt: has joined #ruby
[16:29:17] ghr: has joined #ruby
[16:30:35] mrchris: has joined #ruby
[16:32:32] gsd: has joined #ruby
[16:35:49] yeticry: has joined #ruby
[16:36:41] senayar: has joined #ruby
[16:37:31] caseypatrickdris: has joined #ruby
[16:38:02] gauke: has joined #ruby
[16:38:25] apt-get_: has joined #ruby
[16:38:27] jeffc: has joined #ruby
[16:38:28] someword: has joined #ruby
[16:39:19] adac: has joined #ruby
[16:39:38] RegulationD: has joined #ruby
[16:39:58] mc_fail: has joined #ruby
[16:40:12] mdz_: has joined #ruby
[16:40:27] slackbotgz: has joined #ruby
[16:42:22] govg: has joined #ruby
[16:44:25] mrchris: has joined #ruby
[16:47:18] athos_diddy: has joined #ruby
[16:47:46] athos_diddy: happy saturday!
[16:48:09] athos_diddy: so am i drunk? i must be... https://gist.github.com/genericlady/f1ea408dccaf0397bcea how come the regexp isn't working?
[16:48:16] athos_diddy: it passes on rubular
[16:49:13] djbkd: has joined #ruby
[16:49:28] athos_diddy: http://rubular.com/r/UrJgU9o6eh
[16:49:31] jeffc: has joined #ruby
[16:50:11] djbkd: has joined #ruby
[16:50:14] atmosx: athos_diddy: it works fine
[16:50:16] huaming: has joined #ruby
[16:50:26] atmosx: athos_diddy: 0 is the position... of the element found.
[16:50:30] David_H_Smith: has joined #ruby
[16:50:37] maxshelley: has joined #ruby
[16:50:45] atmosx: arrays in ruby start by '0'
[16:50:59] freerobby: has joined #ruby
[16:51:26] athos_diddy: i was thinking it was returning a count but of course it wouldn't
[16:52:48] jeffc: has joined #ruby
[16:52:59] jenrzzz: has joined #ruby
[16:54:30] atmosx: I can't believe people are using homeopathic medicine when their kid has 39+ fever...
[16:55:46] mc_fail: has joined #ruby
[16:55:52] gr33n7007h: has joined #ruby
[16:58:01] lkba: has joined #ruby
[16:58:14] timonv: has joined #ruby
[16:59:57] havenwood: "Two @@s are ugly, but remember that class variables are basically global variables with limited scope???so it encourages you not to use it." ~Matz 2006
[17:00:01] Jarboe: has joined #ruby
[17:00:20] Scroff: has joined #ruby
[17:00:22] crdpink2: has joined #ruby
[17:00:49] AmirolAhmad: has joined #ruby
[17:01:04] shevy: matz is funny
[17:01:39] shevy: there is a lot of partial duplication in ruby though
[17:02:05] shevy: local vars, instance vars (instance level versus class level instance vars), global vars, @@class_vars
[17:02:05] rodfersou: has joined #ruby
[17:02:08] shevy: class versus module
[17:02:22] shevy: aka subclass versis include/extend
[17:02:36] ag4ve: is there a way to require a newly installed module w/o exiting out of irb?
[17:03:04] havenwood: ag4ve: Like rerequire an already required file?
[17:03:36] havenwood: ag4ve: If so, see #load: http://ruby-doc.org/core/Kernel.html#method-i-load
[17:03:41] ag4ve: like i try to require a module, isn't installed, gem install in another window, it still can't find it until i reload irb
[17:03:43] mase-chatter: has joined #ruby
[17:05:15] ag4ve: https://pastebin.mozilla.org/8835966
[17:05:30] ag4ve: the module was installed through that whole paste
[17:05:37] balazs: has joined #ruby
[17:06:25] huaming: has left #ruby: ()
[17:06:30] ag4ve: ... but wasn't installed when i started that first session
[17:06:43] thisirs: has joined #ruby
[17:08:05] havenwood: ag4ve: Gem.clear_paths
[17:08:32] Channel6: has joined #ruby
[17:09:12] tuelz2: has joined #ruby
[17:09:30] pipework: havenwood: o/
[17:09:35] havenwood: pipework: \o
[17:10:13] datanoise: has joined #ruby
[17:10:29] jhass: ?pry ag4ve
[17:10:29] ruboto: ag4ve, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ???binding.pry??? directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
[17:10:43] jhass: in particular for your usecase: gem-install foo
[17:10:47] havenwood: ag4ve: Or yeah, from Pry you can: gem-install gem-name-here
[17:10:56] workmad3: has joined #ruby
[17:10:56] MouseTheLuckyDog: has joined #ruby
[17:11:54] havenwood: ag4ve: `Gem.clear_paths` works in Pry too, if you're installing from outside Pry.
[17:13:00] havenwood: gem-install does the require too, or at least it tries to based on gem naming conventions
[17:14:10] silverdust: has joined #ruby
[17:14:22] MouseTheLuckyDog: What happened to #ruby-lang I ws in it a few days ago?
[17:14:33] havenwood: MouseTheLuckyDog: The channels have merged.
[17:14:41] fabrice31: has joined #ruby
[17:14:53] zipace: has joined #ruby
[17:15:20] havenwood: Welcome to those migrating from #ruby-lang!!
[17:16:35] bootstrappm: has joined #ruby
[17:16:50] MouseTheLuckyDog: I'm calling IO.popen. How can I tell if there is any output that is not white space?
[17:17:00] hewenhong: has joined #ruby
[17:17:07] shevy: jhass is the migration boss
[17:17:20] ag4ve: ah, thanks y'all
[17:17:21] shevy: bootstrappm hello DID YOU JUST COME FROM ANOTHER MEETING
[17:17:31] bootstrappm: hah no, its saturday :D
[17:17:46] lolmaus: has joined #ruby
[17:17:46] shevy: what an excuse!
[17:18:03] mrmargolis: has joined #ruby
[17:18:11] fujimura: has joined #ruby
[17:18:13] shevy: MouseTheLuckyDog don't you get a string back? then you could use a regex
[17:18:21] hewenhong: 2015, 6, 7, 1, 18, 14, 257070
[17:18:30] slawrence00: has joined #ruby
[17:18:53] ag4ve: nice, i enjoy the colors of pry too :)
[17:19:30] goodcodeguy: has joined #ruby
[17:20:10] ndrei: has joined #ruby
[17:20:24] silverdu1t: has joined #ruby
[17:20:26] nolic: has joined #ruby
[17:21:42] havenwood: MouseTheLuckyDog: IO.popen('pwd').any? { |line| line[/\s/] }
[17:22:20] havenwood: #=> true # the newline
[17:22:49] havenwood: And don't really need to iterate lines.
[17:23:52] mrmargolis: has joined #ruby
[17:26:15] olistik: has joined #ruby
[17:27:22] havenwood: IO.popen('pwd').each_char.any? { |char| char =~ /\s/ }
[17:27:42] havenwood: Or just read the whole thing.
[17:28:02] k3asd`: has joined #ruby
[17:30:00] ghr: has joined #ruby
[17:30:43] mc_fail_: has joined #ruby
[17:32:00] Blaguvest: has joined #ruby
[17:32:26] codecop: has joined #ruby
[17:32:28] codecop_: has joined #ruby
[17:32:47] atomical: has joined #ruby
[17:33:38] rgb-one: has joined #ruby
[17:34:09] rgb-one: What is the name of the Rails channel if there is one on freenode?
[17:34:15] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:35:10] senayar: has joined #ruby
[17:35:13] sandelius: has joined #ruby
[17:35:42] mc_fail: has joined #ruby
[17:36:11] havenwood: MouseTheLuckyDog: Is #popen needed? If not, consider something simpler. Or for proper reading advice (and proper closing) say more about what you're doing.
[17:36:45] f3lp: has joined #ruby
[17:38:01] havenwood: MouseTheLuckyDog: `pwd` =~ /\s/
[17:38:43] mary5030: has joined #ruby
[17:38:53] sandelius: has anyone tried refile? (file upload gem)
[17:40:00] rickmasta: has joined #ruby
[17:40:20] Scripore: has joined #ruby
[17:40:21] yoongkang: has joined #ruby
[17:40:28] dcarmich: has joined #ruby
[17:40:31] RegulationD: has joined #ruby
[17:40:57] tkuchiki: has joined #ruby
[17:40:58] jottr: has joined #ruby
[17:42:29] gauke: has joined #ruby
[17:42:58] MouseTheLuckyDog: havenwood, I'm running a program in dry-run mode, I take it's output and grep for an error message. SO the output should either be all whitespace or the error message.
[17:44:21] havenwood: MouseTheLuckyDog: How long might the output be? Just a few lines?
[17:44:51] havenwood: MouseTheLuckyDog: Will the error message ever start with whitespace?
[17:44:53] MouseTheLuckyDog: havenwood, you mean before the grep?
[17:45:06] AmirolAh_: has joined #ruby
[17:45:10] havenwood: MouseTheLuckyDog: Is the return status from grep 0 for one case and an error for the other?
[17:45:13] rkazak: MouseTheLuckyDog: \s+ ?
[17:45:50] havenwood: MouseTheLuckyDog: Maybe just check the return status instead of the stdout/stderr.
[17:45:56] psye: has joined #ruby
[17:46:07] balazs: has joined #ruby
[17:47:47] affenhoden: has joined #ruby
[17:48:43] havenwood: MouseTheLuckyDog: `grep ...` =~ /\s/; $?.success?
[17:48:57] _blizzy_: has joined #ruby
[17:48:58] havenwood: MouseTheLuckyDog: err, i didn't mean to copy the regexp again >.>
[17:49:05] havenwood: MouseTheLuckyDog: `grep ...`; $?.success?
[17:50:23] Scroff: has joined #ruby
[17:51:43] havenwood: MouseTheLuckyDog: or: $?.exitstatus
[17:52:45] CustosLimen: has joined #ruby
[17:52:59] silverdust: has joined #ruby
[17:52:59] alem0lars: has joined #ruby
[17:53:00] alem0lars: has joined #ruby
[17:53:58] havenwood: MouseTheLuckyDog: If if you don't mind printing to stdout, "system returns true if the command gives zero exit status, false for non zero exit status"
[17:54:14] havenwood: though the docs lie :O
[17:54:20] havenwood: http://ruby-doc.org/core/Kernel.html#method-i-system
[17:54:36] havenwood: it returns `nil` for a nonzero exit status
[17:54:47] havenwood: falsey but not false
[17:55:41] dangerousdave: has joined #ruby
[17:55:55] silverdust: has joined #ruby
[17:56:20] dangerousdave: hi, I would like to call SetFile system command from ruby
[17:56:29] dangerousdave: please can someone help?
[17:57:19] Leef_: has joined #ruby
[17:57:55] lkba: has joined #ruby
[17:58:11] havenwood: dangerousdave: Do you want to get at the same functionality with Ruby or shell out to `setfile`?
[17:58:35] havenwood: dangerousdave: If the former, what are you trying to do?
[17:58:59] dangerousdave: if I understand you correctly, just shell out
[17:59:39] _seanc_: has joined #ruby
[17:59:39] dangerousdave: I am extracting a date from a files name, and then setting the files created_at date to it
[18:00:01] havenwood: dangerousdave: For example: system 'setfile', '-t', '...'
[18:00:30] havenwood: dangerousdave: Why not just do that in Ruby?
[18:00:57] Cyberheb: has joined #ruby
[18:01:31] openmind: has joined #ruby
[18:01:34] dangerousdave: i did try %x(Setfile -d '#{day}/#{month}/#{year}') file_1/1/2015.jpg)
[18:01:40] dangerousdave: not luck though
[18:01:41] thiagovsk: has joined #ruby
[18:01:52] dangerousdave: havenwood, can I do that in ruby?
[18:01:56] havenwood: dangerousdave: You can't interpolate with single quotes, change to double.
[18:02:30] dangerousdave: also put superflous bracket in above example
[18:03:30] dangerousdave: tried with double quotes, runs, no change though
[18:03:36] nini1294: has joined #ruby
[18:04:28] roshanavand: has joined #ruby
[18:04:59] roshanavand: has joined #ruby
[18:05:31] GriffinHeart: has joined #ruby
[18:05:50] Mon_Ouie: havenwood: I think you're missing the %x(???)
[18:06:17] dangerousdave: Mon_Ouie, did you mean me?
[18:06:20] Mon_Ouie: You can interpolate in %x(???), it doesn't matter if you have single, double or no quotes inside that
[18:06:33] havenwood: Mon_Ouie: Yup
[18:06:50] havenwood: dangerousdave: No, i just totally disregarded that you were running the command with %x
[18:06:55] havenwood: dangerousdave: my mistake :)
[18:07:02] havenwood: Mon_Ouie: Oops! :)
[18:07:47] dangerousdave: either way doesn't work
[18:07:55] segfalt: has joined #ruby
[18:08:02] djbkd: has joined #ruby
[18:08:28] dangerousdave: havenwood, so it can all be done in ruby?
[18:08:46] natevick: has joined #ruby
[18:09:28] sinkensabe: has joined #ruby
[18:09:50] havenwood: dangerousdave: Hrm, well it's really easy to bump the ctime and mtime with FileUtils.touch, but it's the birthtime you want to change, right?
[18:12:14] zotherstupidguy: has joined #ruby
[18:12:34] dseitz: has joined #ruby
[18:12:47] jpinnix______: has joined #ruby
[18:13:21] dangerousdave: has joined #ruby
[18:13:40] IanVorn: has joined #ruby
[18:13:47] dangerousdave: havenwood, yes, so the photos are ordered in the photomanager correctly
[18:13:57] houhoulis: has joined #ruby
[18:14:16] strmpnk: has joined #ruby
[18:16:16] glowcoil: has joined #ruby
[18:16:16] dangerousdave: has joined #ruby
[18:16:55] knowtheory: has joined #ruby
[18:17:36] havenwood: dangerousdave: yeah, so I guess shell out, hem
[18:17:56] havenwood: dangerousdave: system 'Setfile', '-d', "#{day}/#{month}/#{year}", 'file_1/1/2015.jpg'
[18:18:10] havenwood: dangerousdave: Then check the new birthtime: File.birthtime 'file_1/1/2015.jpg'
[18:18:13] cbetta: has joined #ruby
[18:18:58] Scroff: has joined #ruby
[18:19:33] havenwood: Or if you're not on Ruby 2.2, check the birthtime elsewise.
[18:19:38] seph429: has joined #ruby
[18:21:11] dangerousdave: Jurassic Park!
[18:21:25] dangerousdave: havenwood, it worked, many thanks!
[18:21:29] havenwood: dangerousdave: you're welcome
[18:22:12] millerti: has joined #ruby
[18:22:14] swgillespie: has joined #ruby
[18:25:34] blt: has joined #ruby
[18:25:47] miah: This is UNIX I know this.
[18:25:52] jlyndon: has joined #ruby
[18:26:40] seph429: has joined #ruby
[18:26:50] jeffc: has joined #ruby
[18:28:20] HashNuke: has joined #ruby
[18:28:20] Spami: has joined #ruby
[18:28:29] sinkensabe: has joined #ruby
[18:28:53] mc_fail: has joined #ruby
[18:29:09] whoojemaflip: has joined #ruby
[18:30:13] NeverDie: has joined #ruby
[18:30:51] ghr: has joined #ruby
[18:31:38] Feverio: Hmm, a self method in Ruby is like a static method in C++/Java/C#?
[18:32:37] lkba_: has joined #ruby
[18:32:40] Feverio: Like this, http://codepad.org/47tOsE5r
[18:32:59] yqt: has joined #ruby
[18:33:13] Feverio: Does it mean that there will only be one instance of that method? A class instance?
[18:33:38] ggherdov: has joined #ruby
[18:35:32] adefa: has joined #ruby
[18:36:01] havenwood: Feverio: Yeah, that's a class instance method. We use `self.boo` instead of `Foo.boo` so you can change class names easier. You can swap `self` for `Foo` and it still works but is less idiomatic.
[18:36:17] dmoe: has joined #ruby
[18:36:43] Feverio: havenwood, Yea, great thanks :)
[18:37:07] Feverio: havenwood, And when I do, class << self, that means that the following methods under that are going to be class instances?
[18:37:41] havenwood: Feverio: Yup, put your class instance methods in the `class << self` block and your instance methods outside of it.
[18:38:10] Feverio: havenwood, Ok great, thank you :) Btw, how is it going with Elixir?
[18:39:36] symm-: has joined #ruby
[18:40:16] elton: has joined #ruby
[18:40:20] nini1294: has joined #ruby
[18:40:25] Feverio: Also, suppose I did, class Foo; class << boo; ...., now all the methods under class << boo; are singleton methods to the object boo?
[18:40:56] mjc_: has joined #ruby
[18:41:05] frankS2: has joined #ruby
[18:41:10] havenwood: Feverio: Having fun playing with its OTP abstractions and really grok the language in general.
[18:41:30] havenwood: Tasks, GenEvents, GenServers and Agents, oh my!
[18:42:06] jenrzzz: has joined #ruby
[18:42:16] holsee_: has joined #ruby
[18:42:27] mc_fail: has joined #ruby
[18:43:40] havenwood: Feverio: Yup, sounds right to me.
[18:43:42] pontiki: has joined #ruby
[18:44:03] havenwood: Feverio: Though that last example isn't something you see done.
[18:44:10] Nahra: has joined #ruby
[18:44:48] roolo: has joined #ruby
[18:44:52] lessless: has joined #ruby
[18:45:02] thesheff17: has joined #ruby
[18:48:20] dangerousdave: has joined #ruby
[18:49:29] havenwood: Feverio: Lots and lots of `class << self` but almost no `class << anything_else`.
[18:49:45] dionysus69: has joined #ruby
[18:50:33] dionysus69: has joined #ruby
[18:50:58] jmcc: has joined #ruby
[18:51:45] daxroc: has joined #ruby
[18:52:10] weemsledeux: has joined #ruby
[18:52:37] xxneolithicxx: has joined #ruby
[18:54:34] Feverio: havenwood, Yea I see :) Could you do something like this? http://codepad.org/yhxTnTMr
[18:54:57] Feverio: havenwood, Ops, no need for attr_reader
[18:56:22] RegulationD: has joined #ruby
[18:56:53] langlands: has joined #ruby
[18:57:20] David_H__: has joined #ruby
[18:59:58] iBloodLust_: has joined #ruby
[19:00:50] iBloodLust_: i want to get into emulating on ruby. anyone know where to start? i know ruby is high-level and all
[19:01:10] havenwood: Feverio: Try this in irb/pry for example: https://gist.github.com/havenwood/59a8920f6091a244c936
[19:01:19] Azure: has joined #ruby
[19:01:55] havenwood: Feverio: Alternatively you could define `def version= v` and `def version` inside and outside the `class << self` block.
[19:02:02] Kharma: has joined #ruby
[19:02:10] AndyBotwin: has joined #ruby
[19:02:14] havenwood: Feverio: Or the `def self.version` variant if you prefer.
[19:02:15] twistedpixels: has joined #ruby
[19:02:26] Feverio: havenwood, Yea understood it. So I was trying to give the user the current version of my application. In that case, it should be a class instance right?
[19:02:34] abuzze: has joined #ruby
[19:02:45] twistedpixels: has joined #ruby
[19:03:04] havenwood: Feverio: Use a constant.
[19:04:06] j75: has joined #ruby
[19:04:24] havenwood: Feverio: Commented on the gist above.
[19:05:20] Feverio: havenwood, Yea but a class constant?
[19:05:20] _chs_: has joined #ruby
[19:05:29] Feverio: Else there will be a new variable for each class instance.
[19:06:20] Mia: has joined #ruby
[19:06:20] Mia: has joined #ruby
[19:06:56] fujimura: has joined #ruby
[19:06:59] havenwood: Feverio: In real ruby gems the version is a constant `VERSION` that is defined in the `lib/gem-name/version.rb` file.
[19:07:30] havenwood: `class X; VERSION = '...' end` or `module X; VERSION = '...' end`
[19:07:44] OrbitalKitten: has joined #ruby
[19:07:50] hewenhong: has joined #ruby
[19:08:03] Feverio: havenwood, Why isn't it a class variable?
[19:08:05] psye: has joined #ruby
[19:08:06] havenwood: Feverio: Often a frozen String literal. The idea is that a version should be immutable per release.
[19:08:28] zipkid: has joined #ruby
[19:08:52] havenwood: Feverio: Class variables are intentionally ugly to discourage use. Like global variables.
[19:09:48] pskosinski: has joined #ruby
[19:09:51] Feverio: havenwood, You end up with multiple version instances then.
[19:11:23] swgillespie: has joined #ruby
[19:11:34] havenwood: Feverio: Do you want multiple instances with different versions?
[19:11:51] Feverio: havenwood, No?
[19:12:49] havenwood: Feverio: So the constant will give a warning if redefined and the frozen string prevents modification.
[19:13:16] Feverio: havenwood, Still, if it's class specific it shouldn't be an object instance.
[19:13:33] havenwood: Feverio: I'm not sure I follow there.
[19:14:13] havenwood: Feverio: Say more?
[19:14:35] Feverio: havenwood, class X; VERSION = '...'; end
[19:14:49] Feverio: There will be a new variable instance of VERSION for each object.
[19:14:55] TheSavior2: has joined #ruby
[19:15:06] havenwood: Feverio: No, just one.
[19:15:15] havenwood: Feverio: Unless I'm misunderstanding what you mean.
[19:15:26] bestie: has joined #ruby
[19:15:28] fabrice31: has joined #ruby
[19:15:45] Feverio: havenwood, There will be something like this? https://gist.github.com/anonymous/bca0532854c9428711db
[19:15:56] sandelius: has joined #ruby
[19:16:01] Feverio: This is int tho, but just think of the scope.
[19:16:51] Feverio: VERSION here is a class instance. Even if you have 1000 objects, there is only one VARIABLE instance for all those objects.
[19:16:55] TheSavior2: Download the Website Worth Calculator Nulled attathment on the website followd by images: http://www.websiteadverts.org/forum/showthread.php?tid=16 you might think it's fake, well it's not, after all it's only one click isn't it?
[19:16:57] Feverio: It's static.
[19:17:00] TheSavior2: Download the Website Worth Calculator Nulled attathment on the website followd by images: http://www.websiteadverts.org/forum/showthread.php?tid=16 you might think it's fake, well it's not, after all it's only one click isn't it?
[19:17:56] IanVorn: has joined #ruby
[19:18:04] ogpastaling: has joined #ruby
[19:18:54] postmodern: has joined #ruby
[19:19:57] dangerousdave: has joined #ruby
[19:19:58] _seanc_: has joined #ruby
[19:20:47] ebbflowgo: has joined #ruby
[19:21:45] dzejrou: has joined #ruby
[19:21:50] timonv: has joined #ruby
[19:22:39] jxf: has joined #ruby
[19:22:59] havenwood: Feverio: So references to the same constant from multiple instances?
[19:23:02] alekst_: has joined #ruby
[19:24:56] Feverio: havenwood, Yes. Memory is allocated for only one constant variable, here VERSION. Non-static variables are object-bounded, memory is allocated with each object.
[19:25:38] vikram___: has joined #ruby
[19:26:20] kies: has joined #ruby
[19:26:21] ebbflowgo: has joined #ruby
[19:27:59] djbkd: has joined #ruby
[19:29:08] apofis: has joined #ruby
[19:29:37] gregf: has joined #ruby
[19:30:29] mh888: has joined #ruby
[19:30:35] ebbflowgo: has joined #ruby
[19:31:52] mh888: has left #ruby: ()
[19:31:53] apofis: has joined #ruby
[19:32:04] bttf: has joined #ruby
[19:33:49] ebbflowgo: has joined #ruby
[19:34:25] dmmoody: has joined #ruby
[19:34:49] hewenhong: has joined #ruby
[19:34:54] havenwood: Feverio: I don't see any issue with how Ruby constants work and using them for a module or class version. Are you running into an issue or just imagining there might be one? If the latter, can you demonstrate it in irc or pry?
[19:35:20] c355E3B: has joined #ruby
[19:36:06] mandarinkin: has joined #ruby
[19:36:54] mrsolo: has joined #ruby
[19:36:59] autrilla: has joined #ruby
[19:37:14] mrsolo: has joined #ruby
[19:38:56] mengu: has joined #ruby
[19:39:32] baweaver: has joined #ruby
[19:39:56] ur5us: has joined #ruby
[19:41:33] symm-: has joined #ruby
[19:41:45] mc_fail: has joined #ruby
[19:41:58] sandstrom: has joined #ruby
[19:42:20] chris-sonar: has joined #ruby
[19:42:45] skandi: has joined #ruby
[19:44:09] balazs: has joined #ruby
[19:44:11] jenrzzz: has joined #ruby
[19:44:12] hectortrope: Hi I have this error while installing ruby http://ix.io/iXF
[19:44:34] edwinvdgraaf: has joined #ruby
[19:45:08] Ox0dea: has joined #ruby
[19:45:58] Ox0dea: hectortrope: Are you using a rather old machine?
[19:46:46] mc_fail_: has joined #ruby
[19:46:56] hectortrope: Ox0dea: uuntu 15 in vagrant
[19:47:01] hectortrope: I have ruby 2.1
[19:47:01] havenwood: hectortrope: RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install 2.2.2
[19:47:16] hectortrope: havenwood: ??
[19:47:31] havenwood: hectortrope: If you don't install rdoc it can't error.
[19:47:39] Ox0dea: hectortrope: That information has nothing to do with the machine you're using.
[19:48:17] hectortrope: havenwood: I installed ryuby many times before and I follow simple this https://gorails.com/setup/ubuntu/15.04
[19:48:32] mordof: has joined #ruby
[19:48:32] hectortrope: I get no erroe and why this is?
[19:49:44] havenwood: hectortrope: You could start an issue with ruby-build, since that's what rbenv uses to install Ruby. Or if you don't need rdoc just skip it.
[19:50:17] hectortrope: havenwood: ok Thanks
[19:50:47] mrmargolis: has joined #ruby
[19:50:52] Ox0dea: The process got killed for using too many resources.
[19:51:40] Ox0dea: I don't think building Ruby will cause that on any modern machine.
[19:53:18] hewenhong: has joined #ruby
[19:53:46] bootstrappm: hectortrope are you on an AWS micro instance?
[19:54:03] existensil: he said vagrant
[19:54:12] existensil: might be configured with too little memory
[19:54:19] bootstrappm: ^ thats what i was gonna say
[19:54:33] bootstrappm: I have one that is one micro instance seeing poorer performance than usual, getting some processes killed for lack of memory
[19:55:46] yfeldblum: has joined #ruby
[19:55:58] hectortrope: bootstrappm: no vagrant
[19:56:03] hectortrope: local machine
[19:56:19] bootstrappm: amount of memory you set on the vagrant?
[19:56:47] mdz_: has joined #ruby
[19:56:52] jackjackdripper: has joined #ruby
[19:57:26] Ox0dea: Apparently not.
[19:57:36] existensil: probably not. I'd at least double it. Or, just skip the rdoc install as suggested previously.
[19:57:39] pontiki: i've compiled 2.2.0 in 512 on an RPi
[19:57:52] hectortrope: I run everything from ssh
[19:57:59] zotherstupidguy: has joined #ruby
[19:58:02] pontiki: as it should be one
[19:58:33] lalops: has joined #ruby
[19:58:33] existensil: yeah, come to think of it I didn't have any problem doing rvm installs from source on a 512MB rpi
[19:58:45] existensil: maybe a bug with ruby-build or rdoc
[19:59:23] pontiki: idk, i use ruby-install
[19:59:36] pontiki: which does not install the docs
[20:00:11] nahtnam: has joined #ruby
[20:00:12] jottr: has joined #ruby
[20:00:15] lalops: Direct download links/forum attatchments SEO ANALYZER SCRIPT: /AMSG FREE SEO ANALYZER SCRIPT DOWNLOAD ATTATCHMENT FOUND: http://www.websiteadverts.org/forum/showthread.php?tid=17 WEBSITE WORTH CALCULATOR SCRIPT: http://www.websiteadverts.org/forum/showthread.php?tid=16
[20:00:28] havenwood: !mute lalops
[20:00:29] ruboto: +q lalops!*@*
[20:00:29] ruboto: -o ruboto
[20:01:20] mc_fail: has joined #ruby
[20:01:46] hewenhong: has joined #ruby
[20:02:05] elton: has joined #ruby
[20:02:45] mary5030: has joined #ruby
[20:02:49] jhass: looks like they're changing host now
[20:04:21] mrmargolis`: has joined #ruby
[20:04:30] bruno-: has joined #ruby
[20:07:22] apofis: has joined #ruby
[20:08:22] endash: has joined #ruby
[20:09:11] kadoppe: has joined #ruby
[20:09:34] jottr: has joined #ruby
[20:11:16] jeff_c: has joined #ruby
[20:12:53] apofis: has joined #ruby
[20:14:34] bootstrappm: has joined #ruby
[20:15:21] kies: has joined #ruby
[20:15:44] Fooster: has joined #ruby
[20:16:47] ruv: has joined #ruby
[20:19:29] kstuart_: has joined #ruby
[20:20:56] jeffc: has left #ruby: ("Quitting...")
[20:23:42] JCOE: has joined #ruby
[20:23:48] sinkensabe: has joined #ruby
[20:25:03] ringarin: has joined #ruby
[20:25:37] adefa: has joined #ruby
[20:26:47] MaciejCzyzewski: has joined #ruby
[20:26:54] MaciejCzyzewski: has left #ruby: ()
[20:27:01] AlHafoudh: has joined #ruby
[20:27:23] sarkis: has joined #ruby
[20:27:51] sarkis: hey all - is there a way to set -o StrictHostKeyChecking=no on net-ssh? I can't figure this out
[20:28:46] allcentury: has joined #ruby
[20:28:49] ytti: sarkis, maybe :paranoid => false
[20:29:09] ytti: it is pretty badly named option
[20:29:16] ytti: i'd call it it :secure => false
[20:29:41] sarkis: ytti thanks
[20:29:56] Eiam`: has joined #ruby
[20:33:06] Fooster: has joined #ruby
[20:33:47] veleno: has joined #ruby
[20:33:58] ghr: has joined #ruby
[20:35:29] Scroff: has joined #ruby
[20:35:46] djbkd: has joined #ruby
[20:37:16] Scroff: has joined #ruby
[20:37:26] mc_fail: has joined #ruby
[20:39:29] _seanc_: has joined #ruby
[20:41:26] e1nh4nd3r: has joined #ruby
[20:45:16] RegulationD: has joined #ruby
[20:45:41] JCOE: has joined #ruby
[20:47:51] sandelius: has joined #ruby
[20:49:02] Narzew: has joined #ruby
[20:50:03] snsei: has joined #ruby
[20:51:01] malconis: has joined #ruby
[20:51:59] affenhoden: has joined #ruby
[20:52:55] chipotle: has joined #ruby
[20:53:05] seanot: has joined #ruby
[20:53:14] veleno: has joined #ruby
[20:53:35] seanot: has joined #ruby
[20:53:49] LJT: has joined #ruby
[20:54:15] snsei: has joined #ruby
[20:55:41] fujimura: has joined #ruby
[20:56:15] djbkd: has joined #ruby
[20:57:53] Feverio: havenwood, Sorry, I fell asleep. The question is, how many instances of a constant variable in a class are produced for x objects?
[20:58:15] Feverio: If I have 100 objects, are there 100 different VERSION instances for each object?
[20:58:29] Feverio: Like, 100 VERSION copies.
[20:59:13] eggoez: has joined #ruby
[20:59:42] datanoise: has joined #ruby
[20:59:43] mrsolo: has joined #ruby
[20:59:47] sarkis: ytti: i set ssh_options { paranoid: false } didn't seem to do it :(
[21:00:18] existensil: depends on what you meant by constant. class User; VERSION="1.0"; end would result in only one VERSION object no matter how many times you call User.new
[21:00:37] vin`: has joined #ruby
[21:00:38] Ox0dea: >> class Foo; BAR = at_exit { p 1 }; end; 10.times { Foo.new }
[21:00:39] ruboto: Ox0dea # => 10 ...check link for more (https://eval.in/376626)
[21:00:52] Ox0dea: Feverio: existensil is correct.
[21:00:53] Musashi007: has joined #ruby
[21:01:05] Feverio: So, a class constant is class bounded and not object bounded.
[21:01:10] Feverio: It's static.
[21:01:13] Feverio: Ok, great.
[21:01:15] allomov: has joined #ruby
[21:01:23] Ox0dea: No, not static, per se; you can change everything in Ruby.
[21:01:35] existensil: as static as it gets in ruby
[21:01:37] Ox0dea: >> class Foo; BAR = 1; end; Foo.constants
[21:01:38] ruboto: Ox0dea # => [:BAR] (https://eval.in/376627)
[21:01:40] Feverio: That's what I was looking for, thought it was object bounded like in C++.
[21:01:40] existensil: it will cry if you reassign it
[21:01:46] Feverio: Ox0dea, Static is scope.
[21:01:47] existensil: but silently let you mutate it
[21:01:53] Feverio: existensil, Yea.
[21:02:18] kies: has joined #ruby
[21:02:38] Feverio: That's for all constants or only constants inside classes?
[21:03:05] doctorly: has joined #ruby
[21:03:49] bootstrappm: has joined #ruby
[21:04:06] Ox0dea: Feverio: Constants get set on self unless you're at the top level.
[21:04:14] existensil: all constants are the same
[21:04:28] existensil: regardless of whether they are inside another class/constant
[21:04:54] Ox0dea: existensil: What do you mean?
[21:05:02] Feverio: Ox0dea, That's not what I asked. We are talking about memory allocation.
[21:05:08] Feverio: existensil, Oh okey I see.
[21:05:30] existensil: a constant is just a static container for an object in ruby. They can exist within Object (global constants) or within other classes/modules
[21:05:32] jefus: has joined #ruby
[21:05:49] existensil: classes themselves are a static container for an instance of Class
[21:06:03] existensil: just another constant that points to a Class instance
[21:06:56] caseypatrickdris: has joined #ruby
[21:07:12] existensil: the convention of CONSTANTS being all caps and ClassNames being camel case is just a convention. Anything that starts with an upper case letter in Ruby is a constant
[21:08:34] existensil: well, methods can also be capitalized, hence Kernel.URI and others
[21:09:41] syath: has joined #ruby
[21:10:04] Ox0dea: existensil: Classes don't need to be constants.
[21:10:15] jottr: has joined #ruby
[21:10:25] rickmasta: has joined #ruby
[21:11:00] Feverio: Ox0dea, They are, it clearly says that in the Pickaxe book.
[21:11:13] Ox0dea: >> x = Class.new
[21:11:14] ruboto: Ox0dea # => #<Class:0x40504340> (https://eval.in/376629)
[21:11:59] michael_mbp: has joined #ruby
[21:12:14] thisirs: has joined #ruby
[21:13:02] existensil: you can make an instance of Class without assigning it to a constant
[21:13:13] balazs_: has joined #ruby
[21:13:15] Feverio: Ox0dea, "A constant name starts with an uppercase letter followed by name characters. Class names and module names are constants and follow the constant naming convention."
[21:13:17] existensil: was just pointing out that traditional classes are just taking an instance of class and assigning it to a constant
[21:14:05] greenbagels: has joined #ruby
[21:14:13] Feverio: It's like saying then, private methods are not private at all :)
[21:14:16] existensil: difference between constants and methods:
[21:14:21] existensil: >> class Foo; Bar = "yin"; def self.Bar(*a); "yang"; end; end; [Foo::Bar, Foo.Bar, Foo.const_get(:Bar), Foo::Bar(:a)]
[21:14:22] ruboto: existensil # => ["yin", "yang", "yin", "yang"] (https://eval.in/376630)
[21:15:44] existensil: when using ::, ruby will look for a constant first if there are no params present
[21:16:15] fabrice31: has joined #ruby
[21:16:48] ruby-lang421: has joined #ruby
[21:16:56] langlands: has joined #ruby
[21:17:17] gmci: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[21:20:22] vikaton: has joined #ruby
[21:20:26] Feverio: existensil, Do you know if there is anything in the pickaxe book telling what we just talked about the constant variables scope?
[21:21:01] nofxx: has joined #ruby
[21:21:33] DLSteve: has joined #ruby
[21:22:42] zotherstupidguy: has joined #ruby
[21:22:57] PrincessAww: has left #ruby: ("Leaving")
[21:25:55] swgillespie: has joined #ruby
[21:26:01] apofis: has joined #ruby
[21:26:36] adefa: has joined #ruby
[21:27:33] rickmasta: has joined #ruby
[21:28:02] vikaton: has joined #ruby
[21:31:19] weemsledeux: has joined #ruby
[21:34:48] ghr: has joined #ruby
[21:39:00] lolmaus: has joined #ruby
[21:39:01] j75: has joined #ruby
[21:39:02] thisirs: has joined #ruby
[21:41:35] Musashi007: has joined #ruby
[21:44:01] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[21:47:10] DLSteve: has joined #ruby
[21:47:54] CustosLimen: has joined #ruby
[21:51:08] bootstrappm: has joined #ruby
[21:52:57] hewenhong: has joined #ruby
[21:53:11] millerti: has joined #ruby
[21:55:04] apofis: has joined #ruby
[21:56:37] mrsolo: has joined #ruby
[21:57:01] David_H_Smith: has joined #ruby
[21:58:11] rushed: has joined #ruby
[22:00:49] ruv: has joined #ruby
[22:01:30] decoponio: has joined #ruby
[22:01:54] Scripore: has joined #ruby
[22:04:41] duncannz: has joined #ruby
[22:04:48] balazs: has joined #ruby
[22:06:54] endash: has joined #ruby
[22:08:05] c355E3B: has joined #ruby
[22:09:22] Renich: has joined #ruby
[22:11:05] jottr: has joined #ruby
[22:12:55] attlasbot: has joined #ruby
[22:13:29] malconis: has joined #ruby
[22:13:59] rbowlby: has joined #ruby
[22:14:26] YamakasY: has joined #ruby
[22:14:37] jaxxstorm: has joined #ruby
[22:14:51] YamakasY: hi guys... as there is no scl repo for centos 7, is there a rubygems repo for centos 7 somewhere ?
[22:16:58] caseypatrickdris: has joined #ruby
[22:17:07] Narzew: has joined #ruby
[22:19:53] michas: has joined #ruby
[22:21:10] bootstrappm: YamakasY: you trying to install a more recent version of ruby on centos_
[22:22:39] mrsolo: has joined #ruby
[22:23:03] YamakasY: bootstrappm: yep can do, but if there is some ruby repo, I would be fine
[22:23:41] bootstrappm: no, i'm confused what you're asking YamakasY ... what do you mean some ruby repo? A repo that has a more recent version of repo? a repo with ruby gems?
[22:24:05] YamakasY: bootstrappm: yeah that ruby is just upgraded to the latest version
[22:25:30] bootstrappm: YamakasY: so ruby in the package managers (apt-get / yum) usually lags behind current ruby. Recommended way to install ruby is ruby-install, rbenv + ruby-build, etc.
[22:25:33] bootstrappm: I personally use rvm
[22:26:01] YamakasY: bootstrappm: yes I saw... I need to install foreman-proxy on centos 7
[22:26:14] YamakasY: Error: Package: 1:rubygem-sinatra-1.3.5-1.el7.noarch (foreman) Requires: rubygem(rack) >= 1.4.0
[22:26:33] bootstrappm: you get that error from what YamakasY?
[22:26:48] YamakasY: yum install foreman-proxy
[22:27:10] snophey: has joined #ruby
[22:28:19] bootstrappm: some googling led me to this: http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Smart-Proxy_Plugin - is that what told you to try to install that via yum?
[22:28:32] bootstrappm: don't install any ruby gems through package managers
[22:28:43] apofis: has joined #ruby
[22:28:44] bootstrappm: just learn to use `gem install` or bundler
[22:29:28] jhass: I do actually install all gems I install system wide through my package manager ;P
[22:29:39] Scroff: has joined #ruby
[22:29:56] bootstrappm: really?! YamakasY looks like jhass is your man for this problem hahah
[22:30:00] postmodern: YamakasY, depends on what OS/distro your using, Arch and Fedora's packaged ruby are quite nice
[22:30:02] YamakasY: bootstrappm: yes yes
[22:30:08] YamakasY: postmodern: centos 7
[22:30:19] YamakasY: on c6 you have scl
[22:30:26] jottr: has joined #ruby
[22:30:34] apofis: has joined #ruby
[22:30:41] YamakasY: bootstrappm: I don't need plugins, only the proxy
[22:30:50] chipotle: has joined #ruby
[22:31:17] datanoise: has joined #ruby
[22:31:20] Scroff: has joined #ruby
[22:31:33] jhass: postmodern: btw any news on the unification of chruby $GEM_HOME with --user-install $GEM_HOME front?
[22:32:43] rgb-one: has joined #ruby
[22:33:04] ndrei: has joined #ruby
[22:33:07] rgb-one: Anyone familiar with using markdown within inline html elements in a markdown file?
[22:33:08] Sweeper: hmm, should I call a collection of songs and readings "services" or "missals" or "liturgies"
[22:33:18] JCOE: has joined #ruby
[22:33:19] rgb-one: I would like to embed markdown within the <aside> element.
[22:33:32] postmodern: jhass, i think your referring to the fact rubygems hardcodes their #!/path/to/ruby?
[22:33:33] veleno: has joined #ruby
[22:33:38] rgb-one: I have tried <aside class="name" markdown="1">**Hello**</aside> but to no avail.
[22:33:51] waxjar: sweeper: songs_and_readings?
[22:34:05] jhass: postmodern: no the RUBY_VERSION vs ruby abi in the path thingy
[22:34:07] RegulationD: has joined #ruby
[22:34:19] Sweeper: waxjar: it's not just that, it'll need some style settings associated with it :P
[22:34:33] jhass: postmodern: https://github.com/postmodern/chruby/issues/235
[22:35:20] postmodern: jhass, that would be a breaking change, so no idea. also i don't have much free time
[22:35:27] ghr: has joined #ruby
[22:35:46] postmodern: jhass, but the new shared rubygems extension code is beginning to roll out
[22:36:01] mh888: has joined #ruby
[22:36:26] mh888: has joined #ruby
[22:36:53] jhass: I guess I wouldn't mind it as a configuration issue, CHRUBY_GEM_HOME_SCHEME=rubygems-user-install or whatever
[22:37:03] jhass: s/issue/option/
[22:37:03] postmodern: jhass, probably when the last -pXXX ruby gets EOLed we can switch to X.Y
[22:37:20] havenwood: which will be in Feb :)
[22:37:23] OrbitalKitten: has joined #ruby
[22:37:26] atmosx: night all
[22:37:30] havenwood: atmosx: g'night
[22:37:32] postmodern: jhass, but that'd also require rubygems stop hardcoding the #!/path/to/ruby, so you can share gem binaries between patch-level versions
[22:37:51] postmodern: jhass, still waiting on https://github.com/rubygems/rubygems/issues/1049
[22:37:55] jhass: eh, if I have to configure I have no issue to add --env-shebang to my gemrc
[22:38:55] YamakasY: so anyone a clue ?
[22:39:02] postmodern: jhass, yeah i put --env-shebang --user-install in .gemrc on random ubuntu systems
[22:39:53] jhass: granted I have a bit uncommon setup where I have the system ruby available as an alias of its version
[22:40:00] jhass: so I can chruby 2.2 and get the system ruby
[22:40:33] jhass: but currently my issue is that with --user-install --env-shebang gem install installs to different locations under chruby system and chruby 2.2
[22:41:17] Musashi007: has joined #ruby
[22:43:08] bantic: has joined #ruby
[22:43:18] OrbitalKitten: has joined #ruby
[22:43:21] mdz_: has joined #ruby
[22:43:30] postmodern: i wonder if we should even bother separate gems by ruby version now that rubygems can compile extensions on-the-fly
[22:44:06] jhass: as said IMO it should just choose the same gem home --user-install chooses
[22:44:26] fujimura: has joined #ruby
[22:44:30] jhass: ideally whatever that is for the actually selected ruby version
[22:46:39] eggoez: has joined #ruby
[22:48:53] segfalt_: has joined #ruby
[22:48:59] A124: has joined #ruby
[22:49:34] workmad3: has joined #ruby
[22:49:46] OrbitalKitten: has joined #ruby
[22:53:20] bosma_: has joined #ruby
[22:53:28] NeverDie: has joined #ruby
[22:53:39] A205B064: has joined #ruby
[22:58:02] mc_fail: has joined #ruby
[23:04:37] jottr_: has joined #ruby
[23:07:09] freerobby: has joined #ruby
[23:12:21] ohaibbq: has joined #ruby
[23:12:37] mc_fail: has joined #ruby
[23:14:18] senayar: has joined #ruby
[23:14:48] pygospa: has joined #ruby
[23:15:43] adefa: has joined #ruby
[23:17:15] fabrice31: has joined #ruby
[23:19:47] doctorly: has joined #ruby
[23:21:31] David_H_Smith: has joined #ruby
[23:22:21] mrsolo: has joined #ruby
[23:26:51] CloCkWeRX: has joined #ruby
[23:27:27] Guest64536: has joined #ruby
[23:28:16] mc_fail: has joined #ruby
[23:28:47] David_H__: has joined #ruby
[23:30:35] Limix: has joined #ruby
[23:31:20] yfeldblum: has joined #ruby
[23:32:27] j4cknewt: has joined #ruby
[23:34:56] malconis: has joined #ruby
[23:36:18] ghr: has joined #ruby
[23:36:44] arescorpio: has joined #ruby
[23:38:33] roryhughes: has joined #ruby
[23:41:10] atomical: has joined #ruby
[23:41:42] Scripore: has joined #ruby
[23:41:48] hewenhong: has joined #ruby
[23:42:51] nolic: has joined #ruby
[23:45:36] that1guy: has joined #ruby
[23:46:01] rickmasta: has joined #ruby
[23:46:23] that1guy: Is there a way in ruby using gets.chomp to say if I haven't had a response in x seconds to run this other code?
[23:46:26] growlove: has joined #ruby
[23:48:28] shevy: I think so; you may possibly have to use Thread.new {}.join and determine what happens through a counter
[23:48:58] that1guy: I was thinking I was going to need to use either the wait or sleep method somehow
[23:48:58] Fooster: has joined #ruby
[23:49:25] that1guy: I wanted to put if sleep 5
[23:49:37] that1guy: then my code, but that just runs sleep 5
[23:50:03] shevy: well did you use a thread yet
[23:50:19] that1guy: I'm too new to know what that is.
[23:50:32] that1guy: Just learned initialize and class
[23:50:42] shevy: have a look at http://ruby-doc.org/core-2.2.0/Thread.html
[23:50:50] davedev24_: has joined #ruby
[23:50:58] datanoise: has joined #ruby
[23:54:09] freerobby: has joined #ruby
[23:56:09] Fooster: has joined #ruby
[23:56:41] Synthbread: has joined #ruby