Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<shevy> hmm
<shevy> sometimes I feel as if my classes evolve on their own
<shevy> and carry dead weight
<shevy> like under-used or obsoleted instance variables
<Jake232> It seems trying to calculate the first billion primes, may have been a little bit of a problem
<Jake232> for my function
mdel_ [mdel_!~mdel@pool-173-49-56-94.phlapa.fios.verizon.net] has joined #ruby-lang
<Jake232> haha
<shevy> 2 months using ruby
<shevy> and already breaking it
<shevy> you make me sad :(
srbaker [srbaker!~srbaker@70.28.245.115] has joined #ruby-lang
<Jake232> Yea
<Jake232> The first million was fine
<Jake232> Whats the most efficient way, to loop through an array, but skipping a element at a time
<Jake232> eg: Only looping through every other element
<manveru> Jake232: most efficient?
<manveru> in terms of what?
<Jake232> Time taken
<manveru> hm
<manveru> how big is the array?
<Jake232> 1 Million
<manveru> 0.step(a.size, 2){|n| a[n] }
<Jake232> o.O
<manveru> it's around 7 times faster than each_slice(2)
<manveru> of course, even faster would be a while loop
<Jake232> How cna you call the step method
<Jake232> on 0
<Jake232> Isn't it for ranges?
<manveru> no
<manveru> Fixnum responds to step
<manveru> >> a = [*500_000..1_500_000]; Benchmark.realtime{ n, s = 0, a.size; while n <= s; a[n]; n += 2; end }
<manveru> => 0.01916417
<manveru> that's around 60% faster still
<manveru> since you don't need to mess with blocks
tomzx [tomzx!~tomzx@dsl-216-221-32-204.aei.ca] has joined #ruby-lang
<Jake232> I was unsure what a = [*500_000..1_500_000] did
<Jake232> so
<Jake232> I typed p a;
<Jake232> turns out
<Jake232> that was also
<Jake232> a bad idea.
<manveru> lol
<manveru> it makes an array with 1 million elements
<Jake232> Whats the * at the beggining for?
<manveru> that's a splat
<Jake232> Alright, now I'm out of RAM
<Jake232> Better stop this
<Jake232> haha
<manveru> the thing is equivalent to (500_000..1_500_000).to_a
<livinded> killall ruby!
<livinded> do it now!
singpolyma [singpolyma!~singpolym@dsl-173-248-240-228.acanac.net] has joined #ruby-lang
<manveru> also the same as Array.new(1_000_000){|n| 500_000 + n }
<Jake232> 1.1000000.each do |n|; a << n; end;
<Jake232> 6 is that bad?
<Jake232> No idea where that random 6 came from.
<manveru> wut?
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
<manveru> you call .each on a float?
<Jake232> suppose to be ..
<Jake232> for a range
<manveru> then use () around it and use ..
<shevy> I call .each on your moms!
<manveru> anyway, using a range is slow
<manveru> but it's more memory efficient
<Jake232> Aren't you also creating a range though, and then converting to an array?
<Jake232> (500_000..1_500_000).to_a
<manveru> yeah
<manveru> but i use the array, the range is just for construction
<manveru> as i showed you above, there are many other ways to get the same result
<manveru> anyway, if you can't even fit a million elements in your memory, i'd suggest buying some ram
<Jake232> I've got 4GB, but I have alot of things running.
davehimself [davehimself!~davehimse@c-98-200-201-146.hsd1.tx.comcast.net] has joined #ruby-lang
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby-lang
<manveru> that array isn't even 5MB
<manveru> if you put it through .inspect (i.e. trying it in irb), then that might take tons of cpu though :)
<Jake232> Well, my IDE that was running it
<Jake232> jumped from like
<Jake232> 100mb
<Jake232> to just over 600mb
<Jake232> So it didn't like it.
<manveru> lo
<manveru> oh well
<manveru> my "IDE" takes 150kb
<shevy> vim?
<manveru> and it never tries to run stuff for me
<manveru> yeah
<erikh> my copy of vim takes a little more than that :)
<shevy> what do you use Jake232?
<Jake232> Sublime
<Jake232> I started using Vim like 2 months back, put up with it for like a month
<Jake232> decided it wasn't for me
<manveru> still, isn't your editor supposed to help you?
<erikh> it's not a science
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
<erikh> you gotta work to make your editor work for you
<manveru> shape your tools or your tools shape you :)
<Jake232> Sublime works fine for me, it's never crashed previously.
towski [towski!~towski@173-13-170-161-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
<livinded> Jake232: you just haven't worked it hard enough
<erikh> does it crash frequently? I have a co-worker raving about it.
<livinded> no idea, I've never used it
<Jake232> This is the first time it's crashed, but I love it.
<livinded> I switched from textmate back to vim and haven't looked back
<manveru> making an array of 1 million elements def. shouldn't crash it :P
<Jake232> It was printing them
<Jake232> that killed it
<livinded> textmate 2 was so underwhelming, especially after 5 years
<shevy> really?
<shevy> what annoys me is that it is mac only
<manveru> don't worry, you're not missing much
dreinull [dreinull!creepingfu@217.18.70.225] has joined #ruby-lang
<erikh> I don't think I could use an editor that didn't have a shell equivlaent
<erikh> vim or emacs, jed, joe, etc
<manveru> i wish we finally had decent collaborative editors
<erikh> they always hipster them up
<Jake232> Woo, my prime number works.
<erikh> just need a good mode for emacs or vim :P
<manveru> well, it's not possible to have more than one cursor in either
<erikh> to me that sounds like a solvable, but complexity:need problem
<manveru> and working in a shared tmux or something is quite annoying, since you never know who wants to work on what and when
<Jake232> This actually seems to work pretty quick, hmm.
<manveru> erikh: wave solved it...
<erikh> google wave?
<manveru> yeah
<erikh> it was a little overboard imo
<SuperTaz> I'd kill for a good collaborative editor
<manveru> that was just the UI
<erikh> fair
<manveru> everybody looked just at the UI :P
<erikh> well, that's what UIs are supposed to be there for
<erikh> :P
<SuperTaz> I think something like RubyMine will be what first implements one
<Jake232> Anyway, I'm off guys. 12.37 AM here
<Jake232> or 00.37, if you prefer that ;)
<Jake232> Cya
<erikh> Jake232: have fun.
<manveru> SuperTaz: there are subetha and gobby
yfeldblum [yfeldblum!~Jay@c-71-206-30-119.hsd1.md.comcast.net] has joined #ruby-lang
<manveru> subetha only for mac though
<SuperTaz> manveru: neither is really well-suited to an actual team, though
<manveru> and gobby is very much just a notepad with syntax highlighting
<manveru> yeah
<SuperTaz> RubyMine is actually a pretty good IDE
<manveru> that's why i'm not using them
<manveru> who needs an IDE?
<SuperTaz> there are definitely some good things about IDEs
<manveru> if you write java, sure
<SuperTaz> even if you write ruby
<SuperTaz> especially when you do large refactorings and/or have large codebases
<manveru> which i don't
<SuperTaz> right
<manveru> for mass rename there is sed
<erikh> sed is an inadequate tool for proper refactoring
<manveru> for most other repetitive stuff bufdo works fine
<erikh> but ruby doesn't really make it easy to do proper refactoring editing
<SuperTaz> but I have and continue to work on ruby code that powers some very high RPS web technologies
<manveru> at least the tool doesn't pretend to understand what the hell it's doing
<SuperTaz> and so we do have large codebases
<manveru> well, if you do rails, you'll probably benefit from and IDE
<manveru> *an
<SuperTaz> and an IDE makes it a lot easier for a whole team of engineers with various levels of knowledge of things like sed to use the same tools and pair with each other
<erikh> eh
<SuperTaz> manveru: we do some Rails, we do some Padrino
<manveru> try pairing over 100k km
<SuperTaz> manveru: we do lots of stuff that's neither, too
<SuperTaz> you pair with someone on the moon?
<manveru> sorry, 0 too much :)
<SuperTaz> okay
<SuperTaz> *whew*
<manveru> lol
<manveru> i wish
<SuperTaz> I thought there was a moonbase I hadn't heard of ;)
<SuperTaz> and I've done that, though...I want RubyMine to be able to work collaboratively
<SuperTaz> even pairing across town needs that
<SuperTaz> or pairing between San Francisco and Los Angeles
<manveru> aye
<SuperTaz> a bunch of us also use visual editors for stuff on servers and whatnot, but I'll say this:
<manveru> for really simple stuff you can still use etherpad
<SuperTaz> if you have to do a refactoring across 10 files, and you're renaming a variable or constant (like a class name), you often want to be able to see what's going to be done first, and make sure you only change the right things
<SuperTaz> that's something a bona fide IDE can do that vim and other editors can't...and that's the sort of operation that makes the case for actual IDEs in my mind
<andrewvos> What?
<andrewvos> What what what?
<SuperTaz> if you add in collaborative editing, then you have the ability to have functional pairing across multiple sites...that's awesome
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
<manveru> andrewvos: you voice my thoughts :)
<andrewvos> SuperTaz: So you think renaming a class across multiple files is enough reason to work with an IDE?
<andrewvos> Fals.
<andrewvos> False.
<shevy> let's stick to Fals!
<SuperTaz> andrewvos: it's an example of a class of things that make the case for an IDE
<SuperTaz> not the only class, nor the only example
<shevy> collaborative editing would be fun
<andrewvos> People will argue anything that they're too lazy to learn.
<shevy> imagine manveru hacking on something and I could watch him and ... and EVEN INSERT exit() throughout his code!!!
<shevy> yeah andrewvos
<shevy> is how I gave up on vim
<andrewvos> shevy: Use tmux
<SuperTaz> andrewvos: I've been using vi for over 2 decades, and still use it daily, so I'd be really careful before you start saying I'm too lazy to learn
<shevy> uh oh
<shevy> a fight!
<SuperTaz> naw
* shevy fetches popcorn.
<shevy> andrewvos he insulted your honour and your cojones!
<SuperTaz> I'm not going to get into <insert technology class> wars
singpolyma [singpolyma!~singpolym@69.171.154.34] has joined #ruby-lang
<andrewvos> SuperTaz: Ok well then I'll change my stance. Your reason for switching is unfounded.
<shevy> ok ok...
<SuperTaz> just saying...there are use cases for IDEs
<shevy> but it would have been an awesome fight
<shevy> your reason for stitching is unfounded!
<SuperTaz> andrewvos: didn't switch...I've been using IDEs AND editors for years...they have their uses
curtism [curtism!~curtis@bas11-montreal02-1128531355.dsl.bell.ca] has joined #ruby-lang
<andrewvos> shevy: I argue wth someone pretty much every time I come in here. It's the best way to learn ;)
<shevy> hmm ok wait
<shevy> you use an IDE _and_ vi ?
<SuperTaz> yes, why wouldn't I?
<SuperTaz> I also use my IDE's git integration AND git on the command line
<andrewvos> Sadly I have to run
<SuperTaz> oh, the horror!
<guns> vi is a far cry from a souped-up vim
<SuperTaz> sure, but at the end of the day, there's a lot I can do in an IDE that's more efficient than doing it in an editor
<guns> SuperTaz: with the appropriate statically typed language
<SuperTaz> or the appropriate dynamically typed language
<SuperTaz> frankly, I think that anyone who can't see the use for multiple types of tools along with the frustrations of using them in certain cases is limiting their own abilities
<SuperTaz> I'm not saying vim/<insert your editor of choice> is bad, I'm saying there are cases where something else is a better tool
<SuperTaz> and then there are other cases where it's the best tool
<guns> Well, consider that vim + plugins may have a good deal more coverage than you may think, if you are just a vi use
<shevy> thank god he ain't using nano
<SuperTaz> lol
<shevy> I am kidding though
<shevy> I like nano. I think it could have a few more features... but by and large, nano is alright
<SuperTaz> except I work with someone who uses it sometimes
<SuperTaz> and I always cringe a little
<guns> The world would be a better place without word processors, that's certain anyway
<SuperTaz> (and we use macs, so technically we have vim, not plain vi)
<SuperTaz> I'll say this, though...no matter what you use to write and edit your code...if you have to use a menu for everything, there's no advantage ;)
<erikh> ^
<SuperTaz> out of curiosity, since a few people are in here and active right now...how many of you are polyglots?
<guns> haha define
<SuperTaz> a polyglot knows multiple languages
<guns> yes, how many pls = poly
hahuang65_ [hahuang65_!~hahuang65@c-24-23-128-23.hsd1.ca.comcast.net] has joined #ruby-lang
<SuperTaz> but I'm using it in the sense of actively writing code in more than one language on a regular basis
<heftig> sh, c, java, ruby
<SuperTaz> i.e. working on projects that span multiple languages in the full technology stack
<heftig> ah, that not so much
<SuperTaz> heftig: how many do you use regularly, though?
<heftig> rather multiple things in different languages
<heftig> SuperTaz: those four.
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
<SuperTaz> ahhh, but your projects don't usually interact between them?
<heftig> no
<guns> SuperTaz: You have a single language per domain
<guns> so web apps usually have 2-3
<SuperTaz> define 2-3 for a web app?
<shevy> SuperTaz well depends ... I use Ruby almost exclusively. A bit of Nimrod here and there ... sometimes javascript if I have to (boy, I hate it, I always want to use ruby) ... but by and large I try to avoid languages other than ruby whenever possible
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
<heftig> SuperTaz: ruby for server-side, html and css for presentation, javascript for client-side
<shevy> yeah, the WWW is getting more and more complicated
<SuperTaz> okay, let's take html and css out of consideration, as they're pretty much a given for web
<SuperTaz> let's talk about actual functional code
<SuperTaz> vs. layout
<SuperTaz> my team is using ruby, javascript, and java for the most part...we have other teams that use other languages
<SuperTaz> we have some shell scripts, etc., too, but not really counting those
<guns> SuperTaz: I don't think that's exceptionally unique. I wouldn't call all web app devs polyglots though
<heftig> html/css3 is turing-complete
<SuperTaz> no, I don't consider javascript as enough to qualify
<guns> bah
<guns> js has higher order funcs
<guns> everything else falls into place
<SuperTaz> well, not unless you're using it in the context of node, etc.
<SuperTaz> if you're just scripting in the browser, it's pretty much a necessity for most modern web apps
<SuperTaz> of course, we do a lot of heavier lifting in the browser, so maybe it should be considered
<guns> the nice thing about webapps for a polyglot programmer is that the server component can be written in anything
<SuperTaz> I guess if we say javascript is a given, along with html and css and shell scripting, how many other languages?
<SuperTaz> sure
<guns> and more and more, JS is a compilation target for other langs (clojurescript, coffeescrtip)
<SuperTaz> yup
scottschecter [scottschecter!~scottsche@c-98-252-167-171.hsd1.ga.comcast.net] has joined #ruby-lang
<guns> Are oyu looking for a survey of langs used
<SuperTaz> naw, I'm just curious to hear what other people use
<guns> C, ruby, bash, js, clojure
<guns> ruby really does fill a nice chunk of everyday problem solving though
<SuperTaz> I have used over 20 languages over the years, but actively I'd say it's just ruby, js, scala, and ruby for me right now...I haven't been doing a lot of C in the last couple of years
<SuperTaz> it does
<SuperTaz> I actually use it in favor of shell scripting a lot of the time
<SuperTaz> because it's a lot clearer and more people can understand what it's doing on the team
<SuperTaz> not to mention, I can write ruby faster than shell scripts these days, because I do more of them
<guns> I wrote a bash scripting library and a hash table implementation years ago.
<guns> a true waste of time
<SuperTaz> lol
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<SuperTaz> one thing I've noticed is that I like scala a lot, because it's concise and readable like ruby, but is compilable, which makes it capable of blistering speed
<SuperTaz> not to say that ruby isn't fast...most people would be astonished at how fast we've gotten our ruby web apps to be...but it's kind of interesting to leverage more than one technology in the same stack, where you use each to take advantage of its benefits over the other(s)
gix [gix!~gix@e180001246.adsl.alicedsl.de] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
Mon-puchi [Mon-puchi!~Mon-puchl@221x112x18x230.ap221.ftth.ucom.ne.jp] has joined #ruby-lang
heppy [heppy!~heppy@75-101-31-55.dsl.dynamic.sonic.net] has joined #ruby-lang
youngin_ [youngin_!youngblood@avtomat.probsd.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
postmodern_ [postmodern_!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
nofxx1 [nofxx1!~nofxx@177.106.1.237] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@174-27-218-195.slkc.qwest.net] has joined #ruby-lang
DEac- [DEac-!~deac@81.16.104.86] has joined #ruby-lang
egroeg [egroeg!~egroeg@unaffiliated/egroeg] has joined #ruby-lang
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby-lang
DEac- [DEac-!~deac@81.16.104.86] has joined #ruby-lang
egroeg [egroeg!~egroeg@unaffiliated/egroeg] has quit ["quit"]
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@70.28.245.115] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
Mon_Ouie [Mon_Ouie!~Mon_Ouie@81.244.204.135] has joined #ruby-lang
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-216-221-32-204.aei.ca] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.218.209] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
nari [nari!~nari@raichu.netlab.jp] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
towski [towski!~towski@173-13-170-161-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
Briareos1 [Briareos1!~quassel@202.58.198.84] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.217.166] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@70.28.245.115] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
sora_h [sora_h!~sora_h@tubusu.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
mdel__ [mdel__!~mdel@pool-173-49-56-94.phlapa.fios.verizon.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<rue> SuperTaz: I can't find the motivation to learn Scala properly on my own; perhaps if it's needed for work. It's just too large
<SuperTaz> it's actually not that bad at all
<imperator> scala sucks
JosephRuby [JosephRuby!~joseph@46.33.39.16] has joined #ruby-lang
<rue> SuperTaz: Yes, it really is. Sizewise. It's a nice functional language, but I can't justify the cost
<SuperTaz> cost vs what?
<imperator> rue, nice? it's the java of the fp world
<rue> Versus learning something else
<rue> Clojure might be nice, it'd be useful to have a good lisp
<SuperTaz> not sure what you mean by large
<SuperTaz> it wasn't hard for me to learn at all...do you have any background in C or Java?
<rue> It's not C, or Java, though. It's a functional language with an elaborate full-blown object system, which importantly has to go through all kinds of hoops to map into a consistent model over the JVM
<rue> I can write Ruby in Scala without too much trouble. But, then, I can just write Ruby
<SuperTaz> why would you write ruby in scala?
<rue> Why indeed
<rue> imperator: That's slightly true, but it's certainly the most useful one out there given the JVM ecosystem
<SuperTaz> I'm not sure I'd refer to Scala as a functional language with an object system, it's a language that blends OOP with FP on top of the JVM, using a concise syntax that feels more like a dynamic language
<SuperTaz> less boilerplate code and more nuts and bolts
<SuperTaz> certainly wouldn't call it the Java of the FP world...I'd probably call it one of the best languages on the JVM
<SuperTaz> but that's because I'd eliminate most of the languages on the JVM from consideration
<SuperTaz> I like what it gives you over Java...if I have to mate something on the JVM with Ruby, it's generally going to be Scala
<rue> “I'm not sure I'd refer to Scala as a functional language with an object system” is part of the problem :)
<imperator> JRuby
<rue> Too many things
<rue> SuperTaz: Anyway, if it works for you, great! You certainly *can* be very effective using Scala. I've tried to read the books a few times, and just get bored when I find myself about 10% in at 300 pages
<SuperTaz> which books?
<SuperTaz> I've read 2 and played with it
<SuperTaz> I basically found that that approach was easy and I was up and running in no time
<rue> That's {Ruby,Java,Python} in Scala
<rue> There's a lot of subtlety in there
<rue> If I had to (re)learn either Scala or Java, I'd obviously pick the former. But I haven't had to
<SuperTaz> I dunno...it's not all 3 of those in one, imho
Aaaarg [Aaaarg!~Arthur@121-74-35-47.telstraclear.net] has joined #ruby-lang
<SuperTaz> I use JRuby...it's great for what I use it for, but when I need something non-ruby on the JVM, I definitely prefer Scala over Java
<SuperTaz> and I guess I might be tempted to learn Clojure and use that, but I compared Scala and Clojure and a few other JVM languages when making the decision, and it seemed to me that Scala was the most practical for several reasons
<SuperTaz> anyway, it's like most things...whatever fits you and your needs best is what you should use
towski [towski!~towski@173-13-170-161-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
<SuperTaz> I just happen to like the feel of Scala over that of Clojure, and like the blend of FP and OOP
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
sunredsky [sunredsky!sunredsky@76.206.24.126] has joined #ruby-lang
turboladen [turboladen!~kvirc@12.104.148.2] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
densebits [densebits!~densebits@fedora/densebits] has joined #ruby-lang
s0ber [s0ber!~s0ber@114-36-229-64.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-229-64.dynamic.hinet.net] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-33-172.telstraclear.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-4d028112.pool.mediaWays.net] has joined #ruby-lang
<josh9> can someone explain what's going on here: ['a','b','c'].permutation.map &:join i know that .permutation returns an enumerator. but what is it capable of? where do i find it?
<rippa> what enumerator is capable of or what permutation is capable of?
<josh9> rippa: enumerator. how do i know i can run map on it? and what's in it?
<rippa> josh9: it includes Enumerable
<any-key> map is in array
<rippa> and has all its methods
<josh9> ok. so Array includes Enumerable, therefor it has a method called map that returns Enumerator.
yxhuvud [yxhuvud!mongo@h-49-243.a212.priv.bahnhof.se] has joined #ruby-lang
<josh9> sorry. therefor has a method called permutation
<rue> Yes, assuming it hasn't overridden the method itself
<rue> (And that it's an Enumerable method;)
<rue> (It actually isn't)
<rippa> josh9: Enumerator includes Enumerable
<rue> (But Array itself defines #permutation to return an Enumerator)
<rippa> only array has #permutation
<rippa> it's not in Enumerable
<josh9> rippa: permutation returns Enumerator object
<rippa> yes
<josh9> rippa: ok. it looks like map belongs to enumerable that is included in enumerator
<rippa> yes
<rippa> you can check this with
<rippa> [1,2,3].permutation.method(:map)
<rippa> => #<Method: Enumerator(Enumerable)#map>
<josh9> yes
<josh9> rippa: so ['a','b','c'].permutation holds all the permutations of a,b and c, and the only way for me to see it's content is using an iterator like map or each?
<rippa> josh9: you can supply a block
<rippa> or do ['a','b','c'].permutation.to_a
<josh9> nice
ksinkar [ksinkar!~ksinkar@117.195.108.49] has joined #ruby-lang
victork [victork!~victork@122.167.89.143] has joined #ruby-lang
<josh9> question regarding mixing a module. if i call bark inside my module, and bark belong to dog object, it makes the module dependent on the dog, right?
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
<rue> josh9: Yes; you should rely on that very judiciously (and make it clear if you do)
<rue> For example the Enumerable contract is that whatever it's included or extend into has an #each
<josh9> rue: gotcha
ryanf [ryanf!~revfitz@adsl-69-111-194-237.dsl.snfc21.sbcglobal.net] has joined #ruby-lang
yadav_ [yadav_!~quassel@dsl-173-248-230-235.acanac.net] has joined #ruby-lang
<josh9> rue: I just read it in 'Eloquent Ruby' - chapter 17: 'Use Blocks to Iterate'
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
<rue> How was it?
<josh9> rue: just jumped to this section so i am not sure yet. didn't read anything yet..
Randroid [Randroid!~gregory@static-72-91-82-26.tampfl.fios.verizon.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
geoffw8_ [geoffw8_!~geoffw8_@5add5509.bb.sky.com] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
mantono [mantono!~mantono@c83-251-126-234.bredband.comhem.se] has joined #ruby-lang
Randroid [Randroid!~gregory@static-72-91-82-26.tampfl.fios.verizon.net] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
<NARKOZ> must I use uppercases in class name?
<NARKOZ> like: class UNKNOWN_ERROR < StandardError; end vs class Unknown_Error < StandardError; end
srbartlett [srbartlett!~srbartlet@124-148-148-173.dyn.iinet.net.au] has joined #ruby-lang
<lianj> NARKOZ: no
<erikh> just first letter
<NARKOZ> camelcase?
<NARKOZ> no underscores?
<josh9> NARKOZ: the convention is CamelCase
<ryanf> underscores for locals only
<ryanf> and filenames
beiter [beiter!~beiter@manz-5f7494d9.pool.mediaWays.net] has joined #ruby-lang
<ryanf> uh and constants that aren't classes
thrcka [thrcka!thrcka@nat/redhat/x-zenpejehjaudkxxk] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host223-28-dynamic.248-95-r.retail.telecomitalia.it] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@adsl-64-175-40-88.dsl.pltn13.pacbell.net] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-168-204-21.dyn.iinet.net.au] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
victormorph [victormorph!~victork@122.167.89.143] has joined #ruby-lang
spap [spap!spap@unaffiliated/spap] has joined #ruby-lang
hgwells [hgwells!nekid@115.241.178.25] has joined #ruby-lang
perryh [perryh!~perry@2602:304:ce63:4fd0:359b:2d9a:d28a:79d7] has joined #ruby-lang
perryh [perryh!~perry@unaffiliated/perry753] has joined #ruby-lang
nark-1 [nark-1!~NARKOZ@109.127.30.213] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
diegoviola [diegoviola!~viola@host-1-211.b15.cvc.com.py] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@80.79.35.95] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.167.254.70] has joined #ruby-lang
victork [victork!~victork@122.167.246.156] has joined #ruby-lang
lenilson_dias [lenilson_dias!~lenilson_@c934d329.virtua.com.br] has joined #ruby-lang
ryanf_ [ryanf_!~revfitz@adsl-69-111-194-237.dsl.snfc21.sbcglobal.net] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@62.65.124.23] has joined #ruby-lang
chendo_ [chendo_!~chendo@123-3-51-117.static.dsl.dodo.com.au] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
<hgwells> rubymine is nice
<hgwells> with the tab autocomplete
burgestrand [burgestrand!~burgestra@62.65.124.23] has joined #ruby-lang
mantono [mantono!~mantono@c83-251-126-234.bredband.comhem.se] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-148-148-173.dyn.iinet.net.au] has joined #ruby-lang
jbsan [jbsan!~jbsan@c80-216-213-130.bredband.comhem.se] has joined #ruby-lang
Fullmoon [Fullmoon!~Fullmoon@dsl-stat-43-17.mmc.at] has joined #ruby-lang
dRbiG [dRbiG!drbig@unhallowed.pl] has joined #ruby-lang
burgestrand_ [burgestrand_!~burgestra@62.65.124.23] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@62.65.124.23] has quit [#ruby-lang]
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
hgwells [hgwells!nekid@115.241.178.25] has quit [#ruby-lang]
geoffw8_ [geoffw8_!~geoffw8_@host81-151-1-88.range81-151.btcentralplus.com] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
sheldonh [sheldonh!~sheldonh@office.cpt1.host-h.net] has joined #ruby-lang
<sheldonh> is "The Well-Grounded Rubyist" awesome for intermediate+ ruby developers? i've been looking for something like Effective Java for my team, and am hoping this is it
geoffw8_ [geoffw8_!~geoffw8_@host81-151-1-88.range81-151.btcentralplus.com] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host223-28-dynamic.248-95-r.retail.telecomitalia.it] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
kain [kain!~kain@151.65.196.68] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0599.bb.online.no] has joined #ruby-lang
rolfb [rolfb!~rolfb@62.249.183.223] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.217.166] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatek.thls.bbc.co.uk] has joined #ruby-lang
nark-1 [nark-1!~NARKOZ@109.127.30.213] has joined #ruby-lang
<rue> I think Eloquent might be better? Not read either, though, so
<kmmndr> hi all :-)
<kmmndr> there is a method to have method name : __method__
<kmmndr> is there a way to have the name of the function called, if the method is aliased ?
srbartlett [srbartlett!~srbartlet@124-148-148-173.dyn.iinet.net.au] has joined #ruby-lang
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
<andrewvos> Guys, some douche is torrenting stuff on the wifi network at work. Thoughts on how I find their ip address and ban them on the router?
<rippa> take shotgun and go asking
<andrewvos> rippa: HR would get all whiny
<heftig> andrewvos: packet sniffing
<kmmndr> andrewvos: do you have access to the router ? is it a linux box ? --> install iptraf
<heftig> either look for high volume, or for the bittorrent tracker announcements.
<andrewvos> kmmndr: I have acces to it. It's a crappy dir-655 netgear
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
<heftig> given that it's wifi, you should be able to get the MAC address at least, in the encrypted traffic.
Briareos1 [Briareos1!~quassel@202.58.198.84] has joined #ruby-lang
<andrewvos> Hmm
<rue> kmmndr: No, and if it matters, you should probably not alias
<kmmndr> rue: I want to have something like $0 in bash
<rue> That'd be $0
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
<shevy> lol
gregmore_ [gregmore_!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
burgestrand1 [burgestrand1!~burgestra@62.65.124.23] has joined #ruby-lang
<diegoviola> andrewvos: bad dog, he's using windows
<Asher> he said he has no idea what he's doing
<diegoviola> ok
<Asher> so verified :)
<diegoviola> sorry
<diegoviola> i wonder if he knows ruby
<diegoviola> or perl
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
<diegoviola> dogs are so awesome
<Asher> truth
sunredsky [sunredsky!sunredsky@adsl-76-206-24-126.dsl.covlil.sbcglobal.net] has joined #ruby-lang
stanislavd [stanislavd!~worker625@l49-155-122.cn.ru] has joined #ruby-lang
Defusal [Defusal!DeFi@196-209-51-206.dynamic.isadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
stanislavd [stanislavd!~worker625@l49-155-122.cn.ru] has quit [#ruby-lang]
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-vscngfgbeavgbahj] has joined #ruby-lang
kain_ [kain_!~kain@151.65.196.68] has joined #ruby-lang
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
kedare [kedare!~kedare@scuderia.internet-fr.net] has joined #ruby-lang
beiter [beiter!~beiter@manz-5f7494d9.pool.mediaWays.net] has joined #ruby-lang
yadav [yadav!~quassel@dsl-173-248-230-235.acanac.net] has joined #ruby-lang
kain_ [kain_!~kain@151.65.196.68] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-35-77.telstraclear.net] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-44-74.telstraclear.net] has joined #ruby-lang
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-45-81.telstraclear.net] has joined #ruby-lang
deryl_ [deryl_!deryl@perfecting.rubyists.com] has joined #ruby-lang
jorgenpt_ [jorgenpt_!~jorgenpt@arachnophobia.daxnet.org] has joined #ruby-lang
andman_ [andman_!~andman@minorshadows.net] has joined #ruby-lang
wilkie_ [wilkie_!wilkie@nat/xomb/session] has joined #ruby-lang
jtoy_ [jtoy_!~rails@ec2-184-73-14-108.compute-1.amazonaws.com] has joined #ruby-lang
Xzyx987X_ [Xzyx987X_!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
s0ber_ [s0ber_!~s0ber@114-36-229-64.dynamic.hinet.net] has joined #ruby-lang
shachaf_ [shachaf_!~shachaf@204.109.63.130] has joined #ruby-lang
krzkrzkrz [krzkrzkrz!~foobar@175.139.73.204] has joined #ruby-lang
wasnotrice_ [wasnotrice_!~wasnotric@174-143-152-175.static.cloud-ips.com] has joined #ruby-lang
gnufied1 [gnufied1!~gnufied@122.167.254.70] has joined #ruby-lang
krzkrzkrz [krzkrzkrz!~foobar@unaffiliated/krz] has joined #ruby-lang
_br_- [_br_-!~bjoern_fr@221x255x118x242.ap221.ftth.ucom.ne.jp] has joined #ruby-lang
freedrul1 [freedrul1!~freedrull@freedrull.xen.prgmr.com] has joined #ruby-lang
xxi_ [xxi_!~ixx@64.20.241.94] has joined #ruby-lang
VGoff [VGoff!~kotp@li272-234.members.linode.com] has joined #ruby-lang
singpoly1a [singpoly1a!~singpolym@69.171.154.34] has joined #ruby-lang
ironcame1 [ironcame1!~ironcamel@67.23.35.158] has joined #ruby-lang
bmaland [bmaland!~bjorn@li273-13.members.linode.com] has joined #ruby-lang
crankhar1er [crankhar1er!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
oddmunds_ [oddmunds_!~oddmunds@s21-04214.dsl.no.powertech.net] has joined #ruby-lang
Cope_ [Cope_!~stephen@91.194.75.218] has joined #ruby-lang
vikoren [vikoren!~Adium@24-176-191-118.static.reno.nv.charter.com] has joined #ruby-lang
xsdg_ [xsdg_!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby-lang
Foxmaster [Foxmaster!~root@c-83-219-199-232.cust.bredband2.com] has joined #ruby-lang
pryno [pryno!~b@cpe-173-174-241-93.satx.res.rr.com] has joined #ruby-lang
ozzloy_ [ozzloy_!~ozzloy@ozzloy.lifeafterking.org] has joined #ruby-lang
stamina_ [stamina_!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
alindeman [alindeman!~adml@pudge.ithought.org] has joined #ruby-lang
tpope_ [tpope_!tpope@maeby.tpope.net] has joined #ruby-lang
alindeman [alindeman!~adml@freenode/senior-staff-emeritus/alindeman] has joined #ruby-lang
dnyy_ [dnyy_!u2106@gateway/web/irccloud.com/session] has joined #ruby-lang
t0h [t0h!thelineva@nikita.tnnet.fi] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
hrnt [hrnt!hrnt@wintermute.hrnt.net] has joined #ruby-lang
lake [lake!lake@bbis.us] has joined #ruby-lang
JoL1hAHN [JoL1hAHN!~nrk@unaffiliated/jol1hahn] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-qeuxndkszrcmsyxc] has joined #ruby-lang
mahlon [mahlon!mahlon@martini.nu] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@200-55-74-190.dsl.prima.net.ar] has joined #ruby-lang
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
jefflembeck_ [jefflembeck_!~jeffreyle@c-24-18-224-239.hsd1.wa.comcast.net] has joined #ruby-lang
basicxma1 [basicxma1!~basicxman@theroboticsuniverse.net] has joined #ruby-lang
stepnem_ [stepnem_!~stepnem@176.119.broadband10.iol.cz] has joined #ruby-lang
shevy [shevy!~shevy@194-166-25-205.adsl.highway.telekom.at] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
threeday1onk [threeday1onk!~threedaym@surimi.vm.bytemark.co.uk] has joined #ruby-lang
vereteran-x [vereteran-x!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-45-246.telstraclear.net] has joined #ruby-lang
wilkie_ [wilkie_!wilkie@nat/xomb/x-ykhlmtkbjhhpqpzs] has joined #ruby-lang
dominikh1 [dominikh1!~dominikh@cinchrb.org] has joined #ruby-lang
jammi [jammi!o@o.bombsquad.org] has joined #ruby-lang
ksinkar_ [ksinkar_!~ksinkar@117.195.98.39] has joined #ruby-lang
adam12 [adam12!~adam12@d216-121-144-209.home3.cgocable.net] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
znz_jp [znz_jp!~znz@ns5.n-z.jp] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@80.79.35.95] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
conceal_rs [conceal_rs!~conceal_r@www9237u.sakura.ne.jp] has joined #ruby-lang
Jade [Jade!~useless@modemcable003.116-202-24.mc.videotron.ca] has joined #ruby-lang
mqt [mqt!m@pheasant.nirv.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
jbsan [jbsan!~jbsan@c80-216-213-130.bredband.comhem.se] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
densebits [densebits!~densebits@fedora/densebits] has joined #ruby-lang
thone [thone!~thone@e177081219.adsl.alicedsl.de] has joined #ruby-lang
hahuang65 [hahuang65!~hahuang65@c-24-23-128-23.hsd1.ca.comcast.net] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
joast [joast!~rick@76.178.187.164] has joined #ruby-lang
vesan_ [vesan_!vesan@maailmanlopun.modeemi.net] has joined #ruby-lang
eban [eban!~eban@www2371u.sakura.ne.jp] has joined #ruby-lang
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby-lang
hexo [hexo!hexo@hackerspace.base48.tk] has joined #ruby-lang
DefV [DefV!~Jan@2a02:d08:1002:100:881:5124:6028:4] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
Ttech [Ttech!ttech@botters/staff/ttech] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
br1an [br1an!u440@gateway/web/irccloud.com/x-klsxpenzqwuivnvp] has joined #ruby-lang
znz_jp [znz_jp!~znz@ns5.n-z.jp] has joined #ruby-lang
conceal_rs [conceal_rs!~conceal_r@www9237u.sakura.ne.jp] has joined #ruby-lang
Guest32032 [Guest32032!~useless@modemcable003.116-202-24.mc.videotron.ca] has joined #ruby-lang
mqt [mqt!m@pheasant.nirv.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
jbsan [jbsan!~jbsan@c80-216-213-130.bredband.comhem.se] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
densebits [densebits!~densebits@fedora/densebits] has joined #ruby-lang
thone [thone!~thone@e177081219.adsl.alicedsl.de] has joined #ruby-lang
hahuang65 [hahuang65!~hahuang65@c-24-23-128-23.hsd1.ca.comcast.net] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
joast [joast!~rick@76.178.187.164] has joined #ruby-lang
vesan_ [vesan_!vesan@maailmanlopun.modeemi.net] has joined #ruby-lang
eban [eban!~eban@www2371u.sakura.ne.jp] has joined #ruby-lang
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby-lang
hexo [hexo!hexo@hackerspace.base48.tk] has joined #ruby-lang
DefV [DefV!~Jan@2a02:d08:1002:100:881:5124:6028:4] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
judofyr [judofyr!~judofyr@195.159.219.65] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-32-19.telstraclear.net] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:3:226:8ff:fedd:31a3] has joined #ruby-lang
Defusal [Defusal!DeFi@dsl-241-1-205.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.167.83.22] has joined #ruby-lang
josh9 [josh9!~oren@cpe-76-172-9-207.socal.res.rr.com] has joined #ruby-lang
panterax [panterax!~panterax@31.176.146.17] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0e111e.bb.sky.com] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4dbe24eb.pool.mediaWays.net] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@adsl-98-74-181-17.ilm.bellsouth.net] has joined #ruby-lang
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby-lang
matti [matti!matti@madwifi/support/matti] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@62.65.124.23] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
jensn [jensn!~Jens@165-244-96-87.cust.blixtvik.se] has joined #ruby-lang
codewrangler [codewrangler!~codewrang@pool-108-28-240-83.washdc.fios.verizon.net] has joined #ruby-lang
cyndis [cyndis!cyndis@lakka.kapsi.fi] has joined #ruby-lang
rayners [rayners!~rayners@38.102.22.194] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
<andrewvos> Where can I find the supported databases for activerecord?
<andrewvos> Oh I see they're called "adapters"
Austin__ [Austin__!~austin@96.45.197.22] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-92-23-158-179.as13285.net] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatek.mh.bbc.co.uk] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
<Tasser> andrewvos, #rubyonrails
<andrewvos> Tasser: Good point thanks.
spuk [spuk!~spuk@187.65.188.169] has joined #ruby-lang
zzak [zzak!~zzak@ec2-107-20-68-16.compute-1.amazonaws.com] has joined #ruby-lang
<Jake232> What's the reason behind nil being false?
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
jbwiv [jbwiv!~wellsj@world.timcogso.com] has joined #ruby-lang
benanne [benanne!~sander@b252h039.ugent.be] has joined #ruby-lang
<yorickpeterse> Because it is nothing
<Jake232> It isn't nothing though, it just represents nothing
<yorickpeterse> Well yeah, that's more or less what I meant
<Jake232> It's a instance of a class, just like "" is a instance of the String Class
<Jake232> They both represent "nothing" though
<rue> It's not false
<rue> It just isn't true-ish.
<Jake232> Well, in comparisons, it's false.
<rue> No, it isn't
<rue> It isn't true.
<rue> There's a difference :)
<Jake232> Hmm
<Jake232> So, it isn't false, but it isn't true?
<injekt> yes
<injekt> there's only 2 non tru-ish things in ruby
<judofyr> Jake232: false is also an instance of a class ;)
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
<Jake232> I see.
<judofyr> but yeah, false and nil is false-ish because matz thought so
<injekt> still curious why we have the true and false constants
<manveru> historical reasons, of coursse
Guest42308 [Guest42308!~vicky@122.177.191.227] has joined #ruby-lang
Guest42308 [Guest42308!~vicky@122.177.191.227] has quit [#ruby-lang]
<oddmunds> injekt: what would we have instead of true and false constants?
<oddmunds> or why are they not needed?
<injekt> oddmunds: not keywords,
<injekt> oddmunds: TRUE/FALSE = true/false
<Jake232> Where is the constants TRUE = true, defined?
<Jake232> Doesn't seem to be in TrueClass
<Mon_Ouie> In Ruby'scode
<injekt> ^
<Mon_Ouie> It's Object::TRUE
<injekt> that's where I found it, object.c iirc
<oddmunds> TRUE = TrueClass.new?
<injekt> rb_define_global_const("FALSE", Qfalse);
<Mon_Ouie> No, just TRUE = true
<Mon_Ouie> TrueClass.new can't work
<injekt> yeah, 'new' is undefined in true/false classes
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<injekt> ruby undefines it iirc
<oddmunds> aha
<oddmunds> i should spend more time in the rubyhacker thing
<judofyr> the rubyhacker thing?
<injekt> there's NIL too iirc
<injekt> man my internet is so slow here :(
<Jake232> My internet is always slow, it sucks.
<oddmunds> judofyr: http://rhg.rubyforge.org/
<injekt> mine was fast when I was back in canada, now im home.. living on a farm.. with farm internet :/
<judofyr> oddmunds: ah, it's pretty old though :/
<judofyr> but yeah
<judofyr> definitely
<Jake232> untrusted?, is definied on every Object
slyphon__ [slyphon__!~weechat@144.sub-75-198-254.myvzw.com] has joined #ruby-lang
<Jake232> Returns true if the object is untrusted.
<Jake232> wth does that mean?
slyphon__ [slyphon__!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<injekt> it means it cant be trusted!
<Jake232> In what way?
<Jake232> How does a object, become untrustworthy.
<injekt> interesting format is a global function and not defined in rb_mKernel
<judofyr> Jake232: #trust
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<injekt> and #untrust
<oddmunds> trust and taint is not directly conncted, is it?
<judofyr> Jake232: "hello".trust.untrusted? # => false
<injekt> a.untrust.untrusted? #=> false
<injekt> :D
<Jake232> I'm slightly confused, as to when you would use this?
<injekt> If the object was created during $SAFE level 4 (untrusted code)
<injekt> execution, the object is marked.
<injekt> Jake232: it's not really something you use yourself
<judofyr> $SAFE is sort-of broken anyway
<injekt> if sort-of == very
<injekt> :D
RickHull [RickHull!~rhull@209.119.14.25] has joined #ruby-lang
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<rue> Did you see enebo's call for ideas on $SECURITY (or somesuch)?
<injekt> hellllo SecurityErrors
<injekt> rue: nope
<Jake232> I have no idea what $SAFE is
<Jake232> But, I'm not going to blow my mind, by trying to find out ;)
<injekt> rbx and jruby dont support SAFE though iirc?
<judofyr> rue: nope
<injekt> interesting
tomzx [tomzx!~tomzx@dsl-62-6.aei.ca] has joined #ruby-lang
shevy [shevy!~shevy@213-33-11-140.adsl.highway.telekom.at] has joined #ruby-lang
rippa [rippa!~rippa@109-161-65-52.pppoe.yaroslavl.ru] has joined #ruby-lang
<rue> I'm a little concerned it'd get A) too java-y, i.e. complex and B) splintered between different platforms
<injekt> the latter is always a concern
<injekt> or should be
zumbi_ [zumbi_!~zumbi@77.230.237.25] has joined #ruby-lang
<injekt> hm, so the global IO methods are defined twice, as different methods
Jake232 [Jake232!~textual@5e0e111e.bb.sky.com] has joined #ruby-lang
<injekt> i guess im missing something there
sunredsky [sunredsky!sunredsky@adsl-76-206-24-126.dsl.covlil.sbcglobal.net] has joined #ruby-lang
<injekt> oh nvm
<injekt> duh
kennyp [kennyp!~kennyp@fedora/kennyp] has joined #ruby-lang
<samuelkadolph> People use $SAFE?!
<judofyr> $UNSAFE = true
jstemmer [jstemmer!~cheetah@mrpwn.stemmertech.com] has joined #ruby-lang
<sheldonh> judofyr: yo judy ;) in what ways is $SAFE broken?
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
<sheldonh> judofyr: i was playing around with $SAFE a couple of months ago. seemed a'ight: https://github.com/sheldonh/exercise/blob/master/lib/exercise.rb (see #solve)
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
kennyp [kennyp!~kennyp@fedora/kennyp] has quit [#ruby-lang]
<sheldonh> stackoverflow.com: Tumbleweed badge: Asked a question with no votes, no answers, no comments, and low views for a week.
deryl [deryl!deryl@perfecting.rubyists.com] has joined #ruby-lang
<manveru> :P
<shevy> sheldonh that's because you don't know how to ask
<sheldonh> shevy: good to see the assumption mill grinding away merrily
<shevy> sheldonh: any time
<sheldonh> shevy: it's better during eastern standard time :)
<shevy> one has to be provocative
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
<sheldonh> shevy: lest the world drown in an oversupply of fishnet
<shevy> hmm
<shevy> is there a way to filter stackoverflow?
<shevy> for instance, PHP questions show up. I'd like to filter them away
<injekt> 'ignored tags'
<shevy> ah cool
wyhaines_ [wyhaines_!~wyhaines@65.39.118.15] has joined #ruby-lang
bryno [bryno!~b@unaffiliated/bryno] has joined #ruby-lang
<sheldonh> and it's bookmark-friendly. wonderful stuff
Kanolesic [Kanolesic!~Kanolesic@c-24-218-140-224.hsd1.ma.comcast.net] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
deryl [deryl!deryl@perfecting.rubyists.com] has joined #ruby-lang
<zumbi_> hello, I am trying to compile ruby1.9.1 and when running testsuite I get a message with: 7edab000-7edcc000 rw-p 00000000 00:00 0 [stack] , then a note that I might have found a ruby bug, is there some way to help out providing better output?
<zumbi_> (for a bug report)
crankharder [crankharder!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
<imperator> $SAFE is an unfortunate perlism that made its way into ruby
<imperator> sanboxing ftw
<sheldonh> imperator: yeah, i hear the opinion offered a lot, i've just found it hard to discover the motivation behind the opinion. lots of links to sandboxing code that assumes you already know why $SAFE is bad
<shevy> hmmm lots of rails-specific question :(
<shevy> sanboxing? did you mean sunboxing?
<injekt> zumbi_: why are you trying to compile 1.9.1?
dejongge [dejongge!~jonke@pD9E0E134.dip0.t-ipconnect.de] has joined #ruby-lang
<shevy> imperator vs. sun ... who is gonna win ...
<sheldonh> shevy: yeah. helps to filter out: ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 sinatra, but even that ain't perfect
<injekt> zumbi_: you should at least use a stable ruby version :)
<shevy> zumbi_ that looks like an odd stack trace
<imperator> shevy, oracle
<shevy> hah this is a cool question "How do I implement Ruby's ?.each? method in Java?"
<sheldonh> shevy: what's your answer? the Command pattern? :)
<shevy> to that?
beawesomeinstead [beawesomeinstead!u1643@gateway/web/irccloud.com/x-bfudfuypavanwnnu] has joined #ruby-lang
<shevy> I don't know Java sufficiently well to even try answer that
<zumbi_> injekt: I am trying to build ruby1.9.1 on ARM hard float
<shevy> I also cant help but think that the syntax is terrible ...
<shevy> static <T> void each(Collection<T> collection, ItemProcessor<T> processor){
<shevy> :\
<injekt> zumbi_: right, I asked why :P
<injekt> zumbi_: 1.9.1 is all kinds of broken, I'm wondering why you would try to compile it over a newer version
<zumbi_> injekt: its a debian package I am missing on Debian ARM hard float port
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
<injekt> :/
* injekt punches kittens
<shevy> oh no
<shevy> the poor kittens!
<sheldonh> shevy: let's see what the kids think :) http://stackoverflow.com/a/8563719/162793
<shevy> sheldonh I think one problem with stackoverflow is ... what if you are kinda sitting on reputation 1 for years
<zumbi_> injekt: you mean 1.9.1 is not ready for production?
<sheldonh> shevy: that's very, very hard to do :)
codefriar [codefriar!~codefriar@ip-200.it.rdu.bandwidth.com] has joined #ruby-lang
<injekt> zumbi_: uh, well.. 1.9.1 was declared 'stable' in one of it's versions, but it's very broken, and nobody uses it :)
<sheldonh> shevy: but even so, your answers are still seen. rep just gives people a next to useless indicator of the product of your time spent on SO and what other people have gotten out of it
<shevy> hehe
csherin [csherin!~csherin@61.17.18.22] has joined #ruby-lang
<zumbi_> injekt: what is recommended 'stable'
<injekt> zumbi_: 1.9.2 or 1.9.3 in the 1.9 series
<injekt> 1.8.7 in the 1.8 series
<zumbi_> injekt: well, thanks
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
ozzloy [ozzloy!~ozzloy@unaffiliated/ozzloy] has joined #ruby-lang
<zumbi_> injekt: oh I see, I need 1.9.1 to compile 1.9.3
<injekt> what?
Swimming_Bird [Swimming_Bird!~textual@64.70.114.89] has joined #ruby-lang
<shevy> lol
<shevy> and 1.8.7 to compile 1.9.1!!!
<shevy> I like zumbi_ :)
<sheldonh> zumbi_: are you sure you don't need miniruby, created as part of the ruby build? what makes you say you need 1.9.1 to build 1.9.3?
<zumbi_> it might be some distro dependency, not sure why is there, but I have a 1.9.1 dependency on 1.9.3 package
<shevy> zumbi_ just stick to the latest, either 1.8.7 or 1.9.3xxx
steph021 [steph021!~steph021@unaffiliated/steph021] has joined #ruby-lang
<shevy> yeah
<shevy> distributions love to make life more complicated
<injekt> not all of them
quatauta [quatauta!~quatauta@91-67-252-70-dynip.superkabel.de] has joined #ruby-lang
<injekt> deb stuff is certainly the worst, though :)
<zumbi_> shevy: well, distros have other packages depending on those versions, so its not straight forward to remove a package in favor of the later
<shevy> poor zumbi_
<shevy> oh I know the justifications for making life harder than it ought to be
<zumbi_> shevy: rich on big fun
<sheldonh> zumbi_: i am a debian contributor and managed a network of 1,400 debian servers for a web hosting company for 3 years, using ruby for some provisioning whatnot. i fought popular opinion for a long, long time, but now i agree... if you get stuck, just don't use debian's ruby :(
<shevy> zumbi_ :)
<injekt> :D
<injekt> rbenv <3
<shevy> oh dear
<deryl> shevy: I was as well. I have to agree with your statement
<deryl> injekt: as shevy said.. oh dear
<injekt> what?
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby-lang
<shevy> zumbi_ what are you going to do?
<judofyr> don't blame the distro here. the library path for 1.9.3 is called 1.9.1
<injekt> judofyr: library path != dependency
<shevy> yeah I find that odd too
<zumbi_> shevy: well, I'll probably have to start mastering ruby, which until now I have no clue
<deryl> injekt: the rbenv love ;) but you already know where i stand with them hehe. just couldnt get my fingers to resist commenting hehe
<injekt> I agree it's stupid on rubys behalf (the 1.9.1 path stuff)
<injekt> deryl: :P
<deryl> :)
<shevy> versioning isn't that elegantly solved in the unix world. debian to use a "ruby1.8" is an abomination - you don't usually get versioned binaries
<sheldonh> judofyr: if the distro makes ruby a build dependency of ruby, i reckon it's okay to blame the distro
<zumbi_> sorry, its not a build depends, just a depends
<sheldonh> zumbi_: that's even worse, and i call bullshit :)
<shevy> ok out of curiosity
<shevy> how do you update to the latest ruby version on debian?
<shevy> apt-get install ruby?
<sheldonh> zumbi_: no chance in hell is ruby1.9_1.9.1 a dependency for ruby1.9_1.9.3 :)
<deryl> there was (at one time) a reason for it iirc. something about the build process of one of the early 1.9.x needing the 1.87 in place to bootstrap its build process.
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
<injekt> 1.9_1.9.3
<injekt> tehe
<zumbi_> shevy: install ruby-defaults if I am not mistaken
<sheldonh> injekt: *shrug* ruby1.9 is the package name, 1.9.3 is the version, and _ is the separator :)
<zumbi_> no, no, its ruby1.9.1 and ruby1.9.3
<shevy> how about
<shevy> 1.9_1.9.3-1
<injekt> sheldonh: I know, it just makes me chuckle :)
<shevy> archlinux uses that or? the last - indicates the internal revision thingy
<injekt> 19_1.9.1.1.9.3
<shevy> argh
<sheldonh> wtf? in squeeze, it's ruby1.9.1_1.9.2.0-2 !!!
<injekt> :D
<shevy> cool
<zumbi_> uhm.. actually, 1.9.3.0-1 is the version
<shevy> that has many numbers
* injekt vomits
<sheldonh> zumbi_: in squeeze?
<zumbi_> sheldonh: well, I am looking to sid, next wheezy
<injekt> ~% rbenv versions #=> 1.8.7-p352, 1.9.2-p290
<injekt> * 1.9.3-p0
<injekt> that was easy!
<zumbi_> injekt: on ARM hardfloat?
<sheldonh> zumbi_: ah, okay. lemme see...
<injekt> zumbi_: im using rbenv
<ddfreyne> injekt: why not rvm?
<ddfreyne> hipster cred?
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<shevy> lol
<injekt> no, rvm was a little big for me, I hardly use most of the features, and it's loaded as a shell function and does weird things like overriding cd (yes I know you can change that, but it's an example)
<shevy> I am keeping the latest ruby 1.9.3x locally and test in little bits every day
<injekt> and waynes reply to rbenv was a little disheartening
<sheldonh> zumbi_: you're right about the depends. oh my sac, how they've ballsed it up. ruby is the new exim :(
<zumbi_> sheldonh: well, if there is any useful insight, I might be able to help fix in it
<ddfreyne> injekt: that is not really a good reason to prefer rbenv over rvm though IMO
<deryl> injekt: the fact that sstephenson felt it necessary to trash RVM *without* so much as asking a single question of the RVM team *and* insinuating that rvm executed 'arbitrary and dangerous code' was both disheartening and malicious, just to garner project support.
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
<deryl> *that* was one of the *main* reasons wayne was so pissed off
<injekt> ddfreyne: not sure what you want me to say, I like rvm, but rbenv is nicer IMO
<sheldonh> zumbi_: sorry, nothing from me. perhaps contact the maintainers and offer them help testing on your platform
<ddfreyne> i've never had any trouble with rvm
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
<sheldonh> deryl: that nearly turned me off rbenv completely
<injekt> deryl: I agree, but most of what I read - although arrogant - was mostly precise
* zumbi_ starts by the nice online ruby tutorial
<ddfreyne> rvm having too many features is not something you use as an argument against rvm... rvm is pretty precise about what it does and it is certainly not bloated
<injekt> ddfreyne: I never said it was bloated, rbenv is much smaller and all I need to do is alter my $PATH, and I like that
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<deryl> sheldonh: I totally agree that having more than one competing project is great for the community. but to state that your competitor is dangerous to your system and do so without a single solitary mention that the competitor *does* have checks in place which the *user* *has* to override is just malicious. and to state that something it does (the cd override) is dangerous and stupid *and* not to mention that it has *always* been something the ...
<deryl> ... user could turn off (and that the community had requested that it be turned on in the first place) was also malicious and wrong. thats not arrogance that malicious intent
<shevy> :)
<shevy> deryl's keyboard must be injured
<shevy> look at him go!
<deryl> hehe probably, i was pounding on it :)
<sheldonh> deryl: yup. that was the thing that pissed me off. then, the next day, i had a really bad time with gemsets (because i'm an idiot) and tried out rbenv anyway :)
<sheldonh> shevy: he takes "space, not enter" very seriously :)
spinagon [spinagon!~rippa@109-161-65-52.pppoe.yaroslavl.ru] has joined #ruby-lang
<shevy> well he for sure can type fast!
<shevy> I need to pick a side yet
<injekt> heh, I must be a horrible person, because as soon as people start hating on my projects I give them good reasons to change their minds, not tell people to fuck off and abandon my project for a week
<deryl> sheldonh: which i think is good. everyone *should* try out all the toolsets available for a particular space. then use the one that works best for you. I guess I'm just still rather pissed off how rbenv handled it.
<shevy> rvm ... rbenv ...
<sheldonh> deryl: the good news is, in 10 years time, we won't be using either of 'em :)
<deryl> i'm hard to calm sometimes. especially something like that. I'd be pissed off at wayne if the shoe had been onthe other foot
<shevy> haha
<deryl> shevy: hehe damn straight :)
<shevy> well perhaps if neither rvm nor rbenv are required to have
<deryl> injekt: wayne's admitted that wasn't the best way to handle it.
<injekt> deryl: then why are we debating? :D
<sheldonh> deryl: wait, what? is this still going on? :)
<shevy> because his mom is cooler than your mom!
<deryl> injekt: in his defense he was under a lot of pressur that particular week. however, that being said even he doesn't think that properly excuses the behaviour
<sheldonh> deryl: i thought this was over ages ago
<shevy> sheldonh good things keep coming back to ya
<injekt> deryl: that's good, and I respect him for seeing that
<deryl> sheldonh: actually its not stephenson doing it now. its users on SO, in channels etc that are perpetuating the myths he put out there initially.
<deryl> i have to fix the perceptions and inaccuracies several times a week still :/
<shevy> is that the troll-mass effect?
<sheldonh> deryl: ahhhhh. bandwagon trolls
<deryl> sheldonh: yeah
<shevy> yay!
<sheldonh> deryl: much worse than bridge trolls
<deryl> hehe
<deryl> bridge trolls at elast stay in one spot and its easy to track them and destroy. bandwagon trolls move around too much to keep tabs on.
<sheldonh> :)
<shevy> hehe
tcurdt [tcurdt!~tcurdt@dslb-188-097-069-059.pools.arcor-ip.net] has joined #ruby-lang
<shevy> the rise of the modern troll
<deryl> ok, time to grab a cup of coffee and walk my dog before i lose another arm to the couch (she's such the chewer)
dr0id [dr0id!~andy@unaffiliated/dr0id] has quit [#ruby-lang]
<sheldonh> deryl: for a laugh, it's worth reading the comments of a few of DHH's blog entries. he seems to have people who follow him just to so they can tell him what an idiot he is when he posts something new. bridge trolls :)
<sheldonh> deryl: jesus, dude. time to get a more friendly couch!
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
<deryl> sheldonh: hehe. yeah. I don't agree with a lot of DHH's commentaries, however thats no reason to constantly target him and say *everything* he says is wrong. he does have some good points in there
<sheldonh> deryl: he could just whine less about IPOs on twitter :)
<deryl> sheldonh: lol. she had surgery on a busted shoulder tip. she ate my couch out of frustration from not being able to walk etc. she might have been hurt but that doesn't kill off the energy buildup. she took it out in chewing everything she laid eyes on
<deryl> sheldonh: yeah he does dig his own grave in a lot of things. just not all, like some like to insinuate
ozzloy [ozzloy!~ozzloy@unaffiliated/ozzloy] has joined #ruby-lang
<deryl> anyways, enjoyed the conversation ladies and gents. enjoy! i'm off
<sheldonh> laters :)
<shevy> the best thing about DHH is
<shevy> I don't even know who that is
<shevy> except that he wrote rails 20 years ago or somethin
<shevy> g
fragrant [fragrant!~fragrant@unaffiliated/fragrant] has joined #ruby-lang
<fragrant> Hi, is there any good active ruby forum to ask questions?
DEac- [DEac-!~deac@81.16.104.86] has joined #ruby-lang
<Tasser> fragrant, stackoverflow
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<fragrant> No stackoverflow.
<fragrant> forum
<Tasser> fragrant, stackoverflow is a forum
<Tasser> fragrant, it's got a bit of game mechanics on top of it, but that's it
<fragrant> I can't ask more than 6 question in stackoverflow.
<shevy> fragrant why do you dispute this. I answered you on #ruby !
<Tasser> fragrant, huh?
<Tasser> fragrant, why not?
<fragrant> Tasser: I don't know why can't i ask more than 6 questions in a day?
<injekt> why dont you ask on irc?
<injekt> there's no limit here
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby-lang
<fragrant> irc is not forum
<Tasser> fragrant, you want questions answered, so what's your problem?
<fragrant> You can't ask about code here and all text are not saved for the rest of your life
<Tasser> fragrant, read the topic
<injekt> fragrant: use a pastie, and yes they do
<injekt> and of course you can ask about code here
<fragrant> You can't save the answers
<injekt> yes
<injekt> yes you can
<Tasser> yes, cou can.
<fragrant> Where would those answers be saved?
<injekt> where do you want them saved?
<spinagon> I save them on HDD and in google docs
<injekt> ^ great answer
<Tasser> I ask them again ;-)
<fragrant> In a forum your answers will be saved forever, if you log-in you can get those as subscribed thread.
<samuelkadolph> fragrant: If you are posting more than 6 questions a day, you will probably piss of forum users more than IRC users.
<injekt> fragrant: the fact that you think forum answers will be saved forever is laughable
<injekt> save the answers yourself, that's the only way you know they'll be saved forever
<fragrant> injekt: I mean, you can get those answer in future
<injekt> you're already wasting time
<samuelkadolph> Nothing is stored forever if you want to be technical
<fragrant> You don't have to save answers manually somewhere
<injekt> fragrant: what happens if you're offline, or the site goes down?
<injekt> then you're stuck, forever
<shevy> I wonder how you guys have so much energy
<samuelkadolph> fragrant: Get an irc client that logs
<spinagon> 6 questions a day is a bit
<spinagon> over the top
<samuelkadolph> Not for IRC
<injekt> I disagree :)
<spinagon> sure
<spinagon> but for forum
niklasb [niklasb!~codeslay0@p5B310B63.dip0.t-ipconnect.de] has joined #ruby-lang
<spinagon> it's bordering on spam
<injekt> I think it's great fragrant wants to ask so many questions, but on a forum it's a bad idea
<samuelkadolph> Especially if the only justification is that they save the answers for you
<fragrant> It doesn't look like a good forum, http://www.ruby-forum.com/topic/3235552#new
<molgrew> what do you mean?
<fragrant> How active is that?http://www.ruby-forum.com/topic/3235552#new and not blocks/divs for ruby code
<injekt> fragrant: you could have instant answers in irc
<samuelkadolph> That question makes my brain hurt
<injekt> fragrant: 'how active is' EXACTLY
<injekt> and you want to use a forum
<injekt> you're never going to have 6+ questions a day answered on a forum
<shevy> fragrant THAT IS VERY ACTIVE
<injekt> on irc, you could have 50+ answered
<shevy> fragrant YOU CAN WATCH THE BYTES PASS BY IN REALTIME
<samuelkadolph> I find it funny that he's asking a question in IRC about where to ask lots more questions.
<injekt> :D
<shevy> and you guys discuss it!
<shevy> :(
<shevy> can't we just kill fragrant
<injekt> good luck with this, travel time, bbl!
<molgrew> everyone should check their legs, they might be becoming longer this moment
<shevy> fragrant do you use ruby
<fragrant> wtf
<fragrant> Is there any syntax highlighting like [code] .. [/code] blocks in http://www.ruby-forum.com/ for ruby code?
<fragrant> shevy: (10:34:50 PM) shevy: fragrant YOU CAN WATCH THE BYTES PASS BY IN REALTIME , how ?
<samuelkadolph> No, it's a wrapper for the mailing lists
<shevy> fragrant JUST RELOAD IT EVERY SECOND
<shevy> but what I am wondering is
<shevy> you need a forum to satisfy certain other needs?
<fragrant> samuelkadolph: Which mailing list?
* samuelkadolph facepalms.
<samuelkadolph> I don't see why you want to use a forum when you can't read from one
<fragrant> samuelkadolph: Which mailing list?
<samuelkadolph> fragrant: It says which mailing lists each forum maps to
<imperator> watch ALL the bytes!
sunredsky [sunredsky!sunredsky@adsl-76-206-24-126.dsl.covlil.sbcglobal.net] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
<fragrant> Are you all ruby developers? I mean ruby language maintainer? core developers
<RickHull> all 354 of us, no
<shevy> fragrant we are python developers
<shevy> all
<shevy> ALL.
<RickHull> we program python in perl
<shevy> yeah
<shevy> RickHull is kinda the leader of the pack here
<RickHull> i give good answers to bad questions and bad answers to good questions
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<shevy> hehe
<molgrew> the first question was clearly made more specific what followed
<molgrew> *with
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
<imperator> most of us are ruby devs i would imagine, probably some lurkers here though
<corsican> I am only a ruby dev by hobby :)
<fragrant> Then why is there another channel #ruby?
<imperator> historical reasons
<RickHull> that's for the trolls
<corsican> haha
<RickHull> most of us work *with* ruby, and not *on* ruby, AFAICT
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@173.247.193.198] has joined #ruby-lang
<fragrant> molgrew: I clicked Subscribe from http://www.ruby-lang.org/en/community/mailing-lists/
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0e111e.bb.sky.com] has joined #ruby-lang
<shevy> I thought you want a forum
<shevy> just use it as a forum
<fragrant> What's the problem with mailing list?
<fragrant> molgrew: I got a mail, but can't understand how to confirm it
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
<molgrew> why, what does it say?
<fragrant> molgrew: Should i reply this mail with a empty subject and body = confirm 23523543 fragrant fragrant=
<shevy> I dunno if there is a problem. I myself don't use mailing lists. I can't keep up with the amount of noise on mailing lists in general. A forum seems much easier going.
<burgestrand> fragrant: have you tried it?
<fragrant> Yes,
<fragrant> But now what to do? I didn't get any new mail now.
<burgestrand> Not sure if you get confirmation on the Ruby ML; I’d probably try signing up again.
<burgestrand> Just to make sure, you know.
<fragrant> Or should the body contain confirm 200102.. Joseph Smith
<burgestrand> I’ve unsubscribed and subscribed myself from that list about four times and I still don’t remember how. :p
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby-lang
<fragrant> What to do now?
<apeiros_> party! isn't that always what's to do…?
<fragrant> How would i know that i'm confirmed?
Fadi [Fadi!~Adium@173-160-79-62-atlanta.hfc.comcastbusiness.net] has joined #ruby-lang
<burgestrand> fragrant: you could send a mail to the mailing list introducing yourself and see if you get any answers back :)
<burgestrand> hehe
Pip [Pip!~Pip@unaffiliated/pip] has quit ["It's not your problem."]
<burgestrand> and if you don’t you can keep subscribing and introducing yourself until people go nuts
<fragrant> Now i got a mail, Subscribe with confirmation error (ruby-talk ML)
<fragrant> Hi, I am the fml mailing list manager for <ruby-talk@ruby-lang.org>.
<fragrant> I encounter a syntax error. The correct syntax is
<fragrant> confirm PASSWORD fragrant fragrant=
<fragrant> in the mail body.
<fragrant> The address to send it back is <ruby-talk-ctl@ruby-lang.org>.
<fragrant> sorry
andrewhl [andrewhl!~andrew@75.98.19.132] has joined #ruby-lang
thone_ [thone_!~thone@g229076163.adsl.alicedsl.de] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
<shevy> from forum to mailing list
<shevy> evolution can work backwards
<shevy> we humans once were divine beings of total light
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
<shevy> then we became humans
<fragrant> I'm getting this error, http://bpaste.net/show/21063/
<fragrant> What to do ?
<shevy> it is hopeless
<fragrant> What will be the body of the reply mail
<fragrant> I don't want to register from forum
<shevy> I think you should use IRC
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
<fragrant> This is the mail i got, http://bpaste.net/show/21064/ , can anyone tell how to confirm mailing list subscribe?
stand1357 [stand1357!~worker@l49-155-122.cn.ru] has joined #ruby-lang
stand1357 [stand1357!~worker@l49-155-122.cn.ru] has quit [#ruby-lang]
amerine [amerine!~mturner@208-100-137-147.bendbroadband.com] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
JohnBat26|2 [JohnBat26|2!~Eugene@95.84.189.147] has joined #ruby-lang
JohnBat26|3 [JohnBat26|3!~Eugene@89.175.77.90] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
turboladen [turboladen!~kvirc@12.104.148.2] has quit ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-93-150.ssp.dialog.net.pl] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
<shevy> lol
<shevy> google for "let it snow"
<shevy> my search results are snowing!
<fragrant> I registered with firstname fragrant fragrant but in ruby-forum i see the name is different, how can i set the name to 'fragrant' ?
knu [knu!chuck@v055125.ppp.asahi-net.or.jp] has joined #ruby-lang
joceloon [joceloon!~Adium@c-24-131-192-199.hsd1.pa.comcast.net] has joined #ruby-lang
gregmore_ [gregmore_!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
joceloon [joceloon!~Adium@c-24-131-192-199.hsd1.pa.comcast.net] has quit [#ruby-lang]
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
solars [solars!~solars@mk089144206081.a1.net] has joined #ruby-lang
hahuang65 [hahuang65!~hahuang65@204.11.231.186.static.etheric.net] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
fragrant [fragrant!~fragrant@unaffiliated/fragrant] has quit [#ruby-lang]
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
sepp2k [sepp2k!~sexy@g224147036.adsl.alicedsl.de] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
towski [towski!~towski@204-15-1-114-static.ipnetworksinc.net] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
heppy [heppy!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
sheldonh [sheldonh!sheldonh@dsl-185-83-109.dynamic.wa.co.za] has joined #ruby-lang
jmontross [jmontross!~Adium@68-233-216-82.static-ip.telepacific.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.235.159] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl18-43-183.dsl.telepac.pt] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
dominikh [dominikh!~dominikh@subtle/contributor/dominikh] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby-lang
Bwild [Bwild!~irc@netblock-75-79-22-130.dslextreme.com] has joined #ruby-lang
benanne [benanne!~rijdier@ip-83-134-136-112.dsl.scarlet.be] has joined #ruby-lang
Manhose_ [Manhose_!~Manhose@bl18-43-183.dsl.telepac.pt] has joined #ruby-lang
cschneid [cschneid!~cschneid@72.1.92.57] has joined #ruby-lang
<zumbi_> hello again! how do you run an isolated test from ruby testsuite?
<RickHull> using Test::Unit ?
<zumbi_> if I do, make test-all, one of the tests segfaults
<RickHull> ah, testing the ruby interpreter itself?
<zumbi_> I am trying to run just that one test, but I am not sure if it would be enough by defining TESTS variable
<zumbi_> RickHull: yes, on ruby interepreter testsuite
<sheldonh> zumbi_: try ruby ./path/to/file_test.rb
<zumbi_> TestFileUtils#test_cd = /home/zumbi/ruby1.9.1-1.9.3.0/test/fileutils/test_fileutils.rb:86: [BUG] Segmentation fault
<zumbi_> sheldonh: maybe ./miniruby ./path/to/file_test.rb ?
jaafar [jaafar!~jet@adsl-76-200-166-49.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
<sheldonh> zumbi_: what do you get from: which ruby
<zumbi_> sheldonh: /usr/bin/ruby
<sheldonh> zumbi_: so sounds like that ruby is porked. did it work out with miniruby?
<zumbi_> sheldonh: which is pointing to /usr/bin/ruby1.8
<zumbi_> $ ./miniruby test/fileutils/test_fileutils.rb
<zumbi_> test/fileutils/test_fileutils.rb:3:in `require': cannot load such file -- fileutils (LoadError) from test/fileutils/test_fileutils.rb:3:in `<main>'
sepp2k [sepp2k!~sexy@g224151073.adsl.alicedsl.de] has joined #ruby-lang
<sheldonh> zumbi_: so that's why ruby1.8 is a build-dep :)
<drbrain> zumbi_: uh… don't use miniruby?
<drbrain> sheldonh: no
<drbrain> ./miniruby -e 'p $LOAD_PATH' is why
<sheldonh> doh, sorry
<drbrain> zumbi_: make test-all TESTS=fileutils
<sheldonh> drbrain: although, that may be why the debian maintainers made it a build-dep :)
<zumbi_> drbrain: weird... 95 tests, 956 assertions, 0 failures, 0 errors, 0 skips
<drbrain> there's a different place where an old ruby gets used
<sheldonh> zumbi_: ha! looks like you just needed to wait for the right timezone :)
<drbrain> zumbi_: what compiler did you use?
<RickHull> guessing at the motivation of debian maintainers with respect to ruby packaging seems futile ;)
<zumbi_> gcc version 4.6.2
<drbrain> that's good
<drbrain> well, let me check...
<drbrain> zumbi_: linux?
<zumbi_> drbrain: yes, its linux, but arm hardfloat
<drbrain> ah!
<drbrain> in that case you may need to report a bug to bugs.ruby-lang.org
<zumbi_> drbrain: sure, but I would love to provide more useful information on the report
<drbrain> can you get a backtrace?
normd [normd!~ndevallie@secure.strongmailsystems.com] has joined #ruby-lang
<normd> pastie: hi!
<zumbi_> I guess.. thats why I was wondering how to run that one test that fails
<drbrain> it may be due to a GC problem
<drbrain> or corruption from a previous test
<zumbi_> if I do make test-all it fails
<RickHull> normd: there is no pastie bot in here. one bot that is usually in here is corundum
<RickHull> corundum: pastie?
<normd> thanks!
<drbrain> zumbi_: does that print out a message like this: https://bugs.ruby-lang.org/issues/5375
<drbrain> "Control frame information" and so on
<zumbi_> drbrain: if I run make test-all within gdb I get no bt, it tells me stack is empty
<zumbi_> drbrain: here is the build log failure http://sprunge.us/AaaF
<drbrain> zumbi_: you're building 1.9?
<zumbi_> drbrain: yes, 1.9.3
<drbrain> start by posting your architecture, and other build details then that
Kanolesic [Kanolesic!~Kanolesic@c-24-218-140-224.hsd1.ma.comcast.net] has joined #ruby-lang
stephenp [stephenp!~stephenp@gatepost.hos.net] has joined #ruby-lang
<zumbi_> drbrain: ok, thanks, I'll do
<stephenp> is it possible to peek an enumerator from within it's block?
<zumbi_> I am running make test-all out of the distro packaging
<samuelkadolph> stephenp: Peek at the next one? No
<drbrain> zumbi_: ruby can't figure out your backtrace either, the "C level backtrace information" is empty
<shevy> hmm does anyone remember... there was a "trick" I used ... to disable ansi colours when I do something like "ruby foobar.rb > new_file"
<stephenp> poop. while loop it is.
<shevy> I know I have some .rb file that does that... but I forgot where :(
<drbrain> stephenp: there's Enumerator#peek
<drbrain> stephenp: if you have an external enumerator
<drbrain> zumbi_: so maybe someone smarter than I can tell you what build options you need to get one
<sheldonh> stephenp: some iterators are amenable to cheating, like each_with_index :)
<drbrain> stephenp: you should be able to do an_enum.map.with_index do |val, index| … end
<drbrain> depending on what an_enum is
<stephenp> yeah. that's better than the while loop.
<zumbi_> drbrain: s,someone smarter,someone that knows, :)
<darix> shevy: ruby foobar.rb < /dev/null > new_file
<drbrain> stephenp: unfortunately you can't do: string = "abcde"; chars = string.chars; chars.each do |c| p c, chars.peek end
<darix> but that only works if the underlying lib/script checks if STDIN is a terminal
<drbrain> you have to use peek/next
<drbrain> zumbi_: sure :D
<shevy> darix hmm
<shevy> ohh
<shevy> now I remember
<shevy> I think it was indeed some check on $stdin
<shevy> oh no wait
<shevy> stty.* something perhaps
<shevy> or perhaps not
<shevy> :(
<darix> you could poke the git source code
<drbrain> $stdin.tty?
<darix> they have that colo auto mode
<shevy> hmm I think that may have been it ... that tty? thingy
<yorickpeterse> You mean tput?
<shevy> I think it was $stdin.tty, I have some example script here that uses it
<shevy> newbie question: are those two equivalent? http://pastie.org/3042141
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
<yorickpeterse> Yes
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<shevy> ok thanks, I rarely trust my brain these days
beiter [beiter!~beiter@manz-5f7494d9.pool.mediaWays.net] has joined #ruby-lang
SuperTaz_ [SuperTaz_!~supertaz@38.99.52.59] has joined #ruby-lang
Spaceghostc2c [Spaceghostc2c!~Spaceghos@unaffiliated/spaceghostc2c] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0ed417.bb.sky.com] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-168-154.dclient.hispeed.ch] has joined #ruby-lang
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
r0bby_ [r0bby_!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-168-204-21.dyn.iinet.net.au] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@62.87.224.87] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
r0bby_ [r0bby_!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
havenn [havenn!~skipper@pool-108-0-191-213.lsanca.fios.verizon.net] has joined #ruby-lang
curtism [curtism!~curtis@bas11-montreal02-1128531355.dsl.bell.ca] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0E134.dip0.t-ipconnect.de] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.149.99.182] has joined #ruby-lang
voker57 [voker57!~voker57@2.93.236.37] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
sunredsky [sunredsky!sunredsky@76.206.24.126] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.238.238] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-168-204-21.dyn.iinet.net.au] has joined #ruby-lang
normd [normd!~ndevallie@secure.strongmailsystems.com] has quit [#ruby-lang]
ivanoats [ivanoats!~ivanoats@pdpc/supporter/active/ivanoats] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-83-178.dyn.iinet.net.au] has joined #ruby-lang
sora_h [sora_h!~sora_h@tubusu.net] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-168-154.dclient.hispeed.ch] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
sunredsky [sunredsky!sunredsky@adsl-76-206-24-126.dsl.covlil.sbcglobal.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-37-117.telstraclear.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-42-152.telstraclear.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
sora_h [sora_h!~sora_h@tubusu.net] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-32-255.telstraclear.net] has joined #ruby-lang
solars [solars!~solars@mk089144206081.a1.net] has joined #ruby-lang
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
perryh [perryh!~perry@2602:304:ce63:4fd0:3097:5ff7:afbe:a057] has joined #ruby-lang
perryh [perryh!~perry@unaffiliated/perry753] has joined #ruby-lang
IoGA [IoGA!~ioga@91.191.181.77] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-71-199-243-97.hsd1.fl.comcast.net] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S010624ab81b72693.vn.shawcable.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-35-229.telstraclear.net] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
thepugautomatic [thepugautomatic!~thepugaut@li265-91.members.linode.com] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0599.bb.online.no] has joined #ruby-lang
sunredsky [sunredsky!sunredsky@adsl-76-206-24-126.dsl.covlil.sbcglobal.net] has joined #ruby-lang
<thepugautomatic> Maybe more regexp than Ruby as such, but: just noticed that e.g. "1 a b".scan(/[:alpha:]/) will work but only finds the first alpha. If you use \s, it finds all whitespace, not just the first. Any ideas why? Fuller example at https://gist.github.com/1499164
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<RickHull> thepugautomatic: that's how regex works
<RickHull> er, scan, hmm
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<RickHull> your regex is specifying: match a single character
<RickHull> i agree, your gist does seem odd
<RickHull> i forget how scan works, gotta run ;)
RickHull [RickHull!~rhull@209.119.14.25] has quit [#ruby-lang]
WillMarshall [WillMarshall!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
<thepugautomatic> :D Nice exit.
jalljo [jalljo!jalljo@im.a.noo-b.com] has joined #ruby-lang
StevenRingo [StevenRingo!~nevets@203.41.237.118] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-24-222.lns20.syd6.internode.on.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
mdel_ [mdel_!~mdel@pool-173-49-56-94.phlapa.fios.verizon.net] has joined #ruby-lang
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
livinded [livinded!~lolwut@s042n246.csun.edu] has joined #ruby-lang
<looopy_> in regards to iterating through hashes and displaying/processing the values is there anything wrong with colors.values.each do |x| puts x end ?
<looopy_> that seems to work fine though the book i'm reading shows colors.keys.each do |x| puts colors[x] end
<looopy_> both work fine...i'm just wondering if there's some sort of 'gotcha' or issue that may come up when using the hash.values
<postmodern> lazyirc, is there a ruby library that can wrap a nested Hashes/Arrays in a ActiveRecord like object?
<lianj> or colors.each{|key,value| p value }
<postmodern> so one could query/sort the nested data
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<drbrain> lianj: colors.each { |k,v| p v } == colors.each_value { |v| p v }
<lianj> or that :)
<drbrain> each_value is roughly each do |_, v| yield v end
* drbrain hand waves past Enumerator
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
jaffachief [jaffachief!~textual@host86-170-15-228.range86-170.btcentralplus.com] has joined #ruby-lang
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby-lang
ivanoats [ivanoats!~ivanoats@pdpc/supporter/active/ivanoats] has joined #ruby-lang
sustainableweb [sustainableweb!~ivanoats@c-76-121-99-31.hsd1.wa.comcast.net] has joined #ruby-lang
woollyams [woollyams!~woollyams@203-206-165-21.perm.iinet.net.au] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
<drbrain> postmodern: like Enumerable?
<postmodern> drbrain, no, like query paths
<andrewvos> mongo?
<postmodern> a ruby library :)
<andrewvos> mongo_mapper?
<postmodern> not a database
<andrewvos> methods?
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<andrewvos> postmodern: Not really sure what you want
woollyams [woollyams!~woollyams@203-206-165-21.perm.iinet.net.au] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-168-154.dclient.hispeed.ch] has joined #ruby-lang
<andrewvos> postmodern: Like this abomination? https://gist.github.com/1499406
<postmodern> andrewvos, not exactly, that just selects individual objects
Aaaarg [Aaaarg!~Arthur@121-74-43-115.telstraclear.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
spuk [spuk!~spuk@187.65.178.172] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
<looopy_> lianj: and drbrain gotcha,
srbaker_ [srbaker_!~srbaker@70.28.245.60] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
wyhaines_ [wyhaines_!~wyhaines@65.39.118.15] has joined #ruby-lang
woollyams [woollyams!~woollyams@203-206-165-21.perm.iinet.net.au] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
woollyams [woollyams!~woollyams@203-206-165-21.perm.iinet.net.au] has joined #ruby-lang