jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<MichaelGG> I skimmed Metaprogramming Ruby book a few years ago and I wasn't sold. But right now it looks like I do either WordPress and deal with security hell and crappy plugins (and php...) or go with Ruby
rcvalle has quit [Quit: rcvalle]
<MichaelGG> and everyone seems to love ruby for webdev so worth a shot
<MichaelGG> baweaver, that contracts code looks fairly concise. neat.
<baweaver> I switch between Ruby and Scala
<MichaelGG> whoa hope youve got a good clutch
<baweaver> Spark jobs mainly.
woodruffw has quit [Remote host closed the connection]
<pontiki> i love ruby for most everything anymore
icebourg has joined #ruby
<pontiki> even if avdi is right :D
<MichaelGG> Is the Ruby in 20 minutes worth doing? Or just start with The Well grounded rubyist
<pontiki> learning is never useless
<Senjai> MichaelGG: Normally I would say no. But the quickstart is fine
<baweaver> start with TWGR or any of those other books
<MichaelGG> k
<baweaver> they'll cover the same things honestly.
<Senjai> baweaver: We just mentioned TWGR is out of date :/
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* baweaver sighs
eggoez has joined #ruby
<Senjai> They should really rename the quickstart to quickstart. X in Y minutes is a smellllll
<baweaver> PickAxe book is the most up to date
<MichaelGG> that much changed from 191 to 192?
<baweaver> pre-1.9.3, there be dragons
<baweaver> The Ruby Way is the comprehensive guide
workmad3 has quit [Ping timeout: 276 seconds]
<MichaelGG> Is everyone on 2+ or is it like python where half the stuff dont work on 3
marr has quit []
<pontiki> TWGR 2nd ed is up-to-date with ruby 2.1
<baweaver> Everyone sane
FernandoBasso has quit [Quit: May the force be with you.]
<MichaelGG> so i can ignore all pre 2.0 stuff ?
<baweaver> there are still some bizarre holdouts in 1.8 land
<havenwood> MichaelGG: Most are on latest stable.
<havenwood> MichaelGG: 2.2.2
MasterPiece has joined #ruby
<baweaver> but not nearly as many as the 2/3 python mess
matled has quit [Ping timeout: 255 seconds]
<baweaver> yeah
<pontiki> anything in print though, is obsolete even before it's published
<MichaelGG> ok so TWGR 2nd ed is fine?
<Senjai> Nah
<Senjai> You can do print "right"
<MichaelGG> yeah i dont want a physicalbook
<MichaelGG> im travelling right now and wont be in a real country for a month but i need a site running next week
<Senjai> Maybe not for language guides
<baweaver> Safari Books Online is your friend
<pontiki> i mean both ebook and physical
blaines has joined #ruby
war_pigs has quit [Quit: laters.. I'm out.]
<havenwood> baweaver: aren't they having a half-off today?
<pontiki> you nail a publication and everything moves on
christiandsg has joined #ruby
<baweaver> 29/mo, unlimited ebook access to anything O'Reilly and co
<baweaver> maybe
<havenwood> baweaver: anniversary or such
<baweaver> even at full price it's worth its weight in gold from my experience
<Senjai> I just buy the pdf's.
<pontiki> even a blog post is out of date when it goes public
<baweaver> Honestly I think too many people put weight on being "out of date'
<pontiki> my point is, DON'T WORRY ABOUT IT
<pontiki> damit lemur, you stole my thunder
tkuchiki has quit [Remote host closed the connection]
<pontiki> even the free pickaxe book on line is worth reading through
<pontiki> which is 1.8.6?
balazs has joined #ruby
<havenwood> This offer expires on July 9, 2015 at 11:59 P.M. EDT.
<pontiki> black's first book on ruby was ruby for rails (note the "for" is not "on")
<pontiki> it's *still* worthwhile
blue_deref has joined #ruby
<MichaelGG> ok well i got twgr2nded
<pontiki> good for you
<MichaelGG> ill read that and come back
<havenwood> pontiki: read all the books!
<pontiki> if you're buying something should get the newest you can
<MichaelGG> is railstutorial.org good?
<pontiki> havenwood: INDEED!!
<pontiki> yes
<pontiki> and that's free to use online
<MichaelGG> cool I think I'm set then. Thanks for all the advice
<baweaver> pontiki: I try :P
sevenseacat has joined #ruby
woodruffw has joined #ruby
<pontiki> nothing you read, no tutorial you run, will make you into a good web developer
<baweaver> oh hey sevenseacat
<sevenseacat> morning
<pontiki> hihi sevenseacat :)
<baweaver> they helped write r4ia too
* sevenseacat waves
<sevenseacat> hi. my name is Rebecca.
<pontiki> wait, is this now a 12-step group?
christiandsg has quit [Ping timeout: 265 seconds]
<baweaver> She likes cats
bungoman has joined #ruby
<mozzarella> can I call you Becky?
<MichaelGG> jeez manning. The download link works once unless you login. Meanwhile first google result returs full pdf.
mistermocha has quit [Read error: Connection reset by peer]
<baweaver> mozzarella: probably at your own peril
<sevenseacat> mozzarella: sure. a lot of people do.
<baweaver> aww
tkuchiki has joined #ruby
symbol has quit [Ping timeout: 264 seconds]
balazs has quit [Ping timeout: 246 seconds]
<MichaelGG> Is vim-ruby the best addong to use for vim
mistermocha has joined #ruby
<Antiarc> I think you'd want vimagra if you're interested in addongs
<havenwood> Hi, my name is Shannon, I like cats.
<MichaelGG> hah
<MichaelGG> Hi my name is Michael. I like dependent types.
<pontiki> yep, it's a 12-step group
sepp2k has quit [Quit: Leaving.]
matled has joined #ruby
zacstewart has quit [Remote host closed the connection]
<nofxx> Anyone experiencing segfaults with ruby 2.2.2p95? So many years didn't see a segfault is happening a lot in an app here.
bungoman has quit [Ping timeout: 255 seconds]
senayar has quit []
t0rrieri_ has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest77561
<baweaver> Hi, my name's Brandon and I like making things people call me insane on reddit for
quazimod1 has joined #ruby
zacstewart has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<MichaelGG> seriously though vim-ruby is the right one to use?
<havenwood> MichaelGG: Maybe try emacs-ruby though.
<havenwood> MichaelGG: ;)
<MichaelGG> yeah so seriously though vim-ruby is the right one to use. got it.
<MichaelGG> ;)
<Antiarc> I wonder what percentage of the chat in this channel is related to editor preference
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> MichaelGG: r00k is prolific in ruby vim usage
<baweaver> surprisingly little
mleung has quit [Quit: mleung]
t0rrieri has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
<pontiki> baweaver: you don't have to go to reddit to be called insane :>
meph has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
<baweaver> /r/ruby is a bit nasty honestly
tkuchiki has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
danman has quit [Quit: danman]
dagda1 has quit [Ping timeout: 246 seconds]
but3k4 has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
<pontiki> well, all of reddit is p.much. /r/watercolor is p.nice
meph1 has quit [Ping timeout: 256 seconds]
blue_deref has quit [Quit: bbn]
BrianBoyko has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
danman has joined #ruby
<Antiarc> r/ruby's never been quite as nice as the ruby community at large, IMO
zacstewart has quit [Remote host closed the connection]
<havenwood> a dash of 4chan
<Antiarc> It's less that and more that it just fels like the Ruby community ethos never really took hold there
<pontiki> isn't there some big kerfuffle going on in rddit right now?
felixjet_ has joined #ruby
<baweaver> indeed
<havenwood> pontiki: indeed
adamski2600 has joined #ruby
zenko has joined #ruby
felixjet__ has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> havenwood: what do you actually do anyways? Student or out in the world yet?
howdoicomputer has quit [Ping timeout: 265 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenko> i'm using ruby's csv library and am writing a csv file using a block. it writes the file but always exits with an IO Exception. why is that?
havenwood has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
<Antiarc> what does the IO exception say?
bronson has quit [Remote host closed the connection]
adamski2600 has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
jimothy has quit [Quit: Textual IRC Client: www.textualapp.com]
dgutierrez1287 has joined #ruby
atomical has joined #ruby
<xxneolithicxx> 10 bucks on character encoding
hotpancakes has quit [Ping timeout: 265 seconds]
<zenko> Antiarc: it says not opened for reading even though i used "wb"
<Antiarc> wb is open for writing, not reading
<xxneolithicxx> tthats binary write only
<Antiarc> (w = write, b = binary)
WillAmes has quit [Remote host closed the connection]
<zenko> exactly, i'm writing the file which is why i'm confused by the IO exception, i'm not reading it at all
sepp2k has joined #ruby
<Antiarc> can you gist some code?
WillAmes has joined #ruby
icebourg has quit []
<zenko> yep
<zenko> one moment
<cout> hi zenko
<zenko> hi cout
cubicool has joined #ruby
<zenko> oh man, it just went away when i commented out the $DEBUG=true directive
jeanlinux has quit [Remote host closed the connection]
<zenko> that's interesting, ok, i'll gist anyway
<cubicool> I'm using Rubocop pretty religiously (its integrated nicely into vim), and it complains about using @@FOO as a class variable (what I would call a 'static' variable). What should I use instead of I want the reference to be global to the class, but not accessible externally?
seal has joined #ruby
oo_ has joined #ruby
<cubicool> In real usage, it is a registry of sorts that gets updated every time a new instance of the class is created.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GPrime has joined #ruby
<pontiki> i'm curious, is it because it's upper case?
keen__________15 has joined #ruby
<pontiki> otherwise, does rubocop just not like class variables?
danman has quit [Quit: danman]
<cubicool> No, Rubocop simply says: Replace class var @@foo with a class instance var.
keen__________14 has quit [Ping timeout: 246 seconds]
<pontiki> ah, okay
dented42 has joined #ruby
<bougyman> cubicool: if you want to use something that rubocop doesn't like, add # rubocop:disable The/Thing on that line
devdazed has quit [Quit: Computer has gone to sleep.]
<bougyman> a class instance variable is generally safer.
<bougyman> and almost always accomplishes what you need.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
<xxneolithicxx> zenko: are you running on Linux
<cubicool> How could it act as a global instance registry though?
<Antiarc> zenko: Oh, the exception is thrown and then caught in csv.rb
<Antiarc> Since you're in debug mode it's printed to stderr, despite the fact that it's caught
<zenko> xxneolithicxx: i am, as much as possible
mclee has quit [Ping timeout: 276 seconds]
<zenko> that makes sense Antiarc, i can see why that is useful
<xxneolithicxx> zenko: do you have permission to write in the PWD you are in
<zenko> xxneolithicxx: i do, i'm able to write it, it was the exception that had me confused, and my receiving of the message is because of my debug directive
<pontiki> $DEBUG is a ruby global. a whole bunch of stuff gets turned on and visible then
Guest77561 has quit [Ping timeout: 256 seconds]
<Antiarc> zenko: Looking at csv.rb, it #initialize always calls init_separators, which attempts to read info from the file, despite the fact that it was given a write-only file handle. That seems poorly designed, IMO, but it's functioning correctly.
<Antiarc> Exceptions as flow control, grr
sharpmachine has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<Antiarc> You can work around it by specifying the row_sep option, it seems
<bougyman> >> class A; @@foo = 'bar';def foo;@@foo;end ;end; class B < A; def wut; @@foo = 'wut';end;end; [B.new.foo, (B.new.wut && A.new.foo)]
<ruboto> bougyman # => ["bar", "wut"] (https://eval.in/395190)
<bougyman> cubicool: that's why you don't want to use @@ vars.
<Antiarc> zenko: CSV.open("test.csv", "wb", row_sep: "\n") avoids triggering the exception
<zenko> Antiarc: *nods*, a little stderr never hurt or i can disable the global. now i have a much better understanding of $DEBUG
<zenko> thanks everyone
j_mcnally has joined #ruby
millerti has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
Limix has quit [Quit: Limix]
tkuchiki has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
danman has joined #ruby
s00pcan has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
jmhmccr has joined #ruby
s00pcan has joined #ruby
Musashi007 has joined #ruby
pengin has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 255 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
woodruffw has quit [Max SendQ exceeded]
symbol has joined #ruby
woodruffw has joined #ruby
simplyianm has joined #ruby
devdazed has joined #ruby
reset has quit [Quit: Leaving...]
nfk has quit [Quit: yawn]
jeramyRR has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
finisherr has joined #ruby
finisherr has quit [Client Quit]
j_mcnally has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
haraoka has joined #ruby
bricker has quit [Ping timeout: 248 seconds]
baweaver has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
seal has quit [Quit: Ex-Chat]
j_mcnally has joined #ruby
t0rrieri_ has quit [Ping timeout: 246 seconds]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jamal has quit [Ping timeout: 246 seconds]
t0rrieri_ has joined #ruby
haraoka has quit [Remote host closed the connection]
Jamal has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
danman has quit [Quit: danman]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
jesterfraud has joined #ruby
Scroff has joined #ruby
dagda1 has joined #ruby
scripore has quit [Quit: Leaving]
hahuang65 has joined #ruby
scripore has joined #ruby
freerobby has joined #ruby
FrankD_ has joined #ruby
christiandsg has joined #ruby
towski_ has quit [Remote host closed the connection]
zenko has quit [Quit: leaving]
TheHodge has quit [Quit: Connection closed for inactivity]
Scroff has quit [Ping timeout: 256 seconds]
brendan- has joined #ruby
<FrankD_> Hey, I'm having Ruby complain that there is no File::close method -- here's the code and the error: https://gist.github.com/fdimitri/6d7862d9556db87783f9
<FrankD_> what am I doing wrong (if anything? fsync works..)
t0rrieri_ has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has quit [Ping timeout: 265 seconds]
t0rrieri_ has joined #ruby
NeverDie has joined #ruby
<sevenseacat> dont think the error comes from that code
<sevenseacat> whats classWebServer?
hotpancakes has joined #ruby
scripore has quit [Quit: Leaving]
<sevenseacat> because that code doesnt call File.close
<FrankD_> no, it calls the variable from file.open() .close()
<sevenseacat> right, so that code doesnt cause the error
<sevenseacat> whats on ./classWebServer.rb:88 ?
vdamewood has quit [Quit: Life beckons.]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
duderonomy has joined #ruby
<FrankD_> oh
<FrankD_> that would do it
<sevenseacat> :)
<FrankD_> I was calling File.close(targetFile) instead of targetFile.close()
Rickmasta has joined #ruby
<sevenseacat> there we go :)
<FrankD_> ahh thanks, fresh eyes!
<FrankD_> cant beat em
<sevenseacat> np
<sevenseacat> reading the error message helps too :)
<FrankD_> haha well you know, ive been at it a while.. so i skimmed it..
nettoweb has joined #ruby
rezzack has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<FrankD_> and it was complaining about line 56 earlier
<FrankD_> so im either an idiot or burnt :p
nertzy has joined #ruby
RegulationD has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman has joined #ruby
mike___1234 has quit [Ping timeout: 250 seconds]
howdoicomputer has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
RegulationD has quit [Ping timeout: 276 seconds]
woodruffw has quit [Read error: Connection reset by peer]
woodruffw has joined #ruby
BrianBoyko has quit [Quit: Leaving]
<FrankD_> whew weird working with webrick without rails :p
<sevenseacat> havent ever done it
mando has joined #ruby
<FrankD_> well im writing this collaborative ide thing.. and the actual server (websockets/eventmachine with ruby) and the web server are two different things
mistermocha has quit [Read error: Connection reset by peer]
<FrankD_> but we needed file upload capability
tmtwd has joined #ruby
<sevenseacat> sounds fun for an exercise
<FrankD_> so i was able to implement webrick and an HTTPServlet to handle get/post/options in like 100 lines, probably easier than rewriting javascript to send over the websocket instead of nice xhr.. :P
<FrankD_> heh why only for an exercise?
stoodfarback has joined #ruby
mistermocha has joined #ruby
stoodfarback has quit [Client Quit]
<FrankD_> it crashes less than cloud9 and desyncs less than cloud9, it already wins for my own personal use :p
jackjackdripper has quit [Quit: Leaving.]
<sevenseacat> I thought there were a lot of tools already out there to do that, cloud IDE things
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeramyRR has joined #ruby
J4D has joined #ruby
workmad3 has joined #ruby
<FrankD_> yeah theyre all really shitty and broken
<FrankD_> and i loathe paying money for things that are crappy/broken/dont meet my needs
<sevenseacat> fair enough, I've never used any of them :)
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
<FrankD_> hehe you should
<FrankD_> theyre fun!
danman has quit [Quit: danman]
ledestin has joined #ruby
drz3 has joined #ruby
<FrankD_> http://imgur.com/0Ldp7dp <-- I know the GUI looks like #)%$^&*, but a UX overhaul isnt coming until its more feature complete
<sevenseacat> interesting
<FrankD_> our collaborative terminals work really well :P
mistermocha has quit [Ping timeout: 256 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
workmad3 has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
doctorly has joined #ruby
i8igmac has joined #ruby
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
dgutierrez1287 has quit [Remote host closed the connection]
araujo_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoicomputer has quit [Ping timeout: 244 seconds]
araujo has quit [Ping timeout: 248 seconds]
growlove has joined #ruby
woodruffw has quit [Ping timeout: 255 seconds]
mike___1234 has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.2]
sarkyniin has quit [Ping timeout: 265 seconds]
<sphex> hey. what is the state of ruby specifications? looks like there are formal standards, but they are old. and rubyspec was abandoned and MRI is possibly not compliant?
haraoka has joined #ruby
howdoicomputer has joined #ruby
bruno- has joined #ruby
nettoweb has joined #ruby
tkuchiki has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blt has joined #ruby
blkperl has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blt> Is it possible to run a minitest test within irb? for example i have this code loaded in irb, just not sure how to run it: http://pastie.org/10281053
<blt> I'd prefer not to have to use the command line since I'm doing it in an emacs org file
saadq has joined #ruby
matp has joined #ruby
<blt> meaning, it's not a .rb file that I can run ruby on, it's just embedded in the org file
nettoweb has quit [Ping timeout: 264 seconds]
j_mcnally has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
araujo_ has quit [Ping timeout: 252 seconds]
araujo__ has joined #ruby
dgutierrez1287 has joined #ruby
araujo__ has quit [Max SendQ exceeded]
<FrankD_> crap maybe i should rewrite this with rack
araujo__ has joined #ruby
woodruffw has joined #ruby
pr0ton has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
<FrankD_> is there an easy way to enable gzip deflate from POSTs to webrick?
woodruffw has quit [Max SendQ exceeded]
mary5030 has joined #ruby
woodruffw has joined #ruby
doctorly has quit [Quit: leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
bronson has quit [Remote host closed the connection]
but3k4 has joined #ruby
christiandsg has joined #ruby
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
pr0ton has quit [Read error: Connection reset by peer]
nateberkope has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
blkperl has joined #ruby
pr0ton has joined #ruby
bullcitydev has joined #ruby
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
yayfoxes has joined #ruby
Yzguy has joined #ruby
saadq has quit [Remote host closed the connection]
hahuang65 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
hinbody has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
<Radar> >> [1,2] == [2,1]
<ruboto> Radar # => false (https://eval.in/395224)
<Radar> How can I make that true? i.e. it should be true if the arrays contain the same elements, in any order
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sphex> Radar: maybe sort them or turn them into Set
<sevenseacat> sort them, I would suggest
dseitz has joined #ruby
<sevenseacat> or subtract one from the other and see if you're left with empty?
<sevenseacat> >> [1,2] - [2,1]
<ruboto> sevenseacat # => [] (https://eval.in/395225)
<Radar> oh yeah, subtracting would work too
bullcitydev has quit [Ping timeout: 246 seconds]
<sphex> neat!
<Radar> RSpec does sorting for match_array, so that's what I will do
<sevenseacat> :)
<sevenseacat> the subtracting wouldnt work if the second array had extra elements anyway
<sevenseacat> >> [1,2] - [2,1,3]
<Radar> thanks sphex + sevenseacat
<ruboto> sevenseacat # => [] (https://eval.in/395226)
<sphex> sevenseacat: is it O(n*m)?
RegulationD has joined #ruby
<sevenseacat> mmm dunno
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
zacstewart has joined #ruby
howdoicomputer has quit [Ping timeout: 276 seconds]
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
nahtnam has joined #ruby
<cochise> anyone here have any experience with memory profiling for Ruby 2.2?
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
<cochise> More specifically, I'm trying to do some memory profiling using RubyProf on 2.2.2.
simplyianm has quit [Ping timeout: 256 seconds]
mclee has joined #ruby
duderonomy has joined #ruby
dopie has joined #ruby
blaines has joined #ruby
hoofed has quit [Read error: Connection reset by peer]
<FrankD_> anyone know how to get WEBrick::HTTPServer to accept gzip POST data?
<FrankD_> or do i have to manually decompress?
baweaver has joined #ruby
hotpancakes has joined #ruby
blaines_ has joined #ruby
RobertBirnie has joined #ruby
blaines has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Client Quit]
cabreraM516 has joined #ruby
michael_mbp has quit [Excess Flood]
hotpancakes has quit [Ping timeout: 252 seconds]
leonardoajim has quit [Remote host closed the connection]
s2013 has joined #ruby
RobertBirnie has joined #ruby
Kneecaps has joined #ruby
s2013 has quit [Max SendQ exceeded]
michael_mbp has joined #ruby
icebourg has joined #ruby
mistermocha has joined #ruby
i8igmac has quit [Ping timeout: 256 seconds]
mleung has joined #ruby
s2013 has joined #ruby
j_mcnally has joined #ruby
mleung has quit [Client Quit]
simplyaubs has joined #ruby
gambl0re has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
blt has quit [Quit: WeeChat 1.2]
poguez_ has quit [Quit: Connection closed for inactivity]
eGGsha has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
arescorpio has joined #ruby
pr0ton has quit [Ping timeout: 244 seconds]
Kneecaps has quit [Quit: Leaving...]
eGGsha is now known as eGGshke
krz has joined #ruby
eGGshke has quit [Client Quit]
Jamal has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
goodcodeguy has joined #ruby
Jamal has joined #ruby
drz3 has quit []
drz3 has joined #ruby
braincrash has quit [Quit: bye bye]
drz3 has quit [Excess Flood]
Yzguy has quit [Quit: Zzz...]
doctorly has joined #ruby
darkf has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
Scroff has joined #ruby
Rickmasta has joined #ruby
braincrash has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
eGGsha has joined #ruby
cdrage has joined #ruby
blkperl has quit [Ping timeout: 265 seconds]
mleung has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
eGGsha has quit [Client Quit]
symbol has joined #ruby
mistermocha has joined #ruby
christiandsg has joined #ruby
Spleeze has quit [Quit: QUIT]
bronson has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
Scroff has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
Spleeze has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
bronson has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
ohaibbq has joined #ruby
Sthebig_ has joined #ruby
brettnem has joined #ruby
Cache_Money has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hinbody has quit [Quit: leaving]
jesterfraud has joined #ruby
d0lph1n98 has joined #ruby
kahuna_ has joined #ruby
d0lph1n98 has quit [Client Quit]
Sthebig_ has quit [Quit: /quit]
d0lph1n98 has joined #ruby
gix has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
i8igmac has joined #ruby
d0lph1n98 has quit [Client Quit]
jeanlinux has joined #ruby
mando has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
simplyianm has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
cochise has quit []
jenrzzz has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
simplyianm has quit []
Guest14695 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
J4D has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lily_ has joined #ruby
eGGsha is now known as eGGshke
symbol has quit [Quit: WeeChat 1.1]
eGGshke is now known as eGGsha
Guest14695 has left #ruby [#ruby]
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
yeticry has quit [Ping timeout: 246 seconds]
saadq has joined #ruby
yeticry has joined #ruby
grey_beard has quit [Ping timeout: 248 seconds]
grey_beard has joined #ruby
lily_ has quit []
ljen has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
jeramyRR has quit [Quit: Peace out!]
yeticry has joined #ruby
t_ has quit [Read error: Connection reset by peer]
t_ has joined #ruby
bronson has joined #ruby
juanca_ has joined #ruby
adamski2600 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grey_beard has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
grey_beard has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
zacstewart has quit [Remote host closed the connection]
systemd0wn has quit [Remote host closed the connection]
casadei_ has joined #ruby
systemd0wn has joined #ruby
MasterPiece has quit [Quit: Leaving]
adamski2600 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
bluOxigen has joined #ruby
i8igmac has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
poguez_ has joined #ruby
bungoman has joined #ruby
J4D has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
danman has joined #ruby
mistermocha has joined #ruby
RegulationD has joined #ruby
ivanskie has joined #ruby
mistermo_ has joined #ruby
<Radar> FrankD_: Maybe it's time you moved off WEBrick? :)
mistermocha has quit [Read error: Connection reset by peer]
<baweaver> Radar: wrong chan?
<Radar> baweaver: very late reply
<baweaver> That too
<baweaver> Hadn't seen anything in scrollback for a while
icebourg has quit []
craysiii has quit [Ping timeout: 248 seconds]
craysiii has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
eGGsha is now known as eGGshke
blkperl has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
woodruffw has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
bungoman has quit [Read error: Connection reset by peer]
<FrankD_> Radar, apparently no web clients will gzip post data anyway
<FrankD_> so non-issue :p
<Radar> gg
bungoman has joined #ruby
eGGshke is now known as eGGsha
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
dellavg has joined #ruby
pr0ton has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gate has joined #ruby
jesterfraud has joined #ruby
jesterfraud has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has quit [Remote host closed the connection]
d0lph1n98 has joined #ruby
k3asd` has joined #ruby
k3asd`_ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
s2013 has joined #ruby
mistermocha has joined #ruby
atan has joined #ruby
nofxx has joined #ruby
<atan> Is possible to run an inline shell commend an an erb file? like <% `cat /proc/meminfo` %>
djbkd has quit [Remote host closed the connection]
<saadq> If I have a gem file that has all my dependencies listed, do I still have to require them in the files I use them in?
krz has quit [Quit: WeeChat 1.0.1]
<saadq> (new to Ruby)
d0lph1n98 has quit [Quit: leaving]
eGGsha is now known as eGGshke
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
woodruffw has joined #ruby
pengin has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
christiandsg has quit [Remote host closed the connection]
<Radar> saadq: What files are you using them in?
<saadq> i actually removed the gemfile stuff, my app somehow stopped working when I added it in
<saadq> can i PM you?
hmnhf has quit [Ping timeout: 244 seconds]
<Radar> saadq: No PM.
<saadq> ok then ignore my message lol
<saadq> basically just using sinatra, open-uri, and json for a small app
<Radar> where is your Gemfile?
<saadq> it was in root directory
<saadq> I require'd bundler in my config.ru and did Bundler.require
ksjdflsjldf has joined #ruby
<bosma> Does using an equals sign in a method call mean anything?
<sevenseacat> bosma: example?
<Radar> bosma: Depends on the method.
jesterfraud has joined #ruby
<Radar> It can mean nothing or it can mean something
<bosma> helping a guy on Reddit. http://learnrubythehardway.org/book/ex39.html
<bosma> ctrl-F "default=default"
<bosma> just never seen that before
<Radar> doesn't do anything
<bosma> figured
<sevenseacat> thats weird
pengin has quit [Remote host closed the connection]
<Radar> I emailed Zed about it.
davedev24_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
acke has joined #ruby
craysiii has quit [Ping timeout: 248 seconds]
tmtwd has quit [Remote host closed the connection]
craysiii has joined #ruby
ksjdflsj_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
acke has quit [Ping timeout: 256 seconds]
yayfoxes has quit [Quit: WeeChat 1.0.1]
oo_ has quit [Remote host closed the connection]
eGGsha has joined #ruby
bungoman has quit [Remote host closed the connection]
hotpancakes has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
idafyaid has joined #ruby
dgutierrez1287 has joined #ruby
jaimessi has quit [Read error: Connection reset by peer]
ksjdflsjldf has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jaimessi has joined #ruby
ksjdflsj_ has quit [Quit: Leaving...]
arescorpio has quit [Quit: Leaving.]
hotpancakes has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
juanca_ has quit [Remote host closed the connection]
hmnhf has joined #ruby
<baweaver> Anyone know someone with mod access on the ruby tracker?
<baweaver> Urgent
<baweaver> 2851820660@qq.com needs to be blacklisted, spamming the heck out of it.
danman has quit [Quit: danman]
<baweaver> Ox0dea: ^^^
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> heh, the ruby issue tracker is redmine
oo_ has joined #ruby
<sevenseacat> one day I want to write a version of redmine that doesnt suck
lokulin has quit [Ping timeout: 246 seconds]
eGGsha has joined #ruby
tkuchiki has joined #ruby
<baweaver> pinged matz on twitter but I doubt that helps much right now.
<baweaver> tenderlove is about the only other one I know
dhjondoh has joined #ruby
eggoez has joined #ruby
<baweaver> well, pinged both of them
<baweaver> hopefully that reaches someone that knows.
gambl0re has quit [Ping timeout: 240 seconds]
choke has joined #ruby
workmad3 has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
DanKnox has quit [Quit: ZNC - http://znc.in]
benlieb has joined #ruby
bronson has quit [Remote host closed the connection]
hotpancakes has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
bronson has joined #ruby
peter_paule has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
lokulin has joined #ruby
tagrudev has joined #ruby
riotjones has joined #ruby
J4D has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
hotpancakes has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 276 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
railsraider has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peter_paule has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
railsraider has quit [Client Quit]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
yizr has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
unshadow_ has joined #ruby
araujo__ has quit [Ping timeout: 264 seconds]
devbug has joined #ruby
unshadow has quit [Ping timeout: 256 seconds]
zacts has joined #ruby
oo_ has quit [Remote host closed the connection]
araujo__ has joined #ruby
SCHAAP137 has joined #ruby
howdoicomputer has joined #ruby
araujo__ has quit [Client Quit]
araujo has joined #ruby
fabrice31 has joined #ruby
mistermocha has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has joined #ruby
choke has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bhuvan_aurora has joined #ruby
hmnhf_ has joined #ruby
adamski2600 has joined #ruby
bhuvanaurora has joined #ruby
Helheim has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
hotpancakes has joined #ruby
Helheim has joined #ruby
hmnhf has quit [Ping timeout: 246 seconds]
yeticry has quit [Quit: leaving]
adamski2600 has quit [Ping timeout: 246 seconds]
midi_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
ivanskie has joined #ruby
abuzze has joined #ruby
Jamal has quit [Ping timeout: 240 seconds]
acke has joined #ruby
dented42 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<midi_> does anyone think they would be able to help me with how to use the reddit API via Net::HTTP?
fabrice31 has joined #ruby
<cout> midi_: you might be happier using rest-client
casadei_ has quit [Remote host closed the connection]
<certainty> moin
cubicool has left #ruby [#ruby]
hotpancakes has joined #ruby
<midi_> thanks, i'll give it a try
djbkd has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
lxsameer has joined #ruby
acke has quit [Ping timeout: 264 seconds]
juanca_ has joined #ruby
jenrzzz has joined #ruby
acke has joined #ruby
<flughafen> morning
juanca_ has quit [Remote host closed the connection]
zacts has quit [Quit: leaving]
hotpancakes has quit [Ping timeout: 252 seconds]
hanmac1 has joined #ruby
idafyaid0 has joined #ruby
zacts has joined #ruby
djbkd_ has joined #ruby
tvw has joined #ruby
idafyaid0 has quit [Remote host closed the connection]
howdoi has joined #ruby
Soda has joined #ruby
eGGsha has joined #ruby
zacstewart has joined #ruby
idafyaid0 has joined #ruby
anaeem1_ has joined #ruby
idafyaid0 has quit [Remote host closed the connection]
hmnhf_ has quit [Quit: Konversation terminated!]
haraoka has joined #ruby
hmnhf has joined #ruby
krz has joined #ruby
IanV0rn2341 has joined #ruby
abuzze has quit []
mistermocha has quit [Ping timeout: 240 seconds]
roolo_ has joined #ruby
yizr has quit [Ping timeout: 248 seconds]
Scroff has joined #ruby
Cache_Money has joined #ruby
unshadow_ has quit [Ping timeout: 252 seconds]
abuzze has joined #ruby
Cache_Money has quit [Client Quit]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
Ropeney has quit [Write error: Connection reset by peer]
roolo__ has joined #ruby
unshadow has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
konsolebox has joined #ruby
A205B064 has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Excess Flood]
solars has joined #ruby
michael_mbp has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
roolo_ has quit [Ping timeout: 255 seconds]
konsolebox has quit [Max SendQ exceeded]
saadq has quit []
konsolebox has joined #ruby
cubesandcode has joined #ruby
blokc has joined #ruby
Jamal has joined #ruby
olistik has joined #ruby
baweaver has joined #ruby
rodfersou has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
blokc has quit [Remote host closed the connection]
<cubesandcode> this is a silly question, but is there a way to change what language is displayed next to your github repo
blokc has joined #ruby
jas02 has joined #ruby
<apeiros> cubesandcode: write more code in the language you wish to be shown
<cubesandcode> they always say CSS because of big css frameworks i use
railsraider has joined #ruby
<sevenseacat> dont include those frameworks in your repo
konsolebox has quit [Max SendQ exceeded]
s00pcan has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
s00pcan has joined #ruby
Jamal has quit [Ping timeout: 264 seconds]
blokc has quit [Client Quit]
User458764 has joined #ruby
<sphex> `and` and `or` have the same precedence?!
<apeiros> yes
blokc has joined #ruby
<sphex> oh noes
tjohnson has quit [Quit: Connection closed for inactivity]
<apeiros> oh nose?
troulouliou_dev has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
arup_r has quit [Remote host closed the connection]
<sevenseacat> ow my nose
jenrzzz has quit [Ping timeout: 246 seconds]
<flughafen> sevenseacat: did the cat bonk it?
choke has joined #ruby
pepperbreath has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
bronson has joined #ruby
doctorly has quit [Ping timeout: 264 seconds]
neanderslob has joined #ruby
craysiii has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
arup_r has joined #ruby
craysiii has joined #ruby
cubesandcode has left #ruby [#ruby]
jmhmccr has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
blokc has quit [Quit: blokc]
niemcu has joined #ruby
ta has quit [Remote host closed the connection]
aswen has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
niemcu has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
krz has quit [Client Quit]
Scroff has quit [Remote host closed the connection]
Ropeney has joined #ruby
tkuchiki has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
zacstewart has quit [Ping timeout: 244 seconds]
krz has joined #ruby
troulouliou_dev has joined #ruby
nargin has joined #ruby
oo_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
<nargin> Hi! I'm trying to build a ruby extension but it fails at 'ruby extconf.rb' because the ruby header files cannot be found. Now I installed them at a non-default location. How can I tell the script to use the alternative install path?
ndrei has joined #ruby
bubbys has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mhib has joined #ruby
Timba-as has joined #ruby
hotpancakes has joined #ruby
joonty has joined #ruby
<headius> sphex: rubyspec was adopted by MRI and they are contributing to it regularly now
arup_r_ has joined #ruby
roolo__ has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 256 seconds]
k3asd`_ has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
msgodf has quit [Ping timeout: 252 seconds]
eGGsha has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 256 seconds]
dopie has quit [Quit: This computer has gone to sleep]
solars has quit [Quit: WeeChat 0.4.2]
aryaching_ has quit [Ping timeout: 248 seconds]
dede has joined #ruby
symm- has joined #ruby
<sphex> headius: did they merge it in the MRI repo?
<headius> it's under ruby/rubyspec now on github
<headius> there's a number of folks contributing to it
doertedev has joined #ruby
workmad3 has joined #ruby
solars has joined #ruby
yardenbar has joined #ruby
gagrio has joined #ruby
<sphex> headius: awesome! hey thanks for the infos. google does not find this... :/
DoubleMalt has joined #ruby
<headius> I don't think there was a big announcement or any drama around it...they just took over and continue maintaining it
<sphex> oh yeah.. google did find some ancient drama though :p
dented42_ has joined #ruby
<apeiros> headius: was that before or after brixen complained?
<headius> they had been using a fork of it up until then
midi_ has quit [Remote host closed the connection]
IanV0rn2341 has quit []
workmad3 has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 252 seconds]
dented42 has quit [Ping timeout: 256 seconds]
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
haxrbyte has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
krz has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 264 seconds]
IanV0rn2341 has joined #ruby
Renich has joined #ruby
tkuchiki has quit [Remote host closed the connection]
anaeem1__ has joined #ruby
IanV0rn2341 has quit [Client Quit]
anaeem1_ has quit [Ping timeout: 240 seconds]
bhuvanaurora has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
bhuvan_aurora has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
msgodf has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
camilasan has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 240 seconds]
Scroff has joined #ruby
camilasan has joined #ruby
livathinos has joined #ruby
postmodern has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
Jamal has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
adamski2600 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
ValicekB has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
mistermocha has joined #ruby
olistik has quit [Remote host closed the connection]
adamski2600 has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
kislak has joined #ruby
Wobbley has left #ruby [#ruby]
tomphp has joined #ruby
allomov has joined #ruby
allomov has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
ta has joined #ruby
christiandsg has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
white_bear has joined #ruby
devbug_ has joined #ruby
stonith has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
kahuna_ has quit [Quit: Lost terminal]
RegulationD has joined #ruby
eGGsha has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
devbug has quit [Ping timeout: 256 seconds]
Jamal has quit [Ping timeout: 256 seconds]
mengu__ has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
hanmac1 has left #ruby [#ruby]
RegulationD has quit [Ping timeout: 255 seconds]
kies^ has quit [Ping timeout: 265 seconds]
Jamal has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iwishiwerearobot has quit [Quit: >:(]
stonith has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
dgutierrez1287 has joined #ruby
chussenot has joined #ruby
Papierkorb has joined #ruby
Hounddog has joined #ruby
Guest94314 has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has quit [Ping timeout: 276 seconds]
noname1 has joined #ruby
idafyaid has quit [Remote host closed the connection]
axl_ has joined #ruby
willhumphreys has joined #ruby
iateadonut has joined #ruby
ndrei has joined #ruby
arup_r_ has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
oo_ has quit [Remote host closed the connection]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codecop has joined #ruby
djbkd_ has joined #ruby
sandelius has joined #ruby
Guest94314 is now known as marr
rdark has joined #ruby
rdark has quit [Client Quit]
Rickmasta has joined #ruby
oo_ has joined #ruby
rdark has joined #ruby
willhumphreys has quit [Ping timeout: 252 seconds]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba_ has joined #ruby
yfeldblum has joined #ruby
ralku has joined #ruby
willhumphreys has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
hanmac1 has joined #ruby
Jamal is now known as JMoir
Ropeney has joined #ruby
mhib has quit [Quit: Leaving]
Burgestrand has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
alexblom has quit [Ping timeout: 256 seconds]
sivoais has quit [Ping timeout: 250 seconds]
low-profile has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
sivoais has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
fella5s has joined #ruby
oo_ has quit [Remote host closed the connection]
alexblom has joined #ruby
oo_ has joined #ruby
mhib has joined #ruby
woodruffw has quit [Ping timeout: 248 seconds]
<yorickpeterse> morning
platzhirsch has quit [Ping timeout: 264 seconds]
<apeiros> moin
mistermocha has joined #ruby
djbkd_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quazimod1 has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ValicekB has joined #ruby
dumdedum has joined #ruby
<Burgestrand> Anybody else having issues with rubygems? Status page says everything is OK, but my computer disagrees.
hotpancakes has joined #ruby
fabrice31 has joined #ruby
tesuji has joined #ruby
low-profile has joined #ruby
platzhirsch has joined #ruby
<sevenseacat> Burgestrand: what issues are you having?
<ralku> Burgestrand nope I was just to at least fetch
<ralku> *able
<Burgestrand> Receiving 503 status codes on gem downloads.
IanV0rn2341 has joined #ruby
wildfield has joined #ruby
olistik has joined #ruby
Xeago has joined #ruby
mandarinkin has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<yorickpeterse> man, folding comments in Vim is probably one of the better decisions this year
<yorickpeterse> You still get to have documentation without actually having to see it
bhuvan_aurora has joined #ruby
workmad3 has joined #ruby
davedev24_ has joined #ruby
bhuvanaurora has joined #ruby
<hanmac1> Burgestrand: did you maybe try to update your rubygems version? i think there was an update a few days ago
jenrzzz has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<Burgestrand> hanmac1: it appears that it could simply be some old gems that have fallen out of the cache and taking a bit too long to retrieve initially. If I try the same gem some 15 seconds later the install will go just fine.
woodruffw has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Squarepy has joined #ruby
dumdedum has quit [Ping timeout: 252 seconds]
<nargin> Hi! I'm trying to build a ruby extension but it fails at 'ruby extconf.rb' because the ruby header files cannot be found. Now I installed them at a non-default location. How can I tell the script to use the alternative install path?
arup_r has joined #ruby
mistermocha has joined #ruby
ralku is now known as ralku[away]
davedev24_ has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
<yorickpeterse> nargin: your Ruby installation has to be aware of where the headers are
mhib_ has joined #ruby
<yorickpeterse> otherwise probably every extension out there is going to fail
ralku[away] is now known as ralku
keernel has joined #ruby
<nargin> yorickpeterse: exaclty, but I don't know how to achieve this. The thing is this: I'm running on a system without root access. The ruby packets are installed, but not the headers. So I extracted them locally. Can't I just set some env vars to get it running?
<hanmac1> nargin: OS version and how did you install ruby?
<nargin> it's RHEL 6 with ruby installed, but not ruby-devel
<hanmac1> nargin: you are looking for rvm to install your ruby in user-space
fabrice31 has quit [Remote host closed the connection]
tvw has joined #ruby
fabrice31 has joined #ruby
mhib has quit [Ping timeout: 246 seconds]
mengu__ has quit [Remote host closed the connection]
<keernel> (stupid question from a sleepy guy: How can i get a ActiveRecord_Associations_CollectionProxy of another ActiveRecord_Associations_CollectionProxy ?)
<keernel> like User.posts.messages
<apeiros> keernel: #rubyonrails
<yorickpeterse> nargin: Ah yeah, that's not going to work very well
<keernel> sorry #apeiros
<keernel> and thank u
jeanlinux has joined #ruby
<yorickpeterse> nargin: it's best to either have the headers installed via the package manager (thus needing root access), or by using chruby/ruby-install
<apeiros> keernel: uh, you don't prefix nicks with # in irc…
Xeago has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
<yorickpeterse> those tools let you install your own Rubies without needing root access
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hanmac1> yorickpeterse: rvm does work too, but might be a bit overkill for him
quimrstorres has joined #ruby
jeanlinux has quit [Remote host closed the connection]
kislak has quit [Read error: Connection reset by peer]
<yorickpeterse> RVM is crap
<yorickpeterse> don't use that
eGGsha has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<yorickpeterse> I say that with all the respect to mpapis, but RVM is just a waste of time
<apeiros> o0
abuzze has quit [Remote host closed the connection]
<apeiros> rvm works fine here and has so for >4y
<hanmac1> hm ok, i thought that too, but it does work for me because i need different kind of builded ruby versions i might not achive with chruby
<apeiros> (probably >5y even, not sure…)
<yorickpeterse> Every person I've come across using RVM has had problems that really shouldn't arise. I've had it fuck up my servers on a consistent basis up to the point where I have to follow a procedure to make sure it doesn't result in downtime
<yorickpeterse> and the amount of Rbx bugreports due to RVM mucking with things is too darn high
mistermocha has joined #ruby
<yorickpeterse> it just does _way_ too much
keernel has left #ruby [#ruby]
<yorickpeterse> "oh your libyaml is not fresh from the shelf? Better try to update that by compiling a version ourselves and oh fuck that failed"
<apeiros> I'm a small sample size, but we use it on >20 machines with different OSes and never had any real problem
abuzze has joined #ruby
<apeiros> the only problem I remember having was when it started to automatically do `bundle exec`
<nargin> let me throw in another piece: I want to build a ruby plugin for vim. Vim itself of course is built against the system's version of ruby. If I do a parallel install and build the plugin against it, won't that completely mess up once it's loaded into vim?
<apeiros> and that wasn't a technical problem
<yorickpeterse> apeiros: I can install a new Ruby version and it will fuck up my shebangs and inject it's stupid bundler-unload/gem-wrappers/whatever Gems, even though I have all that disabled
<yorickpeterse> and I have my shebangs set to --env-shebang in 129381902301 places
<yorickpeterse> so basically the procedure is now: 1) install Ruby 2) uninstall those crap Gems 3) gem pristine --all --env-shebang 4) double-triple check
<yorickpeterse> nargin: If you start Vim from the terminal it can pick up whatever Ruby is set in $PATH and such
<yorickpeterse> but if you have control over the machine it's probably way easier to just install the dev headers via your package manager
<yorickpeterse> If somebody manages it for you, ask them to do it
quimrstorres has joined #ruby
<yorickpeterse> apeiros: either way, if you only ever work with MRI in RVM it's doable
<yorickpeterse> but heavens forbid trying to do anything but taht
<yorickpeterse> either way, hopefully RVM2 will be better
abuzze has quit [Remote host closed the connection]
<yorickpeterse> if that ever gets released
abuzze has joined #ruby
willhumphreys_ has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
shredding has joined #ruby
<yorickpeterse> also the amount of distros fucking up JRuby packages is just stupid
willhumphreys has quit [Ping timeout: 250 seconds]
willhumphreys_ is now known as willhumphreys
dumdedum has joined #ruby
<nargin> yorickpeterse: ok thanks. I'll give it a try.
<hanmac1> hm i checked out chruby and ruby-install, and both are not enough for me, i need ways to install my ruby against different compiler and settings
<yorickpeterse> hanmac1: ruby-install can do all that
mistermocha has quit [Ping timeout: 256 seconds]
<yorickpeterse> IIRC the syntax is "ruby-install VERSION -- configure-flags-here"
<yorickpeterse> e.g. "ruby-install rbx -- --cc=clang --cxx=clang++
Xeago has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
sevenseacat has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
willhumphreys has quit [Ping timeout: 250 seconds]
willhumphreys_ has joined #ruby
willhumphreys_ is now known as willhumphreys
mhib_ has quit [Quit: Leaving]
workmad3 has joined #ruby
mikecmpbll has quit [Quit: ciao.]
zacstewart has joined #ruby
matcouto has joined #ruby
<hanmac1> ruby-install does not work for me because: "Does not support installing trunk/HEAD."
<yorickpeterse> ehm, you can just compile that by hand no?
jaimessi has quit [Quit: jaimessi]
<yorickpeterse> also pretty sure last I checked I could install from trunk
<ralku> rbx-2.5.7?
adamski2600 has joined #ruby
<yorickpeterse> ralku: ?
bhuvan_aurora has quit [Remote host closed the connection]
bhuvanaurora has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
haraoka has quit [Ping timeout: 252 seconds]
dagda1 has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
adamski2600 has quit [Ping timeout: 255 seconds]
magical-imouto has quit [Ping timeout: 252 seconds]
<ralku> sorry ^^ wrong IRC channel... Sorry 'bout that chiming in!
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
magical-imouto has joined #ruby
hotpancakes has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
ralku is now known as ralku[away]
User458764 has joined #ruby
christiandsg has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
revath has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
oo_ has joined #ruby
sandelius has joined #ruby
revath has left #ruby [#ruby]
mclee has quit [Ping timeout: 250 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
ralku[away] is now known as ralku
mclee has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
craysiii has quit [Ping timeout: 248 seconds]
railsraider_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
railsraider has quit [Ping timeout: 256 seconds]
railsraider_ is now known as railsraider
User458764 has quit [Ping timeout: 240 seconds]
Scroff has quit [Ping timeout: 246 seconds]
Scroff has joined #ruby
User458764 has joined #ruby
davedev24_ has joined #ruby
iateadonut has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
railsraider_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
willhumphreys has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
duncannz has quit [Ping timeout: 256 seconds]
railsraider has quit [Ping timeout: 250 seconds]
railsraider_ is now known as railsraider
gix has quit [Ping timeout: 265 seconds]
Scroff has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Scroff has joined #ruby
Xeago has quit []
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Matadoer has quit [Ping timeout: 252 seconds]
iateadonut has joined #ruby
eshy has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 248 seconds]
eshy has joined #ruby
oo_ has quit [Remote host closed the connection]
Rickmasta has joined #ruby
olistik has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
oo_ has joined #ruby
lkba has joined #ruby
Zai00 has quit [Quit: Zai00]
mistermocha has joined #ruby
lkba has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
Pupeno has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
fabrice31 has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: No route to host]
zacstewart has joined #ruby
Muhannad has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
Zai00 has joined #ruby
Renich has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
Renich has joined #ruby
quimrstorres has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jespada has joined #ruby
revath has joined #ruby
quimrstorres has joined #ruby
oo_ has joined #ruby
ralku is now known as ralku[away]
fgo has joined #ruby
chussenot has quit [Quit: chussenot]
Scroff has quit [Remote host closed the connection]
bodgix_wrk has joined #ruby
nfk has joined #ruby
mistermo_ has quit [Ping timeout: 248 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LanMan has joined #ruby
mistermocha has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
Scroff has joined #ruby
ralku[away] is now known as ralku
auzty has joined #ruby
chussenot has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
phutchins has joined #ruby
fabrice31 has quit [Remote host closed the connection]
lavros has joined #ruby
Naze_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
sdothum has joined #ruby
eGGsha is now known as eGGshke
lavros has quit [Client Quit]
phutchins has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
Naze_ is now known as naze_
haxrbyte has joined #ruby
oo_ has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 264 seconds]
eGGshke is now known as eGGsha
haxrbyte_ has quit [Ping timeout: 250 seconds]
olistik has joined #ruby
c355E3B has joined #ruby
oo_ has joined #ruby
auzty has quit [Quit: Leaving]
hotpancakes has joined #ruby
naze_ is now known as LanMan_
haxrbyte_ has joined #ruby
JMoir has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
ralku is now known as ralku[away]
Scroff has quit [Remote host closed the connection]
Jamal has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
shredding has quit [Ping timeout: 248 seconds]
haxrbyte has quit [Ping timeout: 256 seconds]
Renich has quit [Quit: leaving]
arup_r_ has joined #ruby
chussenot has quit [Quit: chussenot]
willhumphreys has joined #ruby
ralku[away] is now known as ralku
railsraider has quit [Ping timeout: 265 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 256 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Jamal has quit [Ping timeout: 244 seconds]
solars has quit [Quit: WeeChat 0.4.2]
Scroff has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
jeanlinux has joined #ruby
Maxou56800 has joined #ruby
<Maxou56800> I love python!
Maxou56800 has left #ruby [#ruby]
Gate has quit [Quit: Lost terminal]
ips|malc has joined #ruby
luluapple has quit [Ping timeout: 276 seconds]
wildroman2 has joined #ruby
LanMan has quit []
Squarepy has quit [Quit: Leaving]
fabrice31 has joined #ruby
railsraider has joined #ruby
solars has joined #ruby
<jhass> uh, that's nice I guess
christiandsg has joined #ruby
jeanlinu_ has joined #ruby
jeanlinux has quit [Read error: No route to host]
<ralku> Haha, I don't think you'll really be satisfied by any ragers within this irc :) Python is a nice language
luluapple has joined #ruby
Igorshp has quit [Remote host closed the connection]
<yorickpeterse> 2/10 worst troll
<ralku> heh
<jhass> they're not even in #python :(
chussenot has joined #ruby
<apeiros> they also immediately left
<apeiros> so… pointless is pointless?
solars has quit [Ping timeout: 256 seconds]
<ralku> I still don't get why trolling would be funny in a dedicated development irc channel... as if anyone would really give a shit ^^ maybe try reddit haha
revath has quit [Read error: Connection reset by peer]
jeanlinu_ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
senayar has quit [Remote host closed the connection]
jeanlinux has joined #ruby
senayar has joined #ruby
Igorshp has joined #ruby
zenguy_pc has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
revath has joined #ruby
zenguy_pc has quit [Max SendQ exceeded]
<DefV> I get irc trolling, but I don't get why he left
<chris2> in the old days, we invaded python :>
railsraider has quit [Ping timeout: 244 seconds]
zenguy_pc has joined #ruby
ldnunes has joined #ruby
willhumphreys has quit [Ping timeout: 256 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<redlegion> Euuweaaaah back in my day, trolling really meant something *shuffles dirt with his walker*
<chris2> heck that was over 10 years ago :D
bronson has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
<yorickpeterse> ralku: actually it's pretty funny
<yorickpeterse> e.g.
fabrice31 has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<yorickpeterse> Turbolinks is amazing
<yorickpeterse> ActionCable is the future
senayar has joined #ruby
<yorickpeterse> Then you just sit back and wait for a few nerds to take it too seriously
fabrice31 has joined #ruby
rodfersou has quit [Quit: leaving]
<Ox0dea> Ruby's sort is unstable! This language a shit.
<yorickpeterse> That's actually true
<jhass> Ruby is so slow, look at how fast Crystal is!
<chris2> dont do too much crystal
<yorickpeterse> Yeah, look at all the features it doesn't have!
<neanias> You'll lose your teeth
dblessing has joined #ruby
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 265 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<ralku> jhass: just looking at the commit stats haha
<jhass> yeah, Ary is a bit insane
jeanlinux has quit [Ping timeout: 240 seconds]
jeanlinux has joined #ruby
<ralku> well insane... ^^
solars has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
mistermocha has joined #ruby
jeanlinu_ has joined #ruby
krz has joined #ruby
willhumphreys has joined #ruby
<adaedra> I'm trying to setup a logger to syslog in a rack application (no sinatra)
jeanlinux has quit [Ping timeout: 256 seconds]
<adaedra> I have a Yell logger, and I setup with `use Rack::CommonLogger, LOGGER`
<adaedra> But it still outputs exception backtraces to console
<adaedra> How can I make it log those to my logger too?
<adaedra> mh, doesn't work either for common logging -_-
rqde has quit [Quit: Page closed]
Scroff has quit [Remote host closed the connection]
juanca_ has joined #ruby
ralku is now known as ralku[away]
juanca_ has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
Jamal has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
arturmartins has joined #ruby
zeeraw has joined #ruby
freerobby has joined #ruby
Aswebb_ has joined #ruby
zeeraw has quit [Client Quit]
s00pcan has quit [Ping timeout: 240 seconds]
jeanlinu_ has quit [Read error: No route to host]
jeanlinux has joined #ruby
howardg has joined #ruby
<howardg> good day. is there an array function similar to join but returns array result instead of string?
stephenh has quit [Quit: Changing server]
Igorshp has quit [Remote host closed the connection]
s00pcan has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> howardg: what do you want the return value to be?
<howardg> array
<tobiasvl> yes, but what array?
<tobiasvl> you want to join an array to create an array?
<howardg> [1,2,3] => [1, 'a', 2, 'a', 3]
<howardg> for example
leonardoajim has joined #ruby
<jhass> .zip(['a'].cycle)
Scroff has joined #ruby
<howardg> thanks jhass
ralku[away] is now known as ralku
<apeiros> that'll give a trailing 'a', though
Jamal is now known as JMoir
arup_r_ has quit []
<jhass> pff, post fence problems, who needs those
<apeiros> .tap(&:pop)?
jeanlinux has quit [Read error: No route to host]
jeanlinu_ has joined #ruby
zeeraw has joined #ruby
arup_r has joined #ruby
ItSANgo__ has quit [Quit: Leaving...]
howdoicomputer has quit [Ping timeout: 252 seconds]
<arup_r> Always I am getting OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed from code https://gist.github.com/aruprakshit/84c280159f3e89167508
<arup_r> I tried http.verify_mode = OpenSSL::SSL::VERIFY_NONE didn't worj
howardg has left #ruby [#ruby]
<apeiros> I wouldn't work either. too hot.
<Burgestrand> adaedra: I believe you'll either need to write your own middleware to catch and log errors, or use an existing one from a gem.
<adaedra> Burgestrand: thanks for the confirmation, I was doing the former.
jeanlinu_ has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
jeanlinux has joined #ruby
Yzguy has quit [Client Quit]
<Burgestrand> adaedra: the commonlogger is just for logging incoming requests, it doesn't catch and log errors.
<jhass> arup_r: impossible to debug if you hide the URL
freerobby has quit [Quit: Leaving.]
Soda has quit [Remote host closed the connection]
<arup_r> humm
<arup_r> one thing is it is happening with onle one user.. others are not getting any error
<arup_r> But may I pm you jhass: :) The url ?
<adaedra> Burgestrand: yeah, I saw that. But it didn't work for that purpose either, seems Yell is not compatible with it.
<jhass> meh, not in the mood for private tutoring
arturmartins has quit [Quit: Leaving...]
<ralku> :(
zacstewart has quit [Remote host closed the connection]
<arup_r> ok... Url is a bit private
<jhass> then it should have authentication anyway
Scrofff has joined #ruby
jeanlinu_ has joined #ruby
<Burgestrand> arup_r: I'm guessing you aren't using JRuby?
<apeiros> arup_r: if you need help with private problems, then hire a consultant.
<arup_r> using MRI
<apeiros> alternatively find a way to make it a non-private problem.
Scroff has quit [Ping timeout: 256 seconds]
xcesariox has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Ping timeout: 255 seconds]
<arup_r> apeiros: the url is a bit private that I said...
<apeiros> arup_r: yes. which makes your problem a private problem.
<Burgestrand> I had a fun run-in with JRuby on Mac throwing the same error for most SSL things, since Java by default ships with support only for weak encryption.
<yorickpeterse> For SSL verification errors, either update your local certificate chain or tell the website to fix their SSL
mistermocha has quit [Read error: Connection reset by peer]
bjornar has quit [Ping timeout: 276 seconds]
<yorickpeterse> Disabling SSL verification is a hack
jeanlinu_ has quit [Read error: Connection reset by peer]
<arup_r> yorickpeterse: I tired http://railsapps.github.io/openssl-certificate-verify-failed.html "Use RVM to Fix SSL Certificates" section also
<arup_r> no luck
jeanlinux has joined #ruby
<arup_r> the thing is it is happening in only one machine
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinu_ has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
jeanlinux has quit [Read error: Connection reset by peer]
surs has joined #ruby
codecop has quit [Remote host closed the connection]
zacstewart has joined #ruby
Macaveli has joined #ruby
Kully3xf has joined #ruby
eGGsha has joined #ruby
ItSANgo has joined #ruby
sogard has joined #ruby
jeanlinu_ has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
nateberkope has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
<sogard> What do you think about implementing functional paradigm in Ruby?
<yorickpeterse> What do you think about the weather?
<apeiros> I think that hits two fields on my buzzword bingo card
<yorickpeterse> apeiros: Ruby is a buzzword these days?
<ralku> ^^ maybe it's about?
<apeiros> yorickpeterse: ever since it hit the enterprises
revath has quit [Ping timeout: 256 seconds]
<yorickpeterse> Ruby On Rails 2.0 Enterprise Edition: now with Long Term Support and free JIRA intergration
<yorickpeterse> * integration
<jhass> but what about the cloud? does it cloud?
<yorickpeterse> it comes with a 7 day trial for Salesforce Cloud
<bougyman> Bingo!
<bougyman> I needed Salesforce
<apeiros> jhass: functional cloud monad with ephemeral transactions support, fully sharded.
<jhass> sounds webscale
jeanlinu_ has joined #ruby
<apeiros> webscale? that's so yestermillenial.
psy_ has quit [Ping timeout: 264 seconds]
<yorickpeterse> ephemeral ....transactions?
jeanlinux has quit [Read error: Connection reset by peer]
<apeiros> yorickpeterse: yeah, persistent isn't cloudscale enough.
bjornar has joined #ruby
<bougyman> we declouded this year.
<bougyman> is that a word?
IanV0rn2341 has quit []
<bougyman> i'm making it one.
<apeiros> uncloudified?
<Ox0dea> Grounded?
<jhass> rained?
decoponio has joined #ruby
<apeiros> rained?
<yorickpeterse> NoCloud
<apeiros> dang!
<yorickpeterse> wait
<yorickpeterse> NoCLOUD
<apeiros> muaha
jeanlinu_ has quit [Read error: Connection reset by peer]
<yorickpeterse> gotta use capitals for extra pop
<bougyman> that's us. unCLOUD
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
<ralku> UnCLOUD.me
<jhass> un.cloud
<yorickpeterse> LAME, bearmetal.com is taken
<yorickpeterse> and redirects to baremetal.com
<yorickpeterse> meh
<apeiros> we have a private beowulf cloud cluster
<apeiros> because a single cloud isn't enough
<ralku> I'd rather have a private beer cluster
<yorickpeterse> I have a fleet of Bayesian wolf spider clusters
<yorickpeterse> it lets us do super giga grid computing
<ralku> beercloud cluster
<apeiros> did we actually answer sogard's question? :D
willhumphreys has quit [Ping timeout: 252 seconds]
<jhass> I think so
<yorickpeterse> are these clouds side effect free?
<ddv> nerds
<yorickpeterse> Otherwise they're not functional clouds
<yorickpeterse> I once herd of this guy running a Lisp cloud
<apeiros> cloud monad
<yorickpeterse> somehow everybody raved about how amazing it was, though nobody ever actually used it in production
<Papierkorb> Is there actually a gem or so which starts a completely separate ruby environment inside ruby?
<jhass> `ruby`
sogard has quit [Quit: Page closed]
<apeiros> Papierkorb: there are sandbox projects
<apeiros> Papierkorb: not sure any reached maturity, though. check ruby-toolbox
<Papierkorb> Yeah, something like a sandbox. I don't need it currently, just thinking
<jhass> maybe somebody did a mruby gem already?
<apeiros> mmmmmmruby
<apeiros> I wish I could blame the heat. but today it's actually bearably cool.
jeanlinux has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
jeanlinux has joined #ruby
sgambino has joined #ruby
<yorickpeterse> I got soaked this mornin
<yorickpeterse> * morning
<yorickpeterse> my shoes/socks are still drying
<yorickpeterse> of course it stopped raining when I got in my train
<apeiros> damn clouds!
freerobby has joined #ruby
jonathanwallace has joined #ruby
<yorickpeterse> I wonder if we as a species will ever get smart enough to stop abusing buzzwords
goodcodeguy has joined #ruby
senayar has quit [Remote host closed the connection]
<apeiros> good for you, you still got hope.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stantonnet has joined #ruby
<yorickpeterse> I'm young
jenrzzz has joined #ruby
senayar has joined #ruby
<Darkwater> start by getting rid of consumers
<Darkwater> or rather
<Darkwater> about that mars program
<Darkwater> just transfer smart people to mars
<yorickpeterse> Heck no, that would be a waste of Mars
<Darkwater> watch earth slowly die
<yorickpeterse> errr wait
<yorickpeterse> hm
<Darkwater> then build a new civilization on mars
* yorickpeterse read that as "transfer all the dumb people to mars"
<Darkwater> heh
<yorickpeterse> Mars isn't a very convenient place though
surs1 has joined #ruby
<Darkwater> dw we can harvest the green/blue planet for water and other resources
<yorickpeterse> I'd rather have Titan
oo_ has quit [Remote host closed the connection]
<Darkwater> including fuel for the transfer
RegulationD has quit [Ping timeout: 255 seconds]
surs has quit [Ping timeout: 255 seconds]
hanynowsky has joined #ruby
<yorickpeterse> maybe we can genetically engineer humanity so that every time one thinks of buzzwords they get zapped
<hanynowsky> Hello guys
<yorickpeterse> much like that alien probe in South Park
<yorickpeterse> oh oh wait, I get to use it:
<yorickpeterse> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<hanynowsky> Anyone here using the snmp gem ?
willhumphreys has joined #ruby
phutchins1 has joined #ruby
<Darkwater> idk, my understanding of "guys" includes girls
<Darkwater> even see girls address groups of 100% girls as "guys" sometimes
<yorickpeterse> Darkwater: correct, and I believe it's officially gender neutral in the English language
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<yorickpeterse> however, it's one of those words that hinges on the border of "somebody just did that to shut people up"
jenrzzz has quit [Ping timeout: 246 seconds]
<yorickpeterse> Granted it's the least of our problems, but it's nice to keep in mind some might not be happy with it
<yorickpeterse> kinda like using "Ladies" against a bunch of dudes
<yorickpeterse> most won't give a shit, some will (╯°□°)╯︵ ┻━┻
phutchins has quit [Ping timeout: 264 seconds]
<yorickpeterse> kinda like
yorickpeterse has left #ruby ["The NSA took my baby"]
yorickpeterse has joined #ruby
<yorickpeterse> m'ladies
* yorickpeterse tips fedora
<Darkwater> isn't that the purpose anyway
mhib has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<yorickpeterse> eh?
tkuchiki has joined #ruby
<Darkwater> of saying ladies
<jhass> yorickpeterse: Darkwater: if that's going to be a more extensive discussion -> #ruby-offtopic ;)
<Darkwater> to aggrivate/troll
<Darkwater> heh sorry
victortyau has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
bruno- has joined #ruby
<yorickpeterse> Darkwater: true, but whether it's actually perceived as such depends on the person
<jhass> hanynowsky: so what's your issue?
devdazed has quit [Quit: Computer has gone to sleep.]
<hanynowsky> jhass, I want to use the snmp gem to import some mibs. I could import only one. The Two remaining could not be imported
<apeiros> Darkwater: that it is gender neutral in some areas does not mean it is everywhere.
ndrei has quit [Ping timeout: 256 seconds]
<apeiros> d'oh, got to the OT message in the scrollback just yet
quimrstorres has quit [Remote host closed the connection]
<cout> apeiros: I've been saying this for years
<yorickpeterse> apeiros: omg so offtopic
<yorickpeterse> please haul your ass to ruby-offtopic
msgodf has quit [Ping timeout: 264 seconds]
* yorickpeterse runs
<apeiros> /kick yorickpeterse redirect_to:#ruby-offtopic
<cout> apeiros: people think of the South (US) as this backward place, but really we're quite advanced, at least in our grammar. we've had a gender-neutral second-person plural pronoun for ages!
<apeiros> cout: join #ruby-offtopic! we need more people anyway :D
sce_ has joined #ruby
<hanynowsky> jhass, here is what I try to do : http://pastebin.com/D4vbRQf9
<ruboto> hanynowsky, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7aa617b2b8b18d0fcaad
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<yorickpeterse> FINE, since I'm only in #ruby and #shitfire I have room for a third terrible channel
bhorn1 has joined #ruby
chussenot has quit [Quit: chussenot]
<hanynowsky> Sorry guys, did not know about the pastebin stuff
willhumphreys has quit [Ping timeout: 252 seconds]
nveselinov has joined #ruby
<sce_> hello i'm using ruby on rails on a limited memory space server and i'm facing some memory bump. I have been browsing the web a lot and i dont find how can i track this memory leak. The GC is unable to fetch back the memory running manually
<sce_> I'm using ruby 2.2.1 with rails 4.1.10
joelataylor has quit [Quit: Be back later ...]
rwilcox has joined #ruby
<yorickpeterse> sce_: debugging memory leaks in Ruby is a massive pain
<yorickpeterse> (sadly)
<sce_> yorickpeterse, i see i see ...:)
<yorickpeterse> sce_: there are some MRI specific tools, but they usually work by disabling the GC alltogether
<yorickpeterse> which might lead to the app running out of memory and crashing
<ddv> the java world has some great tools tho
<ddv> you could run your app on jruby
<sce_> i can reproduce the bug really easily using carrierwave and rack
Ox0dea has quit [Ping timeout: 255 seconds]
<yorickpeterse> ddv: that might produce _very_ different patterns
<sce_> yorickpeterse, what do you mean by MRI tools ?
<yorickpeterse> But yes, it does have better tooling
<yorickpeterse> sce_: as in, Gems that only work in MRI/CRuby (what most people use)
<yorickpeterse> e.g. they might not work on JRuby, Rubinius, etc
<sce_> i'm using CRuby
arturaz has joined #ruby
lavros has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Igorshp has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
<sce_> yorickpeterse, could you advise me on gems i could use with ruby 2.2.1 ?
JDiPierro has joined #ruby
bungoman has joined #ruby
<yorickpeterse> If you're ok with more low level stuff, Valgrind + Massif is also an option
<sce_> valgrind is crashing with my c ruby build
hotpancakes has joined #ruby
<sce_> maybe i should investigare
<sce_> investigate
Sehryn has joined #ruby
howdoicomputer has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sehryn has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
mengu has quit [Remote host closed the connection]
adamski2600 has joined #ruby
<yorickpeterse> Downside of massif is that it doesn't really show where in your Ruby code the leak is coming from
<yorickpeterse> You might also want to investigate dtrace/systemtap, I believe MRI has some probes it fires when it allocates objects
revath has joined #ruby
surs has joined #ruby
surs has quit [Changing host]
surs has joined #ruby
futilegames has joined #ruby
surs1 has quit [Quit: WeeChat 0.3.7]
surs has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 264 seconds]
`enemy has joined #ruby
hotpancakes has quit [Remote host closed the connection]
`enemy has left #ruby [#ruby]
surs has joined #ruby
Soda has joined #ruby
adamski2600 has quit [Ping timeout: 240 seconds]
jpfuentes2 has joined #ruby
jespada has quit [Ping timeout: 256 seconds]
pulgolino has quit [Read error: Connection reset by peer]
surs has quit [Changing host]
surs has joined #ruby
eGGsha has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Kully3xf has quit [Read error: Connection reset by peer]
willhumphreys has joined #ruby
havenwood has joined #ruby
<konsolebox> does Thread::current return the thread of the caller?
<yorickpeterse> It returns the thread it was called in
mengu has joined #ruby
mengu has joined #ruby
<yorickpeterse> >> Thread.new { Thread.current }.value
<ruboto> yorickpeterse # => (https://eval.in/395575)
zz_Outlastsheep is now known as Outlastsheep
<yorickpeterse> wtf
<yorickpeterse> oh wait
<yorickpeterse> heh
<yorickpeterse> >> Thread.new { Thread.current }.join.value
<ruboto> yorickpeterse # => (https://eval.in/395577)
Macaveli has quit [Ping timeout: 256 seconds]
<yorickpeterse> ehm
futilegames_ has joined #ruby
<Burgestrand> Isnt't #value and #join the same?
<yorickpeterse> maybe I'm dumb
bungoman has quit [Remote host closed the connection]
<yorickpeterse> Burgestrand: Yeah I thought so
<Burgestrand> Is the output HTML escaped? ;)
<Burgestrand> >> Object.new
<ruboto> Burgestrand # => #<Object:0x41a0832c> (https://eval.in/395580)
<yorickpeterse> what the hell eval.in, that works here
<Burgestrand> Hmpf.
<Burgestrand> >> Thread.new
<ruboto> Burgestrand # => must be called with a block (ThreadError) ...check link for more (https://eval.in/395581)
<Burgestrand> >> Thread.new {}
<konsolebox> yorickpeterse: so the same? it returns the thread of the caller?
<ruboto> Burgestrand # => (https://eval.in/395582)
<Burgestrand> Odd.
<yorickpeterse> konsolebox: No
futilegames has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 248 seconds]
<Burgestrand> What does thread of the caller mean?
<Burgestrand> How is that different from "current thread"?
<apeiros> Burgestrand, yorickpeterse: threading not allowed in eval-in.
<yorickpeterse> konsolebox: well sorta, depends on how you look at the definition of "caller"
<konsolebox> the caller not being the context of code, but the thread that runs it
<yorickpeterse> apeiros: aaah
jeanlinux has quit [Remote host closed the connection]
<Burgestrand> Makes sense. :)
n1x has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
<Burgestrand> konsolebox: what could it otherwise possibly return, if not the thread that is calling Thread.current?
<apeiros> konsolebox: callers are objects. objects and threading are orthogonal concepts.
<apeiros> so "thread of caller" makes no sense
<konsolebox> Burgestrand: i'm just openly careful for other possibilities.. that is why i asked here
<apeiros> an object can occur in any amount of threads
kies^ has joined #ruby
Macaveli has joined #ruby
<Burgestrand> konsolebox: okay, I'm just curious of how you're thinking, maybe you're thinking in some other way than me which gives additional possibilities I haven't thought of. :)
<konsolebox> the description "Returns the currently executing thread." is not explicit enough for me
mistermocha has joined #ruby
bungoman has joined #ruby
<Burgestrand> konsolebox: how could it be more explicit?
quimrstorres has joined #ruby
<apeiros> that description somewhat shows that ruby only ever truly executes a single thread…
futilegames_ has quit [Ping timeout: 255 seconds]
<Burgestrand> Even if it didn't, what would Thread.current return?
<apeiros> e.g. in jruby, multiple threads may be currently executing
<Burgestrand> That isn't Thread.current I mean.
<konsolebox> Burgestrand: because the "currently executing" thread may refer to another thread, in terms of context switches, etc. it's unlikely but i still want to make sure
<apeiros> konsolebox: the thread in which the code runs which invokes Thread.current
<apeiros> but IMO it's pretty self-explanatory
<Burgestrand> konsolebox: but in order to call Thread.current, you must be in a thread that is currently executing?
<konsolebox> Burgestrand: yes i thought about that
<Burgestrand> I'm confused :)
livathinos has joined #ruby
christiandsg has joined #ruby
<konsolebox> well nevermind. seeing what most people think about it, i guess it's enough :)
mistermocha has quit [Read error: Connection reset by peer]
nargin has quit [Quit: Leaving]
serivich has joined #ruby
devdazed has joined #ruby
<Burgestrand> konsolebox: so it was just a "maybe it returns something else than I think it does but I have no idea what it could be"-questions?
scripore has joined #ruby
xcesariox has joined #ruby
<konsolebox> Burgestrand: not the proper angle of perspective but you can think it that way
<Burgestrand> konsolebox: okay!
Guest24 is now known as lele
<Burgestrand> I was hoping you had some cool idea of what it could return if it wasn't the currently executing thread. :(
malconis has joined #ruby
mistermocha has joined #ruby
<konsolebox> Burgestrand: i have but it's not practical to go there
Hounddog has quit [Remote host closed the connection]
<Burgestrand> konsolebox: too bad, might've been interesting!
christiandsg has quit [Ping timeout: 265 seconds]
tmtwd has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
jeanlinux has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
[H]unt3r has joined #ruby
jespada has joined #ruby
ferr has joined #ruby
DoubleMalt has joined #ruby
jerius has joined #ruby
<sce_> yorickpeterse, do you think there is non free tools which could help me figure out my memory issue ?
jeanlinu_ has joined #ruby
jonathanwallace has joined #ruby
mary5030 has joined #ruby
malcolmva has joined #ruby
Kully3xf has joined #ruby
<hanynowsky> so, none with some knowledge about the gem: snmp ? This is what I want to do : https://gist.github.com/anonymous/7aa617b2b8b18d0fcaad , yet, the mib files SNMPv2-CONF and SNMPv2-TC won't get imported
<konsolebox> apeiros: btw, i'm not sure what you meant but i was referring to the "thread" of the caller as the thread-object e.g. #<Thread:0x401bdf4c run>
jeanlinux has quit [Ping timeout: 246 seconds]
hmnhf_ has joined #ruby
<konsolebox> apeiros: and saying "callers are objects", i feel like i want to disagree
malconis has quit [Remote host closed the connection]
<hanynowsky> if I use a simple: snmpget command, while specifying the mib folder, everything plays well.
<Darkwater> ;q
<Darkwater> this is not vim
<jhass> konsolebox: the point was that "caller" is a term which exists in the world of objects, stacks & methods, which threads are kind of orthogonal of
hmnhf has quit [Ping timeout: 252 seconds]
<Darkwater> not used to two screens here
<apeiros> konsolebox: so what's a caller?
<konsolebox> jhass: yeah, but not only in the world of objects i bet
<konsolebox> unfortunately we are in ruby so perhaps that was assumed here
JDiPierro has quit [Remote host closed the connection]
<jhass> what?
<apeiros> "unfortunately", not sure how to interpret that :-p
arup_r has quit [Remote host closed the connection]
<jhass> konsolebox: well, you never answered. What would it return if the answer would be "no" (trying to forget that it still makes no sense)
ndrei has joined #ruby
<konsolebox> *i bet.
ralku has quit [Quit: Textual IRC Client: www.textualapp.com]
rbennacer has joined #ruby
JoshL has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
<Burgestrand> How is Binding#receiver different from Binding#eval("self")?
<jhass> it doesn't use eval
<Burgestrand> But they'll always return the same object?
Zai00 has joined #ruby
<apeiros> konsolebox: so what's a caller?
malconis has joined #ruby
<jhass> Burgestrand: I'd assume so
<yorickpeterse> sce_: not that I know of
<konsolebox> Burgestrand: receiver is simply a new feature in 2.2
<Burgestrand> jhass: yeah, me too, it's not that ruby isn't full of redundant methods, I was just curious to why it was added in 2.2.
mjuszczak has joined #ruby
arup_r has joined #ruby
<sce_> yorickpeterse, where i'm surprised is that there is always tools to count object but never which give size informations ...
<konsolebox> apeiros: i simply object that threads calling a request cannot be called a caller
<jhass> Burgestrand: I could imagine it's a lot faster, since just pulling out a pointer
bmurt has joined #ruby
whippythellama has joined #ruby
sevenseacat has joined #ruby
<yorickpeterse> sce_: until very recently size wasn't exposed at all, since 2.something you can get it using ObjectSpace but it's not guaranteed to actually be accurate
<konsolebox> apeiros: callers can be subject to many meanings depending on the.. subject
<apeiros> konsolebox: and you reject that on what grounds?
silkfox has joined #ruby
arup_r has quit [Remote host closed the connection]
<Burgestrand> jhass: indeed, from what I can see it was simply implemented for efficiency, see https://bugs.ruby-lang.org/issues/8779
<apeiros> and which meanings specifically?
hanynowsky has quit [Read error: Connection reset by peer]
hanine has joined #ruby
tkuchiki has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
livathinos has quit []
enebo has joined #ruby
nixmaniack has joined #ruby
<jhass> konsolebox: how does some potential application domain relate to a discussion about language mechanics? Isn't that really really confusing?
mary5030 has quit [Remote host closed the connection]
lukebyrne has joined #ruby
mistermocha has joined #ruby
<apeiros> binding.yourself - lol, nice name :D
<lukebyrne> hey all, any recursive hash sorting guys around?
<apeiros> I'd have liked binding.self, but I guess binding.receiver is fine too
<lukebyrne> or gals
<jhass> lukebyrne: "hash sorting"?
<lukebyrne> I have this JSON string settings = '{"france":{"bordeaux":{"st emmilion":["gran crue"]},"burgundy":{"cote de nuits":{"chambolle musigny":["le musigny"]}}}}'
<Burgestrand> Binding#you was also on the table a little while there.
<lukebyrne> And need to sort it into this output
<lukebyrne> # = region_one = [['France', 'france']]
<lukebyrne> # = region_two = [['Bordeaux', 'bordeaux', class: 'france'], ['Burgundy', 'burgundy', class: 'france']]
<lukebyrne> # = region_three = [['St Emmilion', 'st emmilion', class: 'bordeaux'], ['Cote De Nuits', 'cote de nuits', class: 'burgundy']]
<lukebyrne> # = region_four = [['Gran Crue', 'gran crue', class: 'st emmilion'], ['Chambolle Musigny', 'chambolle musigny', class: 'cote de nuits']]
<lukebyrne> # = region_five = [['Le Musigny', 'le musigny', class: 'chambolle musigny']]
<adaedra> ?gist lukebyrne
<ruboto> lukebyrne, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<lukebyrne> Banging my head against a wall trying to get it down
<jhass> ?flood lukebyrne
<ruboto> lukebyrne, Please use https://gist.github.com for more than three lines of text!
<lukebyrne> doh sorry guys
<jhass> *and gals
<lukebyrne> yup
n1x has quit [Ping timeout: 250 seconds]
<jhass> or simple folks or whatever ;)
<lukebyrne> I humble myself inf front of u all, apologies
tkuchiki has quit [Remote host closed the connection]
hanine is now known as hanynowsky
atomical has joined #ruby
<Burgestrand> Peons.
<adaedra> “Gran crue”
livathinos has joined #ruby
livathinos is now known as livathinos|away
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
<lukebyrne> Here we go
<jhass> lukebyrne: so first of all sort is not a good term, let's call it group, map, transform, partition or whatever
<jhass> sort means to reorder
nixmaniack has quit [Excess Flood]
<lukebyrne> correct, need to recursively iterate it, been trying a few methods, but nothing seems to be doing to the job
<Darkwater> (to be fair, sorting in english is a bit broader than reordering)
<Darkwater> (but yeah this is programming)
nixmaniack has joined #ruby
shellie_ has quit [Quit: leaving]
paulcsmith has joined #ruby
millerti has joined #ruby
<Burgestrand> This looks like fun.
<Burgestrand> lukebyrne: what have you got so far?
mistermocha has quit [Ping timeout: 248 seconds]
<lukebyrne> nothing to serious, just trying enough to iterate the array, some copy pasta from stack overflow, will update the gist
tagrudev has quit [Remote host closed the connection]
nixmaniack has quit [Max SendQ exceeded]
nateberkopec has quit [Read error: Connection reset by peer]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n1x has joined #ruby
<lukebyrne> Burgerstrand: just updated the Gist
<lukebyrne> Burgestrand: just updated the Gist
<apeiros> burgerstrand - I like
bnobu has joined #ruby
<Burgestrand> I think I will see at least one misspelling every day in here. :)
bnobu has quit [Max SendQ exceeded]
<lukebyrne> Yeh sorry
pyro_ has joined #ruby
Ox0dea has joined #ruby
JDiPierro has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Darkwater: When does English "sort" not mean "to place in order"?
<Darkwater> sort it out
<Darkwater> sorting mail
<Ox0dea> The meaning is retained in those expressions.
<Darkwater> sorting mail often includes grouping
<Ox0dea> Indeed, which is an ordering of sorts.
<sevenseacat> sorting can mean grouping. think of sorting laundry.
<adaedra> english is hard
<sevenseacat> or card sorting.
<yorickpeterse> grouping doesn't imply order though
<jhass> lukebyrne: mmh, your attempt doesn't seem to aim at the format you describe above at all
surs1 has joined #ruby
<lukebyrne> jhass, I know I really wak on recursive sorting so was just trying anything to get some sort of recursion to start with
<lukebyrne> realised that I would fail most Google/Facebook coding interview questions
<Burgestrand> You don't necessarily need to do this with recursion though!
tkuchiki has joined #ruby
<yorickpeterse> lukebyrne: don't worry, even if you write something like Homebrew they still don't want you
<lukebyrne> I thought it would be a rally good Code Kata to stick up on Code Wars
cmisenas has joined #ruby
<lukebyrne> yorickpeterse: u wrote Homebrew?
surs has quit [Ping timeout: 246 seconds]
tcopeland has joined #ruby
sshuff has joined #ruby
livathinos|away is now known as livathinos
<yorickpeterse> No
<yorickpeterse> But the author of Homebrew interviewed with Google and was rejected because they couldn't invert a binary tree
<yorickpeterse> (they as in the author)
<lukebyrne> Really, I dont even know what a binary tree is, so I guess I would be out as well
<lukebyrne> I am guessing though its a tree of ones and zeros?
<sevenseacat> you've got a long way to go, young padawan.
<Darkwater> it's a tree where leafs can have 0-2 children (?)
<yorickpeterse> lukebyrne: there are far better companies than Google to work at
<yorickpeterse> so don't fret it
<Darkwater> afaik
<Burgestrand> It's not a leaf if it has children ;)
anaeem1_ has joined #ruby
<Darkwater> node then
tkuchiki has quit [Remote host closed the connection]
<Burgestrand> \o/
msnyon has joined #ruby
JMoir has quit [Ping timeout: 250 seconds]
aswen has quit [Ping timeout: 252 seconds]
<Darkwater> I never really work with trees
<Burgestrand> Darkwater: sorry!
<Darkwater> no it's okay, I'm cool with being corrected
<Darkwater> makes me learn
msgodf has joined #ruby
<Darkwater> or in this case realise, really
solars has quit [Ping timeout: 256 seconds]
<Burgestrand> I guess if there's any place to correct fellow peons it's in here.
ivanskie has joined #ruby
<Darkwater> what are binary trees used for, anyway?
<yorickpeterse> Never had the need for inverting binary trees for my work so far
<Burgestrand> Darkwater: really useful for looking things up fast.
<Darkwater> like what?
<Darkwater> as in, what kind of data?
<Darkwater> can you give an example?
howdoicomputer has joined #ruby
<Burgestrand> Darkwater: imagine you have 20 unique numbers between 1 and 100 in a list.
<Burgestrand> Darkwater: worst case to see if a number is in this list is you have to look at each one.
<Darkwater> ooh, sort them in order
<Darkwater> I get it
Aswebb_ has joined #ruby
<Darkwater> thanks
<Burgestrand> Darkwater: yeah, assuming the root node is 50, you know that all numbers below 50 are to the left, and all numbers above it are to the right.
<jhass> lukebyrne: not too pretty, but I think it does what you want. Whether it actually makes sense to do that transformation ..., anyway http://paste.mrzyx.de/pya2xbsro
but3k4 has joined #ruby
t0rrieri_ has quit [Quit: Be back later ...]
<jhass> also fix the typos ^.^
certainty has quit [Ping timeout: 244 seconds]
<lukebyrne> sweet, it works at least, I am trying to study its magnificence
<sevenseacat> wait, are you doing interview questions for him? >_>
fabrice31_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<Burgestrand> #ruby is where you go to get your homework done for you if you're good enough at social engineering.
<lukebyrne> I am in a Google interview right now!
<jhass> mmh, it's interview?
<jhass> lukebyrne: :(
<lukebyrne> nah its not at all,
* Burgestrand snickers
<j416> Burgestrand: w
<lukebyrne> its for a project I am working on
<j416> I mean lol
<lukebyrne> I would never stoop that low
<sevenseacat> Burgestrand: doesnt surprise me, honestly.
sharpmachine has joined #ruby
<yorickpeterse> except when you crosspost without telling
<yorickpeterse> then you get kicked
howdoicomputer has quit [Ping timeout: 256 seconds]
<sevenseacat> we've inadvertently done people's homework and helped them pass interviews before. lord knows how they expect to be able to do the job if they need help with the interview.
<lukebyrne> yeh thats not cool at all
<Burgestrand> Aw, I don't care, it's their loss not mine.
<lukebyrne> no I am building a pricing comparison platform
anaeem1_ has quit [Remote host closed the connection]
<yorickpeterse> and that's exactly why puzzles during interviews are useless
<Burgestrand> I won't do it willingly, but I don't really mind if I'm tricked into it.
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> j416: Native Japanese or Wee?
<j416> lol wee
<j416> neither.
<Burgestrand> What's a wee?
<yorickpeterse> weeaboo
IanV0rn2341 has joined #ruby
<Burgestrand> TIL.
fgo has joined #ruby
<Burgestrand> Urban dictionary to the rescue.
<j416> Ox0dea: I language-switch a lot so I fail at the lols
<j416> sorry.
<Ox0dea> No worries. That was actually really funny.
<Burgestrand> j416: w
<j416> :)
werelivinginthef has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
Jamal has joined #ruby
ta has quit [Remote host closed the connection]
Jamal has quit [Client Quit]
JMoir has joined #ruby
<konsolebox> jhass: so childs is nil if regions is not a Hash? pretty neat trick
arturaz has quit [Ping timeout: 255 seconds]
anaeem1 has joined #ruby
tcopeland has quit [Quit: Leaving.]
<jhass> mmh, not sure yet if I actually like it, just happened that way :D
bungoman has quit [Remote host closed the connection]
thiagovsk has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
bungoman has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<olistik> are there performance penalties for code run in an irb session respect the "classic" way (ruby source.rb)?
<Burgestrand> Hah, that is indeed a bit too clever. :d
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
scripore has joined #ruby
<Burgestrand> olistik: aside from booting up IRB you mean?
<olistik> Burgestrand: exactly
<j416> Ox0dea: how about you?
<apeiros> olistik: all code is evaled
<j416> Ox0dea: wee? :D
fgo has quit [Ping timeout: 252 seconds]
<apeiros> olistik: so yes, there is a penalty
cmisenas has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Remote host closed the connection]
<olistik> apeiros: ok
<Burgestrand> apeiros: are you specifically talking about inputting it into IRB?
cmisenas has joined #ruby
<apeiros> Burgestrand: no
<olistik> it would be nice to boot an initial irb instance and let other irb instances attach to the master one
<apeiros> olistik: but why do you ask? chances that the kinds of penalty matter at all are tiny…
<olistik> I've always thought the image concept of smalltalk is good
<olistik> and I miss this in Ruby
<apeiros> olistik: what for? also you can use binding.pry and/or load a file in irb
<Ox0dea> j416: Oui. ^_^
xcesariox has joined #ruby
<apeiros> olistik: ah, ok. so like save the current state and resume any time?
<Ox0dea> Not in the generally understood sense, though.
<j416> Ox0dea: haha
<olistik> state saving is an independent feature
<j416> humble.
<Burgestrand> apeiros: irb somefile.rb?
symm- has joined #ruby
<j416> I like it
surs2 has joined #ruby
<apeiros> Burgestrand: not sure I ever tried that. I used -r
pengin has joined #ruby
gambl0re has joined #ruby
<Burgestrand> apeiros: so irb -rsomefile is slower than ruby -rsomefile?
<apeiros> no
<olistik> apeiros: I'd appreciate the fact that I can make different process input code that interacts with the same object space
<Burgestrand> apeiros: good, then I'm less confused!
solars has joined #ruby
<apeiros> Burgestrand: just whatever penalties eval incurs when you actually run code through the repl
tkuchiki has joined #ruby
surs1 has quit [Ping timeout: 276 seconds]
<apeiros> I don't think there's any reasonable scenario where those matter when using irb, though
sanguisdex has joined #ruby
mando has joined #ruby
dopie has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<olistik> so it's theoretically possible, aside state saving/restore, to keep a master irb process and then make other processes attach and send their code to be eval'd by the master process
senayar has quit [Remote host closed the connection]
<apeiros> olistik: sure
tcopeland has joined #ruby
<apeiros> you can replace irb's IO f.ex.
<olistik> this way you could launch a server and inspect the object space at run-time
<apeiros> or you can use drb
aleshgo has joined #ruby
ips|malc has joined #ruby
senayar has joined #ruby
<Burgestrand> apeiros: aye, I thought that you somehow meant that the code is run slower while inside IRB, not from the overhead of parsing each command but from actually being inside IRB.
<apeiros> Burgestrand: ah, no
<apeiros> I suspect that things like lvars and call-site cache also work slightly different. but I don't know enough of rubys internals to know for sure.
<olistik> apeiros: Burgestrand: that's a relief :-)
allomov has quit [Remote host closed the connection]
<Burgestrand> apeiros: yeah, I guess that's possible, at least we don't have a JIT to worry about as well.
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Burgestrand> Hm, won't eval in general bust the method cache?
lkba has joined #ruby
lkba has quit [Client Quit]
tesuji has quit [Read error: Connection reset by peer]
<chrisseaton> Burgestrand: I don't think eval will invalidate method caches - unless you eval a statement that defines a new class or method of course
umgrosscol has joined #ruby
lxsameer has quit [Quit: Leaving]
<Burgestrand> chrisseaton: I guess that'd be sane, then again the previous behavior of having one global cache was a bit insane.
scripore has quit [Quit: This computer has gone to sleep]
<Burgestrand> Luckly, most of the time ruby runtime performance isn't of my concern.
<yorickpeterse> Burgestrand: IIRC eval doesn't flush any global constant/method caches
<yorickpeterse> unless like chrisseaton said it contains a class/method/etc
senayar has quit [Remote host closed the connection]
wildroman2 has quit []
genpaku has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
anaeem1_ has joined #ruby
genpaku has joined #ruby
<chrisseaton> there are things even MRI could do to make eval faster - like cache the bytecode for strings used in eval, so parsing and bytecode compiling doesn't have to be done from scratch each time
jespada has quit [Ping timeout: 256 seconds]
jgpawletko has joined #ruby
Alayde has quit [Read error: Connection reset by peer]
<chrisseaton> we're working on inlining of eval in JRuby+Truffle, so the eval'd code gets inlined into the calling method as if it was written literally in the source code, rather than as a string, which works as long as the eval string is stable
Alayde has joined #ruby
jobewan has joined #ruby
<apeiros> chrisseaton: prepared eval statements!
<apeiros> with bind variables!
<Burgestrand> Haha.
<chrisseaton> we do the same thing with printf and pack already - cache the string, generate code for it, inline the code
<apeiros> while I jest, that actually might make sense in some areas
<apeiros> chrisseaton: we? rbx?
<chrisseaton> JRuby+Truffle
<apeiros> ah
jshultz has joined #ruby
<apeiros> interesting
<chrisseaton> I'm writing a blog post on it right now which is why I mention
ValicekB has quit [Ping timeout: 265 seconds]
<apeiros> and when/how do you prune?
<yorickpeterse> rbx already has a bunch of eval optimizations in place
<Burgestrand> chrisseaton: where will it be published? I'm curious to see the use for this.
casadei_ has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
<chrisseaton> follow my @chrisgseaton on Twitter and you'll see it, or chrisseaton.com
ada2358 has quit [Ping timeout: 252 seconds]
tjohnson has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jespada has joined #ruby
axl__ has joined #ruby
rezzack has quit [Ping timeout: 246 seconds]
lee-jon has joined #ruby
ada2358 has joined #ruby
<chrisseaton> Use cases where it makes a difference as things like packing pixels into binary data in chunky png and psd.rb, and, since yorickpeterse is here, converting data to unicode bytes in oga
mary5030 has joined #ruby
yardenbar has quit [Quit: Leaving]
<yorickpeterse> Hm interesting, I could've sworn we had a cache of sorts for eval()
ixti has joined #ruby
<yorickpeterse> but I can't find it in our Kernel.eval, might be somewhere else
RegulationD has joined #ruby
lee-jon has quit [Client Quit]
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
but3k4 has quit [Ping timeout: 256 seconds]
rezzack has joined #ruby
<yorickpeterse> Aaah
certainty has joined #ruby
<yorickpeterse> it's hidden in the compiler
j_mcnally has joined #ruby
zdman135 has joined #ruby
tcopeland has quit [Quit: Leaving.]
riotjones has quit [Remote host closed the connection]
lee-jon has joined #ruby
j_mcnally has quit [Client Quit]
<chrisseaton> yorickpeterse: can you inline through it? we don't yet but I'll add it soon
hanmac1 has left #ruby [#ruby]
<yorickpeterse> Not sure, right now we generate the bytecode during runtime only
jas02 has quit [Quit: jas02]
<chrisseaton> eg I'd like to be able to fold eval('1 + 2') + 3 to be the constant 6
Outlastsheep is now known as zz_Outlastsheep
<yorickpeterse> Ah no, we don't inline it atm
wildfield has quit [Quit: Leaving]
<yorickpeterse> Not sure how terribly useful that would be though
j_mcnally has joined #ruby
<chrisseaton> yeah I don't think it's the most critical thing in the world, but we're trying to optimise every metaprogramming operation where possible
NeverDie has joined #ruby
lee-jon has left #ruby [#ruby]
<chrisseaton> as a kind of policy - no slow paths unless we can't conceive of a way around
<apeiros> chrisseaton: do you add hooks for method redefinitions then?
<apeiros> i.e. Fixnum#+ being redefined -> bust that constant 6?
<yorickpeterse> I'd probably invest more time in Object.define_method opposed to inlining eval()
bruno- has joined #ruby
<yorickpeterse> at least last I checked JRuby 1.7 suffered quite a bit when defining methods using define_method (compared to eval() at least)
<chrisseaton> apeiros: yes method redefinition uses dynamic deoptimisation - redefining an inline method will cause the VM to stop, and invalidated code will be replaced with an interpreter that will check all the methods explicitly
codecop has joined #ruby
ValicekB has joined #ruby
shazaum_ has joined #ruby
<apeiros> chrisseaton: impressive
<chrisseaton> sophisticated dynamic deopt is the one-optimisation-to-rule-them-all for Ruby
<lukebyrne> jhass: thanks so sooo much for helping me out there, make my solution so much more elegant now
pyro_ has quit [Remote host closed the connection]
ReK2 has quit [Ping timeout: 264 seconds]
<lukebyrne> jhass: do u mind if I submit that solution to CodeWars.com, I think its a nice challenge.
bruno- has quit [Ping timeout: 252 seconds]
fella5s has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<jhass> uh, whatever I essentially consider stuff I post to IRC public domain. As said I don't consider that particular beautiful code myself though
sepp2k has joined #ruby
<lukebyrne> will see what the CodeWars guys come back with and will update the gist
werelivinginthef has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
mistermocha has joined #ruby
hmnhf__ has joined #ruby
hmnhf_ has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
jonathanwallace has quit [Quit: Leaving.]
mfranzwa has joined #ruby
LanMan_ has quit [Remote host closed the connection]
lukebyrne has quit [Quit: lukebyrne]
paulcsmith has quit [Quit: Be back later ...]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeanlinu_ has quit [Ping timeout: 264 seconds]
Kully3xf has quit [Read error: Connection reset by peer]
paulcsmith has joined #ruby
ringarin has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
jpfuentes2 has joined #ruby
thelastinuit has joined #ruby
acke_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
DefV is now known as fu
fu is now known as DefV
adamski2600 has joined #ruby
acke has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
jeanlinux has joined #ruby
thelastinuit has quit [Ping timeout: 276 seconds]
fabrice31_ has quit [Ping timeout: 256 seconds]
dfockler has joined #ruby
adamski2600 has quit [Ping timeout: 246 seconds]
vale_tudo has joined #ruby
jtdoncas has joined #ruby
valetudo has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
Cache_Money has joined #ruby
s2013 has joined #ruby
jhack has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
ringarin has quit [Ping timeout: 256 seconds]
chipotles has joined #ruby
<j416> Ox0dea: what's your obsession with meta?
<j416> I mean, why
<Ox0dea> Sated curiosity is its own reward, in my opinion.
mjuszczak has quit []
sevenseacat has quit [Quit: Me dun like you no more.]
gamename has joined #ruby
<j416> I was looking for a use case but curiosity I guess could be reason enough. :)
poguez_ has joined #ruby
<Ox0dea> I was specifically answering the "meta" question there. I do actually have a use case for being able to properly encapsulate missing constant resolution.
bungoman has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 265 seconds]
<j416> I see
gamename has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
gamename has joined #ruby
acke_ has quit [Remote host closed the connection]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
icebourg has quit []
<j416> "close to the metal using javascript" what
hakunin has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
<ytti> ridiculous
<Ox0dea> It's poking fun at how JavaScript is now the "assembly of the Web".
<ytti> everyone knows if you need to be at the metal, you use node
<j416> I see
<j416> heh
<j416> very funny..
<Ox0dea> I suppose WASM means the quotes should be removed.
<havenwood> ytti: The most metal is the_metal: https://github.com/tenderlove/the_metal
mistermocha has quit [Read error: Connection reset by peer]
bronson has joined #ruby
swgillespie has joined #ruby
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
fgo has joined #ruby
jobewan has quit [Quit: Leaving]
bungoman has joined #ruby
<konsolebox> Ox0dea: what's "using" for? forgot
<Ox0dea> konsolebox: Refinements
<j416> konsolebox: google it, I had no idea either, learnt it by 2 minutes of googling
<j416> :)
<j416> 2.0 thing
IrishGringo has joined #ruby
<Ox0dea> Still in beta, though, really.
mistermocha has joined #ruby
<j416> random article
senayar_ has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
surs2 has quit [Ping timeout: 276 seconds]
mr_rich101 has left #ruby ["Textual IRC Client: www.textualapp.com"]
jeanlinux has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
<konsolebox> Ox0dea: i think i tried playing with refine also once,.. and it didn't work on something.. probably on singleton classes
<konsolebox> Ox0dea: i think it's not a real method.. afaicr
<Ox0dea> It's a real method.
fgo has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
<Ox0dea> You can redefine it, but I can't imagine why you'd want to.
kobain has joined #ruby
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
joelataylor has joined #ruby
<jhass> can I write a refinement that redefines it :D
mistermocha has quit [Ping timeout: 252 seconds]
atomical_ has joined #ruby
IrishGringo has quit [Remote host closed the connection]
<Ox0dea> jhass: I suspect you could.
<Ox0dea> Any idea what's going on there?
hmnhf__ has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> nope, probably just found an edge case
n1x has quit [Ping timeout: 246 seconds]
<jhass> as you said it's sort of in beta still
<Ox0dea> The bug's got to be in constant resolution, though, because refining Object.singleton_class with new #const_get and #const_set methods works fine.
rcvalle has joined #ruby
joelataylor has quit [Ping timeout: 248 seconds]
atomical has quit [Ping timeout: 248 seconds]
surs2 has joined #ruby
livathinos has quit []
yardenbar has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
yardenbar has quit [Remote host closed the connection]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
nveselinov has quit [Quit: Connection closed for inactivity]
senayar_ has quit [Remote host closed the connection]
t0rrieri_ has joined #ruby
fmcgeough has joined #ruby
JDiPierro has quit [Remote host closed the connection]
senayar has joined #ruby
joelataylor has joined #ruby
riotjones has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
sarkyniin has joined #ruby
a346 has joined #ruby
KrzaQ has quit [Read error: Connection reset by peer]
<konsolebox> >> Module.instance_methods.grep(:refine)
<ruboto> konsolebox # => [] (https://eval.in/395707)
<konsolebox> Ox0dea: ^
Sehryn has joined #ruby
KrzaQ has joined #ruby
eggoez has joined #ruby
gizmore has joined #ruby
Aswebb_ has quit [Read error: Connection reset by peer]
segfalt has joined #ruby
ixti has quit [Ping timeout: 256 seconds]
gregf_ has quit [Ping timeout: 252 seconds]
<apeiros> konsolebox: .private_instance_methods
jackjackdripper has joined #ruby
<konsolebox> apeiros: oh i see
<apeiros> .instance_methods only lists public and protected
<konsolebox> probably didn't check that as well before
gregf_ has joined #ruby
jackjackdripper has quit [Client Quit]
Cache_Money has joined #ruby
jpfuentes2 has joined #ruby
Aswebb_ has joined #ruby
ixti has joined #ruby
JMoir has quit [Ping timeout: 256 seconds]
Roguehorse has joined #ruby
Sehryn has quit [Ping timeout: 256 seconds]
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
lessless has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
bruno- has joined #ruby
hakunin has joined #ruby
anaeem1 has joined #ruby
Roguehorse has left #ruby ["Konversation terminated!"]
dumdedum has quit [Ping timeout: 244 seconds]
snockerton has joined #ruby
amclain has joined #ruby
lavros has quit [Quit: leaving]
choke has joined #ruby
momomomomo has joined #ruby
bungoman has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Igorshp has quit [Remote host closed the connection]
bungoman has joined #ruby
eggoez has quit [Ping timeout: 248 seconds]
surs3 has joined #ruby
mdarby has joined #ruby
hakunin has quit [Remote host closed the connection]
surs2 has quit [Ping timeout: 252 seconds]
Igorshp has joined #ruby
eggoez has joined #ruby
shazaum_ has quit [Quit: Leaving]
JDiPierro has joined #ruby
victortyau has quit [Ping timeout: 252 seconds]
mike___1234 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
evanjs_ has joined #ruby
msnyon_ has joined #ruby
doertedev has quit [Ping timeout: 256 seconds]
peter_paule has joined #ruby
DroidBurgundy has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
djbkd_ has joined #ruby
towski_ has joined #ruby
msnyon has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
dented42_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__butch__ has joined #ruby
shinnya has joined #ruby
aryaching has joined #ruby
acke has joined #ruby
<Senjai> Good morning ruby
acke has quit [Remote host closed the connection]
acke has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
acke has quit [Remote host closed the connection]
<Ox0dea> It's happening: http://
Nastascha_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoicomputer has joined #ruby
SCHAAP137 has joined #ruby
valetudo has quit [Quit: Leaving]
<Darkwater> wait hold on
<adaedra> WHAT IS THIS
momomomomo has joined #ruby
<Darkwater> someone here mentioned the developer of homebrew not being hired by google or something because he coudln't reverse a binary tre
acke has joined #ruby
<Darkwater> reverse as in left to right ortop to bottom?
Nastascha_ has left #ruby [#ruby]
<Darkwater> can a binary tree even have nodes with two parents?
kerrizor has joined #ruby
<Ox0dea> Darkwater: "Invert" is admittedly ambiguous, but it does mean horizontally.
acke has quit [Remote host closed the connection]
Spami has joined #ruby
<Darkwater> so the homebrew guy couldn't horizontally flip a btre?
prettiestPony11 has joined #ruby
ankur has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
<Ox0dea> Perhaps the stress of the interview clouded that already foggy corner of his memory.
gambl0re has quit [Ping timeout: 250 seconds]
linoespinoza has joined #ruby
<Darkwater> yorickpeterse: ^
<ankur> m from non -cs background and have some knowledge of coding and ruby
<ankur> can i participate in gsoc
surs4 has joined #ruby
symbol has joined #ruby
User458764 has joined #ruby
gambl0re has joined #ruby
surs3 has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ankur> ?
JMoir has joined #ruby
linoespinoza has quit [Client Quit]
CorySimmons has joined #ruby
rbennacer has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 248 seconds]
momomomomo_ is now known as momomomomo
<Senjai> ankur: Make a proposal, see if it gets accepted
s2013 has quit [Ping timeout: 265 seconds]
<havenwood> ankur: Students coding this summer were already selected back in March.
<havenwood> ankur: Next Spring there will be applications again.
pdoherty has joined #ruby
Ilyas has joined #ruby
bruno- has joined #ruby
mistermocha has joined #ruby
higuys has joined #ruby
<havenwood> ankur: Ruby was selected this year and if it's selected again next year you could propose a project.
senayar has quit []
k3asd` has joined #ruby
<Senjai> havenwood: A -language- has to be selected?
k3asd`_ has joined #ruby
<Senjai> Or are you talking about ruby as in ruby
gambl0re has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
<havenwood> Senjai: Mentoring organizations are selected first, then student applications.
<Senjai> havenwood: What can be a mentoring organization?
<Senjai> I have a ton of open source work that can be done by people that I'm still trying to carve out time for :P
<jhass> afaik anything that can provide mentors and projects
<jhass> but they cut back this year and I wouldn't expect it get broader again next year
<jhass> heck, not even Mozilla got any projects this year
<havenwood> but Ruby did :)
<Senjai> solidusio/solidus -should- be big enough :P
<havenwood> Senjai: It has to be an open source project, but that's about it.
mistermo_ has joined #ruby
<Senjai> It is :P
towski_ has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 264 seconds]
acke has joined #ruby
Rickmasta has joined #ruby
tkuchiki has quit [Remote host closed the connection]
higuys has quit [Remote host closed the connection]
Channel6 has joined #ruby
msgodf has quit [Ping timeout: 276 seconds]
fantazo has joined #ruby
gambl0re has joined #ruby
phutchins1 has quit [Ping timeout: 256 seconds]
jtdoncas has quit [Ping timeout: 246 seconds]
willhumphreys has quit [Ping timeout: 248 seconds]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
s2013 has joined #ruby
yizr has joined #ruby
atomical has joined #ruby
User458764 has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
icebourg has joined #ruby
RobertBirnie has joined #ruby
icebourg has quit [Max SendQ exceeded]
spider-mario has joined #ruby
mleung has joined #ruby
bronson has joined #ruby
icebourg has joined #ruby
phutchins2 has joined #ruby
icebourg has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
neanderslob has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
neanderslob has joined #ruby
ips|malc has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
paulcsmith has joined #ruby
yeticry has joined #ruby
pdoherty has quit [Quit: Leaving]
surs has joined #ruby
dfockler has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
chipotles has joined #ruby
surs4 has quit [Ping timeout: 246 seconds]
Soda has quit [Remote host closed the connection]
polpak has quit [Quit: leaving]
jenrzzz has joined #ruby
chipotles has quit [Client Quit]
polpak has joined #ruby
claw has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
scottstamp has quit [Ping timeout: 265 seconds]
claw has joined #ruby
hinbody has joined #ruby
adamski2600 has joined #ruby
yizr has quit [Ping timeout: 248 seconds]
KC9YDN has quit [Ping timeout: 248 seconds]
doertedev has joined #ruby
pr0ton has quit [Quit: pr0ton]
shadoi has joined #ruby
yizr has joined #ruby
Zai00 has quit [Quit: Zai00]
pengin has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
djbkd_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
acke has quit [Ping timeout: 255 seconds]
choke has joined #ruby
djbkd has quit [Remote host closed the connection]
<Senjai> Is there any way to document duck typing for yard
adamski2600 has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
<Senjai> E.g. @param thing [anythingthatrespondsto#my_function]
Jackneill has joined #ruby
<Senjai> Nvm, I figured it out
rbennacer has joined #ruby
<Senjai> fyi @param thing [#justafunction] for anyone curious
mistermocha has quit [Ping timeout: 256 seconds]
dented42 has joined #ruby
<dfockler> Senjai: thanks, I looked this up after you asked the question
sshuff is now known as sshuff|lunch
jtdoncas has joined #ruby
Limix has joined #ruby
scottstamp has joined #ruby
rehat has joined #ruby
KC9YDN has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
CorySimmons has quit [Quit: Bye!]
JDiPierro has quit []
rbennace_ has joined #ruby
psy_ has joined #ruby
<rehat> if I have a ruby script that requires a few gems how would someone else run my script if they don't have the gems installed?
Luun has joined #ruby
christiandsg has joined #ruby
baweaver has quit [Remote host closed the connection]
<polpak> they wouldn't
<Antiarc> rehat: Generally you will provide a Gemfile that specifies your dependencies, so they can install them with bundler
<polpak> rehat: bundler is your friend
<rehat> ahh ok I will look into that thanks
lkba has joined #ruby
ledestin has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rehat> so the user would need to run bundle install before running the ruby script? Or is there a way for my script to auto call it if required gems are missing
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoicomputer has joined #ruby
<Antiarc> They would need to run `bundle install`
rdark has quit [Quit: leaving]
<dfockler> rehat: Ruby is interpreted, so the person using your script needs access to all the code you are using to build it
pengin has joined #ruby
reset has joined #ruby
cFouts has quit [Remote host closed the connection]
<apeiros> uuuuuh
christiandsg has quit [Ping timeout: 265 seconds]
<apeiros> rehat: what you do is you package it up as a gem and specify all dependencies in the .gemspec. NOT in the Gemfile.
<apeiros> rubygems already will install all dependencies.
<apeiros> bundler is for different purposes.
nug has joined #ruby
<apeiros> Antiarc: ^
<apeiros> and polpak
<Antiarc> That makes sense if you want to distribute it as a gem, sure
<Antiarc> If you want to distribute it standalone though, gemspecs won't do you much good
nug has quit [Client Quit]
<apeiros> if you want to distribute it as a standalone, all you do is reinvent what rubygems does.
<apeiros> and that is just plain stupid.
<apeiros> and I wouldn't say using a Gemfile qualifies as standalone
<havenwood> rehat: If you're making a gem the gemspec file will specify the deps and they'll be automatically installed when someone installs your gem. If you're making an app the Gemfile or gem.dep.rb file will specify the deps and they'll be installed when you `bundle install` or `gem install -g`.
<apeiros> and just to note: you can distribute a rubygem without publishing it. `gem install ./some/local.gem` works just fine
white_bear has quit [Quit: leaving]
midi_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
nug has joined #ruby
<rehat> sweet thanks I got it now
nug has quit [Client Quit]
yizr has quit [Ping timeout: 248 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yizr has joined #ruby
nathanstitt has joined #ruby
cmisenas has quit [Read error: Connection reset by peer]
JMoir has quit [Quit: Bye]
JMoir has joined #ruby
cmisenas has joined #ruby
JMoir has quit [Client Quit]
dopie has quit [Quit: This computer has gone to sleep]
JMoir has joined #ruby
nug has joined #ruby
darkf has quit [Quit: Leaving]
x1337807x has joined #ruby
msnyon_ is now known as msnyon
pietr0 has joined #ruby
sigurding has quit [Quit: sigurding]
nateberkopec has joined #ruby
bodgix_wrk has quit [Quit: Leaving...]
Agoldfish has joined #ruby
EllisTAA has joined #ruby
lkba_ has joined #ruby
JMoir has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: Leaving]
joelataylor has quit [Quit: Be back later ...]
jackjackdripper has joined #ruby
bodgix_wrk has joined #ruby
midi_ has quit [Remote host closed the connection]
a346 has quit [Quit: a346]
lkba has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
hakunin has joined #ruby
eGGsha has quit [Max SendQ exceeded]
maletor_ has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.2]
Alayde has quit [Quit: WeeChat 1.1.1]
jackjackdripper has quit [Client Quit]
fabrice31 has joined #ruby
Spami has joined #ruby
but3k4 has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Alayde has joined #ruby
jespada has quit [Quit: WeeChat 1.1.1]
lee-jon has joined #ruby
dopie has joined #ruby
postmodern has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
pengin has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
JMoir has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
t0rrieri_ has quit [Quit: Be back later ...]
acke has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
eggoez has joined #ruby
monod has joined #ruby
mdarby has quit [Read error: Connection reset by peer]
zz_Outlastsheep is now known as Outlastsheep
troulouliou_dev has quit [Quit: Leaving]
acke has quit [Ping timeout: 264 seconds]
RegulationD has quit [Remote host closed the connection]
simplyianm has joined #ruby
towski_ has joined #ruby
pengin has joined #ruby
blaines has joined #ruby
d08z has joined #ruby
Rickmasta has joined #ruby
chipotle has joined #ruby
hahuang65 has joined #ruby
bodgix_wrk has quit [Quit: Leaving.]
blaines__ has joined #ruby
blaines has quit [Ping timeout: 248 seconds]
eggoez has quit [Ping timeout: 246 seconds]
krz has quit [Quit: WeeChat 1.0.1]
jonathanwallace has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
DroidBur_ has joined #ruby
yardenbar has joined #ruby
DroidBur_ has quit [Read error: Connection reset by peer]
DroidBur_ has joined #ruby
eggoez has joined #ruby
olistik has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
olistik has joined #ruby
fullofcaffeine has joined #ruby
d08z has quit [Quit: leaving]
wedgwood has joined #ruby
RegulationD has joined #ruby
lee-jon has quit [Quit: lee-jon]
DroidBurgundy has quit [Ping timeout: 256 seconds]
icflournoy has quit [Quit: leaving]
gambl0re has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
olistik has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
craysiii has joined #ruby
surs1 has joined #ruby
Limix has quit [Quit: Limix]
surs has quit [Ping timeout: 250 seconds]
rbennace_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
atomical_ has joined #ruby
bruno- has joined #ruby
rbennacer has joined #ruby
christiandsg has joined #ruby
claw has quit [Ping timeout: 256 seconds]
claw_ has joined #ruby
Limix has joined #ruby
CorySimmons has joined #ruby
atomical has quit [Ping timeout: 248 seconds]
cmisenas has quit [Quit: cmisenas]
duderonomy has joined #ruby
chouhoul_ has joined #ruby
AlphaAtom has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
hahuang65 has joined #ruby
jonathanwallace has joined #ruby
k3asd`_ has quit [Ping timeout: 256 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
quimrstorres has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 276 seconds]
k3asd` has quit [Ping timeout: 256 seconds]
peter_paule has quit [Ping timeout: 248 seconds]
patrick_star has joined #ruby
tomphp has joined #ruby
lkba has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
victortyau has joined #ruby
t0rrieri_ has joined #ruby
andikr has joined #ruby
lkba_ has quit [Ping timeout: 250 seconds]
fantazo has quit [Ping timeout: 240 seconds]
doertedev has quit [Quit: Lost terminal]
acke has joined #ruby
Zai00 has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
lala has quit [Quit: Connection closed for inactivity]
yardenbar has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
gizmore has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
podman has joined #ruby
troulouliou_dev has joined #ruby
wviana has joined #ruby
acke has quit [Ping timeout: 246 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
<wviana> Hello, Why this rbenv installing is not working on my yosemite https://gist.github.com/wviana/4f5f8119c0f9d44cf02a ?
MagePsycho has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
acke has joined #ruby
yizr has quit [Ping timeout: 248 seconds]
Igorshp has quit [Remote host closed the connection]
Daernac has joined #ruby
pengin has quit [Remote host closed the connection]
evanjs has joined #ruby
Rixius has left #ruby ["Textual IRC Client: www.textualapp.com"]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uber has quit [Ping timeout: 256 seconds]
evanjs_ has quit [Ping timeout: 244 seconds]
toretore has joined #ruby
drewo has quit [Ping timeout: 256 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewo has joined #ruby
tomphp has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
konsolebox has quit [Remote host closed the connection]
peter_paule has joined #ruby
bruno- has joined #ruby
axl_ has quit [Quit: axl_]
evanjs has quit [Remote host closed the connection]
sigurding has joined #ruby
shadeslayer has quit [Ping timeout: 265 seconds]
pengin has joined #ruby
RegulationD has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
Outlastsheep is now known as zz_Outlastsheep
x1337807x has joined #ruby
ta has joined #ruby
swgillespie has joined #ruby
evanjs has joined #ruby
uber has joined #ruby
bungoman has joined #ruby
_ixti_ has joined #ruby
shadeslayer has joined #ruby
andikr has quit [Ping timeout: 250 seconds]
ixti has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
timonv has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
werelivinginthef has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
jhn has joined #ruby
simplyianm has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
arup_r has joined #ruby
momomomomo has joined #ruby
A205B064 has joined #ruby
jpfuentes2 has joined #ruby
JMoir has quit [Ping timeout: 246 seconds]
jonathanwallace has quit [Quit: Leaving.]
adamski2600 has joined #ruby
Encapsulation has quit [Ping timeout: 248 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DroidBur_ has quit [Ping timeout: 256 seconds]
uber has quit [Ping timeout: 256 seconds]
simplyianm has joined #ruby
Musashi007 has joined #ruby
adamski2600 has quit [Remote host closed the connection]
swgillespie has joined #ruby
surs2 has joined #ruby
monod has quit [Ping timeout: 265 seconds]
peter_paule has quit [Ping timeout: 250 seconds]
gix has joined #ruby
adamski2600 has joined #ruby
pr0ton has joined #ruby
CorySimmons has quit [Quit: Bye!]
revath has quit [Ping timeout: 252 seconds]
surs1 has quit [Ping timeout: 248 seconds]
andikr has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<MagePsycho> how to find lenght of array in ruby?
cmisenas has joined #ruby
<apeiros> MagePsycho: Array#length
<Senjai> MagePsycho: ?google
<apeiros> or #size
<apeiros> ?docs
<ruboto> I don't know anything about docs
<Senjai> ?google MagePsycho
<ruboto> MagePsycho, I don't know anything about google
<Senjai> Wow
<apeiros> waaaah? gotta teach ruboto!
<Senjai> lame
<Senjai> MagePsycho: Google it, it's the first result
<nathanstitt> or #count :)
<MagePsycho> i want to check if the element exists: home_page.search('.image')
<Senjai> MagePsycho: That's a differnt question
<Senjai> ?code MagePsycho
<ruboto> MagePsycho, We can't help you without your code, please post it to https://gist.github.com
bronson has quit [Remote host closed the connection]
<apeiros> nathanstitt: no. not count.
eGGsha has joined #ruby
<apeiros> count is considerably more complex. use it when you actually pass an arg or block to it.
<nathanstitt> Yes, #count works. [1,2,3].count => 3
<nathanstitt> on 2.2 at least
Igorshp has joined #ruby
<wviana> Hello, Why this rbenv installing is not working on yosemite https://gist.github.com/wviana/4f5f8119c0f9d44cf02a ?
pdoherty has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
dopie has quit [Quit: This computer has gone to sleep]
<apeiros> ?docs Senjai
<ruboto> Senjai, you can use http://ruby-doc.org or the command line too "ri" which should be installed along with your ruby to access documentation. Ri example: "ri Array#length"
<apeiros> whoops
<apeiros> ?docs MagePsycho
<ruboto> MagePsycho, you can use http://ruby-doc.org or the command line too "ri" which should be installed along with your ruby to access documentation. Ri example: "ri Array#length"
kartouch has joined #ruby
<miah> wviana: have you tried #rbenv ?
kadoppe has quit [Ping timeout: 248 seconds]
atomical has joined #ruby
pr0ton has quit [Ping timeout: 264 seconds]
<wviana> miah: oh, ok thanks ;)
<nathanstitt> apeiros: Sorry I missed your second line there and thought you were saying it didn't exist. You're correct it is a bit slower
atomical has quit [Client Quit]
<MagePsycho> if home_page.search('.image’).length
<havenwood> miah: There's a #chruby or #rvm but I think you're supposed to tweet @DHH for rbenv, since no #rbenv.
<apeiros> MagePsycho: 0 is true-ish in ruby
kadoppe has joined #ruby
<miah> havenwood: really?
<apeiros> >> if 0 then "TRUE!" else "false :(" end
<ruboto> apeiros # => "TRUE!" (https://eval.in/395846)
<Senjai> havenwood: hahahahaha
<Senjai> best suggestion ever
Encapsulation has joined #ruby
<miah> i use chruby so i have no idea.
<havenwood> miah: <3 chruby
uber has joined #ruby
<Senjai> Chruby is really the best
<Senjai> Rubuto entries for ?rvm and ?rbenv should just say "Use chruby instead"
<dfockler> chruby here also
<havenwood> Maybe it works too well, because we don't get many visitors in #chruby. :P
<dfockler> It's just simple and does it's job
<Senjai> Why would you
fantazo has joined #ruby
<Senjai> It just works
<Senjai> Todays topic on #chruby, how do you switch YOUR rubies?
lxsameer has joined #ruby
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah> though, at work we do use rbenv on servers. but i have a ton of custom chef wrapping it.
rezzack has quit [Quit: Leaving.]
<miah> i havent had the energy to switch it all to chruby yet
<Senjai> miah: We just recently switched to chruby I believe
<Senjai> At least on our CI
lolmaus has quit [Remote host closed the connection]
<MagePsycho> i am using mechanize and unable to check for if the element exist
lolmaus has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmignault has joined #ruby
<MagePsycho> result_page.search('button#button-continue’).length or result_page.search('button#button-continue’)#length
andikr has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
<MagePsycho> actually i m new to ruby.. i had to use ruby as my shell script had to use mechanize
wviana has quit []
shevy has joined #ruby
<Antiarc> try .any? rather than .length. #length will always evaluate to true.
Musashi007 has quit [Quit: Musashi007]
pr0ton has joined #ruby
<Antiarc> Or if you want to use .length, use .length > 0
<apeiros> or use .empty?
sigurding has quit [Quit: sigurding]
JMoir has joined #ruby
momomomomo has quit [Quit: momomomomo]
chipotle has quit [Quit: cheerio]
christiandsg has joined #ruby
Daernac has left #ruby [#ruby]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
dopie has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scotteh has left #ruby ["later, folks"]
Mon_Ouie has joined #ruby
malconis has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
lala has joined #ruby
[H]unt3r has quit []
drewo has quit [Ping timeout: 252 seconds]
<MagePsycho> puts result_page.search('button#button-continue').length
<MagePsycho> how to exit the code in ruby? exit
<apeiros> MagePsycho: consider getting and reading a book
anisha has joined #ruby
<apeiros> some are available for free online
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
<MagePsycho> which one you recommend
DLSteve has joined #ruby
sshuff|lunch is now known as sshuff
<havenwood> MagePsycho: Have you finish?: http://tryruby.org/
<havenwood> finished*
<apeiros> I'm not up to speed, but I think there's a somewhat new version of the pickaxe around (google "pickaxe ruby")
<MagePsycho> nope directly diving into the code with knowledge of php n python
<MagePsycho> ruby seems much cooler
valetudo has joined #ruby
[H]unt3r has joined #ruby
anaeem1 has joined #ruby
<havenwood> MagePsycho: I'd suggest reading those two ^ and going through the tryruby.org guided REPL. Then install Pry and use your REPL to try things as you go through a book.
vale_tudo has quit [Ping timeout: 244 seconds]
jmhmccr has joined #ruby
<havenwood> ?pry MagePsycho
<ruboto> MagePsycho, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
fantazo has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
joonty has joined #ruby
<havenwood> MagePsycho: Does that make any sense? I'm assuming you're familiar with REPLs since you mentioned Python.
momomomomo has joined #ruby
sphex has quit [Ping timeout: 255 seconds]
eggoez has quit [Ping timeout: 256 seconds]
momomomomo has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
adamski2600 has quit []
kartouch has quit [Ping timeout: 246 seconds]
reset has quit [Quit: Leaving...]
<MagePsycho> Then install Pry and use your REPL to try things as you go through a book. - Didn’t get this
<shevy> and he knows the web because he knows php!
<shevy> you can use irb too
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shevy> the advantage in either case is that you can type ruby code and have it evaluated after you press the enter key
<shevy> you can also use the bot here :)
<shevy> >> 5+6
<ruboto> shevy # => 11 (https://eval.in/395871)
uber has quit [Ping timeout: 265 seconds]
casadei_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
jonathanwallace has joined #ruby
RegulationD has joined #ruby
sphex has joined #ruby
eggoez has joined #ruby
<jhass> ?experiment
<ruboto> Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<jhass> MagePsycho: did you read the ?pry factoid above?
mdarby has joined #ruby
<jmignault> havenwood: thanks for info on pry. Just installed it.
mistermocha has joined #ruby
fabrice31 has joined #ruby
MagePsycho has quit [Ping timeout: 248 seconds]
sandelius has joined #ruby
mando has quit [Ping timeout: 264 seconds]
a346 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
surs3 has joined #ruby
m8 has joined #ruby
mando has joined #ruby
kirun has joined #ruby
surs2 has quit [Ping timeout: 264 seconds]
gard has joined #ruby
mistermocha has joined #ruby
<havenwood> jmignault: You're welcome!
fabrice31 has quit [Ping timeout: 246 seconds]
wprice has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
<jmignault> havenwood: Been away from Ruby for awhile, so getting back to speed on tools, rails, etc
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Limix has quit [Quit: Limix]
kies^ has quit [Ping timeout: 256 seconds]
jshultz has quit [Quit: Updating details, brb]
hashrocket has joined #ruby
nathanstitt has quit [Quit: I growing sleepy]
fullofcaffeine has quit [Remote host closed the connection]
pr0ton has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
<[diecast]> has there been a change with the gem mirrors, looks like this url has gone away - https://rubygems.global.ssl.fastly.net/gems/fog-ecloud-0.1.1.gem
nathanstitt has joined #ruby
<[diecast]> maybe it's just that mirror
cmisenas has quit [Quit: cmisenas]
aryaching has quit [Ping timeout: 265 seconds]
mjuszczak has joined #ruby
iateadonut has left #ruby [#ruby]
<havenwood> jmignault: I'd suggest checking out Roda: http://roda.jeremyevans.net/
<havenwood> jmignault: And the Minitest gem that ships with Ruby. :)
bruno- has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
phutchins2 has quit [Ping timeout: 256 seconds]
<jmignault> havenwood: thanks, will look into Roda. Have minitest installed.
uber has joined #ruby
momomomomo has quit [Quit: momomomomo]
bruno- has joined #ruby
nikhgupta has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> jmignault: Here's an example Roda with Sequel gem stack: https://github.com/jeremyevans/roda-sequel-stack
<[diecast]> hmm, there should probably be some validation of mirrors. looks like this one is having issues
<[diecast]> "WARNING: Unable to pull data from 'https://rubygems.org/': bad response Not Found 404 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/mini_portile-0.6.2.gemspec.rz)
<jmignault> havenwood: nice, thanks
rfish has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
krz has joined #ruby
<havenwood> [diecast]: You might be able to get a bit of info from this even without submitting a ticket to Fastly: http://www.fastly-debug.com/
mistermocha has joined #ruby
simplyianm has quit [Remote host closed the connection]
mleung has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<[diecast]> havenwood: interesting, they have a freenode room
bruno- has quit [Ping timeout: 264 seconds]
jwaldrip has joined #ruby
peter_paule has joined #ruby
<havenwood> [diecast]: there's a #rubygems as well but I'm guessing it's between you and Fastly?
<rfish> how do I get query parameters from a view object in ruby?
<havenwood> rfish: What's a view object?
<[diecast]> havenwood: 15:45:39 <•kelden> [diecast]: yeah, I was working with dwradcliffe and the change I made didn't work out as well as I thought :(
<havenwood> rfish: Rails?
<rfish> not rails
<[diecast]> that's some pretty fast turn around. looks like they already solved it
<havenwood> [diecast]: aha, nice
<ruboto> rfish, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ca3f04917a4e1245f665
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<rfish> I'm tring to get brandingUrl from a query parameter
bronson has joined #ruby
pr0ton has joined #ruby
baweaver has joined #ruby
<rfish> and some how pass it to :thank_you haml
<havenwood> rfish: Where did the #view method come from?
<rfish> I really don't know what I'm doing in Ruby at all
Zai00 has quit [Ping timeout: 246 seconds]
<havenwood> rfish: This is Sinatra, yeah?
[diecast] has left #ruby [#ruby]
<rfish> ya, it is Sinatra
Rickmasta has joined #ruby
luriv has joined #ruby
bluOxigen has joined #ruby
<havenwood> rfish: And the view method?
drewo has joined #ruby
Limix has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
peter_paule has quit [Ping timeout: 255 seconds]
Papierkorb has joined #ruby
<havenwood> rfish: You could put a `require 'pry'` a tthe top and a `binding.pry` where you can: ls view(:no_session) ...
<havenwood> ?pry rfish
<ruboto> rfish, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
allomov has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
<havenwood> rfish: But also figure out where that method is coming from so you can read the source.
<havenwood> rfish: I guess Pry could help you do that. ;)
but3k4 has joined #ruby
<rfish> how can I get the parameter from the URL
<rfish> inside the controller?
mistermocha has quit [Ping timeout: 256 seconds]
meph has quit [Quit: Leaving.]
<toretore> controller.get_parameter_from_url()
peter_paule has joined #ruby
simplyianm has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
Xoro has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
mando has quit [Ping timeout: 256 seconds]
Xoro has joined #ruby
reset has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
fullofcaffeine has joined #ruby
bnagy has quit [Ping timeout: 244 seconds]
multi_io has quit [Ping timeout: 250 seconds]
blueOxigen has joined #ruby
xcesariox has quit [Ping timeout: 256 seconds]
pr0ton has quit [Ping timeout: 248 seconds]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bnagy has joined #ruby
fluchtreflex has quit [Quit: ZNC - http://znc.in]
multi_io has joined #ruby
vdamewood has joined #ruby
jonathanwallace has joined #ruby
fluchtreflex has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
prettiestPony11 has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
Muhannad has joined #ruby
pietr0 has quit [Quit: pietr0]
MagePsycho has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
hahuang65 has joined #ruby
<MagePsycho> here you can see i have repeated use of statements
<MagePsycho> how to wrap in a function
<jhass> MagePsycho: which ruby tutorial are you following?
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<MagePsycho> this is a code from mechanize (web scraper gem)
<jhass> that's not what I asked
<MagePsycho> it works but i want to use DRY
<shevy> MagePsycho: well just define the method: def bla
<shevy> you don't use any method so far though
<MagePsycho> yeah very new to ruby as i mentioned earlier
<shevy> def notice; puts "[NOTICE]"; end
<shevy> there you go! the first method \o/
<toretore> MagePsycho: this is very basic and covered in any tutorial or book
<MagePsycho> ; is not necessary when you use statement in new line right?
<shevy> yeah, either it is ; or a newline
<jhass> yes, never use ; outside IRC
<MagePsycho> how to use recursive
<MagePsycho> as you see i am submitting a form again and again if there is result_page.search('button#button-continue')
<Senjai> jhass: Not -never-
<Senjai> but in 99% of cases, you shouldn't be using semicolons in your code
<jhass> Senjai: the "valid" cases are under debate
<jhass> so never is a valid standpoint
Pumukel has joined #ruby
<Senjai> jhass: class CustomException < StandardError; end
platzhirsch has quit [Remote host closed the connection]
<jhass> yup, under debate
<jhass> same for def empty; end
<Senjai> Just because we haven't determined what is "valid" doesnt mean we can say it is "invalid"
<Senjai> how do we know what's invalid, if we don't know what's valid
<MagePsycho> any example for recursive function in ruby
<jhass> def crash; crash; end
gambl0re has quit [Remote host closed the connection]
jamesaxl has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> :)
willywos has joined #ruby
gambl0re has joined #ruby
<shevy> note that jhass is using ; !!!!!!!
sandelius has joined #ruby
<jhass> in IRC, yes
sandelius has quit [Client Quit]
<jhass> I'm also still undecided regarding the def empty; end and class CustomException < StandardError; end cases
<shevy> MagePsycho: the problem there with your example is that you just use the method on that result_page object
mando has joined #ruby
AnoHito_ has quit [Ping timeout: 256 seconds]
<shevy> MagePsycho: if you have a repetitive way to invoke it, simply define a helper method
<jhass> I'm just saying that I've seen objections regarding them being okay
<shevy> like: def search(search_term_here = '')
<Senjai> jhass: Right, so until you are decided, and can make an argument as to why one is better, dont tell people to never use them :P
<Senjai> never is a very strong word
<shevy> the ultimate tutor is the ruby parser
<jhass> Senjai: I will, since it's a much easier statement until they can make up their own mind
<jhass> Senjai: no need to confuse a newbie with a series of exceptions
<Senjai> No need to give a newbie wrong information.. :/
<jhass> it's not wrong, that's my entire point
<shevy> MagePsycho you need to reconcile between jhass and Senjai!
<Senjai> It's not correct. You yourself said its under debate
<shevy> hurry!
<Senjai> shevy: please don't intice
craysiii has quit [Ping timeout: 248 seconds]
acke has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 250 seconds]
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Senjai: I said "there are valid exceptions" is under debate
edektor has joined #ruby
<Senjai> That's the same as saying "never use semi colons" is under debate
<havenwood> Senjai: CustomError = Class.new StandardError
<shevy> haha
<Senjai> havenwood: aye, I know
<edektor> Can someone explain what I'm doing wrong here? https://gist.github.com/anonymous/1dad37a79cc123d87b3f
<Senjai> havenwood: empty methods are another case
<havenwood> Senjai: I'm just saying I side with it.
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Senjai: what's wrong with two lines?
<Mon_Ouie> edektor: Not if you don't tell us what's going wrong
<havenwood> def x
<havenwood> end
<Senjai> Nothing, what's wrong with a single line if there is no body?
<havenwood> Senjai: nothing
<Senjai> We stand agreed
<edektor> @Mon_Ouie in the included block when it accesses #state_machine_class it raises NotImplementedError
<edektor> When I include the module in a class
Alina-malina has quit [Read error: Connection reset by peer]
<edektor> that defines #state_machine_class
sshuff has quit [Ping timeout: 248 seconds]
<Mon_Ouie> Well that's what you defined state_machine_class to do it looks like (not sure what that #class_methods method does though)
Alina-malina has joined #ruby
<havenwood> Senjai: Why make empty methods?
gambl0re has quit [Ping timeout: 252 seconds]
AnoHito has joined #ruby
pengin has quit [Remote host closed the connection]
<havenwood> Senjai: I guess I know the answer, nevermind.
<shevy> !
<Senjai> havenwood: Aye, it's usually a smell of poor inheritance.
<Mon_Ouie> Maybe the hook is being called before you redefine state_machine_class in the class that includes your module if that's what you're doing
<Senjai> or poor design
<edektor> Mon_Ouie: what I want is for it to call MyModel.state_machine_class and raise NotImplementedError when it's not defined in the class the module is included in
aswen has joined #ruby
JoshL has quit []
<jhass> havenwood: I find the Foo = Class.new Parent variant to be the worst actually. It requires quite a bit of a deeper understanding about Rubys object model
a346 has quit [Quit: a346]
<jhass> for zero benefit
nerio has joined #ruby
gambl0re has joined #ruby
<Senjai> I actually think it's the most correct for defining empty classes
<Senjai> It may require a deeper understanding, but it is "correct"
<jhass> no, it just makes you feel smarter
<Senjai> Not really. It's something anyone can google and figure out within a second
<Senjai> That's just an ad-hom attack on me... not really an objective point
ferr has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<jhass> I strongly disagree, Rubys object model, while beautiful, takes quite a while to grasp
dopie has quit [Quit: This computer has gone to sleep]
<shevy> Class.new is indeed worse than the common subclass-way for exceptions
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> But you're still not saying that it's incorrect
<jhass> it's not any more or less correct than using the class keyword
<Senjai> You're saying that "a part of ruby is hard to understand"
troulouliou_dev has joined #ruby
<jhass> yes, you observed correctly
<Senjai> Good, then we agree. There's no reason not to suggest that case as well over the other.
<jhass> there is, it raises the barrier of entry to your codebase
existensil has quit [Quit: WeeChat 0.4.2]
<Senjai> Not really, writing bad code does.
<jhass> writing "clever" code for no real benefit does too
<Senjai> jhass: https://gist.github.com/Senjai/26355322f79f45645006 is all super simple, but good luck trying to track down where all that is used, and how it changes for each controller
existensil has joined #ruby
<shevy> this is super simple???
<Senjai> As in you can read the code without an expert knowledge of ruby
<Senjai> But you have no idea how it all works and connects because it is all bad
but3k4 has joined #ruby
nikhgupt has joined #ruby
<Senjai> Unfortunately, this is where I'm spending the rest of my day
<nerio> Hi, can any help me with this error please?
<shevy> Could not find PostgreSQL build environment (libraries & headers): Makefile not created
peter_paule has joined #ruby
<shevy> you should try to find out what components you require for postgresql. it may be specific to your operating system e. g. linux distribution
<Senjai> nerio: May need something like libpq-dev
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> in this case a .h file is missing at least -> checking for postgres.h... no
timonv has quit [Ping timeout: 252 seconds]
<nerio> well I have linux distribution based on Ubuntu
sshuff has joined #ruby
<Senjai> nerio: sudo apt-get install libpq-dev
joelataylor has joined #ruby
nikhgupta has quit [Ping timeout: 250 seconds]
<nerio> it's installed already :(
existensil has quit [Client Quit]
theery has joined #ruby
<shevy> no there must be some more package that has the .h file nerio
<shevy> let's see
casadei_ has joined #ruby
swgillespie has joined #ruby
<shevy> "postgres server dev headers"
<shevy> sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 libpq-dev
<shevy> not sure about the numbers
existensil has joined #ruby
<shevy> probably you have to change that to your postgresql version that you use
<nerio> do you think that the problem is the version?
<jhass> nerio: nope, postgres.h is indeed part of the server distribution, not the client library
tomphp has joined #ruby
<jhass> so postgresql-server-dev or something should be it
nahtnam has joined #ruby
<shevy> \o/
<shevy> gregory commented 28 days ago
<shevy> postgresql-server-dev-9.4 did the trick for me!
Notte has joined #ruby
yizr has joined #ruby
<nerio> uhm it's mean, i have install postgresql-server-dev-9.4
<jhass> yeah, or whatever version you have available
<edektor> Here is a pure ruby example
simplyia_ has joined #ruby
<nerio> thanks shevy! :D
<jhass> edektor: yes, the included hook gets run before the method definition
<nerio> thanks jhass xD
<shevy> I only copy/pasted really :P but yay \o/
<nerio> well i don't care, thanks anyway
<edektor> jhass: how could I achieve what I'm looking to do?
<edektor> define the methods in the class then include?
hanmac has quit [Ping timeout: 256 seconds]
simplyianm has quit [Read error: Connection reset by peer]
olistik has joined #ruby
<jhass> edektor: I'd consider base::STATE_MACHINE_CLASS and class MyModel; STATE_MACHINE_CLASS = StateMachineClass; include MyModule
peter_paule has quit [Ping timeout: 250 seconds]
<edektor> jhass: yeah that is even better
<edektor> thank you
Xoro has quit [Ping timeout: 246 seconds]
<shevy> \o/
<shevy> problems solved at a fast pace here
baweaver has quit [Remote host closed the connection]
niemcu has joined #ruby
<jhass> shevy: hangman trained us
Jackneill has quit [Remote host closed the connection]
<shevy> ack... the unicode executioner :(
dellavg has quit [Ping timeout: 264 seconds]
<jhass> hexchat seems fine with unicode btw
<jhass> from what I've heard
bruno- has joined #ruby
victortyau has quit [Ping timeout: 246 seconds]
theery has quit []
pengin has joined #ruby
m8 has quit [Quit: Sto andando via]
surs4 has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zanloy has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gambl0re has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
ItSANgo_ has joined #ruby
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thiagovsk has quit [Quit: Connection closed for inactivity]
surs3 has quit [Ping timeout: 246 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pr0ton has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
xkef has joined #ruby
but3k4 has joined #ruby
rehat has quit []
a346 has joined #ruby
christiandsg has joined #ruby
ItSANgo_ has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
hanmac has joined #ruby
xkef has quit [Client Quit]
xkef has joined #ruby
xkef has quit [Client Quit]
drewo has quit [Ping timeout: 256 seconds]
xkef has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
[Butch] has joined #ruby
atomical has joined #ruby
frem has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
xkef has quit [Client Quit]
peter_paule has joined #ruby
bruno- has joined #ruby
xkef has joined #ruby
mistermocha has joined #ruby
edwinvdgraaf has joined #ruby
decoponio has quit [Quit: Leaving...]
underplank has joined #ruby
xkef has quit [Client Quit]
rwilcox has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<underplank> Hi all. im trying to parse a file that contains json. using the command “JSON.load(IO.read filename)
<underplank> the file has a key value pair like so
<underplank> "json_class": "Chef::Environment",
<underplank> and the json parser is barfing on that. Any ideas how to tell it to ignore that?
xkef has joined #ruby
victortyau has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
bmurt has quit []
<jhass> underplank: use JSON.parse instead
<shevy> jhass I get this error when I try to start it: *** buffer overflow detected ***: hexchat terminated
<underplank> oh thanks! that worked!
<jhass> shevy: your system is broken
<shevy> no! it works fine!
<jhass> did you download a release or some development version?
<shevy> both
Pupeno_ has joined #ruby
mhib has quit [Remote host closed the connection]
Pupeno has quit [Read error: Connection reset by peer]
BackEndCoder has quit [Quit: https://github.com/BackEndCoder]
dopie has joined #ruby
<ledestin> let's say a method requires a block. it seems that having &b as an argument would relay that info. but Rails for example doesn't do that. I wonder why.
<jhass> ledestin: example?
<ledestin> def foo(&b)
<jhass> or you mean for documentation purposes?
<shevy> wait
<shevy> I just fixed it I think...
<ledestin> jhass well, yeah, for reading code
choke has joined #ruby
<shevy> something was wrong with /usr/share/myspell/dicts/
<ledestin> jhass it could be relayed as a comment, yes
shevy2 has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
<jhass> ledestin: it's usually obvious enough from the docs of the method or even its name/what it should do, I too only use &b if I actually need its functionality
victortyau has quit [Max SendQ exceeded]
shevy has quit [Remote host closed the connection]
shevy2 is now known as shevy
drewo has joined #ruby
choke has quit [Client Quit]
Igorshp has joined #ruby
victortyau has joined #ruby
<jhass> though I also use yard and document with the @yield tag
stantonnet has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
<ledestin> jhass it's like, non-API code
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 248 seconds]
jhack has joined #ruby
jhack has joined #ruby
bungoman has quit [Remote host closed the connection]
<ledestin> I don't comment most methods
k3asd` has joined #ruby
k3asd`_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ledestin> well, thanks for a perspective
tno has joined #ruby
jmignault has quit [Quit: Textual IRC Client: www.textualapp.com]
Muhannad has quit [Ping timeout: 252 seconds]
gambl0re has quit [Remote host closed the connection]
magical-imouto has quit [Ping timeout: 240 seconds]
<jhass> ledestin: I think at the end of the day you notice the LocalJumpError before the &b anyway
enroxorz has joined #ruby
<enroxorz> howdy. where's the rails room in freenode
simplyia_ has quit [Remote host closed the connection]
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<enroxorz> thanks
gambl0re has joined #ruby
hinbody has quit [Quit: leaving]
blackmesa has joined #ruby
phutchins2 has joined #ruby
last_staff has joined #ruby
[H]unt3r has quit []
bungoman has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
swgillespie has joined #ruby
ldnunes has quit [Quit: Leaving]
davedev24_ has quit [Ping timeout: 248 seconds]
pyon has joined #ruby
davedev24_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
peter_paule has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
victortyau has quit [Ping timeout: 256 seconds]
davedev2_ has joined #ruby
FernandoBasso has joined #ruby
victortyau has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
casadei_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
jpfuentes2 has joined #ruby
olistik has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leonardoajim has quit [Quit: Be back later ...]
Channel6 has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
rbennacer has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__main__ has quit [Ping timeout: 255 seconds]
<MagePsycho> how to run shell command in ruby script?
<MagePsycho> system “sudo apt-get install vim"
<MagePsycho> ??
<bricker> MagePsycho: that's one way
eggoez has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<MagePsycho> ok cool
jerius has quit [Quit: /quit]
simplyianm has joined #ruby
fabrice31 has joined #ruby
yardenbar has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
k3asd`_ has quit [Ping timeout: 246 seconds]
zdman135 has quit [Remote host closed the connection]
yardenbar has quit [Remote host closed the connection]
ItSANg___ has joined #ruby
choke has joined #ruby
douglasssss has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
k3asd` has quit [Ping timeout: 248 seconds]
casadei_ has joined #ruby
ItSANgo_ has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
symm- has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
__main__ has joined #ruby
xkef_ has joined #ruby
jenrzzz has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xkef has quit [Ping timeout: 264 seconds]
mando has quit [Ping timeout: 256 seconds]
<shevy> MagePsycho if you want the return value, you can also use: result = `sudo apt-get install vim`
sarkyniin has quit [Quit: Quit]
fmcgeough has quit [Ping timeout: 246 seconds]
<ytti> i would strong urge people to use popen or requivalent
<ytti> unless shell expansion is actually needed
evanjs has quit [Ping timeout: 244 seconds]
silkfox has quit [Ping timeout: 265 seconds]
<ytti> mostly it is not
anisha has quit [Quit: Leaving]
simplyianm has quit [Remote host closed the connection]
bruno- has joined #ruby
<ytti> maybe something like
evanjs has joined #ruby
<ytti> def run cmd, args
<jhass> system has actually a form that doesn't invoke a shell
<MagePsycho> undefined method `mysqld' for main:Object (NoMethodError) —system “killall mysqld"
<MagePsycho> didn’t work
<ytti> Open3.popen3(cmd, *args) { |i,o,r,t| t.join }
<ytti> end
<ytti> and then do
<ytti> run 'sudo', 'apt-get', 'install', 'vim'
<ytti> or something to that note
<ytti> now it does not really matter what the args are
baweaver has joined #ruby
<ytti> jhass, which form is that?
<ytti> i know exec accepts args
<ytti> so
<ytti> exec 'sudo', 'apt-get', ...
<ytti> ought to work
<jhass> system ["/usr/bin/sudo", "apt-get", "install", "vim"]
last_staff has quit [Quit: last_staff]
kirun has quit [Quit: Client exiting]
<ytti> cool, i had no idea
<jhass> system, spawn & exec take all the same forms
<jhass> documented most comprehensively at spawn
tmtwd_ has joined #ruby
tmtwd has quit [Read error: Connection reset by peer]
Notte has quit []
victortyau has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
<jhass> shevy: ☃ so how's hexchat? ☃
jonathanwallace has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
codecop has quit [Remote host closed the connection]
<shevy> jhass on xchat right now \o/
<shevy> both hexchat and xchat had the same problem with dict/ directory btw, I assume it is because they at one point shared the same code
<jhass> likely
baweaver has quit [Ping timeout: 244 seconds]
havenwood has quit [Read error: Connection reset by peer]
gamename has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Read error: Connection reset by peer]
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 256 seconds]
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
Luun has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
havenwood has joined #ruby
Luun has joined #ruby
marr has quit [Ping timeout: 250 seconds]
systemd0wn has quit [Quit: No Ping reply in 180 seconds.]
jwaldrip has quit [Quit: Be back later ...]
atomical has joined #ruby
abyss has quit [Ping timeout: 250 seconds]
bronson has quit [Remote host closed the connection]
jwaldrip has joined #ruby
surs4 has quit [Ping timeout: 250 seconds]
susmus has quit [Ping timeout: 250 seconds]
systemd0wn has joined #ruby
abyss has joined #ruby
susmus has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
jenksy has quit [Remote host closed the connection]
rezzack has joined #ruby
jenksy has joined #ruby
sshuff has quit [Quit: Leaving]
jwaldrip has quit [Client Quit]
bronson has joined #ruby
underplank_ has joined #ruby
simplyianm has joined #ruby
cdrage has quit [Ping timeout: 250 seconds]
victortyau has joined #ruby
underplank has quit [Ping timeout: 252 seconds]
underplank_ is now known as underplank
finisherr has joined #ruby
enroxorz has quit [Quit: Page closed]
rezzack has quit [Client Quit]
AlphaAtom has joined #ruby
rezzack has joined #ruby
togdon has joined #ruby
rezzack has quit [Client Quit]
charliesome has joined #ruby
gard has quit [Ping timeout: 250 seconds]
pdoherty has quit [Quit: Leaving]
rbowlby has joined #ruby
yfeldblum has joined #ruby
<nahtnam> Hey. What do you guys think of a coffee-tipping bot? I could make one if you guys think it would be useful/interesting. You could tip 25 cents or a dollar in starbucks gift cards to those who help you and what not
<AlphaAtom> if thats doable, sounds cool, but surely you can't redeem like .25 gift cards? :P
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> that sounds way too useful, if anything it should be primecoin, I at least have a source for that (and nothing useful to do with them yet)
<nahtnam> AlphaAtom: Yeah, it would have to add up $5. If you want to cash out for some reason, you can pay the rest. So if someone tips you $2.50, you could pay the other $2.50 and get your card
yizr has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
<AlphaAtom> oh I see, thats neat
<jhass> or actually, we do have rubycoin!
kerrizor has quit [Quit: Textual IRC Client: www.textualapp.com]
<nahtnam> jhass: Apparently thats a scam. Not sure though
Spami has quit [Quit: This computer has gone to sleep]
<cout> murraycoin > *
haxrbyte has joined #ruby
<jhass> well, not anymore scam than the other 700 coins
That1Guy has joined #ruby
That1Guy has left #ruby [#ruby]
<nahtnam> jhass: Lol
freerobby has quit [Quit: Leaving.]
<jhass> (and yes, I think 700 is a realistic number, wouldn't be surprised if I underestimated and it's 1500 actually)
it_tard has joined #ruby
zacstewart has quit [Remote host closed the connection]
<nahtnam> jhass: Git clone litecoin. Find all "bitcoin" replace with "mycoin"
<nahtnam> and a few more steps
edektor has quit []
<nahtnam> and your done
<jhass> yup
krz has quit [Quit: WeeChat 1.0.1]
<nahtnam> Oops
<nahtnam> Mean "litecoin"
jokke has quit [Quit: ninja vanish]
Aderium has joined #ruby
malconis has joined #ruby
haxrbyte_ has quit [Ping timeout: 256 seconds]
<Aderium> cant seem to compile ruby 2.2.2 on Solaris 11.2, 32bit nor 64 bit
<Aderium> can anyone help ?
MagePsycho has quit [Quit: MagePsycho]
nfk has quit [Ping timeout: 252 seconds]
<shevy> option.c:886:33: error: expected declaration specifiers or ?...? before ?u_int8_t?
<shevy> hmm
nikhgupt has quit [Remote host closed the connection]
<shevy> never seen that error before
yihsiaol has joined #ruby
leonardoajim has joined #ruby
x1337807x has joined #ruby
bruno- has joined #ruby
<Aderium> that seems to happen if I compile source or rvm install
<Aderium> cant seem to install it
<shevy> not many solaris users here by the way, you may try your luck, if you can not resolve it, directly at ruby core reporting an issue: https://bugs.ruby-lang.org/projects/ruby-trunk
x1337807x has quit [Max SendQ exceeded]
<Aderium> we are having, we think a memory leak in eventmachine that maybe the new gc may resolve
<shevy> hmm
<shevy> have you tried another gcc variant? yours seems to be gcc-4.5.2
x1337807x has joined #ruby
<shevy> I am at 4.9.2, most recent one is 5.1.0
<Aderium> I need to check if Solaris 11.2 carries that
christiandsg has joined #ruby
mary5030 has quit [Remote host closed the connection]
Scrofff has quit [Ping timeout: 264 seconds]
nerio has quit [Ping timeout: 246 seconds]
<shevy> ok so googling tells me that u_int8_t is "unsigned integer number with 8 bits"
jokke has joined #ruby
<Aderium> and ?
<shevy> I don't know what is TCP_CA_Open
nofxx has joined #ruby
<Aderium> :(
<shevy> come to linux :)
yihsiaol has quit [Quit: leaving]
<nahtnam> ^^^
leonardoajim has quit [Read error: Connection reset by peer]
k3asd` has joined #ruby
k3asd`_ has joined #ruby
yihsiaol has joined #ruby
leonardoajim has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
DoubleMalt has quit [Ping timeout: 240 seconds]
<shevy> "After the acquisition of Sun Microsystems in January 2010, Oracle decided to discontinue the OpenSolaris distribution"
spider-mario has quit [Remote host closed the connection]
<Aderium> yeah I suspect thought this issue also tru on other open solaris platforms like omnios
tmtwd_ has quit [Ping timeout: 256 seconds]
bricker has quit [Ping timeout: 246 seconds]
<shevy> seems you aren't the only one with issues https://github.com/rvm/rvm/issues/3346
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> "With rvm
<shevy> ruby-1.9 installs just fine
<shevy> ruby-2.1.5 installs just fine
<shevy> ruby-2.2.1 is a no go"
devdazed has quit [Quit: Computer has gone to sleep.]
<shevy> guess there were regressions!
bakednotfried has quit [Ping timeout: 246 seconds]
j_mcnally has quit [Ping timeout: 244 seconds]
leonardoajim has quit [Read error: Connection reset by peer]
niemcu has quit [Quit: Leaving]
bakednotfried has joined #ruby
mjuszczak has joined #ruby
leonardoajim has joined #ruby
<zenspider> 2.2.1 installs with rbenv/ruby-install just fine
thiagovsk has joined #ruby
<zenspider> (*for me)
cdrage has joined #ruby
j_mcnally has joined #ruby
riotjone_ has joined #ruby
mjuszczak has quit [Client Quit]
zacstewart has joined #ruby
aperture has joined #ruby
Luun has quit [Quit: Luun]
Aswebb_ has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 256 seconds]
aswen has quit [Ping timeout: 252 seconds]
<Aderium> zenspider, you mean on Solaris ?
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solars has quit [Ping timeout: 246 seconds]
olistik has joined #ruby
<aperture> Is there an easy way to convert a md5 checksum into a base10 encoded version?
mujou has joined #ruby
mengu has joined #ruby
<zenspider> aperture: I guess you could to_i 36
<zenspider> but... why??
pengin has quit [Remote host closed the connection]
<aperture> Because an encoding changed for a bunch of values in files I need while I was out on leave
<aperture> And it would be more work to regenerate them than to create a script to convert them
fgo has joined #ruby
<FrankD_> hey, I'm having a problem with migrations when I switched to MySQL from SQLite3.. https://gist.github.com/fdimitri/1716120b681876b24e9c
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has joined #ruby
<aperture> Thanks zenspider, I'll take a look at that
<FrankD_> am I doing something incredibly stupid with my models/schema?
olistik has quit [Ping timeout: 244 seconds]
<ramblinpeck> hi all, stupid question, but is there an option in 2.1.2 to force to_yaml to indent lists? Have it outputting to a file that saltstack is consuming and it needs the indents to parse it
mistermocha has joined #ruby
finisherr has quit [Quit: finisherr]
<FrankD_> im not sure why its foreign_key (`owner_id`) references `owners` (`id`) .. shouldnt it be more like "foreign_key (`owner_id`) references (`id`) ??"
<jhass> ?rails FrankD_
<ruboto> FrankD_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
leonardoajim has quit [Quit: Be back later ...]
<zenspider> aperture: no clue if it works on solaris. it's a strange beast with a lot of oddities.
<FrankD_> Uhm, they're not Rails questions
<zenspider> I, luckily, haven't worked on solaris in a couple decades
<FrankD_> this is not a Rails App, I'm just making use of ActiveRecord..
finisherr has joined #ruby
scripore has joined #ruby
<jhass> well, ActiveRecord expertise is still much bigger there
<zenspider> still a rails question
fgo has quit [Ping timeout: 256 seconds]
<aperture> zenspider, I think that response should go to Aderium
<zenspider> ramblinpeck: so you're saying that saltstack doesn't have a compliant yaml parser. should you trust them?
<FrankD_> zenspider, unless you need 'rails' to run it, i feel its not :p
<ramblinpeck> zenspider: it is what it is and thats the requirement I'm dealing with
<zenspider> oops. yes, my indexer crossed wires
<zenspider> FrankD_: Take it to #rubyonrails.
<ramblinpeck> how about we say I want yaml pretty-printed
silkfox has joined #ruby
<aperture> no prob
<yihsiaol> hidelevels.set 1
<zenspider> ramblinpeck: try calling YAML.dump explicitly rather than to_yaml
<FrankD_> zenspider, slightly autistic or severely? :P
<zenspider> !mute FrankD_
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> hardly... just an op.
<zenspider> you can take it to #ruby-banned now
<zenspider> !ban FrankD_ !T 1d trolls go home
FrankD_ was banned on #ruby by ChanServ [FrankD_!*@*]
FrankD_ was kicked from #ruby by ChanServ [Banned: trolls go home]
<zenspider> nevermind... you're done
<jhass> !unmute FrankD_
<zenspider> that was in response to PMs, for the record
<jhass> no need to pollute the list^^
bricker has joined #ruby
NeverDie has joined #ruby
<shevy> Aderium that reminds me, have you tried to compile on a not-so-recent ruby version? 2.1.x too? if that one compiles, and the 2.2.x does not, then it may help the few heroic core devs who run solaris :)
<zenspider> I love having /troll <username> set up :)
<shevy> oh damn
<zenspider> and /stfu
<shevy> just noticed your comment, 2.1.x compiles just fine
<zenspider> imperator might still do solaris work... he's not on here right now, but he frequents
choke has joined #ruby
<zenspider> what about 2.2.0 ?
Lucky___ has joined #ruby
mjuszczak has joined #ruby
pietr0 has joined #ruby
<zenspider> to be fair to FrankD_... #rubyonrails is still a shitshow of non-help and off-topic discussion
<zenspider> I just gave up asking my q in there
<ramblinpeck> zenspider: no luck, calling YAML.dump explicitly has the indent option but that just affects the indentation it already shows. I guess no way to force indentation at each level :(
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> ramblinpeck: can you gist an example including what you want to see vs what you see?
<ramblinpeck> zenspider: coming right up
blueOxigen has quit [Ping timeout: 246 seconds]
silkfox has quit [Ping timeout: 246 seconds]
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
leonardoajim has joined #ruby
mjuszczak has quit [Client Quit]
xkef_ has quit [Quit: Lost terminal]
Muhannad has joined #ruby
<DefV> so... OpenSSL forgot how to SSL eh
voxxit has joined #ruby
symm- has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<jhass> DefV: SSL is dead anyway, long live TLS! sadly
werelivinginthef has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
<Senjai> Is there a downside to TLS?
t0rrieri_ has quit [Quit: Be back later ...]
mistermocha has joined #ruby
<Senjai> Legit question
werelivinginthef has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
RegulationD has quit [Remote host closed the connection]
<zenspider> ramblinpeck: there's a problem... afaik, what you want isn't legit yaml
<zenspider> checking with tenderlove
<ramblinpeck> zenspider: I believe its optional in the spec iirc, but not sure
patrick_star has quit [Ping timeout: 264 seconds]
<zenspider> ramblinpeck: nope.
<zenspider> sec
<zenspider> look at this:
<zenspider>
<zenspider> >> require "yaml"; YAML.load("roles:\n - apiserver")
<ruboto> zenspider # => {"roles"=>["apiserver"]} (https://eval.in/395890)
pyon has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
* jhass looks at the empty line
brettnem has quit [Ping timeout: 264 seconds]
<zenspider> so maybe your input data is wrong?
<zenspider> maybe you need an array around the hash values?
patrick_star has joined #ruby
lkba has quit [Remote host closed the connection]
tmtwd_ has joined #ruby
<bricker> zenspider: #rubyonrails is a very helpful channel
<bricker> off-topic sometimes sur
<bricker> sure*
ndrei has quit [Ping timeout: 248 seconds]
<bricker> but "non-help" isn't true
<jhass> Senjai: with these days crypto foo we could likely design something that's not so horribly hard to implement. After all most people aren't horribly incompetent, there are just a real lot of gotchas
<Senjai> bricker: wat
brettnem has joined #ruby
<ramblinpeck> zenspider: oddly enough putting it in an array makes it work
<DefV> I'm just adding to the cruft but most help on #RoR is low-level stuff. I never had a non-trivial problem answered on #RoR
brettnem has quit [Client Quit]
<Senjai> I've always had no issues with TLS, but I have no idea what the underlying implimentation looks like
mrconfused has joined #ruby
<ramblinpeck> thanks
<jhass> well, and with something new we could also throw out all the questionable ciphers
eggoez has quit [Ping timeout: 248 seconds]
<bricker> Senjai: what wat
<bricker> Senjai: you have received a lot of help in rubyonrails
quazimodo has quit [Ping timeout: 250 seconds]
<zenspider> bricker: then get your ass in there and answer my questions :P
<Senjai> bricker: I know, It's what got me in the industry, I was just looking for the comment you were meaning to respond to
<bricker> Senjai: oh, zenspider was dissing rubyonrails
<Senjai> bricker: I found it now
<bricker> zenspider: what's your question?
pyon has joined #ruby
drewo has quit [Ping timeout: 265 seconds]
Alayde has quit [Quit: WeeChat 1.1.1]
<bricker> zenspider: my backlog was truncated
<Senjai> To be fair, rubyonrails is a much more volatile channel. It's hard for me to stay in it for long periods of time... But I do owe a lot to it
hotpancakes has quit [Remote host closed the connection]
<bricker> best thing about that channel is it's about 50/50 australians and americans so there's always someone logged into help the newbs
<zenspider> hah
<ramblinpeck> zenspider, actually nope it doesnt, that puts a leading '- ' in front of each hash key, bleh
xkef has joined #ruby
santana has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
<zenspider> ramblinpeck: I'm arguing with tenderlove now. :)
eggoez has joined #ruby
<Senjai> zenspider: tenderlove is usually in the channel, or at least I've seen him here
Ilyas has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
<Senjai> should ask him to join
mistermocha has quit [Ping timeout: 248 seconds]
craysiii has joined #ruby
<Senjai> Also I will not be able to come down to Seattle in July :(
<Senjai> But hopefully sometime this summer
<zenspider> or I can just chat with him over IM and keep him all to myself :P
<zenspider> >> YAML.load("---\n:roles:\n- apiserver\n") == YAML.load("---\n:roles:\n - apiserver\n")
<ruboto> zenspider # => uninitialized constant YAML (NameError) ...check link for more (https://eval.in/395892)
<zenspider> >> require "yaml"; YAML.load("---\n:roles:\n- apiserver\n") == YAML.load("---\n:roles:\n - apiserver\n")
<ruboto> zenspider # => true (https://eval.in/395893)
<zenspider> so yeah... that's odd
<bricker> zenspider: what's the problem? I may have run into this before
<bricker> zenspider: I ran into a parsing discrepancy between an older version of Psych and a newer version
dfockler has quit [Remote host closed the connection]
<zenspider> ramblinpeck: dunno what to tell you. libyaml outputs pedantically correct yaml... if you can use syck, you can get it to output the way you want
togdon has left #ruby ["Bye-Bye."]
<zenspider> bricker: ramblinpeck has a service he's using that doesn't have a correct yaml parser, and he needs more indentation
<zenspider> see paste above
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker> oh
<zenspider> ramblinpeck: now tenderlove is saying he's not sure syck will do it either :)
Zai00 has quit [Quit: Zai00]
<eam> the stuff psych does on top of libyaml is super annoying - we hit all kinds of interopt between the two
<eam> interop
<eam> like "true" vs true
SCHAAP137 has quit [Ping timeout: 256 seconds]
<zenspider> eam: ? what about "true" vs true ?
<eam> >> require 'yaml'; {foo: true}.to_yaml
<ruboto> eam # => "---\n:foo: true\n" (https://eval.in/395894)
<eam> true the bareword is a boolean type
<eam> er
<eam> did I do it backward?
<eam> I gotta go check the issue specifics, but we have strings that parse differently in libyaml vs ruby
<eam> true was one of them
<zenspider> might have been yes or one of the other aliases?
<eam> iirc there's a table of behavior differences in Psych
<eam> yeah could be
<eam> killer for interop when you want ruby to talk to C via yaml
<zenspider> there shouldn't be differences as I understand it
finisherr has quit [Quit: finisherr]
<eam> lemmie see if I can find the specifics
<zenspider> did you try setting canonical = true ?
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
nerio has joined #ruby
mdarby has joined #ruby
mdarby has quit [Client Quit]
k3asd` has quit [Ping timeout: 244 seconds]
k3asd`_ has quit [Ping timeout: 256 seconds]
santana has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
<eam> probably not, all with defaults
nathanstitt has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
xxneolithicxx has joined #ruby
yizr has joined #ruby
Spami has joined #ruby
pietr0 has quit [Quit: pietr0]
hotpancakes has joined #ruby
IanV0rn2341 has quit []
anaeem1_ has quit [Quit: Leaving...]
x1337807x has joined #ruby
waseem_ has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: Leaving]
mary5030 has joined #ruby
<zenspider> just confirmed that my activerecord problem is legit and I need to metaprogram up some custom accessors. yay, yet... :/
xkef_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
xkef has quit [Ping timeout: 244 seconds]
<Ox0dea> Woohoo! But also 0x5adface.
a346 has quit [Quit: a346]
pr0ton has quit [Read error: Connection reset by peer]
pr0ton has joined #ruby
simplyia_ has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
simplyianm has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
<Senjai> zenspider: what problem?
xkef has joined #ruby
mfranzwa has quit [Quit: mfranzwa]
mjuszczak has joined #ruby
mengu has quit [Remote host closed the connection]
lkba has joined #ruby
xkef_ has quit [Ping timeout: 256 seconds]
drewo has joined #ruby
fabrice31 has joined #ruby
n1x has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
kies^ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
simplyia_ has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
umgrosscol has quit [Quit: Quit]
fabrice31 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 264 seconds]
hotpancakes has joined #ruby
<Ox0dea> Is there any way to get that to do what I'd like it to without changing something at the call site? https://gist.github.com/0x0dea/71736c9564954fc83c9d
hahuang65 has quit [Quit: WeeChat 1.2]
<bricker> Ox0dea: what do you want to do?
hotpancakes has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
<Ox0dea> bricker: I'd like to resolve a constant in a different scope than the one to which it's lexically bound.
j_mcnally has joined #ruby
nycjv321 has joined #ruby
Ruub7 has joined #ruby
<nycjv321> is it possible to get a partial binary file with Net:FTP?
<eam> Ox0dea: is Foo::N not an option?
jenrzzz has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
blaines__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
bungoman_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<zenspider> Senjai: upgrading rails 3 to rails 4. was using hstore which defaults to {} on nulls in rails 3 and nil in rails 4
hotpancakes has joined #ruby
Ruub7 has quit [Ping timeout: 246 seconds]
<Senjai> Ah
<Senjai> Yeah, I typically try to avoid using database dependent things like that with ActiveRecord
<Senjai> Usually opt for things like redis and stuff for those cases
gambl0re has quit [Ping timeout: 250 seconds]
bungoman has quit [Ping timeout: 256 seconds]
<Ox0dea> eam: Decidedly not. That was an oversimplified example of what I'm actually trying to do: https://gist.github.com/0x0dea/7fd377af0fbfe8c13ed9
RegulationD has joined #ruby
<zenspider> Ox0dea: you could instance_eval the block
bungoman_ has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
<zenspider> I have no idea what horrible shit you're up to... but you've obviously not going to be swayed from your evil path. :P
baweaver has quit [Remote host closed the connection]
<shevy> :D
<Ox0dea> Aye, that is so. :)
<Ox0dea> Alas, instance_eval doesn't work either.
<Ox0dea> Nor even module_eval, as would more befit the case.
jesterfraud has joined #ruby
<Ox0dea> I suspect I shall have to resort to saving and restoring the existing constants, redefining Object.const_missing directly, and then restoring its original definition after each invocation. :/
surs4 has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
<Aeyrix> lol zenspider
<Aeyrix> it's magical, not horrible
n1x has quit [Ping timeout: 244 seconds]
92AABMI76 has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
nerio has quit [Quit: Leaving]
<Ox0dea> At least I'm trying to properly encapsulate the madness this time round.
<bricker> Ox0dea: it seems like you haven't really explained what you're trying to do
<bricker> or I missed it
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
<Ox0dea> It suffices to say that I really do need to handle missing constants referenced from the top level.
simplyianm has joined #ruby
quimrstorres has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> This can be done by defining Object.const_missing directly, but I seek some saner alternative.
underplank has quit [Quit: underplank]
AlphaAtom has joined #ruby
<zenspider> you're gonna break if anyone defines const_missing below Object
<Ox0dea> That's true. :/
quimrstorres has quit [Remote host closed the connection]
AlphaAtom has quit [Max SendQ exceeded]
leonardoajim has quit [Read error: Connection reset by peer]
leonardoajim has joined #ruby
hotpancakes has quit [Remote host closed the connection]
christiandsg has joined #ruby
leonardoajim has quit [Read error: Connection reset by peer]
mengu has joined #ruby
sharpmachine has quit [Remote host closed the connection]
Muhannad has quit [Remote host closed the connection]
leonardoajim has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
leonardoajim has quit [Read error: Connection reset by peer]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 246 seconds]
leonardoajim has joined #ruby
tmtwd_ has quit [Ping timeout: 250 seconds]