« Back to channel list

#ruby - 27 April 2016

« Back 1 day Forward 1 day »
[00:00:04] baweaver: has joined #ruby
[00:00:16] zel: has joined #ruby
[00:00:21] ctrlrsf: has joined #ruby
[00:00:57] `tim`: has joined #ruby
[00:02:25] hays: if i was going to randomly choose an alternative ruby interpreter what would be the best choice? im leaning towards jruby because it seems less experimental
[00:02:40] hays: (than rubinious)
[00:03:12] tAn: has joined #ruby
[00:03:14] smathy: It'd depend on my reasons for choosing an alternative.
[00:04:16] hays: largely because i want threading to actually work
[00:04:40] Arcaire: I'd suggest MRI then.
[00:04:52] Arcaire: jruby is good with threads iirc
[00:06:09] hays: MRI? that is the one that seems to have a gil limitation where threads stay on one core
[00:06:54] eam: hays: jruby is pretty good
[00:06:59] bob434: has joined #ruby
[00:07:13] benzrf: !troll benzrf
[00:07:22] benzrf: looks like it needs perms, graft
[00:07:38] eam: wow why'd benzrf just mute himself
[00:09:23] hays: now i just have to get it to build on my mac. heh
[00:09:46] symm-: has joined #ruby
[00:10:00] eam: hays: well, it's a jar
[00:10:10] eam: you have java right
[00:10:26] hays: i get quite the error out of macport
[00:10:29] hays: macports.
[00:11:22] Arcaire: that's probably because you're using macports
[00:11:34] hays: https://bpaste.net/show/faadac34fa5a if curious
[00:11:50] Arcaire: λ ruby-install jruby
[00:11:51] Arcaire: >>> Installing jruby 9.0.5.0 into /Users/elliot/.rubies/jruby-9.0.5.0 ...
[00:11:51] hays: macports has treated me pretty well.
[00:12:03] Arcaire: Yeah but does it treat you THAT ^ well?
[00:12:13] hays: not sure what that is
[00:12:28] Arcaire: Me installing jruby without hassle, really.
[00:12:36] gizmore: has joined #ruby
[00:12:36] CloCkWeRX: has joined #ruby
[00:13:04] hays: well then not that well i guess :)
[00:13:16] hays: life is compromises
[00:13:24] Arcaire: No need to compromise on this! http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[00:13:50] Arcaire: Good grief he's changed his colors and that one is probably the most grating shade of orange since carrots.
[00:14:10] william3: has joined #ruby
[00:14:24] baweaver: has joined #ruby
[00:14:43] hays: heh. yeah i've thought about moving to brew.
[00:15:08] idefine: has joined #ruby
[00:15:14] LoneHermit: has joined #ruby
[00:17:10] gizless: has joined #ruby
[00:21:43] tvon[laptop]: has joined #ruby
[00:25:14] bronson: has joined #ruby
[00:28:25] callen92: has joined #ruby
[00:29:13] chipotle: has joined #ruby
[00:30:48] RegulationD: has joined #ruby
[00:30:59] shazaum_: has joined #ruby
[00:32:30] tubuliferous: has joined #ruby
[00:33:35] gregf: has joined #ruby
[00:36:10] ss_much: has joined #ruby
[00:38:10] godzillaenlacasa: has joined #ruby
[00:42:27] havenwood: Radar: You should switch the instructions ^ to use: brew install ruby-install chruby
[00:45:57] LoneHermit: has joined #ruby
[00:46:12] edwinvdgraaf: has joined #ruby
[00:46:41] gregf: has joined #ruby
[00:48:13] axisys: has joined #ruby
[00:48:44] Ropeney: has joined #ruby
[00:51:08] SirFunk: has joined #ruby
[00:51:32] jaequery: has joined #ruby
[00:51:39] idefine_: has joined #ruby
[00:52:32] william3: has joined #ruby
[00:54:14] axisys: has joined #ruby
[00:57:04] idefine: has joined #ruby
[00:58:52] chouhoulis: has joined #ruby
[01:06:14] chouhoulis: has joined #ruby
[01:07:32] devbug: has joined #ruby
[01:07:34] JBlazeCoder21: has joined #ruby
[01:09:41] chouhoulis: has joined #ruby
[01:11:29] zacstewart: has joined #ruby
[01:11:58] benlieb: has joined #ruby
[01:12:25] havenwood: ACTION realizes the blog is open source
[01:13:38] mclong: has joined #ruby
[01:15:09] lemur: has joined #ruby
[01:15:15] gleo2430: has joined #ruby
[01:15:18] gleo2430: has left #ruby: ()
[01:17:22] gregf: has joined #ruby
[01:19:47] beawesomeinstead: has joined #ruby
[01:20:38] moeabdol: has joined #ruby
[01:25:02] idefine: has joined #ruby
[01:26:31] blackgoat: has joined #ruby
[01:26:41] binaryplease1: has joined #ruby
[01:28:15] havenwood: PR submitted: https://github.com/radar/ryanbigg.com/pull/22
[01:28:20] nando293921: has joined #ruby
[01:30:40] masconejos: has joined #ruby
[01:32:06] idefine_: has joined #ruby
[01:33:44] rohit: has joined #ruby
[01:34:36] idefine: has joined #ruby
[01:34:53] pawnbox: has joined #ruby
[01:35:08] masconejos: hi all. I have a question about lazy enumerators. I was doing a project euler problem and created a lazy enumerator and then did a series of functional operations on it. However, I’m having issues witht he data type of the result. Sometimes it’s an array of numbers (which is what I expect), sometimes its an array of arrays, depending on how I use it. Anyone interested in offering some insight?
[01:35:14] masconejos: A writeup with code is here: http://stackoverflow.com/questions/36876627/ruby-lazy-enumerator-returning-different-object-types-depending-on-use/
[01:36:30] masconejos: basically if I do result.each { |x| puts x } I get numbers
[01:37:03] masconejos: but if I do result.map.with_index { |x, index| puts x } I get an array
[01:38:33] Vircung: has joined #ruby
[01:38:52] masconejos: and result.map(&:first) fails because FixNum doesn’t have a ‘first’ method, while result.map{|x,_| x} returns a number
[01:39:18] masconejos: the way the lazy enumerator is interpreted seems very arbitrary
[01:39:56] Cohedrin: has joined #ruby
[01:41:14] Waqas: has joined #ruby
[01:42:30] danielpclark: has joined #ruby
[01:44:19] benlieb: has joined #ruby
[01:46:50] baweaver: has joined #ruby
[01:47:26] blackmesa: has joined #ruby
[01:47:44] ICantCook: has joined #ruby
[01:47:49] Radar: havenwood: patches welcome
[01:48:05] smathy: Heh, keep reading ;)
[01:48:06] Radar: havenwood: https://github.com/radar/ryanbigg.com/blob/master/_posts/2015-06-09-mac-os-x-ruby-ruby-install-chruby-and-you.markdown
[01:48:35] skweek: has joined #ruby
[01:48:42] smathy: masconejos, a few of us were talking about precisely that the other day and we ended up punting.
[01:48:45] rbennacer: has joined #ruby
[01:48:53] Radar: havenwood: and then I realised you already submitted a PR
[01:49:00] Radar: havenwood: you are too cool
[01:49:44] zacts: has joined #ruby
[01:49:51] masconejos: smathy, well, glad to know I’m not alone
[01:49:58] Cohedrin: has joined #ruby
[01:50:18] smathy: That is, unfortunately, the only comfort I can offer.
[01:51:13] masconejos: smathy, it’s really the dichotomy between .each and .each.with_index that throws me. From experimenting, it seems like .each perhaps convert the lazy array to a fully-realized array and .with_index doesnt, but it’s still rather baffling
[01:51:37] masconejos: …except .each.class still returns a lazy array
[01:52:04] masconejos: also the need to do .with_object.take_while{} rather than take_while.with_object{} was a little odd
[01:52:21] rohit: has joined #ruby
[01:52:56] hxegon: has joined #ruby
[01:54:03] masconejos: it’s also handy that apparently the (with_object) object is cloned every iteration, rather than modified, but at the same take there is a LOT going on under the hood that isn’t at all obvious. I would have excpeted that there was only one object that was modified each pass (at least that was my intent)
[01:55:31] idefine_: has joined #ruby
[01:56:33] bronson: has joined #ruby
[01:58:09] Caerus: has joined #ruby
[02:01:35] arescorpio: has joined #ruby
[02:03:42] william3: has joined #ruby
[02:04:03] rickmasta: has joined #ruby
[02:06:00] ensyde: has joined #ruby
[02:07:11] bronson: has joined #ruby
[02:08:13] idefine: has joined #ruby
[02:08:33] JBlazeCoder21: has joined #ruby
[02:08:47] chipotle: has joined #ruby
[02:08:59] BSab: has joined #ruby
[02:12:41] nanoz: has joined #ruby
[02:13:50] CoderPuppy: has joined #ruby
[02:14:00] x77686d: has joined #ruby
[02:18:39] masconejos: has joined #ruby
[02:19:20] devbug: has joined #ruby
[02:21:39] Vircung: has joined #ruby
[02:22:03] idefine: has joined #ruby
[02:24:52] idefine: has joined #ruby
[02:26:15] tsherman: has joined #ruby
[02:26:25] nanoz: has joined #ruby
[02:28:06] jaguarmagenta: has joined #ruby
[02:29:33] emilford: has joined #ruby
[02:30:21] Eiam_: has joined #ruby
[02:30:25] CloCkWeRX: has joined #ruby
[02:31:17] statelesscode: has joined #ruby
[02:31:35] blackwell: has joined #ruby
[02:31:40] masconejos: has joined #ruby
[02:32:14] RegulationD: has joined #ruby
[02:36:48] idefine_: has joined #ruby
[02:37:00] zacts: hi rubyists
[02:38:29] idefine__: has joined #ruby
[02:39:38] SilverKey: has joined #ruby
[02:40:09] idefine: has joined #ruby
[02:41:08] BtcBen: has joined #ruby
[02:41:09] william3: has joined #ruby
[02:47:51] zacts: has joined #ruby
[02:52:13] p1k: has joined #ruby
[02:54:28] william3: has joined #ruby
[02:54:45] blackmesa: has joined #ruby
[02:55:59] idefine: has joined #ruby
[02:57:39] idefine_: has joined #ruby
[02:58:13] cdg: has joined #ruby
[02:59:12] dezull: has joined #ruby
[02:59:42] tildes: has joined #ruby
[03:00:51] baweaver: has joined #ruby
[03:04:30] berserk_ren: has joined #ruby
[03:08:45] yfeldblum: has joined #ruby
[03:08:45] moeabdol: has joined #ruby
[03:10:28] devbug: has joined #ruby
[03:11:42] hxegon: has joined #ruby
[03:12:35] fedexo: has joined #ruby
[03:14:09] idefine: has joined #ruby
[03:14:40] zast: has joined #ruby
[03:20:24] tildes: has joined #ruby
[03:24:32] lxsameer: has joined #ruby
[03:25:22] bronson: has joined #ruby
[03:28:20] brendan-: has joined #ruby
[03:29:29] idefine_: has joined #ruby
[03:32:53] mesamoo: has joined #ruby
[03:33:30] akkad: has joined #ruby
[03:34:10] jackjackdripper: has joined #ruby
[03:35:11] SilverKey: has joined #ruby
[03:36:29] gix: has joined #ruby
[03:36:30] Guest49: has joined #ruby
[03:37:01] idefine: has joined #ruby
[03:42:00] pawnbox: has joined #ruby
[03:46:00] baweaver: has joined #ruby
[03:52:24] isxek: has joined #ruby
[03:52:33] djbkd: has joined #ruby
[03:55:28] william3: has joined #ruby
[03:56:14] blackmesa: has joined #ruby
[03:58:25] ramfjord: has joined #ruby
[04:00:22] _aeris_: has joined #ruby
[04:01:40] zapata: has joined #ruby
[04:02:13] hxegon: has joined #ruby
[04:04:33] x77686d: has joined #ruby
[04:04:44] astrobun_: has joined #ruby
[04:06:31] idefine: has joined #ruby
[04:09:42] kareeoleez: has joined #ruby
[04:09:48] Tref: has joined #ruby
[04:10:18] pawnbox: has joined #ruby
[04:10:42] konsolebox: has joined #ruby
[04:11:01] Weavel: has joined #ruby
[04:11:13] agent_white: has joined #ruby
[04:13:05] Moosashi: has joined #ruby
[04:13:44] jaequery: has joined #ruby
[04:18:59] IrishGringo: has joined #ruby
[04:19:11] arquebus: has joined #ruby
[04:20:26] baweaver: has joined #ruby
[04:22:41] koooge: has joined #ruby
[04:25:35] ruskie: has joined #ruby
[04:26:21] bronson: has joined #ruby
[04:27:18] jaguarmagenta: has joined #ruby
[04:30:39] jaequery: has joined #ruby
[04:32:30] hxegon: has joined #ruby
[04:32:37] mclong: has joined #ruby
[04:33:44] Devalo: has joined #ruby
[04:34:56] sneakerhax: has joined #ruby
[04:36:59] LoneHerm_: has joined #ruby
[04:40:26] yfeldblum: has joined #ruby
[04:41:26] yfeldblum: has joined #ruby
[04:43:40] nofxx: has joined #ruby
[04:46:59] Devalo: has joined #ruby
[04:47:05] PedramT: has joined #ruby
[04:50:46] Tref: has joined #ruby
[04:53:15] dezull: has joined #ruby
[04:54:57] solocshaw: has joined #ruby
[04:56:06] aspiers_: has joined #ruby
[04:56:17] d0lph1n98: has joined #ruby
[04:56:51] moeabdol: has joined #ruby
[04:58:00] blackmesa: has joined #ruby
[05:03:30] jackjackdripper: has joined #ruby
[05:04:12] devbug: has joined #ruby
[05:06:45] Cohedrin: has joined #ruby
[05:06:55] bob434: has joined #ruby
[05:07:55] navneet_: has joined #ruby
[05:15:24] terlar: has joined #ruby
[05:17:44] bluOxigen: has joined #ruby
[05:23:34] jenrzzz: has joined #ruby
[05:25:34] bronson: has joined #ruby
[05:26:08] izaac: has joined #ruby
[05:28:31] LoneHerm_: has joined #ruby
[05:29:22] bob434: has joined #ruby
[05:29:39] baweaver: has joined #ruby
[05:30:14] blackgoat: has joined #ruby
[05:32:14] joonty: has joined #ruby
[05:32:29] Macaveli: has joined #ruby
[05:33:58] sandelius: has joined #ruby
[05:34:44] billy1234: has joined #ruby
[05:34:56] marcdel: has joined #ruby
[05:35:27] billy1234: I have a question. If I have a string that consists of nothing but numbers, and I attempt to assign it to a DB record column of type integer
[05:35:37] billy1234: will that throw an error?
[05:40:35] Arcaire: Anyone seen issues of DCell or ZeroMQ segfaulting before? I can only find half-decade-old bug reports on Github.
[05:41:05] Arcaire: I'm not doing anything with it, just kind of starting a DCell (zeromq-backed celluloid actors, i guess) instance.
[05:41:36] moeabdol: has joined #ruby
[05:42:11] Arcaire: Ruby 2.3.0, dcell 0.16.1, ffi-rzmq 2.0.4 (all latest)
[05:43:04] Arcaire: https://gist.github.com/Arcaire/ebb0584f3514a19b77932443a20cca99 code-ish
[05:43:21] moeabdol: has joined #ruby
[05:44:17] noService: has joined #ruby
[05:45:59] bob434: has joined #ruby
[05:46:11] Sadin: has joined #ruby
[05:47:59] Tref: has joined #ruby
[05:48:07] aufi: has joined #ruby
[05:49:39] sauvin: has joined #ruby
[05:51:31] dionysus69: has joined #ruby
[05:51:31] aupadhye: has joined #ruby
[05:58:57] LoneHerm_: has joined #ruby
[05:59:21] Polysics: has joined #ruby
[05:59:27] Moosashi: has joined #ruby
[06:01:02] blackmesa: has joined #ruby
[06:01:59] manveru: billy1234: depends on the db...
[06:02:17] karapetyan: has joined #ruby
[06:02:45] manveru: i know postgres won't allow stuff like that :)
[06:03:38] Arcaire: Assuming ActiveRecord, you'll be fine.
[06:03:55] Arcaire: AR automatically typecasts your input to the column type, so "12345" will be typecast to 12345 as an integer.
[06:05:50] manveru: i wouldn't call that "fine"...
[06:05:52] Arcaire: Make sure it's more or less a number in a string, though. "!~1234" isn't going to be typecast to 1234.
[06:06:09] manveru: more like irresponsible :P
[06:06:14] Arcaire: manveru: Why bother explicitly casting a string to an integer if you know the input is going to translate correctly?
[06:06:34] Arcaire: You should be validating your input, sure, but the casting happens anyway.
[06:07:26] brianpWins: has joined #ruby
[06:07:32] manveru: so what happens with "1.0" or "1/2" or "0x12" or "012"
[06:07:44] manveru: what method does it use to convert
[06:08:00] Arcaire: If your column type is an integer, it'll probably use some glorified form of to_i/.
[06:08:06] Arcaire: So 1.0 is just going to become 1.
[06:08:23] solars: has joined #ruby
[06:08:52] Arcaire: "1/2" isn't an integer, nor a float. It's a fraction which is just a whole different ball game. That won't be casted properly. Same with most others you listed.
[06:08:56] Arcaire: 012 will go to 12 as expected.
[06:09:11] Arcaire: If you want it padded out to three you can do that within the DB because you need to ensure integrity at that level anyway.
[06:09:32] ruby[bot]: manveru: # => 10 (https://eval.in/560282)
[06:09:38] Arcaire: "012".to_i
[06:09:42] Arcaire: "012" is not 012.
[06:09:52] manveru: >> Integer('012')
[06:09:53] ruby[bot]: manveru: # => 10 (https://eval.in/560283)
[06:10:00] Arcaire: Still not what I'm talking about.
[06:10:10] manveru: you don't know which one it uses though
[06:10:24] manveru: anw, my point is that implicit conversion is not safe
[06:10:50] Arcaire: That really depends on your input tbh.
[06:11:02] manveru: you can argue that it's convenient, but that's the same reason people use mongodb or mysql...
[06:11:28] kareeoleez: has joined #ruby
[06:12:06] manveru: AR doesn't even bother checking string lengths even though it has the schema information
[06:12:30] kareeoleez: has joined #ruby
[06:12:31] baweaver: Bob had a problem, so Bob decided to use MongoDB
[06:13:02] PedramT: has joined #ruby
[06:14:55] Arcaire: Suddenly there's no problems anymore.
[06:15:04] sandelius: has joined #ruby
[06:15:12] baweaver: Now Bob has two problems
[06:15:46] navneet__: has joined #ruby
[06:17:58] kareeoleez: has joined #ruby
[06:18:30] pLaToOn: has joined #ruby
[06:20:07] RahulT: has joined #ruby
[06:21:59] tAn: has joined #ruby
[06:23:46] firstdayonthejob: has joined #ruby
[06:24:23] jaequery: has joined #ruby
[06:25:32] LoneHerm_: has joined #ruby
[06:28:21] anisha: has joined #ruby
[06:28:29] kriskropd: has joined #ruby
[06:30:10] Tref: has joined #ruby
[06:32:07] jaruga___: has joined #ruby
[06:32:55] jaruga___: has joined #ruby
[06:33:53] RegulationD: has joined #ruby
[06:34:52] GriffinHeart: has joined #ruby
[06:36:07] tildes: has joined #ruby
[06:38:31] vdamewood: has joined #ruby
[06:39:17] Moosashi: has joined #ruby
[06:41:30] vdamewood: has joined #ruby
[06:42:57] LoneHerm_: has joined #ruby
[06:43:36] stardiviner: has joined #ruby
[06:43:42] pawnbox: has joined #ruby
[06:47:26] karapetyan: has joined #ruby
[06:48:13] astrobun_: has joined #ruby
[06:50:34] codecop: has joined #ruby
[06:50:53] GinoMan2440: has joined #ruby
[06:52:09] dezull: has joined #ruby
[06:52:22] DoubleMalt: has joined #ruby
[06:52:51] mrsolo: has joined #ruby
[06:54:28] noodle: has joined #ruby
[06:55:45] konsolebox: has joined #ruby
[06:58:05] mustmodify: has joined #ruby
[06:58:10] latemus: has joined #ruby
[06:59:23] karapetyan: has joined #ruby
[07:01:02] biberu: has joined #ruby
[07:01:05] colstrom: has joined #ruby
[07:01:10] Eleeleth: has joined #ruby
[07:01:10] jmcc__________: has joined #ruby
[07:01:15] rubirc: GOODBYE CLOUD
[07:01:15] acerna: has joined #ruby
[07:01:19] audiodude_: has joined #ruby
[07:01:21] rubirc: WELCOEM BACK CLOUD
[07:01:39] braderhart: has joined #ruby
[07:01:48] deimos__: has joined #ruby
[07:01:51] pfg: has joined #ruby
[07:01:51] jlyndon: has joined #ruby
[07:02:03] vcoinminer: has joined #ruby
[07:02:07] boxrick1_: has joined #ruby
[07:02:13] chrismytton: has joined #ruby
[07:02:21] iamdevnul: has joined #ruby
[07:02:21] caw: has joined #ruby
[07:02:25] lancetw: has joined #ruby
[07:02:28] im0b: has joined #ruby
[07:02:30] bedouin: has joined #ruby
[07:02:35] alxndr: has joined #ruby
[07:02:36] jcp: has joined #ruby
[07:02:37] S01780: has joined #ruby
[07:02:40] daemonwrangler: has joined #ruby
[07:02:50] mjc_: has joined #ruby
[07:02:55] ELCALOR: has joined #ruby
[07:03:02] jxf: has joined #ruby
[07:03:09] jimeh: has joined #ruby
[07:03:12] Expanse: has joined #ruby
[07:03:18] HashNuke_: has joined #ruby
[07:03:26] angiebadillo: has joined #ruby
[07:03:45] acalewin: has joined #ruby
[07:03:46] danzilio: has joined #ruby
[07:03:50] dmnd: has joined #ruby
[07:03:50] lipoqil: has joined #ruby
[07:03:54] pmarreck: has joined #ruby
[07:03:55] deeprave: has joined #ruby
[07:04:04] blackmesa: has joined #ruby
[07:04:12] ramblinpeck: has joined #ruby
[07:04:13] thesheff17: has joined #ruby
[07:04:18] swgillespie: has joined #ruby
[07:04:46] bove: has joined #ruby
[07:04:54] jimcroft: has joined #ruby
[07:04:59] machty: has joined #ruby
[07:05:09] AckZ: has joined #ruby
[07:05:14] joaomdmoura__: has joined #ruby
[07:05:55] andikr: has joined #ruby
[07:06:28] bruce_lee: has joined #ruby
[07:06:33] ferr: has joined #ruby
[07:07:13] lubekpl: has joined #ruby
[07:07:30] moeabdol: has joined #ruby
[07:07:57] M-Kodo: has joined #ruby
[07:08:06] ur5us: has joined #ruby
[07:09:03] futilegames: has joined #ruby
[07:09:11] kireevco: has joined #ruby
[07:10:52] slackbotgz: has joined #ruby
[07:12:02] TomyWork: has joined #ruby
[07:12:21] william3: has joined #ruby
[07:12:30] chouhoulis: has joined #ruby
[07:15:11] ggherdov: has joined #ruby
[07:15:44] bluOxigen: has joined #ruby
[07:17:04] pawnbox: has joined #ruby
[07:18:22] Meow-J: has joined #ruby
[07:18:50] Devalo: has joined #ruby
[07:19:45] karapetyan: has joined #ruby
[07:20:09] the_drow: has joined #ruby
[07:21:05] the_drow: has joined #ruby
[07:21:34] the_drow: has joined #ruby
[07:21:44] UserInneed: has joined #ruby
[07:22:15] toretore: has joined #ruby
[07:24:38] william3: has joined #ruby
[07:26:07] karapetyan: has joined #ruby
[07:27:20] bronson: has joined #ruby
[07:27:31] mark_66: has joined #ruby
[07:28:19] CloCkWeRX: has joined #ruby
[07:32:20] tagaulap: has joined #ruby
[07:33:45] Nuck: has joined #ruby
[07:34:33] joast: has joined #ruby
[07:34:38] cdg: has joined #ruby
[07:35:39] norc: has joined #ruby
[07:36:36] norc: >> A = Struct.new(:a) { include Comparable; def <=>(o) a.to_i <=> o; end; }; a, b = A.new(1), A.new(2); a < b
[07:36:37] ruby[bot]: norc: # => comparison of A with A failed (ArgumentError) ...check link for more (https://eval.in/560367)
[07:36:38] tAn: has joined #ruby
[07:36:48] norc: This has got to be the most useless error message.
[07:37:14] william3: has joined #ruby
[07:37:32] norc: I mean the problem is obvious, but why is the error message this bad.
[07:38:37] UglyVendetta: has joined #ruby
[07:39:28] norc: I would have an expected an "comparison of Fixnum with #<struct TelephoneNumber> failed"
[07:39:30] navneet_: has joined #ruby
[07:39:41] norc: or #<struct A> rather.
[07:40:11] Tref: has joined #ruby
[07:40:15] norc: Or just comparison of Fixnum with A failed.
[07:41:47] aganov: has joined #ruby
[07:42:30] diegoaguilar: has joined #ruby
[07:44:24] ChiefAlexander: has joined #ruby
[07:44:50] brianpWins_: has joined #ruby
[07:44:52] devbug: has joined #ruby
[07:44:58] robbyoconnor: has joined #ruby
[07:48:39] igam: has joined #ruby
[07:49:02] william3: has joined #ruby
[07:53:56] roshanavand: has joined #ruby
[07:56:00] mikecmpbll: has joined #ruby
[07:57:28] duderono_: has joined #ruby
[07:59:46] Caerus: hello #ruby :)
[08:00:39] DaniG2k: has joined #ruby
[08:02:06] karapetyan: has joined #ruby
[08:03:16] DaniG2k_: has joined #ruby
[08:05:00] navneet_: has joined #ruby
[08:05:08] last_staff: has joined #ruby
[08:05:52] blackmesa: has joined #ruby
[08:07:51] htmldrum: has joined #ruby
[08:09:21] DaniG2k: has joined #ruby
[08:10:01] pandaant: has joined #ruby
[08:11:18] vondruch: has joined #ruby
[08:11:54] mikecmpb_: has joined #ruby
[08:13:50] JohnBat26: has joined #ruby
[08:13:51] chouhoulis: has joined #ruby
[08:16:51] thorgi: has joined #ruby
[08:17:13] william3: has joined #ruby
[08:18:46] baweaver: has joined #ruby
[08:19:09] marr: has joined #ruby
[08:19:49] terlar: has joined #ruby
[08:20:32] Moosashi: has joined #ruby
[08:21:03] roelof: has joined #ruby
[08:21:33] roelof: If I have a string let's say "abcdefghij
[08:21:52] roelof: Can I divide it into pieces of 4 characters ?
[08:24:42] Es0teric: has joined #ruby
[08:25:22] Es0teric: has joined #ruby
[08:25:44] snowy: has joined #ruby
[08:27:19] tomphp: has joined #ruby
[08:27:25] karapetyan: has joined #ruby
[08:27:39] Caerus: roelof, you could use split with regex
[08:28:18] bronson: has joined #ruby
[08:31:29] william3: has joined #ruby
[08:32:00] jaiks1: has joined #ruby
[08:32:35] roelof: oke, I try to figure out how I can divide this : # ## ## ## ### ### ## # # ### ## # # # # # ### # ## # ## ## ### # # # # # # # # # # ### ### into parts of 5 characters for several days
[08:34:16] adaedra: >> "jhdfskgjvfhxkjvbkxbvkxjbcf".chars.each_slice(5).map(&:join)
[08:34:17] ruby[bot]: adaedra: # => ["jhdfs", "kgjvf", "hxkjv", "bkxbv", "kxjbc", "f"] (https://eval.in/560428)
[08:34:24] howdoico1: has joined #ruby
[08:35:29] astrobun_: has joined #ruby
[08:35:32] aupadhye: has joined #ruby
[08:36:49] roelof: adaedra: thanks, that looks very good
[08:38:23] gregf_: roelof: theres many ways to split it
[08:38:49] hk238: has joined #ruby
[08:39:24] gregf_: >> "abcdefghij".scan(/.{4}/) # thats another :|
[08:39:25] ruby[bot]: gregf_: # => ["abcd", "efgh"] (https://eval.in/560433)
[08:39:32] roelof: gregf_: oke, I did not find a working one in the 2 - 3 days im working on this problem
[08:39:45] adaedra: roelof: what did you try?
[08:40:00] roelof: I tried split and chars
[08:40:33] roelof: >> "abcdef".split
[08:41:04] adaedra: Do you know how split works?
[08:41:06] roelof: >> "abcdef".chars
[08:41:41] roelof: yep, split "divides" a text if you say where to split
[08:41:56] adaedra: and you see why yours doesn't work then?
[08:43:15] adaedra: String#chars was a nice way of starting, you just needed to find a way to group, as I shown above
[08:43:36] roelof: yes, and that part I did not see how to do it
[08:43:52] roelof: there are a lot of functions I did not learn or have used before
[08:43:56] adaedra: note that there is a fundamental difference between gregf_'s solution and mine
[08:44:23] adaedra: Ruby has a lot of functions and even after doing Ruby for years, you can still find new things.
[08:44:35] gregf_: well mine needs to change a bit :| just saw i missed something
[08:44:36] isxek: what does .scan(/.{4}/) mean?
[08:44:41] gregf_: >> "abcdefghij".scan(/.{1,4}/) # thats another :|
[08:44:42] ruby[bot]: gregf_: # => ["abcd", "efgh", "ij"] (https://eval.in/560434)
[08:44:58] adaedra: &ri String#scan
[08:44:58] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-scan
[08:45:06] gregf_: >> "abcdefghij".chars.inject("") { |str,c| str+=c; str.size == 4 ? begin;p str; "";end : str } # and another... there far too many. its Ruby!!
[08:45:07] isxek: ah, of course, it's a regex pattern
[08:45:08] ruby[bot]: gregf_: # => "abcd" ...check link for more (https://eval.in/560435)
[08:45:52] stardiviner: has joined #ruby
[08:46:11] roelof: Thanks all, I think I can continue to solve the challenge im working on
[08:46:31] roelof: and next on my list. learn regex :)
[08:46:51] ferr: has joined #ruby
[08:50:51] skade: has joined #ruby
[08:51:30] skade: has joined #ruby
[08:51:45] tildes_: has joined #ruby
[08:52:22] aupadhye: has joined #ruby
[08:53:32] Nahra: has joined #ruby
[08:54:11] blackmesa: has joined #ruby
[08:55:42] banister: has joined #ruby
[08:56:06] iamvery: has joined #ruby
[08:58:11] AlexJakeGreen: has joined #ruby
[08:58:17] pawnbox: has joined #ruby
[09:06:43] Moosashi: has joined #ruby
[09:09:32] n0x90: has joined #ruby
[09:09:39] n0x90: has left #ruby: ()
[09:10:03] SCHAAP137: has joined #ruby
[09:12:53] skislak: has joined #ruby
[09:14:33] chouhoulis: has joined #ruby
[09:16:41] terlar: has joined #ruby
[09:20:19] Devalo: has joined #ruby
[09:20:28] n008f4g_: has joined #ruby
[09:23:32] evidex: has joined #ruby
[09:29:09] bronson: has joined #ruby
[09:29:51] bluOxigen: has left #ruby: ()
[09:30:08] iamvery: has joined #ruby
[09:31:27] jaguarmagenta: has joined #ruby
[09:32:10] mrgrieves: has joined #ruby
[09:33:14] moeabdol: has joined #ruby
[09:36:57] Emmanuel_Chanel: has joined #ruby
[09:40:06] senayar: has joined #ruby
[09:40:06] senayar: has joined #ruby
[09:40:21] MyMind: has joined #ruby
[09:41:16] blaxter: has joined #ruby
[09:44:56] johnmilton: has joined #ruby
[09:45:53] troulouliou_div2: has joined #ruby
[09:47:04] jenrzzz: has joined #ruby
[09:47:38] marcdel: has joined #ruby
[09:49:10] Shashikant86: has joined #ruby
[09:55:02] navneet: has joined #ruby
[09:59:07] CloCkWeRX: has joined #ruby
[10:01:31] yfeldblum: has joined #ruby
[10:03:02] chipotle: has joined #ruby
[10:03:17] johnmilton: has joined #ruby
[10:04:11] vondruch: has joined #ruby
[10:04:16] arlek: has joined #ruby
[10:06:19] platzhirsch: has joined #ruby
[10:08:09] iamvery: has joined #ruby
[10:10:12] tomphp_: has joined #ruby
[10:10:25] antgel: has joined #ruby
[10:15:23] chouhoulis: has joined #ruby
[10:16:00] platzhirsch: has joined #ruby
[10:17:28] PedramT: has joined #ruby
[10:19:48] baweaver: has joined #ruby
[10:19:50] giz|work: has joined #ruby
[10:22:18] kalzz: has joined #ruby
[10:22:36] htmldrum: has joined #ruby
[10:23:50] bluOxigen_: has joined #ruby
[10:24:22] rodfersou: has joined #ruby
[10:24:39] Moosashi: has joined #ruby
[10:27:02] mdw: has joined #ruby
[10:27:59] mdw7: has joined #ruby
[10:28:17] kalz: has joined #ruby
[10:30:19] bronson: has joined #ruby
[10:31:02] sgambino: has joined #ruby
[10:33:15] Xeago: has joined #ruby
[10:35:03] RegulationD: has joined #ruby
[10:36:53] ujjain: what is #{} ?
[10:37:10] PedramT: has joined #ruby
[10:37:13] Macaveli: has joined #ruby
[10:37:28] Ox0dea: ujjain: Interpolation.
[10:37:54] Ox0dea: >> a = 1; b = 2; "#{a} + #{b} = #{a + b}"
[10:37:55] ruby[bot]: Ox0dea: # => "1 + 2 = 3" (https://eval.in/560573)
[10:38:05] ujjain: http://pastebin.com/QwxpQBjF - can i use $ here?
[10:38:05] ruby[bot]: ujjain: as I told you already, please use https://gist.github.com
[10:38:34] Ox0dea: You have to interpolate it.
[10:38:54] Ox0dea: But yes, almost any Ruby expression can be interpolated.
[10:39:33] moeabdol: has joined #ruby
[10:43:52] Ishido: has joined #ruby
[10:46:46] htmldrum: has joined #ruby
[10:49:13] Shashikant86: has joined #ruby
[10:51:57] siaW: has joined #ruby
[10:54:47] platzhirsch: has joined #ruby
[10:54:58] GodFather: has joined #ruby
[10:56:00] banister: has joined #ruby
[10:56:08] Danielss89: has joined #ruby
[10:58:18] Danielss89: has joined #ruby
[10:58:47] KlongDor: has joined #ruby
[10:58:52] lkba: has joined #ruby
[11:06:34] Carella: has joined #ruby
[11:07:28] astrobunny: has joined #ruby
[11:08:41] braincrash: has joined #ruby
[11:09:33] skade: has joined #ruby
[11:13:01] dionysus69: has joined #ruby
[11:13:22] blackgoat: has joined #ruby
[11:13:48] ujjain: I would like to see if @timeout_exception is set. It's set in the code, but unset in the cucumber/gherkin test? https://gist.github.com/ujjain/5cb02afa3a4030d7c11624590cc45e7e
[11:13:53] banister: has joined #ruby
[11:16:10] chouhoulis: has joined #ruby
[11:17:54] gnufied: has joined #ruby
[11:18:55] pawnbox: has joined #ruby
[11:19:27] PedramT: has joined #ruby
[11:20:41] Sp4rKy: has joined #ruby
[11:21:45] IrishGringo: has joined #ruby
[11:24:09] Pisuke: has joined #ruby
[11:24:28] johnmilton: has joined #ruby
[11:27:36] dumdedum: has joined #ruby
[11:27:42] pawnbox: has joined #ruby
[11:29:05] navneet: has joined #ruby
[11:29:20] mdw: has joined #ruby
[11:31:07] bronson: has joined #ruby
[11:32:16] jaguarmagenta: has joined #ruby
[11:33:55] ldnunes: has joined #ruby
[11:34:18] nettoweb: has joined #ruby
[11:35:15] william3: has joined #ruby
[11:35:17] GinoMan2440: has joined #ruby
[11:35:39] vondruch: has joined #ruby
[11:38:48] the_drow: has joined #ruby
[11:39:19] senayar: has joined #ruby
[11:42:02] skade: has joined #ruby
[11:42:18] william3: has joined #ruby
[11:42:22] senayar: has joined #ruby
[11:42:22] senayar: has joined #ruby
[11:43:26] pawnbox: has joined #ruby
[11:43:30] p1k: has joined #ruby
[11:45:04] sepp2k: has joined #ruby
[11:45:17] mdw: has joined #ruby
[11:45:23] crameth: has joined #ruby
[11:48:05] shevy: ruby-2.3.1 - who of you already switched
[11:48:17] moeabdol: has joined #ruby
[11:50:25] sgambino: has joined #ruby
[11:51:14] gdp: has joined #ruby
[11:55:39] banister: has joined #ruby
[11:57:43] drptbl: has joined #ruby
[11:57:53] Carella: has joined #ruby
[11:58:45] allcentury: has joined #ruby
[11:59:36] twistedbotYYY: has joined #ruby
[12:01:00] twistedbotYYY: has joined #ruby
[12:01:18] sdothum: has joined #ruby
[12:03:22] Artabros: has joined #ruby
[12:04:17] bob434: has joined #ruby
[12:04:47] BTRE: has joined #ruby
[12:06:54] GodFather: has joined #ruby
[12:06:56] blaxter: has joined #ruby
[12:09:34] hk238: has joined #ruby
[12:10:06] bob434: has joined #ruby
[12:13:19] shevy: wheeee ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] \o/
[12:13:47] PedramT: has joined #ruby
[12:14:59] PedramT: has joined #ruby
[12:15:41] akostadinov: has joined #ruby
[12:16:52] chouhoulis: has joined #ruby
[12:17:14] mostlybadfly: has joined #ruby
[12:19:17] Macaveli: has joined #ruby
[12:19:28] swills: has joined #ruby
[12:19:42] statelesscode: has joined #ruby
[12:20:59] baweaver: has joined #ruby
[12:23:14] benlovell: has joined #ruby
[12:23:44] mkosaki: has joined #ruby
[12:25:10] [diecast]: has joined #ruby
[12:25:48] [diecast]: is fog the preferred library for use with aws?
[12:26:18] twistedbotYYY: has joined #ruby
[12:27:07] swills: has joined #ruby
[12:28:06] htmldrum: has joined #ruby
[12:28:42] PedramT: has joined #ruby
[12:29:25] erict: has joined #ruby
[12:31:37] Ropeney: has joined #ruby
[12:31:38] malconis: has joined #ruby
[12:33:11] pawnbox_: has joined #ruby
[12:33:33] flashpoint9: has joined #ruby
[12:34:25] moeabdol: has joined #ruby
[12:36:49] malconis: has joined #ruby
[12:37:24] Macaveli: has joined #ruby
[12:37:41] emilford: has joined #ruby
[12:38:15] vondruch: has joined #ruby
[12:38:26] bluOxigen: has joined #ruby
[12:38:29] y2mq37: has joined #ruby
[12:43:01] chouhoulis: has joined #ruby
[12:44:13] markand: has joined #ruby
[12:44:15] markand: hello guys
[12:44:56] markand: I have the following error while my rbpdf is installed : http://pastebin.com/eS3vVETB
[12:44:57] ruby[bot]: markand: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/75102d0d60289ebaa0f96ac6c7d29aa4
[12:44:57] ruby[bot]: markand: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[12:45:52] blackms: has joined #ruby
[12:46:48] lubekpl_: has joined #ruby
[12:47:10] Polysics: has joined #ruby
[12:47:12] pawnbox: has joined #ruby
[12:47:33] Icey: has joined #ruby
[12:47:42] navneet: has joined #ruby
[12:52:36] Dry_Lips: has joined #ruby
[12:52:36] Dry_Lips: has joined #ruby
[12:53:18] IrishGringo: has joined #ruby
[12:54:37] cpup: has joined #ruby
[12:54:56] mr_rich101: has joined #ruby
[12:55:26] ramortegui: has joined #ruby
[12:56:40] Aswebb_: has joined #ruby
[12:57:27] p1k: has joined #ruby
[12:58:49] jaguarmagenta: has joined #ruby
[12:58:52] fmcgeough: has joined #ruby
[12:59:03] TheBrayn: is there a repl which allows getting blocks of code from history like ipython does?
[12:59:46] diegoaguilar: has joined #ruby
[13:00:13] TheBrayn: when I define a function in python and press up in the history I get the whole function and not just its last line like in irb or pry
[13:00:39] twistedbotYYY: has joined #ruby
[13:01:26] platzhirsch: has left #ruby: ()
[13:02:20] jmm6: has joined #ruby
[13:02:27] twistedbotYYY: has joined #ruby
[13:02:39] kareeole_: has joined #ruby
[13:04:49] igam: TheBrayn: yesterday, I suggested to implement the swank for ruby…
[13:05:34] markand: has left #ruby: ()
[13:05:39] TheBrayn: what is “the swank”?
[13:06:44] hk238: has joined #ruby
[13:06:45] Shashikant86: has joined #ruby
[13:07:18] moeabdol: has joined #ruby
[13:07:27] twistedbotYYY: has joined #ruby
[13:09:09] Rutix: has joined #ruby
[13:09:10] Rutix: has joined #ruby
[13:09:16] mr_rich101: has joined #ruby
[13:10:02] twistedbotYYY: has joined #ruby
[13:10:24] harry111: has joined #ruby
[13:12:31] victortyau: has joined #ruby
[13:15:35] kam270: has joined #ruby
[13:17:50] solocshaw: has joined #ruby
[13:18:07] cpup: has joined #ruby
[13:18:23] EdwardIII: has joined #ruby
[13:21:04] sgambino: has joined #ruby
[13:21:25] Yiota: has joined #ruby
[13:22:41] Devalo: has joined #ruby
[13:23:39] jackdaniel: TheBrayn: swank is a protocol for working with the language process remotely
[13:24:15] jackdaniel: for instance (for lisp), you may work through slime (emacs lisp program) with the Common Lisp implementation which "talks" swank
[13:24:29] allcentury: has joined #ruby
[13:25:09] johnDoe111: has joined #ruby
[13:25:11] jackdaniel: for ruby it may be a fancy interface ala irb, but accessible in a standarized way
[13:25:29] jackdaniel: afaik swank isn't lisp specific, but not 100% sure
[13:26:12] aspiers_: has joined #ruby
[13:26:33] bweston92: has joined #ruby
[13:27:46] duckpuppy: has joined #ruby
[13:28:09] ponga: has joined #ruby
[13:28:10] Xeago: has joined #ruby
[13:28:39] flashpoint9: has joined #ruby
[13:30:42] Guest38: has joined #ruby
[13:32:45] bronson: has joined #ruby
[13:34:39] TheHodge: has joined #ruby
[13:36:10] Waqas: has joined #ruby
[13:38:52] moeabdol: has joined #ruby
[13:39:24] lxsameer: has joined #ruby
[13:39:24] lxsameer: has joined #ruby
[13:40:10] cpup: has joined #ruby
[13:40:16] freerobby: has joined #ruby
[13:41:00] Waqas: has joined #ruby
[13:42:19] nfk: has joined #ruby
[13:42:45] Es0teric: has joined #ruby
[13:43:00] harry111: ACTION learning ruby
[13:43:13] mjuszczak: has joined #ruby
[13:43:25] Es0teric: has joined #ruby
[13:43:34] pawnbox: has joined #ruby
[13:43:54] joonty: has joined #ruby
[13:44:54] jackdaniel: ACTION too :)
[13:45:18] deadnull: has joined #ruby
[13:46:03] flashpoint9: has joined #ruby
[13:46:47] kobain: has joined #ruby
[13:46:49] Pumukel: has joined #ruby
[13:47:58] synthroid: has joined #ruby
[13:48:12] cpup: has joined #ruby
[13:49:13] allcentury: has joined #ruby
[13:50:35] minimalism: has joined #ruby
[13:51:43] Shashikant86: has joined #ruby
[13:54:19] agent_white: has joined #ruby
[13:57:17] idefine: has joined #ruby
[13:58:48] mustmodify: has left #ruby: ()
[13:58:50] d0lph1n98: has joined #ruby
[14:00:56] hxegon: has joined #ruby
[14:02:17] zacts: has joined #ruby
[14:02:22] SilverKey: has joined #ruby
[14:04:15] zacts: has joined #ruby
[14:04:53] rbennacer: has joined #ruby
[14:05:14] idefine: has joined #ruby
[14:05:21] idle_task: has joined #ruby
[14:06:36] senayar: has joined #ruby
[14:08:22] SuperLag: has joined #ruby
[14:08:27] whippythellama: has joined #ruby
[14:09:47] prestorium: has joined #ruby
[14:10:38] benlovell: has joined #ruby
[14:10:50] senayar: has joined #ruby
[14:10:50] senayar: has joined #ruby
[14:11:39] st1gma: has joined #ruby
[14:12:02] Macaveli: has joined #ruby
[14:12:13] tinnvec: has joined #ruby
[14:12:51] pawnbox: has joined #ruby
[14:13:04] p1k: has joined #ruby
[14:13:39] t-richards: has joined #ruby
[14:14:33] Tref: has joined #ruby
[14:14:56] moeabdol: has joined #ruby
[14:15:42] idefine: has joined #ruby
[14:15:51] shevy: agent_white we are on ruby 2.3.1 now!
[14:16:04] tinnvec: has joined #ruby
[14:17:25] tubuliferous: has joined #ruby
[14:20:40] exm: has joined #ruby
[14:21:57] idefine: has joined #ruby
[14:22:02] Es0teric: has joined #ruby
[14:22:37] baweaver: has joined #ruby
[14:22:43] cpup: has joined #ruby
[14:23:26] exm: Hey, so I'm starting to teach myself ruby, and I've got myself a file where most lines contain useful stuff that's being matched by a regex but not all, so in order to grab the initial hex number on the matching lines I wrote this: `File.readlines("file.txt").grep(regex).map{|l| regex.match(l)[0].hex}`. Is there a way to do that which doesn't match the line against the regex twice?
[14:23:51] deuterium: has joined #ruby
[14:23:54] cdg: has joined #ruby
[14:24:04] Spami: has joined #ruby
[14:24:46] marr: has joined #ruby
[14:26:45] navneet_: has joined #ruby
[14:27:02] agent_white: shevy: WOOOHOOO
[14:27:25] tinnvec: has joined #ruby
[14:28:52] Shashikant86: has joined #ruby
[14:29:32] zacts: has joined #ruby
[14:29:36] hxegon: has joined #ruby
[14:29:50] atmosx: exm not sure what you're asking, but sounds like it could be solved with a more fine grained regex.
[14:30:17] GodFather: has joined #ruby
[14:30:49] exm: atmosx: Basically, I've got an array of lines like "95AB stuff" and some that don't start with a number. What I want is an array containing all of the numbers
[14:31:04] zacts: hi rubyists
[14:31:07] baweaver: has joined #ruby
[14:31:35] exm: Right now, I'm first filtering for the lines that match, then on each line doing the match and pulling out the part I need. I'm trying to find a cleaner way to do that
[14:31:44] Xeago: has joined #ruby
[14:32:17] atmosx: exm yeah it's a regex problem :-) - can you share a sample ?
[14:33:39] exm: Sure, so a line I want to turn into 3262 would look like "CBE *" and a line I want to completely skip would look like "# this is a comment"
[14:33:45] aegis3121: has joined #ruby
[14:33:56] Hanmac: instead of readlines(path).grep(regexp) wouldn't read(path).scan(regexp) be better?
[14:34:40] navneet: has joined #ruby
[14:35:23] exm: hanmac: probably! Thanks, I didn't see that method
[14:35:40] atmosx: exm there's rubular.com to try ruby regex
[14:36:02] navneet_: has joined #ruby
[14:36:05] atmosx: you could actually pick the lines you want and extract the items you need 1 one pass I guess.
[14:36:09] zast: has joined #ruby
[14:36:22] eam: well, if he really does have line based input with only one number per line he probably does want to iterate lines
[14:36:26] exm: Yeah, that's what I was trying to figure out how to do
[14:36:26] RegulationD: has joined #ruby
[14:36:40] smathy: has joined #ruby
[14:36:49] exm: and I would prefer avoiding reading the entire file into memory, though the machine I'm sitting at now can do it
[14:38:46] tsherman: has joined #ruby
[14:38:57] idefine_: has joined #ruby
[14:39:10] crystal77: has joined #ruby
[14:39:37] navneet_: has joined #ruby
[14:39:48] Hanmac: exm: readlines already does read the entire file into memory ... if you might get that problem, checkout File::foreach
[14:40:12] eam: exm: what you have originally seems fine, just remove the grep and conditionally do nothing if the regex doesn't match in the map {}
[14:40:23] exm: Okay, thanks
[14:40:37] eam: (and switch to a per-line loop like hanmac suggests)
[14:41:10] swills: has joined #ruby
[14:42:30] idefine: has joined #ruby
[14:43:11] ramfjord: has joined #ruby
[14:43:34] astrobun_: has joined #ruby
[14:44:06] dhollinger: has joined #ruby
[14:45:43] IrishGringo: has joined #ruby
[14:46:21] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :leguin.freenode.net")
[14:47:42] zacts_: has joined #ruby
[14:48:58] benlovell: has joined #ruby
[14:49:21] rippa: has joined #ruby
[14:52:09] Devalo: has joined #ruby
[14:52:09] navneet: has joined #ruby
[14:53:10] d0lph1n98: has joined #ruby
[14:53:53] The_Phoenix: has joined #ruby
[14:54:21] navneet: has joined #ruby
[14:54:47] d0lph1n98: has joined #ruby
[14:55:03] The_Phoenix: has joined #ruby
[14:55:39] shevy: I thought for a moment that eam was talking to himself here
[14:55:42] zacts: has joined #ruby
[14:55:55] The_Phoenix: has joined #ruby
[14:56:08] SilverKey: has joined #ruby
[14:56:35] solocshaw: has joined #ruby
[14:56:35] chipotle: has joined #ruby
[14:56:44] idefine: has joined #ruby
[14:56:50] sergey_makagon: has joined #ruby
[14:57:28] idefine: has joined #ruby
[14:57:46] baweaver: eam always talks to himself
[14:57:50] flashpoint9: has joined #ruby
[14:57:56] d0lph1n98: has joined #ruby
[14:58:05] baweaver: it's just consequentially interpretable as conversation to an outside party
[14:58:06] eam: could you please not interrupt us
[14:58:40] eam2: we like it better that way
[14:59:02] eam: eam2: hello you amazing, beautiful person
[14:59:35] zacts_: has joined #ruby
[14:59:35] ule: has left #ruby: ()
[14:59:42] jaguarmagenta: has joined #ruby
[14:59:57] eam2: shevy is just jealous
[15:00:30] pwnd_nsfw: has joined #ruby
[15:00:41] nton: has joined #ruby
[15:00:51] exm: has left #ruby: ()
[15:00:55] n008f4g_: has joined #ruby
[15:01:22] eam: more jelly than a pectin factory
[15:04:20] baweaver: shevy: https://www.ruby-forum.com/topic/6878302
[15:04:25] baweaver: look what we found
[15:04:48] newjersey: has joined #ruby
[15:06:02] stardiviner: has joined #ruby
[15:06:06] blackmesa: has joined #ruby
[15:08:04] jottr: has joined #ruby
[15:08:43] ljames: has joined #ruby
[15:08:47] drale2k: has joined #ruby
[15:09:54] Xeago: has joined #ruby
[15:10:08] aegis3121: has joined #ruby
[15:11:23] JakFrist: has joined #ruby
[15:12:36] x77686d: has joined #ruby
[15:13:01] pec: has joined #ruby
[15:13:19] jxs_: has joined #ruby
[15:14:02] GnuYawk: has joined #ruby
[15:14:08] GnuYawk: has joined #ruby
[15:14:14] shinnya: has joined #ruby
[15:14:41] LastWhisper____: has joined #ruby
[15:14:56] LoneHermit: has joined #ruby
[15:15:28] astrobun_: has joined #ruby
[15:16:12] chouhoulis: has joined #ruby
[15:16:41] elifoster: has joined #ruby
[15:16:43] hobodave: has joined #ruby
[15:17:00] nettoweb: has joined #ruby
[15:17:29] davedev24: has joined #ruby
[15:18:09] bjmllr: has joined #ruby
[15:18:23] deadnull: has joined #ruby
[15:18:27] PedramT: has joined #ruby
[15:21:55] ChiefAlexander: has joined #ruby
[15:22:57] jaequery: has joined #ruby
[15:24:02] akostadinov: has left #ruby: ("PONG :verne.freenode.net")
[15:24:57] chipotle: has joined #ruby
[15:25:05] ramfjord: has joined #ruby
[15:25:13] shevy: yeah I don't remember who said it but someone said I never publish any collections!
[15:25:30] PedramT: has joined #ruby
[15:25:35] navneet: has joined #ruby
[15:27:55] tvon: has joined #ruby
[15:29:25] adaedra: It may be me, I remember saying that
[15:29:25] GriffinHeart: has joined #ruby
[15:29:48] Coldblackice_: has joined #ruby
[15:29:51] adaedra: I note that your collection gathered a large amount of reactions.
[15:30:02] aspiers_: has joined #ruby
[15:31:14] dANOKELOFF_: has joined #ruby
[15:31:31] SilverKey: has joined #ruby
[15:31:36] phoo1234567: has joined #ruby
[15:31:56] berserk_ren: has joined #ruby
[15:32:22] giz|work: has joined #ruby
[15:32:39] ss_much: has joined #ruby
[15:33:28] ferr: has joined #ruby
[15:34:44] bronson: has joined #ruby
[15:35:25] baweaver: has joined #ruby
[15:35:48] siaW: has joined #ruby
[15:37:31] idefine_: has joined #ruby
[15:38:11] nando293921: has joined #ruby
[15:42:09] Shashikant86: has joined #ruby
[15:42:29] SCHAAP137: has joined #ruby
[15:43:37] mjuszczak: has joined #ruby
[15:44:06] Shashikant86: has joined #ruby
[15:44:22] RegulationD: has joined #ruby
[15:44:58] the_drow: has joined #ruby
[15:45:00] hxegon_: has joined #ruby
[15:46:13] astrobun_: has joined #ruby
[15:46:26] PedramT: has joined #ruby
[15:46:26] jackjackdripper: has joined #ruby
[15:47:01] jackjackdripper: has joined #ruby
[15:47:02] idefine: has joined #ruby
[15:47:11] Marsupermammal: has joined #ruby
[15:48:30] hxegon_: has joined #ruby
[15:49:07] chouhoulis: has joined #ruby
[15:51:37] moeabdol: has joined #ruby
[15:52:09] freerobby: has joined #ruby
[15:53:28] tvon[laptop]: has joined #ruby
[15:53:41] hxegon_: has joined #ruby
[15:54:05] [Butch]: has joined #ruby
[15:56:58] amclain: has joined #ruby
[15:57:31] hxegon_: has joined #ruby
[15:59:19] banister: has joined #ruby
[15:59:36] norc: has joined #ruby
[16:00:38] navneet_: has joined #ruby
[16:01:49] dionysus69: has joined #ruby
[16:01:51] chouhoulis: has joined #ruby
[16:02:26] navneet: has joined #ruby
[16:02:30] skade: has joined #ruby
[16:02:59] howdoico1: has joined #ruby
[16:03:09] navneet__: has joined #ruby
[16:03:41] wreet: has joined #ruby
[16:03:41] wreet: has joined #ruby
[16:03:54] wreet: has left #ruby: ()
[16:04:24] aspiers_: has joined #ruby
[16:04:40] SCHAAP137: has joined #ruby
[16:04:53] jackjackdripper1: has joined #ruby
[16:06:08] rumia: has joined #ruby
[16:06:57] mjuszczak: has joined #ruby
[16:07:37] polishdub: has joined #ruby
[16:08:51] hxegon_: has joined #ruby
[16:09:04] stardiviner: has joined #ruby
[16:09:13] JakFrist: has joined #ruby
[16:11:14] william3: has joined #ruby
[16:12:33] lxsameer: has joined #ruby
[16:12:44] symm-: has joined #ruby
[16:12:59] hxegon: has joined #ruby
[16:14:12] pawnbox: has joined #ruby
[16:14:32] RegulationD: has joined #ruby
[16:14:32] phpwebdev: has joined #ruby
[16:16:52] Yiota: has joined #ruby
[16:18:27] ramfjord: has joined #ruby
[16:18:42] pawnbox: has joined #ruby
[16:19:00] inageru: has joined #ruby
[16:20:21] synthroid: has joined #ruby
[16:20:45] SilverKey: has joined #ruby
[16:22:03] mwlang: has joined #ruby
[16:22:10] TomyLobo: has joined #ruby
[16:22:12] Macaveli: has joined #ruby
[16:24:09] xcesariox: has joined #ruby
[16:26:28] kfpratt: has joined #ruby
[16:27:18] diegoaguilar: has joined #ruby
[16:29:47] jackjackdripper: has joined #ruby
[16:30:05] tvon: has joined #ruby
[16:30:29] astrobun_: has joined #ruby
[16:34:14] moeabdol: has joined #ruby
[16:34:21] Marsupermammal: has joined #ruby
[16:35:53] JBlazeCoder21: has joined #ruby
[16:36:29] inageru: I ran into an oddity with ruby BigDecimal.new using precision >8 and float input: 0.03 becomes 0.029999999. This also happens with 0.06 (.059), 0.09 (.089) and 0.009(.0089). It's not a rounding issue with output, the value is stored this way: #<BigDecimal:7fce8113b710,'0.29999999E-1',9(27)> Can someone help me understand this?
[16:36:55] IrishGringo: has joined #ruby
[16:37:15] idefine: has joined #ruby
[16:39:09] lagweezle: My guess is that floats are ... well, the way they are stored in binary causes a lot of interesting issues.
[16:39:35] lagweezle: >> 0.03 - 0.02
[16:39:36] ruby[bot]: lagweezle: # => 0.009999999999999998 (https://eval.in/560813)
[16:40:08] huyderman: has joined #ruby
[16:40:48] inageru: Are there any docs on the binary implementation of bigDecimal? I understand there can be precision issues with floats but this seems somewhat inconsistent.
[16:41:42] inageru: For example, using a string instead of a float to instantiate: BigDecimal.new('0.03',8) == #<BigDecimal:7fce821b7508,'0.3E-1',9(18)>
[16:41:45] eam: inageru: the float value of 0.03 is actually 0.02999999
[16:41:53] eam: this is a problem with float, not bigdecimal
[16:41:56] troulouliou_div2: has joined #ruby
[16:43:12] lagweezle: >> BigDecimal.new(0.2,8)
[16:43:14] ruby[bot]: lagweezle: # => uninitialized constant BigDecimal (NameError) ...check link for more (https://eval.in/560815)
[16:44:45] adgtl: has joined #ruby
[16:48:27] hakunin: has joined #ruby
[16:49:06] last_staff: has joined #ruby
[16:49:12] godzillaenlacasa: has joined #ruby
[16:49:14] denny: has joined #ruby
[16:49:59] billy1234: has joined #ruby
[16:50:40] Dry_Lips: has joined #ruby
[16:50:40] Dry_Lips: has joined #ruby
[16:51:02] frem_: has joined #ruby
[16:51:15] zacstewart: has joined #ruby
[16:52:09] rbennacer: has joined #ruby
[16:52:33] flashpoint9: has joined #ruby
[16:52:43] deadnull: has joined #ruby
[16:52:45] idefine: has joined #ruby
[16:54:06] BtcBen: has joined #ruby
[16:54:08] evidex: has joined #ruby
[16:54:28] brendan-: has joined #ruby
[16:55:22] tvon: has joined #ruby
[16:56:48] DoubleMalt: has joined #ruby
[16:58:38] bricker: has joined #ruby
[17:00:22] howdoico1: has joined #ruby
[17:00:26] jaguarmagenta: has joined #ruby
[17:01:01] huyderman: has joined #ruby
[17:01:18] borodin: has joined #ruby
[17:01:24] deadnull: has joined #ruby
[17:01:50] borodin: howdy folks
[17:02:21] borodin: I'm using rbenv (via puppet) to install gems on a box. I'm having a permissions issue. How do I completely remove all gems on a box (as if no gems had ever been installed)?
[17:02:33] borodin: so I can wipe out the environment and start over
[17:05:17] al2o3-cr: borodin: gem uninstall --all ?
[17:05:46] borodin: thing is, gem uninstall doesn't seem to really work
[17:05:58] borodin: how 'bout rm -rf something?
[17:06:25] al2o3-cr: no comment :P
[17:07:16] hxegon: can't recommend that either, but maybe this is what you're looking for borodin? https://gist.github.com/IanVaughan/2902499
[17:08:20] borodin: I don't want to uninstall rbenv, just gems
[17:08:39] Cohedrin: has joined #ruby
[17:09:06] gizmore: has joined #ruby
[17:10:35] borodin: here's my pain and agony: https://gist.github.com/anonymous/44f1474548068d342f7fda64fa1872d1
[17:12:01] joast: has joined #ruby
[17:13:34] hxegon: borodin: did you use sudo at some point when installing the ruby version or the gems?
[17:13:38] tildes: has joined #ruby
[17:13:55] borodin: hxegon puppet installs rbenv and the gems - puppet runs as root
[17:13:55] freerobby: has joined #ruby
[17:17:32] JakFrist: has joined #ruby
[17:17:44] moeabdol: has joined #ruby
[17:17:53] hxegon: borodin: Is root also running the code borodin?
[17:17:59] flashpoint9: has joined #ruby
[17:20:18] JBlazeCoder21: has joined #ruby
[17:20:20] codecop: has joined #ruby
[17:20:23] baweaver: has joined #ruby
[17:20:55] Polysics_: has joined #ruby
[17:21:05] bob434: has joined #ruby
[17:21:35] sneakerhax: has joined #ruby
[17:21:39] tvon: has joined #ruby
[17:26:43] PedramT: has joined #ruby
[17:27:52] mikecmpbll: has joined #ruby
[17:28:29] idefine_: has joined #ruby
[17:28:55] firstdayonthejob: has joined #ruby
[17:29:15] joonty: has joined #ruby
[17:29:23] bob434: has joined #ruby
[17:30:06] lemur: has joined #ruby
[17:34:15] Aswebb_: has joined #ruby
[17:34:38] Devalo: has joined #ruby
[17:34:58] karapetyan: has joined #ruby
[17:35:10] Marsupermammal: has joined #ruby
[17:36:35] bronson: has joined #ruby
[17:37:22] blaxter: has joined #ruby
[17:37:34] Marsupermammal: has joined #ruby
[17:38:45] djbkd: has joined #ruby
[17:40:20] benlieb: has joined #ruby
[17:44:30] rc0r: has joined #ruby
[17:47:10] rbennacer: has joined #ruby
[17:47:48] JakFrist: has joined #ruby
[17:48:31] karapetyan: has joined #ruby
[17:50:37] baweaver: has joined #ruby
[17:50:52] mrgrieve1: has joined #ruby
[17:51:08] mdw: has joined #ruby
[17:51:58] Cohedrin_: has joined #ruby
[17:52:03] deadnull: has joined #ruby
[17:53:07] malconis: has joined #ruby
[17:53:44] malconis: has joined #ruby
[17:55:30] howdoico1: has joined #ruby
[17:55:44] skade: has joined #ruby
[17:57:48] ramfjord: has joined #ruby
[17:58:35] aspiers_: has joined #ruby
[18:00:09] zacts: has joined #ruby
[18:02:21] mdw7: has joined #ruby
[18:02:25] skade: has joined #ruby
[18:03:09] mdw7: has joined #ruby
[18:04:59] mhib: has joined #ruby
[18:05:19] weemsledeux: has joined #ruby
[18:06:31] idefine: has joined #ruby
[18:12:53] Prominent: has joined #ruby
[18:13:41] Prominent_: has joined #ruby
[18:14:03] malconis: has joined #ruby
[18:14:08] diegoviola: has joined #ruby
[18:14:26] d5sx43: has joined #ruby
[18:14:30] aspiers_: has joined #ruby
[18:15:02] tvon: has joined #ruby
[18:15:31] babblebre: has joined #ruby
[18:15:53] crdpink: has joined #ruby
[18:17:38] ferr: has joined #ruby
[18:18:11] emilford: has joined #ruby
[18:18:25] siaW: has joined #ruby
[18:18:56] SCHAAP137: has joined #ruby
[18:19:52] Limix: has joined #ruby
[18:21:18] aspiers_: has joined #ruby
[18:22:18] dhollinger: has joined #ruby
[18:22:57] kristofferR: has joined #ruby
[18:24:13] idefine: has joined #ruby
[18:26:02] blaix: has joined #ruby
[18:27:24] kobain: has joined #ruby
[18:28:18] kobain: has joined #ruby
[18:29:57] siaW: has joined #ruby
[18:30:03] joonty: has joined #ruby
[18:31:12] jdelaney: has joined #ruby
[18:31:22] SilverKey: has joined #ruby
[18:31:24] mjuszczak: has joined #ruby
[18:31:44] jdelaney: has joined #ruby
[18:32:54] duderonomy: has joined #ruby
[18:33:17] poweratom__: has joined #ruby
[18:34:29] nofacade: has joined #ruby
[18:35:22] aspiers_: has joined #ruby
[18:35:48] jdelaney: Any recommendations for resources on learning Ruby (and Sinatra) that are written for people who already have experience in other languages? I wanna avoid tutorials that go over what an if statement is
[18:36:43] omegahm: has joined #ruby
[18:36:54] havenwood: jdelaney: The Well-Grounded Rubyist (the Second Edition is up-to-date) is a nice introduction that gets right into things.
[18:36:59] mikecmpbll: has joined #ruby
[18:37:30] havenwood: jdelaney: You might enjoy the Koans even though they start out very basic.
[18:37:32] bronson: has joined #ruby
[18:37:44] havenwood: jdelaney: Here's a QuickRef: http://www.zenspider.com/Languages/Ruby/QuickRef.html
[18:38:19] jdelaney: havenwood: Thanks! I'll check all of those out
[18:38:28] havenwood: jdelaney: I'd suggest looking at Roda as well as Sinatra. It's a bit harder to find material on but the code and it's plugins are very worth a read: http://roda.jeremyevans.net/index.html
[18:39:23] jdelaney: havenwood: I'll look at that as well
[18:40:10] yasha_: has joined #ruby
[18:40:42] gregf: has joined #ruby
[18:40:52] blackmesa: has joined #ruby
[18:41:05] billy1234: has joined #ruby
[18:41:34] _blizzy_: has joined #ruby
[18:42:19] elifoster: has joined #ruby
[18:44:22] dmr8: has joined #ruby
[18:45:28] smathy: Roda is very nice.
[18:45:54] smathy: ACTION is itching to put some time into https://github.com/dry-rb/dry-web
[18:46:04] roelof: has joined #ruby
[18:46:33] roelof: Can I somehow solve this deprecation error : DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead. when I do rake ?
[18:48:43] treehug88: has joined #ruby
[18:50:07] devbug: has joined #ruby
[18:51:31] freerobby: has joined #ruby
[18:52:08] idefine: has joined #ruby
[18:55:21] EdwardIII: has joined #ruby
[18:55:22] m8: has joined #ruby
[18:55:24] PedramT: has joined #ruby
[18:55:30] idefine_: has joined #ruby
[18:56:30] dsimon: roelof, are the calls to last_comment coming from your code?
[18:56:53] devbug: has joined #ruby
[18:57:10] roelof: is it not my code. Im doing exercises from a learn ruby github course
[18:57:42] two_seven_zero_o: has joined #ruby
[18:58:25] shinnya: has joined #ruby
[18:58:39] jottr: has joined #ruby
[18:59:26] dsimon: hm, yeah, this rabbit hole is deeper than i expected :-)
[18:59:36] dsimon: are you using a Gemfile in your project?
[18:59:40] |2701: has joined #ruby
[18:59:44] benlovell: has joined #ruby
[18:59:48] dsimon: in the exercises, i mean
[19:02:57] bob434: has joined #ruby
[19:03:10] karapetyan: has joined #ruby
[19:03:58] roelof: yep, a very little one
[19:04:58] roelof: dsimon: this is the whole gem file : gem "rake" gem "rspec", "~>2.0"
[19:05:35] tomaskul: has joined #ruby
[19:06:13] jackjackdripper: has joined #ruby
[19:07:11] nando293921: has joined #ruby
[19:08:03] dsimon: ok, it looks like this has been fixed in recent rspec
[19:08:16] dsimon: however going from rspec 2 to rspec 3 may break some tests :-\
[19:08:47] LastWhisper____: has joined #ruby
[19:10:11] roelof: oke, I think I have to life with this message
[19:10:17] roelof: Thanks for the help
[19:13:06] mjuszczak: has joined #ruby
[19:13:32] smathy: `r() { rspec $* 2>&1 | grep -v deprecated }`
[19:14:41] yfeldblum: has joined #ruby
[19:14:56] Eiam_: has joined #ruby
[19:16:02] last_staff1: has joined #ruby
[19:16:21] jackjackdripper: has joined #ruby
[19:16:29] Xeago: has joined #ruby
[19:17:13] djbkd: has joined #ruby
[19:18:01] stardiviner: has joined #ruby
[19:18:48] tildes: has joined #ruby
[19:19:05] astrobunny: has joined #ruby
[19:20:41] idefine: has joined #ruby
[19:22:08] karapetyan: has joined #ruby
[19:23:37] blackmesa: has joined #ruby
[19:24:04] idefine_: has joined #ruby
[19:24:22] karapetyan: has joined #ruby
[19:24:36] william3: has joined #ruby
[19:25:05] Dimik: has joined #ruby
[19:26:11] william3: has joined #ruby
[19:26:30] Limix: has joined #ruby
[19:26:32] jenrzzz: has joined #ruby
[19:26:32] jenrzzz: has joined #ruby
[19:26:35] dml337ira: has joined #ruby
[19:27:17] djbkd: has joined #ruby
[19:28:05] Moosashi: has joined #ruby
[19:30:24] idefine: has joined #ruby
[19:30:54] joonty: has joined #ruby
[19:31:10] ruby[bot]: -bb Zomber!*@*$#ruby-banned *!*@176.1.229.198.in-addr.arpa$#ruby-banned
[19:31:14] LinuxHippie: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[19:31:31] jottr: has joined #ruby
[19:32:03] SilverKey: has joined #ruby
[19:32:14] baweaver: has joined #ruby
[19:33:36] al2o3-cr: has joined #ruby
[19:34:59] Aswebb_: has joined #ruby
[19:35:17] perlgod: has joined #ruby
[19:35:27] yqt: has joined #ruby
[19:38:09] hakunin: has joined #ruby
[19:38:27] bronson: has joined #ruby
[19:38:39] lomex: has joined #ruby
[19:39:11] mikecmpbll: has joined #ruby
[19:39:55] william3: has joined #ruby
[19:40:30] dhollinger: has joined #ruby
[19:40:32] kareeoleez: has joined #ruby
[19:41:12] howdoico1: has joined #ruby
[19:43:33] Polysics: has joined #ruby
[19:44:12] pawnbox: has joined #ruby
[19:46:39] the_drow: has joined #ruby
[19:47:38] benlovell: has joined #ruby
[19:48:45] _blizzy_: has joined #ruby
[19:48:53] howdoico1: has joined #ruby
[19:50:57] ironcamel: any reason this documentation shows to do Net::Telnet::new instead of Net::Telnet.new? Are both of those the same? Both seem to work.
[19:51:07] ironcamel: http://ruby-doc.org/stdlib-1.9.3/libdoc/net/telnet/rdoc/Net/Telnet.html#class-Net::Telnet-label-Examples
[19:52:17] adaedra: :: and . are both capable of resolving class/module methods, but . is usually preferred (:: for constants)
[19:52:37] ironcamel: ah, good to know, thanks
[19:52:47] firstdayonthejob: has joined #ruby
[19:53:00] baweaver: has joined #ruby
[19:53:20] lemur: has joined #ruby
[19:53:39] skade: has joined #ruby
[19:54:46] safe: has joined #ruby
[19:55:32] RickHull: has joined #ruby
[19:57:46] tildes: has joined #ruby
[19:57:53] rattatmatt: has joined #ruby
[19:58:10] SilverKey: has joined #ruby
[19:59:11] phpwebdev: has joined #ruby
[19:59:26] Spami: has joined #ruby
[20:00:12] moeabdol: has joined #ruby
[20:00:38] brianpWins: has joined #ruby
[20:00:51] blaix: has joined #ruby
[20:02:10] blaix: has left #ruby: ()
[20:02:53] norc_: has joined #ruby
[20:03:13] aegis3121: has joined #ruby
[20:04:14] SilverKey: has joined #ruby
[20:04:30] blackmesa: has joined #ruby
[20:04:41] djbkd: has joined #ruby
[20:05:49] elifoster: has joined #ruby
[20:06:41] mg^: has joined #ruby
[20:08:38] kirun: has joined #ruby
[20:08:56] joonty: has joined #ruby
[20:09:00] S1kx: has joined #ruby
[20:09:23] djbkd: has joined #ruby
[20:09:30] cschneid: has joined #ruby
[20:09:48] al2o3-cr: has joined #ruby
[20:10:23] cschneid: Is there a way to build a rubygem that compiles a native extension if possible, but if anything goes wrong (no make installed, no C compiler, compiler fails), it continues installing and falls back to a ruby implementation of the functionality instead?
[20:10:25] dionysus69: has joined #ruby
[20:11:50] kareeoleez: has joined #ruby
[20:12:14] kareeoleez: has joined #ruby
[20:12:52] Devalo: has joined #ruby
[20:13:24] cschneid: This seems like the best answer so far - any further advice on top of this? Ideally I'd be able to catch a failed compilation, rather than trying to pre-check if it'll go ok. http://stackoverflow.com/questions/17406246/native-extensions-fallback-to-pure-ruby-if-not-supported-on-gem-install
[20:14:19] howdoico1: has joined #ruby
[20:15:02] kareeoleez: has joined #ruby
[20:17:06] snowy: has joined #ruby
[20:18:15] deadnull: has joined #ruby
[20:18:48] Arielon: has joined #ruby
[20:19:47] idefine: has joined #ruby
[20:20:30] Limix: has joined #ruby
[20:20:59] Papierkorb: cschneid: the redis gem (which is ruby only) does this by testing if the hiredis gem (which is the C ext) is available
[20:21:25] Papierkorb: So yeah, not a single-gem solution .. but atleast robust
[20:21:29] aeron: has joined #ruby
[20:21:41] cschneid: yeah, releasing two gems is an approach. not-native and native, with approriate shared code between the two
[20:21:57] last_staff1: has joined #ruby
[20:22:02] cschneid: was hoping for a one-size-fits-all approach: "Install xyz gem, and you get bonus C code if it's possible"
[20:22:12] cschneid: which seems surprisingly difficult
[20:23:21] Papierkorb: cschneid: also, what happens when the user wants to use the C ext, but is currently fighting with the compiler? How to even detect that it's "not possible"?
[20:23:59] Papierkorb: Or the user later wants to use the C version or the ruby version instead due to changed requirements?
[20:24:00] cschneid: yeah. "not possible" may mean: "attempt, then fail w/ a reasonable message: 'Couldn't install native extension, falling back to ruby. Log @ /tmp/log_file.loglog'
[20:25:17] marr: has joined #ruby
[20:25:27] JakFrist: has joined #ruby
[20:26:04] RickHull: has left #ruby: ()
[20:31:17] kalzz: has joined #ruby
[20:31:22] alexherbo2: has joined #ruby
[20:31:47] kalz: has joined #ruby
[20:32:00] cdg: has joined #ruby
[20:33:15] ss_much: has joined #ruby
[20:33:39] devbug: has joined #ruby
[20:35:07] aspiers_: has joined #ruby
[20:37:24] eljimmy: has joined #ruby
[20:37:47] Cohedrin: has joined #ruby
[20:37:59] ur5us: has joined #ruby
[20:38:04] flashpoint9: has joined #ruby
[20:38:18] rumia: has joined #ruby
[20:41:36] skade: has joined #ruby
[20:43:02] bollullera: has joined #ruby
[20:43:26] FastJack: has joined #ruby
[20:43:28] devbug: has joined #ruby
[20:43:30] mlakewood: has joined #ruby
[20:43:32] SilverKey: has joined #ruby
[20:43:43] idefine: has joined #ruby
[20:44:10] n008f4g_: has joined #ruby
[20:45:08] sleepee_: has joined #ruby
[20:45:39] mdw: has joined #ruby
[20:48:32] dome22xl: has joined #ruby
[20:49:08] william3: has joined #ruby
[20:49:44] Caelum: has joined #ruby
[20:51:05] jfutbol: has joined #ruby
[20:56:59] Pumukel: has joined #ruby
[20:57:09] joonty: has joined #ruby
[20:58:05] ixti: has joined #ruby
[21:01:46] rodfersou: has joined #ruby
[21:01:57] jaguarmagenta: has joined #ruby
[21:02:15] moei: has joined #ruby
[21:03:07] hakunin: has joined #ruby
[21:04:00] jenrzzz_: has joined #ruby
[21:04:16] nofacade: has joined #ruby
[21:05:37] pawnbox: has joined #ruby
[21:07:50] al2o3-cr: has joined #ruby
[21:10:57] billy1234: has joined #ruby
[21:13:26] diegoaguilar: has joined #ruby
[21:13:47] aspiers_: has joined #ruby
[21:14:49] ledestin: has joined #ruby
[21:15:50] idefine: has joined #ruby
[21:15:57] billy1234: has joined #ruby
[21:16:22] firstdayonthejob: has joined #ruby
[21:17:31] jgrevich: has joined #ruby
[21:17:38] freerobby: has joined #ruby
[21:18:25] Xeago: has joined #ruby
[21:18:52] borodin: anybody know why a gem shows up in gem list, but when you require 'gem' it returns false?
[21:19:45] havenwood: borodin: `false` means it's already been successfully required
[21:20:02] borodin: oh really?
[21:20:17] borodin: I wonder how I can check to see if it's working?
[21:20:25] borodin: cool thanks that's helpful info!
[21:20:30] Papierkorb: borodin: if it doesn't exist, it'll raise a LoadError
[21:23:41] skweek: has joined #ruby
[21:27:16] skade: has joined #ruby
[21:28:15] swills: has joined #ruby
[21:29:29] karapetyan: has joined #ruby
[21:30:33] borodin: it's healthy - thanks guys
[21:30:52] borodin: spent half the day trying to fix something that wasn't broken
[21:31:36] idefine: has joined #ruby
[21:32:57] aeron: has joined #ruby
[21:33:20] Coldblackice: has joined #ruby
[21:33:56] jgrevich: has joined #ruby
[21:34:35] Moosashi: has joined #ruby
[21:35:30] Aswebb_: has joined #ruby
[21:35:52] benlovell: has joined #ruby
[21:36:39] mikecmpbll: has joined #ruby
[21:40:06] symm-: has joined #ruby
[21:40:14] al2o3-cr: has joined #ruby
[21:40:20] aegis3121: has joined #ruby
[21:40:25] bronson: has joined #ruby
[21:40:29] idefine: has joined #ruby
[21:42:18] GodFather: has joined #ruby
[21:42:22] Moosashi: has joined #ruby
[21:43:40] x77686d: has joined #ruby
[21:45:20] bobbycvi: has joined #ruby
[21:48:21] al2o3-cr: has joined #ruby
[21:48:22] highbass: has joined #ruby
[21:48:58] highbass: i am looking to output logs from my ruby app into json format (will use the output to forward to elasticsearch) ... anyone have any experience with this?
[21:49:02] Madplatypus: has joined #ruby
[21:50:37] idefine: has joined #ruby
[21:53:39] baweaver: has joined #ruby
[21:54:10] n008f4g_: has joined #ruby
[21:54:21] djbkd: has joined #ruby
[21:54:35] konr: has joined #ruby
[21:54:53] bobbycvi: has joined #ruby
[21:56:20] blackgoat: has joined #ruby
[21:56:40] jenrzzz: has joined #ruby
[21:56:40] jenrzzz: has joined #ruby
[21:56:56] Papierkorb: highbass: I use the logging gem which can output JSON data OOTB. works fine, but didn't try it yet with ELK
[21:57:03] goodroot: has joined #ruby
[21:57:39] joonty: has joined #ruby
[21:58:08] highbass: ahh ok taking a look
[21:59:54] mlakewood: Im using the Holidays gem, and Its giving me an UnknownRegion Error. It seems like I might have to instansiate it or something? But the documentation doesnt say anything about that. Anybody have any experience with this>
[21:59:59] PlasmaStar: has joined #ruby
[22:02:34] baweaver: has joined #ruby
[22:02:59] tAn: has joined #ruby
[22:03:21] Coldblackice: has joined #ruby
[22:07:52] kora: has joined #ruby
[22:08:24] Trynemjoel: has joined #ruby
[22:09:21] djbkd: has joined #ruby
[22:10:08] chrisja: has joined #ruby
[22:10:11] kora: has left #ruby: ()
[22:10:11] idefine: has joined #ruby
[22:13:45] jaequery: has joined #ruby
[22:21:57] victortyau: has joined #ruby
[22:23:31] Yiota: has joined #ruby
[22:24:09] babblebre: has joined #ruby
[22:26:05] dling: has joined #ruby
[22:26:35] Coldblackice: has joined #ruby
[22:26:44] baweaver: has joined #ruby
[22:26:54] Rutix: has joined #ruby
[22:26:54] Rutix: has joined #ruby
[22:34:08] Cohedrin: has joined #ruby
[22:34:39] ereslibre: has joined #ruby
[22:34:39] ereslibre: has joined #ruby
[22:36:12] Moosashi: has joined #ruby
[22:36:58] Rawang: has joined #ruby
[22:37:01] dragon9783: has joined #ruby
[22:37:37] Rawang: has left #ruby: ()
[22:38:18] mnrmnaugh: has joined #ruby
[22:38:35] zenlot6: has joined #ruby
[22:41:06] bronson: has joined #ruby
[22:45:54] flashpoint9: has joined #ruby
[22:46:17] mkosaki_: has joined #ruby
[22:47:54] idefine: has joined #ruby
[22:52:42] blackmesa: has joined #ruby
[22:58:28] joonty: has joined #ruby
[22:58:50] inukshuk: has joined #ruby
[22:59:03] jaequery: has joined #ruby
[23:00:53] disconnekted: has joined #ruby
[23:00:58] Ropeney: has joined #ruby
[23:02:23] htmldrum: has joined #ruby
[23:02:31] ishe: has joined #ruby
[23:02:39] jaguarmagenta: has joined #ruby
[23:03:06] _blizzy_: has joined #ruby
[23:05:33] mwlang: has joined #ruby
[23:09:10] idefine: has joined #ruby
[23:12:01] benlovell: has joined #ruby
[23:16:17] rooby: has joined #ruby
[23:16:17] ruby[bot]: +q rooby!*@*
[23:16:17] idefine: has joined #ruby
[23:17:06] jhack: has joined #ruby
[23:17:10] RegulationD: has joined #ruby
[23:17:59] crystal77: has joined #ruby
[23:18:48] justinabrahms: has joined #ruby
[23:19:15] ceej: has joined #ruby
[23:19:51] idefine_: has joined #ruby
[23:20:19] crystal77: How feasible is it to learn Ruby, if we don't use it at work? Everything is in Python, and my interest is being a Rails dev.
[23:20:41] justinabrahms: crystal77, it's easier if work helps, but do-able otherwise. Just means side projects.
[23:21:01] justinabrahms: Anyone have thoughts on how I mock a free function with rspec's mocks? I have a function calling `daemon_msg "message", :object => a` I want to assert the message and arguments are what I think they are.
[23:21:11] crystal77: A bit jealous of people who actually use ruby/rails on the job, as I'm sure that makes it much easier to learn.
[23:22:01] LastWhisper____: has joined #ruby
[23:22:10] s00pcan: has joined #ruby
[23:26:26] donske: has joined #ruby
[23:26:28] idefine: has joined #ruby
[23:26:38] sdothum: has joined #ruby
[23:26:39] jokke: has joined #ruby
[23:27:11] baweaver: has joined #ruby
[23:29:04] s00pcan: has joined #ruby
[23:29:22] Moosashi: has joined #ruby
[23:29:48] bob434: has joined #ruby
[23:29:50] Vile`: has joined #ruby
[23:31:18] skweek: has joined #ruby
[23:32:22] zacstewart: has joined #ruby
[23:33:13] ur5us: has joined #ruby
[23:34:55] tfitts: has joined #ruby
[23:35:52] tfitts: I'm trying to encode either 'FF' or 244 into a byte like "\xFF", is there a method you can call on a string or an integer to convert it to a byte?
[23:36:02] tfitts: sorry, not 244, 255
[23:36:07] ur5us_: has joined #ruby
[23:36:22] Aswebb_: has joined #ruby
[23:37:49] tfitts: pack, got it
[23:37:50] dchris: has joined #ruby
[23:38:00] eam: tfitts: 255.chr
[23:38:11] eam: but yeah pack/unpack are great for that
[23:38:13] tfitts: or that, cool, thanks
[23:38:45] eam: the "byte" will be a String
[23:39:34] SilverKey: has joined #ruby
[23:40:26] flashpoint9: has joined #ruby
[23:42:04] bronson: has joined #ruby
[23:43:10] idefine: has joined #ruby
[23:43:24] bob434: has joined #ruby
[23:44:53] ruby-lang064: has joined #ruby
[23:47:01] julieeharshaw: has joined #ruby
[23:48:10] Nahra`: has joined #ruby
[23:50:30] joconcepts: has joined #ruby
[23:51:23] shadeslayer: has joined #ruby
[23:52:10] amincd: has joined #ruby
[23:53:33] Noxilex: has joined #ruby
[23:53:47] justinabrahms: has left #ruby: ("Leaving")
[23:54:23] lemur: has joined #ruby
[23:57:30] gregf: has joined #ruby
[23:57:38] amincd: Hi, why is it that when I create an IO object, with io = IO.new(IO.sysopen("filename", "a+"), "a+"), write to it with io.puts "new line", and read the file, with p IO.binread("filename"), it doesn't display the "new line" I added?
[23:58:35] anqlkjna392: has joined #ruby
[23:58:40] anqlkjna392: has left #ruby: ()
[23:59:35] smathy: amincd, buffering.
[23:59:44] amincd: smathy: I see..