apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
kirun has quit [Quit: Client exiting]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
ap4y has quit [Remote host closed the connection]
AwayLex is now known as Quadlex
hemanth_ has joined #ruby
_br_ has quit [Excess Flood]
mercwithamouth has quit [Ping timeout: 265 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
Proshot has quit [Quit: Leaving]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_br_ has joined #ruby
emsilva has joined #ruby
good_afternoon has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
workmad3 has quit [Quit: Lost terminal]
_br_ has quit [Excess Flood]
baphled has quit [Ping timeout: 265 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
landho has quit [Read error: Connection reset by peer]
_br_ has joined #ruby
hemanth_ has joined #ruby
jfl0wers has quit [Ping timeout: 260 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
landho has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Noldorin has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
michaelmartinez has joined #ruby
stevechiagozie has quit [Ping timeout: 255 seconds]
Edward__ has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Write error: Connection reset by peer]
hemanth_ has joined #ruby
_alejandro has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
applebloom has quit [Ping timeout: 255 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
Edward_ has quit [Ping timeout: 260 seconds]
bradleyprice has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
stevechiagozie has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
<aedorn> Food delivery: a coder's best resource.
hemanth_ has quit [Read error: Connection reset by peer]
<waxjar> cook your own stuff, it's so much fun :D
stkowski has quit [Quit: stkowski]
hemanth_ has joined #ruby
autumn has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
autumn has joined #ruby
agarie has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
wargasm has quit [Ping timeout: 244 seconds]
hemanth_ has joined #ruby
<swarley> is there a way to hide the default from showing in highline?
pwelch has joined #ruby
<hybris> oh god, I just realized this rails walkthrough is 15 hours long
* hybris makes some coffee
hemanth_ has quit [Read error: Connection reset by peer]
danneu has joined #ruby
<shevy> hybris lol
<shevy> shows you how huge rails has become
<hybris> it seems to be a course at some college
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<aedorn> waxjar: I do cook.. but all the grocery stores are packed right now so I don't want to shop in that madness =p
<waxjar> fair enough :p
hemanth_ has joined #ruby
weasels has joined #ruby
bradleyprice has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<Quadlex> Why are the stores packed?
DatumDrop has joined #ruby
* Quadlex loves cooking but doesn't do it in december. Fuck Christmas retail
GoGoGarrett has joined #ruby
hemanth_ has joined #ruby
<aedorn> Quadlex: people buying up for parties tomorrow and new years day
<Quadlex> Ah, of course, "Everyone gets the year wrong for the next month" day
<hybris> haha so true.
mmitchell has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
agarie has joined #ruby
freakazoid0223 has joined #ruby
BoomCow has joined #ruby
weasels has left #ruby ["Leaving"]
Jasko has quit [Read error: Connection reset by peer]
DatumDrop has quit [Ping timeout: 260 seconds]
weasels has joined #ruby
Jasko has joined #ruby
weasels has quit [Remote host closed the connection]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
ikaros has quit [Quit: Ex-Chat]
ap4y has joined #ruby
hemanth_ has joined #ruby
wargasm has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
mmitchell has quit [Ping timeout: 260 seconds]
hemanth_ has joined #ruby
s1n4 has joined #ruby
atyz has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
hemanth_ has joined #ruby
pwelch has quit [Quit: pwelch]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
atyz has quit [Ping timeout: 260 seconds]
baphled has joined #ruby
_hemanth_ has joined #ruby
ap4y has quit [Ping timeout: 252 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
<shevy> hmm do you guys think making a high quality gem is simple enough?
_hemanth_ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Read error: Connection reset by peer]
_hemanth_ has joined #ruby
banisterfiend has joined #ruby
aef has quit [Ping timeout: 244 seconds]
lolcathost has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
_hemanth_ has joined #ruby
otters has quit [Remote host closed the connection]
_hemanth_ has quit [Read error: Connection reset by peer]
otters has joined #ruby
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
jessta has quit [Ping timeout: 264 seconds]
_hemanth_ has joined #ruby
<aedorn> shevy: guess that depends on what you mean by high quality
_hemanth_ has quit [Read error: Connection reset by peer]
ltsstar has joined #ruby
hemanth_ has joined #ruby
otherj has joined #ruby
<shevy> hmm
elvikingo has quit [Quit: elvikingo]
<Innocentus> good night
Innocentus has left #ruby [#ruby]
GoGoGarrett has quit [Remote host closed the connection]
chriskk has joined #ruby
<Quadlex> Run those tests, faster, FASTER!
* Quadlex whips
marr has quit [Ping timeout: 260 seconds]
<shevy> aedorn I just ported a class from one of my larger projects, into a standalone project
<shevy> was a lot of work... then, writing the .gemspec was boring...
<shevy> I dont wanna do that :(
hemanth_ has quit [Read error: Connection reset by peer]
<havenn> shevy: Did you build a gem scaffold with bundle gem, and just edit the .gemspec or go from scratch?
hemanth_ has joined #ruby
<waxjar> shevy hates bundler, i believe :p
fms has joined #ruby
<havenn> <3 bundler
hemanth_ has quit [Read error: Connection reset by peer]
jduan1981 has quit [Quit: jduan1981]
<shevy> waxjar bundler seems even more work than a .gemspec
<shevy> havenn, well, I use my own scripts to generate a .gemspec scaffold, but I still have to manually fill in stuff :(
hemanth_ has joined #ruby
jrajav has joined #ruby
<shevy> I think I am going to leave out description field etc..
seanstickle has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<shevy> I would like to have the simplest conversion possible: one .rb file doing something useful -> turn it into a small gem
snorkdude has quit [Quit: snorkdude]
nwertman has joined #ruby
elvikingo has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
pskosinski has quit [Quit: Learn Life's Little Lessons]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
otherj has quit [Read error: Connection reset by peer]
otherj has joined #ruby
jrajav has quit [Client Quit]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<aedorn> like.. gemify <file> ? Of course, I think gemify was an abandoned project
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<waxjar> i didn't know about `bundle gem`, but that seems a bit like what you're looking for shevy
<shevy> aedorn aha? now that sounds like a nifty idea
hemanth_ has joined #ruby
baphled has quit [Ping timeout: 276 seconds]
Jasko has quit [Read error: Connection reset by peer]
<shevy> doesn't bundler require even another new file in addition to a .gemspec ?
<shevy> I'll look at gemify
hemanth_ has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<waxjar> yes, but if you have a gem spec you can put your dependencies there apparently :)
hemanth_ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
jrajav has joined #ruby
banisterfiend has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
_alejandro has quit [Remote host closed the connection]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
hemanth_ has joined #ruby
<havenn> Between bundler's `bundle gem` and gem-release's `gem bump --tag --release`, I find the process relatively pleasant. :)
hemanth_ has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 265 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
jrajav has quit [Ping timeout: 265 seconds]
<waxjar> thx havenn, that looks great
Asher has joined #ruby
hemanth_ has joined #ruby
benlieb has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
lolcathost has quit [Quit: lag]
horofox has joined #ruby
hemanth_ has joined #ruby
<pmros> 2012 top gems
<pmros> 3 top gems of 2012
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
BoomCow has quit [Quit: This computer has gone to sleep]
<havenn> pmros: pry, celluloid/io, and minitest/pride
hemanth_ has joined #ruby
<pmros> thanks, havenn
hemanth_ has quit [Read error: Connection reset by peer]
<havenn> My fav rack web servers for 2012: Unicorn, Puma, Rainbows::XEPollThreadPool
hemanth_ has joined #ruby
sorbo_ has joined #ruby
<pmros> rltk, espresso and mine(troshka) :)
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
ap4y has joined #ruby
anders__ has joined #ruby
<havenn> Fav three Ruby VMs for 2012: Ruby-2.0.0-preview, Jruby-1.7.1, Maglev-1.1.0-dev
hemanth_ has quit [Read error: Connection reset by peer]
<havenn> Fav three Ruby version managers: chruby, rbfu, rvm2
<pmros> I really love this top's
hemanth_ has joined #ruby
<pmros> *these
hemanth_ has quit [Read error: Connection reset by peer]
<anders__> The framework hides so much low-level processes from the developer that it actually kills the K.I.S.S. mindset entirely."
<anders__> anybody agrees on that?
hemanth_ has joined #ruby
<anders__> I want to learn rails but..
<anders__> and ruby
slainer68 has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
benlieb has quit [Read error: Connection reset by peer]
<havenn> Fav three concurrency libraries: xpool, ichannel, ifuture, celluloid, dcell, and agent
benlieb has joined #ruby
<havenn> Fav 6** :P
<pmros> anders_, you could try sinatra, padrino and espresso too
<aedorn> don't forget cuba
<havenn> anders__: I'd advise learning Ruby and then starting with Sinatra for web.
<pmros> good advice
<anders__> havenn, yeah i already started with ruby, made a cardgame
<anders__> but I know almost 0 about rails
hemanth_ has joined #ruby
<anders__> so I start with sinatra instead
<aedorn> also, that article is about as objective as a politician
<agarie> "But I think now would be a good time to inject that I am referring to true back-end, server-side languages used wholly for the development of full-blown application and business logic."
<agarie> Hmmm.
<agarie> Also, sinatra is great - you'll be able to write simple web things and learn a lot of ruby by reading the source code
<anders__> agarie, yeah you need to sort out the relevant stuff somehow
<anders__> agerie, but if you see the list it's quite objective
cableray has quit [Quit: cableray]
<anders__> *a little
shevy has quit [Read error: Operation timed out]
locriani has joined #ruby
<seanstickle> So is CodeIgniter any good?
hemanth_ has quit [Read error: Connection reset by peer]
<havenn> Just an aside, but almost-sinatra and almost-rack are pretty awesome... rack in 3 lines and sinatra in 6: https://github.com/rkh/almost-sinatra
<pmros> rails tell you: "that is the way, you must follow me"
BoomCow has joined #ruby
hemanth_ has joined #ruby
<agarie> anders__: I agree, but... I think this blog post is everything I'd say to this guy: http://david.heinemeierhansson.com/2012/rails-is-omakase.html
<waxjar> that's impressive
<anders__> agerie, I think he should add some disadvantages with codeignitor
hemanth_ has quit [Read error: Connection reset by peer]
<seanstickle> What are some of the disadvantages?
<agarie> "The original creator of Rails works for 37 Signals and that fact right there is why he invented Rails. He works for an agency and agencies typically are all about meat-puppet, high-volume development."
hemanth_ has joined #ruby
adeponte has quit [Remote host closed the connection]
<agarie> well, I don't know much about 37signals but from what I've read on their blog and on the "REWORK
<agarie> book, this isn't the case
hemanth_ has quit [Read error: Connection reset by peer]
<pmros> I love _why
punkrawkR has quit [Read error: Connection reset by peer]
<seanstickle> They stopped being an agency a long time ago now.
<agarie> anyway, I don't know much about CodeIgniter to really make a point here. Do you have more information?
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
<anders__> agarie, I've heard it's not so object oriented as cake
<anders__> and cake is rail more or less
<anders__> *rails
Jasko has quit [Read error: Connection reset by peer]
<aedorn> It's just a rant almost all the way through.. so in the end it just says "this is best because I say so" Oh well.
sailias has quit [Ping timeout: 255 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
bradleyprice has quit [Remote host closed the connection]
hemanth_ has joined #ruby
<anders__> aedorn, not completly a rant, look at the list for rails..
crackfu has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
s1n4 has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
<aedorn> anders__: There is not one thing in that list that is objective. It's entirely subjective.
Xeago has joined #ruby
atyz has joined #ruby
<aedorn> In fact, he even states it as subjective before you even get to the list "Here's a few of my hottest reasons for why I view Rails as a poor choice of frameworks"
Xeago has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
Xeago has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
samphippen has quit [Quit: Computer has gone to sleep.]
<anders__> aedorn, "A production Rails application is such a resource hog that no matter how much memory you open up on your server, Rails quickly absorbs it very greedily. In fact, one of our client's sites has to be restarted every couple of weeks just because of this fact alone." <-is that not relevant
hemanth_ has joined #ruby
<aedorn> anders__: No. It's a logical fallacy.
<anders__> so is there any benchmarks?
<pmros> see you, guys!
pmros has quit [Quit: Konversation terminated!]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
andrewhl has quit [Remote host closed the connection]
elvikingo has left #ruby [#ruby]
hemanth_ has quit [Read error: Connection reset by peer]
atyz has quit [Ping timeout: 264 seconds]
<anders__> and by the way, his view is subjective, but there's an object-list
hybris has quit [Remote host closed the connection]
hemanth_ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
emocakes has quit [Quit: emocakes]
hemanth_ has quit [Read error: Connection reset by peer]
shevy has joined #ruby
hemanth_ has joined #ruby
alexspeller has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 260 seconds]
locriani has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
snorkdude has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
locriani has joined #ruby
philips_ has quit [Excess Flood]
reuf has quit [Quit: Leaving]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
philips_ has joined #ruby
hemanth_ has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
Shadow_S has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
daniel_hinojosa has quit [Ping timeout: 276 seconds]
elico has quit [Quit: elico]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
<snorkdude> I'm writing my first Ruby gem, but for some reason none of the classes I've written are recognized when I try to play with them in the Ruby console. The module itself is recognized, but not the classes within it.
<snorkdude> I'll post a gist in a sec
<havenn> snorkdude: Can you link to the gem's repo or post a Gist?
<havenn> snorkdude: Gist ftw. :)
hemanth_ has quit [Read error: Connection reset by peer]
<agarie> yeah, show us the gist :)
hemanth_ has joined #ruby
crackfu has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
Noldorin has quit []
<Quadlex> Without the gist, I'm guessing that the module's code isn't requiring any of the classes
hemanth_ has joined #ruby
<Quadlex> So you're only loading the module class itself into your path
hemanth_ has quit [Read error: Connection reset by peer]
<agarie> yeah, thats my guess too
hemanth_ has joined #ruby
mercwithamouth has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
<snorkdude> Disclaimer - I'm fairly new to programming :)
<agarie> the classes Taste::Test and Taste::Base are working fine?
<snorkdude> Nope
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude> Nothing works
<agarie> hmmm strange
Noldorin has joined #ruby
<Quadlex> snorkdude: How are you trying to use them>
<agarie> What're you trying to do?
hemanth_ has joined #ruby
<snorkdude> Taste.constants.select {|c| Class === Taste.const_get(c)} returns []
<snorkdude> I'm just running Taste::OAuth
<snorkdude> Inside IRB to see if it even recognizes it
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude> But I get a NameError
Nisstyre-laptop has quit [Quit: Leaving]
gnul0ver has quit [Read error: Connection reset by peer]
<snorkdude> The code inside Taste::Test is so simple, but it doesn't recognize that either so it can't be anything inside the class that's causing the error.
<Quadlex> So, Taste::Test.new fails
hemanth_ has joined #ruby
<snorkdude> Yep
ltsstar has quit [Quit: ltsstar]
<snorkdude> Quadlex: NameError: uninitialized constant Taste::Test
elaptics is now known as elaptics`away
anders__ has quit [Quit: Lämnar]
<Quadlex> It's herpies.
<snorkdude> great
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude> so in theory this should work?
freeayu has joined #ruby
hemanth_ has joined #ruby
<snorkdude> my code looks ok?
<Quadlex> I think so..
hemanth_ has quit [Read error: Connection reset by peer]
<Quadlex> just doing a test myself
hemanth_ has joined #ruby
<snorkdude> Appreciate it
hemanth_ has quit [Read error: Connection reset by peer]
Rym has joined #ruby
lenovodroid has quit [Ping timeout: 276 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
morf has quit [Quit: eof]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<Quadlex> Hmm
<snorkdude> ?
<Quadlex> I made a basic shell the same as yous and it worked
<snorkdude> What steps did you take?
<snorkdude> Could it be something with the rest of my Dir? I doubt it though
<Quadlex> Basically just the classes and module
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude> Well this sucks
<Quadlex> Try clearing out the content
<snorkdude> So you just did 'irb' then 'require 'taste'' then 'Taste::Test.new'?
<Quadlex> and just have the modules and class definitiuons
<snorkdude> How do I do that?
<Quadlex> I actually declared it inside irb
<snorkdude> Oh you mean remove the other files
<Quadlex> Remove the class bodies
<snorkdude> So just the methodz?
_hemanth_ has joined #ruby
<Quadlex> I'd say it's best to figure out at which point you're having the issue
moos3 has joined #ruby
<Quadlex> So start with a module which simple declares one class
<Quadlex> And then load it with irb
<Quadlex> And see if you get satisfaction
_hemanth_ has quit [Read error: Connection reset by peer]
Noldorin has left #ruby [#ruby]
_hemanth_ has joined #ruby
G has quit [Ping timeout: 264 seconds]
_hemanth_ has quit [Read error: Connection reset by peer]
mjolk has quit [Quit: returning some videotapes]
G has joined #ruby
<snorkdude> Ok, I'll try it out a little later and see. It works for you, so I should be able to figure it out. Thanks!
snorkdude has quit [Quit: snorkdude]
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
adkron has joined #ruby
sepp2k has quit [Remote host closed the connection]
fms has quit [Ping timeout: 260 seconds]
matip_ has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
emmanuelux has quit [Ping timeout: 248 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
Virunga has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
hemanth_ has joined #ruby
Michael has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
matip has quit [Ping timeout: 252 seconds]
Michael is now known as Guest85144
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 265 seconds]
slainer68 has joined #ruby
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
michaelmartinez has joined #ruby
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
jduan1981 has joined #ruby
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
slainer68 has quit [Read error: Operation timed out]
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
Guest85144 has quit [Remote host closed the connection]
good_afternoon has quit [Ping timeout: 276 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
cirwin has quit [Quit: sleep....ping!]
adkron has quit [Ping timeout: 255 seconds]
jfl0wers_ has joined #ruby
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
k3VB6u4d has joined #ruby
hemanth_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
jfl0wers_ has quit [Ping timeout: 244 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
yacks has joined #ruby
sorbo_ has quit [Quit: sorbo_]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
atyz has joined #ruby
megharsh has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
adkron has joined #ruby
aef has joined #ruby
_hemanth_ has joined #ruby
atyz has quit [Ping timeout: 265 seconds]
_hemanth_ has quit [Read error: Connection reset by peer]
Kuifje has quit [Ping timeout: 265 seconds]
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
fms has joined #ruby
_hemanth_ has joined #ruby
crackfu has joined #ruby
crackfu has quit [Remote host closed the connection]
_hemanth_ has quit [Read error: Connection reset by peer]
_hemanth_ has joined #ruby
jbw has quit [Ping timeout: 260 seconds]
_hemanth_ has quit [Read error: Connection reset by peer]
Michael has joined #ruby
kil0byte has quit [Remote host closed the connection]
_hemanth_ has joined #ruby
Michael is now known as Guest13503
_hemanth_ has quit [Read error: Connection reset by peer]
nkts has joined #ruby
<nkts> Hi
<nkts> what would be the best way to update system gem on mac ?
<nkts> look's like it's a bit outdated
<nkts> and I don't want to make a mess
kil0byte has joined #ruby
Iuz has quit [Remote host closed the connection]
hemanth_ has joined #ruby
otherj has quit [Quit: otherj]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
otherj has joined #ruby
fms has quit [Ping timeout: 244 seconds]
s1n4 has quit [Quit: peace fuckin out]
moos3 has quit [Quit: Computer has gone to sleep.]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
erhart has joined #ruby
hemanth_ has joined #ruby
alexspeller has joined #ruby
Guest13503 has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
miskander has joined #ruby
erhart has left #ruby [#ruby]
benlieb has quit [Quit: benlieb]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
jbw has joined #ruby
hemanth_ has joined #ruby
serhart has joined #ruby
generalissimo has joined #ruby
_alejandro has joined #ruby
<davidcelis> by using rbenv or rvm to install new rubies and leave the system one alone
emsilva has quit [Quit: Computer has gone to sleep.]
hemanth_ has quit [Read error: Connection reset by peer]
qubit has quit [Ping timeout: 264 seconds]
qubit_ has joined #ruby
jekotia has joined #ruby
jekotia has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
alexspeller has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
chriskk has quit [Quit: chriskk]
wallerdev has left #ruby [#ruby]
hemanth_ has joined #ruby
wallerdev has joined #ruby
The_8472 has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
The_8473 has quit [Ping timeout: 265 seconds]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
egman has quit [Quit: HydraIRC -> http://www.hydrairc.com <- IRC with a difference]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Russell^^ has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Shadow_S has quit [Quit: Computer has gone to sleep.]
generalissimo has quit [Ping timeout: 255 seconds]
nazty has quit [Read error: Connection reset by peer]
elico has joined #ruby
hemanth_ has joined #ruby
otters has quit [Ping timeout: 265 seconds]
andrewhl has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<havenn> nkts: My favorite for OS X is brew install of chruby: https://github.com/postmodern/chruby
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
hemanth_ has joined #ruby
generalissimo has joined #ruby
<nkts> havenn, ok thanks, will have in mind
hemanth_ has quit [Read error: Connection reset by peer]
otters has joined #ruby
lateau has quit [Remote host closed the connection]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
nazty has joined #ruby
Jasko has joined #ruby
hemanth_ has joined #ruby
<havenn> nkts: rvm and chruby are both great options for OS X :)
Russell^^ has quit [Quit: Russell^^]
lateau` has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
ap4y has quit [Remote host closed the connection]
Xeago has joined #ruby
horofox has quit [Quit: horofox]
Xeago has quit [Ping timeout: 244 seconds]
lateau` has quit [Remote host closed the connection]
lateau has joined #ruby
mmitchell has joined #ruby
horofox has joined #ruby
lawliet has joined #ruby
fms has joined #ruby
fms has quit [Client Quit]
ewag has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
horofox has quit [Client Quit]
jgrevich_ has joined #ruby
nkts has quit []
lenovodroid has joined #ruby
atyz has joined #ruby
Tarential has quit [Ping timeout: 260 seconds]
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
Tarential has joined #ruby
swarley is now known as swarley-freenode
atyz has quit [Ping timeout: 255 seconds]
swarley-freenode is now known as swarles
otherj has quit [Quit: otherj]
adeponte has joined #ruby
lenovodroid has quit [Remote host closed the connection]
serhart has quit [*.net *.split]
jduan1981 has quit [*.net *.split]
EPIK has quit [*.net *.split]
d-snp has quit [*.net *.split]
BoomCow has quit [*.net *.split]
lkba has quit [*.net *.split]
solidresolve has quit [*.net *.split]
malcolmva has quit [*.net *.split]
msch has quit [*.net *.split]
soulcake has quit [*.net *.split]
pasties has quit [*.net *.split]
lazyguru has quit [*.net *.split]
r126l has quit [*.net *.split]
regedarek has quit [*.net *.split]
Guest17706 has quit [*.net *.split]
daed has quit [*.net *.split]
Guest61922 has quit [*.net *.split]
benwoody has quit [*.net *.split]
etank has quit [*.net *.split]
QKO has quit [*.net *.split]
lusory has quit [*.net *.split]
ketan has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
foohey has quit [*.net *.split]
ccooke has quit [*.net *.split]
dpn` has quit [*.net *.split]
m_3 has quit [*.net *.split]
passbe has quit [*.net *.split]
pignata has quit [*.net *.split]
nopper` has quit [*.net *.split]
spacebug1 has quit [*.net *.split]
Seventoes has quit [*.net *.split]
faen has quit [*.net *.split]
AllStruck has quit [*.net *.split]
speakingcode-wor has quit [*.net *.split]
jtcoon has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
Martz has quit [*.net *.split]
cmyers has quit [*.net *.split]
hderms has quit [*.net *.split]
koffiekop has quit [*.net *.split]
dagobah_ has quit [*.net *.split]
Caius has quit [*.net *.split]
kuranai_off has quit [*.net *.split]
lenovodroid has joined #ruby
daed_ has joined #ruby
cmyers has joined #ruby
koffiekop has joined #ruby
regedarek has joined #ruby
ccooke has joined #ruby
kuranai_off has joined #ruby
ixx has joined #ruby
d-snp has joined #ruby
Skelz0r has joined #ruby
r126l has joined #ruby
pignata has joined #ruby
spacebug has joined #ruby
verto|off has joined #ruby
speakingcode-wor has joined #ruby
QKO has joined #ruby
Seventoes has joined #ruby
foohey has joined #ruby
pasties has joined #ruby
KarlHungus has joined #ruby
m_3 has joined #ruby
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
jtcoon has joined #ruby
malcolmva has joined #ruby
lazyguru has joined #ruby
EPIK has joined #ruby
nopper has joined #ruby
lenovodroid has quit [Remote host closed the connection]
lkba has joined #ruby
BoomCow has joined #ruby
Martz has joined #ruby
benwoody_ has joined #ruby
solidresolve has joined #ruby
AllStruck has joined #ruby
ixx is now known as Guest68672
Michael has joined #ruby
passbe has joined #ruby
verto|off is now known as verto
faen has joined #ruby
Michael is now known as Guest94479
etank has joined #ruby
verto is now known as Guest99924
miskander has quit [Quit: miskander]
dpn` has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
dagobah has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
hderms has joined #ruby
pothibo has quit [Quit: pothibo]
mercwithamouth has quit [Read error: Operation timed out]
tsou has quit [Remote host closed the connection]
tpelletier has joined #ruby
_alejandro has quit [Remote host closed the connection]
Takehiro has joined #ruby
mercwithamouth has joined #ruby
nari_ has joined #ruby
serhart has joined #ruby
Takehiro has quit [Ping timeout: 265 seconds]
crackfu has joined #ruby
agarie has quit [Remote host closed the connection]
lepht_afk is now known as lepht
adeponte has quit [Remote host closed the connection]
fir_ed has joined #ruby
lawliet has quit [Quit: lawliet]
Guest94479 has quit [Remote host closed the connection]
adeponte has joined #ruby
bbttxu_ has joined #ruby
_alejandro has joined #ruby
bbttxu has quit [Ping timeout: 260 seconds]
bbttxu_ is now known as bbttxu
Goles has quit [Quit: Out.]
_alejandro has quit [Remote host closed the connection]
lepht is now known as lepht_afk
fir_ed has quit [Quit: Leaving]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
generalissimo has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 244 seconds]
lenovodroid has joined #ruby
jerius has joined #ruby
eddie_ has joined #ruby
tpelletier has quit [Ping timeout: 264 seconds]
<eddie_> Is Ruby being widely used in IT firms @ NewZeland ?
<eddie_> anyone?
BoomCow has quit [Quit: This computer has gone to sleep]
Umren has joined #ruby
atyz has joined #ruby
<pdtpatrick> eddie_: that's a tough question. You're better off researching the firms and see what languages are typically required as part of their employment process
adeponte has quit [Remote host closed the connection]
sayan has joined #ruby
atyz has quit [Ping timeout: 265 seconds]
adeponte has joined #ruby
jessta has joined #ruby
KOunit has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
jonahR has joined #ruby
bradleyprice has joined #ruby
Rym has quit [Quit: Rym]
Takehiro has joined #ruby
andrewhl has quit [Ping timeout: 252 seconds]
Driscoll has joined #ruby
<Driscoll> i want to read a file based on a string, but i don't want to allow that file to be outside a safe directory on my server
<Driscoll> is there a foolproof way to enforce that?
<Driscoll> i can escape '..' but is that enough
<heftig> File.absolute_path
mmitchell has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 255 seconds]
KOunit has left #ruby [#ruby]
<Driscoll> example?
<Driscoll> i'm not understanding how that sandboxes a path
<heftig> it will make it absolute. then you can test if it's still within the safe directory
<heftig> (with a simple prefix test)
snorkdude has joined #ruby
<Driscoll> as in with string comparison
<Driscoll> or a builtin method
<heftig> sigh
<heftig> do i have to chew this for you?
<snorkdude> quadlex: you there?
uris has quit [Quit: Leaving]
<Driscoll> well its a really simple problem, i am not dumb and i can roll my own solution easily
<Driscoll> i came here to ask and see if there was a rock solid way to do it
joofsh has joined #ruby
<Driscoll> without reinventing the wheel for a snippet of code that potentially opens up the server to huge security problems
jerius has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
<heftig> Driscoll: will there be symlinks within the safe directory?
<Driscoll> shouldn't ever be
<heftig> safe_dir = "/safe/dir/"; path = File.absolute_path("foo/../bar", safe_dir); then test if path.start_with?(safe_dir)
<heftig> safe_dir should be absolute already
<heftig> and ending with a slash
<Driscoll> cool man, ill try it out
pngl has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 276 seconds]
madmax has joined #ruby
madmax has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
mercwithamouth has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
<yfeldblum> Driscoll, you could chroot in a subprocess :D
Jasko has quit [Read error: Connection reset by peer]
<Driscoll> heh
bhavesh_a_p has joined #ruby
lenovodroid has quit [Ping timeout: 245 seconds]
Jasko has joined #ruby
seanstickle has quit [Quit: seanstickle]
atyz has joined #ruby
<yfeldblum> Driscoll, you could raise if the fn matches /(\A|\\)\.\.?(\z|\\)/
adeponte has quit [Remote host closed the connection]
<yfeldblum> Driscoll, you could raise if the fn matches /(\A|\/)\.\.?(\z|\/)/
Finfrock has joined #ruby
elico has quit [Remote host closed the connection]
hotovson has joined #ruby
Finfrock has left #ruby [#ruby]
dmyers has joined #ruby
hotovson has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
daniel_hinojosa has joined #ruby
toekutr has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
cableray has joined #ruby
Edward__ has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: Leaving.]
atyz has quit [Quit: Leaving...]
lenovodroid has joined #ruby
Gooder has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
snorkdude has quit [Quit: snorkdude]
Jasko has joined #ruby
stevechiagozie has quit [Quit: leaving]
Nisstyre-laptop has joined #ruby
Asher has quit [Quit: Leaving.]
snorkdude has joined #ruby
generalissimo has joined #ruby
snorkdude has quit [Client Quit]
GoGoGarrett has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
lenovodroid has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
ruzu has joined #ruby
<ruzu> yay. thank zeus for ncurses.
Quadlex is now known as PerAnnumLex
pyro111 has joined #ruby
Shadow_S has joined #ruby
<pyro111> hi, do anybody use ActiveModel in ruby not rails?
<whitequark> pyro111: what's your question?
ruzu has quit [Quit: leaving]
mmitchell has joined #ruby
adeponte has joined #ruby
<pyro111> thanks for active_attr link!
<pyro111> the question was I cant see ActiveModel::Model : require 'active_model';ActiveModel.constants.grep /Model/
<pyro111> (in irb)
megharsh has quit [Ping timeout: 255 seconds]
Driscoll has quit [Ping timeout: 255 seconds]
elico has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
adeponte has quit [Ping timeout: 264 seconds]
<pyro111> ok active_attr fits my needs
kiyoura` has quit [Quit: Leaving]
_adeponte has joined #ruby
crackfu has quit [Remote host closed the connection]
Fox_candy has joined #ruby
_adeponte has quit [Remote host closed the connection]
megharsh has joined #ruby
nari_ has quit [Ping timeout: 255 seconds]
gbchaosmaster has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
elico has quit [Quit: elico]
keller-ship has joined #ruby
SiegeX has quit [Quit: Insert generic quit message here]
atyz has joined #ruby
SiegeX has joined #ruby
kn330 has joined #ruby
generalissimo has quit [Remote host closed the connection]
Asher2 has joined #ruby
atyz has quit [Ping timeout: 255 seconds]
SiegeX has quit [Client Quit]
SiegeX has joined #ruby
nari_ has joined #ruby
mrdtt has joined #ruby
Asher2 has quit [Quit: Leaving.]
adeponte has joined #ruby
eddie_ has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
postmodern has joined #ruby
Xeago has joined #ruby
adeponte has quit [Ping timeout: 255 seconds]
<keller-ship> Suppose I have a class Board and @state is an array of arrays. For instance, @state = [[3, 2, 1], [], []]. Why the heck after @state[2] << @state[0].pop do I get [[3, 2], [1], [1]]?
Xeago has quit [Ping timeout: 260 seconds]
<pyro111> mutability?
lenovodroid has quit [Ping timeout: 260 seconds]
browndawg has left #ruby [#ruby]
joeycarmello has quit [Remote host closed the connection]
ChrisBolton has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
eddie_ has joined #ruby
<heftig> keller-ship: how did you construct @state?
Jasko has quit [Read error: Connection reset by peer]
robustus has joined #ruby
Jasko has joined #ruby
charliesome has joined #ruby
mafolz has joined #ruby
atmosx has joined #ruby
nari_ has quit [Quit: Ex-Chat]
Animawish has joined #ruby
<Hanmac1> keller-ship: it means that the 2rd and the 3th [] element are both the same object
Hanmac1 is now known as Hanmac
juha_ has left #ruby [#ruby]
lazyPower has joined #ruby
error_code has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
joofsh has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 264 seconds]
eldariof has joined #ruby
TheEmpty_ has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
generalissimo has joined #ruby
squidBits has joined #ruby
elico has joined #ruby
ChrisBolton has quit [Quit: ChrisBolton]
joeycarmello has joined #ruby
browndawg has joined #ruby
elico has quit [Remote host closed the connection]
lenovodroid has joined #ruby
tchebb has quit [Ping timeout: 264 seconds]
mafolz has quit [Remote host closed the connection]
h4mz1d has joined #ruby
Takehiro has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 255 seconds]
mafolz has joined #ruby
tchebb has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
Tarential has quit [Ping timeout: 252 seconds]
LucidDreamZzZ has joined #ruby
atyz has joined #ruby
Tarential has joined #ruby
Fox_candy has quit [Read error: Connection reset by peer]
keller-ship has quit [Quit: Leaving]
atyz has quit [Ping timeout: 264 seconds]
megharsh has quit [Ping timeout: 264 seconds]
<Animawish> I'm using shoes http://pastie.org/5601238
<Animawish> lines 11 and 12
<Animawish> i can't make the "x" link show up
dsdeiz has joined #ruby
tvw has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Ping timeout: 265 seconds]
Fox_candy has joined #ruby
Jacob_ has joined #ruby
Jacob_ is now known as ecksit
pen has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
bapa has quit [Ping timeout: 248 seconds]
toekutr has joined #ruby
bapa has joined #ruby
wargasm has quit [Quit: Leaving.]
Shadow_S has quit [Quit: Textual IRC Client: www.textualapp.com]
atmosx has quit [Quit: And so the story goes…]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
arietis has joined #ruby
lazyPower has quit [Remote host closed the connection]
wargasm has joined #ruby
Guest25886 has joined #ruby
slainer68 has joined #ruby
atyz has joined #ruby
blaxter has joined #ruby
<dsdeiz> hi! how do i get the ouput of a service e.g. http://example.com/foo.json and i wanted to pass additional headers?
atyz has quit [Client Quit]
Astralum has quit [Ping timeout: 264 seconds]
<Paradox> dsdeiz, try HTTParty
<dsdeiz> ah cool, thanks
slainer68 has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
joeycarmello has joined #ruby
canid has joined #ruby
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
txdv_ is now known as txdv
emocakes has joined #ruby
squidBits_ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
mpfundstein_home has joined #ruby
<dsdeiz> hm, is pry fine to use by beginners? or will there be a lot of confusions between using pry and irb?
keller-ship has joined #ruby
<Paradox> dsdeiz, you can use pry just like irb
<Paradox> pry just offers more useful tools
<Paradox> like ls
<Paradox> which really is just an enhanced version of Object#methods
<dsdeiz> oh cool. thx again
<Paradox> so
squidBits has quit [Ping timeout: 255 seconds]
squidBits_ is now known as squidBits
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
hoelzro|away is now known as hoelzro
<canid> If somebody feels like taking a look at my paste I'm wondering if this is a sane way to handle relative indices in ARGV for command line parameters: ARGV[ARGV.index('-h')+1]
elsifaka has joined #ruby
<canid> bah
jgrevich has quit [Remote host closed the connection]
<canid> figures: there's an app for that. Thank you kindly Hanmac.
koshii has quit [Ping timeout: 265 seconds]
lenovodroid has quit [Read error: No route to host]
gbchaosmaster has quit [Ping timeout: 245 seconds]
lenovodroid has joined #ruby
elico has joined #ruby
Slivka has joined #ruby
adambeynon has joined #ruby
affix has quit [Ping timeout: 260 seconds]
Jessykinz has joined #ruby
eka has joined #ruby
nomenkun has joined #ruby
<canid> This proving more complicated. It must mean I should keep at it.
samphippen has joined #ruby
acrocity_ has joined #ruby
elico has quit [Quit: elico]
browndawg has quit [Ping timeout: 255 seconds]
koshii has joined #ruby
Edward__ has joined #ruby
acrocity has quit [Ping timeout: 252 seconds]
acrocity_ is now known as acrocity
dsdeiz has quit [Ping timeout: 255 seconds]
browndawg has joined #ruby
<Paradox> ruby doesnt make very good turkey sandwiches
<Paradox> they're too dry
<Animawish> try the ham ones
toekutr has quit [Read error: Connection reset by peer]
<canid> you need su to make effective sandwiches. I saw it in a cartoon.
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
<Paradox> Animawish, i dont want to get fat
<Paradox> i want to stay SLIM
<Paradox> so i moved from HAML
<Paradox> see wut i did thatr
<Animawish> ha
arturaz has joined #ruby
yshh has joined #ruby
<Animawish> hm. i need an idea of something to program to practice.
<Animawish> nothing too complex
atyz has joined #ruby
<Animawish> but not hello world levels of easy
<Animawish> :P
<UdontKnow> Animawish: read taocp :)
<UdontKnow> lots of good examples there
<Paradox> Animawish, a program that draws ascii boobs
<Animawish> lol
<Paradox> and you could do it in sinatra
<Paradox> and upload it to compete with dicks.herokuapp.com
<Paradox> sorry
<Paradox> wonder why heroku got rid of .heroku.com urls
cableray has quit [Quit: cableray]
<Animawish> that's glorious
snearch has joined #ruby
koshii has quit [Ping timeout: 265 seconds]
yacks has joined #ruby
atyz has quit [Ping timeout: 244 seconds]
<TheEmpty_> lol API support
marr has joined #ruby
<Paradox> boobs.heroku.com
<Paradox> aw
<Paradox> its a real thing
<Paradox> and nsfw
browndawg has quit [Ping timeout: 244 seconds]
joeycarmello has quit [Ping timeout: 245 seconds]
elico has joined #ruby
eka has quit [Ping timeout: 265 seconds]
bradleyprice has quit [Remote host closed the connection]
eka has joined #ruby
assurbanipal has joined #ruby
Jessykinz has left #ruby [#ruby]
browndawg has joined #ruby
bbttxu_ has joined #ruby
nemesit has joined #ruby
Gooder has quit [Remote host closed the connection]
bbttxu has quit [Ping timeout: 245 seconds]
bbttxu_ is now known as bbttxu
Raufi has joined #ruby
bbttxu_ has joined #ruby
bbttxu has quit [Ping timeout: 244 seconds]
bbttxu_ is now known as bbttxu
dax has left #ruby [#ruby]
<Raufi> hi
<Raufi> hi
<Raufi> Hello
Elico1 has joined #ruby
snearch has quit [Quit: Verlassend]
alienvenom has joined #ruby
<Animawish> yo
sayan has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
atyz has joined #ruby
<TheEmpty_> Greetings
Neomex has joined #ruby
nemesit has quit [Read error: Connection reset by peer]
Neomex has quit [Client Quit]
nemesit has joined #ruby
<Raufi> hi
Raufi has quit [Quit: Page closed]
samphippen has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Quit: Leaving]
slainer68 has joined #ruby
Nisstyre-laptop has joined #ruby
joeycarmello has joined #ruby
keller-ship has quit [Quit: Leaving]
generalissimo has quit [Remote host closed the connection]
h4mz1d has joined #ruby
hotovson has joined #ruby
lenovodroid has quit [Ping timeout: 245 seconds]
ikaros has joined #ruby
hotovson has quit [Read error: Connection reset by peer]
nemesit|osx has joined #ruby
hotovson has joined #ruby
ecksit has quit [Quit: Gone to sleep.]
nemesit has quit [Read error: Connection reset by peer]
nemesit|osx has quit [Read error: Connection reset by peer]
nemesit has joined #ruby
jonahR has quit [Quit: jonahR]
seich- has quit [Ping timeout: 260 seconds]
mrdtt has quit [Quit: mrdtt]
lkba has quit [Ping timeout: 244 seconds]
bbttxu_ has joined #ruby
bbttxu has quit [Ping timeout: 245 seconds]
bbttxu_ is now known as bbttxu
<canid> bah
<canid> now I'm chasing an invisible unclosed block
affix has joined #ruby
yshh has quit [Remote host closed the connection]
<Hanmac> thats one of the reasons i prefer {} for blocks
koshii has joined #ruby
<canid> yeah
Jasko has quit [Read error: Connection reset by peer]
seich- has joined #ruby
Jasko has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
nemesit has quit [Quit: Leaving...]
x82_nicole has quit [Quit: Computer has gone to sleep.]
squidBits has quit [Quit: squidBits]
atmosx has joined #ruby
punkrawkR has joined #ruby
Caius has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
nkts has joined #ruby
atyz has quit [Quit: Leaving...]
squidBits has joined #ruby
Xeago has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
DefV has quit [Quit: leaving]
ruzu has joined #ruby
dawkirst_ has joined #ruby
Jan_ has joined #ruby
atyz has joined #ruby
Jan_ is now known as Guest39927
Guest39927 is now known as DefV
LucidDreamZzZ has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
toto_ has joined #ruby
advorak has quit [Quit: Leaving]
tvw has quit [Ping timeout: 244 seconds]
<shevy> I like {} too
<shevy> it's also shorter than do/end
<shevy> and it visually looks nicer inside a method
<shevy> def foo
<shevy> data.each {|entry|
<shevy> }
<shevy> end
daniel_hinojosa has quit [Ping timeout: 245 seconds]
Jasko has quit [Read error: Connection reset by peer]
Fox_candy has quit [Ping timeout: 276 seconds]
Jasko has joined #ruby
<TheEmpty_> What's the new syntax for blocks? Something with ->
<hoelzro> ->(*params), I think
* hoelzro hates the new lambda syntax
<TheEmpty_> ->(*params) { ...}
<hoelzro> yeah, that's it
<TheEmpty_> yeah, kinda of vague on what -> means
<canton7> it looks like it's been stolen from other languages' lambda syntaxx
<hoelzro> it's supposed to kind of resemble a lambda
daniel_hinojosa has joined #ruby
<hoelzro> pretty sorry excuse for a lambda, if you ask me
<hoelzro> *sigh* why not just use a lambda character?
msch has joined #ruby
<TheEmpty_> How many people have the lambda key on their keyboard?
<Animawish> λ
<Animawish> :D
<TheEmpty_> With mac there is option + key, but not other distros
<canid> Yeah; I'm definitely going to have to spend more time playing with OptionParser before I can use it
<hoelzro> TheEmpty_: <Ctrl-K>*l ;)
<canton7> canid, http://trollop.rubyforge.org/ is good too
<TheEmpty_> My client doesn't have control + k >.<
<hoelzro> TheEmpty_: that was for Vim
<DefV> +/
<TheEmpty_> Oh, I need to learn Vim. Currently using sublime text 2
<canton7> use vintage mode!
<hoelzro> TheEmpty_: I'd bet that ST2 has a binding for that as well!
browndawg has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
Proshot has joined #ruby
joeycarmello has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
Proshot is now known as statarb3
statarb3 has quit [Changing host]
statarb3 has joined #ruby
sayan has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
io_syl has quit [Quit: Computer has gone to sleep.]
megharsh has joined #ruby
Animawish has quit [Quit: Leaving.]
pen has quit [Read error: Connection reset by peer]
toto_ is now known as ToTo
pen has joined #ruby
yshh has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
atmosx has joined #ruby
Umren has quit [Ping timeout: 260 seconds]
dawkirst_ has quit [Quit: Nettalk6 - www.ntalk.de]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
dsdeiz has joined #ruby
Umren has joined #ruby
wermel has joined #ruby
keller-ship has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
joeycarmello has joined #ruby
squidBits has quit [Quit: squidBits]
vlad_starkov has joined #ruby
megharsh has quit [Ping timeout: 252 seconds]
Slivka has quit [Remote host closed the connection]
pmros has joined #ruby
emsilva has joined #ruby
woolite64 has quit []
elico has quit [Ping timeout: 244 seconds]
willob has joined #ruby
ananthakumaran has joined #ruby
elsifaka has quit [Remote host closed the connection]
marr has quit [Ping timeout: 265 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
willob has quit [Quit: Leaving.]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
megharsh has joined #ruby
pmros has quit [Read error: Operation timed out]
serhart has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
pmros has joined #ruby
lenovodroid has joined #ruby
mrdtt has joined #ruby
rakl has quit [Quit: sleeping]
karoshi has joined #ruby
atmosx has quit [Quit: And so the story goes…]
<karoshi> Hello?
<hoelzro> hi!
wallerdev has quit [Quit: wallerdev]
assurbanipal has quit [Read error: Connection reset by peer]
assurbanipal has joined #ruby
dmyers has quit [Quit: dmyers]
Elico1 has quit [Quit: Elico1]
karoshi has quit [Ping timeout: 245 seconds]
Umren has quit [Ping timeout: 245 seconds]
ewag has quit [Ping timeout: 252 seconds]
elico has joined #ruby
vlad_starkov has joined #ruby
Umren has joined #ruby
hamed_r has joined #ruby
TheEmpty_ is now known as TheEmpty
Xeago has joined #ruby
<dsdeiz> hm, not sure i'm understanding this but httparty comes with a parser?
digifiv5e has joined #ruby
<waxjar> i believe so yeah, the times i worked with it it spit out json without any magic on my part :)
eddie_ has quit [Quit: Ex-Chat]
wallerdev has joined #ruby
nomenkun has quit [Remote host closed the connection]
<pmros> mmmmm I use nokogiri
<pmros> xml, html parser
TheEmpty_ has joined #ruby
<Hanmac> and builder
<pmros> httparty don't have this feature, I think so
TheEmpty has quit [Disconnected by services]
<dsdeiz> oh ok. yeah was wondering if i need nokogiri to parse xml output
TheEmpty_ is now known as TheEmpty
mafolz has quit [Remote host closed the connection]
<pmros> I like poetic code, you know, beautiful code... not necessary useful
<pmros> return to 8 bit basic experience
hotovson has quit [Remote host closed the connection]
<pmros> do you remember?
<pmros> that feeling
vlad_starkov has quit [Remote host closed the connection]
<dsdeiz> ok, im confused xD do i need nokogiri to parse xml responses? or is httparty enough?
<pmros> I think yo need nokogiri
<waxjar> you don't, if you tell it you're expecting xml (format :xml)
serhart has joined #ruby
<pmros> butm dsdeiz, what do you think about my words?
<waxjar> read the docs though, I'm sure it's in there :)
elico has quit [Quit: elico]
serhart has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 245 seconds]
nkts has quit [Ping timeout: 245 seconds]
pngl has joined #ruby
serhart has joined #ruby
<dsdeiz> pmros: no i don't, sorry. im just here to learn ruby xD
Jasko has joined #ruby
<pmros> lol
hoelzro is now known as hoelzro|away
moos3 has joined #ruby
serhart1 has joined #ruby
serhart has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
lenovodroid has quit [Ping timeout: 255 seconds]
pmros has quit [Quit: Konversation terminated!]
cirwin has joined #ruby
joeycarmello has quit [Ping timeout: 244 seconds]
atyz has quit [Quit: Leaving...]
arturaz has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Goles has joined #ruby
ChrisBolton has joined #ruby
keller-ship has quit [Quit: Leaving]
nomenkun has joined #ruby
vlad_starkov has joined #ruby
brendan_ has joined #ruby
lenovodroid has joined #ruby
<dsdeiz> the docs are a bit difficult to read :( any examples on how to parse xml responses? i see a parsed_response when i did a search but im not sure how to use it
pothibo has joined #ruby
nemesit has joined #ruby
hotovson has joined #ruby
<dsdeiz> hm, i was able to use parsed_response, but i can't find docs about it
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<Mon_Ouie> charliesome: Btw, I think it would be more useful for your bot to print the result of evaluating the expression, as that's what we want more often than the actual output of the program (now we'd need to prefix "p" or "puts" most of the time)
<charliesome> ah yeah
<charliesome> i was thinking of that
<charliesome> wrap the user code in a method
<charliesome> then put
<charliesome> p method
<charliesome> or whatever
seanstickle has joined #ruby
<dsdeiz> or prolly something like how do i determine what object does HTTParty.get return
<charliesome> Mon_Ouie: so the user can do multiple statements like this? http://eval.in/5674
statarb3 has quit [Quit: Leaving]
nomenkun has quit [Ping timeout: 255 seconds]
<Mon_Ouie> I think I'd actually do TOPLEVEL_BINDING.eval "code as a string" in that method, so it behaves as much as if there were no wrapping method
hotovson has quit [Ping timeout: 264 seconds]
hotovson has joined #ruby
atyz has joined #ruby
<Mon_Ouie> (and also find the best way for the method not to interfere with whatever code they try to run)
serhart1 has quit [Quit: Leaving.]
blaxter has quit [Quit: foo]
<waxjar> dsdeiz: HTTParty.get '…', :format => :xml. seriously though, use google/rubydoc/github READMEs or wiki's it's all in there :)
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
elaptics`away is now known as elaptics
<dsdeiz> im browsing through its github README and example. where do i find that :format bit?
horofox has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
ewag has joined #ruby
flip_digits has joined #ruby
undert has quit [Ping timeout: 252 seconds]
mark_locklear has joined #ruby
undert has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
browndawg has joined #ruby
marr has joined #ruby
ChrisBolton has quit [Quit: ChrisBolton]
lazyPower has joined #ruby
xemu has joined #ruby
tpelletier has joined #ruby
cousine has joined #ruby
pskosinski has joined #ruby
suyu has joined #ruby
suyu has left #ruby [#ruby]
<dsdeiz> oh cool. thx
daed_ has quit [Ping timeout: 244 seconds]
jerius has joined #ruby
Proshot has joined #ruby
Umren|2 has joined #ruby
Villadelfia has quit [Ping timeout: 255 seconds]
SeySayux has quit [Ping timeout: 255 seconds]
statarb3 has quit [Write error: Connection reset by peer]
<lazyPower> Could someone lend a hand with my rspec test thats failing on a simple assignment? Testing a basic resource controller and its turning into chunky salsa when i attempt to assign a variable to the session.
Umren has quit [Ping timeout: 252 seconds]
SeySayux has joined #ruby
Villadelfia has joined #ruby
joeycarmello has joined #ruby
hamed_r has quit [Ping timeout: 245 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
hamed_r has joined #ruby
Udom0 has joined #ruby
enroxorz-work has joined #ruby
Rym has joined #ruby
atno|PingMe has joined #ruby
canid has quit [Ping timeout: 260 seconds]
atno has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
atno|PingMe is now known as atno
MissionCritical has quit [Ping timeout: 265 seconds]
cousine has quit [Remote host closed the connection]
Virunga has joined #ruby
alexspeller has joined #ruby
rvmeier has joined #ruby
lenovodroid has quit [Ping timeout: 245 seconds]
moos3 has joined #ruby
nomenkun has joined #ruby
Mission-Critical has joined #ruby
tommyvyo_ has joined #ruby
atno has quit [Quit: Leaving...]
Russell^^ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
horofox has quit [Quit: horofox]
lkba has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
Slivka has joined #ruby
Mission-Critical is now known as MissionCritical
banisterfiend has quit [Remote host closed the connection]
dsdeiz has quit [Ping timeout: 265 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
hamed_r has quit [Quit: Leaving]
sepp2k has joined #ruby
ewag has quit [Ping timeout: 252 seconds]
ebouchut has joined #ruby
rondale_sc has joined #ruby
landho has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 245 seconds]
daro_ has joined #ruby
moos3 has joined #ruby
bbttxu has quit [Quit: bbttxu]
horofox has joined #ruby
ltsstar has joined #ruby
ikaros_ has joined #ruby
ikaros has quit [Read error: Connection reset by peer]
mark_locklear has quit [Quit: Leaving]
ltsstar has quit [Client Quit]
spacemud has quit [Quit: ZNC - http://znc.in]
pen has quit [Read error: Connection reset by peer]
matip_ has quit [Read error: Connection reset by peer]
pen has joined #ruby
benlieb has joined #ruby
iamjarvo has quit [Quit: Leaving.]
blacktulip has joined #ruby
hotovson has quit [Remote host closed the connection]
Russell^^ has quit [Quit: Russell^^]
yacks has quit [Quit: Leaving]
ltsstar has joined #ruby
spacemud has joined #ruby
<waxjar> is there a way to determine in which Object an exception was raised?
sailias has joined #ruby
<whitequark> waxjar: why do you want that?
mpereira has joined #ruby
breakingthings has joined #ruby
emsilva has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
<waxjar> i'm writing some sort of filter system, that has multiple layers. i'm implementing something similar to sinatra's #halt and decided to use Exceptions
pwelch has joined #ruby
joofsh has joined #ruby
emsilva has joined #ruby
<whitequark> make each layer an object. add a method like #process which rescues exceptions and calls the method which actually does the work.
carlyle has joined #ruby
<whitequark> then, you'd know that the Object which raised the exception is the current one
mjolk has joined #ruby
mjolk is now known as Guest89661
<waxjar> that's pretty much what I have now, except I'm rescuing the exceptions from a "main" object
bhavesh_a_p has quit [Remote host closed the connection]
<whitequark> there is no better way, I'd say
<waxjar> hmm, i guess i could call put it in the message. thanks for your time whitequark :)
Proshot has quit [Quit: Leaving]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
ToTo has quit [Quit: Leaving...]
joeycarmello has quit [Ping timeout: 276 seconds]
AxonetBE has joined #ruby
jonahR has joined #ruby
thatguycraig has joined #ruby
Nisstyre has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
uris has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
spacemud has quit [Quit: ZNC - http://znc.in]
atyz has quit [Quit: Leaving...]
pwelch has quit [Quit: pwelch]
browndawg has quit [Quit: Leaving.]
LouisGB has joined #ruby
emsilva has quit [Quit: Computer has gone to sleep.]
spacemud has joined #ruby
atyz has joined #ruby
hotovson has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
joshman_ has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
vlad_starkov has joined #ruby
mjolk_ has joined #ruby
jgrevich has joined #ruby
matip has joined #ruby
nwertman has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
krawchyk has joined #ruby
hotovson has quit [Read error: Connection reset by peer]
hotovson has joined #ruby
emsilva has joined #ruby
__BigO__ has joined #ruby
landho has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sayan has joined #ruby
nomenkun has joined #ruby
LyonJT has joined #ruby
joeycarmello has joined #ruby
lateau has quit [Remote host closed the connection]
__BigO__ has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
becom33 has joined #ruby
spacemud has quit [Quit: ZNC - http://znc.in]
webguynow has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
spacemud has joined #ruby
<becom33> whats the easiest way of doing GUI for rby
<becom33> ruby *
__BigO__ has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
lateau has joined #ruby
<eka> becom33: shoes?
<becom33> is it easy ?
<Hanmac> i do it with my own clone of wxRuby
<eka> becom33: ^^
<becom33> if I build a app using shoes ? would be easy for other people to use who uses OSX, Windows ?
<eka> becom33: AFAIK yes … it uses jruby
<becom33> same question applies for wxRuby
eka has left #ruby ["chant Hare Krishna and be Happy"]
spacemud has quit [Quit: ZNC - http://znc.in]
thone has joined #ruby
lateau has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
stopbit has joined #ruby
thone_ has quit [Ping timeout: 265 seconds]
<daro_> damn
<daro_> code completion suggestions doesnt work for me: <
<daro_> in rubymine
<daro_> :(
nemesit has quit [Quit: Leaving...]
horofox has joined #ruby
spacemud has joined #ruby
<Emmanuel_Chanel> Happy New Year!
<daro_> lol already?
iamjarvo has joined #ruby
atyz has quit [Quit: Leaving...]
browndawg has joined #ruby
jrajav has joined #ruby
adkron has joined #ruby
mmitchell has joined #ruby
atyz has joined #ruby
__BigO__ has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
sijis has joined #ruby
pen has joined #ruby
lateau has joined #ruby
eldariof has quit []
<sijis> i'm trying to understand a syntax error in yaml, what's wrong with the syntax on line 6,7 and 12, 13 (http://pastebin.com/6iTRncqd)
busybox42 has quit [Quit: leaving]
lateau has quit [Remote host closed the connection]
busybox42 has joined #ruby
<rking> sijis: Put it on a separate line
<rking> And don't indent the '-' any relative to the key
<rking> ^ Not strictly necessary, but that's the YAML style
lateau has joined #ruby
joofsh has quit [Remote host closed the connection]
<sijis> rking: ahh. putting '- one' and '- two' in seperate lines worked
<sijis> rking: howver, i do have it intented after 'tags:'.. should it not be?
BuGo has joined #ruby
<rking> It doesn't have to be, but pro YAML style looks like this:
<rking> akey:
<rking> - items one level beneath
<rking> - etc
<BuGo> I can get method using method(:my_method) call. How do i get a super method?
<waxjar> it looks clearer if you don't, imo. same thing for items, btw
<rking> Yep, same for the ones under items.
npp has joined #ruby
npp is now known as nipar
<jrajav> Are there pro YAML competitions?
matrixise has joined #ruby
jds has joined #ruby
<BuGo> So any ideas how to get super method?
<sijis> rking: gotcha. so is 'key: - value' incorrect syntax? i have another file like that and has no issues.. unless it becomes apparent when nesting
Marco has quit [Remote host closed the connection]
<rking> Yep, that's incorrect.
<waxjar> does method(:super) not work BuGo?
<TheEmpty> What. YAML competionts o.O what would that be
<TheEmpty> *competitions
<jrajav> I'm just poking at "<rking> It doesn't have to be, but pro YAML style looks like this:" :P
<sijis> rking: ok.. thanks for clearning that up.
<TheEmpty> haha
<rking> If you have something that you want to compact on one line, you can use the JSON-like format: "akey: [ one, two, three ]"
<BuGo> waxjar:
<rking> But otherwise all child nodes should be on the next line down
<BuGo> NameError: undefined method `super' for class `ActiveRecord::Relation'
bean has joined #ruby
Xeago has joined #ruby
<waxjar> hmm, that's right. super is a keyword iirc
<BuGo> yup
<waxjar> perhaps you could do something like self.class.ancestors[1].method( current_method_name) ?
gyre007 has joined #ruby
<BuGo> will try :)
<waxjar> __method__ apparently gets the current method name :)
<BuGo> :)
Banistergalaxy has joined #ruby
<BuGo> and this method is a delegate... F
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
lateau has quit [Read error: Connection reset by peer]
lateau has joined #ruby
AndChat- has quit [Ping timeout: 260 seconds]
Coeus has joined #ruby
kirun has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
nipar has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
Slivka has quit [Read error: Connection reset by peer]
atyz has joined #ruby
blazes816 has joined #ruby
danneu has joined #ruby
xemu has quit [Ping timeout: 245 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
nipar has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby
jds has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
joeycarmello has quit [Ping timeout: 245 seconds]
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
xemu has joined #ruby
fourq has joined #ruby
spacemud has quit [Quit: ZNC - http://znc.in]
adkron has quit [Ping timeout: 244 seconds]
spacemud has joined #ruby
AxonetBE has quit [Quit: Leaving.]
joofsh has joined #ruby
Targen_ has joined #ruby
megharsh is now known as superbot
Targen has quit [Ping timeout: 265 seconds]
bradleyprice has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<shevy> you magic hackers
track7 has quit [Read error: Connection reset by peer]
mpfundstein_home has quit [Ping timeout: 245 seconds]
mrdtt has quit [Quit: mrdtt]
track7 has joined #ruby
voodoofish has quit [Ping timeout: 255 seconds]
pyro111 has quit [Quit: Leaving]
itnomad has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
bluehavana_ has quit [Ping timeout: 246 seconds]
jds has joined #ruby
joeycarmello has joined #ruby
<becom33> looking for good wxruby tutorial
<becom33> it would be great if someone can lead me to one of those
slainer68 has quit [Remote host closed the connection]
* Hanmac does his own wxruby because wxruby looks dead
otters has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
<becom33> Hanmac, Im not that advance .I was looking for a easy way to do a little GUI app for my useage . since Im using Windows and Linux both . it would be great if its easy to install/use in cross platform as well
<becom33> but hard to find tutorials on wxruby
JMcAfreak has quit [Quit: leaving]
nwertman has joined #ruby
nwertman has quit [Remote host closed the connection]
pcarrier has quit []
jds has quit [Remote host closed the connection]
anirudh24seven has joined #ruby
<seanstickle> becom33: a web browser makes an excellent (and, imo, superior) cross-platform GUI
<becom33> seanstickle, yea I was thinking the same . I can easily make a php app . but I was thinking do something with ruby :(
<lazyPower> libwebkit makes it possible to do things seamless too
<lazyPower> not to mention unity-webapps
<seanstickle> becom33: I write little local machine apps with Sinatra all the time
<seanstickle> becom33: Sinatra being a nice little Ruby lib for web apps (in case you are unfamiliar with it)
io_syl has joined #ruby
<becom33> seanstickle, no I tried it for a while . but kinda hard work when it comes to templates . no offense . kinda hard . easy to do the samething with php
<seanstickle> I can't say it's hard.
<seanstickle> But if it is for you, ok.
<jrajav> Sinatra: Rails for people who don't like the word rails
<jrajav> :P
nwertman has joined #ruby
<seanstickle> If writing a little Sinatra web app is hard, you're going to beat your head in using wxruby
<seanstickle> jrajav: Rails is overkill for some things.
lkba has joined #ruby
<jrajav> becom33: Easy is a matter of perspective
<jrajav> becom33: PHP's ease scale is exponential. Sinatra/Rails' is linear
<seanstickle> I've had cause to consider using PHP's Symfony. It is … interesting/
<becom33> seanstickle, yea I should give some chance to sinatra
BuGo has left #ruby [#ruby]
_adeponte has joined #ruby
spacemud has quit [Quit: ZNC - http://znc.in]
spacemud has joined #ruby
yacks has joined #ruby
oktapodi has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
LouisGB has quit [Ping timeout: 245 seconds]
lateau has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
lateau has joined #ruby
jamescarr has joined #ruby
<jamescarr> anyone know if there is a reason I get segmentation faults with nokogiri-1.5.6 and ruby-1.9.3 on OSX Lion
<jamescarr> ?
<jrajav> Yes, there is.
otters has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
<TheEmpty> jrajav: To be fair, Rails is resposable for 100% of the ruby drama
yacks has joined #ruby
<emocakes> jamescarr, i dont think there is a reason
<TheEmpty> @dhh adds one line to Rails' skeleton project and everyone freaks out
lateau has quit [Remote host closed the connection]
<TheEmpty> I don't get seg. faults 1.9.3 on Lion
<TheEmpty> What did you use to install it?
lateau has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
nyuszika7h has joined #ruby
<shevy> becom33 use ruby-gnome bindings
justincampbell has joined #ruby
daniel_- has joined #ruby
<becom33> shevy, would it work with windows as well >
<becom33> ?
<shevy> becom33 yes it works on windows as well
<jamescarr> TheEmpty: I used rvm
<jamescarr> er, I use rvm
<becom33> shevy, would be great if you could lead me to some tutorials as well
Raboo has quit [Ping timeout: 255 seconds]
<jamescarr> TheEmpty: I get the segfault when using fog
adkron has joined #ruby
<TheEmpty> Oh, it's when when you use a library? Did you compile it or get it precompiled?
<shevy> the official tarball release has about 400 working .rb examples
<TheEmpty> I don't know what it is tbh
<becom33> shevy, Im doing th the dev in lnux
<shevy> you can run them all becom33 and learn from them
<TheEmpty> Also I love Jimmy Carr
<shevy> becom33 as said, ruby-gnome works on linux and windows
jds has joined #ruby
lepht_afk is now known as lepht
zastern has joined #ruby
<becom33> shevy, ruby-gnome is gtk right ?
<shevy> yeah
sijis has left #ruby [#ruby]
jerius has joined #ruby
Iszak has joined #ruby
atmosx has joined #ruby
Raboo has joined #ruby
BoomCow has joined #ruby
BoomCow has quit [Client Quit]
voodoofish has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
ninegrid has joined #ruby
jonahR has quit [Quit: jonahR]
Edgar has joined #ruby
tenmilestereo has joined #ruby
Edgar has quit [Client Quit]
solidresolve has quit [Remote host closed the connection]
thatguycraig has quit [Quit: Leaving.]
solidresolve has joined #ruby
jds has quit [Ping timeout: 255 seconds]
Raboo has quit [Read error: Operation timed out]
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
billy_ran_away has joined #ruby
LouisGB has joined #ruby
Nisstyre-laptop has joined #ruby
gyre007 has quit [Remote host closed the connection]
lepht is now known as lepht_afk
ikaros_ is now known as RagingDave
gyre007 has joined #ruby
Raboo has joined #ruby
<billy_ran_away> Considering the null object pattern, is extending the core Object class "hacky", "cheap" or "unprofessional?"
jerius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pen has quit [Read error: Connection reset by peer]
RagingDave is now known as ikaros
<jrajav> "Yes"
pen has joined #ruby
iamjarvo has quit [Quit: Leaving.]
solidresolve has quit [Remote host closed the connection]
<shevy> billy_ran_away problem is that it is a global modification, all objects will behave in the new way, and there is no simple way to undo that
solidresolve has joined #ruby
<billy_ran_away> shevy: Yea that's the point… http://cl.ly/LsGf
ikaros has quit [Quit: Ex-Chat]
<billy_ran_away> shevy: I'm just not confident in the "acceptability" of extending the core Object class.
breakingthings has quit []
RagingDave has joined #ruby
banisterfiend has joined #ruby
<shevy> I'd wish there would be a tabula rasa state for all of core ruby objects, so that one could reset them
<billy_ran_away> shevy: It's like on one hand sure Ruby was made to do this, it would make my code read better, but on the other hand, shouldn't I work in the constraints of the language, who do I think I am re-writing this amazing language...
<shevy> Kernel.reset
RagingDave is now known as RagingDave_
RagingDave_ is now known as RagingDave
<shevy> billy_ran_away the feature in itself is useful
lateau has quit [Remote host closed the connection]
<shevy> the side-effect or rather that you can't restore the default state is annoying
<shevy> people workaround via including a module, then unincluding it again
solidresolve has quit [Remote host closed the connection]
<shevy> which is gay... the class vs. module distinction is annoying too
squidBits has joined #ruby
<billy_ran_away> shevy: Not 100% clear on what you mean restore the default state, but I'm venturing a guess.
voodoofish has quit [Quit: Leaving]
<shevy> billy_ran_away in your example you added: def to_value
<shevy> to all objects
solidresolve has joined #ruby
<billy_ran_away> Yea
<shevy> do you know of a way to undo changes such as this?
<billy_ran_away> undefine_method?
<shevy> all changes
<banisterfiend> shevy: that's what refinements are for
lateau has joined #ruby
solidresolve has quit [Remote host closed the connection]
voodoofish has joined #ruby
solidresolve has joined #ruby
QKO_ has joined #ruby
lateau has quit [Remote host closed the connection]
solidresolve has quit [Remote host closed the connection]
lateau has joined #ruby
solidresolve has joined #ruby
hotovson has joined #ruby
Xeago has joined #ruby
solidresolve has quit [Client Quit]
joeycarmello has quit [Ping timeout: 255 seconds]
Udom0 has quit [Quit: Leaving.]
horofox has quit [Quit: horofox]
QKO has quit [Ping timeout: 265 seconds]
lateau has quit [Remote host closed the connection]
RagingDave has quit [Quit: Ex-Chat]
thufir_ has joined #ruby
RagingDave has joined #ruby
solidresolve has joined #ruby
<shevy> whoa... didn't know one can create an in-memory variant for sqlite... SQLite3::Database.new ":memory:"
daniel_-_ has joined #ruby
lateau has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
hotovson has quit [Ping timeout: 245 seconds]
<billy_ran_away> Is it possible to take over the || method for an object?
mockra has joined #ruby
<billy_ran_away> I'm doing the NullObject pattern (well trying to…) and I'd like NullObject.new || 1 to return 1 and not the NullObject.
<billy_ran_away> Tried def ||(value) false; end which did not work...
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
daniel_-_ has quit [Client Quit]
crackfu has joined #ruby
<Sou|cutter> billy_ran_away: I feel like the point of NullObject is so that you don't have to do that sort of conditional
daniel_- has quit [Ping timeout: 252 seconds]
<billy_ran_away> I want to Maybe(maybe_nil).attributes.attribute.count + 1 || 1
yakko has joined #ruby
<billy_ran_away> So if it's a NullObject the + 1 just returns the NullObject again, which is great, but it returns true.
<Sou|cutter> billy_ran_away: your null object should have .attributes.attribute.count == 0
<Sou|cutter> then get rid of || 1
<billy_ran_away> Sou|cutter: But I want to get the count + 1 or just 1
<Sou|cutter> 0 + 1 is 1
mjolk_ has quit [Quit: returning some videotapes]
<billy_ran_away> NullObject isn't 0 though...
<billy_ran_away> It's NullObject.
francisfish has quit [Remote host closed the connection]
hotovson has joined #ruby
pooriaazimi has joined #ruby
<Sou|cutter> billy_ran_away: I feel like you may not be grokking the null object pattern
<billy_ran_away> Of course I could make a to_i method for NullObject that returned 0 couldn't i?
<Sou|cutter> it shouldn't be an object that replaces nil
francisfish has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
mpereira has quit [Ping timeout: 245 seconds]
<billy_ran_away> Yea it's an object that's more friendly for chaining so you don't have to add trys everywhere isn't it?
<Sou|cutter> it should be an object that represents a type whose state is not specified
Guest89661 has quit [Quit: This computer has gone to sleep]
<billy_ran_away> Sou|cutter: It's an object to represent the special case of “do nothing on missing value”
__main__ has joined #ruby
slainer68 has joined #ruby
<Sou|cutter> so if not specified for this type means .attributes.attribute.count == 0, then you don't need || 1
<jamescarr> TheEmpty: sorry, was away. Nokogiri is compiled
<billy_ran_away> That'd return true or false...
<jamescarr> I get the segfault at runtime
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<billy_ran_away> Sou|cutter: I'm trying to go from this: "XX#{ (cabinetable.try(:cabinets).try(:count) || 0) + 1 }"
<billy_ran_away> To...
<TheEmpty> Wouldn
<billy_ran_away> "XX#{ (cabinetable.cabinets.count + 1 || 0 }" }
<TheEmpty> I'll have to go double check the definition of segfault
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129162756]]
francisfish has quit [Remote host closed the connection]
<Sou|cutter> billy_ran_away: those aren't the same thing
<Sou|cutter> the former will not return 0
<Sou|cutter> the latter will
theRoUS_ has joined #ruby
<billy_ran_away> "XX#{ (cabinetable.cabinets.count + 1 || 1}" }
hotovson has quit [Ping timeout: 245 seconds]
<billy_ran_away> Yea you're right
<billy_ran_away> I meant or 1
<Sou|cutter> why have the || 1?
<Sou|cutter> just define a NullCabinetable object whose .cabinets.count is 0
<billy_ran_away> Because otherwise my string will "XX#{ NullObject }" Which will just be "XX" but if there's nothing there I want it to be 1.
samphippen has joined #ruby
<billy_ran_away> Sou|cutter: Yea that or I could def to_i; 0; end to NullObject and then do "XX#{ cabinetable.cabinets.count + 1}"
<Sou|cutter> I don't think we're on the same page
<Sou|cutter> I wouldn't use a general purpose NullObject object
<Sou|cutter> I would use one specific to your type/context
<billy_ran_away> Yea, but we're close… You're suggesting I make a more specific NullObject… which I don't like because I have LOTS of different objects and I'm trying to do something more general purpose and establish a broader DRYer pattern for the application.
francisfish has joined #ruby
QKO has joined #ruby
<billy_ran_away> Sou|cutter: But I'm interested in hearing why I'm wrong. : )
nwertman has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
daniel_- has joined #ruby
<Sou|cutter> DRY would be using nil :P
danneu has quit [Quit: WeeChat 0.3.8]
<Sou|cutter> sorta
iamjarvo has joined #ruby
<Sou|cutter> a generic NullObject is little different from nil is what I'm saying
QKO_ has quit [Ping timeout: 265 seconds]
<billy_ran_away> Yea I get that. Nil is saying nothing, NullObject is saying, something might be here, or maybe not, but if so do this.
<blazes816> call it a SchrodingerObject
samphippen has quit [Quit: Computer has gone to sleep.]
<billy_ran_away> Sou|cutter: Maybe a car analogy would help...
<Sou|cutter> billy_ran_away: I think we disagree on what a null object is
<Sou|cutter> billy_ran_away: if you look on the wikipedia page on the pattern you will see that even the ruby example gives a non-generic implementation of a null object
friskd has joined #ruby
<Sou|cutter> you should be able to treat a null object the same as a non-null object in your context. In this case that means being able to call .cabinets.count
oktapodi has quit [Read error: Connection reset by peer]
oktapodi_ has joined #ruby
<billy_ran_away> Sou|cutter: Sure but are specific NullObjects and general NullObjects fundamentally different? Consider a Float 0 and an Integer 0...
<Sou|cutter> can you call .cabinets.count on your general NullObject ?
<billy_ran_away> Right and a general NullObject would facilitate that...
<Sou|cutter> and get a meaningful result
<billy_ran_away> Of course I get a NullObject.
<atmosx> this inconsolata fonts ar egreat
jds has joined #ruby
<Sou|cutter> billy_ran_away: so you defined method missing to return a NullObject ... that is not meaningful in this context
pooriaazimi has quit [Quit: pooriaazimi]
<Sou|cutter> billy_ran_away: you just have a crazy version of nil
<billy_ran_away> Sou|cutter: This is what I had read: http://devblog.avdi.org/2011/05/30/null-objects-and-falsiness/
rakl has joined #ruby
joeycarmello has joined #ruby
<billy_ran_away> That's what allows you to cover chaining many methods together.
theRoUS has quit [Ping timeout: 276 seconds]
assurbanipal_ has joined #ruby
theRoUS_ has quit [Ping timeout: 276 seconds]
<billy_ran_away> Without it I'm back to either adding a bunch of try's or covering every possible use case in specific NullObjects.
<Sou|cutter> I don't think there's anything wrong with specific null objects
<Sou|cutter> there are cases where that generic one may be useful
<Sou|cutter> but this is not one of them
syamajala has joined #ruby
assurbanipal has quit [Ping timeout: 255 seconds]
elaptics is now known as elaptics`away
<Sou|cutter> billy_ran_away: that blog post reads to me as more of a thought experiment than a recommendation
sonnym has joined #ruby
sonnym has quit [Max SendQ exceeded]
_adeponte has quit [Remote host closed the connection]
<billy_ran_away> Sou|cutter: Okay thanks I think I may shy aware from the NullObject pattern for now then. Making specific NullObjects seems like more trouble then it's worth.
<billy_ran_away> *away
<Sou|cutter> billy_ran_away: FWIW that blog post does define to_i (and several other to_ methods)
<Sou|cutter> def to_i; 0; end <-- right there in the blog post
daniel_hinojosa has joined #ruby
adeponte has joined #ruby
<Sou|cutter> so if you DO want to use that generic version, that would solve your problem
<billy_ran_away> Sou|cutter: Take out all my trys.
atyz has quit [Quit: Leaving...]
<Sou|cutter> #{ (cabinetable.cabinets.count.to_i + 1 } <-- with a generic NullObject with to_i # => 0
<yfeldblum> billy_ran_away, generic null-object is a bad pattern
<Sou|cutter> yfeldblum: agreed.
<yfeldblum> billy_ran_away, it's fine for very specific cases, but there's no good way to do it without case-specific null-object objects/classes
grzywacz has quit [Ping timeout: 265 seconds]
<yfeldblum> billy_ran_away, the canonical case is an html view, where you need to show something if the object is there and something else if it isn't, and instead of doing the selection in the view, you do the selection in the controller and take advantage of inheritance in the view
<yfeldblum> billy_ran_away, s/inheritance/polymorphic method dispatch/g
<billy_ran_away> yfeldblum: Okay thanks
<Sou|cutter> to use the generic NullObject you would have to know that you have to call to_i (or various conversions) rather than just expecting a certain sort of object implicitly (like count returns something like a Fixnum)
bean has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
nwertman has joined #ruby
<billy_ran_away> Sou|cutter: Okay cool, I really appreciate your insight and help me understand the NullObject pattern better.
<billy_ran_away> *helping
bapa has quit [Remote host closed the connection]
kokainepizza has joined #ruby
<Sou|cutter> glad to help
mmitchell has quit [Remote host closed the connection]
<Azure> I'm trying to write my own IRC class (and bot) from scratch. I can't seem to figure out how I would do events, like say joins, parts, quits, privmsg's, etc.
tommyvyo_ has joined #ruby
<Azure> I've heard too many bad things about Event Machine, and I've looked at Celluloid::IO's examples, but can't really seem to figure out what I'm supposed to do.
pcarrier has joined #ruby
<banisterfiend> Azure: believe in yourself, and the answer will appear before you delivered in your dreams by the goddess Kali
<seanstickle> banisterfiend: that's how Arjuna became a Python programmer, I think
lkba has quit [Ping timeout: 252 seconds]
<yfeldblum> IO.pipe gives a r stream and a w stream; it looks like the r stream is not sync, but the w stream is; what's the reason?
breakingthings has joined #ruby
<banisterfiend> seanstickle: who is arjuna?
wf2f has quit []
jds has quit [Remote host closed the connection]
<seanstickle> banisterfiend: a warrior taught by the god Krishna
<Azure> Interesting.
<seanstickle> Bhagavad Gita, doncha know
<Azure> I would love to also implement plugins, or some sort of similar extensible concept as well.
bapa has joined #ruby
Axsuul has joined #ruby
* Azure is doing this mostly for self-education's sake. :p
<seanstickle> Azure: Rubygems is what you are looking for
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
<Azure> Well, they still would have to be included in somehow.
<Azure> Like in a bootstrap script, or something.
Xeago has joined #ruby
<seanstickle> Azure: Bundler
bluehavana_ has joined #ruby
<shevy> Azure haha I started with an irc bot in ruby too, after failing with one in php
<Azure> Just telling me to use Bundler still doesn't help any. :p
Iszak has quit []
havenn has quit [Ping timeout: 245 seconds]
<TheEmpty> Gems are built in, "gem" CLI. Bundler automates the process and ties the libraries/gems down to the project
<Azure> I know that,
<Azure> .
nwertman has quit [Ping timeout: 252 seconds]
<atmosx> no you didn't.
<Azure> What I need to figure out is how to take messages from an IRC server and implement a pattern like pubsub or reactor, or *something*.
<atmosx> lol
<TheEmpty> Yeah I have a ton of those lying around
<shevy> Azure do you already get the messages
<atmosx> Azure: writing a bot?
<Azure> Yes
<Azure> I already get the messages
Xeago has quit [Read error: Connection reset by peer]
<Azure> and even have individual methods that get called depending on the command.
delinquentme has joined #ruby
<delinquentme> https://gist.github.com/4421869 so I'm doing something like this ... how can I do this .. and have the name of the inputs printed out in puts n
emmanuelux has joined #ruby
Xeago has joined #ruby
track7 has quit [Read error: Connection reset by peer]
<Azure> http://pastie.org/5603075 All that it does right now is connect, register, join a channel, and says something, and reacts to PING messages and sends out its own PING messages to the server for keeping the connection alive.
<TheEmpty> Should send PONG
elaptics`away is now known as elaptics
skaczor has joined #ruby
thufir_ has quit [Ping timeout: 255 seconds]
arya has joined #ruby
thufir_ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
mpereira has joined #ruby
<waxjar> Azure, i'm working on a similar project
<Azure> TheEmpty, I do that already.
<Azure> Oh? :p
<waxjar> I can put it on github if you like
Banistergalaxy has joined #ruby
<TheEmpty> you said you send PING
<waxjar> it's still quite buggy, but it sort of works :p
<jamescarr> I'll put it on source forge if you like
mpfundstein_home has joined #ruby
jamescarr has left #ruby [#ruby]
<Azure> Sure
bradleyprice has quit [Remote host closed the connection]
<TheEmpty> I feel like Ruby syntax is ugly. I tried several times to make this pretty but it kept giving syntax errors if I break it up on lines
skaczor has quit [Remote host closed the connection]
<rismoney> say i have this line outputname = buf2.slice(0..bufferlength).encode('US-ASCII').strip and instead of .encode i want to call my own method say my_encode, how do i call it inline
<TheEmpty> umm. change encode to my_encode ?
<TheEmpty> Oh wait
<TheEmpty> You would have to extend the String class since slice returns a string object. Or instead wrap it
mpfundstein_home has quit [Ping timeout: 245 seconds]
<TheEmpty> my_encode(bug2.slice(0..bufferlength))
sepp2k has quit [Ping timeout: 265 seconds]
<rismoney> i thought i had that, let me doublecheck
<Azure> neat
kokainepizza has quit [Quit: My pooter is sleep.]
kokainepizza has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
koshii has quit [Ping timeout: 265 seconds]
x82_nicole has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
bricker has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
cirwin has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby
thatguycraig has joined #ruby
yakko has quit [Remote host closed the connection]
chriskk has joined #ruby
havenn has joined #ruby
sepp2k has joined #ruby
pngl has quit [Ping timeout: 260 seconds]
<Azure> Probably should've gist'd it in the first place: https://gist.github.com/4422022
vlad_starkov has joined #ruby
joeycarmello has quit [Ping timeout: 265 seconds]
joofsh has quit [Remote host closed the connection]
xaq has joined #ruby
Takehiro has quit [Remote host closed the connection]
hybris has joined #ruby
wallerdev has joined #ruby
jds has joined #ruby
kamsky has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<kamsky> hey guys, quick question, in a class, public methods have to be defined before private ones?? cause after labeling a method private and writing a new one underneath, looks like the last one is also private
<banisterfiend> kamsky: because your'e not labelling a method prviate
<banisterfiend> you're changing the visibility flag to prviate
<banisterfiend> private
<banisterfiend> so it applies to all subsequently defined methods
gyre007 has quit [Ping timeout: 255 seconds]
<banisterfiend> kamsky: if u want to just define a single method as private then use: private method_name
<kamsky> banisterfiend: I see
<banisterfiend> where method_name is the method's name as a symbol
<banisterfiend> e.g: private :my_method
<jasonh> i had no idea that ruby supported that
pngl has joined #ruby
<kamsky> and that private :my_method is underneath all the methods?
<banisterfiend> kamsky: no it can be wherever, just make sure it's AFTER the method you want to make private
<kamsky> banisterfiend: thanks, Ima try it
lazyPower has quit [Remote host closed the connection]
<kamsky> banisterfiend: cool, works like a charm, thx!
thufir_ has left #ruby [#ruby]
<TheEmpty> also there is a public keyword too
sailias has joined #ruby
<TheEmpty> class A; private; def a; end; public; def b; end; end;
<TheEmpty> private and public are functions too :) pretty cool, not keywords like I said before
<kamsky> TheEmpty: yeah but I think banisterfiend's solution is neater
<banisterfiend> kamsky: i typically define a method as private immediately after it's definition
<kamsky> yeah that's what I did
<kamsky> that's fixed, now Im having a different issue, nothing to do with that thing tho
<banisterfiend> its*
<jasonh> 3
generalissimo has joined #ruby
jds has quit [Ping timeout: 244 seconds]
<banisterfiend> kamsky: use pry to debug it :P
atyz has joined #ruby
<kamsky> so Im using RVM, I created a specific gemset for my project and installed packetfu, all this was done as a regular user. Thing is that I need my program to be executed as root, but when I do it (sudo) I get an error when requiring packetfu, this doesnt happens if I run it as the regular user.
<kamsky> happen*
daro_ has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
Jessykinz has joined #ruby
<kamsky> never mind
<kamsky> rvmsudo
atyz has quit [Ping timeout: 255 seconds]
RagingDave has quit [Quit: Ex-Chat]
mmitchell has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
browndawg has left #ruby [#ruby]
<TheEmpty> I really feel it should be Object#responds_to? instead of #respond_to?
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Tarential has quit [Ping timeout: 244 seconds]
joeycarmello has joined #ruby
forced_request has joined #ruby
F1skr has joined #ruby
daniel_- has quit [Ping timeout: 244 seconds]
Guest61103 is now known as graft
pen has quit [Read error: Connection reset by peer]
mmitchell has quit [Ping timeout: 245 seconds]
pen has joined #ruby
havenn has quit [Ping timeout: 255 seconds]
<Hanmac> there is a respond_to_missing? too :P
<waxjar> yeah
<waxjar> oh, that was not a question :p
Xeago has quit [Ping timeout: 245 seconds]
Tarential has joined #ruby
vlad_starkov has joined #ruby
<shevy> waxjar hehehe
yfeldblum has quit [Ping timeout: 244 seconds]
Pip has joined #ruby
<Pip> How is Ruby.20?
<Pip> *2.0
<jasonh> previewy.
mjolk has joined #ruby
mjolk is now known as Guest23982
pngl has quit [Ping timeout: 246 seconds]
daniel_- has joined #ruby
<shevy> Pip years away
<seanstickle> Coming out in 2013
<seanstickle> So … not years per se.
<breakingthings> It's hidden in my basement
<breakingthings> you'll never see it again
<waxjar> february i believe?
* breakingthings runs off cackling
alexspeller has quit [Remote host closed the connection]
<banisterfiend> it's coming out in february yeah
vlad_starkov has quit [Remote host closed the connection]
Takehiro has joined #ruby
<Pip> Will it be amazing?
<seanstickle> Pip: yes
<shevy> Pip will you use it?
<waxjar> there are some new features, Refinements and keyword arguments being the most prominent i believe
<Pip> shevy, yes
<Pip> But now, I need to learn Ruby
<Pip> so please recommend nice material
<Pip> I'm just going to start
mockra has joined #ruby
xaq has quit [Remote host closed the connection]
<shevy> hmm
<shevy> the ruby section... where is it
<shevy> "learn to program" is down :(
wargasm has quit [Ping timeout: 255 seconds]
<TheEmpty> Oh we get named arguments?
<shevy> Pip check on http://pine.fm/LearnToProgram/ again later, it's a nice but good tutorial covering the basics
<Pip> shevy, I'm not a newbie in programming
<Pip> I already know Java
<TheEmpty> I <3 named arguments, makes it clear what the variable is. Not the best when it's an API call.
F1skr has quit [Quit: WeeChat 0.3.9.2]
spacemud has quit [Quit: ZNC - http://znc.in]
<TheEmpty> match.start(4, 6, true) # min, max, debug
<Pip> shevy, Do you know RubyMonk?
spacemud has joined #ruby
<shevy> Pip dont get misled by the title
justincampbell has quit [Ping timeout: 244 seconds]
<shevy> it runs you through ruby
<shevy> then you must start to "think" in ruby and write your own scripts
<Pip> shevy, what runs me through ruby?
<shevy> the tutorial does, yeah
<shevy> but it's down :(
<Pip> learn to program?
<shevy> I have no idea what is a RubyMonk
<shevy> yea Pip
<Pip> Okay, I have that book
<Pip> :D
<shevy> I used the pickaxe back then
<seanstickle> shevy: http://rubymonk.com/
<Pip> How long do you think I can read it?
<shevy> but I no longer use it, I use my local documentation
Takehiro has quit [Ping timeout: 245 seconds]
<seanstickle> I dislike the Pickaxe book mightily
generali_ has joined #ruby
<Pip> shevy, what document?
<shevy> Pip you can always learn something new. if you start writing .rb scripts, I think in a few days you can write a few good scripts in an OOP fashion
<shevy> seanstickle there was not that much choice available :( the standard lib documentation is nice, with examples and such
<aedorn> mmm. feel the class coupling. feel it!
<seanstickle> I like the draft ISO spec
<waxjar> i did _why's poignant guide about halfway in, then started googling
<seanstickle> That helped me learn Ruby fast and deeply
<seanstickle> _why's thing drove me nuts.
<seanstickle> Avoided at all cost.
<waxjar> hehe
<Pip> What about the BOOK?
<waxjar> what book?
<Pip> TRPL
<Pip> By Matz
horofox has joined #ruby
<seanstickle> Pip: That's pretty good
<Pip> Is it for Ruby starters?
<shevy> yeah
<seanstickle> Pip: try the ISO draft spec
<shevy> I disliked the _why book a lot, it confused me
<seanstickle> Pip: it's super effective
generalissimo has quit [Ping timeout: 244 seconds]
LyonJT has quit [Quit: Leaving...]
<shevy> this seems kinda overkill to suggest an ISO spec :D
<Pip> seanstickle, where is it?
bean has joined #ruby
<seanstickle> shevy: that's how I learned Ruby
<seanstickle> Pip: Google can point the way
<Pip> ok
<seanstickle> Or this, if you get lost
<aedorn> hmmm.. never read the draft before. Only 311 pages.. maybe I'll read it today.
havenn has joined #ruby
thatguycraig has quit [Quit: Leaving.]
<seanstickle> aedorn: It's really quite good
adeponte has quit [Remote host closed the connection]
joofsh has joined #ruby
<Pip> it's not the latest version, is it?
<seanstickle> Pip: Nope.
<seanstickle> Pip: but the differences are negligible
<seanstickle> Pip: and you'll understand Ruby quite profoundly
jibi has joined #ruby
syamajala has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
yfeldblum has joined #ruby
wallerdev has quit [Quit: wallerdev]
mmitchell has joined #ruby
wallerdev has joined #ruby
pkrnj has joined #ruby
<aedorn> yeah, it's not too bad. Up to 106 now.. read the rest in a bit
<rakl> I want to set a variable "url" = request.path.split("/")[3] unless request.path.split("/")[3] == "index.html" in which case I want to set url = "Introduction". Is there a method to do this instead of a conditional or a case statement?
generalissimo has joined #ruby
headius has joined #ruby
grzywacz has joined #ruby
<fowl> rakl: url = that; url = "Introduction" if url == "index.html"
generali_ has quit [Read error: Connection reset by peer]
<rakl> ok, i like that. I was hoping I could use a ternary, but I guess this is simpler
grzywacz has quit [Client Quit]
generalissimo has quit [Read error: Connection reset by peer]
<Hanmac> url = ((url = request.path.split("/")[3]) == "index.html" ? "Introduction" : url)
horofox has quit [Quit: horofox]
generalissimo has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
<rakl> thanks Hanmac… guess fowl's is better :)
dnyy has quit [Read error: Connection reset by peer]
_dnyy has joined #ruby
jamescarr has joined #ruby
pcarrier has quit []
pcarrier has joined #ruby
<jamescarr> frown
<jamescarr> The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`.
tpelletier has quit [Ping timeout: 245 seconds]
toekutr has joined #ruby
atyz has joined #ruby
<fowl> jamescarr: thats weird that your gcc isn't gcc
<jamescarr> I am on OSX?
<jamescarr> Mountain Lion
<fowl> jamescarr: its still weird.
<jamescarr> 1.9.3 compiles
<Hanmac> you should feel ashamed for that
<jamescarr> :)
<Hanmac> i mean for OSX
horofox has joined #ruby
atyz has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
generalissimo has quit [Remote host closed the connection]
<Hanmac> jamescarr what ruby version did you load? i heard the recent has many problems
<jamescarr> 1.9.2
<jamescarr> Hanmac: I found a blog post about updates in Xcode that break with 1.9.2
<jamescarr> Ruby 'ruby-1.9.3-p327' was built using clang - but it's not (fully) supported, expect errors.
<jamescarr> ffffffuuuuuuu
<jamescarr> I thought all the ruby hipsters used macs? :)
<jamescarr> every time I've seen rubyists at conferences at least
<Hanmac> thats what television told you
<aedorn> Love my anti-mac Sager.
havenn has quit [Ping timeout: 245 seconds]
<emocakes> macs are better hanmac
<emocakes> they dont get virus
<emocakes> and stuff
<emocakes> because they have this thing called unix
<emocakes> or something
<emocakes> i saw it on tv
<emocakes> i have norton on my windows pc and it doesnt work
<jamescarr> I've used linux for a decade… just got a new mac book air for christmas :)
<aedorn> although... yeah, when I was Ruby Conf this year .. dear lord, so many macs. I think only about 30 people didn't have one
<Hanmac> my system does not get virus too, because i live on a bleeding-nightly-edge, with rocket enigne :P
<aedorn> and then you look at screencasts, and most of those people use macs
<ruzu> linux linux linux
<Hanmac> aedorn i think they only buy the mac for the RubyConf and for screencasts ... :P
adeponte has joined #ruby
<aedorn> meh.. I do want an ultrabook though. The best part is: I don't know why.
* Hanmac smells the aura of "group pressure"
<aedorn> noooo, not group pressure
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
<lupine> *so many*macs in rubyworld
mercwithamouth has joined #ruby
<lupine> it confuses me, as I'm much less productive on them
<aedorn> maybe tech addiction
<aedorn> but that's okay... I would never buy one. I want one, but I wouldn't buy one. ;)
emsilva has quit [Ping timeout: 276 seconds]
emsilva has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
becom33 has quit [Ping timeout: 255 seconds]
Pip has left #ruby ["Leaving"]
delinquentme has quit [Quit: Leaving]
ewag has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
nyuszika7h has quit [Remote host closed the connection]
alexspeller has joined #ruby
nyuszika7h has joined #ruby
lateau has quit [Remote host closed the connection]
77CAAAFLO has joined #ruby
77CAAAFLO has quit [Remote host closed the connection]
otters has quit [Remote host closed the connection]
lateau has joined #ruby
alexspeller has quit [Ping timeout: 252 seconds]
lateau has quit [Remote host closed the connection]
otters has joined #ruby
kiyoura has joined #ruby
lateau has joined #ruby
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
error_code has quit [Quit: error_code]
kokainepizza has joined #ruby
lateau has quit [Remote host closed the connection]
cableray has joined #ruby
lupine is now known as RJ11_
lateau has joined #ruby
RJ11_ is now known as lupine
<kamsky> is it possible/advisable to use the ternary operator when I wanna execute more than 1 instruction in the if-true or if-false clause ??
<breakingthings> no on both accounts
wermel has quit [Remote host closed the connection]
<waxjar> boolean ? method(arg) and method(arg) : method(arg)
<kamsky> breakingthings: I see, so any alternative to beatufy this ugly if-else? http://pastie.org/5603498
nomenkun has quit [Remote host closed the connection]
<kamsky> beautify*
<breakingthings> waxjar hath prove me wrong on the possible count
LouisGB has quit [Ping timeout: 244 seconds]
<kamsky> what?
<waxjar> && would work too
<breakingthings> http://pastie.org/5603506
<breakingthings> I'm a ruby fledgling so I'm sorta assuming functionality here
<breakingthings> but since your script is exiting if it passes the conditional, you don't need an else.
<kamsky> that's 1 less line that mine
<kamsky> :p
<breakingthings> makes more sense, though.
<breakingthings> and from there you can reduce
<seanstickle> Even shorter
vlad_starkov has joined #ruby
<breakingthings> http://pastie.org/5603518 and you could theoretically do something like this, I think
<breakingthings> but i think that makes it harder to read
vlad_starkov has quit [Read error: Connection reset by peer]
<breakingthings> but since you're exiting on condition there's no need for an else, and you don't need to compare with .nil? as nil is falsey
<seanstickle> A ternary for a (printout and an exit) would be terrible
<breakingthings> yeah.
lepht_afk is now known as lepht
<seanstickle> You're not paying by the character
<kamsky> that's what I wanted to know seanstickle, thanks
<breakingthings> brb codegolf
assurbanipal_ has quit [Read error: Connection reset by peer]
fowl has left #ruby ["Leaving"]
<shevy> every character comes at a price
Guest23982 has quit [Quit: This computer has gone to sleep]
<shevy> if you wanna be cheap, use java
vlad_starkov has joined #ruby
<waxjar> i don't like the "assignment in an if clause" thing at all
<shevy> the postconditionals?
<shevy> hmm but you can omit "end"
<shevy> x = y if waxjar.is_a? HappyMan
oktapodi_ has quit [Remote host closed the connection]
<breakingthings> agreed with waxjar.
<breakingthings> I think what I gave was the most readable solution so far
assurbanipal_ has joined #ruby
oktapodi has joined #ruby
<shevy> puts "\t[-] Could not retrieve #{ip} MAC address!" and exit 0 unless mac
<shevy> hmm I dont like that exit has no () there
Guest25886 has quit [Quit: Guest25886]
<breakingthings> I said that earlier
mengu has quit [Quit: Konversation terminated!]
postmodern has joined #ruby
<breakingthings> I think it makes it harder to read
daniel_- has quit [Quit: WeeChat 0.3.9.2]
<shevy> my brain needs extra time for that
<waxjar> i'd just change the unless mac to if mac.nil?
<shevy> same with:
<shevy> def foo a b c d
mockra has quit [Remote host closed the connection]
<shevy> uhm
<breakingthings> waxjar: why?
<shevy> def foo a, b, c, d
<waxjar> because i know from just reading that if statement a boolean will be returned
<kamsky> waxjar: that's how I had it at the beginning removing the else: http://pastie.org/5603498
fourq has quit [Quit: leaving]
<shevy> hey... when I have Red Green Blue... let's say, Red 200, Green 0 Blue 0 ... how can I convert this into a "hex string"?
<shevy> I just realize, I don't even know what is a "hex string" really
LouisGB has joined #ruby
x82_nicole has joined #ruby
<waxjar> yeah i like that best kamsky
atyz has joined #ruby
<waxjar> some whitespace between mac = … and mac. damn sexy :p
<breakingthings> I guess I'd just remove the else then.
<Hanmac> shevy: [200,0,0].map{|i|"%0.2x" % i}.join
nwertman has quit [Ping timeout: 265 seconds]
<breakingthings> Though you'd be best off making it an exception and handling it in an OO manner :)
iamjarvo has quit [Quit: Leaving.]
<shevy> hmm cool... "%0.2x", thanks Hanmac
oktapodi has quit [Remote host closed the connection]
<waxjar> through really, the PacketFu thing should throw an exception when it can't find the MAC address
<waxjar> *though
<breakingthings> good point
<kamsky> it doesn't, it just returns nil
<Hanmac> shevy you could do it otherwise too: ("%0.2x" * 3) % [200,0,0]
seanstickle has quit [Quit: seanstickle]
nwertman has joined #ruby
<breakingthings> kamsky well that is just silly of it.
<shevy> wow
<kamsky> breakingthings: I know, but i didnt write that module, just using it!
<breakingthings> :)
<waxjar> isn't exit 0 for programs that terminated without errors?
maletor has joined #ruby
xaq has joined #ruby
atyz has quit [Ping timeout: 265 seconds]
* kamsky is changing all the exits 0 to exits 1
<Hanmac> shevy or when you want more named stuff: "%<red>0.2x%<green>0.2x%<blue>0.2x" % {:red => 200, :green => 0, :blue => 0 }
<shevy> hehe
<shevy> you always try to include a named-example, don't you :)
yfeldblum has quit [Ping timeout: 245 seconds]
friskd has quit [Quit: friskd]
<Hanmac> 1) named-examples are cool, 2) and do not work on 1.8 :D
<shevy> yeah
<shevy> good that they are also longer
nwertman has quit [Ping timeout: 264 seconds]
nwertman has joined #ruby
nomenkun has joined #ruby
joofsh has quit [Remote host closed the connection]
assurbanipal_ has quit [Quit: Leaving]
Umren|2 has quit [Read error: Connection reset by peer]
Jacob_ has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
Jacob_ has quit [Read error: Connection reset by peer]
Jacob_ has joined #ruby
Jacob_ has quit [Remote host closed the connection]
Jacob_ has joined #ruby
Jacob_ is now known as Guest73749
nwertman has joined #ruby
Guest73749 is now known as ecksit
DaZ has quit [Ping timeout: 264 seconds]
zastern has quit [Remote host closed the connection]
baphled has joined #ruby
DaZ has joined #ruby
johnnyporkchop has joined #ruby
mmitchell has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 276 seconds]
friskd has joined #ruby
friskd has quit [Client Quit]
<aedorn> hmm, think my GPUs are shot. Well. That is certainly annoying
nwertman has joined #ruby
squidBits has quit [Ping timeout: 255 seconds]
emsilva has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
blacktulip has quit [Remote host closed the connection]
arya_ has joined #ruby
s1n4 has joined #ruby
arya has quit [Ping timeout: 260 seconds]
rondale_sc has quit [Quit: rondale_sc]
digifiv5e has quit [Quit: quit]
samphippen has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
samphippen has joined #ruby
emsilva has joined #ruby
kn330 has quit [Ping timeout: 245 seconds]
samphippen has quit [Client Quit]
ewag has quit [Ping timeout: 276 seconds]
samphippen has joined #ruby
havenn has joined #ruby
DaZ is now known as ania12lat
fourq has joined #ruby
samphippen has quit [Client Quit]
kn330 has joined #ruby
CodeVision has quit [Ping timeout: 264 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
bluehavana_ is now known as bluehavana
xaq has quit [Remote host closed the connection]
joshman_ has quit [Quit: Computer has gone to sleep.]
error_code has joined #ruby
krawchyk has quit [Remote host closed the connection]
ecksit has quit [Quit: Gone to sleep.]
Takehiro has quit [Ping timeout: 276 seconds]
marr has quit []
atyz has joined #ruby
rvmeier has quit [Quit: Leaving]
Driscoll has joined #ruby
n3lthon has joined #ruby
<n3lthon> hi
kn330 has quit [Remote host closed the connection]
<n3lthon> what is the easy way to compile from source on debian squeeze and manage multiple versions?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<n3lthon> for me is better to put in /opt/ but how can i make bin files available without changing the path
<n3lthon> ?
atyz has quit [Ping timeout: 244 seconds]
<Hanmac> n3lthon how many different ruby versions do you need? because if you need only two you could use update-alternatives --config ruby
baphled has quit [Ping timeout: 255 seconds]
carlyle has quit [Remote host closed the connection]
<n3lthon> Hanmac: I only need one version but an easy way to upgrade
<n3lthon> so two versions is enough, and i can keep the old if problems come
<Hanmac> install ruby1.9.1-full and use update-alternatives to switch
Neomex has joined #ruby
<havenn> n3lthon: Might want to look at chruby for switching, I love it: https://github.com/postmodern/chruby
<havenn> n3lthon: chruby installs in opt by default :)
<breakingthings> How does one… create an mvc ruby non-web application
ner0x has joined #ruby
<n3lthon> Hanmac: can you tell me more about update-alternatives?
cableray has quit [Quit: cableray]
<Hanmac> update-alternatives is for switching the system version of things ... like switch ruby to ruby1.9.1 or java to java7
kuzushi has quit [Ping timeout: 260 seconds]
<havenn> breakingthings: You can still use WebKit for the view, or use a GUI API like Cocoa or tk, or wx or whatev.
<havenn> breakingthings: Oh, I'm thinking mac. What os you targeting?
shammancer has quit [Quit: Leaving.]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<breakingthings> havenn: none, I guess more specifically what I am asking is if there is an MVC non-web framework
<breakingthings> or if you're just expected to… uh… i dunno, use include's
Neomex has quit [Quit: Neomex]
shammancer has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby
Driscoll has quit [Ping timeout: 265 seconds]
mmitchell has joined #ruby
headius has quit [Quit: headius]
phantasm66 has quit [Quit: *sleeeep….]
<n3lthon> Hanmac: the binaries files has 1.9.1 like ruby1.9.1
The_8472 has quit [Changing host]
The_8472 has joined #ruby
kuzushi has joined #ruby
_dnyy has quit [*.net *.split]
QKO has quit [*.net *.split]
lkba has quit [*.net *.split]
adkron has quit [*.net *.split]
kirun has quit [*.net *.split]
kuranai_off has quit [*.net *.split]
moshee has quit [*.net *.split]
hderms has quit [*.net *.split]
jessta has quit [*.net *.split]
Hanmac has quit [*.net *.split]
locriani has quit [*.net *.split]
dv_ has quit [*.net *.split]
cespare has quit [*.net *.split]
mkillebrew has quit [*.net *.split]
nuba has quit [*.net *.split]
rmc3 has quit [*.net *.split]
araujo has quit [*.net *.split]
wildcard0 has quit [*.net *.split]
JoeHazzers has quit [*.net *.split]
krnlsndrs has quit [*.net *.split]
shaman42 has quit [*.net *.split]
GlenK has quit [*.net *.split]
nmeum has quit [*.net *.split]
rking has quit [*.net *.split]
s4muel has quit [*.net *.split]
ry4nn has quit [*.net *.split]
TheNumb has quit [*.net *.split]
__class__ has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
SeanTAllen has quit [*.net *.split]
perun_ has quit [*.net *.split]
matled has quit [*.net *.split]
Fraeon has quit [*.net *.split]
joschi_ has quit [*.net *.split]
IRLConor has quit [*.net *.split]
Koshian has quit [*.net *.split]
jso has quit [*.net *.split]
zcl0ud has quit [*.net *.split]
asuka has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
jbpros has quit [*.net *.split]
matled has joined #ruby
shaman42 has joined #ruby
Fraeon has joined #ruby
rmc3 has joined #ruby
GlenK has joined #ruby
asuka has joined #ruby
TheNumb has joined #ruby
moshee has joined #ruby
joschi_ has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mkillebrew has joined #ruby
adkron has joined #ruby
wildcard0 has joined #ruby
nuba has joined #ruby
jessta has joined #ruby
JoeHazzers has joined #ruby
IRLConor has joined #ruby
hderms has joined #ruby
QKO has joined #ruby
WanderingGlitch has joined #ruby
krnlsndrs has joined #ruby
kirun has joined #ruby
pdtpatrick has joined #ruby
Hanmac has joined #ruby
Koshian has joined #ruby
kuranai_off has joined #ruby
cespare has joined #ruby
dnyy has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
s4muel has joined #ruby
locriani has joined #ruby
SeanTAllen has joined #ruby
nmeum has joined #ruby
rking has joined #ruby
perun_ has joined #ruby
iamjarvo has joined #ruby
__class__ has joined #ruby
jso has joined #ruby
dv_ has joined #ruby
jbpros has joined #ruby
<n3lthon> Hanmac: the binaries files has 1.9.1 like ruby1.9.1
<Hanmac> yeah what is the problem?
<n3lthon> passenger will detect ruby by default or i need to do something else?
Nisstyre-laptop has joined #ruby
<postmodern> debian packages use "1.9.1" to mean" ruby >= 1.9.1
<postmodern> since we skipped 1.9.0
Driscoll has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jamescarr has quit [Quit: jamescarr]
emmanuel__ has joined #ruby
emmanuelux has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
nomenkun has quit [Remote host closed the connection]
<Hanmac> postmodern hm the link is half wrong, because you dont need update-alternatives --install , because its allready installed
lkba has joined #ruby
mockra has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
<Hanmac> since Ubuntu 12.10 ruby1.9.3 is the default ruby when you install the ruby meta packages
<postmodern> Hanmac, ah didn't know 12.10 finally switched over
jrajav has joined #ruby
<postmodern> Hanmac, I've only used 12.04 via VMs
_cheney has quit [Ping timeout: 260 seconds]
breakingthings has quit []
<Hanmac> on 12.04 you need to switch via update-alternatives, but you dont need to install it with --install
_cheney has joined #ruby
alanp_ has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
mmitchell has quit [Remote host closed the connection]
alanp_ is now known as alanp
samuel02 has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
OldOats has joined #ruby
fourq has quit [Quit: leaving]
seanstickle has joined #ruby
mockra has quit [Remote host closed the connection]
Michael has joined #ruby
Michael is now known as Guest59765
Vert has joined #ruby
sailias has quit [Quit: Leaving.]
OldOats has quit [Client Quit]
notVert_ has quit [Ping timeout: 252 seconds]
Vert has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
alcuadrado has joined #ruby
gnul0ver has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
error_code has quit [Quit: error_code]
stopbit has quit [Quit: Leaving]
elico has joined #ruby
atyz has joined #ruby
joofsh has joined #ruby
denken has quit [Quit: leaving]
<alcuadrado> Hey! I want to teach my little brother how to program, and think hackety hack may be a good way to do it. Is the project live despite _why's gone missing?
denken has joined #ruby
<IceDragon> alcuadrado: I think someone else took it over, so yes.
atyz has quit [Ping timeout: 264 seconds]
<alcuadrado> great :D
nwertman has quit [Ping timeout: 255 seconds]
Guest59765 has quit [Remote host closed the connection]
ehm_may has joined #ruby
nwertman has joined #ruby
xaq has joined #ruby
jds has joined #ruby
jds has quit [Remote host closed the connection]
ehm_may has quit [Quit: Leaving...]
allsystemsarego has quit [Quit: Leaving]
jds has joined #ruby
seanstickle has quit [Quit: seanstickle]
otters has quit [Remote host closed the connection]
jds has quit [Read error: No route to host]
jds has joined #ruby
sailias has joined #ruby
<n3lthon> Hanmac: I cant execute gems binaries
ehm_may has joined #ruby
<Hanmac> does update-alternative for gem too
<n3lthon> i can install gems
<n3lthon> but their executables are not available in path
nazty has quit [Read error: Connection reset by peer]
ehm_may has quit [Client Quit]
<n3lthon> in my case passenger-install-apache2-module
adkron has quit [Ping timeout: 252 seconds]
<waxjar> how did you install ruby?
<emocakes> with an installler
<IceDragon> platform?
<n3lthon> debian squeeze
<emocakes> @ waxjar
<n3lthon> apt-get install ruby1.9.1-full
<Hanmac> n3lthon does "gem env"
<IceDragon> echo $PATH # ? and maybe just add the ruby/bin path
the_jeebster has joined #ruby
woolite64 has joined #ruby
<n3lthon> /var/lib/gems/1.9.1/bin
<the_jeebster> does anyone have experience parsing word documents with ruby? I assume I can't simply use the File class
superbot has quit [Ping timeout: 245 seconds]
nazty has joined #ruby
<IceDragon> the_jeebster, word docs? depends on the version, 2007+ uses an ZIP + XML format
jds has quit [Remote host closed the connection]
<n3lthon> update alternatives cant add it to the path?
<the_jeebster> IceDragon: interetring. so I could use an xml parser for the job?
<the_jeebster> not too sure about messing aronud with POI
nignaztic has joined #ruby
<IceDragon> possibly.
<IceDragon> extract the .docx, and then take a look at it
<the_jeebster> I hope open office can export as xml :)
<IceDragon> open office should be able to save docx files
<Hanmac> n3lthon its maybe a problem if the distry ... my gem env shows: "EXECUTABLE DIRECTORY: /usr/local/bin"
<the_jeebster> ahh that's what the x is for! hehe
<the_jeebster> I'd have to convert a ton of documents anyways…I'll try that out, thanks for the tip
nwertman has quit [Ping timeout: 244 seconds]
<IceDragon> np
freakazoid0223 has joined #ruby
Takehiro has joined #ruby
swex has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
swex_ has quit [Ping timeout: 260 seconds]
s1n4 has quit [Ping timeout: 265 seconds]
gnul0ver has quit [Quit: Leaving]
Takehiro has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 265 seconds]
ltsstar has quit [Quit: ltsstar]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
alanjc has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
superbot has joined #ruby
flagg0204 has quit [Quit: Changing server]