« Back to channel list

#ruby - 09 July 2015

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