« Back to channel list

#ruby - 31 July 2015

« Back 1 day Forward 1 day »
[00:00:15] Kyuujitsu: has joined #ruby
[00:00:24] Radar: Try it and see what happens :)
[00:00:25] gcfhvjbkn: has joined #ruby
[00:00:58] gcfhvjbkn: has joined #ruby
[00:01:40] gcfhvjbkn: has joined #ruby
[00:02:16] gcfhvjbkn: has joined #ruby
[00:02:56] gcfhvjbkn: has joined #ruby
[00:03:20] bronson: has joined #ruby
[00:04:11] gcfhvjbkn: has joined #ruby
[00:04:47] gcfhvjbkn: has joined #ruby
[00:05:26] gcfhvjbkn: has joined #ruby
[00:06:02] gcfhvjbkn: has joined #ruby
[00:06:34] CloCkWeRX: has joined #ruby
[00:06:38] zenguy_pc: has joined #ruby
[00:06:42] gcfhvjbkn: has joined #ruby
[00:07:17] gcfhvjbkn: has joined #ruby
[00:07:47] chills42: has joined #ruby
[00:07:55] gcfhvjbkn: has joined #ruby
[00:08:20] aryaching: has joined #ruby
[00:08:35] gcfhvjbkn: has joined #ruby
[00:09:10] gcfhvjbkn: has joined #ruby
[00:09:13] Kyuujitsu: has joined #ruby
[00:09:35] tekacs: has joined #ruby
[00:09:44] Takumo: has joined #ruby
[00:09:44] Takumo: has joined #ruby
[00:09:50] gcfhvjbkn: has joined #ruby
[00:09:52] IceyEC: has joined #ruby
[00:10:02] jgpawletko: has joined #ruby
[00:10:28] gcfhvjbkn: has joined #ruby
[00:11:03] gcfhvjbkn: has joined #ruby
[00:11:19] that1guy: has joined #ruby
[00:11:41] gcfhvjbkn: has joined #ruby
[00:12:22] gcfhvjbkn: has joined #ruby
[00:12:56] gcfhvjbkn: has joined #ruby
[00:13:16] tubuliferous: has joined #ruby
[00:13:38] gcfhvjbkn: has joined #ruby
[00:14:14] gcfhvjbkn: has joined #ruby
[00:14:16] mxrguspxrt: has joined #ruby
[00:14:19] Kyuujitsu: has joined #ruby
[00:14:50] gcfhvjbkn: has joined #ruby
[00:15:14] _whitelogger____: has joined #ruby
[00:15:22] user1138: has joined #ruby
[00:15:25] michael_mbp: has joined #ruby
[00:15:29] gcfhvjbkn: has joined #ruby
[00:15:57] tejasmanohar_: has joined #ruby
[00:16:09] gcfhvjbkn: has joined #ruby
[00:16:12] bonhoeffer: has joined #ruby
[00:16:20] a1ph4g33k: has left #ruby: ()
[00:16:30] chills42: has joined #ruby
[00:16:45] gcfhvjbkn: has joined #ruby
[00:17:25] gcfhvjbkn: has joined #ruby
[00:17:58] juanpablo_: has joined #ruby
[00:18:02] gcfhvjbkn: has joined #ruby
[00:18:37] gcfhvjbkn: has joined #ruby
[00:19:15] gcfhvjbkn: has joined #ruby
[00:19:23] natbo: has joined #ruby
[00:19:39] loc22: has joined #ruby
[00:19:53] gcfhvjbkn: has joined #ruby
[00:20:32] gcfhvjbkn: has joined #ruby
[00:21:07] gcfhvjbkn: has joined #ruby
[00:21:45] gcfhvjbkn: has joined #ruby
[00:22:26] gcfhvjbkn: has joined #ruby
[00:23:02] gcfhvjbkn: has joined #ruby
[00:23:20] diegoviola: has joined #ruby
[00:23:23] mxrguspx_: has joined #ruby
[00:23:42] gcfhvjbkn: has joined #ruby
[00:24:33] Kyuujitsu: has joined #ruby
[00:24:55] gcfhvjbkn: has joined #ruby
[00:25:24] rubynuby: has joined #ruby
[00:25:35] gcfhvjbkn: has joined #ruby
[00:25:56] phutchins2: has joined #ruby
[00:26:04] ariedler: has joined #ruby
[00:26:12] gcfhvjbkn: has joined #ruby
[00:26:42] user1138: has joined #ruby
[00:26:53] gcfhvjbkn: has joined #ruby
[00:27:06] ariedler: Q: I have a lot of constants that I want to use in a particular file, is there a nice way to not fully namespace them ?
[00:27:30] gcfhvjbkn: has joined #ruby
[00:27:41] RegulationD: has joined #ruby
[00:27:47] ariedler: e.g. Foo::Bar::(Baz,Beer,Booze) ; but I don't want to fully qualify them in Foo::Cats
[00:28:06] gcfhvjbkn: has joined #ruby
[00:28:07] fenjamin: has joined #ruby
[00:28:15] sevenseacat: has joined #ruby
[00:28:16] Westerbly_: has joined #ruby
[00:28:42] gcfhvjbkn: has joined #ruby
[00:29:14] mxrguspxrt: has joined #ruby
[00:29:22] gcfhvjbkn: has joined #ruby
[00:29:53] GarethAdams: ariedler: depending on how you've declared Foo::Cats, you can call them as Bar::Baz from there
[00:29:59] gcfhvjbkn: has joined #ruby
[00:30:14] Kyuujitsu: has joined #ruby
[00:30:35] shevy: ohhhh cats
[00:30:37] gcfhvjbkn: has joined #ruby
[00:31:11] Oog: has joined #ruby
[00:31:14] gcfhvjbkn: has joined #ruby
[00:31:25] shevy: ariedler you can also include the constants
[00:31:25] ariedler: GarethAdams: by experimentation I just figured that out; thanks.. I also have another question...
[00:31:38] shevy: respectively the namespace they are in
[00:31:52] gcfhvjbkn: has joined #ruby
[00:32:00] Oog: has joined #ruby
[00:32:28] gcfhvjbkn: has joined #ruby
[00:33:05] gcfhvjbkn: has joined #ruby
[00:33:45] gcfhvjbkn: has joined #ruby
[00:34:25] gcfhvjbkn: has joined #ruby
[00:34:38] ariedler: this might be hard to know without context; but I have a series of Types of things, and they have a sequential ordering, is this a good time to use meta programming so programmers don't accidently use the same id?
[00:34:39] Lingo: has joined #ruby
[00:35:00] gcfhvjbkn: has joined #ruby
[00:35:16] Kyuujitsu: has joined #ruby
[00:35:27] shevy: do you need meta programming there?
[00:35:40] gcfhvjbkn: has joined #ruby
[00:35:59] pdoherty: has joined #ruby
[00:36:19] gcfhvjbkn: has joined #ruby
[00:36:22] ariedler: shevy: not necessarily, but a Map from ID <-> Type needs to be statically maintained.
[00:36:56] gcfhvjbkn: has joined #ruby
[00:37:30] gcfhvjbkn: has joined #ruby
[00:37:36] theery: has joined #ruby
[00:37:50] shevy: sounds like a hash?
[00:38:10] gcfhvjbkn: has joined #ruby
[00:38:47] gcfhvjbkn: has joined #ruby
[00:39:20] decaff: has joined #ruby
[00:39:27] gcfhvjbkn: has joined #ruby
[00:40:04] gcfhvjbkn: has joined #ruby
[00:40:22] Kyuujitsu: has joined #ruby
[00:40:28] ariedler: https://gist.github.com/AlexRiedler/9caccbf08ecd074c2d93 is basically what it is right now; but that feels... gross for some reason
[00:40:42] gcfhvjbkn: has joined #ruby
[00:41:19] gcfhvjbkn: has joined #ruby
[00:41:24] GeissT: has joined #ruby
[00:41:27] {756d6f}: has joined #ruby
[00:41:57] gcfhvjbkn: has joined #ruby
[00:42:21] radgeRayden: has joined #ruby
[00:42:36] gcfhvjbkn: has joined #ruby
[00:43:00] Ox0dea: ariedler: For starters, {BAZ: ...} doesn't do what you seem to think it does.
[00:43:14] gcfhvjbkn: has joined #ruby
[00:43:26] ariedler: oops, habit; i meant => instead of :
[00:44:27] gcfhvjbkn: has joined #ruby
[00:44:37] Ox0dea: Is there some good reason for these things to be accessible using opaque numeric IDs?
[00:45:03] gcfhvjbkn: has joined #ruby
[00:45:21] Kyuujitsu: has joined #ruby
[00:45:43] gcfhvjbkn: has joined #ruby
[00:45:44] ariedler: Ox0dea: they are used in a message format that goes across the wrire
[00:45:56] ruby-lang492: has joined #ruby
[00:46:22] gcfhvjbkn: has joined #ruby
[00:46:59] gcfhvjbkn: has joined #ruby
[00:47:17] willywos: has joined #ruby
[00:47:34] gcfhvjbkn: has joined #ruby
[00:48:16] gcfhvjbkn: has joined #ruby
[00:48:37] chouhoulis: has joined #ruby
[00:48:51] gcfhvjbkn: has joined #ruby
[00:49:11] tuelz1: has joined #ruby
[00:49:27] gcfhvjbkn: has joined #ruby
[00:50:05] gcfhvjbkn: has joined #ruby
[00:50:30] Kyuujitsu: has joined #ruby
[00:50:43] gcfhvjbkn: has joined #ruby
[00:51:16] ruby-lang391: has joined #ruby
[00:51:23] gcfhvjbkn: has joined #ruby
[00:52:01] gcfhvjbkn: has joined #ruby
[00:52:39] gcfhvjbkn: has joined #ruby
[00:52:39] shevy: hmm how to apply a .map! on a hash? should I use .each_pair and reconstitute?
[00:53:15] gcfhvjbkn: has joined #ruby
[00:53:50] Ox0dea: shevy: Why not just #map and reconstitute?
[00:53:51] gcfhvjbkn: has joined #ruby
[00:54:01] Radar: Hash[hash.map ... ]
[00:54:22] Ox0dea: #to_h > Hash#[], in my opinion.
[00:54:33] gcfhvjbkn: has joined #ruby
[00:54:38] Ox0dea: Hash.[], I suppose.
[00:54:40] Radar: Oh right, to_h is now a thing
[00:54:58] Ox0dea: 19>> [].method(:to_h)
[00:54:59] ruboto: Ox0dea # => undefined method `to_h' for class `Array' (NameError) ...check link for more (https://eval.in/409268)
[00:55:09] gcfhvjbkn: has joined #ruby
[00:55:11] Radar: It's a thing on my Ruby version?
[00:55:16] Radar: I guess it's a recent addition?
[00:55:29] Ox0dea: Aye, I specifically checked 1.9 there.
[00:55:32] Kyuujitsu: has joined #ruby
[00:55:46] gcfhvjbkn: has joined #ruby
[00:56:22] gcfhvjbkn: has joined #ruby
[00:56:23] Ox0dea: Wow, #to_h is 2.1.
[00:56:59] gcfhvjbkn: has joined #ruby
[00:57:39] gcfhvjbkn: has joined #ruby
[00:58:19] gcfhvjbkn: has joined #ruby
[00:58:55] gcfhvjbkn: has joined #ruby
[00:59:34] gcfhvjbkn: has joined #ruby
[00:59:49] bonhoeffer: has joined #ruby
[01:00:10] gcfhvjbkn: has joined #ruby
[01:00:39] Kyuujitsu: has joined #ruby
[01:00:43] paulcsmith: has joined #ruby
[01:00:48] gcfhvjbkn: has joined #ruby
[01:01:21] gcfhvjbkn: has joined #ruby
[01:01:31] Azure: has joined #ruby
[01:02:02] gcfhvjbkn: has joined #ruby
[01:02:05] MatthewsFace: has joined #ruby
[01:02:38] gcfhvjbkn: has joined #ruby
[01:03:57] gcfhvjbkn: has joined #ruby
[01:04:33] gcfhvjbkn: has joined #ruby
[01:05:13] gcfhvjbkn: has joined #ruby
[01:05:43] Kyuujitsu: has joined #ruby
[01:05:50] gcfhvjbkn: has joined #ruby
[01:05:54] linuxboytoo: has joined #ruby
[01:06:24] gcfhvjbkn: has joined #ruby
[01:07:04] gcfhvjbkn: has joined #ruby
[01:07:40] gcfhvjbkn: has joined #ruby
[01:08:16] theery: has joined #ruby
[01:08:20] gcfhvjbkn: has joined #ruby
[01:08:55] gcfhvjbkn: has joined #ruby
[01:09:08] Xoro: has joined #ruby
[01:09:26] Pupeno: has joined #ruby
[01:09:35] gcfhvjbkn: has joined #ruby
[01:09:58] jtdoncas: has joined #ruby
[01:10:06] Oog: has joined #ruby
[01:10:15] gcfhvjbkn: has joined #ruby
[01:10:50] gcfhvjbkn: has joined #ruby
[01:11:31] gcfhvjbkn: has joined #ruby
[01:12:06] gcfhvjbkn: has joined #ruby
[01:12:46] gcfhvjbkn: has joined #ruby
[01:13:20] tekk: has joined #ruby
[01:13:21] gcfhvjbkn: has joined #ruby
[01:13:48] willywos_: has joined #ruby
[01:14:00] gcfhvjbkn: has joined #ruby
[01:14:35] gcfhvjbkn: has joined #ruby
[01:14:39] charliesome: has joined #ruby
[01:14:46] bronson: has joined #ruby
[01:15:16] gcfhvjbkn: has joined #ruby
[01:15:25] Oog: has joined #ruby
[01:15:53] gcfhvjbkn: has joined #ruby
[01:15:54] kfpratt: has joined #ruby
[01:16:28] gcfhvjbkn: has joined #ruby
[01:16:55] Kyuujitsu: has joined #ruby
[01:17:05] gcfhvjbkn: has joined #ruby
[01:17:45] gcfhvjbkn: has joined #ruby
[01:17:48] s00pcan: has joined #ruby
[01:17:51] casadei_: has joined #ruby
[01:18:23] sysanthrope: has joined #ruby
[01:18:23] gcfhvjbkn: has joined #ruby
[01:18:32] ariedler: is there a method that is like def_delegator but for module methods?
[01:18:58] gcfhvjbkn: has joined #ruby
[01:19:38] gcfhvjbkn: has joined #ruby
[01:20:17] gcfhvjbkn: has joined #ruby
[01:20:53] gcfhvjbkn: has joined #ruby
[01:21:09] baweaver: has joined #ruby
[01:21:33] gcfhvjbkn: has joined #ruby
[01:22:00] Kyuujitsu: has joined #ruby
[01:22:08] gcfhvjbkn: has joined #ruby
[01:22:44] gcfhvjbkn: has joined #ruby
[01:23:24] gcfhvjbkn: has joined #ruby
[01:24:02] gcfhvjbkn: has joined #ruby
[01:24:40] gcfhvjbkn: has joined #ruby
[01:25:17] gcfhvjbkn: has joined #ruby
[01:25:57] gcfhvjbkn: has joined #ruby
[01:26:32] gcfhvjbkn: has joined #ruby
[01:27:07] Kyuujitsu: has joined #ruby
[01:27:12] gcfhvjbkn: has joined #ruby
[01:27:48] gcfhvjbkn: has joined #ruby
[01:27:55] weaksauce: has joined #ruby
[01:28:27] gcfhvjbkn: has joined #ruby
[01:29:06] gcfhvjbkn: has joined #ruby
[01:29:46] gcfhvjbkn: has joined #ruby
[01:30:20] gcfhvjbkn: has joined #ruby
[01:30:46] Ox0dea: ariedler: Do you know how to access a Module's singleton class?
[01:30:47] tsvenson: has joined #ruby
[01:30:59] gcfhvjbkn: has joined #ruby
[01:31:14] ariedler: yes; I was looking for SingleForwardable I think
[01:31:23] danielpclark: has joined #ruby
[01:31:35] gcfhvjbkn: has joined #ruby
[01:32:15] gcfhvjbkn: has joined #ruby
[01:32:49] gcfhvjbkn: has joined #ruby
[01:33:05] ariedler: I've been programming for 3+ years in ruby; but mainly rails... forgot some of the basics I think somewhere
[01:33:27] gcfhvjbkn: has joined #ruby
[01:33:53] Ox0dea: Well, I wouldn't call SingleForwardable "basic", per se.
[01:34:08] gcfhvjbkn: has joined #ruby
[01:34:13] Ox0dea: The implementation of #def_single_delegator is a little crazy.
[01:34:19] theery: has joined #ruby
[01:34:43] gcfhvjbkn: has joined #ruby
[01:35:22] gcfhvjbkn: has joined #ruby
[01:35:32] Ox0dea: Doing the `extend` and `def_delegator` from within your module's singleton class would work, and it's definitely saner than eval + manually mucking about with $@.
[01:35:41] curses: has joined #ruby
[01:35:58] gcfhvjbkn: has joined #ruby
[01:36:05] Scripore: has joined #ruby
[01:36:06] ariedler: right; which is why I used it, I knew about Forwardable; but I was like wait a second I think there is something for this.
[01:36:38] gcfhvjbkn: has joined #ruby
[01:37:18] gcfhvjbkn: has joined #ruby
[01:37:26] christiandsg: has joined #ruby
[01:37:44] Kyuujitsu: has joined #ruby
[01:37:54] gcfhvjbkn: has joined #ruby
[01:38:34] gcfhvjbkn: has joined #ruby
[01:39:08] gcfhvjbkn: has joined #ruby
[01:39:27] Musashi007: has joined #ruby
[01:39:49] gcfhvjbkn: has joined #ruby
[01:40:27] gcfhvjbkn: has joined #ruby
[01:40:38] minmax: has joined #ruby
[01:41:05] gcfhvjbkn: has joined #ruby
[01:41:39] gcfhvjbkn: has joined #ruby
[01:42:20] gcfhvjbkn: has joined #ruby
[01:42:46] Jello_Raptor: has joined #ruby
[01:42:48] Kyuujitsu: has joined #ruby
[01:42:57] gcfhvjbkn: has joined #ruby
[01:43:31] gcfhvjbkn: has joined #ruby
[01:44:10] gcfhvjbkn: has joined #ruby
[01:44:51] gcfhvjbkn: has joined #ruby
[01:45:08] jenrzzz: has joined #ruby
[01:45:27] gcfhvjbkn: has joined #ruby
[01:46:05] gcfhvjbkn: has joined #ruby
[01:46:40] gcfhvjbkn: has joined #ruby
[01:47:04] duderonomy: has joined #ruby
[01:47:21] gcfhvjbkn: has joined #ruby
[01:47:42] dfockler: has joined #ruby
[01:47:46] evo2020: has joined #ruby
[01:47:57] gcfhvjbkn: has joined #ruby
[01:48:32] gcfhvjbkn: has joined #ruby
[01:48:37] shevy: this is how I intend to write ruby code henceforthwith: http://blog.codinghorror.com/content/images/2015/07/364_placebo_effective.png
[01:48:57] Coraline: Works for me
[01:49:08] Coraline: alert('Called');
[01:49:12] gcfhvjbkn: has joined #ruby
[01:49:25] Kyuujitsu: has joined #ruby
[01:49:39] evo2020: has someone ever done a select for Ruby hash when you want to get the keys with Multiple values?
[01:49:49] Ox0dea: evo2020: Please clarify.
[01:49:51] gcfhvjbkn: has joined #ruby
[01:50:20] evo2020: This should work but throws error:
[01:50:29] gcfhvjbkn: has joined #ruby
[01:50:56] cornerma1: has joined #ruby
[01:51:03] gcfhvjbkn: has joined #ruby
[01:51:15] evo2020: def get_value_positions
[01:51:15] evo2020: @squares.select {|keys | @squares[keys] == "X" || @square[keys] == "O"}.keys
[01:51:34] Ox0dea: shevy: https://github.com/neovim/neovim/blob/master/runtime/doc/autocmd.txt#L906
[01:51:40] gcfhvjbkn: has joined #ruby
[01:52:00] evo2020: values should be strings "X" or "O". Can't find anything close on stack overflow
[01:52:06] shevy: hah, vim... I remember that from when I first used Linux
[01:52:12] Ox0dea: evo2020: You should probably be using an Array to represent a tic-tac-toe board, for what that's worth.
[01:52:21] gcfhvjbkn: has joined #ruby
[01:52:31] evo2020: a hash is easier for this.
[01:52:36] loc22: has joined #ruby
[01:52:36] theery: has joined #ruby
[01:52:50] evo2020: why is the syntax wrong?
[01:52:57] gcfhvjbkn: has joined #ruby
[01:53:11] evo2020: It works with just one value request
[01:53:24] evo2020: the OR operator is not right?
[01:53:39] gcfhvjbkn: has joined #ruby
[01:54:11] shevy: Ox0dea, do you also abandon your ruby side projects? https://codelympics.io/blog/why-do-side-projects-die?utm_source=reddit&utm_medium=forum&utm_campaign=why_blog_post_r_programming
[01:54:14] gcfhvjbkn: has joined #ruby
[01:54:52] gcfhvjbkn: has joined #ruby
[01:54:56] Kyuujitsu: has joined #ruby
[01:54:58] shevy: evo2020 do you have full code to reproduce?
[01:55:08] Ox0dea: evo2020: @squares.select { |k, v| %w[X O].include? v }.keys
[01:55:19] jesseherrick: has joined #ruby
[01:55:21] shevy: he inverted the query :)
[01:55:28] gcfhvjbkn: has joined #ruby
[01:55:32] Radar: +b gcfhvjbkn!*@*
[01:55:33] evo2020: 0x0dea: what is that?
[01:55:46] evo2020: let me check
[01:56:02] shevy: evo2020 he just checks if the array includes the value
[01:56:12] shevy: the array being 'X' and 'O' as its members
[01:56:31] davedev24: has joined #ruby
[01:56:38] evo2020: into a hash? hmmm.
[01:57:48] mrmargolis: has joined #ruby
[01:58:04] Ox0dea: evo2020: Hash#select yields each key-value pair to the block, returning a new Hash whose elements satisfy the predicate specified by the block.
[01:58:06] shevy: well I assume @squares is the hash there
[01:58:17] shevy: so he just selects based on the condition inside the {}
[01:58:37] bruno-: has joined #ruby
[01:58:39] shevy: either it is included - or it is not. black white. yin yang. drunk sober. thin fat.
[01:59:16] IceyEC: has joined #ruby
[01:59:41] bonhoeffer: has joined #ruby
[02:00:00] tmtwd: has joined #ruby
[02:00:03] Kyuujitsu: has joined #ruby
[02:00:36] Ox0dea: shevy: The Bloom filter would like a word with you.
[02:01:26] tubuliferous: has joined #ruby
[02:02:03] evo2020: OxOdea: yes I can see that. I am checking one item
[02:02:49] EminenceHC: has joined #ruby
[02:03:41] evo2020: Perfect. Absolutely spot on. I had a typo in my code
[02:03:43] freerobby: has joined #ruby
[02:03:47] bazbing81: can I use the the preceeding \K group negatively? Can I match the bar inside |faxbar funbar bobar and bar| and omit the bar inside |foobar fobar foooooobar|? https://regex101.com/r/qR9kD4/3
[02:04:00] bazbing81: basically invert my current matches. hoping I just need to a ! or something :)
[02:04:10] evo2020: OxOdea: Thank u. Was on that for 30 mins
[02:04:30] linuxboytoo: has joined #ruby
[02:04:37] Ox0dea: evo2020: Happy to help.
[02:04:42] evo2020: shevy: U too.
[02:04:49] Ox0dea: bazbing81: So many bars.
[02:04:55] evo2020: U guys are a life-saver.
[02:05:10] Kyuujitsu: has joined #ruby
[02:05:11] evo2020: and a hair-saver too. LOL
[02:05:17] shevy: I save hair for later in life
[02:05:28] bazbing81: Ox0dea indeed. im banned from them all :(
[02:05:49] evo2020: shevy: LOL
[02:05:56] evo2020: k. back to ruby land
[02:06:16] decaff: has joined #ruby
[02:06:28] evo2020: I really have to learn to use those %w. U guys are so slick with it!
[02:06:57] evo2020: bye for now!
[02:07:01] juanpablo_: has joined #ruby
[02:07:26] bootstrappm: has left #ruby: ()
[02:07:31] arescorpio: has joined #ruby
[02:08:07] tkuchiki: has joined #ruby
[02:08:46] havenwood: has joined #ruby
[02:10:45] Kyuujitsu: has joined #ruby
[02:12:16] user1138: has joined #ruby
[02:12:58] jake_the_snake: has joined #ruby
[02:13:03] ValicekB: has joined #ruby
[02:13:26] jake_the_snake: I was hoping someone could explain how this is a thread safety problem: https://github.com/rails/rails/pull/9789
[02:13:53] jake_the_snake: Seems like it's saying that instance variables are shared cross-thread?
[02:14:00] user1138: has joined #ruby
[02:14:15] jake_the_snake: or maybe that it's saying the Application instance is shared across rails threads?
[02:14:33] GriffinHeart: has joined #ruby
[02:14:35] jake_the_snake: (ie in scope at the time the threads are created)
[02:15:41] jake_the_snake: (or stored in a shared place, accessible across threads)
[02:15:47] Kyuujitsu: has joined #ruby
[02:18:20] Frem: has joined #ruby
[02:19:18] rubynuby: has joined #ruby
[02:20:36] arescorpio: has joined #ruby
[02:20:55] Kyuujitsu: has joined #ruby
[02:23:12] Ox0dea: bazbing81: Are you actually trying to implement Proc#source using regular expressions, then?
[02:23:58] HoppingMadMan: has joined #ruby
[02:24:23] fedexo: has joined #ruby
[02:27:40] swgillespie: has joined #ruby
[02:28:06] HoppingMadMan: has joined #ruby
[02:29:05] RegulationD: has joined #ruby
[02:29:22] jenrzzz: has joined #ruby
[02:30:10] olas: has joined #ruby
[02:31:10] Kyuujitsu: has joined #ruby
[02:35:58] tmtwd: has joined #ruby
[02:36:41] Kyuujitsu: has joined #ruby
[02:36:58] shock_one: has joined #ruby
[02:36:59] _blizzy_: has joined #ruby
[02:37:14] HoppingMadMan: has joined #ruby
[02:38:10] GriffinHeart: has joined #ruby
[02:39:10] jtdoncas: has joined #ruby
[02:41:45] aaeron: has joined #ruby
[02:42:20] Kyuujitsu: has joined #ruby
[02:44:08] Scripore: has joined #ruby
[02:44:44] _blizzy_: has joined #ruby
[02:46:00] Oog: has joined #ruby
[02:49:24] marcoamo1: has joined #ruby
[02:49:49] jtdoncas: has left #ruby: ()
[02:50:59] _seanc_: has joined #ruby
[02:51:30] aaeron1: has joined #ruby
[02:51:55] lannonbr: question, can you call #class on an object and change that value into a string?
[02:52:53] lannonbr: Never mind, I got it
[02:53:50] Ox0dea: >> [Class.new.name, Class.new.to_s] # lannonbr: Something to bear in mind, perhaps.
[02:53:51] ruboto: Ox0dea # => [nil, "#<Class:0x4171410c>"] (https://eval.in/409293)
[02:53:58] Kyuujitsu: has joined #ruby
[02:54:38] lannonbr: Hmm, I did foo.class.inspect and got the same result
[02:54:39] jenrzzz: has joined #ruby
[02:55:01] lannonbr: now that only does what I want since I haven't overridden the inspect method
[02:56:09] danielpclark: has joined #ruby
[02:59:06] Ox0dea: lannonbr: Yes, that's right. Class#name is almost certainly the method you want, but, as it demonstrated, it returns nil for "weird" classes.
[02:59:47] lannonbr: Okay, Thanks Ox0dea
[03:00:16] decaff: has joined #ruby
[03:00:29] rsc___: has joined #ruby
[03:01:06] willharrison: has joined #ruby
[03:01:54] Eiam_: has joined #ruby
[03:01:57] bmurt: has joined #ruby
[03:02:09] theery: has joined #ruby
[03:02:25] Vile`: has joined #ruby
[03:02:29] darkf: has joined #ruby
[03:02:56] michael_mbp: has joined #ruby
[03:03:46] Ox0dea: lannonbr: Happy to help.
[03:03:54] sevenseacat: has joined #ruby
[03:03:58] Ox0dea: >> [(x = Class.new).name, (X = Class.new).name] # One more potential gotcha.
[03:03:59] ruboto: Ox0dea # => [nil, "X"] (https://eval.in/409297)
[03:04:11] Kyuujitsu: has joined #ruby
[03:04:20] charliesome: has joined #ruby
[03:04:40] lannonbr: is there a thing to do with constants that causes that?
[03:05:52] ducklobster: has joined #ruby
[03:07:14] Ox0dea: That's exactly it.
[03:07:46] juanpablo_: has joined #ruby
[03:08:32] wldcordeiro_: has joined #ruby
[03:09:15] Kyuujitsu: has joined #ruby
[03:10:44] triangles: has joined #ruby
[03:10:45] braincrash: has joined #ruby
[03:14:08] dimasg: has joined #ruby
[03:14:21] Kyuujitsu: has joined #ruby
[03:18:38] Oog: has joined #ruby
[03:19:42] hahuang61: has joined #ruby
[03:19:57] Kyuujitsu: has joined #ruby
[03:21:08] elton: hi does any one know how I can use a class something equivalent to java
[03:21:35] elton: i mean use a static class
[03:21:48] Phrogz2: has joined #ruby
[03:22:06] Phrogz_: has joined #ruby
[03:22:06] jenrzzz: has joined #ruby
[03:22:09] Ox0dea: elton: Ruby's "open classes" philosophy pervades the language.
[03:22:53] Ox0dea: elton: I suppose you could try freezing the class.
[03:22:59] elton: like list = ApiCaller.getNames
[03:23:11] Phrogz: I want to create a utility application that communicates with others over the network. I want your opinions: (a) HTTP or sockets? (b) What framework(s) to use?
[03:23:13] elton: instead of @ApiCaller.new.getNames
[03:23:46] Ox0dea: elton: The term you're looking for is "class method".
[03:23:53] Phrogz: For testing, I need to be able to launch this application with a variety of different command-line parameters used to configure its behavior.
[03:24:22] Ox0dea: >> class Foo; def self.bar; 42 end end; Foo.bar # elton
[03:24:24] ruboto: Ox0dea # => 42 (https://eval.in/409326)
[03:24:40] curses: has joined #ruby
[03:24:48] Phrogz: I was going to use Sinatra for HTTP communication, but I normally run Sinatra behind Thin, and that does not allow me to command-line configure the launch.
[03:25:10] elton: ok ill look into class method
[03:25:32] cscheib: has joined #ruby
[03:25:40] mleung: has joined #ruby
[03:26:08] christiandsg: has joined #ruby
[03:28:15] elton: Ox0dea i see, class methods are the thing i was looking for
[03:29:15] cscheib: do y'all use any particular gems to simplify abstracting configuration variables for a script/app to another file? Or do you just write your own code to parse a file?
[03:29:39] cscheib: i.e. user/password/servername for a script that hits an API - I don't want those in my code
[03:30:09] Kyuujitsu: has joined #ruby
[03:30:13] Ox0dea: cscheib: You want those to come from the environment, but you shouldn't have to do any considerable amount of parsing in that case.
[03:31:07] cscheib: so, env variables or command line flags rather than a config file?
[03:31:56] mleung: has joined #ruby
[03:31:58] cscheib: I don't do a lot of coding (intentionally avoided it in fact), but I've finally gotta give in and dive in... starting with a simple report from an API for one of my storage devices
[03:32:08] cscheib: so excuse the "stupid" questions
[03:32:10] blue_deref: has joined #ruby
[03:33:54] sevenseacat: has joined #ruby
[03:35:43] Kyuujitsu: has joined #ruby
[03:35:48] Averna: has joined #ruby
[03:35:52] hahuang61: has joined #ruby
[03:36:22] bklane: has joined #ruby
[03:39:44] code1o6: has joined #ruby
[03:39:56] nini1294: has joined #ruby
[03:40:41] gix: has joined #ruby
[03:40:50] Kyuujitsu: has joined #ruby
[03:40:54] Phrogz: I just include plaintext username and password in my code. Because...fuckit
[03:41:16] Phrogz: Well???I Rot13 and reverse and swapcase on the password. Because that makes it safe.
[03:41:33] cscheib: configlieri looks like an interesting gem.
[03:41:39] cscheib: and probably does what I want
[03:41:43] Phrogz: It's got a good name.
[03:41:45] Phrogz: I'd trust it.
[03:42:30] djbkd: has joined #ruby
[03:43:21] djbkd: has joined #ruby
[03:44:26] shakes: has joined #ruby
[03:46:07] bronson: has joined #ruby
[03:46:23] Kyuujitsu: has joined #ruby
[03:46:33] mary5030: has joined #ruby
[03:47:25] Inside: has joined #ruby
[03:47:25] Inside: has joined #ruby
[03:49:36] tubuliferous: has joined #ruby
[03:49:59] evo2020: has joined #ruby
[03:51:19] bklane: has joined #ruby
[03:51:31] Kyuujitsu: has joined #ruby
[03:53:21] petersaints: has joined #ruby
[03:56:24] _5moufl: has joined #ruby
[03:56:35] Kyuujitsu: has joined #ruby
[03:58:38] hahuang61: has joined #ruby
[03:58:46] bklane: has joined #ruby
[03:59:38] Averna: has joined #ruby
[04:00:02] stnly: has joined #ruby
[04:00:40] theery: has joined #ruby
[04:00:58] Radar: cscheib: Why do you need a gem for this?
[04:01:02] Radar: cscheib: Why not store it in ENV[]?
[04:01:13] Radar: ENV['YOURTHING_USERNAME']
[04:01:16] astrobun_: has joined #ruby
[04:01:20] rehat: has joined #ruby
[04:01:26] Radar: Alternatively, .yaml files are good for that sort of thing too.
[04:01:41] Kyuujitsu: has joined #ruby
[04:01:44] svf: has joined #ruby
[04:05:33] GriffinHeart: has joined #ruby
[04:06:21] HoppingMadMan: has joined #ruby
[04:06:45] Kyuujitsu: has joined #ruby
[04:07:22] chipotle: has joined #ruby
[04:07:24] texasmade: has joined #ruby
[04:09:23] swgillespie: has joined #ruby
[04:10:40] chipotle_: has joined #ruby
[04:11:39] swgillespie: has joined #ruby
[04:12:20] Kyuujitsu: has joined #ruby
[04:12:30] mdavid613: has joined #ruby
[04:13:23] swgillespie: has joined #ruby
[04:13:28] evo2020: does anyone know the ruby splat operator really well?
[04:14:03] evo2020: I am trying to map an array of arrays to winning method and it keeps blowing up
[04:15:06] elton: has joined #ruby
[04:15:32] danielpclark: Have you tried the flatten method?
[04:15:39] eggoez: has joined #ruby
[04:15:51] hahuang61: has joined #ruby
[04:16:32] danielpclark: Have a gist of an example?
[04:17:08] houhoulis: has joined #ruby
[04:17:18] Radar: evo2020: no code == no help
[04:17:54] Kyuujitsu: has joined #ruby
[04:20:28] Mockra: has joined #ruby
[04:20:28] ohaibbq: has joined #ruby
[04:22:00] tuelz1: has joined #ruby
[04:22:03] rehat: anyone use Sublime Text? How do you auto indent your ruby code.
[04:22:29] bnagy: there's a beautify ruby plugin which isn't terrible
[04:23:10] sevenseacat: it does it by default? or i press tab while typing if i need it?
[04:23:36] Ox0dea: evo2020: I assume you already have an array of arrays containing cell indices to map to winning Tic-Tac-Toe positions?
[04:24:12] Ox0dea: evo2020: [[0, 1, 2], [0, 3, 6], [0, 4, 8], ...], right?
[04:24:32] mozzarella: Ox0dea: well, there's the vintage mode???
[04:24:32] evo2020: 0x0dea: yes it is my rubicon
[04:24:40] Ox0dea: evo2020: Pardon?
[04:24:59] evo2020: I have a board object
[04:25:18] Ox0dea: evo2020: What is the content of the array of arrays you mentioned earlier?
[04:25:29] evo2020: In pry it displays like so
[04:25:54] evo2020: #<Board:0x00000002819e38
[04:25:54] evo2020: {1=>" ", 2=>" ", 3=>" ", 4=>" ", 5=>"X", 6=>" ", 7=>" ", 8=>" ", 9=>" "}>
[04:26:02] Ox0dea: That's not an array of arrays.
[04:26:02] evo2020: It is first an object
[04:26:03] wldcordeiro_: has joined #ruby
[04:26:13] evo2020: that holds a hash
[04:26:34] evo2020: The array of arrays is the winning lines
[04:26:44] Ox0dea: evo2020: As in the example I supplied?
[04:26:56] evo2020: yes! Exactly
[04:27:08] Ox0dea: You can determine the winning method based on the difference between cells.
[04:27:19] Ox0dea: 1 = horizontal, 3 = vertical, 2/4 = diagonal.
[04:28:10] evo2020: but i am trying to check the game board against the winning lines
[04:28:16] markholmes: has joined #ruby
[04:28:54] HoppingMadMan: has joined #ruby
[04:29:06] JCOE: has joined #ruby
[04:29:06] Ox0dea: >> '222_222_222'.to_i(3).to_s(2).size
[04:29:07] ruboto: Ox0dea # => 15 (https://eval.in/409356)
[04:29:08] evo2020: then jump out if it doesn't match and continue game
[04:29:10] markholmes: has left #ruby: ()
[04:29:18] Ox0dea: You can represent the state of a tic-tac-toe board using a single 15-bit number.
[04:29:21] Ox0dea: You should totally try it. :)
[04:30:06] evo2020: is there a link for that?
[04:30:16] Ox0dea: For doing bitwise arithmetic?
[04:30:23] evo2020: lol. I'm listening
[04:30:37] evo2020: bitwise arithmetic. k
[04:31:09] wldcordeiro_: has joined #ruby
[04:31:12] Ox0dea: There's been virtually no research into doing mathematics at the levl of bits, I'm afraid. :/
[04:31:23] Ox0dea: It's rather esoteric territory. Esoterritory, if you will.
[04:31:50] evo2020: 0x0dea: I figured Esoterritory
[04:31:58] Ox0dea: You'll have to search far and wide to learn of such mysteryies as AND and XOR.
[04:32:10] evo2020: I got that
[04:32:11] HoppingMadMan: has joined #ruby
[04:32:41] evo2020: did that in science class
[04:33:03] astrobun_: has joined #ruby
[04:33:11] evo2020: I previously used the splat operator to map game board. It worked.
[04:33:26] evo2020: Just now that I am doing OOP, it's another universe.
[04:33:37] werelivinginthef: has joined #ruby
[04:34:29] bnagy: dammit now I am totally nerdsniped
[04:34:48] rehat: is there a way to not return an object in a method?
[04:35:06] rehat: does calling return still return nil?
[04:35:40] Ox0dea: bnagy: Excellent. :)
[04:35:44] Ox0dea: It's a little tricky, but only just.
[04:35:47] bnagy: it seems like a 15 bit encoding isn't particularly useful
[04:35:59] bnagy: if you did 18 then a lot of twiddles are easy
[04:36:01] Ox0dea: It's not, but it's the most space-efficient, if nothing else.
[04:36:14] rehat: so I would need to check for a nil return type if I am using << to add objects to an array or will it ignore adding a nil itme?
[04:36:25] rbowlby: has joined #ruby
[04:36:26] Ox0dea: rehat: No, it will add the nil.
[04:36:42] rehat: Ox0dea: thanks
[04:36:43] Ox0dea: That is, yes, you'd need to check for nil.
[04:36:46] Ox0dea: Sure thing.
[04:37:07] Ox0dea: evo2020: Something like this oughta do: https://gist.github.com/0x0dea/d63dea3a26586e014ad5
[04:37:44] bnagy: >> 3**9 == '222_222_222'.to_i(3)
[04:37:45] ruboto: bnagy # => false (https://eval.in/409364)
[04:37:51] Ox0dea: evo2020: Erm, you'll want to add a check that the unique value isn't the blank square, though.
[04:38:00] bnagy: amusing off by ones
[04:38:14] Kyuujitsu: has joined #ruby
[04:38:51] wldcordeiro_: has joined #ruby
[04:39:13] Ox0dea: >> 2**1 == '1'.to_i(2) # Math are hard. :P
[04:39:14] ruboto: Ox0dea # => false (https://eval.in/409365)
[04:39:58] Ox0dea: Standing by.
[04:40:39] rehat: if I want to make some methods private do I need to place the 'private' call at the end of the class def
[04:41:04] Ox0dea: rehat: `private` is actually just a regular Ruby method.
[04:41:22] bnagy: rehat: commonly you just have 'private' on one line the private methods from there until end of class body
[04:41:52] rehat: ahh thanks
[04:41:58] Ox0dea: rehat: Given 1+ arguments, #private modifies the visibility of each; given 0, it changes the default visibility of subsequently defined methods.
[04:42:18] Ox0dea: The same is true, of course, of #public and #protected.
[04:42:53] rehat: I was looking at this http://stackoverflow.com/questions/10724221/where-to-place-private-methods-in-ruby so I can just declare private and all the methods defined below that
[04:43:18] Kyuujitsu: has joined #ruby
[04:43:45] keen__________33: has joined #ruby
[04:43:51] Ox0dea: Yes, that's the conventional approach.
[04:43:56] wldcordeiro_: has joined #ruby
[04:43:58] jenrzzz: has joined #ruby
[04:44:16] mxrguspxrt: has joined #ruby
[04:44:38] Ox0dea: If you wanted to add another public method, you could do it before the call to #private, or you could add a line containing just "public" after the private methods to introduce a new default visibility.
[04:44:57] Ox0dea: The latter is to be shunned with utmost enmity.
[04:45:07] duderonomy: has joined #ruby
[04:45:15] rehat: Ox0dea: lol thanks
[04:45:16] mxrguspxrt: has joined #ruby
[04:46:35] bnagy: if you had two nine bit vectors you can check for invalid board state with a&b > 0 and then have masks for all the wins
[04:46:54] evo2020: 0x0dea: Would you translate { |i| @squares[i] }.uniq.size == 1 }
[04:47:29] evo2020: I think it means map the wins array to @squres object such that
[04:47:50] kriskropd: has joined #ruby
[04:47:56] troyready: has joined #ruby
[04:48:25] Kyuujitsu: has joined #ruby
[04:48:26] bnagy: I guess they're not even masks, just comparisons
[04:48:55] evo2020: each @squares position only matches up once to each position in one array of arrays
[04:48:57] wldcordeiro_: has joined #ruby
[04:48:58] bnagy: 8 per vector
[04:49:22] bnagy: evo2020: I am not even vaguely in the same headspace as you, I am doing awful bit twiddling
[04:49:39] bnagy: ie I am not actually trying to help, sorry :\
[04:50:23] Ox0dea: rehat: Happy to help. One last thing to note is that the method visibility methods expect a Symbol, which is just the kind of value we get from method definition expressions in Ruby 2.0+.
[04:50:26] Ox0dea: >> class Foo; private def bar; end end; Foo.private_instance_methods(false)
[04:50:27] ruboto: Ox0dea # => [:bar] (https://eval.in/409372)
[04:50:44] konsolebox: has joined #ruby
[04:50:46] Ox0dea: You probably should forget this knowledge too, though. :)
[04:50:50] bnagy: now I am trying to work out how to take an "almost win" and get a winning move via twiddles
[04:51:38] evo2020: 0x0dea: I'm not sure how to implement until i understand it more
[04:51:52] bnagy: I guess you could & your board with each of the wins and count bits set in the result
[04:51:57] rehat: thanks dude
[04:52:35] bnagy: https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan
[04:52:47] Ox0dea: evo2020: No, that's not quite right. It maps each position to what is found there in @squares; if calling #uniq on that gives a single element, we know all three board cells matched.
[04:53:00] bl4ckdu5t: has joined #ruby
[04:53:21] Ox0dea: As I said, the simplistic approach presented doesn't take into account that three empty cells would "match".
[04:53:31] Kyuujitsu: has joined #ruby
[04:53:39] evo2020: they don't
[04:54:02] Sapna: has joined #ruby
[04:54:20] axisys: has joined #ruby
[04:54:23] Ox0dea: bnagy: Do you even __builtin_popcount?
[04:54:40] evo2020: without understanding all the syntax!
[04:54:42] rsc___: has joined #ruby
[04:56:28] bmurt: has joined #ruby
[04:56:32] juanpablo_: has joined #ruby
[04:57:33] bnagy: I guess irl you only need 'take the center' and 'stop opponent from winning', but that still needs 'find their winning move'
[04:57:33] Sapna1: has joined #ruby
[04:57:47] Ox0dea: >> require 'objspace'; board = (1..9).zip([' '].cycle).to_h; [ObjectSpace.memsize_of(board), 19683.bit_length] # evo2020
[04:57:48] ruboto: Ox0dea # => [324, 15] (https://eval.in/409374)
[04:58:23] pabloh: has joined #ruby
[04:58:37] skade: has joined #ruby
[04:58:40] Ox0dea: You could achieve a 2,160% reduction in memory requirements!
[04:58:57] Ox0dea: And that doubles in a 64-bit environment.
[04:59:06] Kyuujitsu: has joined #ruby
[04:59:16] Ox0dea: bnagy: Did you settle for an 18-bit encoding, then?
[04:59:31] bnagy: I think so
[04:59:43] icebourg: has joined #ruby
[05:00:10] christiandsg: has joined #ruby
[05:00:37] bnagy: that would make 'find winning move' an and of the player vector with all win numbers, select those with bitcount 2, select those where the last bit is open
[05:00:48] pabloh: anyone can suggest a simple gem to keep track of subclasses for specific classes?
[05:01:31] bnagy: can't immediately think of a clean way to do 'last bit is open' though
[05:03:05] theery: has joined #ruby
[05:03:19] bnagy: oh, invert the win, mask those bits out of your board, then xor what's left with the win
[05:03:31] bnagy: then check that bit against the opponents board
[05:04:04] Ox0dea: evo2020: Whoops. memsize_of is in bytes, so multiply that yield by 8.
[05:04:11] Kyuujitsu: has joined #ruby
[05:05:13] Ox0dea: pabloh: Why would you need a gem for that when you can just use Class#inherited?
[05:05:54] Ox0dea: >> $in = []; class Foo; def self.inherited klass; $in << klass end end; class A < Foo; end; B = Class.new(Foo); $in
[05:05:55] ruboto: Ox0dea # => [A, B] (https://eval.in/409379)
[05:06:15] arooni: has joined #ruby
[05:06:48] bnagy: actually there are only 8 wins, so I guess you could just keep win and inverted-win in the same number at different ends
[05:06:53] crdpink: has joined #ruby
[05:07:01] Ox0dea: 16, technically.
[05:07:21] bnagy: yeah, but I'm just using patterns
[05:07:28] mary5030: has joined #ruby
[05:07:33] bnagy: because I have two boards
[05:08:20] Mockra: has joined #ruby
[05:08:56] fedexo: has joined #ruby
[05:09:11] evo2020: 0x0dea: Did u mean me re 'memsize_of is in bytes' ?
[05:09:14] Kyuujitsu: has joined #ruby
[05:09:22] willywos: has joined #ruby
[05:10:04] evo2020: what are u optimizing? Gameplay time?
[05:10:07] bnagy: I think you could do the whole thing in registers
[05:10:15] Ox0dea: evo2020: Memory requirements.
[05:10:31] evo2020: bec game is slow to start?
[05:10:38] Ox0dea: No, because frivolity.
[05:10:45] bnagy: hm might not have enough
[05:11:12] Ox0dea: bnagy: Doesn't x86-64 give you, like, 200-ish?
[05:11:24] Guest32: has joined #ruby
[05:11:36] bnagy: well I guess with 64 bit registers you're fine anyway
[05:11:48] bnagy: because you can load two things into each
[05:12:11] bnagy: I think I only need 8 win-pos dword and 2 board dwords
[05:12:58] bnagy: which also means you can use register addressing to get your sub-values instead of shifting :>
[05:13:24] werelivinginthef: has joined #ruby
[05:13:49] iateadonut: has joined #ruby
[05:14:00] jenrzzz: has joined #ruby
[05:14:06] bnagy: oh the boards are one dword not two. Golden.
[05:14:20] Kyuujitsu: has joined #ruby
[05:14:45] bnagy: ok I guess I should go and actually do work :<
[05:17:09] rickmasta: has joined #ruby
[05:17:25] pabloh: Ox0dea, yeah I end up using that
[05:17:52] pabloh: actually I wanted to track descendants initially para subclasses are enough
[05:17:56] mary5030: has joined #ruby
[05:18:01] pabloh: s/para/but/
[05:18:03] krz: has joined #ruby
[05:18:16] Ox0dea: pabloh: Those are the same thing?
[05:18:33] pabloh: subclasses and descendants?, no
[05:18:53] pabloh: immediate subclasses != descendants :P
[05:19:27] Kyuujitsu: has joined #ruby
[05:20:53] lele`: has joined #ruby
[05:20:56] Ox0dea: pabloh: I'm not sure I follow. In my example, is it not the case that A and B are subclasses/descendants of Foo?
[05:21:58] Ox0dea: < is the "subclass operator", and A.ancestors would include Foo.
[05:22:05] leat1: has joined #ruby
[05:22:16] Sapna: has joined #ruby
[05:22:48] tuelz1: has joined #ruby
[05:23:37] lele: has joined #ruby
[05:24:04] Encapsulation: has joined #ruby
[05:25:00] Kyuujitsu: has joined #ruby
[05:27:02] Ox0dea: pabloh: Right, sorry, I see the distinction now. ActiveSupport adds Class#subclasses and Class#descendants if you're still looking for a gem.
[05:28:03] Guest26862: has joined #ruby
[05:28:51] bklane_: has joined #ruby
[05:29:07] fedexo: has joined #ruby
[05:30:07] Kyuujitsu: has joined #ruby
[05:30:25] shortCircuit__: has joined #ruby
[05:30:31] shock_one: has joined #ruby
[05:30:49] mrmargolis: has joined #ruby
[05:31:06] shock_one: has joined #ruby
[05:31:41] christiandsg: has joined #ruby
[05:32:19] leat1: has joined #ruby
[05:33:31] troyready: has joined #ruby
[05:33:34] yfeldblum: has joined #ruby
[05:35:44] Kyuujitsu: has joined #ruby
[05:37:27] tagrudev: has joined #ruby
[05:37:45] tubuliferous: has joined #ruby
[05:38:02] casadei_: has joined #ruby
[05:38:05] tkuchiki: has joined #ruby
[05:38:13] kp666: has joined #ruby
[05:38:50] kp666: has joined #ruby
[05:40:08] theery: has joined #ruby
[05:40:15] Guest95121: has joined #ruby
[05:41:53] JoshuaPaling: has joined #ruby
[05:42:34] charliesome: has joined #ruby
[05:42:35] leat1: has joined #ruby
[05:43:36] Sapna: has joined #ruby
[05:44:54] theery: has joined #ruby
[05:45:05] yfeldblum: has joined #ruby
[05:46:17] dvb_ua: has joined #ruby
[05:47:01] TeresaP: has joined #ruby
[05:48:51] SOLDIERz: has joined #ruby
[05:48:53] Kyuujitsu: has joined #ruby
[05:52:54] olistik: has joined #ruby
[05:53:23] nofxx: has joined #ruby
[05:54:19] theery: has joined #ruby
[05:54:29] Kyuujitsu: has joined #ruby
[05:54:33] rickmasta: has joined #ruby
[05:56:25] yfeldblum: has joined #ruby
[05:59:57] shock_one: has joined #ruby
[06:00:06] Kyuujitsu: has joined #ruby
[06:00:21] RobertBirnie: has joined #ruby
[06:01:36] HoppingMadMan: has joined #ruby
[06:01:54] Channel6: has joined #ruby
[06:02:04] yfeldblum: has joined #ruby
[06:03:02] TeresaP: Sorry for the probably obvious answer this question begs, but I can't figure out how to add an item with a particular format to an existing Hash http://pastie.org/private/drfcui7wyfsewsxmxlfeq
[06:04:01] shock_one: has joined #ruby
[06:04:17] nini1294: has joined #ruby
[06:05:26] Ox0dea: TeresaP: Unless I'm missing something, Hash#merge should suffice.
[06:05:28] Ox0dea: >> a = {a: 1, b: 2}; b = {c: 3, d: 4}; a.merge(b)
[06:05:29] ruboto: Ox0dea # => {:a=>1, :b=>2, :c=>3, :d=>4} (https://eval.in/409410)
[06:05:48] kakusu: has joined #ruby
[06:07:01] TeresaP: I've got the first part in an object, which I read in from JSON, but I'm being stupid about the second part.
[06:07:36] TeresaP: That's good to know abut merge
[06:08:29] TeresaP: I've been programming for quite a few years now, but never had the opportunity to create/use hashes until recently
[06:08:32] rickmasta: has joined #ruby
[06:08:37] TeresaP: For some reason they still trip me up
[06:09:47] blaines: has joined #ruby
[06:10:16] Kyuujitsu: has joined #ruby
[06:11:44] christiandsg: has joined #ruby
[06:12:12] Sapna: has joined #ruby
[06:13:54] Ox0dea: TeresaP: Thinking of them as "maps" or "dictionaries" may provide the necessary insight.
[06:14:14] rickmasta: has joined #ruby
[06:14:27] jas02: has joined #ruby
[06:14:32] vdamewood: has joined #ruby
[06:14:42] Rinzlit: Ox0dea thats interesting O_o
[06:14:45] CloCkWeRX: has left #ruby: ()
[06:14:46] Ox0dea: With a dictionary, you have the key (a word), and you can query the dictionary for a value (the word's definition).
[06:15:22] Kyuujitsu: has joined #ruby
[06:16:10] tvw: has joined #ruby
[06:16:51] blaines: has joined #ruby
[06:17:12] Ox0dea: Sure, you could have two arrays, one contaning all the words and the other all the definitions, and then you could find the definition by asking for the nth element, where n is derived from the word's position in the word array, but that's tiresome and inefficient.
[06:17:14] Miphix: has joined #ruby
[06:17:24] Marina91: has joined #ruby
[06:17:43] Ox0dea: I suppose you could also just have a bunch of variables named along the lines of `definition_of_whizz` and `definition_of_bang`, but that would be insane.
[06:19:10] Ox0dea: TeresaP: If you're only looking to add a single key-value pair to your Hash, `hash[foo] = bar` would do. Ruby's Hashes are mutable; you can just keep stuffing values in.
[06:19:10] tkuchiki: has joined #ruby
[06:20:03] TeresaP: I'll try that Ox0dea
[06:20:10] TeresaP: I was trying to do
[06:20:15] eGGsha: has joined #ruby
[06:20:20] TeresaP: blah = {"foo" => ["bar"]}
[06:20:24] TeresaP: or some such crazy stuff
[06:20:50] Ox0dea: Well, that would create a new Hash which you could #merge into the main one, but that's excessive if you're just adding the one.
[06:20:57] Kyuujitsu: has joined #ruby
[06:21:28] TeresaP: yes just the one
[06:23:32] tuelz1: has joined #ruby
[06:23:42] TeresaP: I made that way too hard
[06:26:07] Kyuujitsu: has joined #ruby
[06:28:26] michael_mbp: has joined #ruby
[06:30:25] RegulationD: has joined #ruby
[06:30:47] Sapna: has joined #ruby
[06:31:11] Kyuujitsu: has joined #ruby
[06:31:12] TvL2386: has joined #ruby
[06:32:26] woodruffw: has joined #ruby
[06:32:39] ReBoRN: has joined #ruby
[06:33:35] blaines: has joined #ruby
[06:34:50] ips|malc: has joined #ruby
[06:35:56] andikr: has joined #ruby
[06:40:25] Kyuujitsu: has joined #ruby
[06:40:26] Phrogz: has joined #ruby
[06:41:03] Asher: has joined #ruby
[06:43:24] GriffinHeart: has joined #ruby
[06:44:25] ponga: has joined #ruby
[06:44:31] Philipp__: has joined #ruby
[06:44:33] lsmola: has joined #ruby
[06:45:09] schaerli: has joined #ruby
[06:45:16] gagrio: has joined #ruby
[06:45:19] juanpablo_: has joined #ruby
[06:45:28] Kyuujitsu: has joined #ruby
[06:48:58] ishahnaz: has joined #ruby
[06:50:32] Stan: has joined #ruby
[06:50:33] r4do: has joined #ruby
[06:51:20] yardenbar: has joined #ruby
[06:55:17] towski_: has joined #ruby
[06:55:21] Kyuujitsu: has joined #ruby
[06:56:52] RobertBirnie: has joined #ruby
[06:57:14] Ilyas: has joined #ruby
[07:00:31] Kyuujitsu: has joined #ruby
[07:00:36] robbyoconnor: has joined #ruby
[07:01:15] yfeldblum: has joined #ruby
[07:01:34] quimrstorres: has joined #ruby
[07:02:15] bluOxigen: has joined #ruby
[07:02:18] curses: has joined #ruby
[07:04:29] shock_one: has joined #ruby
[07:04:31] weemsledeux: has joined #ruby
[07:04:59] djbkd: has joined #ruby
[07:05:03] juanpablo_: has joined #ruby
[07:06:10] fella5s: has joined #ruby
[07:06:27] Kyuujitsu: has joined #ruby
[07:06:43] shock_one: has joined #ruby
[07:07:37] maloik: oh, hello
[07:09:41] lxsameer: has joined #ruby
[07:10:17] charliesome: has joined #ruby
[07:10:40] aganov: has joined #ruby
[07:11:14] akemrir: has joined #ruby
[07:11:34] shock_one: has joined #ruby
[07:11:42] Sapna: has joined #ruby
[07:13:46] eGGsha: has joined #ruby
[07:14:18] dmolina: has joined #ruby
[07:14:28] dfockler: has joined #ruby
[07:16:09] DoubleMalt: has joined #ruby
[07:16:14] Kyuujitsu: has joined #ruby
[07:16:32] ndrei: has joined #ruby
[07:17:15] akemrir: has joined #ruby
[07:17:40] vondruch: has joined #ruby
[07:18:46] dimasg: has joined #ruby
[07:19:35] jatb: has joined #ruby
[07:19:41] mrmargolis: has joined #ruby
[07:21:02] yardenbar: has joined #ruby
[07:21:05] CustosLimen: has joined #ruby
[07:21:26] Kyuujitsu: has joined #ruby
[07:23:29] rsc___: has joined #ruby
[07:24:15] ips|malc: has joined #ruby
[07:24:17] tuelz1: has joined #ruby
[07:25:55] tubuliferous: has joined #ruby
[07:26:38] auzty: has joined #ruby
[07:27:14] Kyuujitsu: has joined #ruby
[07:28:19] chinmay_dd: has joined #ruby
[07:28:37] codecop: has joined #ruby
[07:29:07] olistik: has joined #ruby
[07:32:14] Kyuujitsu: has joined #ruby
[07:32:50] djbkd: has joined #ruby
[07:33:01] texasmade: has joined #ruby
[07:33:53] troulouliou_div2: has joined #ruby
[07:36:35] olistik: has joined #ruby
[07:37:18] Phoop: has joined #ruby
[07:37:40] charliesome: has joined #ruby
[07:39:59] jgt: has joined #ruby
[07:42:11] rht: has joined #ruby
[07:42:13] bodgix: has joined #ruby
[07:42:37] johnMcLain: has joined #ruby
[07:43:55] olistik_: has joined #ruby
[07:45:29] schaerli: has joined #ruby
[07:45:50] bruno-: has joined #ruby
[07:47:36] shadeslayer: has joined #ruby
[07:49:22] Rollabunna: has joined #ruby
[07:49:49] _tpavel: has joined #ruby
[07:50:04] baweaver: has joined #ruby
[07:50:36] jhass: -b+b gcfhvjbkn!*@* gcfhvjbkn!*@*$#ruby-fix-your-connection
[07:53:13] nofxx: has joined #ruby
[07:54:14] Violentr: has joined #ruby
[07:54:42] bayed: has joined #ruby
[07:55:45] riffraff: has joined #ruby
[07:57:17] Feyn: has joined #ruby
[07:58:19] olistik: has joined #ruby
[07:58:57] mikecmpbll: has joined #ruby
[08:00:55] evo2020: has joined #ruby
[08:01:05] white_bear: has joined #ruby
[08:01:48] mxrguspxrt: has joined #ruby
[08:01:55] evo2020: 0x0dea: I have everything done except the win method. Will u please look at my code? It should work but doesnt
[08:02:38] joonty: has joined #ruby
[08:02:58] olistik: has joined #ruby
[08:03:36] schaerli: has joined #ruby
[08:03:59] flughafen: why would minitest::assert compalin about no msg given?
[08:05:19] unshadow_: has joined #ruby
[08:05:52] juanpablo_: has joined #ruby
[08:08:13] sepp2k: has joined #ruby
[08:10:06] zenspider: flughafen: it isn't complaining... it's telling.
[08:10:50] flughafen: Failed assertion, no message given. (MiniTest::Assertion)
[08:11:29] zenspider: either provide a message to provide more context, use a better assertion, or just go fix it so it passes
[08:12:24] Zai00: has joined #ruby
[08:12:51] dumdedum: has joined #ruby
[08:13:05] shock_one: has joined #ruby
[08:13:08] _blizzy_: has joined #ruby
[08:13:20] Pupeno: has joined #ruby
[08:15:16] livathinos: has joined #ruby
[08:18:46] Sapna: has joined #ruby
[08:20:06] _blizzy_: has joined #ruby
[08:21:04] Pupeno: has joined #ruby
[08:23:04] joonty: has joined #ruby
[08:23:12] bumbar_: has joined #ruby
[08:23:35] apeiros: so apparently good ruby practices are bad rails practices - requiring files you depend on in rails can cause file double loading (through rails' autoload) leading to "constant already defined" warnings. nice.
[08:24:01] ljarvis: require_dependency
[08:24:15] apeiros: ljarvis: which is rails only???
[08:24:35] apeiros: well, I guess I can do a compat layer by defining require_dependency if it doesn't exist already
[08:24:41] ljarvis: right, but you're talking about a rails issue no
[08:24:43] apeiros: but???*ugh*
[08:24:52] apeiros: not all code I use in rails is rails only code???
[08:25:00] ljarvis: heh, right
[08:25:05] tuelz1: has joined #ruby
[08:25:12] ljarvis: tl;dr lolrails
[08:25:33] apeiros: but I guess this discovery will cause me to change how I organize code which should be usable in and out of rails
[08:25:40] ljarvis: get your fancy ellipsis out of here
[08:25:51] apeiros: ???????????????????????????
[08:25:55] apeiros: have some more
[08:26:07] ljarvis: heh, code I use out of rails often doesnt go into any autoloading place in my rails apps
[08:26:29] Oka: has joined #ruby
[08:27:05] apeiros: ljarvis: that's the thing I'll change about my code :)
[08:27:42] apeiros: can't have my cake and eat it too :(
[08:29:57] Phrogz: has joined #ruby
[08:30:53] apeiros: so, 20min later, 300 lines of warnings at startup are gone.
[08:30:56] djbkd: has joined #ruby
[08:34:28] rdark: has joined #ruby
[08:35:32] davedev24: has joined #ruby
[08:35:55] DylanJ: given some file data. anyone have any tips for getting a mime type? currently i'm piping it into file and running --mime. Anyone have better ideas?
[08:36:24] mxrguspxrt: has joined #ruby
[08:36:25] apeiros: DylanJ: ruby filemagic gem
[08:36:40] Siyfion: has joined #ruby
[08:37:11] apeiros: ruby-filemagic is even the name :)
[08:37:41] DylanJ: apeiros: sweet thanks.
[08:38:07] phutchins2: has joined #ruby
[08:38:36] tomaz_b: has joined #ruby
[08:40:55] axl_: has joined #ruby
[08:41:30] GriffinHeart: has joined #ruby
[08:43:39] Rollabunna: has joined #ruby
[08:45:27] shock_one: has joined #ruby
[08:47:17] joonty: has joined #ruby
[08:51:16] shock_one: has joined #ruby
[08:52:51] shock_one: has joined #ruby
[08:54:00] Newbie0086: has joined #ruby
[08:57:23] moeSeth: has joined #ruby
[08:57:48] Muhannad: has joined #ruby
[08:59:56] Silox|: has joined #ruby
[09:00:09] pocketprotector: has joined #ruby
[09:00:22] SebastianThorn: I got a program that iterates over files in a directory and then moves them elsewhere. The files gets in to the directory gets there by ftp, can i know if the file in the dir is currently beeing transfered into the directory?
[09:00:32] aotg: has joined #ruby
[09:00:34] quimrstorres: has joined #ruby
[09:01:16] senayar: has joined #ruby
[09:01:16] senayar: has joined #ruby
[09:02:05] SOLDIERz: Hello everyone I got a problem at the moment managing two ruby version with chruby ruby-2.2.1 and ruby-2.2.2 when switching between them I will be stucked to one version every time
[09:02:38] SOLDIERz: I think it's related to the package build where share libraries are enabled
[09:02:43] marr: has joined #ruby
[09:03:15] shock_one: has joined #ruby
[09:05:05] jhass: SOLDIERz: can you elaborate a bit? you chruby 2.2.2 and ruby -v says 2.2.1 or what?
[09:05:27] SOLDIERz: jhass correct
[09:05:44] quimrstorres: has joined #ruby
[09:06:11] jhass: SebastianThorn: uh, you probably could try to parse the output of lsof, not much beyond that (well, watching if the filesize changes, which is probably even more hassle)
[09:06:14] bodgix: has joined #ruby
[09:06:15] anisha: has joined #ruby
[09:06:32] SebastianThorn: jhass: size is not consistent
[09:06:39] jhass: SOLDIERz: what's echo $RUBIES ?
[09:07:32] apeiros: SebastianThorn: the common way I have seen is by providing a sha along with files and/or a metadata file
[09:08:20] SOLDIERz: jhass /opt/rubies/ruby-2.2.1 when I already switched to 2.2.2
[09:08:35] mrmargolis: has joined #ruby
[09:08:36] SebastianThorn: apeiros: ahh, ok. i understand
[09:08:40] apeiros: with waiting for size to stop changing you have to define a threshold for how long a file must no longer be changing
[09:08:48] jhass: SOLDIERz: but chruby without any arguments lists 2.2.2 ? oO
[09:09:41] jhass: you're sure you've shown the entire output of echo $RUBIES? it shouldn't matter which ruby is active
[09:10:30] djbkd_: has joined #ruby
[09:10:59] ttilley: has joined #ruby
[09:11:01] ttilley: has joined #ruby
[09:11:51] leafybasil: has joined #ruby
[09:11:59] SOLDIERz: jhass Yes of course but that's the problem I'm facing and I dont know how to fix it
[09:12:01] c0m0: has joined #ruby
[09:12:28] Vile`: has joined #ruby
[09:12:52] Ox0dea: SOLDIERz: How about `echo ${RUBIES[@]}`?
[09:12:56] jhass: SOLDIERz: so, you got /opt/rubies or $HOME/.rubies and if so what folders beneath them?
[09:13:48] allomov: has joined #ruby
[09:14:03] tubuliferous: has joined #ruby
[09:14:03] SOLDIERz: Ox0dea jhass /opt/rubies/ruby-2.2.1 /opt/rubies/ruby-2.2.2
[09:14:29] stamina: has joined #ruby
[09:14:45] jhass: what does /opt/rubies/ruby-2.2.2/bin/ruby -v says what?
[09:14:51] jhass: er, s/what//
[09:15:34] Renich: has joined #ruby
[09:16:07] charliesome: has joined #ruby
[09:16:08] nini1294: has joined #ruby
[09:16:21] Stan: has joined #ruby
[09:16:37] SOLDIERz: jhass ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
[09:16:47] Ox0dea: Bollocks.
[09:17:01] SOLDIERz: thats the funny thing and I think it's related to the shared libraries
[09:17:01] f4cl3y: has joined #ruby
[09:17:35] jhass: how did you install 2.2.2?
[09:18:05] pipework: If I were answering, I'd probably say, "Half-drunk"
[09:18:28] Ox0dea: Manually, with `cp`, uphill both ways.
[09:19:14] vali: has left #ruby: ("Leaving")
[09:19:29] SOLDIERz: They are installed trough rpm in the directory /opt/rubies
[09:19:48] krz: has joined #ruby
[09:19:57] jhass: who build the rpm?
[09:20:01] eGGsha: has joined #ruby
[09:20:21] SOLDIERz: I by myself
[09:21:14] jhass: check your process in doing so
[09:21:27] jhass: you probably got the 2.2.1 sources in your 2.2.2 package
[09:22:23] jhass: and forget about the "shared libraries" stuff, that won't ever affect the output of ruby -v
[09:24:02] SOLDIERz: jhass oh okay already checked it five times there are different files
[09:24:25] mutuma: has joined #ruby
[09:25:03] jhass: I don't know what to tell you, but the observable facts speak otherwise
[09:25:42] blacksmustgoaway: has joined #ruby
[09:25:49] tuelz1: has joined #ruby
[09:25:52] blacksmustgoaway: are there any fun ruby exercises for ruby?
[09:26:08] jhass: blacksmustgoaway: check exercism.io, codewars and the ruby koans
[09:26:25] jhass: and https://www.bloc.io/ruby-warrior/#/
[09:29:16] SOLDIERz: jhass Yeah I understand your point the problem at least is if I install a single version everything works fine. So lets say I just install ruby-2.2.1 everything is working as expected and ruby -v is returning me the right things
[09:29:39] apfeluser: has joined #ruby
[09:29:57] jhass: SOLDIERz: that says nothing, surprising would be if you install only 2.2.2 and it'd properly report 2.2.2
[09:30:44] CustosLimen: has joined #ruby
[09:30:46] SOLDIERz: jhass yes it is
[09:31:03] shevy: just install 2.2.2 and remove everything else
[09:31:11] SOLDIERz: and that what makes we wonder whats happening there
[09:31:25] jhass: SOLDIERz: can you share your rpm's?
[09:31:29] skade: has joined #ruby
[09:31:44] arup_r: has joined #ruby
[09:34:02] SOLDIERz: https://www.dropbox.com/s/lw87xd72l9rz8nn/ruby221-2.2.1.x86_64.rpm?dl=0
[09:34:02] SOLDIERz: https://www.dropbox.com/s/tt0kyu7ieirnjjj/ruby222-2.2.2.x86_64.rpm?dl=0
[09:34:35] SOLDIERz: shevy just stop trolling -.-
[09:35:17] shevy: I am dead serious
[09:36:59] SOLDIERz: shevy Yeah and I'm serious with my request here so it's good that are people here which want to help and are not like you save it for yourself don't need your comment on that! Thanks!
[09:37:24] TvL2386: has joined #ruby
[09:37:41] tkuchiki: has joined #ruby
[09:37:51] charliesome: has joined #ruby
[09:37:59] Rollabunna: has joined #ruby
[09:39:21] darix: SOLDIERz: unless you changed the libdir and so on for your ruby rpms or use completely distinct prefixes
[09:39:28] darix: those 2 packages might have file conflicts
[09:39:39] darix: and then i wouldnt wonder if you have problems
[09:40:19] SOLDIERz: darix ah okay so you recommend I should use define prefixes for every dir?
[09:40:28] tkuchiki: has joined #ruby
[09:41:09] darix: SOLDIERz: i would worry about having rpms for 2.2.1 and 2.2.2
[09:41:16] darix: we usually package per major branch
[09:41:35] darix: https://build.opensuse.org/project/show/devel:languages:ruby
[09:45:15] jhass: wth, i don't even... what does rpm do there? oO
[09:46:16] SOLDIERz: darix I am and it's not my decision discussed this several times with the R&D Department and every time the same outgoing so dont want to take it further
[09:46:37] SOLDIERz: jhass it installs ruby in the specific version under /opt/rubies
[09:46:38] darix: jhass: rpm is a very nice way to deploy ruby
[09:46:44] darix: just as is deb
[09:46:57] bruno-: has joined #ruby
[09:46:59] jhass: darix: no, I mean I see the issue too with their packages
[09:47:23] darix: jhass: if he really has file conflicts then yes it is a packaging issue.
[09:48:00] jhass: I don't understand how installing both at the same time can make /opt/rubies/ruby-2.2.2/bin/ruby -v and /opt/rubies/ruby-2.2.1/bin/ruby -v say the same thing while installing just one works
[09:48:57] jhass: d'oh, libruby.so.2.2 => /opt/rubies/ruby-2.2.1/usr/lib64/libruby.so.2.2 (0x00007fbde35a3000)
[09:49:11] jhass: and it affects even -v?
[09:50:17] SOLDIERz: darix Do you got an idea how I could easy fix my rpm because you got a really complex one there
[09:51:31] tuelz1: has joined #ruby
[09:52:43] jhass: do you already compile with --libexecdir= set?
[09:53:01] jhass: nvm, I'll just look at rbconfig
[09:54:41] Hounddog: has joined #ruby
[09:55:48] pocketprotector: has joined #ruby
[09:58:46] nini1294: has joined #ruby
[09:58:49] darix: SOLDIERz: if you have a distinct --prefix for each rpm
[09:58:51] darix: you should be fine
[09:58:55] darix: otherwise i can check later
[09:59:35] SOLDIERz: darix this is actually my configure in the spec
[09:59:36] SOLDIERz: http://pastebin.com/hL7aXV1G
[09:59:37] ruboto: SOLDIERz, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/74ae5445be3f34c5539b
[09:59:37] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[10:02:28] jhass: well, the issue is that rpm generates a /etc/ld.conf.d/rubyxxx.conf that adds each prefixes lib64 to the load path
[10:02:50] jhass: so the 221 one comes first due to sorting and the 2.2.2 binary loads that libruby.so instead of its own
[10:05:11] jhass: --with-soname= or even just --with-rubylibprefix= might help
[10:06:19] mutuma: has joined #ruby
[10:07:01] htmldrum: has joined #ruby
[10:08:47] darix: dont create ld.conf.d stuff
[10:09:01] darix: it should set the proper rpath in the binaries
[10:09:13] SOLDIERz: darix okay how should I do it better
[10:09:28] SOLDIERz: at the moment I got --disable-rpath
[10:09:35] sdothum: has joined #ruby
[10:09:44] spider-mario: has joined #ruby
[10:10:45] darix: speak about shooting yourself in the foot
[10:12:29] SOLDIERz: so everything should be fine just throw out ldconfig
[10:12:57] norc: has joined #ruby
[10:13:00] norc: has joined #ruby
[10:13:00] norc: has joined #ruby
[10:13:22] jhass: darix: I don't see those files in the rpm, looks like they're generated on install?
[10:16:11] adaedra: Let's put everyone on LFS, so no one will be affected by distribution's decisions
[10:18:09] Phrogz: has joined #ruby
[10:20:02] doerteDev: has joined #ruby
[10:20:19] rickmasta: has joined #ruby
[10:21:39] norc: Hi. How do I access an instance variable inside a define_method block? http://pastie.org/10321702
[10:22:45] JoshuaPaling: has joined #ruby
[10:22:50] SOLDIERz: darix Let you know if it works
[10:23:23] norc: Ah nevermind. self. instance_variable_get(:"@apple") does the trick
[10:24:27] Stan: has joined #ruby
[10:24:36] eGGsha: has joined #ruby
[10:25:06] gwendall: has joined #ruby
[10:25:07] jhass: no need for the self.
[10:25:40] norc: jhass: Ah neat. :)
[10:26:21] jhass: norc: and actually also no need for the class_eval in your example and just @apple does seem to work here
[10:26:41] MasterPiece: has joined #ruby
[10:26:44] jhass: >> class Foo; def initialize; @apple = "red"; end; define_method(:bar) do @apple; end; end; Foo.new.bar
[10:26:45] ruboto: jhass # => "red" (https://eval.in/409596)
[10:26:47] kp666: has joined #ruby
[10:27:07] kp666: has joined #ruby
[10:28:44] norc: jhass: Well, Im writing a class method at the moment. I was just trying to reduce the problem as much as possible. :)
[10:29:01] shevy: adaedra I do that!
[10:29:20] jhass: as you see not always helpful, who knows what there's to optimize in your real code ;)
[10:31:23] Ilyas: has joined #ruby
[10:31:37] norc: jhass: Yeah. But I wonder why I can omit the class_eval there.
[10:31:50] RegulationD: has joined #ruby
[10:32:01] jhass: because self and the definee is already what class_eval would change it to
[10:32:21] Rollabunna: has joined #ruby
[10:34:32] nini1294: has joined #ruby
[10:34:54] unshadow: has joined #ruby
[10:36:12] norc: jhass: fair enough. Since you seem to want to see what Im doing: http://pastie.org/10321726
[10:36:39] norc: I just want to dynamically generate accessor functions for a Hash.
[10:36:53] norc: Without exposing the Hash directly since that backend is subject to change
[10:37:38] jhass: alright, as said you can omit the self. there. and I'd do "#{key}="
[10:38:06] jhass: but not much that can go wrong there otherwise
[10:38:20] jhass: perhaps extract the method into a module that you can extend your class with
[10:38:21] norc: Neat. I presume the interpolation automatically calls to_s then ?
[10:39:32] norc: Okay yeah that is a lot cleaner than. And definitely - I intend on reusing this code anyway.
[10:39:56] curses_: has joined #ruby
[10:44:38] jimms: has joined #ruby
[10:47:10] chills42: has joined #ruby
[10:47:15] Kyuujitsu: has joined #ruby
[10:47:21] bruno-: has joined #ruby
[10:47:43] chills42: has joined #ruby
[10:47:48] charliesome: has joined #ruby
[10:48:01] ruby-user72722: has joined #ruby
[10:49:02] ruby-user72722: May I ask, is Ruby really good for desktop applications? :D
[10:49:13] daxroc: Morning all
[10:49:47] DefV: ruby-user72722: it's usable but I wouldn't recommend it
[10:49:54] Igorshp: has joined #ruby
[10:50:03] daxroc: Anyone recommend tools for debuging a local to remote ssl connection. (don't have control or access to the remote certs)
[10:50:12] shevy: ruby-user72722 you can use e. g. ruby-gnome
[10:50:28] shevy: ruby-user72722 it's quite a lot of work in general though
[10:50:43] adaedra: daxroc: ssh -v ?
[10:50:43] ruby-user72722: DefV: Thank you for the fast reply, but my target is only for command-line applications.
[10:50:51] bnagy: daxroc: what's the issue?
[10:51:10] ruby-user72722: shevy; thank you for the GUI suggestion :D
[10:51:26] mxrguspxrt: has joined #ruby
[10:51:28] DefV: ruby-user72722: even that depends on your use case and target audience
[10:51:30] jhass: ah, desktop application sounds like GUI ;)
[10:51:44] ruby-user72722: jhass: my bad :(
[10:51:46] jhass: doing CLI tools is certainly workable
[10:51:55] shevy: I use ruby-gnome quite a lot, it's ok but I always found it too much hassle, especially nowadays. html/css/javascript are easier than the bindings :\ :/
[10:52:01] jhass: many great libraries for that in fact
[10:52:20] shevy: I can have fancy effects via jquery... this be a head scratcher when I try the same in rubygnome
[10:52:41] ruby-user72722: jhass: How about deploying them with external libraries?
[10:52:47] adaedra: itt, people thinking web applications and websites are the same.
[10:52:56] phutchins: has joined #ruby
[10:53:02] adaedra: thinking applications and*
[10:53:15] ruby-user72722: I don't have interest with ruby on rails (or any web programming)
[10:53:43] ruby-user72722: but I quite love the syntax, especially the block and 'closer' (end)
[10:53:48] SOLDIERz: darix /opt/rubies/ruby-2.2.1/bin/ruby: error while loading shared libraries: libruby.so.2.2: cannot open shared object file: No such file or directory
[10:54:26] wpp: has joined #ruby
[10:55:33] juanpablo_: has joined #ruby
[10:56:33] ruby-user72722: shevy: Why note ruby-gtk+3?
[10:56:34] shevy: ruby-user72722 well harness the power of the commandline then :D
[10:56:46] jhass: ruby-user72722: you'd typically package the tool up as gem and publish it on rubygems.org. Rubygems is the package manager that comes with ruby and can handle dependencies just fine
[10:57:00] shevy: ruby-user72722 I dunno, it took me ages to switch and update from ruby 1.8.x to 2.2.x; I still have not switched to gtk3 for the most part
[10:57:15] jimms_: has joined #ruby
[10:57:19] jhass: SOLDIERz: run ldd on it
[10:57:29] shevy: I think I wrote about ... 800 or so ruby-gnome files, still have not updated all of them, only about 20%
[10:57:30] mrmargolis: has joined #ruby
[10:58:25] ruby-user72722: jhass: I'm a very beginner with Ruby and the environment. May I ask will it auto install the dependencies (like apt)
[10:58:39] jhass: ruby-user72722: yes, I thought I just said so
[10:58:45] ruby-user72722: shevy: wow! That's a lot of code you had written!
[10:59:02] shevy: ruby-user72722 yeah but this is bad, I want to write less not more :(
[10:59:08] jhass: ruby-user72722: and the good part is that he never shares it with anyone
[10:59:20] jimms: has joined #ruby
[10:59:46] nish1294: has joined #ruby
[10:59:50] sinkensabe: has joined #ruby
[11:00:01] _blizzy_: has joined #ruby
[11:00:31] SOLDIERz: jhass ldd? which way ldd /opt/rubies?
[11:00:35] ruby-user72722: jhass: Great! Anyway, I'm also looking to package ruby gems as .deb package, but by google for them, only output advanced results
[11:00:51] jhass: SOLDIERz: on the binary of course, ldd /opt/rubies/2.2.2/bin/ruby
[11:01:16] jhass: ruby-user72722: I doubt you'll really need that
[11:01:27] sepp2k1: has joined #ruby
[11:01:41] jhass: rubygems comes with ruby, so everybody just needs to apt-get install ruby and can then gem install your_app
[11:01:55] SOLDIERz: jhass http://pastebin.com/A9DT6xw1
[11:01:56] ruboto: SOLDIERz, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/049feed8381363906827
[11:01:56] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[11:02:14] jhass: SOLDIERz: ^ stop ignoring the message ;)
[11:02:14] tubuliferous: has joined #ruby
[11:02:27] ruby-user72722: jhass: Oh! I see!
[11:03:41] dmolina: has joined #ruby
[11:03:45] adaedra: jhass: but muh pastebin
[11:03:48] jhass: SOLDIERz: any more helpful with -v or perhaps -u?
[11:04:00] bruno-: has joined #ruby
[11:04:10] OrbitalKitten: has joined #ruby
[11:04:12] SOLDIERz: jhass nope same error message
[11:04:18] jhass: adaedra: I wish apeiros would fix the DB so ruboto properly scolds the repeated offenders :/
[11:04:32] apeiros: that's a db issue?
[11:04:39] jhass: idk what's the issue
[11:04:43] jhass: but I can hardly debug it
[11:05:03] jhass: I just don't know what else it could be
[11:05:07] apeiros: well, if the *guys* wouldn't be bitching so much about having to change a single word in their vocabulary, I could have made the update. but now I had to use the time for politics???
[11:05:30] adaedra: but muh privilege
[11:05:33] ruby-user72722: jhass: shevy: Defv: Thank you for enlightening the issue! I appreciate it! :D
[11:05:52] apeiros: jhass: what do you need for debugging?
[11:05:53] jhass: apeiros: you know, my public ssh key is public, just saying :P
[11:05:56] sarkyniin: has joined #ruby
[11:06:00] livathinos: has joined #ruby
[11:06:07] apeiros: ok, so I guess that's code for "ssh access"
[11:06:30] jhass: I'd hope there's something enlightening in the logs
[11:07:15] adaedra: apeiros: it's code for ???pet me???
[11:07:42] _blizzy_: has joined #ruby
[11:07:48] rodfersou: has joined #ruby
[11:07:56] leitz: has joined #ruby
[11:08:02] ruby-user72722: Oh! I also forgot to ask this - "How to install gems specifically for Jruby on Ubuntu 14.04 installe from apt?"
[11:08:18] jhass: jruby -S gem install foo
[11:08:21] xnr: has joined #ruby
[11:08:25] shevy: from apt!
[11:08:32] jhass: shevy: the jruby, not the gem
[11:09:04] ruby-user72722: jhass: I already tried that, but it always output openssl errors
[11:09:15] jhass: well, had over to #jruby with those
[11:09:32] ruby-user72722: jhass: Oh! Thank you for mentioning that channel!
[11:10:13] ruby-user72722: I gotta go! Thanks again everyone!
[11:13:45] ruby-lang953: has joined #ruby
[11:14:40] ruby-lang953: Hi! May I ask, which ruby book are good to use as learning source for beginners?
[11:14:53] shevy: the pickaxe
[11:14:59] ledestin: has joined #ruby
[11:15:12] shevy: https://pragprog.com/book/ruby4/programming-ruby-1-9-2-0
[11:15:28] [k-: has joined #ruby
[11:15:37] ruby-lang953: Thank you! :D
[11:16:26] jhass: shevy: :(
[11:16:30] jhass: 1.9.2 :((
[11:17:02] shevy: I don't think there are any newer ones from them
[11:17:08] adaedra: ??? ??? ??? ??? ??? ???
[11:17:21] shevy: perhaps they abandoned ruby meanwhile
[11:17:24] dmolina: has joined #ruby
[11:17:33] jhass: so maybe no longer recommend them
[11:17:35] adaedra: my terminal doesn't like those symbols :/
[11:17:55] shevy: no the book is good
[11:18:10] adaedra: It can't be good if it's still for 1.9.2
[11:18:39] adaedra: because ruby evolved since
[11:18:48] shevy: 1.8 was better than 2.x :)
[11:18:57] jhass: let's see, 1.9.3, 2.0, 2.1, 2.2, close to 2.3, basically five major releases since
[11:18:59] adaedra: it's indicated by something we call a 'version number'
[11:19:25] nofxx: has joined #ruby
[11:19:25] nofxx: has joined #ruby
[11:19:29] [k-: don't we follow semver now
[11:19:30] shevy: windows 10
[11:19:55] [k-: that is 1 major release and 4 minor
[11:20:24] jhass: [k-: with 2.1 we do, somewhat
[11:20:35] jhass: not too strictly tbh
[11:21:28] adaedra: Anyway, ruby 1.9.2 was out when?
[11:21:49] jhass: when was your mother born?
[11:21:55] jhass: around that
[11:23:06] flughafen: does minitest not have an assert_false?
[11:24:14] Rinzlit: do you guys use vagrant?
[11:24:22] [k-: https://www.ruby-lang.org/en/news/2015/06/30/ruby-prize-2015/
[11:24:43] jhass: ?vagrant Rinzlit
[11:24:43] ruboto: Rinzlit, I don't know anything about vagrant
[11:24:51] jhass: meh, sorry I thought I set that up
[11:25:22] Rinzlit: Its some kind of virtual setup envirement thingy
[11:25:23] jhass: !fact mk vagrant please join #vagrant for help with it.
[11:25:24] ruboto: jhass, I will remember that vagrant is please join #vagrant for help with it.
[11:25:25] [k-: lets vote for apeiros!
[11:25:32] shevy: these guys won last year: http://www.ruby.or.jp/en/news/20141010.html
[11:25:44] Rinzlit: The question was if any of you guys use it
[11:25:47] Rinzlit: I don't need help with it xD
[11:25:52] shevy: I don't use vagrant
[11:26:26] shevy: [k- first guy published a book, that must have been a lot of work :(
[11:26:41] Rollabunna: has joined #ruby
[11:27:00] jhass: ?guys Rinzlit
[11:27:01] ruboto: Rinzlit, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
[11:27:14] jhass: and no, it's too much overhead for me
[11:27:18] skyrocker1: has left #ruby: ()
[11:27:20] shevy: [k- I could nominate your one-liners :)
[11:27:30] jhass: I stick to simple chroots where I can
[11:27:51] shevy: jhass-in-prison
[11:27:56] last_staff: has joined #ruby
[11:27:57] Rinzlit: jhass was that really needed....
[11:27:59] [k-: > nominate my one-liners
[11:28:19] shevy: do the projects have to be useful in order to be nominated?
[11:28:25] sdothum: has joined #ruby
[11:28:27] jhass: Rinzlit: yes
[11:28:44] shevy: if not then we could nominate Ox0dea
[11:29:52] [k-: yay Ox0dea!
[11:30:16] omegamike: has joined #ruby
[11:30:34] [k-: wait a minute, nomination ended?!
[11:30:45] f3ttX]: has joined #ruby
[11:30:48] [k-: it just sends me here:
[11:30:50] [k-: https://docs.google.com/forms/d/1zOPBx6KdewVQWAQafRxOBO-a38dOPnQvE6UbMEMY2NI/closedform
[11:31:55] sarkyniin: has joined #ruby
[11:31:59] leitz: Trying to iterate over a nested hash fails. https://gist.github.com/LeamHall/2defbab02b89d8c20536
[11:32:30] hackeron_: has joined #ruby
[11:32:34] leitz: It iterates all of them well, but i'm trying to figure out how to pull data from one particular nested item at a time.
[11:32:37] dgutierrez1287: has joined #ruby
[11:33:16] shevy: well it's one month past now [k-
[11:33:29] maloik: leitz: unit['43'] is a hash, and youre passing it to show_trooper which in turn does unit['43'][1] which doesn't work
[11:33:38] maloik: see line 11
[11:33:44] [k-: oh i thought it was just yesterday
[11:34:29] shevy: how many downloads for an average project on rubygems, would you estimate to be automatic downloads via bots/scripts/hooks?
[11:34:35] leitz: maloik, the file contains nested hashes. Yes, sadly, a numeric string.
[11:34:45] maloik: if I'm understanding youre code directly, you can simply get rid of line 10 and 11, and replace "this_trooper" with "trooper" in the rest of the method
[11:34:59] leitz: Lemme try that.
[11:35:32] jhass: leitz: for the loop you want unit.each do |_key, trooper| then
[11:35:37] ldnunes: has joined #ruby
[11:36:05] leitz: jhass, the loop actually works.
[11:36:13] jhass: leitz: with the current method, yes
[11:36:13] leitz: That's part of what has me confused.
[11:36:23] blueOxigen: has joined #ruby
[11:36:39] jhass: but it'll break if you change it to the (better) version maloik suggested
[11:37:18] jhass: leitz: the issue is that Hash.each yields two element arrays of [key, value]. So trooper in your loop is that array, trooper[1] in the method correctly retrieves the value
[11:37:45] jhass: but when you do unit["43"] you directly get the value, so you're no longer passing the [key, value] array to show_trooper
[11:38:06] jhass: which is the better thing to do in fact, hence changing both, the method and the loop
[11:38:18] [k-: line1 = %w[ ... # is such a waste
[11:38:42] jhass: ah yeah, calling .each directly on the literal would be nice too
[11:39:04] [k-: not only is it less configurable, it also instantiates the object many times as well
[11:39:51] jhass: uh, what?
[11:40:01] leitz: Eliminating lines 10 and 11, and changing this_trooper to trooper in lines 14 and 16 give "./show_hash_fail.rb:14:in `[]': can't convert String into Integer (TypeError)"
[11:40:20] jhass: leitz: you didn't change the loop yet, right?
[11:40:59] leitz: jhass......plbbtthhhh......
[11:41:19] leitz: Okay, that works for the individual call. Lemme go change the loop.
[11:41:46] lannonbr: has joined #ruby
[11:41:55] leitz: Much better.
[11:42:29] jhass: leitz: now also get rid of the line1 local which you don't really need as [k- noted
[11:42:30] leitz: The "line1" bit is because it needs to print stuff out in a particular order. Hashes in Ruby 1.8 aren't quite so ordered.
[11:42:31] mutuma: has joined #ruby
[11:42:38] jhass: just do %w[a b c].each do |item|
[11:42:50] leitz: Ah, lemme try that.
[11:42:53] jhass: why would you use Ruby 1.8
[11:44:13] leitz: jhass, because I support servers, and their ruby version is a patched 1.8.
[11:44:24] leitz: Not ideal, but that's where I am.
[11:44:47] jhass: give everybody responsible a fat slap into the face from me then
[11:44:50] workmad3: leitz: 'not ideal' <-- that's an understatement
[11:44:52] leitz: And the %w[].each works nicely, thanks!
[11:45:01] leitz: Talk to Red Hat, not me.
[11:45:36] leitz: You can slap them again for upstart and the other silly init replacement, too.
[11:45:43] leitz: systemd. Ugh.
[11:46:50] leitz: The good news is that I've been sick with bronchitis all week. Staying home has givne me time to work on my coding skills. :)
[11:47:11] ndrei: has joined #ruby
[11:47:41] workmad3: leitz: http://rpm.pbone.net/index.php3?stat=26&dist=74&size=15015456&name=ruby-2.1.2-2.el6.x86_64.rpm <ss you were saying?
[11:48:50] startupality: has joined #ruby
[11:48:50] shevy: leitz also not a systemd friend? no worries, it'll get bigger and "more integrated" :D
[11:49:20] erts: has joined #ruby
[11:49:24] [k-: it already has your password
[11:49:32] leitz: ACTION goes to URL, after smacking shevy...
[11:50:06] adaedra: but muh init scripts
[11:50:44] IceyEC: has joined #ruby
[11:50:45] withnale_: has joined #ruby
[11:50:56] leitz: workmad3, the issue with a secure server is that i want less software on it, not more. While Ruby 2+ is probably a much better option, having to maintain it on several hundred servers, as well as whatever gems I might want to use, becomes a chore.
[11:51:22] erts: has joined #ruby
[11:51:22] workmad3: leitz: and so you stick with unsecure software that no longer receives any official maintenance?
[11:51:42] leitz: Instead, I code to 1.8. Since I don't really code well that's not a high challenge. If I get good enough that it makes a difference, I'll get a job as a ruby coder.
[11:51:52] leitz: All software is insecure and non-performant.
[11:51:59] [k-: touch??!
[11:52:01] leitz: It's just where you are on the range.
[11:52:02] workmad3: leitz: 1.8 is officially so :P
[11:52:42] leitz: Can't argue that point. RHEL 6 ships with 1.8.7, patched by RH.
[11:53:03] leitz: So until we're all sysemd'd up the wazoo with RHEL 7, we're stuck.
[11:53:21] leitz: Honestly, the more I work with RH, the more I want to make my own distro.
[11:53:23] adaedra: there's a 1.9 in SPL iirc
[11:53:37] adaedra: still not perfect, but a bit less worse
[11:53:39] jhass: don't, you just end up with arch :P
[11:54:01] leitz: I've used Puppet, which ships with 1.9.x.. Puppet 4.x ships with Ruby 2.x, I think.
[11:54:17] CloCkWeRX: has joined #ruby
[11:54:19] houhoulis: has joined #ruby
[11:54:56] shevy: Puppet seems to be fairly important, I remember a guy who was in the same class with me, is now working with puppets in the UK
[11:55:08] ruboto: Please join #puppet for help with it.
[11:55:08] s00pcan: has joined #ruby
[11:55:27] juanpablo_: has joined #ruby
[11:55:30] Scripore: has joined #ruby
[11:55:47] [k-: ?aboose adaedra
[11:55:47] ruboto: adaedra, I don't know anything about aboose
[11:55:49] prestorium: has joined #ruby
[11:55:51] rbowlby: has joined #ruby
[11:56:02] adaedra: frankly, I don't either.
[11:56:57] leitz: Puppet, and it's ilk, are really Good Things (tm).
[11:57:22] workmad3: leitz: agreed (although I'm more a chef man, personally)
[11:57:45] leitz: Puppet is a Configuration Management tool that lets you maange large numbers of servers automatically.
[11:57:55] shevy: adaedra but I don't need any help!
[11:58:04] leitz: workmad3, I was, until I saw it drop 8,000+ files on my server. Ugh!
[11:58:11] adaedra: I don't know what to answer to that.
[11:58:21] jhass: so many puppetmasters these days ... (let's see who gets the reference)
[11:58:25] senayar: has joined #ruby
[11:58:30] maloik: leitz: and that was a chef problem? oO
[11:58:42] [k-: puppet masters control the puppets!
[11:59:13] leitz: maloik, remember, all software is insecure. If you add 8,000 insecurities, yeah, it's an issue.
[11:59:15] adaedra: ACTION controls [k-
[11:59:17] dorei: has joined #ruby
[11:59:27] maloik: ... what?
[11:59:40] maloik: no, I'm asking if it was a chef problem
[11:59:53] maloik: if you write a ruby script to wipe your drive, then that's not a ruby issue
[11:59:57] davedev24: has joined #ruby
[12:00:03] leitz: The original code, or the 8,000 files? Sorry. I'm still half out of it.
[12:00:20] maloik: whatever made the 8000 files disappear
[12:00:42] maloik: it sounds like you switched away from chef, or stopped liking it, because a bug in chef deleted your files
[12:00:53] yorickpeterse: maloik: yo when's the update on Arrrcamp speakers coming out?
[12:00:58] workmad3: maloik: no, he dislikes it because (probably the server) had 8000 files
[12:01:18] maloik: yorickpeterse: asap I hope :( going to go over the list this afternoon, reach out etc, do some announcements if I find the time
[12:01:21] leitz: Ah, sorry. Putting Chef on a node added 8,000+ files to every node. Since I'm in the "less is better" camp, that was my objection.
[12:01:30] maloik: oh, lol... okay
[12:01:51] maloik: I understood "drop files" as "delete files"
[12:01:52] leitz: Chef itself ran fine. Well, when I could code it.. I was even less a coder then. :P
[12:02:02] but3k4: has joined #ruby
[12:02:07] workmad3: leitz: ah, omnibus install of chef... that would include a bundled ruby + all libs so that it can be completely isolated
[12:03:16] leitz: Yup. The isolation part if a good idea, but that means you have to upgrade frequently to stay patched.
[12:03:33] leitz: Using node native code limits you heavily; as in Ruby 1.8.7. :)
[12:04:05] apfeluser: has joined #ruby
[12:04:17] leitz: Also, before I nap out, let me plug someone else's book. "PRactical Object Oriented Design in Ruby". Very good for us OOP newbs.
[12:04:23] quimrstorres: has joined #ruby
[12:04:50] leitz: The trooper issue was based on me trying to rethink a bunch of functions into a class structure.
[12:04:50] workmad3: leitz: that's a somewhat poor argument... if you want to stay patched, you'd need to upgrade exactly as frequently as if those parts weren't isolated... but instead of one single tested update of everything, it would be an openssl upgrade, a ruby upgrade, a chef gem upgrade, a rubygems upgrade...
[12:05:08] tinyhippo: has joined #ruby
[12:05:58] leitz: workmad3, sorry, it's a different patch structure. I'm not against the osolated bundle at all, as long as the vendor issues patches in good time.
[12:06:16] Phrogz: has joined #ruby
[12:06:26] workmad3: leitz: yeah... 'vendor issues patches in good time' is really the biggest problem with distro package repos ;)
[12:06:36] leitz: So far they don't seem to. Hence all the Java 1.4 trash laying around.
[12:06:48] workmad3: leitz: and rhel only having ruby 1.8...
[12:06:49] skade: has joined #ruby
[12:07:20] leitz: workmad3, yeah. I'm not at the Gentoo level, but still. That's one reason I don't like adding a lot of software, it means you have to test and patch a lot more often.
[12:07:52] workmad3: anyway, I need to run
[12:07:59] leitz: Thanks for your help!
[12:09:58] ips|malc: has joined #ruby
[12:09:59] DoubleMalt: has joined #ruby
[12:10:31] leitz: jhass, arch has Ruby 2.2 in the extra repo. Is there a base version installed?
[12:10:44] rideh: has joined #ruby
[12:11:09] jhass: you don't run arch without the extra repo enabled, heck probably not even without the community repo enabled
[12:11:24] jhass: the different repos more categorize who has commit access to them
[12:11:34] eGGsha: has joined #ruby
[12:11:55] jhass: but even to commit to community you have to get a so called trusted user
[12:12:05] leitz: I still like the "minimal is best" approach.
[12:12:09] jhass: the untrusted stuff is in the AUR
[12:12:16] Siyfion: has joined #ruby
[12:12:25] jhass: enabling the repo != installing everything
[12:14:03] leitz: Hmm... RHEL/CentOS 7 uses Ruby 2.0.0.
[12:14:36] tinyhippo: just use rvm like everyone else
[12:14:41] atomical: has joined #ruby
[12:14:45] jhass: which officially EOLs in february 2016 btw
[12:14:55] [k-: > rvm minimal
[12:15:35] jhass: leitz: I think my basic arch chroots usually end up around 150-250M
[12:15:51] leitz: jhass, nice!
[12:16:08] startupality: has joined #ruby
[12:16:18] leitz: Though a 30M NetBSD on Sparc is hard to beat. :)
[12:17:58] tinyhippo: has left #ruby: ()
[12:18:54] jhass: leitz: the standard arch kernel is 73M alone, so... :P
[12:19:14] jhass: I actually should take care to not install it
[12:19:46] leitz: jhass, understood. The NetBSD reference was from a few years ago, so it's not apples to apples.
[12:20:32] leitz: Still, there's a continuum between "just the right software" and "has aged enough that all the other big tools work on it".
[12:20:37] nzst: has joined #ruby
[12:20:53] leitz: For example, if you use a large backup solution, and it doesn't support your OS, then you're hosed.
[12:20:56] Rollabunna: has joined #ruby
[12:21:55] jhass: yeah, my comment is more that if you'd do your custom distro you'd likely end up not doing versions (=rolling release) and applying as few patches as possible, which both matches arch's philosophy
[12:23:10] Kyuujitsu: has joined #ruby
[12:23:44] rsc___: has joined #ruby
[12:24:06] startupality: has joined #ruby
[12:24:45] Kully3xf: has joined #ruby
[12:25:48] niiamon: has joined #ruby
[12:27:17] platzhirsch: has joined #ruby
[12:28:55] joonty: has joined #ruby
[12:30:31] sankaber: has joined #ruby
[12:30:57] rideh: has joined #ruby
[12:31:34] rsc___: has joined #ruby
[12:31:51] startupality: has joined #ruby
[12:34:39] ndrei: has joined #ruby
[12:36:05] CustosLimen: has joined #ruby
[12:36:05] diegoviola: has joined #ruby
[12:36:27] curses: has joined #ruby
[12:37:03] Kully3xf: how can I install rake with out gem install and with out yum install
[12:37:11] Kully3xf: I have the git repo cloned
[12:37:20] dagda1: has joined #ruby
[12:38:04] jhass: not sure what you mean
[12:38:12] jhass: you mean without network access or something like that?
[12:38:19] jhass: rake is bundled with ruby btw
[12:38:20] skade: has joined #ruby
[12:38:38] sinkensabe: has joined #ruby
[12:38:48] jhass: but maybe your distro unbundled it
[12:39:12] apeiros: Kully3xf: "how can I install something without the designated installer" - makes little sense. why do you want to do that?
[12:40:17] ddv: Kully3xf: what is your _real_ problem?
[12:40:27] Kully3xf: so basically we have this one super locked down server - on prem. and I'm trying to get chef-zero installed on it because we need to manage the applications on it etc, but every turn there's something missing and it's yum repos are hella tight and gem install is running through a proxy
[12:40:42] Kully3xf: which ruby /usr/bin/ruby
[12:41:18] apeiros: Kully3xf: well, you could try to find an old setup.rb
[12:41:24] apeiros: that'd install rake into site_ruby
[12:41:32] apeiros: (I believe - it's been a while)
[12:41:34] Kully3xf: I just installed ruby from repo
[12:41:40] Kully3xf: that was on there
[12:42:38] apeiros: that's the old one http://i.loveruby.net/en/projects/setup/ and this is a fork https://github.com/rubyworks/setup
[12:42:43] apeiros: no idea which one I'd use today
[12:42:57] pingpong11: has joined #ruby
[12:43:14] Kully3xf: great. I'll try the git repo
[12:43:16] pingpong11: 'lo, i see this line ManrillMailer.deliver_bp_account_activation
[12:43:25] pingpong11: the method is bp_account_activation
[12:43:29] pingpong11: how does the prefix work?
[12:43:33] apeiros: Kully3xf: by "without gem install", do you really mean "without gem install for a remote gem"?
[12:43:49] Kully3xf: I can gem install local .gem
[12:43:56] Kully3xf: but I tried that on chef-zero and it failed also
[12:43:57] apeiros: Kully3xf: bundle it up as a gem and install it locally
[12:44:16] apeiros: well, "it failed" is nothing I can help with.
[12:44:29] apeiros: but then again, chef-zero probably means I can't help anyway
[12:44:30] sinkensabe: has joined #ruby
[12:44:39] apeiros: pingpong11: probably method_missing. see Object#method_missing
[12:44:54] pingpong11: it calls it fine, but i'm just wondering what it's doing
[12:45:08] jtdoncas: has joined #ruby
[12:45:08] pingpong11: how is it prefixing it like that
[12:45:11] Kully3xf: [root@hostname chef-zero]# gem install chef-zero-4.2.3.gem ERROR: While executing gem ... (URI::InvalidURIError) the scheme http does not accept registry part: onprem_host (or bad hostname?)
[12:45:25] apeiros: pingpong11: as said, it probably uses method_missing.
[12:45:32] Kully3xf: that's after a gem build chef-zero.gemspec that went well
[12:45:34] leitz: Okay, I'm slow. I get floor and ceil, but what's the normal "round up at x.5, or down if less than that"?
[12:45:54] apeiros: Kully3xf: -y (without dependencies)
[12:46:02] apeiros: Kully3xf: you'll have to install the dependencies by hand yourself
[12:46:07] pingpong11: oh i misunderstood
[12:46:12] Kully3xf: cool thanks
[12:46:17] apeiros: leitz: .round
[12:46:27] apeiros: >> [1.2.round, 1.6.round]
[12:46:28] ruboto: apeiros # => [1, 2] (https://eval.in/409698)
[12:46:33] psye: has joined #ruby
[12:46:49] Kully3xf: yep worked. Cool thanks so much
[12:46:53] dblessing: has joined #ruby
[12:47:05] livathinos: has joined #ruby
[12:47:15] sinkensabe: has joined #ruby
[12:49:35] leitz: aperios, thanks!
[12:49:50] pengin: has joined #ruby
[12:49:53] quimrstorres: has joined #ruby
[12:50:09] platosha: has joined #ruby
[12:50:24] tubuliferous: has joined #ruby
[12:50:40] [k-: apeiros*
[12:53:00] radgeRayden: has joined #ruby
[12:53:40] startupality: has joined #ruby
[12:55:12] imperator: has joined #ruby
[12:55:21] imperator: has left #ruby: ()
[12:56:24] senayar: has joined #ruby
[12:56:24] senayar: has joined #ruby
[12:56:25] leitz: Yeah...I blame being ill.
[12:56:27] axl_: has joined #ruby
[12:56:42] SOLDIERz: jhass Do you probably got some idea left how to handle this ld thing? Because we are messing our heads and got no clue at the moment how to handle the tiny versions
[12:57:09] SOLDIERz: or darix probably?
[12:57:09] jhass: SOLDIERz: I'd still try changing the soname
[12:57:44] darix: SOLDIERz: you could do something like
[12:58:01] SOLDIERz: jhass so you mean --with-soname=ruby-1.9.2-64
[12:58:21] darix: libruby2_2-2_2_2
[12:58:23] darix: libruby2_2-2_2
[12:58:26] darix: is what we use as soname
[12:59:21] darix: SOLDIERz: read our spec file
[12:59:47] darix: SOLDIERz: the background story https://discourse.nordisch.org/t/ruby-packaging-next/22~
[13:00:29] m0thman: has joined #ruby
[13:01:04] SOLDIERz: darix Error 403 forbidden
[13:01:15] darix: SOLDIERz: without the ~ in the end
[13:02:39] jgt: has joined #ruby
[13:04:28] michael_mbp: has joined #ruby
[13:04:43] arup_r: has joined #ruby
[13:05:52] rippa: has joined #ruby
[13:05:58] michael_mbp: has joined #ruby
[13:06:02] Zort0n: has joined #ruby
[13:07:08] gagrio: has joined #ruby
[13:07:52] chrisseaton: has joined #ruby
[13:08:08] SOLDIERz: darix and this would also work without all the ldconfig stuff
[13:08:21] darix: SOLDIERz: sure
[13:08:22] SOLDIERz: or need I still to do some ldd for ruby
[13:08:31] darix: SOLDIERz: at least if you use different sonames
[13:08:37] darix: you can add back your ld.conf.d stuff
[13:08:42] sinkensabe: has joined #ruby
[13:09:02] Rinzlit: What is the best way for a 3D array o-o
[13:09:24] rideh: has joined #ruby
[13:09:44] startupality: has joined #ruby
[13:09:55] Igorshp: has joined #ruby
[13:10:17] niiamon: has joined #ruby
[13:10:57] ips|malc: has joined #ruby
[13:11:41] nutbunnies: has joined #ruby
[13:12:09] bronson: has joined #ruby
[13:12:35] Jesse1234: has joined #ruby
[13:12:36] Jesse1234: has left #ruby: ()
[13:14:48] nutbunnies: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[13:15:15] Rollabunna: has joined #ruby
[13:15:31] bonhoeffer: has joined #ruby
[13:15:36] wpp: Rinzlit What?
[13:19:03] Rinzlit: Whats the best way to do 3D arrays in ruby o.o
[13:20:54] JoshL: has joined #ruby
[13:21:16] linuxboytoo: has joined #ruby
[13:21:35] apeiros: Rinzlit: define "best"
[13:21:36] jgt: has joined #ruby
[13:21:48] apeiros: [[[]]] # there, 3d array
[13:23:25] malconis: has joined #ruby
[13:26:26] Rinzlit: Well they recommended hash's for 2D arrays .-.
[13:26:36] Rinzlit: Thats why I was like kinda confused apeiros
[13:27:05] mrmargolis: has joined #ruby
[13:27:10] apeiros: you know, the use-case *kinda* matters
[13:27:35] Rinzlit: Well if I wanted to do something like minecraft
[13:27:42] Rinzlit: And setup the blocks in a 3D array
[13:27:48] Rinzlit: How would you recommend doing it?
[13:28:14] apeiros: so you have a value in every "slot" in the 3d array?
[13:28:21] apeiros: i.e. it's not sparse, no empty cells
[13:28:31] jimms: has joined #ruby
[13:28:49] apeiros: in that case, I'd definitively NOT use a hash. I'd use either a flat array + mapping logic, or a nested array.
[13:28:51] CustosLimen: has joined #ruby
[13:28:58] Rinzlit: Oh okay o.o
[13:29:08] Rinzlit: Thank you aperiros
[13:29:17] apeiros: ACTION hits Rinzlit with a trout
[13:29:31] apeiros: that's one major league class of a typo
[13:29:43] apeiros: srsly, use tab completion if you can't spell nicks :-p
[13:29:57] Rinzlit: Sorry started playing a league match
[13:30:02] adaedra: calm down, abeiroz
[13:30:28] apeiros: adaedra: silence. dead daedras don't talk.
[13:30:45] apeiros: also, it's apeibros
[13:30:54] adaedra: I'm not your bro, pal
[13:31:03] apeiros: I'm not your pal, friend
[13:32:44] keeguon: has joined #ruby
[13:33:25] keeguon: Hey! Might not be the best room to ask my question but whatever. I???m using jRuby 1.7.21 and compiling a Rails 3.2.22 app using warbler on a Linux machine. When I run the code in a Linux machine everything works fine. However when I try to boot it on Windows, it fails with an ???blame_file!??? error coming from ActiveSupport (side note: I???m using SQL Server on the Windows machine and MySQL on the Linux machine but the
[13:33:25] keeguon: drivers are correctly set). Since it was cryptic and I saw there was some shenanigans going on there in 2013 (https://github.com/jruby/jruby/issues/976) but couldn???t really pinpoint what was going on I decided to hack the ???Kernel.require??? call to log what was going on on boot. Somehow, upon requiring ???rails/application/bootstrap??? it require ???active_support/notification??? which causes a loop requiring it like a
[13:33:26] keeguon: gazillion times and then fails with a Java StackOverflowError. Do any of you guys might have an idea?
[13:34:41] ruboto: You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
[13:35:48] adaedra: I've already started enough "I'm not your" chains today.
[13:36:02] ljarvis: Rinzlit: not cool
[13:36:10] Scripore: has joined #ruby
[13:36:22] riotjones: has joined #ruby
[13:37:03] Rinzlit: 1jarvis maybe I'm just lazy, but why have a command to tell people not to say "guys"
[13:37:30] adaedra: There is a command to kick your ass, too :)
[13:37:54] paulcsmith: has joined #ruby
[13:38:05] ljarvis: Rinzlit: so we don't have to type it out every time?
[13:38:07] Rinzlit: Thats kind of expected adaedra, but what isn't is to have people use specific words to address a crowd
[13:38:15] ruboto: it doesn???t matter if it???s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
[13:38:53] maloik: is idiolect an actual work, or is it idiot+dialect?
[13:38:59] maloik: (honest question)
[13:39:08] ljarvis: it's an actual word
[13:39:10] maloik: s/work/word
[13:39:24] ljarvis: Idiolect is the variety of language unique to an individual.
[13:39:53] apeiros: seems to be too hot today again. people forget about google :-p
[13:40:11] whippythellama: has joined #ruby
[13:40:25] keeguon: Seems like my question was totally ignored in favor of this off-topic madness ^^
[13:40:47] apeiros: keeguon: might seem like that, but I read it and just don't have an answer.
[13:40:49] tjohnson: has joined #ruby
[13:40:52] adaedra: or maybe people just don't have the answer, it's kind of specific keeguon
[13:41:01] adaedra: also, coucou
[13:41:03] maloik: yorickpeterse: http://2015.arrrrcamp.be
[13:41:08] maloik: first couple confirmed names
[13:41:25] apeiros: keeguon: only thing I can say is that a file which has been required should not be re-required again, i.e. require should just return
[13:41:35] yorickpeterse: maloik: such excite
[13:41:49] juanpablo_: has joined #ruby
[13:42:06] bonhoeffer: has joined #ruby
[13:42:43] jhass: keeguon: #jruby might have better clues than us
[13:42:45] yorickpeterse: meanwhile I'm dealing with stupid race conditions leading to corrupted objects
[13:42:45] maloik: pretty proud of that lineup, and we still have 4 people that need to confirm
[13:42:50] yorickpeterse: I swear the AWS SDK has been nothing but a pain
[13:43:07] yorickpeterse: maloik: what's the total amount of people?
[13:43:08] keeguon: adaedra: thought I???d be precise :). Also bonjour ?? toi!
[13:43:11] apeiros: -o apeiros
[13:43:23] maloik: yorickpeterse: remains to be seen but probably 12/13
[13:43:40] chouhoulis: has joined #ruby
[13:43:50] ljarvis: apeiros: not particularly in favour of bringing more attention to it in the topic though fwiw
[13:44:01] keeguon: apeiros: yeah that would be the expected behavior but eh it ain???t
[13:44:24] keeguon: jhass: thought I???d increase my chances by asking the question both here and there
[13:44:26] choppington: has joined #ruby
[13:44:32] livathinos: has joined #ruby
[13:44:34] apeiros: ljarvis: bah, spoilsport
[13:44:36] apeiros: -o apeiros
[13:44:53] jhass: ?crosspost keeguon
[13:44:53] ruboto: keeguon, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[13:45:07] jhass: you should have said you already asked there ;)
[13:45:08] davejlong: has joined #ruby
[13:45:26] apeiros: but I think it's time to remove "Welcome new users migrating from #ruby-lang!", been 2 months now. should be enough.
[13:45:47] adaedra: 2 months!?
[13:46:09] benlovell: has joined #ruby
[13:46:11] keeguon: jhass & ruboto: nobody seems very active on the jruby channel atm hence the crosspost since I wasn???t getting an answer
[13:46:19] leitz: I need to use a 4 element designation to identify an array of items. So array[0][0][0][0] will be one list and array[0][0][0][1] will be another. The array keys will be part of the item designation.
[13:46:21] ruboto: I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[13:46:44] jhass: keeguon: not complaining that you did crosspost, complaining that you didn't inform everybody of that fact ;))
[13:47:00] davidjd: has joined #ruby
[13:47:09] ljarvis: leitz: what exactly are you asking? you can just build an array of arrays
[13:47:48] adaedra: I'd have used a 1d array and accessor methods like .at(x, y, z, ??)
[13:48:17] RegulationD: has joined #ruby
[13:48:32] leitz: ACTION returns from coughing up half a lung
[13:49:03] leitz: Would it be better to use a multi-d array or a hash key of "0.0.0.1", etc?
[13:49:27] nini1294: has joined #ruby
[13:49:30] maloik: I think it really depends on what you want to do and what your data looks like/represents
[13:49:44] leitz: So far ti seems that you can't create a multi-d array without doing each step in turn.
[13:50:14] shterrett: has joined #ruby
[13:50:25] juanpaucar: has joined #ruby
[13:50:37] ruboto: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[13:50:47] paulcsmith_: has joined #ruby
[13:50:57] dimasg: has joined #ruby
[13:51:15] davejlong: has joined #ruby
[13:51:22] zombiema: looking for coder can code recode metasploit exploit to python or ruby i pay via btc
[13:51:36] maloik: in before ban
[13:51:48] yorickpeterse: btc? I only accept Monopoly money
[13:51:51] yorickpeterse: that at least has some value
[13:51:58] leitz: As usual, it's for a game. The "node" items are a list of people in that team. The array keys/hash keys are the levels of unit. So "1.1.1.1" would be "1st Company, 1st Platoon, 1st Squad, 1st Team". Etc.
[13:52:01] lxsameer: I'm using bundler and when i run my project ruby complain about "can't loading a file" which I'm certain that that gem is installed and is a dependency of one of my dependecies.
[13:52:07] lxsameer: how can I debug this
[13:52:08] jgt: has joined #ruby
[13:52:12] adaedra: I have a 20 SEK bill, it's my last offer
[13:52:22] leitz: Sorry for the delays, I keep having to go cough my brains out.
[13:52:31] zombiema: yorickpeterse get a life
[13:52:31] khebbie: has joined #ruby
[13:52:37] msnyon: has joined #ruby
[13:52:37] jhass: leitz: don't worry, IRC is highly asynchronous in nature
[13:53:17] yorickpeterse: zombiema: oh no, such burn
[13:53:17] adaedra: lxsameer: you use `bundle exec`?
[13:53:32] lxsameer: adaedra: yeah
[13:54:07] adaedra: lxsameer: gem is in gemfile and bundle install is up to date, with gem in .lock? Have a complete error message, maybe?
[13:54:21] maloik: leitz: problem is that you'd end up with something like army[0][0][0][0] as you mentioned previously. Why not use a hash, where the values are an array? army[:companies][0][:platoons][0] is a bit more obvious (although longer)
[13:54:24] Phrogz: has joined #ruby
[13:54:30] devdazed: has joined #ruby
[13:54:41] maloik: other than that I think I don't understand your actual problem/question
[13:54:43] jhass: leitz: Company = Struct.new(:platoons); Platoon = Struct.new(:squads); Squad = Struct.new(:squads); Team = Struct.new(:members)
[13:55:09] cornerma1: has joined #ruby
[13:55:19] jhass: add initializers that assign the empty arrays
[13:55:36] ljarvis: Squad = Struct.new(:squads) wot
[13:55:49] jhass: eh, :teams
[13:55:51] jhass: you get the idea
[13:55:59] lxsameer: adaedra: weired it's not on my Gemfile.lock
[13:56:28] jhass: gonna go to the grocery, the channel is all yours
[13:56:37] lxsameer: adaedra: I maintain the my app along side with gem A , A depends on gem B
[13:56:51] lxsameer: adaedra: and B is not in my gemfile.lock
[13:57:00] adaedra: lxsameer: and it is in your Gemfile?
[13:57:04] ljarvis: right, jhass is gone. Let's all smoke pot and code python
[13:57:05] leitz: Hmm...haven't used Struct in Ruby yet. Lemme go read.
[13:57:14] lxsameer: adaedra: A is in my Gemfile
[13:57:22] leitz: Line 47 is kinda of what I'm looking at: https://gist.github.com/LeamHall/d6549e7c8658ebb4ca03
[13:57:40] leitz: The first arguemnt is the unit designation.
[13:57:42] adaedra: lxsameer: and B is in A's dependencies in the .gemspec?
[13:57:54] lxsameer: adaedra: yeah
[13:58:18] Axy: has joined #ruby
[13:58:19] adaedra: a missing `bundle install`?
[13:58:29] Zort0n: has joined #ruby
[13:58:57] lxsameer: adaedra: nope I tried in milion times
[13:59:20] withnale__: has joined #ruby
[13:59:57] adaedra: how do you require A in your app's gemfile?
[14:01:29] lxsameer: adaedra: gem 'A'
[14:02:29] adaedra: isn't it the gem you're managing locally?
[14:03:55] TomyWork: has joined #ruby
[14:04:06] rideh: has joined #ruby
[14:04:13] lxsameer: adaedra: yeah but I'm using the rubyge
[14:04:20] lxsameer: adaedra: yeah but I'm using the rubygems version right now
[14:04:31] lxsameer: adaedra: https://rubygems.org/gems/admin_lte-rails
[14:04:59] lxsameer: adaedra: as you can see rails-assets-jquery-knob listed as dependency
[14:04:59] adaedra: this is A, right? And what is B?
[14:05:10] lxsameer: adaedra: but rails can't find it
[14:05:40] adaedra: and in the Gemfile.lock, rails-assets-jquery-knob is not listed under admin_lte-rails?
[14:05:51] adaedra: is the version listed for admin_lte-rails correct?
[14:05:59] ych_: has joined #ruby
[14:07:15] juanpablo_: has joined #ruby
[14:08:09] lxsameer: adaedra: version is correct but that gem is missing
[14:08:20] workmad3: has joined #ruby
[14:09:33] Rollabunna: has joined #ruby
[14:10:11] gwendall: has joined #ruby
[14:10:16] user1138: has joined #ruby
[14:10:46] user1138: has joined #ruby
[14:10:58] Iskarlar: has joined #ruby
[14:13:47] _tpavel: has joined #ruby
[14:14:09] countryHick: has joined #ruby
[14:14:26] SOLDIERz: jhass darix thx for the help with the soname! It worked great! :-) Saved my day! :-) No I could go happy in the weekend! Have nice weekend Guys! :-)
[14:15:20] startupality: has joined #ruby
[14:16:42] bonhoeffer: has joined #ruby
[14:18:08] SOLDIERz: adaedra hm?
[14:19:23] casadei_: has joined #ruby
[14:21:13] benlovell: has joined #ruby
[14:22:42] werelivinginthef: has joined #ruby
[14:22:55] lkba: has joined #ruby
[14:23:00] Phrogz: has joined #ruby
[14:23:21] decoponio: has joined #ruby
[14:23:32] prefixed: has joined #ruby
[14:24:45] banister: has joined #ruby
[14:27:01] linuxboytoo: has joined #ruby
[14:28:14] RegulationD: has joined #ruby
[14:28:26] CustosLimen: has joined #ruby
[14:29:11] kies^: has joined #ruby
[14:30:37] _whitelogger____: has joined #ruby
[14:31:12] ponga: has joined #ruby
[14:31:17] aphprentice_: has joined #ruby
[14:31:48] tjohnson: has joined #ruby
[14:32:05] TomyWork: i'm trying to "gem install rfusefs" and get "/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)". "gem install mkmf" says "ERROR: Could not find a valid gem 'mkmf' (>= 0) in any repository"
[14:32:56] Kruppe: has joined #ruby
[14:33:17] TomyWork: oh, looks like i needed to do "apt-get install ruby1.9.1-dev" first
[14:33:54] lele: has joined #ruby
[14:34:22] TomyWork: ...and libfuse-dev
[14:35:39] havenwood: has joined #ruby
[14:35:42] jcp: has joined #ruby
[14:36:10] Scripore: has joined #ruby
[14:36:37] abyss: has joined #ruby
[14:36:38] user1138: has joined #ruby
[14:36:39] d10n-work: has joined #ruby
[14:37:41] Kruppe: has joined #ruby
[14:37:54] krasnus: has joined #ruby
[14:38:34] tubuliferous: has joined #ruby
[14:38:47] Scriptonaut: hey guys, I have a somewhat generic question. To learn more about ruby I decided to write an irc bot. I can't think of any new features to implement. Here's the commands I've written so far. Since this is irc, I figured you guys might know some cool features to add: https://gist.github.com/robins35/eb45ad22f6ece1896692
[14:39:42] linuxboy_: has joined #ruby
[14:39:52] freerobby: has joined #ruby
[14:40:02] freerobby: has joined #ruby
[14:40:13] tennis_: has joined #ruby
[14:40:27] ych_: is there an rnn library in ruby? besides fann-ruby (doesn't have rnn) and tlearn (broken) ?
[14:41:11] tennis_: has joined #ruby
[14:42:47] hashrocket: has joined #ruby
[14:46:14] TomyWork: Scriptonaut you could always make it pass the turing test :)
[14:46:31] camilasan: has joined #ruby
[14:46:59] havenwood: I've failed that test. It's hard.
[14:47:10] havenwood: I'm not a bot!
[14:47:40] TomyWork: is that your bot, Scriptonaut?
[14:47:41] umgrosscol: has joined #ruby
[14:47:59] Scriptonaut: my bot isn't in here
[14:48:32] havenwood: Hi, I'm Scriptonaut's bot. Welcome to Ruby!
[14:49:02] Outlastsheep: Scriptonaut: !def (For definition retrieval), !syn (Synonyms), !ping, !roll ( [amount]d[dicenumber] ), !regex ( Simply matches the given string ), !calc/!eval (Evaluate mathematical sums)
[14:49:15] kies^: has joined #ruby
[14:49:20] Outlastsheep: For the first two there are probably Dictionary/Thesaurus API's.
[14:49:42] Outlastsheep: !random, !psuedorandom (Supply a number), !unix, !date, etc.
[14:49:50] Scriptonaut: what's !unix?
[14:49:54] Outlastsheep: A lot of these can just be the literal porting of standard Ruby methods.
[14:49:55] havenwood: Scriptonaut: !levenshtein
[14:50:09] Scriptonaut: !levenshtein?
[14:50:19] havenwood: ych_: Hmm..
[14:50:19] Outlastsheep: !yt/!youtube's a nice one too.
[14:50:26] Scriptonaut: I have that one
[14:50:35] havenwood: Scriptonaut: get the Levenshtein distance between two words
[14:50:37] Outlastsheep: I have !bench which basically benchmarks other IRC bots.
[14:50:54] Scriptonaut: These are the commands I have so far: https://gist.github.com/robins35/eb45ad22f6ece1896692
[14:51:01] Scriptonaut: The !imgur ones are by far the most popular
[14:51:11] Scriptonaut: I just added !js, for evaluating js, but it doesn't seem to be real js
[14:51:16] Scriptonaut: https://github.com/sstephenson/execjs
[14:51:19] Scriptonaut: using that gem
[14:51:19] Outlastsheep: !gis for Google-Image-Search.
[14:51:26] Scriptonaut: that's a good one
[14:51:48] Scriptonaut: that gem I'm using, apparently var is an unexpected token, along with semicolons
[14:51:56] Outlastsheep: !bible, !allah if you're in a religious chat.
[14:52:11] Scriptonaut: no religious people in this chat afaik
[14:52:18] Outlastsheep: !hash which returns MD5, SHA1 and SHA256 strings of whatever you gave.
[14:52:24] Scriptonaut: that's pretty cool
[14:52:26] Outlastsheep: !translate for Google-Translate.
[14:52:27] Scriptonaut: I will add that
[14:52:31] havenwood: Scriptonaut: SHA3!
[14:52:50] Outlastsheep: !choose arg1,arg2,arg3 and it'll randomly pick. That's a popular one.
[14:52:53] Scriptonaut: I was thinking of adding: !quote, to keep the chat's best quotes
[14:52:54] ych_: havenwood, any idea?
[14:53:03] Scriptonaut: these are all great ideas so far thanks guys
[14:53:04] Outlastsheep: Normally it's used like: .ch procrastinate,work,sleep
[14:53:08] Outlastsheep: And the bot returns a random one.
[14:53:25] Outlastsheep: Nice for queries like "!ch Put tabasco in tea, What is wrong with you?"
[14:53:47] maloik: make sure it never chooses work or no one will like your bot
[14:54:06] Outlastsheep: Oh, and !ud for Urban Dictionary. !hats for TF2 hats. !wolframalpha and !wiki are musthaves.
[14:54:09] havenwood: ych_: I'm running into C-ext errors with tlearn. I actually don't know of an alternative rnn gem but interesting thing to look into.
[14:54:22] Scriptonaut: I wouldn't mind a haskell compiler
[14:54:31] Scriptonaut: for clever one liners
[14:54:33] havenwood: Scriptonaut: Wolfram API would be a very nice addition.
[14:54:38] Scriptonaut: I'll add that
[14:54:52] Outlastsheep: If you could embed Lua: most of those functions'd take less than a few lines.
[14:54:59] Outlastsheep: But that's another language.
[14:55:23] Scriptonaut: Writing features in ruby so far has been effortless
[14:55:26] tennis_: has joined #ruby
[14:55:28] Scriptonaut: most features I knock out in 20 minutes
[14:55:29] gizmore: has joined #ruby
[14:56:00] Scriptonaut: using activerecord and activesupport without rails has been cool too
[14:56:21] Scriptonaut: Everyone has been telling me to use that
[14:56:27] Outlastsheep: My general Ruby code can use some improvement.
[14:56:27] Scriptonaut: nothing but praise for it so far
[14:56:53] Scriptonaut: I'm primarily a rails dev, so I took this project on to imporve my general ruby
[14:57:11] Outlastsheep: Is RoR very different from Ruby?
[14:57:17] Scriptonaut: quite a bit ya
[14:57:38] Scriptonaut: I mean it's made from Ruby, but there's quite a bit additional stuff you have to learn
[14:57:43] Scriptonaut: lots of convention/magic
[14:57:57] Outlastsheep: I'll look into it soonish.
[14:58:01] Outlastsheep: Anyways, I have dinner now.
[14:58:08] Scriptonaut: alright, thanks for the advice
[14:58:17] mleung: has joined #ruby
[14:58:21] Outlastsheep: You're welcome o/ Good luck with your bot.
[14:58:30] Bish: is there something like activerecord, without rails, which works with an existing database?
[14:58:40] TomyWork: !bible Lev25:39
[14:58:44] Rinzlit: Wait should I learn ruby before trying to learn ruby on rails?
[14:58:45] Bish: im fed up with creating sql queries
[14:58:45] TomyWork: where's your bot? :)
[14:58:46] segfalt: has joined #ruby
[14:58:58] Scriptonaut: in a private channel ;)
[14:59:03] jhass: Bish: sequel ?
[14:59:19] Scriptonaut: it's probably not appropriate for this channel
[14:59:26] Scriptonaut: people have added many nsfw !imgur commands
[14:59:31] Bish: jhass, looks good
[15:00:01] TomyWork: what's an easy way to autorestart your script when it's changed? it's a fuse filesystem
[15:00:13] jhass: TomyWork: guard
[15:00:34] jhass: probably guard-shell or whatever the generic plugin was
[15:00:45] jamto11: has joined #ruby
[15:00:46] jhass: if it's a rack app shotgun
[15:01:03] TomyWork: it's a 14-line ruby script
[15:01:25] TomyWork: extension .rb, mod 755, with a shebang. that's about it :)
[15:01:35] tubuliferous: has joined #ruby
[15:01:37] schaerli: has joined #ruby
[15:01:43] shevy: under kde3, I was able to get a .rb file to restart via dcop; sadly they removed dcop, and I have not found out how to do this via qdbus
[15:01:49] havenwood: Rinzlit: Yes, learn Ruby!
[15:02:31] Rinzlit: Oh okay okay thank you havenwood
[15:03:29] adaedra: havenwood ?? Sequel! ??? Stop copying me!
[15:03:46] Rollabunna: has joined #ruby
[15:03:51] havenwood: adaedra: Stop reading my mind before I type things.
[15:05:23] JoshL: has joined #ruby
[15:05:28] DaniG2k: has joined #ruby
[15:05:47] adaedra: you don't have a mid firewall?
[15:06:09] baroquebobcat: has joined #ruby
[15:06:47] havenwood: adaedra: Nope, unfiltered.
[15:06:49] DaniG2k: Hello all. I'm making a small ruby gem. When I run the following code: File.open('db/index.json', 'w') {|f| f.write(tokens)} I am getting an error saying Errno::ENOENT: No such file or directory @ db/index.json
[15:07:02] DaniG2k: why won't it just create the file?
[15:07:11] adaedra: &ri File.open
[15:07:11] `derpy: http://www.rubydoc.info/stdlib/core/File#open-class_method
[15:07:28] DaniG2k: ah maybe I need to create the db dir first -_- silly me
[15:07:56] DaniG2k: is it a bad idea to create a text file from a gem?
[15:08:07] withnale__: has joined #ruby
[15:08:10] DaniG2k: it will contain a small index in json format
[15:08:37] jhass: it's a bad idea to do it relative to the working directory
[15:08:57] DaniG2k: jhass: how can I do it properly?
[15:09:06] DaniG2k: ok it worked now that I made the db directory
[15:09:10] jhass: well, we've been there before
[15:09:14] djstorm: has joined #ruby
[15:09:16] DaniG2k: jhass: sorry -_-
[15:09:22] jhass: you write a gem for usage in a rails app, use Rails.root
[15:09:49] jhass: or better yet default to that but make it configurable
[15:10:11] DaniG2k: jhass: NameError: uninitialized constant Rails
[15:10:20] DaniG2k: its because this is a gem that calls Railties
[15:10:24] al2o3-cr: has joined #ruby
[15:10:28] DaniG2k: I don't want to make an engine because Engines are nightmares
[15:10:37] DaniG2k: I can barely setup rspec in a Rails Engine
[15:10:41] jhass: I'm sure there's a way of doing it with a Railtie
[15:10:47] jhass: you just need the proper hook
[15:11:09] ljarvis: yeah if this is a rails gem if you should a rails engine
[15:11:23] decaff: has joined #ruby
[15:11:45] DaniG2k: jhass: maybe this http://stackoverflow.com/questions/11263192/how-do-i-get-the-root-directory-of-a-rails-app-in-a-gem
[15:12:08] Yzguy: has joined #ruby
[15:12:10] jhass: looks legit
[15:12:11] _blizzy_: has joined #ruby
[15:13:19] DaniG2k: hmm doesnt work: require 'rankrb' (true)
[15:13:25] DaniG2k: NameError: uninitialized constant Rails
[15:13:25] jamto11_: has joined #ruby
[15:13:48] jhass: doesn't look like you do it properly if it accesses it on require
[15:14:58] dblessing: has joined #ruby
[15:15:48] DaniG2k: god this is painful -_-
[15:16:28] DaniG2k: ah maybe I need to call this from within a Rails app
[15:16:40] DaniG2k: which then means that I can't actually test the gem individually
[15:17:22] tkuchiki: has joined #ruby
[15:17:33] beneggett: has joined #ruby
[15:17:48] lampd1: has joined #ruby
[15:18:15] jhass: well, Rails.root is easily faked for testing purposes if that's all
[15:18:46] jhass: require "pathname"; module Rails; def self.root; Pathname.new("fake_app/"); end; end; in your spec_helper or whatever
[15:19:17] axl__: has joined #ruby
[15:20:22] _blizzy_: has joined #ruby
[15:21:23] cmisenas: has joined #ruby
[15:21:40] volhit: has joined #ruby
[15:22:57] apt-get_: has joined #ruby
[15:23:11] EminenceHC: has joined #ruby
[15:23:21] volhit: has joined #ruby
[15:23:55] ixti: has joined #ruby
[15:24:54] phutchins: has joined #ruby
[15:25:11] rcvalle: has joined #ruby
[15:25:20] DaniG2k: jhass: ok I have Rails.root from within a dummy Rails app
[15:25:40] DaniG2k: jhass: would the path then be Rails.root + '/db/myfile' ?
[15:25:47] elektronaut: has joined #ruby
[15:25:51] jhass: Rails.root.join("db/foo")
[15:25:55] Trieste: has joined #ruby
[15:25:55] Trieste: has joined #ruby
[15:26:00] phrozen77: has joined #ruby
[15:26:12] drPoggs: has joined #ruby
[15:26:15] soahccc: has joined #ruby
[15:26:37] DaniG2k: jhass: you're a legend
[15:26:59] gogo: has joined #ruby
[15:27:27] al2o3-cr: has joined #ruby
[15:27:51] bauruine: has joined #ruby
[15:27:53] quimrstorres: has joined #ruby
[15:28:12] nzst: has joined #ruby
[15:29:24] adaedra: .join('db', 'foo'), rather, no?
[15:29:37] jhass: doesn't make too much of a difference :P
[15:30:05] tbuehlmann: the filesystem's file separator will be used then, right?
[15:30:22] ljarvis: obviously the popular os' all support forward slashes, though
[15:30:22] tbuehlmann: but yeah, I'm a fan of multiple arguments there, too
[15:30:54] DaniG2k: went with multiple args
[15:31:06] icebourg: has joined #ruby
[15:31:15] snockerton: has joined #ruby
[15:31:26] rickmasta: has joined #ruby
[15:32:22] prefixed: has joined #ruby
[15:33:50] DaniG2k: its weird but
[15:33:52] devoldmx: has joined #ruby
[15:34:50] DaniG2k: I'd have made an engine but configuring a Rails module to use rspec is much harder than I'd anticipated
[15:34:58] DaniG2k: and my tests are all in rspec now
[15:35:14] Igorshp: Hi guys, i have a massive directory (52gb) and trying to find a fast way to get a list of all files in ruby. "ls(path)" is taking 41 minutes
[15:35:22] Igorshp: are there any quicker alterinatives?
[15:35:38] bricker: has joined #ruby
[15:35:50] nzst: Igorshp: how long does ls take outside of ruby?
[15:36:08] ljarvis: Igorshp: don't use Ruby for it
[15:36:17] ljarvis: I'm afraid it's just not going to be fast
[15:36:21] abdulrehman: is there any difference, between some_array.each do end and some_array.each {}
[15:36:30] ljarvis: abdulrehman: no
[15:36:33] Igorshp: nzst: sec, i'll try
[15:36:38] DaniG2k: Igorshp: I'm not 100% sure but using backticks (i.e.: `ls /your/dir/`) might execute it in a shell rather than in Ruby
[15:36:41] DaniG2k: might be faster
[15:37:25] adaedra: you'll assemble a huge list of files into memory
[15:37:32] ljarvis: no, but it's not very helpful (presumably they want an array of files which means they'll need to split the output)
[15:38:17] ivanskie: has joined #ruby
[15:38:40] ljarvis: Dir.foreach would probably be fine
[15:38:50] adaedra: At this rate, I'd search a way of not assembling the list but doing the work directly
[15:39:06] ljarvis: yeah I think foreach won't build the list
[15:39:08] Kyuujitsu: has joined #ruby
[15:39:18] abdulrehman: ljarvis: thanks,
[15:39:39] ljarvis: right yeah, foreach doesn't eager load and return an array so that's the best option
[15:40:19] ljarvis: also, Find.find if you want super recursive winning
[15:40:24] Soda: has joined #ruby
[15:40:54] Igorshp: ljarvis: just realised that ls() is not native to ruby, found the underlying code it's "Dir.entries(path)"
[15:41:20] bluOxigen: has joined #ruby
[15:41:31] ivanskie: has joined #ruby
[15:41:58] Vile`: has joined #ruby
[15:42:24] baweaver: has joined #ruby
[15:42:39] ljarvis: Igorshp: yeah that's going to be slow and memory hungry, what exactly are you trying to do?
[15:42:51] Igorshp: this is part of opensource package
[15:43:00] shtirlic: has joined #ruby
[15:43:06] ljarvis: ok that tells me absolutely nothing
[15:43:22] Igorshp: it's getting list of all files, then subtracts ones it modifies. the remaining list is purged
[15:43:30] Igorshp: basicaly removes all non-managed files
[15:43:52] ljarvis: why do you have a 50+ gb directory? or is that just to test that it works on huge directories?
[15:44:23] Igorshp: it's jenkins install with all our jobs, builds and releases :)
[15:45:05] ljarvis: can't you do this in a shell script?
[15:46:18] Igorshp: as i said, it's a function inside an opensource project
[15:46:34] Igorshp: i dont even need to purge the files, but it does this diff eveyr time
[15:47:02] konsolebox: has joined #ruby
[15:47:38] Igorshp: i could change it so it only does the diff if the purge flag is set, but the actuall diff would still take ages on large machines
[15:47:47] Igorshp: idealy it could be optimised
[15:48:32] Igorshp: just checked 'ls -R /path' takes 5.3 minutes in shell
[15:49:54] ljarvis: Igorshp: I believe what you're doing is probably fundamentally flawed so I don't have any suggestions for optimising it. It's never going to be fast because it's a bad idea
[15:49:54] Igorshp: that woudl be acceptable time
[15:50:12] DCameronMauch: has joined #ruby
[15:50:47] Igorshp: any suggestions how to easily delete all files but ones in a short list?
[15:50:56] RobertBirnie: has joined #ruby
[15:52:03] ljarvis: use Dir.entries to loop and then check each file against an array, if it's not in the array then delete it
[15:52:14] ljarvis: s/array/set/
[15:52:18] rehat_: has joined #ruby
[15:52:53] Igorshp: hmm, i wonder if dir.entries works with a block
[15:52:54] blueOxigen: has joined #ruby
[15:53:03] casadei_: has joined #ruby
[15:53:09] ljarvis: er I meant Dir.foreach not Dir.entries sorry
[15:53:28] ljarvis: Dir.foreach *is* Dir.entries with a block (and it doesn't build a giant array)
[15:53:52] Igorshp: ok, yeah, that makes a lot more sense
[15:54:00] Igorshp: i'll give it a quick try
[15:54:32] ljarvis: Dir.foreach { |f| File.unlink(f) unless keep.include?(f) || f == "." || f == ".." } # or something
[15:55:17] mdavid613: has joined #ruby
[15:55:51] nzst: Igorshp: another channel suggested glob(3) or a directory walk (twb in #emacs)
[15:56:19] Igorshp: hmm, interesting
[15:56:36] poguez_: has joined #ruby
[15:56:48] bonhoeffer: has joined #ruby
[15:56:48] Igorshp: nzst: i think just not having to build the massive array and only walking through it once would give a sizable improvement
[15:56:55] Igorshp: trying that aproach now
[15:57:09] mister_solo: has joined #ruby
[15:57:40] Cache_Money: has joined #ruby
[15:57:40] ljarvis: Igorshp: if you need it to work recursively I would look at Find.find
[15:57:45] ljarvis: &ri Find.find
[15:57:45] `derpy: http://www.rubydoc.info/stdlib/find/Find#find-class_method
[15:58:04] Rollabunna: has joined #ruby
[15:58:20] mleung: has joined #ruby
[15:58:46] theery: has joined #ruby
[15:59:20] _seanc_: has joined #ruby
[15:59:30] imperator: has joined #ruby
[15:59:34] imperator: good morning
[15:59:41] jgpawletko: has joined #ruby
[15:59:47] Igorshp: ljarvis: thanks
[15:59:49] khebbie: has joined #ruby
[15:59:54] blue_deref: has joined #ruby
[15:59:55] imperator: got a rexml <-> nokogiri compatibility issue i'm hoping someone can help me with
[16:00:07] jhass: drop rexml :P
[16:00:15] krz: has joined #ruby
[16:00:21] NeverDie: has joined #ruby
[16:00:45] imperator: jhass, i'm trying!
[16:00:47] imperator: https://gist.github.com/djberg96/2250dbb30effb4ea4899
[16:00:59] schaerli: has joined #ruby
[16:01:00] apt-get_: has joined #ruby
[16:01:28] shevy: anyone of you knows a popular gem that defines either class Ruby or module Ruby? topnamespace
[16:01:50] ljarvis: imperator: root.elements.find { |e| e.name == "c" }
[16:01:54] grios: has joined #ruby
[16:01:55] jhass: imperator: ndoc.at("c")
[16:02:04] ljarvis: not the same thing
[16:02:43] ljarvis: if you can use search selectors you definitely should
[16:02:44] jhass: well, root.at("/c") if it matters
[16:03:00] ljarvis: .elements is often incorrect
[16:03:05] ljarvis: especially when filtering
[16:03:20] jhass: (or was it "./c"? I never remeber if / goes back to the root)
[16:03:47] ljarvis: actually neither of them will work for this situation
[16:03:51] ljarvis: your first one was right
[16:04:00] imperator: has to work with both
[16:04:23] ljarvis: you want api compatibility?
[16:04:26] imperator: yeah, so, they've got some code here where the xml parser is pluggable
[16:04:29] jhass: ndoc.root.at("./c") will work, just tried
[16:04:42] pietr0: has joined #ruby
[16:04:45] linuxboytoo: has joined #ruby
[16:04:48] imperator: so, you can specify :nokogiri, :rexml, etc
[16:04:48] ljarvis: oh I misread .root
[16:04:56] ljarvis: imperator: that's an awful idea
[16:05:09] imperator: ljarvis, i'm just dealing with the hand i was dealt ;)
[16:05:23] ljarvis: imperator: ok so, my first suggestions will do what you want
[16:05:23] jhass: ACTION hands imperator a machete
[16:05:31] ljarvis: but it's slow and terrible so there's that
[16:05:41] curses: has joined #ruby
[16:06:15] bonhoeffer_: has joined #ruby
[16:07:06] polpak: has joined #ruby
[16:07:32] jhass: imperator: so you're handed some object and it's either an REXML::Document or an Nokogiri::Document and you don't know which it is?
[16:07:36] michaeldeol: has joined #ruby
[16:08:00] dawkirst: has joined #ruby
[16:08:03] jhass: what a terrible idea
[16:08:17] imperator: looks like rexml returns a plain string, while nokogiri returns an object - but it does work, thanks
[16:08:33] imperator: we'll see if this works
[16:08:37] amclain: has joined #ruby
[16:08:45] jhass: I'd ponder case doc; when Nokogiri::Document; NokogiriParser.new(doc); when REXML::Document; REXMLParser.new(doc); end;
[16:08:58] ljarvis: when REXML::Document; exit!
[16:09:00] j4cknewt: has joined #ruby
[16:09:35] jhass: when REXML::Document; "42"; # works here;
[16:09:42] Rollabunna: has joined #ruby
[16:09:57] imperator: oh,nm, rexml does return an Element, output tricked me
[16:10:00] ljarvis: when REXML::Document; require 'nokogiri'; Nokogiri.XML(doc.to_s)
[16:10:10] dfockler: has joined #ruby
[16:10:17] imperator: you guys crack me up
[16:10:39] imperator: believe me, i'd love to see rexml ripped out of here permanently
[16:11:05] quimrstorres: has joined #ruby
[16:11:07] jhass: that last one is actually considerable :P
[16:11:28] imperator: unfortunately i think it would break other bits of the codebase
[16:11:51] imperator: i'm just going to worry about my piece for now
[16:12:05] Igorshp: ljarvis: wow, just changing from Dir.entries() to Find.find() and not touching ANYTHING else: time went down from 618 to 30 seconds
[16:12:19] mdavid613: has joined #ruby
[16:12:23] ljarvis: yep sounds about right
[16:12:34] willharrison: has joined #ruby
[16:12:39] imperator: ACTION should revisit file-find
[16:12:40] khebbie: has joined #ruby
[16:13:09] christiandsg: has joined #ruby
[16:13:23] imperator: ljarvis, jhass, thanks for your help
[16:14:07] withnale___: has joined #ruby
[16:14:25] impalle: has joined #ruby
[16:14:48] TeresaP: has joined #ruby
[16:15:35] ogpastaling: has joined #ruby
[16:15:59] Igorshp: ljarvis: thanks for your help!
[16:16:09] TeresaP: Alright, I'm being dumb about Hashes again. What are you guys' favorite tutorials for creating Hashes beside the ruby-doc.org site. I need some more visual examples of adding elements to Hashes.
[16:16:55] imperator: TeresaP, what language(s) are you coming from? perl perhaps?
[16:16:58] jhass: {foo: bar}, {foo => bar}, some_hash[foo] = bar
[16:17:05] TeresaP: imperator C#
[16:17:10] jhass: are there any variants I missed?
[16:17:21] TeresaP: But truthfully I never had reason to use Hashes before
[16:17:26] TeresaP: Or at least, i didn't know I did
[16:17:28] imperator: jhass, Hash.new :)
[16:17:33] leesharma: has joined #ruby
[16:17:37] Igorshp: ljarvis: do you know of any downsides of using Find.find() compared to Dir.entries()?
[16:17:45] jhass: imperator: "adding elements to", not "create a new"
[16:17:53] ljarvis: Igorshp: not if you need what Find.find provides
[16:17:54] Igorshp: i'm wondering whetehr that switch can be made global for the project
[16:18:02] MasterPiece: has joined #ruby
[16:18:02] TeresaP: Basically, I get the simple cases
[16:18:06] ljarvis: Igorshp: well, they obviously do 2 different things
[16:18:10] [Butch]: has joined #ruby
[16:18:18] TeresaP: I'm trying to match a particular format defined by another developer
[16:18:29] TeresaP: the keys are repeated
[16:18:36] TeresaP: I'm just missing something obvious
[16:18:51] jhass: got some example?
[16:19:36] TeresaP: http://pastie.org/10322443
[16:19:42] umgrosscol: has joined #ruby
[16:19:55] TeresaP: As I read in some source data, I need to generate a file like that
[16:20:07] ljarvis: i'm off, see ya
[16:20:09] TeresaP: But it's incremental
[16:20:11] jhass: TeresaP: that's an array ([]) containing two hashes ({})
[16:20:37] TeresaP: See I knew it would be obvious
[16:20:46] jhass: or actually it's JSON I guess, so an array containing two JSON objects
[16:20:49] TeresaP: So I just need to create a new hash each time and append it to the array
[16:21:03] TeresaP: Thank you!
[16:21:11] TeresaP: I don't know why it's tripping me up so bad
[16:22:09] jhass: it's okay, if you come from something like C# the array & hash centric data handling in languages like Ruby & Python can take a while to get used to
[16:23:47] kfpratt: has joined #ruby
[16:24:09] TeresaP: I'll get there. Just need to sit down and pour over it for a bit, I think.
[16:24:18] jesseherrick: has joined #ruby
[16:25:18] TeresaP: I still haven't quite been able to let go of calling functions with this(format)
[16:26:21] Igorshp: weird, Dir.entries is non recursive. i wonder why it takes so long then
[16:26:26] mleung: has joined #ruby
[16:27:13] DCameronMauch: has joined #ruby
[16:27:38] devoldmx: has joined #ruby
[16:27:38] jhass: Igorshp: because it allocates an array in addition to all the strings
[16:27:42] chadwtaylor: has joined #ruby
[16:27:46] jhass: allocation is expensive as hell
[16:27:48] kresk: has joined #ruby
[16:28:06] podman: has joined #ruby
[16:28:09] shevy: we need fruby... fast ruby
[16:28:18] adaedra: you mean c?
[16:28:21] jhass: shevy: you mean crystal or jruby 9k?
[16:28:21] adaedra: ACTION runs
[16:28:33] Igorshp: jhass: somehow runnign the same command in irb is lighting fast, but when the project does it's painfuly slow
[16:28:46] jhass: seems unlikely
[16:28:48] Hanmac: has joined #ruby
[16:28:54] jhass: or somebody did something really stupid
[16:29:11] Igorshp: aaarhrhH!!
[16:29:12] jhass: check if Dir.method(:entries).source_location inside the project still returns nil :P
[16:29:29] Igorshp: yes, the ls() function is defined in 2 places.... i was looking at the wrong one
[16:30:15] imperator: damn, root.attributes returns a value in rexml, but nokogiri returns a custom object
[16:30:20] eam: Igorshp: are you just calling Find.find() and not using the enumerator?
[16:30:21] Igorshp: http://pastebin.com/1MK46UkQ
[16:30:22] ruboto: Igorshp, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7869d02664efff2b3023
[16:30:22] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:30:31] Igorshp: that's the slow function
[16:30:43] eam: because the reason it's slow in that case isn't the array allocation -- it's that you're not accessing the disk at all
[16:30:51] jhass: yes, I can see why it would be
[16:31:23] imperator: we need a common xml interface or something
[16:31:28] eam: the allocation of ruby datastructures is probably insignificant compared to the cost of interacting with the filesystem
[16:31:33] imperator: they're doing that for json i think
[16:31:35] Channel6: has joined #ruby
[16:31:44] eam: there's a few orders of magnitude difference there
[16:31:47] jhass: JSON API? that's not code level
[16:32:04] jhass: and I think we need a sane XML API and still haven't found it really
[16:32:14] jhass: so standardizing would kinda harm innovation a bit there
[16:32:26] hololeap: has joined #ruby
[16:32:45] jhass: but use my first case when suggestion then, just provide domain specific accessors, gimme_c, gimme_cs_foo_attribute
[16:33:21] pauly_oc: has joined #ruby
[16:33:24] attamusc: has joined #ruby
[16:33:46] pengin: has joined #ruby
[16:33:49] imperator: jhass, there was some formalization effort for json, can't remember the details now
[16:34:10] benlieb: has joined #ruby
[16:34:27] hinbody: has joined #ruby
[16:34:45] jhass: imperator: json schema for basically XSD's for JSON and JSON API for standardizing data description
[16:34:59] jhass: http://jsonapi.org/
[16:35:35] jhass: but neither has anything to do with code level APIs
[16:37:54] MatthewsFace: has joined #ruby
[16:38:11] lidenbrock: has joined #ruby
[16:38:18] christiandsg: has joined #ruby
[16:38:43] Igorshp: so yeah, getting full list of files is actually rather fast. looping through 1.8 million of them to see if the name matches '.' or '..' takes a little longer...
[16:38:56] jamto11_: has joined #ruby
[16:39:05] Trynemjoel: has joined #ruby
[16:39:38] Guest80: has joined #ruby
[16:39:56] eam: I would expect the opposite
[16:40:12] Kyuujitsu: has joined #ruby
[16:40:42] zz_barkerd427: has joined #ruby
[16:40:51] eam: Igorshp: show code?
[16:41:05] Igorshp: 10 seconds to do Dir.glob()
[16:41:09] Igorshp: it's just above, 1 sec
[16:41:17] Igorshp: https://gist.github.com/7869d02664efff2b3023
[16:41:41] KC9YDN: has joined #ruby
[16:41:41] KC9YDN: has joined #ruby
[16:42:49] eam: Igorshp: pattern matching 1.8m strings on my system takes around one second
[16:43:08] eam: it should take at least ten times that long to read 1.8m dirents
[16:43:12] Igorshp: it's currently doing the reject! step ..malreayd for about 4-5 minutes
[16:43:23] towski_: has joined #ruby
[16:43:27] rideh: has joined #ruby
[16:43:59] curses: has joined #ruby
[16:44:05] chills42: has joined #ruby
[16:44:19] Igorshp: ok, done, 8 minutes to do the reject! step
[16:45:29] curses: has joined #ruby
[16:45:40] Igorshp: and another 1.6 seconds to do the map step
[16:45:52] Igorshp: 1.6 minutes
[16:46:52] prestorium: has joined #ruby
[16:47:35] psy: has joined #ruby
[16:49:05] mikecmpbll: has joined #ruby
[16:49:08] eam: Pathname is really slow, you're probably better served with a regex
[16:49:16] dgutierrez1287: has joined #ruby
[16:49:27] eam: something like /\/\.\.?$/
[16:49:50] eam: I think reject! might be screwing you too, it's probably faster to just reject
[16:50:07] omegamike: has joined #ruby
[16:50:10] segfalt: has joined #ruby
[16:50:27] eam: yeah it's MUCH faster to just use reject and allocate a new array
[16:51:05] eam: reject! probably has to reorder all elements for every deletion, so o(n^2) vs o(n) for just reject
[16:51:43] Jackneill: has joined #ruby
[16:52:04] cnngimenez: has joined #ruby
[16:52:11] malconis: has joined #ruby
[16:53:24] eam: Igorshp: in general, the time it takes to process filenames should be much smaller than the time it takes to fetch them from the system
[16:53:32] rakm: has joined #ruby
[16:53:44] Igorshp: eam: that's not what i'm seeing
[16:54:09] psye: has joined #ruby
[16:54:11] eam: Igorshp: I know, but did you try the fixes I suggested?
[16:54:28] eam: you're using some very inefficient algorithms
[16:54:38] jimms: has joined #ruby
[16:54:58] gregf: has joined #ruby
[16:54:59] Igorshp: what's the differnece between reject and reject!
[16:55:03] Hanmac: Igorshp: why using Pathname.new(name).basename().to_s when you can use File.basename() ?
[16:55:18] eam: reject! removes items in place, reject returns a new Array
[16:55:32] eam: the removal of array items in place is MUCH slower than just constructing a new array
[16:55:37] Trynemjoel: has joined #ruby
[16:55:45] eam: because every element of the array must be copied for every deletion (probably)
[16:56:02] eam: I just ran a test using 1.8 million strings and reject takes 14 seconds
[16:56:11] eam: reject! is still running, has been for minutes
[16:56:11] huko_: has joined #ruby
[16:56:18] gwendall: has joined #ruby
[16:56:22] quimrstorres: has joined #ruby
[16:56:25] eam: o(n) vs o(n^2)
[16:56:45] Igorshp: interesting, i'll give that a try
[16:57:01] eam: Igorshp: https://gist.github.com/eam/31c21abf09b8e3c722bf
[16:57:37] mxrguspxrt: has joined #ruby
[16:57:46] eam: hanmac's suggestion re: the code inside the match is good, or just use a single regex to filter, but I think this represents most of your issue
[16:58:00] huko_: has joined #ruby
[16:58:32] juanpablo__: has joined #ruby
[16:59:30] eam: reject! would be faster than reject if it rejected zero elements :)
[16:59:45] fantazo: has joined #ruby
[16:59:45] pengin: has joined #ruby
[16:59:48] eam: but since you're walking a tree you're gonna have . and .. pretty often throughout your dataset
[17:00:12] jtdoncas: has joined #ruby
[17:00:34] paulcsmith_: has joined #ruby
[17:00:39] shadoi: has joined #ruby
[17:00:50] jamto11: has joined #ruby
[17:01:10] juanpablo___: has joined #ruby
[17:01:40] linuxboytoo: has joined #ruby
[17:02:08] schaerli: has joined #ruby
[17:02:11] eam: I killed that example, it didn't finish after 7 minutes. but with a 100k element dataset reject takes 0.5s and reject! takes 5.5s
[17:02:18] linuxboytoo: has joined #ruby
[17:02:27] eam: and it does appear to scale by n^2
[17:03:20] bronson: has joined #ruby
[17:03:32] sgambino: has joined #ruby
[17:04:05] khebbie: has joined #ruby
[17:04:39] Igorshp: eam: wow... i've tried 'reject' and it's lighting fast now
[17:04:43] Igorshp: that step takes 6-7 seconds
[17:04:58] Igorshp: down from 650
[17:05:16] eam: Igorshp: generally in ruby you ignore the internals of what's going on, but sometimes when the dataset gets big it begins to matter a lot :)
[17:05:18] Igorshp: that's awesome, thank you
[17:05:37] Igorshp: the last map step is still taking 1.5 minutes
[17:05:45] Igorshp: but in comparison to the rest it's relatively negilble :)
[17:05:51] christiandsg: has joined #ruby
[17:06:09] Igorshp: 'files.map {|f| Chef::Util::PathHelper.cleanpath(f)}'
[17:06:26] eam: Igorshp: cleanpath probably touches the filesystem
[17:06:51] jtdoncas: has joined #ruby
[17:06:55] eam: there are two kinds of path cleanup, pure lexical (which is pretty limited) and full canonicalization (which needs to walk each path element)
[17:07:00] rdark: has joined #ruby
[17:07:09] Igorshp: i'll check
[17:07:26] eam: though 1.5 minutes is pretty fast for the latter so maybe it's just a slow implementation of the former
[17:07:31] juanpablo___: has joined #ruby
[17:08:44] eam: the other thing you might want to keep in mind is that when you're testing this, you're probably getting all your file metadata preloaded in the vfs cache -- this could be significantly slower on first-run
[17:08:54] eam: the difference of stat() fetching data from disk vs memory/cache
[17:09:37] attamusc: has joined #ruby
[17:10:22] Igorshp: eam: https://gist.github.com/Igorshp/52dbfe887e029cb6b671
[17:11:02] leafybasil: has joined #ruby
[17:11:06] phutchins: has joined #ruby
[17:11:20] Igorshp: eam: doca say it doesn't access filesystem
[17:11:31] eam: ok so that's a pure lexical cleanup if you're using a new enough ruby
[17:11:46] eam: Igorshp: consider_symlink used to be true
[17:11:50] eam: (by default)
[17:12:06] eam: what ruby version?
[17:12:13] Igorshp: actually reading that part righ tnow
[17:13:03] The_Phoenix: has joined #ruby
[17:13:28] The_Phoenix: has joined #ruby
[17:13:36] werelivi_: has joined #ruby
[17:13:59] that1guy: has joined #ruby
[17:13:59] Igorshp: eam: ruby 2.1.4p26
[17:14:17] bnizzle: has joined #ruby
[17:14:21] jimms: has joined #ruby
[17:14:55] eam: ah wait I lied, it hasn't changed
[17:15:01] eam: yeah this never touches the fs, it's just slow
[17:15:56] eam: I was thinking of fixing the .. bug, but it looks like that fix was rejected so ruby just does the wrong thing by default https://bugs.ruby-lang.org/issues/7401
[17:16:07] rippa: has joined #ruby
[17:16:39] drewo: has joined #ruby
[17:16:59] eam: (which btw means cleanpath can result in invalidating your paths)
[17:17:28] Kyuujitsu: has joined #ruby
[17:17:49] Iskarlar: has joined #ruby
[17:18:19] juanpablo____: has joined #ruby
[17:18:47] centrx: has joined #ruby
[17:19:34] vickleton: has joined #ruby
[17:19:53] Igorshp: hmmm, do you ahve any suggestions for an alternative by any chance?
[17:20:01] kirun: has joined #ruby
[17:20:18] eam: if you set consider_symlink=true it becomes safe
[17:20:24] eam: (not faster, but safe)
[17:20:51] eam: you probably don't need to do path cleanup at all, though
[17:20:52] DexterLB: has joined #ruby
[17:21:05] Mon_Ouie: has joined #ruby
[17:21:06] eam: I'd suggest omitting that entire step unless you have a specific reason for it
[17:21:25] Igorshp: hmm, i'll compare the output and see what it acutally does
[17:21:42] eam: since you're not doing symlink resolution (by walking each path element) the path cleanup should have no effect at all
[17:21:45] lannonbr: has joined #ruby
[17:22:06] eam: (it'd be useful for other filename sources, say user input)
[17:22:31] dfockler: has joined #ruby
[17:22:35] JoshL: has joined #ruby
[17:24:18] triangles2: has joined #ruby
[17:24:56] djbkd: has joined #ruby
[17:25:17] msnyon: has joined #ruby
[17:25:23] ndrei: has joined #ruby
[17:26:56] gambl0re: has joined #ruby
[17:28:31] gwendall: has joined #ruby
[17:29:10] j4cknewt_: has joined #ruby
[17:29:14] JoshL: has joined #ruby
[17:30:57] jamto11: has joined #ruby
[17:31:33] postmodern: has joined #ruby
[17:33:00] Kully3xf: has joined #ruby
[17:33:06] theery: has joined #ruby
[17:34:08] leat1: has joined #ruby
[17:34:44] devoldmx: has joined #ruby
[17:35:41] abyss: has joined #ruby
[17:36:30] Igorshp: eam: actually, it could be running on ruby 1.9.3
[17:37:54] davejlong: has joined #ruby
[17:37:54] Igorshp: eam: doing random samples from 1.8kk files... it does not appear that cleanpath() does anything at all
[17:38:58] bluOxigen: has joined #ruby
[17:39:09] Trynemjoel: has joined #ruby
[17:40:12] that1guy: has joined #ruby
[17:40:27] Igorshp: eam: gotta wrap up for the day. Thank you very very much once again!
[17:40:55] jhass: has joined #ruby
[17:41:39] moshee: has joined #ruby
[17:41:41] blaines: has joined #ruby
[17:42:09] casadei_: has joined #ruby
[17:42:10] Rollabunna: has joined #ruby
[17:43:17] Iskarlar: has joined #ruby
[17:43:20] Rollabun_: has joined #ruby
[17:43:52] eggoez: has joined #ruby
[17:44:01] Rollabun_: has joined #ruby
[17:45:29] eam: Igorshp: nice, np!
[17:46:07] user1138: has joined #ruby
[17:46:46] bnizzle: has left #ruby: ()
[17:47:17] j4cknewt: has joined #ruby
[17:48:30] crdpink2: has joined #ruby
[17:48:59] astrobunny: has joined #ruby
[17:50:38] barw: has joined #ruby
[17:52:18] Igorshp: damn, the total chef run went down from 2600 seconds to 242 just from the above change. The best i could ever get it down to was 9 minutes
[17:52:27] user: has joined #ruby
[17:52:30] barw: hello, i'm trying to istall json and get this error http://paste.ubuntu.com/11974664/ can someone help
[17:53:09] Igorshp: but as jenkins builds more and more the runs were slowing down
[17:53:11] Igorshp: so happy :)
[17:53:48] centrx: bar_, Looks like JSON 1.8.0 is from March 2013, it's possible Ruby 2.2.2 header files are incompatible with it
[17:54:19] centrx: bar_, https://github.com/flori/json/issues/229
[17:54:29] User716: has joined #ruby
[17:54:49] barw: centrx: but when I do bundle install i get this error An error occurred while installing json (1.8.0), and Bundler cannot continue.
[17:54:52] barw: Make sure that `gem install json -v '1.8.0'` succeeds before bundling.
[17:55:20] rbowlby: has joined #ruby
[17:56:01] casadei_: has joined #ruby
[17:56:09] volhit: has joined #ruby
[17:56:32] chihhsin: has joined #ruby
[17:57:28] quimrstorres: has joined #ruby
[17:57:44] barw: can someone help me
[17:59:05] impalle: has joined #ruby
[17:59:52] baweaver: has joined #ruby
[18:00:04] lwu_: has joined #ruby
[18:00:33] Blaguvest: has joined #ruby
[18:00:48] drewo: has joined #ruby
[18:00:50] leitz: ping jhass
[18:00:54] _blizzy_: has joined #ruby
[18:01:53] shevy: ping jhass
[18:02:09] jhass: ping jhass
[18:02:41] leitz: Hehe...just wanted to say thanks before I nap off. https://github.com/LeamHall/CT_Character_Generator/blob/master/ideas/unit/show_unit.rb
[18:03:30] jhass: leitz: great. Note that we tend to leave get_ prefixes off in ruby and use foo? instead of is_foo
[18:03:31] Scripore: has joined #ruby
[18:03:58] psye: has joined #ruby
[18:04:53] jhass: leitz: to sum you can use .inject, unit["members"].inject(0) {|total, member| total + trooper_morale(member) }
[18:05:21] jhass: a.fdiv(b) makes a nice replacement for a.to_f / b
[18:06:27] jhass: leitz: and you should use File.write/File.read or at least the block form of File.open, if you have a file.close somewhere you likely have a potential file handle leak ;)
[18:06:45] leitz: ACTION takes notes.
[18:07:06] jhass: that's about what I'd have :)
[18:07:53] mxrguspxrt: has joined #ruby
[18:07:59] apt-get_: has joined #ruby
[18:08:16] _blizzy_: has joined #ruby
[18:08:40] araujo: has joined #ruby
[18:11:17] dfockler: has joined #ruby
[18:11:28] gambl0re: has joined #ruby
[18:12:44] CustosLimen: has joined #ruby
[18:14:07] bonhoeffer: has joined #ruby
[18:14:41] baweaver: has joined #ruby
[18:15:08] mxrguspxrt: has joined #ruby
[18:16:00] barw: i'm trayin to istall pg with gem and I'm get this error http://paste.ubuntu.com/11974819/
[18:16:09] barw: can someone help me pleas?
[18:16:46] miah: bar_: Can't find the 'libpq-fe.h header
[18:16:52] shevy: checking for libpq-fe.h... no
[18:16:57] miah: bar_: you are probably missing the development libraries for postgresql
[18:17:07] mxrguspxrt: has joined #ruby
[18:17:32] lkba_: has joined #ruby
[18:18:16] ttilley: has joined #ruby
[18:18:17] ttilley: has joined #ruby
[18:18:18] miah: bar_: i believe its 'libpq-dev' in ubuntu
[18:19:07] freerobby: has joined #ruby
[18:19:08] barw: miah: thanks
[18:19:11] mxrguspxrt: has joined #ruby
[18:19:11] niiamon: has joined #ruby
[18:21:28] kies^: has joined #ruby
[18:21:50] olistik: has joined #ruby
[18:22:25] kidoz: has joined #ruby
[18:24:25] baroquebobcat: has joined #ruby
[18:24:28] jackjackdripper: has joined #ruby
[18:24:29] lkba: has joined #ruby
[18:24:30] Fire-Dragon-DoL: has joined #ruby
[18:24:33] Fire-Dragon-DoL: mhhh I would love to evaluate minitest, but I need a good direction over good mocking library: rspec-mocks have been really good with spies, const stubs, doubles and methods stubs, I really don't know what should I use with minitest though
[18:24:33] that1guy: has joined #ruby
[18:25:02] rippa: has joined #ruby
[18:25:31] SCHAAP137: has joined #ruby
[18:27:11] krz: has joined #ruby
[18:27:16] jaxxstorm: has joined #ruby
[18:28:21] DexterLB: has joined #ruby
[18:30:09] symm-: has joined #ruby
[18:31:04] jaxxstorm: has joined #ruby
[18:31:10] OrbitalKitten: has joined #ruby
[18:31:28] jenrzzz: has joined #ruby
[18:35:22] willywos: has joined #ruby
[18:35:26] gambl0re: has joined #ruby
[18:35:34] s2013: has joined #ruby
[18:36:16] jackjackdripper: has joined #ruby
[18:36:57] OrbitalKitten: has joined #ruby
[18:37:31] diegoviola: has joined #ruby
[18:38:39] hj2007: has joined #ruby
[18:40:59] baweaver: has joined #ruby
[18:41:11] pengin: has joined #ruby
[18:41:17] nitrix: has joined #ruby
[18:43:01] NeverDie: has joined #ruby
[18:44:44] sdothum: has joined #ruby
[18:45:16] hj2007: rbenv bundle issue: "which bundle" gives "/usr/bin/bundle" and not the one in shims. Hence, bundle install, installs gems in Gemfile in /Library/Ruby/Gems/2.0.0/gems instead of in shims.
[18:46:24] hj2007: gem env, shows /Users/username/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 in GEM PATHS
[18:46:45] devoldmx: has joined #ruby
[18:47:16] nateberkopec: has joined #ruby
[18:47:17] devoldmx: has joined #ruby
[18:47:43] PaulCapestany: has joined #ruby
[18:48:23] dimasg: has joined #ruby
[18:48:51] fantazo: has joined #ruby
[18:49:20] mase-chatter: has joined #ruby
[18:49:49] jhass: hj2007: http://ruby-community.com/pages/user_rules#rule_2_7
[18:49:53] hfp: has joined #ruby
[18:50:05] hfp_work: has joined #ruby
[18:50:42] Scripore: has joined #ruby
[18:50:55] shevy: hj2007 I don't use rbenv, I always compile from source including different version of programs when necessary (though I am using only one ruby version nowadays, no longer need the old ones as I managed to update finally): wget ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
[18:52:22] jhass: no reason to quit >.<
[18:53:09] AndChat|646809: has joined #ruby
[18:54:35] theery_: has joined #ruby
[18:54:37] rideh: has joined #ruby
[18:55:02] someguy: has joined #ruby
[18:56:20] lxsameer: has joined #ruby
[18:56:54] noname: has joined #ruby
[18:57:10] apt-get_: has joined #ruby
[18:57:12] bounder: has joined #ruby
[18:57:17] symm-: has joined #ruby
[18:57:36] mary5030: has joined #ruby
[18:58:18] Frem: has joined #ruby
[18:58:36] snockerton: has joined #ruby
[18:59:26] snockerton: has joined #ruby
[19:00:31] hfp_work: has joined #ruby
[19:00:31] snockerton: has left #ruby: ()
[19:01:24] hfp: has joined #ruby
[19:02:02] jobewan: has joined #ruby
[19:02:06] Igorshp: has joined #ruby
[19:02:54] hfp_: has joined #ruby
[19:03:58] bounder: has left #ruby: ()
[19:04:00] baweaver: has joined #ruby
[19:04:03] jeremy04: has joined #ruby
[19:05:05] bounder: has joined #ruby
[19:05:27] AndChat-646809: has joined #ruby
[19:05:54] hfp-: has joined #ruby
[19:06:01] mary5030: has joined #ruby
[19:07:01] hfp_work: has joined #ruby
[19:08:44] bounder: Hello! Anyone experienced with the gc.c source code around? I currently need to force ruby to allocate a new heap page when it needs an allocation, so my current method is iterating through the objspace->heap_pages.sorted list and setting the free_slots count to zero, and setting the freelist to null in each page. After doing that, ruby does seem to be ending up calling the heap_page_allocate as expected, but it triggers an rb_bug for "same heap page is alloca
[19:08:47] bounder: Hello! Anyone experienced with the gc.c source code around? I currently need to force ruby to allocate a new heap page when it needs an allocation, so my current method is iterating through the objspace->heap_pages.sorted list and setting the free_slots count to zero, and setting the freelist to null in each page. After doing that, ruby does seem to be ending up calling the heap_page_allocate as expected, but it triggers an rb_bug for "same heap page is alloca
[19:09:05] bounder: Hello! Anyone experienced with the gc.c source code around? I currently need to force ruby to allocate a new heap page when it needs an allocation, so my current method is iterating through the objspace->heap_pages.sorted list and setting the free_slots count to zero, and setting the freelist to null in each page. After doing that, ruby does seem to be ending up calling the heap_page_allocate as expected, but it triggers an rb_bug for "same heap page is alloca
[19:09:40] bounder: Hello! Anyone experienced with the gc.c source code around? I currently need to force ruby to allocate a new heap page when it needs an allocation, so my current method is iterating through the objspace->heap_pages.sorted list and setting the free_slots count to zero, and setting the freelist to null in each page. After doing that, ruby does seem to be ending up calling the heap_page_allocate as expected, but it triggers an rb_bug for "same heap page is alloca
[19:09:43] jhass: bounder: it came through the first time
[19:09:48] curses: has joined #ruby
[19:10:00] hfp: has joined #ruby
[19:10:11] bounder: has left #ruby: ()
[19:10:30] fantazo: has joined #ruby
[19:10:55] bounder: has joined #ruby
[19:11:08] bounder: Hello! Anyone experienced with the gc.c source code around? I currently need to force ruby to allocate a new heap page when it needs an allocation, so my current method is iterating through the objspace->heap_pages.sorted list and setting the free_slots count to zero, and setting the freelist to null in each page. After doing that, ruby does seem to be ending up calling the heap_page_allocate as expected, but it triggers an rb_bug for "same heap page is alloca
[19:11:20] arup_r: has joined #ruby
[19:11:24] bounder: has left #ruby: ()
[19:12:02] bounder: has joined #ruby
[19:12:09] jhass: bounder: no need to repeat it
[19:12:19] rodfersou: has joined #ruby
[19:12:23] bounder: i am sorry
[19:12:38] bounder: ive been using a web irc client and it's a little bit buggy. Didn't notice it went through.....
[19:12:44] bounder: I changed to a different one now.
[19:14:21] rakm: has joined #ruby
[19:14:39] bounder: I couldn't see my messages nor yours. Now it's responsive
[19:16:32] hfp_work: has joined #ruby
[19:17:31] devoldmx: has joined #ruby
[19:18:26] hfp: has joined #ruby
[19:19:15] momomomomo: has joined #ruby
[19:20:02] bohallor: has joined #ruby
[19:20:32] SuMo_D: has joined #ruby
[19:22:16] Mon_Ouie: Also your message was truncated. It ends at "same heap page is alloca"
[19:22:33] hfp_work: has joined #ruby
[19:24:16] DLSteve: has joined #ruby
[19:24:33] lxsameer: has joined #ruby
[19:24:37] bounder: Thanks for the notice, I'm in a better client now. should be "same heap page is allocated" (it's the call in gc.c line 1493 for the ruby 2.2 release)
[19:24:40] ynroot: has joined #ruby
[19:24:46] barw: i'm trying to run rails server and get this error http://paste.ubuntu.com/11975233/ can someone please help
[19:24:49] EminenceHC: has joined #ruby
[19:24:56] hfp: has joined #ruby
[19:25:05] jhass: ?rails bar_
[19:25:05] ruboto: bar_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[19:25:30] barw: ruboto: thanks
[19:25:34] hfp__work: has joined #ruby
[19:25:58] polpak: turing test passed!
[19:26:00] hfp_: has joined #ruby
[19:26:03] lukas: is this a good place for rails questions?
[19:26:15] apeiros: I'm really baffled by how many people don't figure that ruboto is a bot???
[19:26:20] apeiros: ?rails lukas
[19:26:20] ruboto: lukas, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[19:26:25] s2013: has joined #ruby
[19:28:24] jhass: apeiros: just strip the final o :P
[19:28:54] jhass: something like that
[19:28:58] apeiros: not a robot, a rubot!
[19:29:10] apeiros: ACTION not like
[19:29:39] hololeap: has joined #ruby
[19:30:36] Mon_Ouie: ruboto passes the Turing test!
[19:30:48] JoshL: has joined #ruby
[19:30:58] Kully3xf_: has joined #ruby
[19:31:15] apeiros: Mon_Ouie: no, no. the interacting channel members fail the turing test.
[19:31:50] apeiros: I think touring simply didn't expect the average attention and deductive capabilities to fall so sharply
[19:32:45] nzst: has joined #ruby
[19:36:21] Synthead: has joined #ruby
[19:39:10] AndChat|646809: has joined #ruby
[19:40:55] bruno-: has joined #ruby
[19:40:55] nofxx: has joined #ruby
[19:40:55] nofxx: has joined #ruby
[19:42:10] danzilio: has joined #ruby
[19:47:21] juanpablo_____: has joined #ruby
[19:47:42] timonv: has joined #ruby
[19:48:51] user1138: has joined #ruby
[19:49:05] vyorkin: has joined #ruby
[19:49:17] schaerli: has joined #ruby
[19:49:27] dgutierrez1287: has joined #ruby
[19:50:17] baweaver: has joined #ruby
[19:50:24] lxsameer: has joined #ruby
[19:51:11] Kully3xf: has joined #ruby
[19:51:41] c0ncealed: has joined #ruby
[19:51:56] bigbadbear: has joined #ruby
[19:54:01] podman: has joined #ruby
[19:54:35] centrx: has joined #ruby
[19:56:31] j4cknewt: has joined #ruby
[19:57:38] jtdoncas: has joined #ruby
[19:57:50] benlovell: has joined #ruby
[19:58:15] shevy: Turing was a bot
[19:59:02] bricker: has joined #ruby
[20:00:34] swgillespie: has joined #ruby
[20:01:28] momomomomo: has joined #ruby
[20:01:33] Ox0dea: > Every innovator in computer science is a bot except you.
[20:02:15] shevy: Alan Kay is not a bot :)
[20:02:24] centrx: Your mom's a bot
[20:02:56] kadoppe: has joined #ruby
[20:03:39] quimrstorres: has joined #ruby
[20:04:14] blaines: has joined #ruby
[20:04:36] workmad3: has joined #ruby
[20:04:50] blaines_: has joined #ruby
[20:05:36] pengin_: has joined #ruby
[20:05:41] rodferso1: has joined #ruby
[20:06:44] slani: hello, i'm trying to creat db with rake db:create and get this error http://paste.ubuntu.com/11975515/
[20:07:46] niiamon: has joined #ruby
[20:07:56] mikecmpbll: slani: looks like postgres isn't running ..
[20:08:45] jtdoncas: has joined #ruby
[20:09:08] slani: mikecmpbll: how can I run it?
[20:09:38] mikecmpbll: slani: no idea, i do not use postgres
[20:09:57] mikecmpbll: slani: !g starting postgres
[20:10:19] jesseherrick: has joined #ruby
[20:10:20] texasmade: has joined #ruby
[20:10:47] apeiros: ?rails slani
[20:10:47] ruboto: slani, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[20:11:05] andersoldahl: has joined #ruby
[20:11:16] mikecmpbll: ACTION facepalms
[20:11:39] apeiros: happens ;-)
[20:11:59] sdana: has joined #ruby
[20:13:09] countryHick: has joined #ruby
[20:13:30] foobar111: has joined #ruby
[20:14:00] leafybasil: has joined #ruby
[20:14:42] j4cknewt: has joined #ruby
[20:15:23] havenwood: has joined #ruby
[20:16:10] Azure: has joined #ruby
[20:17:38] cndiv: has joined #ruby
[20:18:07] imperator: slani, pg_ctl --help
[20:18:10] cndiv: Dumb newbie question from someone learning: is there an offline 'glossary' of all Ruby related terms someplace I can download?
[20:18:26] apeiros: ?quickref cndiv
[20:18:26] ruboto: cndiv, http://www.zenspider.com/Languages/Ruby/QuickRef.html
[20:18:43] apeiros: not really a glossary, but it's quite a concise piece of info
[20:19:03] cndiv: That's beautiful, thank you all. Perfect.
[20:20:43] Mon_Ouie: ri also contains useful information (e.g. ri Regexp describes the syntax for regular expressions)
[20:20:55] baweaver: has joined #ruby
[20:21:13] axl__: has joined #ruby
[20:23:28] symm-: has joined #ruby
[20:23:53] olistik: has joined #ruby
[20:24:00] reppard: has joined #ruby
[20:24:20] havenwood: redlegion: hi
[20:24:23] havenwood: reppard: hi
[20:24:25] leesharma: has joined #ruby
[20:24:34] havenwood: redlegion: sry, misstell
[20:25:09] havenwood: ACTION can't tell a "p" from a "d"
[20:25:17] havenwood: just the same thing rotated...
[20:26:29] k3asd`: has joined #ruby
[20:26:54] shevy: coffee time again for havenwood
[20:27:38] reppard: I want to create a gem that makes use of a system binary. What is the best practice here? Should I bundle the binary with the gem?
[20:27:40] shevy: zenspider's quickref is one of the most often cited link here :D
[20:28:41] shevy: reppard well, depends what you want to have. if you distribute it, you can ensure that it will always be available. you could however had also check if it exists, and then branch out "if user has this binary, use it, else use the provided one". what binary is it or what does it do?
[20:28:52] shevy: I myself would not distribute binaries like that btw
[20:29:05] devoldmx: has joined #ruby
[20:29:55] Ox0dea: reppard: Are you sure there doesn't exist a library to emulate what you'd be using the binary for?
[20:30:00] hashrock_: has joined #ruby
[20:30:05] tmtwd: has joined #ruby
[20:30:52] reppard: so I'm calling down to envconsul
[20:31:10] reppard: for pulling key values from something like Consul or etcd
[20:31:48] Kully3xf: has joined #ruby
[20:31:59] reppard: there is a gem called Dimplomat which does the same thing with rest connectors but I'd like to be able to grab all key values based on a prefix and the handle the parsing instead of multiple rest calls for each value
[20:32:09] reppard: s/Dimplomat/Diplomat
[20:32:28] reppard: It seems like the best thing to do is just check for envconsul on the system
[20:33:51] juanpablo______: has joined #ruby
[20:33:56] Ox0dea: Well, it's really not the done thing to ship opaque binaries in gems.
[20:34:45] reppard: yeah it felt bad if i were to distribute the gem. just thought i'd ask
[20:34:54] reppard: thanks for intertaining me =)
[20:35:01] MatthewsFace: has joined #ruby
[20:35:11] reppard: entertain even
[20:35:23] Ox0dea: You could try writing a C extension that calls into Go. It's technically feasible, but might end up more trouble than it'd be worth.
[20:36:36] Ox0dea: It'd also have to be an older version of the Go ABI, since Go is now completely written in Go.
[20:37:17] reppard: *mind blown*
[20:37:50] Ox0dea: Self-hosting languages are a dime a dozen these days.
[20:38:09] Ox0dea: It is tricky to wrap one's head around the first time through, though.
[20:38:46] j4cknewt: has joined #ruby
[20:39:24] devoldmx: has joined #ruby
[20:40:03] jesseherrick: Just jumping in here, but Zeus is pretty much written totally in Go, but packaged into a gem
[20:40:56] banister: has joined #ruby
[20:41:33] dfockler: hey I wrote a bloom filter in ruby, it was pretty simple
[20:42:01] jtdoncas: has joined #ruby
[20:42:06] Ox0dea: dfockler: Cuckoo filter next?
[20:42:16] dfockler: I'll have to figure out what that is
[20:43:00] jaxxstorm: has joined #ruby
[20:43:42] juanpablo_______: has joined #ruby
[20:44:03] slani: I'm traying to initialize a database with rake db:migrate but geting this error http://paste.ubuntu.com/11975733/
[20:44:10] slani: can someone help
[20:44:33] jaxxstorm: has joined #ruby
[20:44:41] reppard: slani: did you rake db:create?
[20:44:42] havenwood: slani: The best place for Rails questions is the #RubyOnRails channel.
[20:47:17] arooni: has joined #ruby
[20:49:37] troulouliou_dev: has joined #ruby
[20:51:58] Azure: has joined #ruby
[20:54:18] olistik: has joined #ruby
[20:54:26] tsvenson: has joined #ruby
[20:55:25] pengin: has joined #ruby
[20:56:15] baroquebobcat: has joined #ruby
[20:57:39] dorei: has joined #ruby
[20:58:12] swgillespie: has joined #ruby
[20:58:14] towski_: has joined #ruby
[20:58:58] pietr0_: has joined #ruby
[21:00:20] tsvenson: has joined #ruby
[21:02:17] Igorshp: has joined #ruby
[21:02:40] ogpastal_: has joined #ruby
[21:02:57] sankaber: has joined #ruby
[21:04:18] willywos: is anyone famliar with rake? is there a good way to pass arguments without having to use brackets?
[21:04:26] imperator: has left #ruby: ("Leaving")
[21:04:30] diegoviola: has joined #ruby
[21:04:50] ogpastal_: has joined #ruby
[21:05:24] apeiros: willywos: the way before bracketed args was to use env vars
[21:05:32] apeiros: rake foo:bar ENVNAME=value
[21:05:38] j3r0: has joined #ruby
[21:06:21] _seanc_: has joined #ruby
[21:06:24] willywos: hmm ok i'm wondering if maybe just doing somehting like "rake foo MyArgument"
[21:06:28] j3r0: hi guys what is the channel for rails ?
[21:06:44] havenwood: ?rails j3r0
[21:06:44] ruboto: j3r0, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[21:07:08] bustrarm: has joined #ruby
[21:08:05] shevy: havenwood! you are becoming bot-like :)
[21:08:08] Seich: has joined #ruby
[21:08:18] shevy: this is about the fifth time today that you tell people to go to rails, via ruboto or so :D
[21:08:20] havenwood: shevy: Slowly as the spice consumes me.
[21:09:35] EagleDelta: has joined #ruby
[21:12:39] j3r0: has joined #ruby
[21:13:00] apt-get_: has joined #ruby
[21:13:18] blue_deref: has joined #ruby
[21:13:50] cscheib: is net::smtp part of the base distribution? it's not finding it on my RHEL7.1 install, and it doesn't appear to be a gem, and it's pissing me off
[21:17:02] reppard: has joined #ruby
[21:17:02] zz_Outlastsheep: has joined #ruby
[21:17:35] j3r0: has joined #ruby
[21:19:37] graydot: has joined #ruby
[21:19:47] Ox0dea: 18>> require 'net/smtp' # cscheib
[21:19:48] ruboto: Ox0dea # => true (https://eval.in/409844)
[21:20:00] cscheib: yea, that's what I'm doing in my code
[21:20:11] cscheib: did more searching - it's in /usr/share/ruby/net
[21:20:54] [Butch]: has joined #ruby
[21:21:25] Trynemjoel: has joined #ruby
[21:21:28] cscheib: sec, I'll gist my error
[21:21:39] cscheib: probably something to do with PATH or something.
[21:22:54] cscheib: https://gist.github.com/cscheib/d2bdf3fc19421bfadab6
[21:23:16] Ox0dea: cscheib: It's SMTP, not SNMP.
[21:23:36] michael_mbp: has joined #ruby
[21:24:01] cscheib: stupid mistakes.
[21:24:03] AnoHito: has joined #ruby
[21:24:21] cscheib: been looking at a screen too long
[21:24:29] timonv: has joined #ruby
[21:25:22] leesharma: has joined #ruby
[21:26:08] jero_: has joined #ruby
[21:26:26] j3r0: has joined #ruby
[21:27:13] huko_: has joined #ruby
[21:27:19] yfeldblum: has joined #ruby
[21:28:16] gamename: has joined #ruby
[21:28:30] austin-philp: has joined #ruby
[21:29:28] abdulrehman: has joined #ruby
[21:29:54] pengin: has joined #ruby
[21:30:31] j3r0: has joined #ruby
[21:31:01] art-solopov: has joined #ruby
[21:31:18] j3r0: has joined #ruby
[21:31:26] abdulrehman: has left #ruby: ()
[21:31:50] j3r0: has joined #ruby
[21:32:29] devoldmx: has joined #ruby
[21:32:39] huko_: has joined #ruby
[21:34:10] htmldrum: has joined #ruby
[21:36:31] baweaver: has joined #ruby
[21:37:24] Jarboe: has joined #ruby
[21:38:57] banister: has joined #ruby
[21:39:14] sarkyniin: has joined #ruby
[21:42:22] allie: has joined #ruby
[21:44:06] AbdulRehman_: has joined #ruby
[21:44:34] exadeci: has joined #ruby
[21:48:12] Mia: has joined #ruby
[21:48:12] Mia: has joined #ruby
[21:48:39] Rollabunna: has joined #ruby
[21:48:59] banister: has joined #ruby
[21:51:08] Igorshp: has joined #ruby
[21:54:13] graydot: has joined #ruby
[21:56:46] niiamon: has joined #ruby
[21:59:12] freerobby: has joined #ruby
[22:01:17] graydot: has joined #ruby
[22:01:26] devoldmx: has joined #ruby
[22:01:52] decoponio: has joined #ruby
[22:04:02] shinnya: has joined #ruby
[22:05:02] HoppingMadMan: has joined #ruby
[22:09:39] cajone: has joined #ruby
[22:11:30] jenrzzz: has joined #ruby
[22:14:33] user1138_: has joined #ruby
[22:16:26] dgutierrez1287: has joined #ruby
[22:17:54] baweaver: has joined #ruby
[22:17:55] Vile`: has joined #ruby
[22:18:15] leitz: If you are using OptionParser to set options, is there an issue with opening files based on those same options? Moving lines 21 and 22 to 11 and 12.
[22:18:17] leitz: https://gist.github.com/LeamHall/10fbe37450e55ba1e7c8
[22:18:57] abdulrehman: has joined #ruby
[22:19:20] viralRF: has joined #ruby
[22:19:41] tenderlove: has joined #ruby
[22:19:44] polpak: leitz: it's a scoping problem
[22:19:59] ogpastaling: has joined #ruby
[22:21:26] swgillespie: has joined #ruby
[22:21:31] leitz: polpak, line 3 sets the hash outside of the options scope for line 12. Is that what you mean?
[22:21:33] polpak: leitz: variables defined within the block can't be accessed after you're out of the block again
[22:21:52] mistym: has joined #ruby
[22:22:59] WillAmes: has joined #ruby
[22:23:25] jgt: has joined #ruby
[22:23:49] polpak: >> [1,2].each { |i| b = i }; puts b
[22:23:50] ruboto: polpak # => undefined local variable or method `b' for main:Object (NameError) ...check link for more (https://eval.in/409894)
[22:24:07] apeiros: polpak: but they define all variables outside the block
[22:24:13] crdpink: has joined #ruby
[22:24:20] apeiros: they talk about the outcommented code
[22:24:27] apeiros: ok, right on :D
[22:24:48] polpak: leitz: ^^
[22:25:45] polpak: >> b = nil; [1,2].each { |i| b = i }; puts b
[22:25:46] ruboto: polpak # => 2 ...check link for more (https://eval.in/409895)
[22:26:06] jgt1: has joined #ruby
[22:26:06] devoldmx: has joined #ruby
[22:26:28] leitz: So far it seems that anything with the options requires something to be defined before the options block. Either an options hash, or whatever.
[22:26:46] polpak: leitz: it has nothing to do with options, or OptionParser
[22:26:53] polpak: leitz: see my code snippets above
[22:27:01] polpak: leitz: it's a scoping issue with the variables
[22:27:22] polpak: leitz: if you define the variable within the block it only has scope within the block
[22:27:34] axl_: has joined #ruby
[22:28:13] devdazed: has joined #ruby
[22:28:14] leitz: That's what I said about line 3. It is defined outside the block, and used after the block is ended.
[22:29:17] diegoviola: has joined #ruby
[22:31:53] leitz: polpak, full code: https://github.com/LeamHall/CT_Character_Generator/blob/master/ideas/unit/show_unit.rb
[22:32:05] workmad3: has joined #ruby
[22:32:16] djbkd: has joined #ruby
[22:32:36] irctc711: has joined #ruby
[22:32:36] polpak: leitz: I'm not sure what your question is
[22:32:57] Scripore: has joined #ruby
[22:33:21] graydot: has joined #ruby
[22:34:32] leitz: polpak, you said the scoping issue would prevent the code from working.
[22:35:04] ogpastaling: has joined #ruby
[22:35:09] leitz: That was my understanding, anyway. With declaring the two options before the OptionParser block, it seems to work.
[22:35:16] polpak: leitz: you can't access variables that aren
[22:35:21] polpak: nt in scope
[22:35:39] polpak: leitz: if you give them scope outside the block then you can still access them outside the block
[22:35:41] irctc711: hello im trying to create a log in form in rails, here is my form: https://gist.github.com/anonymous/69bbe062b7593806f347 ,here is my the next controller for the new view https://gist.github.com/anonymous/c0a830c1678525fc2791, im confused on what to do. I have two controllers with two views. the root has the log in form, is that where i also put the logic to log in?
[22:36:11] leitz: polpak, yup. That's what's happening, I think.
[22:36:13] irctc711: currently i get a error of "No route matches [POST] "/welcome/index" " when i click log in
[22:36:18] leitz: At least, it works. :)
[22:38:00] devoldmx: has joined #ruby
[22:40:24] Exuma: has joined #ruby
[22:42:17] BraddPitt: irctc711 this would be better suited for #rails
[22:43:33] BraddPitt: but, can you post your routes and/or output of `rake routes`?
[22:45:57] hashrocket: has joined #ruby
[22:46:53] Thomas-0725: has joined #ruby
[22:47:24] curses: has joined #ruby
[22:48:22] chouhoulis: has joined #ruby
[22:48:53] neoseeker: has joined #ruby
[22:49:01] shevy: what does Errno::ENOENT stand for? the ENOENT shortcut
[22:49:27] apeiros: E = Error, NO = well, NO, ENT = Entity
[22:49:39] apeiros: oh, ENTry? not Entity? sad
[22:49:49] ljarvis: might be entity?
[22:50:02] apeiros: entry seems right
[22:50:07] apeiros: at least google says same
[22:50:18] devoldmx: has joined #ruby
[22:50:23] apeiros: and yeah, late, hence: n8! :D
[22:51:17] olistik: has joined #ruby
[22:52:08] yqt: has joined #ruby
[22:53:20] Senjai: has joined #ruby
[22:54:51] s00pcan: has joined #ruby
[22:55:33] OrbitalKitten: has joined #ruby
[22:56:52] ReK2: has joined #ruby
[22:56:53] ReK2: has joined #ruby
[22:58:39] BraddPitt: Is there an ActionController equivalent to ActiveSupport::Notifications?
[22:58:44] BraddPitt: (maybe this is better suited for #rails)
[22:59:13] bodgix: has joined #ruby
[23:00:46] charliesome: has joined #ruby
[23:01:02] adaedra: #RubyOnRails, in fact
[23:01:16] quimrstorres: has joined #ruby
[23:02:23] Mendenhall: has joined #ruby
[23:02:24] BraddPitt: is that the official freenode channel?
[23:02:40] charliesome: has joined #ruby
[23:02:42] juanpablo_______: has joined #ruby
[23:03:23] pauly_oc: has joined #ruby
[23:07:14] adaedra: well, official, I don't know, it's the one we always refer to from here
[23:08:58] ljarvis: yeah it's official
[23:09:03] ljarvis: as official as it gets
[23:09:15] casadei_: has joined #ruby
[23:10:07] jenrzzz: has joined #ruby
[23:10:38] jesseherrick: has joined #ruby
[23:12:19] abdulrehman: has joined #ruby
[23:15:35] Thomas-0725: has joined #ruby
[23:17:50] devoldmx: has joined #ruby
[23:22:50] _seanc_: has joined #ruby
[23:23:26] s00pcan: has joined #ruby
[23:24:45] Igorshp: has joined #ruby
[23:25:22] nsuke: has joined #ruby
[23:25:42] yfeldblum: has joined #ruby
[23:25:44] theery: has joined #ruby
[23:26:25] sarkyniin: has joined #ruby
[23:27:25] zacts: has joined #ruby
[23:27:42] MatrixBridge: has joined #ruby
[23:28:37] podman: has joined #ruby
[23:28:41] bricker: has joined #ruby
[23:31:45] Yzguy: has joined #ruby
[23:34:27] drewo: has joined #ruby
[23:34:31] abdulrehman: has joined #ruby
[23:36:53] Kasey: has joined #ruby
[23:37:15] xNoodles: has joined #ruby
[23:38:55] SuMo_D: has joined #ruby
[23:41:35] abdulrehman: has joined #ruby
[23:42:34] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[23:44:53] abdulrehman: has joined #ruby
[23:45:33] niiamon: has joined #ruby
[23:48:52] havenwood: has joined #ruby
[23:49:24] schaerli: has joined #ruby
[23:49:47] bonhoeffer: has joined #ruby
[23:50:18] jesseherrick: has joined #ruby
[23:51:58] danzilio: has joined #ruby
[23:52:43] charlenopires: has joined #ruby
[23:54:09] davedev24: has joined #ruby
[23:54:14] kfpratt: has joined #ruby
[23:54:59] elfuego: has joined #ruby
[23:55:05] towski_: has joined #ruby
[23:59:32] werelivi_: has joined #ruby
[23:59:55] tkuchiki: has joined #ruby