« Back to channel list

#ruby - 22 July 2015

« Back 1 day Forward 1 day »
[00:01:37] PpPyg: has joined #ruby
[00:03:10] shevy: it's the old way!
[00:03:43] lannonbr: has joined #ruby
[00:03:52] startupality: has joined #ruby
[00:04:11] nitenq: Ox0dea: do you know why I can???t convert : nm = NetAddr.i_to_bits('0xffffff00'.to_i(16)) to a string ? It seems to be an array but i don???t get why
[00:04:14] sankaber: has joined #ruby
[00:04:17] nateberkope: has joined #ruby
[00:04:55] mdcox_: has joined #ruby
[00:05:21] nitenq: and I can???t get the value i want, even if i do a nm[0].to_str
[00:05:28] zenspider: Ox0dea: odd that you quibble "split(//)".length > "chars".length but have no problem opening up Fixnum and adding a whole new (comparatively giant) method.
[00:05:46] iceyec_: has joined #ruby
[00:05:54] shadoi1: has joined #ruby
[00:06:00] Ox0dea: zenspider: We have Integer#bit_length, but not Integer#bits?
[00:06:16] Rutix`away: has joined #ruby
[00:06:17] Rutix`away: has joined #ruby
[00:06:31] lordkryss_: has joined #ruby
[00:06:41] bruno-_: has joined #ruby
[00:06:55] Ox0dea: Additionally, even Rubocop doesn't consider one line "comparatively giant".
[00:06:56] MiracleBlue_: has joined #ruby
[00:07:14] xkickflip_: has joined #ruby
[00:07:16] Ox0dea: inb4 s/line/expression/
[00:07:35] jhass: jeez, this is easily settled: both of you suck. case closed
[00:08:04] Ox0dea: I hope you feel better.
[00:08:09] shevy: I just had to see how people in 1982 programmed in C -> http://shevegen.square7.ch/screenshot.png
[00:08:12] zenspider: I didn't even know about bit_length
[00:08:23] zenspider: n = 42; n.bit_length.downto(0).map { |i| n[i] }
[00:08:55] zenspider: shevy: you should read Lion's commentary of unix V
[00:09:09] zenspider: it's kinda amazing
[00:09:15] Ox0dea: zenspider: You have an OBOE in that snippet.
[00:09:27] Olipro_: has joined #ruby
[00:09:43] zenspider: oboe? I play no musical instruments
[00:09:49] Ox0dea: My condolences.
[00:10:01] kx_: has joined #ruby
[00:10:06] al2o3-cr: wow, chill guys :)
[00:10:21] Ox0dea: Yeah, it was getting pretty rowdy, huh?
[00:10:51] crazydiamond_: has joined #ruby
[00:10:52] al2o3-cr: apparently :)
[00:11:09] Ox0dea: >> ObjectSpace.each_object(Class).select { |c| c.instance_method(:inspect).arity != 0 rescue nil }
[00:11:10] ruboto: Ox0dea # => [Bignum, Fixnum] (https://eval.in/402680)
[00:11:15] shevy: I just fell in love with those oldschool terminals in the 1980s
[00:11:16] Ox0dea: Ruby has more inconsistencies than Web frameworks.
[00:11:41] zenspider: I assume that's base?
[00:11:52] zenspider: no different than the to_s, no?
[00:11:59] Ox0dea: Yes, it's an inappropriate alias.
[00:12:09] zenspider: doesn't seem inappropriate to me
[00:12:18] Ox0dea: #inspect is for inspecting the object, not converting it.
[00:12:37] zenspider: or... converting it to a string for inspection
[00:13:16] Ox0dea: Paul Graham has something to say about that kind of thinking.
[00:13:43] zenspider: I don't care.
[00:13:45] cappsio: has joined #ruby
[00:14:21] lannonbr: has joined #ruby
[00:15:20] zenspider: https://yourlogicalfallacyis.com/appeal-to-authority
[00:15:23] lannonbr: has joined #ruby
[00:15:32] Ox0dea: The Blub paradox transcends its originator.
[00:16:36] Ox0dea: "This is how it's done in my favorite language, so it must be correct."
[00:16:37] bosma: anyone have a tip on how to get all text of a node (using rexml/document)?
[00:16:38] eggoez: has joined #ruby
[00:16:46] bosma: I have code that i think does it but it's inelegant.
[00:17:10] bosma: .text only gets first Text found
[00:17:18] shevy: huh... UNIX seemed to have weird commands like "makewords" or "mismatch"
[00:17:39] al2o3-cr: anyone smoke here?
[00:17:46] bosma: <element>hello <b>there</b> <span><i>test</i></span></element>. would like "hello there test"
[00:18:05] Ox0dea: bosma: children.map(&:text) maybe?
[00:18:17] zenspider: bosma: first step is to get off of rexml if you're doing ANY level of serious parsing
[00:18:27] zenspider: esp wrt size of document... it's horrifically inefficient
[00:18:29] zenspider: (and incorrect)
[00:18:30] bosma: it's not *that* serious. I'd use noko if I could.
[00:18:38] bosma: I'm just converting Colloquy log files (done in XML)
[00:18:53] bosma: no noko support on 64-bit latest Win
[00:18:57] zenspider: that can add up pretty quick (at least, my adium logs are huge)
[00:19:07] bosma: old ones only so many
[00:19:20] Ox0dea: bosma: Oga?
[00:19:32] 18WAAAGJN: has joined #ruby
[00:19:32] alem0lars: has joined #ruby
[00:19:32] silverdust: has joined #ruby
[00:19:32] bosma: is .children a property?
[00:19:57] Ox0dea: It ought to be a method?
[00:20:01] lorikeet: has joined #ruby
[00:20:06] Ox0dea: I've never used REXML.
[00:20:12] chuythong: has joined #ruby
[00:20:38] Ox0dea: Oga is pure Ruby, so you ought to be able to use it on Win64.
[00:20:46] chipotle: has joined #ruby
[00:22:08] nitenq: do you know why I can???t convert : nm = NetAddr.i_to_bits('0xffffff00'.to_i(16)) to a string ? It seems to be an array but i don???t get why
[00:22:34] Ox0dea: nitenq: You want to convert a string of hexadecimal digits to a string of binary digits?
[00:22:46] xcesariox: has joined #ruby
[00:22:52] al2o3-cr: nitenq: pack
[00:22:55] Ox0dea: >> 'ff'.hex.to_s(2)
[00:22:56] ruboto: Ox0dea # => "11111111" (https://eval.in/402681)
[00:23:19] nitenq: oh so no, it???s not what i want
[00:23:33] Ox0dea: nitenq: What do you want 'ff' to turn into?
[00:23:56] nitenq: from 0xffffff00 I want 24
[00:24:24] Fluent: That's not binary...
[00:24:28] nitenq: 0xffffff00 is a net addr
[00:24:32] Ox0dea: That's little-endian bit length.
[00:24:36] al2o3-cr: >> 0xffffff00 >> 24
[00:24:37] nitenq: no it???s not my mistake
[00:24:37] ruboto: al2o3-cr # => 255 (https://eval.in/402682)
[00:24:44] bosma: .texts worked, I tried it before but was using the wrong element.
[00:24:49] bosma: .texts.join
[00:25:08] nitenq: ip = NetAddr.i_to_bits(0xffffff00) give me 24
[00:25:37] al2o3-cr: nitenq: what do you want?
[00:26:34] chipotle: has joined #ruby
[00:26:40] nitenq: I have my netmask in hexadecimal. I want the subnet associated
[00:27:33] workmad3: has joined #ruby
[00:28:40] howdoicomputer: has joined #ruby
[00:28:48] zenspider: you want the number of leading 1's ... yes?
[00:30:00] nitenq: I don???t know what is unclear. I have a netmask in hexadecimal, I use ip = NetAddr.i_to_bits(0xffffff00) to have the associated subnet and now I want to use ???ip??? as a string
[00:32:23] nitenq: but when I do a ip.to_str it gives me the folowing error : heck failed to run: undefined method `to_str' for 24:Fixnum,
[00:32:40] drbrain: use #to_s, you almost never want to use to_str
[00:32:52] drbrain: most objects don't have a to_str
[00:33:02] drbrain: or a to_XXX
[00:33:11] zenspider: you never call to_str explicitly... that's for ruby only
[00:35:04] Oog: has joined #ruby
[00:36:40] Oog: has joined #ruby
[00:37:20] transiency: has joined #ruby
[00:37:30] xkef: has joined #ruby
[00:39:35] nofxx: has joined #ruby
[00:40:36] doodleha_: has joined #ruby
[00:44:30] phutchins: has joined #ruby
[00:46:05] stantonnet: has joined #ruby
[00:46:32] xkickflip: has joined #ruby
[00:47:06] al2o3-cr: >> [0xffffff00].pack('N').unpack('C4')*'.'
[00:47:07] ruboto: al2o3-cr # => "255.255.255.0" (https://eval.in/402685)
[00:47:52] al2o3-cr: it's unclear to me what you want
[00:49:04] al2o3-cr: anyway i'm off to play hangman
[00:50:06] dfockler: has joined #ruby
[00:50:18] nitenq: I had the answer I wanted, I wanted the subnet from the hexa netmask
[00:51:04] centrx: has joined #ruby
[00:51:31] al2o3-cr: nitenq: brilliant :p
[00:52:17] fgo_: has joined #ruby
[00:53:51] pyon: has joined #ruby
[00:54:17] paulcsmith: has joined #ruby
[00:54:25] NeverDie: has joined #ruby
[00:54:44] ledestin: has joined #ruby
[00:55:42] enalix: has joined #ruby
[00:56:10] JCOE: has joined #ruby
[01:00:59] devbug: has joined #ruby
[01:01:39] bosma: Ox0dea, thanks for the Oga suggestion.
[01:02:37] baweaver: has joined #ruby
[01:02:47] RegulationD: has joined #ruby
[01:02:55] shmilan: has joined #ruby
[01:03:39] dimasg: has joined #ruby
[01:07:32] radialneon: has joined #ruby
[01:08:43] cnngimenez: has joined #ruby
[01:08:45] Hobogrammer: has joined #ruby
[01:14:51] tsvenson_: has joined #ruby
[01:15:54] freerobby: has joined #ruby
[01:16:08] bmurt: has joined #ruby
[01:16:12] entropie: has joined #ruby
[01:18:27] EminenceHC: has joined #ruby
[01:19:21] neoseeker191: has joined #ruby
[01:19:51] _djbkd: has joined #ruby
[01:20:27] bl4ckdu5t: has joined #ruby
[01:21:15] Ox0dea: bosma: Sure thing. Blame yorickpeterse if something catches fire.
[01:22:30] christiandsg: has joined #ruby
[01:22:45] [H]unt3r: has joined #ruby
[01:25:13] michael_mbp: has joined #ruby
[01:26:20] Vile`: has joined #ruby
[01:27:59] jbwiv: has joined #ruby
[01:28:29] Lucky_: has joined #ruby
[01:29:07] devbug: has joined #ruby
[01:30:07] gccostabr: has joined #ruby
[01:35:58] webguynow: has joined #ruby
[01:38:00] shoerain: has joined #ruby
[01:38:27] shoerain: has left #ruby: ("WeeChat 1.1.1")
[01:38:57] j4cknewt: has joined #ruby
[01:39:02] allcentury: has joined #ruby
[01:39:10] cxpp: has joined #ruby
[01:41:09] Rubie: has joined #ruby
[01:42:08] mleung: has joined #ruby
[01:42:12] JCOE: has joined #ruby
[01:44:35] bruno-: has joined #ruby
[01:45:32] Oog: has joined #ruby
[01:46:10] jpfuentes2: has joined #ruby
[01:46:24] Lucky_: has joined #ruby
[01:48:51] veduardo: has joined #ruby
[01:52:22] Ox0dea: What's the least hackish way to determine how we were require'd?
[01:52:51] casadei_: has joined #ruby
[01:53:26] RickHull: the filename which did the requiring?
[01:53:39] RickHull: (is that what you mean by how?)
[01:53:58] Ox0dea: I'd rather not muck about in ObjectSpace if possible.
[01:54:17] Ox0dea: And I don't think I can get at the internal loading_table from an extension.
[01:54:34] Ox0dea: Canonicalization makes this tricky. :/
[01:55:34] christiandsg: has joined #ruby
[01:55:57] hfp: has joined #ruby
[01:56:28] hfp_work: has joined #ruby
[01:56:43] mleung: has joined #ruby
[01:56:56] Ox0dea: Wow, Ruby already contains special-casing for GCC 6.
[01:57:30] Stratege: has joined #ruby
[01:57:39] Feyn: has joined #ruby
[01:58:02] failshell: has joined #ruby
[01:59:25] choke: has joined #ruby
[01:59:32] Rodya_: has joined #ruby
[02:00:28] Muhannad: has joined #ruby
[02:02:18] r00tninja: has joined #ruby
[02:04:09] livcd: has joined #ruby
[02:04:28] mdcox: has joined #ruby
[02:04:36] paulcsmith: has joined #ruby
[02:04:37] eggoez: has joined #ruby
[02:05:01] sepp2k: has joined #ruby
[02:05:36] havenwood: has joined #ruby
[02:06:41] swgillespie: has joined #ruby
[02:06:53] tmtwd: has joined #ruby
[02:07:23] r00tninja: Having issues with fswatch..can someone plz help a n00b out? :)
[02:07:34] ruboto: Just ask your question, if anyone has or can, they will respond.
[02:07:51] r00tninja: --- Changed: []
[02:08:06] r00tninja: var/lib/gems/1.9.1/gems/rb-fsevent-0.9.5/bin/fsevent_watch: 1: /var/lib/gems/1.9.1/gems/rb-fsevent-0.9.5/bin/fsevent_watch: ??????????????????: not found
[02:08:19] user1138: has joined #ruby
[02:08:55] r00tninja: var/lib/gems/1.9.1/gems/rb-fsevent-0.9.5/bin/fsevent_watch: Syntax error: "(" unexpected
[02:09:34] totimkopf: has joined #ruby
[02:09:35] sevenseacat: has joined #ruby
[02:10:21] fumihiro: has joined #ruby
[02:10:33] failshell: has joined #ruby
[02:10:36] arooni-mobile: has joined #ruby
[02:10:39] Mendenhall: has joined #ruby
[02:11:17] Ox0dea: r00tninja: Are you on OS X?
[02:11:36] r00tninja: Ubuntu 12.04.5 LTS
[02:11:43] Ox0dea: r00tninja: That file is for OS X.
[02:11:46] Ox0dea: You're using the wrong gem.
[02:11:58] r00tninja: i just did gem install fswatch
[02:12:56] Ox0dea: > A program for triggering a script on file system change (on OS X)
[02:13:03] Ox0dea: r00tninja: You probably want rb-inotify.
[02:13:52] EasyCo: has joined #ruby
[02:13:58] r00tninja: hmm i see only for osx gem
[02:14:16] r00tninja: im trying to use something like fswatch on ubuntu
[02:14:22] Ox0dea: Then you want rb-inotify.
[02:14:38] r00tninja: ill give that a shot then
[02:15:03] r00tninja: thanks Ox0dea!
[02:15:31] Ox0dea: r00tninja: Well, rb-inotify is a wrapper; if you don't necessarily need to go through Ruby, just use inotifywait/inotifywatch.
[02:15:34] Ox0dea: r00tninja: Happy to help.
[02:15:50] r00tninja: yeah dont really need ruby
[02:16:06] r00tninja: anything that can monitor a dir and execute a script on dir change
[02:16:11] workmad3: has joined #ruby
[02:16:16] sharpmachine: has joined #ruby
[02:16:37] Ox0dea: r00tninja: If you're looking for a turnkey solution, you probably want Guard.
[02:16:52] Ox0dea: If you find that's too heavy for your purposes, just apt-get install inotify-tools.
[02:17:33] r00tninja: yeah i was using fswatch dir | xargs -n1 script.sh
[02:17:40] r00tninja: that to mean is dead simple lol
[02:19:02] r00tninja: looks like inotifywatch will do!
[02:19:05] Ox0dea: r00tninja: inotifywait -me modify $dir | xargs ...
[02:19:05] r00tninja: thanks again
[02:19:08] Ox0dea: Sure thing.
[02:19:27] mdcox: has joined #ruby
[02:19:29] r00tninja: ah great! thanks for the cmd :)
[02:20:21] dimasg: has joined #ruby
[02:23:25] audiodude: has joined #ruby
[02:25:19] veduardo: has joined #ruby
[02:25:31] mark06: has joined #ruby
[02:28:03] baweaver: has joined #ruby
[02:28:28] Rodya_: has joined #ruby
[02:29:26] Rubie: has joined #ruby
[02:31:17] bungoman: has joined #ruby
[02:31:26] mark06: has left #ruby: ("http://pidgin.renatosilva.me - Pidgin++")
[02:32:00] GnuYawk: has joined #ruby
[02:33:15] hololeap: has joined #ruby
[02:33:53] hololeap|2: has joined #ruby
[02:37:15] christiandsg: has joined #ruby
[02:38:54] swgillespie: has joined #ruby
[02:40:21] davedev24: has joined #ruby
[02:41:10] xkickflip: has joined #ruby
[02:41:32] n1lo: has joined #ruby
[02:41:46] n1lo: Hi folks,
[02:42:47] j4cknewt: has joined #ruby
[02:43:01] cxpp: has left #ruby: ("Leaving")
[02:43:49] Kalov: has joined #ruby
[02:44:02] jesterfraud: has joined #ruby
[02:44:55] n1lo: How can I simplify a method call to use only the methods name not Class#Method ? I want to do this: Lorem.sentence not: Faker::Lorem.sentence. I did a require ???faker??? in my code. Tks.
[02:45:34] Ox0dea: n1lo: `include Faker`, but maybe consider not doing that.
[02:45:52] n1lo: Ox0dea: yeah. =/
[02:46:01] Ox0dea: n1lo: Do you know the consequences?
[02:46:20] T3: has joined #ruby
[02:47:14] n1lo: Ox0dea: If I use include? For sure. I just don???t want to repeat every time: Faker::X, Faker::Y etc.
[02:47:29] Ox0dea: n1lo: Are you going to be using many of the classes from Faker?
[02:48:23] danzilio: has joined #ruby
[02:48:24] cnngimenez: has joined #ruby
[02:48:43] Ox0dea: If you don't want to pollute your namespace with all of the constants Faker exports, you could just do `Lorem = Faker::Lorem`, and so on for the modules you actually need.
[02:49:09] dwithers2: has joined #ruby
[02:50:20] n1lo: Ox0dea: I think yes because in every factoryGirl fixture I???m going to use a lot of diferents Classes. Like: Faker::Lorem, Faker::Name, Faker::Address etc.
[02:50:26] dwithers3: has joined #ruby
[02:50:28] jbw_: has joined #ruby
[02:50:52] Ox0dea: n1lo: Well, maybe check the output of `Faker.constants` to ensure none of them will conflict with any of yours.
[02:51:22] Ox0dea: If you find everything to be copacetic, `include Faker` shouldn't do any damage.
[02:51:30] Ox0dea: Still, it's not something you should get in the habit of doing.
[02:53:14] Casty: has joined #ruby
[02:53:44] darkf: has joined #ruby
[02:53:51] yfeldblum: has joined #ruby
[02:55:16] michaeldeol: has joined #ruby
[02:55:25] n1lo: Ox0dea: Well for now I???m going to keep this repetion. :~
[02:55:53] n1lo: Ox0dea: Thanks a lot!
[02:55:56] Ox0dea: Sure thing.
[02:56:03] Ox0dea: Try to think of it as clarity rather than repetition. :)
[02:56:27] n1lo: Ox0dea: hahaha lol
[02:57:02] Ox0dea: %w[Name Address].each { |c| Object.const_set(c, Faker.const_get(c)) }
[02:57:09] Ox0dea: n1lo: There's one more approach you might consider.
[03:02:58] fullofcaffeine: has joined #ruby
[03:03:51] slawrence00: has joined #ruby
[03:05:23] n1lo: Ox0dea: Wow! Nice!
[03:05:42] n1lo: Ox0dea: I???m going to try this.
[03:05:59] Ox0dea: Tread gently, but it should go off without a hitch.
[03:06:11] user1138: has joined #ruby
[03:06:41] lysw123: has joined #ruby
[03:07:18] C1V0: has joined #ruby
[03:09:55] braincrash: has joined #ruby
[03:09:57] lysw123: has joined #ruby
[03:11:06] arooni-mobile: has joined #ruby
[03:12:33] failshell: has joined #ruby
[03:16:10] Mendenhall: has joined #ruby
[03:16:29] mleung: has joined #ruby
[03:18:27] jbwiv: has joined #ruby
[03:18:51] bronson: has joined #ruby
[03:19:03] michael_mbp: has joined #ruby
[03:21:07] n1lo: Ox0dea: tks again.
[03:21:30] dimasg: has joined #ruby
[03:23:00] mdcox: has joined #ruby
[03:23:05] sharpmachine: has joined #ruby
[03:24:05] chinmay_dd: has joined #ruby
[03:25:36] swgillespie: has joined #ruby
[03:26:17] smoak: has joined #ruby
[03:27:28] arescorpio: has joined #ruby
[03:28:18] Oog: has joined #ruby
[03:29:38] smoak: does ruby 2.2.2 include minitest?
[03:29:46] joelataylor: has joined #ruby
[03:30:45] smoak: i cant seem to find any rdocs for it. e.g. http://ruby-doc.org/stdlib-2.2.2/libdoc/minitest/rdoc/MiniTest.html
[03:34:20] Ox0dea: smoak: minitest was bundled with Ruby for a long time, but that did indeed stop with 2.2.
[03:34:45] mdcox: has joined #ruby
[03:35:06] smoak: interesting, thanks
[03:35:20] Ox0dea: smoak: https://bugs.ruby-lang.org/issues/9711
[03:35:27] Ox0dea: In case you'd like to read up on the rationale behind its removal.
[03:36:25] Scripore: has joined #ruby
[03:36:29] Ox0dea: Sure thing.
[03:36:37] jbw_: has joined #ruby
[03:37:29] user1138: has joined #ruby
[03:37:41] Rubie: has joined #ruby
[03:38:26] fgo_: has joined #ruby
[03:38:46] user1138: has joined #ruby
[03:40:33] tmtwd: has joined #ruby
[03:41:55] Musashi007: has joined #ruby
[03:42:23] jbwiv: has joined #ruby
[03:43:00] dopie: has joined #ruby
[03:43:01] michaeldeol: has joined #ruby
[03:44:59] qiukun: has joined #ruby
[03:45:54] bruno-: has joined #ruby
[03:47:47] audiodude: has joined #ruby
[03:48:09] qiukun_: has joined #ruby
[03:51:52] gix: has joined #ruby
[03:52:07] fenjamin: has joined #ruby
[03:52:17] devbug: has joined #ruby
[03:52:29] fenjamin: there was a computer science phd thesis that explained computer programs
[03:52:33] CaryInVictoria: has joined #ruby
[03:52:44] fenjamin: type in a program and it explains how it runs
[03:52:51] mike___1234: has joined #ruby
[03:53:29] fenjamin: does anyone know this project?
[03:54:05] symm-: has joined #ruby
[03:54:41] eggoez: has joined #ruby
[03:55:42] Hongo: has joined #ruby
[03:55:51] Hongo: has left #ruby: ()
[03:56:24] Ox0dea: fenjamin: Do you happen to recall in any detail what sort of "explaining" it did?
[03:58:14] fenjamin: input a code snippet and it would explain in blocks and lines how each line worked
[03:58:34] howdoicomputer: has joined #ruby
[03:58:57] Ox0dea: fenjamin:
[03:59:01] Ox0dea: A code snippet in which language?
[03:59:34] fenjamin: javascript, python, ruby i believe
[03:59:57] Ox0dea: Are you having a laugh? :/
[04:00:27] fenjamin: no, a programming academy showed it briefly
[04:01:10] Kalov: how can i have multiple: raise ArgumentError, inside a def
[04:02:01] Ox0dea: Kalov: Please clarify.
[04:02:06] fenjamin: it would explain a for loop or an if statement
[04:03:22] Kalov: https://gist.githubusercontent.com/anonymous/c7fac984f4f63d185659/raw/95f2985a8292af84d9f84b3412462110532a0bda/gistfile1.txt
[04:03:31] aaeron: has joined #ruby
[04:03:51] Oog: has joined #ruby
[04:04:02] Kalov: i wish it to return "hola" or "chao" if the first is negative or the second is
[04:04:14] Kalov: but it just prints the first one
[04:04:15] RobertBirnie: has joined #ruby
[04:04:22] Kalov: the first rescue
[04:04:53] workmad3: has joined #ruby
[04:05:40] CloCkWeRX: has left #ruby: ()
[04:05:51] Ox0dea: Kalov: You've thoroughly misunderstood the purpose of exceptions, I'm afraid.
[04:06:29] ElSif: you can just get it to print that when you check the variable's value
[04:07:05] astrobunny: has joined #ruby
[04:07:06] Kalov: yeah... i just wanted to know if i could use multiple exceptions for different conditions
[04:07:32] ElSif: you could, but you would need to use more than 1 error class, or look at the error (first would be clearer probably)
[04:07:47] gilest: has joined #ruby
[04:07:50] ElSif: you can pass error into a rescue with `rescue <error_type> => e`
[04:07:52] Ox0dea: Kalov: Better to just raise once if either argument is negative.
[04:08:59] jbw_: has joined #ruby
[04:09:50] Kalov: so how is the syntaxis for multiple error class
[04:09:54] Channel6: has joined #ruby
[04:12:36] lampd1: has joined #ruby
[04:12:40] ElSif: you can use the same code structure, but you would need to define your own errors (im not really recommending this as the best choice for this situation, see Ox0dea's response)
[04:12:53] Eiam_: has joined #ruby
[04:13:04] Ox0dea: Kalov: https://gist.github.com/0x0dea/8c448df7caef669a739e
[04:13:36] jbwiv: has joined #ruby
[04:14:34] smoak: has left #ruby: ("WeeChat 1.2")
[04:14:44] Kalov: thank you very much Ox0dea, that was what i was looking for
[04:14:56] fullofcaffeine: has joined #ruby
[04:15:52] Ox0dea: Kalov: Sure thing.
[04:17:10] Ox0dea: Kalov: As ElSif mentioned, you *could* create distinct NegativeAError and NegativeBError classes, but that seems rather heavy-handed.
[04:17:19] ElSif: just a little :)
[04:17:23] ElSif: but very explicit
[04:19:03] Ox0dea: Aye, and it's certainly the right thing to do in many cases, but perhaps not in this particular example. :)
[04:19:36] pyon: has joined #ruby
[04:23:23] tkuchiki: has joined #ruby
[04:23:32] Tritone: has joined #ruby
[04:24:22] _blizzy_: has joined #ruby
[04:24:49] mleung: has joined #ruby
[04:27:04] ss_much: has joined #ruby
[04:28:01] mdcox: has joined #ruby
[04:28:46] freerobby: has joined #ruby
[04:29:26] girakrok: has joined #ruby
[04:29:40] jbw_: has joined #ruby
[04:30:56] sharpmachine: has joined #ruby
[04:32:38] _blizzy_: has joined #ruby
[04:34:23] chrishough: has joined #ruby
[04:34:38] Cache_Money: has joined #ruby
[04:35:44] sharpmachine: has joined #ruby
[04:36:18] howdoicomputer: has joined #ruby
[04:39:27] fgo_: has joined #ruby
[04:40:06] dubkoidragon: has joined #ruby
[04:40:57] dubkoidragon: hey, do you guys know where i can find a list of all the ruby built in modules ex.Math and a little desription about them and what I can do with them. Google has failed me, although I'm starting to think that I'm asking a non sensical question
[04:41:01] dented42: has joined #ruby
[04:41:37] Ox0dea: dubkoidragon: Linux?
[04:41:51] RobertBirnie: has joined #ruby
[04:42:18] Maletor: has joined #ruby
[04:43:03] Ox0dea: dubkoidragon: I trust you know how to use irb?
[04:43:11] dubkoidragon: lol I mean is there a website that list like for example 1: Math, list of things its stores : Pi so on an so forth
[04:43:22] dubkoidragon: yes i have used irb
[04:43:32] dubkoidragon: though only to do (1..100).to_a
[04:44:21] Ox0dea: Well, Ruby's introspection capabilities make it quite easy to see what all a given module defines, but there's probably not a straight list anywhere. Is the documentation not sufficiently enlightening?
[04:44:38] ellisTAA: has joined #ruby
[04:45:10] mdcox: has joined #ruby
[04:45:33] dubkoidragon: I'd love too see how enlighning it is, where is the documentation? and what's introspection
[04:45:52] Ox0dea: dubkoidragon: Introspection is a language's ability to ask questions about itself.
[04:45:56] Ox0dea: http://ruby-doc.org/core-2.2.2/
[04:46:14] Ox0dea: That page contains a nice list of all the default classes.
[04:46:23] Ox0dea: Click around to your heart's content. :)
[04:46:26] icebourg: has joined #ruby
[04:46:58] lxsameer: has joined #ruby
[04:47:04] Ox0dea: Happy to help.
[04:47:21] jbwiv: has joined #ruby
[04:47:26] dubkoidragon: you always do. and I always appriciate
[04:47:55] Kalov: ruby bible :)
[04:48:03] Ox0dea: >> ObjectSpace.each_object(Class).select { |c| c.instance_methods.include?(:to_a) }.size
[04:48:04] ruboto: Ox0dea # => 18 (https://eval.in/402786)
[04:48:26] Ox0dea: dubkoidragon: There's a nice example of introspection. Ruby was able to tell us, from within Ruby, that there are 18 classes whose instances can be converted to an array.
[04:48:30] dubkoidragon: is that a template of what i should type intp irb?
[04:48:47] dubkoidragon: I will play around with that
[04:48:51] RobertBirnie: has joined #ruby
[04:49:00] dubkoidragon: it's so frustrating being sucha noob
[04:49:12] Ox0dea: irb is simply for interactively evaluating Ruby code.
[04:49:23] Ox0dea: It's a nice "playground", but you'll want to write "real" programs into their own files.
[04:49:24] acl_: it's actually nice being new
[04:52:06] ElSif: >> a = []; ObjectSpace.each_with_object(Class, a).select { |c, a| a<< c if c.instance_methods.include?(:to_a) }; p a
[04:52:10] ruboto: ElSif # => undefined method `each_with_object' for ObjectSpace:Module (NoMethodError) ...check link for more (https://eval.in/402798)
[04:52:20] ElSif: ah, no each_with_object T_T
[04:52:24] Ox0dea: ElSif: Just each_object.
[04:52:39] ElSif: yea i wanted to print out the class names but wanted it not to spew them into chat too mcuh
[04:53:03] Ox0dea: >> puts ObjectSpace.each_object(Class).select { |c| c.instance_methods.include?(:to_a) }
[04:53:04] ruboto: Ox0dea # => Process::Tms ...check link for more (https://eval.in/402800)
[04:53:37] ElSif: ah, ruboto is smart and wont spam i see
[04:54:02] Ox0dea: It'll print a fair amount, but it stops at the first if there's more than one line of output.
[04:54:11] ElSif: gotcha, gtk
[04:54:34] fenjamin: has joined #ruby
[04:55:28] dseitz: has joined #ruby
[04:57:54] sp1rs: has joined #ruby
[04:58:08] casadei_: has joined #ruby
[04:59:03] failshell: has joined #ruby
[04:59:32] simplyianm: has joined #ruby
[04:59:36] Musashi007: has joined #ruby
[04:59:46] fyliu_: has joined #ruby
[05:00:44] simplyia_: has joined #ruby
[05:02:58] fyliu_: has left #ruby: ()
[05:03:30] yfeldblum: has joined #ruby
[05:04:22] RegulationD: has joined #ruby
[05:08:59] user1138: has joined #ruby
[05:11:40] dubkoidragon: Ox0dea: Hey sorry for going into radio silence. two cops just came to my house to arrest me. But i'm good now. Anyway so whats the purpose then of irb
[05:11:45] dubkoidragon: to test small fragments of code??
[05:12:17] zenguy_pc: has joined #ruby
[05:12:30] Ox0dea: dubkoidragon: Yes, that's about the size of it.
[05:12:43] Ox0dea: The interactivity is key.
[05:13:41] Oog: has joined #ruby
[05:13:56] Ox0dea: You can try a snippet of code, immediately get the results and see that they're almost correct, and then iteratively improve it until it's ready to be used in your program.
[05:14:19] fantazo: has joined #ruby
[05:14:38] dubkoidragon: ok i see. and for explae that test you posted about the diff kind of instances able to turn to an array. too array = .to_a , so does that documentation page have the different types of methonds like ".to_a", "to_sym" etc. I haven't looked thorugh all of it yty\
[05:14:41] Kalov: i use half screen for code and in the other side the terminal, is pretty easy to use...
[05:14:43] Lucky_: has joined #ruby
[05:14:59] dubkoidragon: im on windows kalov
[05:15:23] Ox0dea: dubkoidragon: Yes, all the classes have documentation for (almost) all of their methods.
[05:15:36] dubkoidragon: awsome. much thanks again for that
[05:16:23] dubkoidragon: I'll be going through all that as soon as I get back from my shower. One more question before i take a break here is have you ever used shoes? for making gui apps. I wanted to play with that here tonight as well
[05:16:59] Musashi007: has joined #ruby
[05:17:23] htmldrum: has joined #ruby
[05:18:11] Oog: has joined #ruby
[05:18:37] Ox0dea: As I understand it, it makes simple things easy, but not all hard things possible.
[05:18:58] jackjackdripper: has joined #ruby
[05:19:02] pjsim: has joined #ruby
[05:19:20] Ox0dea: It'd be good for getting your feet wet as regards "graphical" programming, but you'll likely find yourself needing something more featureful before long.
[05:19:26] bronson: has joined #ruby
[05:20:15] dubkoidragon: oki dokie. I'll be back in a hour, maybe less. look forward to rubying some more with ya. thx again
[05:20:33] dubkoidragon: ACTION flies away
[05:20:59] jbwiv: has joined #ruby
[05:23:49] dhjondoh: has joined #ruby
[05:24:26] CloCkWeRX: has joined #ruby
[05:24:27] pontiki: let's get together and ruby about
[05:25:37] Ox0dea: I'm trying to make it so that $thing *must* be required as 'foo.so'... on all platforms.
[05:25:59] Ox0dea: I've got it working on Linux. :P
[05:26:47] riotjones: has joined #ruby
[05:27:12] user1138: has joined #ruby
[05:27:36] tmtwd: has joined #ruby
[05:27:50] Kalov: so the idea of classes is that they can hold local variables and work with them, EJ: (@something)
[05:28:17] pjsim: has left #ruby: ()
[05:28:32] krz: has joined #ruby
[05:29:55] Ox0dea: Kalov: The "idea" of classes is simply that you often want more than one of something, but they need only be similar rather than identical.
[05:30:12] jbw_: has joined #ruby
[05:30:19] slawrence00: has joined #ruby
[05:31:35] Ox0dea: Ox0dea: The "similar" part is that each instance *behaves* like the others, where "not identical" falls out of, as you say, having different instance variables.
[05:31:43] Ox0dea: Wow, I just highlighted me. :/
[05:31:49] Ox0dea: Might be time for sleep.
[05:32:39] lysw123: has joined #ruby
[05:33:29] yardenbar: has joined #ruby
[05:37:09] lysw123: has joined #ruby
[05:38:46] user1138: has joined #ruby
[05:38:47] tagrudev: has joined #ruby
[05:40:37] fgo_: has joined #ruby
[05:41:00] Guest32: has joined #ruby
[05:43:58] simplyianm: has joined #ruby
[05:43:59] htmldrum: has joined #ruby
[05:44:44] Kalov: has joined #ruby
[05:45:02] kx_: has joined #ruby
[05:45:16] cnngimenez: has joined #ruby
[05:45:40] sandelius: has joined #ruby
[05:47:12] simplyianm: has joined #ruby
[05:47:52] pwnz0r_: has joined #ruby
[05:48:21] iateadonut: has joined #ruby
[05:49:11] rht: has joined #ruby
[05:49:36] simplyia_: has joined #ruby
[05:51:24] duncannz: has joined #ruby
[05:51:39] EminenceHC: has joined #ruby
[05:52:30] duncannz: has joined #ruby
[05:53:43] workmad3: has joined #ruby
[05:53:53] duncannz: has joined #ruby
[05:54:59] duncannz: has joined #ruby
[05:55:35] pwnz0r_: has joined #ruby
[05:56:20] duncannz: has joined #ruby
[05:56:33] Rubie: has joined #ruby
[05:56:51] xcesariox: has joined #ruby
[05:57:15] roolo: has joined #ruby
[05:58:16] Musashi007: has joined #ruby
[05:58:28] eGGsha: has joined #ruby
[05:58:45] dseitz: has joined #ruby
[05:59:01] mdcox: has joined #ruby
[06:02:41] solars: has joined #ruby
[06:04:32] eggoez: has joined #ruby
[06:06:37] Muhannad: has joined #ruby
[06:07:28] aaeron: has joined #ruby
[06:07:33] jackjackdripper: has joined #ruby
[06:08:09] simplyianm: has joined #ruby
[06:09:16] sinkensabe: has joined #ruby
[06:09:23] ohaibbq: has joined #ruby
[06:09:36] htmldrum: has joined #ruby
[06:10:13] Oog: has joined #ruby
[06:11:11] sinkensabe: has joined #ruby
[06:14:54] choke: has joined #ruby
[06:15:16] serivich: has joined #ruby
[06:15:23] aganov: has joined #ruby
[06:15:54] user1138: has joined #ruby
[06:18:39] mdcox: has joined #ruby
[06:19:25] Musashi007: has joined #ruby
[06:20:04] djbkd: has joined #ruby
[06:20:51] codecop_: has joined #ruby
[06:20:52] codecop: has joined #ruby
[06:21:39] htmldrum: has joined #ruby
[06:22:55] yfeldblum: has joined #ruby
[06:23:00] ScriptGeek: has joined #ruby
[06:23:15] Dopagod: has joined #ruby
[06:23:15] Dopagod: has joined #ruby
[06:24:09] michaeldeol: has joined #ruby
[06:25:48] Stan: has joined #ruby
[06:25:56] schaerli: has joined #ruby
[06:27:55] Musashi007: has joined #ruby
[06:28:38] sypheren: has joined #ruby
[06:29:02] lsmola: has joined #ruby
[06:31:58] acke: has joined #ruby
[06:32:53] xMopxShell: has joined #ruby
[06:33:01] howdoi_: has joined #ruby
[06:34:27] jbwiv: has joined #ruby
[06:36:14] CloCkWeRX1: has joined #ruby
[06:37:08] NeverDie: has joined #ruby
[06:37:12] rdark: has joined #ruby
[06:37:28] baweaver: https://twitter.com/yukihiro_matz/status/623743308393648129 - hello there
[06:37:37] k3asd`: has joined #ruby
[06:38:40] baweaver: Ox0dea: guess who wrote the talk
[06:38:53] Ox0dea: The one and only.
[06:39:09] jbw_: has joined #ruby
[06:39:09] Ox0dea: You got me momentarily excited for a new Tom talk. :/
[06:39:27] sevenseacat: that talk was in like february
[06:39:43] baweaver: yes, but Matz just mentioned it.
[06:40:38] Ox0dea: Even Tom's lightning talk at BaRuCo 2014 was glorious.
[06:41:18] baweaver: I'll start conf-following him then
[06:41:23] Ox0dea: Who else could make the Burrows-Wheeler transform so engaging?
[06:41:27] schaerli: has joined #ruby
[06:41:34] baweaver: with any luck I get into Keep Ruby Weird
[06:41:47] Ox0dea: Presenting on Clairvoyant?
[06:42:03] baweaver: now that I have a vacation to think about it
[06:42:10] flughafen: it's our resident hackathon winner baweaver
[06:42:13] baweaver: freaking crazy busy at work, 1.0 release coming up.
[06:42:32] tmtwd: has joined #ruby
[06:42:54] Ox0dea: baweaver: Tom's speakerly oeuvre is here: http://codon.com/talks
[06:43:33] Ox0dea: baweaver: Is it called Pepperqueue?
[06:43:52] Ox0dea: For shame.
[06:43:57] baweaver: my project is called BaDASS
[06:44:02] alphaatom: has joined #ruby
[06:44:07] baweaver: Build and Deployment Automation Support System
[06:44:26] baweaver: So I'm officially a BaDASS developer
[06:44:40] bayed: has joined #ruby
[06:44:45] simplyianm: has joined #ruby
[06:45:20] Ox0dea: I suspect there's a good handful of programmers out there who specialize in Builds and Deployments.
[06:45:42] Ox0dea: Or, indeed, Automation Support Systems.
[06:45:56] Ox0dea: - * - = +
[06:45:58] aaeron1: has joined #ruby
[06:46:23] eGGsha: has joined #ruby
[06:46:36] xcesariox: has joined #ruby
[06:48:29] Musashi007: has joined #ruby
[06:48:54] htmldrum: has joined #ruby
[06:49:16] Ox0dea: I'm trying to thwart Ruby's canonicalization of required files; it's rough going.
[06:49:29] quazimodo: has joined #ruby
[06:50:18] baweaver: come again?
[06:50:49] heftig: has joined #ruby
[06:51:11] Ox0dea: I'd like to be able to determine exactly how the user require'd us.
[06:51:43] Musashi007: has joined #ruby
[06:52:07] Ox0dea: From within the file being required, mind, which is very tricky since we won't be in $LOADED_FEATURES yet.
[06:52:21] cornerma1: has joined #ruby
[06:52:42] Ox0dea: There's an internal Hash called loading_table that contains the information I need, but it was made much harder to access late in 1.9.3.
[06:54:53] andikr: has joined #ruby
[06:55:10] krandi: has joined #ruby
[06:56:05] michael_mbp: has joined #ruby
[06:56:25] sp1rs: has joined #ruby
[06:58:16] leat1: has joined #ruby
[06:59:53] failshell: has joined #ruby
[07:01:52] lxsameer: has joined #ruby
[07:03:02] j4cknewt: has joined #ruby
[07:03:29] eam: Ox0dea: a perl feature I really miss in ruby is sticking a lambda into $:
[07:03:50] eam: which is called when the path is traversed for a load, with loading context
[07:04:00] eam: super easy to write a require() tracer with that
[07:05:31] user1138: has joined #ruby
[07:06:19] Ox0dea: eam: Damn. That would be terribly convenient right about now.
[07:06:34] Ox0dea: I think I have to do this as a crazy, memory-traversing C extension. :/
[07:15:14] TomyWork: has joined #ruby
[07:15:48] Ox0dea: has joined #ruby
[07:16:12] eam: Ox0dea: I wonder if you can hook *all* access to $: instead
[07:16:51] Ox0dea: eam: Well, I'll need to go at it from a very low level anyhow, on account of trying to permit requiring '.so' files on not-Linux.
[07:17:33] Ox0dea: The '.so' file needn't actually exist, which is sort of the point.
[07:18:02] CloCkWeRX: has joined #ruby
[07:18:33] eam: wtf, $: is read only? That's nonsense
[07:18:38] eam: when did that happen
[07:18:50] redlegion: has joined #ruby
[07:18:51] Ox0dea: >> $: << 1
[07:18:52] ruboto: Ox0dea # => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby/2.2.0", "/execpad/interpreters/ruby-2.2.0/lib/ ...check link for more (https://eval.in/402940)
[07:18:57] Musashi007: has joined #ruby
[07:19:02] eam: why ... my irb ...
[07:19:19] ukd1: has joined #ruby
[07:19:23] Ox0dea: You can't assign to $:, but you can shovel into it.
[07:19:48] eam: well I guess you could instrument the strings inside it
[07:19:56] eam: lame you can't replace it entirely though
[07:20:11] Ox0dea: >> $:.clear
[07:20:13] ruboto: Ox0dea # => [] (https://eval.in/402942)
[07:20:32] Ox0dea: $: is sort of irrelevant, though, as its elements have already been canonicalized.
[07:20:43] bronson: has joined #ruby
[07:20:44] eam: what do you mean canonicalized?
[07:21:16] Ox0dea: Ruby takes 'foo' and finds the first file that matches, be that a .rb, a .so, a .dylib, or a .dll.
[07:21:31] Ox0dea: I need the literal string that was passed to require.
[07:21:46] msgodf: has joined #ruby
[07:22:16] eam: well you'll be under require()
[07:22:39] iateadonut: has joined #ruby
[07:22:41] Iron-LV: has joined #ruby
[07:22:51] Ox0dea: RubyGems manages to go over it, but that's only because Ruby requires it automatically.
[07:23:25] arup_r: has joined #ruby
[07:23:30] Mendenhall: has joined #ruby
[07:24:10] Iron-LV: has joined #ruby
[07:24:32] Iron-LV: has left #ruby: ()
[07:24:38] aaeron: has joined #ruby
[07:25:52] sameerynho: has joined #ruby
[07:25:54] relix: has joined #ruby
[07:28:15] troulouliou_div2: has joined #ruby
[07:28:30] Oog: has joined #ruby
[07:29:03] lxsameer_: has joined #ruby
[07:30:03] safeforge: has joined #ruby
[07:30:20] senayar: has joined #ruby
[07:30:52] Iskarlar: has joined #ruby
[07:31:09] emilkarl: has joined #ruby
[07:32:10] dimasg: has joined #ruby
[07:32:25] keen__________28: has joined #ruby
[07:33:26] j4cknewt_: has joined #ruby
[07:35:39] bricker: has joined #ruby
[07:36:05] duncannz: has joined #ruby
[07:36:10] slawrence00: has joined #ruby
[07:37:02] auzty: has joined #ruby
[07:37:42] clocKwize: has joined #ruby
[07:38:11] Musashi007: has joined #ruby
[07:40:25] shevy: I'd wish we would have more advanced load systems
[07:40:48] shevy: require 'bla' add to Foo # do a include Bla to constant Foo
[07:41:06] shevy: eh don't take that syntax... it's not good, I only mean the mechanism
[07:41:15] schaerli: has joined #ruby
[07:41:24] krokuz: has joined #ruby
[07:41:29] bosma_: has joined #ruby
[07:41:40] Timba-as: has joined #ruby
[07:41:51] Ox0dea: shevy: How about `import 'foo' (Bar, Baz)`?
[07:41:58] c0m0: has joined #ruby
[07:42:14] Ox0dea: It looks like some demented combination of Ruby, Python, and Haskell.
[07:42:26] workmad3: has joined #ruby
[07:44:25] eGGsha: has joined #ruby
[07:44:33] shevy: Ox0dea the () are so lispy
[07:44:51] Juanchito: has joined #ruby
[07:45:21] Ox0dea: Aye, we wouldn't really need them.
[07:45:57] bosma: has joined #ruby
[07:46:00] marr: has joined #ruby
[07:46:18] Ox0dea: require 'foo', [ClassX, ModuleY], [method_bar]
[07:46:34] Ox0dea: Probably as Symbols, though. :/
[07:47:12] bruno-: has joined #ruby
[07:47:24] CaryInVictoria: has joined #ruby
[07:47:33] Pupeno: has joined #ruby
[07:47:38] Ox0dea: I'm sure the thing could be finagled/brute-forced into "working" along the lines of require_all, where it just keeps marching until no more NameErrors, but specific imports are supposed to be faster. :/
[07:47:41] dubkoidragon: has joined #ruby
[07:48:13] Ox0dea: What is "dubkoid"?
[07:49:17] Pupeno: has joined #ruby
[07:51:21] djbkd: has joined #ruby
[07:52:11] simplyianm: has joined #ruby
[07:52:16] IronTalk: has joined #ruby
[07:53:07] redlegion: has joined #ruby
[07:53:34] lysw123: has joined #ruby
[07:56:46] fgo_: has joined #ruby
[07:57:47] mikecmpbll: has joined #ruby
[07:58:05] tesuji: has joined #ruby
[07:59:00] Iskarlar: has joined #ruby
[07:59:22] bricker: has joined #ruby
[07:59:53] umo: has joined #ruby
[08:01:27] senayar: has joined #ruby
[08:01:32] blaxter: has joined #ruby
[08:02:48] emilkarl: has joined #ruby
[08:03:36] benlovell: has joined #ruby
[08:03:53] sameerynho: has joined #ruby
[08:05:17] dubkoidragon: Ox0dea: what do you mean?
[08:05:26] Musashi007: has joined #ruby
[08:05:28] schaerli: has joined #ruby
[08:07:20] Spami: has joined #ruby
[08:07:27] Ox0dea: dubkoidragon: Well, does it mean anything?
[08:08:13] aspiers: has joined #ruby
[08:08:35] michael_mbp: has joined #ruby
[08:09:45] white_bear: has joined #ruby
[08:10:07] ironsay: has joined #ruby
[08:10:13] tomphp: has joined #ruby
[08:10:47] Olipro: has joined #ruby
[08:11:46] shevy: Ox0dea well it does not read very elegantly so
[08:11:46] Oog: has joined #ruby
[08:12:15] shevy: require() has one huge thing going - it really is short and elegant. and simple!
[08:12:30] Ox0dea: shevy: It's short and simple, but not elegant.
[08:12:39] shevy: not elegant?
[08:12:51] Ox0dea: I was mostly going for a syntax that could theoretically be retro-fitted.
[08:12:54] einarj: has joined #ruby
[08:13:15] shevy: I have come to the conclusion that ruby core will not modify require()
[08:13:31] Ox0dea: shevy: What's elegant about it? What clever operation does it perform in a very neat way?
[08:13:32] shevy: at least not for 2.x era
[08:13:36] shevy: it's short!
[08:13:42] shevy: require 'Ox0dea'
[08:13:55] Ox0dea: Elegance has nothing to do with length.
[08:14:00] shevy: it's cleverness lies in its simplicity
[08:14:08] Ox0dea: No, that's just simplicity.
[08:14:13] shevy: that's clever
[08:14:15] Ox0dea: You're conflating three very different things.
[08:14:49] Ox0dea: Ruby's require is an MVP; it's the simplest thing that could possibly work.
[08:15:21] dubkoidragon: Ox0dea: I dunno I have a tattoo of koi fish, and a dargon, so one time in a game I just made that name and then it kind of stuck.
[08:15:31] dubkoidragon: hence the dub
[08:15:47] Ox0dea: Oh, wow; I accidentally read it as "dubkoid dragon".
[08:16:02] Violentr: has joined #ruby
[08:16:05] shevy: that's kinda hilarious :)
[08:16:37] mhib: has joined #ruby
[08:16:39] TheHodge: has joined #ruby
[08:16:57] Ox0dea: All my tattoos are text.
[08:17:17] user1138: has joined #ruby
[08:17:39] jbwiv: has joined #ruby
[08:18:04] lessless: has joined #ruby
[08:18:38] Ox0dea: That's not a terribly common opinion, but fuck 'em. :)
[08:19:44] Ox0dea: It's very difficult to defend "a word is worth a thousand pictures" in the general case.
[08:20:52] senayar: has joined #ruby
[08:21:44] dubkoidragon: who's opinion
[08:21:49] Ox0dea: dubkoidragon: You're familiar with the aphorism, "a picture is worth a thousand words"?
[08:22:19] Ox0dea: Well, I think the reverse can be just as true, if the word has significant personal meaning.
[08:22:20] lordkryss: has joined #ruby
[08:22:28] Ox0dea: But most people don't seem to agree with that premise.
[08:22:46] dubkoidragon: yea, I get that. Totally if it has significant meaning I can totally see that
[08:26:54] fantazo: has joined #ruby
[08:27:27] Ox0dea: Can I prevent further execution of a require'd file without wrapping the whole thing in a conditional expression?
[08:28:12] yfeldblum: has joined #ruby
[08:30:29] blaxter: has joined #ruby
[08:30:37] SebastianThorn: Ox0dea: haha, i watched this movie yesterday: http://www.imdb.com/title/tt0299977
[08:30:50] Ox0dea: It's gonna be Memento.
[08:31:22] SebastianThorn: has some of the meaning you just described
[08:33:55] CaryInVictoria: has joined #ruby
[08:34:26] dangerousdave: has joined #ruby
[08:37:34] Philipp_: has joined #ruby
[08:38:07] Philipp_: why doesn't gem cache the latest_spec.gz file?
[08:38:26] shevy: does it error out?
[08:44:23] lessless: has joined #ruby
[08:45:24] AnoHito: has joined #ruby
[08:45:43] totimkopf: has joined #ruby
[08:45:45] ruurd: has joined #ruby
[08:46:23] DEA7TH: has joined #ruby
[08:46:26] djdb: has joined #ruby
[08:47:57] anisha: has joined #ruby
[08:49:20] astrobun_: has joined #ruby
[08:50:28] brianpWins: has joined #ruby
[08:51:30] bigkevmcd: has joined #ruby
[08:51:42] safeforge: has joined #ruby
[08:52:52] dubkoidragon: ok I'm gonna try out shoes before bed such excited much wow
[08:54:10] astrobunny: has joined #ruby
[08:56:40] adaedra: ACTION throws dubkoidragon a bone
[08:59:02] clocKwize: has joined #ruby
[08:59:59] fella5s: has joined #ruby
[09:01:31] ffledgling: has joined #ruby
[09:02:03] ffledgling: So... I'm getting a codedump when I try to run `bundle exec jekyll serve -w`, anyone know where I can start debugging this?
[09:02:18] lkba: has joined #ruby
[09:02:27] Ox0dea: ffledgling: A core dump?
[09:02:42] Ox0dea: Post the dump.
[09:03:01] Ox0dea: Or, well, do you know how to read a C stacktrace?
[09:04:11] ffledgling: Ox0dea: https://paste.fedoraproject.org/246793/14375558/
[09:04:23] ffledgling: Ox0dea: not entirely, but I'm willing to learn
[09:05:19] ljarvis: ffledgling: did you try 2.2.2?
[09:05:51] ljarvis: (assuming that's not what you're on... stupid Ruby directory names who knows)
[09:06:00] RegulationD: has joined #ruby
[09:06:25] ffledgling: ljarvis: ruby --version = ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[09:06:49] xkickflip_: has joined #ruby
[09:07:11] user1138: has joined #ruby
[09:07:11] quimrstorres: has joined #ruby
[09:07:39] arup_r: has joined #ruby
[09:09:40] senayar: has joined #ruby
[09:10:08] tkuchiki: has joined #ruby
[09:11:11] sgambino: has joined #ruby
[09:11:47] ffledgling: ljarvis: for some reason it seems gem is using ruby 2.2.0 ...
[09:12:27] Ox0dea: ffledgling: It's to do with something attempting to (and, for a second, succeeding in) modifying a frozen string.
[09:12:34] quimrstorres: has joined #ruby
[09:12:43] shevy: "Tue Jul 21 21:21:33 2015 Nobuyoshi Nakada"
[09:12:53] shevy: "* thread.c (do_select): replace switch and goto with a loop to suppress maybe-uninitialized warnings by gcc6."
[09:12:55] ffledgling: Ox0dea: how do you get the from ... that
[09:12:56] Ox0dea: ffledgling: That confuses Ruby's internal bookkeeping and ultimately causes a null pointer to be dereferenced.
[09:12:57] shevy: hmm... gcc6?
[09:13:06] Ox0dea: shevy: You said you'd stop that?
[09:13:52] Ox0dea: ffledgling: Well, you can see right at the top that the last successful invocation whose name could be known is rb_str_new_frozen().
[09:14:06] Ox0dea: From there it's just a matter of knowing that modifying frozen strings tends to cause segfaults.
[09:14:26] MEATCHICKEN: has joined #ruby
[09:14:34] eGGsha: has joined #ruby
[09:15:03] Ox0dea: >> require 'fiddle'; s = 'foo'.freeze; Fiddle::Pointer.new(s.object_id * 2)[0, 8] = 0 # ffledgling
[09:15:04] ruboto: Ox0dea # => /tmp/execpad-175207915089/source-175207915089:2: [BUG] Segmentation fault at 0x000000 ...check link for more (https://eval.in/402990)
[09:15:15] Ox0dea: That's not the same thing, of course, but it likely demonstrates the root of the problem.
[09:15:22] ffledgling: Ox0dea: okay... and a fix would be?
[09:15:26] Ox0dea: Fuck if I know. :/
[09:15:38] schaerli: has joined #ruby
[09:16:18] ffledgling: So you're saying that one of (a) libruby or (b) the package manager are broken? :o
[09:16:20] Ox0dea: Try disabling redcarpet; given it's the biggest processor of text, it seems a reasonable guess for the culprit.
[09:16:34] Ox0dea: ffledgling: No, a Jekyll dependency.
[09:16:36] MEATCHICKEN: has joined #ruby
[09:16:55] MEATCHICKEN: Why is a struct slower than a class?
[09:17:04] senayar: has joined #ruby
[09:17:06] MEATCHICKEN: wouldn't the struct normally be quicker?
[09:17:06] ffledgling: Ox0dea: How do I do that?
[09:17:36] bodgix: has joined #ruby
[09:18:18] Oog: has joined #ruby
[09:18:21] allomov: has joined #ruby
[09:18:26] ljarvis: meatchicken: Struct uses a new class. It's for convenience, not metal
[09:18:41] Ox0dea: ffledgling: Well, redcarpet shouldn't be invoked unless you've got Markdown files to parse.
[09:18:48] _blizzy_: has joined #ruby
[09:19:03] MEATCHICKEN: ljarvis, thanks
[09:19:16] Silex: meatchicken: is there a language where a struct is faster than a class?
[09:19:26] Ox0dea: Silex: "C".
[09:19:31] Silex: Ox0dea: not true
[09:19:38] ffledgling: Ox0dea: I have no idea how it's being used tbh, this is just a way to build some docs for project
[09:19:44] Silex: meatchicken: ah, yeah maybe
[09:19:54] ffledgling: let me see if can figure out a way to fix it the old fashioned way
[09:20:00] Ox0dea: Silex: Not true?
[09:20:01] ffledgling: ... nuke and reinstall
[09:20:19] Ox0dea: "Object-oriented C" is a thing, and chasing function pointers is definitely slower than using raw data.
[09:20:24] Silex: Ox0dea: well for starter there's no class in C, assuming you meant C++ struct is stricly equivalent to class
[09:20:43] Ox0dea: Silex: No, I meant C; you can write object-oriented C very similarly to how you'd do in Python.
[09:20:50] Ox0dea: Explicit "self" everywhere.
[09:20:59] Silex: Ox0dea: sure but it's not really a class is it?
[09:21:15] davedev24: has joined #ruby
[09:21:16] Silex: well it's just a struct function pointers
[09:21:19] Silex: struct with*
[09:21:22] dubkoidragon: omg half my focus is on rails and half on showes. I'm so frustrated and confused with everything lol
[09:21:24] flughafen: shevy no airplanes are taking off
[09:21:35] Ox0dea: Silex: Is that not the essence of a class?
[09:21:53] stamina: has joined #ruby
[09:22:04] Ox0dea: The non-function members are "instance variables", and the function pointers are methods.
[09:22:17] shevy: flughafen awww
[09:24:04] ffledgling: Ox0dea: how did you read the stack trace again?
[09:24:21] ffledgling: I don't see any of the function calls you mentioned
[09:24:29] ffledgling: not in the raw text anyway
[09:24:35] Ox0dea: They're hidden amongst all the addresses, but they're there.
[09:24:55] ribbons: has joined #ruby
[09:24:59] Ox0dea: I only mentioned rb_str_new_frozen(), for what that's worth.
[09:25:10] Ox0dea: It's where the interpreter breathes its last.
[09:27:05] heftig: Ox0dea: methods are only indirect when they're virtual
[09:27:44] Ox0dea: heftig: Please see GObject.
[09:27:49] Ox0dea: ffledgling: Line 10 in your paste.
[09:28:06] ffledgling: Ox0dea: do I run the trace through gdb with debugging info or something to see the translation from addresses to function names?
[09:28:14] Ox0dea: ffledgling: The function names are there.
[09:28:18] heftig: Ox0dea: I know GObject. It allows fine control over static vs. virtual dispatch, and my own code is mostly static
[09:28:37] Philipp__: has joined #ruby
[09:29:57] Ox0dea: ffledgling: That it's not at the very top of the trace indicates that it succeeded in allocating a new frozen string, but something tries to modify it (almost certainly inadvertently) a few instructions later.
[09:30:36] user1138: has joined #ruby
[09:31:14] workmad3: has joined #ruby
[09:32:22] bnagy: Ox0dea: that's not a very convincing analysis imho
[09:32:36] psye: has joined #ruby
[09:32:38] Ox0dea: bnagy: I defer to your expertise.
[09:32:44] Rubie: has joined #ruby
[09:32:45] bnagy: that crash is in free(), and the pointer it's freeing looks bunk
[09:32:48] ffledgling: Ox0dea: All I see is a bunch of rb_[ary_each,yield,iterate]
[09:33:06] bnagy: I'm not sure the frozenness of the string is related
[09:33:25] bnagy: I mean I'm not saying it's NOT, just that I don't see evidence for it
[09:33:28] Ox0dea: bnagy: Symbols are garbage-collected now.
[09:33:58] bnagy: it definitely looks GC related
[09:34:21] joonty: has joined #ruby
[09:34:22] Ox0dea: Touching an interned string could very well cause free() to bail.
[09:34:23] CaryInVictoria: has joined #ruby
[09:34:30] bnagy: that's the only thing that should be calling libc free, those unnamed libruby frames could be in the GC
[09:34:58] bnagy: but I doubt assembly cares about whether a ruby string is frozen
[09:35:12] mhf: has joined #ruby
[09:35:13] Ox0dea: How does assembly come into it?
[09:35:18] bnagy: unless they implement it by moving it into some magic RO page or something, but I doubt it
[09:35:22] dangerousdave: has joined #ruby
[09:35:52] sankaber: has joined #ruby
[09:36:24] bnagy: that's probably a libc assert, but I don't know why the symbol isn't there
[09:36:40] Ox0dea: I wonder if very small strings are implemented as tagged pointers.
[09:37:26] bnagy: usually I would expect the top of that stack to look like free, _GI_abort, _GI_raise
[09:37:48] dubkoidragon: k guys good night
[09:38:06] bnagy: cause if it crashed hard you wouldn't get the libc warning
[09:39:25] bnagy: what we need is a deeper stack trace :\
[09:40:05] michael_mbp: has joined #ruby
[09:40:11] bnagy: ffledgling: imho your last idea is a good one. Update everything to latest and reinstall etc.
[09:40:58] ffledgling: bnagy: I did
[09:41:03] ffledgling: Didn't really work
[09:41:12] bnagy: ffledgling: are you on linux?
[09:41:34] ffledgling: Also, for some reason gem insists on installing everything in ruby ~/.gem/ruby/2.2.0 when my ruby version is 2.2.2
[09:41:39] bnagy: if so you might see something from the trap handler in the kernel log ( /var/log/kern.log possibly )
[09:41:48] ffledgling: bnagy: yes, running arch
[09:42:04] bnagy: ffledgling: ruby uses the ABI level for those dir names, that's probably not a problem
[09:42:19] bnagy: (I think, anyway)
[09:42:24] jhass: ?abi ffledgling
[09:42:24] ruboto: ffledgling, Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, like 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's shared among one release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is 2.1.0.
[09:42:48] bnagy: ilu ruboto
[09:43:22] ruboto: ilu2 bnagy
[09:43:36] jhass: morning apeiros :D
[09:44:01] benlovell: has joined #ruby
[09:44:12] apeiros: who dares summon me? :D
[09:44:17] apeiros: moin jhass
[09:44:19] apeiros: what's up?
[09:44:44] jhass: love's in the air, I guess
[09:45:05] duncannz: has joined #ruby
[09:45:14] adaedra: /summon apeiros
[09:45:31] serivich: has joined #ruby
[09:45:58] duncannz: has joined #ruby
[09:46:12] jhass: ffledgling: public project?
[09:46:22] waka: has joined #ruby
[09:46:35] jhass: that's throwing you the error
[09:46:36] Mia: has joined #ruby
[09:46:41] symm-: has joined #ruby
[09:46:45] duncannz: has joined #ruby
[09:46:58] jhass: you know, can people get it and try to reproduce your issue
[09:47:40] duncannz: has joined #ruby
[09:49:02] codenihal: has joined #ruby
[09:49:48] bnagy: as an aside, I'm kind of surprised ruboto evals Fiddle code :)
[09:50:21] jhass: well, a good sandbox withstands a root exploit
[09:50:54] darix: https://bugs.ruby-lang.org/issues/11384 - that's brave. doesnt that cry race condition from far far away?
[09:51:04] darix: yorickpeterse: does rubinius handle this correctly?
[09:51:11] [k-: has joined #ruby
[09:51:36] yorickpeterse: darix: our autoload is thread-safe
[09:51:49] workmad3: has joined #ruby
[09:51:56] yorickpeterse: or at least should be, lemme try that script
[09:52:37] [k-: Ox0dea!
[09:52:43] Oog: has joined #ruby
[09:53:15] schaerli: has joined #ruby
[09:54:31] [k-: ACTION checks PRs
[09:55:01] greygoblin: has joined #ruby
[09:55:44] ixti: has joined #ruby
[09:56:40] [k-: Ox0dea, look!
[09:56:42] [k-: https://github.com/apeiros/ruby-community/pull/23/files
[09:56:49] startupality: has joined #ruby
[09:56:53] [k-: jhass knows IIFEs too!
[09:57:16] yorickpeterse: darix: not triggering anything here so far
[09:57:26] yorickpeterse: I fixed our last known autoloading problem a while ago so it should be fine
[09:57:32] yorickpeterse: other parts were thread-safe for years
[09:58:26] hansv: has joined #ruby
[09:58:36] yorickpeterse: https://github.com/rubinius/rubinius/commit/b57399f8f44c9afbe5b2785abd85943a8f46ddd3 <- easiest fix evah
[09:58:37] [k-: Ox0dea: look, he also isn't able to resolve IIFEs
[09:59:48] benlovell: has joined #ruby
[10:00:59] Ox0dea: [k-: That's... a little odd.
[10:01:06] [k-: you shouldn't use that elite term anymore
[10:01:37] Ox0dea: [k-: ~420k hits.
[10:02:17] [k-: ~420k hits isn't high enough then!
[10:02:28] Ox0dea: S'a lotta hits, though.
[10:02:40] Ox0dea: It's not some terribly obscure initialism.
[10:02:51] main: has joined #ruby
[10:02:56] hansv: rbenv install 2.2.2 or rbenv global 2.2.2
[10:03:01] hansv: what is the difference?
[10:03:13] leslie: has joined #ruby
[10:03:15] [k-: consult the documentation?
[10:03:30] Ox0dea: hans_: rbenv global is a setter.
[10:04:08] [k-: he should consult a documentation! Honest!
[10:04:26] [k-: we must mould rubyists into independent people!
[10:05:48] hansv: i used the install
[10:06:00] hansv: i don't think it should make a difference
[10:07:40] CaryInVictoria: has joined #ruby
[10:09:38] livathinos: has joined #ruby
[10:09:39] ddv: [k-: if this is true you are the least independent person in this channel :p
[10:10:55] ffledgling: jhass: oh yes, it is a public project -- https://github.com/taskcluster/taskcluster-docs/tree/learn (with that branch in particular)
[10:10:57] [k-: [citation needed]
[10:11:12] [k-: okay, okay, it's true
[10:12:22] greygoblin: has left #ruby: ("Leaving")
[10:12:33] Papierkorb: has joined #ruby
[10:13:35] serivich: has joined #ruby
[10:13:45] Philipp_: has joined #ruby
[10:14:15] dmolina: has joined #ruby
[10:15:14] jhass: ffledgling: interesting, it does reproduce here
[10:15:32] ffledgling: jhass: oh great, then it's not my setup
[10:16:14] jhass: well, I'm on arch too
[10:16:50] ffledgling: Let me see if I can reproduce on a different machine
[10:17:14] adaedra: what's to reproduce?
[10:17:17] jhass: seems to be yajl though
[10:17:35] ddv: j/k [k-
[10:19:56] dgutierrez1287: has joined #ruby
[10:20:16] msnyon: has joined #ruby
[10:20:45] jhass: on the second run it happens on Ctrl+C only
[10:20:53] _blizzy_: has joined #ruby
[10:21:02] ffledgling: jhass: yeah, I noticed, seems to be only because of -w though
[10:21:05] jhass: something's seriously messing up Ruby's internals there
[10:21:06] ffledgling: if you run it without that
[10:21:18] ffledgling: or just run jekyll build, you'll get one too
[10:21:49] ffledgling: I'm note entirely convinced that Arch's ruby stack isn't broken atm...
[10:22:35] jhass: nah, it's pretty vanilla
[10:22:41] jhass: let me try against an older Ruby
[10:22:52] ffledgling: jhass: I'm trying 2.0.0 on OSX
[10:22:59] eGGsha: has joined #ruby
[10:23:13] jhass: okay 2.1 crashes too
[10:23:27] ffledgling: 2.0.0 on OSX worked
[10:25:15] jhass: 2.0 crashes here too, mmh
[10:25:16] lkba_: has joined #ruby
[10:25:36] ffledgling: hmm, begining to sound like a linux/arch thing ...
[10:26:24] jhass: yeah, probably an ABI incompatibility that didn't receive a proper bump or a too loose requirement on on of the dependencies
[10:27:12] ffledgling: hm, those still sounds like issues ruby would have, and not arch/linux
[10:27:44] ffledgling: ie. to say, those sounds like problems in packaging the gems...
[10:27:48] fgo_: has joined #ruby
[10:28:02] ffledgling: Which would mean they should happen on all platforms
[10:28:06] ffledgling: but I could be wrong
[10:28:16] serivich: has joined #ruby
[10:28:55] tjbiddle: has joined #ruby
[10:29:20] _blizzy_: has joined #ruby
[10:30:25] jhass: mmh, I don't see anything loaded that wouldn't also be loaded in most other slightly more complex apps and thus cause a host of issues
[10:30:41] timonv: has joined #ruby
[10:30:47] casadei_: has joined #ruby
[10:31:45] schaerli: has joined #ruby
[10:32:16] ffledgling: Most of this should be just markdown parsing...
[10:33:23] ffledgling: and given that github uses jekyll internally I think it would've raised flags... if something was mucked with on that side of things.
[10:33:28] ffledgling: Hm. this is interesting.
[10:34:33] _ixti_: has joined #ruby
[10:35:47] waka: has joined #ruby
[10:35:52] livathinos: has joined #ruby
[10:37:33] despai: has joined #ruby
[10:37:55] Ox0dea: ffledgling: The problem is in redcarpet; using `markdown: rdiscount` in _config.yml prevents the crash.
[10:38:14] shevy: has joined #ruby
[10:38:31] Vile`: has joined #ruby
[10:38:41] [k-: isn't kramdown the most popular option
[10:39:11] Ox0dea: Using kramdown also prevents the crash. :)
[10:40:07] adaedra: [k-: For OSes, Windows is the most popular option. Does it means it's the right one? :)
[10:40:15] senayar: has joined #ruby
[10:40:31] Ox0dea: adaedra: Popularity implies freedom of choice.
[10:41:10] workmad3: Ox0dea: I'm free to choose... my choices are to run windows on a machine, or not be able to play half my steam library
[10:41:13] workmad3: still a choice :)
[10:42:44] phutchins: has joined #ruby
[10:42:44] senayar: has joined #ruby
[10:43:16] EminenceHC: has joined #ruby
[10:46:46] safeforge: has joined #ruby
[10:47:57] senayar: has joined #ruby
[10:48:20] apfeluser: has joined #ruby
[10:48:45] Vile`: has joined #ruby
[10:48:51] slawrence00: has joined #ruby
[10:51:26] Seich: has joined #ruby
[10:52:29] DEA7TH: has joined #ruby
[10:52:32] simplyianm: has joined #ruby
[10:52:40] codenihal: has joined #ruby
[10:52:49] CaryInVictoria: has joined #ruby
[10:53:17] Averna: has joined #ruby
[10:59:36] sdothum: has joined #ruby
[11:01:15] failshell: has joined #ruby
[11:02:31] endash: has joined #ruby
[11:06:58] DoubleMalt: has joined #ruby
[11:07:07] emilkarl: has joined #ruby
[11:07:14] bodgix: has joined #ruby
[11:08:30] sinkensabe: has joined #ruby
[11:08:37] livathinos: has joined #ruby
[11:08:40] yorickpeterse: I just have a separate Windows desktop for that
[11:08:55] yorickpeterse: everything else runs on Lunix
[11:09:18] ffledgling: Ox0dea: oh wow
[11:10:04] yorickpeterse: adaedra: http://www.adequacy.org/stories/2001.12.2.42056.2147.html
[11:10:05] [k-: GMU/Linux!
[11:10:05] diegoviola: has joined #ruby
[11:10:16] [k-: autocorrect struck again :(
[11:10:28] [k-: GMU/Lunix
[11:10:48] sonOfRa: I'm using ruby-net-ldap to talk to our ldap server. The ldap.open method yields a block in which I can carry out other LDAP operations. However, these aren't nestable: https://gist.github.com/sonOfRa/f5c87c810d08a9f4ca8e
[11:11:07] codecop: has joined #ruby
[11:11:21] sonOfRa: So, if I need to call another ldap method from inside one ldap call, I either get an exception, or I have to pass the already opened instance on to another method (but then I can't call that method on its own anymore).
[11:11:47] c355E3B: has joined #ruby
[11:11:50] adaedra: yorickpeterse: tell me it's satire
[11:12:10] sonOfRa: Would a connect method like this be safe to use? https://gist.github.com/sonOfRa/3291e7fd6ac23e9ae70d I'm not sure that this doesn't have any undesired side-effects...
[11:12:26] [k-: Topic: Internet Idiocy on the extreme left corner
[11:12:54] yorickpeterse: adaedra: no it's totally legit
[11:12:55] [k-: it *is* satire
[11:13:12] adaedra: yorickpeterse: I don't believe you
[11:13:31] [k-: he believes me! :3
[11:13:34] [k-: that's a first!
[11:14:23] Rinzlit: has joined #ruby
[11:14:40] Vile`: has joined #ruby
[11:14:59] Rinzlit: Could someone perhaps help me install a ruby script on a centos server, I've never really messed with ruby at all
[11:15:35] Rinzlit: Minimal with bitnami ruby installed
[11:16:05] adaedra: I don't remember if they have ruby 1.9 or 2.0
[11:17:32] Rinzlit: I'm trying to setup this
[11:17:33] Rinzlit: https://github.com/catarse/catarse
[11:17:43] [k-: cat.arse....
[11:17:53] adaedra: what a strange project name
[11:18:07] Rinzlit: Its a crowdfunding ruby website script
[11:18:13] Rinzlit: it looked very nice.
[11:18:15] adaedra: well, it looks like their readme cover it all
[11:18:34] Rinzlit: yeah, except everytime I try to install it idk what this bundle is
[11:18:39] Rinzlit: what rake is and how to make it work
[11:18:45] fabrice31: has joined #ruby
[11:18:48] Rinzlit: I was told it was a ruby command
[11:18:59] Rinzlit: but I installed ruby and it still wouldn't work...
[11:19:28] adaedra: you need to install it, try `gem install bundler`
[11:19:50] Rinzlit: what is this gem command?>
[11:20:01] Rinzlit: And it wouldn't run it
[11:20:11] Rinzlit: What does it run off of?
[11:20:14] adaedra: it's the ruby package manager
[11:20:25] adaedra: gems are ruby libraries
[11:20:38] sarkyniin: has joined #ruby
[11:20:49] Rinzlit: Okay, thank you. maybe I should just install ruby without the bitnami stuff?
[11:20:56] adaedra: what's a bitnami
[11:21:03] Rinzlit: The bitnami stacks
[11:21:05] dangerousdave: has joined #ruby
[11:21:05] Ox0dea: Who manages the package managers?
[11:21:17] Rinzlit: https://wiki.bitnami.com/Infrastructure_Stacks/BitNami_Ruby_Stack
[11:21:37] workmad3: Ox0dea: more package managers
[11:21:41] adaedra: normally, you can install ruby and gem with yum
[11:21:45] apeiros: the container managers
[11:21:53] adaedra: santa claus
[11:22:04] serivich: has joined #ruby
[11:22:19] bruno-: has joined #ruby
[11:22:39] Rinzlit: Okay I did yum install gem
[11:22:48] Rinzlit: And I got a ton of ruby packages
[11:23:02] Rinzlit: gem works now
[11:23:09] [k-: doesn't gem ship with Ruby
[11:23:14] Soda: has joined #ruby
[11:23:17] Rinzlit: gem install bundler is working now
[11:23:44] Rinzlit: adaedra thank you Q_Q
[11:23:47] Rinzlit: you are a life savor
[11:23:53] Rinzlit: like the candy but better
[11:24:02] adaedra: a ton? o_O
[11:24:37] Rinzlit: The guy who wrote this guide...
[11:24:41] Rinzlit: The BR is real
[11:25:30] workmad3: [k-: welcome to the joy of package-managed ruby
[11:25:36] adaedra: Don't have a CentOS at hand, but normally, rubygems is in only one package, rubygems
[11:25:43] adaedra: no need to install 'a ton'
[11:25:58] Rinzlit: adaedra if you want to help me, I can probably free up a centos server...
[11:26:03] Rinzlit: I have 4 at the moment...
[11:26:16] workmad3: adaedra: unless the ruby package hadn't installed some important things... like zlib, openssl, net/http...
[11:26:23] adaedra: I can fire up a container for that, Rinzlit
[11:26:31] Rinzlit: fair enough xD...
[11:26:40] Rinzlit: The people I work for never get their stuff done...
[11:26:50] Rinzlit: so i have to get a new server every so often....
[11:27:41] adaedra: What I know for sure, is that on Fedora the package with gem is rubygems
[11:27:42] Rinzlit: rake command still doesn't work...
[11:27:54] adaedra: what step are you in the README?
[11:28:13] Rinzlit: $ rake db:create db:migrate db:seed
[11:28:29] adaedra: all the previous commands, including bundle install, worked correctly?
[11:29:12] Rinzlit: I just had to rephrase them
[11:29:25] Rinzlit: to get install bundle
[11:29:29] Rinzlit: gem install bower
[11:29:43] htmldrum: has joined #ruby
[11:29:43] ruby-lang285: has joined #ruby
[11:30:10] ruby-lang285: i have some array with multiple emails how can i print out each ?
[11:30:13] bmurt: has joined #ruby
[11:30:25] adaedra: Rinzlit: woot
[11:30:32] Rinzlit: What is it adaedra?
[11:30:52] Ox0dea: ruby-lang285: On A4, do you mean?
[11:30:53] adaedra: the commands you have in the readme should work without changing them
[11:31:08] Rinzlit: ermmm they don't though
[11:31:15] adaedra: that's what you have to fix
[11:31:32] Rinzlit: Well $ doesn't do anything?
[11:31:35] adaedra: take them one by one, and if one errors, that's what you have to look at
[11:31:52] [k-: $ means enter to terminal
[11:31:57] adaedra: $ represents your shell, ignore it
[11:32:00] Rinzlit: I need gem file 2.1.0
[11:32:08] Ox0dea: [k-: As not-root!
[11:32:25] adaedra: Rinzlit: what's the error (use gist for > 3 lines)
[11:32:34] Rinzlit: Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0
[11:33:03] Rinzlit: I need to also not run it as root...
[11:33:04] Rinzlit: -facepalm-
[11:33:12] ruboto: General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
[11:33:44] adaedra: It means the ruby provided by your system is too old, you'll have to get an alternative ruby
[11:33:47] Rinzlit: Yeah, I'm a bad systems administrator...
[11:34:04] Ox0dea: You... thought $ was part of the command.
[11:34:04] Fluent: I root for days
[11:34:24] Philipp_: has joined #ruby
[11:34:30] Rinzlit: Ox0dea he said the whole command, I was pretty sure $ was just there to be annoying
[11:34:33] adaedra: If it's just for deployment, better get ruby-install for that
[11:34:58] Rinzlit: I just need this thing up and running in 8 hours...
[11:35:04] Rinzlit: ah ha ha....
[11:35:12] wpp: has joined #ruby
[11:35:14] Igorshp: has joined #ruby
[11:35:15] Fluent: That sounds dirty
[11:35:16] schaerli: has joined #ruby
[11:35:29] Rinzlit: eh... yeah... I should be less lazy
[11:36:27] adaedra: that's more than needed
[11:36:42] Rinzlit: because its 4AM and I haven't slept in like 24 hours
[11:37:09] Rinzlit: Should I wipe the system?
[11:37:18] adaedra: not needed, Rinzlit
[11:37:21] Fluent: Sounds logical
[11:37:29] Rinzlit: Okay, Fluent its instant resets
[11:37:34] Rinzlit: Its wonderful these servers man
[11:37:42] Rinzlit: and almost every OS too
[11:37:55] Rinzlit: adaedra are there any OS's that would make this easier?
[11:37:58] adaedra: Rinzlit: if you want to do it from scratch, you can, but it's not needed
[11:38:14] pandaant: has joined #ruby
[11:38:29] endash: has left #ruby: ()
[11:38:43] adaedra: Rinzlit: It's possible to make it work on your current OS. I think you chose it for a reason?
[11:38:59] webguynow: has joined #ruby
[11:39:01] Xzanron: has joined #ruby
[11:39:03] Rinzlit: uhmmm because my dad always uses centos
[11:39:05] Scripore: has joined #ruby
[11:39:11] Rinzlit: all linux is the same to me since I don't use them that often
[11:39:13] JeramyRR: has joined #ruby
[11:39:20] Rinzlit: but he is a IT guy of 40 years...
[11:39:27] Rinzlit: I'm sure he has some amazing reasons
[11:39:32] Fluent: an IT guy *
[11:39:40] adaedra: there may be a more recent ruby on another system, but it has also other implications
[11:39:50] Fluent: I doubt he has amazing reasons
[11:39:54] Fluent: Probably just preference
[11:40:14] adaedra: but it could be a corporate requirement or something
[11:40:35] Rinzlit: The guys I work with are like kids lol....
[11:40:48] Fluent: Sounds like me
[11:40:52] Rinzlit: they think stuff like this is black magic...
[11:40:56] Ox0dea: Sounds like "\u2649\u{1f4a9}".
[11:41:20] iateadonut: has joined #ruby
[11:41:24] Rinzlit: Okay so adaedra someone referenced in one of the guides a ruby installer script
[11:41:28] Rinzlit: to make life easier do I want that one?
[11:41:37] Rinzlit: or should I just go and install it the normal way for once?
[11:41:53] adaedra: I don't have my crystal ball, I can't see what you're talking about
[11:42:05] Rinzlit: Good point let me link it
[11:42:14] Rinzlit: https://github.com/catarse/catarse/wiki/Installing-Catarse-on-Ubuntu-12.04-VMWare
[11:42:32] Rinzlit: I got another server to do it in ubuntu
[11:42:36] Rinzlit: Still had as much trouble...
[11:42:54] Rinzlit: Want me to go change the server to ubuntu 12.04
[11:42:55] adaedra: oh, and rvm
[11:43:04] adaedra: this will not get you love in here
[11:43:24] Rinzlit: I'm kinda like an idiot with this stuff...
[11:43:50] [k-: adaedra owns a crystal ball! :o
[11:43:54] Ox0dea: Points for humility, if nothing else.
[11:43:55] fgo_: has joined #ruby
[11:44:11] Rinzlit: Thank you Ox0dea
[11:44:16] [k-: adaedra is an Oracle like Ox0dea, shevy!
[11:44:35] Ox0dea: [k-: Sick trilight!
[11:45:24] adaedra: [k-: I gave it, so yorickpeterse can see what I'm wearing
[11:45:33] Rinzlit: it says I have the latest version of ruby...
[11:45:54] [k-: yorickpeterse is an Oracle now too!
[11:45:57] sonOfRa: Why is the return explicit in one of these, but I have to make it explicit in the other? https://gist.github.com/sonOfRa/49cb0d713c503680796c
[11:45:59] Rinzlit: I updated yum and still said I did
[11:46:50] adaedra: Rinzlit: CentOS may not provide the latest version
[11:46:56] Rinzlit: oh okay...
[11:47:01] sonOfRa: Any idea why this is the case? I'm a bit stumped
[11:47:21] Ox0dea: sonOfRa: Because the if block is the last "expression" in #connect.
[11:47:24] adaedra: Rinzlit: look at this https://github.com/postmodern/ruby-install, it can install any ruby version
[11:48:30] [k-: the if block is an expression...
[11:48:41] sonOfRa: Ox0dea: so the yield statement needs to be the last thing that happens in #connect in order for it to be implicit?
[11:48:47] Oog: has joined #ruby
[11:48:55] tvw: has joined #ruby
[11:48:58] adaedra: Rinzlit: eep, don't pm without asking first
[11:49:19] Rinzlit: adaedra: sorry didn't know that was like bad...
[11:49:20] [k-: the explicit return is needed because it was in a loop
[11:49:43] [k-: or else the value gets lost in the next iteration
[11:50:02] Rinzlit: adaedra: is it okay if I continue to pm you?
[11:50:18] Ox0dea: Rinzlit: First day on IRC?
[11:50:38] adaedra: Rinzlit: short story, because my lunch time comes soon: you can use it to install a newer version of ruby in a custom place. Look at the readme, it has lot of examples. Then you can use this ruby (use chruby or change your path manually for that) to do the install of catarse.
[11:50:42] Rinzlit: Ox0dea: last time I was on an IRC was when I was into all those alternative cryptocoins
[11:50:53] Ox0dea: But you're a sysadmin...
[11:50:54] adaedra: There are a lot of people in here that can help you, don't push it to pm
[11:51:04] Ox0dea: Aren't sysadmins legally required to frequent IRC?
[11:51:18] Rinzlit: Ox0dea I got the job, because I did the companies website, and I'm cheap
[11:51:24] [k-: dun dun dun
[11:51:25] Rinzlit: I get paid 10$ an hour....
[11:51:31] davedev24: has joined #ruby
[11:51:48] allcentury: has joined #ruby
[11:52:52] adaedra: Don't you have colleagues that can help you?
[11:53:10] Rinzlit: nope, im the only guy there besides the other offsite IT guy...
[11:53:10] bmurt: has joined #ruby
[11:53:22] CaryInVictoria: has joined #ruby
[11:53:23] Rinzlit: And he doesn't like me since they want me to replace him
[11:53:37] Rinzlit: And he works with some other company too
[11:53:39] [k-: but you can't replace him...
[11:54:09] [k-: better go on a course!
[11:54:36] Rinzlit: I just turned 18 like 11 days ago...but I think I'll be alright...
[11:54:50] Rinzlit: Since I also help with their marketing too
[11:55:32] Ox0dea: /r/nottheonion: Barely legal sysadmin fails to properly install Ruby.
[11:55:35] hahuang65: has joined #ruby
[11:55:45] adaedra: Ox0dea: that's mean
[11:55:50] Rinzlit: ah ha ha.... xD
[11:55:58] Rinzlit: I installed an older version of ruby... at least...
[11:56:07] adaedra: The system provided one
[11:56:11] Rinzlit: And its only because this is also on a server
[11:56:19] snophey: has joined #ruby
[11:56:21] Rinzlit: No I used the bitnami one xD
[11:56:29] Rinzlit: Which is just as bad ah ha ha
[11:57:02] adaedra: so, let me summarize
[11:57:18] ldnunes: has joined #ruby
[11:57:35] adaedra: A junior sysadmin, a server, a ruby project, and 8 hours to have it working
[11:57:46] Rinzlit: ah ha ha... xD.....
[11:58:07] RobertBirnie: has joined #ruby
[11:58:09] Rinzlit: well its not the company i work for that wanted it done...
[11:58:17] Rinzlit: I have a friend who thinks I'm a magician with computers
[11:58:31] Rinzlit: and he talked to another company, and they wanted a website done in 48 hours
[11:58:40] Rinzlit: and my best idea was use an open source template for it
[11:59:02] Rinzlit: An of course 2/3 haven't worked properly or were really bad
[11:59:08] Rinzlit: And this last one is kinda my lost hope...
[11:59:14] RobertBirnie: has joined #ruby
[11:59:17] Rinzlit: So I'm trying to get this ruby website script going...
[11:59:40] [k-: I can ctrl-a and the screens turns blue!
[11:59:45] [k-: I'm a magician!
[11:59:55] Rinzlit: lol... you could impress him by turning the screen....
[12:00:10] Ox0dea: Manually?
[12:00:15] Rinzlit: even manually...
[12:00:28] mikecmpbll: i've implemented a thread pool in part of my code and I want to write tests for it; so if i queue up 20 jobs with a thread pool of 10 i should really be testing that there's no more than 10 threads i guess? but i don't really know where to start with that
[12:00:38] Rinzlit: of course they offered me like 500$ for the website, so I leaped at the chance to get some money xD....
[12:00:52] mikecmpbll: nvm i'm being an idiot
[12:00:53] adaedra: USD 500 for a website?
[12:01:01] adaedra: I don't know well the marked, but that seems cheap
[12:01:13] Rinzlit: well I kinda dropped out of high school ah ha ha...
[12:01:20] eGGsha: has joined #ruby
[12:01:21] Rinzlit: and I'm kinda a nobody so....
[12:01:38] adaedra: well, it's not difficult to learn
[12:01:48] adaedra: there are plenty of resources on the interwebz
[12:01:52] adaedra: but better start low
[12:01:55] Rinzlit: yeah, but I also have to make money to...
[12:02:01] Rinzlit: like I do a lot of editing of code...
[12:02:05] Rinzlit: just not any coding my self
[12:02:10] failshell: has joined #ruby
[12:02:42] Rinzlit: Anyway I need to get this stuff done I'm sooo tired Q_Q
[12:03:46] codenihal: has joined #ruby
[12:04:37] Seich: has joined #ruby
[12:05:04] schaerli: has joined #ruby
[12:05:48] RegulationD: has joined #ruby
[12:05:56] adaedra: anyway, it's time to eat something
[12:06:21] Rinzlit: thank you for the help
[12:06:28] Rinzlit: I'll probably be here when you get back xD
[12:06:49] [k-: I thought adaedra was going to miss lunch :o
[12:07:12] Rinzlit: brb im grabbing a protien drink...
[12:07:23] mikecmpbll: yeah, better get that protein in your for a coding session
[12:07:33] senayar: has joined #ruby
[12:07:43] [k-: it's a drink too!
[12:07:43] Rinzlit: yes... work on that finger strength...
[12:08:10] Rinzlit: nah i drink them because im fat and there is only 1 gram of sugar
[12:08:14] Rinzlit: and its 160 calories
[12:08:19] mikecmpbll: 160 calories ...
[12:08:23] mikecmpbll: is quite a lot for a drink
[12:08:24] [k-: drink water
[12:08:29] mikecmpbll: if you're fat probably drink something with 0 calories
[12:08:31] Rinzlit: I drink about 3 of them for meals a day
[12:08:42] Rinzlit: So about 480 calories
[12:08:48] Rinzlit: And then I drink water all day .-.
[12:09:02] mikecmpbll: k. sounds healthy
[12:09:27] Rinzlit: It's alright, its for meal replacement maybe it will work .-.
[12:09:36] Rinzlit: anyway need to get this done >.<
[12:10:28] [k-: the meal doesn't like the drink because Rinzlit wants the drink to replace him
[12:10:40] [k-: and the meal is working for another person too
[12:10:53] Rinzlit: O_o... What...?
[12:11:01] Rinzlit: I don't think I'm that tired...
[12:11:06] [k-: repeating what you said earlier
[12:11:16] Rinzlit: uhmmm okay...
[12:11:42] Rinzlit: I'm like really tired, and like half brain dead after working the last 20 hours...
[12:11:58] [k-: there besides the other offsite IT guy...
[12:11:58] [k-: [19:53:21] <Rinzlit> And he doesn't like me since they want me to replace him
[12:11:58] [k-: [19:53:36] <Rinzlit> And he works with
[12:12:11] [k-: :( it got cut off
[12:12:15] Rinzlit: Another company
[12:12:28] Rinzlit: Oh, lol xD
[12:12:28] [k-: the same with the meal!
[12:12:51] mikecmpbll: a joke loses something when it has to be explained to the very last letter, dontcha think?
[12:12:53] Rinzlit: yeah, and at some point I'd like to be able to do my job properly...
[12:13:18] [k-: motivation is a key to success!
[12:13:24] Rinzlit: Maybe 1 of those 3 things will happen xD
[12:13:47] esantiago: has joined #ruby
[12:13:54] [k-: I look like a propaganda spreader, with all those !
[12:14:04] esantiago: has left #ruby: ()
[12:14:19] Rinzlit: It's okay spamassasin wouldn't flag you
[12:14:30] Ox0dea: Rinzlit: There are two asses in assassin.
[12:14:56] Rinzlit: Yeah, I should work on my spelling along with learning to program,
[12:14:59] Rinzlit: and my grammar
[12:15:05] Ox0dea: And your axe.
[12:15:08] Rinzlit: I had a math professor point out how bad my grammar is
[12:15:22] mikecmpbll: maybe he meant your algebraic grammar
[12:15:49] Rinzlit: no I was doing the support emails till that happened
[12:15:54] [k-: if your math professor pointed it out, you are really bad
[12:15:56] Rinzlit: he said they should go hire some Americans
[12:16:22] Rinzlit: lol... I was born in New York....
[12:16:39] iateadonut: has joined #ruby
[12:17:00] Tempesta: has joined #ruby
[12:17:26] benlovell: has joined #ruby
[12:17:51] Rinzlit: if this template wasn't so nice looking, I'd go find a different one...
[12:18:10] Trynemjoel: has joined #ruby
[12:18:24] [k-_: has joined #ruby
[12:18:28] Rinzlit: Oh, and [k- I can't afford college xD
[12:18:44] Rinzlit: I work with guys who sell stuff to teachers
[12:18:57] yorickpeterse: You mean like drugs?
[12:19:09] Rinzlit: ah ha ha, almost as good profit margins
[12:19:10] DoubleMalt: has joined #ruby
[12:19:12] Rinzlit: They sell insurance
[12:19:17] [k-_: i feel sad and emphathetic now
[12:19:23] arup_r: has joined #ruby
[12:19:40] Rinzlit: Its okay [k- at least I have a job as a systems admin
[12:19:40] Trynemjoel: has joined #ruby
[12:19:48] Rinzlit: I can use it as experience to get a real job at some point
[12:20:06] mikecmpbll: ACTION ponders what's unreal about systems adminning
[12:20:07] Rinzlit: hopefuly I can teach my self how to do the stuff I need xD
[12:20:19] [k-_: you should stay!
[12:20:30] Rinzlit: What do you mean? O_o?
[12:20:35] Rinzlit: Stay where?
[12:20:42] mikecmpbll: >> Thread.list
[12:20:43] ruboto: mikecmpbll # => [#<Thread:0x42165a5c run>] (https://eval.in/403096)
[12:20:44] Rinzlit: Ermm, yeah I can do that
[12:20:55] yalue: has joined #ruby
[12:20:56] [k-_: more than a day, i mean
[12:21:05] Rinzlit: Yeah I'll just leave it up on my desktop
[12:21:15] Rinzlit: I refuse to install skype on my desktop anyway
[12:21:21] Rinzlit: I'd prefer to keep my virus's on my laptop
[12:21:36] [k-_: good policy
[12:21:44] christiandsg: has joined #ruby
[12:21:56] Rinzlit: [k- I'm sure Microsoft doesn't like that xD
[12:21:59] sandelius: has joined #ruby
[12:22:02] Rinzlit: They can't stalk me as well without skype
[12:22:11] Trynemjoel: has joined #ruby
[12:22:12] n1lo: has joined #ruby
[12:22:31] Rinzlit: Same reason I use duckduckgo
[12:22:35] [k-_: but they know where you live!
[12:22:37] Rinzlit: and the DNS server I use
[12:22:52] Rinzlit: Yeah, they probably do
[12:23:01] Rinzlit: On the bright side I still order my license keys from china
[12:23:05] Rinzlit: 10$ per microsoft office key
[12:23:19] Rinzlit: Fk microsoft
[12:24:33] Rinzlit: Oh, has anyone found any good ways to avoid paying microsoft for stuff? or other big companies?
[12:24:50] dangerousdave: has joined #ruby
[12:24:55] Rinzlit: There was a nice Centos add on that you could use to run a windows domain, and host printers and everything
[12:25:15] jhass: now we're gone fully ?ot
[12:25:24] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[12:25:32] systemd0wn: has joined #ruby
[12:25:45] Rinzlit: Oh okay my bad .-.
[12:25:56] shevy: ruby on centos is a disaster!
[12:26:05] Rinzlit: oh wait really?
[12:26:10] Rinzlit: what should I use then...?
[12:26:17] shevy: haha I don't really know... I just wanted to bring it back on topic ;)
[12:26:31] Rinzlit: oh... because I'm having trouble installing ruby on centos...
[12:26:39] shevy: in general people tend to advice for rvm or rbenv or something like that, rather than the distribution-specific packages
[12:26:52] [k-_: that little a thing won't satisfy jhass!
[12:27:00] [k-_: :o there is an ass in jhass
[12:27:08] shevy: debian tends to remove mkmf for instance; you can easily get mkmf back, but it's an extra step many people don't know about
[12:27:23] shevy: oh but you don't know the word "hass" [k-
[12:27:33] shevy: it's "hate", in german
[12:27:42] [k-_: really? :o
[12:28:22] Rinzlit: I've spent the last 3 hours trying to fix this ruby problem...
[12:28:33] Rinzlit: I think I'm going to go look for something that isn't ruby
[12:28:38] shevy: nooooooo :(
[12:28:40] [k-_: ask your father!
[12:28:42] mikecmpbll: Rinzlit: no, at leaast half an hour of it has been spent talking nonsense in here :)
[12:28:48] esantiago: has joined #ruby
[12:28:53] Rinzlit: Yeah mike, but before that I spent hours
[12:29:05] Igorshp: has joined #ruby
[12:29:07] usershell: has joined #ruby
[12:29:10] Rinzlit: And I've been casually mashing commands into my consel
[12:29:10] esantiago: Hi everyone
[12:29:24] Rinzlit: Trying stuff to install ruby, and getting it working
[12:29:25] shevy: that is the proper unix way :)
[12:29:31] mikecmpbll: esantiago: 'ello
[12:29:38] Rinzlit: This ruby site looks so pretty too
[12:29:39] Rinzlit: https://www.catarse.me/pt/projects
[12:29:42] shevy: Rinzlit right. it depends on the base system you use
[12:29:58] Antiarc: headius: http://i.imgur.com/LHXDw0m.png
[12:30:08] shevy: is this portuguese
[12:30:10] Antiarc: Whoops, wrong channel
[12:30:17] Rinzlit: Yes it is Shevy
[12:30:27] Rinzlit: All the ones in English didn't look as nice
[12:30:30] Rinzlit: Or didn't work properly
[12:30:34] pepperbreath1: has left #ruby: ()
[12:31:14] Rinzlit: Don't ruby programmers get paid really well?
[12:31:25] mikecmpbll: ACTION checks payslip
[12:31:52] Rinzlit: I swear I saw something about a ton of people wanting ruby programmers at one point .-.
[12:32:00] senayar: has joined #ruby
[12:32:19] [k-_: i dont have a job
[12:32:22] [k-_: im a student
[12:32:25] [k-_: ask apeiros!
[12:32:35] [k-_: adaedra too!
[12:32:35] shevy: Rinzlit probably the good ones get paid a lot
[12:32:41] shevy: apeiros is getting super rich for sure
[12:32:44] mikecmpbll: shevy: zing :(
[12:32:45] [k-_: or yorickpeterse!
[12:32:54] shevy: mikecmpbll you are constantly getting better!!!
[12:33:06] shevy: then you switch jobs - and get rich
[12:33:13] Rinzlit: [k-_ if I gave you the login info for my server you think you could set it up for me :D?
[12:33:41] [k-_: i do not have experience in setting up servers/ruby/gems/etc/etc/etc
[12:33:54] Rinzlit: fair enough .-.
[12:34:07] xkickflip: has joined #ruby
[12:34:09] [k-_: what i do is brew install ruby
[12:34:10] shevy: you have to go in baby steps
[12:34:12] [k-_: and im done!
[12:34:13] Silex: /etc has so many configs it needs to be set up 3 tiems
[12:34:24] shevy: (1) is your ruby working as-is; can you start "irb" and type "5+5" then hit enter
[12:34:37] Rinzlit: shevy I need version 2.1.0
[12:34:40] senayar: has joined #ruby
[12:34:42] Rinzlit: And it says 2.0.0 is the latest
[12:34:48] shevy: 2.2.x something
[12:34:48] [k-_: you need 2.2.0!
[12:34:48] Silox|: has joined #ruby
[12:34:57] Rinzlit: Yeah, well I know its not the latest...
[12:34:59] shevy: latest source is at: ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
[12:35:16] Rinzlit: Yeah... except it comes with the bitnami stacks
[12:35:18] [k-_: compile from source?
[12:35:22] Rinzlit: And its a nice simple 2 command install
[12:35:27] Averna: has left #ruby: ("JOIN #offsec")
[12:35:39] Rinzlit: and the yum install won't help either
[12:35:47] shevy: yeah you are addicted to your package managers
[12:35:48] yqt: has joined #ruby
[12:35:53] shevy: you have to remain with them :)
[12:35:53] [k-_: i tried compiling weechat from source
[12:36:01] [k-_: that uh, didnt go so well
[12:36:07] esantiago: it's such nostalgic. It's been awhile since the last time that I access an irc channel
[12:36:09] [k-_: i ended up with brew install weechat
[12:36:11] shevy: [k-_ why not... it works here!
[12:36:17] despai: has joined #ruby
[12:36:30] [k-_: i forgot what went wrong ??\_(???)_/??
[12:36:45] Rinzlit: [k-_ maybe I should try a different OS
[12:37:01] Rinzlit: Anyone know any server OS's that come with ruby 2.1 or higher from package manager?
[12:37:05] [k-_: you should try fedora then
[12:37:12] [k-_: i heard it's bleeding edge
[12:37:16] Rinzlit: lol... its on the automatic installs
[12:37:26] Rinzlit: but im good, thank you
[12:37:35] [k-_: but it's not server os though
[12:37:44] dhjondoh: has joined #ruby
[12:37:51] Rinzlit: Fedora 21 64Bit
[12:37:53] fabrice31: has joined #ruby
[12:37:58] Rinzlit: Its on the list of the guys who host my VPS will do xD
[12:38:01] shevy: hasn't ubuntu switched to a more recent ruby version?
[12:38:01] xcesariox: has joined #ruby
[12:38:29] shevy: hmm debian still has 2.2.2 in unstable https://packages.debian.org/search?keywords=ruby2.2
[12:39:44] esantiago: Rinzlit, why you don't install using rbenv?
[12:39:49] Kully3xf: has joined #ruby
[12:39:52] Rinzlit: I don't know what that is .-.
[12:40:08] darix: shevy: any newer than 2.2.2 is?
[12:40:51] Rinzlit: Yeah, I'm too tired to actually focus, on work...
[12:41:00] Rinzlit: R.I.P. I lose
[12:41:38] shevy: darix hmm no ... unless one gets the latest source snapshot
[12:42:04] shevy: I have ruby 2.2.2p95
[12:42:07] shevy: >> RUBY_VERSION
[12:42:08] ruboto: shevy # => "2.2.0" (https://eval.in/403147)
[12:42:19] shevy: the bot is almost there
[12:42:22] esantiago: Rinzlit, are you new with ruby?
[12:42:22] victortyau: has joined #ruby
[12:42:43] Rinzlit: esantiago I only ran into ruby because the website script I want is in ruby
[12:43:01] Rinzlit: And I couldn't figure out how to install it easily
[12:43:27] esantiago: Rinzlit, hmm I see
[12:43:32] _blizzy_: has joined #ruby
[12:43:47] Rinzlit: esantiago: Yeah, from what I'm experiencing ruby isn't fun on servers
[12:44:02] esantiago: Rinzlit, wich linux distro are you using?
[12:44:22] Rinzlit: esantiago: I can use ubuntu, centos, or debian
[12:44:28] Rinzlit: I just need one with ruby 2.1.0
[12:44:33] Averna: has joined #ruby
[12:45:04] Rinzlit: I have a centos server 7 with ruby 2.0.0
[12:45:19] shevy: ruby works perfectly well here
[12:45:34] Rinzlit: Idk, probably because I'm an idiot .-.
[12:45:48] shevy: does centos provide up-to-date ruby packages?
[12:46:13] Rinzlit: I'll be right back,
[12:46:14] shevy: you can try to use RVM https://www.digitalocean.com/community/tutorials/how-to-install-ruby-2-1-0-on-centos-6-5-using-rvm
[12:46:50] shevy: actually that page has a lot of centos specific info
[12:46:58] shevy: e. g. "yum groupinstall -y 'development tools'"
[12:47:20] esantiago: Rinzlit, take a look on this too https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04
[12:48:08] tmtwd: has joined #ruby
[12:48:24] Rinzlit: ERROR: Could not find 'which' command, make sure it's available first before con tinuing installation.
[12:48:33] Rinzlit: I had used "curl -L get.rvm.io | bash -s stable"
[12:49:05] dseitz: has joined #ruby
[12:49:10] yorickpeterse: Seriously, chruby > everything
[12:49:17] shevy: funny that 'which' would be required
[12:49:20] shevy: and that it was not available too
[12:49:31] Rinzlit: ...brb bathroom...
[12:50:14] christiandsg: has joined #ruby
[12:50:50] _blizzy_: has joined #ruby
[12:50:52] esantiago: shevy, yes it is...
[12:51:08] sankaber: has joined #ruby
[12:51:19] Rinzlit: Okay, back.
[12:51:29] esantiago: shevy, actually is very weird
[12:51:36] Rinzlit: Okay, louder music, and time to look into chruby.
[12:51:36] ggerman: has joined #ruby
[12:51:47] dimasg: has joined #ruby
[12:51:57] shevy: I hope that the music helps
[12:52:04] n1lo: has left #ruby: ()
[12:52:05] Rinzlit: Eh, its hollywood undead
[12:52:22] ggerman: hello anybody try with ruby in docker? I have this problem: ERROR: Loading command: install (LoadError)
[12:52:23] shevy: you would make yorickpeterse very happy if you succeed with chruby
[12:52:25] ggerman: cannot load such file -- zlib
[12:52:27] ggerman: ERROR: While executing gem ... (NoMethodError)
[12:52:30] ggerman: undefined method `invoke_with_build_args' for nil:NilClass
[12:52:46] shevy: ggerman sounds as if you do not have zlib installed. are you on a debian based system?
[12:52:53] yorickpeterse: ggerman: you need to have zlib installed when compiling RUby
[12:53:04] ggerman: yes debian / jessi
[12:53:34] shevy: yeah. several ways to fix it. I usually recompile zlib :) in your case you may have to get the dev package for zlib... not sure how it is called on debian
[12:54:13] CaryInVictoria: has joined #ruby
[12:54:20] Rinzlit: [k- is it okay to private message you?
[12:54:30] shevy: perhaps the name is zlib1g-dev BUT I am not sure
[12:54:40] prefixed: has joined #ruby
[12:55:20] ggerman: i try with this apt-get install zlib1g zlib1g-dev; but dosn't work
[12:55:23] msgodf: has joined #ruby
[12:56:04] despai: has joined #ruby
[12:56:10] Kully3xf: has joined #ruby
[12:56:13] ggerman: let try compiling zlib manually
[12:56:24] bmurt: has joined #ruby
[12:56:27] shevy: yeah not sure what convention debian follows. perhaps it is logical, I never found out. you need to find out what your current zlib is
[12:56:40] shevy: and then find the corresponding -dev component
[12:56:56] shevy: https://packages.debian.org/source/jessie/zlib
[12:57:03] shevy: I don't even know what is jessie etc...
[12:57:31] Rinzlit: How do I know if I installed chruby properly?
[12:57:37] shevy: if you need help for the source, the latest zlib version is http://www.zlib.net/zlib-1.2.8.tar.gz and LFS/BLFS has information how to compile it properly: http://www.linuxfromscratch.org/lfs/view/development/chapter06/zlib.html
[12:57:42] [k-_: Rinzlit, i wouldn't be able to guide you
[12:57:45] galeido: has joined #ruby
[12:57:55] ggerman: ok, thanks
[12:57:58] [k-_: I literally have zero experience in the ruby ecosystem
[12:57:59] Rinzlit: [k-_: May I PM you though?
[12:58:13] [k-_: sometimes you might get a +g message tho
[12:58:34] shevy: ah I forgot to mention one thing actually
[12:58:57] shevy: ggerman the above error happens in ruby actually, in particular the ruby bindings to zlib
[12:59:05] shevy: in the ruby source, they are under ext/zlib
[12:59:20] shevy: I have no idea if debian provides the ruby-zlib part in a package
[13:00:15] ggerman: no, we haven't ruby zlib
[13:01:28] shevy: ok I am looking at other problems... similar problems on ubuntu http://stackoverflow.com/questions/769496/ubuntu-noob-rails-install-fails-on-zlib
[13:01:34] shevy: first reply suggests RVM
[13:01:45] dimasg: has joined #ruby
[13:01:45] mustmodify: has joined #ruby
[13:01:58] shevy: on centous, the dev parts would be "yum install zlib zlib-devel" but he also recompiles ruby from source actually
[13:02:35] shevy: if you have compiled zlib though, you can try to go into ext/zlib and just compile the bindings. not sure if it will work though
[13:03:00] ggerman: I dowloaded zlib .. configure ... make make install; and have the same problem
[13:03:10] drewdavis: has joined #ruby
[13:03:17] Liothen: has joined #ruby
[13:03:19] G: has joined #ruby
[13:03:23] shevy: yeah, the ruby bindings to zlib
[13:03:31] shevy: but zlib compiled fine?
[13:03:47] yorickpeterse: ggerman: you need to recompile Ruby for it to pick up zlib
[13:03:51] yorickpeterse: recompiling zlib does nothing
[13:03:56] retornam: has joined #ruby
[13:03:59] darxun: has left #ruby: ()
[13:03:59] allcentury: has joined #ruby
[13:04:02] yorickpeterse: and make sure your development headers of zlib are installed
[13:04:05] shevy: he did not have the dev package so no .h files
[13:04:22] simplyianm: has joined #ruby
[13:04:29] yorickpeterse: IIRC it's `sudo apt-get install zlib1g-dev` on Debian
[13:04:41] ggerman: recompiling ...
[13:05:04] shevy: ah now I see, so he had the zlib dev stuff already
[13:05:12] fabrice31: has joined #ruby
[13:06:35] Rubie: has joined #ruby
[13:07:47] hinbody: has joined #ruby
[13:08:42] penzur: has joined #ruby
[13:09:24] Rinzlit: esantiago, I'm trying ubuntu 14.0.4 now
[13:09:43] adaedra: still at it?
[13:09:50] CaryInVictoria: has joined #ruby
[13:09:50] Rinzlit: I WILL NOT SURRENDER
[13:09:57] Rinzlit: And yes .-.
[13:10:17] esantiago: hahaha good
[13:10:26] esantiago: you'll win!
[13:10:29] apeiros: oooh, TIL:
[13:10:37] apeiros: >> "foo & bar".encode(xml: :text)
[13:10:38] ruboto: apeiros # => "foo &amp; bar" (https://eval.in/403158)
[13:11:35] shevy: >> require 'cgi'; CGI.escape_html("foo & bar")
[13:11:36] ruboto: shevy # => "foo &amp; bar" (https://eval.in/403160)
[13:11:44] esantiago: Rinzlit, have you ever worked with vagrant?
[13:12:06] Rinzlit: I read on it
[13:12:17] Rinzlit: Its a virtual envirement thingy
[13:14:42] Yiota: has joined #ruby
[13:14:42] johnhamelink: has joined #ruby
[13:14:59] pontiki: radar has a writeup on installing rails on ubuntu 14.04
[13:15:08] adaedra: grmbl, connection dropped
[13:16:02] ggerman: solution: install zlib recompile the ruby
[13:16:09] mustmodify: has left #ruby: ()
[13:16:33] ggerman: in docker the openssl isn't installed then i have a new error but more explicit
[13:16:40] ggerman: Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
[13:16:52] shevy: yeah openssl is more annoying
[13:17:06] shevy: it also is in ext/openssl btw just as ext/zlib or ext/readline for all those bindings for ruby
[13:17:07] Rinzlit: 25% of the way esantiago, I just need to stay awake ah ha ha
[13:17:15] jgpawletko: has joined #ruby
[13:17:17] failshell: has joined #ruby
[13:17:34] adaedra: shevy ggermanit's not more annoying than everything else, just need to install the dependencies
[13:17:35] shevy: ggerman if you need the source way, BLFS for the win http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssl.html - however had, I assume that debian has -dev package for it
[13:18:08] esantiago: Rinzlit, I created an script for environment provisioning using vagrant https://github.com/emilio2hd/development-ubuntu-ruby-rails-ansible
[13:18:52] Iskarlar: has joined #ruby
[13:19:37] pontiki: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[13:19:44] Rinzlit: YES YES YES YES
[13:19:53] Rinzlit: -Throws a god damn party-
[13:19:58] Rinzlit: I have ruby 2.2.1
[13:20:07] adaedra: [APPLAUSE]
[13:20:16] Rinzlit: Only took a few hours, thank you ^_-
[13:20:23] ggerman: trying with "apt-get install libssl-dev" and recompiling ruby
[13:20:37] pontiki: esantiago: i <3 ansible :)
[13:20:37] woodruffw: has joined #ruby
[13:21:02] pontiki: years of fighting with chef and puppet
[13:21:16] pontiki: i learn ansible in 2 hours
[13:22:41] adaedra: sounds interesting
[13:23:23] dangerousdave: has joined #ruby
[13:23:31] bronson: has joined #ruby
[13:23:36] esantiago: pontiki I like ansible very much too, it's very easy to learn
[13:24:10] pontiki: just to show off, here's my setup: https://github.com/tamouse/vagrant-with-ansible-starter-kit
[13:24:27] pontiki: they're so bloody easy to customize
[13:25:21] shevy: ggerman hmm in principle, you would not need to have to recompile ruby, the ext/openssl should suffice. however don't quote me 100% on it, in particular with ext/openssl I have had problems in the past, so I also ended up recompiling
[13:25:22] esantiago: pontiki, nice
[13:25:30] mhib: has joined #ruby
[13:26:11] gamename: has joined #ruby
[13:27:16] [H]unt3r: has joined #ruby
[13:27:24] mbeasley_: has joined #ruby
[13:27:42] TOAA: has joined #ruby
[13:27:51] jerius: has joined #ruby
[13:29:29] bahar: has joined #ruby
[13:29:38] Papierkorb: has joined #ruby
[13:30:02] gamename: has joined #ruby
[13:30:58] gamename: has joined #ruby
[13:31:34] bungoman: has joined #ruby
[13:32:26] lannonbr: has joined #ruby
[13:33:17] ggerman: working !!!
[13:33:52] ggerman: but if i'm not compile ruby again after install libssl-dev dosn't work
[13:35:17] sevenseacat: has joined #ruby
[13:35:37] paulcsmith: has joined #ruby
[13:35:45] DEA7TH: has joined #ruby
[13:35:46] shevy: ggerman ext/openssl should suffice
[13:35:51] shevy: the parts there recompiling would take ~20 seconds
[13:36:04] malconis: has joined #ruby
[13:36:28] Rinzlit: So I finally got ruby 2.2.1 and now it can't find gemfile?
[13:36:39] AlexAltea: has joined #ruby
[13:36:59] adaedra: what did you do
[13:37:12] Rinzlit: "bundle install"
[13:37:20] Rinzlit: I'm install gem now .-.
[13:37:25] Rinzlit: -prays that it will fix it-
[13:37:35] pontiki: did you install the bundler gem for your new ruby?
[13:37:47] Rinzlit: I don't know what that is
[13:38:06] pontiki: it is what lets you run "bundle install"
[13:38:20] Rinzlit: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing
[13:38:20] Rinzlit: your bundle as root will break this application for all non-root users on this
[13:38:20] Rinzlit: Could not locate Gemfile or .bundle/ directory
[13:38:31] Rinzlit: Wops went over 3 lines >.<
[13:38:34] adaedra: Are you in the right directory?
[13:38:43] Rinzlit: I am in the root
[13:38:44] jhass: and why do you run it as root?
[13:38:49] a346: has joined #ruby
[13:38:52] adaedra: Also, what the f*ck are you doing as root.
[13:38:59] Rinzlit: If I don't run it as root it completely ignores my command
[13:39:02] ruboto: General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
[13:39:31] adaedra: Rinzlit: You need to run these commands from the project root directory, as the user that will run the software.
[13:39:36] jhass: and "the root" is ambiguous, could mean /, could mean the root of the project you want to install, ...
[13:39:39] esantiago: you need to be in the same directory which have the Gemfile
[13:39:48] dblessing: has joined #ruby
[13:40:20] Rinzlit: Where are the gemfiles on ubuntu...?
[13:40:53] adaedra: The gemfile is in the thing you're trying to install
[13:41:26] Rinzlit: I did apt-get install gem
[13:41:33] Rinzlit: And it just automatically did it for me...
[13:42:01] esantiago: did you install bundle?
[13:42:14] esantiago: gem install bundler
[13:42:37] adaedra: Ah, he reset his system finally?
[13:42:47] Rinzlit: Yes, I am on ubuntu now
[13:42:59] Rinzlit: But wait this worked on Centos
[13:43:21] Rinzlit: adaedra you said I needed to follow the order in the readme, and It worked fine if I didn't follow it o-o
[13:43:27] serivich: has joined #ruby
[13:43:37] dopie: has joined #ruby
[13:44:10] acl_: has joined #ruby
[13:44:18] Rinzlit: Didn't you tell me to follow the instructions
[13:44:23] Rinzlit: and not rephrase the commands
[13:44:36] Rinzlit: RAKE WORKS NOW :D :D :D
[13:44:41] pontiki: did any of these instructions say to use apt-get?
[13:44:51] pontiki: but you are
[13:44:53] Rinzlit: I never follow instructions properly
[13:45:03] pontiki: ah, good to know
[13:45:04] fgo_: has joined #ruby
[13:45:19] Rinzlit: Yeah, I'm not good at being patient and not trying everything
[13:45:29] JoshL: has joined #ruby
[13:45:38] pontiki: it helps me to weed out the people whom i can properly help
[13:45:56] Rinzlit: Fair enough, I usually figure things out eventually xD
[13:46:14] Rinzlit: Although adaedra and esantiago helped a lot
[13:47:02] Iskarlar: has joined #ruby
[13:47:25] Rinzlit: Thank you both ^^
[13:47:29] adaedra: it's better when you understand what you do though
[13:48:07] Rinzlit: I'll do that once I have slept and care more about keeping the server working xD
[13:48:19] Rinzlit: I just need it for a display for like 30 mins xD
[13:48:45] rubycoder02: has joined #ruby
[13:48:56] Rinzlit: and then I got to the part for why I had bitnami >.< ah ha ha
[13:49:45] esantiago: hahaha good
[13:50:08] eggoez: has joined #ruby
[13:50:15] Rinzlit: esantiago, I can't sleep till I get the server up then white label it for the company xD
[13:50:20] marr: has joined #ruby
[13:50:22] Rinzlit: I got 5 hours left
[13:51:12] freerobby: has joined #ruby
[13:51:44] ruby-lang934: has joined #ruby
[13:51:47] despai: has joined #ruby
[13:51:48] howdoi_: pry.debugger vs binding.pry ?
[13:51:51] bruno-: has joined #ruby
[13:52:08] ruby-lang934: any rubby programmer there?
[13:52:12] sankaber: has joined #ruby
[13:52:15] ruby-lang934: any rubby programmer there?
[13:52:29] pontiki: i don't know where you are, can't tell
[13:54:02] senayar: has joined #ruby
[13:54:17] pontiki: howdoi_: binding.pry afaik; i've never seen the other
[13:55:25] ruby128: has joined #ruby
[13:55:53] howdoi_: pontiki: hmm
[13:56:12] ruboto: Just ask your question, if anyone has or can, they will respond.
[13:56:38] duggiefresh: has joined #ruby
[13:57:14] loc22: has joined #ruby
[13:57:22] jbw_: has joined #ruby
[13:57:48] ruby-lang934: Hi, I started programming with ruby a few weeks ago, now I manage the basics but i dont know how to expand my knowledge about ruby, i cant find any course or something, could you give me some advise to carry on learning ruby?
[13:57:56] pontiki: howdoi_: "Runtime Invocation" on http://pryrepl.org/
[13:58:28] pontiki: ruby-lang934: if you've searched the net and NOT found any information on learning ruby, what are you finding???
[13:58:29] jhass: ruby-lang934: did the koans already?
[13:58:56] ruby-lang934: i found a basic tutorial
[13:59:07] ruby-lang934: which explained the basics obviously
[13:59:07] jhass: ?koans ruby-lang934
[13:59:07] ruboto: ruby-lang934, I don't know anything about koans
[13:59:08] RegulationD: has joined #ruby
[13:59:32] decoponio: has joined #ruby
[13:59:36] ruby-lang934: what's koans?
[13:59:50] adaedra: it should highlight the person that triggered the fact, not the target, on unknown fact
[13:59:50] jhass: !fact mk koans A test driven walk through Ruby, http://rubykoans.com/
[13:59:51] ruboto: jhass, I will remember that koans is A test driven walk through Ruby, http://rubykoans.com/
[14:00:05] ruboto: I don't know anything about book
[14:00:07] ruboto: I don't know anything about books
[14:00:13] jhass: adaedra: yeah, it's fixed but not deployed iirc
[14:00:22] adaedra: THANKS APEIROS
[14:00:27] jhass: [k-_: neither deployed afaik
[14:00:29] werelivinginthef: has joined #ruby
[14:01:04] pontiki: i've got 33k hits on "ruby tutorials" in google
[14:01:17] senayar: has joined #ruby
[14:01:18] jbwiv: has joined #ruby
[14:01:26] ruby-lang934: yeah but most of them speaks about basics
[14:01:59] pontiki: and you've read all the books, manuals and documentation?
[14:02:25] dangerousdave: has joined #ruby
[14:02:55] ruby-lang934: I'll try to find something to carry on
[14:03:02] jhass: try the koans
[14:03:17] howdoi_: pontiki: yup
[14:03:26] ruby-lang934: Are you ruby programmers or ror?
[14:03:41] jhass: quite a few both but Rails talk goes to #RubyOnRails
[14:03:47] howdoi_: I do, node.js as well ;)
[14:04:05] ruby-lang934: I come from java and its a bit strange to see ruby syntax
[14:04:49] bigkevmcd: has joined #ruby
[14:05:04] hahuang65: has joined #ruby
[14:05:09] Rinzlit: http://pastebin.com/CH1eDJYP
[14:05:10] ruboto: Rinzlit, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/713b92db18e7e8eeca05
[14:05:10] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[14:05:18] Muhannad: has joined #ruby
[14:05:23] jhass: ruby-lang934: another good way to improve is to solve some problem you actually have and then get the script reviewed here
[14:05:36] ruby-lang934: yeah nice too
[14:05:41] ruby-lang934: Koans is a manual?
[14:05:48] ItSANgo: has joined #ruby
[14:05:51] fdjrt: has joined #ruby
[14:05:55] jhass: did you even look at the site :/
[14:06:08] fdjrt: which one
[14:06:09] usershell: has joined #ruby
[14:06:09] ruby-lang934: i've just entered
[14:06:23] fdjrt: re-entered it
[14:06:36] ruboto: You can find a log of this channel at http://irclog.whitequark.org/ruby/
[14:06:41] bigbadbear: has joined #ruby
[14:06:46] jhass: Rinzlit: why still root m(
[14:07:04] Rinzlit: jhass all that is important is I get this done quickly >.<
[14:07:11] Rinzlit: And when I'm not in root it gives me more trouble
[14:07:33] schaerli: has joined #ruby
[14:07:35] jhass: no, it's more important that not working as root is not trouble for you
[14:07:38] christiandsg: has joined #ruby
[14:07:42] jhass: read some basics about file permissions, users and groups
[14:07:53] Igorshp: has joined #ruby
[14:08:01] workmad3: jhass: but didn't you hear... only speed matters! not security, safety, correctness or anything else... just speed!
[14:08:04] Rinzlit: jhass I'll do that once I get this done I got like 4 hours left >.<
[14:08:08] esantiago: Rinzlit, in Gemfile's project must be something like ruby: '2.1.0', change it to '2.2.1'
[14:08:25] Iskarlar: has joined #ruby
[14:08:44] Kully3xf_: has joined #ruby
[14:08:51] Rinzlit: okay search for gemfile right now
[14:09:23] jpfuentes2: has joined #ruby
[14:10:13] symbol: has joined #ruby
[14:10:32] griffindy: has joined #ruby
[14:11:03] Rinzlit: https://gist.github.com/anonymous/64e579c60c287ab78804
[14:11:18] Rinzlit: More problems >.<
[14:11:29] jhass: yep, number one: you still work as root
[14:11:40] Rinzlit: lol jhass I love you xD
[14:11:46] CaryInVictoria: has joined #ruby
[14:11:50] Rinzlit: And I'd love for you to teach me stuff like this tomorrow if possible xD
[14:11:53] jbw_: has joined #ruby
[14:11:57] Rinzlit: Maybe you could let some little things slide for now?
[14:12:04] Rinzlit: Or is that actually a real problem?
[14:12:07] jhass: not really, no
[14:12:15] willywos: has joined #ruby
[14:12:18] Rinzlit: Okay I'll login into none root
[14:12:42] Rinzlit: So now I need to refile everything under the home directory?
[14:12:59] ruby-lang934: Is it posible to make GUI's with ruby?
[14:13:01] Rinzlit: Okay, I'll get right on that
[14:13:20] jhass: ruby-lang934: yes
[14:13:21] crowell: ruby-lang934: yes, there are bindings for several toolkits
[14:13:23] Rinzlit: Will I need to reinstall things?
[14:13:33] ruby-lang934: i don't get the gems at all
[14:13:51] jhass: ruby-lang934: gems are just libraries for Ruby
[14:14:04] jhass: Rails is packaged as a bunch of gems for example
[14:14:12] freerobby: has joined #ruby
[14:14:39] ruby-lang934: so ruby on rails is no more than a bunch of gems?
[14:15:14] mengu: has joined #ruby
[14:15:17] adaedra: actually, it's a gem itself (rails), which depends on many other
[14:15:34] Xzanron: has joined #ruby
[14:17:08] ruby-lang934: I have just downloaded koans
[14:17:17] ruby-lang934: i'll do all the exercises during this week
[14:17:34] fabrice31: has joined #ruby
[14:17:48] adaedra: you'll be a ruby pro
[14:18:04] [k-_: unlike me who did not read koans :(
[14:18:30] ruby-lang934: what could i do after koans?
[14:18:40] [k-_: very powerful stuff
[14:18:47] pontiki: write code
[14:19:11] slawrence00: has joined #ruby
[14:19:28] ruby-lang934: does koans also teach GUI's ?
[14:19:34] pontiki: sign up with project euler and exercism.io
[14:20:02] TheBrayn: I don't think that project euler is particulary great for gaining ruby experience
[14:20:13] pontiki: not especially
[14:20:16] pontiki: but it's coding
[14:20:34] workmad3: codewars seems reasonable from what I've seen
[14:20:45] ta: I'm using CSV.read with throws `"\xE6" on US-ASCII` - offending text seems to be `...,o0xHAi,...` - which is just an id... how can I get CSV.read to just treat as text ?
[14:21:01] ta: which even
[14:21:03] jhass: codewars has more things to churn through, exercism.io focuses better on the reviews
[14:21:06] anjen: has joined #ruby
[14:21:21] workmad3: ta: 'just treat as text' <-- what encoding?
[14:21:43] ta: workmad3: `file -i` says us-ascii
[14:21:44] jhass: ta: sounds like you need to patch up you system locale to actually match your files
[14:22:21] workmad3: ta: sounds like `file` has it wrong
[14:22:50] ta: iconv ... -t utf-8 says `iconv: illegal input sequence`
[14:23:05] jhass: what does enca report?
[14:23:32] ta: enca is a tool?
[14:24:03] ta: Hmm.. not available on the box (can't easily install new software)
[14:24:33] Spami: has joined #ruby
[14:24:34] jhass: why not? is http://www.toastball.net/toast/ an option?
[14:24:48] despai: has joined #ruby
[14:25:07] Rinzlit: Why am I trying to do things as not root...
[14:25:14] Rinzlit: I can't install stuff or use what I need...
[14:25:16] jhass: ?root Rinzlit
[14:25:16] ruboto: Rinzlit, General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
[14:25:29] jhass: Rinzlit: you know sudo?
[14:25:53] apeiros: shouldn't that be "advice"?
[14:26:02] jhass: probably, fix it
[14:26:03] Rinzlit: I wish my root password wasn't impossibly long...
[14:26:20] workmad3: Rinzlit: root gives you no safety net... doing stuff as root when you don't actually know what you're doing or why == tightrope walking over a pit of spikes whilst drunk and blindfolded
[14:26:45] Rinzlit: workmad3 but im fine with that this is a tossaway server
[14:26:46] jhass: long password is good, gives you chance to think about what you're doing as root there again
[14:26:53] Rinzlit: I'll format it once I get what I want going
[14:26:59] Rinzlit: and reinstall it correctly on the other one
[14:27:09] Vile`: has joined #ruby
[14:27:15] jhass: why not learn to do it correctly in the first place?
[14:27:21] jhass: reduces number of iterations
[14:27:33] ndrei: has joined #ruby
[14:27:43] adaedra: could me you get to bed earlier
[14:28:11] Rinzlit: ....I don't know how to use the sudo command... -facepalm-
[14:28:14] tjohnson: has joined #ruby
[14:28:17] hashrocket: has joined #ruby
[14:28:21] fabrice31_: has joined #ruby
[14:28:26] Rinzlit: It wants my password
[14:28:30] Rinzlit: just to tell me I can't use it
[14:28:38] ruby-lang934: have you programmed anything interesting recently i would be glad to see your projects
[14:28:42] Rinzlit: It asks for user password not admin password
[14:28:45] ruby-lang934: it seems like you're such a programmer
[14:29:00] jhass: ruby-lang934: guess my github nick
[14:29:02] adaedra: that's like sysadmin 101
[14:29:03] pontiki: this is just depressing me
[14:29:06] allomov: has joined #ruby
[14:29:16] pontiki: has left #ruby: (""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson")
[14:29:26] Rinzlit: pontiki, I'm about to just give up and call it a day tbh...
[14:29:34] jhass: ruby-lang934: github? oO
[14:30:01] ruby-lang934: no i mean your user name
[14:30:04] despai: has joined #ruby
[14:30:07] ruby-lang934: i think ive just found you xD
[14:30:17] tkuchiki: has joined #ruby
[14:30:19] jhass: yeah, you didn't even try to guess if you ask that
[14:30:38] krz: has joined #ruby
[14:30:50] fullofcaffeine: has joined #ruby
[14:31:09] hahuang65: has joined #ruby
[14:31:13] ruby-lang934: in which languages do you programm
[14:31:15] adaedra: damn, those people who use the same nick everywhere
[14:31:58] jhass: ruby-lang934: the ones you find on my github
[14:32:21] ruby-lang934: do you work on programming?
[14:32:36] jhass: still finishing up studies :/
[14:33:09] jerius: has joined #ruby
[14:33:51] havenwood: has joined #ruby
[14:34:32] schaerli: has joined #ruby
[14:34:50] riotjones: has joined #ruby
[14:36:03] pengin: has joined #ruby
[14:36:46] Rinzlit: I am going to look for a different one
[14:37:05] bohallor: has joined #ruby
[14:37:09] Scripore: has joined #ruby
[14:38:50] flughafen: has joined #ruby
[14:39:16] montyboy_: has joined #ruby
[14:39:22] rikkipitt: has joined #ruby
[14:39:57] shevy: never give up!
[14:40:05] hornairs: has joined #ruby
[14:40:24] Rinzlit: Nah, I really need to get this website done in the next 4 hours
[14:40:36] Rinzlit: I can't spend anymore time "trying" to get that one working
[14:42:00] [k-_: all this for a script :/
[14:42:21] Rinzlit: I need some sort of script like that one .-.
[14:42:21] kb3ien: has joined #ruby
[14:42:26] kb3ien: Why does searchquery = searchquery.gsub('%28','(').gsub('%3A',':').gsub('%29',')').gsub('%23',',')
[14:42:42] fabrice31: has joined #ruby
[14:42:47] kb3ien: only change the FIRST instance of '%28' to "(" not all ?
[14:42:47] Rinzlit: Any chance I could pay someone to set it up for me .-.
[14:42:52] psye: has joined #ruby
[14:43:06] Rinzlit: Turns out I already tried every other script...
[14:45:04] despai: has joined #ruby
[14:45:25] sevenseacat: ooh, script kiddies having fun?
[14:45:42] kb3ien: I thought gsub was intended to swap all occurances.
[14:46:04] DoubleMalt: has joined #ruby
[14:46:24] sevenseacat: kb3ien: code, input and expected output?
[14:48:06] sharpmachine: has joined #ruby
[14:48:39] chouhoulis: has joined #ruby
[14:48:47] mary5030: has joined #ruby
[14:49:17] bumbar_: has joined #ruby
[14:49:34] bumbar_: what do ? and = at the end of methods means?
[14:49:37] schaerli: has joined #ruby
[14:49:48] yorickpeterse: ? is a predicate method, they often return booleans
[14:49:52] yorickpeterse: = is used for setter methods
[14:49:54] sevenseacat: they're part of the method name.
[14:50:18] bumbar_: kind of like overloading?
[14:50:34] kb3ien: hahaha never mind the guy before more didn't seem to know his ascii very well, or i totally missed the point of his code.
[14:50:35] despai: has joined #ruby
[14:51:04] yorickpeterse: bumbar_: "?" can just be part of the name if it comes at the end
[14:51:11] yorickpeterse: "=" comes with some syntax sugar
[14:51:16] esantiago: Rinzlit, oh no, when you did your ruby configuration you were root
[14:51:21] yorickpeterse: that is, foo.bar = 10 is basically foo.bar=(10)
[14:51:40] Rinzlit: Yeah I did
[14:51:46] jY: has left #ruby: ("Linkinus - http://linkinus.com")
[14:52:17] Rinzlit: esantiago, I only got a few hours left ah ha ha....
[14:52:59] Rinzlit: I'll probably see if I can find an alternetive to this ruby script
[14:53:08] esantiago: you can't do this as root
[14:53:29] adaedra: don't work as root
[14:53:51] Rinzlit: ill reinstall
[14:53:54] Rinzlit: and do it without root
[14:53:56] adaedra: this will open door for more problems that it will solve
[14:54:03] adaedra: no need to reinstall everything
[14:54:13] sevenseacat: what even is the problem here?
[14:54:17] imperator: has joined #ruby
[14:54:17] esantiago: use this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04 but follow exactly as described!
[14:54:19] bashusr: has left #ruby: ("Ex-Chat")
[14:54:28] bumbar_: so i have an object and would like to get methods that have disable in their names. i've tried: (u.methods - Object.methods).index{|s| s.include?("disable")} but doesn't work
[14:54:47] sevenseacat: why index? why not select?
[14:54:54] sevenseacat: index will not do what you want
[14:55:26] jerius: has joined #ruby
[14:55:59] Rinzlit: esantiago, let me figure out how to setup accounts...
[14:56:14] aryaching: has joined #ruby
[14:57:05] bumbar_: sevenseacat, first time i'm using ruby, was just look at 1st SO answer :P
[14:57:19] sevenseacat: well that was your first mistake
[14:57:53] nateberkopec: has joined #ruby
[14:58:00] imperator: has left #ruby: ("Leaving")
[14:58:01] Iskarlar: has joined #ruby
[14:58:37] scpike: has joined #ruby
[14:59:07] f3ttX]: has joined #ruby
[14:59:21] ljarvis: >> GC.methods(false).grep /disable/
[14:59:22] ruboto: ljarvis # => [:disable] (https://eval.in/403395)
[14:59:28] havenwood: bumbar_: Take a look at #grep: http://ruby-doc.org/core/Enumerable.html#method-i-grep
[14:59:46] bumbar_: judging from documentation, i can just replace index with select, but then the variable in block doesn't have include? method
[15:01:09] ljarvis: bumbar_: enum.grep(/foo/) will give the same result as enum.select {|e| e =~ /foo/ }
[15:01:12] fabrice31: has joined #ruby
[15:01:27] Rinzlit: Okay, so I gave my self sudo permissions
[15:01:33] Rinzlit: Still can't seem to use the sudo command.
[15:01:49] CaryInVictoria: has joined #ruby
[15:02:20] fabrice31: has joined #ruby
[15:02:24] bumbar_: i think you need to logout and back in for it to take effect
[15:02:35] adaedra: depends on the method you gave yourself rights
[15:02:49] Rinzlit: 2 different putty clients
[15:04:22] bumbar_: havenwood, ljarvis, thanks
[15:04:33] olas: how would you create a function like the [0..5] you can do with an array?
[15:05:08] shevy: def foo; [0..5]; end
[15:05:13] Channel6: has joined #ruby
[15:05:26] ljarvis: olas: def [](x); end
[15:05:37] ljarvis: x will be the range 0..5
[15:05:58] jhass: Rinzlit: make sure to logout and login again in all sessions
[15:06:16] giuseppesolinas: has joined #ruby
[15:06:23] olas: ljarvis: ah, but what if i already have something defined for that
[15:06:29] Rinzlit: yeah... I got that working now...
[15:06:32] olas: would i just check if a range object was passed in?
[15:06:35] Rinzlit: just now things can't be found
[15:06:37] jhass: olas: yeah
[15:07:25] jhass: Rinzlit: if you want any actual tips provide actual error messages
[15:07:31] Rinzlit: -sh: 35: cd: can't cd to /home/ari
[15:07:44] ljarvis: olas: exactly, usually case is your friend here
[15:07:49] Xiti: has joined #ruby
[15:07:53] jhass: that's hardly the full output of... what even?
[15:08:02] Rinzlit: Thats all I got when I type in cd
[15:08:17] jhass: then you didn't create the homedir for the user
[15:08:25] jhass: (or rather didn't the user creation command do it)
[15:08:34] olas: ljarvis: usually case?
[15:08:44] mhf: has joined #ruby
[15:08:56] ljarvis: olas: case arg.. when Range .. etc
[15:09:11] jhass: Rinzlit: sudo cp -a /etc/skel /home/ari; sudo chown -R ari:ari /home/ari
[15:09:20] j4cknewt: has joined #ruby
[15:09:23] Rinzlit: I created it already
[15:10:02] dgutierrez1287: has joined #ruby
[15:10:42] Rinzlit: I use one of jhass's commands
[15:10:46] chipotle: has joined #ruby
[15:10:46] Rinzlit: Suddenly everything works
[15:10:49] Rinzlit: I don't fking even
[15:11:01] desigx: has joined #ruby
[15:11:28] adaedra: Rinzlit: once this is done, you'll get some sleep, then read a guide on basic linux administration, right?
[15:11:52] Rinzlit: Yeah, well once this is done I've got to go set it up the way these guys want it
[15:12:03] Rinzlit: Then I'm passing out
[15:12:05] olas: ljarvis: my god as i wrote it out i realized that the code for the range and normal indexing into my data structure looked exactly the same haha
[15:12:21] olas: i just wasn't think of the a..b range as a range object
[15:12:21] Rinzlit: Where is there even a guide on basic linux administration?
[15:12:39] adaedra: Google can find you that.
[15:12:47] jessu: has joined #ruby
[15:12:49] Rinzlit: $ source ~/.bash_profile
[15:12:49] Rinzlit: -sh: 51: source: not found
[15:13:03] Rinzlit: Whats that mean?
[15:13:20] adaedra: it means you're not using bash
[15:13:45] Rinzlit: How do I use bash?
[15:13:49] Rubie: has joined #ruby
[15:14:03] quimrstorres: has joined #ruby
[15:14:23] werelivinginthef: has joined #ruby
[15:15:26] hobodave: has joined #ruby
[15:15:53] havenwood: Rinzlit: Check your current shell: echo $SHELL
[15:16:35] Igorshp: has joined #ruby
[15:16:39] jhass: Rinzlit: chsh /bin/bash
[15:17:07] Rinzlit: I had typed in bash and it started working
[15:17:10] Rinzlit: Is that bad?
[15:17:11] jhass: ah no, chsh -s /bin/bash
[15:17:13] thang: has joined #ruby
[15:17:22] jhass: just tedious to do everytime you login
[15:17:28] jhass: chsh changes your login shell
[15:17:46] Rinzlit: 1 sec closing my window
[15:17:51] havenwood: Rinzlit: Type `bash` to use bash. See: man bash
[15:18:33] havenwood: Rinzlit: The #bash channel is a good place for bash. ;)
[15:18:45] coffeejunk: has joined #ruby
[15:19:36] shevy: has joined #ruby
[15:19:52] safeforge: has joined #ruby
[15:20:15] Kero: has joined #ruby
[15:20:57] dfockler: has joined #ruby
[15:21:01] peppermint: has joined #ruby
[15:21:05] MissionCritical: has joined #ruby
[15:21:15] christiandsg: has joined #ruby
[15:22:13] ruurd: has joined #ruby
[15:23:24] warreng: has joined #ruby
[15:23:43] quimrsto_: has joined #ruby
[15:24:29] ruurd: has joined #ruby
[15:25:04] tkuchiki: has joined #ruby
[15:27:10] The_Phoenix: has joined #ruby
[15:27:55] thiagovsk: has joined #ruby
[15:27:57] ItSANgo: has joined #ruby
[15:28:46] rcvalle: has joined #ruby
[15:28:50] Rinzlit: ari@KM301:~/testapp$ rake db:create
[15:28:50] Rinzlit: bash: rake: command not found
[15:28:59] Aria: Install rake!
[15:30:05] jhass: Rinzlit: bundle install --deployment; bundle exec rake db:create
[15:30:23] chipotle: has joined #ruby
[15:31:10] simplyianm: has joined #ruby
[15:33:09] pyoor: has joined #ruby
[15:33:27] Rinzlit: https://gist.github.com/anonymous/f9f849bacbcb5f201c18
[15:33:28] fullofcaffeine: has joined #ruby
[15:33:30] ruby-lang096: has joined #ruby
[15:33:57] droidburgundy: has joined #ruby
[15:33:58] adaedra: too bad I'm on mars
[15:34:07] Cache_Money: has joined #ruby
[15:34:15] ruby-lang096: hey adeadra hows it going
[15:34:46] rehat: has joined #ruby
[15:34:48] ruby-lang096: i was on yesterday morning and i met you
[15:35:01] ruurd: has joined #ruby
[15:35:07] adaedra: this was long ago
[15:35:08] ruby-lang096: I was the guy asking about how to strip a hash
[15:35:12] jhass: ruby-lang096: why don't you /nick into something recognizable if that's important for you?
[15:35:49] Rinzlit: I feel like I'm almost there for the 4th time...
[15:35:52] ruby-lang096: I'm going to do that now. i wasn't sure that i would ever see the same people again
[15:36:02] ruby-lang096: so i never did it.
[15:36:36] pyoor: Hi all - I'm fairly new with ruby. Can anyone tell me why this variable assigment doesn't work - http://pastebin.com/RZLGS9AP
[15:36:37] ruboto: pyoor, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fa7581f9ca2256df9e21
[15:36:37] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[15:36:57] jhass: Rinzlit: did you try my suggestion yet?
[15:36:59] Arnold_: has joined #ruby
[15:37:17] Arnold_: I was ruby <096> a few minutes ago
[15:37:18] Rinzlit: yes I got a deployment error
[15:37:23] snockerton: has joined #ruby
[15:37:30] Arnold_: now I'm back
[15:37:35] msgodf: has joined #ruby
[15:37:38] jhass: Arnold_: you could've just typed /nick Arnold_ in the old client
[15:37:44] adaedra: next time, just use /nick
[15:37:56] jhass: Rinzlit: do I have to guess it? fine. Does it contain an e?
[15:38:07] Arnold_: lol thanks guys i remember that for the future
[15:38:14] Mon_Ouie: !hangman error
[15:38:35] Rinzlit: https://gist.github.com/anonymous/ff693db37a85eb538034
[15:38:39] Rinzlit: You got me jhass
[15:38:42] Rinzlit: There is an E
[15:38:49] jhass: Rinzlit: sudo apt-get install ruby-dev
[15:38:56] jhass: then rerun
[15:39:09] Arnold_: i have a question: is there anyway to preserve a hash structure if you are iterating through an array of hashes
[15:39:29] jhass: Arnold_: that's not quite clear, some code might help to explain your problem
[15:39:33] Iskarlar: has joined #ruby
[15:39:33] charliesome: has joined #ruby
[15:39:39] Arnold_: PAGE_STRUCTURE[0][:deal].map do |k, v| "#{k}" => "#{v}" end
[15:39:40] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[15:39:43] prefixed: yo. is it possible to use RSYNC in ruby?
[15:39:49] gorums: has joined #ruby
[15:39:58] jhass: prefixed: sure, at the end of the day you an always just shell out
[15:39:58] baroquebobcat: has joined #ruby
[15:40:35] jhass: Arnold_: that seems to be a bit pointless, but you can do .map {|k, v| [k, v] }.to_h
[15:40:49] Rinzlit: I'm suprised I've gotten this far doing everything wrong for so long
[15:40:58] havenwood: pyoor: The `@body_data` instance variable isn't the same thing as the `body_data` local variable.
[15:41:24] havenwood: pyoor: Note the @
[15:41:51] Arnold_: at jhass Im going to do a nested iteration but i need the results to not be a string that looks like a hash
[15:41:57] dubkoidragon: has joined #ruby
[15:41:59] jhass: ?code Arnold_
[15:41:59] ruboto: Arnold_, We can't help you without your code, please post it to https://gist.github.com
[15:42:04] Arnold_: https://gist.github.com/b4thestorm/5bd401163bde53c55d39
[15:42:21] jhass: that's not illustrating your problem
[15:43:09] jhass: that information you gave earlier and I already provided the best guess I could make from it
[15:43:14] k3asd`: has joined #ruby
[15:44:19] snapcase: has joined #ruby
[15:44:48] Rinzlit: https://gist.github.com/anonymous/4e04a56dc042e58ed70c
[15:45:59] Arnold_: hey jhass I updated the gist
[15:46:01] Arnold_: https://gist.github.com/b4thestorm/5bd401163bde53c55d39
[15:46:22] stamina: has joined #ruby
[15:46:29] pyoor: havenwood: thanks I just realized that. I didn't know I had to use @ when referencing it too
[15:46:32] jhass: Arnold_: btw if you name your file something.rb your gist will get syntax highlighting
[15:46:50] dimasg: has joined #ruby
[15:47:02] jhass: Arnold_: could you add an example of the output you want?
[15:47:29] bascht: has joined #ruby
[15:47:32] Arnold_: I'm going to add it now
[15:47:51] acke: has joined #ruby
[15:47:53] senayar^: has joined #ruby
[15:48:16] superrorc: has joined #ruby
[15:48:36] khando: has joined #ruby
[15:48:47] _ixti_: has joined #ruby
[15:48:55] Trynemjoel: has joined #ruby
[15:49:04] senayar: has joined #ruby
[15:49:38] DylanJ: has joined #ruby
[15:49:51] peppermint: has joined #ruby
[15:49:52] Rinzlit: well thats an interesting one...
[15:49:58] jhass: Rinzlit: follow this https://www.brightbox.com/docs/ruby/ubuntu/ to get Ruby 2.2 or 2.1, also follow the ruby-switch part to make that version the default ruby
[15:50:03] Scient: has joined #ruby
[15:50:05] Rinzlit: Somehow I got an older version of ruby
[15:50:16] Dfoolz: has joined #ruby
[15:50:22] cndiv: has joined #ruby
[15:50:27] Arnold_: https://gist.github.com/b4thestorm/5bd401163bde53c55d39
[15:50:29] jhass: then rerun gem install bundler and the command
[15:50:32] seansith: has joined #ruby
[15:50:34] EminenceHC: has joined #ruby
[15:50:41] Arnold_: I update it with the output
[15:50:43] Rinzlit: jhas I had version 2.2.1 like 20 mins ago
[15:50:47] jhack: has joined #ruby
[15:51:06] Ilyas: has joined #ruby
[15:51:14] jpfuentes2: has joined #ruby
[15:51:16] Silex: has joined #ruby
[15:51:17] cndiv: Hey #ruby, quick question. I'm about to learn, and I'm about to read "The Well-Grounded Rubyist" by David Black. My edition covers 1.9.1, and was published in 2009. This is a very serious thing for me, do I need to replace the book with the new one?
[15:51:19] senayar: has joined #ruby
[15:51:19] jhass: Arnold_: that's not possible, a hash can only have one value for a particular key
[15:51:44] jhass: cndiv: 2009 is getting a bit too old, yeah
[15:52:00] ruurd: has joined #ruby
[15:52:07] jhass: the basics are the same but there are some new things you want to pick up
[15:52:18] cndiv: jhass: I don't want to "un" or "re-" learn something in the end.
[15:52:32] jhass: it is mostly new things, but still
[15:53:01] cndiv: jhass: Right now learning is about to become the most important thing I'm doing. Can't have that. Do you know that book? Or anyone?
[15:53:13] cndiv: I tried using codeacademy and learned it's style was the biggest problem.
[15:53:19] Arnold_: thats not exactly my problem. the problem is that I want the value to be: ["key": "value" ] and not ["key: value"]
[15:53:31] tmtwd: has joined #ruby
[15:53:34] Rinzlit: E: Sub-process /usr/bin/dpkg returned an error code (1)
[15:54:07] Arnold_: when i call to_h on ["key:value"] it sends me an error called no to_h for string
[15:54:11] Ox0dea: Rinzlit: Damn, dude. I hope you've got coffee.
[15:54:17] Ox0dea: Or whatever stimulant takes your fancy.
[15:54:21] jhass: Arnold_: let me rewrite what you just wrote in canonical syntax: [{:"key" => "value"}], are you sure about that?
[15:54:35] Rinzlit: Ox0dea I don't do anything like that
[15:54:40] jhass: also sure this isn't just a huge XY problem?
[15:54:47] Rinzlit: I simply live off protien drinks, and water
[15:54:49] Rinzlit: Lots of water.
[15:54:58] Ox0dea: Yes, you've said as much.
[15:55:07] Arnold_: <jhass> thats what i would like
[15:55:09] cndiv: Does anyone have a strong opinion on book, then? Ruby the hard way is the other option.
[15:55:10] aryaching: has joined #ruby
[15:55:11] Rinzlit: Yeah, I don't drink or eat anything else xD
[15:55:15] kawaii-imouto: has joined #ruby
[15:55:23] jhass: Arnold_: I'm asking because it's a very odd datastructure
[15:55:25] PaulCape_: has joined #ruby
[15:55:45] Ox0dea: cndiv: The Well-Grounded Rubyist.
[15:56:00] mdcox: has joined #ruby
[15:56:15] cndiv: Ox0dea: That's what I'm considering. I like it but I have the old version. You recommend that one, did you use it? Do this professionally now?
[15:56:17] Arnold_: i see what you mean. this is more like what I need [{"key" => "value"}]
[15:56:17] ddarkpassenger: has joined #ruby
[15:56:22] jhass: cndiv: well, LRTHW's style is worse than codeacademy's ;D
[15:56:30] Rinzlit: I'll pay someone to get rubby running on my server properly...
[15:56:39] cndiv: jhass: Sorry, who's LRTHW?
[15:56:47] jhass: learn ruby the hard way
[15:56:52] cpruitt: has joined #ruby
[15:57:10] Ox0dea: cndiv: I did read TWGR when I was learning Ruby, and I do write code for a living, but not Ruby. :/
[15:57:28] snockerton: has joined #ruby
[15:57:35] cndiv: Ox0dea: OK, that means a lot. Thank you.
[15:57:40] Ox0dea: Rinzlit: Isn't that the "black magic" approach which you so adamantly scorned not long ago?
[15:57:47] Ox0dea: cndiv: It's a very good book.
[15:57:48] cndiv: jhass: Great, that's wonderful to hear. For years that's what I've struggled with.
[15:57:53] Rinzlit: I said that whats my friend calls it
[15:57:55] Arnold_: I'm currently reading eloquent ruby
[15:57:58] shevy: has joined #ruby
[15:58:08] Rinzlit: And since I have multiple servers
[15:58:11] Rinzlit: I only need one to work
[15:58:12] cndiv: Arnold_: Is that your first book?
[15:58:13] Arnold_: is it worth it to also read twgr
[15:58:19] Ox0dea: Rinzlit: "Just make it work" is really the first ingredient of black magic.
[15:58:32] havenwood: over 9000 today...?
[15:58:39] bronson: has joined #ruby
[15:58:40] Rinzlit: Ah ha ha, yeah but I'm having no luck with ruby for some reason
[15:58:45] Arnold_: i read AWD 4 and Beginning ruby and learning to program
[15:58:46] Rinzlit: I don't know why ruby hates me so much xD
[15:58:56] Rinzlit: Probably b/c I treat it like shyt
[15:59:00] adaedra: Because you don't know the basics
[15:59:00] Ox0dea: havenwood: >9000 PRIVMSGs?
[15:59:16] havenwood: Ox0dea: JRuby \o/
[15:59:27] jhass: Rinzlit: you could try not sharing only the part of the error message that said "something went wrong" but the part which says what did
[15:59:28] dopie: has joined #ruby
[15:59:29] Ox0dea: Is the release code-named Vegeta?
[15:59:34] Rinzlit: Wait cpanel comes with ruby preinstalled right?
[16:00:14] havenwood: https://twitter.com/jruby/status/623885086010650625
[16:00:17] jhass: cpanel comes with cruelty and a big fat "I have no clue about any of this" sign preinstalled
[16:00:24] havenwood: JRuby 9.0!!!
[16:00:29] Rinzlit: https://gist.github.com/anonymous/1b4273884f1d1aa9ba38
[16:01:06] fgo_: has joined #ruby
[16:01:10] Ox0dea: jhass: Do you update daily?
[16:01:12] cndiv: It means a lot, thank you all.
[16:01:14] davedev24: has joined #ruby
[16:01:37] havenwood: ruby-install jruby 9.0.0.0 --sha256 7dd05e327ba3b39a4b8efb02b03f2ca7f5cec5ec
[16:01:44] jhass: Ox0dea: no
[16:01:49] jhass: about weekly
[16:01:59] sinkensabe: has joined #ruby
[16:02:00] Ox0dea: All right; you've missed this craziness with the sudo package, then.
[16:02:08] havenwood: oops, thats not the right shasum is it?
[16:02:22] havenwood: SHA1 != SHA256
[16:02:22] jhass: Ox0dea: curios, tell me in -offtopic ;D
[16:02:37] havenwood: Trying again...: ruby-install jruby 9.0.0.0 --sha256 655665db3a1dc0462cba99d45532ab57d8416b5f168d8a0081bde9b7a93a394e
[16:02:41] Ox0dea: jhass: I've brought it up in #archlinux.
[16:02:55] chouhoulis: has joined #ruby
[16:03:00] jhass: Rinzlit: that mysql dialog seems to be broken over putty...
[16:03:11] dfockler: has joined #ruby
[16:03:15] jhass: Ox0dea: ah, got that on highlight notification only
[16:03:22] RobertBirnie: has joined #ruby
[16:03:37] headius: havenwood: thank you for confirming!
[16:03:41] CaryInVictoria: has joined #ruby
[16:03:45] marcoamo1: has joined #ruby
[16:03:47] Rinzlit: jhass whats that mean...?
[16:04:29] jhass: Rinzlit: if you do sudo dpkg-reconfigure mysql-server-5.5 it should ask you to enter a password for the mysql root user
[16:06:36] arturmartins: has joined #ruby
[16:07:06] towski_: has joined #ruby
[16:07:21] Rinzlit: ari@KM301:~$ sudo dpkg-reconfigure mysql-server-5.5
[16:07:22] Rinzlit: [sudo] password for ari:
[16:07:34] hahuang65: has joined #ruby
[16:07:40] jhass: well, after the sudo prompt
[16:07:41] Rinzlit: ./usr/sbin/dpkg-reconfigure: mysql-server-5.5 is broken or not fully installed
[16:07:45] Ox0dea: Rinzlit: Did you mean to type *******?
[16:08:05] jhass: ACTION loads up pacman rosetta
[16:08:12] Rinzlit: -___________-
[16:08:14] shevy: ACTION plays pacman with jhass!
[16:08:23] al2o3-cr: has joined #ruby
[16:08:58] polpak: has joined #ruby
[16:08:59] jhass: sudo apt-get --fix-broken ?
[16:09:23] vmonteco: has joined #ruby
[16:09:49] mleung: has joined #ruby
[16:10:09] pyoor: has left #ruby: ()
[16:10:53] Rinzlit: jhass is that even a real command..?
[16:11:24] jhass: according to the pacman rosetta it is
[16:11:59] sarkyniin: has joined #ruby
[16:12:00] Rinzlit: Well its okay I would've given up on me hours ago too
[16:12:08] Rinzlit: I'm going to go see if cpanel will work
[16:12:17] dented42: has joined #ruby
[16:12:28] Rinzlit: Thank you for trying though .-.
[16:12:46] troulouliou_div2: has joined #ruby
[16:13:18] shevy: the taint of failure
[16:14:06] Ilyas: has joined #ruby
[16:14:57] Trynemjoel: has joined #ruby
[16:15:36] benlovell: has joined #ruby
[16:15:44] michaeldeol: has joined #ruby
[16:16:14] Rinzlit: Ruby isn't on cpanel
[16:16:40] Ox0dea: Rinzlit: What year is it?
[16:17:02] dimasg: has joined #ruby
[16:17:11] c_nick: has joined #ruby
[16:17:13] sevenseacat: people are still using cpanel?
[16:17:29] c_nick: how to enable the inline debugger in Rubymine 6.3? I couldnt find it in Settings
[16:17:42] jhass: sevenseacat: what better way is there to shout "I have no idea what I'm doing"?
[16:17:55] ElSif: these are all great questions :D you could also try asking in a channel specifically for your distro Rinzlit
[16:18:02] sevenseacat: though the last couple of hours of chat logs seem to verify that also.
[16:18:13] Ox0dea: ElSif: Rinzlit has easy access to every distro.
[16:18:16] Ox0dea: Because servers.
[16:18:27] ElSif: so maybe ask in all of them?
[16:18:36] sevenseacat: what exactly is the problem?
[16:18:36] Rinzlit: I've tried 2 of them so far...
[16:18:44] sevenseacat: I've asked that several times and gotten no response
[16:18:44] Rinzlit: Next up debain?
[16:18:51] ElSif: #of distros >> 2
[16:18:51] Ox0dea: Rinzlit: Does your client support wildcard /join?
[16:18:53] jhass: sevenseacat: better leave it
[16:19:10] ElSif: sure, debian guys are cool
[16:19:11] Rinzlit: ElSif I have 6 distro's that can be instantly flashed
[16:19:12] jhass: Rinzlit: next up fix your broken mysql-server-5.5 package so apt would let you install Ruby
[16:19:17] Rinzlit: But I won't use gentoo thank you
[16:19:24] adaedra: Ox0dea: /join * ?
[16:19:29] Ox0dea: adaedra: Go for it. :)
[16:19:29] yardenbar: has joined #ruby
[16:19:32] sevenseacat: jhass: k. glhf.
[16:20:05] jhass: sevenseacat: no worries, already got them to let go of doing everything as root
[16:20:16] prettiestPony11: has joined #ruby
[16:20:21] ElSif: i bet if you used gentoo the error message would be much more illuminating as it would be a direct compiler error :D
[16:20:33] Rinzlit: jhass its the same error when I try to reinstall....
[16:20:55] jhass: Rinzlit: yeah, you'll need to figure out how to get that dialog bullshit running over putty
[16:20:55] petersaints: has joined #ruby
[16:20:59] Rinzlit: https://gist.github.com/anonymous/ee6886d6176f5e2cec93
[16:20:59] lessless: has joined #ruby
[16:21:05] ElSif: oh god D: what did i walk into?
[16:21:22] snockerton: has joined #ruby
[16:21:26] Rinzlit: I got this...
[16:21:35] segfalt: has joined #ruby
[16:21:47] ElSif: dpkg is debian so yea, try debian channel :D
[16:21:51] paulcsmith: has joined #ruby
[16:22:00] jhack: has joined #ruby
[16:22:00] jhack: has joined #ruby
[16:22:14] DEA7TH: has joined #ruby
[16:22:23] bronson: has joined #ruby
[16:23:00] jhass: apparently nobody else had a problem for the dialog stuff to be usable over putty ...
[16:23:16] HanaNix: has joined #ruby
[16:23:24] ElSif: sounds like an environment issue?
[16:23:28] Senjai: Morning ruby
[16:23:31] jhass: Rinzlit: is your putty configured to read UTF-8?
[16:23:40] ElSif: >> p 'good morning senjai'
[16:23:40] ruboto: ElSif # => "good morning senjai" ...check link for more (https://eval.in/403452)
[16:23:50] sevenseacat: google is your friend. that error can come for about a million different reasons apparently
[16:24:06] ElSif: i bet, most of those exit error codes can
[16:24:22] ElSif: just means 'hey i no worky!'
[16:24:39] havenwood: Ruby 2.2 in JRuby, wheeeee!
[16:24:57] Trynemjoel: has joined #ruby
[16:25:40] Rinzlit: I'm formatting it jhass and reinstalling bitnami mysql, and other programs
[16:25:47] Rinzlit: Then I will grab the ruby they I was using before
[16:25:57] adaedra: why are you even dealing with bitnami
[16:26:07] Rinzlit: Because it nicely puts together the other stuff I need .-.
[16:26:10] jhass: because cpanel doesn't have ruby
[16:26:27] Rinzlit: I checked all my cpanel servers
[16:26:27] ElSif: for some definition of nicely
[16:26:30] Rinzlit: none of them have it
[16:26:40] sevenseacat: Rinzlit: may i suggest finding a sysadmin who knows stuff about servers
[16:26:54] sevenseacat: and then getting them to set up your servers
[16:26:54] Scripore: has joined #ruby
[16:26:55] adaedra: sevenseacat: don't, please don't
[16:26:57] Rinzlit: sevenseacat only one I know is sleeping
[16:27:27] sevenseacat: this has been going on since I joined the channel three hours ago, and it was already well underway by then.
[16:27:42] loc22_: has joined #ruby
[16:27:43] sevenseacat: like seriously, setting up a server isnt rocket science.
[16:27:50] sharpmachine: has left #ruby: ()
[16:27:56] ElSif: what if the server is in a rocket?
[16:27:59] Rinzlit: Appearently setting up ruby is .-.
[16:28:06] ruboto: Ubuntu installation guide for Ruby + Rails: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[16:28:24] sevenseacat: you can skip the rails parts.
[16:28:28] adaedra: it takes litterally minutes
[16:28:43] adaedra: of course, it's longer if you reinstall a different OS at each error
[16:28:47] ElSif: and that is literally mostly downloading it
[16:29:01] lordkryss: has joined #ruby
[16:29:09] Ox0dea: That's easy for you literates to say!
[16:29:23] Rinzlit: oh gosh...
[16:29:28] sevenseacat: it is, thats why we wrote instructiona.
[16:29:31] sevenseacat: instructions.
[16:29:37] ruboto: I don't know anything about gentoo
[16:30:37] aaeron: has joined #ruby
[16:30:40] ElSif: ?archlinux
[16:30:40] ruboto: I don't know anything about archlinux
[16:30:43] ruboto: I don't know anything about arch
[16:30:47] ElSif: ok ill stop spamming
[16:30:49] Ox0dea: ?anything
[16:30:49] ruboto: I don't know anything about anything
[16:30:51] diegoviola: has joined #ruby
[16:30:53] ndrei: has joined #ruby
[16:31:01] ElSif: ?everything
[16:31:02] ruboto: I don't know anything about everything
[16:31:09] _blizzy_: has joined #ruby
[16:31:37] ElSif: ruboto is so cute ^__^
[16:32:03] ruboto: I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[16:32:03] EminenceHC: has joined #ruby
[16:32:13] Kully3xf: has joined #ruby
[16:33:16] jhass: Arnold_: oh sorry, didn't see your reply earlier. But that doesn't change anything about its oddness really :/
[16:34:15] ArchRogem: has joined #ruby
[16:34:58] Trynemjoel: has joined #ruby
[16:35:06] Liothen: has joined #ruby
[16:35:13] ElSif: Rinzlit: you said you tried reinstalling, what steps did you take to remove the package first?
[16:36:27] Rinzlit: ElSif I ran aot-get remove
[16:37:05] ElSif: k, if the package is borked in a way that apt-get cant understand then that will likely not be enough
[16:37:33] benlieb: has joined #ruby
[16:37:34] Alayde: has joined #ruby
[16:37:36] ElSif: http://stackoverflow.com/questions/13276088/cant-start-mysql5-5-on-ubuntu-12-04-dpkg-dependency-problems <- this seems plausible
[16:38:07] arup_r: has joined #ruby
[16:38:11] diegoviola: has joined #ruby
[16:38:20] j4cknewt: has joined #ruby
[16:39:08] helpa: has joined #ruby
[16:39:09] _blizzy_: has joined #ruby
[16:39:47] Zai00: has joined #ruby
[16:39:54] Igorshp: has joined #ruby
[16:40:08] Rinzlit: I followed the solution
[16:40:10] Rinzlit: went to reinstall
[16:40:24] Rinzlit: still same error -____-
[16:40:28] Igorshp: has joined #ruby
[16:40:31] Rinzlit: I think somethings conflicting with it
[16:40:36] ElSif: sure, not terribly surprising
[16:40:57] ElSif: this is a fresh install right?
[16:41:04] ElSif: no previous mysql?
[16:41:16] Rinzlit: Well ubuntu 14.0.4
[16:41:19] Rinzlit: full install
[16:41:21] Rinzlit: For server
[16:41:38] Rinzlit: I semi mindlessly followed the guides
[16:41:44] Rinzlit: Since I'm very tired...
[16:42:26] casadei_: has joined #ruby
[16:42:27] n008f4g_: has joined #ruby
[16:42:37] Lucky_: has joined #ruby
[16:42:40] ElSif: do you have a /var/log/mysql/error.log?
[16:42:53] drowe: has joined #ruby
[16:42:55] usershell: has joined #ruby
[16:43:15] arup_r: i am getting strings which could be either "11" or "11.11" ... how to check if string is Integer or Float .. `Integer("100.22") rescue $!; $! ? "integer" : "float" .. but always getting false.`
[16:43:33] Rinzlit: https://gist.github.com/anonymous/b997e4488d6e0e0b47af
[16:43:35] arup_r: what is the proper way to handling this ?
[16:43:46] arup_r: to validate this? *****
[16:44:16] ElSif: ok, can you post the output of `ps aux | grep mysql`
[16:44:34] Rinzlit: what is that?
[16:44:43] ElSif: just a bash command
[16:44:52] ElSif: to list processes and match for mysql
[16:45:10] pengin: has joined #ruby
[16:45:17] ElSif: your error.log is showing 'servier already running'
[16:45:33] jhass: arup_r: .include? "."
[16:45:35] blaines: has joined #ruby
[16:45:39] Rinzlit: https://gist.github.com/anonymous/57c7e9f25aa5d921d453
[16:46:51] Channel6: has joined #ruby
[16:46:52] blaines_: has joined #ruby
[16:47:24] ElSif: yea, there are several mysql processes running there
[16:47:32] ElSif: do you know how to use kill?
[16:47:50] Rinzlit: I usually do services stop
[16:48:09] ElSif: may not work here cause there may not be a matching service running, though you can try
[16:48:31] ElSif: kill is just `kill <the first number in the output of ps aux>`
[16:48:31] Rinzlit: any chance I can give you access to the server and I'll give you how ever much you want to install ruby
[16:48:47] Rinzlit: I've been at this since 2AM
[16:48:50] Rinzlit: Its 9AM now
[16:49:18] dudedudeman: man, you need some rest
[16:49:20] Rinzlit: From my understanding one of you guys can do it in like 5 mins from fresh install
[16:49:28] ElSif: i could but you wouldn't learn anything :(
[16:49:38] Rinzlit: Dude I need to get this website up for a company
[16:49:56] Rinzlit: like I will be here everyday from now on I told [k- I'd be here too
[16:50:03] Rinzlit: Like I do like talking to you guys
[16:50:06] Rinzlit: But I do really need this up
[16:50:28] Rinzlit: And I have less than an hour and a half
[16:50:29] ElSif: you can pm me if you want, but i cannot promise i can maky it work
[16:50:49] ElSif: and you will need to configure it still
[16:51:19] diegoviola: has joined #ruby
[16:51:47] Lord-Kamina: has joined #ruby
[16:51:48] spider-mario: has joined #ruby
[16:52:08] girakrok: has joined #ruby
[16:52:28] Jackneill: has joined #ruby
[16:52:31] Lord-Kamina: Hello. Badwrong question: Is there a ruby equivalent of eval?
[16:52:49] ElSif: >> eval("p yes")
[16:52:50] ruboto: ElSif # => undefined local variable or method `yes' for main:Object (NameError) ...check link for more (https://eval.in/403468)
[16:53:06] ElSif: oops but yes
[16:53:13] Lord-Kamina: Or, more specifically, I need to iterate through a list of JSON objects, the list of which is defined inside another JSON list.
[16:54:06] Scripore: has joined #ruby
[16:55:33] despai: has joined #ruby
[16:55:33] |\|370: has joined #ruby
[16:56:23] shadoi: has joined #ruby
[16:57:14] jhass: ?json_object Lord-Kamina
[16:57:15] ruboto: Lord-Kamina, I don't know anything about json_object
[16:57:21] jhass: meh, what was it
[16:57:22] jhass: ?jsonobject
[16:57:22] ruboto: there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
[16:57:29] jhass: Lord-Kamina: ^
[16:58:30] Trynemjoel: has joined #ruby
[16:58:56] hemanth: has joined #ruby
[16:59:05] phoo1234567: has joined #ruby
[16:59:16] blaines: has joined #ruby
[16:59:29] jhass: Lord-Kamina: the valid usecases for eval in Ruby are pretty much just templating languages, so there's most certainly a better solution
[16:59:50] RegulationD: has joined #ruby
[17:00:19] mikecmpbll: has joined #ruby
[17:01:53] howdoicomputer: has joined #ruby
[17:02:30] Hobogrammer: has joined #ruby
[17:03:06] wallerdev: has joined #ruby
[17:03:37] yqt: has joined #ruby
[17:04:50] RegulationD: has joined #ruby
[17:05:22] Ox0dea: jhass: I was going to use eval to retrofit selective imports. :/
[17:05:24] lannonbr: has joined #ruby
[17:05:36] jhass: Ox0dea: none of your stuff counts ;P
[17:05:53] Hanmac: has joined #ruby
[17:06:00] Trynemjoel: has joined #ruby
[17:06:08] phoo1234567: has joined #ruby
[17:06:10] InternetFriend: has joined #ruby
[17:07:23] Ox0dea: You know you want selective imports.
[17:07:42] dorei: has joined #ruby
[17:08:19] wallerdev: has joined #ruby
[17:08:39] Ox0dea: It seems like it would've been much easier for Crystal to have them; I wonder why they went in the exact opposite direction.
[17:08:55] Scripore: has joined #ruby
[17:09:58] jhass: well, crystal has an open class model too
[17:10:08] Lord-Kamina: Sorry, I meant ruby objects gotten from serialized json strings.
[17:11:07] araujo: has joined #ruby
[17:11:14] simplyianm: has joined #ruby
[17:11:51] aphprentice: has joined #ruby
[17:12:25] Ox0dea: jhass: Can has better lighting for the interactive Crystal crystal?
[17:12:35] Ox0dea: Only two faces are ever illuminated, and usually quite harshly.
[17:12:55] jhass: Ox0dea: it's open source, send a PR to the gh-pages branch
[17:13:40] jhass: Lord-Kamina: so you're asking how to foo.each do |bar| bar.each do |baz| ?
[17:13:48] Lord-Kamina: eval (object)["pointer"] works.
[17:13:53] jhass: Lord-Kamina: nope
[17:13:57] jhass: don't do this
[17:14:05] jhass: just forget it even is possible. right now
[17:14:16] jhass: it's wrong, it's just soo wrong
[17:14:21] Lord-Kamina: I know it is.
[17:14:30] Lord-Kamina: Hence why I opened saying "Badwrong question:"
[17:14:31] Trynemjoel: has joined #ruby
[17:14:35] Lord-Kamina: But it's a one-time script
[17:14:41] Ox0dea: Famous last words.
[17:14:56] jhass: what does works even mean? what does it do?
[17:15:05] jhass: or do you mean eval(object)["pointer"]?
[17:15:17] anthony__: has joined #ruby
[17:15:31] NeverDie: has joined #ruby
[17:15:45] Lord-Kamina: It correctly references the contents of the object I want it to.
[17:16:06] Lord-Kamina: Here's what's going on, I have a ridiculous xcode project (which I swear is not my fault)
[17:16:12] Ox0dea: >> n = 50000; t = []; s = Time.now; n.times { 1 + 1 }; t << Time.now - s; s = Time.now; n.times { eval "1 + 1" }; t + [Time.now - s]
[17:16:14] ruboto: Ox0dea # => [0.00831109, 0.69152753] (https://eval.in/403493)
[17:16:20] Ox0dea: Lord-Kamina: ^ eval is slow as fuck.
[17:16:33] Lord-Kamina: And I needed to have so many targets that xcode literally decided to "Nope." on me.
[17:16:48] Hien: has joined #ruby
[17:17:12] Lord-Kamina: I realized I could probably dump them all in just one giant target instead. But it's such a ridiculous amount of cherry-picked source files in a ridiculous nested folder structure...
[17:17:23] eam: Ox0dea: well, compare apples to apples - parsing json is kinda slow too
[17:17:27] Lord-Kamina: That I got all the files into these JSON strings by using regex on a build log.
[17:17:31] Ox0dea: eam: Is it?
[17:17:38] eam: compared to adding two fixnums? yeah
[17:17:39] dsaint-pierre: has joined #ruby
[17:17:50] Lord-Kamina: The whole point of this is to add all these files to my target and never look back on the horrible thing I'm doing.
[17:17:50] havenwood: http://www.infoq.com/news/2015/07/JRuby-9000-Released
[17:17:51] Ox0dea: Lord-Kamina: Is it that you don't know how to traverse a tree?
[17:18:09] eam: cost of one eval() on top of one json parse isn't gonna be ruinous
[17:18:10] Lord-Kamina: Ox0dea, it's roughly 2900 files.
[17:18:17] Ox0dea: I fail to see how that's relevant.
[17:18:28] Lord-Kamina: 2900 files which are not all the files inside those folders.
[17:18:31] jhass: Lord-Kamina: yeah, not following how we end up at eval for any of this
[17:18:33] Lord-Kamina: Meaning I'd have to cherry pick 2900 files.
[17:18:43] c_nick: Anyone using RubyMine 6.3 for development ? How to enable inline debugging in it?
[17:19:11] nveselinov: has joined #ruby
[17:19:22] Lord-Kamina: Originally I was going to try adding all targets separately so I've got a bunch of objects for each one.
[17:19:38] nickjj: c_nick, i am pretty sure only 7.x has inline variables if that's what you mean
[17:19:44] pengin: has joined #ruby
[17:19:48] Lord-Kamina: That's how I ended up at iterating through a list of objects which then need to be read for the list of files.
[17:20:20] jhass: Lord-Kamina: "object" is still not a ruby datastructure
[17:21:13] Hanmac: has joined #ruby
[17:21:21] Maletor: has joined #ruby
[17:21:34] jhass: possibly, I don't see your screen
[17:21:36] yb_drowe: has joined #ruby
[17:21:49] jhass: to access a hash'es value by key do foo["key"]
[17:22:04] jhass: not eval needed
[17:22:08] ht__: has joined #ruby
[17:23:04] ThaiWood: has joined #ruby
[17:23:22] yb_drowe: has joined #ruby
[17:23:32] Blaguvest: has joined #ruby
[17:24:26] Silox|: has joined #ruby
[17:24:27] c_nick: nickjj: Yes 7.x has inline debugging but i have seen it in the RubyMine version prior to 6.3.3
[17:24:28] andikr: has joined #ruby
[17:24:36] bronson: has joined #ruby
[17:24:45] krandi: has joined #ruby
[17:24:58] werelivinginthef: has joined #ruby
[17:25:56] c_nick: nickjj: https://www.jetbrains.com/ruby/whatsnew/img/70/inline_debugger.png
[17:26:00] dented42: has joined #ruby
[17:26:17] bungoman: has joined #ruby
[17:26:50] mhib: has joined #ruby
[17:27:28] jamesaxl: has joined #ruby
[17:27:53] hobodave: has joined #ruby
[17:27:59] fluffet: has joined #ruby
[17:28:21] gambl0re: has joined #ruby
[17:33:19] nahtnam: has joined #ruby
[17:35:00] mjuszczak: has joined #ruby
[17:36:41] sepp2k: has joined #ruby
[17:36:51] mike___1234: has joined #ruby
[17:38:05] c_nick: Just for inline debugging i need to upgrade my rubymine what crap
[17:38:13] eggoez: has joined #ruby
[17:40:12] Lord-Kamina: jhass, yeah, but the name of the hash changes is gotten from another hash, which is why I am using eval.
[17:40:26] jhass: Lord-Kamina: that makes no sense at all
[17:40:54] Yiota: has joined #ruby
[17:41:30] jhass: >> some_hash = {"foo" => "bar"}; other_hash = {"baz" => "foo"}; some_hash[other_hash["baz"]]
[17:41:31] ruboto: jhass # => "bar" (https://eval.in/403496)
[17:41:38] bohallor: has joined #ruby
[17:42:09] acke: has joined #ruby
[17:42:09] failshell: has joined #ruby
[17:43:37] Ox0dea: Lord-Kamina: Please take some time to understand the above.
[17:45:18] harleypig: has joined #ruby
[17:47:30] christiandsg: has joined #ruby
[17:47:34] kraljev11: has joined #ruby
[17:47:49] maletor|home: has joined #ruby
[17:49:08] roger_rabbit: has joined #ruby
[17:49:38] synthroid: has joined #ruby
[17:50:25] yfeldblum: has joined #ruby
[17:50:59] c_nick: has left #ruby: ()
[17:51:07] InternetFriend: has joined #ruby
[17:51:08] usershell: has joined #ruby
[17:51:16] synthroid: has left #ruby: ()
[17:52:28] towski_: has joined #ruby
[17:52:44] michaeldeol: has joined #ruby
[17:53:07] yardenbar: has joined #ruby
[17:53:36] alphaatom: has joined #ruby
[17:54:10] centrx: has joined #ruby
[17:54:34] synthroid: has joined #ruby
[17:54:36] blackmesa: has joined #ruby
[17:54:47] juanpaucar: has joined #ruby
[17:54:54] pipework: has joined #ruby
[17:56:17] Yiota: has joined #ruby
[17:56:28] a346: has joined #ruby
[18:00:46] jackjackdripper: has joined #ruby
[18:01:03] Casty: has joined #ruby
[18:01:05] peter_paule: has joined #ruby
[18:02:07] michaeldeol: has joined #ruby
[18:02:31] mleung: has joined #ruby
[18:02:33] mjuszczak: has joined #ruby
[18:06:34] benlovell: has joined #ruby
[18:07:07] yb_drowe: has joined #ruby
[18:07:22] mjuszczak: has joined #ruby
[18:08:33] aaeron: has joined #ruby
[18:09:03] bungoman: has joined #ruby
[18:10:12] dgutierrez1287: has joined #ruby
[18:11:41] casadei_: has joined #ruby
[18:12:30] shadoi: has joined #ruby
[18:12:39] bruno-: has joined #ruby
[18:12:48] loc22_: has joined #ruby
[18:12:50] blaines: has joined #ruby
[18:13:55] gambl0re: has joined #ruby
[18:14:23] dmolina: has joined #ruby
[18:14:34] eam: >> x = Object; x.instance_eval {def succ; Class; end}; (x..Class).to_a
[18:14:35] ruboto: eam # => [] (https://eval.in/403510)
[18:14:44] eam: why does that not return [Object, Class] ?
[18:15:14] baweaver: has joined #ruby
[18:16:30] rdark: has joined #ruby
[18:17:37] michaeldeol: has joined #ruby
[18:18:12] roolo: has joined #ruby
[18:18:52] werelivinginthef: has joined #ruby
[18:19:13] choke: has joined #ruby
[18:19:42] ModusPwnens: has joined #ruby
[18:19:59] jackjackdripper: has joined #ruby
[18:20:10] ruurd: has joined #ruby
[18:20:45] ModusPwnens: I have a class that extends another class. I want this subclass to call a method in the parent class that returns an instance of that parent class and then I want to construct an instance of the child class from that. How can I do that from a class method on the child class?
[18:20:54] bossheisenberg: has joined #ruby
[18:21:05] ModusPwnens: For some reason, I'm having a very difficult time thinking about this, but maybe that's because I'm coming from javaland
[18:21:12] synthroid: has left #ruby: ()
[18:22:28] centrx: What is this for?
[18:22:34] pyrotecnix: has joined #ruby
[18:22:34] centrx: What are you really trying to do?
[18:23:07] ModusPwnens: I just want to create an instance of my child class with all the fields that the parent class has already initialized properly
[18:23:26] _ixti_: has joined #ruby
[18:24:02] ModusPwnens: I'm mimicking the ActiveRecord interface for these classes, so in my child class' self.find method I am calling the parent class' self.find method, but I want to create/return an instance of the child class from that
[18:24:20] Rubie: has joined #ruby
[18:24:25] kies^: has joined #ruby
[18:24:26] SCHAAP137: has joined #ruby
[18:24:27] ljarvis: ModusPwnens: superclass: https://eval.in/403511 -- but yeah I would agree this is generally an odd thing to do. You might want to provide some more context/code
[18:24:34] bossheisenberg: has left #ruby: ()
[18:24:49] jpfuentes2: has joined #ruby
[18:25:25] baroquebobcat: has joined #ruby
[18:25:52] graft: has joined #ruby
[18:26:07] dmolina: has joined #ruby
[18:26:10] ModusPwnens: basically, I want to be able to create a 'Dog' instance from the result of a call to Animal.find(id).
[18:26:29] jhack: question, so I want to build a cmd line blackjack game, would it be smart if I i designed it like: array for cards outside, Player class (will get name), and Blackjack class (where the functions of the game/options belong in)?
[18:26:33] graft: hey, anyone good with String#unpack? I have a many-byte character string i'd like to turn into a ruby array-of-arrays
[18:27:12] eam: >> x = Class; x.instance_eval {def succ; Object; end}; (x..Object).to_a
[18:27:13] ruboto: eam # => [Class, Object] (https://eval.in/403514)
[18:27:38] eam: it's because Range firsts compares endpoints before iterating
[18:29:04] mleung: has joined #ruby
[18:29:56] Synthead: has joined #ruby
[18:30:57] d10n-work: has joined #ruby
[18:30:59] mdcox: So something fun...I
[18:31:10] mdcox: woops, hit enter too early...too close to shift
[18:31:26] wasamasa: I hate ansi keyboards for that reason
[18:31:36] Trynemjoel: has joined #ruby
[18:31:50] davedev24: has joined #ruby
[18:32:06] mdcox: I'm getting a "Something went wrong" err page in production, but it's not logging any error in the logs. Any ideas on where to look next or figure out why it's not logging errors but all the INFOs?
[18:32:23] aaeron: has joined #ruby
[18:32:34] choke: has joined #ruby
[18:32:42] mdcox: Oh woops, this is #ruby not #rails. I'm failing at IRC today.
[18:33:46] sharpmachine: has joined #ruby
[18:34:42] ljarvis: ModusPwnens: ok, my code should allow you to do that, but basically they're static methods so you could just use the class directly (i.e Foo.find(...))
[18:35:19] uber: has joined #ruby
[18:35:40] ModusPwnens: ljarvis: Oh. But how do I create an instance of the child class from the call to SuperClass.find(...)?
[18:35:52] ModusPwnens: ljarvis: or does that not even really make sense to do in a class method
[18:35:54] ljarvis: ModusPwnens: new(SuperClass.find(...)) ?
[18:36:01] ljarvis: ModusPwnens: new is just a class method
[18:36:11] mjuszczak: has joined #ruby
[18:36:13] ModusPwnens: Can you call .new with an instance of a parent class as an argument?
[18:36:25] ljarvis: you can call new with whatever you want..
[18:37:44] simplyianm: has joined #ruby
[18:37:58] shadoi: has joined #ruby
[18:38:07] Trynemjoel: has joined #ruby
[18:39:12] sdrew: has joined #ruby
[18:39:46] lannonbr: has joined #ruby
[18:39:47] bmurt: has joined #ruby
[18:40:04] sgambino: has joined #ruby
[18:41:41] DEA7TH_: has joined #ruby
[18:41:49] kb3ien: has joined #ruby
[18:44:08] kb3ien: "if query_has_qstr? " errors with "no implicit conversion of String into Integer" its defined thusly [http://pastebin.ca/3071528], should that not be boolean (enough) to run `if` with ?
[18:44:40] mleung: has joined #ruby
[18:44:44] ljarvis: kb3ien: one of those things in an array and you're treating them like a hash
[18:45:02] ljarvis: I don't know which, because there's 13 million levels of nesting
[18:45:22] ljarvis: but I would argue that [:results]["SearchRequestGet"] seems odd
[18:45:36] mikeric: has joined #ruby
[18:46:31] kb3ien: Lifted it from a related function. I'll look at that first....
[18:46:31] ljarvis: also, that pastie is almost as bad as pastebin.com
[18:46:32] aaeron: has joined #ruby
[18:46:39] Alex-_: has joined #ruby
[18:46:58] AlxAltea: has joined #ruby
[18:47:11] kb3ien: riesWithAction is an array....
[18:47:21] ljarvis: who'd have thunk
[18:48:24] kb3ien: and it about 12million :p
[18:48:46] kb3ien: http://pastebin.ca/3071537 updated with the inspect of session[:results] ...
[18:49:33] ljarvis: kb3ien: im sorry but please use gist.github.com
[18:49:38] ljarvis: I care about my eyes
[18:50:38] sdwrage: has joined #ruby
[18:51:32] nofxx: has joined #ruby
[18:52:14] deepu: has joined #ruby
[18:54:33] Hanmac: kb3ien: QueriesWithAction is an Array, so ['Query'] does not work on it
[18:55:15] christiandsg: has joined #ruby
[18:55:30] Ox0dea: How long has this (https://github.com/ruby/ruby/blob/trunk/load.c#L807-L809) been a lie?
[18:55:36] Ox0dea: >> require 'socket.dll'
[18:55:37] ruboto: Ox0dea # => cannot load such file -- socket.dll (LoadError) ...check link for more (https://eval.in/403532)
[18:55:46] puppeh_: has joined #ruby
[18:56:06] simplyianm: has joined #ruby
[18:57:10] bruno-: has joined #ruby
[18:57:38] Trynemjoel: has joined #ruby
[18:58:44] deepu: can you please tell me how I can get this info? https://dpaste.de/ofCH
[19:00:12] Violentr: has joined #ruby
[19:00:23] mleung: has joined #ruby
[19:00:39] ironsay: has joined #ruby
[19:00:39] usershell: has joined #ruby
[19:00:42] havenwood: deepu: What do you get for?: node["rows"].values
[19:00:44] Corndawg: has joined #ruby
[19:00:51] Corndawg: anyone here good at networking?
[19:00:53] last_staff: has joined #ruby
[19:01:15] jhass: deepu: node["rows"].map {|row| row.values.first["ipaddress"] }
[19:01:16] Jackneill: has joined #ruby
[19:01:18] ljarvis: I have been called the networking mesiah once before
[19:01:25] deepu: havenwood: I want to get Ip address
[19:01:31] ljarvis: i can't even spell it properly
[19:01:33] jhass: Corndawg: welcome to the Ruby programming language channel
[19:02:02] Corndawg: i thought snicker was a candy bar and snigger was the correct way to spell it
[19:02:20] Ox0dea: Snickering and sniggering are similar things.
[19:02:25] bruno-: has joined #ruby
[19:02:40] Corndawg: i'm russian and i find english hard
[19:02:50] Corndawg: our school taught us snigger
[19:02:56] Ox0dea: Das waycist.
[19:02:58] Corndawg: it's a half suppressed laugh
[19:03:02] aaeron: has joined #ruby
[19:03:32] eam: what's the difference between a snicker and a snigger?
[19:03:35] shevy: I think this may be jhass old enemy
[19:03:57] n1lo: has joined #ruby
[19:04:01] havenwood: deepu: See what jhass wrote above. Had trouble reading your code at a glance because it isn't mono-spaced! Use gist.github.com. ;)
[19:04:30] cornerma1: has joined #ruby
[19:04:56] codecop: has joined #ruby
[19:05:09] tsvenson: has joined #ruby
[19:05:10] user1138_: has joined #ruby
[19:05:15] ljarvis: http://www.wordreference.com/definition/snigger snick???er /??sn??k??/also snigger /??sn??g??/snigger
[19:05:23] ljarvis: a snickering laugh.
[19:05:31] ljarvis: ACTION closes the internet.
[19:05:37] eam: so they're synonyms
[19:05:55] ljarvis: one is also a delicious chocolate bar
[19:06:22] Corndawg: why didn't they name it snigger?
[19:06:32] havenwood: ?offtopic Corndawg
[19:06:32] ruboto: Corndawg, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[19:06:43] Corndawg: let's be on topic guys
[19:06:49] jhass: ?guys Corndawg
[19:06:50] ruboto: Corndawg, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[19:07:09] Trynemjoel: has joined #ruby
[19:07:11] ruboto: I don't know anything about omg
[19:07:15] havenwood: ?ruboto Corndawg
[19:07:15] ruboto: Corndawg, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[19:07:29] ljarvis: ?cookie ruboto
[19:07:30] ruboto: ruboto, here's your cookie: ????
[19:07:33] Corndawg: ban me pls ruboto
[19:07:44] ljarvis: .. you shouldn't say that
[19:07:45] bungoman: has joined #ruby
[19:07:50] Corndawg: wow that's neat ljarvis
[19:08:02] desigx: has joined #ruby
[19:08:04] ljarvis: anyway, back to Ruby
[19:08:12] user1138_: has joined #ruby
[19:08:30] simplyianm: has joined #ruby
[19:13:13] InternetFriend: has joined #ruby
[19:13:42] j4cknewt: has joined #ruby
[19:16:49] Papierkorb_: has joined #ruby
[19:17:02] yqt: has joined #ruby
[19:18:00] Maletor: has joined #ruby
[19:18:15] kraljev11: has joined #ruby
[19:19:14] dangerousdave: has joined #ruby
[19:20:26] Rubie: has joined #ruby
[19:20:34] nitenq: has joined #ruby
[19:21:13] _djbkd: has joined #ruby
[19:21:27] eggoez: has joined #ruby
[19:22:31] Rinzlit1: has joined #ruby
[19:22:40] Trynemjoel: has joined #ruby
[19:23:03] Eindoofus: has joined #ruby
[19:23:06] Eindoofus: hi, hoping someone here uses Rally. if so, do you happen to know how to multitask in it? is it possible to switch between incompleted tasks?
[19:23:30] Cust0sLim3n: has joined #ruby
[19:25:59] ixti: has joined #ruby
[19:26:26] Musashi007: has joined #ruby
[19:26:26] ruurd: has joined #ruby
[19:27:28] baweaver: has joined #ruby
[19:28:01] juanpaucar: has joined #ruby
[19:28:10] shinnya: has joined #ruby
[19:28:44] sharpmachine: has joined #ruby
[19:30:04] baweaver: has joined #ruby
[19:30:19] grubernaut: has joined #ruby
[19:31:01] gambl0re: has joined #ruby
[19:31:20] miwood: has joined #ruby
[19:32:33] yardenbar: has joined #ruby
[19:32:51] EminenceHC: has joined #ruby
[19:33:52] _blizzy_: has joined #ruby
[19:37:41] Trynemjoel: has joined #ruby
[19:39:46] ruby-lang759: has joined #ruby
[19:40:37] isavage: has joined #ruby
[19:40:49] ruboto: I don't know anything about hi
[19:40:53] ruboto: I don't know anything about hello
[19:40:55] hansv: has joined #ruby
[19:40:58] isavage: has left #ruby: ()
[19:41:58] benlovell: has joined #ruby
[19:43:35] gorums: has joined #ruby
[19:45:56] DEA7TH_: has joined #ruby
[19:46:31] devbug: has joined #ruby
[19:47:10] k3asd`: has joined #ruby
[19:47:33] freerobby: has joined #ruby
[19:48:12] atesec: has joined #ruby
[19:48:12] quimrstorres: has joined #ruby
[19:48:46] sharpmachine: has joined #ruby
[19:48:52] jgpawletko: has joined #ruby
[19:49:27] hobodave: has joined #ruby
[19:50:05] mike___1234: has joined #ruby
[19:50:33] choke: has joined #ruby
[19:50:35] michaeldeol: has joined #ruby
[19:51:11] lkba: has joined #ruby
[19:52:22] bluOxigen: has joined #ruby
[19:52:55] treehug88: has joined #ruby
[19:53:25] yb_drowe: has joined #ruby
[19:54:52] ruboto: You can find an overview of my commands at http://ruby-community.com/ruboto/commands
[19:56:32] imperator: has joined #ruby
[19:56:58] imperator: any ideas on what could cause a broken pipe for a win32ole method call?
[19:57:00] dimasg: has joined #ruby
[19:57:19] imperator: it is running within a rails app
[19:57:48] imperator: i can't duplicate it just running it locally, even did a little webrick test where i repeat the calls over and over
[19:58:09] platosha: has joined #ruby
[19:59:09] craysiii: has joined #ruby
[19:59:22] lkba_: has joined #ruby
[19:59:35] treehug88: imperator: (from unix) check the signal you get when the pipe breaks
[19:59:55] Mendenhall: has joined #ruby
[19:59:58] sypheren: what are some starter projects to do in ruby ( not rails )?
[20:00:19] ndrei: has joined #ruby
[20:00:44] giuseppesolinas: has joined #ruby
[20:00:54] sypheren: Like how there's 200000 greenhouse projects for arduino because it's easy
[20:00:57] simplyianm: has joined #ruby
[20:01:54] Mendenhall: implementing algorithms is cool
[20:02:15] Ox0dea: I don't suppose there exists a nice clean mapping from Ruby patch levels to their relevant commit hashes?
[20:02:34] Mendenhall: the euclidean algorithm for greatest common divisors is a nice simple one
[20:02:35] kraljev11: has joined #ruby
[20:03:04] sypheren: Implementing algorithms?
[20:03:08] sypheren: Just.. using them for things?
[20:03:17] Rubie: has joined #ruby
[20:03:17] postmodern: has joined #ruby
[20:03:20] fantazo: has joined #ruby
[20:03:55] Ox0dea: Sypheren: https://github.com/karan/projects
[20:04:09] Mendenhall: no i mean like, algorithms as in the abstract thing
[20:04:46] Mendenhall: there's a single euclidean algorithm and different implementations of that algorithm, like how there's a single linked list and different implementations of linked lists
[20:05:38] Mendenhall: that projects git thing is fantastic wow
[20:05:44] Ox0dea: Sypheren: ^
[20:06:21] sypheren: I'm going to, I need to get this down so I can do rails :3
[20:06:30] Mendenhall: programming before google must have been a lot harder
[20:06:47] tno: has joined #ruby
[20:06:56] Mendenhall: "calculate pi to the Nth digit" first thought: "I am going to have to google how to calculate pi"
[20:07:07] Ox0dea: Books have been a thing for millennia.
[20:07:07] prefixed: how would I install net-ssh from source? https://github.com/net-ssh/net-ssh I need to use this on a machine that does not have a network connection
[20:07:10] Aria: It was definitely more deliberate and slow-paced.
[20:07:20] Ox0dea: And yet here we are.
[20:07:40] Aria: And definitely more focused on the task at hand; working together at a distance is the biggest change.
[20:07:41] baweaver: has joined #ruby
[20:07:59] Lucky_: has joined #ruby
[20:08:13] Trynemjoel: has joined #ruby
[20:09:45] Ox0dea: >> (c=->n,i=1{n==1?i:c[n%2>0?n*3+1:n/2,i+1]})[194]
[20:09:47] ruboto: Ox0dea # => 120 (https://eval.in/403574)
[20:09:50] Ox0dea: Collatz sequence golf.
[20:09:55] lkba: has joined #ruby
[20:10:02] kraljev11: has joined #ruby
[20:10:30] Lucky_: has joined #ruby
[20:10:33] Rinzlit: Hey Ox0dea
[20:10:35] Rinzlit: Almost there xD
[20:10:40] Rinzlit: someone shoot me
[20:10:42] Rinzlit: in the fking face plz
[20:10:56] Rinzlit: I finally got ruby working but the gems are having problems with the site
[20:10:59] Rinzlit: ha ha ha ha
[20:11:39] peter_paule: has joined #ruby
[20:12:04] quimrstorres: has joined #ruby
[20:12:52] Rinzlit: Can you help me please D:?
[20:13:04] kadoppe: has joined #ruby
[20:13:12] Rinzlit: = yield :application_js
[20:13:12] Rinzlit: = javascript_include_tag :application
[20:13:17] Kully3xf: has joined #ruby
[20:13:48] a346: has joined #ruby
[20:13:56] Ox0dea: That doesn't look right.
[20:14:03] Rinzlit: yeah I know .-.
[20:14:11] Ox0dea: Rinzlit: Malformed Haml?
[20:14:12] bahar: has joined #ruby
[20:14:23] Rinzlit: can I link you to it .-.
[20:14:30] Rinzlit: because its giving me this weird error page
[20:14:46] Rinzlit: I don't want people stalking it tho so may I PM you?
[20:15:02] Ox0dea: I'd rather not commit to the abyss, if you don't mind. :/
[20:15:14] imperator: has left #ruby: ("Leaving")
[20:15:15] Rinzlit: Ermm fair enough, screenshot?
[20:15:35] shevy: show us your sexy pics!
[20:15:52] Rinzlit: I'm fat n ugly
[20:16:04] shevy: don't show your sexy pics!
[20:16:21] aaeron: has joined #ruby
[20:16:28] shevy: actually I meant the code. we did not have images of code in a long while... people love these usually :)
[20:16:32] InternetFriend: has joined #ruby
[20:16:35] Ox0dea: They're the best!
[20:17:05] Rinzlit: http://i.imgur.com/thdRTGh.png
[20:17:08] Rinzlit: Don't judge my setup
[20:17:28] Rinzlit: or my 100 tabs
[20:17:30] Rinzlit: I need all of them
[20:18:20] Rinzlit: Is it the league of legends?
[20:18:20] bigbadbear: has joined #ruby
[20:18:23] chadwtaylor: has joined #ruby
[20:18:27] _djbkd: has joined #ruby
[20:18:28] shevy: are these two monitors?
[20:18:41] Rinzlit: I have 3, but I don't have 3 video ports
[20:18:50] Rinzlit: But when I upgrade my computer I will use all 3
[20:18:55] Rinzlit: Till then it will have to wait .-.
[20:19:10] adaedra: so many tabs.
[20:19:19] Rinzlit: Don't judge my tabs!
[20:19:27] Rinzlit: I google 1001 things
[20:19:31] Rinzlit: and like I haven't slept
[20:19:32] Rinzlit: and im a mess
[20:19:35] Rinzlit: and I need to stuff
[20:20:03] battas: has joined #ruby
[20:20:19] shevy: you need to stuff
[20:20:27] Ox0dea: I think you accidentally didn't the stuff.
[20:20:32] shevy: well I suppose it is a rails error
[20:20:38] Rinzlit: Your being bullies
[20:21:11] Ox0dea: Ensure you've got underscore.js in your javascripts directory, then restart the server.
[20:21:24] Aswebb_: has joined #ruby
[20:21:49] shevy: havenwood did you make this page https://ruby-operators.herokuapp.com/#/spaceship
[20:21:59] Ox0dea: Or, well, it'll need to be wherever Sprockets has been told to look for it, but that should be assets/javascripts/.
[20:22:23] Ox0dea: shevy: No, that was https://github.com/anildigital.
[20:22:41] Ox0dea: It's missing !~, &&=, and probably a few others.
[20:22:50] Ox0dea: You should give them clever names and submit a PR.
[20:22:56] simplyianm: has joined #ruby
[20:23:18] mike___1234: has joined #ruby
[20:23:53] shevy: they will reject it
[20:24:00] adaedra: who forgot to bower install
[20:24:06] adaedra: it's Rinzlit
[20:24:31] Ox0dea: shevy: "Could you please send pull request if possible?" -- /u/anildigital
[20:24:33] Ox0dea: No, I think not.
[20:24:35] Rinzlit: adaedra on the brightside
[20:24:36] bronson: has joined #ruby
[20:24:41] Rinzlit: someone installed ruby for me at the end of the day
[20:24:52] Rinzlit: still ended up taking a while .-.
[20:24:53] adaedra: I just came back
[20:24:55] blackmesa: has joined #ruby
[20:25:01] Rinzlit: Ruby isn't very good at not breaking
[20:25:08] shevy: do you look at rails
[20:25:09] shevy: or at ruby
[20:25:12] Ox0dea: Let's blame the tools!
[20:25:20] Rinzlit: The gems are sooo annoying
[20:25:34] adaedra: no they're not
[20:25:42] miah: whats annoying about them?
[20:25:43] Rinzlit: I have it break 3 times on the gems
[20:25:48] Rinzlit: while instealling the bundle
[20:25:54] mleung: has joined #ruby
[20:26:05] Rinzlit: I had to install each one that broke by its self
[20:26:10] Rinzlit: Then restart the bundle
[20:26:12] miah: why did they break?
[20:26:15] Antiarc: by "break" I presume you mean "I didn't have the proper system dependencies"?
[20:26:21] adaedra: missing -dev packages, I think.
[20:26:21] giuseppesolinas: has joined #ruby
[20:26:23] nfk: has joined #ruby
[20:26:29] shevy: oh so you failed to get the system deps!
[20:26:31] Rinzlit: It was missing -dev packages
[20:26:46] adaedra: Oh no, packages need dependencies
[20:26:51] adaedra: What should I do
[20:26:58] Rinzlit: It was a lot of work >.<
[20:27:01] Ox0dea: > Why does technology hate me?!
[20:27:18] alvaro_o: has joined #ruby
[20:27:20] Rinzlit: I need to get this website stuffz
[20:27:25] shevy: Rinzlit well that is the distribution's fault. if you compile from source, you have everything
[20:27:27] user1138: has joined #ruby
[20:27:28] Antiarc: Programming often is a lot of work. Ruby can smooth out a lot of things for you but it can't magically do everything. :)
[20:27:47] Ox0dea: Antiarc: Are you claiming P != NP?
[20:27:47] adaedra: sssh shevy
[20:27:58] Antiarc: Ox0dea: heterodox as it is!
[20:28:07] adaedra: Rinzlit: with a little bit of experience and common sense, this becomes trivial to solve.
[20:28:16] adaedra: That's the way of becomming a sysadmin.
[20:28:30] Rinzlit: Well I am really tired okay >.<
[20:28:41] shevy: you were tired 4 hours ago already!
[20:28:48] dfockler: has joined #ruby
[20:28:54] Rinzlit: on the bright side
[20:28:57] Rinzlit: my HP keyboard arrived
[20:29:03] Rinzlit: I got a refurbished old HP keyboard
[20:29:05] Rinzlit: I love them <3
[20:29:24] Ox0dea: You should do something about your (in)ability to focus.
[20:29:35] ascarter: has joined #ruby
[20:29:36] adaedra: Sleeping would be a start...
[20:29:41] rehat: has joined #ruby
[20:29:44] Rinzlit: I need to finish this website though
[20:29:47] Rinzlit: Thats more important
[20:29:47] pengin: has joined #ruby
[20:29:49] adaedra: closing LoL, a second step
[20:29:52] adaedra: Rinzlit: no
[20:30:03] adaedra: there's a limit at getting no sleep
[20:30:07] Rinzlit: I didn't even play League of legends in the last 40 hours
[20:30:14] adaedra: above, you're breaking more stuff than you fix
[20:31:00] Rinzlit: yeah probably
[20:31:03] Rinzlit: good night
[20:31:15] Rinzlit: I'ma go cuddle with my teddybears
[20:31:32] tomphp: has joined #ruby
[20:32:39] msgodf: has joined #ruby
[20:32:46] jenrzzz: has joined #ruby
[20:33:23] _blizzy_: is there a way to pass by reference in ruby? like I pass an array to a method, and it modifies the array permanently?
[20:33:36] bigbadbear: has joined #ruby
[20:33:40] acovrig: has joined #ruby
[20:33:49] fullofcaffeine: has joined #ruby
[20:33:51] werelivinginthef: has joined #ruby
[20:34:15] Trynemjoel: has joined #ruby
[20:34:17] acovrig: I have a string that seems to have a space at the end, yet .strip doesn???t remove it, how can I tell the utf code for the character that is there?
[20:34:41] adaedra: >> a = [3, 4]; def foo(z); z.push(5); end; foo a; p a
[20:34:42] ruboto: adaedra # => [3, 4, 5] ...check link for more (https://eval.in/403582)
[20:34:53] adaedra: _blizzy_ ^ default is to pass by reference
[20:35:00] _blizzy_: thanks, adaedra
[20:35:02] Ox0dea: acovrig: foo[-1].ord
[20:35:18] _blizzy_: also, acovrig, you could just str.gsub(/[^A-z0-9]/,'')
[20:35:30] Ox0dea: That's hardly the same thing.
[20:35:42] Ox0dea: _blizzy_: Also, [A-z] isn't what you think it is.
[20:35:56] _blizzy_: Ox0dea, oh.
[20:36:04] adaedra: wouldn't \s match all space characters?
[20:36:13] _blizzy_: I thought he was trying to get rid of it
[20:36:25] Ox0dea: _blizzy_: But you don't know the contents of his string.
[20:36:32] benlieb: has joined #ruby
[20:36:32] _blizzy_: Ox0dea, true.
[20:36:43] kraljev11: has joined #ruby
[20:36:44] adaedra: _blizzy_: get rid of trailing spaces, not everything that is not A-z0-9
[20:36:51] pandaant: has joined #ruby
[20:36:52] _blizzy_: adaedra, oh ok.
[20:37:02] _blizzy_: wouldn't str.delete(" ") work
[20:37:04] jazzy: has joined #ruby
[20:37:06] dgutierrez1287: has joined #ruby
[20:37:09] Ox0dea: _blizzy_: Not if it's not actually 0x20.
[20:37:14] adaedra: that would delete all spaces
[20:37:18] adaedra: not just trailin
[20:37:20] Ox0dea: adaedra: \p{space} catches all the Unicode "space" characters, but not \s.
[20:37:21] _blizzy_: I'm messing up today
[20:37:26] bronson: has joined #ruby
[20:37:29] adaedra: Ox0dea: ok
[20:37:37] adaedra: didn't know about \p
[20:37:43] Ox0dea: It's pretty nifty.
[20:37:51] Ox0dea: \p{Hiragana} is also a thing.
[20:38:07] Ox0dea: acovrig: The suspense is killing us; what's foo[-1].ord?
[20:38:27] acovrig: Ox0dea: sorry, was AFK, back now; pending
[20:38:33] Ox0dea: Standing by.
[20:39:24] adaedra: Ox0dea: spoiler: It's between 0x0 and 0xFFFFFFFF
[20:39:27] paulcsmith: has joined #ruby
[20:39:30] acovrig: interesting, I???m running .to_sym on it (it???s the keys of a has) seems to fix it???
[20:39:40] acovrig: adaedra: lol
[20:39:49] Ox0dea: acovrig: Then you had an XY problem.
[20:40:02] ruboto: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[20:40:05] Ox0dea: String#to_sym doesn't modify the string, it just interns it.
[20:41:28] acovrig: Ox0dea: 160
[20:41:45] Ox0dea: acovrig: Yeah, #strip wouldn't get rid of that one.
[20:41:47] xkickflip: has joined #ruby
[20:41:56] prefixed: Hey. I need to run a ruby method on an external host (from a local host). I believe I can use net/ssh to do this. However, how do I go about running the command and returning data?
[20:42:00] Ox0dea: acovrig: Are you getting this string from some HTML?
[20:42:15] kraljev11: has joined #ruby
[20:42:20] acovrig: Ox0dea: yup
[20:42:26] Ox0dea: acovrig: Makes sense; 160 is &nbsp;.
[20:43:10] Scripore: has joined #ruby
[20:43:40] Frem: has joined #ruby
[20:44:07] deepu: can someone please tell me how I can achieve this? https://dpaste.de/7cvc haven't used ERB yet
[20:44:07] ruby-lang422: has joined #ruby
[20:44:17] vimz: is this possible? https://gist.github.com/anonymous/5be6caa76b487bebfe44 accessing a varible outside the context of yield. I really hope it is! also, untested that code might actually work xD
[20:44:21] sumark: has joined #ruby
[20:44:37] christiandsg: has joined #ruby
[20:45:03] Mon_Ouie: just yield array if you need the block to be able to access the array
[20:47:22] acovrig: Ox0dea: to sub that, this doesn???t do anything, what is wrong? t.sub(/\u0160/,??????)
[20:47:59] A-ron: has joined #ruby
[20:48:28] vimz: Mon_Quie yield array? what does that mean? and yes all I need is for the block to access the array. example? thanks
[20:48:31] prefixed: Hey. I need to run a ruby method on an external host (from a local host). I believe I can use net/ssh to do this. However, how do I go about running the command and returning data?
[20:48:47] Mon_Ouie: vimz: yield array means you literally type 'yield array' in your code
[20:48:50] Hanmac: has joined #ruby
[20:48:59] DEA7TH_: has joined #ruby
[20:48:59] choke: has joined #ruby
[20:49:03] deepu: can someone please tell me how I can achieve this? https://dpaste.de/7cvc haven't used ERB yet
[20:49:09] adaedra: acovrig: like Ox0dea said above, you can use \p{space} to catch all spaces. Also, suffix with $ to take trailing space (+$ for trailing space/s/)
[20:49:30] Mon_Ouie: To pass an argument to the block, which can then be accessed as in { |x| ??? do stuff with x ??? }
[20:49:38] acovrig: adaedra, Ox0dea: ah, I see, thanks
[20:50:05] vimz: Mon_Ouie cool. oooohh. So if we were to type | yield array, foo, bar, biz | array, foo, bar and biz variables would all be available inside the proc that's executed by yield?
[20:50:11] skavez: has joined #ruby
[20:50:18] kraljev11: has joined #ruby
[20:50:27] Ox0dea: adaedra: It turns out 0xA0 isn't in \p{space}. :/
[20:50:34] `derpy: I'm sorry, I don't know anything about ERB.
[20:50:35] prefixed: does net/ssh allow for ruby code execution?
[20:50:38] prefixed: probably not, huh?
[20:50:42] Ox0dea: acovrig: Do you want to #strip or #sub?
[20:50:51] adaedra: prefixed: no, ruby you can ruby ruby binary
[20:51:07] prefixed: adaedra what
[20:51:09] jhass: try again :D
[20:51:16] Mon_Ouie: They would all be passed as arguments. Inside the block, you'd retrieve such arguments by using |???| notation at the beginning of the block.
[20:51:21] Ox0dea: Is it not the case that in Ruby you can Ruby Ruby binary?
[20:51:32] adaedra: I don't know what happend
[20:51:35] adaedra: <<<< rewind
[20:51:35] Wolland: has joined #ruby
[20:51:40] crdpink: has joined #ruby
[20:51:43] adaedra: prefixed: no, but you can run ruby binary
[20:52:17] prefixed: ok. so if i wanted to run some code, it'd have to be on the remote host?
[20:52:43] adaedra: deepu: read that: http://www.rubydoc.info/stdlib/erb/ERB
[20:52:58] adaedra: prefixed: what are you trying to do.
[20:53:08] skavez: has joined #ruby
[20:53:17] snockerton: why does using !!@ or !!! in pry not actually exit the program when I'm in a loop?
[20:53:18] skavez: has left #ruby: ()
[20:53:19] prefixed: I need to list a bunch of files and directories on a remote server
[20:53:41] adaedra: sftp exists for that
[20:53:48] baroquebobcat: has joined #ruby
[20:54:12] Agoldfish: has joined #ruby
[20:54:23] Mon_Ouie: snockerton: What do you mean? Typing 'loop {' on one line then '!!@' on the next does exit here
[20:54:26] ljarvis: Net::SFTP#dir.entries(...)
[20:54:45] snockerton: Mon_Ouie: I want to completely kill my ruby execution
[20:54:51] prefixed: I need to get a specific list of directories (recursively) on a remote server. I also need to be able to ignore certain directories. I have a ruby script that does this
[20:54:56] Ox0dea: snockerton: exit!
[20:55:00] snockerton: and not finish running the rest of the objects in an array for instance
[20:55:03] lkba_: has joined #ruby
[20:55:23] snockerton: Ox0dea: why do you know everything
[20:55:24] adaedra: prefixed: using sftp would make you able to browse remote directory like you do in local.
[20:55:28] Ox0dea: snockerton: Do I?
[20:55:50] snockerton: well you just used a question mark so apparently not
[20:55:51] Agoldfish: has joined #ruby
[20:55:57] Ox0dea: Sure thing.
[20:56:11] umo: has joined #ruby
[20:56:11] adaedra: Ox0dea: next step is becoming ruby god
[20:56:16] bricker: that's deep.
[20:56:26] bricker: How do I know if I know everything?
[20:56:36] Ox0dea: bricker: The question is its own refutation.
[20:56:46] Eiam_: has joined #ruby
[20:56:46] adaedra: nicely said
[20:56:47] bricker: Ox0dea: you caught me!
[20:57:00] Eiam_: clever girl
[20:57:32] Ox0dea: Eiam_: What is the significance of your nick?
[20:57:55] Eiam_: Ox0dea: its the initials of my wife & kids
[20:58:16] Ox0dea: Hey, mine's initials too!
[20:58:19] prefixed: adaedra so, does that mean i'd be able to use methods like Find.prune and File.directory?()
[20:58:26] Ox0dea: prefixed: Yep.
[20:58:26] adaedra: Eiam_: what can of name begins by _
[20:58:48] adaedra: prefixed: RTFM
[20:58:49] Eiam_: adaedra: thats because I don't use a bouncer for this nick so that jerk Eiam is here on my other machine ;)
[20:58:58] Ox0dea: Feckin' Eiam.
[20:59:02] prefixed: impressive. very impressive.
[20:59:12] Ox0dea: Eiam_: Hey, you just exposed a bug in WeeChat.
[20:59:23] Eiam: Happy to help
[20:59:24] Ox0dea: The underscore in your nick didn't get highlighted in the nicks column.
[20:59:54] adaedra: Ox0dea: only for Eiam ?
[20:59:57] prefixed: also sorry. no time. I just started learning ruby this week boss wants a solution two days ago. (don't get me started). thanks for you help though
[21:00:00] Ox0dea: The bug is more likely in colorize_nicks.py, now that I think about it.
[21:00:14] sharpmachine: has joined #ruby
[21:00:30] Ox0dea: adaedra: Aye, only for Eiam.
[21:00:35] Ox0dea: Eiam_, rather.
[21:00:47] Ox0dea: But only if you mention Eiam.
[21:00:53] tomphp: has joined #ruby
[21:01:19] Ox0dea: It is weird, though, because _ is \w.
[21:01:24] adaedra: prefixed: just have to look at sftp documentation to see what is available. But for a remote directory browsing, you should have what you need. Also, it allows you not to run code on the remote machine.
[21:01:53] prefixed: ok. I am going to play with it now
[21:02:04] umo: has left #ruby: ()
[21:02:55] duggiefresh: has joined #ruby
[21:03:12] Zai00: has joined #ruby
[21:03:45] dagda1_: has joined #ruby
[21:04:01] charliesome: has joined #ruby
[21:04:33] Papierkorb_: has joined #ruby
[21:04:39] yfeldblum: has joined #ruby
[21:06:53] eggoez: has joined #ruby
[21:07:32] jackjackdripper1: has joined #ruby
[21:09:09] jackjackdripper1: has joined #ruby
[21:09:27] Eiam_: Ox0dea: sorry to cause you trouble =0
[21:09:39] user1138: has joined #ruby
[21:09:59] Ox0dea: No worries; visible bugs are better than invisible ones.
[21:10:22] dfockler: ^ no doubt!
[21:10:31] adaedra: Eiam_: push it a bit further, make Ox0dea's client crash now.
[21:10:38] dimasg: has joined #ruby
[21:11:04] freeUmo: has joined #ruby
[21:11:35] EminenceHC: has joined #ruby
[21:11:57] johnMcLain: has joined #ruby
[21:11:58] pengin: has joined #ruby
[21:12:13] jhass: yeah, join as Eam__ and mention Eam_ and Eam
[21:12:19] jhass: eh, I can't type
[21:12:37] adaedra: ruby ruby ruby
[21:12:43] Eiam_: Ox0dea: ???????????????????????????????????? ??? ???h ??? ??? ???
[21:12:54] Eiam_: Ox0dea: still with us? ;)
[21:13:12] noname: has joined #ruby
[21:13:12] adaedra: selection works weird with that
[21:13:13] xcesariox: has joined #ruby
[21:13:31] Eiam_: just a treasure trove of bugs I am.. I should have never left QA =p
[21:13:49] eam: file://con/con
[21:14:04] Eiam_: no relation to eam. they are smarter than i for sure
[21:14:45] CaryInVictoria: has joined #ruby
[21:14:52] adaedra: :(){:|:&};:
[21:15:21] vdamewood: has joined #ruby
[21:15:58] Ox0dea: adaedra: st handled it just fine. :)
[21:16:27] Ox0dea: st, the simple terminal emulator.
[21:16:32] adaedra: what are you replying to?
[21:16:48] adaedra: why do you all people have terminal emulators I never heard of
[21:16:52] Ox0dea: adaedra: You had trouble selecting Arabic?
[21:17:02] Sypheren_: has joined #ruby
[21:17:07] jhass: adaedra: as said, because they all suck
[21:17:12] adaedra: well, selection is not linear, but I think it's ok
[21:17:16] Ox0dea: jhass: Some just suckless.
[21:17:18] adaedra: also, I'm not in a terminal here
[21:17:29] Ox0dea: adaedra: Then your client needs to be flogged.
[21:17:48] Ox0dea: Well, punished however software can be.
[21:17:56] Ox0dea: Remove one of its dependencies.
[21:18:21] adaedra: my client is all fine
[21:18:52] adaedra: and arabic selection looks file to me here, from right to left in a left to right sequence
[21:18:53] dopie: has joined #ruby
[21:19:07] adaedra: just surprising
[21:19:39] Ox0dea: adaedra: It's surely because you started selecting from outside the Arabic.
[21:20:20] miwood_: has joined #ruby
[21:21:03] prefixed: so, I just installed "net/ssh" but ruby is telling me that I cannot load net/ssh
[21:21:37] Ox0dea: prefixed: Go shopping.
[21:22:11] ruurd: has joined #ruby
[21:22:15] nitenq: has joined #ruby
[21:22:36] iamjarvo_: has joined #ruby
[21:22:56] iamjarvo_: has joined #ruby
[21:23:24] gamename: has joined #ruby
[21:23:39] Scripore: has joined #ruby
[21:24:11] prefixed: also, Gems::... says it is installed
[21:24:14] hobodave: has joined #ruby
[21:24:18] simplyianm: has joined #ruby
[21:25:03] shevy: dfockler hmm... fork lambda would almost be valid syntax
[21:25:09] bosma_: has joined #ruby
[21:25:19] A-ron: has joined #ruby
[21:25:41] tvw: has joined #ruby
[21:25:53] NeverDie: has joined #ruby
[21:25:56] code1o6: has joined #ruby
[21:26:39] dubkoidragon: has joined #ruby
[21:26:40] GBrawl: has joined #ruby
[21:26:45] Ox0dea: shevy: `fork lambda` isn't a syntax error.
[21:27:12] shevy: you use backticks
[21:27:27] dseitz: has joined #ruby
[21:27:37] Ox0dea: >> def fork(*) end; lambda = 42; fork lambda
[21:27:38] ruboto: Ox0dea # => nil (https://eval.in/403595)
[21:28:32] prefixed: what's the best way to determine whether if a gem isn't supported by my version of ruby
[21:29:08] Eiam_: has joined #ruby
[21:29:17] blaines: has joined #ruby
[21:29:44] Antiarc: Try to install it and see if it can't find a match
[21:29:44] Mon_Ouie: Probably just to try it considering many gemspecs won't actually tell you what versions of Ruby are supported
[21:29:47] Antiarc: Or read the gemspec
[21:29:49] prefixed: i have 1.9.3. net/ssh says that 2.9.x works with 1.9.x. this shouldn't be a problem
[21:30:07] Channel6: has joined #ruby
[21:30:15] prefixed: This means that the gem isn't installed, right? `require': cannot load such file -- net/ssh (LoadError)
[21:30:28] Ox0dea: prefixed: Your paths must not be configured properly.
[21:30:29] lkba: has joined #ruby
[21:30:38] adaedra: this can mean a lot of things
[21:31:16] mhf: has joined #ruby
[21:31:43] icebourg: has joined #ruby
[21:31:48] mary5030: has joined #ruby
[21:33:27] duoi: has joined #ruby
[21:34:08] paulcsmith: has joined #ruby
[21:34:10] duoi: has joined #ruby
[21:34:11] adaedra: anyway, time to sleep, see y'all
[21:34:25] prefixed: looks like my path might not be correct
[21:35:10] bigbadbear: has joined #ruby
[21:35:11] phutchins: has joined #ruby
[21:35:43] blackmesa: has joined #ruby
[21:37:48] failshell: has joined #ruby
[21:38:30] Janno: has joined #ruby
[21:38:51] swgillespie: has joined #ruby
[21:39:40] simplyianm: has joined #ruby
[21:40:24] blackmes1: has joined #ruby
[21:41:48] bb010g: has joined #ruby
[21:42:40] helpa: has joined #ruby
[21:43:26] jpfuentes2: has joined #ruby
[21:43:32] sdrew: has joined #ruby
[21:43:52] RobertBirnie: has joined #ruby
[21:44:10] yqt: has joined #ruby
[21:44:50] neoseeker191: has joined #ruby
[21:45:17] lalalaaa: has joined #ruby
[21:46:28] Mweshi: has joined #ruby
[21:46:30] Scripore: has joined #ruby
[21:47:19] miwood: has joined #ruby
[21:47:28] lalalaaa: Hi! How would one split `self.to_s.downcase.gsub(/['`]/, "").parameterize` into two lines? Ie. `self.to_s.downcase.parameterize` + `self.to_s.gsub(/['`]/, "")`?
[21:48:20] drbrain: I would probably: parameters = self.to_s.downcase; parameters.gsub(???).parameterize
[21:48:24] lalalaaa: When I do it like that, the first line doesn't seem to matter.
[21:48:27] drbrain: but I'm not sure if "parameters" is the best name
[21:48:45] dagda1: has joined #ruby
[21:48:47] lalalaaa: drbrain: Ideally I'd like to put the gsub on a separate line so I can explain that I'm trying to eliminate apostrophes
[21:49:03] drbrain: three lines is probably better than two then
[21:49:21] lalalaaa: thanks man looks really good:)
[21:49:50] drbrain: by picking a good variable name for the gsub result you won't need a comment saying "this removes apostrophes"
[21:50:36] drbrain: also, you can use String#delete instead of gsub, which is a little more intention-revealing
[21:50:41] freeUmo: has joined #ruby
[21:50:59] miah: >> "foo'bar".tr("'", '')
[21:51:00] ruboto: miah # => "foobar" (https://eval.in/403599)
[21:51:23] blackoperat: has joined #ruby
[21:51:24] drbrain: >> "foo ``bar''".delete "'`"
[21:51:25] ruboto: drbrain # => "foo bar" (https://eval.in/403601)
[21:51:29] apeiros: IMO delete > tr(???, '')
[21:51:37] apeiros: (delete has the same character semantics as tr)
[21:51:55] drbrain: I've used #tr to implement a hangman
[21:52:19] shevy: now it is "dirty secrets" time again!
[21:52:30] apeiros: drbrain: you can play hangman over in #ruby-offtopic???
[21:52:31] bungoman: has joined #ruby
[21:53:05] drbrain: the template had 0, 1, 2, ??? for each stage of the game arranged appropriately
[21:53:22] benlovell: has joined #ruby
[21:53:26] drbrain: then you'd either replace it with the proper, err, body part, or whitespace
[21:53:48] drbrain: (what a grim game to play, if you don't guess this word then YOU DIE)
[21:54:34] lalalaaa: thanks again guys, i love it how you always present not just the solution but tons of other ways to go about it
[21:56:25] Eiam_: has joined #ruby
[21:56:27] miah: not all guys either
[21:56:31] ruboto: we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[21:57:10] shevy: has joined #ruby
[21:57:20] romain_t: has joined #ruby
[21:57:26] s00pcan: has joined #ruby
[21:57:32] lalalaaa: i stand corrected
[21:57:44] lalalaaa: trust me my intentions were all unisex ;)
[21:58:26] dfockler: I'm not doing anything, what should I try to write in ruby in 2 hours?
[21:58:26] apeiros: small steps towards everybody feeling welcome :D
[21:59:26] jhass: dfockler: learn some crystal :P
[21:59:29] Ox0dea: >> require 'socket.so'; File.basename $LOADED_FEATURES.grep(/socket/)[0]
[21:59:30] ruboto: Ox0dea # => "socket.so" (https://eval.in/403602)
[21:59:37] dfockler: jhass: that's a good idea
[21:59:39] Ox0dea: Could a Windows user please run and report the output of that snippet?
[21:59:50] Ox0dea: Would a kindly volunteer from the Apple tree do the same?
[21:59:51] nofxx: has joined #ruby
[22:00:02] dfockler: I always get distracted by the crystal logo on their home page
[22:00:33] gilest: has joined #ruby
[22:00:39] bruno-: has joined #ruby
[22:01:17] htmldrum: has joined #ruby
[22:01:30] lalalaaa: dfockler: yeah cant take my eyes off it
[22:01:41] dfockler: I try spinning it really fast
[22:02:15] shevy: I spin in my chair
[22:02:23] user1138_: has joined #ruby
[22:02:28] arooni-mobile: has joined #ruby
[22:02:40] roolo_: has joined #ruby
[22:02:41] shevy: dfockler write a package manager in 2 hours :)
[22:03:02] shevy: it must be able to: download remote data; extract it; run configure make make install ... hmm that's it for a start
[22:03:04] lalalaaa: or maybe a twitterbot?
[22:03:10] gamename: has joined #ruby
[22:03:10] havenwood: has joined #ruby
[22:03:11] jhass: alias jhpm=tar done
[22:04:01] Ox0dea: jhass: I see you saw YAPM was taken.
[22:04:17] jhass: no I'm just egocentric
[22:04:20] bronson: has joined #ruby
[22:04:32] erik_p: has joined #ruby
[22:04:34] jenrzzz: has joined #ruby
[22:05:32] Musashi007: has joined #ruby
[22:06:05] quimrstorres: has joined #ruby
[22:06:08] user1138: has joined #ruby
[22:08:17] vimz: how should I pass a block onto another method? def meth1 &b end def meth2 &b b.call end ?
[22:08:47] wsterling: has joined #ruby
[22:09:19] dfockler: I'm glad someone used pacman to name a package manager
[22:09:22] Mweshi: has joined #ruby
[22:11:40] ruurd: has joined #ruby
[22:11:41] Obfuscate: has joined #ruby
[22:12:35] startupality: has joined #ruby
[22:13:17] jhass: vimz: def foo(&block); bar(&block); end
[22:13:32] jhass: how bar takes the block is not relevant
[22:15:29] prefixed: how exactly would I use Find.find() with Net:SFTP? .opendir does not return a string...
[22:17:53] dmolina: has joined #ruby
[22:18:49] swgillespie: has joined #ruby
[22:19:26] aaeron: has joined #ruby
[22:21:44] Ox0dea: dfockler: Arch user?
[22:22:02] simplyianm: has joined #ruby
[22:22:03] dfockler: nah I was thinking of a name for a package manager :P
[22:22:15] Ox0dea: jhass: ILoveCandy?
[22:22:53] [k-: shevy! Ox0dea!
[22:23:06] shevy: did you just wake up [k-
[22:23:06] prefixed: i don't think it's possible
[22:23:21] Ox0dea: Happy dawn.
[22:23:24] jhass: Ox0dea: hm?
[22:23:42] Ox0dea: jhass: echo ILoveChandy >> /etc/pacman.conf
[22:23:52] Tritone: has joined #ruby
[22:23:54] Ox0dea: *ILoveCandy, obviously.
[22:23:59] shevy: dfockler give it a POWERFUL name
[22:24:07] shevy: "ruckage"
[22:24:10] crazydiamond: has joined #ruby
[22:24:14] dfockler: I'm calling it pancakes
[22:24:19] Ox0dea: Hey, [k-, what happens if you require 'socket.so' on OS X?
[22:25:39] [k-: I'll add it to the lists of things to do when I get back
[22:26:22] s00pcan: has joined #ruby
[22:26:23] simplyianm: has joined #ruby
[22:26:44] drbrain: Ox0dea: ruby doesn't care about platform-specific C extensions*
[22:27:07] drbrain: * except for .dll, unless you've built ruby to enable it, IIRC windows-only
[22:27:13] prefixed: adaedra it doees not look possible to use Find.find() with SFTP objects
[22:27:57] drbrain: Ox0dea: so if you've got a .bundle you can require the .so and it'll work
[22:28:23] Ox0dea: drbrain: But the reverse isn't true.
[22:28:30] Ox0dea: I can only require .so on Linux.
[22:29:20] Ox0dea: For what it's worth, I'm only interested in the behavior you've described, but is .so guaranteed to resolve on all platforms?
[22:29:22] werelivinginthef: has joined #ruby
[22:29:51] Ox0dea: To add to that, do you know if the path gets canonicalized to .so for $LOADED_FEATURES?
[22:30:21] drbrain: ah, right, I think RbConfig::CONFIG['DLEXT'] and DLEXT2 are what control this
[22:30:38] Ox0dea: Yes, that's right.
[22:30:53] jenrzzz: has joined #ruby
[22:30:54] drbrain: without checking, I think .so is hard-coded as something that will always work, and adding DLEXT and DLEXT let ruby try extra things
[22:30:55] elia: has joined #ruby
[22:31:00] Ox0dea: Only they're not really accessible at runtime, at least not before require does its thing.
[22:31:25] drbrain: which aren't?
[22:31:33] Ox0dea: DLEXT{,2}
[22:31:49] Ox0dea: They're manifest constants at build time.
[22:32:15] drbrain: rubygems fetches (and uses) them when overriding require
[22:33:04] freerobby: has joined #ruby
[22:33:16] Log1x: has joined #ruby
[22:33:50] MisterRusty: has joined #ruby
[22:33:58] Ox0dea: drbrain: Nah, doesn't seem to permit requiring .dll files on Linux.
[22:34:26] Ox0dea: Neither RbConfig::CONFIG['DLEXT'] nor 'DLEXT2'.
[22:34:28] drbrain: oh, you mean getting plain ruby require to load a .dll as a compiled extension library?
[22:34:40] Ox0dea: Well, no, RubyGems' require would be fine?
[22:34:54] drbrain: I think DLEXT and DLEXT2 are reflections of what is compiled-in to ruby, so changing them won't change that behavior
[22:35:01] icebourg: has joined #ruby
[22:35:15] Ox0dea: I alluded to that regrettable truth a few minutes ago.
[22:35:50] drbrain: I may have missed that bit, sorry
[22:35:58] Ox0dea: "Manifest constants" and whatnot.
[22:36:12] drbrain: you can discover what ruby will look for, but not change this behavior without recompiling
[22:36:18] baweaver: has joined #ruby
[22:36:44] Ox0dea: I was hoping to respond differently depending on the extension used to require me, but .so working on all platforms would suffice.
[22:36:55] Ox0dea: I still need a way to determine that .so was explicitly used, though.
[22:37:21] MrWharfsnort: has joined #ruby
[22:38:02] Ox0dea: The best I've got so far was walking ObjectSpace.each_object(String), remembering the last time we saw "loading_table", and giving the okay if "foo.so" occurs soon enough after.
[22:38:02] drbrain: what do you need to determine that for?
[22:38:07] Ox0dea: Silly reasons.
[22:38:10] drbrain: several libraries have a .rb with the same name which requires the .so
[22:38:26] Ox0dea: drbrain: I, uh... want requiring the .rb to fail. ^_^
[22:38:36] Senjai: Do exceptions propogate if used with send?
[22:38:58] Senjai: >> def rawr; raise StandardError.new; end; send :rawr; puts "Still here"
[22:38:59] ruboto: Senjai # => StandardError (StandardError) ...check link for more (https://eval.in/403604)
[22:39:04] PaulCapestany: has joined #ruby
[22:39:06] drbrain: Ox0dea: add "raise LoadError, __FILE__"? ????
[22:39:54] Ox0dea: drbrain: Sorry, I should have been more exact; I'm setting a non-capitalized constant from C, and then requiring the .rb from C as well; the .rb dies if the constant isn't set.
[22:40:20] Ox0dea: And since non-capitalized constants can't be defined from Ruby land, I can ensure that I was required as .so, at least on Linux.
[22:43:03] j4cknewt: has joined #ruby
[22:43:11] jenrzzz: has joined #ruby
[22:43:21] Ox0dea: drbrain: I know it sounds strange, and I confess it's mostly for a laugh, but I know it must be feasible.
[22:43:56] drbrain: yeah, I think NameError has a lowercase constant on it, but that's part of the core library
[22:44:00] yqt: has joined #ruby
[22:44:32] craysiii: has left #ruby: ()
[22:44:42] unsymbol: has joined #ruby
[22:44:55] Ox0dea: >> Complex.constants(false)
[22:44:56] ruboto: Ox0dea # => [:compatible, :I] (https://eval.in/403605)
[22:45:20] Ox0dea: There are also a bunch of internal instance variables without leading asperands.
[22:46:04] Ox0dea: https://gist.github.com/0x0dea/7d288ea71387856b4330
[22:46:20] ght: Question: I have a JSON string that is built dynamically and then parsed using JSON.parse. Normally it works fine, but it appears some of the data...
[22:46:26] ght: being retrieved contains chars that are invalid to JSON.
[22:46:43] ght: Anyone have any tips on finding and detecing / escaping chars that would be invalid
[22:46:45] duoi: has joined #ruby
[22:46:46] prefixed: i had to reimplement everything
[22:46:48] prefixed: you know why?
[22:46:53] prefixed: because yolo
[22:46:56] ght: In a string that was to be parsed via JSON.parse?
[22:47:42] jhass: ght: sounds like a broken approach. Can't you build the hash directly? if not why not?
[22:47:51] msnyon: has joined #ruby
[22:48:10] ght: Nope, approach is completely logical, just looking for tips regarding detecting and escaping chars that would be invalid to JSON.
[22:48:13] ght: Anyone?
[22:48:24] yb_drowe: has joined #ruby
[22:48:51] Ox0dea: ght: Are you not able to read the error message to determine exactly which characters are being considered invalid?
[22:49:29] FernandoBasso: has joined #ruby
[22:49:36] ght: Yes, I can read the string, but it contains several entries, and it's dynamic anyway, so, again, I need to be able to detect and escape chars invalid to JSON.
[22:49:46] Fernando-Basso: has joined #ruby
[22:49:46] ght: So no one has any tips there?
[22:49:58] jhass: could you elaborate a bit on why it's logical?
[22:50:09] ght: I'll continue researching, thanks just the same.
[22:50:46] jhass: well, you can obtain valid json by calling to_json
[22:51:01] jhass: >> require "json"; 'foo"bar'.to_json
[22:51:02] ruboto: jhass # => "\"foo\\\"bar\"" (https://eval.in/403606)
[22:51:38] jhass: but again, doing that just stuff it back into JSON.parse sounds pretty broken
[22:52:06] jhass: and even if not parsing it again building a hash and calling to_json on it would be better
[22:52:38] eggoez: has joined #ruby
[22:53:38] jenrzzz_: has joined #ruby
[22:54:25] Tritone: has joined #ruby
[22:54:39] AnoHito_: has joined #ruby
[22:55:39] nym: has joined #ruby
[22:57:37] serivich: has joined #ruby
[22:57:56] WillAmes: has joined #ruby
[22:58:21] AlxAltea: has joined #ruby
[22:58:26] jenrzzz: has joined #ruby
[22:59:57] Guest33: has joined #ruby
[23:00:11] christiandsg: has joined #ruby
[23:01:04] neoseeker191: has joined #ruby
[23:01:36] martinbjeldbak: has joined #ruby
[23:01:46] quazimodo: has joined #ruby
[23:02:11] towski__: has joined #ruby
[23:03:36] j4cknewt: has joined #ruby
[23:04:09] dgutierrez1287: has joined #ruby
[23:04:25] Igorshp: has joined #ruby
[23:04:50] baweaver: has joined #ruby
[23:10:51] Igorshp: has joined #ruby
[23:11:02] a346: has joined #ruby
[23:11:03] davedev24: has joined #ruby
[23:11:07] jcp: has joined #ruby
[23:11:40] jcp: has joined #ruby
[23:12:52] Igorshp: has joined #ruby
[23:14:32] Ropeney: has joined #ruby
[23:17:06] howdoi_: has joined #ruby
[23:17:42] christiandsg: has joined #ruby
[23:18:37] devbug: has joined #ruby
[23:21:31] casadei_: has joined #ruby
[23:22:40] mike___1234: has joined #ruby
[23:23:11] workmad3: has joined #ruby
[23:23:39] snockerton: is there a way to drop a specific key from all hashes in an array:
[23:23:40] snockerton: [ { "key1"=>"a", "key2"=>"b" }, { "key1"=>"c", "key2"=>"d" } ]
[23:23:45] snockerton: get rid of key1
[23:24:01] mandarinkin: has joined #ruby
[23:24:11] jhass: .each do |hash| hash.delete("key1"); end
[23:24:25] snockerton: how is that different from #tap ?
[23:24:44] Ox0dea: snockerton: #tap returns the object.
[23:24:44] martinbjeldbak: has joined #ruby
[23:25:00] jhass: tap yield the object not the array elements
[23:25:20] jhass: each returns the object too :P
[23:25:50] Ox0dea: Oh, right.
[23:25:58] bungoman: has joined #ruby
[23:28:45] simplyianm: has joined #ruby
[23:29:00] user1138: has joined #ruby
[23:29:10] al2o3-cr: tap is powerfull
[23:30:00] Ox0dea: class Object; def tap; yield self; self end end
[23:30:06] Ox0dea: #tap is elegant as fuck.
[23:30:16] GeissT: has joined #ruby
[23:31:41] shevy: better than #fuck is elegant as tap!
[23:31:43] al2o3-cr: just like me :p
[23:31:49] Kully3xf: has joined #ruby
[23:32:13] nfk: has joined #ruby
[23:32:30] allomov: has joined #ruby
[23:32:36] swgillespie: has joined #ruby
[23:33:13] amargherio: has joined #ruby
[23:34:29] prefixed: yo. how do I i do a negation of path =~ /^\.\?$/
[23:35:34] Ox0dea: prefixed: !~
[23:35:42] Ox0dea: prefixed: Also, please help us name that operator.
[23:36:12] prefixed: the waving bang
[23:36:22] Ox0dea: But it's a bangy wave? :/
[23:36:38] Ox0dea: Ooh! Bangarang?!
[23:36:40] Musashi007: has joined #ruby
[23:36:45] Ox0dea: So good, right?
[23:36:49] prefixed: if that actually happened
[23:37:04] benlieb: has joined #ruby
[23:37:10] Ox0dea: prefixed: http://ruby-operators.herokuapp.com/
[23:37:24] bohallor: has joined #ruby
[23:37:40] JeramyRR: has joined #ruby
[23:37:47] prefixed: fucking ruby
[23:37:54] prefixed: 12 hour day. time to go home
[23:39:29] Musashi007: has joined #ruby
[23:40:32] CaryInVictoria: has joined #ruby
[23:40:38] Feyn: has joined #ruby
[23:41:47] sepp2k: has joined #ruby
[23:43:01] al2o3-cr: >> :ruby || :python
[23:43:02] ruboto: al2o3-cr # => :ruby (https://eval.in/403615)
[23:43:07] poguez_: has joined #ruby
[23:43:27] al2o3-cr: if that what ruboto says, it me the truth
[23:43:31] arooni-mobile: has joined #ruby
[23:43:31] stantonnet: has joined #ruby
[23:43:51] waka: has joined #ruby
[23:43:59] zenspider: ooooh my mattress is showing up tomorrow! Maybe I won't be stiff and cranky on friday!
[23:44:31] Ox0dea: >> :Ruby > :Python
[23:44:32] ruboto: Ox0dea # => true (https://eval.in/403616)
[23:44:47] Ox0dea: zenspider: You're better when you're cranky.
[23:44:52] Ox0dea: The stiffness I could do without.
[23:45:30] pontiki: has joined #ruby
[23:45:53] al2o3-cr: my vocabulary is non-existent at this time of night :p
[23:46:13] Ox0dea: al2o3-cr: I was going to comment on that; your English skills definitely trickle away with the clock. :P
[23:46:53] Ox0dea: "It me the truth" is pretty great, if I'm honest.
[23:47:12] slackbotgz: has joined #ruby
[23:47:26] xaxisx: has joined #ruby
[23:48:33] al2o3-cr: i even focused hard on too :p
[23:49:03] charliesome: has joined #ruby
[23:49:10] al2o3-cr: forget it i'm going sleep :(
[23:51:32] acke: has joined #ruby
[23:57:06] webguynow: has joined #ruby
[23:58:14] kb3ien: http://pastebin.ca/3071737 why is this happening, what's the while syntax here?
[23:58:38] segfalt: has joined #ruby
[23:59:19] al2o3-cr: kb3ien: is that ruby
[23:59:39] RickHull: ++ is not valid
[23:59:45] waka: has joined #ruby