« Back to channel list

#ruby - 25 August 2015

« Back 1 day Forward 1 day »
[00:01:09] dagda1: has joined #ruby
[00:03:17] sargas: has joined #ruby
[00:03:23] Aeyrix: Ox0dea: you can come back now
[00:04:57] Motoservo: has joined #ruby
[00:05:31] rickmasta: has joined #ruby
[00:08:22] Azure: has joined #ruby
[00:10:27] KnownSyntax_: has joined #ruby
[00:17:23] christiandsg: has joined #ruby
[00:18:26] sdfgsdfg: has joined #ruby
[00:18:46] sdfgsdfg: has joined #ruby
[00:19:20] Rinzlit1: has joined #ruby
[00:19:40] yatish27: has joined #ruby
[00:20:32] Kallis: has joined #ruby
[00:23:24] saddad: has joined #ruby
[00:25:09] Mojo_Nixon: has joined #ruby
[00:28:45] jenrzzz: has joined #ruby
[00:29:54] riotjones: has joined #ruby
[00:30:33] n_blownapart: has joined #ruby
[00:31:21] hugoxrosa: has joined #ruby
[00:31:32] sarkyniin: how do I check if a string is an integer?
[00:32:20] shevy: sarkyniin you could use a regex
[00:32:27] shevy: >> "5" =~ /\d+/
[00:32:28] sarkyniin: I found the solution
[00:32:28] ruboto: shevy # => 0 (https://eval.in/421674)
[00:32:31] sarkyniin: thanks anyway shevy
[00:33:33] avdi: sarkyniin: the usual, somewhat ugly way is to feed it into Integer(my_str) and if an exception comes out its not an integer
[00:33:51] sarkyniin: avdi: if I feed it 0.5
[00:33:59] sarkyniin: it'll output 0 and there will be no exception
[00:34:24] sarkyniin: I'm using "str.to_i.to_s == str" right now
[00:34:57] avdi: sarkyniin: have you actually tried it?
[00:35:50] avdi: >> Integer("0.5")
[00:35:51] ruboto: avdi # => invalid value for Integer(): "0.5" (ArgumentError) ...check link for more (https://eval.in/421676)
[00:36:24] bruno-: has joined #ruby
[00:36:25] avdi: sarkyniin: ^^
[00:36:49] sankaber: has joined #ruby
[00:36:49] dseitz: has joined #ruby
[00:37:15] northfurr: has joined #ruby
[00:37:22] sarkyniin: oh I forgot the "
[00:37:40] j_mcnally: has joined #ruby
[00:38:46] Oog: has joined #ruby
[00:39:25] dc: has joined #ruby
[00:39:27] j_mcnally: has joined #ruby
[00:39:29] nb_bez___: has joined #ruby
[00:39:48] CloCkWeRX: has joined #ruby
[00:40:49] bootstrappm: has left #ruby: ()
[00:42:10] devdazed: has joined #ruby
[00:43:58] Ox0dea: avdi: Should we be teaching newcomers to use exceptions for control flow?
[00:44:40] shevy: I teach my cats how to program
[00:44:44] northfurr: has joined #ruby
[00:44:46] Ox0dea: That's understandable.
[00:44:54] failshell: has joined #ruby
[00:45:19] BraddPitt: >> puts 5.class
[00:45:20] ruboto: BraddPitt # => Fixnum ...check link for more (https://eval.in/421677)
[00:45:25] BraddPitt: >> puts 5.class == Fixnum
[00:45:26] avdi: Ox0dea: unfortunately, this is (as far as I know) the most idiomatic way to do it. It's a an ongoing annoyance to me. I should probably submit a patch of some kind.
[00:45:26] ruboto: BraddPitt # => true ...check link for more (https://eval.in/421678)
[00:45:52] cmckee: has joined #ruby
[00:46:35] workmad3: has joined #ruby
[00:46:47] allcentury: has joined #ruby
[00:47:30] shevy: let's get ready
[00:48:07] ArchRogem: has joined #ruby
[00:48:16] jevs: has joined #ruby
[00:48:20] dmoe: has joined #ruby
[00:48:25] jpinnix______: has joined #ruby
[00:48:29] jiada: has joined #ruby
[00:48:32] jeregrine: has joined #ruby
[00:48:55] jmhmccr: has joined #ruby
[00:49:03] baweaver: >> 'lol, I can integer too!'.to_i
[00:49:04] ruboto: baweaver # => 0 (https://eval.in/421679)
[00:49:15] Yzguy: has joined #ruby
[00:49:26] Ox0dea: avdi: That it's broadly applicable (Float, Complex, and Rational are also methods, for instance) is appealing, but its being the anomalous case where exceptions for control flow is The Right Thing grates a little.
[00:50:04] ChasedSpade: has joined #ruby
[00:50:20] ght: Indeed, sir.
[00:50:32] baweaver: handy that there's a major version coming up where changes like this may be more applicable.
[00:50:40] lessless: has joined #ruby
[00:51:04] IrishGringo: has joined #ruby
[00:51:11] baweaver: though that magic comment sounds kinda spooky.
[00:51:29] baweaver: (compat mode for non-immutable strings run through 3.x parsers)
[00:51:39] frankS2: has joined #ruby
[00:52:57] Musashi007: has joined #ruby
[00:53:23] dagda1: has joined #ruby
[00:55:10] northfurr: has joined #ruby
[00:56:23] sargas: has joined #ruby
[00:58:55] northfurr: has joined #ruby
[01:00:15] choke: has joined #ruby
[01:02:09] ngscheurich: has joined #ruby
[01:02:39] Ox0dea: shevy: https://u.teknik.io/pLKoSb.png
[01:04:08] Ox0dea: Hint: This rebus does not say "commit piracy, you heathen!".
[01:05:08] ducklobster: is it ridiculous to consider submitting a patch to add a #reverse method to the Hash class
[01:05:26] ducklobster: i know hashes dont have an order in theory but
[01:05:33] ducklobster: as of ruby1.9 hashes preserve insertion order
[01:05:41] Ox0dea: ducklobster: Use case?
[01:05:48] zenguy_pc: has joined #ruby
[01:06:10] ducklobster: i am working with some binary bitfield type stuff, and the insertion order would dictate what order bit to use
[01:06:21] Ox0dea: So insert them in reverse order?
[01:06:30] ducklobster: so when i use #inject i want to reverse the order
[01:06:40] ducklobster: as i push out for the bitmasking
[01:07:02] northfurr: has joined #ruby
[01:07:03] ducklobster: its a pretty small usecase
[01:07:10] Ox0dea: >> Hash.instance_methods.include?(:reverse_each)
[01:07:11] ruboto: Ox0dea # => true (https://eval.in/421680)
[01:07:26] ducklobster: plus the #reverse is just myhash.to_a.reverse.to_h
[01:07:36] sargas_: has joined #ruby
[01:09:05] ducklobster: Ox0dea: where i the doc on tht method?
[01:09:19] Ox0dea: &ri Enumerable#reverse_each
[01:09:19] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#reverse_each-instance_method
[01:09:43] Ox0dea: In any case, your data is probably in the wrong format if you're using a Hash as a bitfield?
[01:09:57] siemprefresco: has joined #ruby
[01:10:04] hugoxrosa: I was wonder why a hash?
[01:10:04] Ox0dea: #pack and #unpack are probably the methods you want.
[01:10:06] cndiv: has joined #ruby
[01:10:17] ducklobster: i will use those to convert to the binary string rep
[01:10:33] ducklobster: but i use a hash to store the value and the bitdepth
[01:10:43] ducklobster: in case you want more than just binary
[01:11:40] ducklobster: pack multiple fields into uint32_t, potentially some binary, potentially some 1 < x <= 32 bits
[01:12:03] Ox0dea: ducklobster: Fixnum#[] is a thing, mind.
[01:12:18] Ox0dea: But not Fixnum#[]=, which is just another lame inconsistency. :/
[01:12:20] xxneolithicxx: has joined #ruby
[01:12:40] ducklobster: oh very cool, thanks!
[01:12:49] Ox0dea: Note well that 0 is LSB.
[01:12:53] Ox0dea: Only makes sense, of course.
[01:13:52] patrick_star: has joined #ruby
[01:14:06] ducklobster: works great for the binary fields but too bad it doesnt have a range option
[01:14:16] howdoicomputer: has joined #ruby
[01:14:39] Ox0dea: Aye, that would be convenient.
[01:16:34] porfa: has joined #ruby
[01:17:27] tkuchiki: has joined #ruby
[01:17:43] roolo: has joined #ruby
[01:17:52] nkts: has joined #ruby
[01:21:58] shevy: Ox0dea I am a pirate?
[01:22:23] diegoviola: has joined #ruby
[01:23:17] Ox0dea: shevy: ARRR, you, red A.
[01:24:04] matcouto: has joined #ruby
[01:24:10] northfurr: has joined #ruby
[01:26:28] pipework: Are you ready to grumble?
[01:27:38] Ox0dea: Endoh-san is particularly displeased with immutable strings; I hope his voice is heard.
[01:28:38] northfurr: has joined #ruby
[01:29:10] Ox0dea: Then again, Object#thaw is a one-liner. >:)
[01:30:40] riotjones: has joined #ruby
[01:30:48] jenrzzz: has joined #ruby
[01:30:57] phutchins: has joined #ruby
[01:31:54] clarkenciel: has joined #ruby
[01:33:35] ducklobster: Ox0dea: any clever ways to convert true/false into 0/1?
[01:34:12] Ox0dea: ducklobster: `foo ? 1 : 0` is about as clean as it'll get, I reckon.
[01:34:48] ducklobster: thats as good as i got, thought there might be some other Fixnum magic methods you had up your sleeve haha
[01:35:14] yfeldblum: has joined #ruby
[01:37:55] jpfuentes2: has joined #ruby
[01:37:57] dgutierrez1287: has joined #ruby
[01:38:16] shevy: Ox0dea where do you see endoh?
[01:39:03] Ox0dea: has joined #ruby
[01:39:08] rbennacer: has joined #ruby
[01:40:20] shevy: hey tonpiki!
[01:41:55] dimasg: has joined #ruby
[01:42:22] Ox0dea: shevy: He's been pretty vocal about it on the issue tracker?
[01:42:55] Ox0dea: > Adding .freeze blindly is stupid. It should be added only when it is really needed...
[01:43:26] jimbeaudoin: has joined #ruby
[01:43:45] phutchins: has joined #ruby
[01:44:46] Yzguy: has joined #ruby
[01:44:59] Ox0dea: Thread.new { ObjectSpace.each_object(String, &:thaw) while 1 }
[01:45:13] shevy: my brain does not even understand the problem that is tried to solve
[01:45:56] Ox0dea: "Ruby is a language for consenting adults." -- DHH
[01:46:22] shevy: I'm going to collect quotes from Ox0dea
[01:46:30] Ox0dea: We need a quotebot.
[01:46:44] shevy: aha so the discussion is at least +2 years old: https://bugs.ruby-lang.org/issues/8976
[01:47:00] eiGHttt: has joined #ruby
[01:47:03] luckyme: has joined #ruby
[01:47:09] pontiki: shevy can be our quotebot
[01:47:09] Ox0dea: It's probably even older than that.
[01:47:31] shevy: ok so the magic comment means something like that # Encoding stuff
[01:47:51] devoldmx: has joined #ruby
[01:48:54] choke: has joined #ruby
[01:48:54] shevy: ok so ... there is not much wrong with a magic comment or?
[01:49:22] dagda1: has joined #ruby
[01:49:23] Ox0dea: The magic comment is meant to ease the transition into it being the default. :/
[01:49:38] siemprefresco: has joined #ruby
[01:49:38] wldcordeiro: has joined #ruby
[01:49:57] shevy: and why will String literals become frozen by default?
[01:50:31] dopamean_: has joined #ruby
[01:51:37] Ox0dea: Mutable strings are the cause of every Ruby bug.
[01:52:06] Ox0dea: They're also the dominant contributor to the language's (lack of) speed.
[01:52:17] shevy: ok, so one reason is speed
[01:53:09] Ox0dea: I was largely being facetious, mind.
[01:53:30] siemprefresco: has joined #ruby
[01:53:58] Ox0dea: So many objects with so much metadata.
[01:54:06] pontiki: isn't that related to a huge rails performance issue with hashes?
[01:54:25] Ox0dea: HWIA saves the day!
[01:54:57] ght: Is the current version of Ruby still considered slow relative to PHP and Python?
[01:55:30] iamninja: has joined #ruby
[01:55:40] siemprefresco: has joined #ruby
[01:56:22] atomical: has joined #ruby
[01:56:26] shevy: Ox0dea HashWithIndifferentAccess should not even have to exist in the first place :(
[01:56:49] shevy: ght nah not really, the difference should be really minor. 1.8.x was slower
[01:58:09] ght: shevy: Thank you. I was just reading the same.
[01:58:15] ght: https://www.amberbit.com/blog/2014/9/9/ruby-the-bad-parts/
[01:58:20] ght: http://www.isrubyfastyet.com/
[01:58:23] ght: Those were interesting.
[01:58:44] shevy: hmm the first one has no speed comparison or?
[01:59:41] freerobby: has joined #ruby
[01:59:50] ght: Just in case your'e talking to me, from the first link:
[01:59:52] sdfgsdfg: has joined #ruby
[01:59:52] ght: "However, one might argue that it???s like comparing apples and oranges. It would be more fair to compare Ruby with another language of similar nature. A great candidate for such confrontation is Python. It???s a dynamically-typed, interpreted language, just as Ruby. In the distant, ancient times of Ruby 1.8, the faster of two languages was Python. The difference wasn???t nearly as huge as with C++, but it was there. However, the Release of version 1.9 o
[02:00:11] ght: I"m sure that was cut off, but basically it says what you said, taht Ruby was slow back in 1.8, slower than Python, but has been speeding up with each release.
[02:00:21] shevy: this jeremy evans is weird... "It needs to be painful to use libraries that don't support frozen string literals"
[02:00:45] sdfgsdfg: has joined #ruby
[02:00:48] shevy: "No library should be mutating a string they don't own as a side effect"
[02:00:57] shevy: this is no longer ruby then or?
[02:01:45] shevy: ght sorry, I am sometimes talking to myself :) the first one, the speed comparison question was indeed meant to you, he seems to only draw some connections to "if site xyz is using ruby then it can not be bad", in that speed subsection of his blog
[02:02:14] shevy: debian alioth used to have good speed comparisons
[02:02:37] shevy: no idea how useful they really are: http://benchmarksgame.alioth.debian.org/u64q/ruby.html
[02:03:14] pontiki: i wish people wouldn't use colours alone to signify different data on a graph :(
[02:04:00] shevy: ght yeah I think the speed is all fairly comparable... lua kicks all their asses hands down
[02:04:39] ramfjord: has joined #ruby
[02:06:00] wprice: has joined #ruby
[02:06:23] Motoservo: has joined #ruby
[02:06:43] dan4352: has joined #ruby
[02:07:02] Rubie: has joined #ruby
[02:07:08] Ox0dea: shevy: I agree with the bit about modifying somebody else's strings, but cf. the DHH quote.
[02:07:39] shevy: oh dear god
[02:07:54] shevy: I am sure he made better quotes
[02:08:10] Ox0dea: You're aware that it's got nothing to do with sex?
[02:08:14] pontiki: DHH lives the controversy :)
[02:08:21] sarkyniin: uh, I'm using OptionParser
[02:08:22] sarkyniin: opts.on('-U', '--update-cache', 'Update boards list cache') {create_boards_cache}
[02:08:28] sarkyniin: for some reason, this specific line doesn't work
[02:08:39] sarkyniin: gets parsed normally but the create_boards_cache function isn't executed
[02:08:43] sarkyniin: anyone knows why?
[02:08:52] rbennacer: has joined #ruby
[02:09:00] shevy: Ox0dea I am aware of how bad it is as a quote
[02:09:08] Ox0dea: It's... not, though?
[02:09:16] Ox0dea: sarkyniin: Try replacing the call with a debug print?
[02:09:40] shevy: I'll be collecting Ox0dea quotes henceforthwith!
[02:09:42] pontiki: sarkyniin: and/or chain one in
[02:09:46] sarkyniin: Ox0dea: odd... Looks like it works
[02:09:48] Ox0dea: !quote shevy
[02:09:58] Ox0dea: "Henceforthwith" is gold.
[02:10:06] shevy: <Ox0dea> What is the penalty for using -> do end?
[02:10:23] shevy: I don't have more than that one though :(
[02:10:29] pontiki: as i said, shevy is our quotebot
[02:10:36] sarkyniin: chaining a test debug after works
[02:10:43] sarkyniin: but the call does not
[02:10:46] Ox0dea: sarkyniin: Then it's likely the case that OptionParser can't see your method?
[02:10:50] sarkyniin: but it works if I execute it on a separate line
[02:10:51] Ox0dea: Are you not getting a NoMethodError?
[02:11:05] shevy: I got a good quote from sevenseacat... I'll wait until she is connected
[02:11:17] pontiki: slip a pry into create_boards_cache and trace the execution
[02:11:44] sarkyniin: yeah Ox0dea I think it's not seeing my method
[02:11:58] sarkyniin: tried to execute a puts2 command which is just a wrapper over puts
[02:12:00] sarkyniin: and it didn't work
[02:12:16] ruby-lang698: has joined #ruby
[02:13:00] Ox0dea: sarkyniin: You're invoking #parse!, yes?
[02:13:02] hmsimha__: has joined #ruby
[02:13:07] sarkyniin: yeah Ox0dea
[02:13:11] Ox0dea: Very strange.
[02:13:23] sarkyniin: http://hastebin.com/raw/ugifuderuc
[02:13:30] sarkyniin: this is the full optionparser block
[02:13:33] user1138: has joined #ruby
[02:14:22] Ox0dea: sarkyniin: Works fine here?
[02:14:59] ngscheur1: has joined #ruby
[02:15:06] howdoicomputer: has joined #ruby
[02:15:10] _blizzy_: has joined #ruby
[02:16:12] fulgore_: has joined #ruby
[02:16:21] tmtwd: has joined #ruby
[02:17:40] sarkyniin: Ox0dea: looks like it executes
[02:17:48] sarkyniin: the issue seems to come from my verbose output code
[02:18:05] sarkyniin: I should put the option last
[02:18:15] sarkyniin: so the verbose switch
[02:18:22] sarkyniin: will activate before the command
[02:18:32] siemprefresco: has joined #ruby
[02:18:42] freerobby: has joined #ruby
[02:19:05] sarkyniin: Ugh. When I place the flag first
[02:19:11] sarkyniin: it won't show the verbose messages
[02:19:16] sarkyniin: but if I place it last when invoking the command
[02:19:19] sarkyniin: it'll show them
[02:20:27] howdoicomputer: has joined #ruby
[02:20:42] Ox0dea: sarkyniin: Consider just setting an option on `-U`.
[02:21:23] siemprefresco: has joined #ruby
[02:21:26] Ox0dea: Then invoke `create_boards_cache` accordingly after you've parsed the command line.
[02:21:28] sarkyniin: Ox0dea: oh yea that works
[02:21:47] Ox0dea: You're advised not to "do too much" during option parsing.
[02:22:03] christiandsg: has joined #ruby
[02:22:30] shevy: I will take the world while parsing my options.
[02:22:37] Ox0dea: s/take/stop/
[02:22:43] dan4352: has joined #ruby
[02:23:08] shevy: However, one day I really need to start to use alternatives to optionparser... I am still using it :\
[02:23:34] Ox0dea: shevy: Your sentences have gotten... fancier?
[02:23:44] nerdoncall: has joined #ruby
[02:23:55] shevy: yeah a lot better
[02:24:02] Ox0dea: I approve. :)
[02:24:20] Ox0dea: I only noticed on account of your having called me out on it before.
[02:24:20] shevy: there is a reason you picked the O as the first character
[02:24:22] shevy: O in Oracle
[02:24:29] Ox0dea: Aye, the fates did conspire.
[02:24:31] shevy: there would not be an 0racle
[02:24:47] Aeyrix: 0 is an invalid first character for nicknames on IRC.
[02:24:53] shevy: he has to rub it in!!!
[02:25:10] shevy: I think I once fell to that /j #0 thing too
[02:25:12] Aeyrix: Allegedly due to the fact that each user has a numeric ID
[02:25:19] shevy: something is odd with 0
[02:25:20] Aeyrix: I'd call that bad fucking design if you can't differentiate
[02:25:26] Aeyrix: JOIN 0 is actually in the RFC.
[02:25:38] siempref_: has joined #ruby
[02:25:58] Aeyrix: RFC2812 IIRC
[02:26:24] Aeyrix: https://tools.ietf.org/html/rfc2812#section-3.2.1
[02:26:54] siempref_: has joined #ruby
[02:27:32] houhoulis: has joined #ruby
[02:28:16] Ox0dea: Aeyrix: But why should that prevent nicks leading with digits?
[02:29:08] Aeyrix: <Aeyrix> Allegedly due to the fact that each user has a numeric ID
[02:29:13] Aeyrix: (It is, each user does have a numeric)
[02:29:23] Aeyrix: <Aeyrix> I'd call that bad fucking design if you can't differentiate
[02:29:41] Aeyrix: (it is bad design, I wrote an IRCd that allowed entirely numeric nicks if you wished)
[02:29:41] Ox0dea: Right, so why not just disallow completely numeric nicks?
[02:29:50] Aeyrix: Because the original implementation was shit.
[02:30:14] Aeyrix: Everyone else had to copy that implementation, otherwise they'd risk delinking when they did something "wrong".
[02:30:16] yeticry: has joined #ruby
[02:30:59] Hanmac: has joined #ruby
[02:31:28] riotjones: has joined #ruby
[02:31:44] _aeris_: has joined #ruby
[02:31:47] Ox0dea: So... how do we go back and fix that?
[02:31:57] Coraline: Time machine
[02:32:18] christiandsg: has joined #ruby
[02:32:20] pontiki: ++ Coraline
[02:32:28] Frem: has joined #ruby
[02:32:33] pontiki: call The Doctor
[02:32:43] mary5030: has joined #ruby
[02:32:50] Ox0dea: pontiki: That's Haskell's concatenation operator.
[02:33:16] pontiki: so what? this isn't #haskell
[02:33:23] Ox0dea: No? Whoops.
[02:33:30] Torrieri: has joined #ruby
[02:33:46] Torrieri: has joined #ruby
[02:34:07] shevy: good old IRC
[02:34:19] shevy: where wisdom is exchanged
[02:35:09] pontiki: or, if not wisdom, quips and puns
[02:35:27] pontiki: it's improv, alla time
[02:36:39] craysiii: has joined #ruby
[02:39:09] wprice: has joined #ruby
[02:39:31] user1138_: has joined #ruby
[02:39:37] chipotle: has joined #ruby
[02:39:59] clinton: has joined #ruby
[02:40:46] IrishGringo: has joined #ruby
[02:40:47] inteq: has joined #ruby
[02:41:02] rbennacer: has joined #ruby
[02:41:07] Ox0dea: What's the cleanest way to make `exec "ruby #$0"` not go forever?
[02:41:11] Asher: has joined #ruby
[02:41:26] Ox0dea: Ideally without introducing any variables.
[02:42:11] ght: So we just landed our first cross-platform mobile app client, and considering all the work we do in ruby and RoR, I was considering using RubyMotion for the app development.
[02:42:25] ght: Any of you guys work with RubyMotion much for cross-platform app dev? The app isn't very complicated.
[02:42:32] pipework: Ox0dea: Acquire pid, write pid to file with timestamp, kill after n times have passed
[02:43:07] ght: Anyone here have any general thoughts or feedback on RubyMotion? Any professional experience utilizing it?
[02:43:13] greencoder: has joined #ruby
[02:43:25] greencoder: Is there any way to shorten this line of code: @theme_name = @theme_name.split.map(&:capitalize).join(' ')!
[02:43:30] pipework: Neither. I don't support their model.
[02:43:35] greencoder: oops ignore the ! at the end
[02:43:35] ruby-lang867: has joined #ruby
[02:43:51] ght: pipework: Thank you for the feedback, care to elaborate?
[02:43:55] ght: You don't support their model? What do you mean?
[02:44:25] ght: On one hand, it looks nice on the surface, on the other I notice the community isn't massive, which is a little disconcerting, we like a large, active community when possible.
[02:44:34] pipework: ght: The last time I looked, I had to pay to develop with it.
[02:44:35] ght: Which is why Rails was attractive.
[02:44:39] ght: pipework: You do, yes.
[02:44:42] ght: So that's the issue?
[02:44:51] pipework: It's why I didn't look any further into it.
[02:44:57] pipework: I don't know how fantastic it is.
[02:44:58] ght: I see, thank you.
[02:45:33] shevy: Ox0dea I still haven't understood the discussion between mutable versus non-mutable
[02:45:59] shevy: I have however started to read why python is using immutable strings: http://stackoverflow.com/questions/8680080/why-are-python-strings-immutable-best-practices-for-using-them
[02:46:55] Ox0dea: ght: You might consider getting $thing running on JRuby to release an Android MVP.
[02:47:44] Ox0dea: >> 'foo bar baz'.gsub /\b./, &:upcase # greencoder
[02:47:45] ruboto: Ox0dea # => "Foo Bar Baz" (https://eval.in/421690)
[02:47:45] ght: hmm, ok.
[02:48:02] ght: Ox0dea: Do you have or does anyone you know have experience with RubyMotion/
[02:48:10] Ox0dea: I'm afraid I don't.
[02:48:17] ght: No worries, thank you.
[02:48:23] Ox0dea: Sure thing.
[02:48:41] Ox0dea: Ruby is unlikely to become a popular choice for app development any time soon. :/
[02:48:49] greencoder: Ox0dea: I meant is there a way that I don't have to repeat the @theme_name twice in the expression?
[02:48:51] greencoder: I know Ruby has the ! operator but I don't think I can use it in this case
[02:49:15] Ox0dea: greencoder: Note well the difference between the ! operator and "bang methods".
[02:49:38] pipework: greencoder: gsun!
[02:49:44] Ox0dea: greencoder: You can't turn a String into an Array and back again without reassignment, no.
[02:49:48] pipework: If you don't mind modifying the string in place.
[02:49:50] txdv_: has joined #ruby
[02:50:04] greencoder: Ox0dea: Yeah, and alright thanks for the tip!
[02:50:09] Ox0dea: No worries.
[02:50:23] msnyon: has joined #ruby
[02:50:38] Ox0dea: greencoder: Are you not allowed to use regular expressions? :P
[02:51:33] christiandsg: has joined #ruby
[02:51:37] greencoder: Ox0dea: Nah I can use it lol. I was just wondering if there was a way around reassignment. I'm prob gonna go with that method you showed me, thanks a lot
[02:51:54] Spami_: has joined #ruby
[02:52:01] Ox0dea: Fantastique.
[02:52:23] Ox0dea: Note well that upcasing the first letter isn't quite the same as #capitalize, but I suspect the difference to be irrelevant for your purpose here.
[02:52:55] pipework: #titleize from Activesupport?
[02:53:35] chipotle: has joined #ruby
[02:53:40] Ox0dea: greencoder: For what it's worth, you *can* change the class of an object in-place with Fiddle, but then the data at that memory location becomes gibberish.
[02:53:49] Ox0dea: Unless you use Fiddle to modify the memory as well. :)
[02:53:58] Ox0dea: But that's devious and likely to get a few kittens killed.
[02:54:30] dopie: has joined #ruby
[02:54:35] greencoder: I shall stray away from that path then
[02:54:40] Ox0dea: Wisdom, that.
[02:54:45] ebbflowgo: has joined #ruby
[02:56:54] Ox0dea: Scary shit: https://eval.in/421691
[02:57:17] stardiviner: has joined #ruby
[02:57:49] shevy: Ox0dea hmm they propose that people have to use .dup all the time?
[02:57:57] iateadonut: has joined #ruby
[02:58:22] Ox0dea: shevy: Well, whenever they want an explicitly mutable string, yes.
[02:58:33] Ox0dea: It's pretty GitHub, in my opinion.
[02:58:40] dopieee: has joined #ruby
[02:58:54] shevy: that is a huge change isn't it?
[02:59:42] baweaver: has joined #ruby
[02:59:50] kies: has joined #ruby
[03:00:45] christiandsg: has joined #ruby
[03:02:50] rushed: has joined #ruby
[03:04:02] postmodern: has joined #ruby
[03:05:55] roolo: has joined #ruby
[03:06:14] choke: has joined #ruby
[03:06:47] jhack32: has joined #ruby
[03:07:55] zenguy_pc: has joined #ruby
[03:07:58] al2o3-cr: >> 0.25 / 0.25
[03:07:59] ruboto: al2o3-cr # => 1.0 (https://eval.in/421694)
[03:08:46] Ox0dea: How can quarters be real if monies aren't real?
[03:08:49] sudiptamondal: has joined #ruby
[03:09:12] al2o3-cr: How did guess?
[03:10:28] shevy: Ox0dea perl strings are immutable?
[03:10:41] al2o3-cr: so are symbold
[03:10:45] al2o3-cr: so are symbols
[03:11:05] Ox0dea: ACTION removes "I'm a search engine" hat
[03:11:15] shevy: you know a lot of stuff
[03:11:38] al2o3-cr: shevy: so do you
[03:12:05] dagda1: has joined #ruby
[03:12:26] shevy: I know less
[03:13:17] northfurr: has joined #ruby
[03:13:23] braincrash: has joined #ruby
[03:13:31] Ox0dea: http://i.imgur.com/wIKk90g.jpg
[03:14:16] Ox0dea: I like `.=`.
[03:14:22] Ox0dea: Ruby should have it.
[03:14:31] Ox0dea: So should C, mind.
[03:14:56] shevy: you can't have a discussion with Ox0dea al2o3-cr
[03:15:09] al2o3-cr: shevy: how come?
[03:15:20] shevy: ^^^ look at the result!
[03:15:22] Ox0dea: al2o3-cr: Well, C should have `->=` for sexy list walking.
[03:15:51] luckyme: has joined #ruby
[03:16:00] Ox0dea: But we should be able to say `foo .= split` in Ruby, I feel.
[03:16:01] al2o3-cr: Ruby don't no more shit
[03:16:27] Ox0dea: You seem ill-prepared for 3.0.
[03:16:54] al2o3-cr: why you say that Mr.
[03:17:03] pipework: ruby gon do more shit
[03:17:09] Ox0dea: Many more shit.
[03:17:14] Ox0dea: al2o3-cr: I prefer Xr., thank you.
[03:17:33] al2o3-cr: Ox0dea: Xr.
[03:17:55] Ox0dea: Danke sch??ne.
[03:17:57] al2o3-cr: long way of yet
[03:18:27] Ox0dea: You reckon?
[03:18:42] Ox0dea: Python will be at 3.5 when 2.3 comes out; that's >1.5x better!
[03:18:45] Ox0dea: Can't be havin' that.
[03:19:03] al2o3-cr: your opinion fool
[03:19:18] Ox0dea: Do you even multiplication?!
[03:19:33] al2o3-cr: seems you don't
[03:19:41] Ox0dea: >> 3.5 / 2.3 > 1.5
[03:19:42] ruboto: Ox0dea # => true (https://eval.in/421695)
[03:19:51] Ox0dea: Up your arithmetism, fool.
[03:21:30] christiandsg: has joined #ruby
[03:22:03] al2o3-cr: Ox0dea: jeez
[03:23:00] al2o3-cr: Ox0dea: You might want to that to some use!
[03:23:19] Meeh: has joined #ruby
[03:23:21] Ox0dea: I'm gonna need a translator.
[03:23:47] al2o3-cr: Ox0dea: you read very clear
[03:24:07] netz: has joined #ruby
[03:24:12] netz: hallo o/
[03:24:46] netz: anyone care to point me at a good regex guide/tech spec/etc in pdf format I can load on my android and read on break at work?
[03:25:05] ruboto: netz, We can't help you without your code, please post it to https://gist.github.com
[03:25:30] netz: no code yet. I don't really know regex but I get the feeling I need it for a project I'm cooking in my head.
[03:25:34] darwingr: has joined #ruby
[03:25:58] netz: are regex's more or less the same in every language, aside from the language specific syntax?
[03:26:10] al2o3-cr: netz: similar
[03:26:16] bougyman: sometimes similar
[03:26:30] pipework: netz: Ruby's regex isn't standard and doesn't support everything.
[03:27:01] netz: so what scripting language would you suggest that is standard and supports most everything?
[03:27:11] bougyman: loaded question
[03:27:17] bougyman: pcre is used in a ton of things.
[03:27:37] eggoez: has joined #ruby
[03:27:38] yatish27: has joined #ruby
[03:27:40] netz: I found a site txt2re.com or the like that can generate them for you based on a text sample, but I'd rather learn how to actually do it
[03:27:48] bougyman: Which is the exported perl compatible regular expressions.
[03:28:05] netz: ooo nifty, I've always wanted a reason to learn perl :)
[03:28:09] bougyman: there's a book called Mastering Regular Expressions that's worth a read if you really want to learn regex.
[03:28:17] grenierm: has joined #ruby
[03:28:17] bougyman: tons of online resources, too, of course.
[03:28:18] ght: At some point I need to sit down and memorize regex.
[03:28:25] pontiki: really good book, bougyman
[03:28:27] bougyman: regex isn't something to memorize.
[03:28:49] Torrieri: has joined #ruby
[03:28:49] Torrieri: has joined #ruby
[03:29:03] netz: true to what, something to not memorize?
[03:29:38] al2o3-cr: ask Mr 110111101010
[03:29:43] Ox0dea: Hey, that's me!
[03:29:50] pontiki: most regexp syntax can certainly be memorized; must like any other language syntax
[03:29:52] bougyman: the more I learned regular expressions, the less I found myself using them in code.
[03:30:01] pontiki: but the more advanced uses i still look up
[03:30:20] bougyman: memorizing the syntax, sure.
[03:30:21] Ox0dea: pontiki: How many \p{} groups do you know? :)
[03:30:23] netz: I get the feeling this project is going to need lots of regular expresions :P
[03:30:27] pontiki: almost none
[03:30:36] bougyman: netz: theyn you're probably doing it wrong.
[03:30:52] bougyman: pontiki: do you know all the [[:alpha:]] variants of character classes?
[03:31:19] Ox0dea: bougyman: They're basically all the ones from ctype.h, no?
[03:31:28] modern: has joined #ruby
[03:31:28] modern: has joined #ruby
[03:31:29] pipework: I'm fond of removing regular expressions from codebases unless they make heavy use of Regexp.union
[03:31:32] pontiki: i know alpha, alnum, punct, space, digit off the top
[03:32:01] netz: basic idea is a bit of reverse engineering (how the hell do you spell that... never get it right) automation. I have say a binary foo; and i have partial source code to that binary, so I'd disassemble foo and compare it to the disassembly of the object files, hopefully in a semi-automated fashion
[03:32:13] pontiki: but when i go look at the regexp in the URI module i am deeply humbled
[03:32:15] riotjones: has joined #ruby
[03:32:40] pipework: pontiki: It's a lot easier to be humble when you're intimidated as fuck.
[03:32:57] pontiki: idk; i don't feel intimidated by them...
[03:33:14] bougyman: when I see a big bad regex I just run it through a little awk I have that turns it into pretty /x mode.
[03:33:17] bougyman: then I comment it.
[03:33:24] al2o3-cr: `resolv` as got the best ipv4/6 regex
[03:33:36] pipework: pontiki: You are a sturdier chum than I.
[03:33:48] pontiki: pipework: YEARS of perl
[03:34:12] pipework: pontiki: Regular expressions just feel like two-way puzzles. "How does it work? What the fuck is it really for?"
[03:34:15] Cache_Money: has joined #ruby
[03:34:30] pontiki: they are sorta that; write only code
[03:34:50] bougyman: what is it for? to confuse anyone who comes after you.
[03:35:03] clarkenciel: has joined #ruby
[03:35:34] pontiki: in ruby, i find i use them hardly at all
[03:35:50] pontiki: or i find i use really really simple ones in conjunction with better ruby methods
[03:36:28] bougyman: if you really want job security, use a lot of /(?<var>fo+)/ =~ 'foobar'; p var
[03:36:39] pipework: pontiki: I make larger more complex ones by using lots of Regexp.union and comments.
[03:36:52] Motoservo: has joined #ruby
[03:37:32] bougyman: it is nice to combine snippets with union when a monster is needed/warranted.
[03:38:12] pontiki: i will explore union more; i haven't really looked at it at all
[03:38:33] wuapo: has joined #ruby
[03:39:25] al2o3-cr: >> require 'resolv'; Resolv::IPv4::Regex.match('0.0.0.0') ? true : false
[03:39:25] pontiki: i find this in code i've picked up a lot: /(http|https)/ which makes me cringe
[03:39:26] ruboto: al2o3-cr # => true (https://eval.in/421698)
[03:39:30] lessless: has joined #ruby
[03:39:53] wuapo: does ruby support http2 protocol?
[03:40:00] Ox0dea: >> require 'uri'; URI::RFC2396_Parser.new.make_regexp.source.size
[03:40:01] ruboto: Ox0dea # => 1440 (https://eval.in/421699)
[03:40:02] wuapo: lol i just mean http2
[03:40:12] pipework: wuapo: Ruby doesn't, there are gems that implement http2 though
[03:40:19] Ox0dea: That result is a little disingenuous, but #source doesn't take a "squash" parameter (like it ought to).
[03:40:47] pipework: wuapo: Have you looked? What did you try? Did it work? Why didn't it? What happened when you tried?
[03:40:49] Rubie: has joined #ruby
[03:40:55] bougyman: pontiki: people who haven't read MRE or similar don't understand how expensive alternation is.
[03:41:33] al2o3-cr: fast enough
[03:41:49] bougyman: my son's taking a finite automata course this semester.
[03:41:55] bougyman: his mind is currently being blown.
[03:42:44] al2o3-cr: academic knowledge gets you know where
[03:43:02] CloCkWeRX: has joined #ruby
[03:43:06] bougyman: he does a lot more outside of school than in, from what i've seen.
[03:43:16] pipework: al2o3-cr: All knowledge is academic if you learn it.
[03:43:33] pontiki: no learning is wasted
[03:43:34] bougyman: getting the fundamentals in a structured way isn't a bad thing.
[03:43:45] bougyman: boring, perhaps.
[03:43:47] bougyman: but not had.
[03:44:24] al2o3-cr: pipework: yeah, but where does common sense go?
[03:44:35] pipework: al2o3-cr: out the door when you're on the internet, it seems.
[03:46:16] failshell: has joined #ruby
[03:46:26] khebbie: has joined #ruby
[03:46:59] darkf: has joined #ruby
[03:48:22] xcode: has joined #ruby
[03:48:35] devoldmx: has joined #ruby
[03:48:55] yarb: has joined #ruby
[03:50:21] al2o3-cr: my common sense (vanished)
[03:50:46] luckyme: has joined #ruby
[03:51:37] Musashi007: has joined #ruby
[03:52:07] wuapo: has left #ruby: ()
[03:52:52] al2o3-cr: why doesn't shevy play hangman
[03:53:43] christiandsg: has joined #ruby
[03:54:02] h4ckurate: has joined #ruby
[03:54:35] howdoi: has joined #ruby
[03:54:43] pontiki: i give up, why not?
[03:56:26] iamninja: has joined #ruby
[03:56:40] Motoservo: has joined #ruby
[03:57:09] n_blownapart: has joined #ruby
[03:57:35] al2o3-cr: pontiki: no one knows the answer to that
[03:59:40] Oog: has joined #ruby
[04:00:14] pawnbox: has joined #ruby
[04:00:31] shevy: al2o3-cr it's a unicode hangman :(
[04:00:40] shevy: al2o3-cr they play it on purpose when I arrive :(((
[04:01:15] al2o3-cr: shevy: That's a good thing. Isn't it?
[04:01:58] shevy: it is not required
[04:02:19] al2o3-cr: shevy: okay dokay
[04:02:38] shevy: we need .. A B C ... Z ... a b c ... z
[04:02:51] Musashi007: has joined #ruby
[04:02:55] shevy: if it is in german then we need german umlauts
[04:03:08] netz: heh, umlauts
[04:03:20] shevy: netz yeah they annoy me!
[04:03:22] rushed: has joined #ruby
[04:03:23] al2o3-cr: Whoa, stop the bus.
[04:03:35] netz: ACTION reminds himself to to re-setup his compose key on this laptop
[04:03:43] solocshaw: has joined #ruby
[04:03:46] shevy: I had a problem displaying an image with an umlaut in the filename recently
[04:03:59] shevy: in an URL :)
[04:04:12] netz: shevy: good to see you again man. anywho, gotta go, thanks for the infos all :)
[04:04:59] al2o3-cr: shevy: Why you never in #ruby-offtopic?
[04:04:59] dgutierrez1287: has joined #ruby
[04:05:15] pipework: al2o3-cr: He sticks it to the man in his own ways.
[04:05:15] pontiki: shevers is always ON TOPIC
[04:06:00] shevy: al2o3-cr I told you they start hangman unicode there!
[04:06:20] al2o3-cr: I am mighty upset shevy
[04:06:32] al2o3-cr: pontiki: heh
[04:06:46] al2o3-cr: pipework: true :D
[04:09:40] ebbflowgo: has left #ruby: ()
[04:10:45] al2o3-cr: %rb "\u2603"
[04:10:46] yarb: al2o3-cr: "\u2603" @ http://carc.in/#/r/cq7
[04:11:26] bruno-: has joined #ruby
[04:12:01] astrobunny: has joined #ruby
[04:12:59] al2o3-cr: shevy: I understand :(
[04:14:29] hectortrope: has joined #ruby
[04:14:30] rbowlby: has joined #ruby
[04:15:06] braincra-: has joined #ruby
[04:15:18] hyy1: has joined #ruby
[04:15:33] Ropeney: has joined #ruby
[04:15:51] Ox0dea: yarb: Who's your daddy?
[04:16:01] pipework: Please resist this social engineering attempt.
[04:16:08] pipework: Tell him the name of your favorite pet instead!
[04:16:16] al2o3-cr: Who's your father?
[04:16:27] shevy: My favourite pet is Claus the labrador
[04:16:54] pipework: My security question answers are generated by a password generator.
[04:17:23] pipework: Evidently my first car is vwbz7Fy]2DLKRQkUYjh7$dWDAaPGyzFbjE#6gXsjjdewweW2xX
[04:17:40] dopie: has joined #ruby
[04:17:41] Ox0dea: I just run my otherwise sensible answers through a Zalgo generator.
[04:17:52] Ox0dea: Gotta be careful to uncheck the randomness option, though.
[04:19:00] pontiki: i remember those, what year, pipework ?
[04:19:11] dagda1: has joined #ruby
[04:19:30] pipework: pontiki: dfozDJqdGK,[vBGZUEbDG7akUuno*3YukwTNd8PzFx7DFecg7d according to my records.
[04:19:31] pipework: A fine year.
[04:19:47] pontiki: hard to get parts for them now, tho
[04:20:07] al2o3-cr: That's so many letters.
[04:20:09] pipework: pontiki: Yeah, my qFdngYNL3iaqGtBW%isbXv9xDZTJsKh3#+8i3kCsyZXFyMFidK broke last o4NDj2KyLwHNRUy#ovVP2oiX>pH9XbkoWevDNqdqEewt%EL3eu
[04:20:35] pipework: It was a {)(TN;k;JWMG/}VRhr2MXnyumAhgUNX=3Xp#kJLR&4jDUrPqRp in the KH>MjzLFrPHMcYU,]zoKsg8Mht]U/nsiw2UaJJoiKf]%in(}[4 to get fixed.
[04:20:39] pontiki: they got bought out by BSrHB9u7HRAW4DYID6LKGRU7sPLo1jnI76ujDW8Ao0OPj2L4UOzEzKZyYFGuCCEOFTla2URoVBC8w6qyROG5CS4FkotgN
[04:20:43] pipework: pontiki: No shit?
[04:20:48] banjara: has joined #ruby
[04:21:07] pipework: That explains the A+}H^8i;H}RaV;MHPfgZTQopDh=F@3fNjK9jfTWC$.vhWrsyTP
[04:21:21] Maletor: has joined #ruby
[04:21:21] pipework: pontiki: pls2refer http://threeletter.agency/
[04:21:33] kies^: has joined #ruby
[04:22:32] pontiki: this is precious: http://threeletter.agency/xkeyscore.js
[04:23:11] pipework: pontiki: I can do you one better: http://join.xkeyscore.club/
[04:23:32] yfeldblum: has joined #ruby
[04:23:57] towski_: has joined #ruby
[04:24:07] pipework: pontiki: I've been thinking that I should name my gems with a random uuid generated from an offline-only machine and then register domains with that uuid.
[04:24:34] pipework: No more caring about if the gem name is taken.
[04:25:41] pontiki: you might be mistaken for a russion cracker
[04:25:42] al2o3-cr: what's my password?
[04:25:47] al2o3-cr: foo:$6$fxVKLGlf$9iccJ5yexyRB7jaQif1Ph6xPRFncuyfXBZ2x2VRVqfG.CxmP88f3n/7Q6M.8yJ9XLeUTaw51DNHJIzWixtqdm.:16672:0:99999:7:::
[04:25:55] pipework: al2o3-cr: hunter2
[04:26:25] pontiki: bbbut, that's *my* password!!
[04:26:46] al2o3-cr: first one to get it ??10
[04:26:46] shevy: @cops.flat_map(&:offenses)
[04:26:52] pipework: Everyone knows you can't have the same password as someone else.
[04:27:01] diego1: has joined #ruby
[04:28:57] pontiki: this is just so cool: http://blog.tamouse.org/science/2015/08/24/video-uranium-in-a-bubble-chamber/
[04:29:24] pontiki: i mean the video clip. the blog is this boring person who never has anything to say
[04:29:36] al2o3-cr: jtr/hashcat?
[04:30:23] ReK2: has joined #ruby
[04:30:23] ReK2: has joined #ruby
[04:30:42] codecop: has joined #ruby
[04:30:47] solocshaw: has joined #ruby
[04:32:04] Oog: has joined #ruby
[04:33:01] riotjones: has joined #ruby
[04:33:05] devoldmx: has joined #ruby
[04:33:12] al2o3-cr: rhymes with glueless
[04:33:54] pipework: screwless? brewless? trueless?
[04:34:16] al2o3-cr: pipework: so close :D
[04:34:17] solocshaw: has joined #ruby
[04:39:50] dagda1: has joined #ruby
[04:40:02] MuffinPimp: has joined #ruby
[04:40:43] sdwrage: has joined #ruby
[04:42:32] diego1: has joined #ruby
[04:43:46] solocshaw: has joined #ruby
[04:44:10] RobertBirnie: has joined #ruby
[04:46:34] RobertBirnie: has joined #ruby
[04:46:58] rickmasta: has joined #ruby
[04:47:14] lessless: has joined #ruby
[04:48:21] shevy: al2o3-cr don't you have anything to code :D
[04:48:53] rushed: has joined #ruby
[04:49:35] ohaibbq: has joined #ruby
[04:49:57] user1138_: has joined #ruby
[04:50:19] choke: has joined #ruby
[04:50:34] al2o3-cr: shevy: No, not really.
[04:51:40] al2o3-cr: shevy: Don't forget, I do this for a hobby of mine :)
[04:54:01] roolo: has joined #ruby
[04:54:19] al2o3-cr: I couldn't code for a living. I would go nuts for real. :P
[04:54:25] Oog: has joined #ruby
[04:55:03] Ox0dea: al2o3-cr: https://www.youtube.com/watch?v=nxdCzlZhrsI
[04:55:20] shevy: al2o3-cr same here
[04:55:43] al2o3-cr: Ox0dea: Nice.
[04:56:09] howdoicomputer: has joined #ruby
[04:56:24] mleung: has joined #ruby
[04:56:45] Ox0dea: al2o3-cr: http://i.imgur.com/b99Dmvy.jpg
[04:57:42] abuzze: has joined #ruby
[04:57:56] al2o3-cr: Ox0dea: I wish I has it in me
[04:58:07] Ox0dea: You can has!
[04:58:10] skade: has joined #ruby
[04:59:01] al2o3-cr: I like coding... to an extent
[04:59:08] abuzze_: has joined #ruby
[04:59:41] al2o3-cr: But just not for me.
[05:00:07] ecnalyr: has joined #ruby
[05:00:42] al2o3-cr: I don't take it serious enough to become anything.
[05:02:14] al2o3-cr: It's just a bit of fun to me
[05:02:38] pipework: Taking yourself seriously is seriously the beginning of the end.
[05:03:07] al2o3-cr: pipework: It's not, trust me :)
[05:03:09] rakm: has joined #ruby
[05:03:15] pipework: al2o3-cr: You're far too gone.
[05:03:29] pawnbox: has joined #ruby
[05:03:43] arooni-mobile: has joined #ruby
[05:04:00] AlexRussia_: has joined #ruby
[05:04:05] Ox0dea: s/(far) (too)/\2 \1/, I reckon.
[05:04:12] al2o3-cr: C is the only LANG you really need tbh
[05:04:22] Ox0dea: Now you're just being silly.
[05:04:26] Ox0dea: Merely perform the action!
[05:04:33] al2o3-cr: No, not at all
[05:06:28] jenrzzz: has joined #ruby
[05:06:32] al2o3-cr: If you can truely comprehend C (scripting languages should be a breeze)
[05:07:41] pawnbox: has joined #ruby
[05:07:44] zenguy_pc: has joined #ruby
[05:08:55] pragmatism: has joined #ruby
[05:09:06] al2o3-cr: Anybody can be anybody on the interwebs :p
[05:10:06] kies: has joined #ruby
[05:11:49] christiandsg: has joined #ruby
[05:12:02] al2o3-cr: "IWtpbGw=".unpack('m0')[0]
[05:12:06] al2o3-cr: >> "IWtpbGw=".unpack('m0')[0]
[05:12:07] ruboto: al2o3-cr # => "!kill" (https://eval.in/421778)
[05:12:08] yarb: al2o3-cr: "!kill" - more at https://eval.in/421779
[05:13:04] pawnbox: has joined #ruby
[05:14:51] yarb: The rats are running! quick, everybody leave!
[05:14:51] leat: has joined #ruby
[05:15:45] mary5030_: has joined #ruby
[05:17:08] amystephen: has joined #ruby
[05:20:29] dhjondoh: has joined #ruby
[05:20:32] araujo: has joined #ruby
[05:23:50] TvL2386: has joined #ruby
[05:23:58] h4ckurate: has joined #ruby
[05:23:58] michael_mbp: has joined #ruby
[05:24:33] aganov: has joined #ruby
[05:26:23] ICantCook: has joined #ruby
[05:27:57] riotjones: has joined #ruby
[05:28:42] mburns: has joined #ruby
[05:29:48] blueOxigen: has joined #ruby
[05:29:56] jeadre: has joined #ruby
[05:31:14] towski_: has joined #ruby
[05:32:02] dc: has joined #ruby
[05:32:43] tagrudev: has joined #ruby
[05:32:55] keen___________2: has joined #ruby
[05:35:48] araujo: has joined #ruby
[05:37:03] sevenseacat: has joined #ruby
[05:37:29] djbkd_: has joined #ruby
[05:38:40] ecnalyr: has joined #ruby
[05:38:49] dagda1: has joined #ruby
[05:39:33] cornerma1: has joined #ruby
[05:39:37] dopamean_: has joined #ruby
[05:40:12] Ox0dea: >> require 'digest/bubblebabble'; Digest.bubblebabble 'what even is this?'
[05:40:13] ruboto: Ox0dea # => "xitok-memil-gomyk-hytyk-harad-bapil-fymal-gapak-nesif-zuxex" (https://eval.in/421793)
[05:45:52] hololeap: has joined #ruby
[05:47:20] failshell: has joined #ruby
[05:48:18] armyriad: has joined #ruby
[05:53:41] ramfjord: has joined #ruby
[05:53:50] krz: has joined #ruby
[05:54:40] leat: has joined #ruby
[05:56:17] last_staff: has joined #ruby
[05:56:59] howdoicomputer: has joined #ruby
[05:57:17] iamninja: has joined #ruby
[06:00:10] darkf_: has joined #ruby
[06:00:21] bestbrents: has joined #ruby
[06:01:57] roolo: has joined #ruby
[06:03:07] abuzze: has joined #ruby
[06:03:45] abuzze: has joined #ruby
[06:04:37] stardiviner: has joined #ruby
[06:04:54] leat: has joined #ruby
[06:04:57] DoubleMalt: has joined #ruby
[06:05:19] psye: has joined #ruby
[06:06:20] yardenbar: has joined #ruby
[06:06:24] psye: has joined #ruby
[06:07:30] hs366: has joined #ruby
[06:07:49] ferhaty: has joined #ruby
[06:09:35] user1138_: has joined #ruby
[06:10:42] darkf__: has joined #ruby
[06:10:45] bestbrents_: has joined #ruby
[06:11:30] pencilcheck: has joined #ruby
[06:11:57] Gnomethrower: has joined #ruby
[06:11:57] Gnomethrower: has joined #ruby
[06:12:33] bruno-: has joined #ruby
[06:13:16] christiandsg: has joined #ruby
[06:14:04] crdpink2: has joined #ruby
[06:14:42] pizzaops: has joined #ruby
[06:14:45] nyandoge: has joined #ruby
[06:14:48] jlyndon: has joined #ruby
[06:14:48] alxndr: has joined #ruby
[06:14:50] glowcoil: has joined #ruby
[06:14:54] user1138: has joined #ruby
[06:14:55] Eleeleth: has joined #ruby
[06:15:05] danzilio: has joined #ruby
[06:15:15] jpinnix______: has joined #ruby
[06:15:32] PhilK: has joined #ruby
[06:15:32] jevs: has joined #ruby
[06:15:34] zipkid: has joined #ruby
[06:15:46] bttf: has joined #ruby
[06:15:47] jeregrine: has joined #ruby
[06:15:48] ELCALOR: has joined #ruby
[06:16:11] abuzze_: has joined #ruby
[06:16:19] jonee: has joined #ruby
[06:16:32] frode15243: has joined #ruby
[06:16:58] hahuang61: has joined #ruby
[06:17:09] djbender: has joined #ruby
[06:17:35] frankS2: has joined #ruby
[06:17:39] hashrocket: has joined #ruby
[06:17:40] Stan: has joined #ruby
[06:17:59] countryHick: has joined #ruby
[06:18:08] cbetta: has joined #ruby
[06:18:11] jmhmccr: has joined #ruby
[06:18:12] knowtheory: has joined #ruby
[06:18:22] wookiehangover: has joined #ruby
[06:18:42] mjmac: has joined #ruby
[06:19:04] nullwarp: has joined #ruby
[06:19:46] C1V0: has joined #ruby
[06:19:48] segmond: has joined #ruby
[06:21:42] aibo: has joined #ruby
[06:21:49] fullofcaffeine: has joined #ruby
[06:24:34] lxsameer: has joined #ruby
[06:26:04] ggherdov: has joined #ruby
[06:26:19] mary5030: has joined #ruby
[06:27:51] acke: has joined #ruby
[06:28:05] fullofcaffeine: has joined #ruby
[06:28:17] tonios57: has joined #ruby
[06:29:10] fullofcaffeine: has joined #ruby
[06:31:06] demonlove: has joined #ruby
[06:31:48] ruurd: has joined #ruby
[06:31:57] dgutierrez1287: has joined #ruby
[06:36:11] cbetta: has joined #ruby
[06:37:12] ChanServ: -b agent_white!*@*
[06:39:01] agent_white: has joined #ruby
[06:39:01] ChanServ: +b *!*@unaffiliated/agent-white/x-6197888
[06:39:01] ChanServ: ChanServ kicked agent_white: You tried hard. Congrats, you got your wish.
[06:40:28] dented42: has joined #ruby
[06:42:02] apeiros: -b agent_white!*@*
[06:43:03] apeiros: -b *!*@unaffiliated/agent-white/x-6197888
[06:43:16] Radar: Ox0dea: how
[06:43:30] Radar: Actually never mind, you were probably religiously meditating on the Ruby source or some shit
[06:44:04] Radar: http://wiki.yak.net/589/Bubble_Babble_Encoding.txt
[06:44:11] Radar: How did he find it in the first place?
[06:44:30] agent_white: has joined #ruby
[06:44:33] pipework: Ox0dea is a knower of the arcane.
[06:44:47] zenspider: I thought everyone knew about bubble-babble. it's ridiculous and cool at the same time
[06:46:49] baweaver: black magic is his strong suite
[06:47:08] baweaver: Radar failed to roll at least a 15 on arcane knowledge check, tsk tsk
[06:47:28] Ray`: jesus saves, the rest of you take damage
[06:47:34] Radar: ACTION hands in his Ruby practicing certificate.
[06:47:36] BTRE: has joined #ruby
[06:47:59] baweaver: Ox0dea: make a weird crap ruby does blog
[06:48:01] Motoservo: has joined #ruby
[06:48:02] baweaver: I'd read that.
[06:50:56] araujo: has joined #ruby
[06:51:49] baweaver: Ox0dea rolls straight 20s on arcane ruby knowledge
[06:52:01] araujo: has joined #ruby
[06:52:01] araujo: has joined #ruby
[06:52:20] ICantCook: Hi all, I am having trouble installing the mysql gem on CentOS 6
[06:52:29] ICantCook: It worked fine for me in Ubuntu
[06:52:33] ICantCook: Here is my error: http://paste.ofcode.org/4ZBBYFkzQDaBkaEJJVXWqH
[06:53:07] baweaver: http://stackoverflow.com/a/12119681/2872906
[06:53:09] pipework: baweaver: he's so good, his dodecahedron only has 20's on it.
[06:53:36] baweaver: except for threads apparently
[06:54:22] lessless: has joined #ruby
[06:55:16] dagda1: has joined #ruby
[06:56:00] howdoicomputer: has joined #ruby
[06:56:37] baweaver: apeiros has mjolnir out, what smiting shall take place?
[06:57:11] ICantCook: baweaver: sorry, I forgot to mention: I already installed mysql-devel
[06:57:43] mjmac: has joined #ruby
[06:58:08] nullwarp: has joined #ruby
[06:58:08] baweaver: http://stackoverflow.com/a/4502672/2872906
[06:59:00] wldcordeiro: has joined #ruby
[06:59:02] pipework: baweaver is google-search-as-a-service
[06:59:30] baweaver: it's bad form to straight tell them to google their error messages
[06:59:56] baweaver: even though that's pretty well what I'm doing and clicking the first link that looks relevant.
[07:00:13] khebbie: has joined #ruby
[07:00:23] jas02: has joined #ruby
[07:01:19] Radar: <helpa> If you're going to tell someone to "Just google it" or "RTFM", tell them what terms to use on Google exactly, or link them to the place in the documentation.
[07:01:23] Radar: ^ It's why helpa has that rule.
[07:01:24] chinmay_dd: has joined #ruby
[07:01:33] Radar: baweaver is doing the right thing :+1:
[07:01:59] ruurd: has joined #ruby
[07:02:28] baweaver: Someone's been cheating on IRC with Slack.
[07:03:17] aibo: has joined #ruby
[07:03:20] Radar: Sure have,.
[07:03:24] Macaveli: has joined #ruby
[07:05:04] dented42_: has joined #ruby
[07:05:28] baweaver: ah, TIL that Model.joins(:other).where(other: {name: 'foo'}) and Model.joins(:other).where('other.name = ?', 'foo') do different things
[07:05:31] miah: sadly :/
[07:05:41] baweaver: (don't feel like authing to rails right now)
[07:06:04] baweaver: second is faster as it doesn't hit any of the reflection or other magic.
[07:06:05] rht: has joined #ruby
[07:06:33] baweaver: I'll have to find out why the first doesn't just do the same thing some time later.
[07:07:14] rbowlby: has joined #ruby
[07:07:21] apeiros: baweaver: meeting interfered with bringing mjolnir back
[07:07:23] apeiros: -o apeiros
[07:07:28] ICantCook: Installing ruby19-devel helped. Now I get this error: "You have to install development tools first."
[07:07:33] apeiros: and actually it was used for unsmiting
[07:07:36] Timba-as: has joined #ruby
[07:07:36] pawnbox: has joined #ruby
[07:07:40] alphaatom: has joined #ruby
[07:07:56] baweaver: was hoping to see some frost giant melee
[07:08:02] zenguy_pc: has joined #ruby
[07:09:05] apeiros: naw, this ain't hearthstone
[07:09:12] apeiros: and I didn't get a frost giant either :<
[07:09:23] Macaveli_: has joined #ruby
[07:09:50] baweaver: ICantCook: check that gcc is installed and your ruby-dev is the right version.
[07:10:45] ICantCook: baweaver: Yeah, I installed gcc. Rubydevel: ruby19-devel-1.9.3.429-24.el6.x86_64
[07:10:58] ICantCook: and ruby version: ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux
[07:11:18] Radar: ICantCook: Is the "You have to install development tools first" the entirety of the error?
[07:11:25] Macaveli: has joined #ruby
[07:11:37] ICantCook: nope. I'll pasteofcode it...
[07:11:38] baweaver: sudo yum install gcc gcc-c++ ruby-devel
[07:11:41] jgt: has joined #ruby
[07:12:09] baweaver: Past midnight here, should probably get some sleep
[07:12:21] dopie: has joined #ruby
[07:13:26] ICantCook: Radar: http://paste.ofcode.org/3dix9zjfXjNk4nnvWuYA8y
[07:13:44] ICantCook: this is after installing gcc gcc-c++ and ruby19-devel as baweaver suggested
[07:14:09] lele: has joined #ruby
[07:14:15] JoshuaPaling: has joined #ruby
[07:14:52] ICantCook: I can't install 'ruby-devel' as it tries to install ruby-devel 1.8.7 which conflicts with ruby19-devel
[07:16:32] rdark: has joined #ruby
[07:16:32] youngbaks: has joined #ruby
[07:16:58] havenwood: has joined #ruby
[07:19:38] chinmay_dd: has joined #ruby
[07:20:16] m3ow1504_x: has joined #ruby
[07:22:03] Iskarlar: has joined #ruby
[07:29:51] ecnalyr: has joined #ruby
[07:29:58] araujo: has joined #ruby
[07:30:25] paradoja: has joined #ruby
[07:31:46] devoldmx: has joined #ruby
[07:38:53] AlexRussia_: has joined #ruby
[07:41:38] marr: has joined #ruby
[07:41:40] abuzze: has joined #ruby
[07:42:16] bmalum: has joined #ruby
[07:42:29] negev: has joined #ruby
[07:42:44] negev: hello, why do class variables on child classes behave like this? http://pastebin.com/Wa80B9nL
[07:42:44] ruboto: negev, as I told you already, please use https://gist.github.com
[07:43:44] catoblepa: has joined #ruby
[07:47:13] apeiros: ACTION waits for the gist
[07:47:45] apeiros: most likely the answer is "because that's how they've been designed to behave", though.
[07:47:51] exadeci: has joined #ruby
[07:48:06] failshell: has joined #ruby
[07:48:21] nux443: has joined #ruby
[07:48:30] adaedra: that's a new ruboto feature?
[07:48:45] apeiros: no, just a fixed bug
[07:49:11] apeiros: mask field for table with repeat pastebin users was too small, which prevented ruboto from recording them.
[07:49:11] Macaveli_: has joined #ruby
[07:49:46] apeiros: I guess the question didn't matter that much to negev (left)
[07:50:28] Macaveli_: has joined #ruby
[07:50:45] youngbaks: has joined #ruby
[07:51:57] Iskarlar: has joined #ruby
[07:54:56] joonty: has joined #ruby
[07:57:51] roolo: has joined #ruby
[07:58:09] iamninja: has joined #ruby
[07:59:05] wprice: has joined #ruby
[08:00:04] alphaatom: has joined #ruby
[08:01:08] araujo: has joined #ruby
[08:01:08] araujo: has joined #ruby
[08:03:54] paradoja: has joined #ruby
[08:03:54] ruurd: has joined #ruby
[08:04:33] senayar: has joined #ruby
[08:08:24] ta: has joined #ruby
[08:09:02] ta: has joined #ruby
[08:11:59] einarj: has joined #ruby
[08:12:35] cgfbee: has joined #ruby
[08:12:46] lessless: has joined #ruby
[08:14:03] khebbie: has joined #ruby
[08:14:26] nux443: has joined #ruby
[08:14:47] Macaveli: has joined #ruby
[08:15:55] christiandsg: has joined #ruby
[08:16:19] startupality: has joined #ruby
[08:16:21] jgt: has joined #ruby
[08:19:04] UtkarshRay: has joined #ruby
[08:19:07] rbowlby: has joined #ruby
[08:19:56] nux443: has joined #ruby
[08:21:27] mutuma: has joined #ruby
[08:23:29] skade: has joined #ruby
[08:23:57] kr3ssh: has joined #ruby
[08:25:20] Zai00: has joined #ruby
[08:25:32] baweaver: has joined #ruby
[08:25:43] nux443: has joined #ruby
[08:28:13] rikkipitt: has joined #ruby
[08:29:54] xhosae: has joined #ruby
[08:30:19] bumbar_: has joined #ruby
[08:30:19] bumbar_: has joined #ruby
[08:35:24] sdwrage: has joined #ruby
[08:35:25] krz: has joined #ruby
[08:35:32] Hans-Pampel: has joined #ruby
[08:35:39] heyrhett: has joined #ruby
[08:35:59] dagda1: has joined #ruby
[08:36:19] nux443: has joined #ruby
[08:37:19] Iskarlar: has joined #ruby
[08:37:34] iamninja: has joined #ruby
[08:38:03] heyrhett: Is anyone looking for help with an open source project on github?
[08:38:18] eggoez: has joined #ruby
[08:39:38] pawnbox: has joined #ruby
[08:40:11] user1138: has joined #ruby
[08:42:07] ruurd: has joined #ruby
[08:42:56] dblessing: has joined #ruby
[08:44:50] sdwrage: has joined #ruby
[08:45:03] apeiros: heyrhett: https://github.com/apeiros/ruby-community/ - adding github auth based login :)
[08:45:17] einarj: has joined #ruby
[08:46:00] heyrhett: apeiros: is it an issue?
[08:46:11] Hounddog: has joined #ruby
[08:46:12] apeiros: it's a new feature
[08:46:51] apeiros: if you prefer solving an existing issue: https://github.com/apeiros/ruby-community/issues/26
[08:46:52] djbkd_: has joined #ruby
[08:47:13] heyrhett: apeiros: I just made this. http://githero.com/ If you write up the feature as an issue, I'd love to add it and help promote it
[08:48:06] aspiers: has joined #ruby
[08:48:09] m3ow1504_x_io: has joined #ruby
[08:48:15] apeiros: ah, I thought you were looking for something to do yourself
[08:48:29] heyrhett: I might do it myself :)
[08:49:19] m3ow1504_x_io: has joined #ruby
[08:51:00] heyrhett: do you think issue 26 is a 4 hour issue? mind if I add it?
[08:52:34] apeiros: yes, I think it's quite probably solvable in 4h
[08:53:13] heyrhett: ok, added apeiros !
[08:57:00] m3ow1504_xx: has joined #ruby
[08:57:16] Oog: has joined #ruby
[08:57:18] leafybasil: has joined #ruby
[09:00:19] dfockler: has joined #ruby
[09:01:45] c0m0: has joined #ruby
[09:03:13] [k-: has joined #ruby
[09:04:55] skade: has joined #ruby
[09:07:44] GeorgesLeYeti: has joined #ruby
[09:07:54] zenguy_pc: has joined #ruby
[09:08:56] bankair: Salut, Georges
[09:11:13] GeorgesLeYeti: Salut bankair & adaedra
[09:12:22] decoponio: has joined #ruby
[09:12:24] bankair: Guys, did someone give a try to dynamoid ? Is it painful to use ?
[09:16:57] livathinos: has joined #ruby
[09:17:32] GeorgesLeYeti: I'm using a websocket appliction where i'm suppose to send a 16'000 bits chunk audio file but in the other hand i'm receiving these audio files every 10 sec into a folder. But my problem is when i send the last chunk of these 10 sec audio file, the chunk size is bellow 16kbit and this mean to this websocket the end of file.
[09:18:13] AlexAltea: has joined #ruby
[09:19:02] warmonk: has joined #ruby
[09:19:12] iateadonut: has joined #ruby
[09:19:51] GeorgesLeYeti: So I thougt about diffrente possibilities: 1st keep the last chunk and concat him with the next audio file. 2nd fill the last chunk with blank until it made 16kbit (don't find yet how to do this). 3rd (find this one ugly) Close the websocket and reopen it avec each 10 sec file.
[09:22:19] UtkarshRay: has joined #ruby
[09:22:42] msnyon: has joined #ruby
[09:23:32] devoldmx: has joined #ruby
[09:24:56] dumdedum: has joined #ruby
[09:34:53] Ox0dea: >> Enumerable.instance_methods.include?(:each_avec_index)
[09:34:54] ruboto: Ox0dea # => false (https://eval.in/421945)
[09:35:05] [k-: Ox0dea!
[09:35:55] Ox0dea: [k-: Y U NO EUTROPHICATION?!
[09:36:13] Oog: has joined #ruby
[09:36:30] leat: has joined #ruby
[09:36:35] harryk: has joined #ruby
[09:36:40] [k-: ?ot Ox0dea
[09:36:40] ruboto: Ox0dea, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[09:40:14] dagda1: has joined #ruby
[09:41:52] Macaveli: has joined #ruby
[09:42:06] Oog: has joined #ruby
[09:42:33] Iskarlar: has joined #ruby
[09:43:14] rdark: has joined #ruby
[09:43:36] iamninja: has joined #ruby
[09:43:42] Guest80: has joined #ruby
[09:43:48] bruno-: has joined #ruby
[09:43:53] pawnbox: has joined #ruby
[09:44:09] towski_: has joined #ruby
[09:45:29] mutuma: has joined #ruby
[09:46:00] roolo: has joined #ruby
[09:46:53] anisha: has joined #ruby
[09:47:01] arup_r: has joined #ruby
[09:47:31] stamina: has joined #ruby
[09:48:11] krz: has joined #ruby
[09:50:08] kr3ssh: has joined #ruby
[09:50:46] KINGSABRI: has joined #ruby
[09:51:49] dagda1: has joined #ruby
[09:52:36] KINGSABRI: good day everybody ;
[09:52:36] KINGSABRI: I've a CGI ruby script wich takes get param, the main issue it the get valuses could have ';' and it dosn'nt read the data after ';'
[09:53:28] KINGSABRI: I tried to escap and unscap all ways
[09:53:33] KINGSABRI: but nothing works
[09:54:22] KINGSABRI: the get request could be like get.rb?data=aaaa;ssss
[09:54:27] heyrhett: I just made this site. If nothing works, make a github issue, and please add it :) http://githero.com/
[09:54:54] Ox0dea: KINGSABRI: Do you control the request?
[09:55:31] Ox0dea: >> require 'cgi'; [CGI.escape(';'), CGI.unescape('%3b')] # KINGSABRI
[09:55:32] ruboto: Ox0dea # => ["%3B", ";"] (https://eval.in/421949)
[09:55:51] charliesome: has joined #ruby
[09:55:53] KINGSABRI: I'll try now
[09:57:16] user1138_: has joined #ruby
[09:58:16] KINGSABRI: I tried data = CGI.escape cgi['data']
[09:58:37] kyrylo: has joined #ruby
[09:58:38] KINGSABRI: the result is same ,, ignors what comes after ;
[09:59:26] kyrylo: Hi! Does Net::HTTP set Content-Length for each request automatically?
[10:00:20] KINGSABRI: see the eval https://eval.in/421975
[10:00:46] KINGSABRI: the main taks for this script is taking some cookies
[10:01:03] KINGSABRI: the cookies contains var1=va1;var2=val2
[10:01:19] KINGSABRI: php accepts the whole request
[10:01:32] KINGSABRI: but cgi dosn't
[10:01:54] Ox0dea: kyrylo: It does.
[10:02:22] kyrylo: Ox0dea, thanks man
[10:03:15] Ox0dea: kyrylo: Sure thing. For confirmation: http://git.io/vs9tD
[10:03:17] anaeem1: has joined #ruby
[10:03:59] kyrylo: Heh, yeah, I was browsing here https://github.com/ruby/ruby/blob/trunk/lib/net/http/generic_request.rb#L182
[10:05:10] Ox0dea: KINGSABRI: You know you can use CGI#header to access cookies, yes?
[10:05:37] Ox0dea: You initially mentioned that you were having trouble properly parsing query parameters.
[10:06:01] Ox0dea: Does PHP still make the kitchen sink available via $_QUERY? :P
[10:06:23] adaedra: Maybe if you ask it in hebrew
[10:07:09] khebbie: has joined #ruby
[10:07:50] rodfersou: has joined #ruby
[10:08:05] KINGSABRI: Ox0dea: the cookies get sent by javascript to another server
[10:08:10] pawnbox: has joined #ruby
[10:08:40] KINGSABRI: the server gets this cookies and store it in a text file
[10:08:55] Ox0dea: KINGSABRI: You're trying to do PHP in Ruby.
[10:08:57] Ox0dea: You should stop.
[10:09:21] Ox0dea: It's 2015.
[10:09:43] alex88: has joined #ruby
[10:09:57] KINGSABRI: the main issue is exploiting xss and inject javascript to send the cookies to another server
[10:10:05] Ox0dea: This guy.
[10:10:14] KINGSABRI: the server has the cgi script
[10:10:16] alex88: hi guys, the system command does some escaping in this case? https://gist.github.com/alex88/e52d93f6c6d55c256f80 since running it from command line it works fine, running it from ruby I get the error above
[10:10:43] KINGSABRI: forget about php ,, I just tried php for PoC
[10:11:08] alex88: maybe ..."-ldflags", "-w -X github.com/rancherio/rancher-compose/version.VERSION #{version}".. will still make the whole argument stick to the ldflags parameter?
[10:12:13] adaedra: alex88: remove the single quotes from the system line?
[10:12:31] workmad3: has joined #ruby
[10:13:00] alex88: adaedra: what? won't make it -w the only parameter to ldflags?
[10:13:11] Ox0dea: Yeah, the quotes need to remain.
[10:13:49] alex88: Ox0dea: since with "-ldflags", "-w -X github.com/rancherio/rancher-compose/version.VERSION #{version}" it works, but I'm not sure system will make it a ldflags argument or it just concat the strings
[10:13:53] eightfold: has joined #ruby
[10:13:57] mikecmpbll: has joined #ruby
[10:14:20] adaedra: if you use the system with multiple arguments, it won't do shell interpretation, so giving arguments raw
[10:15:13] arup_r1: has joined #ruby
[10:15:52] alex88: oh wait, I've tried another thing: with ..."-ldflags", "-w -X github.com/rancherio/rancher-compose/version.VERSION #{version}"... in ruby it works
[10:16:01] alex88: which from homebrew's output it seems to run "go build -ldflags -w -X github.com/rancherio/rancher-compose/version.VERSION 0.2.6 -o bin/rancher-compose "
[10:16:15] Ox0dea: That's unlikely to be what you want?
[10:16:16] alex88: but if I run that command exactly as it is in command line, I get a go exception
[10:16:26] Ox0dea: Right, that was to be expected.
[10:16:53] alex88: Ox0dea: ok, so system sets the "-w.. etc" thing as an argument of "-ldflags"
[10:17:04] alex88: as if I type -ldflags="-w...etc" in the terminal?
[10:17:38] adaedra: alex88: the shell will remove the quotes an make it one argument, keeping the spaces. System will give the arguments directly, without further modification.
[10:18:25] banister: has joined #ruby
[10:18:28] alex88: adaedra: ok, so it just concats the arguments?
[10:18:34] Ox0dea: alex88: Ah! No '=' for -ldflags.
[10:18:43] Ox0dea: Just "-ldflags 'foo bar'"
[10:18:46] christiandsg: has joined #ruby
[10:18:59] adaedra: alex88: no. It keeps arguments as an array and gives them directly to the called process.
[10:19:08] eightfold: hello. i have installed jekyll via ruby gems like this: gem install jekyll --user-install
[10:19:15] alex88: oh ok, so the 'foo bar' is a one argument of -ldflags for the shell
[10:19:18] eightfold: how should i update it correctly?
[10:19:31] alex88: Ox0dea: ok thanks, so it's what I wanted
[10:19:34] alex88: thanks adaedra
[10:19:38] eightfold: i???m so burned by failed ruby/gem installations
[10:19:45] Ox0dea: alex88: Yep, should do.
[10:20:00] Ox0dea: You're forgiven for assuming that a "long arg" would need the equal sign. :)
[10:20:14] Ox0dea: Then again, that's probably why the Go team chose to prefix it with a single hyphen.
[10:22:58] Cust0sLim3n: has joined #ruby
[10:26:11] Iskarlar: has joined #ruby
[10:28:23] sdothum: has joined #ruby
[10:28:36] einarj: has joined #ruby
[10:29:21] ferhaty: has joined #ruby
[10:30:55] jonee: has joined #ruby
[10:31:26] lulzmachine: has joined #ruby
[10:32:44] troulouliou_div2: has joined #ruby
[10:35:03] anisha: has joined #ruby
[10:35:59] JoshuaPaling: has joined #ruby
[10:36:01] Kallis: has joined #ruby
[10:40:37] krz: has joined #ruby
[10:42:32] unsymbol: has joined #ruby
[10:44:44] leafybasil: has joined #ruby
[10:48:29] leat: has joined #ruby
[10:49:05] pranny: has joined #ruby
[10:51:16] bruno-: has joined #ruby
[10:51:52] arup_r: has joined #ruby
[10:53:31] catoblepa: has joined #ruby
[10:53:31] catoblepa: has joined #ruby
[10:54:50] pawnbox: has joined #ruby
[10:56:10] livathinos: has joined #ruby
[10:58:41] penso: has joined #ruby
[10:59:57] Iskarlar: has joined #ruby
[11:00:21] Zai00: has joined #ruby
[11:01:04] penso: hey, anyone had something similar as this: https://gist.github.com/penso/a1580306ad4f32295932
[11:01:16] penso: I can't figure out why I can't require something working on its own
[11:01:40] Axsuul: has joined #ruby
[11:02:15] benlovell: has joined #ruby
[11:03:24] rushed: has joined #ruby
[11:07:49] dagda1: has joined #ruby
[11:08:39] rushed_: has joined #ruby
[11:09:42] skade: has joined #ruby
[11:11:01] krz: has joined #ruby
[11:12:09] JaReAx: has joined #ruby
[11:13:27] yashinbasement: has joined #ruby
[11:13:44] jimms: has joined #ruby
[11:15:19] loveablelobster: has joined #ruby
[11:15:24] atomical: has joined #ruby
[11:17:55] Ropeney: has joined #ruby
[11:20:00] banister: has joined #ruby
[11:24:25] devoldmx: has joined #ruby
[11:25:24] dagda1: has joined #ruby
[11:25:38] cek: has joined #ruby
[11:25:55] cek: Don't quite get what's going on with ActiveSupport overloaded objects.
[11:26:22] cek: take 1.day, for ex., it's of Fixnum class, but when trying to see included_mods in metaclass, it's empty!!
[11:26:41] oz: penso: something is messing w/ require, try not changing "$:" and use require_relative instead.
[11:26:50] cek: but what the heck overloaded #inspect method then? It's clearly not a simple Fixnum class anymore...
[11:27:06] Iskarlar: has joined #ruby
[11:27:39] bruno-_: has joined #ruby
[11:28:07] cek: 5.days.instance_exec { class << self; puts self ; end } => #<Class:#<ActiveSupport::Duration:0x00000007bc04d8>>
[11:28:18] pawnbox_: has joined #ruby
[11:28:18] cek: 5.days.class => Fixnum well, this is weird
[11:29:10] paradoja: has joined #ruby
[11:30:13] benlovell: has joined #ruby
[11:30:55] marcoecc: has joined #ruby
[11:31:33] krz: has joined #ruby
[11:32:22] oz: cek: `5.days.class` is a ActiveSupport::Duration, not a Fixnum.
[11:32:50] ldnunes: has joined #ruby
[11:33:26] oz: or maybe it depends on ActiveSupport versions? I'm not a Rails expert. Maybe on a RoR chan, you'd get good answers. :)
[11:33:56] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[11:33:58] cek: yes, why it showed Fixnum then
[11:34:10] roolo: has joined #ruby
[11:34:32] [k-: dig the source
[11:34:50] [k-: find activesupport::duration
[11:36:36] but3k4: has joined #ruby
[11:37:13] Meow-J: has joined #ruby
[11:37:28] pawnbox_: has joined #ruby
[11:37:53] arup_r: What is the sweet way to get [1] from "[1]"
[11:37:58] cek: has left #ruby: ()
[11:38:10] arup_r: or from [1,2,3] from "[1,2,3 ]"
[11:38:57] snath: has joined #ruby
[11:39:18] jhass: arup_r: JSON.parse
[11:39:25] jhass: now don't tell this isn't json
[11:39:40] snath: has left #ruby: ()
[11:40:03] dagda1: has joined #ruby
[11:40:09] [k-: isnt json able to execute code
[11:40:29] jhass: JSON.load is
[11:44:46] Iskarlar: has joined #ruby
[11:46:20] Gnomethrower: has joined #ruby
[11:46:20] Gnomethrower: has joined #ruby
[11:47:42] _blizzy_: has joined #ruby
[11:48:26] skade: has joined #ruby
[11:48:57] iamninja: has joined #ruby
[11:48:58] pranny: has joined #ruby
[11:49:07] failshell: has joined #ruby
[11:50:28] charliesome: has joined #ruby
[11:51:21] allcentury: has joined #ruby
[11:51:59] dgutierrez1287: has joined #ruby
[11:54:39] Cysioland: has left #ruby: ("Leaving")
[11:56:37] abuzze: has joined #ruby
[11:58:28] arup_r: jhass: I said Rails will do it :/
[11:59:01] banister: has joined #ruby
[11:59:45] jhass: whatever, I noticed you crossposted without telling so, so I'm gonna ignore you now
[11:59:54] pawnbox: has joined #ruby
[12:01:20] [k-: jhass is like our crossposter crusader!
[12:02:05] ht__: has joined #ruby
[12:02:24] arup_r: jhass: Sorry to say you.. you are wrong.. I didn't crospost
[12:03:05] arup_r: Please be responsible while you are accusing me... :/
[12:03:19] jhass: changing the wording / removing context of your question doesn't change the fact
[12:03:23] arup_r: I will never ask what I asked here in Rails
[12:03:28] droidburgundy: has joined #ruby
[12:03:30] arup_r: jhass: it does..
[12:03:39] jhass: you did, you just removed a bunch of useful context
[12:03:52] IceyEC: has joined #ruby
[12:03:59] arup_r: jhass: Again I am telling.. please be responsible...
[12:04:14] arup_r: it is not Rails What is the sweet way to get [1] from "[1]"
[12:04:18] arup_r: it is Ruby..
[12:04:30] jhass: alright, let's play the game
[12:04:32] jhass: so where does "[1]" come from?
[12:04:33] skade: has joined #ruby
[12:04:52] arup_r: I got confirmed from that channel I can't get the array as I am expecting... So the story is end there
[12:05:00] arup_r: That means I have to do it by myself
[12:05:10] arup_r: and I was looking for good way to do it
[12:05:18] jhass: I see, so much for "wrong" accusations
[12:05:20] abuzze: has joined #ruby
[12:05:36] arup_r: jhass: pls.
[12:05:46] jhass: answer my question then?
[12:05:53] arup_r: It is not a crosspost.
[12:06:02] jhass: answer my question then?
[12:06:10] arup_r: That's it ... I didn't ask What is the sweet way to get [1] from "[1]" in both channel
[12:06:15] tkuchiki: has joined #ruby
[12:06:16] jhass: answer my question then?
[12:06:20] arup_r: that proved I am not crossposting..
[12:06:26] jhass: I can do this all day, it's two keypresses
[12:06:26] arup_r: I wouldn't answer you
[12:06:29] maloik: arup_r: he's asking where "[1]" came from
[12:06:43] TomyWork: guess what this translates to in a heredoc: sed -ri 's#/usr/bin/ruby$#\01.8#' /usr/bin/puppet
[12:07:16] TomyWork: the \01 becomes the character with ascii code octal 1
[12:07:38] arup_r: maloik: I did say that... and that is why he mentioned I am crossposting
[12:08:03] maloik: well at this point you're just blowing your chances to get help because you're not giving us any kind of helpful info to help you solve your own problem
[12:08:18] arup_r: 17:34 arup_r jhass: I said Rails will do it :/
[12:08:42] jhass: maloik: fyi, in #RubyOnRails: "From iOS app when sending a PUT request, I am getting array params as "judge_ids"=>"[1]". Can I handle it in Rails, so that I can receive the like `"judge_ids"=>[1],`.. ?"
[12:08:43] arup_r: s/said/thought
[12:08:44] Yzguy: has joined #ruby
[12:09:01] Zai00: has joined #ruby
[12:09:02] maloik: jhass: yep I spotted that
[12:09:23] arup_r: jhass: After that there was too many discussions... and finally confirmed I can get by Rails internal
[12:09:28] maloik: that's where I was going with this... the actual answer to the problem is "get your iOS to send the params correctly"
[12:09:37] rideh: has joined #ruby
[12:09:49] DoubleMalt: has joined #ruby
[12:09:56] jhass: ^ and thus the actual question is the same, you just stripped all useful context here
[12:10:15] arup_r: maloik: nah... you are just supporting him with No reason. My question was very straight... I didn't mention any Rails.. I just asked it
[12:10:28] jhass: ?xy arup_r
[12:10:28] ruboto: arup_r, 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
[12:10:52] jhass: that's what would've happened if you didn't post the more specific question in #RubyOnRails
[12:11:03] lessless: has joined #ruby
[12:11:29] arup_r: jhass: I know how to get out the answer.. So.. I know it.. I didn't ask them .. that..
[12:11:34] jhass: the underlying problem is the same, if you can't see that's just a sad for a programmer
[12:12:17] arup_r: jhass: No.. What I am expecting can't be done from there end..
[12:12:42] kyrylo: arup_r, couldn't you just eval?
[12:12:57] arup_r: nah.. that is dangerous!
[12:13:08] kyrylo: how's eval('[1]') dangerous? :P
[12:13:12] mikecmpbll: arup_r: why don't you want to pass the array params in the proper way?
[12:13:19] arup_r: jhass: mike replied perfectly "and by the way, understand that request parameters are always strings, rails will do a lot of stuff to them though."
[12:13:23] arup_r: and that is the answer
[12:13:43] arup_r: so Rails does this when I am using the `form` helper.
[12:13:55] mikecmpbll: arup_r: no, it does it irrespective of the form
[12:14:14] arup_r: but while request is coming from iOS app .. or some other soource.. It can't be done as I am expecting..
[12:14:18] mikecmpbll: arup_r: i didn't say anything about forms in that sentence :) i even provided you an example of how to format parameters to get arrays on rails side
[12:14:19] pawnbox_: has joined #ruby
[12:14:29] maloik: >> JSON.parse('[1]')
[12:14:30] ruboto: maloik # => uninitialized constant JSON (NameError) ...check link for more (https://eval.in/422053)
[12:14:34] arup_r: mikecmpbll: why the iOS guys is saying then it can't be done..
[12:14:35] maloik: >> require 'json'; JSON.parse('[1]')
[12:14:36] ruboto: maloik # => [1] (https://eval.in/422054)
[12:14:40] mikecmpbll: arup_r: because they are wrong?
[12:14:40] bq: has joined #ruby
[12:15:01] jhass: arup_r: now scroll back
[12:15:03] arup_r: He said I am sending you Array.. and your APP is making it like that..
[12:15:06] jhass: you didn't even consider my reply
[12:15:18] jhass: get why I'm tempted to add you to my ignore list?
[12:15:23] mikecmpbll: [11:58:55] <mikecmpbll> arup_r: ok, so they need to send parameters that rails understands as an array.
[12:15:24] mikecmpbll: [11:59:23] <mikecmpbll> myapp.com/myendpoint?some_param[]=1&some_param[]=2
[12:15:32] ecnalyr: has joined #ruby
[12:15:41] choke: has joined #ruby
[12:16:04] arup_r: No idea.. they show me the code something like NLs.. ** I don't understand OvjectiveC :)
[12:16:20] arup_r: jhass: nah.. don't ignore mr
[12:16:29] arup_r: I want to be in your friend list.. man!
[12:16:37] bq: has left #ruby: ()
[12:16:38] [k-: you appear deserving of an ignore currently
[12:16:44] arup_r: scroll back to where
[12:16:54] arup_r: [k-: ok..
[12:16:55] jhass: that's it
[12:17:05] jhass: completely unwilling to make any effort on its own
[12:17:29] lele: has joined #ruby
[12:17:57] [k-: [19:39:16] <jhass> arup_r: JSON.parse
[12:18:05] [k-: 40 mins ago
[12:18:10] IrishGringo: has joined #ruby
[12:18:14] jhass: it's so sad, isn't it
[12:18:14] voker57: has joined #ruby
[12:18:29] [k-: before the entire cross post thing happened
[12:19:00] maloik: somewhat surprised they're still here in the first place ;)
[12:19:07] tkuchiki: has joined #ruby
[12:19:19] arup_r: [k-: I didn't say that is not a solution.. just crosspost stuff I didn't like..
[12:19:35] arup_r: anyway.. leave it
[12:20:05] [k-: what. you wanted something like YAML.parse?
[12:20:20] arup_r: mikecmpbll: I asked that also.. They didn't understand it seems.. Let me show this what you said.
[12:20:33] arup_r: [k-: No. JSONS.parse is correct
[12:20:51] arup_r: [k-: Why are you thinking me I am a stupid...? Did I say that?
[12:21:03] arup_r: Did I say JSON.parse is wrong
[12:21:20] [k-: ACTION sighs
[12:21:29] mikecmpbll: arup_r: stop arguing and stay on task.
[12:21:39] arup_r: humm.. going back...
[12:21:45] christiandsg: has joined #ruby
[12:23:13] bruno-: has joined #ruby
[12:23:25] sarkyniin: has joined #ruby
[12:24:56] allcentury: Hi all - I have a really shitty part of our code that uses sleep a few times as the API we're talking to is flaky. Now though, those sleep invocations are slowing down our test suite. I tried to stub it out using: Kernel.stub(:sleep) { puts "stubbed" } without success. Is this possible?
[12:25:20] mikecmpbll: allcentury: fix the bad code? ;d
[12:25:23] paulcsmith: has joined #ruby
[12:25:45] fgo: has joined #ruby
[12:25:46] allcentury: mikecmpbll: Yah, I want to but the higher ups aren't listening to me right now
[12:26:02] amystephen: has joined #ruby
[12:27:40] jhass: allcentury: if everything else fails extract the sleep to def this_api_is_awfully_shitty; end; and stub that out :P
[12:27:56] [k-: has joined #ruby
[12:27:58] allcentury: ah yah, good idea
[12:28:10] allcentury: code like this is embarassing to look at
[12:28:13] mikecmpbll: but if the sleep is necessary won't the tests fail? ;o
[12:28:40] jhass: allcentury: but to explain, Kernel.stub(:sleep) stubs out Kernel.sleep, which is a copy if Kernel#sleep, have a look at module_function for the underlying reason
[12:29:04] jhass: mikecmpbll: I guess it's necessary to not DoS the API
[12:29:25] mikecmpbll: if you can dos the api without threaded requests that's some really terrible api :p
[12:29:43] allcentury: it is - can confirm, some terrible api
[12:30:46] big|bad|wolf: has joined #ruby
[12:30:50] stardiviner: has joined #ruby
[12:31:46] big|bad|wolf: has joined #ruby
[12:33:08] big|bad|wolf: has joined #ruby
[12:33:14] khebbie: has joined #ruby
[12:33:34] rbennacer: has joined #ruby
[12:34:03] devdazed: has joined #ruby
[12:34:16] y0da: has joined #ruby
[12:37:25] blackmesa: has joined #ruby
[12:37:43] freerobby: has joined #ruby
[12:39:33] [k-: you forgot "really", allcentury
[12:39:45] OrbitalKitten: has joined #ruby
[12:39:52] Oog: has joined #ruby
[12:40:11] UtkarshRay: has joined #ruby
[12:43:08] joonty: has joined #ruby
[12:44:10] sdfgsdfg: has joined #ruby
[12:44:26] kyrylo: has left #ruby: ("Konversation terminated!")
[12:46:01] yatish27: has joined #ruby
[12:46:25] maloik: sounds like yorickpeterse is having a ball
[12:47:07] yorickpeterse: (??????????)?????? ?????????
[12:47:18] Quandl: has joined #ruby
[12:47:32] yorickpeterse: it sometimes really feel like I'm fighting a bunch of toddlers
[12:47:41] yorickpeterse: You give them a nice framework, well tested, all that shit
[12:47:48] yorickpeterse: Then along comes one and just messes it up
[12:47:51] yorickpeterse: at least the intentions were good
[12:47:55] yorickpeterse: But fuck me, write some darn tests
[12:47:57] maloik: I can't see that emoji, but I'm guessing it was a tableflip
[12:48:08] Guest32: has joined #ruby
[12:48:21] yorickpeterse: get a better font
[12:48:29] maloik: we've been over this :D
[12:48:54] Yzguy: has joined #ruby
[12:49:00] yorickpeterse: and clearly you haven't learned ;P
[12:49:13] hinbody: has joined #ruby
[12:49:30] dudfvhj: has joined #ruby
[12:49:49] maloik: I never will, at least not until I set up my workstation from scratch or change my irssi box
[12:49:59] maloik: actually that time might come sooner than expected but still
[12:51:07] rideh: has joined #ruby
[12:51:13] dopamean_: has joined #ruby
[12:51:23] [k-_: has joined #ruby
[12:52:20] yorickpeterse: ok well step 1 of refactoring this class, now to fix all the tests and add a bunch more
[12:52:56] houhoulis: has joined #ruby
[12:53:42] yorickpeterse: also a typical pattern: there's method A, which does something
[12:53:50] yorickpeterse: then comes along method B, which basically does what A does but sets an extra field
[12:54:02] yorickpeterse: instead of just mixing the two (which is preferred actually in this case)
[12:54:14] yorickpeterse: better to add new code and write no tests than to update existing code/tests, right?
[12:54:24] voltalio: has joined #ruby
[12:55:48] symm-: has joined #ruby
[12:56:19] yorickpeterse: @group.companies.each_with_index do |company, index| company.id.should == index + 1 end
[12:56:24] yorickpeterse: that's an....interesting way of testing IDs
[12:57:44] acosonic: has joined #ruby
[12:58:22] devoldmx: has joined #ruby
[12:58:38] acosonic: hi, I'm trying to use svn with redmine on windows. Does anyone know which SVN client will work well with ruby, or how to configure SVN to be visible by Rails?
[12:59:08] maloik: I don't think the code you write has to be aware of what version control you use, acosonic ?
[12:59:30] maloik: what you do in ruby/rails is writing simple text files, there's not much to it
[12:59:41] acosonic: maloik, Redmine uses SVN to parse svn commit messages
[12:59:53] nzst: has joined #ruby
[12:59:55] acosonic: maloik, and display them under repositories tab
[12:59:57] maloik: fair enough, but that has nothing to do with ruby or rails I believe
[13:00:13] maloik: unless I'm missing something obvious about svn... I only use git so yea
[13:02:06] yatish27: has joined #ruby
[13:02:32] maloik: acosonic: what I'm trying to say is, it probably doesn't matter for ruby/rails, but if you're unsure because of windows/redmine then you're best off checking in the svn channels
[13:03:51] jhass: I'd just use git svn :P
[13:04:02] jhass: and work from there
[13:04:46] acosonic: you don't understand, ruby calls git.exe or svn.exe to check for svn/git logs
[13:05:18] pranny: has joined #ruby
[13:06:09] Zai00: has joined #ruby
[13:06:22] hashrocket: has joined #ruby
[13:06:48] Gribo: has joined #ruby
[13:07:23] failshell: has joined #ruby
[13:09:38] JDiPierro: has joined #ruby
[13:09:55] [k-_: i feel hurt that you regard us as stupid
[13:10:51] [k-_: s/stupid/unable to understand/
[13:11:47] bruno-: has joined #ruby
[13:12:04] havenwood: has joined #ruby
[13:13:17] acosonic: Fixed,required absolute paths... http://prntscr.com/88ovhm
[13:13:47] davedev24: has joined #ruby
[13:13:50] dagda1: has joined #ruby
[13:13:59] voltalio: has joined #ruby
[13:14:28] [k-_: you have a lot...
[13:14:49] [k-_: isn't darcs only used by haskellers :o
[13:15:40] maloik: I still fail to see how this is linked to ruby specifically :D
[13:15:44] Zai00: has joined #ruby
[13:15:52] maloik: sounds like there's only some redmine <-> svn stuff going on there
[13:16:03] voltalio: has joined #ruby
[13:16:15] maloik: but good that you figured it out
[13:17:42] dojobo: has joined #ruby
[13:19:36] catoblepa: has joined #ruby
[13:19:57] jhack32: has joined #ruby
[13:20:20] Cust0sLim3n: has joined #ruby
[13:20:20] jtdoncas_: has joined #ruby
[13:22:12] sacarlson: has joined #ruby
[13:22:18] roolo: has joined #ruby
[13:22:48] Guest76476: has joined #ruby
[13:23:37] sacarlson: I just upgraded postgresql from 9.3 to 9.4 but it seems the rails app still tries to use 9.3. what gem or other do I need to perform to upgrade ruby rails to start using the new postgress?
[13:24:21] sacarlson: I tried #rails but there is no such IRC
[13:24:33] havenwood: sacarlson: #rubyonrails
[13:24:35] maloik: the proper channel is #rubyonrails
[13:24:44] sacarlson: a very good
[13:24:44] DLSteve: has joined #ruby
[13:26:03] acosonic: sacarlson, did you install app with bundler?
[13:26:10] dhjondoh: has joined #ruby
[13:26:55] acosonic: sacarlson, try bundle update in your app root
[13:27:03] jhass: acosonic: it moved to #RubyOnRails
[13:27:23] jhass: sacarlson: ignore that last advice, running bundle update blindly is a really bad idea
[13:27:28] sacarlson: oh yes I did install with bundler
[13:27:59] Guest80: has joined #ruby
[13:28:01] ckinniburgh: has joined #ruby
[13:28:27] malconis: has joined #ruby
[13:29:05] dseitz: has joined #ruby
[13:29:08] malconis: has joined #ruby
[13:30:08] freerobby: has joined #ruby
[13:30:58] whippythellama: has joined #ruby
[13:32:05] skade: has joined #ruby
[13:32:19] DefV: has joined #ruby
[13:32:24] Ropeney: has joined #ruby
[13:34:12] lseactuary: has joined #ruby
[13:34:17] apeiros: also bundle & gems have nothing to do with the db that is used???
[13:35:11] lseactuary: hello. i have scalding jobs that i run in the REPL but its getting annoying as i want to be able to quickly graph the data and have 'dashboard' type view. im wondering how easy it is to convert sclading REPL code into a ruby app?
[13:35:47] ferhaty: has joined #ruby
[13:37:55] apeiros: put the code in a file, chmod 0755, run it?
[13:38:14] devdazed: has joined #ruby
[13:38:35] sankaber: has joined #ruby
[13:39:33] Norrin: has joined #ruby
[13:39:39] blue_deref2: has joined #ruby
[13:40:09] Zai00: has joined #ruby
[13:40:14] lseactuary: apeiros was that to me?
[13:40:26] blue_deref2: has left #ruby: ()
[13:40:58] apeiros: lseactuary: yes
[13:41:05] marguerite: has joined #ruby
[13:41:13] jgpawletko: has joined #ruby
[13:41:18] victortyau: has joined #ruby
[13:41:25] DoubleMalt: has joined #ruby
[13:41:45] lseactuary: apeiros i have working scalding REPL code that pulls data from sources and outputs a CSV/TSV file
[13:41:56] marguerite: hello, anyone can help me with this nokogiri problem about searching through table element ? http://paste.opensuse.org/27252343
[13:42:11] Akuma: has joined #ruby
[13:42:16] lseactuary: the problem is i have to keep adjusting the date, the account etc and run it. i think its better to have some sort of dashboar where people just type the account and the data is there.
[13:42:30] lseactuary: like the first page of this: https://d85wutc1n854v.cloudfront.net/live/products/600x375/WB0P6NR1N.png?v=2.2
[13:42:44] marguerite: has left #ruby: ()
[13:42:51] marguerite: has joined #ruby
[13:43:08] lseactuary: wondering how easy it is to go from scalding raw data to something nice like that
[13:43:38] nonnatus: has joined #ruby
[13:43:38] platzhirsch: has joined #ruby
[13:43:42] apeiros: lseactuary: I don't think you will be able to get a satisfying answer to that kind of question here.
[13:44:00] lseactuary: where do you recommend i look?
[13:44:28] apeiros: you ask the person you want to build that thing.
[13:44:30] hotpancakes: has joined #ruby
[13:45:07] apeiros: and if it's you - well, start with it and see. how easy it is for you depends on a couple dozen factors. your familiarity with the tools for a starter.
[13:45:23] apeiros: it's not really possible to give you any meaningful estimate.
[13:46:10] lseactuary: but is ruby the right tool/
[13:46:45] lseactuary: is there something where i can link data sources and then adjust a template rather than build from scratch?
[13:47:11] apeiros: are you talking about a web application?
[13:47:26] apeiros: relevant. you know.
[13:47:49] apeiros: I don't know of such a thing, but you may try in #rubyonrails
[13:47:50] porfa: has joined #ruby
[13:48:34] bigbadbear: has joined #ruby
[13:49:59] rbennacer: has joined #ruby
[13:50:38] mary5030: has joined #ruby
[13:52:30] dagda1: has joined #ruby
[13:52:36] paradoja: has joined #ruby
[13:53:08] bweston92: has joined #ruby
[13:54:23] christiandsg: has joined #ruby
[13:55:14] mary5030: has joined #ruby
[13:55:45] whiteline: has joined #ruby
[13:56:10] mary5030: has joined #ruby
[13:56:20] bigmac_: has joined #ruby
[13:57:34] hotpancakes: has joined #ruby
[13:57:51] j5s7: has joined #ruby
[13:58:49] Timba-as: has joined #ruby
[13:58:53] devoldmx: has joined #ruby
[13:59:33] gregf__: has joined #ruby
[14:02:57] yqt: has joined #ruby
[14:04:28] Rirel: has joined #ruby
[14:05:18] sarkyniin: is there any way to sanitize an html output (that I know is clean and well-formed) without using an external library?
[14:05:28] sarkyniin: just removing the html tags and replacing things like &gt; with >
[14:05:39] dopamean_: has joined #ruby
[14:09:19] jhass: CGI.escapeHTML or something
[14:09:39] hotpancakes: has joined #ruby
[14:10:58] sarkyniin: jhass: irb(main):002:0> CGI.escapeHTML('<p>Hello &gt; World!</p>')
[14:10:58] sarkyniin: => "&lt;p&gt;Hello &amp;gt; World!&lt;/p&gt;"
[14:11:52] sarkyniin: jhass: I wanna replace things like &gt; with their real equivalent
[14:11:59] sarkyniin: while also stripping all html tags
[14:12:16] t0rc: has joined #ruby
[14:12:23] sevenseacat: how on earth is that sanitizing anything?
[14:12:28] jhass: this is so easy to get wrong :/
[14:12:28] pandaant: has joined #ruby
[14:12:32] sarkyniin: uh I probably meant
[14:12:43] dorei: has joined #ruby
[14:12:53] sevenseacat: but you said you want to unescape escaped things
[14:12:56] jhass: stuff it through Nokogiri really
[14:12:57] sevenseacat: which is the opposite
[14:13:00] victortyau: has joined #ruby
[14:13:17] jhass: I think they want Nokogiri::HTML(input).text
[14:13:18] sarkyniin: I didn't want to add another dependency to my script but I guess it must be done
[14:13:18] JDiPierro: has joined #ruby
[14:13:48] t0rc: has joined #ruby
[14:14:09] workmad3: has joined #ruby
[14:14:17] sarkyniin: jhass: I guess that works
[14:14:20] tkuchiki: has joined #ruby
[14:14:46] bruno-: has joined #ruby
[14:15:42] pranny: has joined #ruby
[14:15:45] JaRe_Ax: has joined #ruby
[14:15:53] lkba: has joined #ruby
[14:17:23] rbennacer: has joined #ruby
[14:18:40] gamename: has joined #ruby
[14:18:54] whiteline: has joined #ruby
[14:18:59] momomomomo: has joined #ruby
[14:21:25] atzorvas: has joined #ruby
[14:21:41] whiteline: has joined #ruby
[14:22:23] atzorvas: any suggestion on fast xlsx parsing with ruby? I'm using roo and it's slow with most of my xlsx files when it comes to read cells
[14:22:40] whiteline: has joined #ruby
[14:23:26] ljarvis: atzorvas: I use rubyXL when I need to, it's been fast enough for what I've needed
[14:24:33] ljarvis: but it's still pure Ruby iirc so it's not going to be super fast
[14:24:55] msnyon: has joined #ruby
[14:25:25] rbennacer: has joined #ruby
[14:25:37] apeiros: atzorvas: if performance matters, consider exporting the xlsx as csv
[14:26:32] chouhoulis: has joined #ruby
[14:27:30] nzst: atzorvas: this guy claims some benchmarks for xlsx parsing http://stackoverflow.com/a/20928292
[14:27:45] saddad: has joined #ruby
[14:28:21] mleung: has joined #ruby
[14:29:11] j_mcnally: has joined #ruby
[14:29:24] patrick_star: has joined #ruby
[14:29:25] atzorvas: nzst: looks great!
[14:30:08] atzorvas: ljarvis: I'll try rubyXL also
[14:30:21] bigbadbear: has joined #ruby
[14:30:39] atzorvas: apeiros: xlsx to csv and then read, is too much. even the most slowest approach is better than that *in my case*
[14:30:55] lkba_: has joined #ruby
[14:33:05] lele: has joined #ruby
[14:34:20] dagda1: has joined #ruby
[14:34:39] morochena: has joined #ruby
[14:35:23] cats: has joined #ruby
[14:36:31] bruno-: has joined #ruby
[14:37:30] JoshL: has joined #ruby
[14:37:32] voltalio: has joined #ruby
[14:39:16] banister: has joined #ruby
[14:39:22] dopamean_: has joined #ruby
[14:39:32] Iskarlar: has joined #ruby
[14:40:24] i: has joined #ruby
[14:40:31] CloCkWeRX: has joined #ruby
[14:41:55] JDiPierro: has joined #ruby
[14:42:58] aderium: has joined #ruby
[14:43:06] OrbitalKitten: has joined #ruby
[14:44:37] hotpancakes: has joined #ruby
[14:44:45] atomical_: has joined #ruby
[14:44:55] Stumbler: has joined #ruby
[14:45:33] umgrosscol: has joined #ruby
[14:46:01] Rubie: has joined #ruby
[14:46:12] fullofcaffeine: has joined #ruby
[14:47:01] rideh^: has joined #ruby
[14:47:19] marguerite: has left #ruby: ()
[14:47:55] skade: has joined #ruby
[14:48:09] phutchins: has joined #ruby
[14:48:29] pawnbox: has joined #ruby
[14:48:54] snockerton: has joined #ruby
[14:49:06] iamvery: has joined #ruby
[14:49:32] benlovell: has joined #ruby
[14:49:57] momomomomo_: has joined #ruby
[14:50:34] hjkatz: has joined #ruby
[14:50:53] hjkatz: Anyone around for a question regarding block notation?
[14:51:14] ruboto: Just ask your question, if anyone has or can, they will respond.
[14:51:16] bap1313: has joined #ruby
[14:51:26] hjkatz: ok, let me get the pastebins setup
[14:51:33] RegulationD: has joined #ruby
[14:51:36] rippa: has joined #ruby
[14:51:41] adaedra: s/pastebin/gist/
[14:52:23] Chau: has joined #ruby
[14:53:01] rideh: has joined #ruby
[14:53:05] thang: has joined #ruby
[14:53:11] hjkatz: http://pastebin.com/bW61t2TK
[14:53:12] ruboto: hjkatz, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/6f1711d4aaf93d67362a
[14:53:12] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[14:53:23] hjkatz: Ok, so the problem is the following
[14:53:36] hjkatz: when I call my method with curly braces for the block, it behaves as expected
[14:53:51] hjkatz: when I call my method with do end for the block, the block does not exist and my error is raised
[14:54:03] apeiros: do/end and {} have different precedence
[14:54:17] hjkatz: I understand that, but it applies to the params sent to the method?
[14:54:25] apeiros: though, if you really call it with parens, then it should not make a difference
[14:54:28] hjkatz: or is the method invoked without the block param, then calls the block?
[14:54:35] jeadre: has joined #ruby
[14:54:50] hjkatz: ruby version 2.2.2 btw
[14:54:53] apeiros: hjkatz: do you *really* use `get_row( :col_a, :col_b ) do |hash|` and `get_row( :col_a, :col_b ) { |hash|`?
[14:55:09] apeiros: or do you use `get_row :col_a, :col_b do |hash|` and `get_row :col_a, :col_b { |hash|`
[14:55:14] apeiros: (the parens matter)
[14:55:21] hjkatz: I use parens
[14:55:24] hjkatz: promise :)
[14:55:43] apeiros: and you claim `get_row( :col_a, :col_b ) { |hash|` raises MyError?
[14:56:00] hjkatz: wait, I might have found the problem
[14:56:10] hjkatz: yes ok, I got it
[14:56:31] hjkatz: I was calling `ap get_row( :col_a, :col_b ) do |hash| ...`
[14:56:38] hjkatz: and the precedence to awesome_print caused the confusion
[14:56:45] hjkatz: wow, super silly
[14:56:47] apeiros: mhm, that block belongs to ap
[14:56:48] hjkatz: thanks though!
[14:56:49] apeiros: not to get_row
[14:57:07] kies: has joined #ruby
[14:57:19] rideh: has joined #ruby
[14:58:37] sross07: has joined #ruby
[14:58:52] monoprotic: has joined #ruby
[14:58:52] monoprotic: has joined #ruby
[14:58:55] d10n-work: has joined #ruby
[14:58:58] arooni-mobile: has joined #ruby
[15:00:58] ecnalyr: has joined #ruby
[15:03:54] felltir: has joined #ruby
[15:04:32] nofxx: has joined #ruby
[15:04:44] amargherio: has joined #ruby
[15:04:47] jher: has joined #ruby
[15:06:03] casadei: has joined #ruby
[15:06:10] Oog: has joined #ruby
[15:07:30] cats: has joined #ruby
[15:09:01] Guest73964: has joined #ruby
[15:09:11] skade: has joined #ruby
[15:09:45] jher: has joined #ruby
[15:10:23] roolo: has joined #ruby
[15:10:27] chouhoul_: has joined #ruby
[15:10:45] jtdoncas_: has joined #ruby
[15:10:56] swills: has joined #ruby
[15:11:23] Zai00: has joined #ruby
[15:11:39] jhack: has joined #ruby
[15:11:39] jhack: has joined #ruby
[15:12:25] Iskarlar: has joined #ruby
[15:13:07] yanguang_: has joined #ruby
[15:13:13] rehat: has joined #ruby
[15:13:31] atzorvas: for my question before, creek is ultra fast, and it returns also cell names which is pretty handy to not add any overhead. just a wrapper function to get cell(col_letter, rownum) and it will be perfect shortly :)
[15:14:11] robh71: has joined #ruby
[15:14:22] atzorvas: ("ultra fast" under consideration, I still have to test this in my main program)
[15:14:42] Silox|: has joined #ruby
[15:14:50] [k-: so many rows questions @.@
[15:14:57] andybernard: has joined #ruby
[15:16:21] anker: has joined #ruby
[15:17:02] dgutierrez1287: has joined #ruby
[15:17:29] JCOE: has joined #ruby
[15:18:34] [k-: i declare today statistics day?
[15:19:05] pranny: has joined #ruby
[15:20:42] adaedra: [k-: I am disappoint. You could have used "in a row".
[15:20:53] clarkenciel: has joined #ruby
[15:21:32] ndrei: has joined #ruby
[15:21:34] [k-: s/@.@/in a row @.@/
[15:21:35] shevy: +special ed
[15:22:28] Baprath: has joined #ruby
[15:22:29] michael_mbp: has joined #ruby
[15:22:36] dstarh: has joined #ruby
[15:22:45] rideh: has joined #ruby
[15:23:24] arup_r: has joined #ruby
[15:23:37] grenierm: has joined #ruby
[15:23:56] Cache_Money: has joined #ruby
[15:24:26] davidhanson: has joined #ruby
[15:24:42] gabord: has joined #ruby
[15:24:55] gabord: Hi, how does "bundle install" work?
[15:25:09] gabord: Does it read "Gemfile" or other things, and then
[15:25:17] gabord: (I have a specific question :)
[15:25:22] gabord: installs the packages, or
[15:25:24] paulcsmith: has joined #ruby
[15:25:39] gabord: the packages it needs to install lies somewhere else?
[15:26:04] atzorvas: gabord: (note) it's better to not break your questions to several lines
[15:26:22] gabord: atzorvas: Alright, next time..
[15:26:24] adaedra: It reads Gemfile and Gemfile.local, resolves the dependencies, and install the gems, either in the system or a given folder according to arguments.
[15:26:35] nzst: gabord: http://bundler.io/rationale.html
[15:26:38] kamsky: has joined #ruby
[15:26:39] sarkyniin: how do I specify a minimum ruby version for my script?
[15:26:50] robh71: has joined #ruby
[15:26:50] atzorvas: gabord: http://patshaughnessy.net/2011/9/24/how-does-bundler-bundle
[15:27:12] gabord: atzorvas nzst thanks
[15:27:14] sarkyniin: specifically, I want the minimum version to be 1.9.3
[15:27:17] sarkyniin: so I can't use .to_f
[15:27:26] sarkyniin: because it would remove the .3 and I wouldn't be able to compare anyway
[15:27:44] adaedra: sarkyniin: gem? bundler?
[15:28:00] sarkyniin: adaedra: you can only specify one version of ruby
[15:28:01] sarkyniin: when using bundler
[15:28:02] blue_deref: has joined #ruby
[15:28:04] sarkyniin: there's no "superior to"
[15:28:06] nofxx: just as curiosity, how to get the name of a var ?
[15:28:19] adaedra: sarkyniin: wut
[15:28:24] chouhoulis: has joined #ruby
[15:28:37] kamsky: Hi guys, I have the following string, which seems to be formed by hex characters: "c340a001-1073", and I have to somehow split it in two sub hex strings (first chunk before the dash, second chunk after the dash), and then somehow iterate through both, increasing 1 by 1 the values
[15:28:44] sarkyniin: adaedra: anyway, I found out comparing strings work
[15:28:44] [k-: nofxx, whaaaaaa
[15:28:46] sarkyniin: in this particular case
[15:28:57] nofxx: [k-, introspection crazyness
[15:28:58] kamsky: The idea is to generate a list with all hte possible values left within that number of characters
[15:29:24] chouhoulis: has joined #ruby
[15:29:27] whiteline: has joined #ruby
[15:29:27] [k-: nofxx, binding.local_variables or some sort?
[15:29:28] adaedra: sarkyniin: I'm pretty sure bundler has a way of giving a /minimal/ ruby. Otherwise, the `gem` lib has methods to compare versions.
[15:29:30] nofxx: kamsky, you mean until fff-fffff ?
[15:29:37] bricker: has joined #ruby
[15:30:43] kamsky: nofxx: so, the first chunk is 8 characters, so until ffffffff, and then the second one 4, so until ffff, and combine them, so I get all the possible values
[15:30:44] gabord: So basically bundle is a wrapper for "gem install", so that it is easy to install gems and dependecies?
[15:30:47] nofxx: [k-, that would work, but I need somehow to get the var's sym to binding.local_variables[]
[15:31:23] [k-: compare the values of everything there
[15:31:24] cats: has joined #ruby
[15:31:37] nofxx: [k-, with what?
[15:32:03] [k-: var would give you the value
[15:32:19] [k-: then iterate through local_variables and get matching values
[15:32:25] [k-: i think
[15:32:49] nofxx: kamsky, well try this: x, y = 'ffffff-fff'.split(/\-/).map{ |n| n.to_i(16) } ; x.upto(0xffff)
[15:33:20] nofxx: kamsky, dunno why split it anyway, just get it as 1 number I would say
[15:33:46] kamsky: nofxx:quick priv?
[15:33:59] [k-: var = 1; binding.local_variables.select.with_object(var) { |v, o| binding.local_variable_get(i) == o }
[15:34:03] nofxx: kamsky, x = 'fffffff-ffff'.tr('-', '').to_i(16)
[15:34:18] prestorium: has joined #ruby
[15:34:19] [k-: i wonder if that actually works
[15:34:27] bmalum: has joined #ruby
[15:34:48] [k-: >> var = 1; binding.local_variables.select.with_object(var) { |v, o| binding.local_variable_get(v) == o }
[15:34:49] ruboto: [k- # => 1 (https://eval.in/422181)
[15:35:17] nofxx: [k-, haha it works =D
[15:35:55] [k-: maybe if i change with_object part
[15:36:14] nofxx: [k-, with object |obj| but with 2 it's |sym, obj| ?? how obscure
[15:36:15] kamsky: so nofxx, the idea is that I get that value, dash included from a server response, and then I have to get that value, and send all the possible left values to the server, one by 1, in the same format
[15:36:23] dagda1: has joined #ruby
[15:36:24] [k-: >> var = 1; binding.local_variables.select { |v| binding.local_variable_get(v) == var }
[15:36:25] ruboto: [k- # => [:var] (https://eval.in/422182)
[15:36:39] rcvalle: has joined #ruby
[15:37:02] kamsky: so.. c340a001-1073, then c340a001-1074, c340a001-1075, etc... till I get to ffffffff-ffff
[15:37:04] [k-: nofxx, i think it's got to do with enumerator
[15:37:04] nofxx: >> kamsky dude... do some math
[15:37:05] ruboto: nofxx # => /tmp/execpad-f4403ec178fe/source-f4403ec178fe:2: syntax error, unexpected keyword_do_block ...check link for more (https://eval.in/422183)
[15:37:17] nofxx: hehe, missed the paste
[15:37:22] nofxx: >> 0xffffffffffff
[15:37:23] ruboto: nofxx # => 281474976710655 (https://eval.in/422184)
[15:37:39] jher: has joined #ruby
[15:38:00] nofxx: >> 0xffffffffffff - 0xc340a0011073
[15:38:01] ruboto: nofxx # => 66792646963084 (https://eval.in/422185)
[15:38:05] tonios57: has joined #ruby
[15:38:50] nofxx: kamsky, hope in your religion patience is bliss
[15:38:57] jhack: has joined #ruby
[15:39:20] xhosae: has joined #ruby
[15:39:32] baweaver: has joined #ruby
[15:39:38] pragmatism: has joined #ruby
[15:39:56] krz: has joined #ruby
[15:40:38] dfockler: has joined #ruby
[15:40:46] nofxx: [k-, thank you man, gonna use this just for fun
[15:41:42] Kruppe: has joined #ruby
[15:41:52] [k-: additional fun: regexp can declare local variables in your local scope
[15:42:07] [k-: i forgot how to make it do it
[15:42:10] dagda1: has joined #ruby
[15:42:19] fullofcaffeine: has joined #ruby
[15:42:32] kamsky: nofxx: actually is a little bit more complex than that.. so, given: c340a001-1073 , the second chunk (1074) is increased every couple seconds by the server, and then in the first chunk, the last 3 chars are always 001 or 801, and the rest random
[15:42:38] [k-: probably str =~ /(?<named_capture>*)/
[15:42:49] kamsky: nofxx: the goal is to be able to "guess" valid values generated by the server
[15:43:02] [k-: elliptic curve?
[15:43:28] kamsky: so the idea is to somehow generate as many values as possible for the first chunk before the second chunk changes
[15:43:48] nofxx: kamsky, general irc tip for you: start with the goal instead of how you're planning to score it
[15:43:55] rideh: has joined #ruby
[15:43:58] kamsky: yeah nofxx, sorry about that
[15:44:34] jhass: sounds like you want to break something. Curious what that would be
[15:44:38] [k-: we have a command for this!
[15:44:42] 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
[15:44:57] kamsky: I'm a pentester jhass, this website Im testing doesnt generate sufficiently random cookies
[15:45:03] kamsky: but I need a proof of concept
[15:45:20] mleung: has joined #ruby
[15:45:22] ruboto: here's your cookie: ????
[15:45:35] shevy: ruboto has inbuilt all the important commands
[15:45:47] jhass: kamsky: maybe just check if it's simple enough to port to say Crystal, should give you a lot more values
[15:45:53] rideh: has joined #ruby
[15:45:54] [k-: yea, it has ?shevy too
[15:46:34] shevy: I go with the cookies
[15:47:26] adaedra: I prefer cake
[15:47:27] ruboto: here's your cake: ????
[15:48:08] adaedra: b&w emoji works not so well, me thinks
[15:48:32] shevy: it's like the unicode hangman here
[15:48:43] Norrin: has left #ruby: ("Dueces")
[15:48:46] [k-: i have coloured ones \o/
[15:48:51] adaedra: still mad about that?
[15:49:01] dfockler: sepia emoji for that old timey feel
[15:49:29] jher: Emoji works great in iTerm
[15:49:30] UtkarshRay: has joined #ruby
[15:49:31] shevy: I am not mad at all in the slightest
[15:49:55] jhass: just stuck in the ancient past
[15:50:03] shevy: there was a time when WhatsApp people joined here; jhass was so curious about their nicks
[15:50:04] blackmes1: has joined #ruby
[15:50:16] shevy: I combine the best of history with the best of the future
[15:50:20] Guest73964: has joined #ruby
[15:50:31] rideh: has joined #ruby
[15:50:34] shevy: I am still undecided about Emojis
[15:50:34] jhass: s/best/none/
[15:51:00] shevy: keep it simple
[15:51:07] jhass: UTF-8 is simple
[15:51:15] jhass: a lot simpler than dealing with all other encodings
[15:51:35] jhass: just use it everywhere, simple as that
[15:51:39] shinnya: has joined #ruby
[15:51:39] shevy: there is the unicode snowman
[15:51:50] nofxx: you know, some say we evolved, from hieroglyphs to writing
[15:51:52] ruboto: I don't know anything about snowman
[15:51:53] havenwood: has joined #ruby
[15:52:05] shevy: yeah hieroglyphs like the unicode snowman :)))
[15:52:09] [k-: the more universal it is, the less things programmers have to worry about
[15:52:10] adaedra: this bot needs the unicode-snowman gem
[15:52:11] dfockler: how many more codepoints are empty in UTF-8?
[15:52:34] shevy: adaedra was it you who wrote the snowman gem?
[15:52:35] jhass: !fact mk snowman Here's a snowman for you: ???
[15:52:35] ruboto: jhass, I will remember that snowman is Here's a snowman for you: ???
[15:52:40] nofxx: shevy, with utf8 I'm ok. just don't put colorful gay emojis in my terminal please
[15:52:50] jhass: dfockler: 1 third I think
[15:52:51] ruboto: shevy is the hound of baskerville
[15:52:54] adaedra: shevy: yes
[15:52:57] shevy: I would not know how to put an emoji into IRC in the first place
[15:53:15] adaedra: shevy: os?
[15:53:15] rikkipitt: has joined #ruby
[15:53:15] [k-: through ?pizza ?cookie ?cake
[15:53:21] shevy: adaedra shevyOS
[15:53:39] [k-: he uses some unmaintained os
[15:53:43] jhass: or was it that 1 third is filled? I can't remember
[15:53:45] shevy: [k- the bot knows pizza?
[15:53:50] khebbie: has joined #ruby
[15:53:51] ruboto: here's your pizza: ????
[15:54:19] ruboto: I don't know anything about dice
[15:54:31] nofxx: isnt it utf8? what the comm
[15:54:31] `derpy: ACTION rolls a dice??? got 5. Total: 5
[15:54:32] [k-: that's `derpy
[15:54:36] nofxx: ah, not yet
[15:54:46] shevy: you know... one distant day, 100 years from now on, Archaeologists may analyze ruboto to find out how we people here from 100 years ago, were a good or a bad people
[15:54:58] `derpy: They see me rolling...
[15:55:25] jhass: &doabarrelroll
[15:55:36] [k-: they should analyse the logs, duh
[15:56:13] stevednd: has joined #ruby
[15:56:18] adaedra: shevy: I know someone else who don't want to use unicode. And, like you, he takes his arguments against it from /dev/null.
[15:56:52] shevy: there are lots of excellent arguments
[15:57:05] shevy: however I would consider this to be an offtopic discussion then
[15:57:07] [k-: none of them which is your face!
[15:57:09] christiandsg: has joined #ruby
[15:57:30] tubbo: anyone who doesn't want to use unicode is a racist
[15:57:32] adaedra: And since you loathe us^W#ruby-offtopic, you won't have it, we know
[15:57:33] tubbo: there i said it
[15:57:35] jhass: shevy: would love to have it over at y-offtopic
[15:57:44] shevy: jhass there is unicode hangman there!!!
[15:57:52] jhass: nobody's playing
[15:58:03] shevy: yeah right *now* perhaps... but the moment I arrive...
[15:58:03] adaedra: shevy: ignore DeBot...
[15:58:16] [k-: yea, debot went on a on and off rampage
[15:58:33] shevy: let's talk about ruby :)
[15:58:44] adaedra: arguments count: +0
[15:58:47] [k-: your face isn't Ruby
[15:59:05] [k-: touch??
[15:59:59] devoldmx: has joined #ruby
[16:00:40] towski_: has joined #ruby
[16:01:52] pietr0: has joined #ruby
[16:01:54] havenwood: ooh, neato: https://github.com/SciRuby/nmatrix#readme
[16:02:00] umgrosscol: has joined #ruby
[16:02:38] Thr3d: has joined #ruby
[16:03:31] jpfuentes2: has joined #ruby
[16:03:34] shevy: ruby catches up to numpy
[16:04:17] snockerton: has joined #ruby
[16:05:11] amclain: has joined #ruby
[16:05:28] rbennacer: has joined #ruby
[16:06:28] [Butch]: has joined #ruby
[16:07:21] Draggor: has left #ruby: ("WeeChat 1.2")
[16:08:50] lele: has joined #ruby
[16:10:33] NeverDie: has joined #ruby
[16:10:44] Xiti: has joined #ruby
[16:11:12] luckyme: has joined #ruby
[16:11:37] umgrosscol_: has joined #ruby
[16:11:43] yardenbar: has joined #ruby
[16:12:15] fullofcaffeine: has joined #ruby
[16:12:39] Xiti: has joined #ruby
[16:13:26] ex0ns: has joined #ruby
[16:14:03] benlovell: has joined #ruby
[16:14:08] postmodern: has joined #ruby
[16:14:29] momomomomo: has joined #ruby
[16:15:58] radgeRayden: has joined #ruby
[16:17:45] davidhanson: has joined #ruby
[16:18:19] astrobunny: has joined #ruby
[16:18:38] Axsuul: has joined #ruby
[16:19:11] shevy: why we have not something like http://pygame.org/news.html :(
[16:19:24] tmtwd: has joined #ruby
[16:19:40] havenwood: shevy: what is it?
[16:19:53] zacts: has joined #ruby
[16:20:10] lagweezle: 2d game dev framework, I think, havenwood
[16:20:47] shevy: havenwood well mostly just a wrapper over SDL
[16:20:54] shevy: but I envy the "xxx games written" part
[16:20:55] havenwood: shevy: https://www.libgosu.org
[16:20:59] SCHAAP137: has joined #ruby
[16:21:34] Hanmac: has joined #ruby
[16:21:34] Kedare: has joined #ruby
[16:21:45] anisha: has joined #ruby
[16:22:22] pranny: has joined #ruby
[16:22:34] jeadre: has joined #ruby
[16:23:57] lagweezle: Oh, related to libgosu and pygame, but in the theory realm: https://docs.google.com/document/d/1iNSQIyNpVGHeak6isbP6AHdHD50gs8MNXF1GCf08efg/pub
[16:24:41] michaeldeol: has joined #ruby
[16:24:49] leat: has joined #ruby
[16:24:50] fedexo: has joined #ruby
[16:26:33] mikecmpbll: gosu looks all kinds of cool. might have to have a play around this weekend.
[16:26:34] nhhagen: has joined #ruby
[16:26:48] Timba-as: has joined #ruby
[16:27:05] Renich: has joined #ruby
[16:27:22] nhhagen: has joined #ruby
[16:27:25] Renich: has joined #ruby
[16:28:41] Renich: has joined #ruby
[16:29:19] yatish27: has joined #ruby
[16:29:35] Rubie: has joined #ruby
[16:29:51] Kruppe: has joined #ruby
[16:30:51] Renich: has joined #ruby
[16:30:54] RobertBirnie: has joined #ruby
[16:32:05] Kruppe: has joined #ruby
[16:33:18] renanoronfle: has joined #ruby
[16:34:13] DEA7TH: has joined #ruby
[16:34:36] greymeister: has joined #ruby
[16:35:21] hotpancakes: has joined #ruby
[16:35:29] DEA7TH: I'm trying to make concurrent web requests and right now am using new threads with curl, but this is failing with (23) Failed writing body. The same code works when not in a new thread. What can I do to fix it?
[16:35:53] ckinniburgh: has joined #ruby
[16:36:12] Blaguvest: has joined #ruby
[16:36:21] Alayde: has joined #ruby
[16:36:35] DEA7TH: Is it because I'm doing it in a new thread, or because I'm using curl
[16:37:17] dc_: has joined #ruby
[16:37:44] Cache_Money: has left #ruby: ()
[16:38:57] harshs08: has joined #ruby
[16:39:41] havenwood: DEA7TH: There are many nice HTTP client gems, including libcurl wrappers with parallelism features. Typhoeus for example: https://github.com/typhoeus/typhoeus#readme
[16:40:01] nitenq: has joined #ruby
[16:40:05] havenwood: ACTION DEA7TH: Parallel requests with Typhoeus: https://github.com/typhoeus/typhoeus#making-parallel-requests
[16:40:15] harshs08: Hi all, I am getting the warning: circular argument reference
[16:40:20] DEA7TH: awesome, I'll install that
[16:41:05] havenwood: harshs08: Show the code the error refers to?
[16:41:09] adaedra: ?context harshs08
[16:41:09] ruboto: harshs08, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
[16:41:16] harshs08: I am trying to understand the reason for it and read about it here http://blog.vrinek.io/2015/01/15/ruby-2-2/. But still I don't fully understand the reason for this warning
[16:41:37] nettoweb: has joined #ruby
[16:42:44] pawnbox: has joined #ruby
[16:42:50] havenwood: >> def har shs = shs; end
[16:42:51] ruboto: havenwood # => /tmp/execpad-d18f739cce2d/source-d18f739cce2d:2: warning: circular argument reference - shs ...check link for more (https://eval.in/422217)
[16:43:33] zendrix: has joined #ruby
[16:44:40] paulcsmith: has joined #ruby
[16:44:47] choke: has joined #ruby
[16:45:17] rbennacer: has joined #ruby
[16:46:02] harshs08: The error is similar to https://bugs.ruby-lang.org/issues/10314
[16:47:15] anaeem1: has joined #ruby
[16:47:16] harshs08: I fixed the issue by the solution provided, but I am not fully understanding the reason for the warning.
[16:47:45] IrishGringo: has joined #ruby
[16:47:50] pranny: has joined #ruby
[16:48:11] harshs08: havenwood yeah something similar to it
[16:48:25] ruboto: We can't help you without your code, please post it to https://gist.github.com
[16:48:40] frozen3: has joined #ruby
[16:48:47] harshs08: sure ruboto will do that
[16:48:54] jhass: ?justabot
[16:48:54] wldcordeiro: has joined #ruby
[16:48:54] ruboto: I'm just a bot. You don't need to address me.
[16:49:06] umgrosscol: has joined #ruby
[16:49:47] adaedra: commas, the difference between "sure, ruboto will do that" and "sure ruboto, will do that"
[16:50:05] benlovell: has joined #ruby
[16:50:26] Respek: has joined #ruby
[16:51:14] havenwood: adaedra: or "sure ruboto will, do that" or "sure ruboto will do, that"
[16:51:14] Jackneill: has joined #ruby
[16:51:26] petricore: has joined #ruby
[16:51:35] jhass: now the lawyer comes through
[16:53:12] hotpancakes: has joined #ruby
[16:53:25] havenwood: harshs08: when folk define a method with args `x = x` they probably really mean `x = x()` not a circular reference to an unset local variable, hence the warning
[16:54:00] Axsuul: has joined #ruby
[16:55:08] Axsuul: has joined #ruby
[16:55:14] saddad: has joined #ruby
[16:55:38] pauly_oc: has joined #ruby
[16:56:32] Azure|dc: has joined #ruby
[16:56:58] pushpak: has joined #ruby
[16:57:00] harshs08: havenwood: so to clear my understanding, why it was allowed in the earlier versions and is this more like a language semantics issue or there is some side effect of this in code?
[16:57:11] dopamean1: has joined #ruby
[16:57:16] ngscheur1: has joined #ruby
[16:57:39] ruboto: havenwood # => nil (https://eval.in/422218)
[16:57:48] havenwood: harshs08: ^ see how that sets `x` to `nil`?
[16:58:15] rakm: has joined #ruby
[16:58:33] roolo: has joined #ruby
[16:58:39] havenwood: harshs08: It can cause confusing bugs when you think you're setting `x` to `x()` and it ends up as `nil`
[16:58:55] Timba-as: has joined #ruby
[16:59:12] havenwood: harshs08: It's something people do on accident but not on purpose.
[16:59:36] havenwood: harshs08: (When setting method default argument values.)
[16:59:39] s2013: has joined #ruby
[17:00:01] havenwood: harshs08: make any sense?
[17:00:10] voltalio: has joined #ruby
[17:00:19] harshs08: havenwood: yeah now I can see the issue
[17:00:44] devoldmx: has joined #ruby
[17:01:24] harshs08: So this should changing if to def test(x = x()) end; should be the right way to go?
[17:02:15] havenwood: harshs08: Aye, that'd make sure you're setting the local variable to the return value of the method.
[17:02:29] syath: has joined #ruby
[17:02:53] pawnbox: has joined #ruby
[17:03:00] snockerton: has joined #ruby
[17:03:03] JoshL: has joined #ruby
[17:03:38] anaeem1__: has joined #ruby
[17:04:00] havenwood: harshs08: Or change the argument name: def test(y = x); end
[17:04:41] pranny: has joined #ruby
[17:04:52] lele: has joined #ruby
[17:05:27] syath: has joined #ruby
[17:05:28] jimms: has joined #ruby
[17:07:35] howdoicomputer: has joined #ruby
[17:08:22] swills: has joined #ruby
[17:09:20] towski_: has joined #ruby
[17:09:34] banjara: has joined #ruby
[17:09:38] leat: has joined #ruby
[17:11:12] rakm: has joined #ruby
[17:12:05] ramfjord: has joined #ruby
[17:12:11] ldnunes_: has joined #ruby
[17:13:30] JohnBat26: has joined #ruby
[17:14:04] doritostains: has joined #ruby
[17:14:05] bootstrappm: has joined #ruby
[17:14:37] chinmay_dd: has joined #ruby
[17:15:11] dagda1: has joined #ruby
[17:15:11] blackmesa: has joined #ruby
[17:17:22] rideh: has joined #ruby
[17:17:26] workmad3_: has joined #ruby
[17:18:27] havenwood: good mornin'
[17:19:01] zly: has joined #ruby
[17:19:24] k3asd`: has joined #ruby
[17:20:57] gizmore: has joined #ruby
[17:21:56] Eiam: has joined #ruby
[17:22:24] Axy: has joined #ruby
[17:23:20] ellisTAA: has joined #ruby
[17:23:30] ellisTAA: what???s the ruby off topic channel?
[17:23:38] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[17:23:56] harshs08: havenwood: now I understood it
[17:24:13] rbowlby: has joined #ruby
[17:24:23] havenwood: harshs08: :)
[17:25:13] choke: has joined #ruby
[17:25:18] harshs08: havenwood: thanks :)
[17:26:12] dr3w: has joined #ruby
[17:27:12] codecop: has joined #ruby
[17:27:44] riotjones: has joined #ruby
[17:27:54] baweaver: has joined #ruby
[17:28:42] Oog: has joined #ruby
[17:29:56] leat: has joined #ruby
[17:29:57] bluOxigen: has joined #ruby
[17:31:18] eam: anyone know where fchmod is hiding in ruby?
[17:31:55] jhass: File#chmod?
[17:32:05] eam: it doesn't seem to take a descriptor
[17:32:24] jhass: There's both, File::chmod and File#chmod
[17:32:34] eam: that'll do it
[17:32:56] _djbkd: has joined #ruby
[17:35:48] davidhanson: has joined #ruby
[17:37:34] JDiPierro: has joined #ruby
[17:37:56] jgt: has joined #ruby
[17:38:47] Meow-J: has joined #ruby
[17:39:49] ferhaty: has joined #ruby
[17:39:59] drbrain: and IO#for_fd if you only have a number
[17:40:02] drbrain: or something like that
[17:40:17] drbrain: err, ::for_fd
[17:40:21] voltalio: has joined #ruby
[17:40:57] eam: I'll always remember for_fd because I hate the method name so much :)
[17:40:59] baweaver: has joined #ruby
[17:41:09] Alayde: has joined #ruby
[17:41:56] dopie: has joined #ruby
[17:44:26] podman: has joined #ruby
[17:44:54] khebbie: has joined #ruby
[17:45:19] jeroj: has joined #ruby
[17:45:47] dagda1: has joined #ruby
[17:48:37] Musashi007: has joined #ruby
[17:49:09] jeroj: has left #ruby: ("Leaving...")
[17:52:17] dopamean_: has joined #ruby
[17:52:54] laserco: has joined #ruby
[17:53:19] casadei: has joined #ruby
[17:53:55] B1n4r10: has joined #ruby
[17:54:05] pranny: has joined #ruby
[17:54:16] s2013: has joined #ruby
[17:57:46] blackmesa: has joined #ruby
[17:58:14] Mia: has joined #ruby
[17:58:14] Mia: has joined #ruby
[17:59:10] axisys: has joined #ruby
[17:59:37] Axy: has joined #ruby
[17:59:43] chipotle: has joined #ruby
[17:59:55] sacarlson: has joined #ruby
[17:59:58] finisherr: has joined #ruby
[18:00:52] Timba-as: has joined #ruby
[18:01:51] christiandsg: has joined #ruby
[18:02:14] s2013: has joined #ruby
[18:02:57] symm-: has joined #ruby
[18:04:40] shevy: giving things a good name is one of the most difficult task
[18:04:56] kies: has joined #ruby
[18:05:19] big|bad|wolf: has joined #ruby
[18:07:14] big|bad|wolf: has joined #ruby
[18:07:45] Cache_Money: has joined #ruby
[18:08:37] OrbitalKitten: has joined #ruby
[18:08:56] cschneid_: has joined #ruby
[18:09:22] pdoherty: has joined #ruby
[18:09:44] Musashi007: has joined #ruby
[18:10:11] shadeslayer: has joined #ruby
[18:10:49] nofxx: has joined #ruby
[18:11:12] davidhanson: has joined #ruby
[18:11:36] Alayde: has joined #ruby
[18:12:00] j_mcnally: has joined #ruby
[18:13:03] xhosae: has joined #ruby
[18:13:40] tmtwd: has joined #ruby
[18:13:54] baweaver: has joined #ruby
[18:14:03] Stumbler: has joined #ruby
[18:14:56] NetworkingPro: has left #ruby: ()
[18:15:08] jgt1: has joined #ruby
[18:15:33] dagda1: has joined #ruby
[18:15:34] platosha__: has joined #ruby
[18:16:15] miah: every editor should have a 'random word' generator =)
[18:16:20] ta: has joined #ruby
[18:16:24] SirFunk_: has joined #ruby
[18:16:29] anaeem1_: has joined #ruby
[18:16:47] TheTFEF: has joined #ruby
[18:17:40] yorickpeterse: just give people Vim, enough random words will come out
[18:17:41] dgutierrez1287: has joined #ruby
[18:18:04] Billias_: has joined #ruby
[18:18:06] chrisja: has joined #ruby
[18:18:20] miah: i already run vim/neovim
[18:18:23] romero: has joined #ruby
[18:18:40] sfr^: has joined #ruby
[18:18:47] LBRapid: has joined #ruby
[18:18:53] shevy: just let your cat pick a name
[18:18:54] _aeris_: has joined #ruby
[18:19:47] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[18:19:50] benlovell: has joined #ruby
[18:20:01] BraddPitt: best advice i've ever heard itc shevy
[18:20:10] bougyman: My cat got on my keyboard while vim was open, once. He took down The Internet.
[18:20:11] shevy: well, outsourcing :)
[18:20:12] BraddPitt: I always let my cat walk on my keyboard for variable names
[18:22:43] nux443: has joined #ruby
[18:23:50] yatish27: has joined #ruby
[18:23:59] Meow-J: has joined #ruby
[18:25:10] chouhoul_: has joined #ruby
[18:25:32] sundhell: has joined #ruby
[18:26:21] Cust0sLim3n: has joined #ruby
[18:26:22] kinduff: has joined #ruby
[18:26:38] kinduff: has joined #ruby
[18:26:44] jackjackdripper: has joined #ruby
[18:27:17] davedev24: has joined #ruby
[18:27:19] cornerma1: has joined #ruby
[18:28:34] DEA7TH: has joined #ruby
[18:28:49] Axsuul: has joined #ruby
[18:30:20] jackjackdripper: has joined #ruby
[18:30:58] jxf: I have two arrays, `points` and `normalized`, and I'm copying points from `points` to `normalized` and replacing with a default value when one doesn't exist. Is there a better way to do this instead of iterating? https://gist.githubusercontent.com/fj/126f6e432509e5dc34aa/raw/1bf5d7d8cf7b152adc7143003553ea4be96337fe/gistfile1.txt
[18:31:15] jxf: For example, is there a way I can just fill up the values instead of needing to use a while loop?
[18:31:29] jxf: I looked at Array#fill but it's not quite what I want, I don't think.
[18:32:22] jhass: jxf: so you want to create an array of size n and have an array of size n with holes?
[18:32:26] s2013: has joined #ruby
[18:32:39] jhass: or is it actualy Date's?
[18:33:08] dhollinger: has joined #ruby
[18:33:19] jhass: (current_date..last_date).map {|date| points[date] || default_value }
[18:33:49] jxf: jhass: Yes, that's right (the "dates" are really numerical indices.)
[18:33:53] agent_white: has joined #ruby
[18:34:14] jhass: Array.new(last_date) {|date| points[date] || default_value } then
[18:37:20] chouhoulis: has joined #ruby
[18:37:36] j_mcnally: has joined #ruby
[18:39:10] jxf: Ah, you're right, of course. Thanks for helping me see that.
[18:39:18] jxf: jhass: ????
[18:40:25] finisherr: has joined #ruby
[18:42:09] _blizzy_: has joined #ruby
[18:42:11] bigbadbear: has joined #ruby
[18:43:47] khebbie: has joined #ruby
[18:43:50] bootstrappm: when you put a require in a method, does it get executed when the method is executed or when the file is parsed?
[18:44:09] RegulationD: has joined #ruby
[18:44:25] jhass: require is a method call
[18:44:28] kr3ssh: has joined #ruby
[18:44:29] tmtwd: has joined #ruby
[18:44:32] jhass: >> method(:require).owner
[18:44:33] ruboto: jhass # => Kernel (https://eval.in/422248)
[18:44:44] Freeaqingme: has joined #ruby
[18:44:46] jhass: no keyword or whatever
[18:45:04] craysiii: has joined #ruby
[18:45:11] mleung: has joined #ruby
[18:45:28] Freeaqingme: Hi folks. I'm trying to do some stuff with timezones. I'm on 1.9.3, I require 'date'. But things like this gives me nothing but "undefined method utc": now = DateTime.now.utc
[18:45:35] Freeaqingme: how should I get the time in a certain tz?
[18:46:24] BraddPitt: someone else can take this one
[18:46:32] jhass: >> require "datetime"; DateTime.now.utc
[18:46:33] ruboto: jhass # => cannot load such file -- datetime (LoadError) ...check link for more (https://eval.in/422249)
[18:46:35] yqt: has joined #ruby
[18:46:40] roolo: has joined #ruby
[18:46:41] jhass: >> require "date"; DateTime.now.utc
[18:46:42] ruboto: jhass # => undefined method `utc' for #<DateTime:0x40e454e0> (NoMethodError) ...check link for more (https://eval.in/422250)
[18:46:43] mikecmpbll: has joined #ruby
[18:46:47] kinduff: has joined #ruby
[18:47:00] jhass: guess it's AS
[18:47:04] Axsuul: has joined #ruby
[18:47:09] nzst: require "date"; DateTime.now.in_time_zone('UTC')
[18:47:19] jhass: yeah http://devdocs.io/rails/datetime#method-i-utc
[18:47:22] jhass: nzst: AS too
[18:47:49] jhass: >> Time.now.utc
[18:47:50] ruboto: jhass # => 2015-08-25 18:47:49 UTC (https://eval.in/422251)
[18:47:59] jhass: Freeaqingme: sure you need a DateTime?
[18:48:06] freerobby: has joined #ruby
[18:48:50] Freeaqingme: jhass: hmz, I'm not. I was under the impression date would be just dates, whereas datetimes would be a date+time. Thought I'd also tested with 'date', but I guess not
[18:48:59] harshs08: /msg NickServ VERIFY REGISTER harshs08 dgxjqguvdfdg
[18:49:05] jhass: harshs08: and next password
[18:49:38] cndiv: has joined #ruby
[18:50:13] JimmyNeutron: has joined #ruby
[18:50:19] _blizzy_: has joined #ruby
[18:50:22] cndiv: Quick question. Out loud, do you all say "puts" like a normal word, or "put-es" like I'm seeing in older instructional videos?
[18:50:38] cndiv: Total n00b here obviously.
[18:50:51] jxf: I say "puts", myself, but it's a matter of preference, I think. I haven't seen an established convention.
[18:50:53] craysiii: i say puts.
[18:51:02] BraddPitt: put es is stupid
[18:51:08] cndiv: That's really what I want to say, glad to hear others do.
[18:51:18] BraddPitt: if not puts, at least say put string
[18:51:23] jxf: "put-S" is because it's short for "put string", like "strftime" is short for "string format time".
[18:51:25] BraddPitt: put es means nothing
[18:51:43] pipework: Egh, for what it's worth, I pronounce Ruby as rubby most of the time.
[18:51:46] jxf: They harken back to the C ancestry.
[18:51:51] cndiv: BraddPitt: Maybe that's what he's trying to emphasize. I just don't want to sound silly even with other newbies.
[18:51:54] jxf: Well, C/POSIX.
[18:51:56] pipework: BraddPitt: Sure it does. It's an initialism
[18:52:12] evo2020: has joined #ruby
[18:52:15] sundhell: has joined #ruby
[18:52:19] BraddPitt: cndiv just say puts
[18:52:24] jxf: cndiv: I'm sure everyone will know what you mean regardless of how you pronounce it, so go with whatever is more natural for you.
[18:52:28] cndiv: Check and check. Thanks all.
[18:52:29] craysiii: initialism would be PS
[18:52:34] cndiv: I love this channel, it's my reality-check.
[18:52:43] BraddPitt: oh god can we please not argue semantics now
[18:52:51] acke: has joined #ruby
[18:53:02] craysiii: as long as you choose the right words :)
[18:53:09] cndiv: Thanks nice #ruby people.
[18:53:36] fantazo: has joined #ruby
[18:54:07] Cache_Money: has joined #ruby
[18:55:00] roolo: has joined #ruby
[18:55:51] nofxx: has joined #ruby
[18:56:46] momomomomo: has joined #ruby
[18:56:47] evo2020: I have a question about refactoring (short) in ruby
[18:57:04] AlexAltea: has joined #ruby
[18:57:15] kinduff: evo2020: don't ask to ask :) just ask
[18:57:36] shevy: refactoring can be very boring
[18:58:00] evo2020: I am trying to insert replay method into a Ruby CLI game. It doesn't work.
[18:58:08] evo2020: I can't see my error!
[18:59:40] anaeem1: has joined #ruby
[18:59:43] bootstrappm: is it bad form to put requires in only the places where they're needed as opposed to the top? I only use URI in 1 out of 5 of my rake tasks,
[18:59:59] craysiii: thats more appropriate for #RoR
[19:00:04] jhass: some say so, some say otherwise
[19:00:08] jhass: craysiii: how so?
[19:00:12] platzhirsch: has left #ruby: ()
[19:00:16] evo2020: https://gist.github.com/evo2013/015648b624c25369d98c
[19:00:34] jhass: bootstrappm: I think for stdlib requires I'd just always do them
[19:01:00] phutchins: has joined #ruby
[19:01:09] craysiii: sorry im used to a different requires :P
[19:01:14] bootstrappm: cool thanks jhass
[19:01:15] evo2020: sorry wrong link
[19:01:32] devoldmx: has joined #ruby
[19:03:10] tmtwd: has joined #ruby
[19:03:33] evo2020: https://gist.github.com/evo2013/bdd4c7f60f918a26c0aa
[19:04:01] psye: has joined #ruby
[19:04:26] christiandsg: has joined #ruby
[19:04:30] Respek: has joined #ruby
[19:04:53] sarkyniin: what's the best and easiest to use library for writing curses UIs?
[19:04:58] evo2020: line 235 'play_again' method is not cooperating
[19:05:00] jenrzzz: has joined #ruby
[19:05:02] Frem: has joined #ruby
[19:05:05] sarkyniin: ncurses-ruby or the former ruby curses library?
[19:06:33] shevy: one variant has been removed from ruby and put into a .gem
[19:06:52] sarkyniin: oh there's also vedeu
[19:06:56] shevy: that was the formerly stdlib (or corelib, don't remember) one: https://rubygems.org/gems/curses
[19:06:57] sarkyniin: for writing terminal UIs
[19:07:06] JoshL_: has joined #ruby
[19:07:07] S0da: has joined #ruby
[19:07:08] shevy: never heard of that before
[19:08:22] fullofca_: has joined #ruby
[19:08:29] JoshL: has joined #ruby
[19:08:43] evo2020: Working some more on this
[19:08:52] evo2020: will be back
[19:09:31] enebo: has joined #ruby
[19:09:49] dblessing: has joined #ruby
[19:10:16] khebbie: has joined #ruby
[19:10:16] kies: has joined #ruby
[19:11:12] weaksauce: has joined #ruby
[19:11:58] dan4843: has joined #ruby
[19:14:21] JoshL: has joined #ruby
[19:14:30] above: has joined #ruby
[19:15:30] DEA7TH: has joined #ruby
[19:16:52] Alayde: has joined #ruby
[19:17:08] toretore: has joined #ruby
[19:18:40] nzst`: has joined #ruby
[19:18:53] Coldblackice_: has joined #ruby
[19:18:54] diegoviola: has joined #ruby
[19:19:05] B1n4r10: has joined #ruby
[19:19:32] pranny: has joined #ruby
[19:19:49] tmtwd: has joined #ruby
[19:20:33] shevy: is there something like rubocop but that will apply modifications according to its standard?
[19:20:45] j416_: has joined #ruby
[19:20:46] shevy: I'd need some auto-tool to clean up code from like 2005
[19:20:59] uber: has joined #ruby
[19:21:06] tmtwd: has joined #ruby
[19:25:00] xet7_: shevy: use "rubocop -a" to auto-fix all that's possible to fix automatically
[19:25:16] rideh: has joined #ruby
[19:25:23] rideh: join #varnish
[19:25:27] pipework: Make sure to do a run without autofix first.
[19:25:30] pipework: Just to make sure it'll do the right thing.
[19:25:31] shevy: huh lemme see
[19:25:42] bradland: psh, pipework is scaredy pants
[19:25:47] xet7_: shevy: backup first
[19:26:01] bradland: alias rubocop="rubocop -a"
[19:26:02] pipework: bradland: Whale, the output is shorter than git diff
[19:26:15] lkba: has joined #ruby
[19:26:30] apt-get_: has joined #ruby
[19:27:02] code1o6: has joined #ruby
[19:27:40] Rubie: has joined #ruby
[19:29:55] kirun: has joined #ruby
[19:30:12] voltalio: has joined #ruby
[19:30:18] axsuul_: has joined #ruby
[19:30:51] khebbie: has joined #ruby
[19:30:57] ngscheurich: has joined #ruby
[19:32:13] dan_839: has joined #ruby
[19:33:49] danojawd: has joined #ruby
[19:35:43] yeticry: has joined #ruby
[19:35:56] shevy: I interrupted it
[19:36:02] shevy: some files were modified
[19:36:21] stamina: has joined #ruby
[19:36:56] hotpanca_: has joined #ruby
[19:37:01] Alayde: has joined #ruby
[19:37:08] yqt: has joined #ruby
[19:37:22] B1n4r10: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[19:37:29] shevy: that's actually quite a lot of fun :)
[19:37:34] shevy: it's a bit slow though
[19:37:43] dc: has joined #ruby
[19:38:15] nzst`: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[19:38:57] shevy: I guess I may have to adopt this to apply individual runs; such as "on first run, fix only indent problems and no other problems"
[19:39:06] shevy: but this is quite cool, thanks xet7_
[19:39:46] pauly_oc: has joined #ruby
[19:39:55] miah: i have rubocop running inline in my editor so i try not to save files with errors in them
[19:39:58] diego1: has joined #ruby
[19:39:58] shevy: This was a curious fix -> ftools.rb:160:35: C: [Corrected] Use reverse_each instead of reverse.each
[19:40:02] tmtwd: has joined #ruby
[19:40:13] shevy: miah you are on OSX?
[19:40:19] miah: https://github.com/bbatsov/ruby-style-guide/#reverse-each
[19:40:36] drbrain: ftools.rb??? I thought that was removed
[19:40:46] shevy: drbrain yes I am looking at old code here :)
[19:40:54] miah: "Prefer reverse_each to reverse.each because some classes that include Enumerable will provide an efficient implementation. Even in the worst case where a class does not provide a specialized implementation, the general implementation inherited from Enumerable will be at least as efficient as using reverse.each."
[19:41:26] diego1: has joined #ruby
[19:41:46] einarj: has joined #ruby
[19:42:09] miah: shevy: i run neovim with neomake
[19:42:12] linoespinoza: has joined #ruby
[19:42:20] pipework: Weird, why can't they just provide a more efficient #reverse?
[19:42:28] benlovell: has joined #ruby
[19:42:39] miah: who is 'they' ?
[19:42:51] kinduff: mantainers
[19:42:55] msnyon: has joined #ruby
[19:42:56] pipework: "some classes"
[19:43:12] drbrain: #reverse creates a new Array holding all the same objects
[19:43:30] drbrain: which you then traverse with #each
[19:43:49] pipework: drbrain: So it sounds like #reverse_each is just generally better regardless of possible implementation bonus nachos?
[19:43:59] drbrain: but for finite collections (Array) you walk the collection in reverse order
[19:44:28] radgeRayden: has joined #ruby
[19:44:30] bb010g: has joined #ruby
[19:44:33] drbrain: pipework: yes, since it avoids the temporary copy
[19:44:35] miah: https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
[19:44:41] pipework: drbrain: That makes sense.
[19:45:00] miah: ^- for benchmarks
[19:45:48] drbrain: then next suggestion might be "ruby should know to optimize .reverse.each to .reverse_each"
[19:47:23] drbrain: but that's not trivial because a user can redefine "reverse" or "each" and not make them mean what you think they mean
[19:47:34] baweaver: has joined #ruby
[19:47:36] drbrain: or they may be called on objects where that optimization doesn't make sense (in the general case for optimizations like this)
[19:48:20] drbrain: so you end up adding a bunch of special-case checks (has #reverse been redefined, has #each been redefined, for this object will it improve performance, ???)
[19:48:27] drbrain: which makes the compiler harder to maintain
[19:48:35] pipework: drbrain: Just add a cop to rubocop to suggest it.
[19:48:45] pipework: Let people add ignores for when it's more correct. :D
[19:48:49] drbrain: ??? yep, that's the more maintainable way
[19:49:12] blackjid: has joined #ruby
[19:49:14] JimmyNeutron: has joined #ruby
[19:49:34] pipework: It's also educational!
[19:49:49] pipework: one should edutate themselves on the regular
[19:50:38] Zai00: has joined #ruby
[19:51:10] marsjaninzmarsa: has joined #ruby
[19:52:39] iateadonut: has left #ruby: ()
[19:52:44] blackjid: has joined #ruby
[19:54:36] miah: thats my one gripe with ruby style guide. while you can link to each nitpick, there is no link to a discussion about the hows and whys behind it.
[19:54:44] platzhirsch: has joined #ruby
[19:54:48] platzhirsch: has left #ruby: ()
[19:55:55] nofxx: has joined #ruby
[19:56:39] blackjid: has joined #ruby
[19:56:52] kies: has joined #ruby
[19:59:01] stevednd: has joined #ruby
[20:00:01] NeverDie: has joined #ruby
[20:00:25] ReK2: has joined #ruby
[20:01:12] Musashi007: has joined #ruby
[20:01:26] but3k4: has joined #ruby
[20:02:05] benlovell: pipework: that cop already exists too
[20:03:07] Eiam: has joined #ruby
[20:03:15] shevy: https://rubygems.org/gems/rubocop/versions/0.33.0
[20:03:22] shevy: "Automatic Ruby code style checking tool. Aims to enforce the community-driven Ruby Style Guide."
[20:03:29] shevy: miah - it simply is the community-driven style guide :)
[20:03:44] Axsuul: has joined #ruby
[20:03:50] symm-: has joined #ruby
[20:03:55] jpfuentes2: has joined #ruby
[20:07:05] JimmyNeutron: has joined #ruby
[20:08:49] miah: hrm? i use rubocop.
[20:11:24] voltalio: has joined #ruby
[20:12:04] solocshaw: has joined #ruby
[20:12:41] miah: there are issues on ruby-style-guide you can dig for the hows and whys. but you have to dig.
[20:12:58] skade: has joined #ruby
[20:13:43] banister: has joined #ruby
[20:15:09] nux443: has joined #ruby
[20:15:11] ta: has joined #ruby
[20:17:32] shevy: it's the community!
[20:18:04] baweaver: Honestly I just use it to get people to stop whining about which way is better
[20:18:10] baweaver: especially on syntax nonsense.
[20:18:18] dstarh: I'm trying to DRY up a couple of methods that both take a block and yield to it at the end. Is it possible to pass the block to another method?
[20:18:38] shevy: dstarh should be, via &
[20:18:57] shevy: I don't have a minimal example at hand though
[20:19:06] tno_: has joined #ruby
[20:19:38] baweaver: >> def a(&block) b(&block) end; def b() yield(3) end; a { |v| v + 1 }
[20:19:39] ruboto: baweaver # => 4 (https://eval.in/422289)
[20:19:55] arooni-mobile: has joined #ruby
[20:19:55] psye: has joined #ruby
[20:20:03] iloverubynoob: has joined #ruby
[20:20:17] baweaver: just remember too dry and you get brittle.
[20:21:09] dstarh: shevy baweaver thanks it was the & i was missing
[20:22:00] dstarh: and baweaver in this case I had copy/pasted a 20 line method that was abstracting out indexing data in ES and changed only the index name
[20:22:01] Respek: has joined #ruby
[20:22:30] stoodfarback: has joined #ruby
[20:22:48] baweaver: Just saying, some people take it to an extreme.
[20:23:11] dstarh: it's only used in our tests so drying it up without changing the original signature saves me about 300 spots for chaning it :)
[20:23:14] dstarh: ACTION agrees
[20:24:08] shevy: I'm gonna save this example as beaver_passing_blocks.rb
[20:24:25] baweaver: well hot dam
[20:24:43] rbennacer: has joined #ruby
[20:26:18] unver: has joined #ruby
[20:26:26] sdwrage: has joined #ruby
[20:27:09] guest1241234: has joined #ruby
[20:27:49] DEA7TH: has joined #ruby
[20:29:20] Zai00: has joined #ruby
[20:29:54] howdoicomputer: has joined #ruby
[20:29:58] northfurr: has joined #ruby
[20:30:05] droidburgundy: has joined #ruby
[20:31:40] nux443: has joined #ruby
[20:33:02] codecop: has joined #ruby
[20:33:11] blackjid: has joined #ruby
[20:33:15] Zai00: has joined #ruby
[20:34:40] eightfold: has joined #ruby
[20:36:10] IceyEC: has joined #ruby
[20:36:22] JaRe_Ax: has joined #ruby
[20:36:54] tenderlove: has joined #ruby
[20:37:38] kinduff: has joined #ruby
[20:37:49] ellisTAA: has joined #ruby
[20:38:47] nux443: has joined #ruby
[20:41:14] startupality: has joined #ruby
[20:41:45] northfurr: has joined #ruby
[20:42:31] _blizzy_: has joined #ruby
[20:46:00] kr3ssh: has joined #ruby
[20:48:06] _djbkd: has joined #ruby
[20:48:22] Axsuul: has joined #ruby
[20:49:59] hotpancakes: has joined #ruby
[20:50:20] unver: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[20:50:56] roolo: has joined #ruby
[20:51:28] momomomomo: has joined #ruby
[20:52:15] _blizzy_: has joined #ruby
[20:52:55] shevy: Does anyone happen to know whether, on modern rubies, when RbConfig::CONFIG['sitelibdir'] may yield incorrect information? perhaps on jruby?
[20:52:57] opensource_ninja: has joined #ruby
[20:53:21] pranny: has joined #ruby
[20:54:59] chipotle: has joined #ruby
[20:55:49] kinduff: has joined #ruby
[20:56:07] kinduff: has joined #ruby
[20:56:41] Timba-as: has joined #ruby
[20:56:43] hydrozen: has joined #ruby
[20:56:48] jonee: has joined #ruby
[20:57:15] DEA7TH: has joined #ruby
[20:57:38] kadoppe: has joined #ruby
[20:59:16] fullofcaffeine: has joined #ruby
[21:00:45] chipotle: has joined #ruby
[21:00:45] choke: has joined #ruby
[21:01:56] Respek: has joined #ruby
[21:02:16] freerobby: has joined #ruby
[21:02:17] devoldmx: has joined #ruby
[21:02:29] tmtwd: has joined #ruby
[21:03:25] ellisTAA: has joined #ruby
[21:05:42] christiandsg: has joined #ruby
[21:05:51] yeticry: has joined #ruby
[21:08:32] bruno-: has joined #ruby
[21:08:39] JimmyNeutron: has joined #ruby
[21:09:15] drbrain: shevy: I think on jruby there is no sitelibdir
[21:09:33] headius: not by default, but there's a flag you can pass to have it honor site lib
[21:09:35] jrab89: has joined #ruby
[21:10:11] drbrain: headius: ????????
[21:10:57] headius: since most installs don't have sitelib it's just another wasted search
[21:11:14] AlexAltea: has joined #ruby
[21:12:51] shevy: drbrain ah ok
[21:12:56] d2dchat: has joined #ruby
[21:13:16] shevy: guess it's time to test my code on jruby finally
[21:13:29] seydar: has joined #ruby
[21:14:06] ndrei: has joined #ruby
[21:14:16] seydar: it's been a very long time since i've programmed.
[21:14:28] seydar: if i have a server that i want to stream data from, is there something special i should be doing?
[21:14:33] shevy: seydar I remember your nick
[21:14:37] chipotle: has joined #ruby
[21:14:37] seydar: or should i just read a little and write a little
[21:14:43] shevy: somehow I associate you with France
[21:15:10] seydar: shevy: haha i'll take it
[21:15:22] shevy: dunno, depends on how that server provides information... if it were a website, you could use open-uri and open(URL_HERE)
[21:15:27] jeffrabovsky: has joined #ruby
[21:15:43] DEA7TH: has joined #ruby
[21:15:56] seydar: this is running on a separate port, not http
[21:16:06] seydar: my server is currently just gserver
[21:16:39] jeffrabovsky: has joined #ruby
[21:17:27] j_mcnally: has joined #ruby
[21:19:47] shevy: no idea how to query info... you'd need to somehow connect to it
[21:19:56] jeffrabovsky: has left #ruby: ()
[21:20:06] morochena: has joined #ruby
[21:22:16] seydar: right, i've got a client on the... clientside
[21:22:23] seydar: and serverside i have a server
[21:22:39] seydar: and they cooperate and do stuff together
[21:22:48] seydar: i'm trying to stream music from my server to my laptop
[21:23:25] jhass: -bbbo *!~bronson@*$#ruby-fix-your-connection gcfhvjbkn!*@*$#ruby-fix-your-connection hiall!*@*$#ruby-fix-your-connection jhass
[21:23:36] yfeldblum: has joined #ruby
[21:24:48] pranny: has joined #ruby
[21:24:49] nux443: has joined #ruby
[21:25:03] jaycee: has joined #ruby
[21:25:31] FernandoBasso: has joined #ruby
[21:25:37] kinduff: has joined #ruby
[21:25:55] bronson: has joined #ruby
[21:26:38] hotpancakes: has joined #ruby
[21:27:59] decuser: has joined #ruby
[21:28:09] mgorbach: has joined #ruby
[21:28:48] renanoronfle: has joined #ruby
[21:29:50] tmtwd: has joined #ruby
[21:30:36] ellisTAA: has joined #ruby
[21:31:11] symm-: lol 1/56 detection for ruby installer exe https://www.virustotal.com/en/file/c31861c252031928c661b58accfc9b02fbd63d35d03844b08811ae8094cc401e/analysis/
[21:31:24] symm-: AVs really are a stupid, stupid snake oil industry
[21:31:24] kinduff: has joined #ruby
[21:31:59] Oog: has joined #ruby
[21:32:53] Motoservo: has joined #ruby
[21:34:42] seydar: shevy: yeah okay this was stupid easy i should have never asked this question
[21:36:01] seydar: i need a nub nick and a not-nub nick
[21:37:47] Alayde: has joined #ruby
[21:38:45] Rubie: has joined #ruby
[21:42:39] pranny: has joined #ruby
[21:44:29] khebbie: has joined #ruby
[21:46:41] but3k4: has joined #ruby
[21:47:00] nux443: has joined #ruby
[21:47:34] zendrix: has joined #ruby
[21:50:19] Silox|: has joined #ruby
[21:54:24] allcentury: has joined #ruby
[21:55:05] sphex: has joined #ruby
[21:55:36] yatish27: has joined #ruby
[21:58:31] atomical: has joined #ruby
[22:02:25] jaycee: has joined #ruby
[22:03:58] hydrozen: has joined #ruby
[22:05:11] dfockler: has joined #ruby
[22:05:17] greymeister_: has joined #ruby
[22:06:30] n_blownapart: has joined #ruby
[22:06:42] j_mcnally: has joined #ruby
[22:07:06] Timba-as: has joined #ruby
[22:07:09] mary5030_: has joined #ruby
[22:08:22] michaeldeol: has joined #ruby
[22:09:07] diegoaguilar: has joined #ruby
[22:12:11] baweaver: has joined #ruby
[22:18:32] dfockler: has joined #ruby
[22:18:52] eightfold: has joined #ruby
[22:19:12] ellisTAA: has joined #ruby
[22:21:42] sdwrage: has joined #ruby
[22:25:21] shevy: anyone of you using prawn to auto-generate .pdf documentation? I am looking for a simple way to format it... from html. I need not much though, only <br>, and padding (aka either margin-left or padding-left / padding)
[22:25:44] shevy: colours etc... isn't needed, the padding is only required for making it easier to read (it already is padded in the .html)
[22:26:27] k3asd`: has joined #ruby
[22:26:51] leafybasil: has joined #ruby
[22:31:26] ta: has joined #ruby
[22:32:12] malconis: has joined #ruby
[22:32:35] Timba-as: has joined #ruby
[22:33:50] datacat_: has joined #ruby
[22:34:07] sarkyniin: has joined #ruby
[22:34:10] datacat_: So I run a ruby app - and it assumes ASCII - but I want that it uses UTF8
[22:34:13] datacat_: I heard one has to set LC/LANG/LOCALE ?
[22:34:17] datacat_: Is that true? what is the right way?
[22:35:18] shevy: are you sure it assumes ASCII? they should default to UTF-8 when nothing else has been specified datacat_
[22:35:38] datacat_: I fixed it this way now: https://github.com/opscode-cookbooks/chef-client/issues/213
[22:35:41] datacat_: though I use puppet
[22:35:49] datacat_: I am not happy that I have to resort to a strange export thing
[22:35:59] datacat_: I don't know why this happens
[22:37:33] Xoro: has joined #ruby
[22:38:35] christiandsg: has joined #ruby
[22:38:40] adaedra: something may clear the environment, or your locale is not set correctly
[22:38:59] woodruffw: has joined #ruby
[22:39:07] roolo: has joined #ruby
[22:39:31] lele: has joined #ruby
[22:39:42] orionp: has joined #ruby
[22:42:26] orionp: Inside of a ruby script I'd like to add a path to the GEM search path (GEM_PATH), but I've been completely unsuccessful in figuring this out.
[22:42:45] pocketprotector: has joined #ruby
[22:43:40] adaedra: so you can require, orionp?
[22:43:55] adaedra: there's $LOAD_PATH for that
[22:44:02] orionp: adaedra - so I can "gem 'gemname'"
[22:44:07] solocshaw1: has joined #ruby
[22:44:13] adaedra: in Gemfile?
[22:44:26] mleung: has joined #ruby
[22:44:27] orionp: In a ruby script
[22:45:10] zenspider: orionp: do you need to specify a particular version or something? Otherwise, a plain require will usually do the trick
[22:45:28] [k-: has joined #ruby
[22:46:08] orionp: Well, the script I am trying to modify is specifying a version, though that may not be needed for my usecase
[22:46:32] dgutierrez1287: has joined #ruby
[22:46:40] yashinbasement: has joined #ruby
[22:47:20] zenspider: orionp: what are you actually trying to do, top level?
[22:47:54] orionp: I want to install a gem to a NFS share (/nfs/local/share/gems)
[22:48:18] orionp: And I want a ruby script in our search path to be able to find those gems
[22:48:57] zenspider: then you need that path to be in GEM_PATH, you don't need to do a gem activation in the script
[22:49:12] freeze: has joined #ruby
[22:49:29] zenspider: (tho you're welcome to do the gem activation as well, it won't provide any benefit unless you have multiple installed)
[22:49:41] orionp: I was hoping to avoid setting GEM_PATH environment variable
[22:49:49] leafybasil: has joined #ruby
[22:49:56] orionp: outside of the script
[22:50:21] zenspider: you _can_ set it inside the script, but you have to jump through some hoops to tell rubygems to reset
[22:50:52] catoblepa: has joined #ruby
[22:51:10] kinduff: has joined #ruby
[22:51:28] orionp: That indeed seems to be the case as I'm not figuring out those hoops
[22:51:58] j_mcnally: has joined #ruby
[22:52:15] yashinbasement: Hi guys why is a stack level too deep
[22:52:17] zenspider: ENV["GEM_PATH"] = "..." ; Gem.clear_paths --- that SHOULD do the trick
[22:52:17] yashinbasement: https://gist.github.com/ynarwal/5804f5264385e4c20e14
[22:52:20] baweaver: Wild DHH sighting?
[22:52:34] shevy: Wild DHH signing?
[22:52:43] shevy: I wanted to write *singing ... :(
[22:53:30] zenspider: yashinbasement: how are you calling it?
[22:53:54] yashinbasement: nthterm(1, 2, 3)
[22:53:57] [H]unt3r: has joined #ruby
[22:54:04] orionp: zenspider - thanks!
[22:54:15] Aeyrix: baweaver: Doubtful. :<
[22:54:17] zenspider: orionp: I think the "right" way is to call Gem.paths = env
[22:54:18] subshad: has joined #ruby
[22:54:20] BraddPitt: recursive overflow
[22:54:34] zenspider: but that just calls clear_paths and then pulls data out of a hash
[22:54:41] BraddPitt: yashinbasement did you mean to put `return first` on line 4?
[22:55:01] BraddPitt: there is no return out of the recursive call
[22:55:05] BraddPitt: you have no base case
[22:55:19] heyrhett: has joined #ruby
[22:55:20] freeze: has joined #ruby
[22:55:22] yashinbasement: isn't it a base case
[22:55:31] bougyman: I think you ment for a condition to be in the elsif
[22:55:38] zenspider: yashinbasement: what does it do if n == 1 ?
[22:55:39] yashinbasement: and we don't need to specify return in ruby
[22:55:42] baweaver: then it goes to the next conditional
[22:55:51] baweaver: you do in that case
[22:55:56] BraddPitt: yashinbasement you have to explicitly specify for early returns
[22:56:00] baweaver: or you need to make that a branch
[22:56:23] baweaver: it only implies a return of the last value in a function
[22:56:40] zenspider: baweaver / BraddPitt / bougyman -- *sigh* don't just give them it. let them work through it.
[22:56:53] yashinbasement: that's why they say don't fall in love in ruby syntax :)
[22:56:53] BraddPitt: we sort of did, zenspider
[22:57:00] zenspider: study up on pedagogy
[22:57:16] zenspider: BraddPitt: you _especially_ didn't
[22:57:29] dseitz: has joined #ruby
[22:58:08] gofsckyourself: has joined #ruby
[22:58:10] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[22:58:16] gofsckyourself: has left #ruby: ("Leaving")
[22:58:23] BraddPitt: can this meme be put to rest
[22:58:35] BraddPitt: or at least have the trigger removed
[22:58:38] shevy: I guess it was the same old dude who picks weird nicks
[22:58:50] zenspider: what we can do is nuke gofsckyourself
[22:59:11] baweaver: or put that on the blacklist
[22:59:17] baweaver: admittedly my bot is lazy.
[22:59:29] baweaver: well, more correctly, my bot plugin
[22:59:29] shevy: it'll lazily scroll up and away :)
[23:00:40] baweaver: Really I can just add a Levenshtein to it to see if it has distance < 3 from a curse word as a half point towards ban.
[23:01:05] shevy: shouldn't you be building dams instead?
[23:01:24] zenspider: mark shevy down
[23:01:35] nfk: has joined #ruby
[23:01:58] baweaver: http://d.justpo.st/media/images/2015/06/14/why-did-the-beaver-not-get-involved-in-the-rival-beavers-business-scandal-he-was-minding-his-own-dam-business-bad-joke-eel-meme-1434334482.jpg
[23:02:14] baweaver: radar rejected my PR to blacklist his name :(
[23:02:24] shevy: I <3 beavers
[23:02:24] BraddPitt: >they spoiled the entire meme in the url
[23:02:39] baweaver: ACTION shrugs
[23:02:40] shevy: eh that fish has attitude so it's worth the visit
[23:03:02] devoldmx: has joined #ruby
[23:03:36] zenspider: I've been face to face with one of those freediving
[23:03:49] zenspider: they're _awesome_ looking... in the dictionary sense of the word
[23:03:52] sdfgsdfg: has joined #ruby
[23:03:52] Timba-as: has joined #ruby
[23:04:07] shevy: he looks bitey
[23:04:07] zenspider: you get a definite sense of "you've been around since dinosaurs" feel from it
[23:04:13] zenspider: they're very bitey
[23:04:24] dfockler: Parrotfish are nightmare fuel
[23:04:37] Axsuul: has joined #ruby
[23:04:41] zenspider: there's an awesome photo series of a dipshit who tried to pet one in phuket, thailand... luckily they have very good plastic surgeons there
[23:05:06] sdwrage: has joined #ruby
[23:05:08] zenspider: they somehow got the thumb back, got him out, and got it reattached rather quickly
[23:05:25] zenspider: not sure how the former happened. I'd eat it if I were the eel
[23:05:25] baweaver: There are only two things that can be considered infinite, human stupidity and the universe. I'm not sure of the latter though
[23:05:30] BraddPitt: whats so bad about the parrotfish dfockler
[23:05:31] BraddPitt: seems pretty
[23:05:42] dfockler: they are scary looking
[23:05:47] BraddPitt: https://en.wikipedia.org/wiki/Parrotfish
[23:06:09] Axsuul: has joined #ruby
[23:06:11] zenspider: parrotfish? they're beautiful and harmless afaik
[23:06:35] zenspider: I've looked them in the face too
[23:07:06] dfockler: must be those front teeth, I'm also afraid of horses
[23:07:27] zenspider: hrm... apparently I don't know the difference between a picasso fish and a parrot fish. just looks like coloring and that mouth
[23:07:40] eightfold: has joined #ruby
[23:07:44] zenspider: dfockler: dude. horses are fucked up. Horrible brain:body mass ratio
[23:07:47] baweaver: You should work on reining in that fear
[23:07:53] orionp: has left #ruby: ("Konversation terminated!")
[23:07:57] ruboto: Badum-Tshh! https://www.youtube.com/watch?v=oShTJ90fC34
[23:08:41] sdfgsdfg: has joined #ruby
[23:09:16] jaycee: has joined #ruby
[23:09:26] ChanServ: +o zenspider
[23:09:59] zenspider: +b *!*@unaffiliated/omfgtora
[23:10:02] baweaver: ACTION grabs popcorn
[23:10:07] zenspider: -o zenspider
[23:10:15] baweaver: ACTION slowly puts popcorn back
[23:10:25] Eiam: has joined #ruby
[23:11:55] n_blownapart: has joined #ruby
[23:13:43] Norrin: has joined #ruby
[23:14:01] ellisTAA: has joined #ruby
[23:14:46] momomomomo: has joined #ruby
[23:16:36] howdoicomputer: has joined #ruby
[23:17:29] kr3ssh: has joined #ruby
[23:17:38] Rinzlit1: has joined #ruby
[23:18:42] modern: has joined #ruby
[23:18:46] modern: has joined #ruby
[23:20:25] Axsuul: has joined #ruby
[23:21:37] sarkyniin: has joined #ruby
[23:22:41] jaycee: has joined #ruby
[23:28:02] northfurr: has joined #ruby
[23:30:23] dfockler: what should I build to practice Clojure?
[23:30:53] datacat_: Is Clojure ruby?
[23:30:54] allcentury: has joined #ruby
[23:31:06] dfockler: could be, jruby runs on the jvm
[23:31:12] dfockler: and so does clojure
[23:31:16] baweaver: datacat_: be nice
[23:31:33] datacat_: baweaver: I am nice :)
[23:31:37] datacat_: ACTION is nice cat
[23:31:39] baweaver: though it probably does belong in #ruby-offtopic
[23:31:51] dfockler: yeah, it's just slow at the end of the day
[23:32:19] catoblepa: has joined #ruby
[23:32:21] baweaver: Build a ruby dsl, or a prolog one.
[23:33:13] dfockler: I started reading ruby under a microscope and now I want to build a 'ruby'/'ruby subset' interpreter
[23:33:16] Oog: has joined #ruby
[23:33:38] shevy: a subset interpreter?
[23:33:44] dfockler: a subset of ruby
[23:33:56] dfockler: or just a small bit of the syntax
[23:33:58] shevy: like something that could interprete class Foo; end
[23:34:13] dfockler: yeah or like method calls and such
[23:34:29] northfurr: has joined #ruby
[23:35:00] choke: has joined #ruby
[23:38:31] Alayde: has joined #ruby
[23:39:04] catoblepa: has joined #ruby
[23:39:44] No1Phan: has joined #ruby
[23:40:29] Yzguy: has joined #ruby
[23:43:07] mleung: has joined #ruby
[23:44:19] solocshaw: has joined #ruby
[23:44:58] sarkyniin: has joined #ruby
[23:45:49] jenrzzz: has joined #ruby
[23:47:34] formigarafa: has joined #ruby
[23:48:06] chipotle: has joined #ruby
[23:49:23] koglinjg: has joined #ruby
[23:49:59] Cache_Money: has joined #ruby
[23:50:25] formigarafa: has joined #ruby
[23:50:49] blackjid: has joined #ruby
[23:51:41] koglinjg: anyone know why { :'some-key' => 'foo' } and { somekey: 'foo' } work and { 'some-key': 'foo' } doesn't in ruby 2.1.x
[23:52:02] northfurr: has joined #ruby
[23:52:17] dopamean_: has joined #ruby
[23:52:22] monoprotic: '-' isnt valid character in a symbol
[23:52:30] monoprotic: without quotes
[23:52:50] koglinjg: my example includes quotes for those with the -
[23:53:06] monoprotic: it doesn't work for the colon syntax in 2.1
[23:53:17] koglinjg: it does with the : before the symbol
[23:53:24] koglinjg: why not after?
[23:53:25] monoprotic: right. that is different syntax
[23:53:36] bougyman: koglinjg: because it's not programmed to work like that (yet).
[23:53:37] monoprotic: perhaps it was an oversight. it works in 2.2
[23:53:44] bougyman: in 2.2 is does work.
[23:53:50] bougyman: and monoprotic just said that.
[23:53:56] koglinjg: oh ok, good to know, thanks
[23:54:19] blackjid: has joined #ruby
[23:54:22] monoprotic: if you cant write it as a symbol without using quotes (:foo) then it doesnt work with the post-colon syntax in 2.1
[23:54:30] monoprotic: even if you use quotes
[23:54:51] koglinjg: yeah I will just use => and tell rubocop to ignore those lines :/
[23:55:12] bougyman: rubocop doesn't understand 2.2 yet?
[23:55:15] bougyman: do you have the latest?
[23:55:21] koglinjg: glad to hear it works in 2.2 though
[23:55:49] koglinjg: we run 1.9.3 and 2.1 if im lucky
[23:56:20] bougyman: my condolences.
[23:56:56] arooni-mobile: has joined #ruby
[23:57:49] blackjid: has joined #ruby
[23:58:00] Timba-as: has joined #ruby
[23:58:57] atomical: has joined #ruby