« Back to channel list

#ruby - 30 September 2015

« Back 1 day Forward 1 day »
[00:00:09] adaedra: Rohanezio: That sounds HTML-related.
[00:00:20] Rohanezio: here you go: https://gist.github.com/rohanezio/166b69976dfcc0cc4d95
[00:00:51] Rohanezio: the code for the scoreboard is ruby related, but yes it's also made of HTML
[00:01:21] adaedra: Display issues sounds really HTML
[00:01:53] adaedra: Also, if it's rails, you may want to talk with the folks of #RubyOnRails
[00:02:11] Rohanezio: so should I ask these questions there?
[00:02:44] crdpink: has joined #ruby
[00:03:09] adaedra: Well, they're the rails experts
[00:03:51] Rohanezio: of course :) Thanks for your help
[00:06:30] cjbottaro: has joined #ruby
[00:07:15] EminenceHC: has joined #ruby
[00:07:54] sepp2k: has joined #ruby
[00:08:11] zenguy_pc: has joined #ruby
[00:10:28] icmax: has joined #ruby
[00:10:49] icmax: Hi. I want to learn networking. What's a good beginner's book?
[00:10:58] lele: has joined #ruby
[00:11:22] Joufflu: has joined #ruby
[00:11:53] Rohanezio: has joined #ruby
[00:13:52] bmurt: has joined #ruby
[00:15:35] dans: has joined #ruby
[00:15:56] EminenceHC: has joined #ruby
[00:16:16] saddad: has joined #ruby
[00:16:49] roxtrongo: has joined #ruby
[00:17:09] ledestin: has joined #ruby
[00:17:11] icmax: has left #ruby: ()
[00:17:32] porfa: hello, anyone around to gimme a help? hopefully my code is cleaner.. https://gist.github.com/anonymous/008b0215cd68e78c92e3
[00:18:00] porfa: my problem is in the file as a coment, just over 10 lines of code..
[00:18:39] porfa: shevy: my code is looking bettah
[00:19:24] tjbiddle: has joined #ruby
[00:19:31] shevy: I think you may need more practice... we check on your style in a week from now on
[00:19:51] baweaver: has joined #ruby
[00:21:29] roxtrongo: has joined #ruby
[00:21:47] porfa: i can understand, but that's not what i read on the subscription
[00:22:00] porfa: when i payed for the ir service and free node usage
[00:22:24] neanderslob: has joined #ruby
[00:22:30] brixen: has joined #ruby
[00:23:05] BraddPitt: Porfa what are you expecting that code to do?
[00:23:29] porfa: i want it to send the lines that it is outputting, into the interpreter
[00:25:20] porfa: BraddPitt: impossible?
[00:25:48] postmodern: wish there was a shortcut for Hash[collection.map { |i| [i.foo, i.bar] }]
[00:26:32] BraddPitt: well you are turning them into a string, Porfa
[00:27:26] biesiad: has joined #ruby
[00:28:46] platzhirsch: has left #ruby: ()
[00:29:35] zenspider: Porfa: the real question is WHY you are turning them into a string
[00:29:50] zenspider: answer that and the rest should fall out
[00:30:57] porfa: i can't see other way to achieve what i want, I turned them into string so i could build the whole string with the correct data
[00:31:16] zenspider: "can't see any other way"... work on that
[00:31:52] zenspider: I don't see anything in there that limits you
[00:32:19] zenspider: but magically hoping that a string will run, out of the blue? doesn't make sense
[00:32:42] neanderslob: has joined #ruby
[00:33:35] porfa: but how can i pass that string to the interpreter?
[00:33:54] zenspider: stop thinking about strings
[00:34:17] jackjackdripper: has joined #ruby
[00:34:29] zenspider: why are those strings and not just code?
[00:39:09] _djbkd: has joined #ruby
[00:42:12] tkuchiki: has joined #ruby
[00:43:09] EminenceHC: has joined #ruby
[00:43:19] bklane: has joined #ruby
[00:44:59] giuseppesolinas: has joined #ruby
[00:45:02] giuseppesolinas_: has joined #ruby
[00:45:32] axiomatic_345: has joined #ruby
[00:46:20] baweaver: has joined #ruby
[00:47:00] baweaver: postmodern: to_h
[00:47:19] baweaver: >> (1..10).map { |v| [v, v ** 2] }.to_h
[00:47:20] ruboto: baweaver # => {1=>1, 2=>4, 3=>9, 4=>16, 5=>25, 6=>36, 7=>49, 8=>64, 9=>81, 10=>100} (https://eval.in/441912)
[00:47:36] pwnd_nsfw: has joined #ruby
[00:48:01] postmodern: baweaver, ah forgot about to_h, although i still dislike constantly typing .map { [foo, bar] }
[00:48:39] baweaver: If only the language allowed you to implement such a thing in the hash class itself.
[00:49:21] baweaver: reduce is a powerhouse that can be used to reimplement map, select, and a lot of other enumerable functions
[00:49:25] baweaver: and could probably be used there
[00:50:48] EminenceHC: has joined #ruby
[00:51:49] roxtrongo: has joined #ruby
[00:51:57] theery: has joined #ruby
[00:53:42] rushed: has joined #ruby
[00:54:54] chandlerbing: has joined #ruby
[00:55:43] pipework: baweaver: Could just #zip if the keys can be determined outside of the value stuff.
[00:55:55] solocshaw: has joined #ruby
[00:55:59] baweaver: yeah, granted.
[00:56:06] baweaver: though vague issues are vague
[00:57:47] nettoweb: has joined #ruby
[00:57:48] pipework: At least they're not vogue.
[00:57:58] pipework: I'm more of a gameinformer kind of guy.
[00:59:23] cassioscabral: has joined #ruby
[00:59:32] towski_: has joined #ruby
[01:00:13] barhum2013: has joined #ruby
[01:00:19] roxtrongo: has joined #ruby
[01:00:48] shevy: is this a good thing?
[01:01:25] lampshades: has joined #ruby
[01:02:03] dikaio: has joined #ruby
[01:05:50] allcentury: has joined #ruby
[01:06:37] NeverDie: has joined #ruby
[01:07:32] blackmesa: has joined #ruby
[01:09:18] drewvanstone: has joined #ruby
[01:09:58] chipotle: has joined #ruby
[01:10:39] rushed: has joined #ruby
[01:11:43] swgillespie: has joined #ruby
[01:13:08] dikaio: has joined #ruby
[01:13:25] mrmargolis: has joined #ruby
[01:13:33] krz: has joined #ruby
[01:14:14] dravine_: has joined #ruby
[01:16:54] havenwood: has joined #ruby
[01:17:19] devoldmx: has joined #ruby
[01:18:05] Azure: has joined #ruby
[01:24:41] FrankD: has joined #ruby
[01:25:17] FrankD: has joined #ruby
[01:27:36] Rohanezio: has joined #ruby
[01:28:31] bmurt: has joined #ruby
[01:30:14] jerrrrrr: has joined #ruby
[01:33:49] cih: has joined #ruby
[01:37:08] lampshades: has joined #ruby
[01:38:23] RegulationD: has joined #ruby
[01:38:49] rushed: has joined #ruby
[01:39:01] jgpawletko: has joined #ruby
[01:40:48] roxtrongo: has joined #ruby
[01:41:34] paulcsmith_: has joined #ruby
[01:42:41] fullofcaffeine: has joined #ruby
[01:44:45] ChanServ: +o havenwood
[01:44:45] bb010g: has joined #ruby
[01:45:07] ChanServ: -o havenwood
[01:45:23] saddad: has joined #ruby
[01:46:24] rickmasta: has joined #ruby
[01:46:25] andyrs: has joined #ruby
[01:49:31] roxtrongo: has joined #ruby
[01:52:57] rushed: has joined #ruby
[01:53:54] bklane: has joined #ruby
[01:54:24] bklane: has joined #ruby
[01:56:51] roxtrongo: has joined #ruby
[01:58:01] Guest46541: has joined #ruby
[02:01:43] NeverDie: has joined #ruby
[02:05:47] Musashi007: has joined #ruby
[02:06:21] renderful: has joined #ruby
[02:06:27] casadei: has joined #ruby
[02:07:16] NeverDie: has joined #ruby
[02:07:19] haraoka: has joined #ruby
[02:10:20] tawaffan: has joined #ruby
[02:10:44] bklane: has joined #ruby
[02:10:45] pwnd_nsfw: has joined #ruby
[02:13:32] ellisTAA: has joined #ruby
[02:18:05] rismoney1: has joined #ruby
[02:20:39] EminenceHC: has joined #ruby
[02:24:10] obx: has left #ruby: ()
[02:25:26] arescorpio: has joined #ruby
[02:27:00] ramfjord: has joined #ruby
[02:29:13] InternetFriend: has joined #ruby
[02:31:20] iamninja_: has joined #ruby
[02:31:46] robh71: has joined #ruby
[02:32:33] Rohanezio: has joined #ruby
[02:34:41] michaeldeol: has joined #ruby
[02:34:44] aerozeppelin: has joined #ruby
[02:37:17] ryanMmhmm: has joined #ruby
[02:39:22] crdpink: has joined #ruby
[02:40:29] crdpink2: has joined #ruby
[02:40:39] Musashi007: has joined #ruby
[02:41:55] wldcordeiro: has joined #ruby
[02:42:02] karapetyan: has joined #ruby
[02:43:35] devoldmx: has joined #ruby
[02:44:04] tkuchiki: has joined #ruby
[02:47:24] robh71: has joined #ruby
[02:47:35] drewvanstone: has joined #ruby
[02:49:10] aerozeppelin: has joined #ruby
[02:51:32] hays: why does a=a return nil and not NameError?
[02:57:40] dopie: has joined #ruby
[02:58:03] jun_: has joined #ruby
[02:58:30] roxtrongo: has joined #ruby
[02:58:57] tmtwd: has joined #ruby
[03:00:37] rushed: has joined #ruby
[03:00:49] gener1c_: has joined #ruby
[03:01:06] mrtomme_: has joined #ruby
[03:01:20] favadi: has joined #ruby
[03:01:32] devbug: has joined #ruby
[03:01:53] Coraline: Because a gets created at the left side of the equal sign.
[03:02:00] baweaver: has joined #ruby
[03:02:43] duoi: has joined #ruby
[03:02:57] roxtrongo: has joined #ruby
[03:03:38] bruno-: has joined #ruby
[03:08:12] havenwood: has joined #ruby
[03:08:38] bklane: has joined #ruby
[03:09:38] darkf: has joined #ruby
[03:09:41] braincrash: has joined #ruby
[03:10:19] drefined: has joined #ruby
[03:11:08] rismoney1_: has joined #ruby
[03:13:04] michaeldeol: has joined #ruby
[03:14:46] Soda: has joined #ruby
[03:17:21] bklane: has joined #ruby
[03:19:31] elton: has joined #ruby
[03:19:45] ElSif: has joined #ruby
[03:20:40] aaeron: has joined #ruby
[03:21:18] hays: Coraline: hm. i guess that makes some sense
[03:21:43] michaeldeol: has joined #ruby
[03:25:14] theery: has joined #ruby
[03:26:20] unreal: has joined #ruby
[03:29:14] gix: has joined #ruby
[03:31:13] EminenceHC: has joined #ruby
[03:34:32] _djbkd: has joined #ruby
[03:36:20] houhoulis: has joined #ruby
[03:38:51] pwnd_nsfw: has joined #ruby
[03:41:48] biesiad: has joined #ruby
[03:42:00] biesiad: has left #ruby: ()
[03:45:43] Xeago: has joined #ruby
[03:48:22] Spami: has joined #ruby
[03:50:19] jun_: has joined #ruby
[03:50:42] rushed: has joined #ruby
[03:52:08] obs: has joined #ruby
[03:54:13] SylarRuby: has joined #ruby
[03:54:19] closer: has joined #ruby
[03:59:04] baegle: has joined #ruby
[03:59:36] pyon: has joined #ruby
[03:59:41] baegle: In rails, there's a global variables called ENV but I'm struggling to find a comprehensive list of all such predefined global variables. Can someone point me in the right direction?
[04:00:22] Maletor: has joined #ruby
[04:02:37] arup_r: has joined #ruby
[04:03:45] wldcordeiro: has joined #ruby
[04:05:52] havenwood: baegle: ENV is a constant in Ruby proper. In irb or pry check `ENV` or: ruby -e "p ENV"
[04:06:19] havenwood: baegle: Check other constants in irb or pry with: Module.constants
[04:07:28] renderful: has joined #ruby
[04:07:29] neanderslob: has joined #ruby
[04:08:46] havenwood: >> global_variables
[04:08:47] ruboto: havenwood # => [:$;, :$-F, :$@, :$!, :$SAFE, :$~, :$&, :$`, :$', :$+, :$=, :$KCODE, :$-K, :$,, :$/, :$-0, :$\, :$_, ...check link for more (https://eval.in/441942)
[04:09:11] baegle: havenwood: Thank you. At first attempt, I found a constant called Rails, I attempted to puts Rails.inspect and it just gave me back "Rails"
[04:10:24] wldcordeiro_: has joined #ruby
[04:10:36] havenwood: ?pry baegle
[04:10:36] ruboto: baegle, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
[04:11:58] bigkevmcd: has joined #ruby
[04:13:00] havenwood: baegle: Pry is nice for exploring Ruby in general. You might also want to ask in the Rails-specific #RubyOnRails channel regarding the Rails console and related gems.
[04:13:31] reset: has joined #ruby
[04:13:49] baegle: havenwood: Thanks. I'm struggling with debugging the source of unroutable requests of running a rails app under a subdirectory, so I guess that's the right place to start
[04:14:31] havenwood: baegle: Yeah, I'd suggest asking in the #RubyOnRails channel.
[04:16:25] havenwood: baegle: I'd suggest asking there with a gist of the code involved and error output.
[04:16:46] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[04:17:30] havenwood: baegle: You just need to register your nick to talk in Rails. Although I'm not sure if they have that enforced at the moment.
[04:17:31] amystephen: has joined #ruby
[04:17:46] baegle: my nick is registered
[04:18:03] havenwood: Aye, I should have just checked. :)
[04:18:22] baegle: :) No worries. Most people who need help aren't registered
[04:18:56] sanjayu: has joined #ruby
[04:19:08] neanderslob: has joined #ruby
[04:20:31] Eiam_: has joined #ruby
[04:22:12] obs: has joined #ruby
[04:22:37] bvthanh: has joined #ruby
[04:24:58] havenwood: baegle: export env vars that you want to be visible to subprocesses
[04:25:27] havenwood: baegle: http://ruby-doc.org/core/ENV.html
[04:25:45] havenwood: baegle: http://ss64.com/bash/export.html
[04:27:41] bklane: has joined #ruby
[04:28:37] Ademan: has joined #ruby
[04:30:47] poguez_: has joined #ruby
[04:32:07] iamninja_: has joined #ruby
[04:33:01] Ademan: is there a "most idiomatic" way to iterate over every item in an array, but skipping the first N elements? in python I might iterate over a slice arr[n:]. I can similarly slice arr[n..arr.length] but what's idiomatic here?
[04:34:58] jenrzzz: has joined #ruby
[04:35:20] drbrain: Ademan: Array#drop
[04:36:03] cih: has joined #ruby
[04:36:23] Cork: has joined #ruby
[04:37:55] chipotle: has joined #ruby
[04:38:15] finisherr: has joined #ruby
[04:38:59] Ademan: drbrain: thanks
[04:40:11] sanjayu: has joined #ruby
[04:40:23] kp666: has joined #ruby
[04:40:28] Spami: has joined #ruby
[04:40:52] kp666: has joined #ruby
[04:44:04] drewvanstone: has joined #ruby
[04:45:47] psye: has joined #ruby
[04:45:53] Musashi007: has joined #ruby
[04:46:58] psye: has joined #ruby
[04:47:29] agent_white: has joined #ruby
[04:47:36] nerium: has joined #ruby
[04:47:41] nerium: has left #ruby: ()
[04:49:18] Xeago: has joined #ruby
[04:53:16] otacon-: hey guys, i smell something funky here but i'm not sure how to fix it -> https://gist.github.com/brdrgz/128c8816bca94c3ebe26
[04:54:21] otacon-: ActivityFeedDate seems trivial, but i'm not sure if it's a good idea to move the intializer to ValidRenderable?
[04:54:53] lampshades: has joined #ruby
[04:57:51] swgillespie: has joined #ruby
[04:58:27] jackjackdripper: has joined #ruby
[04:58:30] yfeldblum: has joined #ruby
[04:58:40] bl0ndie: has joined #ruby
[04:59:27] Deviad: has joined #ruby
[05:00:10] skade: has joined #ruby
[05:01:30] guilherme: has joined #ruby
[05:02:38] devoldmx: has joined #ruby
[05:04:43] Xeago: has joined #ruby
[05:06:16] agent_white: has joined #ruby
[05:06:42] theery: has joined #ruby
[05:09:13] TomyLobo: has joined #ruby
[05:10:43] pawnbox: has joined #ruby
[05:11:09] cih: has joined #ruby
[05:12:31] roxtrongo: has joined #ruby
[05:13:15] michaeldeol: has joined #ruby
[05:14:54] workmad3_: has joined #ruby
[05:15:20] rismoney1: has joined #ruby
[05:17:56] Xeago: has joined #ruby
[05:18:42] guilherme_: has joined #ruby
[05:19:02] rezzack: has joined #ruby
[05:22:41] tejasmanohar: has joined #ruby
[05:24:19] sanjayu: has joined #ruby
[05:25:20] Xeago: has joined #ruby
[05:27:53] Anti-Pizza: has joined #ruby
[05:28:29] jun_: has joined #ruby
[05:29:01] riotjones: has joined #ruby
[05:29:39] Gnomethrower: has joined #ruby
[05:29:39] Gnomethrower: has joined #ruby
[05:32:51] bklane: has joined #ruby
[05:40:43] tagrudev: has joined #ruby
[05:41:32] dhjondoh: has joined #ruby
[05:42:03] lkba: has joined #ruby
[05:42:39] lsmola: has joined #ruby
[05:43:51] yardenbar: has joined #ruby
[05:44:44] allomov: has joined #ruby
[05:53:17] rbowlby: has joined #ruby
[05:55:04] last_staff: has joined #ruby
[05:56:58] skade: has joined #ruby
[05:59:50] tmtwd: has joined #ruby
[06:00:17] dionysus69: has joined #ruby
[06:00:21] cih: has joined #ruby
[06:04:14] arup_r: has joined #ruby
[06:04:55] cih: has joined #ruby
[06:05:23] lampshade: has joined #ruby
[06:06:05] symm-: has joined #ruby
[06:06:07] ruby-lang630: has joined #ruby
[06:06:40] ruby-lang134: has joined #ruby
[06:07:05] ruby-lang134: how do i add a method to the integer class, like factorial, so i can do n.fact?
[06:07:27] yfeldblum: has joined #ruby
[06:07:57] riotjones: has joined #ruby
[06:09:34] Pisuke: has joined #ruby
[06:09:51] krz: has joined #ruby
[06:10:37] havenwood: >> class Integer; def fact?; self == 42 end end; 42.fact?
[06:10:38] ruboto: havenwood # => true (https://eval.in/441980)
[06:10:54] eGGsha: has joined #ruby
[06:12:04] havenwood: ruby-lang134: I know that's ^ not the fact? you're doing but you can use `self` inside the method like that.
[06:13:44] wookiehangover: has joined #ruby
[06:14:13] emilkarl: has joined #ruby
[06:15:35] astrobunny: has joined #ruby
[06:17:02] [k-: has joined #ruby
[06:20:43] drewvanstone: has joined #ruby
[06:23:38] baweaver: hm, they be offline
[06:24:25] jun_: has joined #ruby
[06:24:30] baweaver: >> class Integer; def fact; self < 2 ? self : (1..self).reduce(:*) end end; 42.fact
[06:24:31] ruboto: baweaver # => 1405006117752879898543142606244511569936384000000000 (https://eval.in/441985)
[06:25:22] [k-: now make the factorial notation possible in ruby
[06:25:41] ruboto: baweaver # => /tmp/execpad-9ded4d2a82d8/source-9ded4d2a82d8:2: syntax error, unexpected '!', expecting keyword_end ...check link for more (https://eval.in/441988)
[06:27:07] aaeron: has joined #ruby
[06:27:40] firstdayonthejob: has joined #ruby
[06:28:02] baweaver: module Kernel; define_method(:!) do |n| (1..n).reduce(:*) end end
[06:28:30] baweaver: that'll break all types of fun things though
[06:30:21] baweaver: >> class Integer; define_method(:!) do (1..self).reduce(:*) end end; 5.!
[06:30:22] ruboto: baweaver # => 120 (https://eval.in/441999)
[06:31:11] baweaver: yeah, don't redefine !
[06:31:12] devoldmx: has joined #ruby
[06:31:14] baweaver: it makes pry sad
[06:31:15] havenwood: >> class Integer; def !; 1.upto(self).inject :* end end; !5
[06:31:16] ruboto: havenwood # => 120 (https://eval.in/442002)
[06:33:03] iamninja_: has joined #ruby
[06:35:38] karapetyan: has joined #ruby
[06:36:16] havenwood: I since zero factorial is one: 1.upto(self).inject 1, :*
[06:36:30] havenwood: I guess since*
[06:36:54] havenwood: One and only one way to do an empty set.
[06:37:50] akkad: has joined #ruby
[06:38:13] sanjayu: has joined #ruby
[06:40:16] otacon-: at what point is a module too small to make sense for sharing behavior?
[06:40:19] blackmesa: has joined #ruby
[06:40:26] dionysus69: has joined #ruby
[06:41:29] [k-: which fruit is considered the lowliest of the low among all the fruits?
[06:41:37] havenwood: otacon-: Empty would be too small to make sense. Hem.
[06:43:29] solars: has joined #ruby
[06:43:33] guilherme: has joined #ruby
[06:43:39] codecop: has joined #ruby
[06:44:11] otacon-: havenwood: proper usage, or no? https://gist.github.com/brdrgz/128c8816bca94c3ebe26
[06:44:21] havenwood: otacon-: looking
[06:45:19] [k-: you should have given the gist first
[06:45:27] lampshades: has joined #ruby
[06:46:25] otacon-: [k-: separate questions, i think.
[06:48:52] terlar: has joined #ruby
[06:49:30] bigbadbear: has joined #ruby
[06:49:49] trautwein: has joined #ruby
[06:51:42] psye: has joined #ruby
[06:52:05] TheWhip: has joined #ruby
[06:52:48] psye: has joined #ruby
[06:53:03] gambl0re: has joined #ruby
[06:54:46] Deviad: has joined #ruby
[06:56:11] pawnbox: has joined #ruby
[06:56:35] pawnbox: has joined #ruby
[06:57:41] bigkevmcd: has joined #ruby
[06:58:54] arup_r: has joined #ruby
[07:01:35] nfk|laptop: has joined #ruby
[07:02:04] arup_r1: has joined #ruby
[07:04:11] FrankD: has joined #ruby
[07:05:47] Ilyes512: has joined #ruby
[07:05:48] piotrj: has joined #ruby
[07:06:31] arturmartins: has joined #ruby
[07:07:52] Pathfinder: has joined #ruby
[07:10:43] krz: has joined #ruby
[07:11:20] pawnbox: has joined #ruby
[07:11:30] trautwein: has joined #ruby
[07:11:52] otacon-: havenwood: anything particularly foul there?
[07:11:56] beast: has joined #ruby
[07:12:07] jun_: has joined #ruby
[07:13:12] havenwood: otacon-: Where do the dates come from, I'm curious? Why does a single date have an end date?
[07:14:06] ndrei: has joined #ruby
[07:14:36] darkf_: has joined #ruby
[07:15:35] ndrei_: has joined #ruby
[07:16:03] DoubleMalt: has joined #ruby
[07:16:27] casadei: has joined #ruby
[07:16:54] havenwood: otacon-: I don't think extracting a module for those two methods is a particularly good idea. I'd be curious to see what they both looked like if you made them entirely separately. You might try asking for suggestions for refactoring from that vantage.
[07:19:00] otacon-: do you mean having two modules, Validatable and Renderable, or would it be a better idea to move those to ActivityFeedDate?
[07:19:23] otacon-: and do away with the module(s) entirely
[07:19:51] jimbow: has joined #ruby
[07:20:29] atomical: has joined #ruby
[07:20:46] otacon-: let me add the exhibit methods for context
[07:22:14] DoubleMalt: has joined #ruby
[07:22:16] havenwood: !ban jimbow !P
[07:22:16] otacon-: havenwood: updated
[07:22:17] ChanServ: +b jimbow!*@*
[07:22:17] ChanServ: ChanServ kicked jimbow: is banned from this channel
[07:22:47] arup_r1: one more kick.. yay!
[07:24:29] rdark: has joined #ruby
[07:24:37] dawkirst: has joined #ruby
[07:25:34] freezevee: has joined #ruby
[07:26:33] havenwood: otacon-: I just meant to show a separate ActivityFeedDateRange and ActivityFeedSingleDate with no inheritance or mixins but both fully functional. I thought that might be a nice exercise to see where exactly the differences are and might get you better suggestions on refactoring.
[07:26:54] SCHAAP137: has joined #ruby
[07:32:55] Musashi007: has joined #ruby
[07:33:12] Lildirt: has joined #ruby
[07:35:29] moeabdol3: has joined #ruby
[07:36:28] porfa: has joined #ruby
[07:37:44] PlasmaStar: has joined #ruby
[07:38:39] aibot: has joined #ruby
[07:40:47] Pumukel: has joined #ruby
[07:41:58] devoldmx: has joined #ruby
[07:46:10] allomov: has joined #ruby
[07:46:31] psye: has joined #ruby
[07:47:25] felixr: has joined #ruby
[07:47:45] psye: has joined #ruby
[07:48:22] cih: has joined #ruby
[07:49:29] futilegames: has joined #ruby
[07:52:08] drptbl: has joined #ruby
[07:54:52] RegulationD: has joined #ruby
[07:55:01] anisha: has joined #ruby
[07:55:40] anisha: has joined #ruby
[07:56:56] Hounddog: has joined #ruby
[07:57:06] lipoqil: has joined #ruby
[07:57:13] Macaveli: has joined #ruby
[07:57:24] dawkirst: has joined #ruby
[07:57:43] platzhirsch: has joined #ruby
[08:00:30] atomical: has joined #ruby
[08:01:52] futilegames: has joined #ruby
[08:02:00] qba73: has joined #ruby
[08:02:18] platzhirsch: has left #ruby: ()
[08:02:23] mikecmpbll: has joined #ruby
[08:03:03] piotrj: has joined #ruby
[08:03:55] aganov: has joined #ruby
[08:04:32] Ilyes512: has joined #ruby
[08:05:17] skade: has joined #ruby
[08:05:36] drptbl: has joined #ruby
[08:06:07] joonty: has joined #ruby
[08:06:16] charliesome: has joined #ruby
[08:09:01] Timba-as: has joined #ruby
[08:09:08] renderful: has joined #ruby
[08:11:02] chthon: has joined #ruby
[08:11:15] mhib: has joined #ruby
[08:15:09] Xeago: has joined #ruby
[08:15:34] herbst: has joined #ruby
[08:17:40] sbhatore: has joined #ruby
[08:17:57] wookiehangover: has joined #ruby
[08:19:19] Musashi007: has joined #ruby
[08:20:24] Kendos-Kenlen: has joined #ruby
[08:21:08] Spami: has joined #ruby
[08:23:22] stardiviner: has joined #ruby
[08:23:34] Musashi007: has joined #ruby
[08:25:45] lxsameer: has joined #ruby
[08:26:38] zotherstupidguy: has joined #ruby
[08:27:27] futilegames_: has joined #ruby
[08:27:30] charliesome: has joined #ruby
[08:27:49] burgestrand: has joined #ruby
[08:28:11] tuor: has joined #ruby
[08:30:08] leafybasil: has joined #ruby
[08:30:13] dmolina: has joined #ruby
[08:31:03] Peteykun: has joined #ruby
[08:31:31] c0m0: has joined #ruby
[08:31:38] Pupeno: has joined #ruby
[08:32:09] qiukun: has joined #ruby
[08:33:17] grassdog: has joined #ruby
[08:33:57] iamninja_: has joined #ruby
[08:35:24] UtkarshRay: has joined #ruby
[08:35:44] Xeago: has joined #ruby
[08:38:34] mondayrain: has joined #ruby
[08:38:49] krisquigley: has joined #ruby
[08:39:49] ta: has joined #ruby
[08:40:50] blackmesa: has joined #ruby
[08:44:05] devoldmx: has joined #ruby
[08:44:12] Zai00: has joined #ruby
[08:44:15] gustav__: has joined #ruby
[08:44:58] davidhq: has joined #ruby
[08:45:36] Siyfion: has joined #ruby
[08:46:16] mxrguspxrt: has joined #ruby
[08:48:47] soloone: has joined #ruby
[08:48:55] sbhatore: has joined #ruby
[08:49:21] leafybasil: has joined #ruby
[08:49:41] Macaveli: has joined #ruby
[08:50:10] leafybasil: has joined #ruby
[08:53:02] sanjayu: has joined #ruby
[08:53:03] blackmesa: has joined #ruby
[08:53:24] newbieruby: has joined #ruby
[08:54:12] EminenceHC: has joined #ruby
[08:55:20] Zai00: has joined #ruby
[08:56:44] newbieruby: Hey guys, I'm running ruby code through console and something is going wrong. Luckily it's logging to STDOUT but i don't know how to read or acces the log. How does stdout work? how do i check the error log?
[08:57:20] jhass: newbieruby: stdout, unless you redirect it, is connected to your terminal, it's right displayed
[08:57:56] Anti-Pizza: has joined #ruby
[08:58:50] newbieruby: I'm running it through windows command promt, i have no additional terminals etc where there could be output and it's not displayed in the windows console. just the message "logging to STDOUT initialized with level INFO"
[09:00:30] Gnomethrower: has joined #ruby
[09:00:30] Gnomethrower: has joined #ruby
[09:02:00] piotrj: has joined #ruby
[09:02:55] PaulCape_: has joined #ruby
[09:03:20] shredding: has joined #ruby
[09:05:05] casadei: has joined #ruby
[09:06:32] jhass: newbieruby: probably there just aren't any log messages?
[09:06:34] timonv: has joined #ruby
[09:06:44] jenrzzz: has joined #ruby
[09:07:43] newbieruby: jhass: Maybe not, but the code stops midway with the message logging to stdout. So I thought there might be answers there
[09:07:59] giuseppesolinas: has joined #ruby
[09:08:02] giuseppesolinas_: has joined #ruby
[09:08:37] htmldrum: has joined #ruby
[09:09:09] blaxter: has joined #ruby
[09:11:30] arturmartins: has joined #ruby
[09:12:15] Zai00: has joined #ruby
[09:14:22] nfk: has joined #ruby
[09:14:24] beast: has joined #ruby
[09:15:51] pandaant: has joined #ruby
[09:17:35] stamina: has joined #ruby
[09:18:24] Ilyes512: has joined #ruby
[09:19:33] Macaveli: has joined #ruby
[09:20:18] beauby: has joined #ruby
[09:21:04] gustav__: has joined #ruby
[09:21:05] dravine_: has joined #ruby
[09:22:35] bvthanh: has joined #ruby
[09:27:08] livcd: what are some of the upcoming ruby 3 features ?
[09:27:21] PaulCapestany: has joined #ruby
[09:28:27] jhass: the future knows
[09:29:00] adaedra: But I'm tired of waiting for the future!
[09:29:30] adaedra: Ah want it now!
[09:31:21] Kendos-Kenlen: has joined #ruby
[09:32:20] nettoweb: has joined #ruby
[09:32:36] gregf_: i want patience and i want it now!
[09:33:10] gregf_: is ruby3 going to be faster than php?
[09:33:53] dravine_: has joined #ruby
[09:34:20] Flyy7: has joined #ruby
[09:36:32] obs: has joined #ruby
[09:38:05] livcd: i though ruby is generally faster than php
[09:38:13] livcd: and python as well
[09:38:50] adaedra: They all have different performance in different situations and different use cases
[09:39:35] TvL2386: has joined #ruby
[09:40:38] arup_r: has joined #ruby
[09:42:49] certainty: there are rumors though about things that might or might not come. Matz' talked about them. (last year i believe)
[09:42:57] voker57: has joined #ruby
[09:44:38] drptbl: has joined #ruby
[09:45:14] jenrzzz: has joined #ruby
[09:50:11] TheWhip: has joined #ruby
[09:52:19] pawnbox: has joined #ruby
[09:54:54] EminenceHC: has joined #ruby
[09:57:25] ledestin: has joined #ruby
[09:57:41] PaulCape_: has joined #ruby
[09:58:04] krz: has joined #ruby
[09:58:05] marr: has joined #ruby
[10:00:50] nfk|laptop: has joined #ruby
[10:00:57] tuor: has joined #ruby
[10:02:48] K1MOS: has joined #ruby
[10:03:26] tagrudev: has joined #ruby
[10:03:53] tvw: has joined #ruby
[10:04:00] araujo: has joined #ruby
[10:05:50] araujo: has joined #ruby
[10:10:45] apt-get: has joined #ruby
[10:16:07] Pupeno: has joined #ruby
[10:19:14] giuseppesolinas: has joined #ruby
[10:19:21] drewvanstone: has joined #ruby
[10:19:25] giuseppesolinas_: has joined #ruby
[10:20:20] rickmasta: has joined #ruby
[10:22:06] TheWhip: has joined #ruby
[10:22:41] PaulCapestany: has joined #ruby
[10:23:32] TheWhip_: has joined #ruby
[10:26:30] tuor: has joined #ruby
[10:26:35] diegobiavati: has joined #ruby
[10:27:02] rodfersou: has joined #ruby
[10:27:45] tuor: has joined #ruby
[10:27:47] pawnbox: has joined #ruby
[10:29:45] pawnbox_: has joined #ruby
[10:30:06] tuor: has joined #ruby
[10:30:28] michael_mbp: has joined #ruby
[10:31:31] howdoi: has joined #ruby
[10:32:08] tuor: has joined #ruby
[10:32:27] dhjondoh: has joined #ruby
[10:32:41] PaulCapestany: has joined #ruby
[10:34:20] msb_: has joined #ruby
[10:34:49] iamninja_: has joined #ruby
[10:35:42] subshad: has joined #ruby
[10:36:42] porfa: has joined #ruby
[10:40:11] ramfjord: has joined #ruby
[10:40:35] Ilyes512: has joined #ruby
[10:40:39] ericjphillips: has joined #ruby
[10:41:10] piotrj: has joined #ruby
[10:41:50] Anti-Pizza: has joined #ruby
[10:43:21] jenrzzz: has joined #ruby
[10:43:51] dhjondoh: has joined #ruby
[10:44:12] tuor: has joined #ruby
[10:48:52] tuor: has joined #ruby
[10:49:11] PaulCape_: has joined #ruby
[10:49:13] Azure: has joined #ruby
[10:51:10] diegobiavati_: has joined #ruby
[10:53:28] tuor: has joined #ruby
[10:53:48] apt-get: has joined #ruby
[10:53:55] casadei: has joined #ruby
[10:56:06] JaRe_Ax: has joined #ruby
[10:57:44] parduse: has joined #ruby
[10:57:53] keen___________0: has joined #ruby
[10:58:20] Flying_Squirrel: has joined #ruby
[10:59:16] jokester: has joined #ruby
[11:00:07] shevy: what might come
[11:00:07] freerobby: has joined #ruby
[11:00:21] tuor: has joined #ruby
[11:04:27] SylarRuby: has joined #ruby
[11:04:38] phutchins1: has joined #ruby
[11:05:03] Pathfinder: has joined #ruby
[11:05:11] axiomatic_345: has joined #ruby
[11:05:46] platzhirsch: has joined #ruby
[11:07:31] Scripore: has joined #ruby
[11:07:38] TheWhip: has joined #ruby
[11:08:15] Pupeno: has joined #ruby
[11:09:59] dionysus69: has joined #ruby
[11:10:07] bigkevmcd: has joined #ruby
[11:10:14] solocshaw: has joined #ruby
[11:11:31] shevy: certainty teeeeelll of the future!
[11:12:19] TheWhip_: has joined #ruby
[11:12:35] tsujp: has joined #ruby
[11:12:37] charliesome: has joined #ruby
[11:13:04] PaulCapestany: has joined #ruby
[11:14:58] jhass: Telling the future, with certainty
[11:15:34] blackmesa: has joined #ruby
[11:15:50] arup_r: has joined #ruby
[11:16:32] burgestrand: has joined #ruby
[11:17:27] Xeago: has joined #ruby
[11:17:45] krz: has joined #ruby
[11:18:08] jenrzzz: has joined #ruby
[11:19:37] decoponyo: has joined #ruby
[11:22:34] Balzrael: has joined #ruby
[11:25:21] davedev24: has joined #ruby
[11:26:29] TheWhip: has joined #ruby
[11:26:36] iamninja_: has joined #ruby
[11:27:27] qiukun: has joined #ruby
[11:28:33] but3k4: has joined #ruby
[11:28:53] Ilyes512: has joined #ruby
[11:29:20] dhjondoh: has joined #ruby
[11:29:40] ldnunes: has joined #ruby
[11:30:17] apt-get: has joined #ruby
[11:30:43] syath: has joined #ruby
[11:30:48] porfa: hello, good morning
[11:30:49] cirenyc: has joined #ruby
[11:31:08] TheWhip: has joined #ruby
[11:31:11] arup_r1: has joined #ruby
[11:32:33] Macaveli: has joined #ruby
[11:33:04] karapetyan: has joined #ruby
[11:33:27] cirenyc: has joined #ruby
[11:34:06] TheWhip_: has joined #ruby
[11:34:31] beauby: has joined #ruby
[11:34:37] porfa: how can i send a a string to the interpreter i built out of other data inside vars?
[11:34:51] Xeago: Porfa: unsure what you mean.
[11:35:17] Xeago: >> a='Hello'; "Sentence: #{a} World"
[11:35:19] ruboto: Xeago # => "Sentence: Hello World" (https://eval.in/442224)
[11:35:58] porfa: hmm i have var1, var2, var3. var1 and 3 are static, var2.to_s is a random number obtained from an array, final = var1 + var2 +var3
[11:36:13] porfa: and that outputs the command i want to send to the console, but it prints it on screen
[11:36:24] porfa: erm https://gist.github.com/anonymous/008b0215cd68e78c92e3
[11:37:12] gustav__: has joined #ruby
[11:37:40] Xeago: Porfa: if you want it run, don't make it a string?
[11:37:58] Deviad: has joined #ruby
[11:38:00] porfa: but is there a way to do the opposite?
[11:38:07] Xeago: well, you eval it :|
[11:38:13] xcesariox: has joined #ruby
[11:38:18] Xeago: but what I think you want is to bind the execution at that point in time
[11:38:21] burgestrand: Porfa: why do you have it in quotes?
[11:39:03] Xeago: Try something like foo = ary.map {|e| lambda{ driver(e) }; foo.each {|f| f.call }
[11:39:19] sepp2k: has joined #ruby
[11:39:28] Xeago: So rather then making a array of strings, you'll make an array of lambda's
[11:39:34] charliesome: has joined #ruby
[11:40:05] jcromartie: has joined #ruby
[11:40:44] _el_fer_: has joined #ruby
[11:41:26] jenrzzz: has joined #ruby
[11:43:36] karapetyan: has joined #ruby
[11:43:41] skade: has joined #ruby
[11:44:17] InternetFriend: has joined #ruby
[11:44:41] PaulCape_: has joined #ruby
[11:44:50] TvL2386: has joined #ruby
[11:45:42] psye: has joined #ruby
[11:45:42] dhjondoh1: has joined #ruby
[11:48:30] _el_fer_: hey ruby, good morning at least for me
[11:48:54] porfa: Xeago: i can't get my way around it
[11:49:04] Kendos-Kenlen: has joined #ruby
[11:49:14] Xeago: Porfa: if you want to run it, just don't make it a string?
[11:49:32] araujo: has joined #ruby
[11:49:32] araujo: has joined #ruby
[11:49:52] porfa: but how can i make it not a string and still craft my command from the variables?
[11:49:54] Xeago: If you want to run it at a later time, bind it using a lambda (you'll get an object returned) which you can #call later to invoke the code.
[11:50:21] porfa: i have to learn lambda, I'm really new and these are the first times I'm using arrays and loops
[11:50:27] Kendos-Kenlen: has joined #ruby
[11:51:09] shevy: you don't have to learn lambda
[11:51:15] shevy: you have to improve on what you currently know
[11:51:30] vondruch: has joined #ruby
[11:51:33] blackmesa: has joined #ruby
[11:51:35] dhjondoh1: has joined #ruby
[11:51:59] allcentury: has joined #ruby
[11:52:58] porfa: hey shevy whats up?
[11:54:44] certainty: shevy: your future is dark
[11:55:35] certainty: shevy softtypes was one of the things i believe
[11:56:27] RegulationD: has joined #ruby
[11:57:17] jcromartie: has joined #ruby
[11:57:51] Rollabunna: has joined #ruby
[11:58:19] porfa: if someone could crack that crap for me i would look into it and learn, that's what i do when i can't do soothing here, after reading the code i understand and i can handle the problem myself when i encounter it again
[11:58:32] porfa: but i guess everyone has their own method of doing things
[11:58:58] shevy: no you don't just listen
[11:59:03] porfa: so shevy, do you understand what i am trying to do with that script? (bad denting aside)
[11:59:13] shevy: you don't even want to indent properly
[11:59:17] porfa: and can you tell me what i do specifically need to learn so i can do it?
[11:59:39] porfa: no one taught me to indent, i don't get indention at all, for me i'd use tabs but i understand ruby prefers twospaces
[11:59:45] araujo: has joined #ruby
[11:59:46] araujo: has joined #ruby
[12:00:09] shevy: this is not a question of tabs versus spaces
[12:00:14] shevy: you simply indent incorrectly
[12:00:26] shevy: it's a problem that begins even before the tabs versus spaces situation!
[12:00:30] porfa: i know that
[12:00:38] shevy: https://gist.github.com/anonymous/008b0215cd68e78c92e3
[12:00:42] shevy: this is "chaotic indenting"
[12:00:51] shevy: its ultimate aim is to drive people who look at it nuts
[12:00:54] porfa: but the first things i've done, when i came here, someone hit my ears because i was using tabs
[12:01:02] shevy: don't use tabs
[12:01:04] porfa: i feel bad for that
[12:01:28] porfa: why the hell is that hell?
[12:01:31] araujo: has joined #ruby
[12:01:35] gustav__: has joined #ruby
[12:01:39] porfa: can you indent it for me then?
[12:01:41] tobiasvl: what fresh hell is this
[12:01:50] porfa: (fresh hell )
[12:02:18] hagabaka: has joined #ruby
[12:02:29] shevy: Porfa https://gist.github.com/shevegen/2af23905a65edb84e78a
[12:02:53] minimalism: has joined #ruby
[12:02:55] shevy: what is ALQDETALHESPB
[12:03:29] porfa: ALQDETALHESPB is the name of the array, and it's that name because it's the same name in the database field I'm putting that data into.
[12:03:38] shevy: so it is an array
[12:03:57] shevy: does this code work 100%:
[12:03:58] shevy: driver.find_element(:id, "f04_0002").send_keys(ALQDETALHESPB[1])
[12:04:18] araujo: has joined #ruby
[12:04:39] IceyEC: has joined #ruby
[12:05:08] prestorium: has joined #ruby
[12:05:13] shevy: and this command does what? does it return a string? does it print a string?
[12:05:18] p0wn3d: has joined #ruby
[12:05:19] _mak: has joined #ruby
[12:05:46] shevy: Porfa, add this to the requires:
[12:05:48] shevy: require 'pp'
[12:06:04] shevy: then do, before the last puts - pp foo
[12:06:07] shevy: and run the script again
[12:06:20] porfa: that command clicks on the f04_0002 element of the page I'm using, and writes the string that it's on ALQDETALHESPB, position 2
[12:06:57] shevy: yeah ok so you can just iterate over your array
[12:07:13] avril14th: has joined #ruby
[12:07:15] shevy: you already store all the information you require in your foo array
[12:07:23] avril14th: ACTION waves hi
[12:07:31] shevy: foo = numbers.each_with_index.map do |number, idx|
[12:07:40] shevy: ^^^ there you have the number on the first slot, and the index on the second slot
[12:07:43] gustav__: has joined #ruby
[12:07:48] shevy: and please call your index index and not idx or fancy_pants
[12:09:46] casadei: has joined #ruby
[12:09:53] Flyy7: has joined #ruby
[12:10:36] renderful: has joined #ruby
[12:10:38] porfa: my require 'pp' returns false and i can't find corresponding gem name on google
[12:10:53] jhass: it's in stdlib
[12:10:55] PaulCapestany: has joined #ruby
[12:10:59] jhass: false means its already loaded
[12:12:19] shevy: Porfa: here is pp http://ruby-doc.org/stdlib-2.2.3/libdoc/pp/rdoc/PP.html it's worth to have a look at this page once, you'll happily use pp whenever you get confused about your data structures, when you have big arrays and big hashes
[12:14:59] bankair: has joined #ruby
[12:15:00] porfa: shevy: the html element starts count at 1 and the array at 0, that's why it's ilke that
[12:15:01] sbhatore: has joined #ruby
[12:16:11] dirtyonekanobi: has joined #ruby
[12:16:17] gregf_: avril14th: long time no see
[12:16:24] giuseppesolinas: has joined #ruby
[12:16:36] giuseppesolinas_: has joined #ruby
[12:16:54] shevy: Porfa won't matter, you have a number
[12:17:06] shevy: if you need to use array-formats, you deduct 1 from your index number
[12:17:32] avril14th: gregf_: indeed. way busy ^^
[12:17:34] shevy: you said that driver.find_element(:id, "f04_0002").send_keys(ALQDETALHESPB[1]) is correct and works, and you got all the information you require already in your array, so all you have to do is iterate over it
[12:17:52] porfa: still, if it sends a number instead of the text that correspondent number holds, I'm happy.
[12:20:45] krisquigley: has joined #ruby
[12:20:56] atomical: has joined #ruby
[12:21:30] karapetyan: has joined #ruby
[12:22:02] porfa: OH I GET IT
[12:22:21] shevy: did you use pp?
[12:23:06] porfa: yes, but that's not it, I'm just printing the contents of the array the "way" i want, but I'm not interested in printing them i guess, I just need to iterate
[12:23:42] iszak: has joined #ruby
[12:23:55] julieeharshaw: has joined #ruby
[12:24:04] ericjphillips: has joined #ruby
[12:24:22] shevy: pp isn't when you want to print them
[12:24:27] shevy: it is when you want to look at it
[12:24:36] shevy: so you know where you are at in your code
[12:24:38] TheWhip: has joined #ruby
[12:24:46] Motoservo: has joined #ruby
[12:25:08] shevy: that way it'll be easier for you to iterate over it and extract what you need where you want it
[12:25:26] [k-: pp stands for pretty print though
[12:26:21] porfa: pp is in ruby 2.2.1 ? because the site you sent me is ruby 2.2.3
[12:26:36] porfa: and i did install something called "awesome print" and pp became avaiable
[12:26:38] beauby: has joined #ruby
[12:27:42] joshua75: has joined #ruby
[12:27:52] jhass: awesome_print provides ap, not pp
[12:27:56] cirenyc: has joined #ruby
[12:27:58] jhass: pp is in stdlib since like forever
[12:28:12] joshua75: I have an important question
[12:28:19] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[12:28:47] towski_: has joined #ruby
[12:28:50] joshua75: Okay! One moment, its going to seem very amateur because, well I am an amateur at ruby.
[12:29:32] PaulCape_: has joined #ruby
[12:29:39] charliesome: has joined #ruby
[12:30:38] shevy: Porfa awesome print is annoying, pp is in stdlib
[12:30:48] shevy: the colours kill me in awesome print
[12:30:50] futilegames: has joined #ruby
[12:32:09] joshua75: So I'm wonder what tools I will need to be able to build an web-app that can take your information you provide and match it with other people on the website, thats pretty much it. At the moment im learning Ruby on Codeschool.com. Will i need anything else to make such an app??
[12:33:19] _el_fer_: anything else other than what Joshua__ ?
[12:33:22] joshua75: I'm not trying to make this app at the moment, i need experience im just wondering what else i will need to do something like this? Like i've heard about "server-side" things
[12:33:48] shevy: my happy webchatter friend
[12:34:09] _el_fer_: oh I see, yes you will need a server to make a "web-app" and a couple of pages read about it absolutely :)
[12:34:23] asxbr: has joined #ruby
[12:34:43] joshua75: Are those the only tools?
[12:34:54] _el_fer_: maybe learning ruby language it's not the best to make first steps, IMHO
[12:35:08] jhass: Joshua__: what do you know already?
[12:35:18] joshua75: Ive learned HTML/CSS
[12:35:30] joshua75: Im diving into HTML5 and CSS3
[12:35:51] joshua75: But to make an app like this im sure ill need something else? Or atleast KNOW something else
[12:36:10] jhass: you'll need a server side component, yes
[12:36:16] joshua75: i just dont wanna spend ALL my time learning ruby if something else is gonna be important later down the road.
[12:36:26] jhass: to make a nice and responsive site you'll also need Javascript
[12:36:44] _el_fer_: any language would be okay, but you do need a backend or 'server side'
[12:36:50] jhass: but that can be added later
[12:37:08] joshua75: I dont know much about server-side components, is there specific ones that are better ? is it like a language?
[12:37:22] jhass: Joshua__: going through https://pine.fm/LearnToProgram/ would be well invested time at this point
[12:37:51] _el_fer_: servers can be coded in any programming language
[12:37:53] jhass: then dabble a bit with http://sinatrarb.com/ to get a feeling how a web app and its backend interact
[12:38:20] andyrs: has joined #ruby
[12:38:26] msb_: has joined #ruby
[12:38:48] joshua75: oh so you CODE a server?
[12:39:06] joshua75: And thank you guys for the help, very much appreciated!!
[12:39:10] jhass: code is a general term, so say one code's HTML & CSS too
[12:39:20] jhass: *some say
[12:39:40] sdwrage: has joined #ruby
[12:39:41] joshua75: Okay, im sorry ill rephrase that
[12:39:50] leafybas_: has joined #ruby
[12:39:53] jhass: but you'll need to know a programming language, HTML & CSS are so called markup languages
[12:39:53] _el_fer_: you write code that runs in servers
[12:40:00] joshua75: so basically, you can program a server with a language such as ruby?
[12:40:02] _el_fer_: to be precise
[12:40:07] jhass: basically
[12:40:41] joshua75: I'm gonna be an annoying person on her asking many questions if im stuck on a part in my current course haha
[12:40:47] joshua75: are you guys on her alot?
[12:40:48] iamninja_: has joined #ruby
[12:40:59] jhass: usually there's someone around
[12:41:07] jhass: don't focus on people so much, just ask the channel
[12:41:13] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[12:41:23] joshua75: How much experience do you guys have or most people on here other than noobies
[12:41:38] amystephen: has joined #ruby
[12:41:57] _el_fer_: I guess people here are newcomers like me, others have a wide expertise
[12:42:01] jhass: from your level to experienced seniors with dozens of years of experience, you meet all levels here
[12:42:18] joshua75: Okay awesome
[12:42:29] leafybas_: has joined #ruby
[12:42:30] joshua75: Thank you for the help
[12:42:51] joshua75: Have any of you created web apps i can see? id like to check one out if you have it published online or something
[12:43:02] joshua75: Just for fun, if not its okay.
[12:43:22] jhass: mmh, I contribute to diaspora*, though the code quality over there is still kinda meh
[12:43:58] burgestrand: has joined #ruby
[12:44:05] jhass: you should be able to google it
[12:44:24] jhass: (which you should do in general btw, show you did your research on a particular problem)
[12:44:31] jcromartie: has joined #ruby
[12:44:37] minimalism: has joined #ruby
[12:44:37] porfa: i don't get this, i already know how to set up my data into an array the way i want it, but i can't seem to get it out into the interpreter, fouesaihfxiufur
[12:45:03] jhass: Porfa: current code?
[12:45:14] porfa: just onto the screen, this might look the most simple thing to you, sure but this is driving me nuts, i missing a very simple piece in this
[12:45:17] porfa: jhass: gisting
[12:46:01] umgrosscol: has joined #ruby
[12:46:17] burgestrand: Still at it I see!
[12:46:20] drewvanstone: has joined #ruby
[12:46:21] krz: has joined #ruby
[12:46:44] jhass: Burgestrand: you know Porfa, it'll go on for a couple of days :P
[12:47:35] porfa: https://gist.github.com/anonymous/f7c2bea6c401dace7ae1
[12:47:55] burgestrand: Slightly cleaner now!
[12:48:03] burgestrand: I still don't get it why you surround it with "-quotes and puts it.
[12:48:27] porfa: because if i take them out, i can't print the string on the screen
[12:48:37] jhass: "the string" ?
[12:48:37] porfa: because of the "'s
[12:48:39] burgestrand: Porfa: Why do you want to print the string on the screen?
[12:49:01] porfa: i don't want to print the string on the string, i want to send the output strings as commands into the interpreter.
[12:49:18] jhass: then back to step one, why do you add "?
[12:49:35] ndrei: has joined #ruby
[12:49:38] dstarh: has joined #ruby
[12:49:45] joshua75: do you guys recommend any books i can buy to help me learn ruby on top of codeschool?
[12:49:46] burgestrand: Maybe it wants both?
[12:49:59] jhass: Joshua__: I already linked you one
[12:50:00] burgestrand: Joshua__: are you a new programmer, or coming from another language?
[12:50:37] joshua75: For some reason id prefer a physical book
[12:50:45] joshua75: i feel like itd be easier for me
[12:50:48] jhass: Joshua__: you can buy it
[12:50:48] porfa: I'm using the data on the array to know how many lines of ( driver.find_element(:id, "f04_000$$").send_keys(ALQDETALHESPB[$$]) ) i must do
[12:51:00] jhass: I think there are physical copies
[12:51:16] shevy: Porfa did not read anything what was written before :)
[12:51:25] shevy: and where from did $$ come ...
[12:51:36] porfa: shevy: i did, and i don't understand what you mean "iterate over it"
[12:51:38] jhass: Porfa: just loop
[12:51:42] jhass: you don't need to generate source code
[12:51:43] Anti-Pizza: has joined #ruby
[12:51:43] baegle: has joined #ruby
[12:51:48] joshua75: jhass:is it the "pine" that i can buy?
[12:52:01] burgestrand: It's already looping, but for some reason it is surrounding it's code in "-quotes.
[12:52:02] shevy: Porfa you already iterate in your own code!!!! .each <--- this is an iteration
[12:52:10] zenguy_pc: has joined #ruby
[12:52:10] obs: has left #ruby: ("Leaving")
[12:52:21] burgestrand: Learn to Program by Chris Pine. Ah yes. :)
[12:52:22] jhass: pragmatism: get away from the idea of generating source code as far as possible. Transform arrays into other arrays, do actions for each item of an array
[12:52:27] gorodetsky: has joined #ruby
[12:52:32] jhass: bah, Porfa ^, sorry
[12:52:43] shevy: the sentence works anyway
[12:52:47] jhass: Burgestrand: "they" ;)
[12:52:49] eGGsha: has joined #ruby
[12:53:11] prestorium: has joined #ruby
[12:53:12] burgestrand: jhass: is a person a they?
[12:53:22] burgestrand: jhass: and not an it?
[12:53:28] jhass: Burgestrand: yeah, http://en.wikipedia.org/wiki/Singular_they
[12:53:35] porfa: i don't get it
[12:53:37] porfa: sorry guys
[12:53:41] shevy: yes you don't get it
[12:53:48] porfa: thank you shevy really
[12:54:09] porfa: I'm killing myself for two days on how to create this crap :p
[12:54:20] burgestrand: Porfa: remove your "-quotes.
[12:54:36] burgestrand: The outer ones.
[12:54:37] burgestrand: And the puts.
[12:55:01] jhass: great, my FF stopped loading anything
[12:55:07] shevy: it's on strike
[12:55:19] burgestrand: Is an FF sentient enough to be a they?
[12:55:24] porfa: Burgestrand: because of the stuff inside the quotes the command doesn't get passed into the interpreter
[12:55:37] jhass: Burgestrand: I have no evidence against that at this point
[12:55:39] porfa: i can't escape some of the characters in it
[12:55:41] shevy: Porfa - you should work on simpler problems :)
[12:55:43] malconis: has joined #ruby
[12:55:57] Xeago: has joined #ruby
[12:56:02] burgestrand: Porfa: stuff inside " is generally not sent to the interpreter, unless you're doing special things inside the "-stuff.
[12:56:05] jhass: Porfa: show the version without quotes and the error it's giving you
[12:56:09] ruboto: Burgestrand # => "2 + 1" (https://eval.in/442265)
[12:56:14] porfa: jhass: ok
[12:56:46] malconis: has joined #ruby
[12:57:00] tsujp: has joined #ruby
[12:57:06] burgestrand: I've never thought that telling an expression from a string could be tricky.
[12:57:15] ndrei: has joined #ruby
[12:57:31] burgestrand: But I guess it's just one of those things you have to learn, like numbers are different from text or what not.
[12:57:43] nug: has joined #ruby
[12:57:45] Guest305: has joined #ruby
[12:58:38] porfa: here's the error https://gist.github.com/anonymous/bac4fc41085ee2fc245a
[12:58:54] tkuchiki: has joined #ruby
[12:59:07] jhass: Porfa: so, where do you define driver?
[12:59:08] shevy: if you only would have used pp foo ...
[13:00:23] porfa: jhass: it's not at the moment, but i think i should get "NameError: undefined local variable or method `driver' for main:Object" and I'm not even getting there
[13:01:16] corpsicle: has joined #ruby
[13:01:19] andyrs: has joined #ruby
[13:01:28] jhass: Porfa: get your things straight, you should be getting that error or no output at all with that code
[13:01:42] jhass: you didn't run the code you showed for the behavior you described
[13:01:45] shevy: mystery code
[13:02:21] porfa: the line is driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB[#{index+0}])
[13:02:28] jhass: actually you should've gotten a syntax error with those \"
[13:02:41] jhass: that's not what you pasted into irb
[13:03:08] jhass: we don't see your screen so we can't magically know what you're doing, but what you've shown doesn't go together
[13:03:15] unshadow: has joined #ruby
[13:03:29] lkba_: has joined #ruby
[13:03:29] anisha: has joined #ruby
[13:03:43] porfa: ok i will try again.
[13:03:57] subshad: has joined #ruby
[13:04:52] sanguisdex: has joined #ruby
[13:04:56] porfa: it is the same :| irb just stands there with a question mark
[13:05:21] Jon__: has joined #ruby
[13:05:33] shevy: #{index+0}
[13:05:38] bkxd: has joined #ruby
[13:05:40] shevy: please stop all of this
[13:05:43] shevy: break it down into variables
[13:05:48] shevy: then use those variables
[13:05:54] andyrs: has joined #ruby
[13:06:20] jhass: Porfa: stop pasting it into irb for a moment
[13:06:28] jhass: save it to a file and do ruby that_file.rb
[13:07:47] devoldmx: has joined #ruby
[13:08:08] porfa: gist.rb:22: syntax error, unexpected keyword_end, expecting ']'
[13:08:14] jhass: there you go
[13:08:27] blackmesa: has joined #ruby
[13:08:48] jhass: and adding quotes somewhere doesn't count as fi
[13:09:01] freerobby: has joined #ruby
[13:09:51] bmurt: has joined #ruby
[13:10:03] Jon__: dasdsadwuiruwijajiJijdiewjijwiadieu
[13:10:13] jhass: j____: how's your cat?
[13:10:29] prestorium: has joined #ruby
[13:11:12] `tim`: has joined #ruby
[13:12:24] bigbadbear: has joined #ruby
[13:12:39] avi: has joined #ruby
[13:12:52] Psi-Jack: has joined #ruby
[13:12:57] sankaber: has joined #ruby
[13:13:00] Ilyes512: has joined #ruby
[13:13:00] ruurd: has joined #ruby
[13:16:14] prestorium: has joined #ruby
[13:16:18] system64: has joined #ruby
[13:16:30] rubybeginner: has joined #ruby
[13:16:50] rubybeginner: umm, hey guys, is this is chat for ruby language?
[13:16:56] InternetFriend: has joined #ruby
[13:17:10] rubybeginner: nice, then i got on the right place.
[13:17:14] skweek: has joined #ruby
[13:17:17] JDiPierro: has joined #ruby
[13:17:19] burgestrand: ?guys rubybeginner
[13:17:19] ruboto: rubybeginner, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[13:17:24] porfa: yeah welcome, and don't talk with me, you will learn nothing! but these guys are great
[13:17:25] rubybeginner: thanks! How are you guys? Hope you're having a good day.
[13:17:31] leafybasil: has joined #ruby
[13:17:59] rubybeginner: i feel stupid :D
[13:18:07] ruurd: we all are
[13:18:25] burgestrand: It's normal, it'll pass!
[13:18:30] jhass: I'm sure we can help you over the current urge though, where are you stuck?
[13:18:31] burgestrand: Then it'll come back again.
[13:18:37] ruurd: so Burgestrand most languages use plural male for mixed groups.
[13:18:39] burgestrand: It's like a wave.
[13:18:55] jhass: ?guys2 ruurd
[13:18:55] ruboto: ruurd, 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:19:13] rubybeginner: jhass I actually want to start programing.
[13:19:17] burgestrand: This bot has everything!
[13:19:19] rubybeginner: If i can say so...
[13:19:22] jhass: rubybeginner: that's great
[13:19:22] ruboto: I don't know anything about cookies
[13:19:26] jhass: ?cookie Burgestrand
[13:19:26] ruboto: Burgestrand, here's your cookie: ????
[13:19:31] Joufflu: has joined #ruby
[13:19:34] burgestrand: Everything, except plural cookies.
[13:19:53] rubybeginner: so, i know a little about html and css, i know those arent languages
[13:19:56] ruurd: bah. newspeak.
[13:20:02] jhass: rubybeginner: https://pine.fm/LearnToProgram/ here's a generally recommended beginner book using Ruby
[13:20:03] rubybeginner: and i want to step forward into ruby world
[13:20:33] system64: Hello guys, I'm calling to_json() on a tree node with many children. How can I control level of depth?
[13:20:42] jhass: ruurd: as said please join #ruby-offtopic if you want to discuss that
[13:20:52] rubybeginner: jhass: thanks a lot!
[13:20:52] burgestrand: system64: I believe there's a "max_nesting" parameter.
[13:21:06] casadei: has joined #ruby
[13:21:13] rubybeginner: My friend is working in a company and he suggested me to watch lyndacom videos about ruby
[13:21:21] system64: Burgestrand: That just throws error, if depth exceeds
[13:21:30] burgestrand: system64: what do you want instead of an error?
[13:21:39] system64: I want to stop printing children attribute after a certain depth
[13:21:56] jhass: system64: http://devdocs.io/ruby/json#method-i-generate you can pass the parameters mentioned there to to_json too
[13:21:57] sanguisdex: has joined #ruby
[13:22:13] jhass: as Burgestrand already pointed out max_nesting in particular
[13:22:34] burgestrand: I wonder if there's a way to control what happens when max_nesting condition is reached???
[13:22:44] sgambino: has joined #ruby
[13:22:54] jhass: ah, I guess not
[13:23:29] system64: jhass: Are those options passed recursively to every object that needs to be converted to json?
[13:23:33] porfa: yeah my array woerkd
[13:23:34] jhass: system64: probably easiest to have a function that returns a new tree limited to the desired depth
[13:23:44] jhass: I think so, yeah
[13:23:52] iateadonut: has joined #ruby
[13:24:13] porfa: but the last bit doesn't pass the index, it's a syntax error i have no idea how to properly put the index inside the [ ] 's
[13:24:15] system64: I'll try it again, got some error last time I tried with options
[13:24:21] burgestrand: No way to control it in the ruby stdlib at least.
[13:24:31] burgestrand: Sorry, ruby core, bah.
[13:24:39] burgestrand: ??? maybe, stdlib.
[13:24:41] system64: but building a tree of certain depth, is something I didn't think of :D
[13:24:44] jhass: json is stdlib, yeah ;)
[13:24:53] porfa: how do i properly call the index+1 in here? --> .send_keys(ALQDETALHESPB[#{index+1}])
[13:25:04] burgestrand: Porfa: remove your #{}-thingies.
[13:25:04] beauby: has joined #ruby
[13:25:06] whippythellama: has joined #ruby
[13:25:20] rubybeginner: wow, u guys are soo smart allready.
[13:25:21] burgestrand: Porfa: what text editor do yo uuse?
[13:25:37] allcentury: has joined #ruby
[13:25:41] burgestrand: Porfa: it should grey out all text after the #-sign.
[13:26:05] burgestrand: Good. That tells you that the code after the #-sign does not run. :)
[13:26:08] PaulCapestany: has joined #ruby
[13:26:14] ruurd: Porfa coda? The Panic Coda?
[13:26:18] burgestrand: (it starts a comment)
[13:26:24] porfa: (yes the panic coda)
[13:26:38] porfa: yes Burgestrand , but in the whole line i have a # in there and it doesn't start a comment
[13:26:52] porfa: whole line driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB[#index+1])
[13:26:59] porfa: the first index gets passed
[13:27:08] porfa: the second doesn't
[13:27:14] jhass: Porfa: foo("#{bar}") is different from foo(#{bar})
[13:27:51] jhass: outside " it's just a comment
[13:28:12] system64: jhass: The options are not being passed recursively
[13:28:22] system64: I tried printing options in to_json()
[13:28:29] ruurd: Porfa any particular reason why?
[13:28:39] apt-get: has joined #ruby
[13:28:54] system64: For the first object, I get the options I passed - but for remaining I get JSON State object
[13:29:18] burgestrand: Porfa: aye, but it's inside "-signs isn't it?
[13:29:26] porfa: ruurd: yes, i have a database browser, sftp/ftp real time file preview, upload, etc etc.. i tried sublime text before, but some things don't work as i want
[13:29:34] jhass: system64: bummer
[13:29:42] burgestrand: rubybeginner: already?
[13:29:57] jhass: so I stand with making a copy of the tree is probably the easiest way, unless the tree is exorbitantly large that is
[13:30:37] ruurd: Porfa but not a debugger. You could have a look at RubyMine...
[13:30:55] system64: jhass: The tree is actually large
[13:31:00] porfa: ill look into that thank yo
[13:31:35] porfa: jet brains ruby mine, jet brains remind me of some fallout NPC burnout
[13:31:38] jhass: system64: well or rather if you want to copy out to a high depth I guess
[13:33:35] jhass: system64: http://ruby-doc.org/stdlib-2.2.3/libdoc/json/rdoc/JSON/Ext/Generator/State.html has a #depth apparently
[13:33:53] InternetFriend: has joined #ruby
[13:33:54] _el_fer_: has joined #ruby
[13:34:10] devdazed: has joined #ruby
[13:34:15] sanguisdex: has left #ruby: ()
[13:34:45] JaRe_Ax: has joined #ruby
[13:35:06] system64: jhass: Interesting, let me try using it
[13:35:12] system64: jhass: thanks :)
[13:35:36] charliesome: has joined #ruby
[13:37:32] pawnbox: has joined #ruby
[13:37:40] spcmastertim: has joined #ruby
[13:39:24] bigkevmcd: has joined #ruby
[13:39:25] ksteck: has joined #ruby
[13:40:46] pyon: has joined #ruby
[13:42:14] jenrzzz: has joined #ruby
[13:42:26] piotrj: has joined #ruby
[13:42:58] lkba: has joined #ruby
[13:43:02] victortyau: has joined #ruby
[13:43:50] ruurd: Porfa these guys also sell IntelliJ which is a very well regarded Java IDE and they really know their stuff.
[13:43:58] Jon__: has joined #ruby
[13:44:24] dhollinger: has joined #ruby
[13:44:27] [k-: has left #ruby: ()
[13:44:36] [k-: has joined #ruby
[13:44:39] ruurd: Oops. people. people.
[13:46:01] krz: has joined #ruby
[13:46:17] vbatts|work: has left #ruby: ("found the other side of the rainbow")
[13:46:18] platzhirsch: has joined #ruby
[13:46:32] Flying_Squirrel: has joined #ruby
[13:47:24] atomical_: has joined #ruby
[13:47:48] PaulCape_: has joined #ruby
[13:48:21] Jardayn: has joined #ruby
[13:49:18] luksaur: has joined #ruby
[13:50:42] platzhirsch: has left #ruby: ()
[13:50:48] atomical: has joined #ruby
[13:50:49] EXID123: has joined #ruby
[13:51:33] dorei: has joined #ruby
[13:51:58] jas02: has joined #ruby
[13:53:32] platzhirsch: has joined #ruby
[13:53:48] porfa: hello again, driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB["#{index+1}"])
[13:54:12] porfa: why do i get f04_0001 but no ALQDEALHESPB[1] ?
[13:54:17] atomical_: has joined #ruby
[13:55:11] dhollinger: has joined #ruby
[13:55:58] burgestrand: Porfa: you get ALQDEALHESPB["1"]
[13:56:43] burgestrand: Porfa: why did you add "-quotes again, considering I suggested you should remove the #{}-thing around `index + 1` in the ALQDEALHESPB?
[13:56:49] EminenceHC: has joined #ruby
[13:57:04] porfa: how can i get ALQDEALHESPB[1] then? because if i remove the quotes, the line becomes a comment
[13:57:52] bkxd: has joined #ruby
[13:58:40] diegoviola: has joined #ruby
[13:59:34] shevy: this is an infinite loop with Porfa :)
[13:59:49] porfa: break break its done!
[14:00:10] shevy: Porfa you need INTEGERS for your array. if you have a string as number, convert it into a number. variable.to_i
[14:00:14] shevy: did I not tell you to use variables...
[14:00:34] Siyfion: has joined #ruby
[14:00:41] PaulCapestany: has joined #ruby
[14:01:11] tuor: has joined #ruby
[14:01:16] hydrozen: has joined #ruby
[14:02:47] shevy: did we ever find out where driver comes from?
[14:03:06] burgestrand: Porfa: why did you add "-quotes again, considering I suggested you should remove the #{}-thing around `index + 1` in the ALQDEALHESPB?
[14:03:07] ZenDuck: has joined #ruby
[14:03:12] burgestrand: Porfa: ignore that, sorry.
[14:03:20] shevy: we are all stuck in a loop now!
[14:03:23] porfa: shevy: lol driver is the selenium instance
[14:03:26] burgestrand: I think my computer is sentient.
[14:03:43] tkuchiki: has joined #ruby
[14:03:50] shevy: Porfa it sounds as if selenium may be too complicated for you!
[14:03:54] porfa: and everything is working now as expected
[14:04:00] shevy: [TIME STAMP]
[14:04:12] shevy: I'll remind you later again ;)
[14:05:07] ZenDuck: Hi, I am using linuxbrew on a cluster (which uses ruby), and I have the following problem when trying to install something: Error: Input/output error @ rb_file_flock , thought this had something to do with flock so installed a new version (2.27) still happening...anybody know what is going on?
[14:05:24] tuor: jhass, so I tried to improve my code: https://gist.github.com/nod0n/d01024a5b6aecab2b1c7
[14:06:04] gustav__: has joined #ruby
[14:06:06] lkba_: has joined #ruby
[14:06:17] ZenDuck: ruby version: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[14:06:54] apt-get_: has joined #ruby
[14:07:48] AndChat-43764: has joined #ruby
[14:07:55] shevy: ZenDuck isn't this a file lock problem? perhaps some other process uses it?
[14:08:07] dravine: has joined #ruby
[14:09:02] tuor: For all the people which help me a time ago to improve my code, here is a new version of my class: https://gist.github.com/nod0n/d01024a5b6aecab2b1c7
[14:09:29] ZenDuck: I think it is a file lock problem, but for the life of me I can figure out how to solve it. dont know how to determine if another process is using the file...
[14:09:44] certainty: ZenDuck: lsof
[14:09:45] ZenDuck: the whole error is: Error: Input/output error @ rb_file_flock - /home/jq2/.cache/Homebrew/Formula/curl.brewing
[14:10:29] rickmasta: has joined #ruby
[14:10:57] tuor: I tried to improve some stuff, but I know error handling is mostly missing and it's still not logging. Apart from this, what would you improve/change?
[14:11:45] blackmesa: has joined #ruby
[14:12:00] ZenDuck: It is a cache directory, which I have recreated. Though this error is not specific to any brew formula, it fails with all brew formulas. lsof shows nothing :(
[14:12:22] Kendos-Kenlen: has joined #ruby
[14:12:25] certainty: tuor: without having looked too close. this really looks like you want more objects
[14:12:31] ZenDuck: unless the brew ruby script has multiple processes somewhere that causes a lock...is that possible?
[14:12:53] rubybeginner: has joined #ruby
[14:13:06] hal_9000_: has joined #ruby
[14:13:21] tuor: certainty, why? (what would be the benefit?)
[14:14:13] certainty: tuor: this class is huge. As i said, i haven't looked closely, but that's an indicator that it's doing too much
[14:14:16] Xeago: has joined #ruby
[14:14:59] InternetFriend: has joined #ruby
[14:15:15] ZenDuck: has anyone here worked with brew formulas before (btw I know nothing of ruby...as in only know the name, and found this IRC)
[14:15:27] certainty: tuor: simple game. Summarize the responsibilities of that object.
[14:16:09] tuor: export or import templates from a zabbix server.
[14:16:11] PaulCape_: has joined #ruby
[14:16:28] certainty: so you have two responsiblities at least
[14:16:39] certainty: and it's either or
[14:16:50] certainty: so no need to have them together
[14:17:15] Cyther: has joined #ruby
[14:17:31] tuor: The thing is, it's using a gem for using the zabbix api. This class should give the missing possibility of the ZabbixApi gem.
[14:17:50] symbol: has joined #ruby
[14:18:02] tuor: certainty, ok. I'll think about how to separate them. But when they need the same code (some methods) what do I do then?
[14:18:18] PlasmaStar: has joined #ruby
[14:18:18] based_pdev: has joined #ruby
[14:18:19] certainty: tuor: find a way to share those common concerns
[14:19:03] tuor: ok. Then i should make one class for the shared stuff, and one for each function (import | export).
[14:19:14] certainty: tuor: i believe that all the actions are related to the import/export tasks, but if you look at the method prefixes you might notice that you already grouped them
[14:19:28] certainty: this is a good place to start and try to make them proper objects
[14:19:49] certainty: or infixes rather
[14:19:57] certainty: the *_templates_* stuff for example
[14:20:11] certainty: then the import_*
[14:20:45] certainty: also looking at the top of the file
[14:21:00] certainty: you probably want a class to encapsulate the rules
[14:21:01] wldcordeiro: has joined #ruby
[14:21:31] certainty: that's how i'd start
[14:22:12] tuor: ok. I'll think about it (and try).
[14:23:32] TvL2386: has joined #ruby
[14:23:56] Xeago: has joined #ruby
[14:24:55] Meow-J: has joined #ruby
[14:26:13] pontiki: has joined #ruby
[14:26:16] Ilyes512: has joined #ruby
[14:26:23] wldcordeiro_: has joined #ruby
[14:29:05] tuor: has joined #ruby
[14:30:09] Ilyes512: has joined #ruby
[14:30:19] dravine: has joined #ruby
[14:31:59] The_Phoenix: has joined #ruby
[14:32:08] leafybasil: has joined #ruby
[14:33:33] moparisthebest: has left #ruby: ("Leaving")
[14:34:28] rismoney1: has joined #ruby
[14:35:01] jxv: has joined #ruby
[14:35:45] bigbadbear: has joined #ruby
[14:35:58] bklane: has joined #ruby
[14:36:21] tuor: has joined #ruby
[14:36:58] tomchapin: has joined #ruby
[14:38:54] prestorium_: has joined #ruby
[14:38:56] mallu: has joined #ruby
[14:40:23] InternetFriend: has joined #ruby
[14:41:05] rubybeginner: has joined #ruby
[14:41:54] twohlix: has joined #ruby
[14:42:42] tuor: has joined #ruby
[14:43:11] TPBallbag: has joined #ruby
[14:43:41] PaulCapestany: has joined #ruby
[14:44:22] fifo_: has joined #ruby
[14:44:30] ruurd: has joined #ruby
[14:44:30] dome22xl: has joined #ruby
[14:45:09] NeverDie: has joined #ruby
[14:47:23] dopamean_: has joined #ruby
[14:47:40] felixr: has joined #ruby
[14:48:50] krisquigley: has joined #ruby
[14:49:34] tkuchiki: has joined #ruby
[14:50:39] frmendes: has joined #ruby
[14:50:39] RegulationD: has joined #ruby
[14:52:19] nanoz: has joined #ruby
[14:52:27] Ilyes512: has joined #ruby
[14:53:08] anisha: has joined #ruby
[14:55:41] blackmesa: has joined #ruby
[14:56:56] tuor: has joined #ruby
[14:57:35] arup_r: has joined #ruby
[14:57:50] rubybeginner: does anyone have a minute for a private chat?
[14:58:08] lkba: has joined #ruby
[14:58:25] TPBallbag: hi rubybeginner, feel free to PM
[14:58:38] finisherr: has joined #ruby
[14:59:11] jgpawletko: has joined #ruby
[14:59:33] cornerma1: has joined #ruby
[14:59:40] mary5030: has joined #ruby
[14:59:53] Ilyes512_: has joined #ruby
[15:00:23] p0wn3d: has joined #ruby
[15:04:38] fifo_: has left #ruby: ()
[15:08:34] devoldmx: has joined #ruby
[15:09:21] PaulCape_: has joined #ruby
[15:09:59] andyrs: has joined #ruby
[15:11:19] blackmesa: has joined #ruby
[15:12:12] cajone: has left #ruby: ()
[15:12:17] rippa: has joined #ruby
[15:13:19] drewvanstone: has joined #ruby
[15:13:22] pawnbox: has joined #ruby
[15:14:05] ruby-lang329: has joined #ruby
[15:14:05] tuor: has joined #ruby
[15:14:23] SylarRuby: has joined #ruby
[15:14:43] Xiti: has joined #ruby
[15:15:32] cajone: has joined #ruby
[15:15:47] qba73_: has joined #ruby
[15:16:12] evanjs: has joined #ruby
[15:17:14] havenwood: has joined #ruby
[15:17:25] skade: has joined #ruby
[15:17:33] Kendos-Kenlen_: has joined #ruby
[15:18:18] qba73__: has joined #ruby
[15:18:19] Nego_Fua: has joined #ruby
[15:18:39] i: has joined #ruby
[15:19:22] aaeron: has joined #ruby
[15:19:32] huddy: has joined #ruby
[15:19:44] Nego_Fua: Hello Rubyists!
[15:19:58] n008f4g_: has joined #ruby
[15:21:14] bklane: has joined #ruby
[15:21:39] delianides: has joined #ruby
[15:23:40] Maletor: has joined #ruby
[15:24:25] Pupeno: has joined #ruby
[15:24:25] Pupeno: has joined #ruby
[15:25:36] kobain: has joined #ruby
[15:25:52] rushed: has joined #ruby
[15:25:55] niftylettuce: has joined #ruby
[15:26:42] dfockler: has joined #ruby
[15:26:55] Xeago: has joined #ruby
[15:27:04] [k-_: has joined #ruby
[15:27:15] shmilan: has joined #ruby
[15:27:26] towski_: has joined #ruby
[15:27:27] OmiKrOn: has joined #ruby
[15:27:35] leafybas_: has joined #ruby
[15:27:48] OmiKrOn: is there possible to specify a range of ruby versions within a Gemfile?
[15:28:10] shmoon_: has joined #ruby
[15:28:39] shmoon_: hi I've a question regarding CSV.generate, the `csv` variable accessible in the block, how can I access a particular array of that object or set ?
[15:28:48] shmoon_: csv[0] = arr # throws error
[15:30:16] shmoon_: I can't find any method to do that here - http://ruby-doc.org/stdlib-2.0.0/libdoc/csv/rdoc/CSV.html#method-i-3C-3C
[15:30:34] jschoolcraft: has joined #ruby
[15:30:54] blackmesa: has joined #ruby
[15:31:00] moeabdol: has joined #ruby
[15:31:08] shevy: what the hell are you doing
[15:31:12] shevy: where from does arr come
[15:31:15] shevy: why don't you show code
[15:32:22] shmoon_: so I'm generating array on the go by enumerating over a collection
[15:32:33] shmoon_: I'm doing csv << arr inside that, but in the end I want to re-set the columns
[15:32:42] SylarRuby: has joined #ruby
[15:32:50] EminenceHC: has joined #ruby
[15:32:56] segfalt: has joined #ruby
[15:33:45] OmiKrOn: again...is there possible to specify a range of ruby versions within a Gemfile?
[15:33:48] shmoon_: i wonder why they didn't allow this
[15:34:36] shevy: gateway is taking over #ruby
[15:34:39] ruurd: has joined #ruby
[15:34:54] PaulCapestany: has joined #ruby
[15:36:17] jeffreylevesque: has joined #ruby
[15:36:21] jeffreylevesque: is there a npm package that can check links?
[15:36:37] drewvanstone: has joined #ruby
[15:36:45] shevy: isn't npm javascript?
[15:37:12] dorei: javascript eventloop
[15:37:15] blackmes1: has joined #ruby
[15:38:34] staticat_works: has joined #ruby
[15:38:49] shevy: a gem for javasript?
[15:39:03] jeffreylevesque: that can check links on webpages
[15:39:15] shevy: well, there are some ways
[15:39:36] shevy: in default ruby via open(), you get the page as a string, then can apply a regex; or you use nokogiri; or mechanize if you need to interact with a webpage in a scripted manner
[15:39:57] dorei: jeffreylevesque: bing for webmasters offer this "service", and i'm pretty sure other sites offer this "service"
[15:40:05] AlexRussia: has joined #ruby
[15:40:36] dorei: shevy: or phantomjs via poltergeist and capybara if u want a "live" dom
[15:41:02] treehug88: has joined #ruby
[15:41:24] shevy: I don't want anything :)
[15:41:46] shevy: steve klabnik wrote an interesting article, it could well fit to early ruby too http://words.steveklabnik.com/the-language-strangeness-budget
[15:41:51] diego3: has joined #ruby
[15:41:52] ReK2: has joined #ruby
[15:42:01] diego3: has joined #ruby
[15:42:20] shevy: The basics of rust... already 250 pages long as .pdf ... that's quite a lot.
[15:42:22] EminenceHC: has joined #ruby
[15:42:41] shevy: perhaps we should do this in ruby too, to build a .pdf that can be auto-expanded
[15:42:47] skweek: has joined #ruby
[15:43:16] freerobby: has joined #ruby
[15:43:37] shevy: "I'm primarily a programming language researcher, so the fact that Haskell has up to now been used for just university types has been ideal"
[15:44:55] psye: has joined #ruby
[15:46:19] rubytor: has joined #ruby
[15:46:27] psye: has joined #ruby
[15:46:40] PaulCape_: has joined #ruby
[15:47:07] InternetFriend: has joined #ruby
[15:47:52] blackmesa: has joined #ruby
[15:49:17] rcvalle: has joined #ruby
[15:49:33] arup_r: has joined #ruby
[15:49:37] rubytor: Hello, how can I make a datetime difference with miliseconds include??? I need time_finish - time_start..... This is the pattern 2015-09-04T09:20:41.522+02:00
[15:49:45] bricker: has joined #ruby
[15:50:27] rcvalle: has joined #ruby
[15:51:35] cassioscabral: has joined #ruby
[15:52:01] jschmid: has joined #ruby
[15:52:28] Mia: has joined #ruby
[15:52:28] Mia: has joined #ruby
[15:55:29] shevy: those gateways
[15:56:40] treehug88: rubytor: I did this, I forget how. The trick was to use a conversion from DateTime to epoch that preserved the fractional seconds
[15:57:27] aaeron: has joined #ruby
[15:57:35] michaeldeol: has joined #ruby
[15:57:47] diegobiavati: has joined #ruby
[15:58:51] [Butch]: has joined #ruby
[15:59:57] favadi: has joined #ruby
[16:00:00] PaulCapestany: has joined #ruby
[16:00:10] freerobby: has joined #ruby
[16:00:19] diego3: has joined #ruby
[16:00:30] DenSchub: has joined #ruby
[16:00:53] diego3: has joined #ruby
[16:00:58] Soda: has joined #ruby
[16:01:01] Flying_Squirrel: has joined #ruby
[16:01:06] andyrs: has joined #ruby
[16:01:29] rubytor: treehug88:thanks I'll check!!
[16:03:17] FrankD: has joined #ruby
[16:03:21] mallu: has joined #ruby
[16:03:30] blackmes1: has joined #ruby
[16:04:13] diego3: has joined #ruby
[16:04:19] diego3: has joined #ruby
[16:04:20] mallu: has joined #ruby
[16:04:29] `tim`: has joined #ruby
[16:05:02] Ademan: Pry looks interesting, for those of you who frequently use a REPL, which ruby REPL do you prefer?
[16:06:01] mwlang: has joined #ruby
[16:06:57] oddmunds: Ademan: pry
[16:07:25] symm-: has joined #ruby
[16:07:31] amclain: has joined #ruby
[16:08:29] apeiros: rubytor: simply use Time#- (or DateTime#-)
[16:08:41] apeiros: both give you a difference which includes sub-second fractions
[16:11:10] PaulCape_: has joined #ruby
[16:11:28] ivanskie: has joined #ruby
[16:12:29] renderful: has joined #ruby
[16:12:34] rushed: has joined #ruby
[16:12:46] gizmore: has joined #ruby
[16:14:00] djcp: has joined #ruby
[16:14:42] Trynemjoel: has joined #ruby
[16:14:50] finisherr: has joined #ruby
[16:15:51] rubytor: apeiros: is it correct?? Time.parse(event['finishServ_Timestamp']).to_f - Time.parse(event['startServ_Timestamp']).to_f
[16:15:51] ruby-lang771: has joined #ruby
[16:16:19] apeiros: no need for .to_f
[16:16:36] Prominent: has joined #ruby
[16:16:46] apeiros: also IMO don't use parse. either use strptime, or use a specific parser (like iso8601 if it's in that format)
[16:16:49] rubytor: Time.parse(event['finishServ_Timestamp']) - Time.parse(event['startServ_Timestamp'])
[16:16:57] Ademan: oddmunds: thanks
[16:17:14] bklane: has joined #ruby
[16:19:08] RobertBirnie: has joined #ruby
[16:19:46] YankNYC: has joined #ruby
[16:19:56] mcullum: has joined #ruby
[16:20:25] bl0ndie: has joined #ruby
[16:21:02] Alayde: has joined #ruby
[16:21:32] brazenbraden: has joined #ruby
[16:22:52] ruby-lang771: has left #ruby: ()
[16:23:03] mcullum: has joined #ruby
[16:23:12] ivanskie: has joined #ruby
[16:23:22] FrankD: has joined #ruby
[16:23:22] Xeago: has joined #ruby
[16:23:38] ruurd: has joined #ruby
[16:24:08] mcullum_: has joined #ruby
[16:24:20] Pupeno: has joined #ruby
[16:25:19] Pathfinder: has joined #ruby
[16:26:08] kenpoint: has joined #ruby
[16:26:21] mondayrain: has joined #ruby
[16:26:26] jpfuentes2: has joined #ruby
[16:26:42] p0wn3d: has joined #ruby
[16:27:05] platzhirsch: has left #ruby: ()
[16:28:01] dionysus69: has joined #ruby
[16:28:10] PaulCapestany: has joined #ruby
[16:28:25] podman: has joined #ruby
[16:30:24] i8igmac: has joined #ruby
[16:31:24] i8igmac: is there a ruby module that can move the mouse to x,y location on the screen
[16:31:45] i8igmac: or send key strokes on the keyboard
[16:31:49] shadoi: has joined #ruby
[16:33:36] leafybasil: has joined #ruby
[16:36:45] saddad: has joined #ruby
[16:39:28] last_staff: has joined #ruby
[16:39:53] JDiPierro: has joined #ruby
[16:39:59] PaulCape_: has joined #ruby
[16:40:31] mondayrain: has joined #ruby
[16:40:34] gizmore: has joined #ruby
[16:41:13] shmilan: has joined #ruby
[16:42:10] SCHAAP137: has joined #ruby
[16:42:12] ruurd: i8igmac what is the problem?
[16:42:17] pontiki: has joined #ruby
[16:43:03] ruurd: that is: tell us what you want to achieve instead of telling us your solution
[16:44:03] sbhatore: has joined #ruby
[16:44:19] Xeago: has joined #ruby
[16:44:26] imperator: has joined #ruby
[16:44:57] barhum2013: has joined #ruby
[16:45:05] zotherstupidguy: has joined #ruby
[16:46:35] InternetFriend: has joined #ruby
[16:46:49] symbole: has joined #ruby
[16:47:23] Flying_Squirrel: has joined #ruby
[16:47:31] drptbl: has joined #ruby
[16:48:07] i8igmac: is there a ruby module thtat exist for linux that can move a mouse to a location and click
[16:48:27] Ilyes512: has joined #ruby
[16:48:53] banjara: has joined #ruby
[16:49:05] i8igmac: mouse_left_click(x,y)
[16:49:28] noethics: if jruby is an option you can use the robot class in java
[16:49:34] ruurd: You're STILL not telling us what you want.
[16:49:34] karapetyan: has joined #ruby
[16:49:39] noethics: but dunno, you will prolly need some ffi or external lib otherwise
[16:49:52] i8igmac: I want to automate a mouse lol
[16:50:12] InternetFriend: has joined #ruby
[16:50:49] noethics: you will probably have more control with an x11 lib, and sending mouse events to a specific window
[16:51:53] i8igmac: ill look into x11 libs... thanks
[16:52:38] banjara: has joined #ruby
[16:53:29] codecop: has joined #ruby
[16:53:42] arturmartins: has joined #ruby
[16:54:43] ericjphillips: has joined #ruby
[16:54:50] psy: has joined #ruby
[16:55:02] PaulCapestany: has joined #ruby
[16:55:24] krisquigley: has joined #ruby
[16:56:12] allomov: has joined #ruby
[16:56:18] joonty: has joined #ruby
[16:56:43] ruurd: has joined #ruby
[16:56:55] ruurd: Pfff you're all a bunch of fools.
[16:57:14] ruurd: i8igmac is this for a web app?
[16:58:10] treehug88: i8igmac yeah I wonder what you're trying to accomplish
[16:58:24] platzhirsch: has joined #ruby
[16:59:02] DrCode: has joined #ruby
[16:59:13] jenrzzz: has joined #ruby
[16:59:18] i8igmac: if you have ever played with autoit...
[17:00:18] i8igmac: I made a aimbot for a game, by scanning the screen for colors and clicking on those locations
[17:00:21] ruurd: Oh f**k that's DE specific
[17:00:24] pipework: i8igmac: If you're trying to automate a browser, there's stuff for that. If you're trying to drive a graphical desktop, then that's different.
[17:00:33] benlieb: has joined #ruby
[17:00:39] EminenceHC: has joined #ruby
[17:00:45] treehug88: I've never used autoit, but it looks like it'll do what you're asking about directly
[17:00:47] gusTester: has left #ruby: ()
[17:01:03] sbhatore: has joined #ruby
[17:01:11] Sammitch: has joined #ruby
[17:01:27] piotrj: has joined #ruby
[17:05:19] Maletor: has joined #ruby
[17:05:25] gusTester: has joined #ruby
[17:05:57] cjbottaro: has joined #ruby
[17:06:23] bklane: has joined #ruby
[17:07:22] ramfjord: has joined #ruby
[17:08:37] Limix: has joined #ruby
[17:09:11] krisquigley: has joined #ruby
[17:09:21] devoldmx: has joined #ruby
[17:09:41] karapetyan: has joined #ruby
[17:11:24] skweek: has joined #ruby
[17:13:26] TheRinger: has joined #ruby
[17:13:47] leafybas_: has joined #ruby
[17:14:25] cirenyc: has joined #ruby
[17:16:05] EminenceHC: has joined #ruby
[17:16:07] KC9YDN: has joined #ruby
[17:16:08] KC9YDN: has joined #ruby
[17:16:40] barhum2013: has joined #ruby
[17:17:41] _djbkd: has joined #ruby
[17:17:55] PaulCape_: has joined #ruby
[17:17:59] drewvanstone: has joined #ruby
[17:18:58] skade: has joined #ruby
[17:19:34] Hanmac: has joined #ruby
[17:20:21] ruurd: has joined #ruby
[17:20:31] catcher: has joined #ruby
[17:21:04] based_pdev: has joined #ruby
[17:21:41] catcher: I'm aware this Q isn't quite appropriate for this channel, but hoping someone knows. In Rubymine, is it possible to use a console during a debug / breakpoint stop? Basically looking for a way to eval without popping out the eval window.
[17:21:59] benlieb: has joined #ruby
[17:24:28] michaeldeol: has joined #ruby
[17:24:57] petricore: has joined #ruby
[17:25:33] lxsameer: has joined #ruby
[17:25:50] VeryBewitching: has joined #ruby
[17:25:52] freerobby: has joined #ruby
[17:29:08] Ilyes512_: has joined #ruby
[17:29:10] PaulCapestany: has joined #ruby
[17:29:48] DoubleMalt: has joined #ruby
[17:30:06] porfa: has joined #ruby
[17:31:35] shevy: not sure if it is appropriate or not as it being a proper question or not - the problem is, there are barely any users of rubymine here really
[17:31:58] jamesaxl: has joined #ruby
[17:32:15] p0wn3d: has joined #ruby
[17:32:48] adaedra: catcher: aren't you dropped in a console during a stop for immediate evalutation by default?
[17:32:58] adaedra: shevy: now, how are you sure of this fact?
[17:33:13] catcher: adaedra: yes, until I hit a breakpoint. Console is unresponsive until I continue execution
[17:33:14] shevy: adaedra what do you use
[17:33:26] adaedra: catcher: let me check
[17:33:28] adaedra: shevy: depends
[17:33:50] shevy: jhass uses sublime
[17:33:58] shevy: havenwood uses atom
[17:34:00] gizmore: has joined #ruby
[17:34:02] symm-: has joined #ruby
[17:34:11] adaedra: that's 3 users out of 1000+
[17:34:20] shevy: 950 are inactive
[17:34:34] dfockler: I use sublime at home and vim in the sheets
[17:34:35] adaedra: catcher: I just tested, on a pause, the console tab let me evaluate things
[17:34:54] leafybasil: has joined #ruby
[17:35:08] catcher: adaedra: weird! Wonder what's up with my case
[17:35:15] adaedra: I have a 0> and can type things here
[17:35:36] ware: has joined #ruby
[17:35:54] s2013: has joined #ruby
[17:36:03] ware: noob here - i cloned a git repo and they say to 'install ruby, then bundle install at the root of expo'
[17:36:15] ware: i cant seem to figure out how / what that is
[17:36:22] catcher: adaedra: sorry - I have >>, but even puts has no response
[17:36:28] apt-get: has joined #ruby
[17:36:44] shmilan: has joined #ruby
[17:36:49] catcher: adaedra: you're debugging and hitting a breakpoint?
[17:37:07] adaedra: ware: once you cloned the repository, you have to install ruby, i.e. from your system's package manager, then install bundler (gem install bumder), then run `bundle install` from the repository root.
[17:37:09] adaedra: catcher: yes
[17:37:13] K1MOS: has joined #ruby
[17:37:24] ware: boom - ty!
[17:37:29] catcher: adaedra: in the console tab, which is independent from the debugger tab but next to it?
[17:37:38] spider-mario: has joined #ruby
[17:38:02] adaedra: In the debugger pane, I have two tabs, Debugger and Console. The Console tab let me inspect.
[17:38:07] adaedra: Let me show you.
[17:38:33] ht__: has joined #ruby
[17:39:14] lkba: has joined #ruby
[17:39:14] postmodern: has joined #ruby
[17:39:26] adaedra: catcher: http://i.imgur.com/MFQFkwH.png
[17:40:20] catcher: adaedra: thanks for confirming. Maybe something with my debug config.
[17:40:47] adaedra: This is default setup. Are the gems RubyMine require installed correctly, in the right ruby environment?
[17:40:56] adaedra: ruby-debug-ide, iirc
[17:42:56] freerobby: has joined #ruby
[17:44:14] mallu: has joined #ruby
[17:44:19] tejasmanohar: has joined #ruby
[17:45:17] poguez_: has joined #ruby
[17:45:18] catcher: adaedra: yes, but a good thing to double-check. Also maybe a debug gem conflict in Gemfile
[17:45:54] adaedra: You could also try with a JRuby, as RubyMine may be more comfortable with it, if it doesn't require changes to your project.
[17:46:00] InternetFriend: has joined #ruby
[17:48:04] nateberkopec: has joined #ruby
[17:48:11] banjara: has joined #ruby
[17:48:54] ruurd: has joined #ruby
[17:48:55] `tim`: has joined #ruby
[17:48:56] Ilyes512: has joined #ruby
[17:49:56] davidhq: has joined #ruby
[17:50:47] aaeron: has joined #ruby
[17:50:53] PaulCape_: has joined #ruby
[17:52:10] mallu: has joined #ruby
[17:52:55] catcher: adaedra: are you debugging rails console or irb console?
[17:53:10] adaedra: none of them
[17:53:26] adaedra: you're debugging from a Console setup?
[17:54:12] shevy: is there a pure ruby library to write mails, without sendmail or similar?
[17:54:21] catcher: my available configurations are IRB Console, Rails, Rspec, Rake, Ruby, Defaults
[17:54:41] catcher: adaedra: I misspoke when I said "rails console", should have been just "rails"
[17:55:23] adaedra: catcher: it's not a rails project, so no.
[17:55:28] adaedra: I'm trying with an IRC console.
[17:55:43] inteq: has joined #ruby
[17:55:45] EminenceHC: has joined #ruby
[17:55:57] ruurd_: has joined #ruby
[17:56:36] ndrei: has joined #ruby
[17:57:03] Deviad: Hello everyone, why do we use ":" next to to_s in this case: "strings_array = numbers_array.map(&:to_s)"?
[17:57:05] havenwood: has joined #ruby
[17:57:43] shevy: I assume because it will require a Symbol
[17:58:01] helpa: has joined #ruby
[17:58:27] adaedra: catcher: it indeed breaks from an IRB setup.
[17:58:48] adaedra: Deviad: &:to_s is calling #to_proc on :to_s. :to_s is a symbol.
[17:58:56] workmad3: Deviad: as shevy said, that's the symbol `:to_s`. The & in the call then informs the ruby runtime to call `to_proc` on that argument and pass the result as the block argument to the `map` method
[17:58:57] catcher: adaedra: breaks as in breakpoint, or breaks as in no console?
[17:59:05] ware: adaedra: dist-upgrade cuz wheezy doesnt want to install this unicode ruby package lol
[17:59:08] OmiKrOn: has joined #ruby
[17:59:13] benlieb: has joined #ruby
[17:59:15] adaedra: Deviad: if you do &to_s, you're referring to a local variable.
[17:59:23] ware: i will give you one internet when i get this working though
[17:59:28] workmad3: adaedra: or the result of calling `to_s` on self ;)
[17:59:41] adaedra: catcher: breaks as the console tab does nothing.
[17:59:46] adaedra: workmad3: indeed.
[18:00:06] Oka: has joined #ruby
[18:00:15] catcher: adaedra: thanks for the sanity check. If you happen on a way to make it work, please lmk!
[18:00:47] adaedra: catcher: if you want to debug from a rails/irb console, look at pry and pry-byebug. Great tools.
[18:01:12] PaulCapestany: has joined #ruby
[18:01:38] adaedra: (They are not fully compatible with RubyMine though, so better run them from the terminal panel.)
[18:01:53] banjara: has joined #ruby
[18:02:09] ruurd: has joined #ruby
[18:03:13] yardenbar: has joined #ruby
[18:04:09] Sammitch: has left #ruby: ()
[18:04:40] firstdayonthejob: has joined #ruby
[18:06:09] bluOxigen: has joined #ruby
[18:07:37] jackjackdripper: has joined #ruby
[18:09:38] ksteck: has joined #ruby
[18:10:10] neanderslob: has joined #ruby
[18:10:40] EminenceHC: has joined #ruby
[18:10:44] bb010g: has joined #ruby
[18:11:06] jackjackdripper: has joined #ruby
[18:11:40] PaulCapestany: has joined #ruby
[18:13:26] EminenceHC: has joined #ruby
[18:13:27] banjara: has joined #ruby
[18:14:17] banjara1: has joined #ruby
[18:14:24] mwlang: has joined #ruby
[18:15:27] hydrozen: has joined #ruby
[18:15:57] jenrzzz: has joined #ruby
[18:16:03] piotrj: has joined #ruby
[18:17:47] yfeldblum: has joined #ruby
[18:17:49] andyrs: has joined #ruby
[18:18:12] agentmeerkat: has joined #ruby
[18:18:36] PaulCapestany: has joined #ruby
[18:21:04] Deviad: adaedra, thanks
[18:21:18] snockerton: has joined #ruby
[18:21:24] skweek: has joined #ruby
[18:23:20] shevy: so adaedra is a RubyMine user. I am surprised
[18:23:35] tsujp: has joined #ruby
[18:23:50] adaedra: I use different tools at different times
[18:24:10] giuseppesolinas: has joined #ruby
[18:24:17] duoi: has joined #ruby
[18:24:21] giuseppesolinas_: has joined #ruby
[18:24:43] n008f4g_: has joined #ruby
[18:25:12] Pupeno: has joined #ruby
[18:25:49] mxrguspxrt: has joined #ruby
[18:27:40] arup_r: has joined #ruby
[18:30:34] Coldblackice: has joined #ruby
[18:30:58] K1MOS: has joined #ruby
[18:31:41] based_pdev_: has joined #ruby
[18:31:48] mikecmpbll: has joined #ruby
[18:32:34] ellisTAA: has joined #ruby
[18:33:30] SimplySeth: has joined #ruby
[18:34:33] SimplySeth: is there an alternative to gsub()?
[18:34:38] ghanima: has joined #ruby
[18:34:43] ellisTAA: has joined #ruby
[18:35:03] pipework: SimplySeth: what would you want out of an alternative?
[18:35:06] pipework: What's wrong with gsub?
[18:36:06] SimplySeth: This doesn't seem to be working: http://goo.gl/hfKRuF
[18:36:20] PaulCape_: has joined #ruby
[18:36:23] SimplySeth: http://dpaste.com/3QQ9N9H
[18:36:52] yqt: has joined #ruby
[18:37:00] andyrs: has joined #ruby
[18:37:18] SimplySeth: it doesn't give an error but it doesn't strip out the 'https://' either
[18:37:26] EminenceHC: has joined #ruby
[18:37:33] ellisTAA: has joined #ruby
[18:37:35] finisherr: has joined #ruby
[18:37:54] apeiros: SimplySeth: it does. but you throw the result away.
[18:37:58] apeiros: gsub returns a new string
[18:38:05] apeiros: gsub! modifies the string
[18:38:11] symm-: has joined #ruby
[18:38:12] SimplySeth: apeiros: ahhhhhhh
[18:38:25] ghanima: was wondering if someone could point me in a direction... I have a website that is making use of this autocomplete function for my site https://github.com/seatgeek/soulmate the problem is that I am trying to measure from a browser standpoint how long it takes for the content to render and display.... was wondering if anyone is familiar of you to monitor the dom and any changes to it and how long it takes to render
[18:38:31] apeiros: ah, the inner loop is actually .map, which would work. but your outer is .each, which returns the receiver
[18:38:36] centrx: has joined #ruby
[18:38:40] dramagods: has joined #ruby
[18:39:04] SimplySeth: apeiros: gsub! ... works! ... thanks
[18:40:09] Gustavo: has joined #ruby
[18:40:24] apeiros: SimplySeth: alternatively replace the .each with .map
[18:40:34] SimplySeth: apeiros: hmmm okay
[18:41:10] SimplySeth: apeiros: yes ... that works as well ... thanks
[18:41:53] kirun: has joined #ruby
[18:42:04] Xeago: has joined #ruby
[18:43:28] martin_work: has joined #ruby
[18:43:33] PaulCapestany: has joined #ruby
[18:43:49] bubbys: has joined #ruby
[18:44:58] finisherr: has joined #ruby
[18:45:16] andyrs: has joined #ruby
[18:46:45] giuseppesolinas: has joined #ruby
[18:46:57] giuseppesolinas_: has joined #ruby
[18:47:08] yqt: has joined #ruby
[18:48:25] atomical: has joined #ruby
[18:50:38] popsikle: has joined #ruby
[18:50:40] popsikle: has left #ruby: ()
[18:50:42] popsikle: has joined #ruby
[18:51:58] arooni: has joined #ruby
[18:57:38] PaulCape_: has joined #ruby
[18:59:10] giuseppesolinas: has joined #ruby
[18:59:31] giuseppesolinas_: has joined #ruby
[19:00:31] ta: has joined #ruby
[19:01:16] baweaver: has joined #ruby
[19:02:22] Starthunder: has left #ruby: ()
[19:03:53] barhum2013: has joined #ruby
[19:03:59] havenn: has joined #ruby
[19:04:15] Xeago: has joined #ruby
[19:05:23] piotrj: has joined #ruby
[19:05:27] iooner: has joined #ruby
[19:05:29] but3k4: has joined #ruby
[19:07:16] InternetFriend: has joined #ruby
[19:07:28] Xeago: has joined #ruby
[19:07:39] gusTester1: has joined #ruby
[19:08:31] DoubleMalt: has joined #ruby
[19:08:38] yardenbar: has joined #ruby
[19:08:54] mondayrain: has joined #ruby
[19:09:07] PaulCapestany: has joined #ruby
[19:09:59] krisquigley: has joined #ruby
[19:10:07] devoldmx: has joined #ruby
[19:10:58] karapetyan: has joined #ruby
[19:12:45] Gustavo: has joined #ruby
[19:12:54] drewvanstone: has joined #ruby
[19:13:37] psy: has joined #ruby
[19:14:24] piotrj: has joined #ruby
[19:14:30] InternetFriend: has joined #ruby
[19:14:42] psy: has joined #ruby
[19:14:43] ramfjord: has joined #ruby
[19:15:23] araujo: has joined #ruby
[19:16:26] firstdayonthejob: has joined #ruby
[19:16:30] jenrzzz: has joined #ruby
[19:19:39] barhum2013: has joined #ruby
[19:20:04] failshell: has joined #ruby
[19:23:06] karapetyan: has joined #ruby
[19:24:00] cschneid_: has joined #ruby
[19:25:02] beast_: has joined #ruby
[19:25:11] agentmeerkat: has joined #ruby
[19:25:45] PaulCape_: has joined #ruby
[19:26:54] howdoicomputer: has joined #ruby
[19:27:13] mbff: has joined #ruby
[19:27:47] mbff: Hello! I am using the mina deploy tool that creates a bundle install in shared/bundle. How can I use these gems when I call bundle exec?
[19:28:03] Maletor: has joined #ruby
[19:28:40] Sigma00: has joined #ruby
[19:28:40] dhollinger: has joined #ruby
[19:29:19] baweaver: has joined #ruby
[19:29:23] Pro|: require 'whatyouwanttouse'
[19:29:23] havenn: mbff: If I recall correctly `bundle install --deployment` will set that as the expected directory and is a "remembered" command so once set it'll remember it in the bundler config.
[19:29:43] nertzy: has joined #ruby
[19:30:24] `based_pdev`: has joined #ruby
[19:30:38] workmad3: has joined #ruby
[19:31:38] mbff: havenn, hmmm... not the case here? deploy@king:/sites/fargobikesharebackend/current$ bundle exec mina unicorn:restart
[19:31:53] loc22: has joined #ruby
[19:31:57] mbff: bundler: command not found: mina Install missing gem executables with `bundle install`
[19:32:10] Flying_Squirrel: has joined #ruby
[19:32:11] havenn: mbff: http://bundler.io/v1.10/deploying.html
[19:32:22] havenn: mbff: gem install bundler
[19:34:14] giuseppesolinas: has joined #ruby
[19:34:16] giuseppesolinas_: has joined #ruby
[19:34:57] tvw: has joined #ruby
[19:37:10] PaulCapestany: has joined #ruby
[19:37:10] dmolina1: has joined #ruby
[19:37:56] petricore: has joined #ruby
[19:38:39] jtoy: has joined #ruby
[19:38:49] Giordano: has joined #ruby
[19:39:12] dfockler: has joined #ruby
[19:39:23] Timba-as: has joined #ruby
[19:39:54] hyperbolist: has joined #ruby
[19:40:14] Giordano: hey guys, can I set a default value for a property without using a constructor/initialize method? Something like Java: class A { int value = 1; }
[19:42:06] yfeldblum: has joined #ruby
[19:44:28] shevy: Giordano hey old webchat-friend
[19:44:31] opensource_ninja: has joined #ruby
[19:44:38] abdulrehman: has joined #ruby
[19:44:41] finisherr: has joined #ruby
[19:44:55] Giordano: sevy: Hello friend
[19:45:19] sanguisdex: has joined #ruby
[19:45:32] krisquigley: has joined #ruby
[19:46:00] s2013: has joined #ruby
[19:46:07] hyperbolist: has left #ruby: ("WeeChat 1.0.1")
[19:46:54] baweaver: has joined #ruby
[19:49:28] roxtrongo: has joined #ruby
[19:49:34] howdoicomputer: has joined #ruby
[19:50:48] dopie: has joined #ruby
[19:51:20] axiomatic_345: has joined #ruby
[19:51:22] piotrj: has joined #ruby
[19:51:48] kidoz: has joined #ruby
[19:51:52] psy: has joined #ruby
[19:52:48] Xiti: has joined #ruby
[19:52:50] Jackneill: has joined #ruby
[19:53:20] Coldblackice: has joined #ruby
[19:54:04] glowcoil: has joined #ruby
[19:54:28] blackmes1: has joined #ruby
[19:55:09] rickmasta: has joined #ruby
[19:55:31] PaulCape_: has joined #ruby
[19:56:48] jacksonmills: has joined #ruby
[19:57:02] tomaz_b: has joined #ruby
[19:59:48] EminenceHC: has joined #ruby
[20:00:12] Maletor: has joined #ruby
[20:01:09] shmilan: has joined #ruby
[20:03:25] loc22: has joined #ruby
[20:04:16] wldcordeiro_: has joined #ruby
[20:04:40] moeabdol: has joined #ruby
[20:05:00] but3k4: has joined #ruby
[20:05:25] leo19: has joined #ruby
[20:05:45] i8igmac: has joined #ruby
[20:07:11] shakes: has joined #ruby
[20:07:40] PaulCapestany: has joined #ruby
[20:08:08] martin_work: has joined #ruby
[20:08:30] hydrozen: has joined #ruby
[20:08:55] haxrbyte: has joined #ruby
[20:09:43] otacon-: has joined #ruby
[20:10:14] gregf: has joined #ruby
[20:11:12] loincloth: has joined #ruby
[20:12:31] loincloth: heyo... anyone using Timecop?
[20:12:35] brazenbraden: i am trying to get a rails container app up and running and am stuck behind the error "/app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg.rb:4:in `require': libruby.so.2.2: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg_ext.so (LoadError)" which i believe has something to do with ruby missing some libraries or something. any clues?
[20:12:50] howdoicomputer: has joined #ruby
[20:13:08] iamninja_: has joined #ruby
[20:13:54] renderful: has joined #ruby
[20:14:45] Gustavo: has joined #ruby
[20:14:57] loincloth: @BrazenBraden looks like search results for "pg_ext.so (LoadError)" are a decent start
[20:15:12] rubybeginner: Anyone have spare minute for private chat?
[20:16:13] brazenbraden: loincloth, if i remove the pg gem, it then fails on another gem. always libruby.so cant read file
[20:16:31] loincloth: re: Timecop, i am trying to test some code which polls another resource using loop { ...; sleep interval; } and it seems like sleep() behaves like normal even if, say, time is frozen
[20:16:49] loincloth: so at the moment i'm not sure how best to proceed testing such code
[20:17:15] loincloth: i could move the "..." behavior there into a method and test that and then just assume loop and sleep work as expected
[20:17:41] loincloth: but i got comfy with the fake clock via sinon.js in a JavaScript context, which seems to adjust how sleep() behaves intuitively, so i'm hoping to be able to rock something like that
[20:17:47] brazenbraden: loincloth, dont know if this will help clarify what im working on but hey.. : https://gist.github.com/brazenbraden/b4ef6839ac81fdd42a4a
[20:18:06] loincloth: basically want to be able to tick time ahead under my control and have sleep react accordingly, if that makes sense
[20:18:19] loincloth: i am close to monkey patching sleep() but feel i'd rather not if i can help it
[20:18:42] Cyther: has joined #ruby
[20:19:24] dfockler: loincloth: https://github.com/travisjeffery/timecop#the-difference-between-timecopfreeze-and-timecoptravel
[20:19:50] loincloth: @dfockler yeah i read over that... possibly i don't get it, but i'm not sure it ultimately helps me
[20:20:08] loincloth: as i said, if i freeze time with Timecop and then call, say, sleep(30) it still hangs for 30 secs
[20:20:34] loincloth: what i would like is that it hangs indefinitely because time is frozen and proceeds only when i step ahead in time with an explicit Timecop call
[20:20:43] dfockler: it's still going to sleep shouldn't change based on the time
[20:21:02] loincloth: well, given the assumptions in play, i don't agree
[20:21:06] loincloth: sleep is based on time progressing
[20:21:07] I3igmac: has joined #ruby
[20:21:15] imperator: has left #ruby: ("Leaving")
[20:21:18] loincloth: if time is frozen, it seems counter intuitive to sleep for some duration of time then
[20:21:52] dfockler: in the example Timecop.freeze keeps the same time regardless of how long you sleep
[20:22:19] moeabdol: has joined #ruby
[20:22:24] davidhq: has joined #ruby
[20:22:32] loincloth: i feel i'm not getting at some important detail here
[20:22:44] loincloth: not explaining something because as i said i read that and i see what's happening
[20:22:50] dfockler: It's probably me not understanding exactly what you are looking for
[20:23:06] ownfocus: has joined #ruby
[20:23:07] loincloth: yeah it's ok
[20:23:13] zendrix: has joined #ruby
[20:23:30] dfockler: I'm guessing you don't want the sleep call to actually happen?
[20:23:37] dfockler: but just be skipped over?
[20:24:00] loincloth: not quite... i can do that pretty easily using a rspec stub or such
[20:24:25] loincloth: i think i want it to hang there indefinitely
[20:24:35] loincloth: like it can't do anything because time is frozen
[20:24:47] i8igmac: has joined #ruby
[20:25:00] loincloth: so say i have sleep(30.seconds) and the test hits that... and then i say Timecop.travel 20.seconds... it should still be hung
[20:25:08] dfockler: That's not quite the purpose of Timecop
[20:25:09] loincloth: but the second we travel past 30 seconds, things resume
[20:25:14] loincloth: yeah, i'm getting that :D
[20:25:33] loincloth: this is behavior i am trying to translate from other experiences in JavaScript land which might be part of the issue
[20:25:43] loincloth: something with how clocks and sleep work there compared to Ruby perhaps
[20:25:45] _djbkd: has joined #ruby
[20:25:51] PaulCape_: has joined #ruby
[20:25:52] Pathfinder: has joined #ruby
[20:25:57] nettoweb: has joined #ruby
[20:26:00] loincloth: but i was able to do what i want here using sinon.js and its fake timer
[20:27:32] cassioscabral: has joined #ruby
[20:27:37] orbitalo: has joined #ruby
[20:27:37] I3igmac: has joined #ruby
[20:27:47] loincloth: this was still helpful, tho... i think i just need to approach the situation differently
[20:28:02] dfockler: JS doesn't have a 'sleep' function so to speak
[20:28:12] loincloth: yeah sorry, i'm confusing things more
[20:28:26] loincloth: but it's a similar algorithm i guess, at least in my mind
[20:28:45] loincloth: setTimeout(fn, interval) vs. loop { fn; sleep interval; } or some such
[20:28:46] dfockler: Ruby just stops the thread from executing
[20:28:55] dfockler: when you call sleep
[20:29:21] loincloth: yeah... this has been a helpful convo for shedding some light on my assumptions and drawing my attention to some of these important details
[20:29:35] loincloth: i think for now i might move the behavior for the loop to a method and just test that
[20:29:38] dfockler: sure :D I'm not sure I even understand how JS does timeouts
[20:29:54] i8igmac: has joined #ruby
[20:30:00] loincloth: yeah i don't know the nitty gritty either
[20:30:01] baweaver: has joined #ruby
[20:30:12] drptbl_: has joined #ruby
[20:31:01] michael_mbp: has joined #ruby
[20:34:26] abdulrehman: has joined #ruby
[20:35:00] _djbkd: has joined #ruby
[20:37:02] fullofcaffeine: has joined #ruby
[20:37:38] shevy: nobody here does!
[20:38:47] benlieb: has joined #ruby
[20:43:06] skullcrasher_: has joined #ruby
[20:45:40] PaulCapestany: has joined #ruby
[20:46:04] vF3hNGxc47h8: has joined #ruby
[20:46:48] ellisTAA: has joined #ruby
[20:46:58] duoi: has joined #ruby
[20:47:00] evanjs: has joined #ruby
[20:47:07] skullcrasher_: has joined #ruby
[20:47:09] dagda1: has joined #ruby
[20:47:17] cschneid_: If I have an increasing array: [1,4,7,12], and an input, 6, how can I find the 4 element? I can certainly inject and track previous and current value, and break w/ previous when I find a current that's too big. But is there a cleaner way?
[20:47:22] jenrzzz: has joined #ruby
[20:49:55] bklane: has joined #ruby
[20:50:17] skullcrasher: has joined #ruby
[20:51:35] apeiros: cschneid_: how are the input and the 4 (fourth? or the value 4, index 1?) element related?
[20:51:50] axiomatic_345: has joined #ruby
[20:52:16] cschneid_: apeiros: value 4 sorry. "Find me the index of the largest value that's smaller than my input" is what I want.
[20:52:33] cschneid_: bsearch actually may do it huh
[20:52:54] apeiros: mhm, iirc it has a mode to find closest
[20:53:05] martin_work: has joined #ruby
[20:53:20] skweek: has joined #ruby
[20:53:49] cschneid_: well, maybe not
[20:54:38] freerobby: has joined #ruby
[20:55:37] jpfuente_: has joined #ruby
[20:56:10] bklane: has joined #ruby
[20:56:21] banister: has joined #ruby
[20:57:09] yfeldblum: has joined #ruby
[20:57:19] workmad3: has joined #ruby
[20:57:27] kadoppe: has joined #ruby
[20:57:30] PaulCape_: has joined #ruby
[20:59:05] mondayrain: has joined #ruby
[20:59:07] martin_work: has joined #ruby
[20:59:17] snockerton: has joined #ruby
[20:59:50] otacon-_: has joined #ruby
[20:59:51] skade: has joined #ruby
[21:00:02] Maletor: has joined #ruby
[21:04:37] bklane: has joined #ruby
[21:05:27] solocshaw: has joined #ruby
[21:05:55] tomchapin: has joined #ruby
[21:06:08] nettoweb: has joined #ruby
[21:06:24] TomyLobo: has joined #ruby
[21:10:06] n_blownapart: has joined #ruby
[21:10:52] devoldmx: has joined #ruby
[21:11:59] Eiam_: has joined #ruby
[21:12:19] blackmes1: has joined #ruby
[21:13:07] speakingcode: has joined #ruby
[21:14:15] dikaio: has joined #ruby
[21:14:39] Scripore: has joined #ruby
[21:15:24] jpfuentes2: has joined #ruby
[21:16:03] PaulCapestany: has joined #ruby
[21:16:23] mbff: has joined #ruby
[21:16:35] bklane: has joined #ruby
[21:17:02] dravine: has joined #ruby
[21:17:13] Azure: has joined #ruby
[21:17:29] mbff: Hello! I am using rbenv, mina, and bundler as apart of my deployments. I cannot get bundler exec to see vendor/bundle in my-app/current/vendor/bundle. Any ideas?
[21:20:35] tenderlove: has joined #ruby
[21:20:56] platzhirsch: has left #ruby: ()
[21:21:25] tenderlove: has joined #ruby
[21:22:10] havenn: mbff: I'd expect it to *just work* but I don't use rbenv. Hem. Have you checked out the Mina Bundler options?: https://github.com/mina-deploy/mina/blob/master/lib/mina/bundler.rb#L14-L20
[21:23:35] jenrzzz: has joined #ruby
[21:23:55] havenn: mbff: Earlier in the error you showed it seemed like the Bundler gem wasn't installed rather than that it couldn't find vendor/bundle.
[21:23:56] chipotle: has joined #ruby
[21:23:56] mbff: havenn, yes I have gone through alot of the mina code and defaults over the last 2 hours.
[21:24:23] havenn: mbff: What's the latest error?
[21:25:39] mbff: same error. Let me check the bundler path again
[21:25:43] mary5030: has joined #ruby
[21:25:59] havenn: mbff: Usually with rbenv the answer is something about shims and rehash. :P
[21:26:22] tenderlo_: has joined #ruby
[21:26:51] mbff: Part of the confusion probably revolves the fact that bundler was install as a normal gem via gem install bundler while the app gems are installed via bundler --deployment
[21:26:59] nwhirschfeld: has joined #ruby
[21:27:01] mbff: havenn, sounds about right.
[21:27:50] PaulCape_: has joined #ruby
[21:27:54] workmad3: has joined #ruby
[21:28:28] dfockler: has joined #ruby
[21:28:47] mbff: also just running "/home/$USER/.rbenv/shims/bundle" via ssh works/finds the bundle binary. So bundler exists
[21:29:32] howdoi: has joined #ruby
[21:30:49] Ilyes512: has joined #ruby
[21:31:06] havenn: mbff: Here's an example of configuring Mina with rbenv if you haven't looked at this one yet:
[21:31:07] havenn: https://www.digitalocean.com/community/tutorials/how-to-use-mina-to-deploy-a-ruby-on-rails-application
[21:31:36] havenn: I don't use a Ruby version switcher in production since I just use one Ruby in production.
[21:33:24] mbff: havenn, hmmm.... i should seriously consider that option
[21:33:25] justin2: has joined #ruby
[21:33:49] havenn: mbff: If it's not Rails you could probably even ditch Bundler and resolve dependencies and create your Gemfile.lock by setting `export RUBYGEMS_GEMDEPS="$GEMFILE_LOCATION_HERE"` and running: gem install -g "$GEMFILE_LOCATION_HERE"
[21:33:54] EminenceHC: has joined #ruby
[21:33:55] tenderlove: has joined #ruby
[21:34:26] diegoviola: has joined #ruby
[21:35:22] jpfuentes2: has joined #ruby
[21:35:49] mbff: havenn, thanks for the idea. That might work as a last resort but I am trying to stay away from "hacks" especially for deployment. I trust the dev of mina to know the best way to deploy. haha
[21:36:01] baweaver: has joined #ruby
[21:36:19] Limix: has joined #ruby
[21:36:21] InternetFriend: has joined #ruby
[21:37:50] tenderlove: has joined #ruby
[21:38:22] EminenceHC: has joined #ruby
[21:39:10] PaulCapestany: has joined #ruby
[21:40:24] baroquebobcat: has joined #ruby
[21:41:23] michaeldeol: has joined #ruby
[21:42:11] jobewan: has joined #ruby
[21:43:32] michael_mbp: has joined #ruby
[21:46:04] arooni: has joined #ruby
[21:46:32] slawrence00: has joined #ruby
[21:47:09] PaulCapestany: has joined #ruby
[21:47:57] havenwood: has joined #ruby
[21:48:02] buck_: has joined #ruby
[21:48:31] buck_: Hi. I know what a mutex is theoretically but I don't know how to use it in ruby code. Can someone explain how a mutex object works?
[21:48:54] rickmasta: has joined #ruby
[21:49:00] EminenceHC: has joined #ruby
[21:49:29] buck_: has left #ruby: ()
[21:50:18] havenwood: lock = Mutex.new; lock.synchronize { :do_the_things_here }
[21:50:32] porfa: has joined #ruby
[21:50:45] shevy: that scared him off
[21:51:21] tenderlove: has joined #ruby
[21:52:38] bklane: has joined #ruby
[21:52:49] tvw: has joined #ruby
[21:52:55] EminenceHC: has joined #ruby
[21:53:54] gmci: has joined #ruby
[21:54:52] havenwood: shevy: Left right before I posted it. Me thinking of posting it scared em off.
[21:55:14] bklane: has joined #ruby
[21:55:16] havenwood: shevy: I didn't even get to wax poetic on the differences between Mutex and Monitor.
[21:55:41] havenwood: shevy: Or go into MonitorMixin or at least ConditionVariable.
[21:55:50] Scripore: has joined #ruby
[21:56:12] i8igmac: has joined #ruby
[21:56:23] atomical: has joined #ruby
[21:56:54] aerozepplin: has joined #ruby
[21:57:07] xaxisx: has joined #ruby
[21:58:25] pipework: havenwood: I hear waxing can lessen friction though. :p
[21:58:29] bkxd: has joined #ruby
[21:58:43] NeverDie: has joined #ruby
[21:59:03] mondayrain: has joined #ruby
[22:00:59] tenderlove: has joined #ruby
[22:01:02] atomical_: has joined #ruby
[22:01:21] dopamean_: has joined #ruby
[22:01:48] dfockler: has joined #ruby
[22:02:20] Ox0dea: has joined #ruby
[22:03:58] I3igmac: has joined #ruby
[22:05:47] cek: has joined #ruby
[22:05:53] dramagods: has joined #ruby
[22:06:06] cek: i'm trying to match a string with regexp , but it doesn't work.
[22:06:14] PaulCape_: has joined #ruby
[22:06:44] jenrzzz_: has joined #ruby
[22:06:49] cek: User-Agent: Mac OS X/10.1.1 (123123); ExchangeWebServices/1.0.1 (158); Mail/1.2 with %r{Mac OS X/([\d\.]+)\b.+(?:Mail/([\d\.]+)\b)?} . It doesn't catch second match
[22:07:21] hfp_work: has joined #ruby
[22:07:33] cek: essentially, want to match on first match and if second doesn't exist, that's okay. But if exists, want to match it too.
[22:07:54] aerozepplin: has joined #ruby
[22:08:09] volongato: has joined #ruby
[22:09:42] Ox0dea: cschneid_: I trust you ended up discovering #bsearch_index?
[22:09:52] hfp__work: has joined #ruby
[22:09:57] _jimc: has joined #ruby
[22:09:59] cschneid_: Ox0dea: no, just implemented it w/ a while loop....
[22:10:04] Ox0dea: cschneid_: Gross.
[22:10:07] cschneid_: also backing off the refactor that required this in the first place
[22:10:18] sepp2k: has joined #ruby
[22:10:20] cschneid_: needs to be done, but not right now
[22:11:13] shevy: havenwood oh I see. I don't see leavers and joiners and have no time stamps :)
[22:11:18] Ox0dea: Huh, #bsearch_index is 2.3, anyway.
[22:11:52] devoldmx: has joined #ruby
[22:11:59] Ox0dea: cschneid_: Well, here's my take on #insert_keep_sorted for when you need it: https://eval.in/442520
[22:12:33] cschneid_: Ox0dea: I have a lookup table w/ breakpoints which was my use
[22:12:34] cschneid_: but cool :)
[22:12:57] pipework: Wow, never seen anyone actually use the return value of a method definition, let alone like that.
[22:13:54] tvon: has joined #ruby
[22:14:07] blackmesa: has joined #ruby
[22:14:30] cek: 'first second'.match /(first).+(second)?$/ -- second not captured
[22:15:02] cek: 'first junk second junk'.match /(first).+(second)?/ not working :/
[22:15:08] shevy: Ox0dea where have you been
[22:15:11] shevy: [k- was missing you
[22:17:57] PaulCapestany: has joined #ruby
[22:18:09] ericjphillips: has joined #ruby
[22:19:20] hfp_work: has joined #ruby
[22:20:07] chipotle: has joined #ruby
[22:21:13] jeffreylevesque: has joined #ruby
[22:21:18] tenderlove: has joined #ruby
[22:22:37] parduse: has joined #ruby
[22:24:20] baweaver: has joined #ruby
[22:25:10] noethics: has joined #ruby
[22:25:46] bklane: has joined #ruby
[22:26:47] bklane: has joined #ruby
[22:26:53] hfp_work: has joined #ruby
[22:27:09] charliesome: has joined #ruby
[22:29:15] maikowblue: has joined #ruby
[22:29:22] drocsid: has joined #ruby
[22:30:10] _underscore_: has joined #ruby
[22:32:08] havenwood: cek: Your matcher got greedy.
[22:32:12] shinnya: has joined #ruby
[22:32:23] havenwood: cek: /(first).+?(second)?$/
[22:32:37] havenwood: cek: +? <- non-greedy
[22:32:41] cek: I can't on $ , theres additional data
[22:32:49] SenpaiSilver: has joined #ruby
[22:33:07] Pupeno: has joined #ruby
[22:33:20] havenwood: cek: Just change `.+` to `.+?` and nothing else.
[22:34:01] cek: 'first junk second junk'.match /(first).+?(second)?/ => #<MatchData "first " 1:"first" 2:nil>
[22:34:20] xaxisx: has left #ruby: ()
[22:35:52] havenwood: cek: Show a full example?
[22:36:00] havenwood: Or a couple?
[22:36:10] cek: that's the full example. I need to capture both groups.
[22:36:19] mary5030: has joined #ruby
[22:36:21] cek: or capture first if second is not present.
[22:36:56] drocsid: I'm having trouble with my script, can somebody have a look? Think it's something simple but not finding it.
[22:36:59] drocsid: https://gist.github.com/drocsid/6e912cfa4e703ddd84df
[22:37:01] Xeago: has joined #ruby
[22:37:21] hfp_work: has joined #ruby
[22:38:02] Ox0dea: shevy: I did the Hajj.
[22:38:02] badpanda: has joined #ruby
[22:38:08] Ox0dea: Saudi Arabian infrastructure leaves something to be desired.
[22:38:20] Coraline: drocsid: what kind of trouble?
[22:38:21] hfp__work: has joined #ruby
[22:38:46] Ox0dea: Coraline: nil trouble.
[22:39:16] parduse: has joined #ruby
[22:39:41] Coraline: Why is COUNT a string?
[22:41:03] Ox0dea: >> ['foo bar', 'foo baz'].map { |s| s.match /(foo).+?(bar)?$/ } # cek
[22:41:04] ruboto: Ox0dea # => [#<MatchData "foo bar" 1:"foo" 2:"bar">, #<MatchData "foo baz" 1:"foo" 2:nil>] (https://eval.in/442545)
[22:41:21] hfp_work|: has joined #ruby
[22:41:41] patchedmonkey: has joined #ruby
[22:41:42] Ox0dea: cek: You have to anchor the second match or it gets caught by `.+?` by dint of its being optional.
[22:41:53] PaulCape_: has joined #ruby
[22:42:02] cek: yeah, sadly i don't see appropriate solution
[22:42:03] drocsid: COUNT isn't a string
[22:42:11] drocsid: I should gix that
[22:42:14] Ox0dea: cek: I've just shown you one?
[22:42:17] drocsid: but look at the bottom
[22:42:25] drocsid: sp_wh_runner.rb:29:in `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError)
[22:42:35] cek: there's unknown junk around second item
[22:42:37] drocsid: bottom of my fist, that's the issue
[22:42:52] hfp_work: has joined #ruby
[22:43:07] Ox0dea: drocsid: app_data["apps"] is nil, which has no #[] method.
[22:43:25] Coraline: drocsid: I would inspect app_data via pry
[22:44:16] atomical_: has joined #ruby
[22:44:26] patchedmonkey: has joined #ruby
[22:46:26] Ox0dea: cek: You can just use another `.+` to eat the junk before anchoring, no?
[22:46:30] drocsid: hmm I can just check the script with irb.. Thanks I will fix errors and see if there are more issues
[22:48:52] hfp_work: has joined #ruby
[22:49:51] allcentury: has joined #ruby
[22:51:29] Xeago: has joined #ruby
[22:52:18] tenderlove: has joined #ruby
[22:52:26] shinnya: has joined #ruby
[22:52:44] charliesome: has joined #ruby
[22:57:11] skade: has joined #ruby
[22:58:09] PaulCapestany: has joined #ruby
[22:59:55] cirenyc: has joined #ruby
[23:00:30] htmldrum: has joined #ruby
[23:00:38] stardiviner: has joined #ruby
[23:03:00] porfa: has joined #ruby
[23:05:52] Ox0dea: has joined #ruby
[23:06:07] shmilan: has joined #ruby
[23:06:50] jenrzzz: has joined #ruby
[23:08:39] PaulCape_: has joined #ruby
[23:09:56] Royalb15: has joined #ruby
[23:10:13] aerozepplin: has joined #ruby
[23:11:58] tenderlove: has joined #ruby
[23:12:05] aerozepplin: has joined #ruby
[23:13:02] michael_mbp: has joined #ruby
[23:13:46] ramfjord: has joined #ruby
[23:14:30] Ox0dea: >> Numeric.new # What's this for?
[23:14:31] ruboto: Ox0dea # => #<Numeric:0x40df4400> (https://eval.in/442559)
[23:16:03] workmad3: has joined #ruby
[23:17:19] dramagods: has joined #ruby
[23:17:48] Ropeney: has joined #ruby
[23:18:30] eam: Ox0dea: in case the ones you've got get old
[23:19:03] funnel: has joined #ruby
[23:19:17] roxtrongo: has joined #ruby
[23:19:38] Ox0dea: It's got a bunch of methods that don't actually work on account of not having the methods on which those methods it does have rely.
[23:19:49] Ox0dea: >> Numeric.new.to_c # but at least this works
[23:19:50] ruboto: Ox0dea # => (#<Numeric:0x4072037c>+0i) (https://eval.in/442560)
[23:20:02] eam: yeah I'm playing with it; amusing
[23:20:03] eam: >> Numeric.new % Numeric.new
[23:20:04] failshell: has joined #ruby
[23:20:04] ruboto: eam # => undefined method `/' for #<Numeric:0x41624350> (NoMethodError) ...check link for more (https://eval.in/442561)
[23:20:34] eam: >> Numeric.new.real?
[23:20:35] ruboto: eam # => true (https://eval.in/442562)
[23:20:37] Ox0dea: It's a sort of "placeholder" class, so some of this makes sense, but most of it doesn't.
[23:20:50] Ox0dea: >> [+Numeric.new, [-Numeric.new rescue $!)]
[23:20:51] eam: >> Numeric.new.integer?
[23:20:51] ruboto: Ox0dea # => /tmp/execpad-bded2022df09/source-bded2022df09:2: syntax error, unexpected modifier_rescue, expecting ...check link for more (https://eval.in/442563)
[23:20:52] ruboto: eam # => false (https://eval.in/442564)
[23:21:01] Ox0dea: >> [+Numeric.new, (-Numeric.new rescue $!)] # Whoops.
[23:21:02] ruboto: Ox0dea # => [#<Numeric:0x41cfd08c>, #<TypeError: Numeric can't be coerced into Fixnum>] (https://eval.in/442565)
[23:21:22] Ox0dea: Why does unary negation try to convert to Fixnum? :/
[23:22:10] eam: is it weird that ruby has unary +
[23:22:16] eam: what's that for
[23:22:22] roxtrongo: has joined #ruby
[23:22:54] Ox0dea: eam: This: https://gist.github.com/andkerosine/3356675
[23:23:19] Ox0dea: That is, you can define a :+@ method on things for lulz.
[23:23:21] Illusioneer: has joined #ruby
[23:23:38] barhum2013: has joined #ruby
[23:23:43] piotrj: has joined #ruby
[23:23:44] Alayde: has joined #ruby
[23:24:03] giuseppesolinas: has joined #ruby
[23:24:06] bklane: has joined #ruby
[23:24:14] havenwood: ACTION For testrockets: https://github.com/peterc/testrocket#example
[23:24:21] giuseppesolinas_: has joined #ruby
[23:24:26] PaulCapestany: has joined #ruby
[23:24:43] robbyoconnor: has joined #ruby
[23:25:13] workmad3: has joined #ruby
[23:25:18] Ox0dea: That's actually pretty sexy.
[23:25:32] Ox0dea: Watered-down superators == practical?
[23:25:46] axiomatic_345: has joined #ruby
[23:25:47] eam: both amazing answers
[23:25:55] eam: now let's add unary /
[23:27:50] Illusioneer: has left #ruby: ("PING 1443655669")
[23:28:58] tenderlove: has joined #ruby
[23:29:22] Lycanii: has joined #ruby
[23:30:06] shoerain: has left #ruby: ("WeeChat 1.1.1")
[23:31:08] bklane: has joined #ruby
[23:34:57] genpaku: has joined #ruby
[23:34:57] PaulCape_: has joined #ruby
[23:38:05] mghaig: has joined #ruby
[23:40:21] tenderlove: has joined #ruby
[23:41:42] mrsolow: has joined #ruby
[23:42:39] devoldmx: has joined #ruby
[23:43:42] lampshades: has joined #ruby
[23:43:42] skade: has joined #ruby
[23:44:18] arooni: has joined #ruby
[23:47:08] mary5030: has joined #ruby
[23:48:38] jhn: has joined #ruby
[23:48:53] tenderlo_: has joined #ruby
[23:49:48] barhum2013: has joined #ruby
[23:50:43] `tim`: has joined #ruby
[23:52:02] opensource_ninja: has joined #ruby
[23:52:12] catcher: has joined #ruby
[23:52:14] mary5030: has joined #ruby
[23:52:59] failshell: has joined #ruby
[23:56:48] `tim`: has joined #ruby
[23:58:58] Azure: has joined #ruby
[23:59:49] GeissT: has joined #ruby