« Back to channel list

#ruby - 06 October 2015

« Back 1 day Forward 1 day »
[00:00:43] willardg: has joined #ruby
[00:00:53] `tim`: has joined #ruby
[00:00:55] ellisTAA: has joined #ruby
[00:01:16] uberjar: I'm trying to parse log files and I'm noticing a variation in the format that my ruby app is outputting because in some places I use DateTime.now.utc.iso8601 and other times I use Time.now.utc.iso8601. I had naievly assumed they would be exactly the same
[00:01:42] uberjar: so i can't just use string manipulation to parse these logs the way I thought I could
[00:01:52] uberjar: but it's no big eal
[00:02:09] drbrain: you could Time.parse your log results
[00:02:13] uberjar: never the less my vote is to make them the exact same if that counts for anything..
[00:02:25] uberjar: maybe I'll submit a pull request to ruby
[00:02:41] drbrain: yeah, it seems better to output Z instead of the 0 offset
[00:02:45] noethics: has joined #ruby
[00:02:48] uberjar: yea.. Time.parse is what I'm going to have to do now, but that's extra CPU cycles for my usecase
[00:02:54] kies: has joined #ruby
[00:02:55] CVTJNII: has joined #ruby
[00:02:58] uberjar: cool beans, well thanks a bunch
[00:03:19] uberjar: I vote for Z too although consistancy would be fine if it were +
[00:03:57] rushed: has joined #ruby
[00:04:49] bricker1: has joined #ruby
[00:05:08] Mojo_Nixon: has joined #ruby
[00:05:18] _blizzy_: has joined #ruby
[00:05:42] baweaver: has joined #ruby
[00:06:31] freerobby: has joined #ruby
[00:12:54] bifflechip: has joined #ruby
[00:13:14] willardg: has joined #ruby
[00:14:05] s00pcan: has joined #ruby
[00:14:29] Yzguy: has joined #ruby
[00:16:29] dravine_: has joined #ruby
[00:17:06] toretore: uberjar: don't compare or parse the strings; always use Time.iso8601 on it first, and then you can compare them
[00:17:07] uris: has joined #ruby
[00:17:11] TheWhip: has joined #ruby
[00:17:34] giuseppesolinas: has joined #ruby
[00:17:38] giuseppesolinas_: has joined #ruby
[00:18:05] JammyHammy: has joined #ruby
[00:18:41] toretore: Time.iso8601 will always parse a valid string into a Time, and then you don't have to deal with any of it
[00:19:04] freerobby1: has joined #ruby
[00:19:43] jgt: has joined #ruby
[00:22:45] devoldmx: has joined #ruby
[00:22:52] cassioscabral: has joined #ruby
[00:25:12] fastAndSlow: has joined #ruby
[00:27:55] simplyianm: has joined #ruby
[00:28:24] tmillc: has joined #ruby
[00:28:38] workmad3: has joined #ruby
[00:28:56] jobewan: has joined #ruby
[00:30:09] parkerbond: has joined #ruby
[00:30:28] htmldrum: has joined #ruby
[00:32:49] xcesariox: has joined #ruby
[00:34:36] wallerdev: has joined #ruby
[00:36:05] _blizzy_: has joined #ruby
[00:38:15] shevy: ruby ruby ruby
[00:38:48] Sigma00: I hate that song
[00:39:04] giuseppesolinas: has joined #ruby
[00:39:15] giuseppesolinas_: has joined #ruby
[00:39:30] BraddPitt: its the theme song of this channel
[00:39:39] fedexo: has joined #ruby
[00:39:45] Sigma00: ACTION ragequits
[00:40:13] ledestin: has joined #ruby
[00:40:50] BraddPitt: https://www.youtube.com/watch?v=qObzgUfCl28
[00:40:52] BraddPitt: put it on repeat
[00:41:02] shevy: Sigma00 there is a song like that?
[00:41:18] Sigma00: shevy: BraddPitt graciously linked us
[00:41:20] Sigma00: now I hate him
[00:41:43] shevy: I thought it would be like this https://www.youtube.com/watch?v=baUY9LFlYh0 ... please don't hate me :(
[00:41:56] BraddPitt: oh jesus shevy
[00:43:02] Iacobus: has joined #ruby
[00:43:10] shevy: the japanese are a weird people... ruby ... ninjas... sumos... samurais... robots ... crazy songs ... crazy pranks ...
[00:43:16] stardiviner: has joined #ruby
[00:43:25] Sigma00: wtf is that
[00:43:29] Sigma00: I couldn't take more than 10 seconds
[00:43:50] shevy: Sigma00 yeah, I have no idea myself either
[00:43:55] shevy: I forgot anime
[00:44:33] _blizzy_: has joined #ruby
[00:44:34] atomical: has joined #ruby
[00:45:02] s2013: has joined #ruby
[00:45:10] |ifei5g00d: has joined #ruby
[00:46:14] juizmill: has joined #ruby
[00:47:58] enlycanment: has joined #ruby
[00:48:24] arescorpio: has joined #ruby
[00:50:58] charliesome: has joined #ruby
[00:52:04] shmilan: has joined #ruby
[00:56:20] maikowblue: has joined #ruby
[00:57:34] TheWhip: has joined #ruby
[00:58:09] bigmac: has joined #ruby
[00:58:45] enlycanment: has joined #ruby
[00:58:55] zhkirill: has joined #ruby
[01:01:17] ylex_: has joined #ruby
[01:01:33] ylex_: what's the difference between alias and alias_method?
[01:02:16] pwnd_nsfw: has joined #ruby
[01:03:51] drbrain: alias is a keyword and can use bare method names without commas
[01:03:57] drbrain: plus it can alias global variables
[01:04:13] rushed: has joined #ruby
[01:05:54] tryptic: has joined #ruby
[01:06:16] ylex_: drbrain: is alias more commonly used?
[01:06:59] haraoka: has joined #ruby
[01:07:24] drbrain: ylex_: alias_method is more commonly used nowadays
[01:07:36] drbrain: AFAIK, almost nobody aliases global variables
[01:10:12] giuseppesolinas_: has left #ruby: ("Leaving")
[01:11:09] hydrozen: has joined #ruby
[01:11:45] AdolfH: has joined #ruby
[01:12:48] shevy: our old webchatter is back for another ban
[01:13:35] lampshades: has joined #ruby
[01:16:16] Radar: AdolfH: Come on. Show some originality at least.
[01:16:30] Radar: It's pathetic the troll attempts we have been getting recently.
[01:16:39] Radar: Real amateur type shit. Must be PHP devs.
[01:17:02] solocshaw1: has joined #ruby
[01:18:12] Sigma00: Pure Hate Personified
[01:20:09] EminenceHC: has joined #ruby
[01:20:25] havenwood: has joined #ruby
[01:21:02] pwnd_nsfw: has joined #ruby
[01:23:05] tkuchiki: has joined #ruby
[01:23:41] sleepee: has joined #ruby
[01:24:00] casadei: has joined #ruby
[01:24:08] sundhell: has joined #ruby
[01:25:23] AdolfHitlr: what is the most annoying program you can make in ruby?
[01:26:30] diegobiavati: has joined #ruby
[01:27:13] EminenceHC: has joined #ruby
[01:27:15] Radar: !mute AdolfHitlr
[01:27:16] ruboto: +q AdolfHitlr!*@*
[01:27:16] ruboto: -o ruboto
[01:28:32] nlsun: has joined #ruby
[01:28:33] davedev24: has joined #ruby
[01:33:33] tmtwd: has joined #ruby
[01:38:15] TheWhip: has joined #ruby
[01:38:50] uberjar: survey about coding conventions and readability: https://gist.github.com/anonymous/bc0f756e26f1762beab3
[01:39:25] eam: uberjar: I hope everyone says the second one
[01:39:45] uberjar: 8 lines vs 1 though???
[01:40:05] sekrit: has joined #ruby
[01:40:31] uberjar: I mean.. if it were 16 lines vs 2 lines.. or 32 lines vs 4 lines..
[01:40:47] uberjar: at some point it's better to have less code
[01:40:51] eam: if you had 32 lines of code on 4 lines it'd be just as hard to read as 8 lines of code on one line
[01:41:47] uberjar: yeah but its' not like it's a huge long line
[01:42:22] uberjar: it's actually pretty compact.. and if you're used to that operator I don't see why it's any harder to read per say
[01:42:47] uberjar: I dunno.. I think most people agree with you
[01:42:58] swgillespie: has joined #ruby
[01:43:25] eam: the precedence and multiple uses of : and ? are difficult to parse, I think
[01:43:34] uberjar: but I suspect it's a bias having to do with lots of people being influences by C based languages before they came to ruby
[01:43:52] eam: thing = a || b || c || d || e # is better than a conditional I think
[01:44:16] eam: uberjar: I've done a lot more C than ruby and I'd write it on 8 lines in C
[01:44:41] eam: or at least I'd break the ternary out into multiple lines
[01:44:53] AdolfHitlr: has left #ruby: ()
[01:45:19] diegobiavati: has joined #ruby
[01:45:55] eam: the trouble with ruby I suppose is that the crappy whitespace parsing means I can't use my favorite C style forthis
[01:45:56] uberjar: I suspect though that if you had spent more time in a language such as scheme (which also influenced Ruby's design) then you'd prefer the 1 liner
[01:45:58] wookiehangover: has joined #ruby
[01:46:44] eam: uberjar: like this: https://gist.github.com/eam/46a30eb8a62d5bfdd4df (doesn't work because ruby)
[01:46:44] uberjar: because you'd be used to parsing parens and the precedence would feel more natural to see
[01:47:11] eam: well even in scheme or lisp I'd tend to put only one logical expression per line
[01:47:41] uberjar: I think I like that better too ^
[01:47:45] bnagy: it compresses to when <0 ; else
[01:47:50] eam: bnagy: yeah :(
[01:47:59] eam: I could add a backslash but I hate that even more
[01:48:09] eam: I guess in ruby you'd leave the ? on the first line
[01:48:12] bnagy: nested ternaries are just vile
[01:48:19] eam: this isn't a nested ternary though
[01:48:26] bnagy: the top one is
[01:48:30] eam: oh, well, I guess yeah inside the parens
[01:48:37] eam: at least it uses parens, I mean
[01:48:55] bnagy: so a case with only one case is also known as an if statement
[01:49:02] eam: updated formatting
[01:50:06] eam: made a comment with something that oughta work in ruby
[01:50:15] diegobiavati: has joined #ruby
[01:50:48] uberjar: ACTION squints
[01:50:59] User458764: has joined #ruby
[01:51:05] EXID123_: has joined #ruby
[01:51:05] uberjar: well I have to admit that does look more like well written scheme
[01:51:14] diegobiavati: has joined #ruby
[01:51:52] bnagy: whatever it looks like it doesn't look like ruby
[01:53:27] C0L0R: has joined #ruby
[01:54:04] bnagy: if offset < 0; range = (0..(23 - offset)); else; range = (offset..23); end
[01:54:08] bnagy: except with linebreaks
[01:54:14] eam: the 8 lines are not a problem when wrapped inside a method called calcualte_offset
[01:54:17] bnagy: job done, move on
[01:55:03] eam: range = if :)
[01:55:11] pwnd_nsfw: has joined #ruby
[01:55:19] bnagy: no, because that's less readable
[01:55:28] eam: do you think so?
[01:56:24] eam: range = offset < 0 ? 0..(23 - offset) : (offset..23) # is pretty ok though
[01:56:35] bnagy: you'd be amazed how much readability comes from resisting the temptation to be a smartass
[01:56:35] bruno-: has joined #ruby
[01:57:28] eam: offset < 0 and 0..(23 - offset) or offset..23
[01:57:31] paulcsmith_: has joined #ruby
[01:57:34] bnagy: I wouldn't use the ternary, but if you're someone that does then yeah, that's pretty ok
[01:57:37] eam: sorry range = offset < 0 and 0..(23 - offset) or offset..23
[01:57:54] eam: least number of non-alpha
[01:58:02] bnagy: noooo now you make me think about and or && || precedence
[01:58:06] eam: wwahahhaaha
[01:58:10] bnagy: ternary is better than that
[01:58:16] eam: especially with the and/or/not parsing being so busted in ruby
[01:58:54] eam: just remember the and/or/not is super low whereas &&/|| is high
[01:59:15] bnagy: mostly we just tell people to always use && ||
[01:59:30] bnagy: saves trouble in the long run
[01:59:50] eam: I'd say "no way always use and/or/not" but they're broken on ruby so it's bad advice
[02:00:06] eam: but if I'm writing say perl, then I always want the lower precedence for flow control - generally
[02:00:19] eam: thing "whatever" or die
[02:00:27] eam: you don't want or to bind tight
[02:00:45] bnagy: that's perlism thought
[02:00:51] cih: has joined #ruby
[02:00:55] bnagy: ruby tends to fail unless thing
[02:00:56] eam: it'd be a rubyism if rubys parser wasn't ...
[02:01:28] eam: a > b or raise "oopsies"
[02:02:07] eam: but they break so often it's hard to use them without pulling your hair out
[02:02:08] bnagy: I'm certainly not going to go in to bat for and or && || precedence rules, but the less perl idiom the better imho :P
[02:02:21] inanepenguin: has joined #ruby
[02:02:55] bnagy: I wish we could retire 80% of the perl globals without breaking every codebase on earth
[02:03:08] uberjar: who's on first ? and is right ? or was it ||
[02:03:13] Diamond: has joined #ruby
[02:03:20] ruboto: eam # => "|" (https://eval.in/445347)
[02:03:37] Maletor: has joined #ruby
[02:05:12] uberjar: bnaggy your if statement is missing the conditon for what's supposed to happen when offset == 0
[02:05:25] bnagy: uberjar: it's not missing anything
[02:05:34] eam: >> ?|*$$
[02:05:35] ruboto: eam # => "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ...check link for more (https://eval.in/445348)
[02:05:35] bnagy: if it's 0 then it's not <0
[02:05:36] uberjar: range = offset == 0 ? (0..23) : (offset > 0 ? (offset..23) : (0..(23-offset)))
[02:05:46] lkba_: has joined #ruby
[02:05:48] uberjar: if offset is zero it's supposed to return (0..23)
[02:05:55] bnagy: you just have redundant logic in your original, so I took it out
[02:06:17] uberjar: oh damn you're right! because if offset is 0 I can just use a reference to offset instead of the literal 0
[02:06:30] uberjar: nice that's a better chice
[02:06:37] uberjar: choice.. bravo
[02:07:07] bnagy: if you really want short I don't totally hate eam's ternary based on that
[02:07:14] bnagy: 09:48 < eam> range = offset < 0 ? 0..(23 - offset) : (offset..23) # is pretty ok though
[02:07:30] bnagy: I just don't use them as a matter of principle
[02:07:50] eam: mostly me either, unless it's a very simple expression like x ? y : z
[02:08:17] eam: almost any other non-alphanumerics and I'd break it up
[02:09:26] pwnd_nsfw: has joined #ruby
[02:11:57] PhantomS_: has joined #ruby
[02:12:29] adh_: has joined #ruby
[02:13:08] adh_: how the fuck is israel jewish land? that's like me going to your house and telling you that you're on my property because my indian ancestors lived where you're living
[02:15:26] tkuchiki: has joined #ruby
[02:16:53] workmad3: has joined #ruby
[02:18:14] rickmasta: has joined #ruby
[02:18:49] renderful: has joined #ruby
[02:20:22] jaequery: has joined #ruby
[02:20:24] jgt: has joined #ruby
[02:21:22] RegulationD: has joined #ruby
[02:21:27] EminenceHC: has joined #ruby
[02:21:38] jobewan: has joined #ruby
[02:23:30] devoldmx: has joined #ruby
[02:24:22] amystephen: has joined #ruby
[02:24:42] bigmac: has joined #ruby
[02:26:46] sdothum: has joined #ruby
[02:28:27] EmeraldExplorer: has joined #ruby
[02:30:18] favadi: has joined #ruby
[02:31:24] iWaffles: has joined #ruby
[02:39:24] jellyjellyrobot: has joined #ruby
[02:40:37] jellyjellyrobot: has joined #ruby
[02:41:07] Guest28550: has joined #ruby
[02:42:05] adh_: i didn't break any rules
[02:42:14] ruboto: adh_, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[02:42:24] adh_: sorry i meant to pm that
[02:46:13] baweaver: has joined #ruby
[02:47:54] Feyn: has joined #ruby
[02:49:06] banjara: has joined #ruby
[02:53:15] DmitryBochkarev: has joined #ruby
[02:54:53] _aeris_: has joined #ruby
[02:57:29] elperdut_: has joined #ruby
[03:00:37] amoeba: has joined #ruby
[03:00:40] mrtomme: has joined #ruby
[03:05:06] InternetFriend: has joined #ruby
[03:05:48] gener1c: has joined #ruby
[03:06:44] wallerdev: has joined #ruby
[03:08:43] TheWhip: has joined #ruby
[03:10:07] TheWhip: has joined #ruby
[03:10:49] catbusters: has joined #ruby
[03:10:51] hephaestus_rg: has joined #ruby
[03:10:59] braincrash: has joined #ruby
[03:11:07] Eiam_: has joined #ruby
[03:13:08] casadei: has joined #ruby
[03:14:21] rushed: has joined #ruby
[03:14:39] tkuchiki: has joined #ruby
[03:14:58] deuxclique: has joined #ruby
[03:15:00] agent_white: has joined #ruby
[03:16:07] CooloutAC: agent_white: evening
[03:16:36] havenwood: deuxclique: hi
[03:16:58] deuxclique: I guess this is my official 'hello world'. hope to contribute soon enough.
[03:17:10] havenwood: deuxclique: :D
[03:17:35] agent_white: Hello planet!
[03:18:01] rgtk: has joined #ruby
[03:19:42] zenguy_pc: has joined #ruby
[03:19:56] uris: has joined #ruby
[03:21:17] gix: has joined #ruby
[03:27:40] sundhell: has joined #ruby
[03:27:52] lethjakman: has joined #ruby
[03:28:22] krz: has joined #ruby
[03:28:40] leafybasil: has joined #ruby
[03:29:03] tubbo: has joined #ruby
[03:29:06] uris: has joined #ruby
[03:30:04] nwhirschfeld: has joined #ruby
[03:31:35] abel: has joined #ruby
[03:32:25] Eiam_: hrm, how the heck do you pass parameters into this damn DSL =(
[03:32:33] tmtwd: has joined #ruby
[03:33:02] Eiam_: Anyone ever used https://github.com/thbar/kiba and know how to pass paramters into your source ? it looks lke they string your whole file and pass it to instance_eval
[03:34:05] aquiles: has joined #ruby
[03:36:05] uris: has joined #ruby
[03:36:17] Eiam_: okay, weird. just reloaded it and it worked fine..
[03:38:59] freerobby: has joined #ruby
[03:41:40] NeverDie_: has joined #ruby
[03:42:57] pawnbox: has joined #ruby
[03:49:01] EminenceHC: has joined #ruby
[03:51:40] Oog: has joined #ruby
[03:51:43] darkf: has joined #ruby
[03:51:44] User458764: has joined #ruby
[03:53:50] pawnbox_: has joined #ruby
[03:54:59] tmtwd: has joined #ruby
[03:56:11] EminenceHC: has joined #ruby
[03:57:23] bigmac: has joined #ruby
[03:58:44] sundhell: has joined #ruby
[04:00:17] TheWhip: has joined #ruby
[04:00:34] bb010g: has joined #ruby
[04:02:11] rakm: has joined #ruby
[04:04:58] workmad3: has joined #ruby
[04:06:39] johnzorn: has joined #ruby
[04:08:40] saramic: has joined #ruby
[04:11:31] Maletor: has joined #ruby
[04:13:59] EminenceHC: has joined #ruby
[04:15:42] wookiehangover: has joined #ruby
[04:15:48] rakm: has joined #ruby
[04:17:10] zhkirill: has joined #ruby
[04:17:11] bitri: has joined #ruby
[04:19:41] devoldmx: has joined #ruby
[04:20:49] finisherr: has joined #ruby
[04:21:13] jgt: has joined #ruby
[04:21:50] TheWhip: has joined #ruby
[04:22:49] RegulationD: has joined #ruby
[04:23:11] Joufflu: has joined #ruby
[04:23:19] techsethi: has joined #ruby
[04:23:46] Joufflu: has joined #ruby
[04:24:52] keen___________3: has joined #ruby
[04:25:03] hahuang61: has joined #ruby
[04:26:11] sundhell: has joined #ruby
[04:31:36] LMity: has joined #ruby
[04:32:08] astrobun_: has joined #ruby
[04:32:16] nKulo: has joined #ruby
[04:33:18] bigmac: has joined #ruby
[04:34:06] hahuang61: has joined #ruby
[04:36:16] amystephen: has joined #ruby
[04:40:34] sundhell: has joined #ruby
[04:42:24] Me_Engine: has joined #ruby
[04:44:50] unshadow: has joined #ruby
[04:45:05] PhantomSpank: has joined #ruby
[04:45:05] auzty: has joined #ruby
[04:48:55] jobewan: has joined #ruby
[04:51:41] makman: has joined #ruby
[04:52:10] charliesome: has joined #ruby
[04:53:58] TheWhip: has joined #ruby
[04:54:26] jun: has joined #ruby
[04:55:54] sundhell: has joined #ruby
[04:55:58] swgillespie: has joined #ruby
[04:56:07] TheWhip_: has joined #ruby
[04:57:01] dionysus69: has joined #ruby
[04:58:27] _blizzy_: has joined #ruby
[04:59:04] casadei: has joined #ruby
[07:34:41] helpa: has joined #ruby
[07:36:04] giuseppesolinas: has joined #ruby
[07:36:42] apfeluser: has joined #ruby
[07:39:36] skade: has joined #ruby
[07:40:22] b0b: has left #ruby: ("Leaving")
[07:41:12] workmad3: has joined #ruby
[07:44:17] karapetyan: has joined #ruby
[07:45:18] dionysus69: has joined #ruby
[07:45:19] Peg-leg: has joined #ruby
[07:45:57] rdark: has joined #ruby
[07:46:22] pawnbox: has joined #ruby
[07:46:50] TheWhip: has joined #ruby
[07:47:20] pawnbox_: has joined #ruby
[07:47:59] TheWhip: has joined #ruby
[07:48:49] Affix: has joined #ruby
[07:48:54] anisha: has joined #ruby
[07:49:52] nickjj: has joined #ruby
[07:50:33] futilegames: has joined #ruby
[07:51:15] casadei: has joined #ruby
[07:52:47] Pathfinder_: has joined #ruby
[07:56:31] apfeluser: has joined #ruby
[07:58:09] workmad3: has joined #ruby
[07:59:30] cih: has joined #ruby
[07:59:44] timonv: has joined #ruby
[08:00:09] senayar: has joined #ruby
[08:04:26] pecpec: has joined #ruby
[08:05:03] ledestin: has joined #ruby
[08:07:10] unshadow: has joined #ruby
[08:07:50] cibs: has joined #ruby
[08:07:50] blaxter: has joined #ruby
[08:08:14] lubarch: has joined #ruby
[08:08:50] joonty: has joined #ruby
[08:11:41] krisquigley: has joined #ruby
[08:14:12] chthon: has joined #ruby
[08:14:19] allomov: has joined #ruby
[08:16:01] apfeluser: has joined #ruby
[08:16:12] rakm: has joined #ruby
[08:16:13] Guest86944: has left #ruby: ("Leaving")
[08:17:11] jgt: has joined #ruby
[08:17:36] platzhirsch: has joined #ruby
[08:17:44] darkf_: has joined #ruby
[08:17:44] spleeze: has joined #ruby
[08:18:58] edwardly: has joined #ruby
[08:18:59] edwardly: has joined #ruby
[08:19:54] Kendos-Kenlen: has joined #ruby
[08:20:03] dmolina: has joined #ruby
[08:21:43] renderful: has joined #ruby
[08:22:31] pecpec: has joined #ruby
[08:22:59] charliesome: has joined #ruby
[08:23:25] DEA7TH: has joined #ruby
[08:24:40] sepp2k: has joined #ruby
[08:24:50] noodle: has joined #ruby
[08:27:28] hephaestus_rg: has joined #ruby
[08:27:48] yfeldblum: has joined #ruby
[08:28:05] Torrieri: has joined #ruby
[08:28:05] Torrieri: has joined #ruby
[08:28:23] yfeldblum: has joined #ruby
[08:29:00] Torrieri: has joined #ruby
[08:29:53] Torrieri: has joined #ruby
[08:30:48] Torrieri: has joined #ruby
[08:31:41] Torrieri: has joined #ruby
[08:32:06] Pupeno: has joined #ruby
[08:32:18] zemmihates: has joined #ruby
[08:32:21] deimos_: has joined #ruby
[08:32:22] pizzaops: has joined #ruby
[08:32:32] rfv: has joined #ruby
[08:32:37] Torrieri: has joined #ruby
[08:32:54] bttf: has joined #ruby
[08:33:10] duoi: has joined #ruby
[08:33:21] blackjid: has joined #ruby
[08:33:21] skarn: has joined #ruby
[08:33:29] Torrieri: has joined #ruby
[08:33:29] eggoez: has joined #ruby
[08:33:34] Torrieri: has joined #ruby
[08:34:22] Torrieri: has joined #ruby
[08:34:47] tvw: has joined #ruby
[08:35:17] Torrieri: has joined #ruby
[08:36:11] Torrieri: has joined #ruby
[08:36:26] machty: has joined #ruby
[08:36:34] Klumben: has joined #ruby
[08:36:50] unshadow: has joined #ruby
[08:37:03] tenderlove: has joined #ruby
[08:37:04] Torrieri: has joined #ruby
[08:37:14] mosez: has joined #ruby
[08:37:31] bayed: has joined #ruby
[08:37:58] Torrieri: has joined #ruby
[08:38:53] Torrieri: has joined #ruby
[08:39:46] t0rrieri: has joined #ruby
[08:39:57] ta: has joined #ruby
[08:39:57] face: has joined #ruby
[08:40:19] karapetyan: has joined #ruby
[08:40:39] t0rrieri: has joined #ruby
[08:41:34] t0rrieri: has joined #ruby
[08:42:27] t0rrieri: has joined #ruby
[08:43:22] t0rrieri_: has joined #ruby
[08:43:56] niko: has joined #ruby
[08:44:17] t0rrieri_: has joined #ruby
[08:44:23] ta: has joined #ruby
[08:45:14] t0rrieri_: has joined #ruby
[08:45:25] doddok: has joined #ruby
[08:46:06] t0rrieri_: has joined #ruby
[08:46:23] Peg-leg: has joined #ruby
[08:47:00] Peg-leg: has joined #ruby
[08:47:02] t0rrieri_: has joined #ruby
[08:47:55] t0rrieri_: has joined #ruby
[08:48:12] jenrzzz: has joined #ruby
[08:48:49] t0rrieri__: has joined #ruby
[08:49:01] charliesome: has joined #ruby
[08:49:46] t0rrieri___: has joined #ruby
[08:50:24] User458764: has joined #ruby
[08:50:37] t0rrieri___: has joined #ruby
[08:51:12] Musashi007: has joined #ruby
[08:51:32] t0rrieri___: has joined #ruby
[08:52:26] t0rrieri___: has joined #ruby
[08:53:21] t0rrieri___: has joined #ruby
[08:54:00] tomphp: has joined #ruby
[08:54:14] t0rrieri___: has joined #ruby
[08:54:45] techsethi: has joined #ruby
[08:54:57] Musashi007_: has joined #ruby
[08:54:58] sdwrage: has joined #ruby
[08:55:07] t0rrieri___: has joined #ruby
[08:55:21] marr: has joined #ruby
[08:55:27] shevy: ruby ruby ruby
[08:56:01] ajafo: has joined #ruby
[08:56:02] t0rrieri___: has joined #ruby
[08:56:13] shevy: https://github.com/ruby/ruby/blob/trunk/ChangeLog#L29
[08:56:21] shevy: "vm_insnhelper.c: solve goto spaghetti."
[08:56:29] shevy: ruby cuisine!
[08:56:43] doddok: anyone works with atom editor? ned read something about atom
[08:56:56] t0rrieri___: has joined #ruby
[08:57:02] doddok: could u give links?
[08:57:22] romain_t: has joined #ruby
[08:57:49] t0rrieri___: has joined #ruby
[08:58:13] certainty: shevy shevy shevy
[08:58:43] t0rrieri___: has joined #ruby
[08:59:38] t0rrieri___: has joined #ruby
[08:59:40] psye: has joined #ruby
[08:59:51] apeiros: +b t0rrieri*!*@*$#ruby-fix-your-connection
[09:00:09] apeiros: -o apeiros
[09:01:17] shevy: doddok havenwood uses it
[09:02:54] Takumo: Hi all, I've got an interesting requirement here. I need to run rspec specs from within a Sinatra app
[09:02:55] solocshaw: has joined #ruby
[09:03:34] Takumo: I need to present rspec via some sort of web ui that lets me show the examples and allows the user to run them
[09:05:13] Takumo: I would do it with some sort of Javascript thing except its a ****ing SOAP api that is being tested
[09:05:34] tenderlove: has joined #ruby
[09:06:22] gregf__: interestingly enough ruby and shevy end with 'y' ;)
[09:06:49] adaedra: That's interesting.
[09:07:47] [k-: has joined #ruby
[09:08:01] gregf__: >> gems = %w{shevy ruby}; 10.times { puts gems[rand(2)] + "!" *3 }
[09:08:03] ruboto: gregf__ # => ruby!!! ...check link for more (https://eval.in/445423)
[09:08:16] futilegames: has joined #ruby
[09:08:35] shevy: gregf__ lol
[09:08:49] certainty: >> %w(shevy ruby).sample
[09:08:50] ruboto: certainty # => "shevy" (https://eval.in/445424)
[09:09:41] arup_r: has joined #ruby
[09:09:51] faces: has joined #ruby
[09:10:53] shevy: what would you recommend to inter-communicate between two .rb scripts that are running? drb? sorta like, one is a REPL and it should send instructions to the other running file
[09:11:02] Takumo: adaedra: basically the client has a SOAP API but they're not sure of its robustness/quality and want me to provide a test suite they can run and get reports from on a regular basic.
[09:11:10] iml: has joined #ruby
[09:11:15] tomphp: has joined #ruby
[09:11:20] favadi: has joined #ruby
[09:11:39] ledestin: has joined #ruby
[09:11:41] adaedra: Why are you highlighting me
[09:12:04] certainty: because he/she thought that your last "interesting" was related to his/her question
[09:12:39] shevy: adaedra because he likes you!
[09:12:40] [k-: >> %q*shevy*.to_i(31).to_s(31)
[09:12:41] ruboto: [k- # => "she" (https://eval.in/445431)
[09:12:49] chipotle: has joined #ruby
[09:13:01] adaedra: certainty: oh right.
[09:13:03] shevy: I'd help but I never used rspec so I have no idea
[09:13:17] [k-: who even tests!
[09:13:42] shevy: well it depends on what you mean with a test
[09:13:54] shevy: I do test functionality
[09:14:18] jhass: certainty: https://en.wikipedia.org/wiki/Singular_they ;)
[09:15:54] iml: has joined #ruby
[09:16:01] certainty: jhass: thanks :) In fact I have read that somewhere the other day but forgot about it. So thanks for reminding me again
[09:16:42] jhass: I found after a week or so it's just easier to use it in fact than even trying to make lists... ;)
[09:16:46] certainty: shevy: how do you test functionality?
[09:17:26] certainty: jhass: now i remember where. it was the talk from the pycon
[09:17:29] solocshaw1: has joined #ruby
[09:18:02] shevy: certainty I try to test that everything works as expected!
[09:18:10] shevy: probably not 100% though
[09:18:16] certainty: now that you talked about enumerating all possibilities in lists
[09:18:17] pecpec: has joined #ruby
[09:18:22] certainty: shevy: by hand?
[09:19:02] certainty: https://www.youtube.com/watch?v=PYYfVqtcWQY&feature=youtu.be this one
[09:19:05] shevy: by written code!
[09:19:07] certainty: shevy: one more for your list
[09:19:09] certainty: shevy: that's good
[09:19:16] skade: has joined #ruby
[09:20:50] Pathfinder_: has joined #ruby
[09:21:26] lenwood: has joined #ruby
[09:25:09] RegulationD: has joined #ruby
[09:25:30] giuseppesolinas: has joined #ruby
[09:30:08] UtkarshRay: has joined #ruby
[09:30:47] wpp: has joined #ruby
[09:31:04] zenguy_pc: has joined #ruby
[09:32:03] roshanavand: has joined #ruby
[09:32:28] face: has joined #ruby
[09:36:47] Soda: has joined #ruby
[09:37:42] rikkipitt: has joined #ruby
[09:39:04] suresh: has joined #ruby
[09:39:27] giuseppesolinas: has joined #ruby
[09:42:42] drbrain: has joined #ruby
[09:43:13] ndrei: has joined #ruby
[09:47:49] htmldrum: has joined #ruby
[09:48:03] elperdut_: has joined #ruby
[09:49:11] big|bad|wolf: has joined #ruby
[09:49:16] rikkipitt: has joined #ruby
[09:50:45] lubarch: has joined #ruby
[09:52:20] tenderlove: has joined #ruby
[09:53:09] lipoqil: has joined #ruby
[09:53:33] rikkipitt: has joined #ruby
[09:53:35] beast: has joined #ruby
[09:53:38] stardiviner: has joined #ruby
[09:54:48] Shoutsid: has joined #ruby
[09:54:52] Rollabunna: has joined #ruby
[09:55:56] pandaant: has joined #ruby
[09:56:18] Silex: has joined #ruby
[09:56:38] joonty: has joined #ruby
[09:57:19] jenrzzz: has joined #ruby
[09:58:20] _blizzy_: has joined #ruby
[10:00:00] elperdut: has joined #ruby
[10:02:11] Balzrael: has joined #ruby
[10:02:57] jgt: has joined #ruby
[10:04:01] nhhagen: has joined #ruby
[10:06:46] _blizzy_: has joined #ruby
[10:07:04] tenderlove: has joined #ruby
[10:11:22] platzhirsch: has joined #ruby
[10:15:01] suchness: has joined #ruby
[10:16:07] suchness: Anyone know of a standard practice in validating an object in regard to many other objects? I have a lot of objects that are valid as a whole, but not individually. I have a few ways of going about it, but am curious if anyone has dealt with a problem like this before.
[10:16:21] elton: has joined #ruby
[10:19:53] tenderlove: has joined #ruby
[10:20:02] User458764: has joined #ruby
[10:20:10] lalalaaa: has joined #ruby
[10:20:19] rickmasta: has joined #ruby
[10:20:55] DoubleMalt: has joined #ruby
[10:21:33] lalalaaa: Hi! Anybody know how to sort methods alphabetically? https://gist.github.com/dt1973/7c8777fe704921fc05f3 -- probably gonna be hell to do it in Vim
[10:22:08] renderful: has joined #ruby
[10:22:11] adaedra: parse, re-order, re-generate ruby code.
[10:23:24] arup_r: Any body used this API ? https://github.com/adelevie/parse-ruby-client/tree/v0.3.0#updating-objects I am trying to figure out what should I send in my case instead of "GameScore"
[10:23:47] arup_r: That Gem hits this https://parse.com/docs/rest/guide/#push
[10:24:08] arup_r: I have to query there using email_id field ..and get the details out
[10:24:27] marksuman: has joined #ruby
[10:25:34] Pisuke: has joined #ruby
[10:25:45] mark3: has joined #ruby
[10:25:48] arup_r: I am actually trying to implement https://www.parse.com/docs/ios/guide#push-notifications
[10:26:21] lalalaaa: has joined #ruby
[10:26:52] shredding: has joined #ruby
[10:29:04] mark3: has left #ruby: ()
[10:29:15] mark3: has joined #ruby
[10:30:29] faces: has joined #ruby
[10:31:53] lalalaaa: has joined #ruby
[10:34:45] mark3: has left #ruby: ("PART #debian :PART #git :QUIT :Leaving.")
[10:34:55] mark3: has joined #ruby
[10:35:21] rdark: has joined #ruby
[10:35:52] senayar: has joined #ruby
[10:36:21] wookiehangover: has joined #ruby
[10:38:07] Xiti`: has joined #ruby
[10:38:08] davedev24: has joined #ruby
[10:42:13] stamina: has joined #ruby
[10:43:32] jgt: has joined #ruby
[10:45:11] lalalaaa: has joined #ruby
[10:45:15] blackmesa: has joined #ruby
[10:45:33] karapetyan: has joined #ruby
[10:46:21] blueOxigen: has joined #ruby
[10:47:48] bruno-: has joined #ruby
[10:48:03] Azure: has joined #ruby
[10:49:23] karapetyan: has joined #ruby
[10:51:18] Dwarf: has joined #ruby
[10:52:01] rodfersou: has joined #ruby
[10:52:21] karapetyan: has joined #ruby
[10:52:32] Dwarf: Hey there, I was just wondering what's prefered? {:foo => 'bar'} or {foo: 'bar'}
[10:53:09] adaedra: I prefer the second.
[10:54:05] workmad3: I tend towards the second nowadays too
[10:54:39] lalalaaa: +1 for the 2nd i mean
[10:54:46] Xiti: has joined #ruby
[10:54:47] gregf__: >> a = { name: "foo", sal: 200};a
[10:54:48] ruboto: gregf__ # => {:name=>"foo", :sal=>200} (https://eval.in/445478)
[10:55:04] workmad3: I'm not quite sure I *like* it still, but I tend to write it mostly from spending too much time with JSON :)
[10:55:23] adaedra: it's shorter!
[10:55:27] adaedra: what's not to love!
[10:55:42] lalalaaa: from ruby with love
[10:56:00] workmad3: I'm more in favour of it since `{ "key": value }` support was added
[10:56:19] workmad3: lalalaaa: originally, what I disliked was the closeness to JSON without actually supporting JSON syntax
[10:56:27] Macaveli: has joined #ruby
[10:57:00] charliesome: has joined #ruby
[10:57:16] lalalaaa: ah, yeah i can understand that
[10:57:22] workmad3: Dwarf: it's worth noting that if you want to create a hash literal with something other than symbols as keys, you *have* to go back to hash-rocket syntax
[10:58:05] roshanavand: has joined #ruby
[10:58:17] workmad3: even `{ "foo": "bar" }` will convert "foo": to a symbol, not a string key
[11:06:58] ndrei: has joined #ruby
[11:07:30] rikkipitt: has joined #ruby
[11:08:55] jalnt: has joined #ruby
[11:10:02] allomov: has joined #ruby
[11:10:34] sross07: has joined #ruby
[11:12:21] maikowblue: has joined #ruby
[11:14:31] Napear: has joined #ruby
[11:14:50] freezevee: has joined #ruby
[11:16:13] mark3: has joined #ruby
[11:18:21] rushed: has joined #ruby
[11:18:46] mark3: has joined #ruby
[11:18:50] ajafo: has joined #ruby
[11:20:20] kkthxbye: has joined #ruby
[11:20:26] roshanavand: has joined #ruby
[11:21:40] LMity: has joined #ruby
[11:24:17] Soda: has joined #ruby
[11:27:19] mark3: has joined #ruby
[11:29:38] psye: has joined #ruby
[11:30:21] codecop: has joined #ruby
[11:30:36] Napear: has joined #ruby
[11:31:13] senayar: has joined #ruby
[11:31:16] User458764: has joined #ruby
[11:31:20] herbst: has joined #ruby
[11:33:37] SylarRuby: has joined #ruby
[11:34:16] banister: has joined #ruby
[11:34:35] phutchins: has joined #ruby
[11:35:33] p0wn3d_: has joined #ruby
[11:36:05] ldnunes: has joined #ruby
[11:36:10] sdothum: has joined #ruby
[11:38:09] TPBallbag: has joined #ruby
[11:38:37] krisquigley: has joined #ruby
[11:39:09] syath: has joined #ruby
[11:40:23] devoldmx: has joined #ruby
[11:41:39] roshanavand: has joined #ruby
[11:42:35] Ropeney: has joined #ruby
[11:43:34] htmldrum: has joined #ruby
[11:46:39] karapetyan: has joined #ruby
[11:49:34] pkp: has joined #ruby
[11:49:59] pkp: Hi, How do I prevent irb from converting single quote strings to double quotes
[11:50:38] oddmunds: pkp: there is really no difference between them
[11:54:15] lapide_viridi: has joined #ruby
[11:54:34] nettoweb: has joined #ruby
[11:55:30] CloCkWeRX: has joined #ruby
[11:56:29] User4587_: has joined #ruby
[11:56:50] [k-: ruby will _always_ use double quotes
[11:57:09] [k-: (it will convert '' to "")
[11:57:11] jgt: has joined #ruby
[11:57:16] adaedra: pkp's gone, [k-
[11:57:17] ajafo: has joined #ruby
[11:59:50] yalue: has joined #ruby
[12:01:30] lenwood: has joined #ruby
[12:02:22] roshanavand: has joined #ruby
[12:05:18] blackmesa: has joined #ruby
[12:06:54] pkp: has joined #ruby
[12:08:52] gigetoo: has joined #ruby
[12:09:59] prestorium: has joined #ruby
[12:09:59] chris2: php tracks that?
[12:11:12] Me_Engine: has joined #ruby
[12:13:12] s00pcan: has joined #ruby
[12:14:00] karapetyan: has joined #ruby
[12:14:03] joonty: has joined #ruby
[12:15:23] jenrzzz: has joined #ruby
[12:15:48] gusTester: has joined #ruby
[12:17:45] renancarvalho: has joined #ruby
[12:17:48] nKulo: has joined #ruby
[12:19:08] Seinnd: has joined #ruby
[12:19:14] Rutix: has joined #ruby
[12:19:14] Rutix: has joined #ruby
[12:19:17] Seinnd: ellow guys
[12:20:06] sgambino: has joined #ruby
[12:20:48] Seinnd: just a quick question about sorting -> i'am on plain ruby without rails and i want to sort a loop by a specific order of words
[12:21:04] adaedra: sort a loop?
[12:21:13] Seinnd: arr.sort(**).each
[12:21:38] [k-: the very idea of sorting /a loop/ is ...
[12:21:42] adaedra: sort an array, then
[12:22:17] adaedra: You can pass a block to Enumerable#sort to specify how it should sort.
[12:22:22] [k-: you could be looking for Array#sort_by { |a,b| }
[12:22:34] [k-: &ri Array#sort_by
[12:22:35] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#sort_by-instance_method
[12:22:37] norm: has joined #ruby
[12:23:05] roshanavand: has joined #ruby
[12:23:34] Seinnd: adaedra, thanks that gives me a start
[12:23:40] trautwein: has joined #ruby
[12:24:27] atomical: has joined #ruby
[12:31:16] st1gma: has joined #ruby
[12:31:24] kenpoint: has joined #ruby
[12:31:36] Pathfinder_: has joined #ruby
[12:34:07] d10n-work: has joined #ruby
[12:34:31] IceyEC: has joined #ruby
[12:34:57] Icey: has joined #ruby
[12:34:59] rikkipitt: has joined #ruby
[12:35:53] wpp: has joined #ruby
[12:36:13] aswen: has joined #ruby
[12:36:52] karapetyan: has joined #ruby
[12:38:17] karapetyan: has joined #ruby
[12:39:51] pwnd_nsfw: has joined #ruby
[12:39:53] karapetyan: has joined #ruby
[12:40:35] tkuchiki: has joined #ruby
[12:40:40] karapetyan: has joined #ruby
[12:41:26] karapetyan: has joined #ruby
[12:42:15] karapetyan: has joined #ruby
[12:43:01] rhllor: has joined #ruby
[12:43:02] karapetyan: has joined #ruby
[12:44:02] roshanavand: has joined #ruby
[12:44:38] karapetyan: has joined #ruby
[12:45:16] TheWhip: has joined #ruby
[12:45:23] karapetyan: has joined #ruby
[12:45:43] skade: has joined #ruby
[12:46:09] karapetyan: has joined #ruby
[12:46:22] wpp: has joined #ruby
[12:48:34] bkulbida: has joined #ruby
[12:50:27] herbst: has joined #ruby
[12:50:28] devoldmx: has joined #ruby
[12:51:44] shevy: wat... who wants to elbow guys here!
[12:52:40] [k-: ?guys shevy
[12:52:41] ruboto: shevy, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[12:54:48] tkuchiki: has joined #ruby
[12:55:25] shevy: [k- <Seinnd> elbow guys <-- !!! <[k-> elbow? !!!!!
[12:56:02] [k-: immunity is granted to non regulars
[12:56:06] Guest53: has joined #ruby
[12:56:20] Synthead: has joined #ruby
[12:56:25] krisquigley: has joined #ruby
[12:56:42] mbeasley: has joined #ruby
[12:56:49] shevy: [k- did you test the new frozen literal string already?
[12:57:03] mclee_: has joined #ruby
[12:57:05] mbeasley: has left #ruby: ()
[12:57:17] [k-: i have not touched 2.3
[12:57:25] CustosLimen: I'm having problems with passenger and gollum - if I just run `bundle exec gollum --port 4141` I get gollum working fine, but if I run via passenger it does not work at all - config.ru and passengerfile and everything else is here: https://gitlab.com/aucampia/gollum-wiki/tree/master
[12:57:43] [k-: but i use frozen strings once in libobf!
[12:58:47] Pathfinder_: has joined #ruby
[12:58:48] SylarRuby: has joined #ruby
[12:58:54] andersoldahl: has joined #ruby
[12:59:25] sdwrage: has joined #ruby
[12:59:52] arup_r: has joined #ruby
[13:01:37] elcontrastador: has joined #ruby
[13:01:46] JDiPierro: has joined #ruby
[13:02:07] UtkarshRay: has joined #ruby
[13:02:16] User458764: has joined #ruby
[13:03:17] alienaut: has joined #ruby
[13:03:46] jmignault: has joined #ruby
[13:04:04] sankaber: has joined #ruby
[13:04:40] jmignault: has joined #ruby
[13:05:08] chthon: has joined #ruby
[13:05:36] shevy: when using git checkout... I see two different commands for the ruby source
[13:05:44] jmignault: has joined #ruby
[13:05:53] shevy: "git clone --depth 1 git://github.com/ruby/ruby.git" and "git clone git://github.com/ruby/ruby.git", which one should be preferred? I don't know from where I got the --depth 1 thing
[13:06:39] tobiasvl: shevy: --depth makes a shallow clone, preferable if you don't need the entire (large) history of the entire ruby repo
[13:07:03] `tim`: has joined #ruby
[13:07:27] jmignault: has joined #ruby
[13:08:29] sanguisdex: has joined #ruby
[13:09:43] PhantomSpank: has joined #ruby
[13:10:20] lenwood: has joined #ruby
[13:11:23] cdg: has joined #ruby
[13:11:42] cdg: has joined #ruby
[13:12:31] shevy: I can see now... started the non-depth variant at the time I wrote the above, and I am only at 20% checkout :(
[13:13:14] dvxam: has joined #ruby
[13:14:12] sanguisdex: has left #ruby: ()
[13:14:20] chthon: has joined #ruby
[13:14:55] voker57: has joined #ruby
[13:15:09] balazs_: has joined #ruby
[13:15:13] [k-: ha! i use the github web interface
[13:15:19] [k-: no need to checkout!
[13:15:54] jenrzzz: has joined #ruby
[13:16:35] Rollabunna: has joined #ruby
[13:16:36] shevy: too many options... svn ... git ... github interface...
[13:16:37] dvxam: hello folks
[13:17:38] steeljav: has joined #ruby
[13:17:43] dvxam: I've facing a weird issue using 2.2.1 with ruby method parameters default value order (i know this s not very clear)
[13:18:15] dvxam: This pastebin should clarify it : http://pastebin.com/3ftiEStq
[13:18:15] ruboto: dvxam, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fbd23b8a4631a3a6cb08
[13:18:16] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[13:20:14] bodgix: has joined #ruby
[13:21:32] Shoutsid: has joined #ruby
[13:23:08] shevy: the second argument is mandatory right
[13:23:43] shevy: and you provided only one argument
[13:23:48] InternetFriend: has joined #ruby
[13:24:11] shevy: so there are only two ways for ruby to resolve this situation
[13:24:18] shevy: - either it would force you to provide two arguments
[13:24:29] nhhagen: has joined #ruby
[13:24:30] shevy: - or it will assume that you did intend to satisfy the mandatory argument part
[13:24:50] [k-: what did you expect?
[13:24:55] skweek: has joined #ruby
[13:25:11] maloik: https://github.com/bbatsov/ruby-style-guide#optional-arguments
[13:25:28] roshanavand: has joined #ruby
[13:25:37] evanjs: has joined #ruby
[13:25:40] maloik: honestly, I didn't even consciously know it worked that way, probably that styleguide (or a variation of it) is so engrained in the way I work
[13:25:45] dvxam: @shevy thx. I think ruby is doing the right thing here but i was supprised it does not raise an execption at compile time
[13:25:50] maloik: probably because that*
[13:26:05] shevy: dvxam yeah it surprised me too BUT, I actually do it like the style guide suggests
[13:26:14] shevy: def foo(i, bla = 'default value')
[13:26:20] shevy: I don't think I ever used
[13:26:25] shevy: def foo(bla = 'default value', i)
[13:26:40] RegulationD: has joined #ruby
[13:26:44] shevy: I wonder if official ruby documents that behaviour
[13:26:50] dvxam: shevy me too! I would never do this in production code.
[13:26:56] dvxam: shevy yes exactly.
[13:27:09] brazenbraden: has joined #ruby
[13:27:10] tjohnson: has joined #ruby
[13:27:14] dvxam: And i'm not sure this is working with 1.9.xx versions of ruby
[13:27:21] dvxam: I'm gonna try
[13:27:35] shevy: I think you can try with ruboto here
[13:27:43] shevy: 1.9>> or so... I can't remember
[13:28:04] metalic: has joined #ruby
[13:28:21] SylarRuby: has joined #ruby
[13:28:56] zenguy_pc: has joined #ruby
[13:29:05] funkenstrahlen: has joined #ruby
[13:29:17] dvxam: 1.9>> puts 'hello'
[13:29:19] tomphp: has joined #ruby
[13:29:23] funkenstrahlen: hey, I just try to create my first gem. How can I define gem dependencies in .gemspec? I have a Gemfile and would like to define those dependencies in the .gemspec. Or does gem build already use my Gemfile to track the dependencies?
[13:29:24] luksaur: has joined #ruby
[13:29:26] paulcsmith_: has joined #ruby
[13:30:23] amystephen: has joined #ruby
[13:30:34] ruboto: dvxam # => ...check link for more (https://eval.in/445555)
[13:31:11] maloik: funkenstrahlen: https://github.com/openminds/bisu is an example of one way of doing it
[13:31:13] dvxam: >> puts 'hello'
[13:31:15] ruboto: dvxam # => hello ...check link for more (https://eval.in/445556)
[13:31:52] dvxam: Ok i stop failing and rvm install 1.9.3
[13:32:00] devdazed: has joined #ruby
[13:32:23] Peg-leg: has joined #ruby
[13:32:29] funkenstrahlen: maloik: talking about this part? https://github.com/openminds/bisu/blob/master/bisu.gemspec#L21-L26
[13:33:25] funkenstrahlen: maloik: thanks!
[13:34:07] Peg-leg: has joined #ruby
[13:34:41] johnhamelink: has joined #ruby
[13:35:45] Peg-leg: has joined #ruby
[13:35:46] Klumben: has joined #ruby
[13:36:40] dstarh: has joined #ruby
[13:36:43] freerobby: has joined #ruby
[13:36:44] brazenbraden: anyone have some good resources about setting up and configuring Resque for a ruby scripting "app"? All I find is rails integration.
[13:37:33] balazs_: has joined #ruby
[13:37:44] User4587_: has joined #ruby
[13:38:12] symbol: has joined #ruby
[13:39:13] newdan: has joined #ruby
[13:40:16] kobain: has joined #ruby
[13:40:47] antgel: has joined #ruby
[13:41:24] freerobby: has joined #ruby
[13:42:08] TheWhip: has joined #ruby
[13:42:57] dvxam: shevy : just so you know, it's valid 1.9.3 syntax too
[13:43:38] niemcu: has joined #ruby
[13:44:01] [k-: opt args have always been like that
[13:44:19] [k-: there's also more magic
[13:44:43] funkenstrahlen: Hey, I just got "You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory." error on 'gem install somegem' on my mac. Did I setup something wrong? This should normally not require sudo right?
[13:44:47] [k-: def *args, **args2, a = 3, b, c
[13:45:13] roshanavand: has joined #ruby
[13:45:15] blackmesa: has joined #ruby
[13:45:22] lkba: has joined #ruby
[13:45:27] Mojo_Nixon: has joined #ruby
[13:45:41] dvxam: [k- Haha this is even more fun to read. Ruby, what a magic world. Thx
[13:46:56] andyrs: has joined #ruby
[13:47:54] dravine_: has joined #ruby
[13:48:00] loc22: has joined #ruby
[13:48:05] funkenstrahlen: ah I think I found the right thread on stackoverflow for my problem
[13:48:18] chrisja: has joined #ruby
[13:48:22] grn: has joined #ruby
[13:48:35] spcmastertim: has joined #ruby
[13:49:41] loc22: Hi guys! Im trying to extract some info from urls and trying to use some gem for open graph protocol. I have tried opengraph_parser, opengraph, open_graph_reader... and any of those work
[13:49:50] loc22: Which one do you normally use?
[13:50:26] funkenstrahlen: So it looks like I messed up my Mac ruby version as I installed some gems to the system instead of using rbenv. How can I clean that up?
[13:50:36] casadei: has joined #ruby
[13:52:11] karapetyan: has joined #ruby
[13:52:27] funkenstrahlen: Am I safe to remove all gems?
[13:52:38] funkenstrahlen: or will this affect my mac system?
[13:53:13] loc22: funkenstrahlen: It is safe
[13:54:11] shevy: funkenstrahlen I always keep a local copy of all .gem files
[13:54:27] shevy: you can batch-install very quickly from a local directory with all your .gem files
[13:54:31] SenpaiSilver: has joined #ruby
[13:54:33] mary5030: has joined #ruby
[13:54:36] shevy: in the cache/ subdirectory, every installed .gem is also kept
[13:54:47] bigmac: has joined #ruby
[13:54:50] shevy: so I usually end up cd-ing to that subdir, and copy whatever gem I installed there
[13:54:57] platzhirsch: has joined #ruby
[13:55:18] mary5030: has joined #ruby
[13:55:23] dopie: has joined #ruby
[13:55:54] funkenstrahlen: ok thanks. will now setup rbenv
[13:56:42] InternetFriend: has joined #ruby
[13:57:43] whippythellama: has joined #ruby
[13:59:15] karapetyan: has joined #ruby
[14:02:01] decoponio: has joined #ruby
[14:03:41] rushed: has joined #ruby
[14:04:30] axl_: has joined #ruby
[14:08:37] senayar: has joined #ruby
[14:09:19] varunwachaspati: has joined #ruby
[14:09:43] Tuxero: has joined #ruby
[14:10:00] Miron: has joined #ruby
[14:10:04] shevy: zenspider hah, did you know, phuby gets more competition: https://github.com/hmlb/phpunit-vw
[14:11:20] podman: has joined #ruby
[14:11:49] InternetFriend: has joined #ruby
[14:12:16] wpp: has joined #ruby
[14:12:19] UtkarshRay: has joined #ruby
[14:12:50] umgrosscol: has joined #ruby
[14:12:57] RegulationD: has joined #ruby
[14:14:47] funkenstrahlen: Is it possible with rbenv to not compile the ruby version when installing? this takes a long time...
[14:14:47] Gnomethrower: has joined #ruby
[14:14:53] umgrosscol: has joined #ruby
[14:15:41] diegoviola: has joined #ruby
[14:16:12] A124: has joined #ruby
[14:19:10] sasdasd: has joined #ruby
[14:19:24] [k-: (if you think that is slow, look at how long haskell (and packages) takes to compile T.T)
[14:19:42] shmoon_: has joined #ruby
[14:19:56] shmoon_: was looking into state machines in ruby
[14:20:27] shmoon_: can someone explain the difference betwen mealy and moore here - http://micahmartin.com/statemachine/documentation.html ? cuz to me the explanation seems same.
[14:21:08] failshell: has joined #ruby
[14:21:21] ksteck: has joined #ruby
[14:21:37] hal_9000_: has joined #ruby
[14:22:27] moretti: has joined #ruby
[14:22:52] andikr: has joined #ruby
[14:23:20] Encapsulation: has joined #ruby
[14:23:46] renderful: has joined #ruby
[14:26:15] DrCode: has joined #ruby
[14:27:56] Guest53: has joined #ruby
[14:28:38] krz: has joined #ruby
[14:29:46] hephaestus_rg: has joined #ruby
[14:31:04] the_drow: has joined #ruby
[14:31:51] the_drow: I created a new serverspec type and I'd like to have it fail with a specific message but I'm not sure how to do it
[14:32:26] the_drow: https://gist.github.com/thedrow/e086203e0768d18e5c92
[14:32:43] the_drow: I can't find the exception I should be raising
[14:32:51] the_drow: It's probably an rspec exception
[14:33:43] tangentstorm: has joined #ruby
[14:34:32] lxsameer: how can I get a method from an object dynamically without evaluating it ?
[14:35:01] Jardayn: has joined #ruby
[14:35:19] dravine: has joined #ruby
[14:35:28] loc22: has joined #ruby
[14:35:39] darix: lxsameer: what are you trying to achieve?
[14:36:02] [k-: yes, what are you trying to acheive?
[14:36:09] [k-: achieve*
[14:36:19] ekinmur: has joined #ruby
[14:36:31] lxsameer: I'm writing a dsl , something like this, default_value :some_method
[14:36:45] [k-: (you can't pluck a method from class A and plonk it into class B if that is what you are doing)
[14:36:48] lxsameer: I want to fetch some_method and store it on a queue and execute it later
[14:36:57] theRoUS: has joined #ruby
[14:37:37] [k-: don't store methods on queues, it will be unnecessary duplication, wasting ram
[14:37:50] troulouliou_div2: has joined #ruby
[14:38:03] [k-: instead, use Object#public_send :method_name, args
[14:38:27] [k-: that way you just store the symbols at little cost
[14:39:19] darix: this reminds me a bit of https://www.youtube.com/watch?v=8bZh5LMaSmE
[14:39:45] dvarrui: has joined #ruby
[14:40:30] gusTester: has joined #ruby
[14:40:30] kobain: has joined #ruby
[14:40:36] arup_r: has joined #ruby
[14:40:54] `tim`: has joined #ruby
[14:45:22] havenwood: has joined #ruby
[14:46:01] [k-: hmm, on further thought, method might be more space efficient compared to [instance, :method]
[14:46:52] [k-: there is also another way, proc do |*args| instance.send :method, *args end
[14:47:00] troulouliou_div2: has joined #ruby
[14:47:32] [k-: which of the three might be the most efficient?
[14:47:51] apeiros: almost certainly Method
[14:48:14] [k-: lxsameer: apeiros has spoken
[14:48:20] rippa: has joined #ruby
[14:48:27] apeiros: if it matters - measure
[14:48:40] [k-: &ri Module#method @lxsameer
[14:48:40] `derpy: lxsameer: http://www.rubydoc.info/stdlib/core/Object#method-instance_method
[14:49:06] lxsameer: thanks folk
[14:49:08] lxsameer: thanks folks
[14:49:11] DEA7TH: has joined #ruby
[14:49:29] Tsion: has joined #ruby
[14:49:44] [k-: weeeelllllcooooommmmeeeee :D
[14:51:15] devoldmx: has joined #ruby
[14:51:44] adac: has joined #ruby
[14:52:05] adac: Does someon have a clue on how to store a ruby array in redis?
[14:52:38] adaedra: Use a redis gem
[14:54:22] lxsameer: apeiros: #method return the reference to the method instead of duplicating it right ?
[14:54:23] DmitryBochkarev: has joined #ruby
[14:54:40] Tsion: has left #ruby: ()
[14:54:51] Tsion: has joined #ruby
[14:57:48] adaedra: It returns a Method object representing the method on the object
[14:59:18] apeiros: it creates an object which wraps all necessary information.
[14:59:39] apeiros: it's internally probably quite similar to having a reference to the instance and the method name (just that it won't be the name)
[14:59:49] renancarvalho: has left #ruby: ()
[15:00:26] johnhamelink: has joined #ruby
[15:03:32] Klumben: has joined #ruby
[15:03:59] AndrewF: has joined #ruby
[15:05:19] treehug88: has joined #ruby
[15:05:51] karapetyan: has joined #ruby
[15:06:08] AFam: has joined #ruby
[15:07:21] rushed: has joined #ruby
[15:08:16] yorickpeterse: I just spent a whole day optimizing a single DB query
[15:08:21] yorickpeterse: I regret nothing
[15:08:31] maloik: gitlab users worldwide thank you
[15:08:34] yorickpeterse: and this saves me a whopping 500ms, and a bunch of sequence scans
[15:09:46] rushed: has joined #ruby
[15:10:29] A124: has joined #ruby
[15:10:33] yorickpeterse: hopefully somewhere at the end of this month I can get my hands on the issue listing page
[15:10:39] yorickpeterse: god those pages take forever to load
[15:10:56] giuseppesolinas: has joined #ruby
[15:11:21] wharr: has joined #ruby
[15:11:38] wharr: What does "There was an error processing your request, a binding error occurred." mean when using HTTParty
[15:13:49] pandaant: has joined #ruby
[15:13:58] Macaveli: has joined #ruby
[15:16:08] johnny56: has joined #ruby
[15:16:11] yardenbar: has joined #ruby
[15:16:40] patchedmonkey: has joined #ruby
[15:17:23] johnny56: why is this so difficult to install? =/ I ran yum install rubygems, gem update. now it just errors out with "ERROR: while executing gem ... (socketerror) getaddrinfo: name or service not known
[15:17:27] Rollabunna: has joined #ruby
[15:17:54] darix: johnny56: that is a dns error
[15:17:58] patchedmonkey: has joined #ruby
[15:18:02] darix: nothing to do with ruby per se
[15:18:06] johnny56: there's nothing wrong tihs my dns
[15:18:15] johnny56: i can ping all hosts and my other applications work fine.
[15:19:07] havenwood: johnny56: What version of RubyGems is yum giving you?
[15:19:09] ndrei: has joined #ruby
[15:19:14] havenwood: johnny56: gem -v
[15:19:15] andikr: has joined #ruby
[15:19:21] SylarRuby: has joined #ruby
[15:19:34] Guest53: has joined #ruby
[15:20:24] suchness: has joined #ruby
[15:20:38] havenwood: johnny56: Usually RubyGems ships with Ruby these days (it was a separate package in 1.8) though it's been a while since I've used a yum package for Ruby. On Fedora then?
[15:20:38] diegoviola: has joined #ruby
[15:20:52] Cyther: has joined #ruby
[15:21:04] johnny56: they are both installed
[15:21:11] buharin: has joined #ruby
[15:21:37] havenwood: johnny56: I didn't know CentOS even did modern Ruby packages! That's good to hear.
[15:21:42] havenwood: buharin: hi
[15:21:49] gambl0re: has joined #ruby
[15:21:53] buharin: what do you think about python?
[15:22:53] beast: Guido van Rossum likes it
[15:22:58] The_Phoenix: has joined #ruby
[15:23:07] havenwood: buharin: Most folk in #ruby (myself included) probably prefer Ruby.
[15:23:16] johnny56: so is there a reason why this thing keeps erroring getaddrinfo...
[15:23:19] dravine: has joined #ruby
[15:23:27] d5sx43: has joined #ruby
[15:23:43] diegoviola: has joined #ruby
[15:24:04] havenwood: johnny56: Running a `gem install` command?
[15:24:13] johnny56: running any gem cmd..
[15:24:15] johnny56: nothing works
[15:24:41] johnny56: I mean lol... yum install rubygems then do a update and the whole thing breaks?
[15:24:46] havenwood: johnny56: gem install hola --debug
[15:25:58] havenwood: johnny56: DNS lookup failing as already mentioned. Maybe checking with --debug will tell you more about why.
[15:26:08] johnny56: it's not telling me anything
[15:26:25] johnny56: socketerror at /usr/share/ruby/resolv.rb:777 - get addrinfo name or serice not known
[15:26:29] skydiver: has joined #ruby
[15:27:02] yardenbar: has joined #ruby
[15:27:10] jpfuentes2: has joined #ruby
[15:27:16] havenwood: johnny56: This is Fedora or CentOS?
[15:27:32] skydiver: has joined #ruby
[15:28:01] havenwood: johnny56: What version of CentOS?
[15:28:13] Torrieri: has joined #ruby
[15:29:22] havenwood: johnny56: How about?: which gem
[15:30:01] havenwood: johnny56: I just ask because the version of gem you reported isn't shipped as a CentOS package so I'm confused how that happeend.
[15:30:20] bffff_: has joined #ruby
[15:30:28] johnny56: as I said i ran gem update then after that everything stopped working
[15:31:00] BLuEGoD: has joined #ruby
[15:31:53] hectortrope: has joined #ruby
[15:32:06] sphex: has joined #ruby
[15:32:38] ItSANgo: has joined #ruby
[15:33:57] poguez_: has joined #ruby
[15:34:02] AccordLTN: has joined #ruby
[15:34:22] willardg: has joined #ruby
[15:34:27] Tsion: has joined #ruby
[15:34:57] karapetyan: has joined #ruby
[15:35:25] shinnya: has joined #ruby
[15:37:59] antgel: has joined #ruby
[15:37:59] patchedmonkey: has joined #ruby
[15:38:14] apt-get: has joined #ruby
[15:38:18] karapetyan: has joined #ruby
[15:38:22] dhollinger: has joined #ruby
[15:38:43] _djbkd: has joined #ruby
[15:38:57] joonty: has joined #ruby
[15:38:59] r0x0rZ: has joined #ruby
[15:39:46] patchedmonkey: has joined #ruby
[15:39:57] funkenstrahlen: has left #ruby: ("WeeChat 1.1.1")
[15:40:02] Guest53: has joined #ruby
[15:41:56] rcvalle: has joined #ruby
[15:43:11] blackmesa: has joined #ruby
[15:44:38] tier: has joined #ruby
[15:45:21] r0x0rZ: i want to use 3rd party code that's not a rubygem but it is available on Github. I want to include it in my own gem. what's the best way to do this? I thought about cloning the repo to lib directory but I'd like to do this more neatly.
[15:46:01] herbst: depends on the size and license of the code i probably would create the gem myself
[15:46:04] jxpx777: has joined #ruby
[15:46:13] herbst: if its just a file or two just work it into my current code base
[15:46:19] r0x0rZ: herbst: it has MIT license
[15:46:47] r0x0rZ: it's actually several files
[15:47:24] herbst: shouts gem for me, except you really know that you will use this only once and nobody else could ever use it
[15:48:33] gagrio_: has joined #ruby
[15:48:36] vondruch_: has joined #ruby
[15:48:41] jzigmund: has joined #ruby
[15:48:50] lsmola_: has joined #ruby
[15:53:28] Peg-leg: has joined #ruby
[15:53:45] inanepenguin: has joined #ruby
[15:53:49] skade: has joined #ruby
[15:54:19] Peg-leg: has joined #ruby
[15:54:54] jzigmund: has joined #ruby
[15:55:58] Peg-leg: has joined #ruby
[15:56:45] joonty: has joined #ruby
[15:58:21] `tim`: has joined #ruby
[15:58:55] pawnbox: has joined #ruby
[15:59:23] Alayde: has joined #ruby
[15:59:26] DmitryBochkarev: has joined #ruby
[16:00:27] psye: has joined #ruby
[16:00:42] andikr: has joined #ruby
[16:02:37] rhllor: has joined #ruby
[16:03:31] krz: has joined #ruby
[16:03:56] riotjones: has joined #ruby
[16:05:55] vondruch_: has joined #ruby
[16:05:59] lsmola_: has joined #ruby
[16:06:00] gagrio_: has joined #ruby
[16:06:11] towski_: has joined #ruby
[16:07:09] SCHAAP137: has joined #ruby
[16:09:17] r00t_: has joined #ruby
[16:10:28] metalic: has joined #ruby
[16:12:10] htmldrum: has joined #ruby
[16:17:19] inanepenguin: has joined #ruby
[16:18:18] SaKi_KnIn: has joined #ruby
[16:18:46] [Butch]: has joined #ruby
[16:18:50] SaKi_KnIn: hello, I need rails chanel
[16:19:07] Rollabunna: has joined #ruby
[16:19:14] SaKi_KnIn: problem with connect to database
[16:19:17] mozzarella: /join #rubyonrails
[16:19:18] prestorium_: has joined #ruby
[16:19:50] symbol: has joined #ruby
[16:20:42] zhkirill: has joined #ruby
[16:20:46] seaned__: has joined #ruby
[16:22:57] patrick_star: has joined #ruby
[16:23:02] ericjphillips: has joined #ruby
[16:23:02] RobertBirnie: has joined #ruby
[16:23:06] krisquigley: has joined #ruby
[16:23:20] pawnbox: has joined #ruby
[16:24:27] wallerdev: has joined #ruby
[16:24:29] cantaberry: has joined #ruby
[16:26:00] gregf: has joined #ruby
[16:26:11] cschneid_: has joined #ruby
[16:26:32] SaKi_KnIn: mozzarella: thx
[16:26:53] AndroUser2: has joined #ruby
[16:27:03] EminenceHC: has joined #ruby
[16:27:47] ericjphillips: has joined #ruby
[16:28:42] arup_r: has joined #ruby
[16:30:34] Maletor: has joined #ruby
[16:30:49] Kendos-Kenlen: has joined #ruby
[16:31:00] dfockler: has joined #ruby
[16:31:45] User458764: has joined #ruby
[16:32:13] ngscheurich: has joined #ruby
[16:32:56] jenrzzz: has joined #ruby
[16:34:00] ellisTAA: has joined #ruby
[16:34:03] Pumukel: has joined #ruby
[16:34:13] p0wn3d_: has joined #ruby
[16:35:45] lkba: has joined #ruby
[16:35:49] nettoweb: has joined #ruby
[16:36:41] balazs_: do Thread-s have some I/O limitations ? Why doesn't this print anything (ruby 2.1.2): Thread.new do puts 'x' end
[16:37:15] matp: has joined #ruby
[16:37:16] A124: has joined #ruby
[16:39:17] canton7: balazs_, likely your program terminated before that thread could start?
[16:39:46] adaedra: Try `Thread.new do puts 'x' end.join'
[16:39:59] TheRinger: has joined #ruby
[16:40:05] balazs_: canton7: ding ding; thanks !
[16:40:14] andikr: has joined #ruby
[16:40:18] patchedmonkey: has joined #ruby
[16:40:25] The_Phoenix1: has joined #ruby
[16:42:19] zhkirill: has joined #ruby
[16:43:47] marchi: has joined #ruby
[16:43:59] pawnbox: has joined #ruby
[16:44:23] camilasan: has joined #ruby
[16:44:42] yqt: has joined #ruby
[16:45:27] A124: ACTION looks at go|dfish
[16:46:17] willardg: has joined #ruby
[16:46:44] willardg: has joined #ruby
[16:47:17] otacon-: has joined #ruby
[16:47:28] lalalaaa: has joined #ruby
[16:47:47] blackoperat: has joined #ruby
[16:47:53] hal_9000_: Final call: 36 hours remaining - Crowdfunding _Elixir for the Rubyist_ - http://igg.me.at/elixir4rubyists
[16:48:51] taylorwu: has joined #ruby
[16:49:04] inanepenguin: has joined #ruby
[16:50:56] lkba_: has joined #ruby
[16:52:00] devoldmx: has joined #ruby
[16:54:15] fullofcaffeine: has joined #ruby
[16:54:46] TheWhip: has joined #ruby
[16:55:35] zhkirill: has joined #ruby
[16:55:36] Shoutsid: has joined #ruby
[16:56:26] DmitryBochkarev: has joined #ruby
[16:56:34] zhkirill: has joined #ruby
[16:56:46] A124: hal_9000_ server not found
[16:56:53] xcesariox: has joined #ruby
[16:57:42] lalalaaa: has joined #ruby
[16:58:22] xcesariox: has joined #ruby
[16:58:42] roshanavand: has joined #ruby
[16:58:48] rakm: has joined #ruby
[16:58:48] pocketprotector2: has joined #ruby
[16:59:18] hal_9000_: A124: Sorry! typo
[16:59:28] hal_9000_: Final call: 36 hours remaining - Crowdfunding _Elixir for the Rubyist_ - http://igg.me/at/elixir4rubyists
[17:00:35] The_Phoenix: has joined #ruby
[17:01:23] Tsion: has left #ruby: ()
[17:01:49] suchness: A quarter raised in a month, and looking for 3/4 in 2 days? Somehow I am doubtful...
[17:02:06] hephaestus_rg: has joined #ruby
[17:02:38] firstdayonthejob: has joined #ruby
[17:03:38] dmolina1: has joined #ruby
[17:04:13] suchness: hal_9000_: Is the book supposed to be geared towards teaching a proficient ruby programmer elixer?
[17:04:41] tmillc: has joined #ruby
[17:04:47] riotjones: has joined #ruby
[17:06:39] hal_9000_: suchness: yes, that is the basic premise
[17:06:58] ericjphillips: has joined #ruby
[17:07:11] dsaf: has joined #ruby
[17:07:13] hal_9000_: suchness: the goal will not be met of course, but flex-funding is in place, so it will not be wasted
[17:07:25] suchness: hal_9000_: I just noticed that!
[17:07:48] hal_9000_: and with only one author now, the goal is twice as high as it needs to be
[17:08:27] petricore: has joined #ruby
[17:08:28] lenwood: has joined #ruby
[17:09:19] roshanavand: has joined #ruby
[17:09:22] sanjayu: has joined #ruby
[17:10:28] arooni: has joined #ruby
[17:10:38] roshanavand: has joined #ruby
[17:11:28] Guest53: has joined #ruby
[17:11:32] AustinMatherne: has joined #ruby
[17:11:36] Eiam_: has joined #ruby
[17:12:12] Stancez: has joined #ruby
[17:14:03] roshanavand: has joined #ruby
[17:16:22] C0L0R: has joined #ruby
[17:16:26] diego4: has joined #ruby
[17:16:52] moeabdol: has joined #ruby
[17:18:13] nayena: has joined #ruby
[17:18:33] Hanmac: has joined #ruby
[17:19:13] krisquigley: has joined #ruby
[17:19:24] diego4: has joined #ruby
[17:20:01] andyrs: has joined #ruby
[17:20:14] diego4: has joined #ruby
[17:22:48] A124: ACTION notes its flexible funding.
[17:23:17] A124: ACTION missed that.
[17:23:35] jamesaxl: has joined #ruby
[17:24:08] moeabdol: has joined #ruby
[17:25:23] DEA7TH: has joined #ruby
[17:25:51] symbol: has joined #ruby
[17:25:59] sharkman: has joined #ruby
[17:26:19] firstdayonthejob: has joined #ruby
[17:26:30] AndroUser2: has joined #ruby
[17:27:26] jhn: has joined #ruby
[17:27:32] codecop: has joined #ruby
[17:28:09] phutchins: has joined #ruby
[17:28:27] blackmesa: has joined #ruby
[17:28:30] TheNet: has joined #ruby
[17:29:21] apt-get: has joined #ruby
[17:30:10] n008f4g_: has joined #ruby
[17:33:18] last_staff: has joined #ruby
[17:33:40] sdothum: has joined #ruby
[17:34:37] minimalism: has joined #ruby
[17:35:21] otherj: has joined #ruby
[17:38:47] Pharaoh2: has joined #ruby
[17:39:23] htmldrum: has joined #ruby
[17:39:30] EminenceHC: has joined #ruby
[17:39:35] andersoldahl: has joined #ruby
[17:41:51] nhhagen: has joined #ruby
[17:43:19] nhhagen: has joined #ruby
[17:43:43] havenwood: has joined #ruby
[17:44:14] dorei: has joined #ruby
[17:45:12] InternetFriend: has joined #ruby
[17:45:17] Renich: has joined #ruby
[17:45:45] isxek: has joined #ruby
[17:46:17] shebang: has joined #ruby
[17:47:48] shebang: Hey I have a unique sort of problem...
[17:48:56] andersoldahl: has joined #ruby
[17:49:03] eam: probably uniq after sort, it's faster
[17:49:11] shebang: I'm collecting data into a nested hash container, I know only that the first and intermediate keys are all hashes except for the last, which is an array. Also every array element will be a string.
[17:49:31] N3sh108: has joined #ruby
[17:49:35] shebang: I put together a gist example: https://gist.github.com/anonymous/314cf192b884ff26ee01
[17:49:41] N3sh108: hello there!
[17:49:45] jenrzzz: has joined #ruby
[17:49:48] shebang: Hoping maybe someone here might have an idea or two I can try
[17:50:03] simpson: has left #ruby: ("WeeChat 0.3.8")
[17:50:15] N3sh108: I want to iterate from today's date until today + 2 months. Something like: DateTime.now.upto(DateTime.now + 2.month) do |date| /// end
[17:50:29] N3sh108: how do I properly do it?
[17:50:30] InternetFriend: Hey I don't suppose someone would mind helping me resolve a git issue... this is by far the weirdest one I've ever seen
[17:50:37] ndrei: has joined #ruby
[17:50:48] N3sh108: InternetFriend: what is the problem?
[17:50:57] InternetFriend: Well I went to do a commit just like usual
[17:51:05] InternetFriend: And I get "you are currently rebasing"
[17:51:06] N3sh108: git commit -m"lol easy"
[17:51:13] InternetFriend: And I didnt initiate a rebase
[17:51:21] InternetFriend: so i run git rebase --abort
[17:51:29] InternetFriend: and it says "No rebase in progress?"
[17:51:48] N3sh108: try git rebase --continue
[17:51:54] simplyianm: has joined #ruby
[17:51:57] N3sh108: or git --status
[17:52:03] havenwood: has joined #ruby
[17:52:03] N3sh108: to see what's up
[17:52:13] InternetFriend: both return "No rebase in progress"
[17:52:19] chouhoul_: has joined #ruby
[17:52:33] InternetFriend: "You are currently rebasing"
[17:53:51] N3sh108: did you try with --skip, --continue and --abort?
[17:53:58] prefixed: has joined #ruby
[17:53:59] troulouliou_div2: has joined #ruby
[17:54:06] prefixed: why are singleton classes useful
[17:54:14] yxhuvud: could there be a lock file somewhere?
[17:54:32] N3sh108: yeah, check privileges
[17:54:32] apeiros: InternetFriend: #git was usually pretty helpful with my git issues
[17:54:33] shebang: @N3sh108, I'm not sure with ruby but bash makes your date problem simple: `date -d "+$x days" +%F`, then increment x up to 60
[17:54:35] yxhuvud: prefixed: for one thing, it allows you to do clas methods.
[17:54:54] N3sh108: shebang: in ruby though :(
[17:55:04] InternetFriend: thanks i'll check it out
[17:55:21] shebang: sorry, I'm a bash guy, ruby is new
[17:55:27] apeiros: N3sh108: are you in rails or plain ruby? I assume you want to step 1 day each iteration?
[17:56:16] InternetFriend: found it. there was a "rebase-merge" file that was orphaned at some point causing the discrepancy. really weird stuff man.
[17:56:28] patchedmonkey: has joined #ruby
[17:56:39] prefixed: yxhuvud that seems like an obscure way to do it. why did matz make this terrible design decision?
[17:56:44] N3sh108: apeiros: I just fixed it by just using 60 instead of 2.month
[17:56:59] balazs_: Is it possible that curl and backticks are the fastest way to download content from the web ? It's faster than net/http or open-uri for me.
[17:57:00] N3sh108: basically DateTime.now + {days} already does the dirty job for you
[17:57:01] yxhuvud: prefixed: why do you find it horrible?
[17:57:19] blackmesa: has joined #ruby
[17:57:34] chouhoulis: has joined #ruby
[17:57:38] baweaver: has joined #ruby
[17:58:27] prefixed: yxhuvud it is very unclear when written: class << a... blah blah
[17:58:35] shevy: because prefixed is trollolling
[17:58:35] baweaver: has joined #ruby
[17:58:57] prefixed: no. i dislike ruby and sometimes i come in here to ask why the language does terrible things
[17:59:06] prefixed: this is much clearer: def String.value_of obj
[17:59:18] shevy: "why did matz scratch his nose, why was matz born in japan, why did matz call the language ruby and not phuby"
[17:59:24] lubarch: has joined #ruby
[17:59:29] yxhuvud: Then use the second form. I won't stop you (though I'd prefer self)
[17:59:44] inanepenguin: has joined #ruby
[17:59:45] prefixed: shevy why would you ask those questions? those seem totally useles
[17:59:46] apeiros: prefixed: you'll have to find a way to ask in a less inciting form though. otherwise I'll remove you from this channel.
[18:00:28] trav408: has joined #ruby
[18:00:51] shevy: I don't even understand that part about the syntax since you can use "def self.foo"
[18:01:09] eam: shevy: def-initely
[18:01:09] prefixed: ok. well, i am out of hatred for ruby right now. i'll be back when i find something else to hate.
[18:01:11] prefixed: has left #ruby: ()
[18:01:18] shevy: you can also use one of the *eval* like instance_eval or class_eval
[18:01:43] shevy: we can define - !
[18:01:49] SylarRuby: has joined #ruby
[18:02:00] rcvalle: has joined #ruby
[18:02:01] shevy: def -(initely) # or something
[18:02:14] jpfuentes2: has joined #ruby
[18:02:59] umgrosscol: has joined #ruby
[18:03:45] pocketprotector2: has joined #ruby
[18:04:09] symbol: has joined #ruby
[18:04:24] agit0: has joined #ruby
[18:05:11] kirun: has joined #ruby
[18:05:12] shebang: So, real quick anyone think of anything for https://gist.github.com/anonymous/314cf192b884ff26ee01 ? I've tried using merge methods but the fact that the keys are automatically generated makes it impossible past the first layer..
[18:05:23] havenn: has joined #ruby
[18:05:31] riotjones: has joined #ruby
[18:06:09] ndrei: has joined #ruby
[18:06:10] apeiros: shebang: are your trees arbitrarily deep?
[18:06:16] mondayrain: has joined #ruby
[18:06:19] wmoxam: has left #ruby: ("I hate this channel")
[18:06:38] shebang: apeiros: yes, but I know they're all hashes except the last one, which is an array with string elements
[18:06:41] rippa: has joined #ruby
[18:06:56] apeiros: shebang: and you only care about identical subtrees if they start at the same level?
[18:07:03] andersoldahl: has joined #ruby
[18:07:16] shebang: apeiros: that's correct, sorry I should have commented that in the gist
[18:07:40] eam: shebang: I missed the problem you're solving for?
[18:07:52] shebang: https://gist.github.com/anonymous/314cf192b884ff26ee01
[18:07:56] eam: oh, the desired output
[18:08:00] apeiros: shebang: I'd probably search for identical subtrees first
[18:08:09] shebang: I'm trying to consolidate key values if their contents are identical
[18:08:31] baweaver: has joined #ruby
[18:08:32] shebang: apeiros: meaning you'd start at the tree root?
[18:08:46] apeiros: anyway, in 1.9+, you can use the subtree as a key and the keys as value
[18:09:11] apeiros: yes, and merge subtrees. then recurse. i.e. breadth first
[18:09:13] User458764: has joined #ruby
[18:09:14] shebang: cool, I'm only supporting this for Ruby 2+ so good there
[18:11:31] shebang: apeiros: How do you check equality for the last value without iterating down the tree first though? The keys themselves are always different as in the example, it's the array values that overlap
[18:11:58] matugm: has joined #ruby
[18:12:07] andikr: has joined #ruby
[18:12:13] goldfish6744: has joined #ruby
[18:12:16] apeiros: shebang: I'd compare the whole subtree. unless I understood your problem wrong.
[18:13:03] apeiros: i.e. on a single level: inverted = Hash.new { |h, k| h[k] = [] }; tree.each do |key, subtree| inverted[subtree] << key end
[18:13:23] apeiros: then you have all keys which share the same subtree in inverted
[18:14:29] shebang: and then continue that for each level, if I'm understanding right? Won't that error out if your comparing the values that have hashes as values themselves? for instance the Names in my gist?
[18:16:08] shebang: hash_formatted = $hash_audit_out.sort.group_by{ |k,v| v }.each_with_object({}) { |(k,v), h| h[v.map(&:first).join(', ')] = k }
[18:16:24] shebang: ^ I used that, and yes it does consolidate array values,
[18:16:45] shebang: however it fails to consolidate the keys beneath, if their arrays have equal values.
[18:17:03] balazs_: can somebody explain why the thread that uses a Mutex runs about 100000 times more frequently than the one that does not ? http://pastebin.com/kDDtSUvQ
[18:17:04] ruboto: balazs_, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/dca791109f5806e61856
[18:17:04] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[18:17:32] balazs_: sorry, did not know
[18:17:35] bricker: has joined #ruby
[18:18:19] shebang: hey on a side note does ruby support tail recursion?
[18:18:52] shebang: I think I might be able to use that, crazy idea but it's better than nothing
[18:18:56] balazs_: is Mutex.synchronize that much more efficient than puts ?
[18:19:08] allomov: has joined #ruby
[18:19:59] cjbottaro: has joined #ruby
[18:20:28] cjbottaro: has joined #ruby
[18:21:38] casadei: has joined #ruby
[18:21:52] jhass: shebang: sort off, http://nithinbekal.com/posts/ruby-tco/
[18:22:03] jhass: not in practice since it's off by default
[18:23:13] pwnd_nfsw: has joined #ruby
[18:24:12] `based_pdev`: has joined #ruby
[18:24:18] prefixed: has joined #ruby
[18:24:51] leafybasil: has joined #ruby
[18:24:59] Oog: has joined #ruby
[18:25:21] yqt: has joined #ruby
[18:25:32] renderful: has joined #ruby
[18:25:39] prefixed: found something new. why hasn't the ruby community adopted a single documentation standard? rdoc seemed like a fantastic standard, yet matz & friends torpedoed it
[18:27:41] simplyianm: has joined #ruby
[18:27:42] lubarch: has joined #ruby
[18:28:08] prefixed: sec. i am looking for ht elink
[18:28:33] imperator: has joined #ruby
[18:28:48] eam: are we celebrating festivus?
[18:29:06] roshanavand: has joined #ruby
[18:29:21] xblade: has joined #ruby
[18:29:36] ericjphillips: has joined #ruby
[18:29:51] eam: https://en.wikipedia.org/wiki/Festivus#Airing_of_Grievances
[18:30:14] eam: this means next up is the feats of strength, yay
[18:30:21] imperator: it's not until december 23rd, isn't it?
[18:30:22] eam: as soon as prefixed is done, I mean
[18:30:47] crdpink: has joined #ruby
[18:30:49] eam: imperator: I guess it's some unorthodox practice
[18:31:10] jhn: has joined #ruby
[18:31:10] lenwood: has joined #ruby
[18:31:16] Jackneill: has joined #ruby
[18:31:20] Prominent: has joined #ruby
[18:31:24] imperator: lol, it's from Seinfeld
[18:31:50] crdpink: has joined #ruby
[18:31:55] shevy: xmas release \o/
[18:32:12] tomaz_b: has joined #ruby
[18:33:24] platzhirsch: has left #ruby: ()
[18:33:56] davispuh: has joined #ruby
[18:34:52] karapetyan: has joined #ruby
[18:34:52] gdd229: has joined #ruby
[18:34:54] simplyianm: has joined #ruby
[18:35:29] EminenceHC: has joined #ruby
[18:35:36] chouhoulis: has joined #ruby
[18:35:39] karapetyan: has joined #ruby
[18:36:54] slash_nick: ACTION <3 festivus
[18:36:56] prefixed: ok. i take that back for now. I was loking for a documentation standard the other day, and i could have sworn it was rdoc that got deprecated because the main ruby devs didn't like it
[18:37:57] chouhoulis: has joined #ruby
[18:38:30] imperator: has left #ruby: ("Leaving")
[18:38:57] cantaberry: I'm using a fail as the else in a case statement. I don't really have an if condision for the fail. How do I call? rubocop keeps dying on the lack of the fail if test.
[18:39:34] havenn: Cantaberry: Gist the code and the error when rubocop fails?
[18:40:12] prefixed: ah yes. it was rubyspec
[18:40:36] cantaberry: https://gist.github.com/raycrawford/1e1dbbe667b480aa02d0
[18:40:57] Guest53: has joined #ruby
[18:40:58] Miron: has joined #ruby
[18:41:15] cantaberry: Error: https://gist.github.com/raycrawford/33e8a8175bbaf1a5ab09
[18:41:24] karapetyan: has joined #ruby
[18:41:29] shevy: if (true)
[18:41:30] havenn: prefixed: RubySpec decided to move the project into Rubinius proper and Ruby core forked it for MRI use.
[18:41:36] EminenceHC: has joined #ruby
[18:42:01] sulky: has joined #ruby
[18:42:01] prefixed: has left #ruby: ()
[18:42:16] zapata: has joined #ruby
[18:42:16] shevy: Cantaberry actually, can you try on a simple test-case when menu? perhaps rubocop always fails when fail() is used in case/when, then it's a bug in rubocop clearly
[18:42:48] apeiros: Cantaberry: it complains about your if, not about your case/when
[18:42:50] despai: has joined #ruby
[18:43:03] apeiros: the `if (true)` is pointless. you can just leave it away.
[18:43:17] cantaberry: Right. It's the fail. If I 'don't put an if, it complains, but it won't let me put an always true like 1 or ture.
[18:43:51] apeiros: what does it complain about without the `if`?
[18:44:07] apeiros: Cantaberry: btw., you can add multiple files to a single gist. no need to make multiple gists.
[18:44:32] cantaberry: It's making a liar out of me.
[18:44:38] cantaberry: Looks like it worked that time.
[18:44:49] cantaberry: Prior it was. Oh. Failing on trailing whitespace.
[18:44:59] cantaberry: Rubocop is killing me today.
[18:45:27] EmeraldExplorer: has joined #ruby
[18:46:03] rushed: has joined #ruby
[18:46:53] based_pdev: has joined #ruby
[18:47:17] m8: has joined #ruby
[18:47:30] kadoppe: has joined #ruby
[18:47:33] shevy: the fail was on whitespace, not on the fail() fail?
[18:47:53] shevy: trailing whitespace warnings is one of the most useful warnings for me with rubocop :)
[18:48:08] havenwood: has joined #ruby
[18:48:08] shevy: very uncontroversial compared to other warnings
[18:49:00] yxhuvud: shevy: I've told my emacs to remove them on save, as well as display them in a very obvious red color
[18:51:35] ngscheur1: has joined #ruby
[18:52:07] troulouliou_div2: has joined #ruby
[18:52:15] shevy: cool, I should use a better editor than notepad one day!
[18:52:46] devoldmx: has joined #ruby
[18:52:55] Coldblackice_: has joined #ruby
[18:53:09] EmeraldExplorer: has joined #ruby
[18:53:11] N3sh108: has joined #ruby
[18:53:13] cornerma1: has joined #ruby
[18:53:26] N3sh108: I am going crazy with this stuff!
[18:53:39] jobewan: has joined #ruby
[18:54:12] N3sh108: So, I am fetching some data with Mechanize and that works great. I 'puts' it and everything looks fine. When I add it to a SQL query, it gets all messed up
[18:54:35] N3sh108: For some reason, it doesn't do the shit properly
[18:55:48] SylarRuby: has joined #ruby
[18:56:17] patchedmonkey: has joined #ruby
[18:57:58] BraddPitt: N3sh108 please post some example code with input, actual output and expected output
[18:58:45] skade: has joined #ruby
[18:59:03] dikaio: has joined #ruby
[18:59:04] N3sh108: ok BraddPitt
[18:59:10] Musashi007: has joined #ruby
[18:59:20] shevy: So here is a regex http://rubular.com/r/zsUM7NpCYx - I do not entirely understand the real meaning of (.*?), does the ? make only the * before it optional, or both the .* part?
[18:59:37] ta: has joined #ruby
[18:59:53] hal_9000_: ? doesn???t mean optional in that context
[19:00:05] hal_9000_: it means non-greedy, i think
[19:00:27] allomov: has joined #ruby
[19:01:06] banister: has joined #ruby
[19:01:25] krisquigley: has joined #ruby
[19:02:34] N3sh108: Here you go BraddPitt: http://pastebin.com/PwLH63E3
[19:02:34] ruboto: N3sh108, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[19:02:46] EminenceHC: has joined #ruby
[19:03:07] hal_9000_: lol @ r u b o t o
[19:03:21] apt-get_: has joined #ruby
[19:03:43] N3sh108: I think I remember you from somewhere long long ago
[19:03:57] hal_9000_: N3sh108: in real life or what?
[19:03:58] N3sh108: you were cool as fuck, I don't know why I remember that
[19:04:03] dionysus69: has joined #ruby
[19:04:04] N3sh108: from some other IRC channel
[19:04:09] N3sh108: [no stalker, don't worry]
[19:04:10] ged: Because he is!
[19:04:27] ged: <3 hal9k
[19:04:37] N3sh108: have you been around long?
[19:04:37] ruby-lang000: has joined #ruby
[19:04:48] hal_9000_: trying to remember what other channels i???ve been in
[19:04:50] N3sh108: if so, did you have any channels you hung around often?
[19:05:10] hal_9000_: started maybe 8 yrs ago but with long hiatuses (hiati?)
[19:05:25] N3sh108: [hiatuses is probably fine]
[19:05:39] hal_9000_: N3sh108: my main interests are ruby and space-related (on IRC anyway)
[19:05:54] hal_9000_: and lojban i guess
[19:06:02] N3sh108: mmm, I spent a lot of time in here for erlang
[19:06:13] hal_9000_: i can barely read erlang :)
[19:06:21] riotjones: has joined #ruby
[19:06:37] N3sh108: dunno then, hi anyway! :D
[19:07:00] shevy: poor hal gets stalked
[19:07:02] hal_9000_: it???s possible it was someone else - there is a hal9000 with no unerscore after the L :)
[19:07:17] N3sh108: Anyway, as extension to my question: does puts do anything special to whatever it outputs?
[19:07:20] hal_9000_: hey I???d 10x rather be stalked than ignored
[19:07:30] shevy: N3sh108 yes - it ignores one trailing newline
[19:07:38] freezevee: has joined #ruby
[19:07:43] hal_9000_: it also adds one if needed
[19:07:45] N3sh108: so maybe I should remove it
[19:08:13] shevy: print is the raw hero of every untold story
[19:08:35] riotjones: has joined #ruby
[19:08:35] hal_9000_: if you *want* multple newlnes, just make sure there is a non-newline at the end: puts ???like this\n\n\n ???
[19:08:59] hal_9000_: that would print 5 lines if i cont correctly
[19:09:24] yqt: has joined #ruby
[19:09:35] hal_9000_: our 4 i guess
[19:09:48] hal_9000_: me type pretty one day
[19:10:00] andersoldahl: has joined #ruby
[19:10:10] shevy: well the world won't collapse either way, be it 5, 4 or 3 lines
[19:10:19] hal_9000_: N3sh108: are you ever in #elixir-lang btw?
[19:10:31] xblade: has joined #ruby
[19:10:47] hal_9000_: shevy: i suppose eventually the world *will* collapse ;)
[19:11:22] N3sh108: no never :P
[19:11:34] N3sh108: arggg, what's wrong with this shtttt
[19:12:23] based_pdev_: has joined #ruby
[19:12:24] hal_9000_: I recommend you look into elixir if you like ruby and erlang
[19:12:44] N3sh108: anyway, I tried the unsung raw hero
[19:12:52] N3sh108: and prints doesn't print anything
[19:12:54] N3sh108: but puts does
[19:13:12] hal_9000_: are you printing to STDOUT?
[19:13:22] N3sh108: just 'print time'
[19:13:25] N3sh108: and 'puts time'
[19:13:31] hal_9000_: two ways to fix
[19:13:44] hal_9000_: either do STDOUT.flush after a print
[19:13:51] allomov: has joined #ruby
[19:14:05] hal_9000_: or else do STDOUT.sync = true just once at beginning
[19:14:12] nolic: has joined #ruby
[19:14:44] hal_9000_: terminal output is buffered until there is a newline or a flush operation
[19:15:21] N3sh108: I don't get why this doesn't work though
[19:15:21] BackEndCoder: has joined #ruby
[19:15:25] N3sh108: the query works
[19:15:34] N3sh108: puts writes the right stuff
[19:15:39] N3sh108: it should be simple!
[19:16:15] hal_9000_: you could also use a puts after your print
[19:16:28] simplyianm: has joined #ruby
[19:16:40] N3sh108: is there something that a print cannot print and puts can?
[19:16:48] N3sh108: maybe that's what is screwing up my query
[19:16:49] neonalpine: has joined #ruby
[19:17:00] N3sh108: some invisible char maybe
[19:17:01] pocketprotector2: has joined #ruby
[19:17:05] hal_9000_: can you show your code in a gist or something?
[19:17:14] whippythellama: has joined #ruby
[19:17:23] N3sh108: please be good with be ruboto: http://pastebin.com/PwLH63E3
[19:17:23] ruboto: N3sh108, as I told you already, please use https://gist.github.com
[19:17:26] hal_9000_: probably simpler than any invisible char
[19:18:00] N3sh108: here you go
[19:18:09] victortyau: has joined #ruby
[19:18:12] ngscheurich: has joined #ruby
[19:18:26] hal_9000_: seems straightforward. did you understand what i said a few min ago?
[19:18:51] N3sh108: you said stuff
[19:19:27] N3sh108: the trailing \n ?
[19:19:40] hal_9000_: try this: change every puts to a print; add an ???empty??? puts afterward - what does that give you?
[19:19:44] shevy: there will be at least one when you use puts
[19:20:57] HoloIRCUser2: has joined #ruby
[19:21:33] but3k4: has joined #ruby
[19:22:05] rushed: has joined #ruby
[19:22:11] N3sh108: Ok, it works now
[19:22:17] N3sh108: but I get really different stuff
[19:22:18] adac: has joined #ruby
[19:22:29] shevy: the fate of the unlucky - always having problems
[19:22:40] tmillc: has joined #ruby
[19:22:52] gusTester: has joined #ruby
[19:23:33] nettoweb: has joined #ruby
[19:24:03] N3sh108: here you go: https://gist.github.com/Nesh108/e3063beee9f465d10029
[19:24:46] N3sh108: it makes absolutely no sense to me
[19:24:48] rhllor: has joined #ruby
[19:25:59] eam: N3sh108: run your script like ./arggggg.rb | xxd -- and put that output in a gist
[19:26:04] hal_9000_: i think i see what is happening :)
[19:26:32] hal_9000_: N3sh108: do you know how to interpolate variables in a string?
[19:26:50] N3sh108: I tried "string" + <var> + "rest"
[19:27:02] N3sh108: and "string #{var} rest"
[19:27:37] hal_9000_: puts ???Dest: #{dest}, Time: #{time}, Price: #{price}???
[19:28:02] eam: N3sh108: you have \r mixed in your strings
[19:28:07] eam: pipe it through xxd or od
[19:28:15] eam: show us that output please
[19:28:37] darkxploit: has joined #ruby
[19:28:39] eam: you can tell because the last price is left justified
[19:28:44] shevy: these are nasty
[19:28:49] eam: which means it's something like price = "\r13.00"
[19:28:57] shevy: but when you run ruby with warning, it will tell you when you have \r embedded
[19:29:18] eam: when in doubt, xxd it out
[19:29:27] Pupeno: has joined #ruby
[19:29:30] eam: Never Trust A Terminal
[19:29:34] N3sh108: xxd says nothing though
[19:29:40] eam: no output at all?
[19:29:42] N3sh108: ruby checker.rb | xxd --
[19:29:47] N3sh108: nada for now
[19:29:57] eam: just |xxd
[19:30:16] N3sh108: got crazy stuff for a bit
[19:30:24] eam: gist it?
[19:30:32] eam: the whole thing, including the command if you please
[19:31:37] eam: you ran ./argggg.rb | xxd, right? Copy the command *and* the output into the gist so we can see exactly what you see
[19:31:46] N3sh108: https://gist.github.com/Nesh108/ab4ba190c04b2bb27f50
[19:32:00] N3sh108: well my actual script is much longer
[19:32:09] N3sh108: but what you see is pretty much the important bits
[19:32:30] yfeldblum: has joined #ruby
[19:32:37] N3sh108: but if the problem is '\r' can't I just use gsub("\r","") ?
[19:33:03] eam: N3sh108: see the "0a0d" before the 13.00 on line 0000050 ?
[19:33:31] eam: N3sh108: yes, you can gsub out \r
[19:33:58] eam: N3sh108: xxd shows you the actual text on the left hand side and the ascii values (including values for unprintables) on the righthand side
[19:34:08] eam: it's very useful if you need to examine control characters like this
[19:34:14] EminenceHC: has joined #ruby
[19:34:25] baweaver: has joined #ruby
[19:34:26] N3sh108: yeah, it's very cool :D
[19:34:32] N3sh108: that fixed already quite a bit of problems!
[19:34:33] eam: as xxd shows, the text really is being printed -- it's just that the \r is left justifying the cursor and subsequent text overwrites
[19:34:55] shevy: eam knows the arcane unix commands that everyone has long forgotten
[19:35:00] jenrzzz: has joined #ruby
[19:35:09] eam: shevy: you should join my arcane unix stuff group
[19:35:19] eam: I did a bit on terminals to kick it off
[19:35:55] eam: the history of ascii and control characters is fascinating
[19:36:32] alienaut: has joined #ruby
[19:36:47] N3sh108: thanks guys :D
[19:36:48] baweaver: eam is working on his gray beard
[19:37:30] eam: it's coming in pretty fast =/
[19:39:37] NeverDie: has joined #ruby
[19:40:05] htmldrum: has joined #ruby
[19:40:20] hephaestus_rg: has joined #ruby
[19:40:23] symm-: has joined #ruby
[19:40:42] willardg: has joined #ruby
[19:41:13] roshanavand: has joined #ruby
[19:41:52] JDiPierro: has joined #ruby
[19:43:00] shevy: full body beard
[19:43:04] evanjs_: has joined #ruby
[19:43:04] ghormoon: has joined #ruby
[19:43:26] shevy: the older we get, the more closely we approach our furry ancestors - if only they would have been programming already
[19:47:25] lxsameer: has joined #ruby
[19:47:25] lxsameer: has joined #ruby
[19:47:50] shadoi: has joined #ruby
[19:48:21] User4587_: has joined #ruby
[19:51:14] havenwood: has joined #ruby
[19:53:13] k3asd`: has joined #ruby
[19:53:30] devoldmx: has joined #ruby
[19:54:57] snockerton: has joined #ruby
[19:56:56] otacon-_: has joined #ruby
[19:58:09] arooni: has joined #ruby
[19:58:12] casadei: has joined #ruby
[19:58:12] cdg: has joined #ruby
[19:58:45] Guest53: has joined #ruby
[19:58:52] |T_T|: has joined #ruby
[19:59:06] chipotle: has joined #ruby
[20:01:55] Guest37: has joined #ruby
[20:02:22] Guest37: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:04:26] roshanavand: has joined #ruby
[20:06:06] baweaver: has joined #ruby
[20:06:35] sdwrage: has joined #ruby
[20:07:17] karapetyan: has joined #ruby
[20:07:32] neonalpine: has joined #ruby
[20:07:46] Shoutsid: has joined #ruby
[20:09:19] riotjones: has joined #ruby
[20:09:27] Pupeno: has joined #ruby
[20:11:30] simplyianm: has joined #ruby
[20:12:14] inanepenguin: has joined #ruby
[20:13:16] nettoweb: has joined #ruby
[20:13:49] _djbkd: has joined #ruby
[20:14:54] fullofcaffeine: has joined #ruby
[20:15:28] gigetoo: has joined #ruby
[20:17:24] sharkman: has joined #ruby
[20:18:41] loveablelobster: has joined #ruby
[20:18:50] solocshaw: has joined #ruby
[20:18:54] darkxploit: has joined #ruby
[20:21:01] pocketprotector2: has joined #ruby
[20:21:08] snockerton: has joined #ruby
[20:21:46] ekinmur: has joined #ruby
[20:22:38] alienaut_: has joined #ruby
[20:22:58] fullofcaffeine: has joined #ruby
[20:23:20] simplyianm: has joined #ruby
[20:24:21] paulcsmith_: has joined #ruby
[20:25:08] Limix: has joined #ruby
[20:25:22] SylarRuby: has joined #ruby
[20:25:43] arup_r: >> {}.delete('a') # don't blows up. It is very good for me
[20:25:44] ruboto: arup_r # => nil (https://eval.in/445813)
[20:25:57] willardg: has joined #ruby
[20:27:25] BraddPitt: is chaining blocks not ruby-like?
[20:27:35] BraddPitt: for example i did this
[20:27:36] BraddPitt: modules .select { |k,_| should_install?(k) } .each { |k,v| puts "Installing module: #{k}"; v.call }
[20:27:59] Aria: That's like every bit of ruby I've ever written
[20:28:04] EminenceHC: has joined #ruby
[20:28:17] baweaver: except the select doesn't really seem necessary for that one.
[20:28:36] BraddPitt: i suppose i dont need it
[20:28:37] baweaver: no sense in looping more than you have to.
[20:28:58] baweaver: it's perfectly fine ruby to chain blocks, just make sure you actually need to.
[20:29:28] balazs_: Is it possible that curl and backticks are the fastest way to download content from the web ? It's faster than net/http or open-uri for me.
[20:30:33] sdwrage: has joined #ruby
[20:31:11] universa1: has joined #ruby
[20:31:27] ngscheurich: has joined #ruby
[20:31:30] linc01n: has joined #ruby
[20:33:04] shevy: perhaps curl itself is superfast
[20:35:06] darix: balazs_: depends on what you want to do.
[20:35:14] benaiah: has joined #ruby
[20:35:37] darix: also there are curl bindings
[20:36:16] inanepenguin: has joined #ruby
[20:37:40] tvw: has joined #ruby
[20:37:46] Guest36: has joined #ruby
[20:38:07] shevy: they may be slower :D
[20:39:25] e1senhorn: has joined #ruby
[20:39:41] simplyianm: has joined #ruby
[20:40:52] fullofcaffeine: has joined #ruby
[20:41:34] borkdude: has joined #ruby
[20:42:42] skade: has joined #ruby
[20:42:59] phutchins: has joined #ruby
[20:43:39] balazs_: darix: just downloading a static page from localhost in parallel
[20:43:55] Brando753-o_O_o: has joined #ruby
[20:44:15] darix: balazs_: there are so many reasons why forking out curl a few time can be faster than plain net/http within ruby
[20:44:29] darix: e.g. how did you do parallel downloading in ruby?
[20:44:46] yasu_: has joined #ruby
[20:44:46] ghoti: has joined #ruby
[20:45:00] patchedmonkey: has joined #ruby
[20:45:16] armyriad: has joined #ruby
[20:45:22] balazs_: I created 100 threads
[20:45:49] sysanthrope: has joined #ruby
[20:45:49] ElderFain: has joined #ruby
[20:45:49] RealMarc: has joined #ruby
[20:45:49] soloone: has joined #ruby
[20:45:49] ytti: has joined #ruby
[20:46:18] Billias: has joined #ruby
[20:46:18] LBRapid_: has joined #ruby
[20:46:18] fedexo: has joined #ruby
[20:46:18] nicdev_`: has joined #ruby
[20:46:18] universa1: has joined #ruby
[20:46:18] |T_T|: has joined #ruby
[20:46:18] k3asd`: has joined #ruby
[20:46:18] whippythellama: has joined #ruby
[20:46:18] nolic: has joined #ruby
[20:46:18] Musashi007: has joined #ruby
[20:46:18] EmeraldExplorer: has joined #ruby
[20:46:18] crdpink: has joined #ruby
[20:46:18] pwnd_nfsw: has joined #ruby
[20:46:18] ndrei: has joined #ruby
[20:46:18] jpfuentes2: has joined #ruby
[20:46:18] jamesaxl: has joined #ruby
[20:46:18] dravine: has joined #ruby
[20:46:18] Klumben: has joined #ruby
[20:46:19] johnhamelink: has joined #ruby
[20:46:19] SenpaiSilver: has joined #ruby
[20:46:19] wookiehangover: has joined #ruby
[20:46:19] drbrain: has joined #ruby
[20:46:19] rfv: has joined #ruby
[20:46:19] Lildirt: has joined #ruby
[20:46:19] johnzorn: has joined #ruby
[20:46:19] catbusters: has joined #ruby
[20:46:19] SHyx0rmZ: has joined #ruby
[20:46:19] cball: has joined #ruby
[20:46:19] boxrick1: has joined #ruby
[20:46:19] Ebok: has joined #ruby
[20:46:19] ex0ns: has joined #ruby
[20:46:19] Contigi: has joined #ruby
[20:46:19] M-Kodo: has joined #ruby
[20:46:19] demophoon: has joined #ruby
[20:46:19] avdi: has joined #ruby
[20:46:19] ZucchiniZe: has joined #ruby
[20:46:19] adaedra: has joined #ruby
[20:46:19] mistym: has joined #ruby
[20:46:19] Didac: has joined #ruby
[20:46:19] znz_jp: has joined #ruby
[20:46:19] Stan: has joined #ruby
[20:46:19] snapcase: has joined #ruby
[20:46:19] segmond: has joined #ruby
[20:46:19] verdoc: has joined #ruby
[20:46:20] cek: has joined #ruby
[20:46:20] skullcrasher: has joined #ruby
[20:46:20] iooner: has joined #ruby
[20:46:20] msb_: has joined #ruby
[20:46:20] ltd: has joined #ruby
[20:46:20] Keltia: has joined #ruby
[20:46:20] xMopxShell: has joined #ruby
[20:46:20] v0n: has joined #ruby
[20:46:20] chris2: has joined #ruby
[20:46:20] mighty_gorilla: has joined #ruby
[20:46:20] Flipez: has joined #ruby
[20:46:20] waxjar: has joined #ruby
[20:46:20] bf4: has joined #ruby
[20:46:20] Voxxit: has joined #ruby
[20:46:20] apipkin: has joined #ruby
[20:46:20] bcavileer: has joined #ruby
[20:46:20] akitada: has joined #ruby
[20:46:20] calleerlandsson: has joined #ruby
[20:46:20] gyre007: has joined #ruby
[20:46:20] nickfausnight: has joined #ruby
[20:46:20] holsee_: has joined #ruby
[20:46:20] knowtheory: has joined #ruby
[20:46:20] krainboltgreene: has joined #ruby
[20:46:20] manveru: has joined #ruby
[20:46:20] bjeanes: has joined #ruby
[20:46:20] tonini: has joined #ruby
[20:46:20] MiracleBlue: has joined #ruby
[20:46:20] marsjaninzmarsa: has joined #ruby
[20:46:20] FastJack: has joined #ruby
[20:46:20] tobiasvl: has joined #ruby
[20:46:20] rcs: has joined #ruby
[20:46:20] nibbo: has joined #ruby
[20:46:21] sfr^: has joined #ruby
[20:46:21] jimeh: has joined #ruby
[20:46:21] Nightmare: has joined #ruby
[20:46:21] jhass: has joined #ruby
[20:46:21] hostess: has joined #ruby
[20:46:21] harryk_: has joined #ruby
[20:46:21] eregon: has joined #ruby
[20:46:21] terrellt: has joined #ruby
[20:46:21] DarkBushido: has joined #ruby
[20:46:21] Shidash: has joined #ruby
[20:46:21] jaxxstorm: has joined #ruby
[20:46:21] ZeeNoodleyGamer: has joined #ruby
[20:46:21] george2: has joined #ruby
[20:46:21] sevin: has joined #ruby
[20:46:21] kiki_lamb: has joined #ruby
[20:46:21] teotwaki: has joined #ruby
[20:46:21] csaunders: has joined #ruby
[20:46:21] skakri: has joined #ruby
[20:46:21] ZYPP: has joined #ruby
[20:46:21] tskogberg: has joined #ruby
[20:46:21] z3uS: has joined #ruby
[20:46:41] lokulin: has joined #ruby
[20:46:51] adaedra: I joined `derpy side, there's more people
[20:46:51] epochwolf: has joined #ruby
[20:47:00] asi_: has joined #ruby
[20:47:06] torpig: has joined #ruby
[20:47:06] adaedra: here it is
[20:47:10] fedexo: has joined #ruby
[20:47:19] sfr^: has joined #ruby
[20:47:21] Lildirt: has joined #ruby
[20:47:33] msb_: has joined #ruby
[20:47:36] Contigi: has joined #ruby
[20:47:38] xMopxShell: has joined #ruby
[20:47:41] SenpaiSilver: has joined #ruby
[20:47:59] rushed: has joined #ruby
[20:48:07] iooner: has joined #ruby
[20:48:41] chris2: has joined #ruby
[20:48:58] Didac: has joined #ruby
[20:49:07] naftilos76: has joined #ruby
[20:49:52] Soda: has joined #ruby
[20:49:54] workmad3: has joined #ruby
[20:50:25] cschneid: has joined #ruby
[20:50:47] Apocalypse: has joined #ruby
[20:50:47] Apocalypse: has joined #ruby
[20:50:49] Klumben: has joined #ruby
[20:51:48] sdwrage: has joined #ruby
[20:52:01] rideh: has joined #ruby
[20:52:03] minimalism: has joined #ruby
[20:52:57] Kamilion: has joined #ruby
[20:53:45] torpig: has joined #ruby
[20:54:12] Musashi007: has joined #ruby
[20:54:42] IanV0rn2341: has joined #ruby
[20:54:51] htmldrum: has joined #ruby
[20:54:53] cout: has joined #ruby
[20:55:02] glundgren: has joined #ruby
[20:55:06] TDJACR: has joined #ruby
[20:55:27] neonalpine: has joined #ruby
[20:55:35] avdi: has joined #ruby
[20:56:09] rfv: has joined #ruby
[20:56:13] chouhoul_: has joined #ruby
[20:56:13] gyre007: has joined #ruby
[20:56:30] AustinMatherne: has joined #ruby
[20:57:28] willardg: has joined #ruby
[20:57:32] apipkin: has joined #ruby
[20:58:10] shevy: what has `derpy been doing again
[20:58:52] casadei: has joined #ruby
[20:58:53] zrl: has joined #ruby
[20:59:03] Rollabunna: has joined #ruby
[20:59:09] EminenceHC: has joined #ruby
[20:59:21] jessemcgilallen: has joined #ruby
[20:59:28] Shoutsid: has joined #ruby
[20:59:36] marr: has joined #ruby
[21:00:01] valkyrka: has joined #ruby
[21:00:10] adaedra: it was on the other side of the netsplit
[21:00:27] i: has joined #ruby
[21:00:46] ZucchiniZe: has joined #ruby
[21:00:51] shevy: so he is doing his splits again
[21:00:51] drbrain: balazs_: using net-http to download to a string is not the best way to download large files
[21:01:21] balazs_: drbrain: what is the best/fastest way ?
[21:02:03] boxrick1: has joined #ruby
[21:02:16] krisquigley: has joined #ruby
[21:02:43] akitada: has joined #ruby
[21:03:07] jhass: "heroic entity"
[21:03:22] willardg: has joined #ruby
[21:03:50] Shoutsid: has joined #ruby
[21:04:38] jenrzzz: has joined #ruby
[21:04:47] sdwrage: has joined #ruby
[21:06:29] drbrain: balazs_: 1) use persistent connections 2) download using block-form for large files (100K+ or so)
[21:07:11] drbrain: for 2): http://docs.ruby-lang.org/en/2.2.0/Net/HTTP.html#class-Net::HTTP-label-Streaming+Response+Bodies
[21:07:21] mpistone: has joined #ruby
[21:07:31] SenpaiSilver: has joined #ruby
[21:08:05] drbrain: for persistent connections, call #start before using any request methods
[21:09:59] dopie: has joined #ruby
[21:10:01] discypher: has joined #ruby
[21:10:12] riotjones: has joined #ruby
[21:10:32] wharr_: has joined #ruby
[21:10:34] pocketprotector2: has joined #ruby
[21:11:05] riotjones: has joined #ruby
[21:11:28] ruby_trap: has joined #ruby
[21:11:31] inanepenguin: has joined #ruby
[21:11:54] tomphp: has joined #ruby
[21:11:58] havenwood: ruby_trap: hi
[21:12:02] ruby_trap: need help in one code
[21:12:11] ruby_trap: actually concept
[21:13:08] Guest53: has joined #ruby
[21:13:15] ruby_trap: unicorn is getting killed with sigquit
[21:13:24] ruby_trap: i guess its the master cuz its not respawning
[21:13:29] ruby_trap: and server gets stuck
[21:13:38] ruby_trap: i do have unicorn-worker-killer
[21:13:42] ruby_trap: but what to do with master
[21:13:47] ruby_trap: any way to restart it?
[21:13:54] ruby_trap: automatically
[21:14:08] sepp2k: has joined #ruby
[21:15:32] craysiii: has joined #ruby
[21:17:14] shevy: sometimes I wonder if these questions are copy/pasted from some stackoverflow question
[21:17:16] bakedb: has joined #ruby
[21:18:53] lenwood: has joined #ruby
[21:19:04] EminenceHC: has joined #ruby
[21:19:31] stamina: has joined #ruby
[21:19:43] andersoldahl: has joined #ruby
[21:21:54] dravine: has joined #ruby
[21:24:41] jessemcgilallen: has joined #ruby
[21:24:41] maikowblue_: has joined #ruby
[21:24:44] havenwood: ruby_tr, oh left already?
[21:24:47] rushed: has joined #ruby
[21:24:49] Kendos-Kenlen: has joined #ruby
[21:27:09] beauby: has joined #ruby
[21:29:01] yfeldblum: has joined #ruby
[21:29:17] Pupeno: has joined #ruby
[21:31:33] willardg: has joined #ruby
[21:31:38] blackmesa: has joined #ruby
[21:32:32] gusTester: has joined #ruby
[21:33:54] Oog: has joined #ruby
[21:34:18] jenrzzz: has joined #ruby
[21:34:39] dopie: has joined #ruby
[21:34:52] Azure: has joined #ruby
[21:34:56] sepp2k: has joined #ruby
[21:35:33] mrsolow: has joined #ruby
[21:37:42] ericjphillips: has joined #ruby
[21:38:14] Pupeno: has joined #ruby
[21:40:42] symm-: has joined #ruby
[21:41:07] sent-hil: has joined #ruby
[21:43:16] baweaver: has joined #ruby
[21:47:07] sts: has joined #ruby
[21:47:21] sts_: has joined #ruby
[21:48:06] symm-: has joined #ruby
[21:49:05] User458764: has joined #ruby
[21:51:31] krisquigley: has joined #ruby
[21:53:04] User4587_: has joined #ruby
[21:54:17] devoldmx: has joined #ruby
[21:54:44] apt-get: has joined #ruby
[21:55:00] dravine_: has joined #ruby
[21:55:52] Authenticator: has left #ruby: ()
[21:58:13] Oog: has joined #ruby
[21:58:40] gusTester: has left #ruby: ()
[21:58:42] Azure: has joined #ruby
[21:59:34] tengyokura: has joined #ruby
[21:59:42] wldcordeiro: has joined #ruby
[22:00:55] snath: has joined #ruby
[22:01:25] workmad3: has joined #ruby
[22:02:31] neonalpine: has joined #ruby
[22:04:05] snath: has left #ruby: ()
[22:04:53] willardg: has joined #ruby
[22:05:08] dfockler: has joined #ruby
[22:05:18] roshanavand: has joined #ruby
[22:06:29] _blizzy_: has joined #ruby
[22:07:22] shevy: has joined #ruby
[22:07:54] Pharaoh2: has joined #ruby
[22:07:56] bap1313: has joined #ruby
[22:08:47] workmad3: has joined #ruby
[22:10:05] zhkirill: has joined #ruby
[22:10:38] CloCkWeRX: has left #ruby: ()
[22:10:40] WillAmes: has joined #ruby
[22:11:54] riotjones: has joined #ruby
[22:14:01] blaxter: has joined #ruby
[22:14:15] simplyia_: has joined #ruby
[22:14:17] jhn: has joined #ruby
[22:14:22] SylarRuby: has joined #ruby
[22:14:53] TheWhip: has joined #ruby
[22:15:23] Guest123456666: has joined #ruby
[22:15:51] havenn: has joined #ruby
[22:16:46] mary5030: has joined #ruby
[22:17:31] charliesome: has joined #ruby
[22:17:46] cjbottaro: has joined #ruby
[22:19:14] inanepenguin: has joined #ruby
[22:19:41] Motoservo: has joined #ruby
[22:20:13] FernandoBasso: has joined #ruby
[22:20:35] Shoutsid: has joined #ruby
[22:21:04] rickmasta: has joined #ruby
[22:21:05] Prira: has joined #ruby
[22:21:16] corpsicle: has joined #ruby
[22:24:34] Guest85414______: has joined #ruby
[22:25:04] simplyianm: has joined #ruby
[22:25:44] jmhmccr: has joined #ruby
[22:25:50] elliottcable: has joined #ruby
[22:26:41] pmarreck: has joined #ruby
[22:26:49] Azure: has joined #ruby
[22:26:56] renderful: has joined #ruby
[22:27:29] weemsledeux: has joined #ruby
[22:27:47] krainboltgreene: has joined #ruby
[22:28:10] im0b: has joined #ruby
[22:28:45] chouhoulis: has joined #ruby
[22:28:47] PDI: has joined #ruby
[22:29:06] neersighted: has joined #ruby
[22:29:41] keyvan: has joined #ruby
[22:31:04] tkuchiki: has joined #ruby
[22:31:44] saramic: has joined #ruby
[22:32:06] willardg: has joined #ruby
[22:32:14] DEA7TH: has joined #ruby
[22:32:44] shelling__: has joined #ruby
[22:33:06] casadei: has joined #ruby
[22:33:08] akitada: has joined #ruby
[22:33:19] twodayslate: has joined #ruby
[22:35:28] willardg: has joined #ruby
[22:35:58] havenwood: has joined #ruby
[22:36:21] Pharaoh2: has joined #ruby
[22:36:50] Azure: has joined #ruby
[22:37:26] Spami: has joined #ruby
[22:37:56] machty: has joined #ruby
[22:37:57] yo61: has joined #ruby
[22:38:01] lacrosse: has joined #ruby
[22:38:05] simplyianm: has joined #ruby
[22:39:06] Spami: has joined #ruby
[22:40:03] bove: has joined #ruby
[22:40:34] benlakey: has joined #ruby
[22:41:06] amclain: has joined #ruby
[22:41:13] lancetw: has joined #ruby
[22:43:17] preyalone: has joined #ruby
[22:43:32] mattprelude: has joined #ruby
[22:44:05] Shoutsid: has joined #ruby
[22:44:14] moeabdol: has joined #ruby
[22:44:26] zhkirill: has joined #ruby
[22:44:59] prosody: has joined #ruby
[22:45:04] jenrzzz: has joined #ruby
[22:45:26] jessemcgilallen: has joined #ruby
[22:46:09] zhkirill: has joined #ruby
[22:46:24] bluOxigen: has joined #ruby
[22:46:39] d10n-work: has joined #ruby
[22:46:48] abra0: has joined #ruby
[22:47:09] baweaver: has joined #ruby
[22:47:43] bruno-: has joined #ruby
[22:49:15] Omni_: has joined #ruby
[22:49:59] solocshaw1: has joined #ruby
[22:50:04] havenn: has joined #ruby
[22:50:07] skade: has joined #ruby
[22:50:54] sanjayu: has joined #ruby
[22:50:56] countryHick: has joined #ruby
[22:51:14] inanepenguin: has joined #ruby
[22:53:04] maikowblue: has joined #ruby
[22:53:15] sp3: I feel the exact same way.
[22:53:38] Heero: has joined #ruby
[22:55:24] TheWhip: has joined #ruby
[22:57:09] adaedra: Too much activity in here.
[22:57:38] craysiii: can you stop spamming! i can't read all the messages
[22:57:48] Musashi007: has joined #ruby
[22:58:02] tubuliferous: has joined #ruby
[22:58:50] Radar: all hail Elixir, our new king! :D
[22:59:58] Rollabunna: has joined #ruby
[23:00:36] skade: has joined #ruby
[23:00:36] adaedra: I thought it was crystal
[23:00:43] Radar: DEATH TO JAVASCRIPT
[23:01:22] havenn: ElixirScript https://github.com/bryanjos/elixirscript#readme
[23:01:34] adaedra: Sorry, didn't catch that, it seems it has been lost in a callback.
[23:01:47] havenn: adaedra: undefined
[23:01:59] adaedra: But is it a function ?
[23:03:32] havenn: adaedra: hah ;)
[23:05:16] Channel6: has joined #ruby
[23:05:37] ellisTAA: has joined #ruby
[23:05:59] tkuchiki: has joined #ruby
[23:05:59] johnzorn: has joined #ruby
[23:06:27] shevy: will it blend?
[23:07:01] andersoldahl: has joined #ruby
[23:08:19] inanepenguin: has joined #ruby
[23:09:42] ericjphillips: has joined #ruby
[23:10:34] platzhirsch: has joined #ruby
[23:11:25] Meow-J: has joined #ruby
[23:11:32] Musashi007: has joined #ruby
[23:12:36] iamdevnul: has joined #ruby
[23:12:43] riotjones: has joined #ruby
[23:13:37] riotjones: has joined #ruby
[23:14:53] Renich: has joined #ruby
[23:15:10] slash_nick: is it an animal?
[23:15:14] Lloyd: has joined #ruby
[23:15:14] Shoutsid: has joined #ruby
[23:15:27] pipework: Is it a mineral?
[23:15:40] EmeraldExplorer: has joined #ruby
[23:16:01] slash_nick: does it quack like a duck?
[23:16:49] cantaberry: I'm trying to set up scp from one machine to another. I have an idea for how to move the public key for scp, but how do I get the new machine's machine key into the know_hosts on the source (from which the user's public key came from)?
[23:16:59] DukeDave: has joined #ruby
[23:17:14] EminenceHC: has joined #ruby
[23:17:27] mroth: has joined #ruby
[23:17:29] cantaberry: Sorry. Wrong channel.
[23:17:42] slash_nick: Cantaberry: http://askubuntu.com/questions/4830/easiest-way-to-copy-ssh-keys-to-another-machine might help
[23:17:53] ckrailo: has joined #ruby
[23:17:54] DoYouKnow_: has joined #ruby
[23:17:54] slash_nick: Cantaberry: that's okay we were just playing 21 questions...
[23:18:02] akahn: has joined #ruby
[23:18:05] diegoviola: has joined #ruby
[23:19:17] tAn: has joined #ruby
[23:20:38] joaomdmoura: has joined #ruby
[23:21:53] weemsledeux: has joined #ruby
[23:23:24] PhilK: has joined #ruby
[23:23:24] Ropeney: has joined #ruby
[23:23:26] _blizzy_: has joined #ruby
[23:24:17] baweaver: has joined #ruby
[23:24:17] boxrick1: has joined #ruby
[23:25:45] colstrom: has joined #ruby
[23:25:48] jabreity: has joined #ruby
[23:26:31] Iacobus: has joined #ruby
[23:28:15] symm-: has joined #ruby
[23:28:33] adaedra: Only 17 left
[23:28:33] rodfersou: has joined #ruby
[23:29:13] amitchellbullard: has joined #ruby
[23:29:17] slash_nick: does it contain the string "pear"?
[23:29:20] culturelabs: has joined #ruby
[23:29:24] slash_nick: and if so, is it a pear?
[23:31:39] zrl_: has joined #ruby
[23:31:45] MVPhelp: has joined #ruby
[23:32:13] shevy: I have a string with a "bear" here, does that count?
[23:33:18] petems: has joined #ruby
[23:33:19] shevy: perl 6!!! http://www.pigdog.org/auto/software_jihad/link/3138.html
[23:33:21] shevy: will ruby prevail?
[23:33:25] spastorino: has joined #ruby
[23:34:10] shevy: Larry said "42 is a very important number"
[23:34:12] adaedra: perl is perl and ruby is ruby.
[23:34:14] ericjphillips1: has joined #ruby
[23:34:22] shevy: and adaedra is undeadra
[23:34:31] ericjphillips1: has left #ruby: ()
[23:34:45] baweaver: congrats on the new nickname, our zombie overlord
[23:35:43] dome22xl: has joined #ruby
[23:35:48] adaedra: ACTION braaaaaiiiiiins
[23:36:21] hck89: has joined #ruby
[23:37:16] ramblinpeck: has joined #ruby
[23:37:28] nickfausnight: has joined #ruby
[23:38:33] troter___: has joined #ruby
[23:39:44] HAL2328_: has joined #ruby
[23:39:46] yfeldblum: has joined #ruby
[23:40:18] jamesaxl|2: has joined #ruby
[23:40:27] AdamMeghji: has joined #ruby
[23:41:51] s00pcan: has joined #ruby
[23:42:48] Pharaoh2: has joined #ruby
[23:46:33] chouhoulis: has joined #ruby
[23:48:11] ledestin: has joined #ruby
[23:49:08] baweaver: why isn't there an Array#=== ?
[23:49:14] rushed: has joined #ruby
[23:49:39] baweaver: >> class Array;def ===(o) self.include?(o) end end; [1,2,3] === 1
[23:49:40] ruboto: baweaver # => true (https://eval.in/445925)
[23:50:28] banister: has joined #ruby
[23:50:28] baweaver: Hash I could see as that'd be more ambiguous
[23:50:29] inanepenguin: has joined #ruby
[23:51:15] baweaver: >> class Hash;def ===(o) self.key?(o) end end; {a: 1, b: 2} === :a
[23:51:17] ruboto: baweaver # => true (https://eval.in/445926)
[23:53:40] rflot: has joined #ruby
[23:53:50] User458764: has joined #ruby
[23:55:07] NeverDie: has joined #ruby
[23:55:16] devoldmx: has joined #ruby
[23:56:53] andersoldahl: has joined #ruby