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/
<banister> radens what ruby version
<radens> 1.9.3 I think
<banister> it only works on relatively recent ruby versions iirc
<banister> yeah taht's way way way too old
<banister> needs to be at least 2.1 i think
<radens> okay. This needs to be portable.
* radens copy pastes three lines and calls it a day
<banister> 1.9.3 is ancient at this point
<bricker> radens: good choice :)
<radens> thanks
<banister> radens you can do it using: self.singleton_class.ancestors[n].instance_method(__method__).bind(self).call
<banister> if you dont have super_method
<banister> anyway goodnight
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* radens gags
<radens> thanks!
Lyhue has joined #ruby
shinnya has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
rcvalle has quit [Quit: rcvalle]
robbyoconnor has joined #ruby
michael_mbp has quit [Excess Flood]
marr has quit [Ping timeout: 244 seconds]
Jardayn has quit [Quit: Leaving]
shmilan has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nux443 has joined #ruby
ducklobster has joined #ruby
daed has quit [Quit: leaving]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<ducklobster> i was hoping someone could help me with passing a block from one function (input) to another
<ducklobster> it seems to be complaining when i try to pass the condition block on to the next function
barhum2013 has joined #ruby
duncannz has joined #ruby
ebertx has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> puts recursive_find ARGV[0] { |entry| File.extname(entry) == ".rb" }
<shevy> that part right?
<shevy> I think the parser may require () there
michael_mbp has joined #ruby
<baweaver> it does
<ducklobster> with a comma between the args?
<baweaver> do end can leave off parens
<baweaver> {} blocks cannot
<baweaver> otherwise the parser thinks it's a hash
fgo has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
<shevy> ducklobster a comma between the args? you only pass one argument, not several or?
JoshL has quit []
<ducklobster> oh, does the block not count as an argument?
<shevy> yeah but it's special
<shevy> the {} is the information required, you pass that one already
paulcsmith has quit [Quit: Be back later ...]
<craysiii> it is called by yield no?
<shevy> inside the method, or in this case &condition
<shevy> he taps into it already there: condition.call
<ducklobster> craysiii: no, i use condition.call
tvw has quit [Ping timeout: 256 seconds]
dorei has quit []
yqt has quit [Ping timeout: 255 seconds]
<shevy> & will always come last in method signatures
<ducklobster> shevy: i see
<ducklobster> so ` puts recursive_find( ARGV[0] { |entry| File.extname(entry) == ".rb" } ) `
larshaugseth has quit [Ping timeout: 272 seconds]
<shevy> you could also change it as baweaver wrote
<shevy> nah
<shevy> a block comes last
RegulationD has joined #ruby
finisherr has quit [Quit: finisherr]
<ducklobster> recursive_find( ARGV[0] ) { }
<shevy> puts recursive_find(ARGV[0]) { |entry| File.extname(entry) == ".rb" }
<shevy> yeah
postmodern has quit [Quit: Leaving]
evrial has quit [Ping timeout: 272 seconds]
<ducklobster> gotcha
<ducklobster> ok so, both the do end as well as teh ARGV[0] { } seem to pass through
<ducklobster> but
<ducklobster> it doesn't like where I call the function recursively (L12)
dfhg has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
evrial has joined #ruby
<shevy> it's a perma loop?
<ducklobster> i guess its the same problem? do i need recursive_find(entry) condition?
<shevy> as long as you have one directory, you will call the method again
<ducklobster> yeah, with the new directory
tuxero has quit [Ping timeout: 244 seconds]
<ducklobster> the idea is (or at least i am attempting to make it) if it finds a directory, it passes the directory on to be searched again
larshaugseth has joined #ruby
bruno- has joined #ruby
<shevy> btw why do you not use Dir['**/**.rb'] ?
paulcsmith has joined #ruby
<ducklobster> i was hoping to write it generically, so i could pass the condition in as opposed to hardcode the .rb part
<ducklobster> or set the condition on filesize and such maybe
baweaver has quit [Remote host closed the connection]
<shevy> I don't understand it
RegulationD has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
<shevy> all this seems to do is to grab some specific files based on the file extension
theery has joined #ruby
<ducklobster> right this example but my thought was to make the condition generic so i could
theery has quit [Read error: Connection reset by peer]
<ducklobster> instead of file extension
<ducklobster> pass
dfhg has quit [Ping timeout: 246 seconds]
<ducklobster> File.size?(entry) > 1000
<shevy> yes I still don't understand the argument
theery has joined #ruby
<shevy> you can apply the same File.size? check on your collection lateron as well
<shevy> via .reject or .select for instance
tvw has joined #ruby
benybuds has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
<shevy> def find_stuff(extension_type = 'rb'); Dir['**/**.'+extension_type].select {|entry| File.size?(entry) > 1000 }; end; find_stuff
Lucky__ has quit [Client Quit]
<ducklobster> yeah i guess that is much cleaner
<ducklobster> the only difference i guess is that it treats dirs and files the same
bruno- has quit [Ping timeout: 264 seconds]
<shevy> not sure how it can find dirs with .rb :)
<Ox0dea> Directories can be named with extensions...
<ducklobster> oh right, didn't see that!
<shevy> Ox0dea oh you do that?
<Ox0dea> I've done that, sure.
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<shevy> you do crazy stuff
ledestin has joined #ruby
<Ox0dea> Not '.rb', obviously, but it's sometimes reasonable enough.
<shevy> so crazy
<eam> .d is a super common extension in directory names
<shevy> yeah I kill those dirs when I see them
<ducklobster> shevy: yeah i can't think of a (good) reason why your method wouldn't work
<eam> hahahha
<ducklobster> thanks!
<shevy> init.d is my all time enemy
<eam> you don't need it anymore
davedev24 has joined #ruby
<shevy> yeah, that sorta confused me... or perhaps how systemd handles things, I still haven't read up on it really
<Ox0dea> shevy is using Ubuntu 8.04.
<Ox0dea> Oh... no?
<shevy> Ox0dea gobolinux! \o/
<shevy> nah I am kidding, gobolinux died effectively years ago :(
youch has joined #ruby
<Ox0dea> alexherbo2 uses Exherbo.
<shevy> never heard of that one before
NeverDie has joined #ruby
<shevy> there once was a ruby distribution.... RubyX/heretix
failshell has joined #ruby
<Ox0dea> To The Wayback Machine!
<shevy> didn't survive for long...
<youch> i am upgrading the ruby version used by an app from 2.1.1 to 2.1.7. bundle install errors out installing a lot of gems. im assuming i need to change my the gems specified in Gemfile to reflect my ruby version change. what is the best way to do this?
tvw has quit [Ping timeout: 256 seconds]
<youch> i have already changed the ruby version in my Gemfile as well
craysiii has quit [Remote host closed the connection]
<Ox0dea> youch: Specific error(s), if you'd be so kind.
Lucky__ has joined #ruby
baweaver has joined #ruby
<youch> Error installing json: ERROR: Failed to build gem native extension
bricker has quit [Quit: leaving]
<Ox0dea> Little more...
<youch> make failed, exit code 2
oo_ has joined #ruby
<Ox0dea> And before that?
northfurr has quit [Quit: northfurr]
failshell has quit [Ping timeout: 250 seconds]
<Ox0dea> Wrong number of arguments to rb_str_new(), perhaps?
Aswebb_ has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
<shevy> cannot find -lgmp
<Ox0dea> youch: OS?
sdwrage has joined #ruby
<shevy> you lack the library gmp, source code is at http://ftp.sunet.se/pub/gnu/gmp/gmp-6.0.0a.tar.xz, you probably can install from your distribution
keen__________13 has joined #ruby
<Ox0dea> shevy: Why not link directly to Savannah?
<youch> 14.04.1-Ubuntu
<Ox0dea> youch: apt-get install libgmp-dev
<shevy> Ox0dea savannah?
<youch> Ox0dea: will try that. thank you
<Ox0dea> youch: Fingers crossed.
<shevy> Ox0dea you always seem to want the latest source!
northfurr has joined #ruby
keen__________12 has quit [Ping timeout: 255 seconds]
<Ox0dea> shevy: I just think it's weird you didn't link to a "canonical" source is all.
<shevy> hey
<shevy> that is an official tarball!
juanpablo____ has quit [Quit: (null)]
<shevy> here for ruby ftp://ftp.ruby-lang.org/pub/ruby/ruby-2.2.3.tar.xz
<shevy> \o/
maletor has quit []
<Ox0dea> shevy: sunset.se is official associated with the GNU project?
juanpablo____ has joined #ruby
<shevy> I think it's an automatically synced mirror
allcentury has joined #ruby
<Ox0dea> Mirrors can lie.
<shevy> I usually get those downloads from clicking on download links and then being randomly redirected into the weird parts of the world wide web
<shevy> you should see my KDE related links
bronson has joined #ruby
<Ox0dea> Spare me. :P
<shevy> :(
dfhg has joined #ruby
<drbrain> I wonder how many rootkits shevy has installed
<shevy> haha
tubuliferous_ has joined #ruby
juanpablo____ has quit [Ping timeout: 255 seconds]
altivection has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 246 seconds]
<youch> Ox0dea: much appreciated, json gem installed properly, now just waiting to see if bundler errors out on anything else
theery has joined #ruby
yfeldblum has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jesterfraud has joined #ruby
<youch> ok here's an issue that i believe has been documented in a few places. i am having trouble determining a solution. debugger (1.6.8) gem will not install with ruby 2.1.7.
Musashi007 has quit [Quit: Musashi007]
dfhg has quit [Quit: WeeChat 1.3]
dcarmich has joined #ruby
_blizzy_ has quit [Read error: Connection timed out]
aaeron has quit [Quit: Leaving.]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 256 seconds]
fschuindt1 has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
<Radar> youch: Try using the pry gem instead.
grotewold has joined #ruby
_blizzy_ has joined #ruby
<youch> Radar: if Debugger is not specified in my Gemfile, how would i specify the Pry gem as an alternative?
davedev2_ has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<shevy> youch from its homepage, it should not be incompatible with ruby 2.1.7 - see on the right side https://rubygems.org/gems/debugger
ngscheurich has joined #ruby
grenierm has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
<shevy> it seems to demand a file called ruby_debug.h
aaeron has joined #ruby
juanpablo____ has joined #ruby
<shevy> aha
<shevy> "debugger gem doesn't support ruby 2"
paulcsmith has joined #ruby
<youch> shevy yea id seen the debugger doesnt support ruby 2 page before
davedev24 has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<youch> so my question then, would be if i were to use an alternative like pry or byebug, how would i specify using of those gems instead of debuger, if debugger does not appear to be listed in my gemfile
ohaibbq has joined #ruby
<Radar> youch: How is it being installed then?
<Radar> youch: Show us your Gemfile.lock please.
davedev2_ has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 255 seconds]
<youch> Radar: one moment
fschuindt1 has joined #ruby
Swappticon has joined #ruby
devoldmx has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
<youch> there does not appear to be a Gemfile.lock
<youch> that seems odd
bubbys has quit [Ping timeout: 265 seconds]
<Radar> youch: Show us your Gemfile instead then
<Radar> youch: Likely that it's failing on an initial install
<Aeyrix> youch: Not really. That happens if the install hasn't happened.
<Radar> Aeyrix: too slow
<Aeyrix> :(
<youch> gemfile ^
<youch> oops sorry thats not all of it
<Radar> youch: can you show me the complete output of bundle install too?
dnewkerk has quit [Quit: dnewkerk]
baweaver has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 255 seconds]
<youch> Radar: yes
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
fschuindt1 has quit [Ping timeout: 265 seconds]
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<youch> theres the whole gemfile
<Radar> Anid the output?
<Radar> Are you distracted like me too right now? :P
ngscheurich has quit [Ping timeout: 244 seconds]
<Radar> Nothing there is indicating a debugger dependency. The output would be great.
<Radar> youch: ^
jesterfraud has joined #ruby
<youch> got it coming in just one sec
mleung has joined #ruby
<youch> ha yes im a little distracted
<youch> i appreciate the help
husanu has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
husanu has joined #ruby
<youch> aaaand heres the output
theery has quit [Remote host closed the connection]
<Radar> neat
<Radar> youch: mutliple files can go in the same gist fyi
_blizzy_ has quit [Ping timeout: 246 seconds]
<youch> Radar haha yea just figured that out
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
<Radar> youch: Run `bundle install` with --verbose please.
<youch> will do
charliesome has joined #ruby
charliesome has quit [Client Quit]
tkuchiki has joined #ruby
juanpablo____ has quit [Quit: (null)]
clarkenciel has quit [Quit: Leaving]
juanpablo____ has joined #ruby
[k- has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
bubbys has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
aaeron has quit [Quit: Leaving.]
mleung has quit [Quit: mleung]
aaeron has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
devbug has joined #ruby
rubie has quit [Remote host closed the connection]
juanpablo____ has quit [Ping timeout: 246 seconds]
Lyhue has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
husanu has quit [Remote host closed the connection]
phutchins has joined #ruby
<youch> Radar: let me know if i can provide anything else that might help
husanu has joined #ruby
fschuindt1 has joined #ruby
<Radar> Taking a look
<Radar> I wish I could figure out what the dependency graph looks like... I seem to recall there is an option for that
<Radar> Oh right, it's DEBUG_RESOLVER=1 bundle install
finisherr has joined #ruby
<Radar> youch: DEBUG_RESOLVER=1 bundle install > bundle.log
<Radar> It'll be big
<youch> run with --verbose im assuming?
<youch> ah ok
<Radar> Nope, without --verbose
Mon_Ouie has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 244 seconds]
<Radar> Ack, it outputs to stderr. Somehow get me the full output of that command please.
<youch> will do
dgutierrez1287 has joined #ruby
<Radar> youch: DEBUG_RESOLVER=1 bundle install 2> bundle.log
<youch> Radar: i used `2>&1 >` pipe to stdout the pipe to bundle.log
<Radar> right
<Radar> It might be quite a large file
<youch> its pretty larg
<youch> large*
failshell has joined #ruby
nzst has joined #ruby
dgutierrez1287 has quit [Ping timeout: 250 seconds]
<youch> just waiting on it to be finished
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
[k- has joined #ruby
grotewold has joined #ruby
majjoha has joined #ruby
failshell has quit [Ping timeout: 255 seconds]
<Radar> excellent :)
nzst has quit [Ping timeout: 252 seconds]
<Radar> Looks like it's this gem.
<Radar> it depends on pry-debugger which depends on debugger.
grotewold has quit [Client Quit]
<shevy> circular madness!
<youch> Radar: awesome. thank you so much for your help
northfurr has quit [Quit: northfurr]
<Radar> youch: You should be able to remove the jazz_hands gem and in its place use the pry-rails gem itself.
<Radar> Dunno why it includes awesome_print because pry does a great job of that itself
northfurr has joined #ruby
<youch> ah ok
freerobby has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
rubie has joined #ruby
phutchins has joined #ruby
majjoha has quit [Ping timeout: 256 seconds]
siaw has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
northfurr has quit [Client Quit]
<Radar> youch: Let me know if that fixes the issue.
arooni-mobile has joined #ruby
<Radar> Took almost an hour to get to the bottom of it but we did it! :D
patrick_star has quit [Ping timeout: 246 seconds]
<youch> Radar: haha i am pretty happy you helped me get over that hurdle
northfurr has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
lampshades has joined #ruby
bffff_ has joined #ruby
barhum2013 has quit [Quit: barhum2013]
agni_dev has joined #ruby
barhum2013 has joined #ruby
<Radar> youch: I'm pretty happy that I have more content for my Debugging Ruby book :)
youch has quit [Quit: Konversation terminated!]
youch has joined #ruby
CloCkWeRX has joined #ruby
Rollabunna has quit [Remote host closed the connection]
lampshades has quit [Remote host closed the connection]
lampshades has joined #ruby
grenierm has quit [Quit: grenierm]
agni_dev has quit [Ping timeout: 246 seconds]
grenierm has joined #ruby
agni_dev has joined #ruby
JBrickley has joined #ruby
grotewold has joined #ruby
barhum2013 has quit [Quit: barhum2013]
A124 has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
patrick_star has joined #ruby
akkad has quit [Remote host closed the connection]
grotewold has quit [Client Quit]
agni_dev has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
grotewold has joined #ruby
grotewold has quit [Client Quit]
A124 has joined #ruby
moeabdol has joined #ruby
rails242 has joined #ruby
<rails242> Test
<Ox0dea> rails242: Did it work?
postmodern has joined #ruby
rails242 has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
finisherr has quit [Quit: finisherr]
<[k-> .F
michael_mbp has quit [Excess Flood]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prestorium has joined #ruby
<Ox0dea> Tell me what that keybind was supposed to do.
fgo has joined #ruby
<[k-> . means sucess while F means failed
<Ox0dea> Never mind my derp.
phutchins has quit [Ping timeout: 264 seconds]
<Ox0dea> Yeah.
michael_mbp has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
juanpablo____ has joined #ruby
RegulationD has joined #ruby
grotewold has joined #ruby
nanoz has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
rubie has quit [Remote host closed the connection]
stardiviner has joined #ruby
<[k-> rubymotion is now available free
grotewold has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 255 seconds]
juanpablo____ has quit [Ping timeout: 256 seconds]
dopie has joined #ruby
chipotle has quit [Quit: cheerio]
grenierm has quit [Quit: grenierm]
charliesome has joined #ruby
grotewold has joined #ruby
barhum2013 has joined #ruby
<shevy> are you using it?
<[k-> `is now`
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fschuindt1 has quit [Ping timeout: 240 seconds]
<shevy> :D
Soda has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 244 seconds]
astrobunny has joined #ruby
astrobun_ has quit [Read error: Connection reset by peer]
fschuindt1 has joined #ruby
failshell has joined #ruby
Oka has quit [Quit: o/]
devoldmx has joined #ruby
northfurr has joined #ruby
krz has joined #ruby
_blizzy_ has joined #ruby
meph has quit [Quit: Leaving.]
failshell has quit [Ping timeout: 250 seconds]
fschuindt1 has quit [Ping timeout: 260 seconds]
majjoha has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
<shevy> lots of cool projects happening as of late
MasterPiece has quit [Ping timeout: 260 seconds]
<shevy> to use yaml files to have bash-completions for instance... I was auto-generating such completion files via ruby before, now I could transition into yaml files instead
diego_ar has quit [Remote host closed the connection]
bronson has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
majjoha has quit [Ping timeout: 264 seconds]
bigredboots has joined #ruby
casadei_ has quit [Remote host closed the connection]
JBrickley has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
nahtnam has left #ruby [#ruby]
havenwood has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
rubie has joined #ruby
Mendenhall has joined #ruby
swgillespie has left #ruby [#ruby]
aaeron has quit [Quit: Leaving.]
nanoz has quit [Read error: Connection reset by peer]
pyon is now known as f-pound-at-bang
aaeron has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
gener1c_ has joined #ruby
freerobby has quit [Quit: Leaving.]
poguez_ has quit [Quit: Connection closed for inactivity]
tmtwd has joined #ruby
freerobby has joined #ruby
gener1c has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
arescorpio has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
gix has joined #ruby
barhum2013 has quit [Quit: barhum2013]
aaeron has quit [Quit: Leaving.]
barhum2013 has joined #ruby
braincrash has joined #ruby
braincrash is now known as braincras
prestorium has quit [Ping timeout: 246 seconds]
bustrarm has joined #ruby
_djbkd has quit [Quit: My people need me...]
freerobby has quit [Quit: Leaving.]
howdoi has joined #ruby
gavit has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
gavit has joined #ruby
northfurr has quit [Quit: northfurr]
busterarm has quit [Ping timeout: 240 seconds]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aaeron has joined #ruby
jesterfraud has joined #ruby
oo_ has quit [Remote host closed the connection]
Ox0dea has quit [Read error: No route to host]
northfurr has joined #ruby
oo_ has joined #ruby
barhum2013 has quit [Quit: barhum2013]
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
fgo has joined #ruby
TheNet has joined #ruby
baweaver has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
grotewold has joined #ruby
jimeh has quit [Ping timeout: 246 seconds]
stoodfarback has quit [Ping timeout: 246 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
aaeron has quit [Ping timeout: 246 seconds]
waxjar has quit [Ping timeout: 246 seconds]
stoodfarback has joined #ruby
Guest11091 has quit [Ping timeout: 246 seconds]
aaeron has joined #ruby
howdoi_ has joined #ruby
dymk has quit [Ping timeout: 246 seconds]
linc01n has quit [Ping timeout: 244 seconds]
universa1 has quit [Ping timeout: 244 seconds]
dymk has joined #ruby
jimeh has joined #ruby
shadoi has quit [Quit: Leaving.]
howdoi has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 246 seconds]
larissa has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 246 seconds]
sfr^ has quit [Ping timeout: 244 seconds]
howdoi_ is now known as howdoi
Coldblackice has joined #ruby
aaeron has quit [Client Quit]
davedev2_ has joined #ruby
sfr^ has joined #ruby
linc01n has joined #ruby
universa1 has joined #ruby
techietrash has joined #ruby
larissa has joined #ruby
Shidash has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
drbrain has joined #ruby
bf4 has joined #ruby
waxjar has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
bf4 is now known as Guest20718
shmilan has joined #ruby
nzst has joined #ruby
AlxAltea has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
techietrash has quit [Quit: Bye! <(^_^<)]
nzst has quit [Ping timeout: 268 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
techietrash has joined #ruby
techietrash has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
rakm has joined #ruby
techietrash has joined #ruby
pen has quit []
vmatiyko has quit [Ping timeout: 265 seconds]
weemsledeux has joined #ruby
<xxneolithicxx> We have all commented to the FCC on wifi right? http://savewifi.org ... right?
<shevy> "If debugging is the process of removing bugs, then programming must be the process of putting them in."
Rennex has quit [Ping timeout: 256 seconds]
vmatiyko has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
<pontiki> there is a testing technique known a "bebugging" which means putting in deliberate errors to ensure a) that your tests find them, b) you code doesn't break in unexpected ways
astrobunny has joined #ruby
Rennex has joined #ruby
northfurr has quit [Quit: northfurr]
<Radar> Of course Haskell solves those TYPES of issues.
<pontiki> oh, well played
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> It certainly makes a STRONG showing doesn't it
<Radar> It's well known that a group of Haskellers is known as a "condescension"
<baweaver> and a group of pedants is an "well, actually..."
* pontiki giggles
atomical has joined #ruby
dgutierrez1287 has joined #ruby
aaeron has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mary5030 has joined #ruby
sdothum has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaeron1 has joined #ruby
Yzguy has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
aaeron has quit [Ping timeout: 255 seconds]
mbuf has joined #ruby
gix has quit [Ping timeout: 268 seconds]
rubie has quit [Read error: Connection reset by peer]
rubie has joined #ruby
TheNet has quit [Quit: Leaving...]
_djbkd has joined #ruby
gix has joined #ruby
fschuindt1 has joined #ruby
Gnomethrower has joined #ruby
majjoha has joined #ruby
charliesome has joined #ruby
juanpablo____ has joined #ruby
rubie has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
tejasmanohar has left #ruby ["WeeChat 1.3"]
fschuindt1 has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
rubie has joined #ruby
majjoha has quit [Ping timeout: 260 seconds]
hackerdude has joined #ruby
juanpablo____ has quit [Ping timeout: 268 seconds]
ap4y has quit [Remote host closed the connection]
fgo has joined #ruby
darkf has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poli has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
diego_ar has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
diego_ar has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 255 seconds]
bubbys has quit [Ping timeout: 260 seconds]
bubbys has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
radgeRayden has joined #ruby
towski_ has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
yfeldblum has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
failshell has joined #ruby
codenapper has joined #ruby
devoldmx has joined #ruby
Rickmast_ has joined #ruby
homas is now known as thomas
mary5030 has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 268 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
havenwood has joined #ruby
failshell has quit [Ping timeout: 260 seconds]
Aswebb_ has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
leat has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bronson has joined #ruby
nisstyre has joined #ruby
leat has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
<[k-> so bad :(
A124 has quit [Ping timeout: 268 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
A124 has joined #ruby
<[k-> hm, i am a pedant
<[k-> i learnt a new word \o/
psy_ has quit [Ping timeout: 272 seconds]
bronson has quit [Ping timeout: 272 seconds]
<shevy> pederant?
clarkenciel has joined #ruby
psy_ has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
psy_ has quit [Max SendQ exceeded]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stoodfarback has quit [Quit: Connection closed for inactivity]
majjoha has joined #ruby
jesterfraud has joined #ruby
sigurding has joined #ruby
A124 has quit [Ping timeout: 268 seconds]
arescorpio has quit [Quit: Leaving.]
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
theta8 has quit [Quit: leaving]
tmtwd has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Aambri has joined #ruby
dionysus69 has joined #ruby
dhjondoh has joined #ruby
roxtrongo has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
ranchodev has joined #ruby
postmodern has quit [Quit: Leaving]
Coldblackice has quit [Ping timeout: 246 seconds]
tejasmanohar has quit [Quit: tejasmanohar]
ksteck has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
diego_ar has joined #ruby
tkuchiki has joined #ruby
bruno- has joined #ruby
EllisTAA has joined #ruby
<EllisTAA> i’m trying to get better at writing tests, if anyone has a project that they want me to write tests for let me know and ill consider it
oo_ has quit [Ping timeout: 244 seconds]
kjones_ has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
<Radar> EllisTAA: !r4ia
<Radar> oh right, it doesn't work here :P
diego_ar has quit [Ping timeout: 244 seconds]
<EllisTAA> :P
kjones_ has quit [Max SendQ exceeded]
<Radar> The Rails 4 in Action book has a bunch of tests
<EllisTAA> alright ill check that out
<havenwood> EllisTAA: It might be interesting to write tests for a small gem that already has tests without looking at any of its tests.
<Radar> EllisTAA: You could start out by writing some tests and building the pieces of the app as the test requires it
<Radar> and then getting feedback on that
Coldblackice has joined #ruby
<EllisTAA> havenwood: have any suggestions on what gem i might consider doing that for?
kjones_ has joined #ruby
<EllisTAA> Radar: perhaps ill do that
sigurding has quit [Quit: sigurding]
bruno- has quit [Ping timeout: 240 seconds]
<EllisTAA> Radar: if i were to test a rails app, would i be expected to test anything besides the model and controller?
<Radar> EllisTAA: yes
aganov has joined #ruby
<EllisTAA> k
howdoi has quit [Quit: Connection closed for inactivity]
codenapper has joined #ruby
<havenwood> EllisTAA: Was going to suggest something meta like Minitest's tests but I'm trying to think of something simpler.
oo_ has joined #ruby
eightfold has joined #ruby
<havenwood> EllisTAA: How much of an epic challenge are you looking for? :)
<EllisTAA> havenwood: err i just want to get better lol
rubie has quit [Remote host closed the connection]
nzst has joined #ruby
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
<havenwood> EllisTAA: Looking for Minitest, RSpec, other or don't care?
solars has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
<EllisTAA> im looking to write rspecs
<havenwood> EllisTAA: Add some specs to Lattice :) https://github.com/celluloid/lattice
<EllisTAA> k ill check it out
<havenwood> EllisTAA: Contribute to vaporware ;)
<EllisTAA> thanks for helping
<shevy> hmm
Rickmasta has joined #ruby
<shevy> so you probably want a small class
khebbie has joined #ruby
Rickmast_ has quit [Ping timeout: 240 seconds]
<EllisTAA> havenwood: is lattice your project?
<havenwood> EllisTAA: No, it's Tony Arcieri's.
<havenwood> EllisTAA: It's a Celluloid project but I'm not sure there are plans for further development.
<EllisTAA> oh damn
<EllisTAA> what about vaporware
<havenwood> EllisTAA: I'm sure there are better things for you to contribute RSpec specs to but I'm at a loss!
nzst has quit [Ping timeout: 255 seconds]
<havenwood> EllisTAA: I just learned some RSpec/Thor adding a few specs to that project to learn so I thought of it.
naftilos76 has joined #ruby
pyon has joined #ruby
<havenwood> EllisTAA: I'm normally a Minitester :)
tkuchiki has quit [Remote host closed the connection]
<EllisTAA> :)
riotjones has joined #ruby
<[k-> Quickcheck!
claw has quit [Ping timeout: 264 seconds]
<havenwood> >> "Quickcheck!\n".tr "ie!\n", 'aien'
<ruboto> havenwood # => "Quackchicken" (https://eval.in/427823)
<havenwood> [k-: A duck I suppose.
grotewold has joined #ruby
grotewold has quit [Client Quit]
yfeldblum has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
<shevy> quickduck
tmtwd has joined #ruby
* havenwood ducks
<shevy> lol
yfeldblu_ has joined #ruby
tkuchiki has joined #ruby
iateadonut has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<[k-> :(
tagrudev has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
fschuindt1 has joined #ruby
arup_r_ has joined #ruby
charliesome has joined #ruby
amclain has quit [Quit: Leaving]
tvw has joined #ruby
juanpablo____ has joined #ruby
theery has joined #ruby
fschuindt1 has quit [Ping timeout: 252 seconds]
psy_ has quit [Ping timeout: 264 seconds]
theery has quit [Remote host closed the connection]
MasterPiece has joined #ruby
claw has joined #ruby
arooni-mobile has joined #ruby
juanpablo____ has quit [Ping timeout: 265 seconds]
kfpratt has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> my old code very often confuses me
sigurding has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
Limix has joined #ruby
Rollabunna has joined #ruby
<havenwood> shevy: would your new code confuse old you?
bluOxigen has joined #ruby
* Radar has his mind blown
hackerdude has quit [Quit: Bye, everyone]
<shevy> havenwood hmm that's hard to say
<shevy> I used to do things such as: string[0,0] = 'abc', nowadays I just use string.prepend
<shevy> or even if string[-3,3] == '.rb', nowadays I use .end_with?
<havenwood> shevy: :D
<shevy> then there are some minor things
<shevy> for instance, I keep a trailing '/' for directories
Ropeney has joined #ruby
Rollabun_ has joined #ruby
<shevy> I didn't do so in the past, so now appending-of-files create weird paths... 'HOME_DIR.foo' but HOME_DIR is something such as '/foo' so I ended up with a '/foo.foo' file (or directory actually)
Rollabunna has quit [Read error: Connection reset by peer]
<[k-> your code confuses me
<shevy> yeah
<shevy> my code becomes progressively less cool meta magic and more boring
minimuffins has quit [Ping timeout: 255 seconds]
jordanloky has joined #ruby
fgo has joined #ruby
evillution has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> you coded like a crazy person
eGGsha has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
lele is now known as Guest24
tmtwd has quit [Ping timeout: 256 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jas02 has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
Aambri has left #ruby [#ruby]
dgutierrez1287 has joined #ruby
Macaveli has joined #ruby
RegulationD has joined #ruby
bruno- has joined #ruby
ecksit has joined #ruby
Mendenhall has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
duncannz has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
Limix has quit [Quit: Limix]
evillution has quit [Quit: evillution]
evillution has joined #ruby
DoubleMalt has joined #ruby
dionysus69 has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
roxtrongo has quit [Ping timeout: 256 seconds]
khebbie has quit [Remote host closed the connection]
allomov has joined #ruby
kfpratt has joined #ruby
znz_jp has joined #ruby
eightfold has quit [Quit: eightfold]
failshell has joined #ruby
aswen has joined #ruby
charliesome has joined #ruby
Musashi007 has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
devoldmx has joined #ruby
acosonic has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
majjoha has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
mozzarella has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
Mendenhall has joined #ruby
evillution has quit [Quit: evillution]
kfpratt has quit [Ping timeout: 250 seconds]
Timba-as has joined #ruby
arooni-mobile has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
xcesariox has joined #ruby
wldcordeiro__ has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
stan has joined #ruby
evillution has joined #ruby
wldcordeiro__ has quit [Client Quit]
wldcordeiro__ has joined #ruby
mozzarella has joined #ruby
benlovell has joined #ruby
vondruch has joined #ruby
<atmosx> shevy: confuses me too. Sometimes I see things I wrote in the past, and I can't believe the fact that I did that.
EllisTAA has left #ruby [#ruby]
benlovell has quit [Ping timeout: 260 seconds]
<XrayD> atmosx: maybe you didnt ;)
xcesariox has quit [Ping timeout: 250 seconds]
lampshades has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
<atmosx> XrayD: no I did. It usually looks ugly, but some times I'm amazed I wrote methods or that method. Another issue is that some times I use oneliners or snippets I found on SO. If I do this without adding comments later on I have a hard time understanding right away what that code does.
<XrayD> atmosx: i got your point. i am just saying, that there is no proof that you are guilty.. may some else did that... ^^ some evil guy ..
<XrayD> that helps me coping with that :D
<atmosx> heh
dumdedum has joined #ruby
ordepdev has joined #ruby
XrayD is now known as scepticulous
renderful has quit [Ping timeout: 252 seconds]
Aswebb_ has quit [Remote host closed the connection]
grenierm has quit [Quit: grenierm]
greenarrow has joined #ruby
Mendenhall has joined #ruby
Aswebb_ has joined #ruby
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
zeroDivisible has quit [Ping timeout: 244 seconds]
allomov has quit [Remote host closed the connection]
lxsameer has joined #ruby
baweaver has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
MasterPiece has quit [Ping timeout: 260 seconds]
auzty has joined #ruby
ordepdev has quit [Remote host closed the connection]
<shevy> atmosx yeah
jonnie has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
renderful has joined #ruby
lipoqil has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cloudbud has joined #ruby
sigurding has quit [Quit: sigurding]
Guest24 is now known as lele
<cloudbud> what is this code doing http://pastebin.com/1AMHv2NZ
<ruboto> cloudbud, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/dcdb6fd1953af938affe
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
sigurding has joined #ruby
<cloudbud> means can anybody explain the syntax
yfeldblu_ has quit [Ping timeout: 244 seconds]
<shevy> Ohai::Config[:plugin_path] = is an assignment
pepperbreath has joined #ruby
<shevy> it will assign to an Array
<shevy> that's pretty ugly code
btcquant has joined #ruby
<btcquant> Hi - I'm a python coder who is attempting to read some Ruby code. Don't understand syntax of one line and was hoping somine could explain it to me. Line is: file_url.split('/')[3..-1].join('/')
rushed has joined #ruby
clarkenciel has quit [Remote host closed the connection]
<cloudbud> shevy : what does this mean [node['ohai']['plugin_path'], Ohai::Config[:plugin_path]].flatten.compact
fgo has quit [Ping timeout: 246 seconds]
<sevenseacat> at least its a different hash this time
aaeron1 has quit [Ping timeout: 244 seconds]
tesuji_ has joined #ruby
<cloudbud> sevenseacat : what does this :: mean
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> btcquant: I believe split you have in python too, should work the same
<btcquant> apeiros Thanks!
<jhass> btcquant: [3..-1] is [3:]
<apeiros> btcquant: array[3..-1] gets all elements from offset 3 to the end
btcquant has left #ruby ["Textual IRC Client: www.textualapp.com"]
<apeiros> btcquant: and join again works the same as in python, just that you don't do string.join(array), but the other way round: array.join(string)
<apeiros> at least iirc. my python isn't exactly stellar :)
eGGsha is now known as eGGshke
<jhass> they already left >.<
Ox0dea has joined #ruby
<apeiros> oh
<jhass> cloudbud: starting reading a ruby tutorial yet?
<apeiros> lol
<apeiros> I assumed their problem would be 3..-1
<apeiros> interesting if their problem was really split
<cloudbud> jhass : can you suggest agood one
<Ox0dea> apeiros: The real problem was using that sort of approach to remove the 'file:///' prefix.
<jhass> cloudbud: I did when you first dropped in here, https://pine.fm/LearnToProgram/
lulzmachine has joined #ruby
nzst has joined #ruby
majjoha has joined #ruby
youch has quit [Quit: Konversation terminated!]
<apeiros> Ox0dea: I'm not eve awake enough yet to have seen that, lol
<apeiros> Ox0dea: yeah, a rather bad way
khebbie has quit [Remote host closed the connection]
<apeiros> at least file urls don't end with /, otherwise that'd even be broken.
<apeiros> >> str = "hello/world/"; str.split("/").join("/") == str
<ruboto> apeiros # => false (https://eval.in/427866)
<apeiros> >> str = "hello/world/"; str.split("/", -1).join("/") == str
<ruboto> apeiros # => true (https://eval.in/427867)
<apeiros> ^ pesky little tidbits to know.
jgt has joined #ruby
skullcrasher has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jordanloky has quit [Ping timeout: 268 seconds]
nzst has quit [Ping timeout: 246 seconds]
eGGshke is now known as eGGsha
khebbie has joined #ruby
codenapper has quit []
codenapper has joined #ruby
fschuindt1 has joined #ruby
leat has quit [Remote host closed the connection]
marr has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
juanpablo____ has joined #ruby
leat has joined #ruby
claw has quit [Ping timeout: 250 seconds]
evillution has quit [Quit: evillution]
wldcordeiro__ has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 250 seconds]
fschuindt1 has quit [Ping timeout: 244 seconds]
wldcordeiro__ has joined #ruby
CloCkWeRX has joined #ruby
livathinos has joined #ruby
livathinos has quit [Client Quit]
juanpablo____ has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
yfeldblum has joined #ruby
glenn_ has quit [Ping timeout: 240 seconds]
ohaibbq has quit [Quit: Leaving...]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zlogan has joined #ruby
senayar has joined #ruby
howdoi has joined #ruby
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> cloudbud did you not read the reply?
dhjondoh has quit [Quit: dhjondoh]
<cloudbud> shevy : read that
davedev2_ has quit [Remote host closed the connection]
<shevy> \o/
<shevy> it's just an assignment there
davedev24 has joined #ruby
<cloudbud> shevy : what does :: do
<cloudbud> like ohai:: config
<shevy> cloudbud you scope to something
<shevy> it's capitalized Ohai not ohai
<Ray`> it's namespacing right?
<apeiros> yes
<shevy> cloudbud means there may be a module Ohai, and inside that, a module Config. To address the latter it is Ohai::Config
<cloudbud> Shevy ok
<cloudbud> shevy ok
<Ray`> guess my memeory isn't as bad as I thought
<Ray`> my spelling is though
<shevy> lol
dhjondoh has joined #ruby
<Ox0dea> shevy: :: is also method invocation, mind. :P
<shevy> why
<shevy> do
<shevy> you
krisquigley has joined #ruby
<shevy> always write this to me
joonty has joined #ruby
<sp_> God.
<apeiros> yes?
<shevy> hehehe
davedev24 has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
leat has quit [Ping timeout: 255 seconds]
gguggi has joined #ruby
zlogan has quit [Remote host closed the connection]
<shevy> apeiros hmm... you wrote some games in ruby didn't you? that card game... then I think some space explorer one... is the code to any of them available?
kjones_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> shevy: sadly I didn't really get far with any of those
claw has joined #ruby
<Ray`> I've had issues with the opengl binding libs for ruby in terms of speed
Dreamer3 has quit [Ping timeout: 252 seconds]
charliesome has quit [Client Quit]
bubbys has quit [Ping timeout: 264 seconds]
<Ray`> I've been working on a 3D cellular automata system, ended up having to rewrite it in C, and my C kinda sucks
terlar has joined #ruby
<Ray`> I can write it but I'm no expert
<Ox0dea> Ray`: Why not WebGL?
gguggi has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
mbuf has quit [Quit: rcirc on GNU Emacs 24.4.1]
<Ray`> that's something I'm considering now
ghr has joined #ruby
<Ray`> I gave it a shot early on but WebGL still wasn't mature enough, this is a project I've had sitting around for a year or two
<Ray`> the thing is, unlike with 2D cellular automata, a lot of the 3D rulesets have no interesting behaviour
<Ray`> so I've had to implement a set of metrics for measuring "interesting" activity, and evolve different rulesets via a genetic algorithm
<Ray`> I'm trying not to cheat by reading the existing papers on the topic
chussenot has joined #ruby
f-pound-at-bang has quit [Quit: F...ix you, Emacs!]
CloCkWeRX has quit [Ping timeout: 240 seconds]
pyon is now known as f-pound-at-bang
chthon has joined #ruby
charliesome has quit [Client Quit]
zlogan has joined #ruby
naftilos76 has joined #ruby
bazbing80 has joined #ruby
charliesome has joined #ruby
Dreamer3 has joined #ruby
Caelum has quit [Ping timeout: 256 seconds]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> morning
bubbys has joined #ruby
<apeiros> moin yorickpeterse
ebbflowgo has joined #ruby
<cloudbud> what is this chomp method in Ruby !!
<Ox0dea> cloudbud: Programs sometimes get hungry.
dionysus69 has joined #ruby
<Ox0dea> It's nothing to worry about.
<apeiros> &ri String#chomp
khebbie has quit [Remote host closed the connection]
<apeiros> cloudbud: ^
<apeiros> documentation is your friend for such things
jonnie has quit [Ping timeout: 246 seconds]
wldcordeiro__ has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
leat has joined #ruby
khebbie has joined #ruby
benlovell has joined #ruby
<apeiros> wtf? no Regexp#capture_hash or similar?
yeticry has quit [Read error: Connection reset by peer]
fgo has joined #ruby
patrick_star has quit [Ping timeout: 260 seconds]
<apeiros> how annoying. well then, another monkey-patch
patrick_star has joined #ruby
CloCkWeRX has joined #ruby
<jhass> You mean MatchData btw :P
mary5030 has joined #ruby
jonnie has joined #ruby
<apeiros> true
<apeiros> just stumbled over this in my monkeypatch when I tried it :D
<apeiros> `names.map(&:to_sym).zip(captures).to_h`
<apeiros> not too difficult luckily
RegulationD has quit [Ping timeout: 255 seconds]
<jhass> mmh, why do you need a hash though?
<jhass> MatchData#[] is not enough?
<apeiros> oh
<apeiros> because I want to pass it on
allomov has joined #ruby
<apeiros> I just noticed that above is incorrect, though
<apeiros> in case of unnamed captures
<apeiros> oh, can't mix them?
allomov has quit [Read error: Connection reset by peer]
<apeiros> interesting
allomov has joined #ruby
allomov has quit [Read error: Connection reset by peer]
<apeiros> have a single named capture - all unnamed captures are gone
<apeiros> >> "hello world".match(/(\w+) (?<b>\w+)/).captures
<ruboto> apeiros # => ["world"] (https://eval.in/427881)
allomov has joined #ruby
jokke- has quit [Quit: ninja vanish]
<jhass> scary
<apeiros> somewhat
<jhass> >> "foo bar".match(/(?<a>foo) (bar)/)[2]
<ruboto> jhass # => nil (https://eval.in/427882)
mary5030 has quit [Ping timeout: 272 seconds]
<apeiros> I didn't know that
<adaedra> >> "hello world".match(/(\w+) (?<b>\w+)/).to_a
<ruboto> adaedra # => ["hello world", "world"] (https://eval.in/427883)
fgo has quit [Ping timeout: 244 seconds]
<apeiros> I expected MatchData[0] and [:b] to be present in my example
<adaedra> ah, ok
yeticry has joined #ruby
<apeiros> err, MatchData[1] of course (since 0 is full match)
apfeluser has joined #ruby
apfeluser has quit [Max SendQ exceeded]
apfeluser has joined #ruby
rakm has joined #ruby
failshell has joined #ruby
TheMoonMaster has quit [Ping timeout: 246 seconds]
jokke- has joined #ruby
einarj has joined #ruby
radgeRayden_ has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
Asher has quit [Quit: Leaving.]
jgt has joined #ruby
devoldmx has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
failshell has quit [Ping timeout: 264 seconds]
diego_ar has joined #ruby
TheMoonMaster has joined #ruby
<bazbing80> quit
bazbing80 has quit [Quit: leaving]
kfpratt has joined #ruby
Asher has joined #ruby
apfeluser has quit [Ping timeout: 246 seconds]
allomov_ has joined #ruby
Cust0sLim3n has quit [Ping timeout: 255 seconds]
skullcrasher has quit [Remote host closed the connection]
diego_ar has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
allomov has quit [Ping timeout: 240 seconds]
aswen has quit [Ping timeout: 260 seconds]
kfpratt has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
allomov has joined #ruby
Caelum has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
aswen has joined #ruby
allomov_ has quit [Ping timeout: 250 seconds]
khebbie has quit [Remote host closed the connection]
shredding has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
Cust0sLim3n has joined #ruby
ahmetkapikiran has joined #ruby
g0rx has quit []
ebbflowgo has quit [Quit: ebbflowgo]
neozor has joined #ruby
<neozor> Hello
<neozor> i have a simple question, with boolean operator
<shevy> hi neozor
<neozor> can anyone help me?
<shevy> if you ask the question
<shevy> ;-)
<neozor> ok
<neozor> ;)
<neozor> i have this expression
AlxAltea has joined #ruby
<neozor> current_user.has_role? :freelancer && @task.status == 'CLIENT-AGREED'
<neozor> this returns false, even s both expression separetely without the && operator are both true
<apeiros> neozor: precedence
arup_r_ has quit [Remote host closed the connection]
<apeiros> your expression is evaluated as current_user.has_role?(:freelancer && @task.status == 'CLIENT-AGREED')
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
UtkarshRay has joined #ruby
<neozor> what should i do? use the parenthesis?
<apeiros> yes
<shevy> yeah
<neozor> if i do the same expression but with the 'and' operator
<neozor> it returns true
<apeiros> an alternative would be to use `and` instead of `&&`, but personally I prefer parens
<shevy> no need to guess when you use ()
eGGsha is now known as eGGshke
<apeiros> yes. `and` has different precedence than `&&`
<ghr> +1 on parens
<neozor> +1 on this IRC, thank you very much
<neozor> i will read more about precedence
<neozor> i prefer && too, but i didn't what was happening
<apeiros> `and` has other issues, like for example this would not be valid: `has_role = current_user.has_role? :freelancer and @task.status == 'CLIENT-AGREED'`
DoubleMalt has quit [Remote host closed the connection]
<neozor> because there is an assigment in the expression?
tvw has quit []
<apeiros> yes
<neozor> Ok, thank you
<Ray`> I think I've been using parentheses for clarity since BODMAS, because precedence can be annoying
<apeiros> BODMAS?
<Ray`> it's an acronym we got taught in math class for precedence in mathematical operators
Igorshp has joined #ruby
<shevy> hmm
Igorshp has quit [Remote host closed the connection]
<Ray`> I think in the US people use PEDMAS
Igorshp has joined #ruby
<Ray`> since british english uses brackets to mean parentheses
<Ray`> Brackets, Order, Divide, Multiply, Add, Subtract
<sevenseacat> we got taught BODMAS, yeah
sigurding has quit [Quit: sigurding]
<shevy> australia!
_djbkd has quit [Remote host closed the connection]
skullcrasher has joined #ruby
<sevenseacat> 'straya. *nods*
<neozor> BODMAS is a good way to remember
<neozor> i didn't know it
<apeiros> Ray`: but, but, but! that's missing factorial and exponentiation!
chussenot has quit [Quit: chussenot]
<Ray`> haha true, but this was high school math
<shevy> lol
<Ray`> once I got to doing college physics I had to internalize a lot of things
<Ray`> but used parentheses a lot in my calculations for clarity, since when the calculation spans like 7 pages
<neozor> and operator is one of the last in precedence
<neozor> the 'and'
startupality has joined #ruby
<Ray`> PEDMAS includes exponents, that's missing from BODMAS
<Ray`> hadn't noticed that before
sigurding has joined #ruby
bruno- has joined #ruby
<Ray`> guess you could class it as order
* Ray` grumbles and goes to dig out his textbooks again
crazydiamond has joined #ruby
chussenot has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
eGGshke is now known as eGGsha
codecop has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 252 seconds]
vmatiyko has quit [Ping timeout: 268 seconds]
leafybasil has quit [Ping timeout: 246 seconds]
skullcrasher has quit [Ping timeout: 250 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
eGGsha is now known as eGGshke
ecksit has joined #ruby
<shevy> neozor yeah; 'and' and 'or' should be lower than && and ||
ecksit has quit [Client Quit]
skullcrasher has joined #ruby
fgo has joined #ruby
neozor has quit [Quit: Page closed]
arup_r has joined #ruby
DoubleMalt has joined #ruby
fschuindt1 has joined #ruby
oo_ has quit [Remote host closed the connection]
<canton7> Ray`, "Orders" refers to powers, roots, etc
krz has quit [Quit: WeeChat 1.2]
eGGshke is now known as eGGsha
oo_ has joined #ruby
juanpablo____ has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
leat has quit [Remote host closed the connection]
nzst has joined #ruby
skade has joined #ruby
fschuindt1 has quit [Ping timeout: 255 seconds]
leat has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
juanpablo____ has quit [Ping timeout: 265 seconds]
<[spoiler]> Hi!
skade has quit [Client Quit]
sdwrage has quit [Quit: This computer has gone to sleep]
nzst has quit [Ping timeout: 264 seconds]
bubbys has quit [Ping timeout: 260 seconds]
<shevy> hey spoiler
<shevy> I see you are still trapped in an Array
<[spoiler]> shevy: yeah, i'm alone too :(
leafybasil has joined #ruby
<shevy> we could always add someone else from here via <<
<shevy> ruby dating
<[spoiler]> LOL
chussenot has quit [Quit: chussenot]
* [spoiler] wouldn't mind
<apeiros> [spoiler] << warning
<apeiros> perfect couple
<shevy> lol
<shevy> that was taken quite literally so
<[spoiler]> warreng, you come close enough. hi. Are you single?
infinite1tate is now known as infinitestate
<[spoiler]> I'm cute, I promise
infinitestate has left #ruby [#ruby]
<shevy> I don't know... that warning associated with you is quite scary
<shevy> you may have to persist for a bit longer as a singleton
<[spoiler]> :(
rubie has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
khebbie has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
Soda has joined #ruby
bubbys has joined #ruby
dmolina has joined #ruby
Voker57 has joined #ruby
ebbflowgo has joined #ruby
<adaedra> [spoiler].clear
moeabdol has quit [Quit: WeeChat 1.3]
platzhirsch has joined #ruby
khebbie has joined #ruby
moeabdol has joined #ruby
skade has joined #ruby
fella6s has quit [Ping timeout: 265 seconds]
northfurr has joined #ruby
fschuindt1 has joined #ruby
zlogan has quit [Ping timeout: 250 seconds]
<waxjar> Using minitest, is there a way to get the name of a test that is about to run / has just ran in the setup and teardown hooks?
autrilla has joined #ruby
khebbie has quit [Remote host closed the connection]
<darix> adaedra: [spoiler].alert is better
leat has quit [Ping timeout: 268 seconds]
jordanloky has joined #ruby
<[k-> [spoiler].reject(&:itself)
tvw has joined #ruby
<[k-> ooooooo
coffeecupp has joined #ruby
<[k-> [spoiler].map { spoiler }
zlogan has joined #ruby
mikecmpbll has joined #ruby
<[k-> >> puts [[["spoiler"]]].pop.pop.inspect
<ruboto> [k- # => ["spoiler"] ...check link for more (https://eval.in/427935)
<[k-> damn
<[k-> wanted to remove that ""
Hounddog has joined #ruby
<[k-> oh!!! to_s!
k3asd` has joined #ruby
<arup_r> some people write variables with a leading underscore like _var2, _var1 in method parameter list.. What is the reason?
Rickmasta has joined #ruby
<adaedra> to mark them as unused I think
<[k-> these are temp variablss
scripore has joined #ruby
<[k-> they mean that, you can safely ignore this variable as it is used for an intermediate step
<arup_r> then why they need it in the method parameter list ?
Porfa has joined #ruby
codecop has quit [Remote host closed the connection]
<arup_r> leading `_` suppress warnings if it is declared and not uses AFAIK
<arup_r> Which I use say hash.each { |_, v| #some work with k }
<arup_r> this is I know
<arup_r> but that pattern I just mentioned I am not aware of
dhjondoh has quit [Quit: dhjondoh]
scripore has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
<[k-> maybe give an example?
rubie has quit [Remote host closed the connection]
<Porfa> hello…! can anyone help me out..? i need to install some sdk (ORACLE DB OCI) and i need the OCI8 gem.. but i need the right version (32bits or 64bits installed according to my ruby version) the thing is, i can't find out if i have 32 or 64 bits ruby… ruby -v says --- x86_x64
<jhass> then it's a 64bit ruby
<Porfa> and all examples i saw on google either show x86 or x64.. so I'm confused
<Porfa> thanks jhass !! :)
skade has quit [Quit: Computer has gone to sleep.]
scripore has joined #ruby
<bubuntu> x64 is actually a weired name
timonv has joined #ruby
sigurding has quit [Quit: sigurding]
scripore has quit [Client Quit]
coffeecupp has quit [Ping timeout: 250 seconds]
<jhass> they typoed it, it's x86_64
<arup_r> Evening I will show the code.. I have to work on some other people code.. So I was reading the code. there I saw in a initialize method they had used such vars.
ahmetkapikiran has joined #ruby
RegulationD has joined #ruby
<[spoiler]> Pfft, you keep poking fun at my loneliness :( cruel
<Ray`> canton7: yep, realized that after I said it, I definitely need more sleep
<canton7> :)
<Ray`> for some reason I figured that an exponent could be expressed in terms of a power, but then was like wat?
jeadre has quit [Remote host closed the connection]
phutchins has joined #ruby
skade has joined #ruby
coffeecupp has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeadre has joined #ruby
dhjondoh has joined #ruby
stamina has joined #ruby
failshell has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Mendenhall has quit [Ping timeout: 246 seconds]
zlogan has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
duncannz has joined #ruby
decoponio has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
Voker57 has quit [Read error: Connection reset by peer]
zlogan has joined #ruby
Juanchito has joined #ruby
rodfersou has joined #ruby
oo_ has joined #ruby
kfpratt has joined #ruby
<shevy> what is 10 ** 0
devoldmx has joined #ruby
<jhass> 0
<shevy> you used irb!
Hounddog has quit [Read error: Connection reset by peer]
<jhass> nope
<shevy> let's ask Ray`
<jhass> (and I'm lying ;) )
<jhass> 0 ** 0 is way more interesting though
<shevy> I actually saw that question today in a textbook and was a bit confused
arturaz has joined #ruby
Siyfion has joined #ruby
<Ray`> haha shevy
<[k-> 10 ** 0 is 1 ==_==
<tbuehlmann> I agree, I'd have expected 1
<Ray`> anything raised to the power of zero should technically be 1 mathematically
<bubuntu> >> 10 ** 0
<ruboto> bubuntu # => 1 (https://eval.in/427962)
<[k-> did you not believe?
<shevy> >> 0 ** 0
<[k-> 0 ** 0 is also 1
<ruboto> shevy # => 1 (https://eval.in/427965)
<tbuehlmann> not everything, but well
<[k-> did you not believe?
<tbuehlmann> one can argue about 0^0
marwinism has joined #ruby
<Ray`> what's i^0?
<bubuntu> jhass is spreading missinformation on purpose
leat has joined #ruby
<jhass> what's 0 ** pi
<shevy> lol
<shevy> what kind of questions are you people asking there
<shevy> ack
<shevy> >> 0 ** Math::PI
<ruboto> shevy # => 0.0 (https://eval.in/427969)
<jhass> and 0 ** tau ?
<shevy> ohhh we are safe... I thought 0.0 is different from 0
<Ray`> I knew it, a tauist
<shevy> a more accurate version of 0!
<jhass> actually less accurate
<Ray`> nobody answered the i one, it's 11
<Ray`> err, 1!
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 268 seconds]
* Ray` curses his fingers
<jhass> 0 ** (10 ** 0) ?
rushed has quit [Quit: rushed]
<Ray`> 0
<jhass> so what's 0 ** 0?
<shevy> you guys are using irb ...
<Ray`> wait no
<Ray`> yes
<[k-> 1
kfpratt has quit [Ping timeout: 264 seconds]
<jhass> well, according to ruby
<Ray`> it should be zero
bruno- has quit [Read error: Connection reset by peer]
<jhass> but given the definitions for 0 ** x and x ** 0
<shevy> it's logical... nothing to the power of nothing is more than nothing
<Ray`> 10 ** 0 = 1
eGGsha is now known as eGGshke
<Ray`> 0 to the power of 1 is itself, 0
<[k-> ah yes, my mistae
<[k-> ke
jgt has quit [Ping timeout: 272 seconds]
<Ray`> don't worry about it, I'm not particularly sharp today
<shevy> [k- are you typing on your smartphone again?
<[k-> yes
<shevy> :)
<Ray`> what's i^i?
<Ray`> (easy one)
<Ray`> or j^j if you're an engineer
skade has quit [Quit: Computer has gone to sleep.]
<jhass> we can ask ruby
auzty has quit [Quit: Leaving]
<jhass> >> 1+1i ** 1+1i
<ruboto> jhass # => (1+2i) (https://eval.in/427984)
<jhass> >> 0+1i ** 0+1i
<ruboto> jhass # => (1+1i) (https://eval.in/427985)
<shevy> [k- god that is scary
<jhass> >> 1i ** 1i
<ruboto> jhass # => (0.20787957635076193+0.0i) (https://eval.in/427988)
acosonic has quit [Quit: MegaIRC v4.06 http://ironfist.at.tut.by]
<[spoiler]> wat
leat has quit [Ping timeout: 250 seconds]
<[k-> this means that you cant ** i
<jhass> yeah, guess the precedence rules go beserk for complex number literals
<Ray`> it's more difficult to work with in ruby
bruno- has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
benlovell has quit [Ping timeout: 256 seconds]
<[spoiler]> Ray`: those rendered images of equations burn my delicate eyesight
<Ray`> filed under stuff that will make your head spin
<Ray`> haha it reminds me of when I first encountered the schrodinger equation and was like "what have I gotten myself into"
vondruch has quit [Quit: Ex-Chat]
<[spoiler]> no, it's just that they look ugly on my screen
<Ray`> that too, I don't get why they did it that way
<[spoiler]> I'd have more success reading tex than that
dhjondoh has joined #ruby
<Ray`> looks like an old page though
<[spoiler]> yeah good point
eGGshke is now known as eGGsha
astrobunny has quit [Read error: Connection reset by peer]
Spami has joined #ruby
astrobunny has joined #ruby
Igorshp has quit [Remote host closed the connection]
<[k-> your face is a good point :D
platzhirsch has left #ruby [#ruby]
dhjondoh has quit [Client Quit]
Igorshp has joined #ruby
<Ray`> well, there goes my productivity, now I'm fixated on that proof
bronson has joined #ruby
shredding has quit [Ping timeout: 264 seconds]
northfurr has quit [Quit: northfurr]
<shevy> hmm
<shevy> Ray`
<shevy> write some ruby project
skade has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> write some theorem prover
bronson has quit [Ping timeout: 260 seconds]
<Ray`> I think I'm done, paper and pencil put away, time to write some ruby
oo_ has quit [Remote host closed the connection]
<[k-> (and a theorem prover)
oo_ has joined #ruby
<Ray`> haha don't give me ideas!
tkuchiki has quit [Remote host closed the connection]
<workmad3> [k-: theorem provers are fun
<[k-> Ray`: workmad3 said theorem provers are fun
<apeiros> but then you need a theorem prover prover
* Ray` throws his copy of Godel, Escher Bach at [k-
<[k-> we already have those
<jhass> make a theorem prover quine
<jhass> (don't tell me that's not how it works!)
<apeiros> that's not how it works, jhass
<apeiros> damit. ok. suffix nick in case of absent prefix nick will be added as "message.to"
<jhass> xD
dionysus70 has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
<jhass> but require the ',', I'd prefer the false negatives over the false positives
<apeiros> hm, I'll leave the requirement away but check after a month of logs or so
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
fella5s has joined #ruby
tesuji_ has quit [Ping timeout: 240 seconds]
allomov_ has joined #ruby
allomov has quit [Read error: Connection reset by peer]
<apeiros> hurray for complex expressions…
<apeiros> extract_nick = /^[@<#]?(#{@connection.parser.expression.nick})[:,> ]|(?<=\A|[^A-Za-z\d\[\]\\`_^{|}-])(#{@connection.parser.expression.nick}) *[.?!]\z/n
<apeiros> could be worse.
<shevy> haha
<shevy> this code is trying to become alive
<apeiros> I guess I can drop the \A
fschuindt1 has quit [Quit: WeeChat 1.2]
<[k-> ewww
yfeldblum has quit [Ping timeout: 244 seconds]
<[k-> even i don't write regexps like that
<apeiros> [k-: and you haven't even *seen* the regex hiding in @connection.parser.expression.nick!
revoohc has joined #ruby
<[k-> i should abstract my new regexps
<[k-> i only wanted to remove common things in the source file
but3k4 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
allomov has joined #ruby
juanpablo____ has joined #ruby
moeabdol has quit [Ping timeout: 268 seconds]
sarkyniin has joined #ruby
platzhirsch has joined #ruby
allomov_ has quit [Read error: Connection reset by peer]
chills42 has joined #ruby
jgt has joined #ruby
coffeecupp has quit [Remote host closed the connection]
meph has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
ldnunes has joined #ruby
ebbflowgo has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby
jdawgaz has joined #ruby
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby
<[spoiler]> apeiros: that looks like headache
<[k-> i can somehow understand the part before |
sigurding has joined #ruby
<[k-> why the # though
fgo has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
einarj has quit [Remote host closed the connection]
<[k-> apeiros: A-Za-z\d is just \w iirc
nzst has joined #ruby
<apeiros> [k-: nope
<apeiros> \w also includes _
<[k-> but nicks have _
<[spoiler]> A-Za-z also doesn't include all those locale-specific thinfs
<apeiros> the # is because jhass said he got hashtagged in irc
einarj has joined #ruby
<[spoiler]> and the fancy letters
<[spoiler]> w/e those are called
<apeiros> [spoiler]: \w doesn't either
senayar has quit [Remote host closed the connection]
<apeiros> only in 1.8 with //u it did
<[spoiler]> apeiros: doesn't it include non-ascii letters?
<apeiros> in 1.9+ \w is always precisely A-Za-z0-9_
<[spoiler]> ah
<apeiros> a good change IMO
senayar has joined #ruby
<[spoiler]> hmm. I am not sure if it is or isn't
<apeiros> \p{word} for the old \w in //u
<[k-> [^\w\[\]`\\^{|}-]
<[spoiler]> oh! they added that, that's cool
<[spoiler]> ok yeah
<apeiros> [spoiler]: as said, \w is NOT equivalent.
<[spoiler]> It's a good change then
<apeiros> whoops
<apeiros> [k-: : as said, \w is NOT equivalent.
<apeiros> (sorry [spoiler])
joonty has quit [Quit: joonty]
<[k-> you look like you are doing the equivalent
<[spoiler]> I figured you meant [k- haha
<[k-> in 1.9+?
<apeiros> [k-: again, "_"
<[spoiler]> apeiros: isn't _ allowed in nicks, tho?
<apeiros> no
<apeiros> oh, wait
<[k-> yes it s
<[k-> ......
<apeiros> indeed
<[spoiler]> a
* apeiros puzzled
<[spoiler]> haha :D
* [k- slaps apeiros with a large trout
[spoiler] is now known as _spoiler_
<_spoiler_> ye
<apeiros> you're free!
<[k-> how many times did you *not* notice my trout :(
_spoiler_ is now known as [spoiler]
<[spoiler]> oh no, they snapped back up
<[k-> my _*
nzst has quit [Ping timeout: 246 seconds]
zlogan has quit [Ping timeout: 264 seconds]
dgutierrez1287 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Cust0sLim3n has quit [Ping timeout: 240 seconds]
<[spoiler]> [k- maybe apeiros ignores _, like some languages ignore it when used in arguments
<apeiros> [k-: I could actually simplify it even more
khebbie has joined #ruby
<[spoiler]> apeiros: .*
<[spoiler]> :D
<apeiros> in a *valid* manner
<[spoiler]> oh
<[spoiler]> what're you trying to extract the nick from, though?
bubbys has quit [Ping timeout: 244 seconds]
<apeiros> [\-\d\x41-\x7d] == [A-Za-z\d\[\]\\`_^{|}-]
syath has joined #ruby
benlovell has joined #ruby
<apeiros> [spoiler]: everything you say. ruboto's logging mechanism.
bubbys has joined #ruby
<[k-> eww
<apeiros> maybe I left the regex as-is so it's closer to the BNF of the RFC. not sure.
<[spoiler]> ah
<[k-> dont make it less expressive!
<[k-> Ox0dea is interested in a logging mechanism too
<[k-> perhaps work together?
<apeiros> anyway, I guess [\w\[\]\\`^{|}-] is an improvement over [A-Za-z\d\[\]\\`_^{|}-]
skade has joined #ruby
arturaz has quit [Remote host closed the connection]
moeabdol has joined #ruby
<[k-> he is interested in logging relations between people iirc
<apeiros> ruboto does that
<apeiros> it logs threads
<[spoiler]> threads?
<apeiros> it's not fully implemented yet, though
<apeiros> message threads
husanu has quit [Remote host closed the connection]
<[spoiler]> how do you tag the beginning/end of a message thread, like from a logical perspective
<[k-> he wants something greppable nick->nick2
husanu has joined #ruby
<[k-> and he can get everything relating those people
<apeiros> [spoiler]: for 1-1 discussions it's easy - from first mention until mentioning somebody else
<[spoiler]> ah
<apeiros> for n-n discussions it's more difficult
<[k-> we aren't supposed to ping people unnecessarily!
<[k-> maybe locate similar terms?
Igorshp has quit [Remote host closed the connection]
[k-_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
<[spoiler]> seems like it could be a bit wonky
dmolina has quit [Quit: Leaving.]
<apeiros> quite possible
<apeiros> humans have little problems figuring that a message was directed at them from context, without name ping
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<apeiros> I'll see how well it works :)
<apeiros> I'll also consider temporal proximity
<shevy> you are so attractive
benlovell has quit [Ping timeout: 272 seconds]
<apeiros> but I don't think I'll evaluate anything else besides that and mentions
<shevy> (let's see how many figure that this message was directed at them!)
<apeiros> shevy: everybody will think it was directed at them!
benlovell has joined #ruby
<[k-_> i thought it was directed at apeiros (1st pass)
<shevy> you are trying the flattery approach here [k-_ !
<shevy> oh... now I understand how plenking happens
<[k-_> or are you the one trying the flattery approach
<shevy> your face!!!
<[k-_> and it became undefined (2nd pass)
<[k-_> because shevy never says such nice things!
husanu has quit [Remote host closed the connection]
<shevy> I am in the process of being able to do something other than ruby soon
<shevy> *something else other than ruby, that is
husanu has joined #ruby
wldcordeiro__ has joined #ruby
Cust0sLim3n has joined #ruby
<apeiros> shevy: you learn php?!?
<[k-_> like monads?
<shevy> I can't stand php anymore :(
<shevy> [k-_ I dunno
<apeiros> shevy: you code php while lying?
<shevy> I used haskell some years ago... I didn't hate it, didn't dislike it either... more like neutral
<shevy> nah, I tried to write php code again, my brain just flat out refuses
<apeiros> so you liked it?
<[k-_> you arent a maths person
joonty has joined #ruby
<apeiros> (didn't hate, didn't dislike…)
<[k-_> you do not see the elegance
<shevy> before I knew ruby
vondruch has joined #ruby
<shevy> [k-_ I dunno, haskell code can be elegant
<[spoiler]> I knew it wasn't directed at me :(
nzst has joined #ruby
devoldmx has joined #ruby
<[spoiler]> I am very proficient in writing good PHP, which is my dirtiest secret
diego_ar has joined #ruby
<[k-_> [spoiler]: this is the conversation x . (you are here)
iamninja has quit [Read error: Connection reset by peer]
xrlabs has joined #ruby
<[spoiler]> [k-_: ¬_¬
<shevy> I wouldn't know what to write in haskell though
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
wldcordeiro__ has quit [Read error: Connection reset by peer]
wldcordeiro__ has joined #ruby
wldcordeiro__ has quit [Client Quit]
eGGsha is now known as eGGshke
wldcordeiro__ has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
Igorshp has joined #ruby
NeverDie has joined #ruby
failshell has joined #ruby
meatherly has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
NeverDie has quit [Client Quit]
poli has joined #ruby
eGGshke is now known as eGGsha
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
Porfa has quit [Quit: Porfa]
sigurding has quit [Quit: sigurding]
sdothum has joined #ruby
failshell has quit [Ping timeout: 264 seconds]
wldcordeiro__ has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
leat has joined #ruby
diego_ar has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 244 seconds]
sigurding has joined #ruby
michael_mbp has quit [Excess Flood]
allomov_ has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
allomov has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
atomical has joined #ruby
naftilos76 has quit [Ping timeout: 265 seconds]
dumdedum has quit [Quit: foo]
bmurt has joined #ruby
jonnie has quit [Ping timeout: 252 seconds]
Queeniebee has quit [Ping timeout: 246 seconds]
ruby-lang314 has joined #ruby
RegulationD has joined #ruby
<nzst> [spoiler]: just sounds like you know how to get your bills paid, re: php
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
husanu has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
xet7_ has quit [Ping timeout: 246 seconds]
husanu has joined #ruby
CloCkWeRX has joined #ruby
<[spoiler]> nzst: I am not a PHP devloper anymore, but I learned it in primary school and worked with it in highschool, then i discovered Ruby! I still keep up to date with PHP, because there's no point in dropping a language since I spent so much with it (but I am not a fan of PHP, never really was), and I work for a hosting company, PHP/shared hosting is the majority of our client
solars has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
<[spoiler]> I never even worked as a PHP developer :P
Rickmasta has joined #ruby
sepp2k has joined #ruby
<shevy> the php millionaire!
arup_r has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 260 seconds]
k3asd` has quit [Ping timeout: 256 seconds]
maloik has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby
arup_r has joined #ruby
husanu has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 272 seconds]
<shevy> class Box<T> {
<shevy> so beautiful
<jhass> class Box(T)
s2013 has joined #ruby
Igorshp has quit [Remote host closed the connection]
<shevy> oh dear
<shevy> hacklang
<[k-_> 29 lines to 12 lines!
<[k-_> i have sucessfully abstracted!
<jhass> bundle exec ruby -e "require 'serverspec'; p Serverspec::VERSION"
<jhass> ups, c&p fail
codecop has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> what does the T denote there?
allcentury has joined #ruby
<jhass> a generic
aswen has joined #ruby
kfpratt has joined #ruby
timonv has joined #ruby
<[spoiler]> nzst: I have, and I can't say I was excited when I heard about it lol
leat has quit [Remote host closed the connection]
vipaca has joined #ruby
leat has joined #ruby
solars has joined #ruby
Guest50 has joined #ruby
<[spoiler]> jhass: I am used to seeing <> from C++, so () looks odd to me, although I am not sure if it's just because I am used to <>
<jhass> it probably is :P
jonnie has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
kfpratt has quit [Ping timeout: 244 seconds]
fsapo has joined #ruby
s00pcan has joined #ruby
arup_r_ has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has joined #ruby
khebbie has quit [Remote host closed the connection]
<tsunamie> I am getting the following http://pastebin.com/kKPmMghZ after running chef exec bundle with a gemfile
<ruboto> tsunamie, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1e600e97d183b98f0aca
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<tsunamie> anyone know why I am getting this I get it's a conflict I just have no cliue on how to resolve the conflict
davispuh has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
Igorshp has joined #ruby
jonnie has quit [Ping timeout: 244 seconds]
allomov_ has quit [Ping timeout: 246 seconds]
victortyau has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
diego_ar has joined #ruby
<jhass> it's bundle exec chef
allomov_ has joined #ruby
Guest94 has joined #ruby
benlovell has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
<allcentury> Hi, is there something similar to Base64 that only uses alphanumeric characters?
fella5s has quit [Read error: Connection reset by peer]
bffff_ has joined #ruby
ahmetkapikiran has joined #ruby
<jhass> there's base 36 though that spares uppercase
allomov has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
chabil has joined #ruby
<jhass> I guess doing base 52 wouldn't be too hard, just look at a base 36 algorithm and extend it
Guest94 has quit [Quit: Textual IRC Client: www.textualapp.com]
shadeslayer has quit [Ping timeout: 265 seconds]
meatherly has quit []
sarkyniin has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
<allcentury> TIL base52 is a thing, cheers jhass
<jhass> doing baseXX is basically a matter of defining the symbols
<allcentury> by symbols do you mean chars?
<jhass> there, somebody did a gem https://github.com/atomaka/base52
<bubuntu> why is base 52 a thing?
<jhass> why wouldn't it?
tkuchiki has joined #ruby
<jhass> why wouldn't base42 be a thing?
<allcentury> I'm looking at the gem as we speak, it's very simple implementation
<bubuntu> its 52
Jardayn has joined #ruby
sgambino has joined #ruby
<allcentury> but wait .... if I have a string that is ab_cd and I base52 encode it, it will only encode the abcd chars, right?
<[spoiler]> allcentury: if _ is not a digit
sarkyniin has joined #ruby
<jhass> allcentury: base 2 uses the symbols 0 and 1, base 3 uses the symbols 0, 1 and 2, base 10 uses the symbols 012345678 and 9, base 16 (commonly referred to as hex) uses the symbols 0123456789abcde and f
<jhass> get the pattern?
<allcentury> ah
jgt has quit [Ping timeout: 256 seconds]
<allcentury> perhaps I should back up and share the problem I'm trying to solve
<[k-_> base200
<[k-_> base9000! it's over 9000!
tkuchiki has quit [Remote host closed the connection]
juanpablo____ has joined #ruby
davedev24 has joined #ruby
<allcentury> I have a unique identifer on my end, call it a token that has base64 characters in it (ie abcd_234=gfsd) -- an API i'm trying to work with cannot accept any token that isn't strictly alphanumeric. I thought about encoding my token so it fits their crazy guideline but will allow me to decode when they send it back so I can figure out who's token this is
herbst has joined #ruby
<allcentury> am I going down the right back with this encode/decode idea?
<apeiros> you can have any base you want. you just need enough digits.
<allcentury> the right path*
Igorshp has quit [Remote host closed the connection]
<jhass> decode it to bytes and just hex encode them
<jhass> will be long as fuck but whatever
shadeslayer has joined #ruby
allomov has joined #ruby
sdwrage has joined #ruby
whippythellama has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
allomov_ has quit [Ping timeout: 260 seconds]
qwertme has joined #ruby
<apeiros> if length is a problem, base32 might be a middle ground. 2x as long instead of 4x.
dcarmich has joined #ruby
gambl0re has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
khebbie has joined #ruby
<apeiros> uh, wait… actually a value in base16 is only 2x as long as in base256
<apeiros> correct factors: base16 is 1.5x longer than base64, base32 is 1.2x longer
davispuh has quit [Ping timeout: 264 seconds]
dblessing has joined #ruby
Igorshp has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Voker57 has joined #ruby
Lyhue has joined #ruby
<allcentury> something like... this? str.each_byte.map { |b| b.to_s(16) }.join
<allcentury> converts "YWJjZGVmZw==_" => "59574a6a5a47566d5a773d3d5f"
<allcentury> now how do I go back in the other direction?
khebbie has quit [Ping timeout: 260 seconds]
miliarch has joined #ruby
<allcentury> oh I got it hex.scan(/../).map { |x| x.hex.chr }.join
<jhass> to_s(16) doesn't 0 pad
<allcentury> is that an issue?
<[spoiler]> yes
<[spoiler]> alignment issues
<[spoiler]> what if you get "fab"
<apeiros> allcentury: Base64.decode64(str).unpack("H*").first
<allcentury> quit trying to make fab happen, it's never going to happen.
<[spoiler]> LOL
fairyeye has joined #ruby
<apeiros> >> require 'base64'; str = Base64.encode64("hello"); Base64.decode64(str).unpack("H*").first
<ruboto> apeiros # => "68656c6c6f" (https://eval.in/428144)
<apeiros> and the reverse:
<apeiros> >> ["68656c6c6f"].pack("H*")
<ruboto> apeiros # => "hello" (https://eval.in/428145)
<[spoiler]> pack it in yo panrs
<jhass> I kinda feel like pack and unpack act backwards there
<[spoiler]> pants
<[spoiler]> jhass: yes the nomenclature is weird lol
jonnie has joined #ruby
<[spoiler]> in this case
<apeiros> jhass: yeah, with hex it sometimes feels odd
tmtwd has joined #ruby
<jhass> I mean API wise it makes more sense the other way around
Criten has left #ruby [#ruby]
<jhass> *even API wise
<allcentury> apeiros: so in my example, I'd decode there to stay alphanumeric and encode when they send it back to me?
omegahm has quit [Ping timeout: 252 seconds]
<[spoiler]> not really, since you're unpacking a string, and then packing it again, but it only makes sense because of the context here
howdoi has quit [Quit: Connection closed for inactivity]
<[spoiler]> unpacking a string into more complex data, I mean
fairyeye has left #ruby [#ruby]
tkuchiki has joined #ruby
<jhass> mmh
<[spoiler]> s/complex/strctured
<[spoiler]> fuck I can't pyte
<[spoiler]> ugh mu shift is over I am going home
<[spoiler]> stupid keyboard
linuxboytoo has joined #ruby
<jhass> allcentury: play with the examples in pry, it'll become obvious
fgo has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
majjoha has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
davedev2_ has joined #ruby
roxtrongo has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
Marsupermammal has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
roxtrongo has quit [Client Quit]
Marsupermammal has quit [Max SendQ exceeded]
silkfox has joined #ruby
scripore has joined #ruby
kfpratt has joined #ruby
leat has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 250 seconds]
leat has joined #ruby
Papabear has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
kjones_ has joined #ruby
fairyeye has joined #ruby
bigredboots has quit [Remote host closed the connection]
kjones_ has quit [Max SendQ exceeded]
bigredboots has joined #ruby
iamninja has joined #ruby
chabil has quit [Read error: Connection reset by peer]
omegahm has joined #ruby
fairyeye has left #ruby [#ruby]
ruby-lang314 has quit [Quit: Page closed]
casadei_ has joined #ruby
mahmoudmahfouz has joined #ruby
bigredboots has quit [Remote host closed the connection]
rbennacer has joined #ruby
sdfgsdfg has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
vipaca has joined #ruby
rbennacer has joined #ruby
Porfa has joined #ruby
_blizzy_ has quit [Ping timeout: 255 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
kfpratt has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
failshell has joined #ruby
devoldmx has joined #ruby
altivection has joined #ruby
altivection has quit [Client Quit]
jobewan has joined #ruby
fsapo has left #ruby [#ruby]
benlovell has quit [Ping timeout: 255 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
dopamean_ has quit [Ping timeout: 240 seconds]
dgutierrez1287 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
ndrei has joined #ruby
benlovell has joined #ruby
chills42 has quit [Remote host closed the connection]
qwertme has joined #ruby
ahmetkapikiran has joined #ruby
leat has quit [Remote host closed the connection]
griffindy has joined #ruby
paulcsmith has joined #ruby
leat has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
failshell has quit [Remote host closed the connection]
Timba-as_ has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
juanpablo____ has joined #ruby
ejimz has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
RegulationD has joined #ruby
Timba-as has quit [Ping timeout: 250 seconds]
tjohnson has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
juanpablo____ has quit [Ping timeout: 268 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
meatherly has joined #ruby
dopamean_ has joined #ruby
sarkyniin has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
shapeshifter has joined #ruby
minimuffins has joined #ruby
juanpablo____ has joined #ruby
naftilos76 has joined #ruby
dionysus69 has joined #ruby
<shapeshifter> Hi. I'm trying to deploy spree using capistrano with rvm1-capistrano3. Problem is when cap tries to run rvm-auto.sh . bundle exec gem install --file Gemfile, I get two errors "ruby-2.2.3 is not installed". But if I su to the server user and do ~/.rvm/bin/rvm default do ruby --version, then it's working fine. I think the difference is that with a login, .bashrc gets sourced.
<shapeshifter> And I've seen people put a source ... in config/deploy.rb just for this. But that seems awful.
<shapeshifter> How /should/ capistrano know which ruby to use when using rvm, normally, and why isn't in working for me?
moeabdol has quit [Ping timeout: 268 seconds]
grotewold has joined #ruby
enebo has joined #ruby
riotjones has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
sarkyniin has joined #ruby
kies has joined #ruby
Ropeney has joined #ruby
yqt has joined #ruby
yqt has quit [Read error: Connection reset by peer]
yqt has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
chills42 has joined #ruby
cornerma1 has joined #ruby
greenarrow has quit [Quit: 500]
fgo has joined #ruby
kies has quit [Ping timeout: 255 seconds]
sarkyniin has quit [Ping timeout: 265 seconds]
jdawgaz has joined #ruby
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
leat has quit [Remote host closed the connection]
leat has joined #ruby
seydar has joined #ruby
greenarrow has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
diegoaguilar has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
mallu has joined #ruby
tenderlove has joined #ruby
mallu has quit [Client Quit]
stryek has joined #ruby
finisherr has joined #ruby
da3mian has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
Lyhue has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
<avdi> I'm taking a poll (out of sheer curiosity) of what Ruby HTTP client library people prefer: http://devblog.avdi.org/2015/09/04/poll-whats-your-favorite-ruby-http-client-library/
enebo has quit [Quit: enebo]
Lyhue has joined #ruby
<yorickpeterse> avdi: no multiple-choice? :<
<havenwood> avdi: I've narrowed it down to five. Hem...
<avdi> yorickpeterse: I'm keeping it simple - really just looking for the one people immediately go to when all else is equal
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> Ah right
iamninja has quit [Ping timeout: 244 seconds]
<yorickpeterse> hm, seems a lot of people httparty hard
<yorickpeterse> "lot" as in 10
<avdi> indeed
<jhass> sadly
mdst has joined #ruby
<yorickpeterse> honestly at this point I think they're just keeping that post install message to further torment people
<avdi> yurp
alqahtani has joined #ruby
<havenwood> yorickpeterse: haha
<yorickpeterse> maybe bundler should add "When you BUNDLED WITH, you BUNDLED WITH hard"
ksteck has joined #ruby
<yorickpeterse> that might be too soon though
balazs has joined #ruby
<jhass> luckily bundler can suppress these now
kies has joined #ruby
mleung has joined #ruby
da3mian has quit [Quit: Leaving]
<havenwood> Tough choice, rolled the dice.
sarkyniin has joined #ruby
jgpawletko has joined #ruby
Lyhue has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umgrosscol has joined #ruby
<havenwood> Free RubyMotion starter downloaded! :D
claw has quit [Read error: Connection reset by peer]
anisha has joined #ruby
grotewold has joined #ruby
dfockler has joined #ruby
grotewold has quit [Max SendQ exceeded]
herbst has quit [Remote host closed the connection]
<havenwood> A new free starter edition ust in time for a long weekend here.
<dfockler> Nice!
<havenwood> just*
grotewold has joined #ruby
grotewold has quit [Max SendQ exceeded]
AlexRussia has joined #ruby
naftilos76 has quit [Remote host closed the connection]
claw has joined #ruby
Lucky__ has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
grotewold has joined #ruby
kfpratt has joined #ruby
grotewold has quit [Max SendQ exceeded]
dfinninger has joined #ruby
dmolina has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Averna has joined #ruby
grotewold has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
bronson has joined #ruby
cschneid_ has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
surs has quit [Quit: WeeChat 0.3.7]
aaeron has joined #ruby
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seydar has quit [Quit: leaving]
s2013 has joined #ruby
sagittarian has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
aaeron1 has joined #ruby
sigurding has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
DoubleMalt has quit [Remote host closed the connection]
crazydiamond has quit [Remote host closed the connection]
Queeniebee has joined #ruby
NeverDie has joined #ruby
dorei has joined #ruby
Guest50 has joined #ruby
aaeron has quit [Ping timeout: 240 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jas02 has quit [Quit: jas02]
jas02 has joined #ruby
Meow-J has joined #ruby
jas02 has left #ruby [#ruby]
darkf has quit [Quit: Leaving]
qwertme has joined #ruby
qwertme has quit [Client Quit]
baroquebobcat has joined #ruby
danieli has joined #ruby
shmilan has joined #ruby
kfpratt has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Client Quit]
hinbody has joined #ruby
prestorium has joined #ruby
UtkarshRay has joined #ruby
khebbie has joined #ruby
xrlabs has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
danieli has quit [Ping timeout: 256 seconds]
khebbie has quit [Ping timeout: 244 seconds]
balazs has quit [Ping timeout: 265 seconds]
sagittarian has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
danieli has joined #ruby
dfinninger has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
aaeron has joined #ruby
sigurding has quit [Ping timeout: 244 seconds]
aaeron1 has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
lorn has joined #ruby
rubie has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
poli has quit [Ping timeout: 244 seconds]
Lyhue has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
<nzst> If I have a range that looks like this, http://hastebin.com/ovamozukol.css , can i enumerate each day?
alqahtani has quit [Quit: Be back later ...]
[k- has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
ddarkpassenger has joined #ruby
Yzguy has joined #ruby
aaeron has quit [Read error: Connection reset by peer]
skullcrasher has quit [Remote host closed the connection]
fgo has joined #ruby
xrlabs has joined #ruby
Lyhue has quit [Client Quit]
<nzst> "TypeError: can't iterate from ActiveSupport::TimeWithZone" but i'd like to by day
leat has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
Swappticon has joined #ruby
balazs has joined #ruby
leat has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shapeshifter has left #ruby [#ruby]
arooni-mobile has joined #ruby
Voker57 has quit [Remote host closed the connection]
sevenseacat has quit [Quit: .]
fgo has quit [Ping timeout: 264 seconds]
prestorium has quit [Remote host closed the connection]
rcvalle has joined #ruby
prestorium has joined #ruby
kies has quit [Ping timeout: 240 seconds]
lulzmachine has quit [Quit: Connection closed for inactivity]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<nzst> dfockler: thanks :) that looks promising
<dfockler> nzst: yep, come back if that doesn't work
Timba-as_ has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
cpruitt has joined #ruby
Averna has quit [Quit: Ex-Chat]
jdawgaz has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
finisherr has quit [Quit: finisherr]
grotewold has joined #ruby
grotewold has quit [Max SendQ exceeded]
<nzst> got this suggestiong from #rubyonrails ( your_range.begin.to_date .. your_range.end.to_date ).each ...
grotewold has joined #ruby
<nzst> it worked right away
<dfockler> nzst: nice!
grotewold has quit [Max SendQ exceeded]
rehat has joined #ruby
grotewold has joined #ruby
CHVNX has quit [Ping timeout: 256 seconds]
yosafbridge has quit [Ping timeout: 244 seconds]
grotewold has quit [Max SendQ exceeded]
yosafbridge has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grotewold has joined #ruby
anisha has quit [Quit: Leaving]
towski_ has joined #ruby
chills42 has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
krz has joined #ruby
platzhirsch has joined #ruby
mdst has quit [Quit: Leaving]
benjwadams has joined #ruby
<benjwadams> hi
greenarrow has quit [Quit: 500]
<benjwadams> question regarding ancient (1.8.6) ruby versions
symm- has joined #ruby
hinbody has quit [Quit: leaving]
<benjwadams> Time.parse('wtfbbq') returns the current datetime. is there any way to throw an exception instead?
amclain has joined #ruby
dfinninger has joined #ruby
devoldmx has joined #ruby
<benjwadams> Is there any method I could use in that old a version to properly parse the time?
tenderlove has quit [Quit: Leaving...]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulcsmith has quit [Ping timeout: 255 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> are you studying archaeology or something?
<benjwadams> basically
Guest50 has joined #ruby
<benjwadams> please tell my PM and client to maintain their versions and not leave us with legacy cruft
kies has joined #ruby
snockerton has quit [Quit: Leaving.]
<nzst> lol, ya, tell my PM and client that too
tenderlove has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
<jhass> mmh, maybe we should do do #ruby-history or something where we redirect all questions involving Ruby versions outside their security maintenance phase
milesforrest has joined #ruby
<benjwadams> I found out an answer to my question anyhow
CHVNX has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<nzst> what is it?
<benjwadams> Time.parse('wtfbbq', nil) will throw an exception instead of returning the current time!
devoldmx has quit [Ping timeout: 264 seconds]
<nzst> hah, Sou|cutter thanks, that's some slick code i'll have to learn something from it
radgeRayden_ has quit [Ping timeout: 246 seconds]
eggoez has joined #ruby
joufflu has joined #ruby
senayar has quit []
tenderlove has quit [Client Quit]
bluOxigen has quit [Ping timeout: 240 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Client Quit]
joonty has quit [Quit: joonty]
enebo has quit [Quit: enebo]
tenderlove has joined #ruby
mikecmpbll has joined #ruby
Lucky__ has joined #ruby
khebbie has joined #ruby
bluOxigen has joined #ruby
Yzguy has quit [Quit: Zzz...]
enebo has joined #ruby
<Sou|cutter> it's actually off by one, woops
stan has quit [Ping timeout: 260 seconds]
<nzst> yes, i was testing it, it misses the expected day range begins and day range ends
silkfox has quit [Ping timeout: 252 seconds]
psycho_one has quit [Quit: WeeChat 0.4.2]
theery has joined #ruby
dfinninger has quit [Remote host closed the connection]
leat has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shmilan has quit [Ping timeout: 244 seconds]
Guest50 has joined #ruby
tenderlove has quit [Client Quit]
khebbie has quit [Remote host closed the connection]
<Sou|cutter> it should get the end
<Sou|cutter> actually I guess not if the end is not equal to day increments
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
tenderlove has joined #ruby
ruby-lang667 has joined #ruby
snockerton has joined #ruby
Jackneill has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
<ruby-lang667> Hey I have a quick question, how can I get this function to do what I want?
<ruby-lang667> a = ["hi", "bye"]
<ruby-lang667> name = "John"
<ruby-lang667> city = "Edinborough"
<ruby-lang667> a.each do |word|
<ruby-lang667> puts "#{word} #{name} of #{city}"
<ruby-lang667> end
<ruby-lang667> Anonymous function, can't get it to accept the variables it needs...
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<bougyman> well, there's no function nor method there.
<shevy> lol
<ruby-lang667> so... a.each do |word|(name)
<ruby-lang667> that works, but only so far
<ruby-lang667> can't get both variables in
<shevy> upload your full code?
SCHAAP137 has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
<shevy> well that works
Igorshp has quit [Remote host closed the connection]
maletor has joined #ruby
vipaca has joined #ruby
<bougyman> def greet(greeting, name, city); puts "#{greeting} #{name} of #{city}"; end; greets = %w(hi bye); people = [%w(john amsterdam), %w(peter chicago)]; greets.each { |greeting| people.each { |person| greet(greeting, *person) } }
<bougyman> I think you are looking for something more along those lines.
maletor has quit [Client Quit]
Igorshp has joined #ruby
einarj has quit [Remote host closed the connection]
<ruby-lang667> ok sorry that was a bad example. I'm coding this as an internal company project, so I can't actually use the real data.
grotewold has joined #ruby
jonnie has quit [Ping timeout: 246 seconds]
prestorium has quit [Ping timeout: 268 seconds]
maletor has joined #ruby
<ruby-lang667> but that gave me an idea, I'll try it out and post here if I find a fix
shmilan has joined #ruby
Igorshp has quit [Remote host closed the connection]
minimuffins has quit [Ping timeout: 255 seconds]
failshell has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 264 seconds]
Guest50 has joined #ruby
sarkyniin has quit [Ping timeout: 240 seconds]
ngscheurich has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulcsmith has quit [Ping timeout: 246 seconds]
aaeron has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
kedare has quit [Ping timeout: 246 seconds]
paulcsmith has joined #ruby
ahmetkapikiran has joined #ruby
kedare has joined #ruby
failshell has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 265 seconds]
RegulationD has quit [Remote host closed the connection]
sarkyniin has joined #ruby
last_staff has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
The_Phoenix has joined #ruby
qwertme has joined #ruby
moahny has joined #ruby
ruby-lang667 has quit [Ping timeout: 246 seconds]
krisquigley has quit [Remote host closed the connection]
moahny has quit [Client Quit]
xrlabs has quit [Quit: This computer has gone to sleep]
silkfox has joined #ruby
swills has joined #ruby
benjwadams has left #ruby ["WeeChat 0.4.2"]
dfockler has quit [Remote host closed the connection]
aaeron1 has joined #ruby
pawnbox has joined #ruby
nzst has quit [Ping timeout: 264 seconds]
snockerton has quit [Quit: Leaving.]
aaeron has quit [Ping timeout: 250 seconds]
Kellin has quit [Quit: leaving]
dfockler has joined #ruby
blackmesa has joined #ruby
shmilan has quit [Ping timeout: 244 seconds]
nanoz has joined #ruby
craysiii has joined #ruby
tkuchiki has quit [Remote host closed the connection]
aswen has joined #ruby
aaeron has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hackedwin has joined #ruby
aaeron1 has quit [Ping timeout: 250 seconds]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
kies has quit [Ping timeout: 244 seconds]
mleung has quit [Ping timeout: 246 seconds]
bigredboots has joined #ruby
rbennacer has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 252 seconds]
rbennacer has quit [Remote host closed the connection]
petricore has joined #ruby
Porfa has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
jbw has quit [Ping timeout: 255 seconds]
ginah has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
jbw has joined #ruby
sigurding has joined #ruby
nzst has joined #ruby
dgutierrez1287 has joined #ruby
rakm has joined #ruby
rakm has quit [Client Quit]
Limix has joined #ruby
doc|work has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
aaeron has quit [Quit: Leaving.]
aswen has quit [Ping timeout: 260 seconds]
<doc|work> hey, I'm getting "unbalanced brackets" as an error with haml when I use %input{:name => "FooUID", :value => "abc{efg", :type => "hidden"}. I've tried \ before the { to escape it but there's no change. Anyone know what I should do? Searching found nothing that matches.
pravee___ has joined #ruby
<tobiasvl> doc|work: hm. try using single quotes around 'abc{efg' ?
gp5st has joined #ruby
<gp5st> I have a file where each line is a json-formatted array and the first line is a list of the string headers and each subsequent line is a value in this table. is there name for that style of format?
<doc|work> tobiasvl: no change
<jhass> gp5st: can we call it ITDJO? "I'm too dumb for JSON objects"?
<gp5st> jhass: :-p
<jhass> gp5st: or are there actually no [] and it's just CSV?
roelof has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
<roelof> Is there a good free online course to learn ruby ?
<gp5st> jhass: oh no, it's actuall json-per-line
sigurding has quit [Quit: sigurding]
<gp5st> roelof: many. what have you looked at?
<roelof> And second question : what is a good web framework except rails ?
<gp5st> jhass: I didn't create the file. a coworker received it from some api and she was wondering if there was a common way to manipulate it, and I told her I wasn't sure and I wasn
<gp5st> 't even sure what it was called
<roelof> gp5st: codeacademy, codeschool
<gp5st> roelof: depends on what you want it to do. There are things like sinatra
<jhass> yeah me neither, sorry for not being helpful
shmilan has joined #ruby
<jhass> ?links
<roelof> make ecommerce site and maybe a accounting system for myself
khebbie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
podman has joined #ruby
eightfold has joined #ruby
<doc|work> anyone?
A124 has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
ledestin has quit [Ping timeout: 264 seconds]
barhum2013 has joined #ruby
minimuffins has joined #ruby
khebbie has quit [Ping timeout: 272 seconds]
<shevy> doc|work not sure many people here use haml
<doc|work> ok, thanks :/
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> doc|work: just another guess, but \{ ?
rakm has joined #ruby
AlxAltea is now known as AlexAltea
<doc|work> jhass: nope, but {\} fixes the error while displaying {} in the form
* doc|work face palms
Voker57 has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
angrywombat has joined #ruby
eightfold has quit [Quit: eightfold]
Musashi007 has quit [Quit: Musashi007]
based_pdev has joined #ruby
postmodern has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
leafybasil has quit [Remote host closed the connection]
havenwood has joined #ruby
angrywombat has left #ruby [#ruby]
<roelof> jhasss in the list a lot of inactive projects :(
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<jhass> roelof: just ignore them?
Porfa has joined #ruby
allcentury has joined #ruby
Guest50 has joined #ruby
krz has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
krz has joined #ruby
roelof has quit [Quit: Page closed]
aaeron has joined #ruby
krisquigley has joined #ruby
havenn has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
_djbkd has joined #ruby
gp5st has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
Pupeno has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
ivanskie has joined #ruby
acke has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
charliesome has joined #ruby
psy_ has joined #ruby
baweaver has joined #ruby
psy_ has quit [Max SendQ exceeded]
<shevy> resurrect them!
<shevy> inactive projects want to become active ones again
psy_ has joined #ruby
wldcordeiro has joined #ruby
paulcsmith_ has joined #ruby
pawnbox_ has joined #ruby
paulcsmith has quit [Read error: Connection reset by peer]
dmolina has quit [Ping timeout: 265 seconds]
apt-get_ has joined #ruby
aswen has joined #ruby
bootstrappm has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
sarkyniin has quit [Ping timeout: 265 seconds]
shmilan has joined #ruby
diego_ar has quit []
zendrix has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
theta8 has joined #ruby
tkuchiki has joined #ruby
linuxboytoo has joined #ruby
krz has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
acke has quit [Ping timeout: 240 seconds]
khebbie has joined #ruby
<theta8> im using rexml to build an array from xml elements, is there a way to grab child elements in a single iteration over a parent?
acke has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
pawnbox_ has quit [Remote host closed the connection]
<theta8> say <device> is the parent of both <item> and <type>
atomical has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
swgillespie has joined #ruby
pravee___ has quit [Remote host closed the connection]
davispuh has joined #ruby
Porfa has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
_djbkd is now known as djbkd_
djbkd has quit [Disconnected by services]
djbkd_ is now known as djbkd
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
djbkd_ has joined #ruby
mary5030 has joined #ruby
beef-wellington has joined #ruby
scottschecter has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 244 seconds]
scripore has joined #ruby
silkfox has quit [Ping timeout: 246 seconds]
diegoaguilar has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
Lucky__ has joined #ruby
khebbie has quit [Remote host closed the connection]
IrishGringo has joined #ruby
bmurt has quit []
theta8 has quit [Quit: leaving]
grotewold has joined #ruby
Guest50 has joined #ruby
grotewold has quit [Max SendQ exceeded]
paulcsmith_ has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
grotewold has joined #ruby
krisquigley has quit [Remote host closed the connection]
paulcsmith_ has joined #ruby
kirun has joined #ruby
enebo has quit [Quit: enebo]
syath has quit [Quit: WeeChat 1.2]
Senjai has quit [Changing host]
Senjai has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
mandarinkin has joined #ruby
prestorium has joined #ruby
leafybasil has joined #ruby
snockerton has joined #ruby
workmad3 has joined #ruby
hinbody has joined #ruby
eightfold has joined #ruby
garethrees has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
EXID123 has joined #ruby
bronson has joined #ruby
Gribo has joined #ruby
djbkd has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
<arup_r> As I was saying in evening what leading underscore means ? Look here _rescue and @_env (http://blog.ragnarson.com/2015/08/28/extending-objects-behavior-with-module-prepend.html)
<arup_r> Why they wrote it like that ?
djbkd has joined #ruby
Encapsulation has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
shmilan has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
<drbrain> arup_r: `rescue` is a keyword, so you can't make a method with that name
<greenbigfrog> anyone experience with shoes? please pm me! (not the things you put on your shoes)
<craysiii> you put shoes on your shoes?
<drbrain> laces
<drbrain> you put laces on shoes
<eam> drbrain: I mean, you can make one
<greenbigfrog> lol
<eam> it's just a little harder to call it
bronson has quit [Ping timeout: 244 seconds]
* greenbigfrog should concentrate more
Encapsulation has joined #ruby
<drbrain> eam: yeah
garethrees has quit [Ping timeout: 250 seconds]
<greenbigfrog> anyone experience with shoes? please pm me! (not what you put on your feet)
<drbrain> greenbigfrog: o_O
<bougyman> I wear shoes
<drbrain> greenbigfrog: do you have some question about shoes?
jordanloky has joined #ruby
<greenbigfrog> Basically wrote everything in there
<drbrain> arup_r: I guess they use @_env because they're subclassing something else that defines its own @env and they don't want to collide
<arup_r> Well.. I saw some other code also they used `_*`, but those are not reserve method or keywords
<drbrain> arup_r: `_*`?
platzhirsch has left #ruby [#ruby]
<drbrain> sometimes people use a leading _ to indicate the argument or variable is unused
toretore has joined #ruby
<drbrain> (for a second I thought you meant literal _)
<drbrain> or they use _ to indicate that it is "special" some way
casadei_ has quit [Remote host closed the connection]
Chau has joined #ruby
Swappticon has joined #ruby
<arup_r> one min
kies has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
Soda has quit [Remote host closed the connection]
<arup_r> drbrain: thank you very much!
Swappticon has quit [Client Quit]
aswen has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
Chau has quit [Client Quit]
futilegames has joined #ruby
IrishGringo has joined #ruby
stamina has quit [Ping timeout: 246 seconds]
casadei_ has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
apt-get_ is now known as sarkyniin
startupality has quit [Quit: startupality]
pawnbox has joined #ruby
pravee___ has joined #ruby
djbkd has joined #ruby
revoohc has quit [Quit: revoohc]
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
dfinninger has joined #ruby
kies has quit [Ping timeout: 240 seconds]
majjoha has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zendrix has quit []
Renich has joined #ruby
hackedwin has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
paulcsmith__ has joined #ruby
paulcsmith_ has quit [Ping timeout: 250 seconds]
Swappticon has joined #ruby
clarkenciel has joined #ruby
decoponio has quit [Quit: Leaving...]
luksaur has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
grenierm has quit [Quit: grenierm]
pravee___ has quit [Remote host closed the connection]
flak has joined #ruby
pravee___ has joined #ruby
d10n-work has joined #ruby
<mandarinkin> hi, i want download html and run js, what tool do you recommend to run js locally? selenium or something better
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<flak> quick question: if I have an array of arrays (tuples) like so: [[1,2], [3,4]], is there a way to unpack the tuples in the arguments of a map operation? Like so: tuples.map { |first, *center, last| first + last }, but with cleaner syntax (no *center)?
Guest50 has joined #ruby
qwertme has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
<Papierkorb> flak: tuples.map{|(left, right)| ..}
<Papierkorb> flak: The (..) destructures the array, much like foo, bar = an_array does :)
<flak> :facepalm: I thought I would need some kind of unpacking operator
<flak> thanks
acke has quit [Remote host closed the connection]
iceyec has quit [Quit: iceyec]
dfockler has quit [Remote host closed the connection]
EllisTAA has joined #ruby
futilegames_ has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
minimuffins has joined #ruby
kies has joined #ruby
jimbeaudoin has joined #ruby
<flak> mandarinkin: are you looking for something scriptable? I've been using CasperJS+PhantomJS for some testing
futilegames has quit [Ping timeout: 240 seconds]
futilegames_ is now known as futilegames
Renich has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
Fezzler has joined #ruby
blackmesa has joined #ruby
Fezzler has quit [Client Quit]
Renich has joined #ruby
grenierm has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has joined #ruby
grotewold has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
jordanloky has joined #ruby
gambl0re has joined #ruby
scripore has joined #ruby
hinbody has quit [Ping timeout: 255 seconds]
flak has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
enebo has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
whippythellama has quit [Ping timeout: 240 seconds]
barhum2013 has quit [Quit: barhum2013]
Renich has joined #ruby
barhum2013 has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
astrobunny has joined #ruby
tcdowney has joined #ruby
baweaver has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
uber has joined #ruby
barhum2013 has quit [Quit: barhum2013]
rdavila has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
Contigi has quit [Quit: Leaving]
failshell has joined #ruby
solars has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
<Queeniebee> Hi, I'm getting a syntax error, "unexpected keyword_end" on the last line of the Class. I can't see the error, however. What am I doing wrong that is raising the error? https://gist.github.com/Queeniebee/df01e7832231080f7789
krisquigley has quit [Ping timeout: 246 seconds]
nzst has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
davedev2_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
davedev24 has joined #ruby
<based_pdev> l 22?
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
chrissonar has joined #ruby
tkuchiki has joined #ruby
<Queeniebee> based_pdev do you mean line 22?
rbennacer has quit [Remote host closed the connection]
aswen has joined #ruby
stamina has joined #ruby
<eam> Queeniebee: try running your code through something to auto-format it
rbennacer has joined #ruby
failshell has quit [Ping timeout: 264 seconds]
gambl0re has quit []
riskish has joined #ruby
<Queeniebee> eam doing that now
riskish has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
majjoha has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 246 seconds]
nux443 has quit [Quit: leaving]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bootstrappm has quit [Quit: bootstrappm]
rbennacer has quit [Ping timeout: 255 seconds]
Guest50 has joined #ruby
bruno- has joined #ruby
Porfa has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
ordepdev has joined #ruby
gambl0re has joined #ruby
Porfa has quit [Client Quit]
sshuff|gone is now known as sshuff
fgo has joined #ruby
ringarin has joined #ruby
Pupeno has joined #ruby
havenwood has joined #ruby
<Queeniebee> I'm still getting the same error https://gist.github.com/Queeniebee/df01e7832231080f7789 after formatting
tvw has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
modern has quit []
blue_deref has joined #ruby
casadei_ has quit [Remote host closed the connection]
ringarin has quit [Client Quit]
Lyhue has joined #ruby
ringarin has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
jonnie has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
jfe__ has joined #ruby
jfe__ has left #ruby ["Leaving"]
yfeldblum has quit [Ping timeout: 244 seconds]
Pupeno has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 246 seconds]
Oka has joined #ruby
UtkarshRay has quit [Quit: Leaving]
baweaver has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
ringarin has quit [Ping timeout: 250 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
ReK2 has joined #ruby
ReK2 has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
<based_pdev> Queeniebee, google a ruby styleguide and try to rewrite based on recommended formatting. you will learn things about how to better style your ruby code and probably find your error along the way
mandarinkin has quit [Quit: Leaving]
diegoaguilar has quit [Remote host closed the connection]
<baweaver> p is a function in ruby
<baweaver> well, method
paulcsmith__ has quit [Quit: Be back later ...]
baweaver has quit [Remote host closed the connection]
Lyhue has quit [Quit: Textual IRC Client: www.textualapp.com]
IrishGringo has joined #ruby
<aspiers> just had a bizarre Travis failure where $? was nil after an IO.popen block - any ideas? https://travis-ci.org/crowbar/crowbar-core/builds/78813394
<aspiers> I thought that was impossible
<aspiers> and even weirder, I can't reproduce it locally
baweaver has joined #ruby
<aspiers> the docs are fairly clear: "At the end of block, Ruby close the pipe and sets $?."
ordepdev has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
atomical has joined #ruby
<Queeniebee> based_pdev: baweaver okay thank you
Spami has joined #ruby
sbhatore has joined #ruby
<baweaver> Use $CHILD_STATUS instead of the perlisms
<baweaver> now as far as how to debug that, I'd think that Travis sandboxes external system calls.
<baweaver> so that'll probably need to be stubbed.
Renich has quit [Quit: leaving]
<baweaver> http://idiosyncratic-ruby.com/9-globalization.html - that covers longhand names for the perlisms
Renich has joined #ruby
devoldmx has joined #ruby
<aspiers> baweaver: thanks! I was looking for that list but it was surprisingly hard to find
<baweaver> yeah, that entire site will be useful
bruno- has joined #ruby
<aspiers> looks awesome
sivsushruth has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
<aspiers> baweaver: it was working fine with other external commands
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> fair, huh.
jenrzzz has quit [Ping timeout: 272 seconds]
aaeron has quit [Quit: Leaving.]
futilegames has quit [Quit: futilegames]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
aaeron has joined #ruby
tercenya_ has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
SenpaiSilver_ has joined #ruby
Spami_ has joined #ruby
theery_ has joined #ruby
code1o6 has joined #ruby
grotewol_ has joined #ruby
<aspiers> wtf. the commit listed by travis doesn't even exist in the repo?!
<baweaver> honestly I wouldn't know where to start on looking into that myself.
mahlon_ has joined #ruby
Rutix`away has joined #ruby
Rutix`away has joined #ruby
marr123 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
s00pcan has quit [Ping timeout: 265 seconds]
umgrosscol has quit [Quit: End of Line]
<aspiers> oh it's a merge commit
qiukun_ has joined #ruby
djbkd has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
<aspiers> hrm
marr has quit [Killed (leguin.freenode.net (Nickname regained by services))]
marr123 is now known as marr
Plas has joined #ruby
workmad3 has joined #ruby
pontiki_ has joined #ruby
yqt has joined #ruby
scpike_ has joined #ruby
Sthebig_ has joined #ruby
Sthebig_ has joined #ruby
eternal1 has joined #ruby
stnly_ has joined #ruby
mclee_ has joined #ruby
wlanboy has joined #ruby
ejnahc_ has joined #ruby
justin2 has joined #ruby
PlasmaStar has quit [Ping timeout: 244 seconds]
herrphon has quit [Ping timeout: 244 seconds]
qiukun has quit [Ping timeout: 244 seconds]
heinrich5991 has quit [Ping timeout: 244 seconds]
frankS2 has quit [Ping timeout: 244 seconds]
bhorn1 has quit [Ping timeout: 244 seconds]
MuffinPimp has quit [Read error: Connection reset by peer]
M-prosodyContext has quit [Ping timeout: 244 seconds]
hackeron has quit [Ping timeout: 244 seconds]
Rutix has quit [Ping timeout: 244 seconds]
Zackio has quit [Ping timeout: 244 seconds]
camt has joined #ruby
rcs has quit [Ping timeout: 244 seconds]
camt has quit [Ping timeout: 244 seconds]
Kamilion has quit [Ping timeout: 244 seconds]
mahlon has quit [Read error: Connection reset by peer]
jayne has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
hays_ has joined #ruby
jayne_ has joined #ruby
Spami has quit [Ping timeout: 244 seconds]
grotewold has quit [Ping timeout: 244 seconds]
theery has quit [Ping timeout: 244 seconds]
cornerman has quit [Ping timeout: 244 seconds]
patrick_star has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Ping timeout: 244 seconds]
gener1c_ has quit [Ping timeout: 244 seconds]
stnly has quit [Ping timeout: 244 seconds]
Synthead has quit [Ping timeout: 244 seconds]
SenpaiSilver has quit [Ping timeout: 244 seconds]
MuffinPimp_ has joined #ruby
Sthebig has quit [Ping timeout: 244 seconds]
pontiki has quit [Ping timeout: 244 seconds]
PaulePanter has quit [Ping timeout: 244 seconds]
jatb has quit [Ping timeout: 244 seconds]
neurotech has quit [Ping timeout: 244 seconds]
tercenya has quit [Ping timeout: 244 seconds]
mclee has quit [Ping timeout: 244 seconds]
ejnahc has quit [Ping timeout: 244 seconds]
hays_ has joined #ruby
scpike has quit [Ping timeout: 244 seconds]
tethra has quit [Ping timeout: 244 seconds]
justinweiss has quit [Ping timeout: 244 seconds]
qiukun_ is now known as qiukun
hays_ has quit [Changing host]
gener1c has joined #ruby
MuffinPimp_ is now known as MuffinPimp
Fire1o6 has quit [Ping timeout: 244 seconds]
earfvids--- has quit [Ping timeout: 244 seconds]
Meeh has quit [Ping timeout: 244 seconds]
Synthbread has quit [Ping timeout: 244 seconds]
hays has quit [Ping timeout: 244 seconds]
wlanboy_ has quit [Ping timeout: 244 seconds]
Synthbread has joined #ruby
jatb has joined #ruby
bhorn1|away has joined #ruby
Sthebig_ is now known as Sthebig
bhorn1|away is now known as bhorn1
heinrich5991 has joined #ruby
PaulePanter has joined #ruby
hackeron has joined #ruby
cornerman has joined #ruby
patrick_star has joined #ruby
tethra has joined #ruby
Synthead has joined #ruby
ghr has joined #ruby
sarkyniin has quit [Ping timeout: 252 seconds]
Meeh has joined #ruby
charliesome has joined #ruby
Plas is now known as PlasmaStar
wldcordeiro has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 252 seconds]
Fire1o6 has joined #ruby
frankS2_ has joined #ruby
Zackio has joined #ruby
superlou has joined #ruby
s00pcan has quit [Remote host closed the connection]
frankS2_ is now known as frankS2
aaeron has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 246 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sarkyniin has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<aspiers> baweaver: I triggered a rebuild and it worked ...
rcs has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<aspiers> heisenbug :-(
M-prosodyContext has joined #ruby
<aspiers> bizarre
chrissonar has quit [Remote host closed the connection]
aaeron has joined #ruby
<aspiers> must be some race condition in Travis's sandboxing
<darix> moin aspiers
<aspiers> moin
iceyec has joined #ruby
dfockler has joined #ruby
poguez_ has joined #ruby
Kamilion has joined #ruby
sbhatore has quit [Quit: sbhatore]
jaequery has joined #ruby
bootstrappm has joined #ruby
symm- has joined #ruby
bigredboots has quit [Remote host closed the connection]
iateadonut has left #ruby [#ruby]
kadoppe has quit [Ping timeout: 260 seconds]
RegulationD has quit []
<Queeniebee> Hello again, I hate to be annoying but I'm really curious now, I've run the code through Rubocop and ruby-lint and looked through the Ruby styleguide on Github. While it isn't the dryest code, I still can't see why I am getting "unexpected token kEND" https://gist.github.com/Queeniebee/df01e7832231080f7789 Is there another Ruby linting program someone can recommend?
kadoppe has joined #ruby
acke has joined #ruby
jordanloky has joined #ruby
baweaver has left #ruby [#ruby]
baweaver has joined #ruby
<baweaver> Use 2 spaces instead of tabs for one thing. Anyways, give me a sec to look it over.
<baweaver> Line 4, that's not how %w works
<baweaver> >> %w(there are no quotation marks in here)
<ruboto> baweaver # => ["there", "are", "no", "quotation", "marks", "in", "here"] (https://eval.in/428295)
majjoha has joined #ruby
aaeron has quit [Quit: Leaving.]
<baweaver> You're also treating it a lot like a Java / C# program
Limix has quit [Quit: Limix]
<baweaver> Instead of: Float.new -> 0.0, String.new -> '', Integer.new -> 0
<baweaver> Array.new -> [], Hash.new -> {}
Guest50 has joined #ruby
<baweaver> return is not necessary
codecop has quit [Remote host closed the connection]
acke has quit [Remote host closed the connection]
prestorium has quit [Quit: Konversation terminated!]
<baweaver> what line does it say the error is on?
<baweaver> oh, and class is lowercase
<baweaver> >> class Foo; end
<drbrain> ↑ yep
<ruboto> baweaver # => nil (https://eval.in/428299)
<Queeniebee> baweaver: line 56
<baweaver> yep
<baweaver> lowercase it
<baweaver> heh, that it took me a sec to see that one
<Queeniebee> oh my gosh
<baweaver> cost_of_item, you want to raise an error there.
<baweaver> otherwise you get a string back expecting an integer
k3asd` has joined #ruby
<baweaver> Queeniebee: what have you gone through to learn ruby?
<griffindy> Queeniebee you're also referencing instance variables outside of a class in lines 58-63
majjoha has quit [Ping timeout: 264 seconds]
acke has joined #ruby
<baweaver> there's a lot of stuff and it'd take me a bit to review all of it
<baweaver> instead, it would serve you better to find out what you've used to learn and recommend more reading.
miliarch has left #ruby [#ruby]
t_mmyv has joined #ruby
<eam> one key debugging tactic: If you can't easily see the problem, reduce the size of your code
grotewol_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
t_mmyv has quit [Client Quit]
<Queeniebee> baweaver: learn the hard way and why's poignant guide
<eam> break things up into smaller parts, which will reduce the amount of stuff you need to look at to see why things aren't working
<baweaver> Read Eloquent Ruby
<baweaver> and Practical Object Oriented Design in Ruby
Alina-malina has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> (in this case, you could reduce the program to just the class definition with the typo -- with no actual code)
tcdowney has quit [Quit: Computer has gone to sleep.]
sshuff is now known as sshuff|gone
EllisTAA has quit [Quit: EllisTAA]
grotewold has joined #ruby
grotewold has quit [Max SendQ exceeded]
leat has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
grotewold has joined #ruby
baweaver has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 265 seconds]
grotewold has quit [Max SendQ exceeded]
superlou has quit [Quit: Leaving]
grotewold has joined #ruby
grotewold has quit [Max SendQ exceeded]
khebbie has joined #ruby
michael_mbp has quit [Excess Flood]
fgo has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
grotewold has joined #ruby
tvw has joined #ruby
knrz has joined #ruby
baweaver has joined #ruby
khebbie has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
diegoaguilar has joined #ruby
A124 has quit [Ping timeout: 268 seconds]
solocshaw has joined #ruby
iceyec has quit [Quit: iceyec]
solocshaw has quit [Remote host closed the connection]
chipotle has joined #ruby
oniMaker has joined #ruby
A124 has joined #ruby
djcp has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 240 seconds]
balazs has joined #ruby
based_ has joined #ruby
Limix has joined #ruby
leat has joined #ruby
baweaver has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
solocshaw has joined #ruby
aaeron has joined #ruby
rodfersou has quit [Quit: leaving]
Eiam has quit [Read error: Connection reset by peer]
mmance has joined #ruby
amclain_ has joined #ruby
jonnie has quit [Ping timeout: 264 seconds]
mac_ has joined #ruby
<mmance> When moving my ruby script from machine to machine, how does one worry about gems installed on each machine?
knrz has quit [Remote host closed the connection]
gsingh93 has quit [Ping timeout: 250 seconds]
lapide_viridi has joined #ruby
AccordsLTN has joined #ruby
bstrarm has joined #ruby
WillAmes has quit [Ping timeout: 250 seconds]
<mmance> or what is a good search phrase that would lead me to my answer
<mmance> I don't know how to word that right.
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
Nirgali42 has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 268 seconds]
mozzarella has quit [Ping timeout: 268 seconds]
Vile` has quit [Ping timeout: 268 seconds]
AccordLTN has quit [Ping timeout: 264 seconds]
hal_9000__ is now known as hal_9000
scripore has quit [Ping timeout: 272 seconds]
xsdg_ has quit [Ping timeout: 264 seconds]
f-pound-- has joined #ruby
tskogberg has quit [Ping timeout: 265 seconds]
maletor has quit [Ping timeout: 272 seconds]
Nirgali42 has joined #ruby
amclain has quit [Ping timeout: 250 seconds]
bustrarm has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
s2013 has joined #ruby
paulcsmith has joined #ruby
tskogberg has joined #ruby
GnuYawk has quit [Ping timeout: 268 seconds]
gregf has quit [Ping timeout: 268 seconds]
f-pound-- has quit [Remote host closed the connection]
Vile` has joined #ruby
pravee___ has quit [Remote host closed the connection]
adamholt has joined #ruby
mmance has quit [Quit: Leaving]
f-pound-at-bang has quit [Ping timeout: 268 seconds]
jonnie has joined #ruby
pravee___ has joined #ruby
Eiam has joined #ruby
Mendenhall has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
lapide_viridi has quit [Client Quit]
dravine has quit [Ping timeout: 244 seconds]
lele is now known as Guest24
pyon has joined #ruby
zacts has quit [Ping timeout: 250 seconds]
beef-wellington has quit [Ping timeout: 272 seconds]
gsingh93 has joined #ruby
ddarkpassenger has quit [Ping timeout: 264 seconds]
moeabdol has joined #ruby
Esya has joined #ruby
platzhirsch has joined #ruby
mozzarella has joined #ruby
meatherly has quit []
ddarkpassenger has joined #ruby
Esya- has quit [Quit: ZNC - http://znc.sourceforge.net]
jonnie has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
dravine has joined #ruby
knrz has joined #ruby
Esya- has joined #ruby
yfeldblum has joined #ruby
GnuYawk has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
mac_ has quit [Quit: This computer has gone to sleep]
gregf has joined #ruby
AbdulRehman has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
ldnunes has quit [Quit: Leaving]
noodle has joined #ruby
based_ has quit [Quit: Textual IRC Client: www.textualapp.com]
scripore has joined #ruby
based_ has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has joined #ruby
xsdg has joined #ruby
acke has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
krisquigley has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
zcreative has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Ping timeout: 244 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
arooni-mobile has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
knrz has quit [Quit: Textual IRC Client: www.textualapp.com]
krisquigley has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
jamesaxl has joined #ruby
michael_mbp has joined #ruby
jackjackdripper has joined #ruby
jhack has quit [Quit: jhack]
charliesome has joined #ruby
majjoha has joined #ruby
<aibo> bundler, Gemfile
failshell has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lampd1 has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 260 seconds]
ngscheurich has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbeaudoin has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
sarkyniin has quit [Read error: No route to host]
paulcsmith has quit [Ping timeout: 260 seconds]
davedev24 has quit []
paulcsmith has joined #ruby
sarkyniin has joined #ruby
leat has quit [Ping timeout: 246 seconds]
stamina has quit [Quit: WeeChat 1.3]
Pupeno has joined #ruby
<oniMaker> How can I ignore the first value of a function that returns multiple values?
<oniMaker> ignore, keep = foo()
<nofxx> oniMaker, a method that returns an array?
<oniMaker> do I have to make ignore a variable, or can I dump it?
<oniMaker> a method with multiple returns
<nofxx> one, two = foo
<nofxx> ignore one, use two
<oniMaker> so I have to set the var
fgo has joined #ruby
<baweaver> >> def multi; [1,2,3] end; multi.first
<nofxx> there are many ways to do this
<ruboto> baweaver # => 1 (https://eval.in/428308)
<oniMaker> it'd be nice to do something like `nil, two = foo`
<oniMaker> or whatever
<nofxx> oniMaker, _, two = foo
<oniMaker> nofxx: what is the underscore?
mary5030 has quit [Remote host closed the connection]
<nofxx> that's convention... _x for unused
moeabdol has joined #ruby
vdamewood has joined #ruby
<oniMaker> _x or just _ ?
<apeiros> >> *,b,c = 1,2,3; b
<ruboto> apeiros # => 2 (https://eval.in/428309)
<nofxx> oniMaker, it just convention, also the (), avoid using them w/o parameters
<baweaver> >> head, *tail = [1,2,3,4,5]; tail
<ruboto> baweaver # => [2, 3, 4, 5] (https://eval.in/428310)
<oniMaker> apeiros: ah, what does * do there?
<apeiros> oniMaker: swallow all the rest
danieli has quit [Quit: *does an epic backflip into nowhere*]
<nofxx> apeiros, hey, that's nice. Splat instead of _unused.
<apeiros> and since there's no variable, that rest isn't assigned anywhere
<oniMaker> apeiros: that's cool, thank you!
<apeiros> beware, though, it really means "rest":
<apeiros> >> *,a = 1,2,3; a
<ruboto> apeiros # => 3 (https://eval.in/428311)
Pupeno has quit [Ping timeout: 246 seconds]
<oniMaker> oh
<oniMaker> I guess that would work for this case where there's only two args
<oniMaker> err, two returns
ranchodev has quit [Ping timeout: 240 seconds]
<apeiros> so if you specifically want "2nd value in returned array", `_, takethis = foo()` may be better
<oniMaker> alright
<nofxx> oniMaker, as apeiros said, but just another option: take = foo[1]
fgo has quit [Ping timeout: 268 seconds]
<nofxx> if you just need the 2nd...
<oniMaker> I think _x, keep = foo is clear enough for now
<oniMaker> good to know about the alternatives though
<nofxx> oniMaker, definively. Just so you know.
<oniMaker> hmm, I seem to have broken my block
<oniMaker> map_hosts = lambda { |(_name, site)| site['site_hosts'] }
<oniMaker> hostname, *aliases = sites.flat_map map_hosts
<oniMaker> the map_hosts block was originally right after sites.flat_map, but I want to re-use it for a couple calls
<apeiros> oniMaker: forgot &
Rollabun_ has quit [Remote host closed the connection]
<apeiros> flat_map &map_hosts
<oniMaker> &map_hosts ?
Ox0dea has joined #ruby
<oniMaker> ok
<oniMaker> what does that do?
<apeiros> it tells ruby to convert a Proc into a block
<Ox0dea> But that's a no-op! ;)
<oniMaker> ah ok, otherwise it's passing the block as an argument?
<apeiros> (and if it isn't a Proc, to convert it to a proc first by calling to_proc)
<apeiros> Ox0dea: hm? no? block != proc
<apeiros> at least in MRI
<Ox0dea> apeiros: I was being facetious. Many people would disagree with you.
<apeiros> Ox0dea: they'd be mistaken
<Ox0dea> Aye.
<apeiros> the difference is measurable
acke has joined #ruby
<Ox0dea> Code don't lie.
<apeiros> the one point which can be argued is that I'd say it's an implementation detail
<oniMaker> excellent, working now :)
baweaver has quit [Remote host closed the connection]
<Ox0dea> apeiros: Are there implementations wherein #to_proc is unnecessary, then?
<apeiros> Ox0dea: I thought you meant Proc -> block was a no-op?
bffff_ has quit [Quit: Connection closed for inactivity]
<apeiros> MRI of course won't call to_proc if the object already is a Proc
<Ox0dea> I'm reasonably certain that neither JRuby nor Rubinius let you pass a Proc to a method expecting a block without performing *some* kind of transformation.
<apeiros> I'm not sure we're talking about the same thing…
<apeiros> foo(obj) # will *never* pass obj as a block
<Ox0dea> Calling the difference between Procs and blocks an implementation detail seems disingenuous.
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> apeiros: That holds for any implementation, right?
<apeiros> "foo(obj) # will *never* pass obj as a block" <-- this? yes, this is true for all implementations.
<apeiros> that's the definition of the language.
<apeiros> but whether foo(&obj) in case of obj being a Proc actually performs a conversion is implementation specific
Renich has quit [Quit: leaving]
Renich has joined #ruby
<Ox0dea> Sure, but Proc != block holds in all cases, is the point I mean to make.
<apeiros> an implementation may very well choose to use the same mechanism for blocks as for procs. MRI does not. MRI optimizes blocks by not creating an actual ruby-space object for it.
aswen has quit [Quit: WeeChat 1.1.1]
arup_r has quit [Ping timeout: 244 seconds]
<Ox0dea> I think the simplest proof is to observe that a method can receive n Proc arguments, but only one block one.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl|2 has joined #ruby
diegoaguilar has joined #ruby
<apeiros> yes, that'd be "it's the definition of the language [syntax]"
RobertBirnie has joined #ruby
<oniMaker> Is a Proc just for binding context variables, or does it do other things?
David27 has joined #ruby
David27 has quit [Client Quit]
David27 has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
<Ox0dea> oniMaker: In essence, a Proc is just a handy way to pass code around.
theery_ has quit [Remote host closed the connection]
David27 has left #ruby [#ruby]
David27 has joined #ruby
<oniMaker> seems similar to binding arguments to function objects in JS
dopamean_ has quit [Ping timeout: 268 seconds]
<Ox0dea> oniMaker: Thinking of them as "function objects" is pretty much spot-on.
<apeiros> oniMaker: yes, it does create a closure
balazs has quit [Ping timeout: 265 seconds]
<apeiros> Ox0dea: that misses the closure aspect, though
leat has joined #ruby
<oniMaker> what is the closure aspect?
sarkyniin has quit [Ping timeout: 240 seconds]
<Ox0dea> oniMaker: A Proc "closes over" the environment (state) in which it was created.
zcreative has quit [Quit: (null)]
<apeiros> >> a = 1; def foo; a = 2; end a # 1 is expected and will be, because foo does not have access to the outside local variables
workmad3 has joined #ruby
<ruboto> apeiros # => /tmp/execpad-d82dc5317e7c/source-d82dc5317e7c:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/428312)
David27 has quit [Remote host closed the connection]
<apeiros> >> a = 1; def foo; a = 2; end; a # 1 is expected and will be, because foo does not have access to the outside local variables
<ruboto> apeiros # => 1 (https://eval.in/428313)
<apeiros> (bleh, missing ; )
David27 has joined #ruby
<oniMaker> ahh, right. got it.
theery has joined #ruby
devoldmx has joined #ruby
<apeiros> >> a = 1; b = proc { a = 2 }; def foo; b.call; end; foo(b); a # will be 2, because the proc closes over the local variables where it was created
<ruboto> apeiros # => wrong number of arguments (1 for 0) (ArgumentError) ...check link for more (https://eval.in/428316)
* apeiros rolls eyes
* apeiros can't code anymore and should probably sleep
<apeiros> >> a = 1; b = proc { a = 2 }; def foo(closure); closure.call; end; foo(b); a # will be 2, because the proc closes over the local variables where it was created
theery has quit [Remote host closed the connection]
<ruboto> apeiros # => 2 (https://eval.in/428317)
scripore has joined #ruby
<Ox0dea> The "make_adder" function is pretty good for demonstrating closures.
<apeiros> and I notice I didn't actually call `foo` in the first example 0:-)
doc|work has quit []
havenwood has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
kies has quit [Ping timeout: 250 seconds]
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> oniMaker: https://eval.in/428318
pravee___ has quit [Remote host closed the connection]
David27 has quit [Client Quit]
<oniMaker> Ox0dea: right, makes sense - very similar to js closures
<Ox0dea> Indeed.
paulcsmith has quit [Quit: Be back later ...]
David27 has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
foul_owl has joined #ruby
<oniMaker> hopefully I get the chance to write more than a few snippets in ruby sometime
Rodya_ has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
rbowlby has joined #ruby
rakm has joined #ruby
KensoDev has joined #ruby
David27 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
IrishGringo has joined #ruby
foul_owl has left #ruby [#ruby]
David27 has joined #ruby
victortyau has quit [Quit: Leaving]
acke has quit [Remote host closed the connection]
gix has quit [Quit: Client exiting]
ruby-lang581 has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
<ruby-lang581> looking for a good game-dev language
<ruby-lang581> ruby looks good. do other people who want to play the game in question need to have ruby?
<ruby-lang581> or can it be like an exe file
bigredboots has joined #ruby
krisquigley has joined #ruby
<weaksauce> ruby-lang581 ruby would be required
<weaksauce> what kind of games do you want to make?
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alayde has quit [Ping timeout: 264 seconds]
<ruby-lang581> 2d game. tons of objects. loves math.
michael_mbp has joined #ruby
bazbing80 has joined #ruby
<Ox0dea> weaksauce: Hm? There are several tools for going from Ruby to Windows executable.
radgeRayden_ has joined #ruby
A124 has quit [Ping timeout: 268 seconds]
<weaksauce> Ox0dea does it actually compile it to something native? i was under the impression that it just packed ruby up with it
diegoaguilar has joined #ruby
<Ox0dea> It does build Ruby in, but the users needn't know or worry about that detail.
<oniMaker> ruby-lang581: have you considered using something like Unity?
<Ox0dea> That's how OCRA works, anyhow.
<bazbing80> Hey all...picking through rspec source as you do, and I've come across this: $_rspec_core_load_started_at Printing it returns a datetime. But thie 'variable' isn't set in the file, and it isn't a method call. So how does it contain a datetime? How is it set?
krisquigley has quit [Ping timeout: 252 seconds]
bigredboots has quit [Ping timeout: 256 seconds]
<Ox0dea> bazbing80: That's a global. It could be set anywhere.
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
pawnbox has quit [Remote host closed the connection]
haasn has quit [Ping timeout: 250 seconds]
<weaksauce> ruby-lang581 if you are just playing around and want to make something you can use ruby for it and it will work fine. if your end goal is selling it you might want to look at unity or unreal.
swgillespie has joined #ruby
<dfockler> or love2d!
ruby-lang581 has quit [Ping timeout: 246 seconds]
shred45 has joined #ruby
bootstrappm has joined #ruby
swgillespie has left #ruby [#ruby]
<oniMaker> dfockler: I played around with that a couple years back - has anyone shipped a big commercial game with it yet?
EllisTAA has joined #ruby
<dfockler> oniMaker: a few I think yeah
<dfockler> not gigantic games
poli has joined #ruby
bigredboots has joined #ruby
<dfockler> Love2d just packages up an interpreter runtime with your code
Xiti has quit [Quit: Xiti]
<dfockler> but this is OT now :P
TobiG77 has joined #ruby
ruby-lang582 has joined #ruby
<ruby-lang582> so how smooth is that transition
<ruby-lang582> with the packing of ruby into an exe
<ruby-lang582> can users tell that's happening or is it just like a game running up?
duncannz has joined #ruby
<dfockler> ruby-lang582: are you talking to me?
doublemalt_ has joined #ruby
<ruby-lang582> anybody.
baweaver has joined #ruby
<dfockler> Well in my experience Love2d feels just like a game loading up, but it's Lua, not ruby
al2o3-cr has joined #ruby
Limix has quit [Quit: Limix]
dfockler has quit []
<Ox0dea> ruby-lang582: Naming your main file with an .rbw extension will cause OCRA to create a "windowed" application, which won't pop up a console, so it appears like most others.
<ruby-lang582> I'm not even sure if I should use Ruby for my game
<Ox0dea> OCRA doesn't compile your code, though; it just interprets it as per usual, so performance is likely to be... Ruby-level.
<ruby-lang582> I just want something simple
rdavila has quit [Quit: rdavila]
<Ox0dea> ruby-lang582: Simple or easy?
haasn has joined #ruby
pawnbox has joined #ruby
<ruby-lang582> Simple
<ruby-lang582> But powerful
<baweaver> only focus on simple
<ruby-lang582> I took Java in high school. That was.. okay. I really don't want to go about learning C++ or something crazy like that for this game.
<oniMaker> "simple yet powerful" describes every turing-complete language...
<oniMaker> you should really look into Unity...
<baweaver> except Java, which is not simple
<Papierkorb> oniMaker: Brainfuck
DoubleMalt has quit [Ping timeout: 250 seconds]
<oniMaker> Papierkorb: very simple
<oniMaker> much simpler than most languages
jalnt has joined #ruby
<ruby-lang582> Okay.
<oniMaker> ruby-lang582: what kind of game are you building?
<ruby-lang582> 2d game.. Pokemon style like.. View is top down
tmtwd has joined #ruby
freerobby has joined #ruby
<nofxx> Anyone knows a log tool, aggregator, history thing saas with reasonable price? for my ruby apps.. hehe
<ruby-lang582> But this particular gaem I'm building has loooooooads of objects.. and loves doing math
Asher has quit [Quit: Leaving.]
majjoha has joined #ruby
<bazbing80> Ox0dea: Thanks. How did you find out where that global was defined?
<ruby-lang582> So yeah. I just don't know what to learn.
<ruby-lang582> Ruby sounds nice. But I don't want to spend time learning a language just to realize that my game cannot be built upon it, and there's some sort of sick bottleneck that develops lateron
freerobby has quit [Client Quit]
<wasamasa> ruby-lang582: then don't use it for games, duh
<Papierkorb> ruby-lang582: ruby isn't really popular for building games. I don't know of a game built with it. See Unity and/or UDK
<Ox0dea> bazbing80: `gem unpack` is also quite handy.
<wasamasa> ruby-lang582: it's a fine language for less performance-critical things
stevednd has quit [Ping timeout: 240 seconds]
<wasamasa> ruby-lang582: then, nearly everything will fall back to C for these situations
<Ox0dea> ruby-lang582: Sounds like you might want to learn the hundred-year language.
opensource_ninja has joined #ruby
dgutierrez1287 has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<ruby-lang582> Okay. Thanks guys.
<ruby-lang582> I appreciate the input
Asher has joined #ruby
majjoha has quit [Ping timeout: 272 seconds]
ruby-lang582 has quit [Quit: Page closed]
Asher is now known as Guest81975
jgt has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
Guest81975 has quit [Client Quit]
firstdayonthejob has joined #ruby
<Papierkorb> wasamasa: well, C++.
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<bazbing80> Ox0dea: nice!
cschneid_ has quit [Remote host closed the connection]
gix has joined #ruby
fgo has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Esya has left #ruby ["Textual IRC Client: www.textualapp.com"]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EXID123 has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
firstdayonthejob has joined #ruby
devbug has joined #ruby
jordanloky has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
tuxero has joined #ruby
firstdayonthejob has quit [Client Quit]
firstdayonthejob has joined #ruby
k3asd` has quit [Ping timeout: 264 seconds]
jamesaxl|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
k3asd` has joined #ruby
<EllisTAA> anyone have any ideas on how to solve this problem? https://gist.github.com/ellismarte/c9edfb41bebe5f8a9f33
<apeiros> EllisTAA: you… gist your problem as code comment? srsly? :D
firstdayonthejob has quit [Client Quit]
<EllisTAA> apeiros: where would u put it?
firstdayonthejob has joined #ruby
<banister> EllisTAA looks like homework
<adam|> Kinda looks like homework or a job interview quiz?
<EllisTAA> lol
symm- has quit [Ping timeout: 255 seconds]
<apeiros> gist is ok, but why as *comment*?
<apeiros> you know, gist doesn't only understand ruby. it can handle plaintext.
<EllisTAA> apeiros: i know
ascarter has joined #ruby
<apeiros> "why?" -> answer: "I know"
<apeiros> good one :-p
IrishGringo has quit [Ping timeout: 250 seconds]
<apeiros> yes. I have an idea for how to solve it.
<EllisTAA> apeiros: look at another one of my gists, i put the question above the code for ppl looking at the code
<EllisTAA> apeiros: is this a combinatorics problem?
JDiPierro has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
<apeiros> EllisTAA: I'm not usually foraging in other people's gists
<EllisTAA> apeiros: ok
banister has quit [Read error: Connection reset by peer]
<apeiros> I don't think it's a combinatorics problem
<apeiros> I don't know whether my solution is optimal either
<EllisTAA> what’s your idea for solving it
juanpablo____ has quit [Quit: (null)]
juanpablo____ has joined #ruby
<apeiros> binary search
<EllisTAA> interesting
linuxboy_ has joined #ruby
last_staff has quit [Quit: g'night y'all]
<EllisTAA> apeiros: what’s the reasoning behind using binary search?
<apeiros> you have a defined search space, you have a clean property to decide on which side of the value to find you are
lxsameer has quit [Quit: Leaving]
<apeiros> and what's your solution?
blackmes1 has joined #ruby
shmilan has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
linuxboytoo has quit [Ping timeout: 268 seconds]
JDiPierro has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
tmtwd has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<EllisTAA> apeiros: i’m still trying to figure it out, but yeah your idea seems good.
jdawgaz has joined #ruby
<apeiros> though, actually you need to do a bit more. the side isn't quite as cleanly to figure as I initially thought
<apeiros> but I think it's the right direction
jobewan has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
bronson has joined #ruby
<EllisTAA> apeiros: it’s hard to wrap my barin around ><
David27 has quit [Read error: Connection reset by peer]
<apeiros> i.e., I thought you could infer it at 2 samples already, but you need at least 3
<EllisTAA> perhaps we should move to ?offtopic
<EllisTAA> ?off-topic
<ruboto> I don't know anything about off
cpruitt has quit [Quit: cpruitt]
d10n-work has quit [Quit: Connection closed for inactivity]
<apeiros> #ruby-offtopic is the channel
David27 has joined #ruby
<apeiros> and offtopic the factoid ;)
Pupeno has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Asher- has joined #ruby
craysiii has quit [Remote host closed the connection]
<Ox0dea> apeiros: The factoid is "ot", no?
baweaver has quit [Remote host closed the connection]
<apeiros> lol
<apeiros> right :)
<jhass> I think it's copied to both :D
Asher- has quit [Client Quit]
ordepdev has joined #ruby
Asher has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
snockerton has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
leat has quit [Ping timeout: 256 seconds]
ordepdev has quit [Remote host closed the connection]
shred45 has quit [Quit: WeeChat 1.2]
zacts has joined #ruby
ordepdev has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
ordepdev has quit [Ping timeout: 264 seconds]
hightechlotech has joined #ruby
<hightechlotech> I'm trying to install the ruby-debug gem for arcadia and getting an error "cannot load such file -- mkmf (LoadError) to precis it down a bit
<Ox0dea> hightechlotech: OS?
oniMaker has left #ruby ["Peace"]
<hightechlotech> mint
bootstrappm has left #ruby [#ruby]
<Ox0dea> hightechlotech: You want to install the ruby-dev package.
firstdayonthejob has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
<hightechlotech> done
<hightechlotech> already
failshell has quit [Ping timeout: 250 seconds]
tuxero has quit [Quit: tuxero]
Pupeno has quit [Remote host closed the connection]
marr has quit [Ping timeout: 246 seconds]
KensoDev has quit [Remote host closed the connection]
vdamewood has quit [Ping timeout: 260 seconds]
<hightechlotech> I could just use eclipse
sdwrage has joined #ruby
veg has joined #ruby
sdwrage has quit [Client Quit]
jgt has quit [Ping timeout: 264 seconds]
banister has joined #ruby
leat has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
failshell has joined #ruby
rehat has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
fgo has joined #ruby
dfinninger has quit [Remote host closed the connection]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
swills has quit [Quit: brb]
fgo has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
hightechlotech has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
otisZart has joined #ruby
martin_work has joined #ruby
baweaver has joined #ruby
failshell has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
northfurr has joined #ruby
k3asd` has quit [Ping timeout: 265 seconds]