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