« Back to channel list

#ruby - 20 January 2016

« Back 1 day Forward 1 day »
[00:01:33] jottr: has joined #ruby
[00:04:41] arescorpio: has joined #ruby
[00:07:21] freeone3000: has joined #ruby
[00:07:35] freeone3000: New and exciting problems: https://gist.github.com/freeone3000/82b722a65a37688f3c49
[00:08:21] freeone3000: Updated with attempts to call --version on each.
[00:08:41] BlackCoyote: has joined #ruby
[00:09:20] symm-: has joined #ruby
[00:13:14] dorei: >> require 'io/console'
[00:13:15] ruby[bot]: dorei: # => true (https://eval.in/504863)
[00:13:30] Ox0dea: 19>> require 'io/console'
[00:13:31] ruby[bot]: Ox0dea: # => true (https://eval.in/504864)
[00:13:37] pawnbox: has joined #ruby
[00:13:51] Ox0dea: It's a gem that's been bundled with Ruby since forever.
[00:13:57] pwnd_nsfw: has joined #ruby
[00:14:16] apeiros: ?experiment dorei
[00:14:17] ruby[bot]: dorei: Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
[00:14:55] BlackCoyote: has joined #ruby
[00:15:08] dorei: apeiros: how can you tell apart the two cases? :S
[00:15:27] Ox0dea: dorei: Can't you?//
[00:15:35] apeiros: dorei: seriously? to whom did you demonstrate what?
[00:16:08] dorei: apeiros: i dont know, to the same person that Ox0dea demonstrated the same thing
[00:16:13] atomical: has joined #ruby
[00:16:15] hakunin: has joined #ruby
[00:16:17] DanKnox[away]: has joined #ruby
[00:16:30] apeiros: dorei: suuuure
[00:16:47] freeone3000: Ox0dea: I know. That's why it's odd. How do we fix it?
[00:16:53] apeiros: dorei: just so you know - trying to weasel out is something which gets me pissy quickly.
[00:17:07] dorei: apeiros: that's your problem, not mine
[00:17:17] apeiros: !kick dorei watch it
[00:17:17] ruby[bot]: +bbb $a:dorei$#ruby-banned dorei!*@*$#ruby-banned *!*@ppp089210126039.access.hol.gr$#ruby-banned
[00:17:17] ruby[bot]: ruby[bot] kicked dorei: it
[00:18:33] Gasher: has joined #ruby
[00:18:51] ruby[bot]: -bbb dorei!*@*$#ruby-banned *!*@ppp089210126039.access.hol.gr$#ruby-banned $a:dorei$#ruby-banned
[00:19:16] Gasher: Hey, I'm new to Ruby. I just wanted to clarify my assumption: Is the |varaible| a temporary variable for the do statement?
[00:19:34] zambini: It's what is passed into the block
[00:19:41] lucasb: anyway, seems like ruby 2.0 will be EOLed soon, so it's good to upgrade
[00:19:48] Ox0dea: Gasher: That's a fine way to think about it.
[00:19:58] goodroot: has joined #ruby
[00:20:00] Ox0dea: Blocks introduce a new scope, if that's the crux of your question.
[00:20:06] Darmani: apeiros - Using the banhammer well I see? =P
[00:20:19] apeiros: Darmani: it's a kick with a 1min ban.
[00:20:28] DanKnox[away]: has joined #ruby
[00:20:28] Ox0dea: >> value = :old; [1,2,3].each { |value| }; value # Gasher
[00:20:30] ruby[bot]: Ox0dea: # => :old (https://eval.in/504865)
[00:20:36] Darmani: But did he deserve it?
[00:20:52] apeiros: Darmani: if you want to discuss that -> #ruby-banned.
[00:21:06] Gasher: Thanks, I'm still getting used to some of Ruby's syntax, thanks and good night :)
[00:21:09] Darmani: There's a channel for that? lmao
[00:21:23] Ox0dea: Darmani: How come you still come here?
[00:21:39] Darmani: Ox0dea: Why do you care?
[00:22:02] Ox0dea: Are you asking me to quell my curiosity for your benefit?
[00:22:35] Darmani: Ox0dea - It was a simple question.
[00:22:40] Ox0dea: As was mine.
[00:22:43] lucasb: Darmani, Ox0dea: watch it! apeiros will kick both of you.
[00:23:02] Ox0dea: apeiros still feels bad about that time he kicked me.
[00:23:04] gbgdev: has joined #ruby
[00:23:17] apeiros: Ox0dea: sure
[00:23:22] Darmani: lucasb - I wouldn't put it past him =p
[00:23:25] DanKnox[away]: has joined #ruby
[00:24:31] Darmani: Ox0dea - Sometimes I need help. That's why I'm here. Plus you are all like family<33
[00:24:46] Ox0dea: I thought you'd given up on learning Ruby.
[00:24:57] Darmani: Who told you that?
[00:26:57] northfurr: has joined #ruby
[00:30:11] sakix: has joined #ruby
[00:31:42] freeone3000: What's the best way to install ruby on Amazon Linux? It appears the ruby it comes with does not have io.console, so I'm sort of stuck as for what to do next.
[00:32:28] Radar: freeone3000: What Ruby version do you have?
[00:32:55] freeone3000: Radar: https://gist.github.com/freeone3000/82b722a65a37688f3c49 . Second file is my ruby version, but the bundle --version underneath makes me think I don't really have that version of ruby
[00:33:17] Radar: Ok, so 2.0.0.
[00:33:31] Radar: gem install io-console might get it for you.
[00:34:01] quazimodo: has joined #ruby
[00:34:45] northfurr: has joined #ruby
[00:35:02] quazimodo: We have a failing sidekiq worker and I was debugging it, the except that is being raised is IllegalStateMonitorException. I googled this and I'm getting Java code... the worker uses phantomjs so I'm so confused
[00:35:06] quazimodo: does sidekiq use java?
[00:35:32] eam: unless you're using jruby I suppose
[00:37:59] quazimodo: ooooo weird
[00:38:07] freeone3000: Radar: https://gist.github.com/freeone3000/83f7a707718eed25b18a
[00:38:21] Radar: freeone3000: sucks :(
[00:38:25] quazimodo: RuntimeError: java.lang.IllegalMonitorStateException sidekiq/middleware/server/retry_jobs.rb:136:in `attempt_retry'
[00:38:40] quazimodo: thats' so unexpected, i'm going to go investigate. Surprising shit
[00:38:42] Ox0dea: freeone3000: yum install ruby-devel
[00:38:52] DanKnox[away]: has joined #ruby
[00:39:09] Radar: quazimodo: That's re-raising an exception.
[00:39:25] quazimodo: Radar: yeah I'm going to have to go searching to see why
[00:39:38] freeone3000: Ox0dea: Excellent. That moved me to https://gist.github.com/freeone3000/83f7a707718eed25b18a (updated)
[00:39:41] Radar: quazimodo: Try to reproduce it outside the context of a Sidekiq job?
[00:39:48] quazimodo: ~something~ in our stack is touching something that I'm not expecting
[00:39:54] quazimodo: yeah we're unable to
[00:40:01] freeone3000: Ox0dea: It looks like my compiler can't build executables, I'm going to try installing "Development Tools" group
[00:40:16] quazimodo: it looks to be happening when the ram drops to a couple hundred megs on this server
[00:40:23] quazimodo: I'll start stripping things out
[00:40:32] DanKnox[away]: has joined #ruby
[00:40:39] freeone3000: And that'll take a bit... But this looks like the correct path, thanks.
[00:41:22] Ox0dea: freeone3000: Yep, that should do it. :)
[00:41:33] iateadonut: has joined #ruby
[00:41:44] Ox0dea: "Development Tools" is gonna bring in lots of stuff you probably don't need, though.
[00:42:19] freeone3000: Ox0dea: And that got it. It's now running 'bundle install' successfully, thanks.
[00:42:34] DLSteve: has joined #ruby
[00:42:48] Radar: quazimodo: Hire a consultant time, methinks. I don't think anyone in here could debug it.
[00:43:10] quazimodo: I'm going to dig a bit more
[00:43:22] M-shine: has joined #ruby
[00:43:54] quazimodo: oddly enough the job is fine when we run by hand in console on the machine, but not when run in sidekiq via unicorn
[00:45:17] dlitvak: has joined #ruby
[00:45:25] Radar: Unicorn doesn't involve itself with Sidekiq jobs
[00:45:33] Radar: the request enqueues a job in Sidekiq then the Sidekiq worker takes that job and works with it
[00:45:40] Radar: So if you think it's RAM, give the machine more RAM?
[00:45:59] Radar: Might be that it's trying to allocate more RAM than is free and that's all it is.
[00:46:03] Radar: Occam's Razor and all that.
[00:47:26] edwinvdgraaf: has joined #ruby
[00:47:43] chipotle: has joined #ruby
[00:50:09] blackmes1: has joined #ruby
[00:50:24] quazimodo: Radar: you are thinking the same line we are
[00:50:40] quazimodo: that error seems to be about mutex and thread stuff
[00:51:01] quazimodo: I think its' probably the ram allocation too
[00:51:17] quazimodo: tohugh the solution to add more ram ... hwat happens when load goes up... weirderrors again...
[00:51:17] Radar: quazimodo: There's one way to find out.
[00:51:24] Darmani: Radar are you busy?
[00:51:28] quazimodo: yeah i'll call hte host
[00:51:35] Radar: Darmani: Constantly.
[00:51:36] M-Kodo: has joined #ruby
[00:51:47] Radar: quazimodo: Time to rewrite it in Elixir.
[00:52:00] Darmani: Lmao maybe I should be more specific..
[00:52:06] quazimodo: Radar: ive been heading down that path
[00:52:09] quazimodo: you enjoying it?
[00:52:09] Darmani: Do you have a moment to look at my code =P
[00:52:35] Radar: Darmani: I would if I didn't spend it answering questions about whether I have time to look at it.
[00:52:53] Darmani: You know, sarcasm kills kittens.
[00:53:02] Radar: I'm feeling like a real smartass today because I was having a shit day then the next thing I did was amazing and so I feel better.
[00:53:02] Darmani: Everytime you use sarcasm, god kills a baby kitten.
[00:53:06] Darmani: Please think of the kittens.
[00:53:15] Radar: Darmani: It's ok. There's a lot of cats.
[00:53:30] pawnbox: has joined #ruby
[00:53:30] Darmani: Radar - lmao
[00:53:51] Darmani: Well let me fix a few things and i'll show it to you
[00:53:57] Ox0dea: Many more cats than gods.
[00:54:19] Ox0dea: (I worship Maru.)
[00:54:32] Radar: Darmani: Thanks :)
[00:54:45] quazimodo: Radar: you know if celluloid does any java touching?
[00:54:55] quazimodo: I can't imagine it does
[00:55:00] Radar: quazimodo: It does not.
[00:55:12] quazimodo: yeah I was grasping at straws
[00:55:28] Radar: My guess is it's whatever is running PhantomJS.
[00:59:33] platzhirsch: has joined #ruby
[00:59:41] Darmani: Radar - So this is a very simple, stupid video game. And I'm sure I'm not doing it right. Can you show me how something like this would be done?
[01:00:04] G186: has joined #ruby
[01:00:06] Darmani: https://repl.it/BfIP/1
[01:00:14] durstburger: has joined #ruby
[01:00:16] kalopsian: has joined #ruby
[01:00:28] victortyau: has joined #ruby
[01:00:45] M-mistake: has joined #ruby
[01:00:48] Radar: Darmani: No need for self. prefix when referencing instance variables.
[01:00:58] Radar: @name.@defense.size is weird too. Which one do you mean to reference?
[01:01:10] G186: has left #ruby: ()
[01:01:12] Darmani: umm if one player was to attack another
[01:01:19] Darmani: So that would be like the second player? or character?
[01:01:57] Radar: You're passing another object there, so you should probably call it other_player instead of name.
[01:02:08] hnagamin: has joined #ruby
[01:02:13] baweaver: also name the class Player
[01:02:54] Darmani: How would I reference the other_player?
[01:03:16] northfurr: has joined #ruby
[01:03:29] Radar: Darmani: Like this: https://gist.github.com/radar/af7311d9bd9b8efb691d
[01:03:45] Radar: You don't need @strength because attr_accessor makes them available as methofds
[01:03:57] Radar: And @strength isn't an array or a string, so you can't call .size on it
[01:04:31] howdoicomputer: has joined #ruby
[01:04:42] baweaver: also for take_damage I would suggest not using puts
[01:04:46] Radar: I'll leave it to you to figure out why attack returns nil.
[01:04:48] baweaver: that's not the concern of the object
[01:05:13] baweaver: also, how much damage does it take?
[01:05:18] Darmani: Radar - Mmk. Thanks man. You are a gentleman and a scholar<3
[01:05:35] baweaver: If PlayerA has 100 ATK vs PlayerB with 10 DEF, wouldn't you expect a lot more damage?
[01:05:44] Darmani: baweaver - That's a good question... I didn't really think that far ahead.
[01:06:00] Darmani: I really just wanted to get the code to run without errors lol
[01:08:39] baweaver: attack: player_b.take_damage [player_a.attack - player_b.defense, 0].max
[01:09:20] Ox0dea: s/0/1/ maybe.
[01:10:03] baweaver: maybe, depends on style of it more than anything
[01:10:16] gowikel: has joined #ruby
[01:10:19] baweaver: then again I'd say that the attack method isn't the concern of a player either
[01:10:26] baweaver: a player is just a data structure
[01:10:48] baweaver: have an external module of actions that take two or more players and tell them what to do with eachother
[01:11:37] baweaver: Actions::Attack.physical(player_a, player_b)
[01:12:10] tomchapin: has joined #ruby
[01:12:27] baweaver: though that strafes more functional
[01:14:26] wldcordeiro: has joined #ruby
[01:15:20] baweaver: Pokemon might look like: Actions::special(attacker: pikachu, using: thunderbolt, against: magikarp)
[01:16:16] baweaver: Might namespace moves as well for their elements
[01:16:19] dlitvak_: has joined #ruby
[01:16:57] baweaver: most of the reason to abstract the actions would be that otherwise you end up with concerns of the actions and other pokemon all over a single entity
[01:17:02] dopie: has joined #ruby
[01:17:54] stuartb: has joined #ruby
[01:18:39] rkazak: has joined #ruby
[01:18:39] baweaver: Darmani: try making Pokemon :D
[01:18:50] Ox0dea: You could have Monster#attack invoke #defend on other, but that's not very good.
[01:19:10] dopie: has joined #ruby
[01:20:04] IrishGringo: has joined #ruby
[01:20:16] hnagamin: has joined #ruby
[01:20:26] hnagamin: has joined #ruby
[01:22:22] pilne: has joined #ruby
[01:22:49] IrishGringo: has joined #ruby
[01:23:51] pawnbox: has joined #ruby
[01:27:07] fsapo: has joined #ruby
[01:30:18] diegoviola: has joined #ruby
[01:31:36] mrchris: has joined #ruby
[01:32:48] Darmani: baweaver - Lol that's a good idea.
[01:33:07] chipotle: has joined #ruby
[01:34:54] kalopsian: has joined #ruby
[01:39:59] B1n4r10: has joined #ruby
[01:41:40] UtkarshRay: has joined #ruby
[01:46:12] ni291187: has joined #ruby
[01:46:14] hnagamin: has joined #ruby
[01:47:43] jamw: has joined #ruby
[01:51:42] Graphettion: has joined #ruby
[01:53:51] czsr: has joined #ruby
[01:53:51] czsr: has joined #ruby
[01:54:18] griffindy: has joined #ruby
[01:56:15] ferr: has joined #ruby
[01:56:29] baweaver: has joined #ruby
[01:58:25] Limix: has joined #ruby
[01:59:32] mary5030: has joined #ruby
[02:00:43] kalopsian: has joined #ruby
[02:00:44] blackmes1: has joined #ruby
[02:00:55] nbdy: has joined #ruby
[02:01:15] dstarh: has joined #ruby
[02:02:18] jottr: has joined #ruby
[02:04:43] duckpuppy: has joined #ruby
[02:05:29] x77686d: has joined #ruby
[02:06:02] dlitvak: has joined #ruby
[02:08:01] mfb2: has joined #ruby
[02:08:46] guacamole: has joined #ruby
[02:09:55] wolffles: has joined #ruby
[02:12:14] hannelita: has joined #ruby
[02:13:32] bonhoeffer: has joined #ruby
[02:14:50] tenderlove: has joined #ruby
[02:15:28] onlyme: has joined #ruby
[02:16:34] baweaver: has joined #ruby
[02:20:31] jgt: has joined #ruby
[02:20:32] howdoicomputer: has joined #ruby
[02:20:40] IrishGringo_: has joined #ruby
[02:22:07] DanKnox[away]: has joined #ruby
[02:23:45] northfurr: has joined #ruby
[02:27:32] idefine: has joined #ruby
[02:30:13] onlyme: has joined #ruby
[02:32:22] dlitvak_: has joined #ruby
[02:32:25] mfb2: has joined #ruby
[02:33:19] paradisaeidae: has joined #ruby
[02:35:03] IrishGringo: has joined #ruby
[02:36:38] govg: has joined #ruby
[02:39:12] zeknox1: has joined #ruby
[02:39:24] zeknox: has joined #ruby
[02:41:34] zeknox: anyone know of a way to use nokogiri xpath case insensitive without having to use translate() ??? my Gemfile.lock shows I'm using xpath 2.0 but I cant use lower-case() that is suppose to be added
[02:42:48] wolffles: has joined #ruby
[02:42:59] agent_white: has joined #ruby
[02:43:11] northfurr: has joined #ruby
[02:43:23] jgpawletko: has joined #ruby
[02:43:54] Ox0dea: zeknox: This looks to be what you're after: http://stackoverflow.com/a/8812293
[02:46:41] guacamole: has joined #ruby
[02:48:51] Scripore: has joined #ruby
[02:50:49] M-mistake: has joined #ruby
[02:51:23] atomical_: has joined #ruby
[02:52:43] Bloomer: has joined #ruby
[02:54:33] chouhoulis: has joined #ruby
[02:56:07] jamw: has joined #ruby
[02:56:49] Darmani: quuick question.
[02:57:03] Xeago: has joined #ruby
[02:57:05] Darmani: What's a FREE book on Ruby that I should read?
[02:57:22] Radar: http://ruby-doc.com/docs/ProgrammingRuby/
[02:57:51] Darmani: Radar you're like an angel with no wings
[02:58:08] JamieD: has joined #ruby
[02:58:15] Ox0dea: Who says he doesn't have wings?
[02:58:54] sakix: has joined #ruby
[02:58:55] Darmani: Ox0dea - yeah, that's true. I frequently imagine you as a donkey =p
[02:59:15] zeknox: Ox0dea: thanks for the link, I'll test that out
[02:59:17] pawnbox: has joined #ruby
[02:59:22] Radar: No Red Bull, so no wings.
[02:59:33] Ox0dea: zeknox: Why's translate() a no-go?
[02:59:42] Darmani: Radar - Don't drink that shiit. That's so bad for you.
[02:59:53] Radar: Darmani: Yes, I know. I don't even have caffeine.
[02:59:55] zeknox: Ox0dea: its running slow as shiz and CPU is spiking pretty bad
[03:00:19] Darmani: Radar - how do you function without caffeine? Are you even human?
[03:00:37] Radar: Darmani: I have ascended to a higher astral plane.
[03:00:54] pawnbox: has joined #ruby
[03:00:55] Darmani: Radar - Clearly.
[03:01:15] Darmani: I guess that explains the wings lol
[03:01:48] mary5030: has joined #ruby
[03:03:35] emilford: has joined #ruby
[03:03:47] blackmes1: has joined #ruby
[03:04:12] Melpaws: has joined #ruby
[03:04:13] mrsolow: has joined #ruby
[03:05:30] dlitvak: has joined #ruby
[03:05:34] B1n4r10: has joined #ruby
[03:06:48] lacuna: has joined #ruby
[03:06:49] lacuna: has joined #ruby
[03:11:16] Limix: has joined #ruby
[03:11:19] usershell: has joined #ruby
[03:12:34] emilford: has joined #ruby
[03:12:58] hannelita: has joined #ruby
[03:14:47] ReK2: has joined #ruby
[03:17:21] Mackerel: has joined #ruby
[03:18:42] crdpink2: has joined #ruby
[03:19:11] duckpuppy: has joined #ruby
[03:21:40] emilford: has joined #ruby
[03:21:44] jgt: has joined #ruby
[03:22:51] northfurr: has joined #ruby
[03:22:51] myntcake: has joined #ruby
[03:25:52] dlitvak: has joined #ruby
[03:26:38] tomchapin: has joined #ruby
[03:28:23] Jammy_Work: has joined #ruby
[03:29:05] janebootydoe: has joined #ruby
[03:30:45] emilford: has joined #ruby
[03:30:53] tomchapin: has joined #ruby
[03:31:49] Asher: has joined #ruby
[03:32:37] chipotle: has joined #ruby
[03:32:43] mrsolow: has joined #ruby
[03:33:38] sakix: has joined #ruby
[03:36:19] tildes: has joined #ruby
[03:39:59] emilford: has joined #ruby
[03:40:00] janebootydoe: has joined #ruby
[03:42:15] bronson: has joined #ruby
[03:43:13] choke: has joined #ruby
[03:45:02] atomical: has joined #ruby
[03:45:57] jgpawletko_: has joined #ruby
[03:47:41] atomical: has joined #ruby
[03:50:16] northfurr: has joined #ruby
[03:51:56] braincra-: has joined #ruby
[03:52:45] quazimodo: Radar: was a package being called through like 3 layers of delegation
[03:52:50] quazimodo: a java app ... dur
[03:53:07] Radar: quazimodo: and how did you fix it?
[03:53:11] bb010g: has joined #ruby
[03:53:15] Djole: has joined #ruby
[03:54:10] parus: has joined #ruby
[03:54:58] quazimodo: no idea was stuffing face as coworker isolated where exactly things broke via copious logger.warns
[03:55:06] yxhuvud: has joined #ruby
[03:55:15] quazimodo: next step figure out how that external package is being used
[03:55:33] quazimodo: we tested it and it workson that machine from command line
[03:55:54] quazimodo: perhaps we change our task to call the binary manually with `binary do stuff` and see what happens
[03:56:10] quazimodo: I'll check how the gem that provides the functionality uses it frist
[03:56:13] varesa_: has joined #ruby
[03:56:19] Rodya_: has joined #ruby
[03:57:17] baweaver: has joined #ruby
[03:57:49] colegatron: has joined #ruby
[03:58:18] quazimodo: this was an interesting bug
[03:58:51] Ox0dea: Do a postmortem.
[03:58:52] funnel: has joined #ruby
[04:02:11] Rodya_: has joined #ruby
[04:04:21] jottr: has joined #ruby
[04:04:30] blackmes1: has joined #ruby
[04:07:12] duckpuppy: has joined #ruby
[04:07:44] goodroot: has joined #ruby
[04:08:55] jgpawletko: has joined #ruby
[04:11:33] northfurr: has joined #ruby
[04:12:03] rkazak: has joined #ruby
[04:12:52] sneakerhax: has joined #ruby
[04:13:40] hannelita: has joined #ruby
[04:16:28] braincrash: has joined #ruby
[04:19:32] emilford: has joined #ruby
[04:19:59] Eiam_: has joined #ruby
[04:21:07] howdoicomputer: has joined #ruby
[04:21:38] dopie: has joined #ruby
[04:22:54] sakix: has joined #ruby
[04:25:28] victortyau: has joined #ruby
[04:26:07] astrofog: has joined #ruby
[04:26:16] krz: has joined #ruby
[04:28:08] dopie: has joined #ruby
[04:30:02] Tref_: has joined #ruby
[04:30:46] tjbiddle: has joined #ruby
[04:31:09] dlitvak: has joined #ruby
[04:32:17] Musashi007: has joined #ruby
[04:36:49] JohnT: has joined #ruby
[04:37:50] payload: has joined #ruby
[04:39:03] djbkd: has joined #ruby
[04:41:58] yfeldblum: has joined #ruby
[04:42:20] zast: has joined #ruby
[04:43:50] sdothum: has joined #ruby
[04:46:03] fedexo: has joined #ruby
[04:46:03] cicloid: has joined #ruby
[04:47:05] norc: has joined #ruby
[04:48:43] m1dnight1: has joined #ruby
[04:50:06] northfurr: has joined #ruby
[04:51:12] jgpawletko: has joined #ruby
[04:51:20] arup_r: has joined #ruby
[04:51:24] astrobun_: has joined #ruby
[04:51:41] astrobun_: has joined #ruby
[04:52:53] mrsolow: has joined #ruby
[04:53:08] matp: has joined #ruby
[04:54:29] gix: has joined #ruby
[04:57:03] hnagamin: has joined #ruby
[04:58:18] bronson: has joined #ruby
[05:00:05] akem: has joined #ruby
[05:04:03] dext: has joined #ruby
[05:05:30] haraoka: has joined #ruby
[05:06:58] tjbiddle: has joined #ruby
[05:07:32] blackmes1: has joined #ruby
[05:10:24] baweaver: has joined #ruby
[05:10:26] pawnbox: has joined #ruby
[05:11:11] mfb2_: has joined #ruby
[05:13:40] jamw: has joined #ruby
[05:15:12] mrsolow: has joined #ruby
[05:18:59] jamw: has joined #ruby
[05:20:48] JamieD: has joined #ruby
[05:22:29] jgt: has joined #ruby
[05:24:59] AnoHito: has joined #ruby
[05:28:29] hxegon_AFK: has joined #ruby
[05:29:28] usershell: has joined #ruby
[05:29:45] rkazak: has joined #ruby
[05:30:26] Omni_: has joined #ruby
[05:30:47] speaking1ode: has joined #ruby
[05:30:53] freerobby: has joined #ruby
[05:32:23] guacamole: has joined #ruby
[05:32:29] quazimodo: Radar: RJB with sidekiq is pretty shit
[05:32:43] quazimodo: i think it's RJB
[05:32:51] quazimodo: can't be sure if RJB or the jar file it' using
[05:33:38] jamw: has joined #ruby
[05:34:17] hnagamin: has joined #ruby
[05:36:07] hannelita: has joined #ruby
[05:37:44] djcp: has joined #ruby
[05:38:33] AnoHito: has joined #ruby
[05:38:41] kaspergrubbe: has joined #ruby
[05:39:04] zapata: has joined #ruby
[05:39:59] DanKnox[away]: has joined #ruby
[05:47:11] yxhuvud: has joined #ruby
[05:47:35] disconnekted: has joined #ruby
[05:50:28] howdoi: has joined #ruby
[05:50:52] tmtwd: has joined #ruby
[05:57:28] ur5us: has joined #ruby
[05:59:01] Danielss89: has joined #ruby
[05:59:36] droptone: has joined #ruby
[05:59:37] djbkd: has joined #ruby
[05:59:50] rakm: has joined #ruby
[06:00:01] headius: has joined #ruby
[06:00:06] [spoiler]: has joined #ruby
[06:00:45] graphettion_: has joined #ruby
[06:01:10] radgeRayden_: has joined #ruby
[06:01:29] tildes: has joined #ruby
[06:02:35] JohnT: has joined #ruby
[06:04:48] anisha: has joined #ruby
[06:05:09] jottr: has joined #ruby
[06:05:12] r4um: has joined #ruby
[06:05:14] atmosx: has joined #ruby
[06:05:34] v0n: has joined #ruby
[06:09:44] Musashi007: has joined #ruby
[06:10:03] usershell: has joined #ruby
[06:10:34] blackmes1: has joined #ruby
[06:13:29] bronson: has joined #ruby
[06:13:56] ohaibbq: has joined #ruby
[06:14:14] aganov: has joined #ruby
[06:14:19] idefine: has joined #ruby
[06:15:02] djbkd: has joined #ruby
[06:15:50] sigurding: has joined #ruby
[06:16:00] krz: has joined #ruby
[06:16:03] ur5us: has joined #ruby
[06:16:04] yfeldblum: has joined #ruby
[06:16:24] j_mcnally: has joined #ruby
[06:18:27] darkf: has joined #ruby
[06:20:30] karapetyan: has joined #ruby
[06:20:58] micah`: has joined #ruby
[06:21:15] micah`: hey, how do i reference a rake rule as a dependency for another task, is that possible?
[06:21:31] micah`: or can i only have rules dependent on rules?
[06:21:45] howdoicomputer: has joined #ruby
[06:21:49] tlarevo: has joined #ruby
[06:23:30] lxsameer: has joined #ruby
[06:24:27] lacuna: has joined #ruby
[06:25:34] anisha_: has joined #ruby
[06:25:47] arup_r: has joined #ruby
[06:27:46] gambl0re: has joined #ruby
[06:31:25] romain_t: has joined #ruby
[06:31:57] ur5us: has joined #ruby
[06:32:07] rkazak: has joined #ruby
[06:33:25] romain_t: has joined #ruby
[06:33:43] yfeldblum: has joined #ruby
[06:34:10] dopie: has joined #ruby
[06:36:16] dopie: has joined #ruby
[06:36:38] jottr: has joined #ruby
[06:36:56] mfb2: has joined #ruby
[06:38:55] laszlo1: has joined #ruby
[06:39:42] quazimodo: Radar: I played with phoenix a bit
[06:39:54] quazimodo: it's a different experience but I really like it so far
[06:40:23] yfeldblum: has joined #ruby
[06:43:56] yardenbar: has joined #ruby
[06:44:43] tlarevo_: has joined #ruby
[06:46:26] tmtwd: has joined #ruby
[06:46:38] B1n4r10: has joined #ruby
[06:47:24] dopie: has joined #ruby
[06:48:04] aufi: has joined #ruby
[06:50:02] Scripore: has joined #ruby
[06:50:06] tlarevo: has joined #ruby
[06:53:32] claw: has joined #ruby
[06:54:07] sigurding: has joined #ruby
[06:58:14] fantazo: has joined #ruby
[07:01:55] harly: has joined #ruby
[07:02:12] ur5us: has joined #ruby
[07:04:51] juddey: has joined #ruby
[07:05:06] Arnvald: has joined #ruby
[07:07:14] codecop: has joined #ruby
[07:08:10] PedramT: has joined #ruby
[07:11:21] blackmes1: has joined #ruby
[07:11:44] rippa: has joined #ruby
[07:12:38] dfockler: has joined #ruby
[07:12:47] idefine: has joined #ruby
[07:16:12] guacamole: has joined #ruby
[07:16:30] edwinvdgraaf: has joined #ruby
[07:16:47] ziyadb: has joined #ruby
[07:16:57] PedramT: has joined #ruby
[07:17:08] scepticulous: has joined #ruby
[07:20:27] PedramT: has joined #ruby
[07:22:32] minimalism: has joined #ruby
[07:23:11] jgt: has joined #ruby
[07:23:18] aufi: has joined #ruby
[07:23:31] solars: has joined #ruby
[07:24:01] PedramT: has joined #ruby
[07:24:49] dopie: has joined #ruby
[07:25:33] mondok: has joined #ruby
[07:28:18] laszlo1: has left #ruby: ("WeeChat 1.3")
[07:29:00] arup_r: has joined #ruby
[07:29:30] Xeago: has joined #ruby
[07:29:43] gagrio: has joined #ruby
[07:29:48] usershell: has joined #ruby
[07:30:37] PedramT: has joined #ruby
[07:32:29] gagrio: has joined #ruby
[07:33:07] pawnbox: has joined #ruby
[07:34:03] jbrhbr: has joined #ruby
[07:34:56] n00bDev: has joined #ruby
[07:35:19] kerunaru: has joined #ruby
[07:39:16] andikr: has joined #ruby
[07:40:22] hnagamin: has joined #ruby
[07:40:47] dn`: has joined #ruby
[07:41:09] rsc___: has joined #ruby
[07:44:44] firstdayonthejob: has joined #ruby
[07:45:55] User458764: has joined #ruby
[07:49:16] govg: has joined #ruby
[07:50:18] DirtyFInn: has joined #ruby
[07:51:15] Scripore: has joined #ruby
[07:54:02] fclausen: has joined #ruby
[07:55:56] antgel: has joined #ruby
[07:57:52] last_staff: has joined #ruby
[08:01:52] karapetyan: has joined #ruby
[08:03:12] finisherr: has joined #ruby
[08:04:10] Ebok: has joined #ruby
[08:04:16] PedramT: has joined #ruby
[08:07:06] jas02: has joined #ruby
[08:07:39] DoubleMalt: has joined #ruby
[08:08:07] anisha_: has joined #ruby
[08:09:23] mary5030_: has joined #ruby
[08:10:13] SCHAAP137: has joined #ruby
[08:11:56] jgt: has joined #ruby
[08:12:56] TomyWork: has joined #ruby
[08:13:59] bronson: has joined #ruby
[08:14:00] Scripore: has joined #ruby
[08:14:09] ta: has joined #ruby
[08:14:25] blackmes1: has joined #ruby
[08:14:26] ta: has joined #ruby
[08:17:39] mark3: has joined #ruby
[08:18:14] Averna: has joined #ruby
[08:18:42] PedramT: has joined #ruby
[08:19:28] astrobun_: has joined #ruby
[08:20:20] skade: has joined #ruby
[08:20:49] astrobun_: has joined #ruby
[08:21:31] tenzan: has joined #ruby
[08:21:39] govg: has joined #ruby
[08:22:09] Trieste: has joined #ruby
[08:22:17] edwinvdgraaf: has joined #ruby
[08:22:39] howdoicomputer: has joined #ruby
[08:22:46] srenatus: has joined #ruby
[08:23:43] quazimodo: has joined #ruby
[08:25:09] Trieste: has joined #ruby
[08:27:19] PedramT: has joined #ruby
[08:27:41] sergey_makagon: has joined #ruby
[08:28:09] Trieste: has joined #ruby
[08:28:11] fclausen: has joined #ruby
[08:28:34] xiaohanyu: has joined #ruby
[08:28:58] Spami: has joined #ruby
[08:30:39] Trieste: has joined #ruby
[08:30:47] burgestrand: has joined #ruby
[08:30:48] arup_r: has joined #ruby
[08:32:27] hannelita: has joined #ruby
[08:32:51] einarj: has joined #ruby
[08:33:42] Trieste: has joined #ruby
[08:34:54] troulouliou_div2: has joined #ruby
[08:36:03] burgestrand: has joined #ruby
[08:36:31] sepp2k: has joined #ruby
[08:37:05] Jackneill: has joined #ruby
[08:37:58] astrobun_: has joined #ruby
[08:38:05] IrishGringo: has joined #ruby
[08:41:36] Hounddog: has joined #ruby
[08:42:04] PedramT: has joined #ruby
[08:42:54] hayden_: has joined #ruby
[08:43:58] blackms: has joined #ruby
[08:44:29] blackms: hello, is there someone here who uses rubymine?
[08:44:57] Radar: literally nobody
[08:45:01] Ox0dea: Nary a soul.
[08:45:22] Radar: except that one guy but nobody is sure if he is alive any more or even if he existed in the first place
[08:45:33] tjbiddle: has joined #ruby
[08:45:47] Ox0dea: Some say he's still trying to get Bundler integrated to this day.
[08:45:58] Radar: "Just one more package"
[08:46:07] blackms: is it bad?
[08:46:29] Radar: RubyMine default install http://www.emmitsburg.net/archive_list/articles/misc/cww/2013/photos/consoles_full.jpg
[08:47:00] Radar: blackms: Do you really feel like you need RubyMine? Why won't something as basic as Sublime Text 3 be good enough for you?
[08:47:34] blaxter: has joined #ruby
[08:47:40] blackms: Radar, because I already have the license
[08:47:44] usershell: has joined #ruby
[08:47:48] Radar: I'm sorry. So sorry.
[08:47:54] Radar: david-tenant-crying-in-rain.gif
[08:48:03] steffkes: has joined #ruby
[08:48:05] blackms: and I really appreciated PyCharm
[08:48:18] Ox0dea: Radar: The one with the nose droplet or without?
[08:48:52] Ox0dea: http://www.reactiongifs.us/wp-content/uploads/2013/06/raining_david_tennant_nosedrip.gif
[08:48:58] Hounddog: has joined #ruby
[08:49:07] Ox0dea: (Warning: very unseeable.)
[08:49:22] blackms: but still i like pycharm
[08:49:38] blackms: the problem with rubymine is not rubymine itself, it's me
[08:50:08] cfloare: has joined #ruby
[08:53:08] jottr: has joined #ruby
[08:55:38] cgfbee: has joined #ruby
[08:55:46] cfloare: has joined #ruby
[08:56:23] blackms: btw Radar one reason to have rubymine instead of st3 is to have an integrated debugger
[08:56:26] blackms: just to say one
[08:56:26] karapetyan: has joined #ruby
[08:56:50] Radar: blackms: One reason for me to go for a swim in the local river here is to grow a third arm which I'm pretty sure I'd find useful if I had one.
[08:56:52] ddv: the visual debugger is nice but then again pry, byebug are great also
[08:56:55] Radar: My debugger is in my terminal.
[08:56:56] sandstrom: has joined #ruby
[08:57:00] Radar: My test runner is in my terminal
[08:57:03] Radar: A cmd+tab away
[08:57:09] Radar: Or, it's on the same screen just in another window.
[08:58:07] blackms: ddv, yes you are right, but the problem here is the time to learn another thing
[08:58:52] zapata: has joined #ruby
[08:59:40] blackms: I mean, ok you are right, I'm doing exactly what shouldn't be done. I'm using an IDE to provide my lack of knowledge
[09:00:14] Ox0dea: But that's the point of technological innovation!
[09:00:15] Radar: A knowledge crutch.
[09:00:20] Ox0dea: Welcome to the future.
[09:00:20] blackms: and I know that this is bad, but I usually don't use ruby and since I'm doing things at work I have to keep in mind the time
[09:00:42] blackms: well... it's impossible to reason with you
[09:01:05] Radar: Hm that's what I was just about to say.
[09:01:12] blackms: have a nice day gugu guru :)
[09:05:36] huyderman: has joined #ruby
[09:06:07] cgfbee: has joined #ruby
[09:06:18] blaxter: has joined #ruby
[09:06:20] cfloare: has joined #ruby
[09:08:28] mary5030: has joined #ruby
[09:08:48] Arnvald: has joined #ruby
[09:09:56] PedramT: has joined #ruby
[09:11:41] duderon__: has joined #ruby
[09:11:48] tjbiddle: has joined #ruby
[09:12:43] stevemackinnon: has joined #ruby
[09:12:45] cornerma1: has joined #ruby
[09:13:48] PedramT: has joined #ruby
[09:15:07] ly_caon: has joined #ruby
[09:16:25] Xeago: has joined #ruby
[09:17:14] drptbl: has joined #ruby
[09:17:25] blackmes1: has joined #ruby
[09:17:35] cgfbee: has joined #ruby
[09:17:38] User458764: has joined #ruby
[09:17:44] Xeago: has joined #ruby
[09:18:57] PedramT: has joined #ruby
[09:20:01] astrobun_: has joined #ruby
[09:20:09] vdamewood: has joined #ruby
[09:21:07] sftrabbit: has joined #ruby
[09:21:26] cfloare: has joined #ruby
[09:23:22] Xeago: has joined #ruby
[09:24:02] rdark: has joined #ruby
[09:26:07] workmad3: has joined #ruby
[09:26:59] pawnbox: has joined #ruby
[09:27:09] blackmes1: has joined #ruby
[09:27:15] rkoller: has joined #ruby
[09:27:30] ramfjord: has joined #ruby
[09:28:29] snowy: has joined #ruby
[09:30:22] Xeago: has joined #ruby
[09:31:40] ur5us: has joined #ruby
[09:31:46] xiaohanyu: has joined #ruby
[09:31:47] chthon: has joined #ruby
[09:32:06] Xeago: has joined #ruby
[09:32:57] fclausen: has joined #ruby
[09:33:16] IrishGringo: has joined #ruby
[09:34:12] dmolina: has joined #ruby
[09:34:17] Scripore: has joined #ruby
[09:34:41] xiaohanyu: has left #ruby: ()
[09:35:55] Ishido: has joined #ruby
[09:36:59] usershell: has joined #ruby
[09:37:44] Xeago: has joined #ruby
[09:38:51] blackgoat: has joined #ruby
[09:42:56] marr: has joined #ruby
[09:42:57] pawnbox: has joined #ruby
[09:43:38] pawnbox: has joined #ruby
[09:43:57] pawnbox: has joined #ruby
[09:44:02] gbgdev: has joined #ruby
[09:44:40] karapetyan: has joined #ruby
[09:44:59] Musashi007: has joined #ruby
[09:46:37] n00bDev: has joined #ruby
[09:47:08] valeri_ufo: has joined #ruby
[09:49:25] Ishido: has joined #ruby
[09:50:23] platzhirsch: has joined #ruby
[09:51:53] lipoqil: has joined #ruby
[09:52:29] tulak: has joined #ruby
[09:56:23] Xeago: has joined #ruby
[09:56:58] ferr: has joined #ruby
[09:58:28] colegatron: has joined #ruby
[09:58:53] cajone: has joined #ruby
[10:00:31] krz: has joined #ruby
[10:03:11] codecop: has joined #ruby
[10:03:19] DaniG2k: has joined #ruby
[10:05:55] dwfait: has joined #ruby
[10:06:08] jameswatling: has joined #ruby
[10:08:33] mary5030: has joined #ruby
[10:13:43] tvw: has joined #ruby
[10:14:07] dionysus69: has joined #ruby
[10:14:13] workmad3: has joined #ruby
[10:17:27] drptbl: has joined #ruby
[10:17:40] BTRE: has joined #ruby
[10:18:41] binaryplease: has joined #ruby
[10:19:42] Melpaws: has joined #ruby
[10:19:51] Arnvald: has joined #ruby
[10:20:35] PedramT: has joined #ruby
[10:23:20] howdoicomputer: has joined #ruby
[10:23:41] IrishGringo: has joined #ruby
[10:23:48] pandaant: has joined #ruby
[10:25:17] Scripore: has joined #ruby
[10:25:50] Trieste: has joined #ruby
[10:26:05] dlitvak: has joined #ruby
[10:26:23] IrishGringo_: has joined #ruby
[10:29:25] sonOfRa: has joined #ruby
[10:29:50] rodfersou: has joined #ruby
[10:31:07] baweaver: has joined #ruby
[10:31:07] fclausen: has joined #ruby
[10:33:04] ayonkhan: has joined #ruby
[10:34:36] finisherr: has left #ruby: ()
[10:36:49] jamw: has joined #ruby
[10:37:07] UtkarshRay: has joined #ruby
[10:37:47] skade: has joined #ruby
[10:39:03] arup_r: has joined #ruby
[10:39:37] ldnunes: has joined #ruby
[10:40:59] shredding: has joined #ruby
[10:42:17] gbgdev: has joined #ruby
[10:43:50] hannelita: has joined #ruby
[10:47:22] waka: has joined #ruby
[10:47:23] waka_: has joined #ruby
[10:48:02] karapetyan: has joined #ruby
[10:50:02] jxs_: has joined #ruby
[10:52:57] hnagamin: has joined #ruby
[10:53:30] dlitvak: has joined #ruby
[10:53:44] decoponio: has joined #ruby
[10:55:12] jottr: has joined #ruby
[10:55:41] sandstrom: has joined #ruby
[10:56:11] karapetyan: has joined #ruby
[10:59:00] skade: has joined #ruby
[10:59:37] dlitvak_: has joined #ruby
[11:03:53] lycaonian: has joined #ruby
[11:06:05] arup_r1: has joined #ruby
[11:06:26] CloCkWeRX: has joined #ruby
[11:08:23] waka_: has joined #ruby
[11:08:23] waka: has joined #ruby
[11:10:11] blackmes1: has joined #ruby
[11:11:19] dlitvak: has joined #ruby
[11:11:40] dionysus69: has joined #ruby
[11:13:06] nfk|laptop: has joined #ruby
[11:15:24] karapetyan: has joined #ruby
[11:16:12] waka_: has joined #ruby
[11:16:13] waka: has joined #ruby
[11:16:13] waka__: has joined #ruby
[11:16:47] bronson: has joined #ruby
[11:17:53] pdoherty: has joined #ruby
[11:18:40] burbus: has joined #ruby
[11:18:58] waka: has joined #ruby
[11:19:30] FooMunki: has joined #ruby
[11:20:12] f4cl3y: has joined #ruby
[11:21:11] Stratus3D: has joined #ruby
[11:22:58] Stratus3D: Wrote an article on HashNuke's asdf, which has greatly simplified my Ruby (and Node.js) version management. Check it out: https://news.ycombinator.com/item?id=10937262
[11:24:31] canton7: the fact that you linked to HN and not the article suggests you're only sharing it to get promotion, not to be useful to other users..?
[11:25:30] fclausen: has joined #ruby
[11:26:21] colegatron: has joined #ruby
[11:26:45] IrishGringo: has joined #ruby
[11:27:03] Stratus3D: canton7: I wrote the article in hopes that others would find it useful. I shared the HN link so others can read the article or promote the HN post.
[11:27:18] sepp2k: has joined #ruby
[11:27:54] Stratus3D: canton7: Is sharing HN links for promotion against the rules in here?
[11:28:02] canton7: I didn't say that :P
[11:28:28] c355E3B: has joined #ruby
[11:28:33] drptbl: has joined #ruby
[11:28:56] Alina-malina: has joined #ruby
[11:30:09] karapetyan: has joined #ruby
[11:30:47] c0m0: has joined #ruby
[11:31:51] sergey_makagon: has joined #ruby
[11:32:23] Alina-malina: has left #ruby: ("Leaving")
[11:32:38] InvGhost: has joined #ruby
[11:34:16] yqt: has joined #ruby
[11:39:43] Jardayn: has joined #ruby
[11:43:21] atmosx: has joined #ruby
[11:44:05] matp: has joined #ruby
[11:44:30] felixal: has joined #ruby
[11:44:34] usershell: has joined #ruby
[11:47:10] chriscoffee: has joined #ruby
[11:48:15] karapetyan: has joined #ruby
[11:51:04] jameswatling: has joined #ruby
[11:53:55] last_staff: has joined #ruby
[11:54:19] Pupeno: has joined #ruby
[11:54:19] Pupeno: has joined #ruby
[11:55:10] binaryplease: has joined #ruby
[11:55:48] sergey_makagon: has joined #ruby
[11:57:55] Xeago: has joined #ruby
[11:59:18] moeabdol: has joined #ruby
[12:01:19] Axy: has joined #ruby
[12:01:19] Axy: has joined #ruby
[12:01:24] ferr: has joined #ruby
[12:01:38] CloCkWeRX: has joined #ruby
[12:01:54] howdoi: has joined #ruby
[12:01:58] Ox0dea: has joined #ruby
[12:03:17] joonty: has joined #ruby
[12:03:44] Ox0dea: Stratus3D: $ chruby | xargs -I ver chruby-exec ver -- ruby -v
[12:03:51] Ox0dea: How do I do that with asdf?
[12:04:18] skade: has joined #ruby
[12:05:20] burgestrand: has joined #ruby
[12:05:24] ChameleonSix4: has joined #ruby
[12:08:21] lindistock: has joined #ruby
[12:08:41] rodfersou: has joined #ruby
[12:10:36] rodfersou: has joined #ruby
[12:11:27] sftrabbit: has joined #ruby
[12:17:15] karapetyan: has joined #ruby
[12:18:05] matp_: has joined #ruby
[12:18:11] sandstrom: has joined #ruby
[12:18:42] Ropeney: has joined #ruby
[12:18:59] pawnbox: has joined #ruby
[12:20:27] sftrabbit: has joined #ruby
[12:21:01] lindistock: has joined #ruby
[12:21:16] pawnbox: has joined #ruby
[12:23:58] howdoicomputer: has joined #ruby
[12:25:24] anagha_: has joined #ruby
[12:26:20] sftrabbit: has joined #ruby
[12:27:12] x0F: has joined #ruby
[12:27:19] sepp2k: has joined #ruby
[12:30:19] dlitvak: has joined #ruby
[12:32:10] baweaver: has joined #ruby
[12:32:54] Xeago: has joined #ruby
[12:33:58] onlyme: has joined #ruby
[12:34:31] dcunit3d: has joined #ruby
[12:36:21] aupadhye: has joined #ruby
[12:37:44] ponga: has joined #ruby
[12:37:45] jamw: has joined #ruby
[12:39:14] blackmes1: has joined #ruby
[12:40:25] IrishGringo: has joined #ruby
[12:40:26] tesuji: has joined #ruby
[12:41:25] Papierkorb: Is there an article somewhere comparing MRI version 2.2 vs 2.3 performance with (micro) benchmarks?
[12:42:15] sdothum: has joined #ruby
[12:42:18] huluhuluhulu: has joined #ruby
[12:42:20] sigurding: has joined #ruby
[12:43:17] onlyme: has joined #ruby
[12:43:42] karapetyan: has joined #ruby
[12:44:47] Scripore: has joined #ruby
[12:46:30] User458764: has joined #ruby
[12:47:28] PedramT: has joined #ruby
[12:48:05] arup_r: has joined #ruby
[12:49:01] onlyme: has joined #ruby
[12:50:02] roshanavand: has joined #ruby
[12:51:57] onlyme_: has joined #ruby
[12:55:55] dionysus69: is head first ruby a nice way to learn ruby "WELL" ?
[12:55:56] jottr: has joined #ruby
[12:56:47] Kryptonical: has joined #ruby
[12:56:55] peteyg: has joined #ruby
[12:57:33] Carella: has joined #ruby
[12:58:21] ruby764: has joined #ruby
[12:59:33] sjums: how else woud you really learn it, dionysus69 ? :)
[12:59:46] ruby764: I'm trying to install ruby on rails on mac OS X El Capitan 10.11.2 following this tutorial http://railsapps.github.io/installrubyonrails-mac.html
[13:00:09] ruby764: but getting an error while installing ruby
[13:00:10] dlitvak: has joined #ruby
[13:00:35] ddv: ruby764: simple, install homebrew, cruby, ruby-build, gem install rails
[13:00:40] ddv: chruby*
[13:01:04] ruby764: MacBook-Air:~ gauravsarin$ rvm install ruby-2.3.0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.11/x86_64/ruby-2.3.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing requirements for osx. Updating system............................ Installing required packages: autoconf, automake, libtool, pkg
[13:01:41] Macaveli: has joined #ruby
[13:01:41] ruby764: I get an error when I run rvm install ruby-2.3.0
[13:02:08] FooMunki: has joined #ruby
[13:02:18] ruby764: Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config libyaml readline libksba', showing last 15 lines of /Users/gauravsarin/.rvm/log/1453293172_ruby-2.3.0/package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libksba.log
[13:02:26] Macaveli: has joined #ruby
[13:02:57] ruby764: ddv - I'm using rvm
[13:03:14] ddv: ruby764: did you install osx command line tools?
[13:03:26] ruby764: yes that is already there
[13:04:08] ddv: alright, no idea then chruby works fine for me
[13:04:34] ruby764: After the above error i searched on stackoverflow and ran this command sudo chown -R "$USER" "$HOME"
[13:05:10] ruby764: Now when i run rvm install ruby-2.3.0 i get the following error
[13:05:22] ruby764: Checking requirements for osx. ==> Upgrading 1 outdated package, with result: openssl 1.0.2e_1 Error: You must `brew link pkg-config` before openssl can be installed Requirements installation failed with status: 1.
[13:05:55] rethi: has joined #ruby
[13:06:55] ddv: ruby764: what does brew doctor say?
[13:07:06] like-all: has joined #ruby
[13:07:40] dionysus69: sjums: i meant the book name, do you know it? http://www.amazon.com/Head-First-Ruby-Jay-McGavren/dp/1449372651/ref=sr_1_1?ie=UTF8&qid=1453294672&sr=8-1&keywords=Head+First+Ruby
[13:08:06] sftrabbit: has joined #ruby
[13:08:41] dlitvak_: has joined #ruby
[13:09:02] ruby764: there are lots of warnings
[13:09:04] mondok: has joined #ruby
[13:09:05] synthroid: has joined #ruby
[13:09:13] ruby764: how do I paste them
[13:09:37] ruby764: Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected .pc files: /usr/local/lib/pkgconfig/tcl.pc /usr/local/lib/pkgconfig/tk.pc Warning: Unbrewed static libraries were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Ho
[13:09:57] ruby764: Warning: Unbrewed static libraries were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected static libraries: /usr/local/lib/libtclstub8.6.a /usr/local/lib/libtkstub8.6.a Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail
[13:10:21] ruby764: Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: pkg-config
[13:11:08] duckpuppy: has joined #ruby
[13:15:05] iateadonut: has joined #ruby
[13:15:54] like-all: Hi, guys. I try to run ronn on my buildserver inside chroot environment. However, ronn fails here https://gist.github.com/Like-all/4f9d56dd160f18c75daf#file-gistfile1-txt-L37-L54 I even tried to export LANG, but it didn't help. What's wrong?
[13:17:23] drptbl: has joined #ruby
[13:19:29] bronson: has joined #ruby
[13:23:47] dfinninger: has joined #ruby
[13:25:11] anisha: has joined #ruby
[13:30:15] dlitvak: has joined #ruby
[13:31:01] dlitvak: has joined #ruby
[13:35:20] atomical: has joined #ruby
[13:35:26] d0nn1e: has joined #ruby
[13:36:24] chrisarcand: Can someone help me understand the reasoning behind the path used for gem installations using rbenv? This config output confuses me: https://gist.github.com/chrisarcand/bbf593c745fda3ee3a02
[13:36:48] sergey_makagon: has joined #ruby
[13:39:09] jmignault: has joined #ruby
[13:44:14] j_mcnally: has joined #ruby
[13:44:25] dwfait: has joined #ruby
[13:45:46] dfinninger: has joined #ruby
[13:47:31] helpa-bot: has joined #ruby
[13:47:42] user083_: has joined #ruby
[13:48:09] chrisarcand: shevy: Yeah; why extra version number there/why is it different/etc?
[13:48:09] Melpaws1: has joined #ruby
[13:48:16] zeknox1: has joined #ruby
[13:48:20] Asher1: has joined #ruby
[13:48:26] fexilal: has joined #ruby
[13:48:27] havenwood: chrisarcand: ABI compatibility is versioned {MAJOR}.{MINOR}.0.
[13:48:38] DirtyFInn: has joined #ruby
[13:48:40] dionysus70: has joined #ruby
[13:48:41] mary5030_: has joined #ruby
[13:48:50] havenwood: chrisarcand: The 2.2.0 is the ABI version.
[13:48:51] pawnbox_: has joined #ruby
[13:48:54] shevy: chrisarcand oh yes, the 2.2.x will always have 2.2.0
[13:49:05] musl_: has joined #ruby
[13:49:15] Utkarsh: has joined #ruby
[13:49:16] havenwood: at least it's not 1.9.3 where the ABI was 1.9.1!
[13:49:18] ereslibre_laptop: has joined #ruby
[13:49:19] ereslibre_laptop: has joined #ruby
[13:49:34] helpa-bot: has joined #ruby
[13:50:24] nwhirschfeld_: has joined #ruby
[13:50:37] kalleth_: has joined #ruby
[13:50:43] Gnubie__: has joined #ruby
[13:50:45] rikai_: has joined #ruby
[13:51:04] ex0ns_: has joined #ruby
[13:51:06] vandemar_: has joined #ruby
[13:51:06] vandemar_: has joined #ruby
[13:51:06] pleiosau1: has joined #ruby
[13:51:08] xsdg_: has joined #ruby
[13:51:10] DEac-_: has joined #ruby
[13:51:11] fantazo: has joined #ruby
[13:51:14] sts_: has joined #ruby
[13:51:43] helpa-bot: has joined #ruby
[13:51:53] saltsa_: has joined #ruby
[13:51:53] philtr_: has joined #ruby
[13:51:53] mhb_: has joined #ruby
[13:51:53] kiki_lam1: has joined #ruby
[13:51:54] cfloare_: has joined #ruby
[13:51:54] janelleb_: has joined #ruby
[13:51:54] Melpaws1: has left #ruby: ()
[13:51:54] sungji: has joined #ruby
[13:51:54] Mattias: has joined #ruby
[13:51:54] rfi: has joined #ruby
[13:51:54] raypulve1: has joined #ruby
[13:51:54] cscheib_: has joined #ruby
[13:51:56] ihme-TTilus: has joined #ruby
[13:51:59] abyss_: has joined #ruby
[13:52:03] stephenh_: has joined #ruby
[13:52:03] miah_: has joined #ruby
[13:52:04] sunya7a__: has joined #ruby
[13:52:04] Kero_: has joined #ruby
[13:52:04] cout_: has joined #ruby
[13:52:04] [ace]_: has joined #ruby
[13:52:04] setient_: has joined #ruby
[13:52:08] peterhu_: has joined #ruby
[13:52:14] ByronJoh1son: has joined #ruby
[13:52:17] Muz_: has joined #ruby
[13:52:17] slash_ni1k: has joined #ruby
[13:52:46] chrisarcand: havenwood: TIL ABI, looks like I have some reading to do :) Thanks!
[13:55:43] helpa-bot: has joined #ruby
[13:55:46] braincra-: has joined #ruby
[13:55:46] Nuck: has joined #ruby
[13:55:49] yeltzooo9: has joined #ruby
[13:56:14] grumpycat: has joined #ruby
[13:56:23] TheMoonMaster: has joined #ruby
[13:56:31] ankhers: has joined #ruby
[13:56:33] bahar: has joined #ruby
[13:56:44] nizmow_: has joined #ruby
[13:56:46] arob: has joined #ruby
[13:56:50] varesa: has joined #ruby
[13:56:52] ja: has joined #ruby
[13:57:00] sumark: has joined #ruby
[13:57:02] Sigma00: has joined #ruby
[13:57:03] sjohnsen: has joined #ruby
[13:57:04] passcod: has joined #ruby
[13:57:05] Affix: has joined #ruby
[13:57:10] julieeharshaw: has joined #ruby
[13:57:17] akkad: has joined #ruby
[13:57:29] jgt: has joined #ruby
[14:03:52] helpa: has joined #ruby
[14:03:55] mclee: has joined #ruby
[14:03:57] low-profile: has joined #ruby
[14:03:58] sarlalian: has joined #ruby
[14:04:06] Cyrus: has joined #ruby
[14:04:19] NfNitLoop: has joined #ruby
[14:04:25] Mia: has joined #ruby
[14:04:30] jidar: has joined #ruby
[14:04:31] sgambino: has joined #ruby
[14:04:37] j2k: has joined #ruby
[14:04:53] Log1x: has joined #ruby
[14:04:54] Log1x: has joined #ruby
[14:04:58] chrisarcand: havenwood: So the point of ABI versioning in Ruby's case is that gems compiled in different Ruby versions using the same C api (same ABI) could be shared? (But are not shared in my rbenv case, they are in separate rubies that all happen to have the same ABI number)
[14:04:59] fold3: has joined #ruby
[14:05:08] mark3: has joined #ruby
[14:05:10] conrfrmn: has joined #ruby
[14:05:22] moei: has joined #ruby
[14:05:29] shinnya: has joined #ruby
[14:05:32] oddalot: has joined #ruby
[14:05:35] karapetyan: has joined #ruby
[14:05:37] mondok: has joined #ruby
[14:05:44] groundnuty: has joined #ruby
[14:05:46] ironcamel: has joined #ruby
[14:05:54] coffeejunk: has joined #ruby
[14:05:57] linduxed: has joined #ruby
[14:06:16] Koshian: has joined #ruby
[14:06:25] sgambino: has joined #ruby
[14:06:57] jottr: has joined #ruby
[14:07:47] moei: has left #ruby: ()
[14:08:35] burgestrand: has joined #ruby
[14:08:56] dlitvak_: has joined #ruby
[14:10:07] peitera: has joined #ruby
[14:10:16] havenwood: chrisarcand: One hangup for actually sharing gems just by ABI is that the RubyGems default is to hardcode the path to the Ruby in gem executables that are installed. You can use a shebang instead with the --env-shebang option that is set to become default with the RubyGems 2.6 milestone.
[14:10:27] hnagamin: has joined #ruby
[14:11:06] havenwood: chrisarcand: https://github.com/rubygems/rubygems/issues/1049
[14:11:20] shevy: havenwood knows a lot
[14:13:49] chrisarcand: havenwood: Awesome, thanks for all the clarification :) Appreciate it.
[14:14:01] sgambino: has joined #ruby
[14:14:06] havenwood: chrisarcand: You're welcome. No prob!
[14:14:51] ramortegui: has joined #ruby
[14:15:04] disconnekted: has joined #ruby
[14:16:28] quazimodo: has joined #ruby
[14:18:14] sgambino: has joined #ruby
[14:18:16] vdamewood: has joined #ruby
[14:19:06] Ebok: has joined #ruby
[14:19:13] dlitvak: has joined #ruby
[14:19:19] Bish: that aws shit is powerful, never used it before
[14:20:45] bronson: has joined #ruby
[14:22:07] kloeri: has joined #ruby
[14:22:47] nertzy: has joined #ruby
[14:23:54] treehug88: has joined #ruby
[14:24:45] howdoicomputer: has joined #ruby
[14:24:49] apeiros: so it turns water into wine?
[14:26:35] vbatts|work: has left #ruby: ("found the other side of the rainbow")
[14:26:36] cicloid: has joined #ruby
[14:27:52] kobain: has joined #ruby
[14:28:35] dfinninger: has joined #ruby
[14:29:50] prestorium: hi all. I'm coding a POC using raw ruby. How should I handle my classes loading? I'm coming from PHP with composer + autoload.php, which has require 'foo.php'; require 'bar.php' and so on.
[14:30:02] prestorium: What is the ruby way to do that?
[14:30:11] prestorium: I won't use any framework for now
[14:30:26] bmalum: has joined #ruby
[14:30:40] prestorium: Proof of Concept
[14:30:43] apeiros: ruby convention is: put all files in lib/, have names map the constants like Foo::BarBaz -> foo/barbaz.rb
[14:31:00] ddv: piece of c...
[14:31:01] apeiros: rails convention slightly deviates in that convention and uses Foo::BarBaz -> foo/bar_baz.rb
[14:31:24] shevy: those monsters!
[14:31:28] hxegon: has joined #ruby
[14:31:47] apeiros: while testing, make sure your $LOAD_PATH is set up properly, usually you do that by e.g. -I (capital i, not lowercase L): ruby -Ilib bin/your_executable
[14:32:20] User458764: has joined #ruby
[14:32:45] apeiros: and in the files, you require in each file what you need, relative to the lib dir. e.g. if foo.rb, which defines Foo, you need Foo::BarBaz, you have on top of the file `require 'foo/bar_baz.rb'`
[14:32:55] apeiros: that's all.
[14:32:58] prestorium: apeiros, hmmm what about appending '../lib' to $LOAD_PATH inside my bin/exe?
[14:33:20] apeiros: generally should not do that since you'll want to make your thing a gem. and gem handles that for you.
[14:33:35] apeiros: so fixing the $LOAD_PATH in the executable can be counterproductive.
[14:34:01] apeiros: personally I use 2 lines of code in my exes, one which tests whether ../lib exists, and if so, adds it to $LOAD_PATH. that's borderline acceptable.
[14:34:20] prestorium: got it! thank you very much for now apeiros ! :)
[14:34:28] davedev24: has joined #ruby
[14:35:05] WebDawg: has joined #ruby
[14:36:55] pwnd_nsfw: has joined #ruby
[14:37:30] onlyme_: has joined #ruby
[14:38:10] ajf-: has joined #ruby
[14:38:19] kao: has joined #ruby
[14:38:22] floatingpoint: has joined #ruby
[14:38:33] jamw: has joined #ruby
[14:39:31] Macaveli: has joined #ruby
[14:42:15] mrchris: has joined #ruby
[14:42:30] tjohnson: has joined #ruby
[14:45:51] benzrf: has left #ruby: ("WeeChat 1.3")
[14:46:13] Bloomer: has joined #ruby
[14:47:31] malconis: has joined #ruby
[14:47:40] blackmes1: has joined #ruby
[14:47:43] B1n4r10: has joined #ruby
[14:48:59] mfb2: has joined #ruby
[14:49:42] Psy-Q: has joined #ruby
[14:50:05] sdothum: has joined #ruby
[14:50:28] Psy-Q: is there a name for a chainable method (like in activerecord, Thing.where(:foo => 'bar').first) so i could search for something that helps me write my own chainable methods?
[14:51:19] apeiros: Psy-Q: higher-order methods is one name.
[14:51:32] Psy-Q: apeiros: thank you
[14:51:37] apeiros: "proxy object returning method" is not really a name, but kind of a pattern
[14:51:46] mfb2_: has joined #ruby
[14:52:00] apeiros: and usually the pattern used with HOM
[14:52:31] malconis: has joined #ruby
[14:52:33] fourq: has joined #ruby
[14:54:06] kalopsian: has joined #ruby
[14:54:38] sgambino: has joined #ruby
[14:56:19] Arnvald: has joined #ruby
[14:57:01] _ramix_: has joined #ruby
[14:57:26] techietrash: has joined #ruby
[14:57:55] paultreny: has joined #ruby
[14:59:03] BTRE: has joined #ruby
[14:59:44] Guest81954: has joined #ruby
[14:59:56] PedramT: has joined #ruby
[15:00:01] Bloomer: has joined #ruby
[15:00:15] drptbl: has joined #ruby
[15:00:18] like-all: has joined #ruby
[15:00:34] chthon: has joined #ruby
[15:01:03] pwnd_nsfw: has joined #ruby
[15:01:25] araujo: has joined #ruby
[15:01:26] araujo: has joined #ruby
[15:02:40] Cyrus: has joined #ruby
[15:03:06] Frem: has joined #ruby
[15:03:17] avenj: has joined #ruby
[15:03:18] avenj: has joined #ruby
[15:04:09] roshanav_: has joined #ruby
[15:04:39] lele|w: has joined #ruby
[15:05:04] 18VAAAA4S: has joined #ruby
[15:06:18] PedramT: has joined #ruby
[15:07:23] Kryptonic: has joined #ruby
[15:08:26] ricer2_g4H4: has joined #ruby
[15:08:26] DylanJ: has joined #ruby
[15:08:26] newdan: has joined #ruby
[15:08:26] DexterLB: has joined #ruby
[15:08:26] bhaak: has joined #ruby
[15:08:26] diegoviola: has joined #ruby
[15:08:26] thomas: has joined #ruby
[15:08:26] moua: has joined #ruby
[15:08:44] DexterLB: has joined #ruby
[15:09:00] DylanJ: has joined #ruby
[15:09:56] spleeze: has joined #ruby
[15:10:29] freeone3000: has left #ruby: ("Konversation terminated!")
[15:10:48] polishdub: has joined #ruby
[15:11:29] bluOxigen: has joined #ruby
[15:12:06] _ramix_: has left #ruby: ("Saliendo")
[15:12:11] PedramT: has joined #ruby
[15:14:56] sgambino: has joined #ruby
[15:15:26] mrchris: has joined #ruby
[15:16:17] sumark: has joined #ruby
[15:19:50] spleeze: has joined #ruby
[15:20:02] Azulinho: has joined #ruby
[15:20:06] Arnvald: has joined #ruby
[15:20:35] skade: has joined #ruby
[15:20:56] IrishGringo: has joined #ruby
[15:21:25] felixal: has joined #ruby
[15:21:57] babblebre: has joined #ruby
[15:23:42] fantazo: has joined #ruby
[15:23:57] Bloomer: has joined #ruby
[15:24:10] mark3: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :weber.freenode.net")
[15:24:37] robbyoconnor: has joined #ruby
[15:25:24] usershell: has joined #ruby
[15:25:26] GinoManWorks: has joined #ruby
[15:25:52] imperator: has joined #ruby
[15:25:56] imperator: good morning
[15:27:01] lacuna: has joined #ruby
[15:27:10] VeryBewitching: has joined #ruby
[15:28:33] dhollinger: has joined #ruby
[15:29:24] joneshf-laptop: has joined #ruby
[15:29:25] Azulinho: has joined #ruby
[15:31:14] sgambino: has joined #ruby
[15:32:02] tenderlove: has joined #ruby
[15:32:20] freerobby: has joined #ruby
[15:32:51] mrtomme: has joined #ruby
[15:35:02] gbgdev: has joined #ruby
[15:35:27] finisherr: has joined #ruby
[15:37:51] IrishGringo: has joined #ruby
[15:38:19] cdg: has joined #ruby
[15:38:19] weckl: has joined #ruby
[15:40:06] tomchapin: has joined #ruby
[15:42:56] lucasb: has joined #ruby
[15:43:00] diegoviola: has joined #ruby
[15:43:20] rethi: has joined #ruby
[15:43:40] thomas: has joined #ruby
[15:45:47] lucasb: I think I hit some bug or unfortunate feature
[15:46:06] amoeba_: has joined #ruby
[15:46:34] sgambino: has joined #ruby
[15:46:35] lucasb: argf = ARGF.class.new('file1', 'file2'); #<-- this doesn't keep track of lineno
[15:46:59] lucasb: but it iterates the files, as expected
[15:47:15] lucasb: the only problem I saw is not updating lineno
[15:48:02] PedramT: has joined #ruby
[15:48:09] startupality: has joined #ruby
[15:48:54] Dimik: has joined #ruby
[15:49:09] Arnvald: has joined #ruby
[15:49:55] lacuna: has joined #ruby
[15:50:29] slash_ni1k: has joined #ruby
[15:50:33] hayden_: has joined #ruby
[15:51:02] lucasb: just to clarify: if I do 'while line = argf.gets', it updates lineno
[15:51:16] pyoor: has joined #ruby
[15:51:16] lucasb: but if I do 'argf.each_line do |line| ...', it doesn't
[15:51:33] goodroot: has joined #ruby
[15:57:05] pawnbox: has joined #ruby
[15:57:23] shevy: what is this
[15:57:26] shevy: is this ruby code :)
[15:57:37] troulouliou_div2: has joined #ruby
[15:58:08] lucasb: looks like it is :)
[15:58:09] tomchapin: has joined #ruby
[15:58:31] sepp2k: has joined #ruby
[15:59:05] skcin7: has joined #ruby
[16:01:50] mary5030: has joined #ruby
[16:02:46] mary5030: has joined #ruby
[16:03:18] Bloomer: has joined #ruby
[16:03:48] khaki: has joined #ruby
[16:04:26] jhn: has joined #ruby
[16:06:01] Koshian: has joined #ruby
[16:06:14] ta0: has joined #ruby
[16:06:34] PedramT: has joined #ruby
[16:07:28] aegis3121: has joined #ruby
[16:08:03] nerium: has joined #ruby
[16:10:04] PedramT: has joined #ruby
[16:10:27] choke: looks like it to me shevy -- i just had to google each_line 'cause i've never seen it before...
[16:10:55] shevy: nah I meant ARGF.class.new and the trailing ; there mostly
[16:11:26] krobzaur: has joined #ruby
[16:11:27] dlitvak: has joined #ruby
[16:11:42] mchu: has joined #ruby
[16:13:02] shevy: there are so many different ruby styles available, many of them confuse me
[16:13:21] casadei: has joined #ruby
[16:13:22] shevy: I need to find that .() example from Ox0dea again ...
[16:13:37] shevy: and combine it with -> and &.
[16:13:56] gizmore: has joined #ruby
[16:14:43] chouhoulis: has joined #ruby
[16:16:37] BTRE: has joined #ruby
[16:16:51] choke: ahh now i got you
[16:17:56] chouhoul_: has joined #ruby
[16:17:56] choke: and understand what you mean -- i don't think i've used a semi-colon yet in any of my code ( i may be wrong ) and the .class.new thing...
[16:18:21] guacamole: has joined #ruby
[16:18:22] ellisTAA: has joined #ruby
[16:18:29] x77686d: has joined #ruby
[16:18:33] IrishGringo: has joined #ruby
[16:19:10] whippythellama: has joined #ruby
[16:19:10] lxsameer: has joined #ruby
[16:19:17] ellisTAA: has left #ruby: ()
[16:19:17] sucks: has joined #ruby
[16:19:33] shevy: I sometimes saw it from former php users
[16:19:41] freerobby: has joined #ruby
[16:19:53] shevy: ARGF.class.new however had I have not seen before... I guess my brain just is really bad at parsing unknown things
[16:20:12] shevy: choke aren't you a PHPer!
[16:20:17] PedramT: has joined #ruby
[16:20:38] choke: was -- past tense...
[16:20:54] cschneid_: has joined #ruby
[16:22:08] newbie22: has joined #ruby
[16:22:31] choke: when i learn a new language, i learn the basic syntax and then delve right into best practices... though even with php I never named my classes
[16:22:38] choke: something.class.php
[16:22:44] kalopsian: has joined #ruby
[16:23:02] bronson: has joined #ruby
[16:23:18] choke: didn't need to, because everything had it's spot to be placed, and my folder hierarchy told me what is what and why its what
[16:24:29] sucks: has joined #ruby
[16:24:56] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[16:25:07] shevy: yeah I sorta do that with ruby
[16:25:16] shevy: either one file per class
[16:25:23] shevy: or a class get its own directory! :)
[16:25:26] howdoicomputer: has joined #ruby
[16:25:53] gizmore: i go with include and extend directories for decorators :)
[16:26:43] choke: i do that -- one file per class ( always have ) -- depending on the context of its use... it makes for easier maintainability i think, and i don't have to remember what file a specific class is in.
[16:27:28] newbie22: *: does anyone know a good website for learning idiomatic ruby
[16:29:20] shevy: newbie22 you probably have to get dirty and just write a lot of ruby code
[16:29:24] sigurding: has joined #ruby
[16:29:58] WebDawg: has joined #ruby
[16:30:05] like-all: has joined #ruby
[16:30:40] newbie22: shevy: that was you, yesterday, giving me advice on "*idiomatic ruby",,,, no good sources of starter info ??
[16:30:53] shevy: newbie22 there is none
[16:31:19] al2o3-cr: has joined #ruby
[16:31:28] aegis3121: It's really just writing code, seeing examples, and getting feedback. Being more comfortable with what it has to offer.
[16:31:51] choke: http://stackoverflow.com/questions/613985/common-ruby-idioms newbie22 some may be out of date, but they're common idioms.. but shevy is right - writing a lot of code.
[16:31:54] usershell: has joined #ruby
[16:32:07] shevy: stackoverflow is really great, most of the time
[16:32:23] shevy: we old people had to use IRC for help!
[16:32:27] shevy: or even worse, MAILING LISTS
[16:32:42] rikai: has joined #ruby
[16:33:01] choke: oh man -- i remember mailing lists lol
[16:33:07] treehug88: has joined #ruby
[16:33:28] mchu: has joined #ruby
[16:33:37] shevy: I never managed to get into them... but I remember that years ago chris2 commented on something related to the quality of the ruby mailing list no longer being as good as it used to be (something along those lines)
[16:34:36] newdan: newbie22: Not quite 'idiomatic' but still might be helpful: https://github.com/bbatsov/ruby-style-guide
[16:34:42] choke: I started in the development industry over 20 years ago, mailing lists were the best resource at the time..
[16:34:51] hxegon: >> def dig(arg); Array(arg).inject(self) {|store, key| store[key] } # lol
[16:34:52] ruby[bot]: hxegon: # => /tmp/execpad-d2116d9efae8/source-d2116d9efae8:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/505310)
[16:35:09] baweaver: has joined #ruby
[16:35:25] hxegon: >> def dig(arg); Array(arg).inject(self) {|store, key| store[key] }; end # will I ever get one without a syntax error first time?
[16:35:26] ruby[bot]: hxegon: # => :dig (https://eval.in/505311)
[16:36:58] newbie22: newdan: thank you
[16:37:02] sucks: has joined #ruby
[16:37:19] WebDawg: has joined #ruby
[16:38:06] roshanavand: has joined #ruby
[16:38:09] cicloid: has joined #ruby
[16:38:36] choke: that style guide bugs me for some reason... i think we talked about that before, didn't we shevy?
[16:39:06] shevy: the style guide is a bit weird yeah but the best feature is rubocop's autocorrect - that alone makes the weirdness of the style guide acceptable for me :)
[16:39:16] jamw: has joined #ruby
[16:39:22] shevy: I could in theory turn all your people ugly ruby code into pretty shevy-esqe ruby code!
[16:39:31] shevy: (if I would write such a style guide that is)
[16:39:53] choke: I still haven't played with robocop yet, but definitely seems like a cool tool
[16:40:48] kalopsian: has joined #ruby
[16:40:51] choke: I might be writing a gem soon, so maybe i'll use it on that if i decide to do it ( a mongo gem, 'cause i want to use Rails5 and mongoid isn't slated to support it until the end of this year... )
[16:41:19] roshanav_: has joined #ruby
[16:41:20] shevy: I tried to use rubocop on https://rubygems.org/gems/rubywebdialogs and it worked to some extent... like 50% cleaning or so, which is good... but I got tired of having to fix the manual rest, one day I shall try to have rubocop autofix all the problems on a 11 years old codebase
[16:41:46] choke: that'll be interesting lol
[16:42:24] brixen: has joined #ruby
[16:43:01] zast: has joined #ruby
[16:43:09] nertzy2: has joined #ruby
[16:44:01] durstburger: has joined #ruby
[16:44:14] zapata: has joined #ruby
[16:44:19] dcunit3d: has joined #ruby
[16:46:39] asccigcc: has joined #ruby
[16:46:40] startupality: has joined #ruby
[16:46:55] pyoor: has left #ruby: ()
[16:47:27] platzhirsch: has left #ruby: ()
[16:47:42] arup_r: has joined #ruby
[16:47:44] sgambino: has joined #ruby
[16:48:55] ramfjord: has joined #ruby
[16:49:02] ziyadb: has joined #ruby
[16:49:37] sgambino: has joined #ruby
[16:49:50] moeabdol: has joined #ruby
[16:53:41] rakm: has joined #ruby
[16:53:48] Macaveli: has joined #ruby
[16:54:26] sandstrom: has joined #ruby
[16:55:24] dfinninger: has joined #ruby
[16:55:47] dlitvak: has joined #ruby
[16:57:35] moeabdol: has joined #ruby
[16:57:45] gf3: has joined #ruby
[16:59:07] roshanavand: has joined #ruby
[17:00:01] lacuna: has joined #ruby
[17:02:11] rsc___: has joined #ruby
[17:02:17] casadei: has joined #ruby
[17:03:39] fedexo: has joined #ruby
[17:03:45] drptbl: has joined #ruby
[17:03:54] DLSteve: has joined #ruby
[17:04:11] preyalone: has joined #ruby
[17:04:33] guacamole: has joined #ruby
[17:04:58] tildes: has joined #ruby
[17:05:17] tulak: has joined #ruby
[17:06:20] pietr0: has joined #ruby
[17:06:56] Kryptonical: has joined #ruby
[17:07:16] atomical: Am I going to run into problems creating an array with a million threads? i have a mailchimp request and then i need to process one hundred records and then do another request. I'd like to process the records while some iowait is happening with the http call.
[17:07:33] dlitvak: has joined #ruby
[17:08:09] blackmes1: has joined #ruby
[17:10:32] zambini: has joined #ruby
[17:11:03] JohnT: has joined #ruby
[17:11:13] [Butch]: has joined #ruby
[17:12:16] amclain: has joined #ruby
[17:13:41] havenwood: atomical: Your system thread limit is probably less than a million. This dev machine gets to 2046 with: ruby -e "1.upto(Float::INFINITY) { |n| Thread.new { sleep }; puts n }"
[17:14:18] atomical: so i need to have some kind of worker queue for threads i guess
[17:14:28] atomical: i don't want to use threads.each { |thr| thr.join } because it blocks
[17:14:37] mary5030: has joined #ruby
[17:14:57] havenwood: atomical: consider a thread pool or use something like typhoeus' hydra which is made well and meant for such things: https://github.com/typhoeus/typhoeus
[17:16:09] havenwood: atomical: Or another example would be HTTP.rb with Celluloid::IO: https://github.com/httprb/http/wiki/Parallel-requests-with-Celluloid::IO
[17:16:29] havenwood: (for single threaded parallel requests)
[17:16:40] havenwood: atomical: There is more than one way to do it!
[17:16:47] atomical: I'll check those out. I'm using the gibbon gem so I might look into some kind of thread pool
[17:18:27] al2o3-cr: +1 typhoeus
[17:18:29] dext: has joined #ruby
[17:20:30] karapetyan: has joined #ruby
[17:21:43] varesa: has joined #ruby
[17:23:32] mary5030: has joined #ruby
[17:24:39] jottr: has joined #ruby
[17:25:28] freerobby: has joined #ruby
[17:26:54] finisherr: has joined #ruby
[17:27:00] dfinninger: has joined #ruby
[17:27:19] bluOxigen_: has joined #ruby
[17:27:34] imperator: one MEELION threads
[17:28:03] shevy: half of which will become zombies
[17:31:15] SCHAAP137: has joined #ruby
[17:31:39] lycaonian: has joined #ruby
[17:31:56] synthroid: has joined #ruby
[17:32:13] dfinninger: has joined #ruby
[17:34:26] synthroid: has joined #ruby
[17:34:47] speaking1ode: has joined #ruby
[17:36:10] benlieb: has joined #ruby
[17:36:19] lacuna: has joined #ruby
[17:36:25] dionysus69: has joined #ruby
[17:36:35] pilne: has joined #ruby
[17:39:57] ramfjord: has joined #ruby
[17:41:36] nizmow: has joined #ruby
[17:42:12] TomyLobo: has joined #ruby
[17:42:33] diegoviola: has joined #ruby
[17:47:07] dc1: has joined #ruby
[17:47:16] lacuna: has joined #ruby
[17:47:49] User458764: has joined #ruby
[17:48:53] TomPeed: has joined #ruby
[17:49:02] JohnT: has joined #ruby
[17:50:17] djbkd: has joined #ruby
[17:50:49] dc1: has joined #ruby
[17:50:50] dext: has joined #ruby
[17:51:05] shevy: who of you people have experience with transferring ruby maintainer/ownership of ruby projects AND for a project for which it has worked well?
[17:52:03] peret: has joined #ruby
[17:52:07] UtkarshRay: has joined #ruby
[17:52:17] peret: has left #ruby: ()
[17:52:24] baweaver: has joined #ruby
[17:52:48] akkad: has joined #ruby
[17:54:09] imperator: shevy, I've transferred a few
[17:54:18] imperator: seems to have gone over alright
[17:54:57] dc1: has joined #ruby
[17:55:13] choke: well, time for me to actually get up and go to the office... see you all in a bit
[17:57:16] sgambino: has joined #ruby
[17:57:54] skcin7: has joined #ruby
[17:59:47] jbrhbr: has joined #ruby
[18:01:29] howdoicomputer: has joined #ruby
[18:02:54] ramfjord_: has joined #ruby
[18:04:21] guacamole: has joined #ruby
[18:04:35] tubbo: shevy: i've had projects transferred *to* me
[18:08:16] benhuda: has joined #ruby
[18:10:28] rsc___: has joined #ruby
[18:12:32] iamvery_: has joined #ruby
[18:12:57] dfinninger: has joined #ruby
[18:13:01] frog0909_: has joined #ruby
[18:13:08] aryaching_: has joined #ruby
[18:13:11] workmad3_: has joined #ruby
[18:13:14] makenoise: has joined #ruby
[18:13:28] karapety_: has joined #ruby
[18:13:46] astrobun_: has joined #ruby
[18:14:15] arthurix: has joined #ruby
[18:14:26] zenspider_: has joined #ruby
[18:14:29] tjohnson_: has joined #ruby
[18:14:37] eboaz_: has joined #ruby
[18:14:38] ryotarai_: has joined #ruby
[18:14:40] hahuang61: has joined #ruby
[18:14:45] sneakerhax: has joined #ruby
[18:14:46] camillo: has joined #ruby
[18:15:41] abra0_: has joined #ruby
[18:16:06] benhuda_: has joined #ruby
[18:16:14] sucks_: has joined #ruby
[18:16:32] guacamole: has joined #ruby
[18:17:08] nej: has joined #ruby
[18:17:09] plsk_: has joined #ruby
[18:17:11] stuartb_: has joined #ruby
[18:17:20] dling: has joined #ruby
[18:17:23] skcin7_: has joined #ruby
[18:17:44] sgambino_: has joined #ruby
[18:17:51] shiver32: has joined #ruby
[18:17:51] shiver32: has joined #ruby
[18:17:58] wnd_: has joined #ruby
[18:17:59] crankhar1er: has joined #ruby
[18:18:00] janelleb: has joined #ruby
[18:18:20] neanderslob_: has joined #ruby
[18:18:34] El3ktra: has joined #ruby
[18:18:34] El3ktra: has joined #ruby
[18:18:46] TakumoKatekari: has joined #ruby
[18:18:47] TakumoKatekari: has joined #ruby
[18:18:48] dopie: has joined #ruby
[18:18:50] camilasann: has joined #ruby
[18:19:17] swgillespie_: has joined #ruby
[18:19:22] sindork_: has joined #ruby
[18:19:37] jottr: has joined #ruby
[18:20:00] frem_: has joined #ruby
[18:20:00] thomasss: has joined #ruby
[18:20:02] ElderFain-: has joined #ruby
[18:20:04] joonty: has joined #ruby
[18:20:14] gmci_: has joined #ruby
[18:20:17] SilentEc1: has joined #ruby
[18:20:21] fumduq: has joined #ruby
[18:20:32] skakri`: has joined #ruby
[18:20:38] elaptics`: has joined #ruby
[18:20:40] snockerton: has joined #ruby
[18:20:50] dext: has joined #ruby
[18:21:02] Spami: has joined #ruby
[18:21:10] Arcaire_: has joined #ruby
[18:21:11] Lildirt|SomeoneT: has joined #ruby
[18:21:26] Olipro_: has joined #ruby
[18:21:27] Karunamon|2: has joined #ruby
[18:21:28] thomasfedb_: has joined #ruby
[18:21:42] Ankhers_: has joined #ruby
[18:21:56] sonne_: has joined #ruby
[18:22:05] z3uS|: has joined #ruby
[18:22:05] ElderFain: has joined #ruby
[18:22:09] [adaedra]: has joined #ruby
[18:22:13] goezz: has joined #ruby
[18:22:14] yossarian: has joined #ruby
[18:22:19] sjohnsen: has joined #ruby
[18:22:26] Mr_Pancake: has joined #ruby
[18:22:27] quarcu: has joined #ruby
[18:22:38] griffindy: has joined #ruby
[18:22:39] SirFunk: has joined #ruby
[18:22:46] Nuck: has joined #ruby
[18:22:50] veloutin: has joined #ruby
[18:22:51] gsingh93: has joined #ruby
[18:22:51] slackR: has joined #ruby
[18:22:55] Elysia: has joined #ruby
[18:22:57] davidcelis: has joined #ruby
[18:22:59] davidcelis: has joined #ruby
[18:23:04] ferr: has joined #ruby
[18:23:15] FifthWall: has joined #ruby
[18:23:24] armyriad: has joined #ruby
[18:23:39] C0deMaver1ck: has joined #ruby
[18:23:48] abyss: has joined #ruby
[18:23:58] badeball: has joined #ruby
[18:24:59] kitallis: has joined #ruby
[18:24:59] shevy: has joined #ruby
[18:24:59] whippythellama: has joined #ruby
[18:24:59] trajing: has joined #ruby
[18:24:59] bodgix: has joined #ruby
[18:24:59] IrishGringo: has joined #ruby
[18:25:05] bronson: has joined #ruby
[18:25:19] mondok: has joined #ruby
[18:25:32] parus: has joined #ruby
[18:25:34] atom3: has joined #ruby
[18:25:49] dopie: has joined #ruby
[18:25:53] robbyoconnor: has joined #ruby
[18:26:43] segy: has joined #ruby
[18:27:16] JohnT: has joined #ruby
[18:27:37] tomchapin: has joined #ruby
[18:28:17] Couch: has joined #ruby
[18:28:51] infernix: has joined #ruby
[18:29:03] vondruch: has joined #ruby
[18:29:09] Jackneill: has joined #ruby
[18:29:34] shadoi: has joined #ruby
[18:29:51] roger_rabbit: has joined #ruby
[18:29:51] kies: has joined #ruby
[18:30:00] Guest58: has joined #ruby
[18:30:10] chris2: has joined #ruby
[18:30:11] NfNitLoop: has joined #ruby
[18:30:29] sepp2k: has joined #ruby
[18:31:13] groundnuty: has joined #ruby
[18:32:01] ht__: has joined #ruby
[18:32:18] zeknox: has joined #ruby
[18:32:31] skade: has joined #ruby
[18:33:44] troulouliou_dev: has joined #ruby
[18:34:13] duckpuppy: has joined #ruby
[18:35:03] krz: has joined #ruby
[18:36:00] Xeago: has joined #ruby
[18:37:48] sandstrom: has joined #ruby
[18:37:51] groundnuty: has joined #ruby
[18:37:51] Guest58: has joined #ruby
[18:37:51] atom3: has joined #ruby
[18:37:51] parus: has joined #ruby
[18:37:51] kitallis: has joined #ruby
[18:37:51] shevy: has joined #ruby
[18:37:51] whippythellama: has joined #ruby
[18:37:52] trajing: has joined #ruby
[18:37:52] bodgix: has joined #ruby
[18:38:14] aegis3121: has joined #ruby
[18:39:18] akkad: has joined #ruby
[18:39:49] jamw: has joined #ruby
[18:39:59] ht__: has joined #ruby
[18:40:18] usershell: has joined #ruby
[18:40:19] tomchapin: has joined #ruby
[18:40:36] dfockler: has joined #ruby
[18:41:22] moeabdol: has joined #ruby
[18:41:46] dfinninger: has joined #ruby
[18:42:15] zipkid: has joined #ruby
[18:42:17] oncall-pokemon: has joined #ruby
[18:42:25] lipoqil: has joined #ruby
[18:42:58] makenoise: has joined #ruby
[18:43:05] micah`: has joined #ruby
[18:43:23] dc1: has joined #ruby
[18:44:26] jgpawletko: has joined #ruby
[18:44:29] Xeago: has joined #ruby
[18:45:17] JohnT: has joined #ruby
[18:46:11] zambini: has joined #ruby
[18:46:18] krobzaur_: has joined #ruby
[18:48:41] lipoqil: has joined #ruby
[18:48:41] groundnuty: has joined #ruby
[18:48:41] atom3: has joined #ruby
[18:48:41] parus: has joined #ruby
[18:48:41] kitallis: has joined #ruby
[18:48:41] shevy: has joined #ruby
[18:48:41] whippythellama: has joined #ruby
[18:48:41] trajing: has joined #ruby
[18:48:41] bodgix: has joined #ruby
[18:50:05] spider-mario: has joined #ruby
[18:50:45] cpup: has joined #ruby
[18:51:10] ur5us: has joined #ruby
[18:51:19] TomPeed: has joined #ruby
[18:53:11] baweaver: has joined #ruby
[18:55:50] usershell: has joined #ruby
[18:56:38] duckpuppy: has joined #ruby
[18:57:19] prestorium: has joined #ruby
[18:57:22] dfinninger: has joined #ruby
[18:57:24] chrisseaton: has joined #ruby
[18:57:42] floatingpoint: has joined #ruby
[18:57:53] babblebre: has joined #ruby
[18:57:53] dc1: has joined #ruby
[18:57:59] hayden_: has joined #ruby
[18:58:15] ziyadb: has joined #ruby
[18:58:19] preyalone: has joined #ruby
[18:58:46] firstdayonthejob: has joined #ruby
[18:58:52] tjohnson: has joined #ruby
[18:59:15] swgillespie: has joined #ruby
[18:59:16] Frem: has joined #ruby
[18:59:17] gmci: has joined #ruby
[18:59:19] Arcaire: has joined #ruby
[18:59:28] vondruch: has joined #ruby
[18:59:29] Jackneill: has joined #ruby
[18:59:38] zipkid: has joined #ruby
[18:59:38] oncall-pokemon: has joined #ruby
[18:59:55] brixen: has joined #ruby
[19:00:57] momomomomo: has joined #ruby
[19:02:41] bb010g: has joined #ruby
[19:03:14] symm-: has joined #ruby
[19:03:19] groundnuty: has joined #ruby
[19:07:18] jacksonmills: has joined #ruby
[19:07:36] jottr: has joined #ruby
[19:08:01] ur5us: has joined #ruby
[19:08:22] jbrhbr: has joined #ruby
[19:08:31] gruz0: has joined #ruby
[19:10:40] howdoicomputer: has joined #ruby
[19:13:26] dlitvak: has joined #ruby
[19:13:54] makenoise: has joined #ruby
[19:14:00] chouhoulis: has joined #ruby
[19:15:43] juddey: has joined #ruby
[19:16:01] ht__: has joined #ruby
[19:16:58] hxegon: has joined #ruby
[19:17:16] makenoise: has joined #ruby
[19:17:26] zeroDivisible: has joined #ruby
[19:18:48] radgeRayden: has joined #ruby
[19:19:14] DoubleMalt: has joined #ruby
[19:19:48] akkad: has joined #ruby
[19:20:58] roger_rabbit: has joined #ruby
[19:21:23] baweaver: has joined #ruby
[19:23:27] Cohedrin: has joined #ruby
[19:24:11] choke: has joined #ruby
[19:24:17] moeabdol: has joined #ruby
[19:25:14] kalopsian: has joined #ruby
[19:27:39] InvGhost: has joined #ruby
[19:27:49] duckpuppy: has joined #ruby
[19:28:17] Puffball: has joined #ruby
[19:28:41] dlitvak_: has joined #ruby
[19:29:56] huluhuluhulu: has joined #ruby
[19:30:25] ta: has joined #ruby
[19:31:38] robh71: has joined #ruby
[19:33:44] replay: has joined #ruby
[19:34:05] ht__: has joined #ruby
[19:34:21] mfb2: has joined #ruby
[19:35:05] freerobby: has joined #ruby
[19:37:20] Mia: has joined #ruby
[19:38:33] SenpaiSilver: has joined #ruby
[19:39:36] dlitvak: has joined #ruby
[19:40:33] makenoise: has joined #ruby
[19:41:46] lacuna_: has joined #ruby
[19:42:00] hxegon: hmm... I need some guidance on something. I'm using Array#shift inside a method, but I don't want it to affect array out of the method. Should I just #dup the array?
[19:43:29] lucasb: has joined #ruby
[19:43:50] huluhuluhulu: has joined #ruby
[19:44:11] makenoise: That's the easy way
[19:44:37] makenoise: Either that or find a way to accomplish it without modifying the array.
[19:44:54] makenoise: What are you trying to do?
[19:44:57] hxegon: >> [1, 2].tail
[19:46:18] imperator: has left #ruby: ("Leaving")
[19:46:21] arup_r: has joined #ruby
[19:47:17] lucasb: did you want [].last ?
[19:47:36] makenoise: So you want to be able to grab everything after the first element by using .tail?
[19:47:55] skade: has joined #ruby
[19:48:21] lucasb: ah, [].drop(1)
[19:48:24] hxegon: lucasb no, #tail would return all elements except [0]
[19:48:38] djellemah: hxegon: ary[1..-1]
[19:49:11] hxegon: djellemah thanks. makenoise give me a sec to describe my problem
[19:50:03] skade: has joined #ruby
[19:51:32] Eiam_: has joined #ruby
[19:52:35] hxegon: Define 2 classes, Trees, and TreeNode. Trees#add_path should be able to take a path and add every TreeNode that doesn't exist and return the final node in the path. Trees#add_path passes the call to TreeNode#add_path, which can handle it using basic recursion, but it has to select the right root node first.
[19:52:54] hxegon: I'm learning about many different and interesting ways you can accidentally an infinite loop today :P
[19:54:33] hxegon: djellemah that worked well, thanks.
[19:56:13] djellemah: hxegon: ;-) head, *tail = ary might also help in your case.
[19:56:44] st0opkid: has left #ruby: ("Leaving")
[19:56:46] hxegon: djellemah there we go :)
[19:59:04] centrx: has joined #ruby
[20:00:00] ht__: has joined #ruby
[20:00:31] mchu: has joined #ruby
[20:01:27] shadowfirebird: has joined #ruby
[20:02:41] lacuna: has joined #ruby
[20:02:57] mfb2: has joined #ruby
[20:03:10] IrishGringo: has joined #ruby
[20:04:23] duckpuppy: has joined #ruby
[20:06:03] ht__: has joined #ruby
[20:07:09] hxegon: side note, trees = recursion/HOF everywhere
[20:07:26] hxegon: and enumerators
[20:07:57] firstdayonthejob: has joined #ruby
[20:08:00] ht__: has joined #ruby
[20:08:46] baweaver: has joined #ruby
[20:09:17] mfb2: has joined #ruby
[20:09:50] doublemalt_: has joined #ruby
[20:10:28] skade: has joined #ruby
[20:11:01] preyalone: has joined #ruby
[20:12:18] radgeRayden_: has joined #ruby
[20:13:46] platzhirsch: has joined #ruby
[20:14:49] dlitvak: has joined #ruby
[20:18:05] dext: has joined #ruby
[20:18:05] ur5us: has joined #ruby
[20:18:05] tvw: has joined #ruby
[20:18:05] Spami: has joined #ruby
[20:18:05] whippythellama: has joined #ruby
[20:18:05] kitallis: has joined #ruby
[20:18:05] lipoqil: has joined #ruby
[20:18:05] atom3: has joined #ruby
[20:18:05] parus: has joined #ruby
[20:18:05] shevy: has joined #ruby
[20:18:05] trajing: has joined #ruby
[20:18:05] bodgix: has joined #ruby
[20:18:05] lipoqil: has joined #ruby
[20:18:13] mfb2: has joined #ruby
[20:20:06] dopie: has joined #ruby
[20:20:51] whippythellama: has joined #ruby
[20:21:42] Gadgetoid: has joined #ruby
[20:22:01] ht__: has joined #ruby
[20:23:01] fmcgeough: has joined #ruby
[20:25:13] last_staff: has joined #ruby
[20:25:24] User458764: has joined #ruby
[20:25:28] norc: ast>> [1].find(Numeric).each { |a| puts a }
[20:25:54] norc: >> [1].find(Numeric).each { |a| puts a }
[20:26:05] norc: Oh poor ruby bot is down. :(
[20:28:08] rtail: has joined #ruby
[20:29:39] baweaver: has joined #ruby
[20:29:43] zacts: has joined #ruby
[20:32:04] dext: has joined #ruby
[20:32:20] gregf: has joined #ruby
[20:32:58] platzhirsch: has left #ruby: ()
[20:33:50] mephistophocles: has joined #ruby
[20:34:03] pawnbox: has joined #ruby
[20:36:53] skade: has joined #ruby
[20:37:40] djbkd: has joined #ruby
[20:38:28] Asher: has joined #ruby
[20:39:23] mondok: how can i remove messy chars from string \u000318\b<\b\u000329NEEDEDTEXT\u000318\b>\b\u000F
[20:39:24] sunya7a: are there any drawback to dropping the @ from an instance variable when calling it?
[20:39:32] aegis3121: has joined #ruby
[20:40:08] mondok: i need remove \u000318\b<\b\u000329
[20:40:14] eam: mondok: define a character set that contains all characters you consider non-messy, then strip everything else
[20:40:35] norc: sunya7a, one is calling a method or referencing a local variable, the other one access an instance variable.
[20:40:36] jamw: has joined #ruby
[20:40:40] treehug88: has joined #ruby
[20:41:01] mondok: what does '\u000318' mean
[20:41:05] eam: mondok: for example, this removes everything but alphanumeric
[20:41:07] eam: >> "\u000318\b<\b\u000329NEEDEDTEXT\u000318\b>\b\u000F".gsub(/[^a-zA-Z0-9]/, "")
[20:41:17] yfeldblum: has joined #ruby
[20:41:28] norc: sunya7a, when inside the same class/module try to use @, when outside use accessor methods or more abstract interface methods.
[20:41:28] Radar: mondok: https://duckduckgo.com/?q=%5Cu000318&ia=answer
[20:41:36] Radar: "?? U+0318 COMBINING LEFT TACK BELOW,"
[20:42:01] eam: mondok: oh, ruby bot is broken :(
[20:42:03] norc: mondok, the cleanest way is to use String#encode
[20:42:32] Radar: mondok: where are you sourcing this text from in the first placE?
[20:42:54] ur5us: has joined #ruby
[20:42:54] tvw: has joined #ruby
[20:42:54] Spami: has joined #ruby
[20:42:54] kitallis: has joined #ruby
[20:42:54] lipoqil: has joined #ruby
[20:42:54] atom3: has joined #ruby
[20:42:54] parus: has joined #ruby
[20:42:54] shevy: has joined #ruby
[20:42:54] trajing: has joined #ruby
[20:42:54] bodgix: has joined #ruby
[20:42:55] lipoqil: has joined #ruby
[20:42:55] graffix222: has joined #ruby
[20:43:00] norc: mondok, I think str.encode('ascii', {invalid: replace, undef: replace, replace: ''}) should do the job
[20:43:03] mondok: i parse logs
[20:43:05] eam: norc: that's not gonna remove the characters they don't like, will it?
[20:43:17] norc: eam, sure it is if you tell it to like I have just shown.
[20:43:20] eam: oh- re: invalid:replace
[20:43:24] eam: i see :)
[20:43:46] bmalum: has joined #ruby
[20:43:55] norc: mondok, and that is more elegant than any other solution.
[20:44:18] norc: (Since this is exactly what you want to do, transcode from UTF8 to ASCII dropping all non-ascii codepoints)
[20:44:35] mondok: gsub(/[^a-zA-Z0-9]/, "") works not good
[20:44:43] mondok: skips numbers
[20:44:47] sunya7a: norc: so if i define a class and use attr_reader :one, :two and in the initialize method I do @one = one....when i later down the line in an instance method use one...i'm actually calling the method defined by def one
[20:44:48] norc: Indeed, since it still leaves ~200 characters that get removed.
[20:45:18] norc: sunya7a, attr_reader :foo is just short for: def foo; @foo; end
[20:45:21] eam: mondok: you would need to define the set of characters you want to keep
[20:45:26] eam: it's just an example
[20:45:38] norc: sunya7a, so yes.
[20:45:48] dlitvak_: has joined #ruby
[20:45:55] sunya7a: norc: i think i understand...do you know if that is less efficient than calling the instance variable directly?
[20:46:01] eam: norc: "\u000318\b<\b\u000329NEEDEDTEXT\u000318\b>\b\u000F".encode("ascii", {invalid: :replace, undef: :replace, replace: ''}) does not remove nonprintable characters AFAICT
[20:46:02] ht__: has joined #ruby
[20:46:09] eam: it results in "\x0318\b<\b\x0329NEEDEDTEXT\x0318\b>\b\x0F"
[20:46:15] pysec: has joined #ruby
[20:46:16] norc: sunya7a, honestly: do not worry about efficiency.
[20:46:29] sunya7a: norc: thank you...that was very clear =)
[20:46:36] norc: sunya7a, worry about what makes more sense. Inside your class, use the instance method. Outside use predefined interface methods
[20:46:51] sunya7a: norc: got it...much appreciated
[20:46:59] norc: errr *instance variable!
[20:47:16] sunya7a: norc: yup!
[20:47:25] cardoni: has joined #ruby
[20:48:24] norc: eam, indeed. But considering it is a log file...
[20:48:48] weaksauce: has joined #ruby
[20:48:51] davedev: has joined #ruby
[20:48:55] norc: eam, otherwise you can then use [:print:]
[20:50:26] norc: Or just directly filter based on codepoints, allowing only [Ox0A, Ox0D, 0x20-Ox127]
[20:51:05] lacuna: has joined #ruby
[20:51:37] GammaZeSioux: has joined #ruby
[20:51:56] FernandoBasso: has joined #ruby
[20:52:23] Darmani: has joined #ruby
[20:53:06] ruby[bot]: has joined #ruby
[20:53:06] ChanServ: +o ruby[bot]
[20:53:39] norc: ast>> class Foo; attr_reader :foo; end; Foo.new.foo
[20:53:41] ruby[bot]: norc: I have parsed your code, the result is at https://eval.in/505442
[20:53:44] ur5us: has joined #ruby
[20:53:50] norc: asm>> class Foo; attr_reader :foo; end; Foo.new.foo
[20:53:51] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/505443
[20:53:51] lemur: has joined #ruby
[20:55:32] Scripore: has joined #ruby
[20:55:34] norc: sunya7a, looks like the compiler is not able to optimize this away, so yeah - purely educationally: using an accessor method adds a few instructions
[20:55:41] mrsolow: has joined #ruby
[20:58:49] Azulinho: has joined #ruby
[20:59:21] Darmani: Hey kids<3
[21:01:17] dfinninger: has joined #ruby
[21:02:33] hahuang65: has joined #ruby
[21:04:05] arthropododo: has joined #ruby
[21:04:25] SenpaiSilver: has joined #ruby
[21:04:58] arthropododo: what was the off-topic ruby channel again?
[21:05:12] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[21:05:37] norc: Notice the irony in this.. ?
[21:06:03] ht__: has joined #ruby
[21:06:05] hxegon: has joined #ruby
[21:06:37] sandstrom: has joined #ruby
[21:07:49] bmalum: has joined #ruby
[21:07:56] tomchapin: has joined #ruby
[21:08:40] adaedra: ACTION waves
[21:08:45] scottschecter: has joined #ruby
[21:11:08] dfinninger: has joined #ruby
[21:11:10] kfpratt: has joined #ruby
[21:11:22] davedev: has joined #ruby
[21:11:24] pdoherty: has joined #ruby
[21:13:39] cdg: has joined #ruby
[21:13:59] ht__: has joined #ruby
[21:14:02] lucasb: the ruby core developers don't hang out on irc? I rarely see anybody saying anything in #ruby-core.
[21:14:31] norc: lucasb, the bulk of them are Japanese, many of which do not even speak English.
[21:14:37] norc: lucasb, you can find them on the mailing list.
[21:14:56] Graphettion: has joined #ruby
[21:15:51] fclausen: has joined #ruby
[21:16:11] dwfait: has joined #ruby
[21:16:18] baweaver: or ask Ox0dea, he's fairly close.
[21:16:29] lucasb: yeah, I'm already subscribed to the list. I just wondered if they don't like irc or something :)
[21:17:31] ohtheirony: has joined #ruby
[21:18:01] ht__: has joined #ruby
[21:19:11] ohtheirony: i am not a ruby developer but i want to know why it is so popular. if you look at it from a hosting point of view it easier to go for php because all hosts have it. but what is so good about ruby? tell me please
[21:19:28] ccowart: has joined #ruby
[21:19:34] adaedra: 1) it's not php.
[21:19:42] apeiros: 2) it's not php
[21:20:32] norc: ohtheirony, why are cats better than dogs? There is tons of reasons that I can tell you, but really - the discussion is not very fruitful.
[21:21:19] apeiros: norc: you just killed the reason-train ;-)
[21:21:22] mondok: i want to find index of char '\u0003' in string?
[21:21:45] mondok: how can i do that?
[21:21:49] Ox0dea: ohtheirony: It's true that PHP is easier to hit the ground running with, but that's pretty much the *only* point in its favor, and it hardly papers over all the bad: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
[21:22:02] adaedra: &ri String#index mondok
[21:22:02] `derpy: mondok: http://ruby-doc.org/core-2.3.0/String.html#method-i-index
[21:22:08] Linell_: has joined #ruby
[21:22:41] ohtheirony: alright fair enough. what about this. i was told that ruby is closer to the hardware than php so it's faster. it this correct?
[21:22:50] apeiros: mondok: you'll have to write it as "\u0003", not as '\u0003', though
[21:23:03] apeiros: since '\u0003' == "\\u0003"
[21:23:20] Ox0dea: >> ''<<3 # I like this way.
[21:23:21] ruby[bot]: Ox0dea: # => "\u0003" (https://eval.in/505447)
[21:23:32] norc: ohtheirony, distance to the hardware has no real relevance in todays world for performance. It usually is quite the opposite - more abstract languages have tools to make optimizations that low level languages do not have.
[21:23:33] ss_much: has joined #ruby
[21:23:48] norc: ohtheirony, JRuby for example makes great use of such tools.
[21:24:18] ohtheirony: ok.... then why do you use it? i know a lot of people hate php but apart from that
[21:24:30] adaedra: Because we like it?
[21:24:38] adaedra: That's usually #1 reason people do a language.
[21:24:39] apeiros: I do not hate ruby
[21:24:52] howdoicomputer: has joined #ruby
[21:24:56] ohtheirony: ok follow up question: why do you like it?
[21:24:56] jhass: why are we feeding the troll?
[21:25:03] norc: apeiros, by the way, how did you learn about the DYLD changes in El Capitan?
[21:25:09] Darmani: jhass - Honestly that's what I want to know lmao
[21:25:11] dfinninger: has joined #ruby
[21:25:21] weaksauce: has joined #ruby
[21:25:26] apeiros: norc: heard/read about it somewhere iirc. not sure, been a while.
[21:25:39] norc: apeiros, I got hit by a massive wtf train when trying to build ruby-oci, trying to figure out why the export was not working.
[21:25:55] norc: Oh lucky you.
[21:25:59] Ox0dea: And it was because of the DYLD.o?
[21:26:02] apeiros: it might have been people on my team even
[21:26:30] davedev: has joined #ruby
[21:26:32] dlitvak: has joined #ruby
[21:26:47] davedev24: has joined #ruby
[21:26:48] norc: Ox0dea, Apple decided to put a new security feature into OSX, disabling DYLD related environment variables to prevent some naughty things.
[21:26:58] atomical_: has joined #ruby
[21:27:11] momomomomo: has joined #ruby
[21:27:19] Ox0dea: So libfaketime doesn't work on oS X?
[21:27:34] bronson: has joined #ruby
[21:28:02] stephenh: has joined #ruby
[21:28:25] norc: Ox0dea, if relies on things like DYLD_LIBRARY_PATH it will no longer work on El Capitan unless you explicitely turn off SIP.
[21:28:32] robbyoconnor: has joined #ruby
[21:28:56] duckpuppy: has joined #ruby
[21:29:00] norc: Ox0dea, so yes.
[21:29:12] Ox0dea: Well, enjoy your safety. :P
[21:29:27] adaedra: very relative.
[21:29:34] norc: Honestly I consider these mechanisms to be flawed.
[21:29:44] Ox0dea: I hear big-boy operating systems are relatively cheap these days.
[21:29:52] Ox0dea: (I'll stop.)
[21:29:56] norc: SetWindowsHookEx solves the LD_PRELOAD problem much more elegantly...
[21:30:00] ohtheirony: ok so you don't like to discuss the reasons why you like ruby. i can understand that. it's natural. one last question then. does ruby have mvc scaffolding? or some module that gives this functionality?
[21:30:01] skyjumper: has joined #ruby
[21:30:11] norc: Not that I want to start a POSIX vs Win32 API war, but there you have it.
[21:30:46] Ox0dea: >> @Ruby.is_a? Object { |oriented| language } # ohtheirony
[21:30:47] ruby[bot]: Ox0dea: # => undefined method `Object' for main:Object ...check link for more (https://eval.in/505460)
[21:30:58] Ox0dea: That went well. :/
[21:31:01] OS-18137: has joined #ruby
[21:31:06] Ox0dea: >> @Ruby.is_a?(Object) { |oriented| language }
[21:31:07] ruby[bot]: Ox0dea: # => true (https://eval.in/505461)
[21:31:07] OS-18137: good day rubyists
[21:31:14] adaedra: beautiful, Ox0dea.
[21:31:26] Guest51294: has joined #ruby
[21:31:33] Ox0dea: It's from TRIC 2013, I think.
[21:31:40] dopie: has joined #ruby
[21:31:49] norc: Ox0dea, so today I accidentally used find instead of grep, and was struck by an absolutely confusing error message...
[21:32:36] norc: >> [1].find(Numeric) {}
[21:32:37] ruby[bot]: norc: # => undefined method `call' for Numeric:Class (NoMethodError) ...check link for more (https://eval.in/505463)
[21:32:41] norc: I was seriously confused.
[21:32:56] slawrence00: has joined #ruby
[21:32:58] newdan: Ox0dea: How does that work? That block never gets run?
[21:33:13] norc: Even more so when I tried to figure out what kind of use this has.
[21:33:23] OS-18137: im iterating over a lines in a file, and im having problems because when File.readlines(file).each reads in a line, it's including the newline character an the end of the line it read, which i need to strip somehow. http://pastie.org/private/xvsb1mo04ofvqps5lhossa
[21:33:23] pawnbox: has joined #ruby
[21:33:26] Ox0dea: newdan: Yeah. Every method receives an implicit block, but #is_a? doesn't use it if you give it one.
[21:33:34] aegis3121: ohtheirony: Ruby on Rails
[21:33:37] norc: Other than a fancy [1].find(-> { puts "found" }) { |a| a == 1 }
[21:33:51] Ox0dea: aegis3121: Stahp.
[21:34:25] apeiros: &String#chomp @OS-18137
[21:34:42] apeiros: adaedra: wasn't it &?
[21:34:44] Ox0dea: norc: Surely you're not suggesting #find behave like #grep?
[21:34:48] adaedra: You chomped some chars here, apeiros.
[21:34:58] adaedra: &ri String#chomp OS-18137
[21:34:58] `derpy: OS-18137: http://ruby-doc.org/core-2.3.0/String.html#method-i-chomp
[21:35:04] sunya7a: norc: hi again...thank you for the follow up...how were you able to determine this?
[21:35:04] OS-18137: apeiros: helpful as always :)
[21:35:15] norc: sunya7a, are you really curious?
[21:35:18] apeiros: yeah, I definitively should hit the pillow
[21:35:21] ohtheirony: aegis3121: Ox0dea norc thank you
[21:35:22] sunya7a: norc: i am =(
[21:35:27] apeiros: already fell almost asleep during rails meetup
[21:35:32] norc: asm>> class Foo; attr_reader :quux; end; Foo.new.quux
[21:35:34] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/505467
[21:35:36] sunya7a: norc: i'd really like to understand this more deeply
[21:35:36] adaedra: you derailed?
[21:35:41] norc: sunya7a, this shows you the bytecode this snippet compiles to.
[21:35:48] adaedra: why do people use common names as nicks.
[21:35:48] makenoise: has joined #ruby
[21:35:51] OS-18137: thanks adaedra, derpy, thanks also
[21:35:59] norc: sunya7a, 0020 opt_send_without_block <callinfo!mid:quux, argc:0, ARGS_SIMPLE>, <callcache>
[21:36:11] norc: sunya7a, that is the instruction that executes a method dispatch
[21:36:42] norc: sunya7a, and I just know from the implementation that there is not much runtime optimization going on
[21:36:58] guacamole: has joined #ruby
[21:37:07] Cohedrin: many is the best
[21:37:16] Cohedrin: hangs out in rails a lot
[21:37:22] Cohedrin: anytime anyone says has_many
[21:37:26] Cohedrin: he gets highlightedlol
[21:37:38] sunya7a: norc: thank you...this is really cool
[21:37:52] norc: asm>> class Foo; def quux; puts @quux; end; Foo.new.quux
[21:37:54] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/505470
[21:38:22] niotoan: has joined #ruby
[21:38:26] norc: asm>> class Foo; def quux; puts @quux; end; end; Foo.new.quux
[21:38:28] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/505472
[21:38:43] norc: sunya7a, if you look at that at the bottom you see a getinstancevariable
[21:38:50] norc: That is how instancevariables are obtained.
[21:39:01] norc: asm>> class Foo; def quux; @quux; end; end; Foo.new.quux
[21:39:03] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/505474
[21:39:20] Ox0dea: adaedra: It should suffice to say that cats have at least one unreal claw with which to choke or freeze an unsuspecting wanderer.
[21:40:28] adaedra: Ox0dea: https://media.giphy.com/media/13PTfoVee6WVhK/giphy.gif
[21:40:40] n_blownapart: has joined #ruby
[21:41:12] adaedra: (But that was brilliantly realized, I must recognize that.)
[21:41:43] davedev: has joined #ruby
[21:41:59] sunya7a: norc: great...i see that...tyvm
[21:42:27] blackmes1: has joined #ruby
[21:42:51] norc: Ox0dea, I have to tell you something
[21:42:51] kappy: has joined #ruby
[21:42:54] norc: Promise you won't be mad.
[21:43:41] atomical: has joined #ruby
[21:44:12] hannelita: has joined #ruby
[21:44:38] Darmani: norc - You've been having weird dreams about him haven't you?
[21:45:52] romero: has joined #ruby
[21:46:42] skade: has joined #ruby
[21:46:43] BTRE: has joined #ruby
[21:47:15] fclausen: has joined #ruby
[21:47:19] momomomomo: has joined #ruby
[21:47:25] parus: has joined #ruby
[21:47:34] sucks: has joined #ruby
[21:47:42] lipoqil: has joined #ruby
[21:47:42] ht__: has joined #ruby
[21:47:49] kitallis: has joined #ruby
[21:47:53] djbkd: has joined #ruby
[21:48:06] tvw: has joined #ruby
[21:48:24] cardoni: has joined #ruby
[21:48:30] Spami: has joined #ruby
[21:48:41] shevy: has joined #ruby
[21:49:01] dlitvak: has joined #ruby
[21:51:29] dopie: has joined #ruby
[21:52:47] blackgoat: has joined #ruby
[21:54:01] fsapo: has joined #ruby
[21:54:41] s00pcan: has joined #ruby
[21:55:26] Ox0dea: norc: Tell me your sins. I shall abide them in as priestly a fashion as I am able.
[21:56:01] norc: There is something inside me that questions your priesthood, but I will just accept it.
[21:56:15] norc: I started poking JRuby...
[21:56:46] ferr: has joined #ruby
[21:56:58] adaedra: Don't try to create an empty method with define_method.
[21:57:47] norc: >> define_method(:foo) {}
[21:57:49] ruby[bot]: norc: # => :foo (https://eval.in/505481)
[21:57:50] norc: That you mean?
[21:58:04] Ox0dea: >> define_method('') { 42 }; send ''
[21:58:05] ruby[bot]: Ox0dea: # => 42 (https://eval.in/505482)
[21:58:08] adaedra: yeah, recent jruby will crash if you call it
[21:58:34] Ox0dea: norc: Have you found lots of goodness therein?
[21:58:36] norc: Im used to seg faulting Ruby.
[21:58:38] adaedra: (I say that because I got bitten by the bug.)
[21:58:41] norc: I surely won't mind.
[21:58:55] norc: It will just feel like any other day with Ruby.
[21:59:11] sgambino: has joined #ruby
[21:59:14] norc: Thanks for the hint though. :)
[21:59:30] Ox0dea: norc: Have you gotten familiar any with the st_table API yet?
[21:59:30] norc: Ox0dea, Absolutely. It is very well written from my first looks and decently documented.
[21:59:38] stevemackinnon: has joined #ruby
[22:00:31] norc: Ox0dea, why do you ask?
[22:00:32] platzhirsch: has joined #ruby
[22:00:47] newbie22: has joined #ruby
[22:01:23] atom3: has joined #ruby
[22:01:23] trajing: has joined #ruby
[22:01:23] bodgix: has joined #ruby
[22:01:29] Ox0dea: norc: I'm trying to add Hash#merge's conflict resolution to #invert without copy-pasting.
[22:01:56] Ox0dea: The code for #update is written to expect an argument, but there won't be one for #invert. :<
[22:02:06] norc: ri Hash#merge
[22:02:09] norc: &ri Hash#invert
[22:02:10] `derpy: http://ruby-doc.org/core-2.3.0/Hash.html#method-i-invert
[22:02:12] norc: &ri Hash#merge
[22:02:12] `derpy: http://ruby-doc.org/core-2.3.0/Hash.html#method-i-merge
[22:02:48] Ox0dea: >> {a:1}.merge({a:2}) { |_, old, new| old + new }
[22:02:50] ruby[bot]: Ox0dea: # => {:a=>3} (https://eval.in/505483)
[22:02:50] adaedra: protip: `derpy can do multiple searches with one command
[22:03:05] norc: &ri Hash#invert Hash#merge
[22:03:06] `derpy: http://ruby-doc.org/core-2.3.0/Hash.html#method-i-invert, http://ruby-doc.org/core-2.3.0/Hash.html#method-i-merge
[22:03:09] norc: Neat. Thanks
[22:03:42] hannelita: has joined #ruby
[22:03:47] adaedra: There should be a limit, but I don't remember it :p
[22:03:48] podman: has joined #ruby
[22:04:03] norc: Ox0dea, I think the major reason was when I tried looking to the parser 2 days ago.
[22:04:07] norc: Ox0dea, *lexer
[22:04:24] norc: I was overwhelmed by really bizarre code then I just had enough of it.
[22:04:44] Ox0dea: I see. :<
[22:05:49] kappy: has joined #ruby
[22:06:06] jbrhbr: has joined #ruby
[22:06:11] guacamole: has joined #ruby
[22:07:06] zambini: has joined #ruby
[22:07:14] skade: has joined #ruby
[22:07:24] dlitvak_: has joined #ruby
[22:08:27] sucks: has joined #ruby
[22:10:41] DEac-: has joined #ruby
[22:11:14] BSaboia: has joined #ruby
[22:11:43] loren: has joined #ruby
[22:11:56] atom3: has joined #ruby
[22:11:56] trajing: has joined #ruby
[22:11:56] bodgix: has joined #ruby
[22:12:59] dreamlight: has joined #ruby
[22:13:23] pawnbox: has joined #ruby
[22:15:02] wildwild_west201: has joined #ruby
[22:15:35] sgambino: has joined #ruby
[22:18:18] zambini: has joined #ruby
[22:18:23] thejamespinto: has joined #ruby
[22:19:44] skade: has joined #ruby
[22:21:33] ajf-: has joined #ruby
[22:24:04] benzrf: has joined #ruby
[22:24:22] benzrf: why on EARTH would two strings have identical inspects but not be ==
[22:25:26] bnagy: try checking .bytes
[22:25:45] adaedra: >> "a??" == "??"
[22:25:47] ruby[bot]: adaedra: # => false (https://eval.in/505499)
[22:25:51] ljarvis: is it safe here?
[22:25:54] lucasb: s1.inspect == s2.inspect is true? or just apparentely/visualy similar?
[22:26:04] ljarvis: ACTION peers at #ruby-offtopic
[22:26:13] workmad3: benzrf: could have non-printable chars
[22:26:13] adaedra: ah, I leave'd there
[22:27:16] wilbert_: has joined #ruby
[22:29:55] benzrf: lucasb: i'll double check
[22:30:51] benzrf: lucasb: inspect is the same
[22:31:02] adaedra: benzrf: and bytes?
[22:31:06] benzrf: ACTION checks
[22:31:29] benzrf: adaedra: ==
[22:31:34] replay: has joined #ruby
[22:31:38] mondok: how to find intersection two arrays of obects
[22:31:49] adaedra: &ri Array#& mondok
[22:31:49] `derpy: mondok: http://ruby-doc.org/core-2.3.0/Array.html#method-i-26
[22:31:59] benzrf: &ri Foo#sfd
[22:32:00] `derpy: No results
[22:32:14] mondok: i know about &
[22:32:51] adaedra: so what's your problem?
[22:33:02] adaedra: expected/actual?
[22:33:12] Ox0dea: mondok: Do you want the union?
[22:33:23] skcin7: has joined #ruby
[22:33:29] bnagy: benzrf: eh? s1.bytes == s2.bytes but they're not == ?
[22:33:34] Radar: +1 adaedra. An expected output vs actual output comparison would be nice.
[22:33:43] bnagy: benzrf: check encoding then
[22:34:06] hayden_: has joined #ruby
[22:34:16] mondok: http://pasted.co/c8980e92
[22:34:16] shadowfirebird: has joined #ruby
[22:34:29] benzrf: bnagy: wrong encodings :)
[22:34:29] Darmani: has joined #ruby
[22:34:32] blandflakes: has joined #ruby
[22:34:33] benzrf: that explains it!
[22:34:51] skade: has joined #ruby
[22:34:54] benzrf: is there a way to do ascii in literals?
[22:35:12] Ox0dea: >> 'foo'.b.encoding # benzrf
[22:35:14] ruby[bot]: Ox0dea: # => #<Encoding:ASCII-8BIT> (https://eval.in/505504)
[22:35:19] benzrf: cool, thanks
[22:35:23] Ox0dea: Sure thing.
[22:35:27] adaedra: mondok: you can .map(&:first) before using & to just get the first element of each sub-array.
[22:35:49] nertzy2: has joined #ruby
[22:35:58] benzrf: (i know that's terrible; this is for an entirely useless program that i'm only writing to get ideas through my head)
[22:36:13] Ox0dea: benzrf: Did you leave Ruby for a while?
[22:36:23] benzrf: why do you ask?
[22:36:32] benzrf: ah, not ruby ideas
[22:36:50] adaedra: Still no Hash#slice in core :<
[22:36:57] benzrf: i learned some new stuff about how networking works & i'm writing a mock network thingy to force myself to implement the concepts so that i can be sure i understand them
[22:37:32] momomomomo: has joined #ruby
[22:37:42] Ox0dea: benzrf: http://jvns.ca/blog/2014/08/12/what-happens-if-you-write-a-tcp-stack-in-python/
[22:37:53] benzrf: i'm not writing an actual tcp stack
[22:38:09] benzrf: i'm modelling network devices with threads that, and layer 0 with socket pairs
[22:38:45] benzrf: then i'm implementing something ethernet-ish and something IP-ish on top of that, to understand the mechanics rather than the implementation details
[22:39:15] Phanes: has joined #ruby
[22:41:30] Musashi007: has joined #ruby
[22:42:44] rvchangue: has joined #ruby
[22:43:26] zenlot1: has joined #ruby
[22:43:27] pawnbox: has joined #ruby
[22:44:21] jud: has joined #ruby
[22:47:56] quazimodo: has joined #ruby
[22:49:23] navs_: has joined #ruby
[22:49:26] atomical_: has joined #ruby
[22:49:38] Spami: has joined #ruby
[22:50:08] CihanKaygusuz: has joined #ruby
[22:50:09] Cihan: has joined #ruby
[22:51:36] Dimik: has joined #ruby
[22:52:13] sgambino: has joined #ruby
[22:52:39] sakix: has joined #ruby
[22:54:00] lacuna: has joined #ruby
[22:54:10] rubynewb: has joined #ruby
[22:54:24] rubynewb: I need some help
[22:54:37] baweaver: has joined #ruby
[22:54:40] rubynewb: I am iterating through an array of strings
[22:55:02] rubynewb: and I need to know the best way to check the last character of each string.
[22:55:14] Ox0dea: >> 'rubynewb'[-1]
[22:55:15] ruby[bot]: Ox0dea: # => "b" (https://eval.in/505505)
[22:55:30] rubynewb: The .last method does not seem to work on strings and [-1] is not working either
[22:55:40] Ox0dea: See above.
[22:55:45] rickmasta: has joined #ruby
[22:56:05] rubynewb: vowel_end_count = 0 array.each do |name| if name. == "a" || "e" || "i" || "o" || "u" vowel_end_count += 1 end end puts "There are #{vowel_end_count} names that end with a vowel"
[22:56:20] rubynewb: vowel_end_count = 0 array.each do |name| if name. == "a" || "e" || "i" || "o" || "u" vowel_end_count += 1 end end puts "There are #{vowel_end_count} names that end with a vowel"
[22:56:41] rubynewb: let me post the code line by line
[22:56:44] ferr: has joined #ruby
[22:56:46] aegis3121: please use a gist
[22:56:47] Ox0dea: ?gist rubynewb
[22:56:48] ruby[bot]: rubynewb: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[22:57:02] mfb2: has joined #ruby
[22:57:24] lucasb: I don't think things like these 'if var == 1 | 2 | 3' work :)
[22:57:31] Ox0dea: This isn't Perl 6.
[22:57:46] lucasb: They call it "junctions" :)
[22:57:55] Ox0dea: It's a type!
[22:58:47] lucasb: %w(a e i o u).any? { ... }
[22:59:11] rubynewb: https://gist.github.com/anonymous/4294bc9164446f9a5f7b
[22:59:18] djellemah: has joined #ruby
[22:59:27] sdothum: has joined #ruby
[22:59:34] Ox0dea: rubynewb: I don't see you using [-1].
[22:59:45] lucasb: {|l| name[-1] == l }
[23:00:25] lucasb: ^^ now, just join the two lines above together
[23:00:26] rubynewb: name[-1] catches the whole array
[23:01:00] Ox0dea: Are you trolling...?
[23:01:10] benzrf: has left #ruby: ("WeeChat 1.3")
[23:01:10] Xiti`: has joined #ruby
[23:01:16] rubynewb: every item in the array tests true when I run it as name[-1]. and name.last has a method error
[23:01:26] rubynewb: im not, really
[23:01:45] Ox0dea: name[-1] will return the last character of name, I promise.
[23:01:57] yqt: has joined #ruby
[23:02:01] lucasb: unless it's the empty string :)
[23:02:04] Macca: has joined #ruby
[23:02:17] lucasb: which I would expect to also return an empty string, but it returns nil
[23:02:26] kappy: has joined #ruby
[23:02:30] Ox0dea: It makes sense, though.
[23:03:17] rubynewb: https://gist.github.com/anonymous/480bdff1a824a05f2324
[23:03:20] Ox0dea: lucasb: You wouldn't want [][-1] to return [], surely?
[23:03:32] Ox0dea: rubynewb: That's closer.
[23:03:41] Ox0dea: Now see above about Ruby not having junctions.
[23:03:42] lucasb: Ox0dea: yes, makes sense like you said
[23:04:23] solocshaw: has joined #ruby
[23:04:31] mclee: has joined #ruby
[23:04:43] makenoise: has joined #ruby
[23:04:53] Dreamer3: has joined #ruby
[23:05:05] saltsa: has joined #ruby
[23:05:28] pragmatism: has joined #ruby
[23:05:39] B1n4r10: has joined #ruby
[23:05:40] Nilium: has joined #ruby
[23:05:46] nlsun: has joined #ruby
[23:05:48] Djole: has joined #ruby
[23:06:05] symm-: has joined #ruby
[23:06:14] choke: has joined #ruby
[23:06:28] ixti: has joined #ruby
[23:06:30] abyss: has joined #ruby
[23:07:19] rubynewb: it works if i break if name[-1] == "a" || "e" || "i" || "o" || "u" into 5 seperate if statements. Is there a cleaner way?
[23:07:29] Ox0dea: rubynewb: Yes! :)
[23:07:44] Ox0dea: &ri Array#include?
[23:07:44] `derpy: http://ruby-doc.org/core-2.3.0/Array.html#method-i-include-3F
[23:08:21] diego3: has joined #ruby
[23:08:22] ajf-: has joined #ruby
[23:08:22] lucasb: vowels.include?(last_letter)
[23:08:28] akitada: has joined #ruby
[23:08:35] Ox0dea: >> %w[a e i o u].include? 'y'
[23:08:35] diego3: has joined #ruby
[23:08:36] ruby[bot]: Ox0dea: # => false (https://eval.in/505509)
[23:08:39] lucasb: Ox0dea: cool, cleaner than using 'any?'
[23:08:44] victortyau: has joined #ruby
[23:08:47] aegis3121: >> %w(apple egg harold smile tina).reduce(0) { |memo, x| %w(a e i o u).include?(x[-1]) ? memo + 1 : memo }
[23:08:48] ruby[bot]: aegis3121: # => 3 (https://eval.in/505510)
[23:09:21] Coldblackice: has joined #ruby
[23:09:34] Ox0dea: aegis3121: Ew.
[23:09:42] Ox0dea: rubynewb: vowel_end_count = array.count { |name| name[/[aeiou]$/] }
[23:10:06] baweaver: has joined #ruby
[23:10:50] rubynewb: oi 0x0dea that is more advanced than I am, but I will keep that in my notes.
[23:11:11] Ox0dea: rubynewb: You really should add #count to your bag of tricks ASAP.
[23:11:50] Ox0dea: If you ever write `+= 1` in Ruby, something has almost certainly gone awry.
[23:13:00] hahuang65: has joined #ruby
[23:13:04] Radar: Ox0dea: += 1
[23:13:12] Ox0dea: >> Errno::EDOOFUS
[23:13:13] ruby[bot]: Ox0dea: # => Errno::NOERROR (https://eval.in/505511)
[23:13:17] Ox0dea: Oh. Carry on, then.
[23:13:22] pawnbox: has joined #ruby
[23:13:47] rubynewb: I will keep that in mind
[23:14:37] northfurr: has joined #ruby
[23:17:25] guacamole: has joined #ruby
[23:18:23] BackEndCoder: has joined #ruby
[23:18:59] Mon_Ouie: has joined #ruby
[23:19:38] mchu: has joined #ruby
[23:20:14] jhn: has joined #ruby
[23:20:41] skade: has joined #ruby
[23:21:05] skcin7: has joined #ruby
[23:23:03] krainboltgreene: has joined #ruby
[23:23:27] krainboltgreene: has left #ruby: ()
[23:24:13] IrishGringo: has joined #ruby
[23:24:14] malconis: has joined #ruby
[23:25:05] diego2: has joined #ruby
[23:26:37] r4do: has joined #ruby
[23:26:37] guardian: has joined #ruby
[23:26:49] atomical: has joined #ruby
[23:29:08] Liam`: has joined #ruby
[23:29:34] aegis3121: Ox0dea: hah, I knew about #count. My brain derped when it saw the docs and forgot I was reading String's >.>
[23:30:03] bronson: has joined #ruby
[23:30:32] makenoise: has joined #ruby
[23:31:11] ledestin: has joined #ruby
[23:32:49] skade: has joined #ruby
[23:32:52] Ox0dea: aegis3121: Can't really fault ya for reaching for #reduce; it's a great method.
[23:33:51] blur3d: has joined #ruby
[23:34:57] sakix: has joined #ruby
[23:35:09] choke: has joined #ruby
[23:37:19] gbgdev: has joined #ruby
[23:37:37] gbgdev: has joined #ruby
[23:37:59] gbgdev: has joined #ruby
[23:38:11] gbgdev: has joined #ruby
[23:39:14] CloCkWeRX: has joined #ruby
[23:39:17] mostlybadfly: has joined #ruby
[23:39:19] CloCkWeRX: has left #ruby: ()
[23:39:41] northfurr: has joined #ruby
[23:40:18] zambini: has joined #ruby
[23:40:24] mistym: has joined #ruby
[23:40:24] mistym: has joined #ruby
[23:40:30] asccigcc: has joined #ruby
[23:40:35] makenoise: has joined #ruby
[23:40:38] lkba: has joined #ruby
[23:44:22] djellemah: has joined #ruby
[23:44:53] fartface: has joined #ruby
[23:45:35] fartface: Does anyone know of any interactive Ruby tutorials in a similar vain to LearnYouNode?
[23:46:25] fartface: Basically where I could download a gem, run a tutorial in a terminal which will spit out some instructions, I write some code, and then the tutorial runs my code against some tests and determines a pass/fail
[23:46:35] Ox0dea: fartface: http://rubykoans.com/
[23:47:04] fartface: This looks pretty much exactly what I was looking for--thank you so much!
[23:47:21] fartface: I'm currently going through some Ruby Monk stuff, but having it offline is a big bonus
[23:48:14] atomical: has joined #ruby
[23:50:46] mchu: has joined #ruby
[23:51:50] atomical_: has joined #ruby
[23:53:12] hnagamin: has joined #ruby
[23:53:16] pawnbox: has joined #ruby
[23:54:03] Ox0dea: fartface: Glad you think so! The Koans are great for exposing you to both Ruby and the benefits of red-green-refactor development.
[23:54:13] harly: yeah the koans are a great start.
[23:54:25] rkazak: has joined #ruby
[23:54:36] fartface: Everything in ruby is very zen-focused
[23:54:38] fartface: Cracks me up
[23:54:42] fartface: I like it though!
[23:54:48] jgpawletko: has joined #ruby
[23:58:30] Ropeney: has joined #ruby
[23:58:36] Scripore: has joined #ruby