« Back to channel list

#ruby - 22 January 2016

« Back 1 day Forward 1 day »
[00:00:08] apeiros: (it can only deal with numerics, though)
[00:02:56] vikas027: apeiros: notifications['last_notified'] throws error -- no implicit conversion of String into Integer (TypeError). Earlier, I had tried that. When it didn't worked, I decided to move with map
[00:03:13] araujo: has joined #ruby
[00:03:27] apeiros: vikas027: you really should learn ruby basics
[00:03:42] Radar: vikas027: notifications is an array
[00:03:46] apeiros: vikas027: your notifications is an array. you can't access array members by name. they don't have one.
[00:03:49] Radar: vikas027: notifications[0]['last_notified']
[00:03:53] waka: has joined #ruby
[00:03:55] Radar: vikas027: notifications[0] is the first element for the array
[00:04:06] Radar: vikas027: and I agree with apeiros: learn some basic Ruby. Go through the Ruby Koans.
[00:04:38] apeiros: without the basics, you'll need spone-feeding all the time when asking for help. that's usually not really appreciated.
[00:04:40] twe4ked: has joined #ruby
[00:05:03] eam: hm turns out spone is a word too
[00:05:24] apeiros: it is? I just looked it up too and my dict didn't know it??? what does it mean?
[00:05:43] firstdayonthejob: has joined #ruby
[00:05:46] eam: urban dictionary has a definition for it
[00:05:47] Ox0dea: It's not in words-insane.
[00:05:58] apeiros: oh, UD - can't be a nice word???
[00:06:01] cajone: has left #ruby: ()
[00:06:05] eam: yes, I am not sharing the definition
[00:06:35] Limix: has joined #ruby
[00:07:37] Ox0dea: spone(v. intr.): To fork while spoons.
[00:07:52] kalopsian: has joined #ruby
[00:08:03] floatingpoint: has joined #ruby
[00:08:14] vikas027: apeiros, Radar: Yeah, I am doing that side by side. Sorry, for the unwanted noise. Thank you so much. This (https://dpaste.de/WntQ) is what I wanted, all good now.
[00:08:23] hannelita: has joined #ruby
[00:08:29] Ox0dea: vikas027 plz
[00:08:29] pwnd_nsfw: has joined #ruby
[00:08:47] apeiros: ugh, .parse
[00:09:10] Ox0dea: I mean, why not, though?
[00:09:14] apeiros: vikas027: .parse is like saying "fuck it, I have no idea what's in there, please ruby do your best to figure out, I don't care whether the result will actually be correct".
[00:09:25] Ox0dea: apeiros: And Ruby tends to be like "I got dis".
[00:09:45] apeiros: Ox0dea: yes, until it changes how it interprets it (yes, that has happened)
[00:09:57] apeiros: and even if ruby gets it right, it's still a stoopid idea.
[00:10:06] apeiros: anyway, bedtime for me
[00:10:10] apeiros: ACTION afk
[00:10:25] oivoodoo: has joined #ruby
[00:10:42] vikas027: apeiros: Have a good night
[00:11:09] bonhoeffer: has joined #ruby
[00:11:25] ruby-lang833: has joined #ruby
[00:11:32] vikas027: I am also going thru this tutorial https://www.pluralsight.com/courses/ruby-fundamentals
[00:11:40] Ox0dea: vikas027: For what it's worth, this is the exact same problem you were having earlier.
[00:12:04] Ox0dea: You don't need a video course.
[00:12:12] ruby-lang833: Hi, is there a preferred place to put my "config.x." declarations to use as configuration options for my app?
[00:13:40] Ox0dea: ruby-lang833: Insufficient data for meaningful answer.
[00:14:42] vikas027: Ox0dea: Hmm.. I will look for some options, particularly to handle arrays and hashes
[00:14:54] kies^: has joined #ruby
[00:15:21] Ox0dea: vikas027: http://rubykoans.com/
[00:15:25] Ox0dea: You'll be glad you did.
[00:15:26] northfurr: has joined #ruby
[00:15:28] ruby-lang833: I want to use the custom configuration options in ruby 4 - store my app configuration date in outside of my main models/controllers - didn't know if there was a default place to declare the config.x.___ options
[00:16:04] vikas027: Ox0dea: Thanks, will have a look
[00:16:11] Ox0dea: vikas027: Sure thing.
[00:16:16] jottr: Maybe someone is around willing to earn some stackoverflow points. I am strange rbenv troubles: https://stackoverflow.com/questions/34936829/rbenv-not-working-shell-is-still-reporting-to-use-system-ruby
[00:16:57] Ox0dea: jottr: `rbenv rehash` or the like.
[00:17:09] jottr: Ox0dea: did that already
[00:17:29] Ox0dea: Gonna have to switch to chruby, then.
[00:17:31] eam: jottr: your path is wrong
[00:17:52] ruby-lang833: This is what I'd like to experiment with - but doesn't mention if there is a particiular place i should declare them in http://guides.rubyonrails.org/configuring.html#custom-configuration
[00:17:56] eam: "/usr/local/bin" is the first element of $PATH, and as you'd expect, /usr/local/bin/ruby is the first ruby you fine
[00:18:22] eam: PATH is traversed in order, left to right
[00:19:02] jottr: eam: Ok. So rbenv needs to intialized at the beginning of my .zshenv... Let me try
[00:19:23] eam: well, the shims dir needs to be the first element of $PATH
[00:19:29] eam: how you do that depends on your setup
[00:20:36] jottr: eam: Ok. thx
[00:20:38] hxegon: eam: I may have submitted your answer (explanation is mine) because I desperately need SO points. That OK?
[00:20:39] yfeldblum: has joined #ruby
[00:20:43] eam: go for it
[00:21:39] eam: jottr: ruby -e'puts ENV["PATH"].split(":").select { |p| File.executable? p + ARGV.first}' /ruby
[00:22:04] eam: that'll show you all the "ruby" executables in your path, according to the order they'll be chosen (only the first one really matters)
[00:22:29] jottr: eam: Already added the rbenv setup to .zlogin. That fixed it
[00:22:33] eam: awesome
[00:23:05] jottr: eam: God, what a timesink these things can be.
[00:23:15] eam: I guess I should've said File.executable? File.join p, ARGV.first
[00:23:24] hxegon: eam your the best. If I had some cherry wine, I'd give you some. We could dance all night with our clothes on
[00:23:27] nertzy2: has joined #ruby
[00:23:34] eam: shit yes
[00:25:04] d0nn1e: has joined #ruby
[00:25:10] eam: now someone help me figure out why android "repo" isn't working :(
[00:25:21] guacamole: has joined #ruby
[00:25:42] baweaver: has joined #ruby
[00:26:37] lemur: has joined #ruby
[00:26:50] hxegon: I like how that video is basically black luke skywalker saying how he doesn't want to be objectified.
[00:27:58] Ox0dea: jottr: Might be indicative of having picked the wrong one. :P
[00:28:41] jamw: has joined #ruby
[00:28:51] Ox0dea: Can your rbenv do this? alias rubydo='chruby | tr -d \* | xargs -I ver chruby-exec ver -- ruby -ve'
[00:29:04] Ox0dea: It probably can, to be fair, but it'd be a timesink.
[00:31:46] guacamole: has joined #ruby
[00:34:02] Ropeney: has joined #ruby
[00:34:03] toretore: has joined #ruby
[00:41:24] tinnvec: has joined #ruby
[00:42:32] mfb2: has joined #ruby
[00:43:52] hannelita: has joined #ruby
[00:46:31] chipotle: has joined #ruby
[00:46:44] gregf: has joined #ruby
[00:49:16] mondok: has joined #ruby
[00:50:24] Scripore: has joined #ruby
[00:50:42] go|dfish: has joined #ruby
[00:50:50] skcin7: has joined #ruby
[00:52:47] helpa: has joined #ruby
[00:53:24] bafbomb: has joined #ruby
[00:53:36] ekem: has joined #ruby
[00:54:46] chouhoulis: has joined #ruby
[00:56:28] lyoshajapan: has joined #ruby
[00:56:54] fn2187_: has joined #ruby
[00:58:21] erichmenge: has joined #ruby
[00:58:39] nirix: has joined #ruby
[00:59:27] Radar: has joined #ruby
[00:59:45] lyoshajapan: has joined #ruby
[00:59:45] lessless: has joined #ruby
[00:59:48] guacamole: has joined #ruby
[00:59:56] lacuna: has joined #ruby
[01:00:41] jericon: has joined #ruby
[01:01:23] akem: has joined #ruby
[01:01:25] BraddPitt: has joined #ruby
[01:02:09] fgo: has joined #ruby
[01:02:40] jpterry: has joined #ruby
[01:03:31] perry: has joined #ruby
[01:03:31] perry: has joined #ruby
[01:03:45] jidar: has joined #ruby
[01:04:27] scottschecter: has joined #ruby
[01:04:49] rkazak: has joined #ruby
[01:05:08] jackjackdripper1: has joined #ruby
[01:05:16] jaequery: has joined #ruby
[01:05:54] sgambino: has joined #ruby
[01:06:07] jackjackdripper1: has joined #ruby
[01:06:15] jschoolcraft: has joined #ruby
[01:07:16] kalopsian: has joined #ruby
[01:07:25] lacuna: has joined #ruby
[01:07:26] csmb: has joined #ruby
[01:10:30] baweaver: has joined #ruby
[01:11:41] jottr_: has joined #ruby
[01:17:12] mfb2: has joined #ruby
[01:18:39] blackmes1: has joined #ruby
[01:18:46] johnzorn: has joined #ruby
[01:19:09] mfb2: has joined #ruby
[01:19:54] lyoshaja_: has joined #ruby
[01:20:46] guacamole: has joined #ruby
[01:21:03] mwlang: has joined #ruby
[01:21:13] bluOxigen: has joined #ruby
[01:22:09] beast: has joined #ruby
[01:26:58] Scripore: has joined #ruby
[01:27:55] guacamole: has joined #ruby
[01:30:33] atomical: has joined #ruby
[01:31:27] guacamole: has joined #ruby
[01:32:31] kalopsian: has joined #ruby
[01:33:40] Jwad: has joined #ruby
[01:33:49] Jwad: has left #ruby: ("Leaving")
[01:34:37] hanneli: has joined #ruby
[01:35:15] guacamole: has joined #ruby
[01:37:18] chihhsin: has joined #ruby
[01:38:41] guacamole: has joined #ruby
[01:41:44] atomical_: has joined #ruby
[01:41:51] chihhsin: has joined #ruby
[01:44:36] atomical_: has joined #ruby
[01:45:41] ss_much: has joined #ruby
[01:47:51] onlyme_: has joined #ruby
[01:49:46] finisherr: has joined #ruby
[01:53:03] chihhsin: has joined #ruby
[01:53:22] atomical: has joined #ruby
[01:53:54] Asher: has joined #ruby
[01:54:33] moei: has joined #ruby
[01:55:48] solocshaw: has joined #ruby
[01:58:30] bronson: has joined #ruby
[01:59:24] rakm: has joined #ruby
[02:00:58] mrsolow: has joined #ruby
[02:03:28] django_: has joined #ruby
[02:03:34] django_: why is ruby so popular?
[02:03:49] guacamole: has joined #ruby
[02:05:26] Radar: django_: why not
[02:06:07] choke: has joined #ruby
[02:09:26] scottschecter_: has joined #ruby
[02:11:43] Darmani: django - Ever since I started getting into it people have been trying it out.
[02:11:54] Darmani: I have that effect on shit.
[02:13:20] Radar: it's true
[02:16:19] huQeQwdpu47q: has joined #ruby
[02:17:58] dfinninger: has joined #ruby
[02:19:56] django_: Darmani, lol
[02:20:00] sucks: has joined #ruby
[02:20:27] django_: im a newb programmer should i get into it?
[02:21:09] tinnvec: has joined #ruby
[02:22:03] tinnvec: has joined #ruby
[02:23:35] cbyrda: has joined #ruby
[02:24:14] Averna: has joined #ruby
[02:24:22] arescorpio: has joined #ruby
[02:26:01] The_Phoenix: has joined #ruby
[02:26:35] Radar: django_: I'm curious as to why your name is django and you claim to be a newb porgrammer?
[02:26:48] Radar: I don't see many Djangos online.
[02:27:16] cbyrda: perhaps after the musician
[02:27:20] TomPeed: has joined #ruby
[02:27:46] Ox0dea: has joined #ruby
[02:29:24] Rodya_: has joined #ruby
[02:29:30] jamw: has joined #ruby
[02:33:40] jottr: has joined #ruby
[02:34:07] kalopsian: has joined #ruby
[02:34:51] Sembei: has joined #ruby
[02:36:05] ruby-lang144: has joined #ruby
[02:37:59] dlitvak: has joined #ruby
[02:42:23] griffindy: has joined #ruby
[02:42:36] northfurr: has joined #ruby
[02:43:30] ruby-lang144: im fairly new with Ruby and was wondering if someone would look at my code
[02:44:00] brixen: has joined #ruby
[02:44:09] Ox0dea: Only if you make it a wallpaper.
[02:44:15] realtime_: has joined #ruby
[02:44:30] baweaver: ruby-lang144: https://gist.github.com/
[02:44:40] choke: has joined #ruby
[02:44:44] django_: Radar, movie
[02:44:56] DonOtreply: has joined #ruby
[02:46:24] mfb2: has joined #ruby
[02:46:32] Radar: django_: Do you have Ruby installed yet?
[02:46:54] Radar: django_: What operating system are you using?
[02:47:03] guacamole: has joined #ruby
[02:47:24] ruby[bot]: Ubuntu installation guide for Ruby + Rails: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[02:47:30] Radar: Follow that and that'll get you setup.
[02:47:48] ruby-lang144: PRIVMSG Ox0dea
[02:48:02] Ox0dea: Well done.
[02:48:14] baweaver: ruby-lang144: don't PM members without asking first.
[02:48:17] ruby-lang144: as i said, new to this
[02:48:33] Ox0dea: /query ruby-lang144 Ohai!
[02:48:35] django_: Radar, yeah
[02:48:42] norc_: has joined #ruby
[02:48:55] hakunin: has joined #ruby
[02:49:02] Ox0dea: ruby-lang144: But do post your code to the channel; more eyes make for shallower bugs.
[02:50:01] ruby-lang144: ok, need to find out to msg you
[02:50:54] Radar: ruby-lang144: Just put it into the channel
[02:51:12] Radar: ruby-lang144: http://ruby-community.com/pages/user_rules
[02:52:48] mahk: has joined #ruby
[02:53:51] Darmani: Radar I just made a bomb cup of coffee. Man that shit looked like art dude, it was almost a shame to drink it.
[02:53:57] Darmani: I just feel like you should know that.
[02:54:02] Radar: I'm excited for yuo.
[02:54:19] Darmani: yea bruh. if programming doesn't work out...
[02:54:23] Darmani: i'ma make coffee
[02:54:32] eggoez: has joined #ruby
[02:55:26] yfeldblum: has joined #ruby
[02:55:37] akkad: has joined #ruby
[02:55:51] ruby-lang144: https://gist.github.com/anonymous/ff94862c6dab6ad4dc12
[02:56:18] yfeldblum: has joined #ruby
[02:56:23] Ox0dea: Is "H" for "Horange"?
[02:56:33] ruby-lang144: it seems to work but i cant get it to confirm if the player has won
[02:57:02] ruby-lang144: but i do like Horange
[02:57:19] ruby-lang144: and I'm aware of line 18 giving the code. i was testing as to match it
[02:57:54] baweaver: Most of it you're going to want to reconsider your object layout.
[02:57:59] emilford: has joined #ruby
[02:58:07] baweaver: putting the event loop in with the board makes it interesting to work with.
[02:58:42] baweaver: For a game you want, at a minimum: A Board, and an Event Loop
[02:59:14] baweaver: look into making your own to_s method so you could just say something in your event loop like `puts board`
[03:00:11] baweaver: You might read 'Practical Object Oriented Design in Ruby' some time
[03:00:22] baweaver: it'll cover a lot of what you need to think about for structuring applications like that.
[03:00:32] baweaver: mainly what methods are the concern of what objects
[03:00:43] baweaver: like a Board should not know what a turn is
[03:00:54] ruby-lang144: ok. so possibly create another class
[03:01:51] blackgoat: has joined #ruby
[03:01:53] ruby-lang144: thank you for the suggestion. I'll have to check that book out tomorrow
[03:02:02] Arnvald: has joined #ruby
[03:02:35] sunya7a: I'm trying to understand the concept of Foo.send(visibility, :a) on line 21 from this article http://weblog.jamisbuck.org/2007/2/23/method-visibility-in-ruby.html. Could someone point me to the name of this technique so i can google it...when I look up object.send it describes something different I believe
[03:03:05] Radar: sunya7a: It's calling a method on Foo.
[03:05:14] A124: has joined #ruby
[03:05:41] ddv: has joined #ruby
[03:05:59] Ox0dea: And #public, #private, and #protected are methods, not keywords.
[03:08:51] sunya7a: Radar: so it calls the method "public" of Foo (which i didn't have to define because it's already there) and passes it the argument :a ?
[03:10:04] sunya7a: Radar: i see...found http://ruby-doc.org/core-2.2.0/Module.html#method-i-public i think i understand...thank you
[03:11:10] a1fa: has joined #ruby
[03:11:30] a1fa: what time format is this? 20140112T000000000
[03:11:37] northfurr: has joined #ruby
[03:12:12] Radar: awful lot of zeros after the T.
[03:12:17] Ox0dea: That'd be midnight.
[03:12:27] Radar: Ah, followed by the zone. True.
[03:12:36] a1fa: is it iso8601?
[03:12:49] Radar: It almost looks like it, but it isn't.
[03:13:00] a1fa: so i should just use Time method to make that time?
[03:13:27] Radar: >> Time.parse("20140112T000000000")
[03:13:29] ruby[bot]: Radar: # => undefined method `parse' for Time:Class (NoMethodError) ...check link for more (https://eval.in/506158)
[03:13:34] Radar: >> require 'time';Time.parse("20140112T000000000")
[03:13:36] ruby[bot]: Radar: # => 2014-01-12 00:00:00 +0000 (https://eval.in/506159)
[03:13:42] dlitvak: has joined #ruby
[03:14:08] a1fa: Radar: i need to go other way.. epoch to that particular format
[03:14:22] Radar: a1fa: Example input + output please
[03:14:31] Ox0dea: They just said?
[03:14:59] a1fa: input 1453432488
[03:15:38] a1fa: output would be 20160121T21150600
[03:16:11] a1fa: utc would be fine too
[03:16:47] Ox0dea: &ri Time.at Time#strftime
[03:16:48] `derpy: http://ruby-doc.org/core-2.3.0/Time.html#method-c-at, http://ruby-doc.org/core-2.3.0/Time.html#method-i-strftime
[03:17:07] ruby-lang144: Oxodea did you see any issues in the gist i provided earlier?
[03:17:18] ruby-lang144: outside of the advice baweaver provided
[03:17:25] Ox0dea: There was a global variable somewhere that caught my eye.
[03:17:48] Ox0dea: Excise it with ruthless abandon and great haste for the good of the realm.
[03:18:34] ruby-lang144: will do. ill remove it
[03:18:36] a1fa: Ox0dea: thats what i was going to do, just checking there is no shortcut
[03:20:06] Encapsulation: has joined #ruby
[03:20:35] ruby-lang144: global variable gone
[03:20:46] ruby-lang144: ill continue to work on it until it works. thanks!
[03:21:02] mfb2: has joined #ruby
[03:21:35] Ox0dea: ruby-lang144: I'm operating under the assumption that they won't mind in sharing a friend's solution: https://eval.in/506161
[03:22:08] Ox0dea: It even just "feels" a lot cleaner, doesn't it? Good object orientation does that.
[03:22:23] duderonomy: has joined #ruby
[03:22:35] krobzaur: has joined #ruby
[03:28:10] s00pcan: has joined #ruby
[03:30:48] Arnvald_: has joined #ruby
[03:30:57] workmad3: has joined #ruby
[03:32:38] User458764: has joined #ruby
[03:33:47] rkazak: has joined #ruby
[03:36:08] skcin7: has joined #ruby
[03:36:21] rakm: has joined #ruby
[03:38:58] radgeRayden: has joined #ruby
[03:41:25] asccigcc: has joined #ruby
[03:41:46] djbkd: has joined #ruby
[03:42:46] djbkd: has joined #ruby
[03:43:12] Asher: has joined #ruby
[03:43:18] mfb2: has joined #ruby
[03:43:28] baweaver: has joined #ruby
[03:43:37] Darmani: I gotta go play some video games or something.
[03:43:46] Darmani: I'm going to die if I keep looking at this computer screen
[03:45:47] iateadonut: has joined #ruby
[03:46:22] howdoi: has joined #ruby
[03:47:04] UtkarshRay: has joined #ruby
[03:47:56] djbkd: has joined #ruby
[03:53:03] pawnbox: has joined #ruby
[03:57:48] RTG`: has joined #ruby
[04:03:17] YR: has joined #ruby
[04:03:29] tjbiddle: has joined #ruby
[04:04:02] YR: basic question....how do i do a for loop that's variable number of times? reading tutorial only shows static number repeats
[04:04:19] YR: i want like .... for (var i=0;i<j;i++)
[04:04:40] usershell: has joined #ruby
[04:04:44] toretore: has joined #ruby
[04:05:22] Ox0dea: >> sum = 0; j.times { |i| sum += i }; sum # YR
[04:05:24] ruby[bot]: Ox0dea: # => undefined local variable or method `j' for main:Object (NameError) ...check link for more (https://eval.in/506165)
[04:05:32] Ox0dea: You get the idea.
[04:06:13] YR: ah. so there's a .times function that acts on numerics
[04:06:23] Ox0dea: Well, only Fixnums, but yes.
[04:06:33] Ox0dea: *Integers
[04:06:40] Ox0dea: So Fixnum and Bignum.
[04:06:53] Ox0dea: But if you're calling Bignum#times, something's probably gone wrong.
[04:06:59] cpup: has joined #ruby
[04:09:22] sakix: has joined #ruby
[04:10:33] zast: has joined #ruby
[04:11:47] oivoodoo: has joined #ruby
[04:13:22] braincrash: has joined #ruby
[04:13:48] emilford: has joined #ruby
[04:16:19] dlitvak: has joined #ruby
[04:16:33] Ox0dea: YR: You gave me a bad idea: https://glot.io/snippets/eb77d1hhk9
[04:21:00] arlek: has joined #ruby
[04:22:05] jamw: has joined #ruby
[04:28:03] Contigi: has joined #ruby
[04:31:26] dextertzu: has joined #ruby
[04:32:46] Arnvald: has joined #ruby
[04:35:32] baweaver: has joined #ruby
[04:36:08] usershell: has joined #ruby
[04:36:52] choke: has joined #ruby
[04:37:53] dextertzu: has joined #ruby
[04:38:51] konsolebox: has joined #ruby
[04:40:50] rickmasta: has joined #ruby
[04:41:50] dextertzu: has joined #ruby
[04:42:57] ramfjord_: has joined #ruby
[04:44:55] mfb2: has joined #ruby
[04:50:06] cicloid: has joined #ruby
[04:51:46] norc_: Ox0dea, I can only wait to see _that_ in production code.
[04:52:08] gix: has joined #ruby
[04:52:12] Ox0dea: norc_: What, you can't think of a use case? :P
[04:53:20] norc_: Aside from confusing the heck out of the next person discovering a line that reads "2.79.times do ... end" ... no. :D
[04:54:18] Ox0dea: Well, it should only be used with reasonably "round" floats, of course.
[04:55:09] norc_: You know you can just use #round right.. ? :-)
[04:55:18] adgtl: has joined #ruby
[04:56:10] dextertzu: has joined #ruby
[04:56:48] shevy: what is half a time
[04:56:50] Ox0dea: I meant "round" in the sense that "two-and-a-half" is... uncomplicated, for lack of a better term.
[04:57:28] Ox0dea: >> Time.at Time.now.to_i / 2
[04:57:29] ruby[bot]: Ox0dea: # => 1993-01-11 02:28:44 +0000 (https://eval.in/506178)
[04:57:48] usershell: has joined #ruby
[04:58:26] konsolebox: has joined #ruby
[04:59:11] Ox0dea: norc_: Reckon Array#drain would find any use?
[04:59:40] norc_: Ox0dea, feel free to share how naughty you have been again.
[05:00:16] Ox0dea: norc_: Er, the Rust 1.6 release brought to my attention that they have drain(), which empties a collection but doesn't dispose of the backing memory.
[05:00:23] Ox0dea: So Array#drain would be #clear without GC.
[05:00:49] Ox0dea: Only something weird is happening in rb_ary_clear().
[05:00:49] bronson: has joined #ruby
[05:01:17] Ox0dea: "Simple" Arrays aren't explicitly passed to the various unsharing and freeing mechanisms, but they're obviously not being completely ignored either.
[05:02:03] norc_: What is the use case here? Trying to avoid time spent in the GC for large arrays?
[05:02:24] Ox0dea: Under the assumption that (many of) those same elements are likely to find their way back in, aye.
[05:02:38] norc_: So this is about locality of reference?
[05:02:45] norc_: To improve caching?
[05:03:05] Ox0dea: Or even just to avoid freeing an object which we know is about to be used again.
[05:03:18] hxegon: has joined #ruby
[05:03:19] norc_: Oh I see.
[05:03:32] Ox0dea: We don't yet have the sufficiently smart interpreter.
[05:03:52] Ox0dea: It's easy enough to make sure something's still got a reference, I guess.
[05:06:27] harly: has joined #ruby
[05:06:53] hxegon: anyone understand why this wouldn't record cassettes? VCR isn't playing nice today :(
[05:06:57] hxegon: https://gist.github.com/hxegon/d78db392d61c78225819
[05:07:50] darkxploit: has joined #ruby
[05:08:13] ljames: has joined #ruby
[05:08:19] x77686d: has joined #ruby
[05:08:21] joneshf-laptop: has joined #ruby
[05:09:15] Ox0dea: norc_: Any way to ask an Array if it's the result of a splat?
[05:09:31] Ox0dea: I can't imagine that information hangs around past parsing, but maybe there's something.
[05:09:58] rkazak: has joined #ruby
[05:10:42] pawnbox: has joined #ruby
[05:11:35] norc_: Ox0dea, since the introduction of the VM we have lost any representation of the AST.
[05:12:15] norc_: Ox0dea, and considering how splatarray isn is implemented, no.
[05:12:43] norc_: Ox0dea, I suppose you could simply patch up splatarray to set a flag on whatever it returns on the stack fairly trivially though.
[05:13:09] Ox0dea: It'd solely be to make `hash[*keys] = *values` always do the right thing.
[05:13:17] Ox0dea: norc_: A worthwhile tradeoff, I reckon.
[05:15:21] altaircg: has joined #ruby
[05:15:42] oivoodoo: has joined #ruby
[05:16:06] Graphettion: has joined #ruby
[05:19:32] beast: has joined #ruby
[05:20:18] adgtl_: has joined #ruby
[05:22:02] Ox0dea: norc_: The splatarray flag is only ever tested for truthiness, but I'm not sure of the repercussions of twiddling its bits.
[05:22:38] haraoka: has joined #ruby
[05:23:09] tjbiddle: has joined #ruby
[05:26:08] pawnbox_: has joined #ruby
[05:26:51] ICantCook: I'm trying to get a very simple sinatra script to simply return the raw request body to the requester
[05:27:03] pawnbox__: has joined #ruby
[05:27:05] lucas_menezes: has joined #ruby
[05:27:21] ICantCook: I've managed to return the headers (request.env) but when I try to return request.body
[05:27:23] ICantCook: https://gist.github.com/anonymous/bb7d72b0ccc9cf430897
[05:27:29] ICantCook: I get #<StringIO:0x00000001c14b10>
[05:28:08] Ox0dea: ICantCook: Call #string on that.
[05:28:41] alem0lars: has joined #ruby
[05:28:48] Ox0dea: Instead of #to_s, to clarify.
[05:29:59] Ox0dea: >> s = StringIO.new 'foo'; [s.to_s, s.string, s.read, s.read]
[05:30:00] ruby[bot]: Ox0dea: # => ["#<StringIO:0x40fe5a48>", "foo", "foo", ""] (https://eval.in/506182)
[05:32:40] ICantCook: calling string, instead of to_s, gives me nothing
[05:33:35] ramfjord: has joined #ruby
[05:33:55] _djbkd: has joined #ruby
[05:35:55] tjbiddle: has joined #ruby
[05:38:44] adgtl: has joined #ruby
[05:39:38] Ox0dea: ICantCook: GET requests don't have bodies.
[05:41:15] craigp: has joined #ruby
[05:42:38] arup_r: has joined #ruby
[05:42:39] c0der0x: has joined #ruby
[05:43:06] ICantCook: Ox0dea: doh!
[05:43:14] ICantCook: changed to post, all working
[05:43:16] Ox0dea: ICantCook: Happens. :)
[05:43:18] Ox0dea: Sure thing.
[05:43:51] Klumben: has joined #ruby
[05:44:11] pontiki: has joined #ruby
[05:45:07] adgtl: has joined #ruby
[05:48:49] dfinninger: has joined #ruby
[05:50:40] UtkarshRay: has joined #ruby
[05:51:22] dudedudeman: has joined #ruby
[05:54:05] Hobbyboy|BNC: has joined #ruby
[05:54:36] yfeldblum: has joined #ruby
[05:57:02] yfeldblum: has joined #ruby
[06:02:06] Amnez777-: has joined #ruby
[06:02:23] BaroMeter: has joined #ruby
[06:04:08] UtkarshRay: has joined #ruby
[06:09:06] VaibhavRajput: has joined #ruby
[06:10:14] bluOxigen_: has joined #ruby
[06:10:58] adgtl: has joined #ruby
[06:11:24] VaibhavRajput: has left #ruby: ()
[06:11:48] rickmasta: has joined #ruby
[06:12:49] onlyme_: has joined #ruby
[06:15:18] norc: has joined #ruby
[06:15:23] norc: Ox0dea: here is a good one:
[06:15:40] norc: https://gist.github.com/anonymous/1ef69cf82a4a075676f1
[06:15:52] norc: Ruby can be quite helpful.
[06:16:28] krz: has joined #ruby
[06:16:36] blackgoat: has joined #ruby
[06:16:50] norc: Be back in a minute when Im in the office.
[06:16:50] karapetyan: has joined #ruby
[06:17:25] Ox0dea: It's not that weird, really.
[06:17:52] JohnT: has joined #ruby
[06:18:03] Ox0dea: norc: https://eval.in/506210
[06:18:09] Ox0dea: It's just finding the one in Module instead.
[06:18:46] Ox0dea: Er, no need even to try to invoke it, actually.
[06:19:36] oivoodoo: has joined #ruby
[06:19:44] adgtl: has joined #ruby
[06:22:25] altaircg: has joined #ruby
[06:24:02] darkf: has joined #ruby
[06:28:34] aganov: has joined #ruby
[06:29:16] altaircg: has joined #ruby
[06:31:36] altair118: has joined #ruby
[06:32:18] chouhoul_: has joined #ruby
[06:33:06] chihhsin: has joined #ruby
[06:39:02] fedexo: has joined #ruby
[06:40:23] altair118: has joined #ruby
[06:41:24] jackjackdripper: has joined #ruby
[06:41:54] tmtwd: has joined #ruby
[06:42:25] altair118: has joined #ruby
[06:42:49] arlek: has joined #ruby
[06:43:25] luckyme: has joined #ruby
[06:45:57] alyssadaemon: has joined #ruby
[06:47:42] jamto11: has joined #ruby
[06:47:54] Jameser: has joined #ruby
[06:48:49] SweetSoulBro: has joined #ruby
[06:49:08] mdw: has joined #ruby
[06:49:25] SweetSoulBro: I come for assistance.
[06:50:04] Ox0dea: Prove it.
[06:50:08] alyssadaemon: SweetSoulBro: what's the issue?
[06:50:25] SweetSoulBro: So I'm trying to make a quick Combat character generator for my RPG.
[06:50:26] Ox0dea: SweetSoulBro: Your Enter key does not deserve the abuse.
[06:50:44] SweetSoulBro: I need to read specific lines from a txt file.
[06:51:10] Ox0dea: Are you sure?
[06:51:16] alyssadaemon: Is there anything unique about the lines?
[06:51:23] SweetSoulBro: They're strings.
[06:51:29] Ox0dea: All strings?
[06:51:31] jas02: has joined #ruby
[06:51:32] SweetSoulBro: The rest of the lines are ints.
[06:51:41] Ox0dea: You should use a better format.
[06:51:42] SweetSoulBro: It goes string, int, int, string, int int, etc.
[06:51:44] Ox0dea: JSON or YAML, for instance.
[06:52:16] SweetSoulBro: For a dice bot?
[06:52:49] Ox0dea: I don't see why not, but that format's pretty simple.
[06:53:20] alyssadaemon: I think SweetSoulBro wants to read some sort of input like IRC
[06:53:34] SweetSoulBro: Nah, i got that covered already
[06:53:34] alyssadaemon: Am I correct?
[06:53:44] SweetSoulBro: It reads from txt files.
[06:54:18] alyssadaemon: Then I agree with Ox0dea, if you can control the output of the txt files, use that to your advantage
[06:54:36] dionysus69: has joined #ruby
[06:54:37] SweetSoulBro: ALright, so basically the strings are the names of the 6 "Classes", the 2nd number is the base HP, and the third is the base attack bonus.
[06:54:56] Ox0dea: SweetSoulBro: How does this make you feel? https://eval.in/506219
[06:55:10] SweetSoulBro: I don't know what that is.
[06:55:17] Ox0dea: It's a solution to your problem, silly.
[06:55:22] krz: has joined #ruby
[06:55:25] sigurding: has joined #ruby
[06:55:41] Ox0dea: Instead of DATA, you'll want something like File.open('stuff'), but it should suffice.
[06:55:41] SweetSoulBro: How did you do that?
[06:55:47] Ox0dea: Computer magicks.
[06:56:01] SweetSoulBro: :B My expertise is in hardware and a transformation servers.
[06:56:04] alyssadaemon: Ox0dea is a computer wizard, don't cha know
[06:56:06] SweetSoulBro: I don't know fuckall about programming.
[06:56:21] Ox0dea: Somebody thinks we didn't just stock up on troll food.
[06:56:24] SweetSoulBro: (Transformation as in from one file to another, thousands of times a second)
[06:56:40] Ox0dea: Is that... copypasta?
[06:56:43] SweetSoulBro: That fixes the issue.
[06:56:52] SweetSoulBro: Here's the issue.
[06:56:59] Ox0dea: We've been duped.
[06:57:10] SweetSoulBro: THe reason I want to read JUST the strings is becasue-
[06:57:22] SweetSoulBro: I suppose this wokrs.
[06:57:39] SweetSoulBro: I want to put each thing into an array, basically
[06:57:41] SweetSoulBro: I can do this.
[06:57:45] Ox0dea: You can do this.
[06:57:49] Ox0dea: You have the technology.
[06:58:09] apeiros: Ox0dea: I doubt they're a troll, no need to grill them ;-)
[06:58:16] Ox0dea: Who's grillin'?
[06:58:23] SweetSoulBro: I'm not a troll.
[06:58:23] apeiros: you is grillin
[06:58:26] Ox0dea: You can't say they didn't come off a bit Markov chain-y back there.
[06:58:42] SweetSoulBro: If you want I can show you what I have so far
[06:58:45] SweetSoulBro: as far as the bot goes
[06:58:54] shevy: so many bots!
[06:58:56] SweetSoulBro: I made a few random generators(The gun generator is hardcoded, so forgive me)
[06:59:02] apeiros: SweetSoulBro: that goes a long way on irc :)
[07:00:06] SweetSoulBro: The whole slice thing
[07:00:11] ohaibbq: has joined #ruby
[07:00:11] Ox0dea: It slices.
[07:00:12] SweetSoulBro: Where's the api for that?
[07:00:18] Ox0dea: &ri Array#slice
[07:00:19] `derpy: http://ruby-doc.org/core-2.3.0/Array.html#method-i-slice
[07:00:19] SweetSoulBro: I want to read up on that.
[07:00:46] SweetSoulBro: And it's funny
[07:00:49] Ox0dea: &ri Array#each_slice
[07:00:49] `derpy: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-each_slice
[07:00:55] Ox0dea: That's the one you want.
[07:00:57] SweetSoulBro: Cause ruby has no practical application at my job
[07:01:11] Ox0dea: Ruby is basically useless, amirite?
[07:01:19] SweetSoulBro: Not if you're a webdev.
[07:01:41] SweetSoulBro: I may code a isometric turn based strat game with it.
[07:01:41] davidcelis: if you're a webdev you should be learning Swift
[07:01:49] Ox0dea: Why not hexagons?
[07:01:54] Ox0dea: Hexagons > voxels.
[07:02:14] SweetSoulBro: I coudl do both.
[07:02:22] SweetSoulBro: The RPG it would be built under supports both.
[07:02:22] Ox0dea: Hexagonal voxels?! Contain the madness!
[07:02:41] beast_: has joined #ruby
[07:02:43] alyssadaemon: http://jamie.ideasasylum.com/2015/05/implementing-hexgrids-in-ruby/
[07:03:01] SweetSoulBro: ANother question
[07:03:06] SweetSoulBro: What does | | do in ruby?
[07:03:28] Ox0dea: alyssadaemon: http://www.redblobgames.com/grids/hexagons/
[07:03:38] Ox0dea: SweetSoulBro: It denotes block parameters.
[07:03:40] bronson: has joined #ruby
[07:04:09] SweetSoulBro: So this thing prints..basically the string, the int, and the int2
[07:04:21] SweetSoulBro: SO it reach each data chunk
[07:04:32] SweetSoulBro: and reds again?
[07:04:34] Ox0dea: SweetSoulBro: That was just to show you that you want #each_slice; the rest is up to your imagination.
[07:04:41] Ox0dea: But yeah, seems like you've got the idea.
[07:04:52] SweetSoulBro: I can pass each one to it's own array.
[07:05:23] Ox0dea: Each what?
[07:05:31] SweetSoulBro: The strings go to an array
[07:05:47] SweetSoulBro: The HP goes to an array
[07:05:51] SweetSoulBro: and the BAB goes to an array
[07:06:14] Ox0dea: In that case, I have a present for you.
[07:06:37] SweetSoulBro: I know I'm not explainign what I want to do right. I should try to at least.
[07:07:07] alyssadaemon: I feel like a map is coming on
[07:07:22] Ox0dea: SweetSoulBro: Peep this fancy: https://eval.in/506220
[07:07:41] Ox0dea: What you needed was a matrix transposition!
[07:07:43] alyssadaemon: I forgot all about transpose xD
[07:08:32] Ox0dea: You'll probably want to `strs.map!(&:chomp)` and `hps.map!(&:to_i)`, but that'll about do it.
[07:08:58] krz: has joined #ruby
[07:09:22] SweetSoulBro: what does that p do?
[07:09:32] Ox0dea: I type it instinctively.
[07:09:39] alyssadaemon: prints the variable (like puts)
[07:09:42] n00bDev: has joined #ruby
[07:09:50] alyssadaemon: It's not puts, it's like puts
[07:09:52] mondok: has joined #ruby
[07:10:03] alyssadaemon: http://stackoverflow.com/questions/1255324/p-vs-puts-in-ruby
[07:10:38] SweetSoulBro: that makes sense.
[07:11:09] SweetSoulBro: You guys/girls are nice.
[07:11:17] SweetSoulBro: I appreciate all the help on my silly little project.
[07:11:40] CaptainAl: has joined #ruby
[07:11:43] SweetSoulBro: I'm not leaving
[07:11:54] SweetSoulBro: I'm just thanking you
[07:11:56] solars: has joined #ruby
[07:12:01] dexter-tzu: has joined #ruby
[07:15:33] DoubleMalt: has joined #ruby
[07:15:56] SweetSoulBro: Ox0dea: You still here?
[07:16:05] Ox0dea: SweetSoulBro: In the metaphysical sense?/
[07:16:31] SweetSoulBro: ALright, so I have a bit of an issue with the .transpose thing.
[07:16:40] SweetSoulBro: Lemme see if I can explain exactly what I'm trying to do.
[07:16:55] ympeg: has joined #ruby
[07:18:47] SweetSoulBro: The class listing in the txt file goes class(Str),hp(int1), bab(int2). The program then randomly(psudorandomly) picks one of the classes, which determines what HP and BAB the character gets. The program THEN randomlly generates a random level for the character within set parameters(In a different text file), while also generating six additional ability scores(I got that part down)
[07:18:48] juddey: has joined #ruby
[07:19:31] SweetSoulBro: The level determines the BAB, and HP, which is modified, positively or negatively, by the the ablity scores it generates.
[07:19:48] dfinninger: has joined #ruby
[07:19:53] LMity: has joined #ruby
[07:21:41] Ox0dea: SweetSoulBro: Whence comes the requirement that your data be stored in flat text files?
[07:21:59] SweetSoulBro: Easily modifiable without having to close down and reopen the text file.
[07:22:04] SweetSoulBro: since it's a dicebot.
[07:22:50] SweetSoulBro: I can just delete a thing in the text file.
[07:23:06] SweetSoulBro: And it will show up/be changed when i use the command
[07:23:12] SweetSoulBro: to trigger that particular generator
[07:27:43] hayden_: has joined #ruby
[07:31:09] Ox0dea: >> Array.new(5) { rand 6 }.reduce('') { |s, d| s + '' << 0x2680 + d }
[07:31:10] ruby[bot]: Ox0dea: # => "???????????????" (https://eval.in/506250)
[07:31:14] Ox0dea: Wait, no.
[07:33:26] SweetSoulBro: Ox0dea: ANy ideas?
[07:33:46] Ox0dea: SweetSoulBro: Write some code.
[07:34:03] SweetSoulBro: I'll use what you gave me
[07:34:17] Ox0dea: I shouldn't have.
[07:34:26] Ox0dea: You really ought to impose more structure on your data.
[07:34:33] Ox0dea: It's just much less painful in the long run.
[07:34:39] SweetSoulBro: I don't know what that means
[07:34:51] burgestrand: has joined #ruby
[07:35:40] alyssadaemon: YAML / JSON instead of flat text files, for starters.
[07:35:50] sandstrom: has joined #ruby
[07:35:57] SOLDIERz: has joined #ruby
[07:36:07] SweetSoulBro: I don't know how to do that.
[07:36:13] alyssadaemon: Assuming you have a setup where people can save characters, that would be super valuable
[07:36:16] karapetyan: has joined #ruby
[07:36:27] SweetSoulBro: I don't, actually.
[07:36:35] SweetSoulBro: This was for the GM.
[07:36:38] SweetSoulBro: basically generat
[07:36:44] SweetSoulBro: gen and copy paste.
[07:36:54] alyssadaemon: GMs do need NPCs though, anyway, getting off track
[07:37:14] alyssadaemon: YAML is baked into ruby
[07:37:56] alyssadaemon: http://rhnh.net/2011/01/31/yaml-tutorial
[07:38:24] djbkd_: has joined #ruby
[07:38:40] SweetSoulBro: This works for a non-IRC issue.
[07:38:46] last_staff: has joined #ruby
[07:39:07] karapetyan: has joined #ruby
[07:39:24] alyssadaemon: An issue you didn't bring up in IRC, or an issue that does not deal with IRC?
[07:39:29] mic_e: has joined #ruby
[07:39:36] SweetSoulBro: I guess the issue with IRC is everything's gotta be a single sentence
[07:39:41] SweetSoulBro: so that you don't spam chat lines.
[07:40:43] altair118: has joined #ruby
[07:41:21] alyssadaemon: The class txt file is generated in the backend or is provided to the bot without need of transfering over IRC right?
[07:41:41] SweetSoulBro: It's made by me
[07:41:48] Pupp3tm4st3r: has joined #ruby
[07:42:07] alyssadaemon: Then you don't need to worry about transmitting the file over IRC, it can be a yaml file
[07:42:18] SweetSoulBro: yeah, I said that wrong.
[07:42:35] SweetSoulBro: Printing to irc.
[07:42:38] Ox0dea: logs $ grep -v -- -- irc.freenode.#ruby.weechatlog | tail -100 | grep -c Soul
[07:42:38] SweetSoulBro: That's what I meant
[07:42:41] Ox0dea: New record, I think.
[07:43:12] dn`: has joined #ruby
[07:43:16] alyssadaemon: Of talking, or mentions?
[07:43:24] firstdayonthejob: has joined #ruby
[07:43:35] SweetSoulBro: Prints "I gneerate a combat NPC, blah blah blah"
[07:43:40] Ox0dea: alyssadaemon: Well, that caught both, but it's obviously almost entirely the former.
[07:43:43] dopie: has joined #ruby
[07:43:55] alyssadaemon: Sorry, I talking to Ox0dea, I forgot to put their name in the chat.
[07:44:12] rkazak: has joined #ruby
[07:44:29] alyssadaemon: SweetSoulBro: You don't have to print the yaml file. You can just print the important data itself.
[07:45:27] SweetSoulBro: This is getting complicated.
[07:46:31] krz: has joined #ruby
[07:46:52] SweetSoulBro: Can I just...call a thing?
[07:47:00] SweetSoulBro: Like just read a-
[07:47:19] Ox0dea: SweetSoulBro: https://eval.in/506270
[07:47:26] Ox0dea: Look at all that structure!
[07:47:26] SCHAAP137: has joined #ruby
[07:47:45] SweetSoulBro: Okay. How do I get all taht in a single sentence?
[07:48:14] SweetSoulBro: It's an IRC dicebot.
[07:48:25] SweetSoulBro: I want it to spit out a sentence when I speek a command.
[07:48:28] kp666: has joined #ruby
[07:48:34] puria: has joined #ruby
[07:48:56] alyssadaemon: You mean like: "The Knight's BAB is 10"?
[07:49:05] Ox0dea: Learn you some Ruby. :)
[07:49:07] kp666: has joined #ruby
[07:49:27] alyssadaemon: How much ruby do you know, SweetSoulBro?
[07:49:39] agit0: has joined #ruby
[07:49:40] SweetSoulBro: THis is a learning project.
[07:49:54] SweetSoulBro: I was using this to figgure out selection from a file, and arrays.
[07:50:01] SweetSoulBro: This specific project, rather.
[07:50:33] Ox0dea: I'd say that was your first mistake, but at least now you know how not to do it.
[07:50:53] SweetSoulBro: I didn't even know how to start it.
[07:50:56] jamto11_: has joined #ruby
[07:50:59] SweetSoulBro: Now at least I can slice it up
[07:51:17] SweetSoulBro: Honestly I could just put all three values in different files, read from it, and go about it that way
[07:51:19] SweetSoulBro: but that's lazy
[07:54:30] finisherr: has joined #ruby
[07:57:00] einarj: has joined #ruby
[07:57:46] Dimik: has joined #ruby
[07:58:52] jaiks: has joined #ruby
[08:00:27] neanderslob: has joined #ruby
[08:00:52] alyssadaemon: https://eval.in/private/4f1f5d9f3f0479
[08:01:40] SweetSoulBro: what does the .keys do?
[08:01:48] aufi: has joined #ruby
[08:02:13] SweetSoulBro: This is exactly the kind of example I needed
[08:02:26] alyssadaemon: So, when you parse YAML (or JSON) it becomes a Hash
[08:03:01] Jameser`: has joined #ruby
[08:03:04] SweetSoulBro: can i save this
[08:03:08] SweetSoulBro: or bookmark it?>
[08:03:33] alyssadaemon: I imagine you can
[08:04:16] alyssadaemon: A hash is like an array, but is named (so instead of classes[0] it's classes["Knight"])
[08:04:59] SweetSoulBro: ...That's actually kinda cool
[08:05:07] SweetSoulBro: so instead of my string int int bullshit.
[08:05:15] SweetSoulBro: I can just have it look more readable.
[08:05:18] alyssadaemon: In order to use the sample function (which pulls an element at pseudorandom), I need to grab the 'name' of the Hash
[08:05:22] codecop: has joined #ruby
[08:05:35] SweetSoulBro: I've used sample before.
[08:05:36] jamw: has joined #ruby
[08:05:41] SweetSoulBro: WOrks for arrays or txt files
[08:06:06] alyssadaemon: The keys function makes an array of the 'names' (called keys, btw)
[08:06:36] alyssadaemon: I'm sure Ox0dea could do it better with fewer lines of code.
[08:08:03] pawnbox: has joined #ruby
[08:08:31] Ox0dea: alyssadaemon: I think you did much better with the student than I could've. Just wanted to voice my appreciation on that front.
[08:08:45] SweetSoulBro: I can work with this
[08:10:05] fn2187: has joined #ruby
[08:10:07] alyssadaemon: Thank you Ox0dea.
[08:10:33] alyssadaemon: SweetSoulBro: no problem
[08:11:06] adgtl: has joined #ruby
[08:11:14] tmtwd: has joined #ruby
[08:11:28] lkba: has joined #ruby
[08:15:34] adgtl: has joined #ruby
[08:17:03] gagrio: has joined #ruby
[08:17:18] r0bby_: has joined #ruby
[08:17:23] blackgoat: has joined #ruby
[08:18:40] iateadonut: has joined #ruby
[08:18:41] r0bby_: has joined #ruby
[08:18:46] krzkrz: has joined #ruby
[08:20:23] dfinninger: has joined #ruby
[08:23:25] jgt: has joined #ruby
[08:23:51] puria: has joined #ruby
[08:24:34] TomyWork: has joined #ruby
[08:27:47] oivoodoo: has joined #ruby
[08:28:22] sepp2k: has joined #ruby
[08:29:27] lindistock: has joined #ruby
[08:31:58] antgel: has joined #ruby
[08:33:22] last_staff1: has joined #ruby
[08:34:31] User458764: has joined #ruby
[08:35:48] futilegames: has joined #ruby
[08:39:55] araujo_: has joined #ruby
[08:42:07] araujo_: has joined #ruby
[08:44:19] araujo_: has joined #ruby
[08:45:18] andikr: has joined #ruby
[08:46:42] sandstrom: has joined #ruby
[08:47:28] lycaonian: has joined #ruby
[08:48:38] pawnbox: has joined #ruby
[08:50:49] bluOxigen: has joined #ruby
[08:51:29] dmolina: has joined #ruby
[08:53:36] CloCkWeRX: has joined #ruby
[08:57:25] tvw: has joined #ruby
[09:00:35] mikecmpbll: has joined #ruby
[09:00:45] yos7ph: has joined #ruby
[09:01:36] devbug: has joined #ruby
[09:02:06] jbrhbr: has joined #ruby
[09:04:33] yfeldblum: has joined #ruby
[09:04:36] adgtl: has joined #ruby
[09:06:04] bronson: has joined #ruby
[09:06:56] ferr: has joined #ruby
[09:07:15] djellemah: has joined #ruby
[09:09:10] drptbl: has joined #ruby
[09:09:26] adgtl: has joined #ruby
[09:09:49] mark1: has joined #ruby
[09:11:03] nhhagen: has joined #ruby
[09:13:00] Xeago: has joined #ruby
[09:13:27] arcanemethods: has joined #ruby
[09:13:31] dopie: has joined #ruby
[09:15:06] maloik: has joined #ruby
[09:15:36] maloik: Hiya, it has been a while!
[09:15:38] sftrabbit: has joined #ruby
[09:20:32] vondruch: has joined #ruby
[09:20:51] huyderman: has joined #ruby
[09:20:56] karapetyan: has joined #ruby
[09:22:20] xescugc: has joined #ruby
[09:22:22] mic_e: has joined #ruby
[09:24:09] arcane-methods: has joined #ruby
[09:24:40] adgtl_: has joined #ruby
[09:24:55] SamGerber: has joined #ruby
[09:28:25] dopie: has joined #ruby
[09:29:29] ajf-: has joined #ruby
[09:30:50] araujo: has joined #ruby
[09:31:55] yaewa: has joined #ruby
[09:32:09] toretore: has joined #ruby
[09:32:25] astrobun_: has joined #ruby
[09:33:08] chthon: has joined #ruby
[09:33:17] srenatus: has joined #ruby
[09:35:42] lycaonian: has joined #ruby
[09:36:52] dlitvak: has joined #ruby
[09:38:02] toretore: has joined #ruby
[09:38:15] PedramT: has joined #ruby
[09:38:34] maloik: has joined #ruby
[09:39:01] radgeRayden_: has joined #ruby
[09:39:10] PedramT_: has joined #ruby
[09:39:41] snowy: has joined #ruby
[09:39:48] PedramT_: has joined #ruby
[09:40:17] arcane-methods: has joined #ruby
[09:42:10] arcane-methods: has joined #ruby
[09:42:54] User458764: has joined #ruby
[09:43:34] rdark: has joined #ruby
[09:44:02] arcane-methods: has joined #ruby
[09:44:19] f4cl3y: has joined #ruby
[09:44:51] karapetyan: has joined #ruby
[09:45:31] ESpiney: has joined #ruby
[09:46:41] vdamewood: has joined #ruby
[09:47:00] PedramT: has joined #ruby
[09:47:08] arcane-methods: has joined #ruby
[09:48:20] burgestrand: has joined #ruby
[09:48:44] PedramT: has joined #ruby
[09:52:01] karapetyan: has joined #ruby
[09:52:12] rodfersou: has joined #ruby
[09:52:36] kp666: has joined #ruby
[09:53:15] PedramT_: has joined #ruby
[09:53:54] c0d3r0x: has joined #ruby
[09:53:56] kp666: has joined #ruby
[09:54:57] c0d3r0x: has joined #ruby
[09:55:14] kp666: has joined #ruby
[09:55:56] blaxter: has joined #ruby
[09:56:01] PedramT__: has joined #ruby
[09:56:31] kp666: has joined #ruby
[09:57:08] dlitvak: has joined #ruby
[09:57:43] kp666: has joined #ruby
[09:58:04] timonv: has joined #ruby
[09:59:04] kp666: has joined #ruby
[09:59:15] astrobun_: has joined #ruby
[09:59:43] shredding: has joined #ruby
[09:59:54] baweaver: has joined #ruby
[09:59:57] Amnez777-: has joined #ruby
[10:00:05] FernandoBasso: has joined #ruby
[10:00:15] Xeago: has joined #ruby
[10:02:21] timonv: has joined #ruby
[10:02:32] arlek: has joined #ruby
[10:04:10] livcd: has joined #ruby
[10:05:25] arcane-methods: has joined #ruby
[10:06:21] jamw: has joined #ruby
[10:09:20] Outlastsheep: has joined #ruby
[10:09:30] livcd: I have problem installing (building native extensions for nokogiri) rails in a docker container. Similar to this: https://github.com/sparklemotion/nokogiri/issues/1370
[10:10:36] PedramT: has joined #ruby
[10:10:48] platzhirsch: has joined #ruby
[10:12:47] adgtl: has joined #ruby
[10:12:47] troulouliou_div2: has joined #ruby
[10:14:14] drptbl: has joined #ruby
[10:15:33] PedramT: has joined #ruby
[10:17:31] PedramT_: has joined #ruby
[10:17:33] mondok: has left #ruby: ("Leaving")
[10:17:40] arup_r: has joined #ruby
[10:18:38] PedramT__: has joined #ruby
[10:18:49] DirtyFInn: has joined #ruby
[10:20:43] dwfait: has joined #ruby
[10:20:45] tens0r: has joined #ruby
[10:21:40] beast: has joined #ruby
[10:21:45] dfinninger: has joined #ruby
[10:22:47] PedramT: has joined #ruby
[10:23:55] PedramT_: has joined #ruby
[10:25:26] darkxploit: has joined #ruby
[10:25:58] tulak: has joined #ruby
[10:28:50] workmad3: has joined #ruby
[10:31:46] PedramT_: has joined #ruby
[10:31:50] nofxx: has joined #ruby
[10:31:57] nofxx: has joined #ruby
[10:32:51] guardian: has joined #ruby
[10:33:09] ldnunes: has joined #ruby
[10:34:13] astrobunny: has joined #ruby
[10:36:50] moei: has joined #ruby
[10:40:34] usershell: has joined #ruby
[10:44:20] User458764: has joined #ruby
[10:44:43] mdw: has joined #ruby
[10:47:29] mrtomme: has joined #ruby
[10:50:58] Azulinho: has joined #ruby
[10:51:52] gbgdev: has joined #ruby
[10:57:21] hannelita: has joined #ruby
[10:57:30] big|bad|wolf: has joined #ruby
[10:57:33] oivoodoo: has joined #ruby
[10:57:58] PedramT: has joined #ruby
[10:58:32] Anderson69s_Deb: has joined #ruby
[10:59:58] livcd: hmm do i need llzma for nokogiri ?
[11:00:53] Ishido: has joined #ruby
[11:02:55] Azulinho: has joined #ruby
[11:04:08] c0d3r0x: has joined #ruby
[11:04:44] platzhirsch: has left #ruby: ()
[11:04:56] c0d3r0x: has joined #ruby
[11:05:51] c0d3r0x: has joined #ruby
[11:07:04] c0d3r0x: has joined #ruby
[11:07:41] c0d3r0x: has joined #ruby
[11:08:05] minimalism: has joined #ruby
[11:08:21] PedramT: has joined #ruby
[11:08:24] marr: has joined #ruby
[11:09:41] n00bDev: has joined #ruby
[11:10:47] platzhirsch: has joined #ruby
[11:11:08] Azulinho: has joined #ruby
[11:11:11] oivoodoo: has joined #ruby
[11:11:29] karapetyan: has joined #ruby
[11:12:02] tobacco_joe: has joined #ruby
[11:12:54] Azulinho: has joined #ruby
[11:13:42] anisha_: has joined #ruby
[11:13:51] oivoodoo: has joined #ruby
[11:16:07] Anderson69s_Deb: has joined #ruby
[11:16:54] jbrhbr: has joined #ruby
[11:17:36] c0ncealed: has joined #ruby
[11:18:01] akkmaxon: has joined #ruby
[11:19:05] ramfjord: has joined #ruby
[11:19:48] dlitvak: has joined #ruby
[11:20:07] ziyadb: has joined #ruby
[11:21:51] Kedare: Is there any working ruby planet ? All the ones I knew are kind of dead... ( http://planetruby.0x42.net/ and http://www.planetrubyonrails.org/ )
[11:22:57] djellemah_: has joined #ruby
[11:27:59] FooMunki: has joined #ruby
[11:29:51] Ox0dea: kedare: I think this is about as good as it gets nowadays: http://rubyweekly.com/issues
[11:32:07] Ox0dea: Sure thing. :)
[11:32:25] futilegames: has joined #ruby
[11:32:26] anisha_: has joined #ruby
[11:34:21] PedramT: has joined #ruby
[11:34:21] oivoodoo: has joined #ruby
[11:38:18] User458764: has joined #ruby
[11:39:39] jamto11: has joined #ruby
[11:39:46] oivoodoo: has joined #ruby
[11:42:08] jottr: has joined #ruby
[11:42:18] PedramT: has joined #ruby
[11:44:22] joncol: has joined #ruby
[11:44:22] usershell: has joined #ruby
[11:44:32] vikas027: has joined #ruby
[11:44:56] Azure: has joined #ruby
[11:47:37] PedramT: has joined #ruby
[11:48:00] Azulinho: has joined #ruby
[11:48:28] Shaboum: has joined #ruby
[11:48:28] joncol: What's a good way of deploying a Ruby application, when Windows is the target OS? Should I rely on Ruby being installed or use something like phusion/traveling-ruby to include the platform in the package...?
[11:48:37] mdw: has joined #ruby
[11:48:47] blackmes1: has joined #ruby
[11:48:48] platzhirsch: has left #ruby: ()
[11:49:57] dlitvak: has joined #ruby
[11:52:35] PedramT: has joined #ruby
[11:52:56] workmad3: joncol: if you're targeting windows, you probably want to somehow ensure ruby is installed with your package
[11:58:12] big|bad|wolf: has joined #ruby
[11:58:13] Ox0dea: joncol: "Rely" probably isn't the word, but best really is to counsel your users to have a working Ruby installation before trying to run your thing.
[12:00:51] havenwood: joncol: I haven't actually used Traveling Ruby on Windows but I think that's worth a shot!
[12:01:24] tobacco_joe: has joined #ruby
[12:01:31] havenwood: Assuming the Win support is far enough along.
[12:02:27] casadei: has joined #ruby
[12:02:35] Ox0dea: http://phusion.github.io/traveling-ruby/img/logo.png What's the reasoning behind the rotated alphabet, do you reckon?
[12:02:58] sftrabbit: has joined #ruby
[12:07:06] jamw: has joined #ruby
[12:07:26] Pupp3tm4st3r: has joined #ruby
[12:08:03] whippythellama: has joined #ruby
[12:08:33] c355E3B: has joined #ruby
[12:08:36] jespada: has joined #ruby
[12:10:29] n00bDev: has joined #ruby
[12:10:46] havenwood: Ox0dea: And did they rotate 2 or -1?
[12:10:52] Ox0dea: havenwood: Aha!
[12:11:24] Ox0dea: My level of bafflement is invariant in that regard.
[12:11:33] Ox0dea: It would've been RGB, even!
[12:13:43] Xeago: has joined #ruby
[12:14:02] tulak: has joined #ruby
[12:15:09] Pupp3tm4st3r: has joined #ruby
[12:15:27] PedramT: has joined #ruby
[12:15:28] tobacco_joe: has joined #ruby
[12:15:38] big|bad|wolf: has joined #ruby
[12:16:22] burbus: has joined #ruby
[12:18:30] burgestrand: has joined #ruby
[12:20:26] karapetyan: has joined #ruby
[12:21:54] robh71: has joined #ruby
[12:21:58] joonty: has joined #ruby
[12:23:20] robh71: has joined #ruby
[12:26:25] ferr: has joined #ruby
[12:29:17] Ox0dea: Hey, jottr.
[12:29:53] jottr: I must have some issue with the json gem (I believe). When I run rake db:migrate RAILS_ENV=test I see the following crash log: https://gist.github.com/jottr/2442688950d912f3ec60
[12:30:05] jottr: Does someone have an idea how I could debug this?
[12:31:06] lucasb: has joined #ruby
[12:31:07] Scripore: has joined #ruby
[12:31:12] Psy-Q: has left #ruby: ("...")
[12:32:30] krzkrz: has joined #ruby
[12:32:40] Eising: jottr: have you tried updating the json gem?
[12:32:45] Eising: there's an 1.8.3 out there
[12:32:48] havenwood: jottr: Try?: RAILS_ENV=test bundle exec rake db:migrate
[12:32:52] chrisseaton: jottr: attach GDB?
[12:34:00] IanV0rn2341: has joined #ruby
[12:34:30] futilegames: has joined #ruby
[12:35:05] arup_r: has joined #ruby
[12:35:19] jottr: havenwood: problem remains. and Eising problem remains with 1.8.3
[12:37:04] astrobunny: has joined #ruby
[12:39:01] mdw: has joined #ruby
[12:39:10] aupadhye: has joined #ruby
[12:39:31] sandstrom: has joined #ruby
[12:42:45] big|bad|wolf: has joined #ruby
[12:46:02] FooMunki: has joined #ruby
[12:47:18] oivoodoo: has joined #ruby
[12:50:03] dionysus69: has joined #ruby
[12:51:26] Jardayn: has joined #ruby
[12:51:51] dlitvak_: has joined #ruby
[12:52:21] pawnbox: has joined #ruby
[12:52:27] Ishido: has joined #ruby
[12:54:54] aryaching: has joined #ruby
[12:55:48] jottr: Something must be really messed up with my setup. https://gist.github.com/jottr/669b276076a323005392
[12:55:49] arup_r: has joined #ruby
[12:56:09] adgtl: has joined #ruby
[12:56:18] jottr: Could this be an issue with my rbenv?
[12:58:38] mdw: has joined #ruby
[12:58:52] lessless: has joined #ruby
[12:59:06] Ishido: has joined #ruby
[13:01:08] SamGerber: has joined #ruby
[13:01:59] jottr: Thats so weird. Why would `bundle install` not run because it `can't find rake in any of the sources`....
[13:02:04] Xeago_: has joined #ruby
[13:02:40] User458764: has joined #ruby
[13:05:04] sdothum: has joined #ruby
[13:05:38] 14WAAR304: has joined #ruby
[13:05:46] blarghlarghl: Does anyone have any insight on why mkmf's find_header would be failing to find a header when it definitely exists on the system? I'm giving it an absolute path even, and it keeps saying "checking for <x>... no"
[13:06:52] blackmes1: has joined #ruby
[13:07:05] khaki: has joined #ruby
[13:09:14] hogetaro: has joined #ruby
[13:09:38] skade: has joined #ruby
[13:09:42] _August_: has joined #ruby
[13:11:12] n00bDev: has joined #ruby
[13:11:37] usershell: has joined #ruby
[13:12:27] Mon_Ouie: Not sure find_header accepts absolute paths, have you tried find_header("foo.h", "/directory/to/file/")?
[13:13:01] blarghlarghl: Mon_Ouie: Yep!
[13:13:21] blarghlarghl: Mon_Ouie: I've also tried following http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2.html closely, the code being here: https://github.com/tenderlove/stree/blob/part2/ext/stree/extconf.rb
[13:13:51] blarghlarghl: Mon_Ouie: that last approach at least lets me also specify lots of directories, so I went and specified all of the parent dirs to search, too. Nothing.
[13:14:13] synthroid: has joined #ruby
[13:14:35] drptbl: has joined #ruby
[13:14:59] Mon_Ouie: These functions work by trying to compile a simple program to see if the file can be included (as opposed to checking for the existence of a file), maybe you need to add values to your FLAGS before calling find_header for the test program to compile properly?
[13:15:24] blarghlarghl: Mon_Ouie: ahh, interesting. okay, I'll go play with that, that's good to know.
[13:16:25] khaki: has left #ruby: ("Leaving")
[13:17:23] blarghlarghl: Mon_Ouie: Aha. It _does_ "find" it, but as you suggested, it can't include it. Digging around, I can see that it's failing because "fatal error: cstring: No such file or directory"
[13:17:37] burgestrand: has joined #ruby
[13:18:26] Mon_Ouie: Aha, so I guess you need to add CFLAGS to make it compile as C++?
[13:19:12] mdw: has joined #ruby
[13:19:37] blarghlarghl: Mon_Ouie: Yes, likely. Or libstdc++ is missing or something - but I highly doubt that.
[13:20:02] Mon_Ouie: I don't think it tries to link the produced object file when you use find_header
[13:21:11] bluOxigen: has joined #ruby
[13:21:56] [adaedra]: has joined #ruby
[13:22:27] dlitvak: has joined #ruby
[13:25:07] blarghlarghl: Mon_Ouie: with_cflags("-x c++") did the trick!
[13:25:20] rippa: has joined #ruby
[13:26:25] chipotle: has joined #ruby
[13:29:43] beast_: has joined #ruby
[13:31:27] karapetyan: has joined #ruby
[13:32:55] treaki: has joined #ruby
[13:35:55] sftrabbit: has joined #ruby
[13:36:44] mfb2: has joined #ruby
[13:37:34] griffindy: has joined #ruby
[13:37:59] rickmasta: has joined #ruby
[13:38:46] chipotle: has joined #ruby
[13:39:55] sftrabbit: has joined #ruby
[13:41:51] hnagamin: has joined #ruby
[13:42:25] jaiks: has joined #ruby
[13:44:12] joonty: has joined #ruby
[13:44:38] sgambino: has joined #ruby
[13:44:51] dfinninger: has joined #ruby
[13:44:58] Jackneill: has joined #ruby
[13:45:38] adgtl_: has joined #ruby
[13:45:55] Jardayn_two: has joined #ruby
[13:47:29] blackmes1: has joined #ruby
[13:48:02] sepp2k: has joined #ruby
[13:49:32] chipotle: has joined #ruby
[13:50:40] IanV0rn2341: has joined #ruby
[13:50:52] sftrabbit: has joined #ruby
[13:50:58] cvusr: has joined #ruby
[13:51:04] cvusr: what is the diff between ' and " in ruby ?
[13:51:40] blarghlarghl: " can be used to interpolate variables. ' cannot.
[13:51:52] _August_: has joined #ruby
[13:51:56] apeiros: also within ', only \\ and \' are escape sequences
[13:52:03] apeiros: the rest is literally a backslash followed by a char
[13:52:18] apeiros: >> puts '\t'
[13:52:20] ruby[bot]: apeiros: # => \t ...check link for more (https://eval.in/506438)
[13:52:26] apeiros: >> puts '"\t"
[13:52:28] ruby[bot]: apeiros: # => /tmp/execpad-a3a80b022a83/source-a3a80b022a83:2: unterminated string meets end of file ...check link for more (https://eval.in/506439)
[13:52:38] apeiros: >> puts "\t"
[13:52:39] ruby[bot]: apeiros: # => ...check link for more (https://eval.in/506440)
[13:53:03] chipotle: has joined #ruby
[13:53:30] cvusr: thanks, any recommended python -> ruby cheat sheat ?
[13:53:45] Ox0dea: cvusr: https://learnxinyminutes.com/docs/ruby/
[13:54:48] apeiros: not really a python -> ruby cheatsheet, but otherwise quite useful:
[13:54:51] apeiros: ?quickref cvusr
[13:54:52] ruby[bot]: cvusr: http://www.zenspider.com/Languages/Ruby/QuickRef.html
[13:55:17] mfb2: has joined #ruby
[13:56:05] shinnya: has joined #ruby
[13:57:38] emilford: has joined #ruby
[13:57:56] lucasb: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-python/
[13:59:09] BTRE: has joined #ruby
[13:59:12] ramortegui: has joined #ruby
[13:59:28] kalopsian: has joined #ruby
[14:01:03] bmalum: has joined #ruby
[14:02:37] hxegon: has joined #ruby
[14:04:18] karapetyan: has joined #ruby
[14:05:33] d10n-work: has joined #ruby
[14:06:16] Almoullim: has joined #ruby
[14:07:38] dlitvak_: has joined #ruby
[14:07:41] cvusr: why is it elsif ?? :)
[14:07:52] jamw: has joined #ruby
[14:08:16] Scripore: has joined #ruby
[14:09:13] drptbl: has joined #ruby
[14:09:15] apeiros: because that's what matz decided it to be
[14:09:47] apeiros: could ask the same for python - why elif?
[14:10:02] apeiros: ACTION actually prefers C/C++' `else if`
[14:10:15] havenwood: cvusr: Ada had it that way in 1983 but somewhere along the line Python lost an "s"!
[14:10:18] mdw: has joined #ruby
[14:10:31] tildes: has joined #ruby
[14:10:48] norc: has joined #ruby
[14:10:57] havenwood: at least pronouncing elsif turns out well
[14:11:47] norc: Shows me how much I know. I just began to understand what the GIL really is, and how many myths revolve around it.
[14:11:58] n00bDev: has joined #ruby
[14:12:48] kalopsian: has joined #ruby
[14:12:48] havenwood: norc: The GIL is dead, long live the GVL!
[14:13:19] cvusr: i once tried to remove python's GIL in the source code :)
[14:13:32] Ox0dea: "<x> is dead, long live <x>!" is dead, long live "<x> is dead, long live <x>!".
[14:13:53] Ox0dea: Welcome to SICP 101.
[14:14:40] sjums: Ox0dea > https://google.com/search?q=recursion
[14:14:55] Ox0dea: sjums: It's metacircular, I think?
[14:15:20] norc: havenwood: Heh.
[14:15:21] Ox0dea: ACTION hides his pristine copy of The Little Schemer.
[14:15:22] nertzy2: has joined #ruby
[14:15:27] Ox0dea: norc: I'm doing a very naughty.
[14:15:30] norc: I am curious though what part of Ruby it protects.
[14:15:36] treehug88: has joined #ruby
[14:16:08] cvusr: https://gist.github.com/tzickel/f153280ee390d8e351b2 <-- any way to make this more ruby ? (my first ruby code)
[14:16:15] norc: Ox0dea: Tell me more
[14:16:37] B1n4r10: has joined #ruby
[14:16:45] Ox0dea: norc: It must presently suffice to say that I'm using gensyms in a C extension. ^_^
[14:16:56] Ox0dea: (Because I have to.)
[14:17:36] Ox0dea: By which I mean to say that I'm almost certain it's the only way to do it.
[14:17:43] bensarz: has joined #ruby
[14:18:56] oivoodoo: has joined #ruby
[14:19:11] zerowaitstate: has joined #ruby
[14:19:27] cvusr: is it ruby enough ?
[14:21:50] Mon_Ouie: Does x[21..23] actually work? Even if HOMEBREW_PREFIX changes?
[14:21:57] domgetter: has joined #ruby
[14:22:12] cvusr: Mon_Ouie: nop, thats a bug i'm already fixing :)
[14:22:42] whippythellama: has joined #ruby
[14:23:00] Mon_Ouie: I'd probably use Dir.glob(???) do ??? end instead of Dir[???].each do ??? end but apart from that it looks fine
[14:23:16] dlitvak: has joined #ruby
[14:23:44] JohnT: has joined #ruby
[14:23:56] Almoullim: If anyone wont be botherd to answer, could you tell why ruby is the right language for you/
[14:24:07] cvusr: Mon_Ouie: i'm keeping the style of the whole script which is like that
[14:24:29] dwfait: has joined #ruby
[14:24:40] Almoullim: no need for complications, just simple answers :D
[14:24:52] DoubleMalt: has joined #ruby
[14:24:56] cvusr: Almoullim: because I must submit a patch to a project written in ruby :)
[14:24:57] shevy: Almoullim it maps easily to simple thinking
[14:25:24] kalopsian: has joined #ruby
[14:25:36] fmcgeough: has joined #ruby
[14:25:40] krzkrz: has joined #ruby
[14:26:35] Almoullim: if it is not fair to ask, please, do not answer. Would you say that ruby is better than Python, or every language has it own purposes.
[14:26:57] shevy: what's with those strange disclaimers
[14:27:54] cvusr: better for what ? python has stuff that ruby almost doesn't have which is a major scientific community
[14:28:10] Almoullim: LOL, i asked almost the same question in another channel and they almost ate me alive
[14:28:25] Almoullim: sorry, for Web Applications
[14:28:25] davedev24: has joined #ruby
[14:28:27] tildes: has joined #ruby
[14:28:57] Xeago: has joined #ruby
[14:28:59] shevy: yeah ruby is better than python
[14:29:16] cvusr: both have stuff from flask / sinatra up to rails / django
[14:29:57] VeryBewitching: has joined #ruby
[14:30:12] norc: Almoullim: Languages are like editors or religion. Pick one you like, but try not to discuss your choice.
[14:30:20] VeryBewitching: Good morning folks.
[14:30:32] ddv: also you're in Ruby do you think we are going to recommend Python?
[14:30:48] hogetaro: has joined #ruby
[14:30:57] hahuang65: has joined #ruby
[14:31:06] adgtl: has joined #ruby
[14:31:08] Almoullim: I will search about the both languages but i just wanted to see some opinions on them
[14:31:18] Ox0dea: Almoullim: Why?
[14:31:30] norc: Almoullim: Would you go into a VW shop and ask their opinion about Mercedes Benz?
[14:31:41] Almoullim: i know thats why i asked, i wanted to know why do you prefer ruby
[14:31:42] norc: Or would you go into a VW shop and ask them whether VW is good?
[14:31:44] ddv: DHH explains it fairly well why the philosophy of Ruby is better than Python: http://rubyonrails.org/doctrine/
[14:32:03] mdw: has joined #ruby
[14:32:07] Almoullim: and i will se why python people prefer their language and then i will decide based on that and more search on google.
[14:32:08] norc: ddv: I stopped reading after DHH. Can you summarise your sentence?
[14:32:26] ddv: norc: no you can troll elsewhere
[14:33:07] norc: ddv: I am just very allergic to the name since he just shoves Basecamp down every Rails users throat.
[14:33:23] Ox0dea: DHHIMASWAM.
[14:33:24] dfinninger: has joined #ruby
[14:33:55] VeryBewitching: Almoullim: I love Ruby because if I'm going to spend my day writing code, it should be in a language that doesn't feel like I'm fighting to express my business logic in.
[14:34:23] VeryBewitching: Python has its uses and I don't begrudge their community or Python itself, but I'd rather write Ruby code than almost anything else.
[14:35:01] dfinninger: has joined #ruby
[14:35:02] peeja: has joined #ruby
[14:35:03] dwfait: has joined #ruby
[14:35:05] oivoodoo: has joined #ruby
[14:35:29] oivoodoo: has joined #ruby
[14:35:41] Almoullim: Great, just what i wanted to read (People opinions or feeling for that matters)
[14:35:44] konsolebox: Almoullim: just curious, what is their best argument about why Python could be better than Ruby?
[14:36:06] sucks: has joined #ruby
[14:36:12] Almoullim: havent gone there yet, i started with you :D
[14:36:17] aegis3121: has joined #ruby
[14:36:26] VeryBewitching: Almoullim: That's the start of my opinion, to fully summarize I would say "Use whatever language *you* like, try them all!"
[14:36:43] VeryBewitching: Language all the things.
[14:36:48] dlitvak_: has joined #ruby
[14:36:49] Ox0dea: VeryBewitching: There are thousands!
[14:37:01] VeryBewitching: You'll *never* be bored
[14:37:09] joonty: has joined #ruby
[14:37:31] Almoullim: VeryBewitching: thanks for the advice, I'm PHP guy and now I started to think that i should explore some other kanguages
[14:37:48] VeryBewitching: Almoullim: Oh, I was a PHP guy for about 15 years.
[14:37:56] VeryBewitching: Then I met this girl named Ruby
[14:38:00] VeryBewitching: And I like her :D
[14:38:06] oivoodoo: has joined #ruby
[14:38:15] JohnT: has joined #ruby
[14:38:23] cvusr: but now there is PHP 7 :)
[14:38:34] emilford: has joined #ruby
[14:38:43] Almoullim: VeryBewitching: thats too long, I've been using PHP only for about 3 years now
[14:38:51] VeryBewitching: Almoullim: Read this: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
[14:38:58] VeryBewitching: He captured it best.
[14:39:09] Ox0dea: cvusr: https://eval.in/506448
[14:39:20] Ox0dea: Probably some things in there you shouldn't actually do, but good for your bag of tricks.
[14:39:40] sucks: has joined #ruby
[14:39:51] apeiros: I guess we should add ?isrubybetterthanx
[14:40:27] shevy: norc yeah I could not finish the latest blog, too much promo content IMO
[14:40:32] above: has joined #ruby
[14:40:37] Ox0dea: VeryBewitching: Is Eevee okay with "he", then?
[14:40:55] newdan: has joined #ruby
[14:41:02] VeryBewitching: Ox0dea: You'd have to ask Eevee.
[14:41:11] cvusr: Ox0dea: cool, will read it (altough I just did a PR for it :) )
[14:41:34] Ox0dea: VeryBewitching: "she/they/he" according to https://twitter.com/eevee
[14:41:34] shevy: php is the only language where you can jump from version 5 to 7 and nobody will wonder!
[14:42:13] ddv: PHP was originally a hack not meant to be taken seriously
[14:42:20] Ox0dea: cvusr: You submitted your PR with "pyhton" in the method name? :(
[14:42:29] shevy: can you still take php seriously? :)
[14:42:31] ddv: then people started to use it in production
[14:42:32] dlitvak: has joined #ruby
[14:42:35] cvusr: Ox0dea: it's for homebrew :)
[14:42:46] Ox0dea: cvusr: "pyhton"
[14:42:52] shevy: ddv know what would be cool? a language that starts at version 10, and will decrement until 1! which will be the final version haha
[14:42:53] VeryBewitching: Ox0dea: I never looked at his/her/their Twitter feed before.
[14:43:04] ddv: nice shevy
[14:43:11] VeryBewitching: OK, I have to go kill MySQL for a bit, bbs
[14:43:28] Almoullim: konsolebox: for your curiousity: SomeStranger: IMO ruby is good for nothing except learning purposes
[14:43:32] shevy: ruby 1.0 - the ultimate ruby version
[14:43:37] cvusr: Ox0dea: ahh, nop, just a typo here
[14:43:57] shevy: Almoullim you can find trolls anywhere!
[14:44:06] Ox0dea: Including right here right now...
[14:44:24] Ox0dea: I hope you're happy.
[14:44:38] s00pcan: has joined #ruby
[14:44:56] oivoodoo: has joined #ruby
[14:45:10] Frem: has joined #ruby
[14:45:13] Almoullim: you have been somehow helpful, i just need to search on my own now get to the final verdic
[14:45:26] casadei: has joined #ruby
[14:45:37] shevy: Almoullim uh oh... you may soon be given a strange image with some man with a beard wagging a finger
[14:46:16] apeiros: ACTION thinks that "collecting facts about two languages, making up a list and then decide" is about as good as flipping a coin
[14:46:16] shevy: with the Caption "I don't believe you!"
[14:46:30] apeiros: go use each language for a week or two. then you've got something to decide.
[14:46:32] shevy: yeah except... that apeiros also designs his own language!
[14:46:42] apeiros: who doesn't?
[14:46:43] havenwood: and it's impossible to weight a coin flip
[14:47:02] hnagamin: has joined #ruby
[14:47:10] speakingtoad: has joined #ruby
[14:47:47] speakingtoad: has joined #ruby
[14:47:56] Almoullim: apeiros: i'm not just collectng facts, i will search about both, and i will try both, and then i will decide which suits me best :)
[14:47:57] Ox0dea: havenwood: Unless you don't actually flip it! :P
[14:48:02] mdw7: has joined #ruby
[14:48:04] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[14:48:19] chipotle: has joined #ruby
[14:48:20] newdan: Almoullim: what's the other language?
[14:48:28] 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!
[14:48:47] cvusr: newdan: php or java
[14:49:03] newdan: Oh lol what
[14:49:14] Almoullim: newdan: Ruby or Python
[14:49:34] Ox0dea: shevy: You thought Ron Burgundy had a beard?
[14:49:40] shevy: Almoullim well really, the difference is not huuuuuge... the biggest is the philosophy really
[14:49:54] shevy: I have no idea who that is... but I think I saw him in some strange blooper
[14:50:03] moufl: has joined #ruby
[14:50:23] Ox0dea: Ron Burgundy is the fellow in the "I don't believe you" GIF.
[14:50:55] Almoullim: well, i think thats about enough discussion for me, i will move on to search and try some codes ;)
[14:51:00] shevy: somehow this name makes me hungry
[14:51:14] Ox0dea: But it's a shade of red!
[14:51:16] shevy: Almoullim so - is it ruby or python
[14:52:11] TomPeed: has joined #ruby
[14:52:12] iamvery: has joined #ruby
[14:52:13] Almoullim: I'll fisrt do some search and see some code or perhaps try to code in both, and then i will decidee
[14:52:33] VeryBewitching: I suggest working with both on a small project.
[14:52:33] Almoullim: i will let you know when i do :)
[14:52:47] davedev24: has joined #ruby
[14:52:49] Almoullim: Yes thats right.
[14:52:55] nertzy2: has joined #ruby
[14:53:02] shevy: ok so ruby
[14:53:05] VeryBewitching: Task: Write a command line app in Ruby and Python, both of which read a Twitter feed.
[14:53:45] shevy: write a game!
[14:53:47] babblebre: has joined #ruby
[14:57:27] malconis: has joined #ruby
[14:58:45] pawnbox_: has joined #ruby
[14:59:05] dlitvak_: has joined #ruby
[15:00:09] davedev24: has joined #ruby
[15:00:45] craigp: has joined #ruby
[15:01:01] craigp: has joined #ruby
[15:02:09] v0n: has joined #ruby
[15:04:54] dlitvak: has joined #ruby
[15:05:28] hannelita: has joined #ruby
[15:05:31] lacuna: has joined #ruby
[15:06:23] blarghlarghl: I'm trying to create a gem with an external library. There are some steps involved to compile this and get the .so file which Ruby can use. I have those steps in a Rake task. How do I have a gem install trigger that rake task to do the actual compiling-on-install?
[15:06:35] f4cl3y: has joined #ruby
[15:06:58] Ox0dea: blarghlarghl: http://guides.rubygems.org/gems-with-extensions/
[15:07:14] Ox0dea: But I think you might mean something different?
[15:07:19] sgambino: has joined #ruby
[15:07:21] blarghlarghl: Ox0dea: yeah, I've read that. Doesn't help.
[15:07:31] Ox0dea: blarghlarghl: You want to execute some code post-install?
[15:08:12] dlitvak__: has joined #ruby
[15:09:03] blarghlarghl: Ox0dea: No, I think I want just a regular run of the mill gem with extension. So the thing you linked helps. I'm just not sure I follow. Give me 2 minutes.
[15:09:12] malconis: has joined #ruby
[15:09:20] dudedudeman: has joined #ruby
[15:09:44] Ox0dea: blarghlarghl: There's a sort of TL;DR near the bottom.
[15:11:43] konsolebox: Almoullim: well i was hoping for a more technical reply
[15:11:59] bensarz: has joined #ruby
[15:11:59] bronson: has joined #ruby
[15:12:07] anisha_: has joined #ruby
[15:13:04] blarghlarghl: Ox0dea: I think I'm confused on where the actual work gets done and how it knows. So I'm not using rake-compile, but I have a rake task which calls extconf and make. that produces the .so file. how do I get that to run during install? and then how do I get the .so file moved to where I want it to?
[15:13:37] blarghlarghl: Ox0dea: Or does all that happen magically and i don't even need the rake task, and it all happens because I declared an extension in my gemfile?
[15:13:43] SamGerber: has joined #ruby
[15:13:45] Ox0dea: blarghlarghl: Right, the latter. :)
[15:13:58] Ox0dea: Assuming you meant gemspec.
[15:14:04] n00bDev: has joined #ruby
[15:14:04] blarghlarghl: Er, yes, I did.
[15:14:24] blarghlarghl: Now I'm kind of upset, because I wasted so much effort to stitch it together myself and someone's done it for me. :)
[15:14:39] Ox0dea: The happy kinda sad.
[15:16:42] Musashi007: has joined #ruby
[15:18:30] karapetyan: has joined #ruby
[15:18:31] ferr: has joined #ruby
[15:19:23] blarghlarghl: Ox0dea: bit new to gem building as you can see. I assume that things like Gemfiles and Rakefiles also go into the gemspec's 'files' array? Literally every file that gets shipped (but not files that are generated like the .so files, of course)
[15:20:13] betafive: has joined #ruby
[15:20:27] gheegh: has joined #ruby
[15:20:27] Ox0dea: blarghlarghl: Aye, the default's quite sane.
[15:21:04] gheegh: hey all.. question.. if you have two LARGE (around 1mb) hashes, how would you do a diff of them? i was using hashdiff, and it's a pig.. taking more than an hour to do it.
[15:21:17] emilford: has joined #ruby
[15:21:34] gheegh: this is essentially to compute a changelog
[15:21:36] apeiros: gheegh: define "diff"
[15:21:43] gheegh: so its not supposed to be a heavy process
[15:22:02] gheegh: changed fields & values
[15:22:13] treehug88: output in deterministic fashion; use diff
[15:22:19] drptbl: has joined #ruby
[15:22:39] apeiros: also 1MB isn't necessarily a large hash. {"single key" => "1"*1000000} # there, 1MB hash, one key
[15:22:57] kalopsian: has joined #ruby
[15:23:04] gheegh: yeah, well on HashDiff, it's taking more than 1 hour to compare 2 hashes.
[15:23:12] apeiros: how many keys?
[15:23:14] gheegh: that has a singel key..:-)
[15:23:30] gheegh: 58 root keys
[15:23:35] dlitvak: has joined #ruby
[15:23:36] gheegh: some of those are array, with keys below.
[15:23:43] apeiros: gheegh: I'd probably do it manually then and profile to improve the code. if all you want is changed fields and values that's not hard to do.
[15:24:00] gheegh: yeah, i was tying to do it "not-specific"
[15:24:01] apeiros: arrays don't have keys??? do you mean nested hashes?
[15:24:08] chipotle: has joined #ruby
[15:24:23] usershell: has joined #ruby
[15:24:27] gheegh: some of those root keys have values of arrays, with hashes in the array..
[15:24:37] dfinninger: has joined #ruby
[15:24:45] apeiros: and you want subdiffs of those?
[15:24:46] adgtl: has joined #ruby
[15:25:22] gheegh: talking through it here, i'm coming to the conclusion.. that doing this quickly.. it will have ot be custom
[15:25:33] apeiros: well, if you want it generically, you might have to settle on the thought that it does take time.
[15:25:46] apeiros: the alternative is to write code optimized for your specific usecase.
[15:25:50] apeiros: there's also this:
[15:25:53] ruby[bot]: https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[15:25:55] SenpaiSilver_: has joined #ruby
[15:26:06] apeiros: maybe there's another gem which does diffs on hashes faster.
[15:26:12] gheegh: the most common case is that it's pulling ti from ElasticSearch, making 1 change, and then putting it back.. I"m trying to log what changed.
[15:26:25] apeiros: yet another option is to consider a different base data structure to begin with, which yields better to diffing
[15:26:46] apeiros: then log the change instead of figuring it out?
[15:27:15] speakingtoad: It's like diffing trees basically, interesting problem
[15:27:17] gheegh: the idea is that i can pick up processing along the way.. it it crashes midstream..
[15:27:29] govg: has joined #ruby
[15:27:34] gheegh: yeah, i was considering trying something iwthi a trie
[15:27:53] SamGerber: has joined #ruby
[15:28:07] N3sh108: has joined #ruby
[15:28:18] sftrabbit: has joined #ruby
[15:28:22] speakingtoad: Whatever you're using now seems to not be linear
[15:28:27] gheegh: apeiros: that would mean embedding "logging" logic all over hte app
[15:28:31] s00pcan: has joined #ruby
[15:28:38] gheegh: yeah, tis not.
[15:28:53] apeiros: if you've edit point all over the app instead of a clean interface for edits??? well, yes.
[15:28:59] N3sh108: hello there! I am having some troubles with RoR. I just created a model and I would like to generate a controller for it. How do I do it? If I do 'db:migrate' I get an error concerning the role not being present
[15:29:06] gheegh: you have the JSON before, and after save.. if you can do a diff efficiently.. then that's the better way
[15:29:13] apeiros: ?rails N3sh108
[15:29:13] ruby[bot]: N3sh108: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[15:29:36] speakingtoad: N3sh108: rails g controller MyModelsController
[15:29:43] apeiros: gheegh: you just claimed otherwise a few minutes ago :-p
[15:29:51] f4cl3y: has joined #ruby
[15:30:07] N3sh108: thanks speakingtoad ;)
[15:30:28] apeiros: anyway, I mentioned the options I see
[15:30:30] gheegh: ha.. yeah, its not efficient right now.. but that assumes I'm 1) using the most right gem and 2) the best approach..
[15:31:07] nertzy2: has joined #ruby
[15:31:09] speakingtoad: If performance is an issue it seems to me the cost of logging the change where it occurs is < implementing your own solution
[15:32:19] gheegh: yeah.. its not going to work as is.. we do about 100K of these "writes" an hour.
[15:32:43] speakingtoad: Tracking the change your making is likely always more efficient computationally than looking for it after, and in terms of your time which costs more than cpu time, well..
[15:32:43] gheegh: thanks for the thoughts everyone
[15:33:01] gheegh: yeah.. probably will end up there..
[15:33:19] gheegh: but this is done across a dozen models.. it would be nice to have a clean, unified solution
[15:33:26] kies^: has joined #ruby
[15:33:37] speakingtoad: Make a mixin?
[15:34:39] ellen_: has joined #ruby
[15:35:27] gheegh: yeah, that's what it is.. :)
[15:38:33] adgtl: has joined #ruby
[15:38:34] parus: has joined #ruby
[15:38:37] momomomomo: has joined #ruby
[15:38:42] dlitvak_: has joined #ruby
[15:42:15] dlitvak__: has joined #ruby
[15:42:46] momomomomo: has joined #ruby
[15:42:54] tjohnson: has joined #ruby
[15:43:36] boboc: has joined #ruby
[15:43:39] dlitvak: has joined #ruby
[15:44:15] dhollinger: has joined #ruby
[15:44:23] mdw: has joined #ruby
[15:44:47] livcd: can i force the version of gem rails depends on (nokogiri?)
[15:46:44] asccigcc: has joined #ruby
[15:47:00] gbgdev: has joined #ruby
[15:49:39] adgtl: has joined #ruby
[15:49:43] karmatr0n: has joined #ruby
[15:51:52] PedramT: has joined #ruby
[15:54:00] dlitvak_: has joined #ruby
[15:54:10] sgambino: has joined #ruby
[15:54:58] karapetyan: has joined #ruby
[15:55:48] Guest38: has joined #ruby
[15:55:52] dudedudeman: has joined #ruby
[15:58:36] blackmes1: has joined #ruby
[15:59:39] PedramT: has joined #ruby
[16:00:41] lessless: has joined #ruby
[16:00:51] dionysus69: has joined #ruby
[16:01:19] sftrabbit: has joined #ruby
[16:02:12] Pupeno: has joined #ruby
[16:02:12] Pupeno: has joined #ruby
[16:03:08] mchu: has joined #ruby
[16:03:25] blarghlarghl: Is it possible in a Gemfile to specify a github url to a gemspec to install, but the gemspec is _not_ in the root of the repo?
[16:03:34] SenpaiSilver: has joined #ruby
[16:04:43] cschneid_: has joined #ruby
[16:04:46] soahccc: blarghlarghl: what is that for a gem? :D sure its not a submodule or something?
[16:04:46] Ox0dea: blarghlarghl: Looks like not. :<
[16:05:02] terminalrecluse: has joined #ruby
[16:05:17] Ox0dea: A submodule might do, but that's just putting a bit of spin on "root".
[16:05:19] LMity: has joined #ruby
[16:05:50] hannelita: has joined #ruby
[16:05:57] karapetyan: has joined #ruby
[16:06:33] pawnbox: has joined #ruby
[16:06:36] skade: has joined #ruby
[16:06:39] ramfjord: has joined #ruby
[16:07:08] blarghlarghl: soahccc, Ox0dea, no, not a submodule. I want this: gem 'nokogiri', :git => 'https://github.com/tenderlove/nokogiri.git' but the gemspec file is not in the root of that repo, but in /ruby/
[16:07:44] Ox0dea: blarghlarghl: Your inability to do so is quite deliberate.
[16:08:05] Ox0dea: They specifically don't want folks running edge Nokogiri.
[16:08:23] blarghlarghl: wait, how does that stop people running edge nokogiri?
[16:08:29] blarghlarghl: gem 'nokogiri', :git => 'https://github.com/tenderlove/nokogiri.git' # this works after all
[16:08:38] jamw: has joined #ruby
[16:08:45] Ox0dea: Er, then what problem needs solved?
[16:09:45] mdw: has joined #ruby
[16:10:00] krzkrz: has joined #ruby
[16:10:18] Ox0dea: blarghlarghl: Are you sure that works? https://github.com/tenderlove/nokogiri
[16:10:34] blarghlarghl: well, https://github.com/sparklemotion/nokogiri/ does. I just copy and pasted from the bundler docs.
[16:11:14] Ox0dea: blarghlarghl: https://git.io/vza7y
[16:11:43] blarghlarghl: Okay, this is not the issue Ox0dea
[16:12:04] blarghlarghl: I am following http://bundler.io/v1.11/git.html
[16:12:06] apeiros: "Sometimes people imply that we've forgotten, or that we don't how to properly manage our codebase. Those people are super fun to respond to!"
[16:12:12] blarghlarghl: I am not using nokogiri. :)
[16:13:17] blarghlarghl: if it aids the discussion, then I'll use :git => 'https://github.com/rails/rails.git' as an example. That should work - there's a gemspec file in the root of that repo.
[16:13:27] x77686d: has joined #ruby
[16:13:38] blarghlarghl: The question now is - how do I do that: :git => 'https://github.com/rails/rails.git' # but without a .gemspec in the root of the repo, but in a subdirectory. :)
[16:13:44] goodcodeguy: has joined #ruby
[16:14:35] freerobby: has joined #ruby
[16:14:48] n00bDev: has joined #ruby
[16:15:04] sigurding: has joined #ruby
[16:16:05] Ox0dea: blarghlarghl: https://git.io/vzadR
[16:16:19] Ox0dea: That's a decent handful of options, but none of them has anything to do with subdirectories.
[16:16:27] kspencer: has joined #ruby
[16:17:03] DonOtreply: has joined #ruby
[16:17:24] blarghlarghl: Ox0dea: argh. hm.
[16:17:28] Trieste: has joined #ruby
[16:17:31] blarghlarghl: thanks Ox0dea
[16:17:37] Ox0dea: Sure thing, blarghlarghl.
[16:18:02] Ox0dea: (I couldn't help saying your nick aloud that time.)
[16:19:31] blarghlarghl: Ox0dea: You can guess the state I was in when I picked it. Most definitely because of some a computer issue.
[16:19:38] Ox0dea: I believe it. :P
[16:20:01] Ox0dea: It's not entirely clear why it's not an option, mind, but I suspect that the fact that there are just saner ways to achieve the same effect has something to do with it.
[16:21:08] Ox0dea: I had a blarghlarghl moment just this morning when I discovered that `ls` now defaults to --quoting-style=shell-escape.
[16:21:32] sgambino: has joined #ruby
[16:22:15] tomchapin: has joined #ruby
[16:22:55] blarghlarghl: Ox0dea: Well, it's all a bit of an edge case here. I am writing gemspecs for a set of language bindings (as you have probably surmised) to a commercial library that's a customer of ours, but they've given me push access to their repo. but i can't just go and restructure all their stuff and i also can't just create a new repo just for the gem.
[16:23:40] rkazak: has joined #ruby
[16:25:24] TomyLobo: has joined #ruby
[16:27:15] Ox0dea: blarghlarghl: Secret Gists not an option, I trust?
[16:27:37] Anasta7: has joined #ruby
[16:27:43] blarghlarghl: Ox0dea: not the worst idea... what does a gist get me?
[16:28:18] Anderson69s: has joined #ruby
[16:28:34] Ox0dea: blarghlarghl: Well, Gists are valid Bundler sources.
[16:28:52] chouhoulis: has joined #ruby
[16:29:02] oivoodoo: has joined #ruby
[16:29:58] scottschecter: has joined #ruby
[16:30:21] Ox0dea: Too "flat" for your intended use case, though. :/
[16:31:35] bjessbrown: has joined #ruby
[16:31:35] astrobunny: has joined #ruby
[16:31:37] hahuang65: has joined #ruby
[16:31:42] oivoodoo: has joined #ruby
[16:32:12] dudedudeman: can i ask what #ruby thinks of scala?
[16:32:16] troulouliou_div2: has joined #ruby
[16:32:19] blarghlarghl: Ox0dea: yeah, likely. I'll keep casting about. thanks. i'm going to go for a walk first.
[16:32:27] efox: has left #ruby: ("adios!")
[16:34:06] Ox0dea: dudedudeman: So much syntax! <3
[16:34:26] dudedudeman: ha. i???m starting to realize that, @Ox0dea
[16:34:29] einarj: has joined #ruby
[16:34:55] dudedudeman: my office is doing an intro to functional programming class during office hours, and I won a copy of the book they???re using(scala book), and i???m kind of interested to see how i feel about it
[16:35:03] Ox0dea: blarghlarghl: I'm pretty sure you want a submodule, but I don't know how much "restructuring" you'd count that as.
[16:35:12] dudedudeman: i???ve only really touched ruby, so i???m trying to wrap my head around what hte learning cuve is going to be
[16:35:54] Ox0dea: dudedudeman: It's surely not the simplest introduction to FP, but it does make a lot of things "easy".
[16:36:03] Ox0dea: Which, hey!, is one of the biggest Ruby draws.
[16:36:12] dudedudeman: that???s good to know
[16:36:29] dudedudeman: all of our server side code at the office is written in scala, so i???ll be able to peg some people here about questions
[16:36:59] antgel: has joined #ruby
[16:37:09] Ox0dea: Good deal. Be wary of the Java interop, though.
[16:38:10] dudedudeman: yeah, i don???t know much java at all
[16:38:34] TomyLobo: has joined #ruby
[16:38:54] wldcordeiro: has joined #ruby
[16:39:51] dlitvak: has joined #ruby
[16:40:12] RTG`: has joined #ruby
[16:41:03] kojak_: has joined #ruby
[16:42:13] speakingtoad: has joined #ruby
[16:42:37] jbrhbr: has joined #ruby
[16:42:40] kojak_: I have the following code: http://pastebin.com/k8UG0EXi. That lambda is further called within a method of deliverv. However, it yields this error: `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError)
[16:42:41] ruby[bot]: kojak_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/193ee4f292e69d4c3ea2
[16:42:42] ruby[bot]: kojak_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:43:37] kojak_: I include net/sftp in both files, so I don't understand. Any tips?
[16:47:46] Ox0dea: kojak_: `config` and `@config` aren't the same thing.
[16:48:04] Ox0dea: >> @foo[] rescue $!
[16:48:06] ruby[bot]: Ox0dea: # => #<NoMethodError: undefined method `[]' for nil:NilClass> (https://eval.in/506530)
[16:48:57] kojak_: Thank you, Ox0dea
[16:49:04] Ox0dea: kojak_: Happy to help. :)
[16:49:33] sftrabbit: has joined #ruby
[16:50:07] PedramT: has joined #ruby
[16:50:15] FernandoBasso: has joined #ruby
[16:50:32] ramfjord: has joined #ruby
[16:52:29] psye: has joined #ruby
[16:53:34] mostlybadfly: has joined #ruby
[16:53:39] psye: has joined #ruby
[16:54:31] dfockler: has joined #ruby
[16:54:55] arup_r: has joined #ruby
[16:55:09] skade: has joined #ruby
[16:56:00] Xeago: has joined #ruby
[16:56:11] skcin7: has joined #ruby
[16:58:21] rakm: has joined #ruby
[16:58:40] lobster: has joined #ruby
[16:58:47] Anderson69s: has joined #ruby
[17:00:11] arthropododo: has joined #ruby
[17:00:35] AndChat-641136: has joined #ruby
[17:00:53] zambini: has joined #ruby
[17:01:22] polishdub: has joined #ruby
[17:01:35] peeja: has joined #ruby
[17:01:54] amclain: has joined #ruby
[17:02:05] burgestrand: has joined #ruby
[17:02:27] norc_: Ox0dea, how is that naughty?\
[17:02:46] arup_r: has joined #ruby
[17:03:09] arthropododo: has joined #ruby
[17:03:19] skade: has joined #ruby
[17:03:35] Ox0dea: norc_: Gensyms. In C.
[17:03:50] Ox0dea: But it didn't work. :<
[17:04:08] Ox0dea: Can't declare functions in functions and have them be accessible from outside.
[17:04:48] Ox0dea: I *briefly* considered constructing strings of C code and bringing them back in with dlopen(), but that's just too much.
[17:04:52] blarghlarghl: Ox0dea: yeah, i'm starting to think the same thing.
[17:05:02] Ox0dea: blarghlarghl: It's pretty straightforward.
[17:05:27] norc_: Ox0dea, so you want to define Ruby methods and be able to call them from C-world?
[17:05:37] Ox0dea: norc_: Other way round. ^_^
[17:05:52] Ox0dea: It's very intertwingled.
[17:05:56] blarghlarghl: Ox0dea: i know, it is, it's just an extra layer of ... wait, am i allowed to swear in here?
[17:05:57] Ox0dea: But I want it to be a surprise.
[17:06:00] norc_: Im beginning to notice that it is.
[17:06:27] norc_: blarghlarghl, sure, if it is appropriate.
[17:06:57] karapetyan: has joined #ruby
[17:07:06] norc_: Ox0dea, I am not sure how that could possibly be a problem to you yet.
[17:07:08] Ox0dea: blarghlarghl: Since when is "indirection" profane?
[17:07:28] blarghlarghl: Yeah. Let's go with that. :)
[17:07:54] Ox0dea: norc_: There's an MRI API that accepts C functions as arguments; I want to define those functions with Ruby blocks.
[17:07:55] sandstrom: has joined #ruby
[17:08:09] gruz0: has joined #ruby
[17:08:27] norc_: I can see how this might be non-trivial.
[17:08:50] norc_: Ox0dea, doing a bit of googling I stumbled over this mighty fine piece by the way: https://rubygems.org/gems/RubyInline/versions/3.12.4
[17:08:58] Ox0dea: Yep, I was familiar.
[17:09:08] Ox0dea: It'd probably work, but I wanted to do it without.
[17:09:16] norc_: Yeah I figured that much already.
[17:09:34] pietr0: has joined #ruby
[17:13:15] casadei: has joined #ruby
[17:14:05] ss_much: has joined #ruby
[17:14:15] bronson: has joined #ruby
[17:15:23] norc_: Ox0dea, https://github.com/ruby/ruby/blob/trunk/thread.c#L583-L599
[17:15:26] norc_: Look at that.
[17:15:34] n00bDev: has joined #ruby
[17:15:38] norc_: It almost looks like Ruby even.
[17:16:07] blarghlarghl: Ox0dea: actually, can't i just do this: gem 'extracted_library', :path => './vendor/extracted_library' except for a _not_ extracted library, i.e. for a .gem bundle?
[17:16:55] blarghlarghl: i can host the .gem file somewhere on our network and then just have the gemfile fetch and install it directly, without running a gem server, surely...
[17:17:23] _djbkd: has joined #ruby
[17:18:40] jxs_: has joined #ruby
[17:19:26] Ox0dea: blarghlarghl: DEFAULT_GLOB = "{,*,*/*}.gemspec"
[17:19:30] Ox0dea: Maybe, though.
[17:19:48] Ox0dea: I don't see why it couldn't be finagled into just doing the unpacking.
[17:20:02] Ox0dea: norc_: Does it now? :P
[17:20:33] blarghlarghl: Ox0dea: yeah, :path is for unpacked ones only it seems... irritating. but I can cheat. I can clone the repo using chef, then point to the cloned repo in the gemfile. it's another layer of... indirection, but there we are.
[17:20:43] ls: has joined #ruby
[17:21:19] Ox0dea: norc_: thread_start_func_2() is not the most promising name.
[17:21:27] tobacco_joe: has joined #ruby
[17:22:04] casadei: has joined #ruby
[17:22:33] Xeago: has joined #ruby
[17:23:13] kalopsian: has joined #ruby
[17:23:41] ajf-: has joined #ruby
[17:24:12] norc_: Ox0dea, it follows the common naming convention. Take a function name, and append an integer or _fix or _two to it and then use it.
[17:24:20] norc_: Ox0dea, it is a bit bad though.
[17:24:39] foufou31d: has joined #ruby
[17:24:51] norc_: Ox0dea, they should have done a #define THREAD_START_FUNC_2 thread_start_func_2 for proper calling conventions sake.
[17:25:07] Ox0dea: norc_: There's a lot of that goin' around.
[17:25:21] B1n4r10: has joined #ruby
[17:25:42] User458764: has joined #ruby
[17:26:10] blackmesa: has joined #ruby
[17:27:36] aryaching: has joined #ruby
[17:27:49] skade: has joined #ruby
[17:27:51] norc_: Ox0dea, the whole code base is pretty anti vim
[17:28:16] norc_: Ox0dea, you really need an IDE that does full preprocessing to quickly navigate code. :/
[17:28:44] n00bDev: has joined #ruby
[17:28:51] goodcodeguy: has joined #ruby
[17:28:54] Ox0dea: ctags is fine ~90% the time for MRI.
[17:29:09] Ox0dea: But you're right, higher would be nice.
[17:30:54] karapetyan: has joined #ruby
[17:30:58] dlitvak: has joined #ruby
[17:32:43] user083: has joined #ruby
[17:33:00] _djbkd: has joined #ruby
[17:33:50] pdoherty: has joined #ruby
[17:36:17] Limix: has joined #ruby
[17:37:59] _djbkd: has joined #ruby
[17:40:43] machinewar: has joined #ruby
[17:41:12] machinewar: anyonen seen this with rails server? log writing failed. "\xE2" from ASCII-8BIT to UTF-8
[17:41:43] machinewar: I understand the encoding issue, but not sure what code is throwing this error, gets printed to console when run rails server
[17:42:10] symm-: has joined #ruby
[17:42:14] machinewar: thinking need to fore_encode 'utf-8' but no idea where to place the fix
[17:42:40] soahccc: machinewar: you should have a backtrace, no?
[17:43:47] machinewar: soahccc: this is on my development machine when i initially run the rails server command, will check devlopemnt logs and see if anything was written
[17:43:55] _djbkd: has joined #ruby
[17:44:25] aditya: has joined #ruby
[17:44:32] bnagy: has joined #ruby
[17:44:35] SenpaiSilver: has joined #ruby
[17:44:45] mchu: has joined #ruby
[17:45:13] aditya: Is ruby good for first time programmers
[17:46:03] machinewar: soahccc: its strange, its trying to log something between Ctrl-C to shutdown server, Listening on IP:Port
[17:46:03] soahccc: Aditya: yes because it's awesome, no because you have a hard time looking at other languages :D
[17:46:12] machinewar: Aditya: I would say its a great language for first time programmers
[17:46:48] aditya: I know the basics like "abc" of c++ from school
[17:47:18] aditya: But i feel like it's gonna take too long before i do something productive with c++
[17:47:31] emilford: has joined #ruby
[17:47:51] shevy: Aditya it depends on how you wanna learn, if you are happy to use the basics and be productive, then yeah, ruby is very simple. if you wanna learn everything and use everything, it can be very complex and probably confusing at times
[17:48:06] shevy: like when you have to know... what is -> versus Proc.new versus lambda
[17:48:23] shevy: I solved it by banning -> and lambda !!!
[17:48:50] soahccc: shevy: I would ban anything but -> :D
[17:49:07] shevy: see Aditya, everything is using ruby differently
[17:49:12] shevy: erm, *everyone
[17:49:41] aditya: Well i wanted to design a website of mine
[17:50:05] shevy: if you go the rails route, that's quite a lot of extra stuff to know
[17:50:31] aditya: What other route is their?
[17:50:34] ferr: has joined #ruby
[17:50:40] adgtl: has joined #ruby
[17:51:16] shevy: sinatra is also somewhat simple
[17:51:29] aditya: I will look into that
[17:51:35] aditya: What are they btw?
[17:51:49] Abrin: has joined #ruby
[17:51:51] devbug: has joined #ruby
[17:51:54] newtonianb: has joined #ruby
[17:52:11] baweaver: has joined #ruby
[17:52:12] shevy: well you know the fancy-pants/buy/swords/3 thingies
[17:52:22] shevy: rest stuff
[17:52:30] shevy: and easier access to databases
[17:52:55] shevy: you want to design a website so of course you know rest!
[17:53:04] speakingtoad: has joined #ruby
[17:54:11] craigp: has joined #ruby
[17:54:14] shevy: sinatra is here http://www.sinatrarb.com/
[17:54:14] AndChat-641136: has joined #ruby
[17:54:15] aditya: Sorry to disappoint but i am a complete noob here
[17:54:24] momomomomo: Rails can be a low barrier entry point to creating a complex application
[17:54:31] momomomomo: sinatra is much more hands-on, from the ground-up approach
[17:54:32] shevy: rest here https://en.wikipedia.org/wiki/Representational_state_transfer
[17:55:00] aditya: Gotta sleep for now
[17:55:07] aditya: Thnx for the help anyway
[17:55:26] fantazo: has joined #ruby
[17:56:04] PedramT: has joined #ruby
[17:56:30] dlitvak_: has joined #ruby
[17:57:55] Anderson69s: has joined #ruby
[17:58:25] arthropododo: has joined #ruby
[17:59:23] hxegon: has joined #ruby
[17:59:31] lacuna: has joined #ruby
[18:00:19] arthropododo: has joined #ruby
[18:00:47] SamGerber: has joined #ruby
[18:03:07] dlitvak: has joined #ruby
[18:03:46] agit0: has joined #ruby
[18:04:43] goodcodeguy: has joined #ruby
[18:05:07] jbrhbr: has joined #ruby
[18:06:03] usershell: has joined #ruby
[18:06:50] PedramT: has joined #ruby
[18:06:56] mikecmpbll: has joined #ruby
[18:07:59] sftrabbit: has joined #ruby
[18:09:15] sundhell: has joined #ruby
[18:09:21] BSaboia: has joined #ruby
[18:09:38] jamw: has joined #ruby
[18:10:09] PedramT_: has joined #ruby
[18:10:27] f3ttX]: has joined #ruby
[18:10:29] User458764: has joined #ruby
[18:10:35] devbug: has joined #ruby
[18:11:21] guacamole: has joined #ruby
[18:11:41] Oog: has joined #ruby
[18:11:47] Axy: has joined #ruby
[18:14:10] camillo: has joined #ruby
[18:15:33] cvusr: is there any ask.fm like frameworks in rails ?
[18:15:38] bluOxigen_: has joined #ruby
[18:16:02] guacamole: has joined #ruby
[18:17:47] goodcodeguy: has joined #ruby
[18:18:34] K1MOS: has joined #ruby
[18:19:39] norc_: machinewar, generally there never is a reason to use force_encoding
[18:20:04] norc_: machinewar, whatever you are using, you need to specify the correct encoding to begin with.
[18:20:20] lacuna: has joined #ruby
[18:20:23] karapetyan: has joined #ruby
[18:20:55] lessless: has joined #ruby
[18:21:45] atomical: has joined #ruby
[18:22:01] machinewar: norc_: hmmm it might be something between how Thin's encoding scheme and Ruby version I'm on
[18:22:23] machinewar: Not sure why Thin would be using Ascii thought and not utf-8
[18:23:03] norc_: machinewar, with rails the usual culprit is an encoding mismatch with your database.
[18:23:55] machinewar: norc_: okay thanks I know my Postgres is using UTF-8, but will do some more digging on the rails side
[18:24:07] krobzaur: has joined #ruby
[18:25:31] norc_: machinewar, do you have the possibility to regress with git bisect?
[18:26:19] machinewar: norc_: whats interesting is thinking about it I believe this started showing up when I upgraded to ruby 2.2.4
[18:26:20] dlitvak_: has joined #ruby
[18:26:30] norc_: From which version?
[18:26:55] arlek: has joined #ruby
[18:28:00] PedramT: has joined #ruby
[18:28:44] arcane-methods: has joined #ruby
[18:28:47] norc_: machinewar, can you gist the relevant parts of your log and STDOUT?
[18:28:50] shevy: come to 2.3.0 man
[18:29:00] Abrin: has joined #ruby
[18:29:13] fsapo: has joined #ruby
[18:29:33] skade: has joined #ruby
[18:30:06] PedramT_: has joined #ruby
[18:30:40] machinewar: norc_: https://gist.github.com/AlexWheeler/8b1a4f1201f711847b5e
[18:31:11] karapetyan: has joined #ruby
[18:31:28] machinewar: sorry deleting that link
[18:31:33] oivoodoo_: has joined #ruby
[18:31:59] machinewar: https://gist.github.com/AlexWheeler/da19bbd829bc5b14f90f
[18:32:05] machinewar: has left #ruby: ()
[18:32:11] machinewar: has joined #ruby
[18:32:16] karapetyan: has joined #ruby
[18:32:22] hahuang65: has joined #ruby
[18:32:47] ur5us: has joined #ruby
[18:33:13] norc_: machinewar, is there anything in your development.log ?
[18:34:06] karapetyan: has joined #ruby
[18:34:34] karapetyan: has joined #ruby
[18:34:37] machinewar: norc_: notthing out of ordinary, or about encoding
[18:35:39] Sembei: has joined #ruby
[18:37:21] Graphettion: has joined #ruby
[18:38:11] mchu: has joined #ruby
[18:38:14] norc_: machinewar, which logger are you using?
[18:38:59] mfb2: has joined #ruby
[18:40:11] ympeg: has joined #ruby
[18:40:35] arcane-methods: has joined #ruby
[18:41:04] sandstrom: has joined #ruby
[18:41:51] norc_: machinewar, oh it looks like its lib/logger from ruby.
[18:42:00] norc_: machinewar, monkey patch the write method to write out a stacktrace.
[18:42:23] norc_: (or replace it with a sensible logger)
[18:43:13] jgpawletko: has joined #ruby
[18:44:29] Limix: has joined #ruby
[18:47:04] baweaver: has joined #ruby
[18:47:44] x0F: has joined #ruby
[18:49:09] ljames: has joined #ruby
[18:49:25] jbrhbr: has joined #ruby
[18:49:29] zambini: has joined #ruby
[18:49:37] lacuna: has joined #ruby
[18:50:09] brixen: has joined #ruby
[18:50:10] lacuna: has joined #ruby
[18:52:13] guacamole: has joined #ruby
[18:53:18] JohnT: has joined #ruby
[18:54:35] craigp: has joined #ruby
[18:54:39] mchu: has joined #ruby
[18:56:31] baweaver: has joined #ruby
[18:57:36] dlitvak: has joined #ruby
[18:58:01] adgtl: has joined #ruby
[18:58:22] sigurding: has joined #ruby
[19:00:02] karapetyan: has joined #ruby
[19:00:36] ramfjord: has joined #ruby
[19:01:10] PsionTheory: has joined #ruby
[19:02:11] SamGerber: has joined #ruby
[19:02:47] howdoicomputer: has joined #ruby
[19:03:21] Scripore: has joined #ruby
[19:04:42] skade: has joined #ruby
[19:06:20] Xeago: has joined #ruby
[19:07:03] SamGerber: has joined #ruby
[19:07:58] kalopsian: has joined #ruby
[19:08:39] ferr: has joined #ruby
[19:09:10] emilford: has joined #ruby
[19:09:37] craigp: has joined #ruby
[19:12:40] Limix: has joined #ruby
[19:12:50] baweaver: has joined #ruby
[19:12:56] rehat_: has joined #ruby
[19:13:46] rehat_: does anyone know how to use mechanize to seelct an item from a Form selectlist? The page uses hidden html li elements as the options :(
[19:14:12] IrishGringo: has joined #ruby
[19:15:02] last_staff: has joined #ruby
[19:15:49] scottschecter: has joined #ruby
[19:16:20] bb010g: has joined #ruby
[19:16:23] shevy: anyone remembers offhand, if there is a hook I can use, when "foo.extend SomeModule" is done? a per-extend hook or something
[19:16:23] kristian_on_linu: has joined #ruby
[19:16:44] bronson: has joined #ruby
[19:16:50] kristian_on_linu: okay, this is a long shot
[19:16:51] craigp: has joined #ruby
[19:17:25] kristian_on_linu: I need to get RIS data for all books in a WorldCat search and I found the gem "worldcat"
[19:17:33] kristian_on_linu: https://www.omniref.com/ruby/gems/worldcat/0.0.1
[19:17:41] einarj: has joined #ruby
[19:18:47] hahuang65: has joined #ruby
[19:18:56] kristian_on_linu: and http://www.worldcat.org/
[19:19:53] shevy: I suppose there is no way other than parsing a .rb file, in order to find out what classes or modules reside in that specific .rb file?
[19:20:06] skade: has joined #ruby
[19:20:58] mdw: has joined #ruby
[19:21:19] chancy: has joined #ruby
[19:21:35] shevy: so many questions
[19:22:01] chancy: has left #ruby: ()
[19:22:04] chancy: has joined #ruby
[19:22:09] blackmesa: has joined #ruby
[19:22:28] maletor_: has joined #ruby
[19:23:40] machinewar: norc_: thats a great idea thanks will do that and let you know!
[19:24:42] skcin7: has joined #ruby
[19:24:56] adaedra: shevy: you can use ctags for that.
[19:26:18] bonhoeffer: has joined #ruby
[19:27:28] Cohedrin: has joined #ruby
[19:27:36] bonhoeffer: has left #ruby: ()
[19:27:50] bonhoeffer: has joined #ruby
[19:28:51] cicloid: has joined #ruby
[19:29:02] einarj: has joined #ruby
[19:29:19] Cohedrin: has joined #ruby
[19:29:50] aryaching_: has joined #ruby
[19:30:06] ur5us: has joined #ruby
[19:32:29] baweaver: has joined #ruby
[19:35:14] dwfait: has joined #ruby
[19:36:27] Sperant: has joined #ruby
[19:40:42] enape_101: has joined #ruby
[19:42:07] jackjackdripper: has joined #ruby
[19:42:10] burgestrand: has joined #ruby
[19:42:13] jackjackdripper1: has joined #ruby
[19:42:27] norc_: &ri Module#extended Module#included # shevy
[19:42:27] `derpy: shevy: http://ruby-doc.org/core-2.3.0/Module.html#method-i-extended, http://ruby-doc.org/core-2.3.0/Module.html#method-i-included
[19:42:29] arup_r: has joined #ruby
[19:42:56] Puffball: has joined #ruby
[19:43:26] drbrain: shevy: see also Method.source_location
[19:43:44] zambini: has joined #ruby
[19:45:12] B1n4r10: has joined #ruby
[19:45:36] pdoherty: has joined #ruby
[19:47:45] colin_: has joined #ruby
[19:48:59] jackjackdripper: has joined #ruby
[19:49:46] dfinninger: has joined #ruby
[19:51:42] skade: has joined #ruby
[19:51:45] bitcycle: has joined #ruby
[19:52:11] bitcycle: Hey all. Is it possible, with net-ssh, to disable automatic-loading/use of my $HOME/.ssh/config file options?
[19:52:31] axisys: has joined #ruby
[19:53:00] lemur: has joined #ruby
[19:55:32] TomPeed: has joined #ruby
[19:56:01] speakingtoad: has joined #ruby
[19:56:01] jbrhbr: has joined #ruby
[19:57:16] tomchapin: has joined #ruby
[19:57:34] IrishGringo: has joined #ruby
[19:57:43] jackjackdripper1: has joined #ruby
[19:58:14] kadoppe: has joined #ruby
[19:59:25] kies^: has joined #ruby
[19:59:52] DonOtreply: has joined #ruby
[20:00:03] ramfjord_: has joined #ruby
[20:00:25] oivoodoo: has joined #ruby
[20:00:57] jackjackdripper: has joined #ruby
[20:01:02] blackmesa: has joined #ruby
[20:01:30] mdw: has joined #ruby
[20:01:33] Cohedrin: has joined #ruby
[20:01:52] Salve: has joined #ruby
[20:03:14] neanderslob: has joined #ruby
[20:04:45] emilford: has joined #ruby
[20:05:33] dotix: has joined #ruby
[20:06:19] Salve: has left #ruby: ()
[20:07:39] dhollinger: has joined #ruby
[20:07:46] juddey: has joined #ruby
[20:10:12] jamw: has joined #ruby
[20:10:18] bluOxigen: has joined #ruby
[20:10:30] devbug: has joined #ruby
[20:11:16] BSaboia: has joined #ruby
[20:11:17] RTG`: has joined #ruby
[20:11:18] jbrhbr1: has joined #ruby
[20:12:40] chouhoul_: has joined #ruby
[20:13:23] hannelita: has joined #ruby
[20:13:40] JJM: has joined #ruby
[20:14:15] aegis3121: has joined #ruby
[20:15:29] x77686d: has joined #ruby
[20:15:47] momomomomo: has joined #ruby
[20:17:10] FernandoBasso: has joined #ruby
[20:17:11] hannelita: has joined #ruby
[20:17:36] goodcodeguy: has joined #ruby
[20:17:40] bronson: has joined #ruby
[20:17:49] jottr: has joined #ruby
[20:18:46] hannelita: has joined #ruby
[20:19:50] mchu: has joined #ruby
[20:20:17] Dimik: has joined #ruby
[20:20:51] craysiii: has joined #ruby
[20:21:39] craysiii: has joined #ruby
[20:22:09] skade: has joined #ruby
[20:22:10] oivoodoo: has joined #ruby
[20:22:16] EasyCo: has joined #ruby
[20:23:07] itspriddle: has joined #ruby
[20:24:58] TomPeed: has joined #ruby
[20:25:10] havenwood: has joined #ruby
[20:26:54] IanV0rn2341: has joined #ruby
[20:28:45] havenwood: has joined #ruby
[20:28:45] havenwood: has joined #ruby
[20:29:32] newbie22: has joined #ruby
[20:31:12] dain1: has joined #ruby
[20:31:42] malconis: has joined #ruby
[20:31:54] Salve_: has joined #ruby
[20:33:07] dain1: has left #ruby: ()
[20:33:24] dain1: has joined #ruby
[20:35:33] dcunit3d: has joined #ruby
[20:36:14] Dimik: has joined #ruby
[20:37:11] sdwrage: has joined #ruby
[20:37:32] Limix: has joined #ruby
[20:37:39] mwksl__: has joined #ruby
[20:39:11] skade: has joined #ruby
[20:39:31] gbgdev: has joined #ruby
[20:41:36] IanV0rn2341: has joined #ruby
[20:41:54] codygman: has joined #ruby
[20:41:56] codygman: has left #ruby: ()
[20:44:53] misguided923: has joined #ruby
[20:45:21] Coldblackice: has joined #ruby
[20:45:42] firstdayonthejob: has joined #ruby
[20:47:24] guacamole: has joined #ruby
[20:48:00] lxsameer: has joined #ruby
[20:48:40] lxsameer: has joined #ruby
[20:48:41] lxsameer: has joined #ruby
[20:49:03] ur5us: has joined #ruby
[20:49:55] oivoodoo: has joined #ruby
[20:51:08] Synthead: has joined #ruby
[20:52:36] guacamole: has joined #ruby
[20:53:24] momomomomo: has joined #ruby
[20:56:53] IanV0rn2341: has joined #ruby
[20:57:59] betafive: has joined #ruby
[20:58:25] kalopsian: has joined #ruby
[20:58:32] jhn: has joined #ruby
[20:58:57] jottr: has joined #ruby
[20:59:32] krainboltgreene: has joined #ruby
[21:00:51] l4v2: has joined #ruby
[21:00:52] f3ttX]: has joined #ruby
[21:02:32] tomchapin: has joined #ruby
[21:02:42] baweaver: has joined #ruby
[21:09:05] ruby-lang372: has joined #ruby
[21:09:38] ruby-lang372: Hi, pretty new to ruby but have made my first app that's single page - what is the best way for me to post a message to the page based on a controllers function?
[21:09:53] l4v2: has left #ruby: ()
[21:10:31] oivoodoo: has joined #ruby
[21:12:48] skade: has joined #ruby
[21:14:41] n_blownapart: has joined #ruby
[21:16:08] baweaver: has joined #ruby
[21:18:00] tlaxkit: has joined #ruby
[21:19:27] emilford_: has joined #ruby
[21:20:59] Cohedrin: has joined #ruby
[21:21:13] mfb2: has joined #ruby
[21:22:07] B1n4r10: has joined #ruby
[21:24:34] dexter-tzu: has joined #ruby
[21:25:08] cout: so I've got this odd problem: I'm requiring 'net/ssh' inside a method (not at the toplevel), and it spuriously fails with LoadError. Afaict, there's never a case where I call this method outside the main thread (and in fact, require is only ever called from the main thread). Yet sometimes it succeeds and sometimes it fails. Any ideas?
[21:25:25] cout: tried GC.disable in case this was an odd GC issue but no change in behavior
[21:25:28] Limix: has joined #ruby
[21:27:05] baweaver: has joined #ruby
[21:27:34] Canar: has joined #ruby
[21:27:40] pdoherty: has joined #ruby
[21:27:47] Canar: Hi there, I'm reading about nested-for-loop limits.
[21:27:50] Canar: Python's is 21.
[21:27:57] Canar: I'm curious if Ruby has one and what the value is.
[21:28:17] B1n4r10: has joined #ruby
[21:29:44] Ox0dea: Canar: For loops in Ruby are *literally* converted to invocations of #each, so I suspect there's no such artificial limit.
[21:30:11] howdoicomputer: has joined #ruby
[21:30:45] Canar: Ox0dea: That's what I hoped.
[21:30:55] Canar: Whenever I compare Ruby to Python, I end up prefering Ruby.
[21:31:24] Ox0dea: There was that one time for me, but I can scarcely recall it.
[21:31:26] maletor_: has joined #ruby
[21:31:42] baweaver: has joined #ruby
[21:31:55] Ox0dea: Oh! `ary[::-1]` for reverse is pretty nifty.
[21:32:09] mg^: There are two reasons that sum up why I dislike Python. 1. meaningful whitespace. 2. 'print' is a reserved keyword.
[21:32:22] PedramT: has joined #ruby
[21:33:12] betafive: issue #2 with python is fixed by version 3
[21:33:45] Ox0dea: mg^: On the other hand, lots of things are slightly surprisingly *not* keywords in Ruby.
[21:34:01] Ox0dea: Of course, that's a plus by my lights.
[21:34:09] Ox0dea: >> public == private # except maybe when this happens
[21:34:10] ruby[bot]: Ox0dea: # => true (https://eval.in/506556)
[21:34:19] mg^: yeah I consider that a positive attribute myself.
[21:34:30] jas02: has joined #ruby
[21:35:25] Darmani: has joined #ruby
[21:35:34] Darmani: Hey kids<3
[21:36:06] [-Orbit-]: has joined #ruby
[21:36:27] ramfjord: has joined #ruby
[21:36:52] Ox0dea: Darmani: http://veekun.com/dex/pokemon/Darmanitan
[21:36:59] Ox0dea: Are you Standard or Zen, bro?
[21:37:33] Darmani: Uhhh I'm gonna be completely honest with you
[21:37:43] baweaver: has joined #ruby
[21:38:08] Darmani: Pokemon wasn't allowed in my house. Due to it being created by the devil and associated with wickedness.
[21:38:42] skade: has joined #ruby
[21:38:45] Darmani: ACTION shrugs
[21:38:46] jas02: has joined #ruby
[21:39:01] Darmani: I know next to nothing about pokemon.
[21:39:10] chouhoulis: has joined #ruby
[21:39:26] cvusr: has left #ruby: ()
[21:39:30] ferr: has joined #ruby
[21:39:39] jgpawletko: has joined #ruby
[21:40:03] Darmani: I do like that it's half male and half female though lmao wtf?
[21:40:38] ympeg: what would you recommend as a gui framework for ruby desktop application?
[21:40:47] ympeg: and I don't want GTK
[21:41:10] hiyosi: has joined #ruby
[21:41:36] newdan: ympeg: Fltk?
[21:41:42] Ox0dea: ympeg: JS?
[21:42:18] dfinninger: has joined #ruby
[21:42:22] renderful: has joined #ruby
[21:42:28] Darmani: Ox0dea - On the other hand I did create this. I've never used a program with another file before like a CSV. It was kinda fun.
[21:42:28] Darmani: https://repl.it/BgFz
[21:42:47] huQeQwdpu47q: has joined #ruby
[21:43:00] ympeg: newdan: I am taking a look, thx
[21:43:57] ympeg: Ox0dea: what do you mean by JS? Is there a clean way to incorporate js & html based gui to a ruby desktop application?
[21:44:12] Ox0dea: Darmani: That's pretty cool, man. You've definitely gotten better. :)
[21:44:18] workmad3: has joined #ruby
[21:44:19] shortdudey123: has joined #ruby
[21:44:21] zeroDivisible: has joined #ruby
[21:44:42] Darmani: Ox0dea - For real?? Man that means a lot coming from you dude. Thanks(:
[21:44:42] Ox0dea: ympeg: No, not really; I was (not entirely) facetiously suggesting that you should forget native; it's dying.
[21:45:33] huQeQwdpu47q: has joined #ruby
[21:45:36] chouhoul_: has joined #ruby
[21:46:11] ympeg: oh I feel you, definitely. But the stuff I want to write is very specific and I am strongly convinced that id should be a native app
[21:46:28] B1n4r10: has joined #ruby
[21:46:47] ympeg: also I will be the only person to use this (or at least I don't plan to spread)
[21:47:02] ympeg: *it should
[21:47:23] newdan: ympeg: Another (kind of far out) option is to use JRuby with something like JavaFX
[21:47:32] jottr: has joined #ruby
[21:47:34] Ox0dea: norc_: You about?
[21:47:39] newdan: I don't really know a well maintained Ruby GUI lib. Fltk is pretty old (although it worked well enough last time I used it)
[21:47:44] zeroDi: has joined #ruby
[21:48:25] ympeg: I've checked out shoes but they are jruby-dependent. And I don't want to be jruby-dependent.
[21:48:40] newdan: ympeg: Maybe this one would work well https://github.com/larskanis/fxruby
[21:48:54] BTRE: has joined #ruby
[21:49:08] freerobby: has joined #ruby
[21:49:08] ympeg: another option for me is to drop ruby completely and write it in c++
[21:49:30] karapetyan: has joined #ruby
[21:49:56] Darmani: Ox0dea - https://youtu.be/feQuv1VWCv0
[21:50:05] ympeg: it's not any business-ish project, I can experiment and have fun. But I want to finish this app in a finite amount of time ;d
[21:50:17] Ox0dea: Darmani: Decent song. I'm gonna listen to it to the end.
[21:50:39] K1MOS: has joined #ruby
[21:50:42] blackgoat: has joined #ruby
[21:50:43] newdan: ympeg: I would probably try FXRuby before Fltk since it seems maintained, if you choose to stick with Ruby. (Note it's FXRuby uses FOX toolkit not JavaFX)
[21:50:55] Ox0dea: Darmani: Video's pretty funny. What's all this words in my screens?
[21:51:13] Darmani: Ox0dea: It's a lyric video
[21:51:22] Ox0dea: Darmani: Yes, that's the problem.
[21:51:24] soxet: has joined #ruby
[21:51:36] Ox0dea: Needs more Gambino in a hangar because reasons.
[21:51:51] Darmani: Ox0dea - Lol no doubt xD
[21:52:14] Ox0dea: Donald Glover -> Don Glover -> DONG LOVER
[21:52:26] Ox0dea: I wouldn't even be mad.
[21:52:37] Darmani: Ox0dea - lmao did you just make that up?
[21:52:43] Ox0dea: Of course not.
[21:52:50] Ox0dea: That's Gambino's real name, to clarify.
[21:52:58] ympeg: newdan: thank you for your advice.
[21:53:20] Term_: has joined #ruby
[21:53:29] Darmani: No I know that's his real name but I didn't know if you switch the letters you get dong lover
[21:53:48] lemur: has joined #ruby
[21:54:05] Darmani: that's too funny.
[21:54:27] ramfjord: has joined #ruby
[21:54:31] Darmani: E.E Cummin on her face now that's poetry in motion<33 lulz
[21:54:34] Ox0dea: He talked about how he realized it long after he'd been writing his name "Don Glover" on official papers and the like.
[21:54:56] Ox0dea: On Conan or some such.
[21:55:06] baweaver: ACTION sighs
[21:55:14] Darmani: Ox0dea - Did you ever watch Community?
[21:55:17] zambini: has joined #ruby
[21:55:18] baweaver: #ruby-offtopic if you want to talk tv and such
[21:56:15] ZeeNoodleyGamer: has joined #ruby
[21:56:24] Darmani: baweaver - what would we do without you man.
[21:56:26] einarj: has joined #ruby
[21:56:45] baweaver: chat about tv in #ruby I think
[21:56:52] Ox0dea: He's not wrong.
[21:57:06] Darmani: baweaver - And surprisingly the world wouldn't end.
[21:57:11] Darmani: I know it's hard to believe.
[21:57:22] newdan: Darmani: But other people in this channel would find it a little noisy
[21:57:29] emilford: has joined #ruby
[21:57:58] Darmani: newdan - Because there is so much else going on.
[21:58:21] Darmani: I rest my case.
[21:59:14] Ox0dea: Darmani: You totally interrupted a legitimately Ruby-centric conversation, though. I only ended up a co-conspirator because you linked a not-terrible song.
[21:59:33] Darmani: baweaver - I will<3
[22:00:03] Darmani: Ox0dea - A co-conspirator? Are we the mafia? Lol
[22:00:39] Ox0dea: Darmani: Are we the hyperbolice?
[22:01:01] Darmani: that's not a word.
[22:01:03] Darmani: I had to google it
[22:01:05] sftrabbit: has joined #ruby
[22:01:16] Ox0dea: It's a portmanteau of "hyperbole" and "police".
[22:01:49] Darmani: Ox0dea - Can you do that? Lol
[22:03:03] zerowaitstate: hyperbolice, i like it
[22:04:22] Darmani: I do have a legitimate question though
[22:05:08] Darmani: So I'm making a version of Hangman that can be played on the command line. But I'm having trouble figuring out how to account for how many turns the "guesser" has before he loses.
[22:05:33] Darmani: Would that just be like a number inside a variable that decreases after each guess?
[22:05:49] nfk: has joined #ruby
[22:05:50] Ox0dea: For bad guesses, yeah.
[22:05:53] mchu: has joined #ruby
[22:05:58] Ox0dea: You're not supposed to lose a turn if you guess good.
[22:06:13] Darmani: Really? That's not how I played...
[22:06:30] Ox0dea: Uh... did you play on paper?
[22:06:43] jaffachief_: has joined #ruby
[22:06:44] wilbert_: has joined #ruby
[22:06:49] newdan: Yeah, when I played it, if you guess a letter wrong you draw another part of the hangman
[22:06:59] Ox0dea: *hanged man, but ^
[22:07:22] Ox0dea: The hangman is the executioner.
[22:07:28] Ox0dea: "I know from experience, dude."
[22:07:31] Darmani: newdan - Even if you guessed a letter right you only had a limited number of guesses before you lost. At least the way I played.
[22:07:41] Darmani: Ox0dea - Wut? Lol
[22:07:44] Ox0dea: > And from having seen a lot of drops in my day.
[22:08:03] newdan: Darmani: Weird. I don't see how that makes any sense... so you can't have large words?
[22:08:31] Darmani: newdan - Maybe I just never played correctly.... Lol
[22:08:49] Ox0dea: Darmani: There's supposed to be an emotional component.
[22:09:18] Darmani: Ox0dea - Lol what?
[22:09:26] Darmani: Are you supposed to feel something for the "hanged man"?
[22:09:49] Ox0dea: You're supposed to want to guess correctly so that you don't have to draw more parts of him so that he doesn't have to meet an untimely end.
[22:10:11] Ox0dea: He's, like, early thirties.
[22:10:19] Darmani: Damn, so young.
[22:10:28] jottr_: has joined #ruby
[22:10:45] Ox0dea: >> 30 * 525600 * 60
[22:10:46] ruby[bot]: Ox0dea: # => 946080000 (https://eval.in/506559)
[22:10:50] Ox0dea: Not even enough time to count to a billion.
[22:10:57] jamw: has joined #ruby
[22:11:01] Darmani: Can you imagine if hangman was real though? Like people sentenced to death by hanging actually had a chance to live if someone correctly guessed the word the executioner had? lmao
[22:11:21] Ox0dea: That's not funny, but I exhaled through my nose a little harder than usual anyhow.
[22:11:29] zerowaitstate: Darmani: um, yes, that's how court cases work
[22:11:30] Sperant: has joined #ruby
[22:11:57] zerowaitstate: Darmani: a little bit abstract, but the same principle
[22:12:06] Darmani: zerowaitstate - What a controversial statement. Explain it.
[22:12:13] Darmani: Or pm me and explain it.
[22:12:24] Ox0dea: Nobody knows what it means, but it's provocative.
[22:12:24] gbgdev: has joined #ruby
[22:12:38] Darmani: Ox0dea - ^ That's what I'm thinking.
[22:13:27] aegis3121: If you say the right things, you can convince the executioner not to kill you (i.e.: guess the word he's thinking of)
[22:13:54] zerowaitstate: Darmani: I am looking for a link, gimme a bit
[22:14:08] Darmani: aegis3121 - Whaaat. It can't be as simple as that.
[22:14:42] Darmani: Actually now I'm thinking about Bill Clinton and that woman... damn. Maybe you're right.
[22:14:44] aegis3121: Sure it is. Plant the reasonable doubt, say the magic words, and the jury finds you not guilty.
[22:15:28] Darmani: aegis3121 - What a sad reality you've brought to light. That is depressing.
[22:16:31] Ox0dea: "'Scuse me, hangman, hate to bother ya while you're at work, but this noose is causing me considerable discomfiture. You think you could--" "That's Numberwang! You've won the rest of your life."
[22:17:04] Ebok: has joined #ruby
[22:17:16] jbrhbr: has joined #ruby
[22:17:38] Darmani: Ox0dea - That was an actual conversation recorded in 1742 in England. For a man who had stolen some sausages for dinner and was condemned to hang by the noose until dead.
[22:17:42] Ebok: has joined #ruby
[22:17:42] Darmani: true story.
[22:17:53] Ox0dea: Darmani: I think we're reading the same PDF.
[22:17:57] yfeldblum: has joined #ruby
[22:18:03] Darmani: Ox0dea - No doubt
[22:19:38] bronson: has joined #ruby
[22:20:54] Musashi007: has joined #ruby
[22:20:56] chancy: has joined #ruby
[22:23:23] Sudrien: has joined #ruby
[22:23:36] Darmani: Alrightt I'm going to actually work on this game.
[22:23:40] Darmani: I'll be back.
[22:23:46] Darmani: Don't hesitate to summon me<3
[22:23:56] zerowaitstate: Darmani: I can't find the link from this location. I read a really well-written article by a federal judge for a law journal which talks about certain criminal justice issues in the US where the Fed is way behind the States in terms of fair legal practices. One of the topics was the requirement for prosecutors, who have first access to the crime scene and witnesses, to provide exculpatory evidence to the defense
[22:23:56] burgestrand: has joined #ruby
[22:24:07] krobzaur_: has joined #ruby
[22:24:16] Darmani: summoned me like a minute after I said that lmao
[22:24:42] zerowaitstate: Darmani: in many States, they are required to do that, but in Federal cases, the prosecutor is only compelled to turn over evidence to the defense if the prosecution feels it's relevant
[22:25:45] burgestrand: apeiros how do you manage to stay connected to IRC 24/7? :)
[22:25:55] zerowaitstate: Darmani: frequently, a person's life hangs in the balance because the prosecutor encountered evidence that was clear them of suspicion, but failed to turn it over to defense because they had no other credible suspect
[22:27:24] zerowaitstate: Darmani: so, hunting for the right words, or guessing that evidence exists and succesfully compelling the prosecutor to disclose it, has saved lives in the past
[22:27:43] zerowaitstate: Darmani: and none of that has to do with rubyh
[22:27:56] Darmani: zerowaitstate - XD
[22:28:52] Darmani: zerowaitstate - That is very interesting to say the least. Although if it is true that is absolutely depressing that a man's life depends on whether or not you can convince a prosecutor to do the right thing.
[22:29:26] zerowaitstate: Darmani: https://www.washingtonpost.com/local/crime/fbi-overstated-forensic-hair-matches-in-nearly-all-criminal-trials-for-decades/2015/04/18/39c8d8c6-e515-11e4-b510-962fcfabc310_story.html
[22:30:04] lucasb: has joined #ruby
[22:30:08] Ox0dea: Burgestrand: http://wiki.znc.in/ZNC
[22:30:15] skade: has joined #ruby
[22:30:19] Darmani: zerowaitstate - I'll read that later. Thanks for showing me.
[22:31:10] altair118: has joined #ruby
[22:31:33] newtonianb: has joined #ruby
[22:31:42] FooMunki: has joined #ruby
[22:32:12] ur5us: has joined #ruby
[22:32:39] Term_: has joined #ruby
[22:33:13] cbyrda: has joined #ruby
[22:33:25] emilford: has joined #ruby
[22:33:41] finisherr: has joined #ruby
[22:33:49] Darmani: Ox0dea - How would I choose a random word within an array of strings?
[22:33:52] Xeago: has joined #ruby
[22:34:29] lucasb: array.sample
[22:34:42] newtonianb: has joined #ruby
[22:34:49] _djbkd: has joined #ruby
[22:35:11] Darmani: lucasb - Never seen that one before. I could kiss you right now.
[22:35:12] Darmani: Thanks man.
[22:36:15] guacamole: has joined #ruby
[22:40:25] yqt: has joined #ruby
[22:40:33] Scripore: has joined #ruby
[22:41:13] zambini: I saw that last week! (when lucasb told me about it :P)
[22:42:23] dwfait: has joined #ruby
[22:43:01] zenlot1: has joined #ruby
[22:43:33] skade: has joined #ruby
[22:43:36] crowell: has joined #ruby
[22:43:36] crowell: has joined #ruby
[22:44:02] Ox0dea: lucasb is a pretty cool guy.
[22:44:11] guacamole: has joined #ruby
[22:44:41] Darmani: lucasb - he kinda smells.
[22:46:44] Darmani: Ox0dea - Another question,
[22:47:09] Darmani: So I want to present the word like this => [ _ _ _ _ _ _ _ ]
[22:47:18] Darmani: But I have no idea how to do that.
[22:47:26] Papierkorb: Darmani: "_" * the_string.size
[22:47:47] Cohedrin: has joined #ruby
[22:47:53] kies^: has joined #ruby
[22:48:04] wilbert: has joined #ruby
[22:48:53] User458764: has joined #ruby
[22:49:13] Darmani: Papierkorb - Could you explain that to me a little more?
[22:49:34] aegis3121: ?ri String#*
[22:49:34] ruby[bot]: aegis3121: I don't see no String#*, whom should I tell about ri?
[22:49:49] Ox0dea: &ri String#*
[22:49:49] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-2A
[22:50:15] Ox0dea: Darmani: I'm no longer convinced that was your code I praised earlier. :P
[22:50:18] Papierkorb: Darmani: '*' multiplies the string and returns the new string, where multiplication is 'repeating' in this context
[22:50:32] Darmani: Ox0dea - It was! D:
[22:50:59] Darmani: Papierkorb - Okay, gotcha.
[22:51:32] aegis3121: >> string = 'harold'; ('_ ' * string.size).chomp
[22:51:34] ruby[bot]: aegis3121: # => "_ _ _ _ _ _ " (https://eval.in/506580)
[22:52:08] Ox0dea: #chomp is for line endings.
[22:52:20] aegis3121: or #rstrip, ya?
[22:52:30] Papierkorb: or just don't remove the space if you want to have it anyway in front of the closing bracketg :P
[22:53:16] shadoi: has joined #ruby
[22:53:29] postmodern: has joined #ruby
[22:53:41] Ox0dea: Or pretend it's 2016 and use a more appropriate character than underscore.
[22:53:53] Darmani: Ox0dea - Like what??
[22:54:09] solocshaw: has joined #ruby
[22:54:10] TDJACR: has joined #ruby
[22:54:18] Ox0dea: Darmani: http://www.fileformat.info/info/unicode/char/2423/index.htm
[22:54:32] ruby-lang372: Can you not change the font-size of flash messages?
[22:54:48] aegis3121: sounds like a css AND a rails question :)
[22:54:58] Darmani: Ox0dea - Is that what the cool kids use these days? lmao
[22:55:23] Ox0dea: ?rails ruby-lang372
[22:55:23] ruby[bot]: ruby-lang372: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[22:55:33] Ox0dea: It'll definitely be a CSS rule.
[22:56:11] ruby-lang372: ahh have to register
[22:56:14] griffindy: has joined #ruby
[22:56:26] ruby-lang372: Yeah, font-size isn't working on flash message - but all my other CSS styling is so ill have to dig deeper
[22:57:22] aryaching: has joined #ruby
[22:57:33] Ox0dea: ruby-lang372: Ah, in that case, it could only be one thing.
[22:58:28] Musashi007: has joined #ruby
[22:59:45] ferr: has joined #ruby
[23:04:08] JJM: has joined #ruby
[23:04:22] asccigcc: has joined #ruby
[23:04:53] dexter-tzu: has joined #ruby
[23:06:37] passcod: has joined #ruby
[23:07:12] TomPeed: has joined #ruby
[23:07:36] SophieDeBenedett: has joined #ruby
[23:07:49] joshuabamboo: has joined #ruby
[23:09:49] krobzaur: has joined #ruby
[23:11:01] Darmani: Ox0dea - Question,
[23:11:07] karmatr0n: has joined #ruby
[23:11:24] Darmani: Once a person guesses a letter from the correct word... How do I reveal that letter in the array?
[23:11:31] Darmani: I have no ideaaa.
[23:12:03] Ox0dea: ??\_(???)_/??
[23:12:21] Darmani: Come on dude
[23:12:25] Ox0dea: Come on, dude.
[23:12:42] Darmani: Seriously -,-
[23:14:48] baweaver: has joined #ruby
[23:15:39] Xeago: has joined #ruby
[23:15:49] zambini: You know the word, just replace that `_` string value with the new letter
[23:16:20] emilford: has joined #ruby
[23:16:44] Darmani: zambini - yeah I figured it out shortly after I asked lol
[23:16:57] Darmani: But I'm glad that there are people that you that help people like me xP so thanks lol
[23:17:02] zambini: Make sure you do the equivalent to find_all :P
[23:17:13] aupadhye: has joined #ruby
[23:17:27] Papierkorb: Darmani: Go and #collect the guessed chars
[23:18:04] Darmani: Papierkorb - I'll show you what I have in a sec. But yeah. I have the wrong letters pointing to an array that catches them.
[23:18:38] IrishGringo: has joined #ruby
[23:19:27] Papierkorb: Darmani: We only give you pointers, you still need to bind those together to build what you want
[23:19:29] davedev24: has joined #ruby
[23:20:01] Ox0dea: Papierkorb: What's a linked list got to do with it?
[23:20:27] lucasb: I'm going to think how to write a hangman too, just for the lulz. But I'm gonna abandon it half-finished, like I did to tictactoe.
[23:20:54] bronson: has joined #ruby
[23:20:56] duderono_: has joined #ruby
[23:20:59] Darmani: Papierkorb - Aye aye captain.
[23:21:31] davedev24: has joined #ruby
[23:21:40] LMity: has joined #ruby
[23:21:42] zambini: `KEY.each_with_index.map { |x, i| i if 'E' == KEY[i]}.compact` where KEY is your string and 'E' is their guess. Not super pretty and likely not "rubish" :P
[23:22:31] Guest80422: has joined #ruby
[23:22:35] zambini: `map.with_index` also works\
[23:22:35] sine`: has joined #ruby
[23:22:50] oivoodoo: has joined #ruby
[23:24:52] dlitvak: has joined #ruby
[23:24:53] Darmani: Guest80422 - Aloha
[23:25:06] big|bad|wolf: has joined #ruby
[23:26:47] TheHodge: has joined #ruby
[23:26:54] emilford: has joined #ruby
[23:27:14] jud: has joined #ruby
[23:27:54] Darmani: Papierkorb, Ox0dea, lucasb, - Okay so this is still a work in progress...
[23:28:00] Darmani: https://repl.it/BgHe
[23:29:14] nerium: has joined #ruby
[23:29:49] lucasb: just a note, you don't need commas in %w(a, b, c, d)
[23:30:19] Darmani: lucasb - Mmk ^^
[23:30:22] paradisaeidae: has joined #ruby
[23:30:41] dudedudeman: has joined #ruby
[23:31:39] maletor__: has joined #ruby
[23:34:21] zambini: Are you looking for feedback?
[23:34:58] Darmani: Advice, feedback, love, anything. lol
[23:35:20] Darmani: I suck at OOP programming rbh.
[23:35:32] frewtc4ke: has joined #ruby
[23:36:08] davedev24: has joined #ruby
[23:36:23] ajf-: has joined #ruby
[23:37:23] lucasb: Darmani: don't you try snippets in irb or pry?
[23:37:44] zambini: :P Np. Everyone starts somewhere. My immediate suggestion (not the most important) is to get rid of that switch and turn it into a more maintainable data structure. Array probably is fine. It can be a const array and you can just add/remove entries. Since you already have that mapping, your describe method can be reduced to `DESCRIPTIONS[@number_of_guesses]`
[23:38:09] Darmani: lucasb - yeah I do. I like to get general criticism first I guess.
[23:38:32] zambini: `array[i]` returns `nil` if it's out of bounds, so you can not worry about Out of Bounds exceptions :P
[23:38:42] zyzioziom: has joined #ruby
[23:38:48] Darmani: zambini - Lol got it.
[23:39:20] zambini: Also I would suggest having it return the string instead of `puts`ing. I don't have a real reason for that one.
[23:40:12] Darmani: zambini - np. Alright let me go work on this a little more. Maybe I posted it a bit premature. I probably should have tested it beforehand.
[23:41:30] nertzy2: has joined #ruby
[23:46:56] woodruffw: has joined #ruby
[23:47:10] spooq: has joined #ruby
[23:47:26] woodruffw: has joined #ruby
[23:47:56] aegis3121: probably ;)
[23:47:59] chipotle: has joined #ruby
[23:48:01] einarj: has joined #ruby
[23:48:42] IrishGringo: has joined #ruby
[23:49:11] wilbert: has joined #ruby
[23:49:59] shortdudey123: has joined #ruby
[23:50:50] Azure: has joined #ruby
[23:51:31] dx_xb: has joined #ruby
[23:51:42] mfb2: has joined #ruby
[23:54:32] lemur: has joined #ruby
[23:56:12] mostlybadfly: has joined #ruby
[23:56:24] nerium: has joined #ruby
[23:57:07] goodcodeguy: has joined #ruby
[23:58:25] zyzioziom1: has joined #ruby