« Back to channel list

#ruby - 04 May 2018

« Back 1 day Forward 1 day »
[00:01:44] jyaworski: has joined #ruby
[00:02:12] gil_: has joined #ruby
[00:02:12] gil_: has joined #ruby
[00:15:30] cagomez: has joined #ruby
[00:17:52] tmkn: has joined #ruby
[00:18:24] karapetyan: has joined #ruby
[00:24:21] jyaworski: has joined #ruby
[00:27:02] johnny56_: has joined #ruby
[00:27:45] jenrzzz_: has joined #ruby
[00:45:10] weaksauce: has joined #ruby
[00:52:01] bmurt: has joined #ruby
[00:52:18] jeen: has joined #ruby
[00:54:58] alfiemax: has joined #ruby
[00:58:21] apparition: has joined #ruby
[01:00:44] jyaworski: has joined #ruby
[01:02:49] gizmore|2: has joined #ruby
[01:15:40] noycesauce: has joined #ruby
[01:19:19] apparition: has joined #ruby
[01:23:06] jyaworski: has joined #ruby
[01:25:32] alfiemax: has joined #ruby
[01:30:40] apparition: has joined #ruby
[01:31:19] Yzguy: has joined #ruby
[01:33:11] apparition: has joined #ruby
[01:33:37] ramfjord: has joined #ruby
[01:33:41] dinfuehr: has joined #ruby
[01:33:51] cagomez: has joined #ruby
[01:36:05] Yzguy: has joined #ruby
[01:40:50] nnm: has joined #ruby
[01:44:03] ivanskie: has joined #ruby
[01:48:07] dr3wo: has joined #ruby
[01:52:42] anisha: has joined #ruby
[01:58:11] alfiemax: has joined #ruby
[01:58:16] Yzguy: has joined #ruby
[02:06:46] jyaworski: has joined #ruby
[02:16:57] chocoelho: has joined #ruby
[02:19:58] jyaworski: has joined #ruby
[02:21:06] bmurt: has joined #ruby
[02:28:49] kapil___: has joined #ruby
[02:32:13] alfiemax: has joined #ruby
[02:33:36] Josh|: has joined #ruby
[02:34:12] Josh|: Hello, I'm trying to get the first of the month in my ruby program I already have today's date however I'm trying to create a variable to get the first of the month. Can anyone help me?
[02:34:22] Josh|: First of the month based off todays date
[02:34:25] Josh|: so like may 1st.
[02:37:21] jyaworski: has joined #ruby
[02:39:34] n0m4d1c: has joined #ruby
[02:40:34] cschneid_: has joined #ruby
[02:40:44] Josh|: i is what have date = pdate=Date.today puts "Login Activity Report for the period #{date.strftime("%y/%m/%d")} through #{pdate.strftime("%y/%m/%d")}"
[02:43:09] Defenestrate: has joined #ruby
[02:43:10] Defenestrate: has joined #ruby
[02:48:38] jeen: has joined #ruby
[02:52:14] quackinator: has joined #ruby
[02:52:48] orbyt_: has joined #ruby
[02:56:33] Josh|: you all are no help I got it thanks! :)
[02:58:02] ciscam: has joined #ruby
[03:02:17] x77686d: has joined #ruby
[03:23:16] EXCHGR: has joined #ruby
[03:27:00] konsolebox: has joined #ruby
[03:30:24] alfiemax_: has joined #ruby
[03:44:37] Deesl: has joined #ruby
[03:57:48] x77686d: has joined #ruby
[04:04:59] mr_rich101: has joined #ruby
[04:06:27] jyaworski: has joined #ruby
[04:14:02] RyanMcCoskrie: has joined #ruby
[04:14:32] RyanMcCoskrie: Afternoon everyone
[04:20:49] Emmanuel_Chanel: has joined #ruby
[04:25:26] jyaworski: has joined #ruby
[04:30:14] alfiemax: has joined #ruby
[04:31:01] dr3wo: has joined #ruby
[04:35:51] conta: has joined #ruby
[04:41:10] jeen: has joined #ruby
[04:41:52] jyaworski: has joined #ruby
[04:42:18] armyriad: has joined #ruby
[04:47:54] alfiemax: has joined #ruby
[04:49:37] galeido: has joined #ruby
[04:49:38] galeido: has joined #ruby
[04:51:38] galeido: has joined #ruby
[04:59:34] rkazak: has joined #ruby
[05:00:34] alfiemax: has joined #ruby
[05:01:28] ur5us: has joined #ruby
[05:04:06] jyaworski: has joined #ruby
[05:04:32] FastJack_: has joined #ruby
[05:15:50] veloutin: has joined #ruby
[05:15:53] sirecote_: has joined #ruby
[05:15:53] G: has joined #ruby
[05:15:54] cout: has joined #ruby
[05:15:55] bougyman: has joined #ruby
[05:16:00] harmaahylje: has joined #ruby
[05:16:01] LenPayne: has joined #ruby
[05:16:05] swein: has joined #ruby
[05:16:11] andersh: has joined #ruby
[05:16:11] solidsnack: has joined #ruby
[05:16:12] ewilliam_: has joined #ruby
[05:16:29] cstrahan: has joined #ruby
[05:16:31] rfv: has joined #ruby
[05:16:33] neuromanc_r: has joined #ruby
[05:17:47] Milos: has left #ruby: ("Leaving")
[05:18:25] duracrisis: has joined #ruby
[05:18:45] Jeena: has joined #ruby
[05:19:14] alfiemax_: has joined #ruby
[05:20:22] jinie: has joined #ruby
[05:20:40] j0bk: has joined #ruby
[05:21:02] Fridtjof: has joined #ruby
[05:21:54] bauruine: has joined #ruby
[05:29:53] infernix: has joined #ruby
[05:30:48] cgfbee: has joined #ruby
[05:31:00] sauvin: has joined #ruby
[05:32:42] varesa_: has joined #ruby
[05:33:49] nnm-: has joined #ruby
[05:35:25] conta: has joined #ruby
[05:39:02] dn`: has left #ruby: ()
[05:46:09] amelliaa: has joined #ruby
[05:49:45] aupadhye: has joined #ruby
[05:56:40] jyaworski: has joined #ruby
[05:59:43] rprimus: has joined #ruby
[06:03:53] stoffus: has joined #ruby
[06:05:29] galeido: has joined #ruby
[06:07:51] alfiemax: has joined #ruby
[06:09:41] suukim: has joined #ruby
[06:17:38] nnm: has joined #ruby
[06:20:47] Azure: has joined #ruby
[06:20:57] alfiemax: has joined #ruby
[06:25:38] tAn: has joined #ruby
[06:26:18] jyaworski: has joined #ruby
[06:27:50] conta: has joined #ruby
[06:36:35] ix: has joined #ruby
[06:42:08] conta: has joined #ruby
[06:45:38] dionysus69: has joined #ruby
[06:49:30] mjolnird: has joined #ruby
[06:50:14] TinkerT: has joined #ruby
[06:55:35] dionysus69: has joined #ruby
[07:01:04] TomyWork: has joined #ruby
[07:01:34] anisha: has joined #ruby
[07:03:45] jyaworski: has joined #ruby
[07:05:25] claudiuinberlin: has joined #ruby
[07:05:37] andikr: has joined #ruby
[07:06:24] ujjain3: has joined #ruby
[07:08:29] FastJack: has joined #ruby
[07:08:50] alex``: has joined #ruby
[07:09:49] alfiemax_: has joined #ruby
[07:10:55] cliluw: has joined #ruby
[07:11:29] tAn: has joined #ruby
[07:16:45] inerthia: has joined #ruby
[07:17:11] inerthia: has joined #ruby
[07:17:57] ramfjord: has joined #ruby
[07:18:08] conta: has joined #ruby
[07:18:38] vondruch: has joined #ruby
[07:21:16] tvw: has joined #ruby
[07:21:21] clemens3: has joined #ruby
[07:22:22] drale2k_: has joined #ruby
[07:22:49] schneider-: has joined #ruby
[07:24:13] d^sh: has joined #ruby
[07:25:07] dminuoso: Am I crazy to want modules in ruby?
[07:25:54] dminuoso: I just had the strong desire to create a `person.rb` with some `Person = Struct.new(:name, :age, :hobbies)` but this is going to create namespace issues..
[07:28:48] inerthia: has joined #ruby
[07:32:29] inerthia: has joined #ruby
[07:32:48] yohji: has joined #ruby
[07:33:18] bruce_lee: has joined #ruby
[07:33:18] bruce_lee: has joined #ruby
[07:33:53] RyanMcCoskrie: dminuoso: Do you mean a style of module from another language?
[07:34:14] RyanMcCoskrie: Ruby already has something called modules but they're (mostly) rather simple
[07:34:35] burgestrand: has joined #ruby
[07:34:50] dminuoso: RyanMcCoskrie: I mean it in the sense of program modules.
[07:34:57] dionysus69: has joined #ruby
[07:35:13] dminuoso: Something that can export symbols, something I can import symbols from.
[07:35:51] RyanMcCoskrie: Oh. As opposed to requiring files?
[07:36:01] dminuoso: RyanMcCoskrie: `require` is just an upgraded `eval`.
[07:36:14] dminuoso: I dont want to eval my complex program in hopefully the right order so that everything resolves correctly.
[07:36:50] RyanMcCoskrie: dminuoso: With some weird gotchas
[07:36:57] jyaworski: has joined #ruby
[07:38:04] RyanMcCoskrie: I've been working on a project that uses directories of source as psuedo-namespaces.
[07:38:18] nadir: has joined #ruby
[07:40:37] dminuoso: RyanMcCoskrie: It creates too much annoying mess.
[07:41:00] RyanMcCoskrie: Your idea or what I have been doing?
[07:41:14] dminuoso: RyanMcCoskrie: directories themselves dont create namespacs.
[07:41:30] konsolebox: using directories to reflect the application's modular structure is my style. i don't get namespace issues, and i don't find it messy.
[07:41:48] dminuoso: konsolebox: Take my example of `Person = ...`
[07:41:55] dminuoso: konsolebox: do that twice and you are potentially screwed.
[07:42:12] dminuoso: So you start stuffing things inside modules. But that gets tiresome to use, so you start including modules
[07:42:21] dminuoso: And that will cause lookup problems because ruby nesting is dynamic
[07:43:07] dminuoso: konsolebox: In reality people will keep `Person = ...` inside the same class they are using it, creating monstreous classes. I dont want this as a mixin, I just want a light weight "type" that I can use and throw away/forget about it
[07:43:08] konsolebox: "do that twice and you are potentially screwed." -> but isn't it isolated in person.rb, which can always only be included once?
[07:43:29] dminuoso: konsolebox: maybe you have some `thieves/person.rb` and some `employees/person.rb`
[07:44:34] konsolebox: or i'll have person.rb, thieves/thief.rb, employees/employee.rb
[07:44:46] dminuoso: konsolebox: My intent is to create a Person type.
[07:44:59] cliluw: has joined #ruby
[07:45:06] dminuoso: I dont want ruby to dictate how I should name my classes just because it doesnt have program modules with namespaces.
[07:45:11] konsolebox: no, actually, i'd prefer person.rb, thief.rb, employee.rb, thieves/some_thief.rb, ...
[07:45:22] dminuoso: konsolebox: It's just a countermeasure to avoid nameclashes. _that_ itself is the problem
[07:45:32] dminuoso: I dont want to have to avoid nameclashes.
[07:45:38] jottr: has joined #ruby
[07:46:39] dminuoso: konsolebox: what if for some reason you _wanted_ to have some person.rb in different places?
[07:46:53] dminuoso: You're essentially forced to use modules or classes as namespaces.
[07:47:03] konsolebox: i use modules as namespaces
[07:47:27] dminuoso: So that gets tiresome real fast becaus I dont want to have to specify Foo::Bar::Quux::Person just to avoid nameclashes.
[07:48:12] dminuoso: If your response is `well include the module` that quickly produces so many problems because you dont know what else `Foo::Bar::Quux` might include.
[07:48:16] dminuoso: You might completely fuck up method lookup
[07:48:21] marr: has joined #ruby
[07:48:25] dminuoso: Or it might create other constant lookup issues
[07:48:38] dminuoso: The only thing you can do
[07:48:44] dminuoso: Is create a local variable
[07:48:55] dminuoso: person = Foo::Bar::Quux::Person
[07:50:21] dminuoso: ruby is based on "eval things in the right order in the right places, so method lookup and constant lookup hopefully does the right thinig"
[07:57:44] jottr: has joined #ruby
[08:00:47] konsolebox: dminuoso: i wouldn't rely on "including the module" as a solution. i find that inconsistent. also, what about using constants as aliases? and, are you saying you would want to use 'require' inside a scope of a module? i still can't exactly picture what you want to do sorry.
[08:02:39] dminuoso: konsolebox: constant as aliases increases potential nameclashes
[08:02:45] jamesaxl: has joined #ruby
[08:03:27] dminuoso: konsolebox: I want to be able to say `import './person' { Person }` or some variation thereof.
[08:03:36] dminuoso: konsolebox: And I want ruby to do the right thing.
[08:06:17] dminuoso: I want to be able to pull some module in, while having the guarantee that no other modules got randomly changed.
[08:06:51] mwlang: has joined #ruby
[08:09:49] dminuoso: konsolebox: the only safe way is to use local variables as aliases because they are locally scoped.
[08:10:05] dminuoso: So the only thing that is isolated in a ruby file, is top level methods and local variables.
[08:10:21] dminuoso: I want constants to be completely isolated too.
[08:10:47] konsolebox: dminuoso: how would they possibly get changed?
[08:11:16] dminuoso: file.rb: class Array; def [](a); 42; end; end
[08:11:18] dminuoso: require 'file'
[08:11:19] konsolebox: dminuoso: i still don't get it. if Person is in person.rb, wouldn't it remain in ::Person unchanged no matter how many times 'person.rb' is required?
[08:11:33] dminuoso: Voila. You thought you got some `File` thing, but in reality it changed some other class.
[08:11:44] konsolebox: dminuoso: which would be the case unless you use module X; require 'person.rb; end
[08:11:50] dminuoso: konsolebox: You cant have two files defining `Person = ...` at the same time.
[08:12:12] tomphp: has joined #ruby
[08:12:20] konsolebox: dminuoso: ah i see
[08:12:25] dminuoso: konsolebox: Because remember, `Person = ...` is actually: `Object::Person = ...`
[08:12:31] dminuoso: Or more to the point
[08:12:35] dminuoso: `::Object::Person = ...`
[08:13:12] dminuoso: konsolebox: requiring other files is based on the extremely lose contract that every ruby file is a program that manipulates global state.
[08:13:18] dminuoso: the state of the class `Object`
[08:13:48] dminuoso: so `require` really means "run this file once" in hopes of its side effects being visible in the global `Object` class.
[08:14:41] dminuoso: ruby files are programs that mutate global Object.
[08:14:45] alfiemax: has joined #ruby
[08:15:10] dminuoso: And side effects might have dependencies. Maybe you need some previous modification of Object to occur before you can run another program.
[08:15:21] dminuoso: So you suddenly _have_ to `require "file1"` before `require "file2"`
[08:15:29] dminuoso: and maybe you `require` things just for effects.
[08:15:41] dminuoso: require "debugArray"
[08:15:53] dminuoso: suddenly `[1,2,3,4][1]` might start a debugging session
[08:16:31] kapil___: has joined #ruby
[08:16:42] dminuoso: ruby files should not be seen as isolated files. they are an imperative "lets mutate the global Object because some other program relies on the modifications I make"
[08:16:51] dminuoso: rather than "this file provides class XYZ"
[08:17:02] konsolebox: dminuoso: i know the concepts of including files once. i have a compiler in shell scripts for that. but i think i get what you want now. it's impossible in Ruby though. Ruby is similar to C++.
[08:17:03] dminuoso: Rubyists just tend to use the former to do the latter.
[08:17:14] x77686d: has joined #ruby
[08:17:19] za1b1tsu: has joined #ruby
[08:17:29] nowhere_man: has joined #ruby
[08:17:31] dminuoso: konsolebox: How is Ruby on earth related to C++ in any way whatsoever?
[08:17:43] dminuoso: beyond sharing the keyword `class`
[08:18:01] konsolebox: dminuoso: because namespaces can be located anywhere in any file
[08:18:01] dminuoso: C++ programs dont mutate things either.
[08:18:21] dminuoso: konsolebox: Yes but the "pasteritis" is limited to headers.
[08:18:27] dminuoso: konsolebox: It's controllable and avoidable.
[08:18:34] dminuoso: Because ultimately you can create seperate object files
[08:18:57] dminuoso: I see what you mean
[08:19:01] konsolebox: dminuoso: object files are just a compilation. they don't necessarily limit themselves to just specific namespaces.
[08:19:04] dminuoso: Yes. In that sense namespaces suck.
[08:19:16] amar: has joined #ruby
[08:19:34] Emmanuel_Chanel: has joined #ruby
[08:19:41] houhoulis: has joined #ruby
[08:19:47] dminuoso: konsolebox: they limit themselves to specific namespaces.
[08:20:15] dminuoso: konsolebox: because namespaces influence name mangling.
[08:21:05] dminuoso: konsolebox: But like I said. It's controllable. Namespaces are kept separate from code so its not too terrible.
[08:21:15] dminuoso: But in Ruby a module is more than a namespace. It's a vehicle for const lookup and method lookup
[08:22:58] venmx: has joined #ruby
[08:24:00] konsolebox: dminuoso: this is why the only way is to get what you want done right, is to use "namespaces" and make files reflect to the structures. having Person declared in many places but ./person.rb imo is bad design. now if we are to worry that some libraries might declare ::Person or ::Object::Person as well, the only way to avoid conflict with it in our application, is to use our own major "namespace". e.g. MyApplication, so our Person would be
[08:24:00] konsolebox: MyApplication::Person
[08:24:41] dminuoso: konsolebox: Why is it bad design in general? If I have a local problem, and I want to create some types to describe/model my problem, why is it generally bad to create a local class/type for it?
[08:25:28] konsolebox: i don't think there's such a thing as a local class that is not anonymous
[08:25:55] dminuoso: konsolebox: There is. As long as you stuff the class inside a local variable.
[08:26:00] konsolebox: you declare a class/module in a scope where you declare it
[08:26:07] dminuoso: But that severely restricts the palces where I can do this.
[08:26:25] dminuoso: konsolebox: you dont "declare" classes.
[08:26:28] dminuoso: You *create* them.
[08:26:37] dminuoso: Which is part of the problem really
[08:26:43] konsolebox: or define, it doesn't matter
[08:27:10] konsolebox: the x = Create.new() .. or x = Struct.new() is what i described as anonymous declaration
[08:27:29] cliluw: has joined #ruby
[08:27:34] konsolebox: if you use 'class X; end', it's not local declaration/creation
[08:27:43] dminuoso: konsolebox: Let's pick a slightly better example, it's representative because its a problem Im working on at the moment (not in ruby though but who cares)
[08:28:09] dminuoso: konsolebox: So right now I have a server dealing with various network protocols. As part of that there's different notions of `Header` that I have.
[08:28:20] Emmanuel_Chanel: has joined #ruby
[08:28:39] dminuoso: So I just invoke thors hammer and create a type `Header` out of thin air for a local module so I can write some code with `Header`.
[08:28:42] dminuoso: No other module needs this.
[08:28:52] dminuoso: 10:27 konsolebox | the x = Create.new() .. or x = Struct.new() is what i described as anonymous declaration
[08:28:56] dminuoso: This doesnt really work.
[08:29:03] dminuoso: Let me show you why
[08:29:48] dminuoso: konsolebox: https://eval.in/999188
[08:30:06] dminuoso: The only other place it could go is this: https://eval.in/999189
[08:30:11] dminuoso: But that wont work either.
[08:30:40] dminuoso: And I absolutely without a questoin dont want to create a class on the spot when I need it. That's just computational overhead that is downright silly
[08:31:09] schleppel: has joined #ruby
[08:31:31] dminuoso: Now I could probably use refinements to do this, but they are god awful to use.
[08:32:38] dminuoso: konsolebox: https://eval.in/999190 this is also a trick you could do.
[08:32:46] dminuoso: But no, I dont want to have to use methods to hack this in.
[08:33:02] dminuoso: I dont want that thing inside the same file anyway
[08:33:07] PaulePanter: has joined #ruby
[08:35:37] guille-moe: has joined #ruby
[08:35:40] dminuoso: I mean hey. Even awful JavaScript has proper modules.
[08:36:47] dminuoso: It's like Crockford has found out: JavaScript has good parts - the book was just really small.. =)
[08:37:31] konsolebox: dminuoso: i think i now get what you mean, but like i said, the only way to avoid nameclashes in Object namespace is to use another personal namespace
[08:37:57] konsolebox: also for your example, you can create Problem::A
[08:38:38] dminuoso: I guess I could create local aliases in the places I need it..
[08:38:45] dminuoso: like `person = Foo::Bar::Quux::Person`
[08:38:56] dminuoso: I mean Ive been doing it for a while now, but it's mildly annoying
[08:40:58] armyriad: has joined #ruby
[08:42:51] Mike11: has joined #ruby
[08:44:22] ix: hello. It seemed that I had some older version of ruby installed so Itried some code :) https://eval.in/999198
[08:44:53] ix: I have some issues , i thinkit's because of the scope, if any of you could check it out, it would be really cool.
[08:44:58] amar: has joined #ruby
[08:46:37] ix: basically i'm doing a parser, that goes a file line by line and gets 'the action' and 'the data' and then does database stuff with those.
[08:48:27] dminuoso: ix: Let's fix some regular things.
[08:48:41] dminuoso: ix: So instead of manually opening and closing, the standard way is to use the callback variant with a block.
[08:48:53] dminuoso: ix: That is `File.open(...) { |fh| .. use fh here .. }`
[08:48:58] dminuoso: it will automatically close the file handle
[08:50:11] dminuoso: ix: Then tell us what your problem is.
[08:51:12] sysvalve: has joined #ruby
[08:51:25] x77686d: has joined #ruby
[08:51:40] ix: i'm sorry, i started yesterday. I'm blind to my errors.
[08:52:08] kke: lately i've run a couple of times into a situation where bundler happily installs incompatible dependencies and everything seems to work fine, but then doing gem build + gem install for the thing fails because of unresolvable deps. seems weird to me that bundler does not complain.
[08:54:33] jamesaxl: has joined #ruby
[08:57:35] govg: has joined #ruby
[08:58:48] nowhere_man: has joined #ruby
[09:03:21] tomphp: has joined #ruby
[09:05:05] pwnd_nsfw: has joined #ruby
[09:11:09] Matthew1: has joined #ruby
[09:13:33] gr33n7007h: has joined #ruby
[09:14:13] konsolebox: ix: remember that `line` only gets renewed on a new iteration of the loop, not after you check it with =~. i'm also not sure about the lifetime of c1. maybe you need to use @c1 instead. still it's bad logic that you presume c1 is already instantiated inside `if line =~ /\s*(K)\s*/`.
[09:17:54] ix: yes, i did modify the code to hilight the problem. and the c1 should be dynamic too.
[09:19:30] ix: basically it should create a new Contender when the line has 'Paramz' and any lines that contain the id of that Contender would be then added to the class. 'c1.testAdd' here
[09:20:08] nowhere_man: has joined #ruby
[09:28:30] za1b1tsu: has joined #ruby
[09:32:42] amar: has joined #ruby
[09:33:57] amar: has joined #ruby
[09:39:20] psychicist__: has joined #ruby
[09:42:38] ellcs: has joined #ruby
[09:43:40] ferr1: has joined #ruby
[09:44:03] ferr1: has left #ruby: ()
[09:46:11] x77686d: has joined #ruby
[09:47:00] jyaworski: has joined #ruby
[09:47:21] tomphp: has joined #ruby
[09:48:26] nowhere_man: has joined #ruby
[09:48:38] jottr: has joined #ruby
[09:52:40] karapetyan: has joined #ruby
[09:52:44] kapil___: How to convert string to underscore case?
[09:54:35] al2o3-cr: kapil___: from camelcase?
[09:56:36] _antares_: has joined #ruby
[09:56:56] apeiros: kapil___: require "active_support/core_ext/string/inflections"; "HelloWorld".underscore # => "hello_world"
[09:57:09] za1b1tsu: has joined #ruby
[09:57:54] kapil___: apeiros: thanks
[10:02:31] al2o3-cr: kapil___: "FooBar".gsub(/(.)(\p{Uppercase})/, '\1_\2').downcase
[10:05:16] kapil___: al2o3-cr: thanks
[10:08:03] al2o3-cr: i'm happy its friday, roll on the long weekend.
[10:09:09] kapil___: al2o3-cr: do you have not to go to job on Saturday?
[10:09:57] al2o3-cr: kapil___: no, i never work weekends.
[10:10:34] kapil___: Oh in my country people mad behind money
[10:10:35] jyaworski: has joined #ruby
[10:11:05] al2o3-cr: mon-fri is good enough for me :P
[10:11:58] kapil___: How many hours you work on mon-friday?
[10:12:20] al2o3-cr: kapil___: depends
[10:13:03] RougeR: has joined #ruby
[10:13:03] RougeR: has joined #ruby
[10:13:04] al2o3-cr: between 40-60 hrs p/w
[10:13:14] kapil___: I also want to free, I working so much hours everyday
[10:13:42] al2o3-cr: entirely upto me though
[10:16:19] apeiros: now I wonder why I complained when our 5d week went from 40h to 42.5h
[10:16:29] kapil___: `"oes".classify` return `O` I want Oe.
[10:17:25] apeiros: maybe you shouldn't use string manipulation for this kind of relations. just saying.
[10:17:56] kmckelvin: has joined #ruby
[10:17:58] AJA4350: has joined #ruby
[10:18:19] kapil___: apeiros: thanks. but i have used so much string manipulation like this. what i should do
[10:18:44] apeiros: I don't know your problem so how'd I know your solution? all I know is your current solution and that one looks bad.
[10:20:54] kapil___: apeiros: thanks i will think other solution
[10:23:11] karapetyan: has joined #ruby
[10:25:55] yohji: has joined #ruby
[10:27:41] zhangkaizhao: has joined #ruby
[10:28:10] schneider-: has joined #ruby
[10:37:42] conta: has joined #ruby
[10:43:26] alfiemax: has joined #ruby
[10:46:31] ix: well thanks for the help. I'll try the @c1 and the different file.open later. I don't have internet and the only book I have on ruby is for version 1.9. :P
[10:47:56] schneider-: has joined #ruby
[10:53:41] ipe: has joined #ruby
[10:59:45] tomphp: has joined #ruby
[11:01:00] ur5us: has joined #ruby
[11:06:52] alfiemax: has joined #ruby
[11:09:06] schneider-: has joined #ruby
[11:10:16] conta: has joined #ruby
[11:12:35] suukim: has joined #ruby
[11:14:41] schooner: has joined #ruby
[11:14:50] govg: has joined #ruby
[11:16:50] karapetyan: has joined #ruby
[11:20:37] schneider-: has joined #ruby
[11:21:28] stormpack: has joined #ruby
[11:23:06] chef_byd: has joined #ruby
[11:26:01] burgestrand: has joined #ruby
[11:28:09] ellcs: has joined #ruby
[11:31:58] karapetyan: has joined #ruby
[11:34:43] mlkkk: has joined #ruby
[11:36:13] drale2k_: has joined #ruby
[11:37:33] aufi: has joined #ruby
[11:37:57] saTchymoto: has joined #ruby
[11:40:21] guille-moe: has joined #ruby
[11:41:26] cschneid_: has joined #ruby
[11:46:55] gokhan1: has joined #ruby
[11:51:35] gokhan1: has joined #ruby
[11:52:51] karapetyan: has joined #ruby
[11:53:58] ldnunes: has joined #ruby
[11:55:00] cptAngry: has joined #ruby
[11:58:06] yohji: has joined #ruby
[12:00:44] apparition: has joined #ruby
[12:01:23] jcalla: has joined #ruby
[12:03:15] bmurt: has joined #ruby
[12:04:33] schneider-: has joined #ruby
[12:05:49] alfiemax: has joined #ruby
[12:06:43] synthroid: has joined #ruby
[12:09:01] venmx: has joined #ruby
[12:13:28] schooner: has joined #ruby
[12:15:00] Matthew1: has joined #ruby
[12:16:33] alfiemax: has joined #ruby
[12:20:09] cyberjames: has joined #ruby
[12:22:42] InfinityFye: has joined #ruby
[12:23:47] InfinityFye: has left #ruby: ()
[12:28:33] Cavallari: has joined #ruby
[12:34:18] Psybur: has joined #ruby
[12:35:47] houhoulis: has joined #ruby
[12:36:57] chocoelho: has joined #ruby
[12:37:57] dionysus69: has joined #ruby
[12:38:06] ggherdov: has joined #ruby
[12:41:49] blackbaba: has joined #ruby
[12:43:36] blackbaba: has left #ruby: ("Closing Window")
[12:46:57] donofrio: has joined #ruby
[12:52:22] jottr: has joined #ruby
[12:58:52] schneider-: has joined #ruby
[13:00:43] gheegh: has joined #ruby
[13:07:33] imperator: has joined #ruby
[13:12:35] rippa: has joined #ruby
[13:14:10] GodFather: has joined #ruby
[13:14:21] MoskitoHero: has joined #ruby
[13:15:14] rwb: has joined #ruby
[13:15:44] dberger: has joined #ruby
[13:16:14] noycesauce: has joined #ruby
[13:17:58] suukim: has joined #ruby
[13:19:04] burgestrand: has joined #ruby
[13:20:01] schneider-: has joined #ruby
[13:33:11] tvw: has joined #ruby
[13:33:37] coderphive: has joined #ruby
[13:34:05] venmx: has joined #ruby
[13:38:23] NL3limin4t0r: has joined #ruby
[13:40:25] herbmillerjr: has joined #ruby
[13:41:39] amelliaa: has joined #ruby
[13:44:05] millerti: has joined #ruby
[13:47:04] drale2k_: has joined #ruby
[13:49:55] jyaworski: has joined #ruby
[13:54:34] tomphp: has joined #ruby
[13:55:14] schneider-: has joined #ruby
[13:57:17] Ryzokuken: has joined #ruby
[14:00:44] Asher: has joined #ruby
[14:01:30] jyaworski: has joined #ruby
[14:03:52] kaltorak: has joined #ruby
[14:07:57] ggherdov: has joined #ruby
[14:08:00] gnufied: has joined #ruby
[14:17:28] za1b1tsu: has joined #ruby
[14:18:57] mondongo: has joined #ruby
[14:22:34] Asher: has joined #ruby
[14:28:05] n0m4d1c: has joined #ruby
[14:28:32] jyaworski: has joined #ruby
[14:30:01] grilix_: has joined #ruby
[14:32:19] c0ncealed1: has joined #ruby
[14:40:17] ggherdov: has joined #ruby
[14:44:31] inerthia: has joined #ruby
[14:49:36] schneider-: has joined #ruby
[14:50:05] cschneid_: has joined #ruby
[14:52:08] chouhoulis: has joined #ruby
[14:56:59] amar_: has joined #ruby
[14:59:07] Janky: has joined #ruby
[14:59:45] yohji: has joined #ruby
[15:04:31] troys: has joined #ruby
[15:07:09] jottr: has joined #ruby
[15:07:28] jamesaxl: has joined #ruby
[15:08:53] amar: has joined #ruby
[15:09:01] mondongo: has joined #ruby
[15:09:12] GodFather_: has joined #ruby
[15:09:25] chocoelho: has joined #ruby
[15:10:30] GodFather: has joined #ruby
[15:10:55] amatas: has joined #ruby
[15:11:38] tomphp: has joined #ruby
[15:13:55] kanobt61_: has joined #ruby
[15:16:59] chouhoulis: has joined #ruby
[15:18:24] tomphp: has joined #ruby
[15:19:43] schneider-: has joined #ruby
[15:26:42] Yzguy: has joined #ruby
[15:29:13] chouhoulis: has joined #ruby
[15:29:58] Yzguy: has joined #ruby
[15:30:07] boxrick: Is there a sensible way of hiding a warning?
[15:30:16] Yzguy: has joined #ruby
[15:30:31] boxrick: In this case: warning: already initialized constant OpenSSL::SSL::VERIFY_PEER
[15:32:36] dminuoso: boxrick: Yes.
[15:32:40] dminuoso: boxrick: You fix the offending code.
[15:33:37] boxrick: $VERBOSE = nil also does the trick, in this case. It isn't worth fixing this warning
[15:33:41] synthroid: has joined #ruby
[15:34:01] boxrick: Its trash I won't be disabling SSL checks as I do now
[15:34:02] cyberg: has joined #ruby
[15:36:15] ipee: has joined #ruby
[15:40:25] jottr: has joined #ruby
[15:40:48] schneider-: has joined #ruby
[15:41:36] cagomez: has joined #ruby
[15:42:49] jyaworski: has joined #ruby
[15:42:56] karapetyan: has joined #ruby
[15:43:08] jcarl43: has joined #ruby
[15:45:42] karapetyan: has joined #ruby
[15:52:49] nowhere_man: has joined #ruby
[15:57:12] nowhere_man: has joined #ruby
[15:59:04] GodFather: has joined #ruby
[16:01:55] schneider-: has joined #ruby
[16:05:36] x77686d: has joined #ruby
[16:10:10] ggherdov: has joined #ruby
[16:12:11] chris349: has joined #ruby
[16:14:52] cagomez: has joined #ruby
[16:16:41] jxv: has joined #ruby
[16:17:02] n0m4d1c: has joined #ruby
[16:18:27] drale2k_: has joined #ruby
[16:21:31] cthulchu: has joined #ruby
[16:22:16] orbyt_: has joined #ruby
[16:25:25] schneider-: has joined #ruby
[16:26:08] x77686d: has joined #ruby
[16:29:44] jyaworski: has joined #ruby
[16:30:33] troulouliou_div2: has joined #ruby
[16:31:53] dr3wo: has joined #ruby
[16:32:50] psychicist__: has joined #ruby
[16:33:28] Deesl: has joined #ruby
[16:34:35] rajpratik71: has joined #ruby
[16:37:59] biberu: has joined #ruby
[16:40:15] grilix: has joined #ruby
[16:40:28] eckhardt_: has joined #ruby
[16:42:28] ggherdov: has joined #ruby
[16:44:29] jyaworski: has joined #ruby
[16:46:17] cagomez: has joined #ruby
[16:46:18] jenrzzz: has joined #ruby
[16:46:18] jenrzzz: has joined #ruby
[16:48:16] apeiros: has joined #ruby
[16:51:59] sanscoeur: has joined #ruby
[16:53:43] k0mpa: has joined #ruby
[16:55:12] shoogz: has joined #ruby
[16:55:52] nfsnobody: has joined #ruby
[16:58:28] jxv: has left #ruby: ("string can snapped")
[17:01:33] nitric: has joined #ruby
[17:06:28] drale2k_: has joined #ruby
[17:08:22] Asher: has joined #ruby
[17:08:25] cagomez: has joined #ruby
[17:10:18] grilix: has joined #ruby
[17:15:00] ldepandis: has joined #ruby
[17:18:53] ellcs: has joined #ruby
[17:24:10] RougeR: has joined #ruby
[17:24:11] RougeR: has joined #ruby
[17:28:19] nfsnobody: has joined #ruby
[17:29:38] larcara: has joined #ruby
[17:32:20] dr3wo: has joined #ruby
[17:33:50] nfsnobody: has joined #ruby
[17:37:24] pilne: has joined #ruby
[17:38:56] minimalism: has joined #ruby
[17:42:03] gheegh: has joined #ruby
[17:42:13] eckhardt_: has joined #ruby
[17:51:39] nitric: has joined #ruby
[17:52:34] n0m4d1c_: has joined #ruby
[17:55:26] chouhoulis: has joined #ruby
[17:59:20] jyaworski: has joined #ruby
[17:59:42] ramfjord: has joined #ruby
[18:00:32] CircleDot: has joined #ruby
[18:01:51] mondongo: has joined #ruby
[18:04:19] schneider-: has joined #ruby
[18:10:06] karapetyan: has joined #ruby
[18:14:16] jyaworski: has joined #ruby
[18:15:02] grilix: has joined #ruby
[18:19:36] sameerynho: has joined #ruby
[18:20:30] Sembei: has joined #ruby
[18:25:30] mondongo: has joined #ruby
[18:27:28] jenrzzz: has joined #ruby
[18:27:29] jenrzzz: has joined #ruby
[18:30:54] jyaworski: has joined #ruby
[18:34:08] n008f4g_: has joined #ruby
[18:36:30] Bacta: has joined #ruby
[18:38:00] stbn: has joined #ruby
[18:38:56] clemens3: has joined #ruby
[18:40:07] Sembei: has joined #ruby
[18:43:40] jyaworski: has joined #ruby
[18:49:23] conta: has joined #ruby
[19:11:11] RougeR: has joined #ruby
[19:18:14] schneider-: has joined #ruby
[19:18:22] ramfjord: has joined #ruby
[19:19:46] n0m4d1c: has joined #ruby
[19:19:47] jamesaxl: has joined #ruby
[19:24:23] ramfjord: has joined #ruby
[19:29:30] Bacta: has joined #ruby
[19:30:05] phaul: has joined #ruby
[19:30:18] ramfjord: has joined #ruby
[19:35:53] karapetyan: has joined #ruby
[19:36:18] ramfjord: has joined #ruby
[19:39:31] jyaworski: has joined #ruby
[19:43:49] ramfjord: has joined #ruby
[19:49:41] chocoelho: has joined #ruby
[19:51:31] ramfjord: has joined #ruby
[19:51:42] mwlang: has joined #ruby
[19:52:44] x77686d: has joined #ruby
[19:57:25] ramfjord: has joined #ruby
[19:57:36] BTRE: has joined #ruby
[20:02:20] SeepingN: has joined #ruby
[20:02:20] cagomez: has joined #ruby
[20:03:28] ramfjord: has joined #ruby
[20:04:19] dinfuehr: has joined #ruby
[20:04:43] jenrzzz: has joined #ruby
[20:09:21] ramfjord: has joined #ruby
[20:15:25] BTRE: has joined #ruby
[20:16:59] n0m4d1c: has joined #ruby
[20:17:00] ramfjord: has joined #ruby
[20:19:30] jyaworski: has joined #ruby
[20:21:07] n0m4d1c_: has joined #ruby
[20:22:52] ramfjord: has joined #ruby
[20:26:47] zautomata3: has joined #ruby
[20:28:48] dr3wo: has joined #ruby
[20:28:52] ramfjord: has joined #ruby
[20:30:30] justinweiss: has joined #ruby
[20:31:42] schneider-: has joined #ruby
[20:31:47] jamesaxl: has joined #ruby
[20:33:20] jyaworski: has joined #ruby
[20:33:20] blackmesa: has joined #ruby
[20:34:50] ramfjord: has joined #ruby
[20:40:15] mwlang: has joined #ruby
[20:41:18] jottr: has joined #ruby
[20:42:28] ramfjord: has joined #ruby
[20:47:53] raynold: has joined #ruby
[20:48:05] ramfjord: has joined #ruby
[20:49:13] raynold: has joined #ruby
[20:51:32] mondongo: has joined #ruby
[20:56:56] eckhardt_: has joined #ruby
[20:58:14] gheegh: has joined #ruby
[21:00:07] BTRE: has joined #ruby
[21:04:46] ericlima: has joined #ruby
[21:09:23] rwb: has joined #ruby
[21:09:39] jyaworski: has joined #ruby
[21:09:43] Mike11: has joined #ruby
[21:11:29] jenrzzz_: has joined #ruby
[21:12:07] Sembei: has joined #ruby
[21:12:45] Psybur: has joined #ruby
[21:13:05] nowhere_man: has joined #ruby
[21:14:16] ghoti: has joined #ruby
[21:15:35] weaksauce: has joined #ruby
[21:16:15] zautomata3: has joined #ruby
[21:18:20] amar: has joined #ruby
[21:18:56] ericlima: hey, how do I join the RoR channel?
[21:19:02] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[21:19:13] apeiros: you type //join #rubyonrails
[21:19:21] havenwood: https://freenode.net/kb/answer/registration
[21:19:26] ericlima: I'm on limechat and I cna't contact nickserv ?
[21:19:53] ericlima: Or I'm not sure how from LimeChat.. Anyone use LimeChat before?
[21:20:00] apeiros: its output is on the server
[21:20:02] havenwood: ericlima: You should be able to type: /msg NickServ
[21:20:13] apeiros: better is /ns
[21:20:26] ericlima: havenwood: normally yeah but limechat doesn't do anything when I tyhpe that
[21:20:42] havenwood: ericlima: How about?: /ns HELP
[21:20:50] apeiros: e.g. '/ns info'. to see the output, click on the server in the channels tab/board
[21:20:59] ericlima: nothing is happening..
[21:24:43] karapetyan: has joined #ruby
[21:27:13] baweaver: Click on the "Freenode" header
[21:27:20] baweaver: most likely you're getting messages there
[21:27:37] schneider-: has joined #ruby
[21:28:03] ericlima: thanks for the help yeah I figured that out but when I do /nick it says I've been banned in a channel and won't let me switch
[21:28:14] ericlima: I doubt I've actually been banned though so Idk what is going on
[21:29:25] Ericx2x: nvm I got it..
[21:29:38] n0m4d1c: has joined #ruby
[21:30:20] bmurt: has joined #ruby
[21:32:37] MoskitoHero: has joined #ruby
[21:36:48] amar: has joined #ruby
[21:37:00] cagomez: has joined #ruby
[21:37:28] jenrzzz: has joined #ruby
[21:38:27] chocoelho: has joined #ruby
[21:45:38] blackmesa: has joined #ruby
[21:47:27] za1b1tsu: has joined #ruby
[21:51:31] blackmesa1: has joined #ruby
[21:55:39] schneider-: has joined #ruby
[21:56:12] tdy: has joined #ruby
[21:56:28] za1b1tsu: has joined #ruby
[22:01:33] jenrzzz_: has joined #ruby
[22:07:53] n0m4d1c: has joined #ruby
[22:08:23] Paraxial: has joined #ruby
[22:08:37] jottr: has joined #ruby
[22:11:29] BTRE: has joined #ruby
[22:11:43] jenrzzz: has joined #ruby
[22:11:43] jenrzzz: has joined #ruby
[22:14:39] schneider-: has joined #ruby
[22:16:17] jyaworski: has joined #ruby
[22:17:41] sameerynho: has joined #ruby
[22:17:58] jenrzzz: has joined #ruby
[22:17:58] jenrzzz: has joined #ruby
[22:27:40] jenrzzz: has joined #ruby
[22:27:40] jenrzzz: has joined #ruby
[22:32:31] jyaworski: has joined #ruby
[22:32:59] fribmendes: has joined #ruby
[22:33:21] fribmendes: has joined #ruby
[22:35:42] apeiros: has joined #ruby
[22:36:10] jinie: has joined #ruby
[22:40:52] jottr: has joined #ruby
[22:41:40] jenrzzz: has joined #ruby
[22:45:52] x77686d: has joined #ruby
[22:47:26] jenrzzz: has joined #ruby
[22:51:35] schneider-: has joined #ruby
[22:52:31] za1b1tsu: has joined #ruby
[22:52:44] al2o3-cr: has joined #ruby
[22:58:55] za1b1tsu: has joined #ruby
[22:59:39] jyaworski: has joined #ruby
[23:10:39] ramfjord: has joined #ruby
[23:11:22] apeiros: has joined #ruby
[23:16:21] troulouliou_div2: has joined #ruby
[23:16:37] ramfjord: has joined #ruby
[23:24:09] gr33n7007h: has joined #ruby
[23:26:26] Janky: has joined #ruby
[23:28:55] schneider-: has joined #ruby
[23:37:07] szulak: has joined #ruby
[23:37:28] amar: has joined #ruby
[23:41:16] jenrzzz: has joined #ruby
[23:41:16] jenrzzz: has joined #ruby
[23:42:33] jyaworski: has joined #ruby
[23:42:45] aeyxa: has joined #ruby
[23:44:01] aeyxa: I'm trying to get something working in ruby 2.2.2 but my understanding of ruby and it's environment stuff is near to none
[23:44:34] aeyxa: I'm trying to use mod_passenger with apache, and it's complaining about bundle/setup, I installed ruby through rvm and when I created the apache config I put the path to the ruby in the rvm
[23:46:33] aeyxa: `Message from application: cannot load such file -- bundler/setup (LoadError)`
[23:49:56] baweaver: Probably a path issue - https://stackoverflow.com/questions/29533933/cannot-load-such-file-bundler-setup-loaderror-deploy-on-ubuntu-12-04-x32
[23:50:16] baweaver: especially around getting the user running apache/passenger
[23:50:28] ChanServ: +o baweaver
[23:51:07] houhoulis: has joined #ruby
[23:51:18] ChanServ: -o baweaver
[23:51:41] aeyxa: I think it has something to do with root/non-root user
[23:51:47] aeyxa: the path I put in there is correct
[23:51:53] aeyxa: it's the path under the rvm
[23:52:14] aeyxa: I'm reinstalling the passenger module under the rvm path as rvmsudo to see if that fixes it somehow
[23:52:19] aeyxa: because I don't think I did tha tbefore
[23:52:28] aeyxa: I'vebeen trying to get this to work for hours e______e
[23:52:31] baweaver: Make sure to follow all the steps
[23:52:38] baweaver: Also, why 2.2? That's pretty old.
[23:53:05] aeyxa: we have an updated application, that we want to update on a staging server, but before we can update it we want to get the old version running
[23:53:12] aeyxa: so the goal is to get the old version running as is on a new server
[23:53:15] aeyxa: then update everything
[23:53:18] aeyxa: then move it all back over
[23:53:26] aeyxa: ruby and the application
[23:54:01] aeyxa: the old version of the applications newest ruby version is 2.2.2 and the oldest ruby version for new version of application is 2.2.2
[23:54:03] aeyxa: so that's why
[23:54:20] aeyxa: complicated wording, lol
[23:55:00] aeyxa: nope that didn't fix it T_T
[23:59:57] aeyxa: baweaver: can you explain this to me? https://pastebin.com/raw/QRW20G7e I don't understand why it seems to still be using 2.0 when I run bundle, does bundle not care about your rvm?
[23:59:58] ruby[bot]: aeyxa: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com