« Back to channel list

#ruby - 26 August 2015

« Back 1 day Forward 1 day »
[00:00:50] Guest61: has joined #ruby
[00:00:59] framling: has joined #ruby
[00:01:30] Guest61: hey guys anyone got a second to help with some direction on a homework assignment?
[00:03:25] BraddPitt: sure Guest61
[00:03:25] Guest61: i'm needing to print out a ordered list from an array
[00:03:44] Guest61: thanks brad.
[00:03:54] charliesome: has joined #ruby
[00:03:59] BraddPitt: baweaver how do you add ? commands to ruboto?
[00:04:13] baweaver: ?add-commands
[00:04:13] ruboto: I don't know anything about add
[00:04:22] baweaver: me either ruboto, me either
[00:04:37] BraddPitt: I thought you said you added a module to him
[00:04:41] Guest61: so i've got an array with todos in it, now the assignment asks me to print out "don't forget to:" then list the items from that array in order 1,2.3
[00:05:16] baweaver: I did, but I don't know how radar wires them up.
[00:05:22] Guest61: now accessing items from that array i'm not sure i'm doing right and i'm pretty sure there needs to be a loop in here too
[00:05:33] BraddPitt: you are correct about the loop
[00:05:38] BraddPitt: do you have any code so far?
[00:05:50] blackjid: has joined #ruby
[00:05:50] Guest61: whats the best way to share that on this channel?
[00:05:54] Guest61: its about 10 lines
[00:06:03] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[00:06:06] Guest61: 4 with out the comments
[00:06:26] howdoicomputer: has joined #ruby
[00:06:37] Guest61: oh man thats nice :D
[00:06:38] Guest61: https://gist.github.com/robwri32/3020a6045b4ee257a71c
[00:06:51] BraddPitt: ok, so you're right about the loop
[00:07:02] BraddPitt: you need a way to iterate over each element and print out that element
[00:07:24] baweaver: what's the exact format you need?
[00:07:30] baweaver: on all new lines, or as one line?
[00:07:38] baweaver: because you might not.
[00:07:45] BraddPitt: he said he did
[00:07:51] BraddPitt: list the items on new lines
[00:07:51] baweaver: making sure.
[00:07:58] baweaver: some teachers are picky.
[00:08:07] Guest61: thanks alot guys i'm just having a hard time getting where i need to be
[00:08:07] BraddPitt: in Ruby, the Array class gets some helper methods from the Enumerable class Guest61
[00:08:11] BraddPitt: which can be found here: http://ruby-doc.org/core-2.2.0/Enumerable.html
[00:08:15] Guest61: any explainations are welcomed
[00:08:20] blackjid: has joined #ruby
[00:08:36] BraddPitt: wait you dont even need that module, sorry
[00:08:45] j416: Guest61: a common way to loop in ruby is to use methods on enumerables that take a block
[00:08:45] baweaver: well it's mixed in
[00:08:51] BraddPitt: but this method will help Guest61 http://ruby-doc.org/core-2.2.0/Array.html#method-i-each
[00:09:00] j416: such as that ^
[00:09:01] axsuul_: has joined #ruby
[00:09:09] baweaver: each is defined on the class and used to construct the enumerable methods
[00:09:18] BraddPitt: Guest61 are you familiar with blocks in Ruby?
[00:09:22] baweaver: to include Enumerable you define an each
[00:09:31] Guest61: @braddPitt yes sir
[00:09:50] Guest61: ha ha still a newb at irc too
[00:09:56] chipotle: has joined #ruby
[00:11:20] christiandsg: has joined #ruby
[00:12:51] totimkopf: https://bugs.centos.org/view.php?id=8411
[00:12:56] totimkopf: bahaha, everybody is bitching about it
[00:13:01] baweaver: >> [1,2,3].each { |v| p v }
[00:13:02] ruboto: baweaver # => 1 ...check link for more (https://eval.in/422345)
[00:13:07] baweaver: >> [1,2,3].each { |v| print v }
[00:13:08] ruboto: baweaver # => 123[1, 2, 3] (https://eval.in/422346)
[00:13:12] totimkopf: wrong channel!
[00:14:14] shevy: totimkopf ack... mantisbt bug tracker in centos?
[00:14:39] shevy: github spoiled me
[00:15:03] Radar: WHO DARE SUMMONS RADAR
[00:15:03] Guest61: ok so that produced some solid results i'm just not sure what |x| stands for in this statment
[00:15:27] BraddPitt: Guest61 think of it as a named parameter
[00:15:29] Radar: oh it was baweaver but he's not ehre
[00:15:38] BraddPitt: so in [1, 2, 3].each { |x| puts x }
[00:15:47] BraddPitt: `x` will be the current element during the iteration
[00:16:23] Ropeney: has joined #ruby
[00:16:50] mleung: has joined #ruby
[00:18:57] shevy: Guest61 well it's just a name you give to something here, a block variable, just as you would normally do: x = 42, to assign 42 to x, for instance; except that it remains local to the block and ceases to exist outside of said block
[00:19:21] shevy: Guest61 you can give it any other name too, like |hogglepuffins|
[00:19:40] Nawn: has joined #ruby
[00:19:53] Ox0dea: has joined #ruby
[00:20:08] Ox0dea: shevy: No, "hogglepuffins" is a reserved word in Ruby.
[00:21:45] totimkopf: shevy: tell them mantis sucks :p
[00:22:00] yfeldblum: has joined #ruby
[00:22:29] Nawn: Hey guys, I'm Learning Ruby, and I think I need some help, I don't understand why this if Statement never reads true. https://gist.github.com/Nawn/6c284efedf703ff0ae30
[00:22:29] baweaver: has joined #ruby
[00:22:40] Nawn: Anyone willing to offer some help??
[00:22:47] Guest61: ok let me get back into this i'll come back soon i'm sure i'll have more beginner questions
[00:22:54] rodfersou: has joined #ruby
[00:23:03] luckyme: has joined #ruby
[00:23:59] shevy: totimkopf yeah, for some reason, mantis annoys me immensely... first, gobolinux was using it... then a browser game I used to play called the reincarnation ... now you say that centos also uses it.. I am glad that the ruby core team uses another way to track bugs than mantis
[00:24:00] Ox0dea: Nawn: Your `condition` variable never becomes falsy.
[00:24:04] Ox0dea: *`continue`
[00:24:13] BraddPitt: is it becuase he didn't do gets.chomp?
[00:24:18] BraddPitt: like isnt there a \n on the end of the input?
[00:24:51] Ox0dea: Aye, that's why he's not seeing the results he expects, but his loop still goes forever.
[00:24:53] shevy: if he didn't chomp it off then there should be
[00:25:13] Nawn: :o Yeah, I replaced the [currentIn == 'Done'] with True, and it does print the output.
[00:25:40] Ox0dea: Nawn: You need to gain an appreciation for precision. :P
[00:25:41] Nawn: Okay, so gets needs to run the .chomp method?
[00:25:41] shevy: Nawn btw if you save on gist, with file ending .rb, you get automatic colour highlighting
[00:25:56] chris2: has joined #ruby
[00:26:04] shevy: here I did it for you https://gist.github.com/shevegen/46bb88fa76c31ba6d08f
[00:26:16] shevy: yes, hitting enter adds the "\n"
[00:26:20] Nawn: How? Lol, top left? i write in '.rb'?
[00:26:26] shevy: via .chomp you can get rid of the \n there
[00:26:35] Nawn: Okay, let me try that out :) Brb like 2 minutes :D
[00:26:43] shevy: so people commonly do a gets.chomp... or if you want it very verbose, $stdin.gets.chomp
[00:27:02] Nawn: Just so you guys know, I've been trying to debug this for like 40 minutes before i came seeking help :)
[00:27:17] roolo: has joined #ruby
[00:27:50] BraddPitt: Nawn I recommend you add some `puts` statements to see what your variables actually are
[00:27:54] BraddPitt: or just try it out in irb
[00:27:59] Ox0dea: BraddPitt: Please recommend `p`.
[00:28:08] Nawn: Yeah! :D I did, check out my full code. that was just a snippet
[00:28:26] BraddPitt: oh ok, good
[00:28:29] BraddPitt: rix, Ox0dea
[00:28:33] Nawn: https://gist.github.com/Nawn/bf97f2a17b5ca3e8d15e
[00:28:51] shevy: Nawn it helps if you inspect your variables one after the other
[00:28:59] shevy: for instance, there is pp - called pretty print
[00:29:01] shevy: you do: require 'pp'
[00:29:04] shevy: and then: pp your_var
[00:29:12] shevy: then you can see that it is a string that has a "\n" at the end
[00:29:16] Ox0dea: Nawn: That case statement is way too wet.
[00:29:30] Nawn: ;~; I don't know what that means
[00:29:36] BraddPitt: also there is no need for ('DONE'||"DONE")
[00:29:38] Ox0dea: Nawn: DRY == Don't Repeat Yourself
[00:29:43] BraddPitt: you can simply do "DONE"
[00:29:56] shevy: in that case statement
[00:30:03] shevy: you should align case and when on the same line:
[00:30:08] shevy: when 'foo'
[00:30:10] Nawn: Braddpitt : yeah, I added that in as part of the Debugging. I wanted to make sure it wasn't the apostrophe messing me up
[00:30:12] RegulationD: has joined #ruby
[00:30:19] BraddPitt: fair enough
[00:30:45] shevy: also, you can get rid of 3-4 lines
[00:30:49] shevy: if you do:
[00:30:53] shevy: select = false
[00:31:01] shevy: and then, in the else, at line 44
[00:31:05] shevy: select = true
[00:31:27] shevy: right now you assign select = true in all case/when matches
[00:32:02] shevy: you could also change currentIn = gets; currentIn.to_i just to: currentIn = gets.to_i
[00:33:02] ICantCook: baweaver and Radar: You guys were helping me get the mysql gem installed on CentOS yesterday. I just fixed it by running this: 'yum install make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel'
[00:33:07] ICantCook: thanks for the help
[00:33:21] iateadonut: has joined #ruby
[00:33:25] solocshaw: has joined #ruby
[00:33:37] ICantCook: I'll narrow it down and find out exactly which package(s) fixed it
[00:33:48] Radar: ICantCook: Magical :)
[00:34:00] Nawn: shevy: at line 20, I change that to false? and then delete all the false declarations on select. and then change the else to set it to true?
[00:34:16] Nawn: shevy: wouldn't that make my while loop not start?
[00:34:25] JCOE: has joined #ruby
[00:34:55] shevy: lemme see
[00:35:03] dc_: has joined #ruby
[00:35:12] shevy: Nawn oh yeah
[00:35:19] shevy: see, you debugged me there
[00:35:30] baweaver: has joined #ruby
[00:36:02] Nawn: Okay, good I was worried. xD
[00:36:07] shevy: I normally use loop {} and then manually break out of it
[00:36:22] Nawn: Oh? what would I google to get a reference to that?
[00:36:28] Nawn: "Ruby loop {}"?
[00:36:56] lucyinthesky: has joined #ruby
[00:37:16] lucyinthesky: has left #ruby: ("Leaving")
[00:38:06] shevy: Nawn here is via a loop {} http://pastie.org/10375649
[00:38:18] shevy: only the while part, not the rest of your program
[00:38:24] shevy: (nums is not known in this snippet)
[00:40:14] dfockler: has joined #ruby
[00:40:18] datacat: has joined #ruby
[00:41:33] Nawn: shevy Oh, okay, That's a bit backwards to me lol
[00:41:53] Nawn: Thanks for naming that "can_we_exit" lol, making the Bool ask for permission helped it make sense to me :)
[00:42:31] dimasg: has joined #ruby
[00:42:32] shevy: yeah I guess you can think in both ways about it
[00:42:32] allcentury: has joined #ruby
[00:42:43] shevy: to try to exit whenever possible, or to not try to exit whenever possible
[00:42:56] shevy: but it follows from other ideas, like if you play a game, then you could have:
[00:42:58] shevy: exit if game_over?
[00:43:32] jackjackdripper1: has joined #ruby
[00:44:47] Nawn: kk, made some changes, Gonna try to run again D:
[00:44:49] Nawn: Hope this works lol
[00:44:56] Oog: has joined #ruby
[00:46:08] sacarlson: has left #ruby: ()
[00:46:22] Nawn: Fail, lol. All of them are registering as "Else"
[00:46:34] Nawn: I did include the .chomp this time Dx
[00:47:07] Nawn: http://pastie.org/private/h2kh1dluxddbwe53mrqebg
[00:48:24] lele: has joined #ruby
[00:48:25] shevy: exit should not be used as a name
[00:48:29] shevy: pick another name and try again
[00:48:58] Nawn: Oh, lol. sorry newbie mistake
[00:49:29] JoshuaPaling: has joined #ruby
[00:50:10] No1Phan: has joined #ruby
[00:50:18] No1Phan: has left #ruby: ()
[00:50:43] No1Phan: has joined #ruby
[00:52:03] Timba-as: has joined #ruby
[00:52:37] Ox0dea: Nawn: https://gist.github.com/0x0dea/d97760180bf25c67377d
[00:52:42] Ox0dea: Just my take on the thing.
[00:53:32] ellisTAA: has joined #ruby
[00:54:06] Asher: has joined #ruby
[00:54:08] Nawn: wut. lol, Okay, that's a bit overwhelming xD
[00:54:10] chipotle: has joined #ruby
[00:54:22] Nawn: I'll dissect that later, *bookmarked*
[00:54:23] sevenseacat: has joined #ruby
[00:54:38] CloCkWeRX: has joined #ruby
[00:54:44] Nawn: Gonna get my googles ready, but for now. I don't understand why they're not coming out as integers.
[00:55:21] greymeister: has joined #ruby
[00:55:51] Nawn: http://pastie.org/private/wfrx2i94dyaworlyqsnag
[00:56:13] Nawn: They print out as String
[00:56:14] msnyon: has joined #ruby
[00:56:34] Ox0dea: Nawn: The #to_i method does not modify the object in-place.
[00:56:42] Ox0dea: You have to (re)assign its result.
[00:57:00] Ox0dea: >> n = '123'; [n, n.to_i, n, n = n.to_i, n]
[00:57:01] ruboto: Ox0dea # => ["123", 123, "123", 123, 123] (https://eval.in/422348)
[00:57:13] but3k4: has joined #ruby
[00:57:14] Nawn: Oh. would [currentIn = gets.chomp.to_i] work?
[00:57:25] Ox0dea: Yes, but please stop putting code in square brackets. :P
[00:57:39] Nawn: oh, lol. How do I display tiny amounts of code? :P
[00:57:44] Nawn: Just type it out?
[00:57:54] Ox0dea: The convention is `backticks`.
[00:57:57] Ox0dea: Most people don't use it. :(
[00:57:58] jesterfraud: has joined #ruby
[00:58:10] pontiki: backticks cos of markdown
[00:58:31] Ox0dea: pontiki: It's much older than that.
[00:58:31] dgutierrez1287: has joined #ruby
[00:58:33] Nawn: :(example)?
[00:58:34] jeadre: has joined #ruby
[00:58:45] Ox0dea: Nawn: This is `some code`.
[00:58:54] pontiki: it's possible; but it's convention cos markdown
[00:59:00] choke: has joined #ruby
[00:59:09] pontiki: and markdown is convention cos github
[00:59:44] pontiki: i reserve the right to be completely wrong about it, too
[00:59:53] Ox0dea: >> Time.now.year == 1984
[00:59:54] ruboto: Ox0dea # => false (https://eval.in/422349)
[01:00:23] weaksauce: we are getting closer to 1984 every day now
[01:00:52] bghjksdf: has joined #ruby
[01:00:58] Ox0dea: pontiki: If I had to hazard a guess, I'd suspect Bash's command substitution syntax to have contributed significantly.
[01:01:34] pontiki: i can imagine that as @daringfireball's inspiration, certainly
[01:02:37] pontiki: backticks for execution have been around far longer than i have
[01:02:53] Ox0dea: Bash was released in 1989?
[01:03:18] pontiki: but they were in sh and csh, which i used well before then, too
[01:03:46] Ox0dea: Oh, right. There are other shells. ;P
[01:03:48] devoldmx: has joined #ruby
[01:04:05] pontiki: shall we take a drive down to multics?
[01:04:15] weaksauce: oh wow. i didn't think that i was older than bash.
[01:04:19] Ox0dea: ACTION fires up a PDP-11 emulator.
[01:04:36] weaksauce: now i feel old
[01:04:47] pontiki: if you were *really* cool, you would have an actual PDP-11 :P
[01:04:50] sevenseacat: weaksauce: you ARE old. *has no idea how old you are
[01:04:58] NeverDie: has joined #ruby
[01:05:07] weaksauce: sevenseacat true that
[01:05:43] scottschecter: has joined #ruby
[01:06:04] weaksauce: not as old as bourne shell though so that's something
[01:06:09] freerobby: has joined #ruby
[01:06:35] weaksauce: though not too far off
[01:07:12] Nawn: Lol, this chatroom is super helpful xD I'm learning a ton
[01:07:20] jesterfraud: weaksauce: we are getting closer to 1984 every day?
[01:07:28] jesterfraud: >> (Time.new('1984-01-01') - (Time.now - (60*60*24))).abs > (Time.new('1984-01-01') - Time.now).abs
[01:07:29] pontiki: when was bourne shell released?
[01:07:29] ruboto: jesterfraud # => false (https://eval.in/422350)
[01:07:57] weaksauce: if wikipedia is true
[01:08:00] pontiki: later than i thought
[01:08:21] weaksauce: jesterfraud have you read 1984?
[01:08:31] jesterfraud: weaksauce: yes
[01:08:47] pontiki: doesn't everyone have to?
[01:08:59] jesterfraud: how in particular do you think we're getting closer to it?
[01:09:13] jesterfraud: closer: do you get a notification every time we use that word?
[01:09:27] Asher: has joined #ruby
[01:10:01] Axsuul: has joined #ruby
[01:10:24] weaksauce: jesterfraud well the edward snowden surveillance revelations. the fact that there is so much cctv in England etc. the expanded ability to track everything you do digitally.
[01:10:55] jesterfraud: weaksauce: that's only _part_ of 1984 though
[01:10:57] weaksauce: was it 1984 that had the 5 min hate or was that a brave new world?
[01:11:13] pontiki: i don't remember
[01:11:38] pontiki: how's that for beind old :'(
[01:12:04] iceyec_: has joined #ruby
[01:12:21] nb_bez___: has joined #ruby
[01:12:33] jesterfraud: I think 1984 had the five minute hate
[01:12:44] Kallis: has joined #ruby
[01:13:09] DiscoM: has joined #ruby
[01:13:18] `derpy: has joined #ruby
[01:13:37] pontiki: 2 minutes, from 1984
[01:14:26] pontiki: the wiki remembers for me
[01:14:49] weaksauce: ah yeah. details details
[01:14:58] weaksauce: as a programmer we just refer to the docs ;)
[01:14:59] jesterfraud: but yeah, there's a lot more to 1984 than just surveillance
[01:15:20] weaksauce: oh yeah it's a complex book. just one part of it
[01:15:32] weaksauce: been years since i read it
[01:16:18] pontiki: for me, the strongest is how we're all complicit in creating and maintaining such a society
[01:17:00] shevy: the big brother protects you pontiki
[01:20:15] unreal_: has joined #ruby
[01:20:21] ledestin: has joined #ruby
[01:21:02] pontiki: that's what they want you to believe
[01:21:15] Eiam: has joined #ruby
[01:23:39] arooni-mobile: has joined #ruby
[01:24:08] jesterfraud: North Korea (from what I've heard) has shown more similarities to the society in 1984.
[01:26:10] pontiki: that's because Oceana wants you to believe that
[01:27:04] ICantCook: I want to run a simple ruby script every 30 seconds. I could cron this, but is there a better way of doing it? I'm thinking of using rufus-scheduler, but how would I daemonise it?
[01:27:13] nettoweb: has joined #ruby
[01:27:37] pontiki: what criteria for "better" ?
[01:27:42] pontiki: cron is dead simple
[01:28:50] Ox0dea: > I could cron this
[01:28:55] Ox0dea: ICantCook: No, you couldn't.
[01:29:00] pontiki: stop verbing
[01:29:23] Ox0dea: I was referring to cron's granularity.
[01:29:48] ICantCook: Right, 1 minute
[01:30:01] ICantCook: I could put a 30second sleep in the script and make it run again
[01:30:08] ICantCook: then cron that script to run every minute
[01:30:19] radgeRayden: has joined #ruby
[01:30:55] ICantCook: pontiki: That's true. I might as well cron it
[01:31:32] pontiki: what's the script do?
[01:32:26] i: has joined #ruby
[01:33:15] arescorpio: has joined #ruby
[01:33:52] Ox0dea: It tells the actors what to say, and sometimes how.
[01:34:11] bronson: has joined #ruby
[01:34:52] saddad: has joined #ruby
[01:34:58] pontiki: *the* script, not *a* script
[01:36:23] clarkenciel: has joined #ruby
[01:36:48] willharrison: has joined #ruby
[01:39:13] helpa: has joined #ruby
[01:39:17] Alayde: has joined #ruby
[01:39:36] helpa: has joined #ruby
[01:40:43] hotpancakes: has joined #ruby
[01:41:57] mleung: has joined #ruby
[01:42:08] bootstrappm: has left #ruby: ()
[01:43:12] nofxx: has joined #ruby
[01:43:13] nofxx: has joined #ruby
[01:45:14] tomdalling: has joined #ruby
[01:46:11] Timba-as: has joined #ruby
[01:53:50] j_mcnally: has joined #ruby
[01:54:30] ICantCook: The script runs some mysql queries, and dumps the output to a json file in Amazon S3
[01:55:16] hahuang65: has joined #ruby
[01:57:30] michael_mbp: has joined #ruby
[01:57:45] dopamean_: has joined #ruby
[01:58:14] IrishGringo: has joined #ruby
[01:59:24] charliesome: has joined #ruby
[01:59:41] yatish27: has joined #ruby
[02:01:55] hahuang65: has joined #ruby
[02:02:37] Nawn: Hey guys! Got the thing completely functional! :D
[02:02:49] Nawn: anyone else still here? :)
[02:04:03] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[02:04:27] cymbalinee: has joined #ruby
[02:07:57] Valeness_: has joined #ruby
[02:11:38] shevy: Nawn it works now?
[02:12:07] Nawn: https://gist.github.com/Nawn/c339f41994a8ed1f8077
[02:12:19] Nawn: Yeah :P I just kinda patched it together xD any tips?
[02:12:42] lucyinthesky: has left #ruby: ("Leaving")
[02:13:05] shevy: but minor things
[02:13:13] shevy: endOfLoop = false;
[02:13:19] shevy: you use a ; there when it is not necessary
[02:13:22] arooni-mobile: has joined #ruby
[02:13:45] solocshaw1: has joined #ruby
[02:13:51] arooni-mobile: has joined #ruby
[02:14:17] shevy: Also, line 35, 41, 46, 51 are all the same
[02:14:18] Nawn: I don't understand? :o what do you mean by 'when it is not necessary'
[02:14:33] shevy: can you see the ;
[02:14:42] bghjksdf: has joined #ruby
[02:14:47] shevy: do you not see it
[02:14:49] sevenseacat: we don't use semicolons to terminate lines in ruby
[02:14:49] Nawn: OH, sorry, I usually write in C#, that was a force of habit xD
[02:15:01] sevenseacat: only needed when putting two lines of code onto one line
[02:15:08] shevy: you can get rid of the repetition in these lines
[02:15:22] shevy: since you already use one variable in the else clause
[02:15:23] roolo: has joined #ruby
[02:15:27] shevy: you can use it for output too
[02:15:28] Nawn: puts after the end of the case?
[02:15:35] shevy: puts sum unless endOfLoop
[02:15:55] christiandsg: has joined #ruby
[02:15:56] shevy: since in all four conditions you output sum
[02:16:39] shevy: for practice, you could convert this back into a while loop :)
[02:17:06] shevy: btw I think you may even simplify more...
[02:17:46] shevy: Since essentially you do only: add a number, subtract a number, multiplay a number, divide a number ... which is the same action, except that it uses different operators... + - * /
[02:18:09] jonee: has joined #ruby
[02:18:41] shevy: Perhaps you could use a hash, which maps '1' => :+ and so on, and then apply/.send that operator... but anyway the current code is ok
[02:23:18] tkuchiki: has joined #ruby
[02:25:32] martin_work: has joined #ruby
[02:26:46] Nawn: in which line would i add the "unless" endOfLoop? I'm not familiar with 'unless'
[02:32:01] lucyinthesky: has joined #ruby
[02:32:11] RegulationD: has joined #ruby
[02:34:01] martin_work: whats would be the cleanest way to write this ???if node.chef_environment == 'stg' || node.chef_environment == 'prd??????
[02:34:48] Nawn: I would assume :(if node.chef_environment == ('stg || 'prd')) but I'm new too
[02:35:06] sdwrage: has joined #ruby
[02:35:13] fullofcaffeine: has joined #ruby
[02:36:19] sudiptamondal: has joined #ruby
[02:37:00] shevy: Nawn it's always the same, post-conditionals
[02:37:06] shevy: puts 'hi there' if true
[02:37:10] shevy: puts 'hi there' unless false
[02:37:19] shevy: you just need to train your brain to think in boolean toggles
[02:38:05] Ox0dea: has joined #ruby
[02:38:18] Ox0dea: shevy: Hashes with sequential numeric keys are kind of a smell.
[02:38:51] shevy: why do you tell me
[02:38:58] Ox0dea: Because you suggested it?
[02:39:04] shevy: did I suggest it to you?
[02:39:11] Ox0dea: How is that of any relevance?
[02:39:18] shevy: How is your comment to me relevant?
[02:39:19] dimasg: has joined #ruby
[02:39:31] Ox0dea: It's morally salient to advise somebody against giving bad adivce?
[02:39:41] Nawn: Ohh, so unless is the opposite of If. where it will only execute when false?
[02:39:52] shevy: Did you give Nawn any advice or did you pester me Ox0dea?
[02:40:01] Ox0dea: shevy: We're not talking in secret.
[02:40:16] Timba-as: has joined #ruby
[02:40:29] shevy: Here is Nawn, talk to him Ox0dea.
[02:41:05] Ox0dea: martin_work: `%w[stg prd].include?(chef_environment)` or, less advisably, `chef_environment[/^(stg|prd)$/]`.
[02:42:03] martin_work: ahh thats handy thanks
[02:42:55] auzty: has joined #ruby
[02:45:06] tmtwd: has joined #ruby
[02:45:23] bghjksdf: has joined #ruby
[02:47:26] jonee: has joined #ruby
[02:47:43] hotpanca_: has joined #ruby
[02:48:34] jeadre: has joined #ruby
[02:51:34] zenspider: anyone have any good resources to read/study to learn TypedData_Wrap_Struct and friends?
[02:52:32] fullofcaffeine: has joined #ruby
[02:53:25] patrick_star: has joined #ruby
[02:53:41] baweaver: has joined #ruby
[02:54:10] shevy: no idea sorry; I think the first and last time I would see any *Data_Wrap_Struct variant would have been from the old pickaxe
[02:54:12] hotpancakes: has joined #ruby
[02:54:49] zenspider: yeah. I don't think the new one goes over the typed variants
[02:54:58] zenspider: not sure tho, I don't have the latest edition
[02:55:25] Eiam: has joined #ruby
[02:57:36] Rinzlit1: has joined #ruby
[02:57:49] Ox0dea: has joined #ruby
[02:58:39] hotpanca_: has joined #ruby
[02:59:10] northfurr: has joined #ruby
[02:59:27] CloCkWeRX: has joined #ruby
[03:00:42] Ox0dea: zenspider: How's your Japanese?
[03:01:28] Ox0dea: Aoki-san's "Ruby Hacking Guide" sees wide praise, but it's only been partially translated into English.
[03:01:40] Ox0dea: https://ruby-hacking-guide.github.io/
[03:01:49] zenspider: has it been updated? because it was old as hell last time I poked at it
[03:02:12] Ox0dea: 1.6 is best Ruby.
[03:02:28] zenspider: I had to read parts of it in order to finish the esoteric parts of ParseTree
[03:02:29] ellisTAA: has joined #ruby
[03:03:04] haxrbyte_: has joined #ruby
[03:03:14] zenspider: looks like it doesn't go over DWS or TDWS
[03:04:18] krz: has joined #ruby
[03:04:27] hotpancakes: has joined #ruby
[03:04:32] devoldmx: has joined #ruby
[03:05:01] Nawn: has left #ruby: ()
[03:05:25] zenspider: I'm currently cribbing off of file.c from ruby itself... but ... ugh.
[03:05:52] zenspider: zero doco in README.EXT too... of course
[03:06:23] Ox0dea: zenspider: file.c's (single) use of TDWS isn't particularly enlightening.
[03:06:33] northfurr_: has joined #ruby
[03:06:46] arooni-mobile: has joined #ruby
[03:06:54] Guest19679: has joined #ruby
[03:07:54] Ox0dea: Scratch that.
[03:09:02] Ox0dea: rb_data_type_struct has a name, a marker, a freer, some other stuff, and then the binary blob to massage.
[03:12:03] braincrash: has joined #ruby
[03:13:19] Ox0dea: has joined #ruby
[03:14:43] Ox0dea: zenspider: Erm, doc/extension.rdoc has plenty of information regarding TDWS.
[03:14:58] jud: has joined #ruby
[03:16:02] zenspider: doesn't exist in the version I'm coding against
[03:16:13] zenspider: hrm.. I might have to increase my minimal version
[03:16:13] ramfjord: has joined #ruby
[03:17:03] zenspider: in fact, it's only on head
[03:17:11] Maletor: has joined #ruby
[03:17:29] Ox0dea: zenspider: Huh? This file has existed since at least 1998.
[03:18:12] sudiptamondal: has joined #ruby
[03:18:17] zenspider: if you're talking about the base /README.EXT, yes... but it doesn't go over TDWS at all...
[03:18:46] christiandsg: has joined #ruby
[03:18:51] zenspider: there we go. I even had to update my svn checkout to get the TypedData infos...
[03:19:03] zenspider: I hope it goes over the stuff I can actually use rather than what's on head
[03:19:23] darkf: has joined #ruby
[03:19:50] zenspider: this should help. thanks.
[03:19:59] Ox0dea: No, I'm talking about doc/extension.rdoc.
[03:20:12] sacarlson: has joined #ruby
[03:20:35] sacarlson: seems I have problem when I move from rbenv 2.2.1 to 1.9.1 and back each time it breaks the other for json and now seems ffi
[03:21:13] zenspider: Ox0dea: doesn't exist on 2.0, 2.1, 2.2 branches at all
[03:21:45] Ox0dea: zenspider: Oh, wow. That's strange.
[03:21:50] Ox0dea: It's a very old file.
[03:22:03] sevenseacat: sacarlson: #ruby isnt #rbenv
[03:22:11] zenspider: it was originally README.EXT, which oddly still exists up top
[03:22:50] sacarlson: yes I know sevenseacat I already sent them this also
[03:23:43] Ox0dea: sacarlson: You're switching back and forth between versions of rbenv?
[03:23:51] Oog: has joined #ruby
[03:23:57] mleung: has joined #ruby
[03:23:59] zenspider: sacarlson: stop using gemsets
[03:24:06] dc_: has joined #ruby
[03:24:20] zenspider: sounds like you're installing the json gem in a version neutral place
[03:25:02] Ox0dea: Which is best for managing Ruby version managers: rvmvm, rbenvenv, or chchruby?
[03:25:35] sacarlson: yes I switch with rbenv and using bundler for gems
[03:25:42] rushed: has joined #ruby
[03:26:11] sacarlson: zenspider: yes that sounds correct, how might I separate the gems between the two versions?
[03:26:34] chouhoulis: has joined #ruby
[03:27:02] zenspider: don't use gemsets. if you do, don't use gemsets that install to the same place
[03:27:51] sacarlson: gemsets? is that what bundler does? yes I want to separate so I don't have to delete all the gems each time I move
[03:28:27] sacarlson: some config setting I can make in the project directory?
[03:28:37] nettoweb: has joined #ruby
[03:29:05] chouhoulis: has joined #ruby
[03:29:11] sacarlson: I'm new to this bundler thing sorry, I was forced into it with this project that now requires 2.2.1
[03:32:27] mleung: has joined #ruby
[03:34:25] Timba-as: has joined #ruby
[03:35:05] danoo_: has joined #ruby
[03:36:18] slucx: has joined #ruby
[03:37:28] Alayde: has joined #ruby
[03:38:08] martin_work: has joined #ruby
[03:38:56] keen___________3: has joined #ruby
[03:39:13] fullofcaffeine: has joined #ruby
[03:39:33] dimasg: has joined #ruby
[03:39:47] grenierm: has joined #ruby
[03:40:35] diegoviola: has joined #ruby
[03:41:05] pawnbox: has joined #ruby
[03:43:17] ellisTAA: has joined #ruby
[03:45:59] devoldmx: has joined #ruby
[03:46:27] petricore: has joined #ruby
[03:46:28] khebbie: has joined #ruby
[03:46:58] houhoulis: has joined #ruby
[03:49:09] chipotle: has joined #ruby
[03:49:58] ecnalyr: has joined #ruby
[03:50:25] rmoriz: has joined #ruby
[03:50:52] _blizzy_: has joined #ruby
[03:54:24] sacarlson: so from my reading I take it gemset is something to do with RVM that I already don't use so I take it gemsets is not my problem as far as I can tell
[03:54:37] lucyinthesky: has left #ruby: ("Leaving")
[03:55:22] Eiam: has joined #ruby
[03:55:46] devoldmx: has joined #ruby
[03:57:18] gamov: has joined #ruby
[03:59:35] _blizzy_: has joined #ruby
[03:59:36] Ox0dea: sacarlson: It's probably a bad interaction at the system library level.
[03:59:53] Ox0dea: Ruby's ABI has changed considerably between 1.9 and 2.2.
[04:00:22] tomdalling: has joined #ruby
[04:00:41] sacarlson: so fix would be...?
[04:00:55] Ox0dea: You've not actual clarified what sort of error you're receiving...
[04:00:57] Ox0dea: *actually
[04:01:11] lessless: has joined #ruby
[04:01:20] hotpancakes: has joined #ruby
[04:01:43] sacarlson: Restoring gems to pristine condition...
[04:01:43] sacarlson: Cached gem for json-1.5.5 not found, attempting to fetch...
[04:01:43] sacarlson: Fetching: json-1.5.5.gem (100%)
[04:01:43] sacarlson: ERROR: While executing gem ... (Gem::Exception)
[04:01:44] sacarlson: Cannot load gem at [/home/sacarlson/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/cache/json-1.5.5.gem] in /home/sacarlson/github/stellar/stellar_utility
[04:01:49] sacarlson: was the last one
[04:02:01] sacarlson: but this is a new one nothing like the others
[04:02:20] ta: has joined #ruby
[04:02:46] sacarlson: this was my attempt to fix it with pristine instead of deleteing entire gem collecttion
[04:02:55] khebbie: has joined #ruby
[04:03:31] sacarlson: in this case I also note that it attempted to install an older version of json than what was used in 2.2.1
[04:03:46] roolo: has joined #ruby
[04:04:04] Ox0dea: sacarlson: What's `file /usr/lib/libruby.so`?
[04:04:32] Oog: has joined #ruby
[04:04:54] arcticblue: has joined #ruby
[04:05:06] sacarlson: no libruby.so seen in /usr/lib
[04:05:27] hotpancakes: has joined #ruby
[04:05:32] sacarlson: It's proby in .rbenv ?
[04:05:47] Ox0dea: sacarlson: So you don't have a system Ruby?
[04:06:08] sacarlson: no It was conflicting with 2.2.1 so I removed it
[04:06:15] max_Q: has joined #ruby
[04:06:27] sacarlson: only way I could get 2.2.1 to work at the time
[04:06:41] Ox0dea: Sounds like you dun goofed.
[04:07:21] sacarlson: but I can always get ether one to work just not both at the same time
[04:08:53] lucyinthesky: has joined #ruby
[04:08:56] jenrzzz: has joined #ruby
[04:09:43] lucyinthesky: has left #ruby: ()
[04:10:32] dgutierrez1287: has joined #ruby
[04:11:22] chipotle: has joined #ruby
[04:13:46] astrobun_: has joined #ruby
[04:16:59] NeverDie: has joined #ruby
[04:17:19] Guest19679: has joined #ruby
[04:18:26] msnyon: has joined #ruby
[04:18:52] pranny: has joined #ruby
[04:20:09] rakm: has joined #ruby
[04:21:00] Guest19679: has left #ruby: ()
[04:21:00] jancuk: has joined #ruby
[04:21:18] i: has joined #ruby
[04:22:10] dopie: has joined #ruby
[04:24:00] wldcordeiro: has joined #ruby
[04:27:34] jeadre: has joined #ruby
[04:28:40] Timba-as: has joined #ruby
[04:29:00] Eiam_: has joined #ruby
[04:29:26] wldcordeiro: has joined #ruby
[04:30:36] khebbie: has joined #ruby
[04:31:29] rehat: has joined #ruby
[04:33:46] RegulationD: has joined #ruby
[04:34:05] dopamean_: has joined #ruby
[04:34:15] pranny: has joined #ruby
[04:34:44] pranny: has joined #ruby
[04:36:26] christiandsg: has joined #ruby
[04:40:15] rushed: has joined #ruby
[04:40:31] romain_t: has joined #ruby
[04:42:24] jonee: has joined #ruby
[04:45:47] Oog: has joined #ruby
[04:46:05] wldcordeiro: has joined #ruby
[04:46:44] khebbie: has joined #ruby
[04:46:58] ohaibbq: has joined #ruby
[04:48:49] casadei: has joined #ruby
[04:50:17] hotpancakes: has joined #ruby
[04:50:34] ellisTAA: has joined #ruby
[04:53:41] mcpherrin: has joined #ruby
[04:55:06] mcpherrin: What's the recommended intro to ruby text for experienced programmers? I looked at "Ruby the Hard Way" but it's not for me (it's just too slow and not information-dense enough).
[04:55:30] baweaver: Eloquent Ruby or learnxinyminutes
[04:55:40] baweaver: the latter is just a speed run on any language
[04:55:44] RobertBirnie: has joined #ruby
[04:55:47] sevenseacat: learn x in y mintues will give you a crash course in ruby syntax
[04:55:48] baweaver: the former is how do ruby people do ruby
[04:56:03] mcpherrin: Yeah, I'm more looking for how ruby folk do ruby
[04:56:27] mcpherrin: Thanks for the suggestions; I'll look into both
[04:56:32] baweaver: combine with The Ruby Style Guide: https://github.com/bbatsov/ruby-style-guide
[04:57:18] baweaver: people go back and forth on style guides. I just like being able to point juniors to it so they quit arguing over silly syntax differences.
[04:57:37] baweaver: occasionally I cheat and try and patch my own opinion in though :D
[04:57:37] mcpherrin: I appreciate the quick and helpful answer a lot!
[04:57:48] baweaver: 's what we do
[04:58:35] riotjones: has joined #ruby
[04:58:37] pawnbox: has joined #ruby
[05:02:19] khebbie: has joined #ruby
[05:03:56] CloCkWeRX: has left #ruby: ()
[05:04:40] jesterfraud: has joined #ruby
[05:07:44] sacarlson: I might have found one posible solution to my problem with bundle install --force seems to get my rbenv 1.9.3 working without a complete delete of all the gems
[05:08:16] sacarlson: I have yet to see if this will break the 2.2.1 when I go back to that
[05:08:37] skade: has joined #ruby
[05:09:31] sacarlson: I will also try bundle exec gem pristine --all in the future but I don't think this fixes it
[05:10:06] pawnbox_: has joined #ruby
[05:11:02] lucyinthesky: has joined #ruby
[05:11:12] pawnbox: has joined #ruby
[05:12:34] Rubie: has joined #ruby
[05:17:57] vdamewood: has joined #ruby
[05:19:13] jenrzzz: has joined #ruby
[05:19:31] jonee: has joined #ruby
[05:19:48] RegulationD: has joined #ruby
[05:20:40] sphex: has joined #ruby
[05:21:34] ellisTAA: has joined #ruby
[05:22:43] charliesome: has joined #ruby
[05:22:47] Timba-as: has joined #ruby
[05:22:59] pawnbox_: has joined #ruby
[05:23:28] rakm: has joined #ruby
[05:23:47] aganov: has joined #ruby
[05:27:16] crowell: has joined #ruby
[05:28:05] devoldmx: has joined #ruby
[05:29:04] ICantCook: Not sure if I should ask this here, or in #mysql. I'm getting an issue using the 'mysql' gem on my production server. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory") (Mysql::Error)
[05:29:20] ICantCook: I have moved my mysql.sock to a non-default location
[05:29:48] ICantCook: if I create a symlink to it in that location, everything is fine
[05:29:55] ICantCook: but I don't want to do this
[05:30:07] blueOxigen: has joined #ruby
[05:30:16] ICantCook: how can I point to my mysql.sock ?
[05:30:31] sevenseacat: why did you move it to a non-default location?
[05:30:41] Ox0dea: ICantCook: You have a config/database.yml, yes?
[05:31:16] jgt1: has joined #ruby
[05:31:38] ICantCook: Ox0dea: nope
[05:31:49] ICantCook: connection string specified in Mysql.new(...)
[05:32:30] Ox0dea: ICantCook: You should be able to specify the appropriate socket file in that initializer.
[05:32:52] joneshf-laptop: has joined #ruby
[05:32:58] baweaver: also want to make sure you're using mysql2
[05:33:01] ICantCook: Ox0dea: thanks. I'll read the manual then :)
[05:33:05] zenspider: ... just curious and I don't want to derail... but why are you making things needlessly difficult?
[05:33:07] baweaver: the original is out of maintinance
[05:33:21] Ox0dea: ICantCook: Sure. You'll probably have to forego the convenience of a connection string.
[05:33:32] zenspider: (jesus... no pun, esp since I don't think they're doing rails)
[05:33:46] ICantCook: baweaver: oh. I guess I have the original then? I did 'gem install mysql' and am requiring 'mysql'
[05:34:02] baweaver: common thing
[05:34:11] keen___________4: has joined #ruby
[05:34:41] baweaver: zenspider: I made an active point of ignoring it
[05:35:16] Ox0dea: Anyone for segfault golf?
[05:35:26] baweaver: hm, no no, that was just a horrid pun. Ignore that one.
[05:35:27] zenspider: you should be able to provide: :socket - Defaults to ???/tmp/mysql.sock???.
[05:35:35] zenspider: ICantCook: ^^
[05:35:47] zenspider: Ox0dea: who can segfault the ... smallest?
[05:35:57] zenspider: see this for options: http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/MysqlAdapter.html
[05:36:00] riotjones: has joined #ruby
[05:36:15] ICantCook: sevenseacat: The default location is not persistent storage. I want that file to persist in the event of a server crash
[05:36:22] zenspider: I can certainly segfault w/ very little code
[05:36:47] abuzze: has joined #ruby
[05:36:47] baweaver: unless you have substantia... nevermind, have fun.
[05:36:54] ICantCook: zenspider: Is that a rails thing?
[05:36:59] ICantCook: (I'm not doing rails)
[05:37:05] zenspider: see the doco: https://github.com/brianmario/mysql2
[05:37:32] sevenseacat: yeah it's listed there
[05:37:33] Mekkis: has joined #ruby
[05:38:06] ICantCook: Thanks. I'll switch to mysql2
[05:38:13] Alayde: has joined #ruby
[05:38:13] baweaver: suggested reading into what mysql.sock actually is and why that really is pointless
[05:38:14] dhjondoh: has joined #ruby
[05:38:35] ICantCook: baweaver: lol... ok
[05:38:54] baweaver: TL;DR: mysql.sock is a psuedo-file for data transmission
[05:40:25] zenspider: either way, this gets them onto mysql2
[05:42:48] pranny: has joined #ruby
[05:42:49] jonee: has joined #ruby
[05:43:12] ICantCook: I'll look into the mysql.sock thing another time. For now I'll just move to mysql2 and specify :socket
[05:43:20] ICantCook: thanks for the help
[05:43:34] ferhaty: has joined #ruby
[05:45:26] sacarlson: gem list json in ruby 2.2.1 shows I have json (1.8.3, 1.8.1) ; but bundle exec gem list json shows Could not find json-1.8.3 in any of the sources
[05:45:54] sacarlson: so can't run bundle install -force or I get same error
[05:45:58] pranny: has joined #ruby
[05:46:07] yardenbar: has joined #ruby
[05:46:27] zenspider: bundle exec gem list?
[05:46:39] zenspider: that better only show one version or it isn't doing its fucking job
[05:46:48] roolo: has joined #ruby
[05:46:52] zenspider: that's the only thing bundler (should do) does
[05:47:00] sacarlson: same error Could not find json-1.8.3 in any of the sources
[05:47:29] sacarlson: maybe I need to reinstall bundler?
[05:47:38] zenspider: maybe you need to understand what you're doing
[05:47:47] sacarlson: yes that might help
[05:47:52] zenspider: bundler figures out dependencies AND REMOVES EVERYTHING ELSE
[05:48:01] zenspider: that's its job
[05:48:12] sevenseacat: sounds like rbenv is borked.
[05:48:12] tagrudev: has joined #ruby
[05:48:25] Omilun: has joined #ruby
[05:48:27] zenspider: gem list json and bundle exec gem list json MUST differ unless you only have one version installed
[05:48:33] zenspider: sevenseacat: why? I highly doubt it
[05:48:55] baweaver: https://lh3.googleusercontent.com/-WYgMQNwjTBs/Ux-Z-9DlcPI/AAAAAAAAEB4/Ah50CKb8kgM/w426-h298/swedish-chef-ramsay-so-much-bork-mb.jpg
[05:49:01] sevenseacat: that too, but this has been going on all morning and sacarlson said they only got it to work before after they deleted a bunch of random filers
[05:49:18] zenspider: they don't understand what bundler is
[05:49:27] zenspider: and they're trying to switch between 1.9.x and 2.x
[05:49:33] Omilun: hello i need to know about the best IDE for ruby on rails
[05:49:33] zenspider: using bundler... and if I had to guess, the same Gemfile.lock
[05:49:35] casadei: has joined #ruby
[05:49:41] zenspider: omilun: define best
[05:49:57] sevenseacat: there arent many IDEs out there for ruby stuff
[05:50:02] petricore: has joined #ruby
[05:50:03] sevenseacat: we dont typically want/need them
[05:50:07] zenspider: and the dependencies won't resolve the same between 1.9.x and 2.x
[05:50:25] baweaver: and typically go with Vim or Sublime
[05:50:43] baweaver: are there others? Yeah, but those seem to be the two major camps at this point
[05:50:52] sevenseacat: I've been using atom solidly for a couple weeks now. its not perfect, but it does the job
[05:50:54] zenspider: and emacs. jerk.
[05:50:57] baweaver: neither of those I'd call an IDE though
[05:50:58] Omilun: baweaver: vim and sublime are not ide
[05:51:02] zenspider: matz uses emacs and so we use emacs
[05:51:06] riotjones: has joined #ruby
[05:51:07] Ox0dea: omilun: Define "IDE".
[05:51:10] zenspider: omilun: you have yet to answer my question
[05:51:26] zenspider: matz is a mormon. opposite of heathen...
[05:51:29] zenspider: me on the other hand...
[05:51:35] Ox0dea: "Mormon" is pushing it, no?
[05:51:51] sacarlson: baweaver: I like the Pluma editor the colors the text that sometimes shows errors you made before you save them
[05:52:03] zenspider: Ox0dea: see south park movie. the mormons got it right
[05:52:14] baweaver: Moreover I just grew up in Vim so I tend to use it for everything. Headless servers, lots of them.
[05:52:30] baweaver: all modern editors have color options y'know.
[05:52:30] Ox0dea: zenspider: Oh, right. I forgot that LDS == Mormon.
[05:52:49] baweaver: They prefer the former to the latter honestly
[05:53:08] baweaver: now that was a truly heretical pun
[05:53:11] Omilun: zenspider: have auto complete ... consul ... free
[05:53:13] zenspider: matz uses the word mormon
[05:53:20] sevenseacat: baweaver: lol
[05:53:27] sevenseacat: took me a second
[05:53:30] zenspider: omilun: that's your definition of "best"?
[05:53:36] Omilun: zenspider: emacs is so good but very hard
[05:53:38] Ox0dea: That's his definition of an IDE.
[05:53:45] Ox0dea: Whatever "consul" is.
[05:53:52] zenspider: well, that's not what I asked
[05:54:06] Omilun: zenspider: fast and esy and free
[05:54:11] sevenseacat: it can be complete garbage but as long as its free!
[05:54:23] zenspider: so at this point, I think I'm flipping the bozo bit on omilun. I'm a programmer, not a dentist. I don't pull teeth.
[05:54:30] zenguy_pc: has joined #ruby
[05:54:34] jeadre: has joined #ruby
[05:54:43] sevenseacat: flipping the bozo bit... I'll have to remember that one
[05:54:56] baweaver: most people say choose two, but that's too optimistic. Easy, Free, Fast
[05:55:00] eightfold: has joined #ruby
[05:55:00] zenspider: is that from prag prog?
[05:55:19] Ox0dea: baweaver: Unix!
[05:55:31] tomdalling: has joined #ruby
[05:55:33] zenspider: right. Dynamics of Software Development by Jim McCarthy
[05:55:43] laurentide: has joined #ruby
[05:55:51] Omilun: zenspider: aaam thx for UR HELLP
[05:55:54] baweaver: Ox0dea: fair
[05:56:12] baweaver: ACTION grabs popcorn
[05:56:22] pawnbox: has joined #ruby
[05:56:23] baweaver: ACTION preemptively passes some to sevenseacat
[05:56:31] zenspider: luckily "best ide" is moot until omilun learns to type
[05:56:34] sevenseacat: omnomnomnom thankee
[05:56:54] baweaver: zenspider: No no, that answered it just fine
[05:57:12] Ox0dea: 'om' + 'nom'.cycle
[05:57:52] baweaver: only so many noms to be had before you overflow eh?
[05:58:02] Ox0dea: No lazy strings in Ruby... yet?
[05:58:10] zenspider: Ox0dea: if only that worked
[05:58:21] baweaver: immutable at least
[05:58:25] baweaver: zenspider: don't tempt him
[05:58:47] zenspider: but! you could totally make a StringIO that did that
[05:59:12] Ox0dea: Why not String#force?
[06:00:24] havenwood: has joined #ruby
[06:01:05] heyrhett: has left #ruby: ("Leaving")
[06:01:47] rehat: what is a good way to step through a ruby script like breakpoints
[06:01:57] rushed: rehat: pry?
[06:02:18] Ox0dea: >> class String; include Enumerable; alias each each_char end; 'om' + 'nom'.cycle.take(9).join
[06:02:19] ruboto: Ox0dea # => "omnomnomnom" (https://eval.in/422416)
[06:02:24] Ox0dea: There's gotta be something sexier than that, though.
[06:02:31] rehat: rushed: thanks
[06:02:35] zenspider: pry + a lot of half working plugins... not a fan myself.
[06:03:01] zenspider: rehat: depending on what you're doing. irb or pry to use as a repl and run stuff by hand
[06:03:20] Omilun: has left #ruby: ()
[06:03:24] baweaver: oi, I'll have you know I wrote some of those half working plugins
[06:03:26] zenspider: rehat: or, pry does have some debugger-esque plugins that'll let you invoke pry at a particular location and then step
[06:03:50] zenspider: rehat: there's also actual debuggers in ruby, including one that ships with ruby
[06:03:54] zenspider: they're all ... special.
[06:03:57] Eiam: has joined #ruby
[06:04:10] rehat: zenspider: how do I use the one that ships with ruby
[06:04:12] baweaver: won't deny that, writing a debugger is difficult
[06:04:32] zenspider: ruby -rdebug script.rb
[06:04:43] Trieste: has joined #ruby
[06:04:56] zenspider: rehat: what're you trying to do?
[06:04:59] baweaver: pry, for its hiccups, is still a good piece of work.
[06:05:03] zenspider: personally, I debug with tests
[06:05:21] Ox0dea: Spikes fired.
[06:05:28] lele: has joined #ruby
[06:05:29] zenspider: for the most part, I find pry gets in my way at least as much as it helps
[06:05:48] zenspider: doesn't help that my client has ~20 second startup time. drives me nuts, but it is what it is
[06:06:03] rehat: zenspider: trying to fix my code that I am running in irb want to step through the method instead of having a bunch of print statements
[06:06:31] catoblepa: has joined #ruby
[06:06:53] zenspider: depending on your editor, you can sometimes just run the lines by hand in irb. (in emacs you can send line/region to repl)
[06:06:56] youngbaks: has joined #ruby
[06:07:01] Oog: has joined #ruby
[06:07:28] zenspider: rehat: the -rdebug thing above... you'll start in the debugger prompt. type "help"
[06:07:40] zenspider: you can set breakpoint by method name or location
[06:07:47] zenspider: hit "c" to continue
[06:07:58] bigkevmcd: has joined #ruby
[06:08:04] zenspider: then either [s]tep or [n]ext
[06:08:08] msnyon: has joined #ruby
[06:08:21] rehat: zenspider: thanks I'll try it out
[06:08:23] manila90: has joined #ruby
[06:08:52] zenspider: I'm saddened that omilun left
[06:09:33] Ox0dea: Were you hoping to make a convert of him?
[06:09:38] zenspider: iranian IP????? wow
[06:09:43] postmodern: has joined #ruby
[06:09:50] kies: has joined #ruby
[06:09:51] Ox0dea: Iran supports TCP/IP?
[06:09:56] baweaver: aren't those the hotness now?
[06:10:19] baweaver: I'd tell you they support UDP but you probably wouldn't get it
[06:10:48] dopie: has joined #ruby
[06:10:53] Ox0dea: I didn't get it. I am ready to receive a TCP joke instead.
[06:10:55] zenspider: I think that's the first time I've seen ".ir" in actual use
[06:12:37] baweaver: I'm ready to send TCP joke
[06:13:00] _djbkd: has joined #ruby
[06:13:18] astrobun_: has joined #ruby
[06:15:27] sacarlson: and zenspider I do have a ruf idea of what rbenv and bundler are suposed to do to some limited degree. I'm trying to document a method that will work when using two versions of rbenv with bundler.
[06:15:55] sacarlson: the is two versions of ruby with rbenv
[06:15:57] eightfold: has joined #ruby
[06:16:44] sacarlson: maybe it's just these two very far apart versions that have this problem, I'm not sure
[06:16:54] Timba-as: has joined #ruby
[06:18:24] sacarlson: now that I have something that seems to be duplicatable it should be posible to solve instead of others that just deleted all gems without finding the real solution
[06:21:20] sevenseacat: I'm not convinced there is an actual problem.
[06:21:33] sacarlson: this is the document so far https://gist.github.com/sacarlson/9f6c0bab86502f42e06b
[06:22:15] sacarlson: there is ether something wrong with that process or there is a problem
[06:22:28] fullofcaffeine: has joined #ruby
[06:24:15] christiandsg: has joined #ruby
[06:24:38] sevenseacat: everything in that process after 'bundle install' I have no idea what its doing or why
[06:24:51] stardiviner: has joined #ruby
[06:25:27] tomdalling: has joined #ruby
[06:25:39] bruno-: has joined #ruby
[06:27:21] djbkd_: has joined #ruby
[06:27:27] dhjondoh: has joined #ruby
[06:28:40] Ox0dea: >> require 'fiddle'; Fiddle::Pointer.new(0)[] rescue $!
[06:28:41] ruboto: Ox0dea # => #<Fiddle::DLError: NULL pointer dereference> (https://eval.in/422436)
[06:29:24] Rarikon: has joined #ruby
[06:29:35] Ox0dea: zenspider: Anything shorter than that for reliably segfaulting?
[06:29:48] Rarikon: has left #ruby: ()
[06:31:20] fullofcaffeine: has joined #ruby
[06:32:08] jgt1: has joined #ruby
[06:34:12] bmalum: has joined #ruby
[06:35:02] zenspider: Ox0dea: the c code is shorter. :P
[06:36:50] Macaveli: has joined #ruby
[06:38:22] ddv: has joined #ruby
[06:39:33] howdoi: has joined #ruby
[06:39:39] hs366: has joined #ruby
[06:42:21] baweaver: I can do shorter Ox0dea
[06:42:53] Ox0dea: baweaver: Something to do with super method lookups?
[06:43:02] baweaver: >> require 'fiddle';Fiddle::Pointer.new(0)[] rescue $!
[06:43:03] ruboto: baweaver # => #<Fiddle::DLError: NULL pointer dereference> (https://eval.in/422455)
[06:43:07] baweaver: extra space :D
[06:44:04] Ox0dea: baweaver: That one still has two extraneous spaces.
[06:44:04] charliesome: has joined #ruby
[06:44:18] baweaver: still shorter, you're just mad
[06:44:26] Ox0dea: Make that three!
[06:44:30] Ox0dea: All the spaces are superfluous!
[06:44:33] Ox0dea: NASA is a lie.
[06:44:45] baweaver: jet fuel can't melt steel beams
[06:46:14] devoldmx: has joined #ruby
[06:46:36] cornerma1: has joined #ruby
[06:47:54] skade: has joined #ruby
[06:49:25] solars: has joined #ruby
[06:50:30] sacarlson: sevenseacat: after bundle install would be rbenv rehash that as far as I know puts all the new bin files that were loaded from gems installed with bundle install in a place that they can be run from command line with rbenv shims
[06:50:35] casadei: has joined #ruby
[06:51:53] sacarlson: then the last line that would be needed in some cases if a bin was not shimed bundler exec ruby ./yourrubyapp.rb to run your app
[06:52:04] DiscoM: has joined #ruby
[06:52:12] grahambailey: has joined #ruby
[06:52:27] sundhell: has joined #ruby
[06:52:59] JaRe_Ax: has joined #ruby
[06:53:12] sacarlson: or maybe that's where I'm wrong?
[06:53:46] sevenseacat: yeah I don't use rbenv, which is why it all doesnt make sense to me
[06:53:56] sevenseacat: I use chruby and we don't have any of that shim junk
[06:54:58] sacarlson: IC, well it seems they have at least 3 or 4 methods now so change versions. this was the method the main developer chose
[06:55:37] sacarlson: and it's new to me also
[06:55:55] anaeem1: has joined #ruby
[06:56:16] BTRE: has joined #ruby
[06:56:33] sacarlson: but I'm probly the only one that has code that still runs that is over 4 years old
[06:57:11] sevenseacat: no, you're not
[06:57:23] sacarlson: >>>>me old fart<<<<
[06:57:24] ruboto: sacarlson # => /tmp/execpad-f30e5d76ffe6/source-f30e5d76ffe6:2: syntax error, unexpected >> ...check link for more (https://eval.in/422460)
[06:57:56] rbowlby: has joined #ruby
[06:58:10] sacarlson: well I should say only one in my group. all youngsters
[06:58:18] sevenseacat: I suggest finding someone who uses rbenv, and checking how people typically do things
[06:58:25] sevenseacat: because these sorts of problems are not normal
[06:58:54] slackbotgz: has joined #ruby
[06:59:34] ecnalyr: has joined #ruby
[06:59:42] sacarlson: this guy had the same problem with the same version pair as me https://github.com/ffi/ffi/issues/423
[06:59:50] sacarlson: same ffi problem
[07:00:03] Timba-as: has joined #ruby
[07:00:15] sacarlson: I see a few others but this is the best match to mine
[07:00:39] sacarlson: all do the same thing delete gem's to fix so no solution
[07:00:42] zenspider: all my stuff (with a couple exceptions) runs on 1.8 still.
[07:01:00] sacarlson: 1.8 does that even have gems?
[07:01:08] zenspider: and my current client has an app that runs on rails 3 and rails 4 (same version of ruby tho)
[07:01:12] sacarlson: at least 1.9 has gems inside it
[07:01:21] zenspider: what you're doing is totally doable. but you need to understand your tooling for it to work
[07:01:44] kr3ssh: has joined #ruby
[07:02:09] sacarlson: from all my research so far my method is correct
[07:03:13] sacarlson: but maybe after what I"ve learned so far a full reinstall will remove the problem for good
[07:03:20] jas02: has joined #ruby
[07:03:24] [k-: has joined #ruby
[07:03:34] sacarlson: as I was learning I must have put some bad things into it
[07:03:39] sevenseacat: the understanding tooling part is important. I'm still not convinced there's a problem.
[07:04:26] sacarlson: I'm not fully convinced eather
[07:04:43] sevenseacat: there is no logical reason why you would install a gem and immediately have to force anything to it to make it work
[07:04:45] sacarlson: 98% chance .... >>me<<
[07:05:48] [k-: installing gems on rbenv is just gem install gem
[07:06:00] ta: has joined #ruby
[07:06:03] rht: has joined #ruby
[07:06:13] khebbie: has joined #ruby
[07:06:16] anaeem1_: has joined #ruby
[07:06:53] sevenseacat: [k-: you're familiar with rbenv? can shed any light on https://gist.github.com/sacarlson/9f6c0bab86502f42e06b ?
[07:08:40] [k-: i dont know D:
[07:08:51] sacarlson: does it look correct?
[07:09:15] sacarlson: and my present problem bundle exec gem list
[07:09:16] sacarlson: Could not find json-1.8.3 in any of the sources
[07:09:16] sacarlson: Run `bundle install` to install missing gems.
[07:09:23] duncannz: has joined #ruby
[07:09:33] [k-: I've never used bundler before, i only used rbenv rehash and rbenv global before
[07:09:39] sacarlson: bundle install can't work without json so fails also
[07:10:41] dgutierrez1287: has joined #ruby
[07:11:00] sacarlson: I thought bundler was the new standard seems all I see with ruby on github is bundles
[07:11:00] Oog: has joined #ruby
[07:11:07] sevenseacat: how did you get ruby installed without json?
[07:11:10] sevenseacat: its a default gem
[07:12:06] towski_: has joined #ruby
[07:12:07] sacarlson: I guess ruby came with json installed. maybe the bundle has some unneeded gem?
[07:12:20] sacarlson: I had that problem with yaml
[07:12:39] sevenseacat: 'bundle install can't work without json' is irrelevant because json is always present
[07:12:41] sacarlson: found I couldn't have yaml in the bundle list it was now a part of the newer ruby
[07:12:58] alphaatom: has joined #ruby
[07:15:05] terlar: has joined #ruby
[07:16:15] sevenseacat: so, what exactly happens when you bundle install?
[07:17:39] dumdedum: has joined #ruby
[07:17:52] sacarlson: in this present app it spits out can't install json
[07:18:05] sevenseacat: gist the full error
[07:18:44] sacarlson: but I already see json so I think it has an uneeded json in the gem list
[07:19:01] sevenseacat: you're not helping yourself here
[07:20:17] matcouto: has joined #ruby
[07:20:20] Ox0dea: has joined #ruby
[07:20:26] Iskarlar: has joined #ruby
[07:20:29] sacarlson: oh sorry that was with forced install
[07:20:31] sacarlson: sacarlson@sacarlson-asrock ~/github/stellar/horizon $ bundle install --force
[07:20:31] sacarlson: Fetching gem metadata from https://rubygems.org/..........
[07:20:31] sacarlson: Fetching version metadata from https://rubygems.org/...
[07:20:31] sacarlson: Fetching dependency metadata from https://rubygems.org/..
[07:20:31] sacarlson: Installing rake 10.4.2
[07:20:31] sacarlson: Bundler::GemNotFound: Could not find rake-10.4.2.gem for installation
[07:20:32] sacarlson: An error occurred while installing rake (10.4.2), and Bundler cannot continue.
[07:20:32] sacarlson: Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
[07:20:38] apeiros: sevenseacat: re your tweet - I started to just wait for people to actually answer my questions and not react until they do. insanity levels have fallen ever since.
[07:20:40] sevenseacat: what part of 'gist' did not come through clearly
[07:20:51] Ox0dea: sevenseacat: The "gist" part, I reckon.
[07:20:54] sevenseacat: did i say 'spam the message with your error'
[07:20:58] sevenseacat: *spam the channel
[07:21:05] apeiros: !gist sacarlson
[07:21:11] apeiros: ?gist sacarlson
[07:21:11] ruboto: sacarlson, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[07:21:22] sevenseacat: apeiros: yeah I probably should
[07:21:28] sevenseacat: people like this frustrate me
[07:21:30] hyy: has joined #ruby
[07:21:37] sevenseacat: given this has been going for about six hours now
[07:21:43] apeiros: sevenseacat: I know that feeling quite well :-/
[07:22:01] sevenseacat: sorry, just over four hours.
[07:22:13] sacarlson: we called it pastebin in my day ha ha
[07:22:30] [k-: Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
[07:22:42] [k-: is this not clear enough?
[07:23:34] sevenseacat: 11:05 to 15:23
[07:23:39] hyy: has joined #ruby
[07:23:40] sacarlson: but if I just do bundle install is shows it worked
[07:23:55] sevenseacat: then whats the problem?
[07:24:01] [k-: WELL USE THAT THEN!
[07:24:18] sevenseacat: 'this is too easy, I must try to do something harder'
[07:24:49] hyy: has joined #ruby
[07:24:57] [k-: have you tried turning bundler on and off again
[07:25:07] [k-: off and on*
[07:25:14] apeiros: ACTION goes to search a "calm down" pie
[07:25:38] sacarlson: [k-: didn't know turning it on and off was an option
[07:25:55] Ox0dea: [k-: Doing it the way you first suggested would definitely make the problem go away.
[07:26:12] terlar: has joined #ruby
[07:26:19] [k-: you mean the way i last* suggested
[07:26:26] Ox0dea: No, the other one.
[07:26:58] Ox0dea: sacarlson: Is your computer on?
[07:27:08] [k-: last is definite for now, there is no other one!
[07:27:12] Ox0dea: Try turning it off.
[07:27:28] sacarlson: oh turning the computer off ha ha
[07:27:41] sacarlson: time for breakfast
[07:27:57] arup_r: has joined #ruby
[07:28:17] sanguisdex: has joined #ruby
[07:29:28] monsieurp: has joined #ruby
[07:30:59] skade: has joined #ruby
[07:31:13] [k-: finally, i found it! http://growthalytics.com/troubleshooting/programming/2015/08/21/the-power-of-power-cycling/
[07:31:27] freeze: has joined #ruby
[07:31:32] benlovell: has joined #ruby
[07:32:40] duncannz: has joined #ruby
[07:32:48] _blizzy_: has joined #ruby
[07:32:50] xhosae: has joined #ruby
[07:33:08] Ox0dea: ACTION power-cycles [k-.
[07:34:49] Karpah: has joined #ruby
[07:37:15] Eiam: has joined #ruby
[07:37:45] livathinos: has joined #ruby
[07:38:02] zenspider: I would change sacarlson's script to do a `gem update --system` before `gem install bundler`
[07:38:10] zenspider: I have no idea what lines 14-15 even mean
[07:38:56] Alayde: has joined #ruby
[07:38:58] dumdedum: has joined #ruby
[07:39:01] sacarlson: oh that could be why it can't find the rails good idea
[07:40:24] zenspider: no idea why you're doing bundler exec ruby yourrubyapp.rb before you install your gems
[07:40:33] zenspider: ZERO idea why you're using --force
[07:40:46] Feyn: has joined #ruby
[07:40:50] zenspider: `bundle exec gem` makes zero sense
[07:40:55] sacarlson: I assume it would be done inside bundler? bundle exec gem update --system
[07:41:02] sevenseacat: `gem update --system` has nothing to do with rails
[07:41:06] sevenseacat: and no, no it shouldnt
[07:41:08] zenspider: there's a lot of cargo culting in here.... on top of it, there's zero documentation of an actual problem
[07:41:52] bruno-: has joined #ruby
[07:42:28] msnyon: has joined #ruby
[07:42:33] roolo: has joined #ruby
[07:42:50] zenspider: you've been going at this all day and haven't even gisted the problem for us ...
[07:42:56] sacarlson: problem I had was this https://github.com/ffi/ffi/issues/423 that seemed to repeat with json but I might have fixed it with bundle install -force
[07:43:14] sacarlson: it was posted above
[07:43:58] sacarlson: but I can't perform bundle install -force on 2.2.1 so may only work on 1.9.3
[07:44:12] zenspider: did you notice that the developer immediately turned around and asked for more info, it wasn't actually provided, and nobody could help the guy?
[07:44:50] UtkarshRay: has joined #ruby
[07:44:56] [k-: the life of an average ticket
[07:45:05] sacarlson: yes and this wasn't the only one similar if I search for json but all just deleted gems as he did and I was doing
[07:45:31] zenspider: sacarlson: soooo... you should cargo cult a bandaid on top of a cargo culted bandaid.
[07:46:05] apeiros: that band aid is applied on a voodoo code doll
[07:47:10] zenspider: 1) your repro isn't a repro. 2) your actual problem is undocumented. 3) you're not listening to feedback.
[07:47:10] ferhaty: has joined #ruby
[07:47:11] bmalum: has joined #ruby
[07:47:24] zenspider: not sure what else I (or anyone) can possibly do at this point
[07:47:29] paradoja: has joined #ruby
[07:47:53] zenspider: guess I'll fire up the TV and hack on my own stuff
[07:48:13] senayar: has joined #ruby
[07:48:33] sevenseacat: ACTION has turned on the xbox to punch a lot of things in Diablo 3
[07:48:35] sacarlson: that was all good feedback and I thank you, I will make an effort to try to fill those
[07:48:46] zenspider: sevenseacat: that... might be a better option
[07:49:19] OrbitalKitten: has joined #ruby
[07:49:26] apeiros: sevenseacat: you play the monk class then? :D
[07:49:35] sevenseacat: the only way to play D3
[07:50:28] anisha: has joined #ruby
[07:51:13] ruby-lang813: has joined #ruby
[07:51:34] Iskarlar: has joined #ruby
[07:53:02] zenspider: anyone here have any experience with TypedData_Wrap_Struct and friends?
[07:56:13] livathinos: has joined #ruby
[07:56:55] nux443: has joined #ruby
[07:59:17] charliesome: has joined #ruby
[07:59:41] joonty: has joined #ruby
[08:01:54] c0m0: has joined #ruby
[08:04:08] skade: has joined #ruby
[08:06:21] Iskarlar: has joined #ruby
[08:06:45] OrbitalKitten: has joined #ruby
[08:13:48] jenrzzz: has joined #ruby
[08:14:32] bigmac_: has joined #ruby
[08:15:09] nisstyre: has joined #ruby
[08:16:16] DEA7TH: has joined #ruby
[08:16:35] pusewicz_: has joined #ruby
[08:18:04] pocketprotector: has joined #ruby
[08:18:52] Iskarlar: has joined #ruby
[08:20:05] leafybasil: has joined #ruby
[08:21:24] zenspider: git show doesn't give you a diff in diff/patch format?? really?
[08:22:31] Iskarlar: has joined #ruby
[08:22:50] OrbitalKitten: has joined #ruby
[08:22:57] Stan: has joined #ruby
[08:23:28] tonios57: has joined #ruby
[08:23:54] zenspider: "Chunk header format is modified to prevent people from accidentally feeding it to patch -p1. Combined diff format was created for review of merge commit changes, and was not meant for apply."
[08:23:57] jackjackdripper: has joined #ruby
[08:23:58] rdark: has joined #ruby
[08:24:01] zenspider: oh thank god. They're saving me from myself!
[08:26:30] Guest32: has joined #ruby
[08:27:07] christiandsg: has joined #ruby
[08:27:26] chthon: has joined #ruby
[08:28:04] Iskarlar: has joined #ruby
[08:29:39] last_staff: has joined #ruby
[08:31:20] Hounddog: has joined #ruby
[08:31:40] Iskarlar: has joined #ruby
[08:32:54] jgt1: has joined #ruby
[08:33:47] platzhirsch: has joined #ruby
[08:33:52] Zai00: has joined #ruby
[08:35:08] tvw: has joined #ruby
[08:35:40] Hounddog: has joined #ruby
[08:35:56] ndrei: has joined #ruby
[08:36:55] AlexAltea: has joined #ruby
[08:37:22] codecop: has joined #ruby
[08:42:30] jgt1: has joined #ruby
[08:42:39] freeze: has joined #ruby
[08:43:41] bmalum: has joined #ruby
[08:44:52] Oog: has joined #ruby
[08:45:45] leafybasil: has joined #ruby
[08:47:19] devoldmx: has joined #ruby
[08:47:50] Rarikon: has joined #ruby
[08:48:53] startupality: has joined #ruby
[08:49:18] ecnalyr: has joined #ruby
[08:50:46] yfeldblum: has joined #ruby
[08:52:36] krz: has joined #ruby
[08:55:58] amystephen: has joined #ruby
[08:57:53] techsethi: has joined #ruby
[08:58:06] c0m0: has joined #ruby
[09:00:30] mikecmpbll: has joined #ruby
[09:00:53] zenguy_pc: has joined #ruby
[09:02:39] einarj: has joined #ruby
[09:02:51] enterprisedc: has joined #ruby
[09:03:43] ht__: has joined #ruby
[09:07:19] jimms: has joined #ruby
[09:07:57] abdulrehman: has joined #ruby
[09:08:04] workmad3: has joined #ruby
[09:08:35] vijayanant: has joined #ruby
[09:09:27] vijayanant: has left #ruby: ()
[09:10:46] Eiam: has joined #ruby
[09:12:48] enterprisedc: has joined #ruby
[09:15:10] El3ktra: has joined #ruby
[09:16:06] techsethi_: has joined #ruby
[09:16:24] bweston92: has joined #ruby
[09:17:09] marr: has joined #ruby
[09:17:24] jgt: has joined #ruby
[09:17:41] xoron: has joined #ruby
[09:18:25] alexcf: has left #ruby: ()
[09:19:06] zeroDivisible: has joined #ruby
[09:19:07] yorickpeterse: quadra good morning, what does it mean???!1
[09:19:41] adaedra: That the day will be long
[09:22:13] armin_: has joined #ruby
[09:23:33] renderful: has joined #ruby
[09:24:00] chouhoul_: has joined #ruby
[09:24:18] techsethi_: has joined #ruby
[09:25:06] shelling___: has joined #ruby
[09:25:07] AckZ_: has joined #ruby
[09:25:07] AdamMeghji_: has joined #ruby
[09:25:09] bffff__: has joined #ruby
[09:25:28] startupality_: has joined #ruby
[09:25:39] einarj_: has joined #ruby
[09:25:43] rflot_: has joined #ruby
[09:26:04] abbec: has joined #ruby
[09:26:08] joonty_: has joined #ruby
[09:26:22] hellschreiber_: has joined #ruby
[09:27:36] sn0wb1rdz: has joined #ruby
[09:27:37] troulouliou_div2: has joined #ruby
[09:27:45] gnarld_: has joined #ruby
[09:27:55] Macaveli_: has joined #ruby
[09:27:59] Olipro-: has joined #ruby
[09:28:00] swistak35_: has joined #ruby
[09:28:13] k3asd`: has joined #ruby
[09:28:18] silverdust: has joined #ruby
[09:28:28] adaedra: type your question
[09:28:39] El3ktra: has joined #ruby
[09:28:39] El3ktra: has joined #ruby
[09:28:42] matp: has joined #ruby
[09:28:46] iateadonut1: has joined #ruby
[09:29:01] raypulver: has joined #ruby
[09:29:18] lele: has joined #ruby
[09:29:52] yorickpeterse: It appears you're trying to use IRC, would you like some help with that?
[09:30:35] adaedra: yorickpeterse: are you a paperclip?
[09:30:41] roolo: has joined #ruby
[09:30:53] sanguisdex: has joined #ruby
[09:30:56] frankS2: has joined #ruby
[09:32:29] xoron: has joined #ruby
[09:33:54] skade: has joined #ruby
[09:34:15] Mon_Ouie: has joined #ruby
[09:34:24] einarj: has joined #ruby
[09:34:51] pocketprotector: has joined #ruby
[09:36:54] Zai00: has joined #ruby
[09:37:18] danoo_: has joined #ruby
[09:37:20] lele|w: has joined #ruby
[09:37:41] dgutierrez1287: has joined #ruby
[09:37:41] doritostains: has joined #ruby
[09:39:44] Alayde: has joined #ruby
[09:41:58] kr3ssh: has joined #ruby
[09:44:29] jeadre: has joined #ruby
[09:47:38] arup_r: has joined #ruby
[09:48:05] devoldmx: has joined #ruby
[09:50:04] but3k4: has joined #ruby
[09:51:48] Macaveli: has joined #ruby
[09:51:50] djbkd: has joined #ruby
[09:58:31] ndrei: has joined #ruby
[10:00:29] krasnus: has joined #ruby
[10:04:00] JaRe_Ax: has joined #ruby
[10:08:05] xoron: has joined #ruby
[10:10:08] sanguisdex: has joined #ruby
[10:10:27] khebbie: has joined #ruby
[10:11:42] bigkevmcd: has joined #ruby
[10:12:17] alex88: has joined #ruby
[10:14:12] yashinbasement: has joined #ruby
[10:15:09] yorickpeterse: Ah yes, a Maru blog post a day keeps the table flipping away http://sisinmaru.blog17.fc2.com/blog-entry-2002.html
[10:17:07] atmosx: that really put a smile on 'me face'
[10:18:36] stamina: has joined #ruby
[10:19:40] apeacox: has joined #ruby
[10:20:36] apeacox: has left #ruby: ()
[10:20:40] rickmasta: has joined #ruby
[10:21:12] Gribo: has joined #ruby
[10:22:40] yorickpeterse: imagine being subscribed to the RSS feed
[10:25:51] nofxx: has joined #ruby
[10:26:01] Sembei: has joined #ruby
[10:28:44] DEA7TH: has joined #ruby
[10:29:21] codecop: has joined #ruby
[10:30:03] christiandsg: has joined #ruby
[10:36:14] wald0: has joined #ruby
[10:37:06] radgeRayden: has joined #ruby
[10:38:18] _blizzy_: has joined #ruby
[10:40:37] jonee: has joined #ruby
[10:41:02] heyimwill: has joined #ruby
[10:41:46] cgfbees: has joined #ruby
[10:42:03] skade: has joined #ruby
[10:42:05] beerich: has joined #ruby
[10:42:55] bruno-: has joined #ruby
[10:43:33] beerich: has left #ruby: ()
[10:44:48] Eiam: has joined #ruby
[10:45:47] dEPy: has joined #ruby
[10:46:13] ayonkhan: has joined #ruby
[10:46:36] sdothum: has joined #ruby
[10:46:41] _blizzy_: has joined #ruby
[10:47:09] joe2: has joined #ruby
[10:47:23] jokester: has joined #ruby
[10:52:41] Cust0sLim3n: has joined #ruby
[10:54:11] tvw: has joined #ruby
[10:55:53] nettoweb: has joined #ruby
[10:56:57] lele: has joined #ruby
[10:59:09] rodfersou: has joined #ruby
[11:01:32] pyon: has joined #ruby
[11:02:36] bruno-: has joined #ruby
[11:04:03] voker57: has joined #ruby
[11:06:49] Macaveli: has joined #ruby
[11:07:00] sarkyniin: has joined #ruby
[11:07:01] bmalum: has joined #ruby
[11:11:28] Voker57|2: has joined #ruby
[11:12:50] freezevee: has joined #ruby
[11:13:03] freezevee: does anyone use a macbook for programming ruby ?
[11:13:21] pusewicz_: I'd imagine a lot of people?
[11:13:33] cndiv: has joined #ruby
[11:13:39] freezevee: I am considering exchanging my MBPr mid-2012 for a MAIR mid-2012 and I wanted to ask you
[11:14:01] freezevee: because ruby development is what I do mostly... vagrant/virtualbox 2-3 VMs running at once
[11:14:25] zenspider: what's the actual question?
[11:14:45] freezevee: I own a pro mid-2012/8GB memory/i5 2.5 and I am thinking to exchange it with a same one but Air
[11:15:03] freezevee: I wanted to know from someone that use an Air as his main machine
[11:15:16] freezevee: any pros/cons regarding his experience
[11:15:27] cgfbee: has joined #ruby
[11:15:35] freezevee: I am happy with the pro and I only consider Air in terms of portability and weight
[11:15:40] zenspider: what about girls with MB airs?
[11:15:46] joe2: has joined #ruby
[11:16:03] freezevee: Is it too bad ?
[11:16:07] jokester: has joined #ruby
[11:16:20] freezevee: not a fan-boy lol
[11:16:23] techsethi: has joined #ruby
[11:16:34] pusewicz_: @freezevee You will be fine with the Air.
[11:16:42] freezevee: pusewicz_: do you use one ?
[11:16:45] zenspider: you only care to hear opinions from someone with the same bits as you?
[11:16:54] freezevee: no, not at all
[11:17:00] pusewicz_: I have friends who use them as main machines
[11:17:00] sevenseacat: of course, what do girls know about computers
[11:17:10] pusewicz_: I even have friends who get by with the new Macbook One
[11:17:24] freezevee: pusewicz_: the new 12" is fine
[11:17:34] zenspider: ACTION whispers to sevenseacat: I hear they can't code anyhow.
[11:18:17] freezevee: Is the CPU a huge difference?
[11:18:30] freezevee: because it's the only difference in terms of computing power I see
[11:18:41] freezevee: 1.8 with turboboost to 2.8 vs 2.6
[11:18:43] pusewicz_: Say I want to look at memory consumption/GC cost etc. in a Rails app to try to optimize allocations, what's a recommended tool for that?
[11:18:51] roolo: has joined #ruby
[11:19:48] zenspider: memprof and friends will help. and the newer alloc trace functionality
[11:20:02] pusewicz_: Gotcha, thanks!
[11:20:17] zenspider: I mostly try to profile my tests and get them as fast as possible. Helps devs and users alike
[11:20:45] pusewicz_: makes sense
[11:21:03] michael_mbp: has joined #ruby
[11:21:42] dstarh: has joined #ruby
[11:26:55] voker57: has joined #ruby
[11:27:14] chinmay_dd: has joined #ruby
[11:27:43] freezevee: zenspider: where are these girls with the macbook airs ?
[11:28:48] freezevee: I wonder if sevenseacat: has coded a bot or something because each time I speak she appears
[11:29:07] zenspider: maybe it's because you keep saying stupid shit?
[11:29:36] freezevee: why do you see it like that
[11:29:41] sevenseacat: yes, and it's not like I'm here all day or anything o.O
[11:30:43] Musashi007: has joined #ruby
[11:30:57] ldnunes: has joined #ruby
[11:32:28] Macaveli: has joined #ruby
[11:33:06] freezevee: sevenseacat: maybe you're a bot
[11:34:05] dgutierrez1287: has joined #ruby
[11:34:21] zenspider: pusewicz: and dtrace hooks... but that's entering esoterica
[11:34:49] sevenseacat: freezevee: I assure you, I am not.
[11:36:08] sevenseacat: you know what zenspider was saying about stupid shit? yeah. that.
[11:36:10] freezevee: sevenseacat: what is your main machine ? what do you use to code ?
[11:36:25] sevenseacat: i have a 13" 2015 rMBP
[11:36:34] freezevee: seriously ?
[11:37:26] zenspider: how am I misinterpreting this exchange?
[11:37:52] freezevee: sevenseacat: have you considered buying an Air instead of a Pro ?
[11:38:08] syath: has joined #ruby
[11:38:08] freezevee: sevenseacat: I know you're experienced, that's why I ask
[11:38:31] sevenseacat: because I didnt want one. I was given my choice of laptop when I took my new job in March, and this is what I picked.
[11:38:35] tomdalling: has joined #ruby
[11:38:40] sdfgsdfg: has joined #ruby
[11:38:50] cfloare_: has joined #ruby
[11:39:06] freezevee: so no particular "computing power" reason or something
[11:39:19] sevenseacat: thats part of it. portability was the other part of it.
[11:39:28] freezevee: sevenseacat: do you use vagrant/docker in your MBP ?
[11:39:51] freezevee: so you don't run something that needs extra memory or power ?
[11:40:05] sevenseacat: what kind of question is that?
[11:40:14] freezevee: it's not a trap
[11:40:17] freezevee: just asking
[11:40:27] sevenseacat: I didnt say it was a trap, it just doesnt make much sense
[11:40:28] Alayde: has joined #ruby
[11:41:04] freezevee: because PROs suppose to have more power and usually more memory
[11:41:14] sevenseacat: thats correct, they do.
[11:41:18] freezevee: I rarely see a 8GB Air
[11:41:31] freezevee: I suppose that your choice had to do with that
[11:41:42] sevenseacat: i have 16GB memory in my MBP.
[11:42:06] freezevee: anyway, thanks for the info
[11:42:14] cfloare_: has left #ruby: ()
[11:42:49] freezevee: I am thinking to exchange my pro for an air and I thought I could ask here
[11:42:56] DEA7TH: I'm trying to make parallel web requests and using Typhoeus, but I'm not sure it can achieve what I need - I need to make 2 sets of requests at the same time, and each request in one of the sets has a follow-up request which must happen immediately after it. Can this be achieved with Typhoeus, or if no what should I use instead?
[11:43:22] kfpratt: has joined #ruby
[11:43:56] DEA7TH: Alternatively I could use one thread per request for the first set of requests in order to do the follow-up ones, but I suspect this won't work.
[11:44:44] bobby__: has joined #ruby
[11:45:08] zenspider: my air has 8gb. just $100 more
[11:45:32] rubyhelpme: has joined #ruby
[11:45:36] cscheib: has joined #ruby
[11:45:48] jso: has joined #ruby
[11:45:50] rubyhelpme: Hello does someone mind helping me real fast?
[11:45:58] verto: has joined #ruby
[11:46:09] DEA7TH: The reason it needs to be structured like that is because I simulate two parties - a listener and a sender. The listener is supposed to make a request and get a response after up to 55 seconds (yes, really, and there was no other solution for that), while it's waiting a sender must send a request with the listener's ID, and then the listener must send a follow-up request to reply to the sender.
[11:46:18] cfloare: has joined #ruby
[11:46:28] rubyhelpme: Hello does someone mind helping me real fast?
[11:47:14] qba73: has joined #ruby
[11:47:16] gigetoo: has joined #ruby
[11:47:16] sevenseacat: rubyhelpme: no-one can help you unless you ask your question
[11:47:41] rubyhelpme: sevenseacat good point
[11:48:05] rubyhelpme: So i keep getting an "unexpected end of input error" http://pastebin.com/cQq6rg8g
[11:48:06] ruboto: rubyhelpme, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/88392f527df3774c41e1
[11:48:06] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[11:48:45] sluukkonen: anyone else seeing errors from rubygems? been getting errors like "Gem::RemoteFetcher::FetchError: Socket closed (https://rubygems.global.ssl.fastly.net/gems/highline-1.7.2.gem)" during the past few hours
[11:48:46] zenspider: rubyhelpme: it's probably the tabs
[11:48:51] apeiros: ACTION loved his macbook air
[11:48:51] devoldmx: has joined #ruby
[11:48:59] apeiros: but I switched to an MBPr because of the retina screen
[11:49:06] pusewicz_: has joined #ruby
[11:49:06] sevenseacat: rubyhelpme: for starters, there's no "else if" in ruby
[11:49:11] rubyhelpme: zenspider you think? I am using VS Code and it isn't the best for spacing
[11:49:19] zenspider: sluukkonen: tweet at fastly. they're usually fairly responsive
[11:49:42] maloik: apeiros: happy with it? I expect I'll need a new laptop in the coming months, currently leaning towards MBPr as well because it's only slightly thicker/heavier than an air
[11:49:48] zenspider: I just got a 200 for that url tho
[11:49:58] rubyhelpme: sevenseacat to much cpp
[11:50:15] rubyhelpme: thanks, haven't used ruby in a long time
[11:50:54] apeiros: maloik: I'm mostly happy with it, yes. it's 3y old, though. and I want to replace it when USB C + TB3 MBPs are out
[11:51:25] maloik: That's interesting, that must've been just about the first version then? I thought people were largely unhappy with those
[11:51:34] rubyhelpme: sevenseacat that fixed the end of input error, thanks. But now i am getting an undefined error
[11:51:38] zenspider: apeiros: TB3?
[11:51:42] zenspider: oh. derp. n/m
[11:51:44] sevenseacat: rubyhelpme: I cant see what it is
[11:51:46] apeiros: thunderbolt 3
[11:51:50] lele: has joined #ruby
[11:51:52] maloik: USB C and TB3 sounds good, but I have a feeling I won't be able to wait that long
[11:51:54] zenspider: I'm just tired and slow
[11:52:03] rubyhelpme: https://gist.github.com/anonymous/88392f527df3774c41e1
[11:52:03] apeiros: especially because TB3 will be usbc compatible
[11:52:06] Zai00: has joined #ruby
[11:52:17] pusewicz_: that's interesting
[11:52:18] sevenseacat: rubyhelpme: yes, thats the same code as before.
[11:52:35] zenspider: ACTION sighs
[11:52:58] zenspider: I'm getting testy at Those Who Can't Listen???. Going to bed.
[11:53:05] rubyhelpme: sevenseacat that is the error i am getting with the same code
[11:53:21] sevenseacat: theres no error there. there's also still no else if in ruby.
[11:53:47] zenspider: funny how if you do the same thing, the same thing happens!
[11:54:04] maloik: I think Einstein described insanity just like that!
[11:54:16] maloik: or is that an urban myth and did someone else say that
[11:54:25] casadei: has joined #ruby
[11:54:29] zenspider: don't care. it applies here
[11:54:35] rubyhelpme: sevenseacat i changed that, just haven't uploaded the revised one. That is the only thing i changed, and i am getting a NoMethod Error
[11:54:47] sevenseacat: rubyhelpme: and the error isssssss?
[11:55:03] rubyhelpme: undefined method
[11:55:08] zenspider: ffs... bed before I learn how to murder over IRC
[11:55:09] rubyhelpme: NoMethodError
[11:55:12] sevenseacat: yes, *what* method is undefined?
[11:55:23] maloik: give us the exact error please, in the gist
[11:55:28] silverdust: has joined #ruby
[11:55:40] maloik: it's not there
[11:55:41] sevenseacat: because you've defined it as a class method
[11:55:42] rubyhelpme: checkLink(string)
[11:55:47] sevenseacat: and you're calling it as an instance method
[11:55:47] zenspider: wait... just to check... does anyone here know how to murder over IRC?
[11:55:55] sevenseacat: zenspider: if I did, I would be in jail.
[11:56:06] rubyhelpme: zenspider lol
[11:56:06] maloik: that's the actual method name, I thought he was telling us to check the gist
[11:56:27] rubyhelpme: okay sevenseacat i will fix it from there, thanks lol
[11:56:31] zenspider: rubyhelpme: aren't you lucky...
[11:56:44] zenspider: ACTION goes poof
[11:56:50] sevenseacat: see ya zenspider :)
[11:58:13] dhjondoh: has joined #ruby
[11:58:21] jonee: has joined #ruby
[11:59:14] wprice: has joined #ruby
[11:59:28] sphex: has joined #ruby
[12:00:04] senayar: has joined #ruby
[12:00:56] DoubleMalt: has joined #ruby
[12:04:18] solocshaw: has joined #ruby
[12:04:42] khebbie: has joined #ruby
[12:05:19] lucyinthesky: has joined #ruby
[12:07:37] Iskarlar: has joined #ruby
[12:08:17] dhjondoh: has joined #ruby
[12:08:57] davedev24: has joined #ruby
[12:09:39] senayar: has joined #ruby
[12:10:15] Zai00: has joined #ruby
[12:10:56] arcticblue: has joined #ruby
[12:16:03] yxhuvud: has joined #ruby
[12:16:37] bloo: has joined #ruby
[12:16:45] Quandl: has joined #ruby
[12:18:59] Eiam: has joined #ruby
[12:19:24] dimasg: has joined #ruby
[12:19:38] livathinos: has joined #ruby
[12:20:44] decoponio: has joined #ruby
[12:21:00] sdwrage: has joined #ruby
[12:21:54] freerobby: has joined #ruby
[12:23:07] ponga: has joined #ruby
[12:24:00] Mon_Ouie: has joined #ruby
[12:24:51] joonty: has joined #ruby
[12:25:20] Sembei: has joined #ruby
[12:26:29] SenpaiSilver: has joined #ruby
[12:26:38] stardiviner: has joined #ruby
[12:26:42] morochena: has joined #ruby
[12:27:44] ecnalyr: has joined #ruby
[12:32:40] christiandsg: has joined #ruby
[12:39:39] mattwildig: has joined #ruby
[12:39:51] Sembei: has joined #ruby
[12:40:54] skade: has joined #ruby
[12:41:31] [k-_: has joined #ruby
[12:41:52] bigmac_: has joined #ruby
[12:41:58] Guest56153: has joined #ruby
[12:44:27] centrx: has joined #ruby
[12:44:51] yqt: has joined #ruby
[12:46:05] d10n-work: has joined #ruby
[12:46:14] kent\n: has joined #ruby
[12:47:27] Iskarlar: has joined #ruby
[12:48:57] sarkyniin: has joined #ruby
[12:49:24] Ropeney: has joined #ruby
[12:49:36] devoldmx: has joined #ruby
[12:49:38] Yzguy: has joined #ruby
[12:50:42] skade: has joined #ruby
[12:51:00] dstarh: has joined #ruby
[12:52:14] joonty: has joined #ruby
[12:52:20] pusewicz_: has joined #ruby
[12:53:46] Iskarlar: has joined #ruby
[12:55:36] casadei: has joined #ruby
[12:55:39] JaRe_Ax: has joined #ruby
[12:55:55] jesterfraud: has joined #ruby
[12:56:19] sphex: has joined #ruby
[12:59:53] jonee: has joined #ruby
[12:59:55] blackmesa: has joined #ruby
[13:03:11] joonty: has joined #ruby
[13:03:38] pawnbox: has joined #ruby
[13:04:10] JDiPierro: has joined #ruby
[13:06:59] roolo: has joined #ruby
[13:07:00] Pumukel: has joined #ruby
[13:08:38] sphex: has joined #ruby
[13:09:04] morochena: has joined #ruby
[13:10:04] arup_r: has joined #ruby
[13:11:04] ddv: has joined #ruby
[13:11:16] RegulationD: has joined #ruby
[13:11:20] sacarlson: has joined #ruby
[13:11:48] sarkyniin: has joined #ruby
[13:11:50] fast_scooter: has joined #ruby
[13:13:19] joonty: has joined #ruby
[13:15:43] freerobby: has joined #ruby
[13:17:45] NeverDie: has joined #ruby
[13:18:29] thiagovsk: has joined #ruby
[13:19:38] arup_r: has joined #ruby
[13:20:45] ofdtrinity: has joined #ruby
[13:21:15] Iskarlar: has joined #ruby
[13:21:22] skade: has joined #ruby
[13:21:36] sameerynho: has joined #ruby
[13:23:19] casadei: has joined #ruby
[13:23:27] fmcgeough: has joined #ruby
[13:23:40] dseitz: has joined #ruby
[13:24:08] dimasg: has joined #ruby
[13:25:40] victortyau: has joined #ruby
[13:26:28] alphaatom: has joined #ruby
[13:26:56] allcentury: has joined #ruby
[13:27:10] [k-__: has joined #ruby
[13:27:24] nettoweb: has joined #ruby
[13:28:25] freerobby: has joined #ruby
[13:29:58] bigbadbear: has joined #ruby
[13:30:03] devdazed: has joined #ruby
[13:30:58] whippythellama: has joined #ruby
[13:32:25] malconis: has joined #ruby
[13:34:01] JoshL: has joined #ruby
[13:34:42] Zai00: has joined #ruby
[13:35:25] sankaber: has joined #ruby
[13:37:04] enebo: has joined #ruby
[13:38:15] Zai00: has joined #ruby
[13:39:02] atomical: has joined #ruby
[13:39:22] PaulCapestany: has joined #ruby
[13:41:08] datacat: so sprockets is a task runner for ruby, right?
[13:41:12] pyon: has joined #ruby
[13:41:15] datacat: a pipeline thing - like gulp?
[13:41:34] datacat: has joined #ruby
[13:41:53] adaedra: it will compile assets on demand, when they are loaded
[13:41:59] adaedra: it's plugged into a web application
[13:42:04] ranaharoni: has joined #ruby
[13:42:14] pontiki: gulp is closer to rake, i'd say
[13:42:40] kinduff: has joined #ruby
[13:43:41] adaedra: iirc sprockets also take care of the pre-compilation for production mode, but it's strength (at least how I see it) is the live re-compilation on development
[13:45:32] pontiki: anyway, i don't think about ever running sprockets for tasks
[13:45:53] JDiPierro: has joined #ruby
[13:46:51] adaedra: sprockets is really web assets oriented
[13:50:03] rbennacer: has joined #ruby
[13:50:27] christiandsg: has joined #ruby
[13:52:12] Eiam: has joined #ruby
[13:52:15] shevy: sevenseacat will be so happy to see datacat
[13:53:38] pawnbox: has joined #ruby
[13:55:42] adaedra: datacat: ????
[13:55:49] fast_scooter: has joined #ruby
[13:56:31] dojobo: has joined #ruby
[13:57:12] _blizzy_: has joined #ruby
[13:58:35] paulcsmith: has joined #ruby
[13:58:54] voltalio: has joined #ruby
[13:59:30] yardenbar: has joined #ruby
[14:00:01] pyon: has joined #ruby
[14:02:30] timonv: has joined #ruby
[14:04:07] slackbotgz: has joined #ruby
[14:05:03] _blizzy_: has joined #ruby
[14:06:01] Alayde: has joined #ruby
[14:06:20] jhack: has joined #ruby
[14:06:25] Macaveli: has joined #ruby
[14:06:43] bigmac_: has joined #ruby
[14:07:53] revoohc: has joined #ruby
[14:08:05] Kallis: has joined #ruby
[14:08:20] kinduff: has joined #ruby
[14:09:07] atomical: has joined #ruby
[14:09:51] Spami: has joined #ruby
[14:10:03] rbennacer: has joined #ruby
[14:10:42] Chau: has joined #ruby
[14:11:31] pandaant: has joined #ruby
[14:11:48] arcticblue: has joined #ruby
[14:12:01] RegulationD: has joined #ruby
[14:12:54] Zai00: has joined #ruby
[14:13:38] RegulationD: has joined #ruby
[14:14:14] revoohc: has joined #ruby
[14:14:26] ta: has joined #ruby
[14:14:26] freerobby: has joined #ruby
[14:15:00] revoohc: has joined #ruby
[14:17:39] ecnalyr: has joined #ruby
[14:17:54] fast_scooter: has joined #ruby
[14:19:02] solocshaw: has joined #ruby
[14:19:28] solocshaw: has joined #ruby
[14:19:53] Kallis: has joined #ruby
[14:19:57] zenguy_pc: has joined #ruby
[14:19:59] dhollinger: has joined #ruby
[14:21:12] Macaveli: has joined #ruby
[14:22:18] j_mcnally: has joined #ruby
[14:22:49] sarkyniin: has joined #ruby
[14:24:12] hashrocket: has joined #ruby
[14:25:01] gregf: has joined #ruby
[14:25:52] shevy: adaedra if you were to go back to your old nick
[14:25:55] shevy: you could be undeadcat
[14:26:12] dopamean_: has joined #ruby
[14:27:29] livathinos: has joined #ruby
[14:28:27] adaedra: ???old??? nick
[14:28:57] Macaveli: has joined #ruby
[14:30:03] Macaveli_: has joined #ruby
[14:33:18] tmacj: has joined #ruby
[14:33:57] tkuchiki: has joined #ruby
[14:34:14] pyon: has joined #ruby
[14:36:11] kjhgf: has joined #ruby
[14:36:17] angrywombat: has joined #ruby
[14:36:28] kjhgf: has left #ruby: ()
[14:36:41] havenwood: has joined #ruby
[14:36:55] shevy: hmm I am digging through old ruby code here
[14:36:58] shevy: elsif args.include? '&&'
[14:37:03] shevy: system(args)
[14:37:15] shevy: does anyone know why one might want to check for '&&' ?
[14:38:09] revoohc: has joined #ruby
[14:38:35] kies: has joined #ruby
[14:38:58] joonty: has joined #ruby
[14:39:04] wutwut: has joined #ruby
[14:39:28] jobewan: has joined #ruby
[14:41:58] Zai00: has joined #ruby
[14:42:02] jhass: because some idiot thought he's invoking a shell why he isn't?
[14:44:25] hinbody: has joined #ruby
[14:44:26] atomical: everyone makes mistakes
[14:44:40] bradland: interesting that the decision made upon finding '&&' is to send the args to system
[14:44:46] Zai00: has joined #ruby
[14:44:52] bradland: would seem to provide a big window for interesting outcomes
[14:44:58] Guest4993: has joined #ruby
[14:45:02] tmacj: has left #ruby: ()
[14:46:56] ngscheurich: has joined #ruby
[14:47:35] ofdtrinity: has joined #ruby
[14:47:53] joonty_: has joined #ruby
[14:48:25] Zai00: has joined #ruby
[14:48:53] pontiki: i suppose it depends on how args is generated
[14:50:15] snockerton: has joined #ruby
[14:50:21] devoldmx: has joined #ruby
[14:52:02] joonty: has joined #ruby
[14:52:03] Zai00: has joined #ruby
[14:52:08] pietr0: has joined #ruby
[14:52:26] ecnalyr: has joined #ruby
[14:53:16] fullofcaffeine: has joined #ruby
[14:55:08] roolo: has joined #ruby
[14:55:37] ellisTAA: has joined #ruby
[14:55:42] mary5030: has joined #ruby
[14:56:17] tonios57: has joined #ruby
[14:57:12] dtzitz: has joined #ruby
[15:00:27] jtirila: has joined #ruby
[15:01:09] Encapsulation: has joined #ruby
[15:01:29] ta: has joined #ruby
[15:04:18] fluffykat: has joined #ruby
[15:04:31] tkuchiki: has joined #ruby
[15:05:01] fluffykat: hello - can someone tell me how i can test if a variable returns a random number from 0-2 in capybara?
[15:06:20] centrx: Probably easier to just test that the number is between 0 and 2
[15:06:28] pontiki: in a Unit test
[15:06:35] jhass: fluffyKat: expect(variable).to be_between(0, 2)
[15:06:49] pontiki: ^ not capybara
[15:07:44] Norrin: has left #ruby: ("Dueces")
[15:09:23] jhass: open interpretation of the question ;P
[15:09:30] jhass: also ?xy anyway
[15:09:43] xhosae: has joined #ruby
[15:10:15] dgutierrez1287: has joined #ruby
[15:10:50] xhosae_: has joined #ruby
[15:11:07] Ropeney: has joined #ruby
[15:11:15] fluffykat: hmm, is that code actually testing for randomnes though jhass ? If variable is always =1 then the test would still always pass, despite not setting variable to a random number between 0-2
[15:12:00] djbkd_: has joined #ruby
[15:12:06] tkuchiki: has joined #ruby
[15:12:49] jhass: fluffyKat: how do you test for randomness? http://dilbert.com/strip/2001-10-25
[15:13:03] pontiki: call the method in question 1000 times, measure the distrbution
[15:13:31] Maletor: has joined #ruby
[15:13:34] jeadre: has joined #ruby
[15:13:39] cornerma1: has joined #ruby
[15:13:44] nettoweb: has joined #ruby
[15:14:22] pawnbox: has joined #ruby
[15:14:51] sarkyniin: has joined #ruby
[15:16:02] andybernard: has joined #ruby
[15:17:36] bradland: measuring distribution won't do the trick
[15:17:55] bradland: 012210012210
[15:18:23] tkuchiki: has joined #ruby
[15:18:24] bradland: ordered with equal distribution
[15:18:30] bradland: testing randomness is hard
[15:18:48] pontiki: you're making the problem much bigger than they're asking
[15:19:00] Torrieri: has joined #ruby
[15:19:16] bradland: we don't know why they need randomness
[15:19:24] bradland: a lower standard might be suitable
[15:19:25] dimasg: has joined #ruby
[15:19:34] bradland: but we can't presume that is the case
[15:19:48] The_Phoenix: has joined #ruby
[15:20:16] pontiki: that they're asking about it at all presumes they don't trust their code to correctly use a random number generator, not that they're writing a random number generator
[15:20:40] jhass: fluffyKat: pleeaase end this
[15:20:53] pontiki: that's my assumption. that they wanted to use capybara to test it makes me more sure of that assumption
[15:21:07] pontiki: i have no more to add
[15:21:11] fluffykat: jhass: your code is good enough. Thanks
[15:21:48] skade: has joined #ruby
[15:22:18] sphex_: has joined #ruby
[15:22:20] paradoja: has joined #ruby
[15:22:26] ElSif: you should test that the number your rng produces have an expected distribution :) but that is harder
[15:22:38] pontiki: i disagree
[15:22:42] ElSif: but bradland is right, even distribution isnt enough
[15:23:01] pontiki: unless you're writing a generator
[15:23:09] ElSif: yea thats fair
[15:23:31] bradland: the point i was really getting at is that the test should frame the question correctly
[15:23:39] ElSif: very true
[15:23:44] bradland: i wouldn't write a test that infers it validates randomness unless it passes that bar
[15:23:53] bradland: test the range, test the distribution
[15:24:04] bradland: but don't name it as a randomness test
[15:24:09] paulcsmith: has joined #ruby
[15:24:14] pontiki: i certainly wouldn't
[15:24:24] bradland: i should have just said that :P
[15:24:36] TomyWork: is there an elegant way to getting the sum of an array, preferably with a block to grab a field of those elements?
[15:24:53] [k-: if you are testing randomness are you really testing randomness?
[15:25:00] ElSif: i think there is a #sum method now yes?
[15:25:07] ElSif: but inject is essentially the same
[15:25:11] pontiki: hum, i know there is in rails
[15:25:27] TomyWork: ElSif ruby 1.9.3? :)
[15:25:36] ElSif: might be just rails
[15:25:39] bradland: ElSif: Array#sum is part of active support, i believe
[15:25:41] ElSif: yea it is
[15:26:01] ElSif: i think it just uses inject under th hood :)
[15:26:01] Eiam: has joined #ruby
[15:26:04] bradland: TomyWork: are you working with rails, or just ruby?
[15:26:07] [k-: array.map(&:accessor).reduce(:+)?
[15:26:19] havenwood: ElSif: Ruby doesn't provide an Enumerable#sum but you're free to implement one or use ActiveSupport.
[15:26:26] ElSif: reduce and inject are synonomous no?
[15:26:32] havenwood: ElSif: aliases
[15:26:40] TomyWork: reduce, that's what i was looking for
[15:26:55] [k-: yes havenwood, that's what synonymous means
[15:26:58] TomyWork: why isnt that listed here? http://ruby-doc.org/core-1.9.3/Array.html
[15:27:07] TomyWork: oh wait, i am in fact using 2.0.0 right now
[15:27:15] havenwood: [k-: Things can be synonymous and not be aliases.
[15:27:20] pontiki: inject/reduce are on Enumerable
[15:27:23] [k-: &ri Enumerable#reduce
[15:27:24] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#reduce-instance_method
[15:27:26] havenwood: [k-: If you want to be pedantic. :P
[15:27:37] pontiki: a new bot?
[15:27:47] [k-: your face can be synonymous and not aliases!
[15:27:49] sarkyniin: has joined #ruby
[15:28:28] TomyWork: pontiki oh i was only looking at superclasses
[15:28:40] havenwood: ElSif: If you wanted to cherry pick it, but doesn't seem worth bothering unless you're already using Rails: require 'active_support/core_ext/enumerable'
[15:28:43] TomyWork: the included modules should be further up, or the superclasses further down
[15:28:47] [k-: you mean subclasses
[15:28:47] pontiki: nw TomyWork
[15:29:31] [k-: havenwood are you sureeeee synonymous > aliases
[15:29:42] TomyWork: reduce has no neutral element, it just starts with [0]+[1], right?
[15:29:50] havenwood: [k-: I know what the words mean. I have no doubt.
[15:30:09] havenwood: [k-: To the dictionary with you!!
[15:30:26] riotjones: has joined #ruby
[15:30:28] Torrieri: has joined #ruby
[15:30:29] TomyWork: except if it does... hmm
[15:30:38] adaedra: ACTION hints at offtopic
[15:30:41] [k-: [0]+[1] is [0,1]
[15:30:55] bradland: TomyWork: you can use an argument form of reduce/inject to do this really simply: [5,10,100].reduce(:+)
[15:31:11] ElSif: >> [0] + [1] == [0] << [1]
[15:31:12] ruboto: ElSif # => false (https://eval.in/422787)
[15:31:21] ElSif: >> [0] + [1] == [0] << 1
[15:31:22] ruboto: ElSif # => true (https://eval.in/422788)
[15:31:35] ElSif: its too early to try and help T_T
[15:31:50] [k-: ElSif whyyyyy do you do this to me
[15:32:04] pauly_oc: has joined #ruby
[15:32:14] ElSif: apologies :(
[15:32:34] bradland: >> [5,10,100].reduce(:+)
[15:32:35] ruboto: bradland # => 115 (https://eval.in/422789)
[15:32:39] tercenya: has joined #ruby
[15:32:51] lagweezle: >> [0] + [1]
[15:32:52] ruboto: lagweezle # => [0, 1] (https://eval.in/422790)
[15:32:53] adaedra: what is happening
[15:33:01] lagweezle: >> [0] << [1]
[15:33:02] ruboto: lagweezle # => [0, [1]] (https://eval.in/422791)
[15:36:01] failshell: has joined #ruby
[15:36:22] bradland: TomyWork: you asked earlier withether reduce has a neutral element. what did you mean by that?
[15:36:51] dfockler: has joined #ruby
[15:37:19] kinduff: has joined #ruby
[15:37:31] bradland: based on your question, it seems you're probably using the most common block form array.reduce {|sum,i| sum + i}
[15:37:45] bradland: and wondering what sum will be initialized as
[15:37:49] lucyinthesky: has joined #ruby
[15:37:53] rakm: has joined #ruby
[15:38:07] JDiPierro: has joined #ruby
[15:38:12] bradland: when reduce is not passed an argument, sum will start out as the first element of the array
[15:38:15] Cache_Money: has joined #ruby
[15:39:21] ytti: [1] pry(main)> (1..6).reduce :+
[15:39:38] bradland: that was my suggestion as well
[15:39:48] bradland: but it can be difficult to understand what's going on there
[15:39:54] ytti: oh i need moar scroll buffer
[15:39:59] luckyme: has joined #ruby
[15:41:39] diegoaguilar: has joined #ruby
[15:42:15] [k-: i know the sum of 1 to 10 is 55, it's a constant in my head
[15:42:37] krisquigley: has joined #ruby
[15:42:53] TomyWork: bradland 0 is the neutral element of +, 1 is the neutral element of *
[15:43:29] [k-: you are talking about monoids!
[15:43:33] [k-: yay me!
[15:43:39] TomyWork: i'm talking english, actually
[15:43:39] bradland: you're right that reduce has no neutral element
[15:43:53] bradland: it starts with the first element, unless an argument is provided to reduce
[15:44:08] [k-: TomyWork talking != talking about
[15:44:15] ramfjord: has joined #ruby
[15:44:45] TomyWork: good enough for the joke
[15:44:47] yatish27: has joined #ruby
[15:45:25] but3k4: has joined #ruby
[15:46:16] TomyWork: bradland yeah i briefly thought the neutral element was what distinguishes inject from reduce, but then i saw that they're synonyms
[15:47:35] rcvalle: has joined #ruby
[15:48:16] joonty_: has joined #ruby
[15:48:42] rehat: has joined #ruby
[15:48:47] TomyWork: hmm is there a method i can use to create a hash from an array of keys and a block or something?
[15:50:03] TomyWork: i mean except Hash[_.zip...]
[15:50:39] ta: has joined #ruby
[15:51:12] symm-: has joined #ruby
[15:51:25] TomyWork: but each returns no hash
[15:52:17] dr3w: has joined #ruby
[15:52:31] [k-: well your question was to create a hash, with the constraint of not using Hash[] and _.zip
[15:52:33] TomyWork: Hash[_.map {|key| [key, get_value_for(key)] }]
[15:53:13] but3k4: has joined #ruby
[15:53:17] christiandsg: has joined #ruby
[15:53:20] joonty_: has joined #ruby
[15:53:40] [k-: that's zip...
[15:54:20] [k-: well if you wanted to be more expressive, okay...
[15:54:45] lucyinthesky: has joined #ruby
[15:54:48] TomyWork: that's what zip does? uhhh
[15:54:53] rbennacer: has joined #ruby
[15:55:01] Torrieri: has joined #ruby
[15:55:02] TomyWork: ACTION reads manual
[15:55:35] [k-: why do you think we can use them both and get the same result...
[15:56:10] TomyWork: well i thought what i posted first wouldnt work :D
[15:56:32] joonty: has joined #ruby
[15:57:12] SCHAAP137: has joined #ruby
[15:57:13] i: has joined #ruby
[15:57:54] bradland: TomyWork: have you tried irb yet?
[15:58:07] bradland: you can evaluate ruby at a console
[15:58:10] bradland: and get live results
[15:58:26] bradland: great for trying out different permutations of code without re-running an entire application over and over
[15:59:34] [k-: zip = [[a,b],[c,d]] where the first array is [a,c] and second is [b,d]
[15:59:54] marr: has joined #ruby
[16:00:03] [k-: basically it pairs the elements of the same index together from to arrays
[16:00:06] JoshL: has joined #ruby
[16:00:29] TomyWork: bradland yeah, been using irb all the time
[16:00:37] bootstrappm: has joined #ruby
[16:00:38] TomyWork: i just didnt try it because it looked wrong
[16:00:59] [k-: in your case, map would be better since you needed to use a method to get the value from the key
[16:01:03] towski_: has joined #ruby
[16:01:14] lea: has joined #ruby
[16:01:17] TomyWork: that's what i meant
[16:01:20] TomyWork: where does get_value_for come into play?
[16:01:39] [k-: TomyWork that wasnt in your original question
[16:01:44] CorySimmons: has joined #ruby
[16:01:47] [k-: so you should be ashamed!
[16:01:58] TomyWork: "a block or something"
[16:02:45] failshell: has joined #ruby
[16:02:49] [k-: proc { #generate array }.call
[16:03:09] Rubie: has joined #ruby
[16:03:09] [k-: ok, indeed, you did
[16:03:36] [k-: you can also lazily generate the hash
[16:03:56] TomyWork: that's probably not good for iteration
[16:05:10] amclain: has joined #ruby
[16:05:25] hubcaps: has joined #ruby
[16:05:52] minimuffins: has joined #ruby
[16:05:57] lea: has joined #ruby
[16:06:50] snockerton1: has joined #ruby
[16:07:11] [k-: in case you might eventually need it: Hash.new { |k, hash| (array.include? k) ? hash.store(k, get_value_for k) : nil }
[16:07:23] craysiii: has joined #ruby
[16:07:36] umgrosscol: has joined #ruby
[16:07:43] BLuEGoD: has joined #ruby
[16:07:55] snockerton1: has joined #ruby
[16:08:05] [k-: the proc is called when the key is not found, so it wouldn't override your keys!
[16:08:38] jeadre: has joined #ruby
[16:09:37] fullofcaffeine: has joined #ruby
[16:10:00] [k-: caveat: more expensive in the long run
[16:10:45] sacarlson: my solution for the problem I spoke of earlier today seems to be working now with both versions of ruby 1.9.3 and 2.2.1 with rbenv bundler now with details here https://gist.github.com/sacarlson/834de549cf0058c1572c
[16:12:04] rakm: has joined #ruby
[16:12:48] dudedudeman: has joined #ruby
[16:13:49] dudedudeman: happy wednesday everyone :)
[16:13:59] TomyWork: [k- is hash.store any different from hash[]?
[16:14:15] TomyWork: []= that is
[16:14:23] lea: has joined #ruby
[16:14:26] al3xy: has joined #ruby
[16:14:52] [k-: no, it just allows me to not care about = precedence and whatnot
[16:14:57] TomyWork: also, doesnt the hash come before the key in the arguments?
[16:15:15] lguardiola: has joined #ruby
[16:15:24] [k-: the key comes before the hash, iirc
[16:15:41] [k-: &ri Hash.new, Hash#store
[16:15:41] `derpy: http://www.rubydoc.info/stdlib/core/Hash#initialize-instance_method, http://www.rubydoc.info/stdlib/core/Hash#store-instance_method
[16:16:04] bankair: Hey, guys. I'd like your input on a question we like to ask in interview.
[16:16:56] [k-: ah, you're right TomyWork
[16:17:23] dudedudeman: bankair: i'd love to hear it
[16:17:40] walla: has joined #ruby
[16:17:52] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:17:54] meatherly: has joined #ruby
[16:18:32] bankair: Given a list of elements, how do you return all duplicated ones ([1, 1, 1, 2, 3, 2, 4] => [1, 2])
[16:18:41] nofxx: has joined #ruby
[16:18:47] nofxx: has joined #ruby
[16:18:55] bankair: There is an obvious solution, but I'd like to see if someone have a more fancy way to do it :)
[16:19:25] havenwood: >> [1, 1, 1, 2, 3, 2, 4].group_by(&:itself).reject { |_, v| v.one? }.keys
[16:19:26] ruboto: havenwood # => [1, 2] (https://eval.in/422800)
[16:19:28] dblessing: has joined #ruby
[16:19:35] bankair: (And I'll be sure to use folks, next time)
[16:19:54] TomyWork: group by itself?
[16:20:06] mleung: has joined #ruby
[16:20:15] Hanmac: has joined #ruby
[16:20:17] bankair: nice one havenwood
[16:20:40] youngbaks: has joined #ruby
[16:20:48] havenwood: bankair: thanks
[16:20:51] adaedra: &ri Object#itself
[16:20:51] `derpy: http://www.rubydoc.info/stdlib/core/Object#itself-instance_method
[16:20:55] TomyWork: >> [-1, -1, 1, 1, 1, 2, 3, 2, 4].group_by(&:itself).reject { |_, v| v.one? }.keys
[16:20:56] ruboto: TomyWork # => [-1, 1, 2] (https://eval.in/422803)
[16:21:09] meatherly: has joined #ruby
[16:21:10] bricker: has joined #ruby
[16:21:11] lucyinthesky: has left #ruby: ("Leaving")
[16:21:23] Rubie: has joined #ruby
[16:21:51] pizzas: has joined #ruby
[16:22:00] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:22:01] shinnya: has joined #ruby
[16:22:19] havenwood: ?pizza pizzas
[16:22:19] ruboto: pizzas, here's your pizza: ????
[16:22:23] dc_: has joined #ruby
[16:22:50] Eiam: has joined #ruby
[16:22:51] pizzas: domo arigato mr ruboto
[16:23:22] sacarlson: the problem parser.so: undefined symbol: rb_str_new_static
[16:23:22] sacarlson: seems to be fixed with ether bundle install -force or bundle exec gem pristine gemname but will only work on one of the ruby version that have the problem
[16:23:29] lagweezle: >> 1.itself
[16:23:30] ruboto: lagweezle # => 1 (https://eval.in/422806)
[16:23:43] lagweezle: I'm definitely missing something ...
[16:23:45] lagweezle: Many somethings.
[16:23:54] chinmay_dd: has joined #ruby
[16:23:56] saddad: has joined #ruby
[16:24:17] Chau: has joined #ruby
[16:25:03] havenwood: >> [1, 1, 1, 2, 3, 2, 4].sort.each_cons(2).with_object([]) { |(a, b), result| result << a if a == b }.uniq
[16:25:04] krisquigley: has joined #ruby
[16:25:04] ruboto: havenwood # => [1, 2] (https://eval.in/422811)
[16:25:07] TomyWork: lagweezle the group_by would return a hash where each array element is represented as a key
[16:25:20] pizzas: has left #ruby: ("WeeChat 0.4.3")
[16:25:26] havenwood: bankair: ^ just for the heck of it, not that i'd do it that way
[16:25:44] TomyWork: and the values of the hash are arrays with n times the key in them, where n is how many times the key occurs in the original array
[16:25:55] armyriad: has joined #ruby
[16:26:00] pontiki: the value is not in the answer, but in watching the candidate solve it
[16:26:28] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:26:47] TomyWork: next, he's removing all entries where the values are single-element arrays
[16:27:02] TomyWork: and then he just takes the remaining keys and he's done
[16:27:53] AlexW2611: has joined #ruby
[16:28:27] sacarlson: has left #ruby: ()
[16:28:59] jpfuentes2: has joined #ruby
[16:30:13] dorei: has joined #ruby
[16:30:58] lucyinthesky: has joined #ruby
[16:31:46] TomyWork: >> `printf '%s\n' #{[1, 1, 1, 2, 3, 2, 4].join(' ')} | sort | uniq -c | grep -v ' 1 ' | awk '{ print $2 }'`.split("\n").map(&:to_i)
[16:31:47] ruboto: TomyWork # => (https://eval.in/422813)
[16:31:59] TomyWork: guess `` is disabled
[16:31:59] banjara: has joined #ruby
[16:32:00] kinduff: has joined #ruby
[16:32:43] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:32:55] TomyWork: i said "guess", not "guys"
[16:32:58] michaeldeol: has joined #ruby
[16:33:12] ruboto: dorei # => (https://eval.in/422814)
[16:33:13] havenwood: walla: Stop spamming the bot.
[16:33:17] BraddPitt: god please just fucking disable that stupid trigger
[16:33:26] ruboto: dorei # => (https://eval.in/422815)
[16:33:47] dorei: >>x=`id`; x.size
[16:33:49] ruboto: dorei # => (https://eval.in/422816)
[16:34:08] [k-: ?experiment dorei
[16:34:08] ruboto: dorei, Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
[16:34:38] dorei: i was wondering if `cmd` is disabled for ruboto :p
[16:34:47] dorei: >>`echo test`
[16:34:48] ruboto: dorei # => (https://eval.in/422817)
[16:34:50] fantazo: has joined #ruby
[16:34:51] [k-: read the link.
[16:35:00] wprice: has joined #ruby
[16:35:01] [k-: it says it's forbidden.
[16:35:12] dorei: the binary excecutable is forbidden
[16:35:15] dorei: not the `cmd`
[16:35:18] angrywombat: has left #ruby: ("WeeChat 1.2")
[16:35:26] dorei: although i wonder if they've messed with PATH env
[16:35:29] [k-: your face is forbidden
[16:35:37] rippa: has joined #ruby
[16:35:38] adaedra: execution of anything is blocked in the bot
[16:36:11] shevy: website overhauls... leading to loss of functionality...
[16:36:16] bmalum: has joined #ruby
[16:36:36] dorei: shevy: more job opportunities for developers :D
[16:36:37] mikecmpbll: has joined #ruby
[16:36:38] [k-: (your face is a loss of functionality)
[16:36:47] lagweezle: TomyWork: I think I don't understand true/false in Ruby well enough...
[16:37:38] shevy: well they could test their stuff, just as we do in ruby!
[16:37:38] adaedra: [k-: will you stop with people's faces
[16:38:06] TomyWork: lagweezle there's no true/false there
[16:38:10] [k-: it depends on what they say :(
[16:38:18] shevy: [k- they say bad things about your face
[16:38:20] bhaak: has joined #ruby
[16:38:29] [k-: i don't your face everything if it wouldn't be funny
[16:38:42] lagweezle: TomyWork: But ... v.one? isn't being supplied a block, so ...
[16:38:47] lagweezle: ACTION feels very lost.
[16:38:54] walla: ?guys face
[16:38:54] ruboto: face, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:39:03] havenwood: !mute walla
[16:39:04] ruboto: +q walla!*@*
[16:39:04] ruboto: -o ruboto
[16:39:09] TomyWork: lagweezle v.one? returns true if v is 1 i guess
[16:39:30] shevy: havenwood was keeping a close eye there :)
[16:39:35] CanTonic: has joined #ruby
[16:39:58] pontiki: no; .one? scans an array and if one and only one item in the array returns truthy, then .any? is true
[16:40:02] lagweezle: TomyWork: Yeah. That's the bit that is kind of messing with me. I think I finally wrapped my head around group_by(&:itself) after re-reading group_by
[16:40:36] d2dchat: has joined #ruby
[16:40:42] lagweezle: pontiki: If the .any? is actually a .one? in your question, that's my understanding. I'm having trouble making sense of 'truthy' in Ruby right now.
[16:40:49] zenguy_pc: has joined #ruby
[16:40:52] voltalio: has joined #ruby
[16:40:54] pontiki: oops, yes, sorry
[16:41:28] pontiki: it's easier to define 'falsy' and anything else is 'truthy'. falsy is nil and false
[16:41:43] lagweezle: pontiki: AH! That fills in a great deal, then.
[16:42:38] TomyWork: lagweezle v is a local variable. Fixnum.one? is a method. By convention, methods whose names end in a question mark return a boolean. v.one? tells if v is 1
[16:43:19] roolo: has joined #ruby
[16:43:43] Chau: has joined #ruby
[16:43:59] TomyWork: `printf '%s' '#{[1, 1, 1, 2, 3, 2, 4].join("\n")}' | sort | uniq -c | sed -rn '/^ *1 / ! s/^ *([^ ]+) //p'`.split("\n").map(&:to_i) # Made it a bit more solid to whitespacery
[16:44:26] adaedra: shevy: havenwood never sleeps. That's Op duty.
[16:44:46] shevy: he just injects more coffee to stay awake
[16:44:48] Chau: has joined #ruby
[16:44:50] but3k4: has joined #ruby
[16:45:02] adaedra: havenwood.inject(:coffee)
[16:45:04] zenguy_pc: has joined #ruby
[16:45:20] theRoUS: the #cucumber channel is pretty quiet. is it reasonable to ask cucumber questions here?
[16:45:21] centrx: reduce(:coffee)
[16:45:38] zendrix: has joined #ruby
[16:45:43] centrx: theRoUS, It is sensible if not rational
[16:45:46] TomyWork: so havenwood is an array whose elements have a coffee method?
[16:45:47] hackeron: has joined #ruby
[16:46:03] bruno-: has joined #ruby
[16:46:03] lagweezle: TomyWork: The truthiness bit was missing; wasn't sure there, so was having issues with one? as ... well, I needed that info to know how it behaved with numbers.
[16:46:25] shevy: theRoUS the usage % is probably low here; you can still try and hope that someone may know though
[16:46:38] TomyWork: lagweezle truthiness in ruby is basically like in lua :)
[16:46:56] lagweezle: TomyWork: I know almost nothing about LUA. :/
[16:47:19] TomyWork: it's a basically like ruby thee
[16:47:19] lagweezle: The 'not false and not nil' bit helps a lot though.
[16:47:24] theRoUS: (0..BigDecimal::INFINITY).reduce(:**) { :coffee }
[16:47:51] theRoUS: cucumber with ruby. i have a API realised as a module. it defines a class as simply as 'class Foo; include API; end' -- but it's also used to extend another module via 'module Bar; include API; ... end'
[16:47:54] angrywombat: has joined #ruby
[16:48:03] theRoUS: i want to test the behaviour both of an instance of Foo (e.g., Foo.new.methname) but also the module functions (e.g., Bar.methname)
[16:48:13] failshell: has joined #ruby
[16:48:17] theRoUS: (sorry, the module definition should be 'module Bar ; class << self ; include API ; end ; ... end')
[16:48:33] theRoUS: one of my Before hooks defines '@exemplar' as the default object against tests should be applied.
[16:48:47] theRoUS: so, the question: how can my Before hook tell whether it should use '@exemplar = Bar' or '@exemplar = Foo.new' ?
[16:48:51] voltalio: has joined #ruby
[16:49:10] theRoUS: alternatively, if a scenario is tagged with '@a' and '@b', and i have 'Around("@a")' and 'Around("@b")' hooks, and cucumber is invoked with '-t @a'
[16:49:23] theRoUS: both hooks get invoked. is there a way the hook code can tell a) what the Around('...') argument is (value of the '...'), b) what tags are actually in the set being applied?
[16:49:35] theRoUS: i.e., is there any way the 'Around("@b")' hook can tell that it's for the '@b' tag expression, *and* that '@b' is *not* in the list of tags being applied?
[16:49:35] youngbaks: has joined #ruby
[16:50:23] jackjackdripper: has joined #ruby
[16:50:38] ramfjord: has joined #ruby
[16:51:07] devoldmx: has joined #ruby
[16:52:01] shevy: hmm I have this line in my irbrc: require 'psych'
[16:52:08] shevy: does anyone remember why I did this? :\
[16:52:25] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:52:35] theRoUS: shevy: psych is prefered for yaml
[16:52:40] havenwood: angrywombat: Do not spam the bot.
[16:52:59] theRoUS: shevy: but it wasn't the default prior to, um, 1.9.1 ?
[16:53:01] angrywombat: havenwood: how should i interact with the bot then?
[16:53:06] havenwood: !mute angrywombat
[16:53:07] ruboto: +q angrywombat!*@*
[16:53:07] ruboto: -o ruboto
[16:53:09] havenwood: In silence.
[16:53:18] theRoUS: angrywombat: politely and with restraint? :-)
[16:53:38] dorei: is "folks" still used nowdays?
[16:53:53] theRoUS: 'fellow sentients' ?
[16:54:01] shevy: theRoUS yeah... but I think, require 'yaml' should suffice or? I don't remember why I did this, my irbrc is really old... I'm gonna delete it and see what happens
[16:54:13] wldcordeiro: has joined #ruby
[16:54:35] theRoUS: shevy: what version of ruby are you using? if a newer one, psych is already the default for yaml, and you can safely delete it.
[16:54:37] shevy: dorei for people who talk 1880 english style
[16:54:54] shevy: theRoUS I always use the latest official tarball release, 2.2.3 something right now
[16:54:56] theRoUS: shevy: if you're still doing 1.8.7 or so, though, you should leave it in as it does no harm
[16:55:22] eam: dorei: none of the alternative suggestions are used in common parlance, which is part of why the suggestion is so silly
[16:55:34] theRoUS: shevy: psych or an alternative is a prereq for require('yaml')
[16:55:46] eam: folks can work in some contexts, but "y'all?" I'd rather not be mistaken for a southener
[16:56:10] adaedra: eam: too late, I already place you in Texas
[16:56:19] theRoUS: shevy: so you probably put it in there when something else was the default
[16:56:29] eam: adaedra: I've heard we shouldn't mess with texas
[16:56:44] pontiki: texas is already too much of a mess
[16:56:53] adaedra: eam: good thing there's an ocean between them and me.
[16:57:05] pontiki: two oceans would be better
[16:57:07] eam: texas isn't really the south, though
[16:57:27] shevy: theRoUS yeah I guess so, I didn't add any comments so I don't remember for sure
[16:57:30] adaedra: anyway, time to go
[16:57:38] adaedra: my train won't wait for me :x
[16:57:40] unver: has joined #ruby
[16:57:41] eam: not gonna touch that one with a 10 meter pole eh
[16:57:43] petricore: has joined #ruby
[16:58:00] ecnalyr: 8.36% of americans live in Texas.
[16:58:08] youch: has joined #ruby
[16:58:10] dorei: shevy: i think the last time i've heard of "folks" was on bugs bunny cartoons
[16:58:18] turb0: has joined #ruby
[16:58:18] pontiki: time and train wait for no one
[16:58:25] eam: ecnalyr: almost as many as in my state!
[16:58:44] pontiki: i use "folks"
[16:59:07] pontiki: but then i'm probably in an old bugs bunny cartoon anyway
[16:59:28] turb0: has left #ruby: ()
[16:59:36] ruby017: has joined #ruby
[16:59:54] BraddPitt: this chat needs to eliminate the pointless pronoun discussion
[17:00:05] BraddPitt: just say whatever you want, ignore those with thin skin who are needlessly upset
[17:00:38] pontiki: you seem upset
[17:01:18] BraddPitt: yes because this is clearlty off-topic discussion in a chat that is designed for helping people with Ruby questions
[17:01:34] pontiki: my my thin skin
[17:02:05] angrywombat: has left #ruby: ()
[17:02:25] unver: he has a point -> #ruby-offtopic
[17:02:32] qwebirc13579: has joined #ruby
[17:02:40] shevy: dorei haha
[17:02:50] shevy: dorei so now we know, jhass is bugs bunny!
[17:03:31] qwebirc13579: Hi all, I'd like to file a bug report about the web application at irclog.whitequark.org
[17:03:51] zenguy_pc: has joined #ruby
[17:03:54] qwebirc13579: I'm not sure if you're aware but the filter functionality doesn't work in conjunction with the live updates
[17:04:06] shevy: https://github.com/whitequark/irclogger/issues
[17:04:12] qwebirc13579: Ah thank you shevy
[17:04:36] shevy: dunno how active whitequark is
[17:04:56] shevy: last commit 25 days ago so that's still better than +one year inactive projects :D
[17:04:59] qwebirc13579: Eh, a bug is a bug :)
[17:05:18] shevy: a programmer's old nemesis
[17:05:32] khebbie: has joined #ruby
[17:06:03] craysiii: hello other biological lifeforms of which sex and gender are not important
[17:06:16] craysiii: oh sorry ruboto, didn't mean to be exclusionary :P
[17:07:00] jhass: ?justabot
[17:07:00] ruboto: I'm just a bot. You don't need to address me.
[17:07:23] ruby095: has joined #ruby
[17:09:46] choke: has joined #ruby
[17:09:54] qwebirc13579: Actually, I think this is an issue report against the JS on whitequarks website I think, not the bot's logging mechanism-- so I will just send them a message next time I see them
[17:10:09] nfk: has joined #ruby
[17:11:46] shevy: this is how bugs be forgotten :)
[17:12:02] shevy: or my todo lists... they keep on growing and growing and growing...
[17:12:58] ruby095: beginner stuck on codecademy loop next keyword lesson need help with for i in 1..20 next if i % 2 == 0 print i end, getting it to print odd#
[17:13:31] arup_r: has joined #ruby
[17:14:13] BraddPitt: ruby095 can you paste your code (on gist) and example input/expected output please?
[17:14:21] shevy: looks ok ruby095
[17:14:21] BraddPitt: shevy how can one add a ?trigger to ruboto?
[17:14:28] theRoUS: i've posted my cucumber question at http://stackoverflow.com/questions/32232683/can-cucumber-hooks-differentiate-tags
[17:14:35] shevy: BraddPitt I think you may require permission...
[17:14:42] saddad: has joined #ruby
[17:14:51] theRoUS: BraddPitt: a trigger? to shoot someone? :-)
[17:14:51] shevy: the syntax format is probably available on a website, hopefully
[17:15:23] BraddPitt: what do you mean shevy? Who is in charge of him?
[17:15:25] shevy: ruby095 that code you wrote literally works 1:1 :)
[17:15:57] pipework: BraddPitt: It's a bot.
[17:16:01] shevy: BraddPitt there is some way to query the access levels I think; the chain of command should be ruboto -> apeiros -> jhass -> nobody -> anybody ... ah ok I don't know who else can add stuff to the bot
[17:16:05] BraddPitt: Yes pipework I'm well aware
[17:16:08] ruby095: sorry I'm trying to get it to only print even# I keep getting odd#
[17:16:16] pipework: BraddPitt: triggers are for factoids
[17:16:21] shevy: ruby095 well just change i % 2 then
[17:16:37] shevy: or the == 0 to == 1 should do
[17:16:42] pipework: Oh sorry, I had to refresh the view. My client shifted who said what by one row.
[17:16:44] jhass: BraddPitt: by asking an op to do it
[17:16:44] Mon_Ouie: BraddPitt: I guess you want a factoid for input/expected output? Just not sure what to call it
[17:17:03] ruby095: thank you i'll try that
[17:18:39] BraddPitt: shevy would you happen to know how to query the access levels? Like to add a trigger can I do it through a command or do I need to submit a PR?
[17:18:46] vorg: has joined #ruby
[17:18:56] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[17:19:05] AlexAltea: has joined #ruby
[17:19:54] lucyinthesky: has joined #ruby
[17:20:00] BraddPitt: please stop
[17:20:07] ruby095: That worked perfect thank you very much shevy you made my day
[17:20:18] DoubleMalt: has joined #ruby
[17:20:20] shevy: BraddPitt when you have access permission you should be able to do so yourself, I don't know how to get access; jhass said an op, so perhaps this is connected to #ruby channel op access
[17:20:44] shevy: I think you can use ?ops but that will highlight them all
[17:20:45] ht__: has joined #ruby
[17:20:49] iceden|2: has joined #ruby
[17:20:55] craysiii: there should be a ?stop
[17:21:01] shevy: haha yeah
[17:21:15] shevy: but I guess we know who vorg is
[17:21:16] niftylettuce: has joined #ruby
[17:21:17] craysiii: and then a ?stahp for the lolez
[17:21:25] cschneid_: has joined #ruby
[17:21:34] vorg: BraddPitt: is ?guys offensive to you?
[17:21:43] Mon_Ouie: !fact add example Please provide us with an example of valid input for your problem and the output that you want to produce.
[17:21:43] ruboto: Mon_Ouie, I will remember that example is Please provide us with an example of valid input for your problem and the output that you want to produce.
[17:21:48] jhass: !mute vorg
[17:21:49] ruboto: +q vorg!*@*
[17:21:49] ruboto: -o ruboto
[17:22:14] craysiii: i like how they don't leave rubono OPed
[17:22:34] ziggles: has joined #ruby
[17:22:36] Mon_Ouie: https://freenode.net/channel_guidelines.shtml
[17:22:47] craysiii: lol intentional typo, i like to mix things up
[17:23:17] JDiPierro: has joined #ruby
[17:23:28] ziggles: Stupid question but what does starting a yaml file with `---` do? I've noticed it seems to make no difference if it's there or not but if i YAML.dump the string always contains `---` as the first line
[17:23:57] shevy: 1 file inspected, 29 offenses detected, 25 offenses corrected
[17:24:11] shevy: hmm... anyone knows when rubocop won't correct all offenses? probably means that it can not do so?
[17:24:41] vorg: has left #ruby: ()
[17:24:48] guys: has joined #ruby
[17:24:54] shevy: bad_example.rb:2:7: C: Use snake_case for method names.
[17:25:00] shevy: that was one entry that was not autocorrect
[17:26:06] BraddPitt: thank you jhass
[17:26:18] morochena: has joined #ruby
[17:26:32] hazelux: has joined #ruby
[17:27:11] BraddPitt: Mon_Ouie I was going to request just that, but ammend it with input, example output and expected output
[17:27:13] dfockler: has joined #ruby
[17:27:18] hazelux: hey there folks! Is there a method that you can call on ["one", "two", "three"] that returns "one, two and three"?
[17:27:24] chinmay_dd: has joined #ruby
[17:27:24] BraddPitt: but thank you regardless Mon_Ouie
[17:27:33] jhass: hazelux: .join(", ")
[17:27:40] craysiii: >> %w[one two three].join
[17:27:41] ruboto: craysiii # => "onetwothree" (https://eval.in/422830)
[17:27:44] craysiii: aw dat space
[17:28:11] havenwood: !ban guys !T 1d ban evasion
[17:28:12] ChanServ: +b guys!*@*
[17:28:12] ChanServ: ChanServ kicked guys: ban evasion
[17:28:38] craysiii: haven whats the cooldown time on the banhammer ? :P
[17:28:52] pipework: craysiii: Ban lists can only be so long.
[17:28:58] apeiros: +b *!*@*ip.185.22.183.198
[17:29:10] apeiros: +b *!*@*ip.198.8.80.189
[17:29:16] apeiros: -o apeiros
[17:29:42] shevy: craysiii 1d usually
[17:29:49] Mon_Ouie: hazelux: You'd use "#{array[0...-1].join} and #{array.last}" (with special cases for arrays of size 0 and 1)
[17:30:19] dorei: >> x = %w[one two three] ; x[0..-2].join(', ') << ' and ' << x[-1]
[17:30:20] ruboto: dorei # => "one, two and three" (https://eval.in/422831)
[17:30:21] tubbo: wait is this seriously the same guy coming in here and going '?guys'?
[17:30:28] tubbo: because that is the strangest spam i've ever seen
[17:30:32] craysiii: yes. yes they are
[17:30:58] craysiii: social harmony combatant i assume?
[17:30:59] BraddPitt: hence why the meme trigger needs to be disabled imo. But enough of talking about this, back to ruby
[17:31:09] IrishGringo: has joined #ruby
[17:31:12] shevy: tubbo yeah. Some people just have way too much time
[17:31:28] fast_scooter: has joined #ruby
[17:31:28] ghr: has joined #ruby
[17:32:01] Mon_Ouie: !fact edit example Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
[17:32:02] ruboto: Mon_Ouie, I stand corrected that example is Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
[17:32:19] tubbo: "i stand corrected" haha
[17:32:26] tubbo: classy bot
[17:32:29] craysiii: shouldn't it be !example or something
[17:32:33] bmalum: has joined #ruby
[17:32:34] charginghawk: has joined #ruby
[17:32:47] hazelux: Thanks Mon_Ouie, yeah, I was looking for something that didn't involve checking the array size. dorei's solution seems good!
[17:33:25] Mon_Ouie: That still won't work if the size of the array is empty or only has one element in it though
[17:34:34] dorei: yeah, a recursive solution would be ideal for something like that
[17:34:43] dorei: hmm, or maybe not
[17:34:44] craysiii: #breakthestack
[17:34:49] casadei: has joined #ruby
[17:34:55] dorei: it all depands on what the output should be on one one element array
[17:35:04] charginghawk: has left #ruby: ()
[17:35:05] dorei: depends even
[17:35:26] paulcsmith: has joined #ruby
[17:35:42] krisquigley: has joined #ruby
[17:35:50] jaycee: has joined #ruby
[17:37:20] zenguy_pc: has joined #ruby
[17:37:41] BraddPitt: thanks a lot Mon_Ouie, appreciate it
[17:38:00] _djbkd: has joined #ruby
[17:38:07] awlkjwad: has joined #ruby
[17:38:10] unver: craysiii: What is #breakthestack?
[17:39:01] Zackio: has joined #ruby
[17:39:02] craysiii: a joke. recursive functions have a tendency to break the stack (in lower level langs at least)
[17:39:12] Mon_Ouie: >> def break_the_stack; break_the_stack; end; break_the_stack
[17:39:13] ruboto: Mon_Ouie # => stack level too deep (SystemStackError) ...check link for more (https://eval.in/422834)
[17:39:21] unver: oh, i thought it was the devops rhetoric of the week
[17:39:26] unver: kind of like it
[17:39:49] pipework: unver: It's like ground hog's day for geeks.
[17:40:07] qweb_: this channel is lolcakes
[17:40:10] craysiii: not the video game?
[17:40:36] craysiii: i prefer the choose-your-own-adventure flipbook.
[17:41:05] meatherly: has joined #ruby
[17:41:17] shevy: there must be more ruby games
[17:42:40] RegulationD: has joined #ruby
[17:43:44] krisquigley: has joined #ruby
[17:43:45] towski_: has joined #ruby
[17:45:33] timonv: has joined #ruby
[17:45:37] kristofferR: has joined #ruby
[17:45:40] eightfold: has joined #ruby
[17:46:24] davedev24: has joined #ruby
[17:46:32] baweaver: has joined #ruby
[17:48:32] shevy: I dread first april news :(
[17:50:16] gusrub: has joined #ruby
[17:50:17] zendrix: has joined #ruby
[17:50:19] rbennacer: has joined #ruby
[17:50:28] but3k4: has joined #ruby
[17:50:56] davedev24: has joined #ruby
[17:52:08] arcanez: has joined #ruby
[17:52:27] arcanez: is using &: just a syntax choice or does it have quasi-performance benefits
[17:52:53] pipework: arcanez: It's not a syntax, but either way, it's shorter.
[17:53:14] BlueShoesYes_: has joined #ruby
[17:53:34] Mon_Ouie: Notice that it's just &object where object happens to be a symbol literal
[17:53:39] arcanez: but some that are learning find it harder to read than what it expands to
[17:54:03] pipework: arcanez: Then they should stop and read the docs.
[17:54:12] pipework: Symbol#to_proc
[17:54:14] craysiii: YOU READ THE DOCS
[17:54:18] pipework: craysiii: I'm illiterate!
[17:54:21] arcanez: ain't nobody got time for that.
[17:54:33] pipework: arcanez: Ain't nobody worth hiring or helping then. :D
[17:54:46] craysiii: i read the docs! choose me!
[17:55:01] RegulationD: has joined #ruby
[17:55:30] arcanez: pipework: we have ruby & perl here.. sometimes we have to be verbose for reading purposes :(
[17:55:32] wasamasa: don't go for cray
[17:55:42] IrishGringo: has joined #ruby
[17:56:01] pipework: arcanez: I try to write good ruby and expect people to know the language whale enough to keep up with the community.
[17:56:02] christiandsg: has joined #ruby
[17:56:13] craysiii: whaaaaaaale
[17:56:23] ramfjord: has joined #ruby
[17:56:29] pocketprotector: has joined #ruby
[17:56:30] miah: failwhale?
[17:56:36] shevy: pipewhale
[17:56:53] shevy: now that's just misspelled!
[17:57:11] porfa: has joined #ruby
[17:57:19] porfa: good afternoon guys!
[17:57:30] craysiii: good beforenoon :)
[17:57:42] arcanez: http://stackoverflow.com/questions/14881125/what-does-to-proc-method-mean seems to be a concise explanation of what's going on
[17:57:55] arcanez: so it's a shorter way for me to write it but it expands later on anyway
[17:57:57] craysiii: http://stackoverflow.com/questions/1961030/ruby-ampersand-colon-shortcut i like this one.
[17:57:59] shevy: that auto-correct along with auto-save in an editor via rubocop looks pretty awesome (if rubocop itself is clever enough)
[17:58:03] DEA7TH: has joined #ruby
[17:58:24] shevy: arcanez programmers are often very lazy people
[17:58:53] shevy: I think (&:to_s) looks uglier but it is shorter which is good
[17:59:00] porfa: I'm having like this deep issues with mechanize and APEX (oracle application express) i cannot do anything in pages that are done on APEX, the buttons have no labels (in mechanize) and other stuff lie that, BUT when i inspect the elements on firefox everything is there.. so. do i need to set some things in the mechanize agent????
[17:59:19] porfa: so when it requests the page, it gets me the "full" page and not incomplete things.. (apex is a pain in the butt)
[17:59:29] arcanez: shevy: (&:to_s) instead of { |x| x.to_s }, I much prefer the first :)
[17:59:55] khebbie: has joined #ruby
[17:59:58] arcanez: I guess &:to_s is the closest we can get to running to_s on every element
[18:00:59] shadeslayer: has joined #ruby
[18:02:18] craysiii: you could implement #to_string_array (#tsa for short ;) ) on Enumerable?
[18:02:36] dopamean1: has joined #ruby
[18:03:18] pipework: miah: No, I use my OS's autocorrect to insert luls into my day.
[18:03:21] flounders: has joined #ruby
[18:03:21] choke: has joined #ruby
[18:03:28] towski_: has joined #ruby
[18:03:32] rapeboto: has joined #ruby
[18:03:34] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:03:35] RegulationD: has joined #ruby
[18:03:39] jhass: !mute rapeboto
[18:03:48] ruboto: +q rapeboto!*@*
[18:03:48] ruboto: -o ruboto
[18:03:57] craysiii: oh come on.
[18:04:03] BraddPitt: just remove it
[18:04:08] BraddPitt: it literally serves no purpose
[18:04:13] scottschecter: has joined #ruby
[18:04:37] arcanez: i got my question answered, i was more interested if there was any optimization made by using &: but seems it just expands to the same code
[18:05:10] pipework: arcanez: Ruby's Benchmark library is super easy to use if you're curious about performance.
[18:05:29] pizzas: has joined #ruby
[18:07:12] arcanez: pipework: premature optimization I'm sure.
[18:07:21] rbowlby: has joined #ruby
[18:07:22] shevy: arcanez one problem was that the (&:to_s) does not allow arguments, it would be nice if one could have arguments as well
[18:07:36] pipework: arcanez: more like a potential side effect of being more concise.
[18:08:33] Mon_Ouie: Well, it does "allow arguments", just not in the way that you want it to
[18:08:46] Mon_Ouie: >> :to_s.to_proc.call(42, 16)
[18:08:47] ruboto: Mon_Ouie # => "2a" (https://eval.in/422861)
[18:09:02] paulcsmith: has joined #ruby
[18:09:05] pipework: there's also method(:to_s)[42,16]
[18:09:11] shevy: this would look like this? (&:to_s.to_proc.call(42, 16))
[18:09:13] pipework: But that's for methods on self
[18:09:46] shevy: the .call() can probably become a [] in that example too?
[18:10:27] dgutierrez1287: has joined #ruby
[18:11:10] Jackneill: has joined #ruby
[18:11:18] rapeiros: has joined #ruby
[18:11:20] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:12:02] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:12:12] _blizzy_: has joined #ruby
[18:12:20] bmalum_: has joined #ruby
[18:12:20] arcanez: pipework: you think { |x| x.to_s } or (&:to_s) is more concise?
[18:12:22] Mon_Ouie: !mute rapeiros
[18:12:22] ruboto: +q rapeiros!*@*
[18:12:22] ruboto: -o ruboto
[18:12:25] chrisja: has joined #ruby
[18:12:29] but3k4: has joined #ruby
[18:12:44] pipework: arcanez: The one that fits the definition of concise more closely than the other.
[18:13:16] _blizzy_: has joined #ruby
[18:13:33] pipework: I try not to convey intent for an audience that doesn't know the language it's written in.
[18:14:07] pipework: Also why I don't advertise that I know perl.
[18:14:20] shevy: it's ok, it's our old grandpa
[18:14:39] shevy: and there is perl 6
[18:15:30] baweaver: has joined #ruby
[18:15:39] miah: is perl6 out yet?
[18:15:57] bronson: has joined #ruby
[18:16:31] shevy: they want it for the end of the year 2015, one dude on #bioinformatics is using it already though so I guess it must be somewhat usable
[18:17:01] thiagovsk: has left #ruby: ()
[18:18:40] yardenbar: has joined #ruby
[18:19:12] baweaver: miah: Same time as ES6 actually comes out.
[18:19:31] RobertBirnie: has joined #ruby
[18:20:00] gals: has joined #ruby
[18:20:02] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:20:05] ruboto: I don't know anything about gals
[18:20:07] jhass: !mute gals
[18:20:07] ruboto: +q gals!*@*
[18:20:07] ruboto: -o ruboto
[18:20:22] codecop: has joined #ruby
[18:20:32] _blizzy_: has joined #ruby
[18:21:43] pipework: ACTION wonders how long it'll take for someone to ban-forward kiwiirc and set this channel to registered accounts only
[18:21:55] miah: ive banned kiwiirc once =)
[18:22:23] momomomomo: has joined #ruby
[18:22:45] pipework: gotta ban-forward to something like #ruby-unregistered though and have either topic and/or chanserv notices explaining what to do and why they landed there.
[18:22:58] miah: the unfortunate thing about irc is user friendliness, in regards to both irc clients, and irc users.
[18:23:00] rbennacer: has joined #ruby
[18:23:22] miah: web gateways lower the barrier on the irc client side, but unfortunate people use them
[18:23:29] miah: s/use/abuse
[18:23:40] pipework: miah: Take the knowledge that they're doing this by hand and make it take longer to get here.
[18:23:49] miah: hard to tarpit irc
[18:24:00] pipework: #rubyonrails is registered users only.
[18:24:09] catoblepa: has joined #ruby
[18:24:12] miah: i dont think we want to go that route.
[18:24:31] pipework: whatever :)
[18:24:36] apeiros: it has been discussed and rejected
[18:25:32] apeiros: we can temporarily use the general unregistered ban, and maybe today we will.
[18:25:46] blue_deref: has joined #ruby
[18:26:10] eam: it's amazing to me that someone is doing this by hand
[18:26:11] pipework: Freenode staff will often just turn on different things that make joining harder for their channels until the attack abates.
[18:26:17] lucyinthesky: has joined #ruby
[18:26:26] miah: interesting
[18:26:32] kirun: has joined #ruby
[18:26:51] eam: we're in a channel that discusses a simple language for basic automation, whoever's doing this has to be really bad at understanding the kind of tasks ruby is good at
[18:26:51] pipework: You all seem to believe that you've got it whale in hand though, so I'll lend my expertise elsewhere on the matter.
[18:27:00] shevy: what is it with you and the whales
[18:27:08] arooni-mobile: has joined #ruby
[18:27:08] pipework: shevy: I've explained it to you multiple times.
[18:27:14] apeiros: eam: I think the kind of people doing that are generally quite bad at understanding things.
[18:27:41] miah: a lack of understand is what led them astray in the first place. =)
[18:27:52] pipework: Seems speculative.
[18:27:55] eam: maybe. undestanding can be a very complex shape - sometimes people are really good at understanding some things and really bad at others
[18:28:12] miah: of course
[18:28:52] bl4ckpajamas: has joined #ruby
[18:29:00] miah: anyways. i'd much rather discuss ruby. than racism, and all the other isms that the trolls are brining.
[18:29:05] miah: s/brining/bringing
[18:29:07] miah: i cant type
[18:29:34] apeiros: sure. it's better anyway. those special kind of people draw satisfaction from being discussed.
[18:29:59] baweaver_: has joined #ruby
[18:30:15] roman: has joined #ruby
[18:30:24] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:30:29] apeiros: !kick roman
[18:30:30] ruboto: ruboto kicked roman:
[18:30:30] ruboto: -o ruboto
[18:30:31] wasamasa: ACTION sighs
[18:30:37] lucyinthesky: has left #ruby: ("Leaving")
[18:30:54] Rinzlit1: has joined #ruby
[18:30:59] apeiros: +b *!*@gateway/web/cgi-irc/kiwiirc.com*$#ruby-banned
[18:31:02] baweaver_: apeiros: temp ban kiwi?
[18:31:05] apeiros: -o apeiros
[18:31:08] baweaver_: that answers that
[18:31:28] roolo: has joined #ruby
[18:34:14] SuMo_D: has joined #ruby
[18:34:46] ght: Question: Assuming that commcheck_start_dt is a DateTime object, and user_profile["dates"]["tz"] is an ActiveSupport::Timezone object, would the following if condition accurately ensure that the date represented...
[18:34:50] zendrix: has joined #ruby
[18:34:54] bruno-: has joined #ruby
[18:35:03] ght: in commcheck_start_dt is either the same day or in the future relative to user_profile["dates"]["tz"} -
[18:35:06] ght: commcheck_start_dt.year >= user_profile["dates"]["tz"].now.year && commcheck_start_dt >= user_profile["dates"] && commcheck_start_dt.day >= user_profile["dates"]["tz"].now.day
[18:35:38] ght: Well, I should say:
[18:35:40] ght: if commcheck_start_dt.year >= user_profile["dates"]["tz"].now.year && commcheck_start_dt >= user_profile["dates"] && commcheck_start_dt.day >= user_profile["dates"]["tz"].now.day
[18:36:04] piva: has joined #ruby
[18:36:06] ght: damnit, I fucked that up.
[18:36:07] ght: One second.
[18:36:34] unver: ght: i think you might want to use ranges
[18:36:38] ght: if commcheck_start_dt.year >= user_profile["dates"]["tz"].now.year && commcheck_start_dt.month >= user_profile["dates"]["tz"].month && commcheck_start_dt.day >= user_profile["dates"]["tz"].now.day
[18:36:55] ght: unver: Thank you, I assume you mean date ranges?
[18:36:57] piva: uhmm, anyone had problems with Bundler + unicorn? I'm running into some problem with "cannot load such file -- kgio_ext" and Google isn't really helping :/
[18:37:18] unver: ght: yes, it might make things easier to read
[18:37:36] havenwood: a kinder, gentler IO
[18:37:48] ght: Hmm, I've never used DateRange()
[18:38:02] havenwood: pivA: Prefixing `bundle exec` to your unicorn command?
[18:38:13] piva: havenwood: yeap, running with 'bundle exec'
[18:38:17] ght: So, with those conditions, how on earth would DateRange apply to this situation?
[18:38:19] ght: I'm reading about it now.
[18:38:26] unver: pivA: What OS?
[18:38:36] unver: ruby version, etc.
[18:38:40] ght: commcheck_start_dt is a DateTime object, and user_profile["dates"]["tz"] is an ActiveSupport::TimeZone object.
[18:38:41] BlueShoesYes_: Anyone use Ocra? I've written a very small app (it essentially just formats text in your clipboard) and it takes roughly 10 seconds to run when compiled with Ocra. Any ideas?
[18:38:54] freerobby: has joined #ruby
[18:39:00] ght: I just need to check to ensure commcheck_start_dt is either the current date or in the future relative to user_profile["dates"]["tz"]
[18:39:09] piva: havenwood: what's even stranger is that this application is running in a Docker container, I have another one with the same app but for a different country that's running flawlessly, I've just built a new image with the only difference being the config files pointing to another DB
[18:39:11] hinbody_: has joined #ruby
[18:39:24] datacat_: has joined #ruby
[18:39:26] dc_: has joined #ruby
[18:39:26] piva: unver: ruby 1.9.3, OS in the container is an Ubuntu 12.04
[18:40:04] voltalio: has joined #ruby
[18:40:20] havenwood: pivA: Any errors when you?: bundle install
[18:41:02] QKO: has joined #ruby
[18:41:25] piva: havenwood: nope, everything is installed without errors, if it had any error the Docker image weren't going to finish building
[18:41:28] benlieb: has joined #ruby
[18:41:32] ght: My initial thought is simply to check whether or not the year, month, and day are >=
[18:41:39] ght: I figure if all of those conditions are met then it will be in the future, no?
[18:41:50] ght: So forgetting about cleaning up the interface, just to check and ensure the logic will work.
[18:41:57] erts: has joined #ruby
[18:42:01] ght: Will that statement work for ensuring this conditon?
[18:42:01] ght: if commcheck_start_dt.year >= user_profile["dates"]["tz"].now.year && commcheck_start_dt.month >= user_profile["dates"]["tz"].month && commcheck_start_dt.day >= user_profile["dates"]["tz"].now.day
[18:42:12] piva: it's been pretty strange, I'm building the image right now in the same environment that the application for another country is currently being built on (a Jenkins instance) but that shouldn't change anything... let's see
[18:42:17] n_blownapart: has joined #ruby
[18:42:25] ght: will that ensure commcheck_start_dt is either the same day or in the future realtive to user_profile["dates"]["tz"]?
[18:42:37] pipework: ght: Why not just other_date >= ["tz"].beginning_of_day ?
[18:42:40] ght: I know the .now.year and all those are correct, I'm just asking about the logic
[18:42:49] ght: becuase they're of two different types
[18:42:56] ght: one is DateTime, one is ActiveSupport::TimeZone
[18:42:58] BlueShoesYes: has joined #ruby
[18:43:08] ght: I could create a supplemental DateTime Object and then >= I suppose
[18:43:17] pipework: Err ['tz'].now.beginning_of_day I guess
[18:43:25] JoshGlzBrk: has joined #ruby
[18:43:25] ght: do what?
[18:43:45] pipework: Yeah, I'd spend my efforts getting objects that are easily comparable instead of handling the differences between the two in the comparison code.
[18:44:14] hinbody: has joined #ruby
[18:44:26] thang: has joined #ruby
[18:44:31] ght: Ok, I'll do that then, thank you
[18:46:00] yatish27: has joined #ruby
[18:46:37] rapeiros: has joined #ruby
[18:46:48] kr3ssh: has joined #ruby
[18:47:30] dseitz: has joined #ruby
[18:48:05] rick_nick: has joined #ruby
[18:48:09] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:48:12] ruboto: I don't know anything about rape
[18:48:19] apeiros: !kick rick_nick
[18:48:21] rick_nick: ?how to moderatre
[18:48:21] ruboto: to, I don't know anything about how
[18:48:30] ruboto: I don't know anything about lol
[18:48:37] ruboto: I don't know anything about cantmod
[18:48:43] khebbie: has joined #ruby
[18:48:47] ruboto: ruboto kicked rick_nick:
[18:48:47] ruboto: -o ruboto
[18:49:24] catoblepa: has joined #ruby
[18:49:37] towski__: has joined #ruby
[18:50:59] Spami: has joined #ruby
[18:51:54] devoldmx: has joined #ruby
[18:51:59] lucyinthesky: has joined #ruby
[18:54:37] unver: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[18:55:14] ght: The fuck was that about?
[18:55:15] Ariadeno: has joined #ruby
[18:55:20] ght: What a clever guy.
[18:55:29] ght: Was that a disgruntled Python user?
[18:55:41] apeiros: a bored asshole
[18:55:49] code1o6: has joined #ruby
[18:55:52] stef204: has joined #ruby
[18:56:04] pipework: A bored asshole that doesn't even automate.
[18:56:11] pipework: Not a troll worth having.
[18:56:14] shevy: ght a python user would probably have better things to do such as write code
[18:56:56] wasamasa: so, do we ban freenode webchat next?
[18:56:59] pipework: Maybe they're building the next generation of cyberbullying AI software!
[18:57:00] ght: shevy: fair point.
[18:57:52] wasamasa: ght: I'm fairly sure python users wouldn't go as far as bothering this channel for weeks with fairly bad, I dunno what I'd call it
[18:58:00] wasamasa: ght: juvenile trolling?
[18:58:51] postmodern: has joined #ruby
[18:58:57] christiandsg: has joined #ruby
[18:59:40] Pilrate: has joined #ruby
[19:00:51] RobertBirnie: has joined #ruby
[19:02:06] benaiah: has joined #ruby
[19:02:10] dudedudeman: has joined #ruby
[19:02:15] dudedudeman: has joined #ruby
[19:02:15] dudedudeman: has joined #ruby
[19:03:41] Pilrate: has left #ruby: ()
[19:03:59] guysguys: has joined #ruby
[19:04:05] guysguys: has left #ruby: ()
[19:04:13] guysguysguys: has joined #ruby
[19:04:17] guysguysguys: has left #ruby: ()
[19:04:41] RegulationD: has joined #ruby
[19:04:46] skade: has joined #ruby
[19:04:51] havenn: has joined #ruby
[19:05:13] porfa: has joined #ruby
[19:06:07] RegulationD: has joined #ruby
[19:06:19] yatish27: has joined #ruby
[19:07:36] fluffykat: has joined #ruby
[19:07:54] ofdtrinity: has joined #ruby
[19:08:28] jhack32: has joined #ruby
[19:08:32] sphex: has joined #ruby
[19:08:36] baweaver: has joined #ruby
[19:09:36] linoespinoza: has joined #ruby
[19:11:49] fluffykat: has left #ruby: ()
[19:12:06] centrx: has joined #ruby
[19:12:07] jamesdoh: has joined #ruby
[19:12:49] yatish27: has joined #ruby
[19:14:00] lele: has joined #ruby
[19:15:03] ruby-lang267: has joined #ruby
[19:16:25] bigredboots: has joined #ruby
[19:18:57] mary5030: has joined #ruby
[19:19:58] linuxboytoo: has joined #ruby
[19:22:31] mordocai: has joined #ruby
[19:24:45] krisquigley: has joined #ruby
[19:26:32] z1haze2: has joined #ruby
[19:27:20] _seanc_: has joined #ruby
[19:27:47] denisemccoy: has joined #ruby
[19:27:55] fast_scooter: has joined #ruby
[19:28:50] yqt: has joined #ruby
[19:29:09] sarkyniin: has joined #ruby
[19:29:19] yatish27: has joined #ruby
[19:30:20] ghr: has joined #ruby
[19:30:45] jhack32: has joined #ruby
[19:31:28] d2dchat: has joined #ruby
[19:32:56] linuxboy_: has joined #ruby
[19:33:12] jhack: has joined #ruby
[19:33:12] jhack: has joined #ruby
[19:33:54] Zai00: has joined #ruby
[19:34:53] kinduff: has joined #ruby
[19:35:11] cschneid_: has joined #ruby
[19:38:09] ramfjord: has joined #ruby
[19:38:46] symm-: has joined #ruby
[19:40:45] kinduff: has joined #ruby
[19:41:31] hazelux: has joined #ruby
[19:42:13] cball: has joined #ruby
[19:42:20] car: has joined #ruby
[19:43:08] iliketurtles: has joined #ruby
[19:44:05] dionysus69: has joined #ruby
[19:48:36] bruno-: has joined #ruby
[19:48:44] lucyinthesky: has left #ruby: ("Leaving")
[19:51:58] rbowlby: has joined #ruby
[19:52:53] kadoppe: has joined #ruby
[19:57:30] pyon: has joined #ruby
[20:00:00] mary5030: has joined #ruby
[20:00:37] baweaver: has joined #ruby
[20:00:55] wprice: has joined #ruby
[20:01:30] dtzitz: has joined #ruby
[20:02:01] dtzitz: oh hey apeiros
[20:02:19] dtzitz: i didn't know you were an OP here
[20:02:32] dtzitz: or at least I assume that is what that means, i have a new client
[20:03:32] apeiros: na, I'm no op here. they just sometimes randomly op people.
[20:04:18] jgpawletko: has joined #ruby
[20:04:24] dfockler: has joined #ruby
[20:04:35] dtzitz: i bet that's how that works =P but I guess we're off topic in any event
[20:04:53] dtzitz: is there a #ruby-casual or something?
[20:04:59] dtzitz: or is that #rails?
[20:05:09] apeiros: there's #ruby-offtopic
[20:05:49] Motoservo: has joined #ruby
[20:09:39] rbennacer: has joined #ruby
[20:09:42] benlieb: has joined #ruby
[20:10:40] Torrieri: has joined #ruby
[20:10:40] Torrieri: has joined #ruby
[20:10:46] pdoherty: has joined #ruby
[20:12:03] JoshL: has joined #ruby
[20:12:16] rushed: has joined #ruby
[20:13:40] questionmarkguys: has joined #ruby
[20:13:46] jackjackdripper: has joined #ruby
[20:13:51] questionmarkguys: has left #ruby: ()
[20:14:13] leat: has joined #ruby
[20:14:30] antonelli: has joined #ruby
[20:14:42] DEA7TH: has joined #ruby
[20:15:25] johnflux: has joined #ruby
[20:15:51] johnflux: in ruby, if I do array.map(|x| x.name).join(',
[20:15:54] johnflux: in ruby, if I do array.map(|x| x.name).join(',')
[20:16:17] johnflux: will the map run completely first, creating a whole new array
[20:16:22] bougyman: are you trying to make a csv?
[20:16:25] johnflux: or does map return some sort of iterator?
[20:16:35] bougyman: it returns an enumerable
[20:16:36] al2o3-cr: has joined #ruby
[20:16:38] allcentury: has joined #ruby
[20:16:59] apeiros: johnflux: yes, the map runs completely
[20:17:08] bougyman: it will be a completely new array, yes.
[20:17:08] apeiros: returns an array and on the resulting array you call .join
[20:17:29] johnflux: apeiros: so not like python
[20:17:49] apeiros: I don't know how python's map works
[20:18:20] apeiros: if you need lazy enumeration, use array.lazy.map ???
[20:18:20] kies: has joined #ruby
[20:18:30] blackmesa: has joined #ruby
[20:18:41] jackjackdripper: has joined #ruby
[20:19:04] johnflux: apeiros: ah. is there any reason why that isn't the default behaviour?
[20:19:05] apeiros: though, no Enumerator::Lazy#join, so you have to either build that on your own or .to_a first
[20:19:37] roolo: has joined #ruby
[20:19:39] apeiros: johnflux: biggest reason is probably history. additional reason might be that lazy has an overhead.
[20:20:26] freerobby: has joined #ruby
[20:20:50] fast_scooter: has joined #ruby
[20:21:37] yfeldblum: has joined #ruby
[20:21:46] johnflux: apeiros: fwiw, that was one of the reasons for python 3. Python 3 changed many of the defaults to be lazy
[20:21:56] johnflux: apeiros: such as map etc
[20:22:15] apeiros: lazy scales better, so that makes sense
[20:22:15] SuMo_D: has joined #ruby
[20:22:19] s2013: has joined #ruby
[20:22:43] apeiros: who knows, maybe ruby will change the default too
[20:24:17] Eiam: has joined #ruby
[20:24:35] Musashi007: has joined #ruby
[20:25:32] baweaver: has joined #ruby
[20:25:50] rapeiros_guys: has joined #ruby
[20:26:51] SuMo_D: has joined #ruby
[20:27:56] rapeiros_guys: has left #ruby: ()
[20:27:58] rapeiros_guys: has joined #ruby
[20:28:11] rapeiros_guys: has left #ruby: ()
[20:28:28] shevy: the future seems scary
[20:29:33] jeadre: has joined #ruby
[20:30:01] j_mcnally: has joined #ruby
[20:30:14] rapeiros_guys___: has joined #ruby
[20:30:19] rapeiros_guys___: has left #ruby: ()
[20:30:22] rapeiros_guys___: has joined #ruby
[20:30:25] rapeiros_guys___: has left #ruby: ()
[20:30:59] mrtomme: has joined #ruby
[20:30:59] guysguysguysguys: has joined #ruby
[20:31:04] guysguysguysguys: has left #ruby: ()
[20:31:05] guysguysguysguys: has joined #ruby
[20:31:09] guysguysguysguys: has left #ruby: ()
[20:31:16] guysguysguysguys: has joined #ruby
[20:31:20] guysguysguysguys: has left #ruby: ()
[20:31:41] apeiros: +b *!*@*ip.185.22.183.194
[20:32:06] ghr: has joined #ruby
[20:32:41] bhaak: has joined #ruby
[20:34:27] platzhirsch: has joined #ruby
[20:36:20] leafybasil: has joined #ruby
[20:36:45] opensource_ninja: has joined #ruby
[20:37:28] dgutierrez1287: has joined #ruby
[20:38:55] guysnotoffensive: has joined #ruby
[20:39:08] guysnotoffensive: has left #ruby: ()
[20:39:23] rapeiros_is: has joined #ruby
[20:39:40] rapeiros_is: has left #ruby: ()
[20:39:59] guysisgenderneut: has joined #ruby
[20:40:13] guysisgenderneut: has left #ruby: ()
[20:40:26] ops_are_nazis: has joined #ruby
[20:40:36] ops_are_nazis: has left #ruby: ()
[20:40:45] ruby_is_a_joke: has joined #ruby
[20:40:59] ruby_is_a_joke: has left #ruby: ()
[20:41:04] ruby_is_a_joke: has joined #ruby
[20:42:17] ruby_is_a_joke: has left #ruby: ()
[20:42:19] ruby_is_a_joke: has joined #ruby
[20:42:21] ruby_is_a_joke: has left #ruby: ()
[20:42:22] ruby_is_a_joke: has joined #ruby
[20:43:00] JoshL_: has joined #ruby
[20:43:34] dtzitz: has left #ruby: ("Leaving")
[20:43:49] momomomomo: has joined #ruby
[20:45:38] ruby_is_a_joke: has left #ruby: ()
[20:45:47] shelling__: has joined #ruby
[20:45:50] Motoservo: has joined #ruby
[20:45:59] Riking: has joined #ruby
[20:46:02] ruby_ops_r_nazis: has joined #ruby
[20:46:05] ruby_ops_r_nazis: has left #ruby: ()
[20:46:06] ruby_ops_r_nazis: has joined #ruby
[20:46:09] ruby_ops_r_nazis: has left #ruby: ()
[20:46:10] ruby_ops_r_nazis: has joined #ruby
[20:46:14] ruby_ops_r_nazis: has left #ruby: ()
[20:46:15] ruby_ops_r_nazis: has joined #ruby
[20:46:19] ruby_ops_r_nazis: has left #ruby: ()
[20:46:21] ruby_ops_r_nazis: has joined #ruby
[20:46:25] ruby_ops_r_nazis: has left #ruby: ()
[20:46:26] ruby_ops_r_nazis: has joined #ruby
[20:46:32] ruby_ops_r_nazis: has left #ruby: ()
[20:46:33] ruby_ops_r_nazis: has joined #ruby
[20:46:37] ruby_ops_r_nazis: has left #ruby: ()
[20:46:38] ruby_ops_r_nazis: has joined #ruby
[20:46:40] [Butch]: has joined #ruby
[20:46:40] ruby_ops_r_nazis: has left #ruby: ()
[20:46:45] ruby_ops_r_nazis: has joined #ruby
[20:46:54] ruby_ops_r_nazis: has left #ruby: ()
[20:47:19] jhass: +b-o *!*@*176.53.21.214 jhass
[20:47:43] Riking: has joined #ruby
[20:47:58] jhass: -oo apeiros jhass
[20:48:06] hahuang65: has joined #ruby
[20:49:48] cschneid: has joined #ruby
[20:49:48] apeiros: +b *!*@*ip.176.53.21.214)
[20:49:51] apeiros: -o apeiros
[20:50:02] sfr^: has joined #ruby
[20:50:36] sphex: has joined #ruby
[20:51:27] apeiros: -b *!*@*ip.176.53.21.214)
[20:51:30] apeiros: -o apeiros
[20:51:39] romero: has joined #ruby
[20:52:03] catbusters: has joined #ruby
[20:52:36] devoldmx: has joined #ruby
[20:53:22] dgutierrez1287: has joined #ruby
[20:53:48] havenwood: has joined #ruby
[20:54:16] khebbie: has joined #ruby
[20:54:18] kinduff: has joined #ruby
[20:54:21] Alayde: has joined #ruby
[20:54:45] cschneid: has joined #ruby
[20:55:04] george2: has joined #ruby
[20:55:21] SenpaiSilver: has joined #ruby
[20:56:58] jgt: has joined #ruby
[20:57:10] romero_: has joined #ruby
[20:57:31] snockerton: has joined #ruby
[20:57:52] snockerton: can someone help me with this ERB irc://irc.freenode.net:6697/#result??error i'm getting?
[20:57:52] snockerton: https://gist.github.com/adampats/11443979fa1a71851ac7
[20:58:03] Biohazard_: has joined #ruby
[20:58:51] snockerton: i've use erb in rails countless times, but can't seem to get past this NoMethodError when using independently in ruby
[20:59:02] jenrzzz: has joined #ruby
[20:59:27] mcpherrin: has left #ruby: ()
[20:59:45] Hanmac: has joined #ruby
[20:59:51] IPs_r_hard_2_get: has joined #ruby
[20:59:54] IPs_r_hard_2_get: has left #ruby: ()
[20:59:59] apeiros: snockerton: rails copies all ivars from your controller to the template for you
[21:00:08] ruby_ops_r_nazis: has joined #ruby
[21:00:11] ruby_ops_r_nazis: has left #ruby: ()
[21:00:14] ruby_ops_r_nazis: has joined #ruby
[21:00:15] ruby_ops_r_nazis: has left #ruby: ()
[21:00:16] dmoe: has joined #ruby
[21:00:17] ruby_ops_r_nazis: has joined #ruby
[21:00:25] ruby_ops_r_nazis: has left #ruby: ()
[21:00:27] ruby_ops_r_nazis: has joined #ruby
[21:00:27] jhass: +b-o *!*@*177.154.145.104 jhass
[21:00:31] ruby_ops_r_nazis: has left #ruby: ()
[21:00:48] voltalio: has joined #ruby
[21:01:09] Leak: has joined #ruby
[21:01:29] snockerton: so if i don't have rails running how do i get my ivars to ERB result() ?
[21:01:39] christiandsg: has joined #ruby
[21:01:40] snockerton: i want it to get the full context of my script
[21:02:09] adaedra: you can give it a context iirc
[21:02:12] `derpy: http://www.rubydoc.info/stdlib/erb/ERB
[21:02:21] apeiros: snockerton: ERB#result takes a binding
[21:02:45] adaedra: yeah, look at the example in the documentation at #initialize
[21:03:02] apeiros: >> require 'erb'; @x = 123; ERB.new('@x is <%= @x %>').result(binding)
[21:03:04] ruboto: apeiros # => "@x is 123" (https://eval.in/422928)
[21:03:43] cornerma1: has joined #ruby
[21:03:54] rushed: has joined #ruby
[21:04:39] yfeldblum: has joined #ruby
[21:04:47] shawnacscott: has joined #ruby
[21:04:51] Motoservo: has joined #ruby
[21:04:56] snockerton: wow, i didn't know binding was a thing
[21:05:44] snockerton: althought this makes huge sense as I use binding.pry every day
[21:05:54] universa1: has joined #ruby
[21:06:02] snockerton: never really thought about what that meant other than: "start debugger"
[21:06:51] yeticry: has joined #ruby
[21:09:16] Leak: has left #ruby: ()
[21:09:20] rbennacer: has joined #ruby
[21:11:20] dmoe: has joined #ruby
[21:11:35] bl4ckpajamas: has joined #ruby
[21:11:57] FernandoBasso: has joined #ruby
[21:12:36] JoshGlzBrk: has joined #ruby
[21:12:59] Leak: has joined #ruby
[21:13:44] Leak: has joined #ruby
[21:14:07] sarkyniin: has joined #ruby
[21:14:37] MasterPiece: has joined #ruby
[21:14:38] y_is_ruby_quiet: has joined #ruby
[21:14:47] y_is_ruby_quiet: has left #ruby: ()
[21:15:00] bigredbo_: has joined #ruby
[21:15:14] cuz_ruby_is_nazi: has joined #ruby
[21:15:24] cuz_ruby_is_nazi: has left #ruby: ()
[21:15:36] ruby_ops_r_nazis: has joined #ruby
[21:15:55] duoi: has joined #ruby
[21:16:33] jhass: +b-o *!*@*169.57.0.230 jhass
[21:18:43] hazelux: has joined #ruby
[21:19:21] Xoro: has joined #ruby
[21:19:49] chichou: has joined #ruby
[21:20:39] minimuffins: has joined #ruby
[21:20:51] enterprisedc: has joined #ruby
[21:21:36] RobertBirnie: has joined #ruby
[21:21:42] jhass: -qqqq Guest70411!*@* M-_mis!*@* iCyb3r!*@* fatsum_!*@*
[21:21:44] jhass: -qqqq fatsum_!*@* rapeboto!*@* rapeiros!*@* gals!*@*
[21:21:46] jhass: -qqqq ndh!*@* blimpdev!*@* SlopeTeBT!*@* vorg!*@*
[21:22:14] scottschecter: has joined #ruby
[21:22:30] joneshf-laptop: has joined #ruby
[21:23:39] atzorvas: has joined #ruby
[21:24:41] BraddPitt: there we go
[21:24:50] PlasmaSt-: has joined #ruby
[21:24:54] atzorvas: if you have, I need recommendations on a books/resources for learning how to write modular & structured gems/code.
[21:24:57] jhass: -bbbb *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196 *!*@*edvps.3geeks.com.au *!*@*98.254.231.125 *!*@78-56-9-125.static.zebra.lt
[21:24:59] jhass: -bbbo Jrz!*@*$#ruby-fix-your-connection *!*@*.iti.lt$#ruby-banned *!*@static-89-1-30-211.netcologne.de jhass
[21:25:10] BraddPitt: atzorvas POODR
[21:25:11] ruboto: I don't know anything about poodr
[21:25:26] freerobby: has joined #ruby
[21:25:42] krisquigley: has joined #ruby
[21:25:44] atzorvas: BraddPitt: good, I will check this asap, I already dl'ed the book
[21:25:56] zendrix: has joined #ruby
[21:25:57] lucyinthesky: has joined #ruby
[21:26:00] BraddPitt: !fact add poodr Practical Object Oriented Design in Ruby http://www.poodr.com/
[21:26:10] jhass: !fact add poodr Practical Object Oriented Design in Ruby http://www.poodr.com/
[21:26:10] ruboto: I don't know anything about poodr
[21:26:10] ruboto: jhass, I will remember that poodr is Practical Object Oriented Design in Ruby http://www.poodr.com/
[21:26:18] BraddPitt: thanks mate
[21:26:23] ruboto: I don't know anything about books
[21:26:29] ruboto: I don't know anything about anything
[21:26:47] stef204: has joined #ruby
[21:26:52] lucyinthesky: has left #ruby: ()
[21:26:58] porfa: hmmm why can't i .click a button in mechanize but can .click on links?
[21:26:59] jhass: !fact mk books You can find a list of recommended books at http://ruby-community.com/pages/links
[21:26:59] ruboto: jhass, I will remember that books is You can find a list of recommended books at http://ruby-community.com/pages/links
[21:27:07] atzorvas: is this book worth the purchase? http://brandonhilkert.com/books/build-a-ruby-gem/
[21:27:11] porfa: do i have to "submit" a button? (very new to all this stuff)
[21:27:25] jhass: ^ feel free to PR new items for that to apeiros/ruby-community
[21:27:43] BraddPitt: question. I have an array of strings and if one of the words matches a regex, I would like to insert a 'nil' string in the array before that word. How can I do this with map?
[21:27:52] porfa: irb(main):034:0> agent.page.form.button_with(:id => "Create")
[21:27:52] porfa: => [button:0x3fde40b99624 type: button name: value: ]
[21:28:01] porfa: how do i click that?
[21:28:02] nahtnam: has joined #ruby
[21:28:16] ghr: has joined #ruby
[21:28:40] craysiii: .click? lol
[21:28:45] atzorvas: Porfa: http://stackoverflow.com/a/7263613 ?
[21:29:09] Tester_: has joined #ruby
[21:29:17] porfa: atzorvas: thank you, will try! :)
[21:29:47] shawnacscott: has joined #ruby
[21:29:48] martinbjeldbak: has joined #ruby
[21:30:14] havenwood: >> ['duck', 'duck', 'goose', 'duck'].flat_map { |water_fowl| water_fowl =~ /\Agoose\z/ ? ['nil', water_fowl] : water_fowl }
[21:30:15] ruboto: havenwood # => ["duck", "duck", "nil", "goose", "duck"] (https://eval.in/422929)
[21:30:18] havenwood: BraddPitt: ^ that'd be one way
[21:30:26] Anon_: has joined #ruby
[21:30:34] garethrees: has joined #ruby
[21:30:50] BraddPitt: ah, thanks havenwood
[21:30:57] havenwood: BraddPitt: you're welcome
[21:31:10] atzorvas: Porfa: you can always choose the "more full-featured (idk, I just prefer it)" watir-webdriver gem which is button.click
[21:31:27] riking_: has joined #ruby
[21:31:33] BraddPitt: flat_map is in enumerable, right havenwood ?
[21:31:58] shevy: if he won't know, nobody will know
[21:32:05] d2dchat: has joined #ruby
[21:32:13] workmad3: BraddPitt: yes
[21:32:24] BraddPitt: why flat_map instead of map?
[21:32:34] BraddPitt: oh because you might return a nested array
[21:32:37] atzorvas: to avoid .map{...}.flatten
[21:32:44] BraddPitt: ok, I understand that
[21:32:46] BraddPitt: thanks guys
[21:33:08] havenwood: >> [].public_method(:flat_map).owner
[21:33:09] ruboto: havenwood # => Enumerable (https://eval.in/422930)
[21:33:10] havenwood: BraddPitt: ^
[21:33:33] rbennacer: has joined #ruby
[21:33:55] atzorvas: never-ending-api
[21:34:04] porfa: atzorvas: hmm there is only one form on the page, and only one button with the id "Create"
[21:34:34] atzorvas: Porfa: how do you populate the form?
[21:35:12] tno: has joined #ruby
[21:35:18] atzorvas: just lookup for the form and do a form.submit
[21:35:48] porfa: atzorvas: i don't want to populate the form, when i click that button, it just takes me to another page where i can in fact, populate a form to Create something
[21:36:02] porfa: there are other buttons on that form though
[21:36:17] nertzy: has joined #ruby
[21:36:30] atzorvas: .submit will look for the input="submit"
[21:36:44] ghr: has joined #ruby
[21:37:04] atzorvas: if your form has more than one input="submit" then it's mal-form-ed :P
[21:37:25] allcentury: has joined #ruby
[21:38:22] johnflux: I want to set up a server that is the same sort of setup as I have
[21:38:28] ofdtrinity: has joined #ruby
[21:38:30] johnflux: I can do: gem --list to get a list of gems
[21:38:39] johnflux: can I easily install that list on the server?
[21:38:49] craysiii: wouldnt you just use bundle ?
[21:39:30] terrellt: has joined #ruby
[21:40:21] rideh: has joined #ruby
[21:40:28] porfa: in the inspect element, the button has this "onclick="onclick="apex.navigation.redirect('f?p=220:21:13297205215999::NO:21::');""
[21:40:44] lupine: has joined #ruby
[21:41:22] Hanmac: has joined #ruby
[21:41:39] atzorvas: Porfa: go for watir-webdriver
[21:42:18] atzorvas: mechanize can fill forms etc but it can't handle js
[21:42:19] RobertBirnie: has joined #ruby
[21:42:22] havenwood: johnflux: You can do it in Ruby entirely with Gem but if you'd like to do it from the terminal you could do something along the lines of: gem list -q | ruby -e "puts \"gem install #{ARGF.readlines.map(&:split).map(&:first).join(' ')}\""
[21:42:26] poli: has joined #ruby
[21:42:57] momomomomo: has joined #ruby
[21:43:25] shevy: how do aliases in a class or a module actually work?
[21:43:30] havenwood: johnflux: Or awk/sed or like I mentioned you can do it entirely from within Ruby. I'm not quite clear on what you're wanting exactly.
[21:43:38] poli: I need to record some information I collect from a number of hosts. But I will keep only a limited (~10) for each machine. I am planning on keeping them on the filesystem using a file for each individual host. Is there some gem or some best practive for this kind of situation?
[21:43:55] havenwood: johnflux: Maybe say more? Are you trying to generate the command to run remotely or something else?
[21:44:00] johnflux: havenwood: I think I'll manually install things like rails, and then use bundle for the rest
[21:44:03] polpak: has joined #ruby
[21:44:04] bsdbofh: has joined #ruby
[21:44:22] atzorvas: poli: at least store them as json. so you can parse json from the file later
[21:44:25] havenwood: johnflux: Ah, I think I misunderstood your query. Gotcha.
[21:44:53] baweaver: has joined #ruby
[21:44:58] poli: atzorvas: any gems that might help?
[21:45:43] atzorvas: poli: u can write with f.puts JSON.pretty_generate item
[21:46:04] atzorvas: (pretty generate is for creating a human-readable json file)
[21:46:04] jhack: can someone help me out with rspec? I'm having writing a test to pass through my (play?) method which contains a get.chomp (getting an error from terminal). Gist: https://gist.github.com/jhack32/e75b8fd6bc840f9ad830
[21:46:12] poli: atzorvas: thank you!
[21:46:13] ofdtrinity: has joined #ruby
[21:47:01] atzorvas: jhack: could you post the error as well somewhere in the gist?
[21:47:09] jhack: yeah, ill update it right now
[21:47:49] jhack: okay, updated
[21:49:00] jhack: i've tried stub! already, didnt work, maybe i might've used it incorrectly
[21:50:15] porfa: atzorvas: i can i use that without a graphical interface like i can with mechanize? I'm only working in a putty terminal for doing those tasts
[21:50:22] atzorvas: jhack: http://stackoverflow.com/a/17258855
[21:50:55] atzorvas: Porfa: you can use headless gem before watir-webdirver. it uses Xvfb so you can run it anywhere! :)
[21:51:28] workmad3: jhack: https://gist.github.com/jhack32/e75b8fd6bc840f9ad830#file-tictactoe-rb-L30 <-- that one is probably being run either first or on some of your tests
[21:51:30] atzorvas: Porfa: headless along with watir-webdriver. and your browser will be handled by headless
[21:51:35] paulcsmith: has joined #ruby
[21:51:59] yqt: has joined #ruby
[21:52:39] sarkyniin: has joined #ruby
[21:53:35] atzorvas: Porfa: anything you need with watir-headless don't hesitate to ping me
[21:54:08] atzorvas: it's relatively easy
[21:54:28] ruby-lang896: has joined #ruby
[21:54:30] workmad3: jhack: atzorvas's link is a good idea too, btw... or my personal preference is to have a class where I can pass in an IO object and use gets/puts/etc on that object, rather than calling them implicitly or explicitly on $stdin and $stdout
[21:54:36] porfa: do i need anything else besides a terminal/putty and that gem? because if i do, I'm out of luck ;_;
[21:54:55] [k-: has joined #ruby
[21:55:09] k3asd`: has joined #ruby
[21:55:24] atzorvas: Porfa: xvfb is an OS-dep for headless so you have to install this one with your package manager
[21:55:24] workmad3: because then you can just pass a StringIO into your class, rather than have to mess around shimming $stdin and $stdout in your before and after blocks
[21:55:38] khebbie: has joined #ruby
[21:56:05] workmad3: atzorvas: it's also dependent on your browser running through an x11 server, which can be a PITA if you're on a mac :(
[21:56:55] workmad3: Porfa: if you want a really headless browser, take a look at PhantomJS
[21:57:05] johnflux: ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
[21:57:13] johnflux: is this basically ruby 2?
[21:57:24] workmad3: johnflux: it's ruby 1.9
[21:57:35] lkba: has joined #ruby
[21:57:39] IrishGringo: has joined #ruby
[21:57:43] johnflux: workmad3: some programs use the 1.9 versions to mean a prelease of 2.0
[21:57:48] hiter_loves_ruby: has joined #ruby
[21:58:01] Mon_Ouie: That's not the case here
[21:58:05] johnflux: okay thanks
[21:58:05] atzorvas: phantomjs is also a nice rec
[21:58:19] adaedra: ugh phantom
[21:58:24] Mon_Ouie: Although Ruby 2.x is mostly compatible with Ruby 1.9
[21:58:24] anonoz: has joined #ruby
[21:58:26] lucyinthesky: has joined #ruby
[21:58:38] atzorvas: workmad3: I don't have a mac. thus I'm considering buying one, but I think I'll waste my money :p
[21:58:57] workmad3: johnflux: it's normal practice to refer to a ruby version with major.minor version, not just major btw :)
[21:59:05] havenwood: johnflux: Ruby 1.9 is past End-of-Life and Ruby 2.0 is in maintenance mode so use Ruby 2.2 or 2.1 if you're able.
[21:59:53] johnflux: havenwood: i'm trying to install on a server with 1.9 and 2.0
[22:00:11] johnflux: havenwood: i developed on a machine with 2.1. I hope that isn't going to screw me :)
[22:00:20] laserco: has joined #ruby
[22:00:24] havenwood: johnflux: The server has both via the package manager?
[22:00:33] havenwood: johnflux: What OS/distro?
[22:00:35] johnflux: havenwood: apt-get yeah
[22:00:44] johnflux: havenwood: ubuntu 14.04
[22:00:55] laserco: has left #ruby: ()
[22:00:59] laserco: has joined #ruby
[22:01:15] havenwood: johnflux: Brightbox maintains nice Ubuntu packages for Ruby: https://www.brightbox.com/docs/ruby/ubuntu/
[22:01:17] tester__: has joined #ruby
[22:01:41] havenwood: johnflux: You can switch between them with ruby-switch or update-alternatives.
[22:02:11] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[22:02:16] havenwood: !mute hiter_loves_ruby
[22:02:17] ruboto: +q hiter_loves_ruby!*@*
[22:02:17] ruboto: -o ruboto
[22:02:38] havenwood: johnflux: If you're developing on 2.1 the Brightbox 2.1 package makes sense.
[22:02:51] drbrain: whois hiter_loves_ruby
[22:03:34] zenspider: looks like I "missed out"
[22:03:59] adaedra: time for zenspider to have fun
[22:04:15] zenspider: I'll bet hiter_loves_ruby is also tora/omfgtora.
[22:04:36] adaedra: He/She goes by many names.
[22:05:25] jenrzzz: has joined #ruby
[22:05:52] SuMo_D: has joined #ruby
[22:06:12] agocorona: has joined #ruby
[22:06:57] jhass: -q+b-o hiter_loves_ruby!*@* $a:hiter_loves_ruby jhass
[22:07:47] roolo: has joined #ruby
[22:08:28] zenspider: it's just petty and pathetic. it'd be sad if I gave a shit
[22:08:44] jeadre: has joined #ruby
[22:08:56] hiter_loves_ruby: has left #ruby: ()
[22:09:02] zenspider: that said: I HAVE PIXELS!
[22:09:16] sdwrage: has joined #ruby
[22:10:28] jenrzzz: has joined #ruby
[22:12:43] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[22:13:23] jhass: +b-o $a:crispus jhass
[22:13:24] zenspider: rects and lines and double buffer flipping... now for fancier pixels.
[22:13:35] mblagden: has joined #ruby
[22:14:18] zenspider: I love how we've mortally offended a bunch of 14 year old boys.
[22:14:46] krisquigley: has joined #ruby
[22:16:01] j_mcnally: has joined #ruby
[22:16:11] lucyinthesky: has joined #ruby
[22:17:01] freeze: has joined #ruby
[22:18:30] atzorvas: has joined #ruby
[22:18:47] atzorvas: has joined #ruby
[22:19:02] jhack: okay, so its not giving me any errors anymore. But it's asking me for an input and waits for the input. RSpec isnt giving me any pass/fails? https://gist.github.com/jhack32/e75b8fd6bc840f9ad830
[22:19:57] Mendenhall: has joined #ruby
[22:20:15] jhack: zenspider: story?
[22:20:36] zenspider: not sure why, but periodically gist/github misindents ruby and makes it an unreadable mess. I have to reload to see the code as intended... never have figured this one out
[22:21:34] zenspider: jhack: asking you for input like the gets isn't on the StringIO you created?
[22:21:41] jeadre: has joined #ruby
[22:22:10] zenspider: jhack: why do you have all those allow calls?
[22:22:40] zenspider: no, I think it is still indented poorly... so it is a combo of the two :)
[22:23:05] zenspider: line 32 doesn't make sense
[22:23:41] zenspider: I think you don't want that, and you need an extra end at the end of the file... not positive tho
[22:23:45] zenspider: I can't tell your intent yet
[22:24:14] zenspider: also don't know why you have an after(:each)
[22:24:34] Mia: has joined #ruby
[22:24:34] Mia: has joined #ruby
[22:24:36] jhack: I was testing out different things, new to RSpec
[22:24:53] kies^: has joined #ruby
[22:25:17] zenspider: don't be fancy. do the simplest thing that could possibly work. get it working. refactor from there
[22:25:42] jhack: But what i want to do is, have the test, test my play? method when the input is no/yes
[22:25:44] jhack: as of right now
[22:26:02] choke: has joined #ruby
[22:26:04] zenspider: sure... but right now you're not even calling play? directly
[22:26:23] zenspider: stop using indirection. do what you want when you want it. deal with the problems that fall out of that more directly.
[22:26:29] jhack: Doesn't (game.play?) call the play? method?
[22:26:52] doublemalt_: has joined #ruby
[22:27:21] notabott: has joined #ruby
[22:27:23] zenspider: when does after(:each) happen? when is it relative to a before in a sub-describe? does it happen after an after block in a sub-describe? etc
[22:27:30] zenspider: stop. being. indirect.
[22:27:48] notabott: has left #ruby: ()
[22:28:03] Asher: has joined #ruby
[22:28:55] zenspidelovescok: has joined #ruby
[22:29:00] zenspidelovescok: has left #ruby: ()
[22:29:06] zenspidelovesdik: has joined #ruby
[22:29:15] zenspidelovesdik: has left #ruby: ()
[22:29:29] zenspidelovesdik: has joined #ruby
[22:29:34] zenspidelovesdik: has left #ruby: ()
[22:29:36] jhass: +b-o *!*@*172.98.67.8 jhass
[22:29:54] jhack: btw, what's the backstory of all these part/joins?
[22:30:02] zenspider: jackassery. ignore it
[22:30:56] stef204: has joined #ruby
[22:33:53] Eiam: I just turn off join/parts completely
[22:33:55] Eiam: don't even see them
[22:34:43] dfockler: has left #ruby: ()
[22:34:45] dfockler: has joined #ruby
[22:35:06] nkts: has joined #ruby
[22:35:30] hazelux: has joined #ruby
[22:36:18] dfockler: has joined #ruby
[22:36:19] christiandsg: has joined #ruby
[22:37:04] hazelux: has joined #ruby
[22:37:53] havenwood: has joined #ruby
[22:38:42] JoshGlzBrk: has joined #ruby
[22:39:01] ndrei: has joined #ruby
[22:39:39] bhaak: has joined #ruby
[22:40:37] denisemccoy: has joined #ruby
[22:40:44] neanderslob: has joined #ruby
[22:41:00] jhack: okay so now i've gotten rid of everything i didn't need yet. where do i go from here? https://gist.github.com/jhack32/e75b8fd6bc840f9ad830
[22:41:47] momomomomo: has joined #ruby
[22:42:04] n_blownapart: has joined #ruby
[22:42:59] ebbflowgo: has joined #ruby
[22:43:07] j_mcnally: has joined #ruby
[22:43:45] zenspider: jhack: now you need the parts you DO need. :) Bring back the StringIO part
[22:44:11] zenspider: you can also do the stringio trick for $stdout to test the puts if you want
[22:44:22] zenspider: I don't know rspec very well... minitest has methods for this
[22:44:29] zenspider: assert_output and must_output
[22:45:28] flounders: has left #ruby: ()
[22:45:35] dfockler: Is it good form to have multiple asserts in the same test?
[22:45:55] dfockler: or is it some sort of smell?
[22:46:32] zenspider: dfockler: I don't mind it ... I'm more concerned that there's (mostly) one call into the SUT
[22:47:10] Mendenhall: has joined #ruby
[22:48:54] ocx: has joined #ruby
[22:48:55] jesterfraud: has joined #ruby
[22:50:17] ocx: has left #ruby: ()
[22:50:30] jhack: zenspider: so, should i be doing $stdin in my spec file?
[22:50:30] ocx: has joined #ruby
[22:50:38] ocx: hello, can anyone help me resolve this gem? http://pastebin.com/Razmh3Nm
[22:50:39] ruboto: ocx, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7beb7c7e8748e4899ce2
[22:50:39] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[22:51:11] ocx: i am not able to install
[22:51:38] Kallis: has joined #ruby
[22:52:15] dfockler: ocx: looks like ruby can't access your C compiler, it's either not in the path, or not installed
[22:52:28] ocx: dfockler: i can write gcc it is there
[22:53:21] devoldmx: has joined #ruby
[22:53:43] ocx: i do have build essentails installed dfockler
[22:53:56] AlexAltea: has joined #ruby
[22:54:01] ledestin: has joined #ruby
[22:54:13] n_blownapart: has joined #ruby
[22:54:19] dfockler: I'm not sure then, I'd check the the gem_make.out
[22:54:56] al2o3-cr: ocx: What OS?
[22:55:09] ocx: al2o3-cr: ubuntu 14.04
[22:55:14] ocx: i install ruby 2.2.3 using rvm
[22:55:22] ocx: i also install ruby 2.2.3-dev using rvm
[22:55:30] al2o3-cr: ocx: Try sudo apt-get install ruby-dev then reun gem install ronn
[22:55:55] chipotle: has joined #ruby
[22:56:02] ocx: al2o3-cr: it will install ruby dev 1.9.1
[22:56:33] ocx: al2o3-cr: i tried now, same error
[22:57:25] havenwood: ocx: It seems you're using an RVM Ruby for a pre-release 2.2.3-dev. Switch to 2.2.3 now that it has been released.
[22:57:42] baweaver: has joined #ruby
[22:58:01] zenspider: holy crap. when clang says -Weverything is _everything_, they mean it
[22:58:02] ocx: havenwood: sorry i didnt get what to do
[22:58:38] zenspider: jhack: sure
[22:59:08] havenwood: ocx: A single-user install of RVM in your home dir is recommended unless you have a reason to do elsewise. You get that by imploding and reinstalling RVM without sudo and as a non-root user.
[22:59:38] havenwood: ocx: Now that Ruby 2.2.3 has been released use it rather than pre-releases or release candidates.
[23:00:10] RegulationD: has joined #ruby
[23:00:20] hs366: has joined #ruby
[23:01:35] ocx: havenwood: i did try installing rvm as a normal user i did rvm install 2.2.3 and rvm install 2.2.3-dev and then gem install ronn same errors
[23:02:10] havenwood: ocx: I mean `rvm implode` then reinstall RVM without sudo as a non-root user.
[23:02:23] ocx: rvm implode as root?
[23:02:31] havenwood: ocx: To completely remove your system instal (follow instructions)l: rvm implode
[23:02:34] havenwood: (Has you type "yes".)
[23:03:22] havenwood: ocx: Then as a non-root user: \curl -sSL https://get.rvm.io | bash
[23:03:37] ocx: implode completed
[23:03:55] havenwood: ocx: And install the latest Ruby (2.2.3): rvm reload && rvm install ruby
[23:06:00] RandyT_: has joined #ruby
[23:06:02] j_mcnally: has joined #ruby
[23:08:13] ocx: gem install ronn Fetching: mustache-1.0.2.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /var/lib/gems/1.9.1 directory. havenwood
[23:08:33] ocx: if i do a sudo it doesnt work too, complains about having ruby > 2.0
[23:08:43] mary5030: has joined #ruby
[23:08:45] havenwood: ocx: Yes, permissions issue with your global install.
[23:08:59] ocx: what do i do
[23:09:12] havenwood: ocx: You can try to fix permissions with `rvmsudo rvm fix-permissions` but as I've mentioned a single-user install is recommended.
[23:09:17] havenwood: ocx: rvmsudo rvm implode
[23:10:58] ocx: sudo chmod 777 /var/lib/gems/1.9.1/ (trusty)pgharios@localhost:~/Downloads$ gem install ronn ERROR: Error installing ronn: mustache requires Ruby version ~> 2.0. havenwood
[23:11:25] n_blownapart: has joined #ruby
[23:11:55] bronson: has joined #ruby
[23:13:03] Meeh: has joined #ruby
[23:13:56] ocx: havenwood: i am trying as a normal user
[23:14:46] Cache_Money: has joined #ruby
[23:15:11] stef204: has joined #ruby
[23:16:54] mordocai: has joined #ruby
[23:19:44] lucyinthesky: has left #ruby: ("Leaving")
[23:19:48] choke: has joined #ruby
[23:20:42] sarkyniin: has joined #ruby
[23:22:49] radens: how do I do a = 1 if maybe_false else 2 in ruby>
[23:23:14] jhass: radens: a = condition ? 1 : 2
[23:23:20] TheNet: has joined #ruby
[23:23:27] jhass: called ternary
[23:23:29] chipotle: has joined #ruby
[23:23:35] radens: of course
[23:23:50] jhass: funny, yesterday or so exactly the same happened :P
[23:24:59] porfa: will rbyfulsoup work on sites with js? dammit, i have this 100001 forms and i can't even touch them with mechanize :'(
[23:25:00] tmtwd: has joined #ruby
[23:25:19] Aeyrix: Nokogiri fam
[23:25:31] jhass: ask for an API?
[23:28:00] kies^: has joined #ruby
[23:28:05] safety_cut: has joined #ruby
[23:29:19] tomdalling: has joined #ruby
[23:30:01] hydrozen: has joined #ruby
[23:30:38] baweaver: has left #ruby: ()
[23:30:43] baweaver: has joined #ruby
[23:31:01] jhass: -bo *!*@gateway/web/cgi-irc/kiwiirc.com*$#ruby-banned jhass
[23:31:11] replay: has joined #ruby
[23:31:19] ghr: has joined #ruby
[23:33:34] Torrieri: has joined #ruby
[23:33:46] Torrieri: has joined #ruby
[23:33:55] northfurr: has joined #ruby
[23:34:28] ellisTAA: has joined #ruby
[23:34:57] zenspider: ocx: what does the error message say?
[23:36:09] pabs: has joined #ruby
[23:36:31] benlieb: has joined #ruby
[23:36:39] bigredboots: has joined #ruby
[23:37:14] zenspider: is there a cleaner way to use rb_scan_args if you have 10+ args?
[23:37:24] zenspider: or something else is fine too
[23:37:57] choke: has joined #ruby
[23:38:29] nofxx: has joined #ruby
[23:38:50] drbrain: zenspider: how many do you have?
[23:38:54] charliesome: has joined #ruby
[23:38:54] drbrain: and what rubies?
[23:39:39] minimuffins: has joined #ruby
[23:39:40] zenspider: mmm... ruby 2.0+. currently 10 + 1 optional (which I'm working out of existance)
[23:40:47] lucyinthesky: has joined #ruby
[23:40:49] cjbottaro: has joined #ruby
[23:41:20] drbrain: if you can get rid of the optional I think you can cheat by using "901"
[23:41:30] ecnalyr: has joined #ruby
[23:41:43] drbrain: where 9 is "leading mandatory args" and 1 is "trailing mandatory args"
[23:41:51] zenspider: oh. trailing mandatory?
[23:42:10] drbrain: you can do def a, b=1, c; end nowadays
[23:42:20] zenspider: if I can get rid of the optional, then I should just be able to declare an arity of 10 and have named args, right?
[23:42:31] zenspider: at that point, it should be moot
[23:42:38] zenspider: still 10 fucking args... but I'm stuck with that
[23:42:40] drbrain: ugh, but I think that's ruby 2.1+
[23:43:10] RobertBirnie: has joined #ruby
[23:43:22] drbrain: the other option is to manually take the first ten arguments from argv, then update argv and argc for rb_scan_args if you still need the optional
[23:43:36] zenspider: ooh. that's interesting.
[23:43:51] zenspider: I actually don't want the optional at all. it's only there for compat sake at this point
[23:44:04] zenspider: but you can't do optional args with declared arity afaik
[23:44:59] drbrain: you can rb_check_arity()
[23:45:17] drbrain: ugh, static
[23:46:14] solocshaw: has joined #ruby
[23:46:37] drbrain: if you're doing argv/argc you have to rb_define_method with a -1 arity anyhow
[23:47:30] drbrain: the other option is -2 arity which is VALUE my_method(VALUE obj, VALUE args)
[23:48:02] drbrain: oh, I misunderstood, yes
[23:49:00] zenspider: the way I'm currently doing it is "92" instead of "10;1" .. *shrug*
[23:49:03] Mendenhall: has joined #ruby
[23:49:05] zenspider: I should have the optionals out in the next day or two
[23:49:07] poli: has joined #ruby
[23:49:15] porfa: gem install headless, success ???.
[23:49:16] porfa: require 'headless'
[23:49:16] porfa: LoadError: cannot load such file -- headless
[23:50:13] zenspider: Porfa: gem contents headless
[23:50:19] drbrain: Porfa: try `gem contents -l --no-prefix headless` to see what is in the lib/ (requirable) dir
[23:51:58] porfa: https://gist.github.com/anonymous/70c00f7e93490a219637 output
[23:52:18] dimasg: has joined #ruby
[23:52:35] porfa: i see in some examples i should do require 'ruby gems' ??? i don't have that too
[23:52:49] drbrain: Porfa: only if you're still on ruby 1.8
[23:52:58] porfa: ohh ok, thanks
[23:53:28] porfa: I'm on 2.2.3 ( thank you $hevy and jhas$ )
[23:54:01] porfa: any reason i can't load headless, so i can fin lay get into watir??? ;_;
[23:54:41] drbrain: I'm unsure
[23:54:42] denisemccoy: has joined #ruby
[23:55:15] zenspider: Porfa: can you gist the whole error and the code involved?
[23:55:36] michael_mbp: has joined #ruby
[23:55:40] jesterfraud: has joined #ruby
[23:55:53] roolo: has joined #ruby
[23:55:53] zenspider: looks like a bad gem? s.files = `git ls-files`.split("\n")
[23:55:55] porfa: I'm at the start of everything, i just opened IRB and did require 'watir-webdriver' then require 'hedless'
[23:55:59] zenspider: that's in the gemspec
[23:56:25] porfa: i never used headless or watir, just wanting to learn!
[23:56:40] zenspider: I just installed headless privately and it requires OK
[23:57:06] zenspider: 10005 % GEM_HOME=xxx ruby -e "require 'headless'; p Headless"
[23:57:38] Eiam: has joined #ruby
[23:57:42] zenspider: so, again... please gist the actual error and the code involved
[23:58:07] andybernard: has joined #ruby
[23:58:16] msnyon: has joined #ruby
[23:58:27] porfa: how do i do that..?
[23:58:35] porfa: where do i check for the error?
[23:59:08] zenspider: what part are you asking about? because you've already done a gist above...
[23:59:17] zenspider: and presumably you know what an error is...
[23:59:21] zenspider: so I don't know what you're asknig