apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
jerius_ has joined #ruby
RTG` has quit [Read error: Connection reset by peer]
jerius_ has quit [Max SendQ exceeded]
RTG` has joined #ruby
jerius_ has joined #ruby
echevemaster has joined #ruby
shime has quit [Ping timeout: 250 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
burlyscudd has joined #ruby
blaskovicz has quit [Quit: Leaving.]
pen has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pen has joined #ruby
butblack has joined #ruby
drag00n has quit [Ping timeout: 246 seconds]
osvico has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 260 seconds]
pencilcheck has joined #ruby
DeProdigy has quit [Ping timeout: 264 seconds]
lewix has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
mlpinit has joined #ruby
Al__ has quit [Quit: Al__]
jerius has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Quit: Leaving]
pen has quit [Ping timeout: 264 seconds]
mlpinit has quit [Client Quit]
kaldrenon has joined #ruby
preller has quit [Ping timeout: 248 seconds]
samsonasu has quit [Quit: samsonasu]
ssvo_ has joined #ruby
burlyscudd has quit [Ping timeout: 250 seconds]
ssvo has quit [Ping timeout: 245 seconds]
fedesilva has joined #ruby
anomaly_ has quit [Remote host closed the connection]
anomaly_ has joined #ruby
jerius_ has quit []
ss_ has joined #ruby
pencilcheck has quit [Remote host closed the connection]
lewix has joined #ruby
preller has joined #ruby
lewix has quit [Remote host closed the connection]
p4d4w4n has joined #ruby
lewix has joined #ruby
ddd has joined #ruby
esing has quit [Ping timeout: 250 seconds]
hogeo has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
mudmaste_ has quit [Ping timeout: 245 seconds]
jkhwan has quit [Remote host closed the connection]
esing has joined #ruby
esing has quit [Changing host]
esing has joined #ruby
DeProdigy has joined #ruby
rootshift has joined #ruby
allaire has joined #ruby
lewix has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
lmickh has quit [Quit: lmickh]
<Delobox> if 0 then
esing has quit [Remote host closed the connection]
<Delobox> puts "WTF"
<Delobox> end
jtgiri_ has joined #ruby
nari has quit [Ping timeout: 246 seconds]
lethjakman has joined #ruby
<LadyRainicorn> Only nil and false are false.
Nahra has quit [Quit: leaving]
<LadyRainicorn> 0 is true.
jkhwan has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
Bira has joined #ruby
<Delobox> i'm so happy i am taking the trouble to go through these koans
<lethjakman> hey, I want to make a variable on the class that I can inherit. I'm not sure how I'd do that though. any ideas/
mudmaster has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<lethjakman> I don't want it to be the same in ALL instances of the class though.
nobitanobi has quit [Quit: Leaving]
ssvo_ has quit [Ping timeout: 248 seconds]
Meistarin has quit [Read error: Connection reset by peer]
Bira has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
Barrin6 has joined #ruby
Barrin6 has quit [Max SendQ exceeded]
Barrin6 has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
ssvo has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
vt102 has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
<LadyRainicorn> What do you mean?
Bira has joined #ruby
joshwines_ has joined #ruby
blaskovicz has joined #ruby
<LadyRainicorn> Does def obj.var() 2.718; end do what you want?
carif has joined #ruby
Mage_Dude has left #ruby [#ruby]
Meistarin has joined #ruby
flubba has quit [Remote host closed the connection]
<LadyRainicorn> It will override a method you place on the class
hogeo has quit [Remote host closed the connection]
<LadyRainicorn> @lethjakman
hogeo has joined #ruby
zz_karupanerura is now known as karupanerura
<LadyRainicorn> Or do you mean like @@classvar?
timonv has joined #ruby
nomadicoder has quit [Quit: Leaving]
guyz has quit [Ping timeout: 245 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
Nahra has joined #ruby
Kruppe has joined #ruby
prc1 has joined #ruby
iliketur_ has joined #ruby
digifiv5e has joined #ruby
crashx has quit [Quit: crashx]
iliketur_ has quit [Max SendQ exceeded]
digifiv5e is now known as Guest50931
iliketur_ has joined #ruby
<lethjakman> LadyRainicorn: I want default variables on a class when it's inherited
<lethjakman> like default_var = true
<lethjakman> then I can over ride it in the inherited methods
<lethjakman> not methods
<lethjakman> classes
<lethjakman> my bad
prc has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
hogeo has joined #ruby
<LadyRainicorn> Are these variables per-class or per-instance?
<xibalba> instance of the class
<xibalba> unless its a class varibale, then i think its global to all
<lethjakman> LadyRainicorn: per instance of the class.
s2013 has quit [Ping timeout: 264 seconds]
cgore has joined #ruby
d2dchat has joined #ruby
pwestlund has quit [Ping timeout: 245 seconds]
mmcdaris has joined #ruby
frekt has quit [Quit: This computer has gone to sleep]
saarinen has quit [Quit: saarinen]
peregrine81 has quit []
dhruvasagar has quit [Ping timeout: 245 seconds]
pwestlund has joined #ruby
bbloom has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn> I think you can set a constant and then use singleton_class.const_set
preller has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
cescalante is now known as ce_afk
ehc has quit [Quit: ehc]
<lethjakman> hmmm ok. that's smart. thank you :)
<lethjakman> also awesome name. I love adventure time.
pen has joined #ruby
cmedeiros has quit [Ping timeout: 252 seconds]
culturel_ has joined #ruby
lkba has joined #ruby
preller has joined #ruby
mudmaster has quit [Ping timeout: 248 seconds]
steve____ has joined #ruby
lewix has joined #ruby
tharindu has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
s2013 has joined #ruby
hogeo has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
sergicles has joined #ruby
tjbiddle_ has joined #ruby
dhruvasagar has joined #ruby
robustus has joined #ruby
<LadyRainicorn> Just installed Ruboto to try this, and it doesn't work ;-;
predator217 has joined #ruby
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
<LadyRainicorn> Which is kind of weird actually.
preller has quit [Ping timeout: 248 seconds]
volty has quit [Quit: Konversation terminated!]
<LadyRainicorn> Becausw it seems like it really should.
mudmaster has joined #ruby
vlad_starkov has joined #ruby
colonolGron has quit [Quit: leaving]
<LadyRainicorn> `def var() @var || VAR; end` is the closest I can think of.
shadoi has joined #ruby
robustus|Off has quit [Ping timeout: 245 seconds]
jacobsmith has joined #ruby
predator117 has quit [Ping timeout: 265 seconds]
reset has joined #ruby
rootshift has quit [Quit: rootshift]
felixjet_ has joined #ruby
peregrine81 has joined #ruby
jtgiri_ has joined #ruby
AMcP has quit [Remote host closed the connection]
DeadlyKitty has joined #ruby
jerikl has joined #ruby
Thanatermesis has joined #ruby
preller has joined #ruby
hogeo has joined #ruby
felixjet__ has quit [Ping timeout: 265 seconds]
|jemc| has quit [Ping timeout: 250 seconds]
okinomo has quit [Ping timeout: 250 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
felixjet has joined #ruby
juarlex has joined #ruby
jerikl has quit [Client Quit]
pel_daniel has left #ruby [#ruby]
tjbiddle has quit [Quit: tjbiddle]
felixjet_ has quit [Ping timeout: 246 seconds]
iliketur_ has quit [Quit: zzzzz…..]
preller has quit [Ping timeout: 245 seconds]
<DeadlyKitty> What are practical uses for Ruby?
sambao21 has quit [Quit: Computer has gone to sleep.]
anomaly_ has quit [Read error: Connection reset by peer]
<guilund> yes i have this doubt too, out of rails, where ruby can be used?
<yfeldblum> DeadlyKitty: websites, configuration management, scripting
anomaly_ has joined #ruby
<yfeldblum> DeadlyKitty: editors
AlSquire has quit [Quit: This computer has gone to sleep]
<DouweM> outside of Rails, scripting is the primary use case
<DouweM> (Rails, Sinatra etc. web frameworks in general)
<yfeldblum> DeadlyKitty: automation
culturel_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<yfeldblum> DeadlyKitty: process monitors (god, bluepill)
nari has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<DouweM> There's also RubyMotion if you want to build iOS/Mac apps
jamesaanderson has joined #ruby
tkuchiki has joined #ruby
<DeadlyKitty> yfeldblum: oh cool. Thanks
jamesaanderson has quit [Max SendQ exceeded]
<guilund> Whats the language to program for example, an automated drone, ruby can be used?
jamesaanderson has joined #ruby
culturel_ has joined #ruby
AlSquire has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<DouweM> guilund: you'd need an embedded language for those, where C is the most popular. There is work being done on an embedded version of Ruby though, mruby, so you might in the future
<LadyRainicorn> In theory, but you would likely want to use something faster.
AlSquire has quit [Client Quit]
preller has joined #ruby
<guilund> hmmm interesting
flubba has joined #ruby
<guilund> i remember when i was 12 i programmed a small robot that never get stuck in anything using some homemade sensors (like antenas to short circuit) and change the direction
b00stfr3ak has quit [Ping timeout: 272 seconds]
<guilund> but i programmed using wires
<guilund> and short circuits
<guilund> lol
<DouweM> :D
sambao21 has joined #ruby
<guilund> i dont even remember if it worked
DeProdigy has quit [Ping timeout: 240 seconds]
<guilund> it was like, 17 years ago
<Delobox> perhaps it became self aware and erased your memory of its success
Bira has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
<DouweM> Delobox: Occam's Razor points in that direction
<guilund> oh god, im so naive
<Delobox> guilund: intel and contemporaries have been releasing some very nice embedded boards
<guilund> lol
michaeldeol has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
<Delobox> guilund: you dont "have" to use C if you dont want to
<Delobox> Although there is a lot of existing work out there under the arduinocopter moniker
<Delobox> gotta run, thanks for the help folks
Virtualize has joined #ruby
<Delobox> made it to the koan where you start understanding passing blocks to methods
<guilund> i think it will be the next big thing
<Delobox> and my mind said time out
<guilund> programming things
<DouweM> Delobox: cya
emocakes has quit [Quit: Linkinus - http://linkinus.com]
Delobox has quit [Quit: leaving]
CaptainJet has joined #ruby
<DeadlyKitty> Where is a good place to start learning Ruby?
<guilund> we will need an extra brain to think how to program with the environment variables
<guilund> oh god, there will be BUG
clamstar has joined #ruby
marr has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
Monie has joined #ruby
LadyRainicorn has quit [Quit: Bye]
Brolen has joined #ruby
emocakes has joined #ruby
<guilund> DeadlyKitty: tryruby.org
<guilund> DeadlyKitty: then go to rails for zombies, its a good starting point
<guilund> but its very baic
Virtualize has quit [Client Quit]
Monie has quit [Client Quit]
mudmaster has quit [Ping timeout: 240 seconds]
<guilund> DeadlyKitty: codeschool.com
<DeadlyKitty> What are zombies?
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacobsmith has quit [Quit: leaving]
<guilund> DeadlyKitty: its a web course, go to codeschool.com make an account and start learning, its a good site
<DouweM> DeadlyKitty: it's just the name of the course ;)
<DouweM> I've also heard great things about codecadamy
mudmaster has joined #ruby
<DeadlyKitty> interesting course name
reach has joined #ruby
<guilund> DouweM: they are very good at teaching
<guilund> DouweM: the guys from envy labs
mattyk has joined #ruby
<guilund> DeadlyKitty: start with the tryruby.org
<guilund> DeadlyKitty: to know a little bit of the ruby syntax
jtgiri_ has quit [Quit: jtgiri_]
<DeadlyKitty> Cool thank you guys. I'll try to get to thoes courses as soon as posable
Virtualize has joined #ruby
zeropx has quit [Ping timeout: 272 seconds]
<guilund> DeadlyKitty: do you have any background in programming?
brianpWins has quit [Ping timeout: 245 seconds]
<guilund> DeadlyKitty: if you dont have, ruby will be far more easier to get :P
<DeadlyKitty> guilund: I have worked with Javascrips and HTML+CSS
bradhe has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<guilund> DeadlyKitty: you will like ruby, i also came from front-end, actually im a designer
<DouweM> DeadlyKitty: how much experience do you have with JS?
<guilund> who started front-ending, and now i program in ruby
<DouweM> DeadlyKitty: HTML and CSS don't really count
<guilund> or at least im learning
fijimunk1i has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<lethjakman> is a .ru any different from .rb?
<DeadlyKitty> DouweM: oh they dont? Well I know them anyway. And with Javascript Ive been getting lessons from codecademy.
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<DouweM> DeadlyKitty: they're certainly useful, but they're not programming languages in the sense JS and Ruby are
<DeadlyKitty> I know how to do the functions and loops with arrays
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
<DeadlyKitty> DouweM: I see. Thank you for clearing that up for me.
ardian_ has joined #ruby
<Jamo> is there a ruby project generator (like rails g ... for rails)
w4pm has joined #ruby
<Jamo> or yeomen for angular.js and sudh
<Jamo> *such
samsonasu has joined #ruby
|jemc| has joined #ruby
<ardian_> Are you guys having problems with http://tryruby.org ? It's just not loading the output of the commands I type besides the firest one which is help, the other one just take forever to load
<guilund> Jamo: jekyll
<guilund> Jamo: oh, sorry
mercwithamouth has quit [Ping timeout: 246 seconds]
<mattyk> It's a bit dismissive to say that HTML and CSS don't matter. They are machine-interpreted source files with specific syntax rules, and well-defined semantics; they're just extremely declarative, and lack most of the user input.
<DouweM> Jamo: ruby is a programming language not a framework. you can build pretty much whatever you want with it. "a project generator" wouldn't make sense because there is no structure you need to adhere to or a base set of classes you always need
<DouweM> mattyk: yeah, "don't matter" was a bit harsh. But I was mainly asking to get a sense of their imperative programming experience
<mattyk> :)
Jetchisel has joined #ruby
<guilund> DouweM: and actually, the front-end is the most, how can i say, code intensive, part of the web
<Jamo> yep
<guilund> DouweM: my company started with front-end coding, but then, the parallax era stopped, and the css frameworks started to appear, so we had to pivot :P
tharindu is now known as tharindu|away
ardian_ has quit [Client Quit]
<mattyk> I /think/ javascript is a good jumping-off point to ruby, because the languages of both are pretty free and loose (so you can write what you want, how you want), and once you understand the difference between prototyped inheritance and ruby's tree-walking inheritance, they're actually quite similar.
<mattyk> Or even before you know that there is a difference.
<guilund> DouweM: actually we had a lot of work from Advertising agencys, and front-ending for software factories
<DouweM> guilund: what's your company?
<mattyk> In either you're free to write with as much procedural/OO/functional influence as you feel comfortable.
<Jamo> Im starting to move from rails apps to basic ruby apps. For gems there are nice stuctures, but Im looking for something to help me create projects, (like lib ans spec) directories, easily create a spec for existing file etc
spirtista has joined #ruby
<guilund> DouweM: its called Yeti, we are from Brazil. But now we are in stealth, working with regular clients
<Jamo> those are partially features I would see in almost any IDE
<guilund> DouweM: and basically im doiing everything, as my team decreased from 5 to 2
iliketur_ has joined #ruby
<DouweM> guilund: :|
<mattyk> guiland: have you ever written a http server? They can be pretty code intensive. I think front-end stuff is as heavy as it is because it's still very wild-west, with hot-shot coders and cowboys and ninjas, and lots of start-ups, and less boring old engineering.
<guilund> DouweM: its normal, business born and dies everytime, when it dies, i start another
<DouweM> guilund: fair enough
pen has quit []
<guilund> mattyk: nope, i understand what you are saying, but we live in an open source age
nanoyak has quit [Ping timeout: 245 seconds]
<guilund> mattyk: most of the stuff you need to do is already done, and the front-end is the part that changes everytime
kreisys has joined #ruby
<mattyk> guilund: only up to a point. Unless you're being truly unique (and fewer people are doing that than they'd like to believe) there are only so many widgets, and only so many ways to arrange them.
okinomo has joined #ruby
tharindu|away is now known as tharindu
ewnd9 has joined #ruby
<guilund> mattyk: we used to develop in php, it sucked EXTREME, when we discovered rails, we started doing things that took 1 week in one day
zeropx has joined #ruby
<DouweM> guilund: were you using vanilla php or some framework?
nanoyak has joined #ruby
<guilund> DouweM: codeigniter, sucks the same
<DouweM> :)
<mattyk> guiland: I don't doubt that, I find ruby much easier to develop, because matz did a good job of simplifying the language.
coca_rails has joined #ruby
<mattyk> also you don't have to remember which parameter goes first in explode()
<DouweM> lol
<guilund> lol
<guilund> DouweM: where do you work?
<mattyk> At a previous company we switched from Tomcat/Glassfish to Ruby+Sinatra. That was an eye-opener for me.
<DouweM> guilund: got my own company, we build Stinngo (stinngo.com)
eka has quit [Quit: Computer has gone to sleep.]
<guilund> DouweM: some day i will have time to build my own product
<guilund> DouweM: its my deam
<DouweM> guilund: :)
<DouweM> guilund: I can definitely recommend it
<guilund> DouweM: looks awesome!
<DouweM> guilund: :)
<mattyk> The trick to building your own product is finding the need. So many times I've said "I want to make something, what would be good to make" instead of "I want one of these and there isn't one."
thams has joined #ruby
<mattyk> One day I'll have a good idea. Until then I'll keep practicing my coding. ;)
<guilund> I already have an idea, i have a domain
<guilund> and i have a design
<guilund> i just need time to develop and operate, its kind of operation intensive
DeadlyKitty has left #ruby [#ruby]
<guilund> at first
danman has joined #ruby
<guilund> then it will scalate smoothly, but the start will be punk
<guilund> and i dont want any investor, i will invest my own money on it
kreisys has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoyak has quit [Quit: Computer has gone to sleep.]
<guilund> mattyk: yes, the world is FULL of oportunities, especeally in a third world country, with good access to internet, like mine
mudmaster has quit [Ping timeout: 245 seconds]
RTG` has quit [Read error: Connection reset by peer]
<mattyk> guiland: I was going to make a joke about how hard it is being a 30-something middle-class white male living in a 1st world western nation, but there's no way to make it not sound insulting.
<guilund> mattyk: the key is to look for a niche where people have regular needs, for example, eating, we have to eat 3 times/day
aspires has quit []
<guilund> mattyk: dont worry, im not a marxist son of a bitch
<guilund> mattyk: im far from politically correct
RTG` has joined #ruby
coca_rails has quit [Remote host closed the connection]
Azure has joined #ruby
tharindu_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
iliketur_ has quit [Quit: zzzzz…..]
<mattyk> guiland: there's some amount of perspective in that, though. Eating isn't even a concern for me or mine. It just happens, regularly, not something we have to think about.
d2dchat has quit [Remote host closed the connection]
<mattyk> guilund: not to mention the plethora of options (sorry, I just realised I've been typing your nick wrong)
<guilund> mattyk: yes, but for example, here in brazil, the services to provide food are not very techy, you know, we have a niche
mudmaster has joined #ruby
vlad_starkov has joined #ruby
<guilund> mattyk: but its just an example of a thing that the needs keep renovating incessantly
<guilund> mattyk: if you want something to make easy money, look for something people need everytime
okinomo has quit [Ping timeout: 248 seconds]
<mattyk> video games?
<mattyk> ;)
<guilund> mattyk: yeah, can be :)
tharindu has quit [Ping timeout: 252 seconds]
allaire has quit []
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
lewix has quit [Remote host closed the connection]
<guilund> mattyk: busines for example, is something that people usually dont need, its a very restrict niche, and i only survive because i found partners, that sells software to the final customer
<guilund> mattyk: *software business
lfox has quit [Quit: ZZZzzz…]
snath has quit [Read error: Connection reset by peer]
<mattyk> guilund: yeah, I worked for a company that was trying to make a software development product to market software development to non-software developers. Not much of a niche there.
<guilund> mattyk: as a service, tailoring and developing custom solutions, sure you can make some money with a few projects, but its hard
Virtualize has quit [Quit: Leaving...]
<guilund> mattyk: thats why i want to change the focus, find a niche that i can use my software expertise, and improve it, it can be anything
jkhwan has quit [Remote host closed the connection]
<guilund> mattyk: and oh, so much easier...
thams has quit [Quit: thams]
ssvo has quit [Ping timeout: 248 seconds]
jkhwan has joined #ruby
danman has quit [Quit: danman]
maletor has quit [Quit: Computer has gone to sleep.]
bogeyd6 has joined #ruby
subbyyy_ has quit [Ping timeout: 272 seconds]
Virtualize has joined #ruby
randomnick_ has quit [Quit: Leaving]
bogeyd6 has quit [Client Quit]
bogeyd6 has joined #ruby
fedesilv_ has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
fedesilva has quit [Ping timeout: 260 seconds]
Voodoofish430 has quit [Quit: Leaving.]
mmitchel_ has quit []
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
culturel_ has joined #ruby
subbyyy_ has joined #ruby
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
werdnativ has quit [Quit: werdnativ]
guilund has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
freggles has quit [Remote host closed the connection]
ckinni has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
troyready has quit [Ping timeout: 264 seconds]
blandflakes has quit [Quit: Page closed]
diegoviola has joined #ruby
luckyruby has joined #ruby
fedesilv_ has quit [Read error: Connection reset by peer]
chulan has joined #ruby
fedesilva has joined #ruby
maletor has joined #ruby
mudmaster has quit [Ping timeout: 252 seconds]
ssvo has joined #ruby
maletor has quit [Client Quit]
timonv has joined #ruby
peregrine81 has quit []
_reset has joined #ruby
Virtualize has quit [Remote host closed the connection]
coda23 has quit [Quit: Leaving]
Virtualize has joined #ruby
gja has joined #ruby
huydx has joined #ruby
mudmaster has joined #ruby
danman has joined #ruby
reset has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
Guest50931 has quit [Quit: quit]
timonv has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Client Quit]
typicalbender1 has quit [Quit: Leaving.]
_reset has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
nateberkopec has joined #ruby
vlad_starkov has quit [Read error: No buffer space available]
okinomo has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
luckyruby has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 264 seconds]
jdjd has joined #ruby
jume_ has joined #ruby
fedesilv_ has joined #ruby
<jdjd> I'm confused with a "puzzle" I'm working on to teach myself ruby. Its based off of Test driven development.
<jdjd> Basically, its saying that result=reverser do
jume_ has quit [Remote host closed the connection]
<jdjd> "hello dolly"
<jdjd> end
fedesilva has quit [Ping timeout: 246 seconds]
<jdjd> result.should=="yllod olleh"
<jdjd> I'm honestly confused by this, because it doesn't appear to be a method at all.
<jdjd> It would make sense if it was asking for an arguement..
<jdjd> But that is the whole code.
<jdjd> Can someone give me some idea of WTF is going on with the above test?
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
mbff_ is now known as mbff
xjiujiu has joined #ruby
ssvo has quit [Ping timeout: 250 seconds]
<jdjd> hello?
<jdjd> Is anyone here at all?
chomskiii has joined #ruby
<DouweM> nah, mostly idlers
<DouweM> and I'm taking a short break from studying to help you
<DouweM> what part of that code are you confused by? the reverser method call or the test?
guilund has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
guilund has quit [Client Quit]
Brolen has quit [Quit: Brolen]
primenum has joined #ruby
varfoo has joined #ruby
peregrine81 has joined #ruby
xjiujiu has joined #ruby
xjiujiu has quit [Max SendQ exceeded]
<mattyk> the important words in the code are 'do' and 'end'
<DouweM> good, you can take it over from here. I'm going back to stuyding :P
<mattyk> they mark a "block", which is one of ruby's anonymous function constructs.
<mattyk> ;)
xjiujiu has joined #ruby
yfeldblum has joined #ruby
<mattyk> there are other ways to rewrite your sample code, for example: result=reverser{"hello dolly"}
<bnagy> it's a pretty retarded prototype for the reverser method fwiw
huydx has quit [Ping timeout: 240 seconds]
chomskiii has quit [Read error: Connection reset by peer]
<jdjd> Sorry, back.
<mattyk> or more verbosely: my_func = ->{ return "hello dolly" }; result = reverser(&my_func)
<DouweM> yay for stabby lambda
<jdjd> I guess I'm confused as to how to make something to "do this". I'm used to methods that take arguements, like reverser(string)
<jdjd> And you do something with the arguement
<bnagy> that's how it should be prototyped here
<jdjd> Not used to it just instantly doing something.
<bnagy> all the block is doing is returning effectively a param, which is dumb
<jdjd> Its not taking in one though.
<bnagy> normally these examples use blocks to create polymorphic methods, like a method that mutates a string according to a block
<mattyk> the inverse of do-end is the 'yield' instruction, which makes the block execute. Inside the 'reverse' function it probably calls 'yield.reverse'
<bnagy> like mutator(input) {|s| s.reverse}
steve__ has joined #ruby
<jdjd> mattyk: I tried that, and it works for one word
<jdjd> mattyk: But not really for two.
<bnagy> or reverser = Proc.new {|s| s.reverse}; mutator(input, &reverser)
<bnagy> with the implementation of mutator left as an exercise, obviously
<jdjd> bnagy, how could you make it work with mattyk example?
<jdjd> aka, using yield?
danshultz has quit [Remote host closed the connection]
<jdjd> I tried that, and it seemd on the right track.
<bnagy> you need yield inside the mutator func
<jdjd> However, it only seems to work with one word.
<bnagy> which you need to write
<mattyk> jdjd: def revereser; yield.reverse; end
<mattyk> (modulo typos)
Hanmac1 has joined #ruby
danshultz has joined #ruby
<bnagy> and also, it's still dumb to write it that way :)
mudmaster has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
<mattyk> bnagy: it passes the test, and that's what TDD is all about
<bnagy> which is not mattyk's fault, it's the example you gave
Hanmac has quit [Ping timeout: 240 seconds]
<jdjd> mattyk: I kind of agree with mattyk, the point of ttd is just pass the test with the minimal amount of work :P.
steve____ has quit [Ping timeout: 252 seconds]
mudmaster has joined #ruby
<jdjd> bnagy: Although, I agree, this may be stupid example.
<jdjd> or test.
<jdjd> mattyk: I tried that, it doesn't work for a string with two words.
<jdjd> it fails.
<mattyk> jdjd: what do you mean by "two words"?
<jdjd> "hello world".
steve__ has quit [Remote host closed the connection]
<jdjd> IDK, I will give it a try, the test that was set up with this code says that fails.
<jdjd> IDK why.
<mattyk> it should tell you why
steve__ has joined #ruby
<jdjd> I know why, sorry, I mistyped.
<mattyk> or at least, how.
ckinni has quit [Ping timeout: 246 seconds]
okinomo has quit [Ping timeout: 245 seconds]
<jdjd> mattyk: It is asking for the results "olleh dlrow" NOT ""dlrow olleh""
<jdjd> mattyk: That is where I'm having issues with this.
<jdjd> I tried what you asked before coming on here.
<jdjd> I think it is asking me to use some blcok
<DouweM> split, map, reverse, join
<mattyk> jdjd: too much quotes.
digital-_ has quit [Remote host closed the connection]
<mattyk> jdjd: do you have a 'p' or an 'inspect' or some mixed quotes somewhere?
bradhe has joined #ruby
vlad_starkov has joined #ruby
<jdjd> mattyk: I accidentally put too many quotes.
<mattyk> jdjd: oh wait, I see what you're saying.
danshultz has quit [Ping timeout: 272 seconds]
<jdjd> mattyk: yes.
<mattyk> jdjd: what DouweM said
heidi has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> also not the spec from the initial example
<jdjd> mattyk: I tried that, it doesn't work. You are saying type yield.split.map.reverse.join?
<bnagy> which kinda makes it hard
<mattyk> nope
<jdjd> sigh, I am sure I know how to do this.
<mattyk> because map has a block parameter
<mattyk> and so does join
<DouweM> jdjd: I'm saying those are the methods you need, in that order. you need to play with them some more ;)
lfox has joined #ruby
<mattyk> and reverse is what you call on the elements inside the map
<jdjd> DouweM: Ok, I see, I will put those in the comments and explore docs I think.
<DouweM> jdjd: sounds good
nettoweb has joined #ruby
<jdjd> I'm lost on how to set up the block though for this.
Revokee has joined #ruby
<jdjd> DouweM: Can you somehow give me a "hint" without an answer?
varfoo has quit [Quit: WeeChat 0.4.0]
varfoo has joined #ruby
<DouweM> just check the docs for those 4 methods, and understand what they expect for input and give as output
<jdjd> DouweM: Again, I probably learned this. But, for some reason, I'm just not seeing it.
gja has quit [Quit: This computer has gone to sleep]
<mattyk> jdjd: here are two hints: call 'yield' once inside reverser, something like: the_string = yield
<mattyk> that way you can work on 'the_string' as a local variable
<bnagy> your block is fine, it's your method code that needs fixing
<DouweM> most of programming is checking docs or stack overflow anyway
<mattyk> jdjd: second hint: look up Array#map
<jdjd> Ok, I will give those to a try, unless you think I need anything else mattyk or DouweM ?
<mattyk> (hint 2.1: String#split returns an Array, and Array#join returns a String)
<DouweM> jdjd: those 4 methods should be enough
<DouweM> you should come back if you somehow come to a solution using more than those 4 :P
shadoi has quit [Quit: Leaving.]
<mattyk> I want to see the solution that uses fewer ;)
<DouweM> mattyk: ssssh he needs to learn ruby-doc.org :p
<DouweM> mattyk: don't just go tell him all the method signatures
<mattyk> DouweM: I left out the interesting one
jibi has quit [Quit: .]
<jdjd> Ok, I will give these a try and explore the docs.
vpretzel_ has joined #ruby
machuga has quit [Quit: ZNC - http://znc.in]
<jdjd> Again, its .split .map .reverse .join in that order right?
subbyyy_ has quit [Ping timeout: 264 seconds]
okinomo has joined #ruby
<mattyk> ooh, I got one working with a single method call, and some voodoo
ckinni has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
<DouweM> mattyk: I want to see that
<DouweM> jdjd: yeah
fedesilv_ has quit [Read error: Connection reset by peer]
<jdjd> DouweM: Ok, I will try to do that without doing whatever mattyk is about to do with one method :P.
<mattyk> DouweM: I added it to the gist I linked above
<jdjd> mattyk: I wont look but sounds cool :P.
fedesilva has joined #ruby
<mattyk> actually, there are two methods in there, because #reverse counts
xjiujiu has quit [Quit: http://quassel-irc.org - ???????]
<DouweM> mattyk: ah of course. I'd thought of that but deemed regexes a little too much for the moment ;)
machuga has joined #ruby
<jdjd> anyhow, going to get off the computer now and think about this for a bit. Also, explorer the docs later.
<jdjd> Thanks for both of your alls help :).
<DouweM> mattyk: the 4-method solution is a lot easier for a beginner to wrap their head around
<DouweM> Np
<mattyk> protip: bookmark ruby-doc.org
<DouweM> Good luck jdjd
<jdjd> mattyk: I already have it saved.
tjbiddle has joined #ruby
<mattyk> (y)
<jdjd> DouweM: Thanks, see you all later.
tharindu_ has quit [Quit: Leaving...]
jdjd has quit [Quit: Page closed]
phipes has quit []
lewix has joined #ruby
fedesilv_ has joined #ruby
fedesilva has quit [Ping timeout: 245 seconds]
vpretzel_ has quit [Read error: Connection reset by peer]
mmcdaris has quit [Quit: mmcdaris]
kofno has quit [Quit: leaving]
julian-delphiki has joined #ruby
preller has quit [Ping timeout: 264 seconds]
<bnagy> >> s = "hello world"; s.gsub(/\w+/) {|s| for i in (0...s.size/2);s[i],s[s.size - i - 1] = s[s.size - i - 1], s[i];end;s}
<eval-in> bnagy => "olleh dlrow" (https://eval.in/80109)
nowthatsamatt has quit [Quit: nowthatsamatt]
lewix has quit [Ping timeout: 246 seconds]
<bnagy> one method :<
<bnagy> augh wait not counting size
* DouweM hands bnagy a cookie
* DouweM takes cookie back
<bnagy> gotta be able to remove size somehow...
Revokee has left #ruby [#ruby]
falood has joined #ruby
fijimunkii has joined #ruby
bean has quit [Ping timeout: 246 seconds]
fedesilva has joined #ruby
thesheff17 has quit [Remote host closed the connection]
fedesilv_ has quit [Ping timeout: 264 seconds]
raphaelivan has quit [Quit: Leaving.]
kofno has joined #ruby
thesheff17 has joined #ruby
<bnagy> >> s = "hello world"; s.gsub(/\w+/) {|s| for i in (0...Float::INFINITY);break unless s[i*2];s[i],s[-i-1] = s[-i-1], s[i];end;s}
<eval-in> bnagy => "olleh dlrow" (https://eval.in/80118)
<bnagy> \o/
preller has joined #ruby
* DouweM hands bnagy his cookie back
<bnagy> I'm not prepared to accept that [] is a method ( even though it is ;)
* emocakes pins DouweM agains the wall and rips his pants off violently
<DouweM> as are the +, -, * operators
bricker`LA has joined #ruby
* DouweM doesn't quite know how to respond to emocakes's coming onto him
<bnagy> avoiding those I think is tricky
Duckily has quit [Quit: Duckily]
<DouweM> bnagy: which is why we're not accepting them as methods :)
<DouweM> for the purpose of this exercise anyway
<emocakes> just dont fight it DouweM
<mattyk> now do it without gsub
<emocakes> it will be over before you can scream stop
<DouweM> emocakes: that small huh?
<deryl> you that fast huh?
mudmaster has quit [Ping timeout: 250 seconds]
<emocakes> both
<deryl> preemie
<DouweM> haha
ssvo has joined #ruby
<bnagy> mattyk: hm. Yeah one could
<mattyk> it's hard avoiding operator functions :\
<bnagy> but it would be a horrific loopy scanner
<DouweM> should be doable with a loop and some backtracking I think?
<DouweM> mattyk: yeah :P
<bnagy> I'm gonna say you can use #[] and assignment and arithmetic
nettoweb has quit [Quit: nettoweb]
<DouweM> and `for X in Y` instead of `#each`
werdnativ has joined #ruby
<deryl> what woudl you call [] then?
<deryl> i know. cheating !
<deryl> hehe
intuxicated has quit [Ping timeout: 264 seconds]
okinomo has quit [Ping timeout: 252 seconds]
<mattyk> urg, I need an equality test. That's also a function.
mudmaster has joined #ruby
<mattyk> oooh, how about case/when. Does that count as dressing for #=== ?
bradhe has quit [Remote host closed the connection]
<DouweM> yes
<bnagy> you could reverse the whole string and then reverse words using two token scanners?
dhruvasa1ar has joined #ruby
bradhe has joined #ruby
<DouweM> but I guess an exception could be made for #==
dukz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<bnagy> basically like s.reverse.split(' ').reverse.join(' ') but all with iteration :/
dhruvasagar has quit [Ping timeout: 250 seconds]
heidi has joined #ruby
<DouweM> bnagy: I hadn't even though about that reverse/split/reverse/join method. nice use of String#reverse and Array#reverse
anomaly_ has quit [Remote host closed the connection]
<DouweM> might even be more performant than split/map/reverse/join
anomaly_ has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest97049
<bnagy> could be, but I'd hope it would be close
bradhe has quit [Ping timeout: 246 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lewix has joined #ruby
heidi has quit [Ping timeout: 246 seconds]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaskovicz has quit [Quit: Leaving.]
ehc has joined #ruby
psyl0n_ has quit [Remote host closed the connection]
xednix has joined #ruby
jtgiri_ has joined #ruby
<mattyk> I've got it down to just using String#[] and String#==, and whatever magic might happen behind the scenes in `for i in Range`
ssvo has quit [Ping timeout: 246 seconds]
<bnagy> wooo update gist
Es0teric has quit [Quit: Computer has gone to sleep.]
lewix has quit [Remote host closed the connection]
xednix has left #ruby ["PONG :rajaniemi.freenode.net"]
lewix has joined #ruby
lewix has quit [Read error: Connection reset by peer]
<DouweM> mattyk: nice job :)
bean__ has joined #ruby
<bnagy> ohh interpolation, nice
lewix has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
iliketur_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 272 seconds]
culturel_ has joined #ruby
<DouweM> mattyk: `if !in_word` uses the `!` method :P
dkamioka has joined #ruby
<mattyk> fiiine
fedesilva has quit [Remote host closed the connection]
<mattyk> fixed
<DouweM> (y)
anomaly_ has quit [Ping timeout: 256 seconds]
lele has quit [Ping timeout: 252 seconds]
julian-delphiki has quit [Ping timeout: 250 seconds]
psyl0n has joined #ruby
TomRone has joined #ruby
<DouweM> all right, it's 4:45am and I think I've studied enough for a passing grade on my exam tomorrow. I'm gonna get some sleep
<mattyk> actually it's 1:45pm
lewix has quit [Ping timeout: 245 seconds]
<mattyk> and the exam's today
<DouweM> actually shut up
<DouweM> Goddamn Aussies
<mattyk> ;)
<DouweM> cya
<mattyk> night
alvaro_o has quit [Quit: Ex-Chat]
DeProdigy has joined #ruby
<emocakes> mattyk you are from like, queensland?
<emocakes> lol
<mattyk> yeah, a bit like queensland
nowthatsamatt has joined #ruby
ckinni has joined #ruby
<emocakes> south australia?
<mattyk> nope, queensland
<emocakes> coonland (NT)
<emocakes> aight
jkhwan has joined #ruby
ckinni has quit [Client Quit]
bradhe has joined #ruby
Brolen has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
mmcdaris has joined #ruby
mudmaster has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby
nobitanobi has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
fuhgeddaboudit has joined #ruby
mudmaster has joined #ruby
dukz has quit [Remote host closed the connection]
kitak has joined #ruby
vlad_starkov has joined #ruby
yfeldblum has quit [Remote host closed the connection]
heidi has joined #ruby
sethen has quit [Quit: Leaving...]
kitak_ has quit [Ping timeout: 245 seconds]
huydx has joined #ruby
mgberlin has joined #ruby
kevind has joined #ruby
blaskovicz has joined #ruby
coldmethod1 has quit [Remote host closed the connection]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
kevind has quit [Client Quit]
kevinykchan has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
huydx_ has joined #ruby
dukz has joined #ruby
huydx has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
danshultz has joined #ruby
heidi has quit [Ping timeout: 252 seconds]
ehc has quit [Quit: ehc]
blaskovicz has quit [Client Quit]
ehc has joined #ruby
dseitz has joined #ruby
dseitz has quit [Max SendQ exceeded]
dukz has quit [Ping timeout: 245 seconds]
dseitz has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
DeProdigy has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
funburn has joined #ruby
KingDoge has quit [Quit:
timonv has joined #ruby
Monie has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
ahbrendan has joined #ruby
freerobby has quit [Client Quit]
freerobby has joined #ruby
sheap has left #ruby [#ruby]
timonv has quit [Ping timeout: 250 seconds]
zeade has joined #ruby
zz_CripperZ is now known as CripperZ
Barrin6 has quit [Ping timeout: 260 seconds]
brianpWi1s has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
wang has joined #ruby
Spami has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ahbrendan has quit [Ping timeout: 248 seconds]
huydx_ has quit [Quit: Leaving...]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketur_ has quit [Quit: zzzzz…..]
simoz3 has joined #ruby
ehc has quit [Quit: ehc]
mudmaster has quit [Ping timeout: 245 seconds]
okinomo has joined #ruby
anomaly_ has joined #ruby
A124 has quit [Read error: Connection reset by peer]
mudmaster has joined #ruby
A124 has joined #ruby
brianpWi1s has quit [Ping timeout: 260 seconds]
Virtualize has quit [Ping timeout: 245 seconds]
fuzzyfuzz has quit [Quit: WeeChat 0.4.1]
brianpWins has joined #ruby
Barrin6 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
DeanH has joined #ruby
CripperZ is now known as N00D
Spami has joined #ruby
CaptainJet has quit []
nowthatsamatt has quit [Quit: nowthatsamatt]
IceDragon has quit [Quit: Space~~~]
angusiguess has joined #ruby
tharindu has joined #ruby
peregrine81 has quit []
brianpWins has quit [Ping timeout: 250 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
s2013 has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
kiesse_ has joined #ruby
kiesse_ has quit [Client Quit]
Spami has quit [Quit: Leaving]
angusiguess has quit [Ping timeout: 248 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
freakazoid0223 has quit [Ping timeout: 240 seconds]
phipes has joined #ruby
dkamioka has quit [Remote host closed the connection]
soba has joined #ruby
whysosad has quit [Ping timeout: 264 seconds]
dkamioka has joined #ruby
DeProdigy has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
w4pm has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
OdNairy has joined #ruby
brum has joined #ruby
R33C3 has quit [Quit: Connection closed for inactivity]
R33C3_ has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
wallerdev has joined #ruby
dkamioka has quit [Ping timeout: 248 seconds]
freakazoid0223 has joined #ruby
michaeldeol has joined #ruby
kh019267 has joined #ruby
mudmaster has joined #ruby
Duckily has joined #ruby
vlad_starkov has joined #ruby
jgrevich has quit [Quit: jgrevich]
Es0teric has joined #ruby
flubba has quit [Remote host closed the connection]
Es0teric has quit [Max SendQ exceeded]
yacks has quit [Quit: Leaving]
bradhe has joined #ruby
flubba has joined #ruby
s2013 has joined #ruby
robbyoconnor has quit [Excess Flood]
heidi has joined #ruby
robbyoconnor has joined #ruby
kitak has quit [Remote host closed the connection]
DeanH has quit [Quit: Textual IRC Client: www.textualapp.com]
sayan has joined #ruby
DeProdigy has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
Duckily has quit [Ping timeout: 250 seconds]
wchun has quit [Ping timeout: 245 seconds]
kofno has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
kofno has joined #ruby
flubba has quit [Ping timeout: 264 seconds]
Guest34718 is now known as m0use_
michaeldeol has quit []
heidi has quit [Ping timeout: 245 seconds]
wchun has joined #ruby
wchun has quit [Read error: Connection reset by peer]
culturel_ has joined #ruby
dhruvasa1ar has quit [Ping timeout: 250 seconds]
lewix has joined #ruby
Deele has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
larissa has quit [Quit: Leaving]
dukz has joined #ruby
michaeldeol has joined #ruby
clamstar has joined #ruby
ahbrendan has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
culturel_ has joined #ruby
culturel_ has quit [Max SendQ exceeded]
clamstar_ has joined #ruby
primenum has quit [Ping timeout: 264 seconds]
krainboltgreene has joined #ruby
s2013 has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
s2013 has joined #ruby
clamstar has quit [Ping timeout: 250 seconds]
clamstar_ is now known as clamstar
bradhe has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
yfeldblum has joined #ruby
brum has quit [Remote host closed the connection]
ahbrendan has quit [Ping timeout: 248 seconds]
dkamioka has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
mudmaster has quit [Ping timeout: 240 seconds]
dukz has quit [Read error: Connection reset by peer]
Dogcat has joined #ruby
pranny has joined #ruby
culturel_ has joined #ruby
<Dogcat> How can I sort an array without the sort method?
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Brolen has quit [Quit: Brolen]
jamesaanderson has joined #ruby
iliketur_ has joined #ruby
mudmaster has joined #ruby
<dseitz> write your own sort method?
danman has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
danman has joined #ruby
preller has quit [Ping timeout: 260 seconds]
ssvo has joined #ruby
noop has joined #ruby
<Dogcat> yes
<Dogcat> how?
<YOURBESTFRIEND> WHY would you want to do that
freakazoid0223 has quit [Ping timeout: 240 seconds]
preller has joined #ruby
<dseitz> If this is for academic work; start by studying bubblesort [http://en.wikipedia.org/wiki/Bubble_sort] and move on to other sorts
ae-r has joined #ruby
Shidash has joined #ruby
jkhwan has quit [Remote host closed the connection]
angusiguess has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
<jle`> Dogcat: do you know how to shuffle an array?
<jle`> repeatedly shuffle the array
<jle`> and every time check if the array is sorted
deryl has quit [Quit: Leaving]
<jle`> (this should be O(n))
vlad_starkov has joined #ruby
<jle`> stop when you have a sorted array
dkamioka has quit [Ping timeout: 245 seconds]
MrZYX is now known as MrZYX|off
noop has quit [Quit: Leaving]
s2013 has quit [Ping timeout: 264 seconds]
prc1 has quit [Quit: Leaving.]
chulan has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
ae-r has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusiguess has quit [Ping timeout: 252 seconds]
culturel_ has joined #ruby
bradhe has joined #ruby
dayepa has quit [Quit: dayepa]
jtgiri_ has quit [Quit: jtgiri_]
osvico has quit [Ping timeout: 252 seconds]
freakazoid0223 has joined #ruby
dik_dak has quit [Quit: Leaving]
w4pm has joined #ruby
charliesome has joined #ruby
<pontiki> we call that entropy sort
thams has joined #ruby
ffio has quit [Ping timeout: 246 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
mudmaster has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
ssvo has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
dayepa has joined #ruby
L8D has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
mudmaster has joined #ruby
Dogcat has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
wmoxam has quit [Remote host closed the connection]
Macaveli has joined #ruby
ffio has joined #ruby
steve__ has quit []
timonv has joined #ruby
heidi has joined #ruby
preller has quit [Ping timeout: 250 seconds]
mgberlin has quit [Quit: mgberlin]
brtdv has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
wmoxam has joined #ruby
preller has joined #ruby
clint_s has quit [Read error: Connection reset by peer]
brtdv has quit [Client Quit]
_maes_ has quit [Ping timeout: 265 seconds]
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
heidi has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 250 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
troyready has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LexicalScope has joined #ruby
Hien has quit [Ping timeout: 252 seconds]
DeProdigy has joined #ruby
Hien has joined #ruby
banister has joined #ruby
dopie has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<dopie> hey all
DeProdigy has quit [Ping timeout: 252 seconds]
preller has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
viod has joined #ruby
<dopie> doc.search('#tblResults').search('tr').map{|tr| tr.search('td').map{|t| t.text}}
<dopie> how do i tell ruby to only show the 3rd column in each row?
preller has joined #ruby
iamdoo2 has joined #ruby
dukz has joined #ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
mattyk has quit [Quit: quitting time]
troyready has quit [Ping timeout: 248 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Read error: No route to host]
fridim_ has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
butblack has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has joined #ruby
phipes has quit [Remote host closed the connection]
mudmaster has quit [Ping timeout: 245 seconds]
<wang> dopie: if the css selector library you are using supports :nth-child() you could do it with 'td:nth-child(3)' otherwise in ruby tr.search('td')[2] or tr.search('td').slice(2)
Barrin6 has quit [Quit: Leaving]
<dopie> wang, ok... i got something like this
dayepa has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 248 seconds]
lyanchih has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
jrobeson has joined #ruby
primenum has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
mudmaster has joined #ruby
dayepa has joined #ruby
<wang> dopie: you can probably push more of it into the css selector if that works... e.g. doc.search('#tblResults tr td:nth-child(3)').map(&:text)
<dopie> has tadoes nth selector work with old browsers?
<wang> this ruby code is running in a browser?
samsonasu has quit [Quit: samsonasu]
<wang> also, define old :)
dhruvasagar has joined #ruby
ayaz has joined #ruby
ayaz is now known as Guest96769
preller has joined #ruby
<dopie> hmmm
<dopie> need ie8
<wang> i got the impression you were using nokogiri or something
mmcdaris has joined #ruby
Guest96769 has quit [Client Quit]
yosafbridge has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
ji0n has joined #ruby
<dopie> i am
dkamioka has joined #ruby
dukz has quit [Remote host closed the connection]
<wang> that site is only for css btw, if you are using jquery you can use :nth-child() on ie8 since its implemented in javascript
heidi has joined #ruby
yosafbridge has joined #ruby
angusiguess has joined #ruby
shastaky has joined #ruby
<wang> ok well presuming you're not doing something unusual here, that nokogiri code is running on the server... so browser support for nth-child is not a factor
ayaz_ has joined #ruby
jonahR has quit [Quit: jonahR]
ayaz_ has quit [Client Quit]
arietis has joined #ruby
ayaz_ has joined #ruby
<shastaky> hello
dkamioka has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
Guest53675 has joined #ruby
<iamdoo2> shastaky: world
heidi has quit [Ping timeout: 252 seconds]
ahegyi has joined #ruby
brtdv has joined #ruby
tonni has quit [Remote host closed the connection]
dukz has joined #ruby
tonni has joined #ruby
amritanshu_RnD has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
dayepa has quit [Ping timeout: 240 seconds]
Guest53675 has quit []
ckinni has joined #ruby
closures999 has joined #ruby
<dopie> wang thank you :)
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ckinni has quit [Client Quit]
dayepa has joined #ruby
tonni has quit [Ping timeout: 246 seconds]
<wang> sure
tjbiddle has quit [Quit: tjbiddle]
cycorld has joined #ruby
ckinni has joined #ruby
dukz_ has joined #ruby
dukz_ has quit [Remote host closed the connection]
dukz_ has joined #ruby
ckinni has quit [Client Quit]
tagrudev has joined #ruby
<dopie> wang can ye help me on this one?
simoz3 has quit [Ping timeout: 246 seconds]
flubba has joined #ruby
A124 has quit [Read error: Connection reset by peer]
cycorld has quit []
okinomo has joined #ruby
ckinni has joined #ruby
<lewix> dopie: you forgot "ruby king"
echevemaster has quit [Quit: Leaving]
<wang> dopie: try something like doc.search('#tblResults').search('tr').map{|tr| tr.values_at(4,5,9).map(&:text)}
<lewix> wang: elegant. i like it - i forgot about values_at -)
dukz has quit [Ping timeout: 240 seconds]
ckinni has quit [Client Quit]
cycorld has joined #ruby
<wang> i think that should probably be tr.search('td').values_at but you get the picture... maybe you'll need .to_a before values_at not sure
diegoviola has quit [Ping timeout: 246 seconds]
closures999 has quit [Read error: Connection reset by peer]
<lewix> dopie: or you just do it as i told you
ckinni has joined #ruby
closures999 has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
<dopie> lewix, hehe!
<dopie> tr.values_at
<dopie> awesome
mudmaster has joined #ruby
erasmus has quit [Quit: Ciao a tutti!]
ckinni has quit [Client Quit]
funburn has quit [Quit: funburn]
cycorld has quit [Remote host closed the connection]
<dopie> wang hehe thats in the ruby docs i didnt go down enough
<dopie> :0
arietis has joined #ruby
cycorld has joined #ruby
aagdbl has joined #ruby
freerobby has quit [Quit: Leaving.]
Duckily has joined #ruby
<dopie> undefined method `values_at' for #<Nokogiri::XML::NodeSet:0x007f1dd0a781c8>
<wang> try tr.search('td').to_a.values_at or tr.elements.to_a.values_at
Jetchisel has joined #ruby
shastaky_ has joined #ruby
shastaky_ has quit [Read error: Connection reset by peer]
shastaky has quit [Read error: Connection reset by peer]
OdNairy has joined #ruby
codezomb has joined #ruby
shastaky_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<dopie> undefined method `to_a_values_at' for #<Nokogiri::XML::NodeSet:0x007f1dc0111428>
<dopie> doc.search('#tblResults').search('tr').map{|tr| tr.search('td').to_a_values_at(4,5,9).map{|t| t.text}}
ckinni has joined #ruby
dukz_ has quit [Remote host closed the connection]
<lewix> dopie: to_a.values_at is not to_a_values_at
Duckily has quit [Ping timeout: 246 seconds]
primenum has quit [Ping timeout: 250 seconds]
tharindu is now known as tharindu|away
ckinni has quit [Client Quit]
<dopie> hmmmm
vvbin has joined #ruby
<wang> probably want to collapse those first two searches into one search('#tblResults tr')
lyanchih has quit [Quit: lyanchih]
<dopie> ugh
heftig has quit [Quit: Quitting]
ckinni has joined #ruby
cybertro1 has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
<cybertro1> good morning
ckinni has quit [Client Quit]
primenum has joined #ruby
ahbrendan has joined #ruby
ckinni has joined #ruby
ryanRT_ has quit [Ping timeout: 246 seconds]
jrobeson has quit [Remote host closed the connection]
ckinni has quit [Client Quit]
Macaveli has quit [Ping timeout: 260 seconds]
preller has quit [Ping timeout: 248 seconds]
simoz3 has joined #ruby
charliesome has joined #ruby
gja has joined #ruby
Macaveli has joined #ruby
flubba_ has joined #ruby
braoru has joined #ruby
culturel_ has joined #ruby
<dopie> doc.search('#tblResults tr').search('td').map{|t| t.text}
flubba has quit [Ping timeout: 248 seconds]
<dopie> doesnt work either
<dopie> :(
Macaveli has quit [Ping timeout: 240 seconds]
preller has joined #ruby
Macaveli has joined #ruby
sergicles has quit [Quit: sergicles]
bradhe has quit [Remote host closed the connection]
cycorld has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
cycorld has joined #ruby
cfinley has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
dayepa has joined #ruby
primenum has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
lele has joined #ruby
mudmaster has quit [Ping timeout: 264 seconds]
cfinley has quit []
preller has quit [Ping timeout: 240 seconds]
mudmaster has joined #ruby
<shevy> shows you that xml will forevermore suck
sayan has quit [Excess Flood]
cfinley has joined #ruby
sayan has joined #ruby
preller has joined #ruby
cfinley has quit [Client Quit]
vvbin has quit [Read error: Connection reset by peer]
yeboot has joined #ruby
<emocakes> LEAVE XML ALONE
benlieb has joined #ruby
<emocakes> lol
funburn has joined #ruby
* ayaz_ chuckles
clop2 has quit [Ping timeout: 246 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has quit [Client Quit]
raddazong has quit [Changing host]
raddazong has joined #ruby
raddazong is now known as madhatter
A124 has joined #ruby
marcgg_ has joined #ruby
preller has quit [Ping timeout: 240 seconds]
yeboot has quit [Ping timeout: 240 seconds]
N00D is now known as CripperZ
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
yeboot has joined #ruby
<GreatSUN> re
tonni has joined #ruby
dagobah has joined #ruby
dkamioka has joined #ruby
marcgg has quit [Ping timeout: 245 seconds]
cycorld has quit [Remote host closed the connection]
kenrick has quit [Ping timeout: 264 seconds]
<GreatSUN> wang: whats the "problem" with that gist?
heidi has joined #ruby
<GreatSUN> in my opinion it just does what it is supposed to
clop2 has joined #ruby
angusiguess has joined #ruby
CripperZ is now known as N00D
Duckily has joined #ruby
<wang> greatsun: it's a solution for a problem someone else asked earlier
shastaky_ has quit [Remote host closed the connection]
heidi has quit [Read error: Connection reset by peer]
heidi has joined #ruby
<GreatSUN> wang: ah
<GreatSUN> sorry
dogweather has joined #ruby
shastaky has joined #ruby
shastaky has quit [Read error: Connection reset by peer]
simoz3 has quit [Ping timeout: 248 seconds]
shastaky has joined #ruby
cycorld has joined #ruby
nadley1 is now known as nadley
gasm has joined #ruby
dkamioka has quit [Ping timeout: 260 seconds]
<dopie> wang, hmmmmmmmmmmmmmmmmmm1!
angusiguess has quit [Ping timeout: 250 seconds]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heidi has quit [Ping timeout: 248 seconds]
lsmola_ has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
TomRone has quit [Ping timeout: 240 seconds]
siwica has joined #ruby
gja has joined #ruby
amundj has joined #ruby
TomRone has joined #ruby
Es0teric has joined #ruby
anomaly_ has quit [Remote host closed the connection]
anomaly_ has joined #ruby
tharindu|away has quit [Quit: Leaving...]
sayan has quit [Ping timeout: 252 seconds]
gja has quit [Client Quit]
<shevy> I wanna shake my wang
yeboot has quit [Quit: Lost terminal]
shastaky has quit [Read error: Connection reset by peer]
culturel_ has joined #ruby
mudmaster has quit [Ping timeout: 245 seconds]
shastaky_ has joined #ruby
shastaky has joined #ruby
shastaky_ has quit [Read error: Connection reset by peer]
lfox has quit [Quit: ZZZzzz…]
dayepa has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
threesome has joined #ruby
mudmaster has joined #ruby
h_kon has joined #ruby
dayepa has joined #ruby
shastaky_ has joined #ruby
wang has left #ruby [#ruby]
TomRone has quit [Ping timeout: 240 seconds]
shastaky has quit [Ping timeout: 252 seconds]
gregorg has quit [Ping timeout: 260 seconds]
tobago has joined #ruby
aganov has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
kitak_ has joined #ruby
TomRone has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
gregorg has joined #ruby
<dopie> doc.search('#tblResults').search('tr').map{|tr| tr.search('td').to_a.values_at(3,4,8).map{|t| t.text}}
funburn has quit [Quit: funburn]
kitak has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
dayepa has joined #ruby
viod has quit [Ping timeout: 250 seconds]
cbetta_afk is now known as cbetta
iliketur_ has quit [Quit: zzzzz…..]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
bradhe has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
cycorld has quit [Remote host closed the connection]
dangerousdave has joined #ruby
ephemerian has joined #ruby
relix has joined #ruby
relix has quit [Max SendQ exceeded]
Es0teric has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
relix has quit [Max SendQ exceeded]
moted has quit [Quit: moted]
LexicalScope has quit [Ping timeout: 240 seconds]
jenskarlsen has quit [Quit: jenskarlsen]
mengu has quit [Remote host closed the connection]
jenskarlsen has joined #ruby
relix has joined #ruby
relix has quit [Max SendQ exceeded]
<krainboltgreene> wk dlw 1
TomRone has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
gja has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
lyanchih has joined #ruby
xk_id has joined #ruby
gja has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
mudmaster has quit [Ping timeout: 240 seconds]
cbetta is now known as cbetta_afk
relix has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Max SendQ exceeded]
TomRone has quit [Ping timeout: 240 seconds]
culturel_ has joined #ruby
OdNairy has quit [Ping timeout: 250 seconds]
tharindu has joined #ruby
relix has joined #ruby
siwica has quit [Quit: siwica]
relix has quit [Max SendQ exceeded]
dhruvasagar has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby
lyanchih has quit [Client Quit]
cbetta_afk is now known as cbetta
TomRone has joined #ruby
lyanchih has joined #ruby
klaut has quit [Remote host closed the connection]
digitalcake has joined #ruby
relix has joined #ruby
mudmaster has joined #ruby
<digitalcake> trying to compile ruby from source on redhat 5 but keep get "It seems your ruby installation is missing psych (for YAML output)."
<digitalcake> have installed yaml-0.1.4 from source
alup has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
gja has joined #ruby
<digitalcake> well I have but I'm not using rvm
<digitalcake> I had tried that too
gja has quit [Client Quit]
<digitalcake> with rvm
aryaching has quit [Ping timeout: 272 seconds]
LostMonk- has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
TomRone has joined #ruby
dhruvasagar has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
gja has joined #ruby
timonv has quit [Remote host closed the connection]
dkamioka has joined #ruby
kevinykchan has joined #ruby
cbetta is now known as cbetta_afk
nvrch has joined #ruby
angusiguess has joined #ruby
heidi has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
Nanuq has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
ahri has joined #ruby
<ahri> hi, i'm having some trouble with rake and wondered if this is the correct room to seek help from?
<ahri> (it's probably trivial, but i've come as far as i can in resolving it!)
charliesome has joined #ruby
angusiguess has quit [Ping timeout: 250 seconds]
shastaky_ has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
heidi has quit [Ping timeout: 245 seconds]
<ahri> actually, scratch that; i'm being retarded :)
<ahri> my favourite kind of problem...
voland has quit [Remote host closed the connection]
SeySayux has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
marcgg_ has quit [Ping timeout: 252 seconds]
marcgg has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
xk_id has quit [Quit:
preller has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
OdNairy has joined #ruby
TaxmanBD has quit [Quit: Leaving]
SeySayux has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
shime has joined #ruby
culturel_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
culturel_ has joined #ruby
tonni has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 245 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
OdNairy has quit [Ping timeout: 240 seconds]
avril14th has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
TomRone has joined #ruby
Xeago has joined #ruby
rootshift has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
preller has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
OdNairy has joined #ruby
dfranciosi has joined #ruby
dhruvasagar has joined #ruby
michaeldeol has quit [Remote host closed the connection]
mudmaster has joined #ruby
blaxter has joined #ruby
michaeldeol has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
roolo_ has joined #ruby
rootshift has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 264 seconds]
dayepa has joined #ruby
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
bradhe has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
ace_striker has joined #ruby
reset has joined #ruby
tziOm has joined #ruby
funburn has joined #ruby
dayepa has quit [Remote host closed the connection]
marcgg_ has joined #ruby
rootshift has joined #ruby
Al___ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
TomRone has joined #ruby
tonni has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
dukz has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
marcgg has quit [Ping timeout: 260 seconds]
jhaals has joined #ruby
d45h has joined #ruby
aryaching has joined #ruby
ckinni has joined #ruby
claymore has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
jhaals_ has joined #ruby
jhaals_ has quit [Remote host closed the connection]
ckinni has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
dayepa has joined #ruby
clamstar has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
timonv has joined #ruby
jhaals has quit [Ping timeout: 248 seconds]
jhaals has joined #ruby
eka has joined #ruby
brtdv has quit []
d45h has quit []
brtdv has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
_Andres has joined #ruby
brtdv has quit [Client Quit]
vlad_starkov has joined #ruby
dawkirst_ has quit [Quit: Connection closed for inactivity]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
gja has joined #ruby
shime has quit [Ping timeout: 250 seconds]
sergicles has joined #ruby
brtdv has joined #ruby
Hanmac1 has joined #ruby
<bgy> What should I use to do unit test in ruby?
kitak_ has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
gja has quit [Client Quit]
anomaly_ has quit [Read error: Connection reset by peer]
gasm has quit [Ping timeout: 248 seconds]
anomaly_ has joined #ruby
drumusician has joined #ruby
rjhunter has quit [Remote host closed the connection]
camilasan has joined #ruby
gasm has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
eka has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
dayepa has joined #ruby
Elhu has joined #ruby
mudmaster has quit [Ping timeout: 245 seconds]
d45h has joined #ruby
aspiers_ is now known as aspiers
olivier_bK has joined #ruby
chiel has quit [Ping timeout: 260 seconds]
TMM has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
barratt has joined #ruby
mudmaster has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ckinni has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
nvrch has quit [Ping timeout: 250 seconds]
ckinni has quit [Client Quit]
mklappstuhl has joined #ruby
gja has joined #ruby
ahbrendan has quit [Ping timeout: 250 seconds]
dayepa has joined #ruby
nvrch has joined #ruby
gasm has quit [Read error: Connection reset by peer]
gja has quit [Client Quit]
kitak has joined #ruby
nopolitica has joined #ruby
angusiguess has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
Xeago has quit [Remote host closed the connection]
heidi has joined #ruby
gja has joined #ruby
lyanchih has quit [Quit: lyanchih]
vlad_starkov has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
dayepa has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
Rydekull_ is now known as Rydekull
heidi has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Remote host closed the connection]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
zipper has joined #ruby
fella5s has joined #ruby
beardedninja has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 252 seconds]
okinomo has joined #ruby
dayepa has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
sharms has quit [Ping timeout: 240 seconds]
psyl0n has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
madb055 has joined #ruby
nopolitica has quit [Quit: Lost terminal]
gja has quit [Quit: This computer has gone to sleep]
kitak has joined #ruby
w4pm has joined #ruby
sharms has joined #ruby
zipper has quit [Quit: leaving]
yfeldblum has joined #ruby
Criztian has joined #ruby
timonv has quit [Read error: Connection reset by peer]
troessner has joined #ruby
<ahri> dep.gsub!(/\$\((?<varname>[^\)]+)\)/) { |m| ENV[m[:varname]] } # how come this doesn't work? i thought the matchdata could be addressed this way -- "m" seems to be a string though; so gsub only passes in the whole match as a string?
mudmaster has quit [Ping timeout: 250 seconds]
ckinni has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
fella5s has quit [Remote host closed the connection]
voland has joined #ruby
ckinni has quit [Client Quit]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clamstar has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
mudmaster has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
GreatSUN has quit [Ping timeout: 272 seconds]
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
werdnativ has quit [Quit: werdnativ]
gja has joined #ruby
<Hanmac1> ahri look at the type of m
ckinni has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
voland has quit [Ping timeout: 245 seconds]
xiphias has joined #ruby
paolooo has joined #ruby
klaut has joined #ruby
sharms has joined #ruby
TomRone has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Speed has joined #ruby
edin has joined #ruby
dogweather has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
obs has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
timonv has joined #ruby
p4d4w4n has joined #ruby
paolooo has quit [Quit: Page closed]
TomRone has quit [Ping timeout: 240 seconds]
shastaky has joined #ruby
nvrch_ has joined #ruby
workmad3 has joined #ruby
<ahri> Hanmac1: yeah i did; i changed it to "{ |m| puts m.class }" -- got String! found i can reference it with $~ anyway, but that's not so pretty
psyprus has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: Leaving.]
Duckily has quit [Quit: Duckily]
xiphias has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
shastaky has quit [Remote host closed the connection]
charliesome has joined #ruby
xiphias has joined #ruby
nvrch has quit [Ping timeout: 264 seconds]
nvrch_ is now known as nvrch
beardedninja has joined #ruby
TomRone has joined #ruby
bradhe has joined #ruby
zeeraw has joined #ruby
<testslav1> quit
testslav1 has quit [Quit: leaving]
xiphias has quit [Ping timeout: 240 seconds]
tharindu has quit [Quit: Linkinus - http://linkinus.com]
xiphias has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 250 seconds]
tharindu has joined #ruby
shaunbaker has joined #ruby
preller has quit [Ping timeout: 250 seconds]
sharms has joined #ruby
reset has quit [Quit: Leaving...]
mudmaster has quit [Ping timeout: 248 seconds]
TomRone has quit [Ping timeout: 263 seconds]
mengu has quit [Remote host closed the connection]
shime has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
TomRone has joined #ruby
ahegyi has quit [Quit: leaving]
vlad_starkov has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
dukz has quit [Remote host closed the connection]
Heskie has joined #ruby
dukz has joined #ruby
mudmaster has joined #ruby
preller has joined #ruby
xiphias has joined #ruby
Al___ has quit [Quit: Al___]
shime has quit [Ping timeout: 240 seconds]
shime has joined #ruby
matti has joined #ruby
yacks has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
edin has left #ruby [#ruby]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
xiphias has quit [Ping timeout: 240 seconds]
edin has joined #ruby
edin has left #ruby ["Leaving"]
rdark has joined #ruby
h_kon has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
aryaching has joined #ruby
dkamioka has joined #ruby
aagdbl has joined #ruby
mikecmpbll has joined #ruby
angusiguess has joined #ruby
xiphias has joined #ruby
heidi has joined #ruby
preller has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
gja has quit [Quit: This computer has gone to sleep]
_5kg_ has quit [Ping timeout: 260 seconds]
N00D is now known as zz_N00D
clamstar has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 260 seconds]
xiphias has quit [Ping timeout: 240 seconds]
krz has joined #ruby
funburn has quit [Quit: funburn]
heidi has quit [Ping timeout: 250 seconds]
psyl0n has joined #ruby
decoponio has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
TomRone has joined #ruby
greenrose has quit []
preller has quit [Ping timeout: 246 seconds]
cascalheira has joined #ruby
aagdbl1 has joined #ruby
vlad_starkov has joined #ruby
iaj is now known as screen
Xeago has joined #ruby
screen is now known as iaj
ips|malc has joined #ruby
ips|malc has left #ruby [#ruby]
dukz has quit [Ping timeout: 245 seconds]
aagdbl has quit [Disconnected by services]
aagdbl1 is now known as aagdbl
yfeldblum has joined #ruby
mudmaster has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
reset has joined #ruby
eka has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
h_kon has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
xiphias has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
lyanchih has joined #ruby
mengu has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
mengu has joined #ruby
anomaly_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
anomaly_ has joined #ruby
gr33n7007h has joined #ruby
mudmaster has joined #ruby
vlad_starkov has joined #ruby
zipper has joined #ruby
h_kon has quit [Remote host closed the connection]
reset has quit [Ping timeout: 252 seconds]
shaunbaker has quit [Remote host closed the connection]
closer has quit [Ping timeout: 256 seconds]
zipper has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
zipper has joined #ruby
closer has joined #ruby
liamkeily has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
nari has joined #ruby
closures999 has quit [Remote host closed the connection]
<krainboltgreene> So the Hamster library needs a new maintainer, any ideas?
gigetoo has joined #ruby
<mikecmpbll> didn't even know they could read.
TomRone has joined #ruby
<workmad3> krainboltgreene: what's the hamster library? :/
preller has joined #ruby
Neomex has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
DouweM has joined #ruby
skaflem has joined #ruby
gja has joined #ruby
<krainboltgreene> workmad3: https://github.com/harukizaemon/hamster
bradhe has joined #ruby
heftig has joined #ruby
Neomex has quit [Quit: Neomex]
dhruvasagar has quit [Read error: Connection reset by peer]
falood has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
ss_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
falood has joined #ruby
camilasan has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
ewnd9 has joined #ruby
<apeiros> krainboltgreene: "immutable AND thread-safe"? :D
falood has quit [Ping timeout: 246 seconds]
preller has quit [Ping timeout: 250 seconds]
ace_striker has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
TomRone has joined #ruby
matheuscaceres has joined #ruby
raphaelivan has joined #ruby
skaflem has quit [Quit: Leaving]
sayan has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
lyanchih has quit [Remote host closed the connection]
reset has joined #ruby
skaflem has joined #ruby
lyanchih has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
to-shiba has joined #ruby
sepp2k has joined #ruby
mudmaster has joined #ruby
madb055 has quit [Quit: Konversation terminated!]
guiocavalcanti has joined #ruby
whysosad has joined #ruby
xk_id has joined #ruby
whysomad has joined #ruby
reset has quit [Ping timeout: 245 seconds]
anomaly_ has quit [Ping timeout: 256 seconds]
whysosad has quit [Ping timeout: 250 seconds]
xk_id has quit [Max SendQ exceeded]
zipper has quit [Ping timeout: 264 seconds]
marcgg_ has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
marcgg has joined #ruby
zipper has joined #ruby
gr33n7007h has quit [Quit: Leaving]
aapzak_ has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aapzak_ has quit [Client Quit]
aapzak has quit [Quit: leaving]
aapzak has joined #ruby
nath_schwarz has joined #ruby
angusiguess has joined #ruby
heidi has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
dhruvasa1ar has joined #ruby
xk_id has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<roolo_> I am trying to use bundle's local feature, but bundler is still ignoring this configuration ( Could not find gem in the gems available on this machine. )
zipper has joined #ruby
<roolo_> Is there some restriction to paths which lead to the local gem path?
preller has quit [Ping timeout: 246 seconds]
dhruvasa1ar has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 245 seconds]
roolo_ is now known as roolo
gja has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
zz_N00D is now known as CripperZ
anomaly_ has joined #ruby
heidi has quit [Ping timeout: 252 seconds]
CripperZ is now known as N00D
AlSquire has joined #ruby
Txandy has joined #ruby
dhruvasagar has joined #ruby
gja has quit [Client Quit]
gja has joined #ruby
rootshift has quit [Quit: rootshift]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
zipper has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
ckinni has joined #ruby
bigkevmcd_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bigkevmcd_ is now known as bigkevmcd
lupine has quit [Ping timeout: 245 seconds]
mudmaster has quit [Ping timeout: 248 seconds]
lupine_85 has joined #ruby
lupine_85 is now known as lupine
ckinni has quit [Client Quit]
mudmaster has joined #ruby
ckinni has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
ckinni has quit [Max SendQ exceeded]
okinomo has quit [Ping timeout: 245 seconds]
ckinni has joined #ruby
Advocation has joined #ruby
dhruvasagar has joined #ruby
ckinni has quit [Client Quit]
Michael__ has joined #ruby
aryaching has joined #ruby
Bofu2U has joined #ruby
Bofu2U has quit [Client Quit]
bradhe has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
MichaelHansen has joined #ruby
reset has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
h_kon has joined #ruby
bradhe has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
emocakes has quit [Quit: Leaving...]
afhammad has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
e-dard has joined #ruby
Bofu2U has joined #ruby
<e-dard> Hi, whats the best way to test the contents of two JSON objects with minitest?
dhruvasagar has joined #ruby
<e-dard> like a json_assert_equal_unordered or something
vlad_starkov has joined #ruby
Michael__ has quit [Ping timeout: 272 seconds]
TomRone has quit [Ping timeout: 240 seconds]
Bofu2U has quit [Client Quit]
bradhe has quit [Ping timeout: 250 seconds]
reset has quit [Ping timeout: 248 seconds]
fridim_ has joined #ruby
afhammad has quit [Client Quit]
ss_ has joined #ruby
TomRone has joined #ruby
spirtista has quit [Remote host closed the connection]
closures999 has joined #ruby
malkomalko has joined #ruby
flubba_ has quit [Remote host closed the connection]
flubba has joined #ruby
claymore has quit [Quit: Leaving]
noname001__ has joined #ruby
d45h has quit [Ping timeout: 260 seconds]
rdark has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
d45h has joined #ruby
flubba has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
tkuchiki has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 240 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 250 seconds]
shime has quit [Ping timeout: 248 seconds]
cbetta_afk is now known as cbetta
tkuchiki has joined #ruby
mudmaster has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
Kruppe has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
tvw has joined #ruby
e-dard has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
fridim_ has quit [Ping timeout: 250 seconds]
mudmaster has joined #ruby
anomaly_ has quit [Quit: see you when I see you]
nettoweb has joined #ruby
workmad3 is now known as wm3|lunch
angusiguess has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
angusiguess has joined #ruby
preller has joined #ruby
<nath_schwarz> can someone tell me, if there is a way to access the definitions made on the prompt directly (e.g. when i write a small programm but mess it up in one or two lines)
Elhu has quit [Quit: Computer has gone to sleep.]
jibi has joined #ruby
<nath_schwarz> and yes, this is my first look on ruby, started about 20 or 30 minutes ago
anomaly_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
aryaching has quit [Ping timeout: 252 seconds]
lyanchih has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
Lostmonk has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
TomRone has quit [Ping timeout: 240 seconds]
heidi has joined #ruby
jle` has quit [Quit: WeeChat 0.4.2]
shime has joined #ruby
TomRone has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
dkamioka has quit [Ping timeout: 260 seconds]
heidi has quit [Ping timeout: 246 seconds]
zipper has quit [Ping timeout: 252 seconds]
nvrch has quit [Quit: nvrch]
Elhu has joined #ruby
mercwithamouth has joined #ruby
zipper has joined #ruby
shastaky has joined #ruby
cmedeiros has joined #ruby
<avril14th> nath_schwarz: I don't get the question
Kruppe has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
prc has joined #ruby
obs has quit [Remote host closed the connection]
zipper has quit [Client Quit]
ffranz has joined #ruby
_5kg_ has joined #ruby
sailias has quit [Ping timeout: 250 seconds]
cybertro1 has left #ruby [#ruby]
tharindu has quit [Quit: Leaving...]
to-shiba is now known as guardianx
guardianx has left #ruby [#ruby]
obs has joined #ruby
iaj has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 240 seconds]
mudmaster has quit [Ping timeout: 260 seconds]
shime has joined #ruby
ckinni has joined #ruby
yfeldblum has joined #ruby
s2013 has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
DeProdigy has joined #ruby
danshultz has joined #ruby
zipper has joined #ruby
BrixSat has joined #ruby
<BrixSat> Hello
<BrixSat> im making a ruby regex and i have a doubt
<BrixSat> can i make sequencial names in fields? like my string has "field.name:0###field2.name:0###fiield3.name2:1"
<BrixSat> how can i name the fields acordingly in my regex?
krz has quit [Ping timeout: 246 seconds]
mudmaster has joined #ruby
TomRone has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
jkamenik has joined #ruby
dfranciosi has quit [Remote host closed the connection]
Txandy has quit [Quit: Leaving...]
<nath_schwarz> avril14th: when i'm defining a method via irb and make a mistake - is there a way to edit the method?
bradhe has joined #ruby
<avril14th> nope
<avril14th> that's why you should write code in .rb files
<avril14th> and load them in the irb
<nath_schwarz> okay, thanks
<avril14th> your variables need to be instance variables for you to acccess them though
<avril14th> I also recommend you use pry instead of irb
<avril14th> it's nicer :)
fella5s has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
noname001__ has quit [Quit: Konversation terminated!]
<nath_schwarz> avril14th: thanks, but i don't think that i'll stick to ruby, i'm just doing a little "language safari" :D
DeProdigy has quit [Ping timeout: 250 seconds]
bradhe has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<avril14th> well have fun anyway :) what are you going to stick to
<avril14th> ?
Rollabunna has quit [Remote host closed the connection]
TomRone has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
reset has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<nath_schwarz> my current language is java (mostly, because i'm working on multi agent simulations), but wanted to take a peek above my horizon :D
vt102 has joined #ruby
iaj has joined #ruby
<avril14th> k
punkcat has joined #ruby
jamesaanderson has joined #ruby
rdark has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
s2013 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
raphaelivan has quit [Quit: Leaving.]
sambao21 has joined #ruby
dkamioka has joined #ruby
yalue has joined #ruby
reset has quit [Ping timeout: 248 seconds]
_5kg_ has quit [Ping timeout: 246 seconds]
dfranciosi has joined #ruby
Xeago has joined #ruby
vlad_starkov has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
dkamioka has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 252 seconds]
karupanerura is now known as zz_karupanerura
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
dopie has quit [Quit: Leaving]
Tarential has quit [Excess Flood]
Tarential has joined #ruby
<pontiki> learn them all, nath_schwarz
dopie has joined #ruby
nettoweb has quit [Quit: nettoweb]
mudmaster has quit [Ping timeout: 248 seconds]
mudmaster has joined #ruby
nowthatsamatt has joined #ruby
s2013 has joined #ruby
sergicles has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
sergicles has joined #ruby
adac has joined #ruby
wm3|lunch is now known as workmad3
<adac> On bash I can check if a process is running like ie: "ps aux | grep PROCESSNAME". Can I do this also via ruby code?
ikawnoclast has joined #ruby
shaunbaker has joined #ruby
soba has quit [Ping timeout: 246 seconds]
h_kon has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
mupkoo has quit [Read error: Connection reset by peer]
lewix has joined #ruby
okinomo has joined #ruby
noname001__ has joined #ruby
<nath_schwarz> pontiki: i'm gonna be the very best^^
ss_ has quit [Remote host closed the connection]
shaunbaker has quit [Ping timeout: 245 seconds]
krawchyk has joined #ruby
lewix has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
camilasan has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
camilasan has joined #ruby
zipper has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Guest97049 has quit [Changing host]
Guest97049 has joined #ruby
Guest97049 is now known as digifiv5e
digifiv5e is now known as guyz
guyz is now known as digifiv5e
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
noname001__ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
QKO has quit [Ping timeout: 246 seconds]
heidi has joined #ruby
soukihei has quit [Read error: Operation timed out]
matheuscaceres has quit [Quit: matheuscaceres]
QKO has joined #ruby
dkamioka has joined #ruby
anomaly_ has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
anomaly_ has joined #ruby
g0bl1n has joined #ruby
drumusician has joined #ruby
heidi has quit [Ping timeout: 260 seconds]
TomRone has joined #ruby
momomomomo has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
<bubu> hey guys, wondering if anyone can help with this? https://gist.github.com/anonymous/e360927adf35a3f50573
RaCx has joined #ruby
RaCx_ has quit [Ping timeout: 260 seconds]
w4pm has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
Czupa has joined #ruby
burlyscudd has joined #ruby
mudmaster has quit [Ping timeout: 264 seconds]
bean__ has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
timonv has joined #ruby
hogeo_ has joined #ruby
bradhe has joined #ruby
dreamchaser has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
tris has quit [Ping timeout: 246 seconds]
<waxjar> bubu, use #select to filter out the thing you don't need and then use #map ?
itamaryu has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
marcgg_ has joined #ruby
<waxjar> bubu, also, use an array instead of String you split on ",", use each_with_object instead of inject.
cmedeiros has quit [Ping timeout: 250 seconds]
lsmola_ has quit [Ping timeout: 250 seconds]
hogeo has quit [Ping timeout: 250 seconds]
<DouweM> or just loop once instead of a #select for each queue name
<bubu> :o
Koshian has quit [Ping timeout: 272 seconds]
dkamioka has quit [Remote host closed the connection]
mudmaster has joined #ruby
Guest23006 has joined #ruby
Criztian has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
marcgg has quit [Ping timeout: 250 seconds]
<bubu> DouweM: ahh, nice.....but I need to check my specific queues that were the horrible string in my example
shaunbaker has joined #ruby
Speed is now known as greyWolf
drumusician has quit [Read error: Connection reset by peer]
greyWolf is now known as Speed
TomRone has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
blaskovicz has joined #ruby
mlpinit has quit [Remote host closed the connection]
h_kon has joined #ruby
mlpinit has joined #ruby
angusiguess has joined #ruby
tris has joined #ruby
<DouweM> That's O(n) rather than O(n^2)
drumusician has joined #ruby
<bubu> Nice DouweM :D
TomRone has joined #ruby
mlpinit_ has joined #ruby
tonni has quit [Remote host closed the connection]
kindjal has joined #ruby
tonni has joined #ruby
joshcookfair has joined #ruby
dopie has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
voland has joined #ruby
blaskovicz has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 250 seconds]
jerius has joined #ruby
OdNairy has joined #ruby
reset has joined #ruby
ss_ has joined #ruby
mlpinit has quit [Ping timeout: 248 seconds]
CptJeanLucPicard has joined #ruby
colonolGron has quit [Ping timeout: 264 seconds]
ArchBeOS-work has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
RaCx has quit [Read error: Connection reset by peer]
kindjal has quit [Ping timeout: 248 seconds]
includex has joined #ruby
Koshian has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
L8D has joined #ruby
lsmola_ has joined #ruby
cmedeiros has joined #ruby
kindjal has joined #ruby
troessner has quit [Quit: Leaving]
reset has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
RoryHughes has joined #ruby
cmedeiros has quit [Max SendQ exceeded]
Criztian has joined #ruby
preller has quit [Ping timeout: 245 seconds]
Criztian has quit [Remote host closed the connection]
cmedeiros has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
mudmaste_ has joined #ruby
sharms has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
ss_ has quit [Remote host closed the connection]
ckinni has joined #ruby
CptJeanLucPicard is now known as ArchBeOS-work
mudmaster has quit [Read error: Connection reset by peer]
voland has quit [Remote host closed the connection]
reach has quit []
samsonasu has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
samsonasu has quit [Client Quit]
voland has joined #ruby
TomRone has joined #ruby
shaunbaker has quit [Remote host closed the connection]
preller has joined #ruby
tonni has joined #ruby
bubu has quit []
asobrasil has joined #ruby
atno has joined #ruby
jkamenik has quit [Quit: Leaving.]
anomaly_ has quit [Remote host closed the connection]
anomaly_ has joined #ruby
preller has quit [Ping timeout: 248 seconds]
matheuscaceres has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
tris has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
tvw has quit []
matheuscaceres has quit [Client Quit]
tvw has joined #ruby
fmcgeough has joined #ruby
tris has joined #ruby
s2013 has quit [Ping timeout: 245 seconds]
chulan has joined #ruby
TomRone has joined #ruby
preller has joined #ruby
zipper has quit [Quit: leaving]
preller has quit [Changing host]
preller has joined #ruby
securitycrush has joined #ruby
zipper has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
zipper is now known as zipper__
sailias has joined #ruby
Macaveli has joined #ruby
dhruvasagar has joined #ruby
matheuscaceres has joined #ruby
rh1n0 has joined #ruby
zipper__ has quit [Client Quit]
Monie has quit [Ping timeout: 252 seconds]
pedda has joined #ruby
jchristi has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
araujo has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
zipper has joined #ruby
sguselnikov has joined #ruby
zipper has quit [Client Quit]
zaargy_ is now known as zaargy
samsonasu has joined #ruby
platzhirsch has joined #ruby
esing has joined #ruby
esing has joined #ruby
esing has quit [Changing host]
Kruppe has quit [Ping timeout: 240 seconds]
esing has quit [Max SendQ exceeded]
thams has quit [Quit: thams]
blandflakes has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
esing has joined #ruby
joshcookfair has quit [Quit: joshcookfair]
peregrine81 has quit []
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Kruppe has joined #ruby
Parker0 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
peregrine81 has joined #ruby
elux has joined #ruby
heidi has joined #ruby
<bgy> I'm experimenting with ruby and discovered symbols, so a quick question, are symbols used to shortcut something like foo = "foo" into :foo ? where the first is actually a variable name while the symbol is both the value and the name?
habanany has joined #ruby
shastaky has quit [Ping timeout: 260 seconds]
shastaky has joined #ruby
mudmaste_ has quit [Ping timeout: 252 seconds]
<DouweM> bgy: no, it's got nothing to do with that
dkamioka has joined #ruby
A124 has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 240 seconds]
mudmaster has joined #ruby
nateberkopec has joined #ruby
<DouweM> bgy: a Symbol is just another object, like String, with its own syntax :symbol vs "string"
ehc has joined #ruby
<bgy> DouweM, I got that, but then, when use one or another?
<DouweM> bgy: the difference is that when you use "hello" at one point in your code and "hello" at another, these will be two different String objects, so the data will be in memory twice. With symbols, :hello and :hello are the exact same object and it's in memory only once
Macaveli has joined #ruby
heidi has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
kristiandelay has joined #ruby
bradhe has joined #ruby
<bgy> DouweM, so is it most a matter of performance?
<DouweM> This makes it especially suitable for identifiers like keys in a hashmap
phantummm has joined #ruby
<DouweM> bgy: that's the main difference. use symbols when you care about what it represents, so like an identifier, use strings when you care about the data
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> in a hash, whether the key is "name" or 128410840 doesn't really matter as long as you can refer back to it later, so use :name
<bgy> mmm ok, I think I got it
<bgy> thanks
<DouweM> obviously, my name "Douwe" wouldn't make sense as :Douwe, because I actually care about the data
iamjarvo has joined #ruby
<bgy> DouweM, mm ok it is a sort of alias for a memory pointer then?
<DouweM> I wouldn't think of it like that
malkomalko has quit []
mary5030 has quit [Read error: Connection reset by peer]
TomRone has quit [Ping timeout: 240 seconds]
Authenticator has quit [Ping timeout: 272 seconds]
<DouweM> the identifier/data distinction is the easiest way to go about it. you'll come accross symbols a lot in Ruby and you'll get a feel for when to use them
mary5030 has joined #ruby
nettoweb has joined #ruby
Authenticator has joined #ruby
<DouweM> Hash keys are the obvious candidate
ambushsabre has joined #ruby
nari has quit [Ping timeout: 256 seconds]
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
<bgy> ok, as you say I need to training in both reading & writing ruby to properly get it :)
<bgy> but at first I had no clue
includex has joined #ruby
<DouweM> that's why we're here :)
TomRone has joined #ruby
includex has quit [Max SendQ exceeded]
bradhe has quit [Ping timeout: 264 seconds]
ace_striker has quit [Ping timeout: 272 seconds]
jamblack has joined #ruby
h_kon has quit [Remote host closed the connection]
jamblack has left #ruby [#ruby]
shastaky has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
bluenemo has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
kpshek has joined #ruby
jlast has joined #ruby
ffio has joined #ruby
shastaky has joined #ruby
<workmad3> DouweM: heh :) I'd have said :DouweM is a good candidate for a symbol myself... it's a label that can be used to refer unambiguously to you, but you don't need to be able to manipulate the contents as data
shastaky has quit [Remote host closed the connection]
anomaly_ has quit [Read error: Connection reset by peer]
<DouweM> :DouweM, yeah, first and last name "Douwe" and "Maan", no ;)
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
anomaly_ has joined #ruby
mmitchell has joined #ruby
nettoweb has quit [Quit: nettoweb]
<workmad3> DouweM: yeah, I'd agree with that :)
prc has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 248 seconds]
ayaz_ has quit [Quit: Textual IRC Client: www.textualapp.com]
DeProdigy has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
acrussell has joined #ruby
prc has joined #ruby
rootshift has quit [Quit: rootshift]
preller has quit [Ping timeout: 252 seconds]
ckinni has quit [Ping timeout: 250 seconds]
Styles_ is now known as Styles
anomaly_ has quit [Read error: Connection reset by peer]
p0wn3d has joined #ruby
RoryHughes has quit []
Macaveli has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
anomaly_ has joined #ruby
<DouweM> but then again, nicks are user-provided data, so you're setting yourself up for a DoS attack when you save them as symbols :)
angusigu1ss has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
hopkin has joined #ruby
<workmad3> DouweM: yeah, that's an implementation consideration though... conceptually, opaque labels that refer unambiguously to a specific value (i.e. a name) are perfect for symbols
<DouweM> Agreed
RoryHughes has joined #ruby
<DouweM> Just thought I'd mention it before bgy goes ahead and writes an IRC client saving nicks as symbols
TomRone has quit [Ping timeout: 240 seconds]
<bgy> damn it that's what I did :D
<bgy> j/j
<DouweM> ;)
taion809_ has quit [Remote host closed the connection]
preller has joined #ruby
<DouweM> bgy: you understand why saving user-provided data as symbols would be asking for trouble?
angusigu1ss has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
baordog_ has joined #ruby
mmitchell has quit []
jibi has quit [Quit: .]
asobrasil has quit [Quit: Leaving.]
reset has joined #ruby
nomenkun has joined #ruby
LexicalScope has joined #ruby
<bgy> DouweM, well I guess it is because it should not be safe to use unsafe data to define a symbol which can conceptually be anything in ruby?
Megtastique has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<bgy> and therefor maybe pointing to some existing things in use
asobrasil has joined #ruby
colonolGron has joined #ruby
asobrasil has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
<DouweM> bgy: well, symbols are identified by name. so when I submit my username "DouweM" and the program saves that as :DouweM, it doesn't matter if :DouweM was used anywhere in the code before, it won't meddle with that
<DouweM> it's the exact same object as the previous :DouweM, so just my referencing it when I receive data "DouweM" doesn't matter
mmitchell has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<bgy> mm ok
asobrasil has joined #ruby
platzhirsch has left #ruby [#ruby]
asobrasil has quit [Max SendQ exceeded]
<DouweM> but say we do instantiate :DouweM, so assuming it hadn't been used before. at any point in the future, when :DouweM is used again, it needs to evaluate to the exact same object, the exact same memory location. what effect does this have on the lifetime of symbols?
johnmilton has joined #ruby
habanany has joined #ruby
TomRone has joined #ruby
zipper has joined #ruby
prc has quit [Quit: Leaving.]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<bgy> DouweM, well that means some immutability right?
reset has quit [Ping timeout: 250 seconds]
<DouweM> for one. but I'm explicitly asking about lifetime
<DouweM> think about this: what would happen if the :DouweM symbol was garbage collected?
msuszczy has joined #ruby
habanany has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 252 seconds]
<bgy> Would it be something similar to NullPointerException in Java? :D
<bgy> a reference pointing to anything?
<rdevilla> If I call a destructive method on subject in an RSpec example
asobrasil has joined #ruby
<DouweM> you mean if you reference :DouweM later? well, no, because symbols that haven't been referenced before will just be instantiated anew
asobrasil has quit [Max SendQ exceeded]
<rdevilla> will the change in state persist across different examples?
<rdevilla> if I use subject again in another example
<DouweM> bgy: so what we will end up with is a *new* :DouweM, a *new* Symbol object, pointing to a *new* memory location
<DouweM> bgy: so our whole premise of symbols always being the same object/memory location is gone!
<DouweM> bgy: So. For symbols to work, they can never be garbage collected.
jkamenik has joined #ruby
<DouweM> bgy: And what happens to objects that aren't garbage collected? They stay in memory forever
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
amritanshu_RnD has quit [Quit: Leaving]
<DouweM> bgy: So what would happen if we created symbols for every single nick provided by a user to the program? We'd end up with a lot of objects that would just stay in memory forever
jtgiri_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
<bgy> ah ok, got it now
anomaly_ has quit [Quit: see you when I see you]
<bgy> thanks for the lesson :D
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
TomRone has joined #ruby
<DouweM> bgy: then realize what this means for, say, a web application. If I can easily login with thousands of different nicks, I'll be filling up the server's entire memory slowly but surel
<shevy> hey bnagy is bgy your little brother?
<DouweM> y
g0bl1n has quit [Ping timeout: 260 seconds]
<DouweM> bgy: And that's what they call a DoS (Denial of Service) attack :)
mudmaster has quit [Ping timeout: 248 seconds]
danman has joined #ruby
<DouweM> rdevilla: for every example, the whole hierarchy of before(:each) blocks is called, so if you create the resource in one of those, it will be available anew for every example
johnmilton has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
shtirlic has quit [Quit: ZNC - http://znc.in]
_5kg_ has joined #ruby
<bgy> shevy, not at all : )
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<rdevilla> DouweM: hm, but what of subject? Or do you mean to say I should have something like
<rdevilla> before(:each) do
<rdevilla> subject = FooBar().new
<rdevilla> end
shtirlic has joined #ruby
<DouweM> same goes for subject {} and let {} blocks
<DouweM> they're executed before every example
<rdevilla> and what if I have neither?
xiphias has quit [Ping timeout: 240 seconds]
<DouweM> rdevilla: where does the resource come from that you're afraid won't survive between examples?
tobago has quit [Remote host closed the connection]
johnmilton has quit [Client Quit]
<rdevilla> well I was asking whether or not it does survive between examples
<rdevilla> do you mean to say it does?
johnmilton has joined #ruby
xiphias has joined #ruby
asobrasil has joined #ruby
mudmaster has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
decoponio has joined #ruby
<DouweM> rdevilla: when you affect "global state", so global vars, constans, class vars etc, that will persist across examples, which could lead to unexpected failing specs. but otherwise, you can do whatever you want with objects you create in before/let/subjects blocks, because those will just be created again for the next example
asobrasil has quit [Max SendQ exceeded]
canton7-mac has joined #ruby
mercwithamouth has joined #ruby
asobrasil has joined #ruby
jerius has quit [Ping timeout: 246 seconds]
asobrasil has quit [Max SendQ exceeded]
<rdevilla> DouweM: The thing is, I am not creating objects at all.
mary5030 has quit [Read error: Connection reset by peer]
<rdevilla> I am just using "subject"
freerobby has joined #ruby
<rdevilla> I have no subject/before/let blocks
mary5030 has joined #ruby
kevind_ has joined #ruby
duggiefresh has joined #ruby
<DouweM> "If I call a destructive method on subject in an RSpec example" where does the subject come from then?
tannerburson has joined #ruby
<workmad3> rdevilla: that just means you let rspec create the object for you
<rdevilla> I guess the standard term for what I am using is "implicit subject"
<workmad3> rdevilla: 'describe SomeClass; end;' <-- the implicit subject is 'SomeClass.new'
<workmad3> rdevilla: so objects are being created
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
ikawnoclast has quit [Ping timeout: 260 seconds]
<rdevilla> workmad3: Okay. Let's say I have two examples in that describe block, one of which destructively updates 'subject'
lsoa has quit [Quit: WeeChat 0.4.2]
<rdevilla> Will that destructive update be visible in the other example
<DouweM> no
<workmad3> rdevilla: no
jerius has joined #ruby
allaire has joined #ruby
<rdevilla> DouweM, workmad3: okay, thank you
<workmad3> rdevilla: unless it affects something class-level destructively
<DouweM> because behind the scenes, it's the same logic powering before/let/subject. it's reexecuted for every example
<rdevilla> ah, that makes sense then
<workmad3> rdevilla: a new subject is created for each example... but the code isn't reloaded between each example
xiphias has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
atno has quit [Quit: Leaving]
sayan has joined #ruby
freerobby has quit [Client Quit]
xiphias has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
freerobby has joined #ruby
kh019267 has joined #ruby
GreatSUN has joined #ruby
<GreatSUN> re
habanany has joined #ruby
TomRone has joined #ruby
LadyRainicorn has joined #ruby
habanany1 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
nath_schwarz has quit [Quit: Konversation terminated!]
ffio has quit [Quit: WeeChat 0.4.1]
jerikl has joined #ruby
<LadyRainicorn> Huh, why would public logging be prohibited if there's a log available anyway?
mengu has quit [Remote host closed the connection]
iamjarvo has joined #ruby
tagrudev has quit [Remote host closed the connection]
zeeraw has joined #ruby
ambushsabre has quit [Ping timeout: 246 seconds]
habanany1 has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
yfeldblum has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
<BrixSat> im making a ruby regex and i have a doubt
<BrixSat> how can i name the fields acordingly in my regex?
ambushsabre has joined #ruby
<BrixSat> My string is like this "field.name:0###field2.name:0###fiield3.name2:1"
tonni has quit [Read error: Connection reset by peer]
jerikl has quit [Client Quit]
wallerdev has joined #ruby
clamstar has joined #ruby
braoru has quit [Remote host closed the connection]
shastaky has joined #ruby
<DouweM> BrixSat: what do you want for output?
clamstar has quit [Max SendQ exceeded]
momomomomo has joined #ruby
clamstar has joined #ruby
Monie has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rootshift has joined #ruby
momomomomo has quit [Client Quit]
atno has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
rollietikes has joined #ruby
jamesaanderson has joined #ruby
xiphias has joined #ruby
bean has joined #ruby
b00stfr31k has joined #ruby
mgberlin has joined #ruby
<sec^nd> What does class << self do?
psyprus has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
b00stfr31k has quit [Client Quit]
<Hanmac> sec^nd: opens singleton class of self, its for using attr_accessor on class instance mode
bradhe has joined #ruby
psyprus has joined #ruby
b00stfr3ak has joined #ruby
nettoweb has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
jamesaanderson has quit [Client Quit]
heidi has joined #ruby
LadyRainicorn has quit [Ping timeout: 246 seconds]
shastaky has quit [Remote host closed the connection]
mudmaster has quit [Ping timeout: 252 seconds]
psyprus has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
LadyRainicorn has joined #ruby
Morkel has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<Morkel> Does anyone know how i can encode UTF8 Literal to UTF8 for exampe Ada\\xc2\\xb4s to Ada's
psyprus has joined #ruby
LexicalScope` has joined #ruby
mudmaster has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
deception has joined #ruby
sharms has joined #ruby
heidi has quit [Ping timeout: 264 seconds]
<sec^nd> Hanmac: thanks
<sec^nd> Do instances have access to class methods?
centipedefarmer has joined #ruby
lmickh has joined #ruby
tharindu has joined #ruby
<workmad3> sec^nd: class methods aren't on the method lookup chain, if that's what you're asking
<workmad3> sec^nd: you can call them, e.g. with self.class.class_method
<workmad3> sec^nd: but not with just 'class_method'
<sec^nd> kk, thanks
LexicalScope has quit [Ping timeout: 240 seconds]
<sec^nd> workmad3: so I could just do instancex.class_method either then?
<workmad3> sec^nd: no
lyanchih has quit [Quit: lyanchih]
<sec^nd> but I could do instancex.class.class_method
<workmad3> yeah
s2013 has joined #ruby
bean has quit [Max SendQ exceeded]
<BrixSat> DouweM: i want to ouput field.name and value 0
<BrixSat> the same for field2 and so on
<BrixSat> but since the number of fields can vary i dont know how to make a name convention
bean has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
psyl0n has quit [Remote host closed the connection]
xiphias has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
LexicalScope` has quit [Ping timeout: 245 seconds]
andikr has quit [Remote host closed the connection]
<Hanmac> BrixSat: like that?
<Hanmac> >> "field.name:0###field2.name:0###fiield3.name2:1".scan(/([^#]+?):(.+?)/)
<eval-in> Hanmac => [["field.name", "0"], ["field2.name", "0"], ["fiield3.name2", "1"]] (https://eval.in/80363)
TomRone has joined #ruby
rh1n0 has quit [Ping timeout: 260 seconds]
xiphias has quit [Ping timeout: 240 seconds]
sguselnikov has quit [Quit: Computer has gone to sleep.]
_Andres has quit [Quit: jazz]
xiphias has joined #ruby
wchun has joined #ruby
_maes_ has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Elhu has quit [Quit: Computer has gone to sleep.]
Speed has joined #ruby
|jemc| has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago_ has quit [Remote host closed the connection]
dik_dak has joined #ruby
aerook has joined #ruby
N00D is now known as zz_N00D
sambao21 has joined #ruby
shime has quit [Ping timeout: 250 seconds]
mgberlin has quit [Quit: mgberlin]
closures999 has quit [Remote host closed the connection]
marcgg has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
zz_N00D is now known as CripperZ
msuszczy has quit [Quit: leaving]
s2013 has quit [Remote host closed the connection]
atno has quit [Quit: Leaving]
xiphias has joined #ruby
asobrasil has quit [Ping timeout: 245 seconds]
marcgg_ has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
reset has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adac has quit [Quit: Leaving]
p4d4w4n has quit [Quit: This computer has gone to sleep]
asobrasil has joined #ruby
wedgeV has joined #ruby
asobrasil has quit [Max SendQ exceeded]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
marcgg has quit [Ping timeout: 248 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
shastaky has joined #ruby
shastaky has quit [Read error: Connection reset by peer]
<aerook> question: if I have classes A and B, where B < A, how can I set a default value on a property within the A class to be the same for all instances of B?
shastaky has joined #ruby
<aerook> or, what's the best way to do that
shastaky has quit [Remote host closed the connection]
shastaky has joined #ruby
asobrasil has joined #ruby
<shevy> what exactly is a "property"
shastaky has quit [Remote host closed the connection]
asobrasil has quit [Max SendQ exceeded]
reset has quit [Ping timeout: 245 seconds]
_maes_ has quit [Read error: Connection reset by peer]
<aerook> i mean field
<aerook> this is a mongoid model that i'm doing this in
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
sguselnikov has joined #ruby
shastaky has joined #ruby
<shevy> I also dont know what a "field" is
atno has joined #ruby
lethjakman has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jerius has quit []
TomRone has quit [Ping timeout: 240 seconds]
<aerook> i suppose i'm talking about an instance variable
<shevy> ok
<DouweM> aerook: are you talking about an instance variable or a Mongoid field?
<shevy> >> class A; def initialize; @foo = 5; end; attr_reader :foo; end; class B < A; end; B.new.foo
<eval-in> shevy => 5 (https://eval.in/80368)
<shevy> aerook as you can see in this example, B did not specifically have to set @foo, but it gets the default value that A has set for it
mudmaste_ has joined #ruby
Elhu has joined #ruby
<aerook> yea that makes sense
<shevy> if you need it to have specific default values, I would assign to these @ivars that you need through methods, and use default values for your methods
<waxjar> if you want to do additional things in B#initialize, call super
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<shevy> like def set_foo(i = 'hi there'); @foo = i; end
mudmaster has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<DouweM> just in to say that the semantics are different for Mongoid fields. they're not just instance variables.
jerius has joined #ruby
<aerook> I'll gist this
<aerook> brb
<shevy> Mongoid fields sound truly scary
<DouweM> shevy: Mongoid is an ORM like ActiveRecord, but for MongoDB
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
TomRone has joined #ruby
<waxjar> fields of tall grass where the mongoids roam around
coldmethod has joined #ruby
<DouweM> haha
RTG` has quit []
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Heskie has quit []
coldmethod1 has joined #ruby
psyl0n has joined #ruby
wallerdev has joined #ruby
<aerook> the problem with this was that i was no longer able to do this:
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
s2013 has joined #ruby
pwestlund is now known as pwestlund_away
<aerook> b = B.new( { another_key:"another_value", some_key:"some_value" } )
<DouweM> aerook: stop ignoring my saying *there's a difference between Mongoid fields and instance variables*
<LadyRainicorn> You don't need to include Mongoid::Document again
<aerook> oh i understand
<DouweM> aerook: all of the stuff that's been suggested here only applies to instance variables. Mongoid fields, which you are using, have completely different semantics.
<shevy> the ponicorns strike again
clamstar has joined #ruby
<BrixSat> Hanmac: tested on rubullar did not work
asobrasil has joined #ruby
Heskie has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<shevy> aerook here you just pass a hash as argument to (eventually) #initialize
coldmethod has quit [Ping timeout: 240 seconds]
<shevy> stuff like field() and validates() seem to be clearly mongoid specific methods
<DouweM> ffs, you shouldn't override #initialize if you're using Mongoid. you should let Mongoid's existing "field default value" logic handle this
<shevy> wow that reads awful man
<shevy> validates :my_property, with: { in: valid_properties }
<DouweM> shevy: that's not Mongoid, that's ActiveModel, and it's the same in ActiveRecord
<shevy> I had difficulty trying to understand it
<shevy> you guys are too courageous
Kruppe has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<DouweM> shevy: that's the way all validation in ActiveModel works
<aerook> so I'm defining the field in my parent class, it's something that all children will have
<shevy> scary stuff
<DouweM> also, I think the options are wrong. there's no validator for `:with`. It should be `inclusion: { in: valid_properties }`
Kruppe has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
matheuscaceres has quit [Quit: matheuscaceres]
<DouweM> aerook: this should do the trick: https://gist.github.com/DouweM/8e500bee36114ba9173f
<DouweM> aerook: you can override default_my_property for every subclass
jtgiri_ has quit [Quit: jtgiri_]
<aerook> so the field is still defined in the parent class
asobrasil has joined #ruby
<DouweM> aerook: right. it's just offloading the default value to the default_my_property method
asobrasil has quit [Max SendQ exceeded]
<workmad3> shevy: normally, it's more like 'validates :my_attribute, presence: true, format: {with: /some_regex/}'
<krainboltgreene> apeiros: Yep.
<shevy> it scares me truly
<shevy> my brain is not fit to have
<shevy> :foo bar: :foo
<shevy> all in the same line
nomenkun has quit [Remote host closed the connection]
<aerook> okay I think that makes sense - where does that self.default come from? is that the mongoid method?
asobrasil has joined #ruby
jkamenik has quit [Read error: Connection reset by peer]
asobrasil has quit [Max SendQ exceeded]
nomenkun has joined #ruby
<aerook> shevy: I meant validates :my_property, inclusion: { in: valid_properties }
<DouweM> aerook: it doesn't come from anywhere, I'm defining that a couple lines down
<aerook> oh im blind
<DouweM> aerook: for A, the default value will be nil, because self.class is A, for B it will be "foo"
geggam has joined #ruby
preller has quit [Ping timeout: 250 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jtgiri_ has joined #ruby
claymore has joined #ruby
sc00l has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
sharms has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<aerook> DouweM: That worked!
<aerook> would this fall under "metaprogramming", if I wanted to hone my craft in this area?
nomenkun has quit [Ping timeout: 260 seconds]
<DouweM> aerook: nah
<DouweM> aerook: this is just defining a class method
<aerook> god im a noob
<DouweM> aerook: we all were at some point
asobrasil has joined #ruby
lfox has joined #ruby
asobrasil has quit [Max SendQ exceeded]
clamstar has quit [Quit: Computer has gone to sleep.]
TomRone has joined #ruby
xiphias has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
xiphias has joined #ruby
sharms has joined #ruby
preller has joined #ruby
matheuscaceres has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
bradhe has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
cgore has joined #ruby
mlpinit has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mojjojo has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
plack has joined #ruby
CripperZ is now known as N00D
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
psyprus has quit [Changing host]
psyprus has joined #ruby
rootshift has quit [Quit: rootshift]
mikepack has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jonahR has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
asobrasil has quit [Max SendQ exceeded]
mikepack_ has joined #ruby
RTG` has joined #ruby
asobrasil has joined #ruby
aganov has quit [Quit: Leaving]
asobrasil has quit [Max SendQ exceeded]
camilasan has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 248 seconds]
camilasan has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
ambushsabre has joined #ruby
<krainboltgreene> I really wish Ruby's argument error reporting actually showed the arguments.
TomRone has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
gja has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kevind_ is now known as kevind
alup has quit [Quit: Leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
iliketur_ has joined #ruby
xiphias has joined #ruby
xiphias has joined #ruby
xiphias has quit [Changing host]
heidi has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<cgore> ls
preller has quit [Ping timeout: 260 seconds]
mudmaste_ has quit [Ping timeout: 260 seconds]
tharindu has quit [Quit: Leaving...]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
gja has quit [Client Quit]
drag00n has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
momomomomo has joined #ruby
keen_____ has joined #ruby
momomomomo has quit [Client Quit]
mudmaster has joined #ruby
xiphias has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
xiphias has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heidi has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
keen____ has quit [Ping timeout: 272 seconds]
jtgiri_ has quit [Quit: jtgiri_]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<GreatSUN> bye all for today
TomRone has quit [Ping timeout: 240 seconds]
pootler has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stetho has joined #ruby
coldmethod1 has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
preller has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
havenwood has joined #ruby
gquental has joined #ruby
asobrasil has joined #ruby
TomRone has joined #ruby
asobrasil has quit [Max SendQ exceeded]
geggam has quit [Quit: Leaving]
sharms has quit [Ping timeout: 240 seconds]
multi_io_ has quit [Quit: leaving]
shadoi has joined #ruby
coldmethod has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OdNairy has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
DrShoggoth has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<krainboltgreene> Later.
sharms has joined #ruby
Guest70549 has joined #ruby
xiphias has joined #ruby
bradhe has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kindjal has joined #ruby
closures999 has joined #ruby
yjmsf20 has joined #ruby
soukihei has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
flubba has joined #ruby
asobrasil has joined #ruby
aagdbl has quit [Quit: Leaving.]
asobrasil has quit [Max SendQ exceeded]
freerobby has joined #ruby
kevinykchan has joined #ruby
johnjohnson has joined #ruby
jtgiri_ has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
Azure has joined #ruby
TenJack has joined #ruby
radic_ has quit [Ping timeout: 252 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
Kruppe has quit [Quit: ZNC - http://znc.in]
jcp has joined #ruby
jcp is now known as Guest54360
sc00l has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
xjiujiu has joined #ruby
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
yfeldblum has joined #ruby
kalleth has joined #ruby
nvrch has quit [Quit: nvrch]
jkhwan has joined #ruby
TenJack has quit [Client Quit]
TomRone has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
fijimunk1i has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
timonv has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
rootshift has joined #ruby
Heskie has quit []
mojjojo has quit [Quit: mojjojo]
Guest54360 is now known as Kruppe
asobrasil has joined #ruby
mojjojo has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lfox has quit [Quit: ZZZzzz…]
ssvo has joined #ruby
reset has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
bigkevmcd has quit [Quit: Ex-Chat]
RoryHughes has joined #ruby
Voodoofish430 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
DrShoggoth has quit [Remote host closed the connection]
radic has joined #ruby
RTG` has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
troyready has joined #ruby
asobrasil has quit [Max SendQ exceeded]
RTG` has joined #ruby
avril14th has quit [Remote host closed the connection]
fijimunk1i has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
DrShoggoth has joined #ruby
fijimunk1i has joined #ruby
d45h has quit [Ping timeout: 245 seconds]
RoryHughes has quit [Client Quit]
RoryHughes has joined #ruby
TMM has quit [Quit: Ex-Chat]
wallerdev has quit [Quit: wallerdev]
reset has quit [Ping timeout: 250 seconds]
kevind_ has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
pushpak has joined #ruby
duggiefresh has quit [Remote host closed the connection]
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
bradhe has quit [Remote host closed the connection]
punkcat has quit [Quit: Leaving]
zipper has quit [Quit: leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
mudmaster has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
mudmaster has joined #ruby
d45h has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
RoryHughes has quit [Client Quit]
loving_ruby has joined #ruby
asobrasil has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
asobrasil has quit [Max SendQ exceeded]
loving_ruby has left #ruby [#ruby]
obs has quit [Remote host closed the connection]
krawchyk has quit []
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Thanatermesis has joined #ruby
ffio has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
clamstar has joined #ruby
brtdv has quit [Ping timeout: 245 seconds]
flubba has quit [Remote host closed the connection]
bradhe has joined #ruby
heisenmink has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
<Buck> if I have a multidimensional array in ruby (say mapdata), it's easy to extract a row as an array (mapdata[x]). Is it possible to easily extract a column as an array, too? or do I need a loop ?
iamjarvo has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
rootshift has quit [Quit: rootshift]
zeade has joined #ruby
iamjarvo has joined #ruby
nomenkun has joined #ruby
<LadyRainicorn> mapdata.map{|r| r[c]}
maletor has joined #ruby
wald0 has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
<Buck> LadyRainicorn: thanks
TomRone has joined #ruby
ssvo_ has joined #ruby
fijimunk1i has quit [Quit: leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
rubyracer has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
jtgiri_ has quit [Ping timeout: 240 seconds]
LiohAu has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.0]
asobrasil has joined #ruby
ssvo has quit [Ping timeout: 250 seconds]
<s2013> how can i set a variable to something and if that doesnt exist set it to something else. i mean is there some ruby shorthand for it
asobrasil has quit [Max SendQ exceeded]
Aserpent10 has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
<Buck> s2013: you mean if defined?
blaxter has quit [Ping timeout: 248 seconds]
<Buck> or: defined? x
lethjakman has joined #ruby
timonv has joined #ruby
duggiefresh has joined #ruby
<s2013> no i mean is there something like a = x || 5
<s2013> or whatever
<s2013> so if x doesnt exist it will be set to 5
<s2013> just some simple shorthand.. if not its fine
<DouweM> s2013: x ||= 3
xjiujiu has quit [Read error: Connection reset by peer]
<DouweM> s2013: be careful with booleans though
<s2013> but that wont set a..
<s2013> that just sets x
marr has joined #ruby
lfox has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<DouweM> you want to set a to x or 5? then your original a = x || 5 was correct
<s2013> cause now the way i have it is defined?(x) ? a = x : a = 5
nomenkun_ has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<s2013> when i tried x || 5 NameError: undefined local variable or method `x' for main:Object
xjiujiu has joined #ruby
<DouweM> s2013: ah, I was assuming nil. Yeah, if it doesn't exist that won't work
maletor has joined #ruby
<s2013> gotcha
<DouweM> a = defined?(x) ? x : 5
<s2013> thanks
asobrasil has joined #ruby
nettoweb has quit [Quit: nettoweb]
asobrasil has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
nettoweb has joined #ruby
michaeldeol has joined #ruby
dagobah has quit [Remote host closed the connection]
asobrasil has joined #ruby
thams has joined #ruby
asobrasil has quit [Max SendQ exceeded]
wallerdev has joined #ruby
mojjojo has quit [Quit: mojjojo]
dhruvasagar has joined #ruby
asobrasil has joined #ruby
liamkeily has quit [Ping timeout: 248 seconds]
asobrasil has quit [Max SendQ exceeded]
g3orge has joined #ruby
brandonbl has quit [Ping timeout: 246 seconds]
rootshift has quit [Quit: rootshift]
aspires has joined #ruby
rootshift has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mojjojo has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
nobitanobi has joined #ruby
<g3orge> hi, is there a variable that keeps the current methods name? I find myself often needs one when printing warnings...
mojjojo has quit [Client Quit]
canton7-mac has quit [Ping timeout: 240 seconds]
crazymykl has quit [Remote host closed the connection]
canton7-mac has joined #ruby
shaunbaker has quit [Remote host closed the connection]
canton7-mac has quit [Client Quit]
asobrasil has joined #ruby
crazymykl has joined #ruby
intuxicated_ has joined #ruby
aspires has quit [Ping timeout: 240 seconds]
asobrasil has quit [Max SendQ exceeded]
threesome has quit [Ping timeout: 248 seconds]
sarlalian has joined #ruby
deception has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jibi has joined #ruby
krawchyk has joined #ruby
DeProdigy has quit [Ping timeout: 252 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 260 seconds]
g3orge has quit [Ping timeout: 240 seconds]
freggles has joined #ruby
vlad_starkov has joined #ruby
<LadyRainicorn> __method__
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Underbyte has joined #ruby
klaut_ has joined #ruby
asobrasil has joined #ruby
roolo has quit [Remote host closed the connection]
asobrasil has quit [Max SendQ exceeded]
tannerburson has quit [Quit: tannerburson]
nobitanobi has quit [Read error: Connection reset by peer]
mpereira has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
plack has quit [Ping timeout: 240 seconds]
plack has joined #ruby
heidi has joined #ruby
ambushsabre has joined #ruby
mojjojo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
klaut has quit [Ping timeout: 264 seconds]
jhaals has joined #ruby
mudmaster has quit [Ping timeout: 245 seconds]
tannerburson has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mudmaster has joined #ruby
Elhu has joined #ruby
Elhu has quit [Client Quit]
Davey has quit [Ping timeout: 252 seconds]
<banister> LadyRainicorn i think it's __calle__ actually
rootshift has quit [Quit: rootshift]
<banister> __callee__
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
intuxicated_ has quit [Ping timeout: 245 seconds]
mrj has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
nobitanobi has quit [Read error: Connection reset by peer]
heidi has quit [Ping timeout: 264 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mrmargolis has joined #ruby
<LadyRainicorn> Both work apparently
<mrmargolis> Does anyone know if the $? special variable is thread local?
<LadyRainicorn> Which is odd
mojjojo has quit [Quit: mojjojo]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
w4pm has joined #ruby
mojjojo has joined #ruby
mbff has quit [Ping timeout: 240 seconds]
digital-ghost has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
sguselnikov has quit []
sguselnikov has joined #ruby
sguselnikov has quit [Client Quit]
<LadyRainicorn> Apparently they were intended to be different but now behave identically.
asobrasil has joined #ruby
mojjojo has quit [Client Quit]
brandonblack has joined #ruby
asobrasil has quit [Max SendQ exceeded]
maxmanders has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mlpinit_ has joined #ruby
<LadyRainicorn> (I would use __method__ since __callee__ doesn't do what it used to anymore.)
xjiujiu has quit [Ping timeout: 246 seconds]
arietis has joined #ruby
shastaky has quit [Remote host closed the connection]
Davey has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jkhwan has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 240 seconds]
lkba has quit [Read error: Connection reset by peer]
pootler has quit [Quit: leaving]
luke_ has joined #ruby
luke_ has quit [Client Quit]
lkba has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jkhwan has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
TomRone has quit [Ping timeout: 240 seconds]
mpereira has joined #ruby
CaptainJet has joined #ruby
Txandy has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mojjojo has joined #ruby
asobrasil has joined #ruby
subbyyy_ has joined #ruby
asobrasil has quit [Max SendQ exceeded]
TomRone has joined #ruby
thams has quit [Quit: thams]
nowthatsamatt has quit [Ping timeout: 240 seconds]
barratt has quit [Ping timeout: 248 seconds]
nowthatsamatt has joined #ruby
thams has joined #ruby
saarinen has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
brandonblack has quit [Ping timeout: 264 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
mojjojo has quit [Client Quit]
<LadyRainicorn> mrmargolis: Yes, it appears to be.
flubba has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
maxmanders has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
cbetta is now known as cbetta_afk
<mrmargolis> @LadyRainicorn Is there some documentation somewhere, or did you run some kind of test?
ikawnoclast has joined #ruby
<mrmargolis> I am never sure how to search effectively for data on these $ vars
<LadyRainicorn> I ran a test.
<mrmargolis> Cool. Can I get a gist? I have some other scenarios to test.
kevinykchan has quit [Ping timeout: 246 seconds]
ffio has quit [Read error: Connection reset by peer]
<LadyRainicorn> ``; Thread.new{``;$e=$?}.join;$e==$?
Davey has quit [Max SendQ exceeded]
asobrasil has joined #ruby
kevinykchan has joined #ruby
asobrasil has quit [Max SendQ exceeded]
echevemaster has joined #ruby
maxmanders has joined #ruby
mpereira has quit [Quit: IRCRelay - http://ircrelay.com]
<LadyRainicorn> (that's false btw)
bbloom has joined #ruby
workmad3 is now known as wm3|away
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
brandonbl has joined #ruby
<mrmargolis> @LadyRainicorn Awesome. Thank you.
brtdv has joined #ruby
jfelchner has quit [Read error: Connection reset by peer]
<Authenticator> I can capture stdout by redefining $stdout, why can't I supply a replacement stdin by redefining $stdin?
brtdv has quit [Read error: Connection reset by peer]
<LadyRainicorn> You can't?
nanoyak has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<Authenticator> with_stdin("foo\n") { gets } returns nil, { $stdin.gets } returns "foo\n". I can't make it work without explicitly specifying the receiver for the gets.
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LadyRainicorn> Sounds like a bug.
<Authenticator> The method is a pretty standard, redefine a constant, call a block, replace it in the ensure block, kind of thing.
reset has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jfelchner has joined #ruby
Davey has joined #ruby
mojjojo has joined #ruby
<LadyRainicorn> Hnm, apparently this is intentional behavior, though confusing.
<Authenticator> I imagine it's got something to do with the ARGF.
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<LadyRainicorn> You need to use $stdin.reopen
phantummm has quit [Quit: phantummm]
culturel_ has joined #ruby
<LadyRainicorn> Oh, actually this is a bug.
<Authenticator> Heh!
<Aserpent10> Can anyone help me with refactoring?
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
blaxter has joined #ruby
<LadyRainicorn> Unless ARGF isn't stdin.
reset has quit [Ping timeout: 252 seconds]
<Authenticator> Aserpent10: Maybe. Can you describe the issue?
brianpWins has quit [Ping timeout: 250 seconds]
asobrasil has joined #ruby
<Aserpent10> replaced the variable part of the page titles with ERb
mojjojo has quit [Client Quit]
asobrasil has quit [Max SendQ exceeded]
g0bl1n has joined #ruby
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
m8 has joined #ruby
<LadyRainicorn> ?
timonv has quit [Remote host closed the connection]
mudmaster has quit [Ping timeout: 250 seconds]
GreatSUN has quit [Ping timeout: 272 seconds]
<Aserpent10> removed pieces of HTML and now whenever i run bundle exec i get an error message stating "Static Pages Home page should have the title 'Home'
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
d45h has quit []
<Aserpent10> Eliminating duplication with layouts section in rails tutorial book
robbyoconnor has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<LadyRainicorn> What are you running after bundle exec?
<LadyRainicorn> )
<LadyRainicorn> (That is not the important part of the command.
TomRone has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<Aserpent10> rspec spec/requests/static_pages_spec.rb
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
culturel_ has joined #ruby
asobrasil has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
asobrasil has quit [Max SendQ exceeded]
psyl0n has quit [Remote host closed the connection]
cha1tanya has joined #ruby
<LadyRainicorn> It sounds like you have failed a test.
arietis has quit [Ping timeout: 240 seconds]
<cha1tanya> hi why ruby has two types of new lines
<LadyRainicorn> You need to rewrite the test to be consistent with your refactior.
<LadyRainicorn> refactor
<Aserpent10> yes that is correct. I'm having a hard time figuring out what i did wrong
mudmaster has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
heidi has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
arietis has joined #ruby
<banister> LadyRainicorn i think in ruby 2.0 (or 2.1) __callee__ behaviour was restored
<LadyRainicorn> cha1tanya: Are you referring to on_ingnored_nl?
lfox has quit []
VTLob has joined #ruby
<LadyRainicorn> That is there because the newline isn't required, so it generates a different token.
asobrasil has joined #ruby
pel_daniel has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<LadyRainicorn> I imagine putting a semicolon on your second line would make the other newline ignored as well
mrmargolis has quit [Quit: mrmargolis]
<cha1tanya> LadyRainicorn: yes
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
lethjakman has joined #ruby
shastaky has joined #ruby
dfranciosi has quit [Remote host closed the connection]
m8 has quit [Ping timeout: 240 seconds]
mbff has joined #ruby
asobrasil has joined #ruby
acrussell has quit [Quit: Leaving.]
nomenkun has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<cha1tanya> LadyRainicorn: interesting
mbff is now known as Guest73362
<cha1tanya> this works 10.times do |n|puts n;end
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Spami has joined #ruby
Xeago has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
lfox has joined #ruby
nanoyak has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kevinykchan has joined #ruby
<LadyRainicorn> Yes.
camilasan has quit []
shastaky has quit [Ping timeout: 240 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
nanoyak has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
benlieb has joined #ruby
duggiefresh has quit [Remote host closed the connection]
iamjarvo has quit [Read error: Connection reset by peer]
hopkin has quit [Remote host closed the connection]
_whitelogger has joined #ruby
iamjarvo has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
rdark has quit [Quit: leaving]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Eiam has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
OdNairy has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
bluOxigen has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
bluOxigen has joined #ruby
nomenkun has joined #ruby
dfranciosi has joined #ruby
TomRone has joined #ruby
asobrasil has joined #ruby
OdNairy has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
asobrasil has quit [Max SendQ exceeded]
N00D is now known as zz_N00D
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asobrasil has joined #ruby
MichaelHansen has quit [Quit: Page closed]
asobrasil has quit [Max SendQ exceeded]
LiohAu has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
robbyoconnor has quit [Quit: Konversation terminated!]
culturel_ has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 252 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
jkhwan has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
varfoo has quit [Quit: WeeChat 0.4.0]
joshmyers has joined #ruby
jkhwan has joined #ruby
varfoo has joined #ruby
tannerburson has quit [Quit: tannerburson]
<joshmyers> Hey guys, I have a time string that I am trying to parse, e.g. "2013-12-17T18:17:22Z"
TomRone has quit [Ping timeout: 240 seconds]
<joshmyers> eval DateTime.parse("2013-12-17T18:17:22Z")
DeProdigy has joined #ruby
<joshmyers> DateTime.parse("2013-12-17T18:17:22Z")
zz_N00D is now known as CripperZ
<joshmyers> eek, how can I get the bot to do it's thing? :)
shadoi has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Elhu has joined #ruby
<LadyRainicorn> >> "Hello, joshmyers."
<eval-in> LadyRainicorn => "Hello, joshmyers." (https://eval.in/80406)
<joshmyers> >> DateTime.parse("2013-12-17T18:17:22Z")
<eval-in> joshmyers => uninitialized constant DateTime (NameError) ... (https://eval.in/80407)
TomRone has joined #ruby
Txandy has quit [Quit: Leaving...]
<joshmyers> doh
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<LadyRainicorn> require 'datetime'
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
DanBoy has joined #ruby
mudmaster has quit [Ping timeout: 250 seconds]
<LadyRainicorn> What areyou trying to do anyway?
Eiam has quit [Read error: Connection timed out]
asobrasil has joined #ruby
cha1tanya has quit [Ping timeout: 252 seconds]
<joshmyers> I didn't realise that Time.parse would get me what I want LadyRainicorn!
Eiam has joined #ruby
mudmaster has joined #ruby
vlad_starkov has joined #ruby
rubyracer has quit [Ping timeout: 245 seconds]
mrmargolis has joined #ruby
Advocation has quit [Quit: Advocation]
MrZYX|off is now known as MrZYX
rubyracer has joined #ruby
DeProdigy has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
brianpWins has joined #ruby
benlieb has quit [Quit: benlieb]
Elhu has quit [Ping timeout: 240 seconds]
mrmargolis has quit [Client Quit]
tjbiddle has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
pushpak has joined #ruby
<tjbiddle> Hey guys - I'm having a hard time using gsub to escape a backslash: http://gumho.blogspot.com/2009/11/escaping-backslash-in-rubys-gsub.html doesn't work - I keep getting "\\"
nobitanobi has joined #ruby
mmitchel_ has joined #ruby
blaxter has quit [Quit: foo]
TomRone has joined #ruby
rubyracer has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
barratt has joined #ruby
Megtastique has quit []
rubyracer has joined #ruby
jkamenik has joined #ruby
mary5030_ has joined #ruby
w4pm has joined #ruby
drag00n has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
kpshek has quit []
mary5030 has quit [Ping timeout: 250 seconds]
mmitchell has quit [Ping timeout: 246 seconds]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tannerburson has joined #ruby
bogeyd6 has joined #ruby
<tjbiddle> Never mind - String is just getting interpolated weird. If I puts it - then it returns correctly.
mary5030 has joined #ruby
<Authenticator> LadyRainicorn: I got the stdin wrapper working. old_in = $stdin.dup ; rd, wr = IO.pipe ; $stdin.reopen rd ; t = Thread.new{ wr.write input ; wr.close} ; yield ensure t.kill if t ; $stdin = old_in
heidi has joined #ruby
reset has joined #ruby
<apeiros> tjbiddle: that's because "\\0" etc. have a meaning
<apeiros> you need a ridiculous amount of backslashes to replace something with a single backslash (6 I think)
mary5030_ has quit [Ping timeout: 252 seconds]
<tjbiddle> apeiros: Just two worked, actually
keen_____ has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
<apeiros> o0
samsonasu has quit [Quit: samsonasu]
keen_ has joined #ruby
Bira has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> "\\0" should be \0
<tjbiddle> apeiros: But I read in multiple spots about having multiple - Not quite sure why I'm not seeing the same? But oh well, lol
klaut_ has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
p4d4w4n has joined #ruby
<LadyRainicorn> >> puts "x".gsub("x", "\\")
<eval-in> LadyRainicorn => \ ... (https://eval.in/80409)
preller has quit [Ping timeout: 245 seconds]
<LadyRainicorn> I don't see why you would need multiple ones.
<LadyRainicorn> That blog sounds wrong.
shadoi has quit [Quit: Leaving.]
bbloom has quit [Read error: Connection reset by peer]
hogeo_ has quit [Remote host closed the connection]
zipper has joined #ruby
lewix has joined #ruby
sharms has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
burlyscudd has quit [Quit: Leaving.]
michaeldeol has quit [Remote host closed the connection]
txdv has joined #ruby
michaeldeol has joined #ruby
tylersmith has joined #ruby
<Hanmac> LadyRainicorn & tjbiddle its because gsub adds an addional layer so you can use stuff like \\1 as back references
Txandy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<LadyRainicorn> oic
burlyscudd has joined #ruby
sheap has joined #ruby
michaeldeol has quit [Ping timeout: 252 seconds]
allaire has quit []
carraroj has joined #ruby
michaeldeol has joined #ruby
mikepack_ has quit [Remote host closed the connection]
lewix_ has joined #ruby
tannerburson has quit [Quit: tannerburson]
jkamenik has quit [Quit: Leaving.]
aspires has joined #ruby
mudmaster has quit [Ping timeout: 260 seconds]
mlpinit_ has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
Guest70549 has quit [Remote host closed the connection]
mpereira has joined #ruby
mlpinit_ has joined #ruby
jkamenik has joined #ruby
CalimeroTeknik_ is now known as CalimeroTeknik
zipper has quit [Quit: Lost terminal]
preller has joined #ruby
mudmaster has joined #ruby
TomRone has joined #ruby
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
psyl0n has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
echevemaster has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
jle` has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Bira has joined #ruby
Bira has quit [Client Quit]
erry_ has joined #ruby
nomenkun has joined #ruby
g3orge has joined #ruby
erry_ has left #ruby [#ruby]
samsonasu has joined #ruby
vikhyat has joined #ruby
havenn has joined #ruby
psyl0n has quit [Remote host closed the connection]
havenn has quit [Read error: Connection reset by peer]
Alina-malina has quit [Quit: Leaving]
nomenkun has quit [Ping timeout: 248 seconds]
habanany has left #ruby [#ruby]
mmitchel_ has quit [Remote host closed the connection]
werdnativ has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
mmitchell has joined #ruby
yfeldblum has joined #ruby
havenwood has joined #ruby
decoponio has quit [Quit: Leaving...]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
fijimunkii has quit [Read error: Connection reset by peer]
DeProdigy has joined #ruby
fijimunkii has joined #ruby
shime has joined #ruby
phansch_ has joined #ruby
dfranciosi has quit [Remote host closed the connection]
doodlehaus has joined #ruby
dogweather has joined #ruby
mengu has joined #ruby
priyam_ has left #ruby [#ruby]
TomRone has quit [Ping timeout: 240 seconds]
phipes has joined #ruby
randomnick_ has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
Jeticus has joined #ruby
RoryHughes has joined #ruby
Duckily has joined #ruby
DeProdigy has quit [Ping timeout: 250 seconds]
CaptainJet has quit [Ping timeout: 250 seconds]
phansch has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
SHyx0rmZ has joined #ruby
akonny has joined #ruby
ewnd9 has joined #ruby
mengu has quit [Remote host closed the connection]
TomRone has joined #ruby
Xeago has quit [Remote host closed the connection]
mengu has joined #ruby
rollietikes has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
dkamioka has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
baordog_ has joined #ruby
LadyRainicorn has quit [Quit: Bye]
LadyRainicorn has joined #ruby
DeProdigy has joined #ruby
kirun has joined #ruby
agjacome has joined #ruby
dkamioka has joined #ruby
benlieb has joined #ruby
mudmaster has quit [Ping timeout: 260 seconds]
louism2wash has joined #ruby
phantummm has joined #ruby
Alina-malina has joined #ruby
mudmaster has joined #ruby
hogeo has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
g3orge has quit [Quit: WeeChat 0.4.2]
nobitanobi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
guiocavalcanti has quit [Remote host closed the connection]
<louism2wash> Hey guys, I am trying to understand threads better and I just want to make sure I am on the right track as far as my understanding… executing code in different threads, without creating multiple ruby processes, doesn't provide any performance gain because you are simply scheduling two different threads on the same process. However, if you have a blocking operation such as a database call you can achieve greater performance by p
<louism2wash> erforming that database operation in a separate thread.
senj has joined #ruby
burlyscudd has joined #ruby
<LadyRainicorn> Yes
jmccune_ has joined #ruby
iliketur_ has joined #ruby
preller has quit [Ping timeout: 260 seconds]
xiphias has quit [Remote host closed the connection]
xiphias has joined #ruby
<louism2wash> LadyRainicorn: was that in response to me?
iliketur_ has quit [Client Quit]
hogeo has quit [Ping timeout: 245 seconds]
barratt has quit [Quit: Leaving...]
jkamenik has quit [Quit: Leaving.]
<LadyRainicorn> Yes
jfelchner has joined #ruby
whunt has joined #ruby
lewix has quit [Remote host closed the connection]
iliketur_ has joined #ruby
phantummm has quit [Ping timeout: 240 seconds]
<whunt> hi everyone, i have a question about regular expressions
lewix has joined #ruby
<whunt> or validating them actually
<whunt> in ruby
phantummm has joined #ruby
<whunt> is there an easy way to see if a string is a valid regular expression
<TTilus> wan to keep it to yourself?
<whunt> so if you type /*whatever/ you get an error
<TTilus> try to build a regex from it
lewix has quit [Read error: No route to host]
<whunt> how can you see if the string "*whatever" is a valid regular expression
CripperZ is now known as zz_CripperZ
lewix has joined #ruby
<whunt> that gives you a SyntaxError
preller has joined #ruby
<whunt> which is not easy to work with
<yxhuvvd> validating them from what source? user or something else?
<TTilus> rescure SyntaxError
xiphias has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
<whunt> TTilus: I tried that, it doesn't work
jfelchner has quit [Ping timeout: 245 seconds]
<whunt> it doesn't do what you think it does
<whunt> also, even ensure doesn't run if you throw a syntax error
Jeticus has quit [Ping timeout: 260 seconds]
<TTilus> ah, it is parse time error, not runtime
havenwood has quit [Read error: Connection reset by peer]
<whunt> begin; x = /*whatever/ ensure puts 'hello' end
<whunt> does not print hello...
<TTilus> only instantiate your regex runtime
<LadyRainicorn> whunt: Regexp.compile
xiphias has joined #ruby
<whunt> LadyRainicorn: whoa that works!
<LadyRainicorn> Regexp.compile(s)&&true rescue false
jfelchner has joined #ruby
jkamenik has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
Czupa has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Czupa has joined #ruby
ValicekB has quit [Ping timeout: 265 seconds]
esing has quit [Quit: Verlassend]
burlyscudd has quit [Quit: Leaving.]
esing has joined #ruby
esing has joined #ruby
esing has quit [Changing host]
TomRone has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
zastern_ has quit [Quit: WeeChat 0.4.1]
Guest23006 is now known as dreamchaser
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
skaflem has quit [Quit: Leaving]
zastern has joined #ruby
tvw has quit [Read error: Connection reset by peer]
<whunt> thanks for the help guys!
zastern has quit [Client Quit]
p4d4w4n has quit [Quit: This computer has gone to sleep]
DeProdigy has quit [Ping timeout: 250 seconds]
rootshift has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
ce_afk is now known as cescalante
TomRone has joined #ruby
mikepack has joined #ruby
wedgeV has quit [Ping timeout: 246 seconds]
Czupa has quit [Ping timeout: 260 seconds]
zastern has joined #ruby
ringaroses has joined #ruby
lewix has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
mojjojo has joined #ruby
phantummm has quit [Quit: phantummm]
lewix has joined #ruby
kpshek has joined #ruby
preller has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
shoMo_ has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
mgolisch_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mgolisch has joined #ruby
shoMo has joined #ruby
DrShoggoth has quit [Quit: Leaving]
phipes has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
lewix has quit [Read error: No route to host]
lewix has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
shadoi has joined #ruby
mudmaster has quit [Ping timeout: 260 seconds]
SJr has left #ruby ["Leaving"]
CaptainJet has quit [Ping timeout: 260 seconds]
preller has joined #ruby
xiphias has joined #ruby
rkrdo has joined #ruby
<waxjar> neat or "gtfo you monster"? https://gist.github.com/britishtea/8011845
mudmaster has joined #ruby
wedgeV has joined #ruby
burlyscudd has joined #ruby
wedgeV has quit [Write error: Broken pipe]
rkrdo has left #ruby [#ruby]
zz_CripperZ is now known as CripperZ
shawnjgoff has joined #ruby
alvaro_o has joined #ruby
shoMo has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
<LadyRainicorn> That is actually prettt neat.
dkamioka has quit [Remote host closed the connection]
ringaroses has quit [Quit: Leaving]
TomRone has joined #ruby
shoMo has joined #ruby
allaire has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
jerius has quit []
robbyoconnor has quit [Ping timeout: 260 seconds]
xiphias has joined #ruby
ValicekB has joined #ruby
nomenkun has joined #ruby
benlieb has quit [Quit: benlieb]
<shawnjgoff> Why does "2.times.with_object([]) { |i, memo| memo << i }" return [0,1], but "2.times.with_object(0) { |i, memo| memo +=i }" not return 1?
DrShoggoth has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<waxjar> because 0 + 0 + 1 = 1
lewix has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
<waxjar> wait i read that wrong
lewix has joined #ruby
<MrZYX> shawnjgoff: because Fixnums are immutable
lfox has quit [Ping timeout: 264 seconds]
<MrZYX> shawnjgoff: use .inject
<shawnjgoff> Okay.
allaire has quit [Ping timeout: 240 seconds]
awestroke has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
lewix has quit [Read error: No route to host]
xiphias has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
lewix has joined #ruby
<shawnjgoff> Yeah, I'm aware that reduce/inject is the correct thing to use here, but this just surprised me.
<MrZYX> what happens is that you assign a new object to memo and then memo falls out of scope
<shawnjgoff> Okay... how about this: "(0..1).each.with_object(c) { |a, b| p a; p b; b += a }" c is mutable, but this still gives me 0 and c is still 0.
<Hanmac> shawnjgoff: with_object allways returns the same object ... use it when you want to return a hash or a array, use inject when you want to return a product or an sum
iliketur_ has quit [Quit: zzzzz…..]
xiphias has joined #ruby
larissa has joined #ruby
jchristi has quit [Ping timeout: 246 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
<MrZYX> shawnjgoff: += changes the variable, not the object
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
<MrZYX> it's short for a = a+b
<MrZYX> a+b returns a new object, it doesn't modify a
mengu__ has joined #ruby
ringaroses has joined #ruby
ValicekB has quit [Max SendQ exceeded]
burlyscudd has quit [Quit: Leaving.]
<shawnjgoff> Got it.
jerius has joined #ruby
DeProdigy has joined #ruby
TomRone has joined #ruby
cascalheira has joined #ruby
olivier_bK has joined #ruby
iliketur_ has joined #ruby
mengu has quit [Ping timeout: 261 seconds]
iliketur_ has quit [Client Quit]
phipes has joined #ruby
closures999 has quit []
preller has quit [Ping timeout: 260 seconds]
jfelchner has joined #ruby
burlyscudd has joined #ruby
shadoi has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
DeProdigy has quit [Ping timeout: 252 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CripperZ is now known as zz_CripperZ
shastaky has joined #ruby
Czupa has joined #ruby
Czupa has quit [Read error: Connection reset by peer]
ringaroses has quit [Quit: Leaving]
rkrdo has joined #ruby
rkrdo has left #ruby [#ruby]
jkamenik has quit [Quit: Leaving.]
shoMo has quit [Ping timeout: 248 seconds]
closures999 has joined #ruby
jhaals has joined #ruby
shoMo has joined #ruby
closures999 has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
ValicekB has joined #ruby
Txandy has quit [Quit: Leaving...]
blackmesa has joined #ruby
atno has quit [Quit: Leaving]
<tjbiddle> Wow. I'm lost. I've uninstalled an internal gem from every possible gem location I can think of (gem1.8 gem1.9.1 and rvm) and this service i have that requires it STILL works
<tjbiddle> I have no idea where this gem could be - I'm trying to edit it on the fly to enable some logging to fix some junk - but i can't seem to find the right one to work with
<tjbiddle> It shouldn't even be on the machine anymore - I'm so confused. Lol
iamjarvo has quit [Read error: Connection reset by peer]
lewix has quit [Remote host closed the connection]
iamjarvo has joined #ruby
krawchyk has quit []
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
bbloom has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
geggam has joined #ruby
<LadyRainicorn> tjbiddle: bundle show <gem>
erasmus has joined #ruby
Megtastique has quit [Ping timeout: 240 seconds]
lewix__ has joined #ruby
hogeo has joined #ruby
b00stfr3ak has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
Megtastique has joined #ruby
<LadyRainicorn> You probably want to just make a custom repository and point your Gemfile to that
<LadyRainicorn> Editing the actual gem is not a good idea.
jfelchner has quit [Quit: zzzzzzzzzzzzz………]
awestroke has quit [Ping timeout: 240 seconds]
guiocavalcanti has joined #ruby
<tjbiddle> LadyRainicorn: Meh - internal gem. Test application. Gets overwritten any time I re-install it. Not a big deal - And don't want to re-commit just to test something for 3 seconds
duggiefresh has joined #ruby
charliesome has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tjbiddle> LadyRainicorn: Checking out bundle show - Just found out that the upstart service is deciding to report that it's up, but the application wasn't running. So at least I have that running for me - it *was* breaking - just not failing.
<tjbiddle> Weird.
phantummm has joined #ruby
awestroke has joined #ruby
<LadyRainicorn> Your upstart file is probably broken then.
aryaching has quit [Ping timeout: 260 seconds]
psyl0n has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
<tjbiddle> LadyRainicorn: I know
Xeago has quit [Ping timeout: 252 seconds]
<tjbiddle> I need to make it use rvm to begin with - I don't know why it's not when a near-identical one I have is working fine.
mudmaster has quit [Ping timeout: 245 seconds]
securitycrush has quit [Quit: Leaving]
lewix__ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
ezra has joined #ruby
jkamenik has joined #ruby
atno has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
Guest73362 has quit [Ping timeout: 240 seconds]
<jokke> hey
<jokke> is there something like this in hash? {a: 'bla', b: 'blub'}[:a,:b]
<jokke> which would result in ['bla','blub']
<MrZYX> .values_at
<jokke> oh cool
<jokke> thanks
TomRone has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
benlieb has joined #ruby
whunt has quit [Ping timeout: 252 seconds]
mudmaster has joined #ruby
TomRone has joined #ruby
Jetchisel has joined #ruby
sheap has quit [Quit: Lost terminal]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hl has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
charliesome has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
mojjojo has quit [Quit: mojjojo]
iliketur_ has joined #ruby
whunt has joined #ruby
DeProdigy has joined #ruby
mojjojo has joined #ruby
Es0teric has joined #ruby
benlieb has quit [Quit: benlieb]
TomRone has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Remote host closed the connection]
hl has joined #ruby
phansch_ has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
ewnd9 has quit [Remote host closed the connection]
shastaky has quit [Ping timeout: 250 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centipedefarmer has joined #ruby
ewnd9 has joined #ruby
TomRone has joined #ruby
mojjojo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
derpieee has joined #ruby
nanoyak has joined #ruby
rootshift has quit [Quit: rootshift]
<MvDevNull> hello guy, how can i install libruby1.9.3 on ubuntu without Rvm (apt-get install only libruby1.9.1)
simoz3 has joined #ruby
<MvDevNull> (and girl :-p)
RoryHughes has joined #ruby
<MrZYX> what did you try so far?
RoryHughes has quit [Max SendQ exceeded]
<MrZYX> MvDevNull: ^
RoryHughes has joined #ruby
<MvDevNull> apt-get install ruby1.9.3
guiocavalcanti has quit [Remote host closed the connection]
derpieee has left #ruby [#ruby]
<MrZYX> so why did you do that if you just want libruby1.9.1 ?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funburn has joined #ruby
<MvDevNull> i want libruby 1.9.2+ , i've got some pblm with passenger http://pastebin.com/EzPrW77U
<MrZYX> that's complaining that you don't have the gem bundler installed
varfoo has quit [Quit: WeeChat 0.4.0]
<MrZYX> that won't be fixed by installing libruby1.9.1 (which seems to be already installed if you get that far)
emocakes has joined #ruby
<MvDevNull> yes libruby 1.9.1 is already installed
<MrZYX> don't confuse rubys interpreter and ABI version
<MvDevNull> but yesterday someone explain my pblm on passager came from an outdate libruby
jkhwan has quit [Remote host closed the connection]
Shidash has quit [Quit: Leaving.]
<MrZYX> the ABI version for the 1.9 series is 1.9.1, the interpreter version is 1.9.3
nobitanobi has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
<MrZYX> ubuntu uses the ABI version in the package names
<Hanmac> MvDevNull: "dpkg -s libruby1.9.1 | grep Version" #=> Version: 1.9.3.194-8.1ubuntu2.1
postmodern has joined #ruby
<MrZYX> and ruby uses the ABI version in the paths
<MrZYX> so while that says 1.9.1, you can still have a 1.9.3 ruby
<MvDevNull> ok, got it ... yesterday someone explain my pblm on passager came from an outdate libruby
<MrZYX> that's wrong, it comes from not having bundler installed
<MrZYX> cannot load such file -- bundler/setup <- this line says that
joshmyers is now known as bubu
bbloom has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
yalue has quit [Quit: Leaving]
<MvDevNull> shame on me it was on the first line :(
burlyscudd has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Ping timeout: 250 seconds]
m8 has joined #ruby
Elhu has joined #ruby
michaeldeol has quit [Remote host closed the connection]
clamstar has joined #ruby
clamstar has quit [Max SendQ exceeded]
<bubu> hey guys, am trying to write a nagios check in ruby but am convinced I'm doing it wrong, bad data structure?? Any ideas would be great
michaeldeol has joined #ruby
nomenkun has joined #ruby
Jetchisel has quit [Ping timeout: 265 seconds]
nanoyak has quit [Ping timeout: 260 seconds]
clamstar has joined #ruby
clamstar has quit [Max SendQ exceeded]
jkhwan has joined #ruby
mudmaster has quit [Ping timeout: 240 seconds]
<bubu> if there are empty queues, I'd rather end up with it not being in the hash at all, rather than a key with an empty array value
<MrZYX> Resque.working returns an array, right?
<bubu> yup
robustus has quit [Quit: ZNC - http://znc.in]
lewix has quit [Remote host closed the connection]
katherinem13 is now known as kit_lamb
kit_lamb is now known as kitlamb
kitlamb is now known as kitty_lamb
lewix has joined #ruby
lewix has quit [Read error: Connection reset by peer]
jkamenik has quit [Quit: Leaving.]
<bubu> [#<Worker worker6:24085:events>, #<Worker orker1:1008:lifesense> ]
<bubu> for example MrZYX
kitty_lamb is now known as kittylamb
nanoyak has joined #ruby
kittylamb is now known as kiki_lamb
robustus has joined #ruby
<bubu> that's got my queue names in it...
<bubu> hmm
michaeldeol has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
kiki_lamb is now known as kikilamb
kikilamb is now known as katherinem13
Jetchisel has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
<MrZYX> untested: queues = Resque.working.each_with_object(Hash.new {|h,k| h[k] = [] }) {|x, hash| queue = hash[x.job['queue']]; queue << x.job['run_at'] }
<MrZYX> I'd actually already Time.parse in there
kung has quit [Read error: Connection reset by peer]
kung has joined #ruby
<bubu> hmm, what you mean you already Time.parse in there? o_0
lkba has quit [Ping timeout: 250 seconds]
<MrZYX> queue << Time.parse(x.job['run_at'])
<bubu> ahh
podjem has joined #ruby
mudmaster has joined #ruby
m0use_ has quit []
<MrZYX> queues.values.each do |time| <- time contains the arrays, so either first flatten or nest another loop, don't rely on Array#to_s
<bubu> my god, it's a monstrosity but you've accomplished what I've been thinking about for several hours in about 2 mins!
<xibalba> experience
clamstar has joined #ruby
<bubu> Thank MrZYX!
Elhu has quit [Quit: Computer has gone to sleep.]
<DouweM> bubu: didn't you only want to collect jobs for those specific queues? I already provided you with the same code MrZYX wrote a couple of hours ago fwiw ;)
RoryHughes has quit []
ixti has joined #ruby
<bubu> DouweM: thanks for that too! I'm still messing around with it at the mo!
<DouweM> bubu: :)
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dr_bob has joined #ruby
preller has quit [Ping timeout: 245 seconds]
whunt has quit [Quit: Computer has gone to sleep.]
Thana` has joined #ruby
whunt has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
TomRone has quit [Ping timeout: 240 seconds]
kevind has quit [Quit: kevind]
Thanatermesis has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
Thana` has quit [Client Quit]
Thanatermesis has joined #ruby
wald0 has joined #ruby
dima_ has joined #ruby
culturel_ has joined #ruby
preller has joined #ruby
TomRone has joined #ruby
vikhyat has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
<MvDevNull> thks for yours answers, for installing gem bundler on ubuntu, it's the rubygems package right? because if i use it, it 'll install ruby 1.8... is there a way for installing it in 1.9.3 env (without RVM).. or it ins'nt a pblm if it cames with 1.8?.
podjem has quit [K-Lined]
funburn has quit [Ping timeout: 240 seconds]
iliketur_ has quit [Quit: zzzzz…..]
funburn has joined #ruby
m8 has quit [Quit: Sto andando via]
<MvDevNull> ok it is a pblm..
wallerdev has quit [Quit: wallerdev]
aerook has quit [Quit: Page closed]
clamstar has quit [Ping timeout: 250 seconds]
psyl0n has quit [Remote host closed the connection]
kindjal has joined #ruby
hogeo has joined #ruby
jamblack has joined #ruby
dr_bob has quit [Quit: Leaving.]
jfelchner has joined #ruby
psyl0n has joined #ruby
michaeldeol has joined #ruby
jamblack has left #ruby [#ruby]
clamstar has joined #ruby
<MrZYX> MvDevNull: is it so hard to type out stuff? ;) anyway bundler is not in the rubygems package, try sudo gem install bundler or sudo gem-1.9 install bundler or something similar
mengu has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
iliketur_ has joined #ruby
preller has quit [Ping timeout: 252 seconds]
magoo has joined #ruby
iamjarvo_ has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
vlad_starkov has quit []
mengu__ has quit [Ping timeout: 260 seconds]
iamjarvo_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
<MvDevNull> i think my mind is not ready for ruby... thks..
petey has joined #ruby
mudmaster has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
clamstar has quit [Ping timeout: 248 seconds]
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.11/20131119163834]]
fmcgeough has quit [Quit: fmcgeough]
vlad_starkov has joined #ruby
davy_ has joined #ruby
CaptainJet has quit []
psyl0n has quit [Remote host closed the connection]
<reactormonk> I'd like to display an array in sinatra one value per line - how do I do that? I considered joining it with "\n" and entering it into the form in a %p
preller has joined #ruby
<withnale_> How do you make a bundler application so that it can run anywhere? I thought it was just a case of require 'bundler/setup' in the main file, but if I am out of the main directory tree, it cannot find the bundled resources
mudmaster has joined #ruby
clamstar has joined #ruby
burlyscudd has joined #ruby
Monie has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 260 seconds]
lewix has quit [Remote host closed the connection]
<MrZYX> reactormonk: in HTML unordered lists should be declared with <ul> tags
<reactormonk> MrZYX, it's ordered
lewix has joined #ruby
<MrZYX> then <ol>
<reactormonk> MrZYX, should be copy/pastable with \n in it
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Elhu has quit [Quit: Computer has gone to sleep.]
<MrZYX> then use a <pre> tag and really just join with \n
eka has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Read error: Connection reset by peer]
lewix has quit [Read error: No route to host]
shastaky has joined #ruby
lewix has joined #ruby
yfeldblum has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
bbloom has joined #ruby
<shevy> hehe
<shevy> MrZYX has an answer ready for every occasion
mbff has joined #ruby
mbff is now known as Guest20725
Azure has quit [Quit: My MBP went to sleep.]
TomRone has joined #ruby
phantummm has quit [Quit: phantummm]
mary5030 has joined #ruby
wm3|away has quit [Ping timeout: 246 seconds]
shastaky has quit [Ping timeout: 260 seconds]
prc has joined #ruby
dogweather has quit []
heidi has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 252 seconds]
kaldrenon has quit [Remote host closed the connection]
dogweather has joined #ruby
kaldrenon has joined #ruby
danshultz has quit [Remote host closed the connection]
heidi has joined #ruby
danshultz has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
guiocavalcanti has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
whunt has joined #ruby
lkba has joined #ruby
funburn has quit [Quit: funburn]
lewix has quit [Remote host closed the connection]
sergicles has joined #ruby
<withnale_> How do you make a bundler application so that it can run anywhere? I thought it was just a case of require 'bundler/setup' in the main file, but if I am out of the main directory tree, it cannot find the bundled resources
lewix has joined #ruby
AMcP has joined #ruby
kaldrenon has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
davy_ has quit [Remote host closed the connection]
<MrZYX> withnale_: I'd just make a wrapper that sets the working directory correctly
preller has quit [Ping timeout: 264 seconds]
dogweather has quit [Remote host closed the connection]
davy_ has joined #ruby
spirtista has joined #ruby
dogweather has joined #ruby
angusiguess has joined #ruby
nomenkun has joined #ruby
sailias has quit [Quit: Leaving.]
claymore has quit [Quit: Leaving]
yfeldblum has joined #ruby
rossssssssss has joined #ruby
plack___ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
spirtista has quit [Remote host closed the connection]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<withnale_> I thought Bundler.setup and/or Bundler.require was supposed to solve this sort of thing?
Elhu has joined #ruby
phantummm has joined #ruby
tonni has joined #ruby
plack has quit [Ping timeout: 246 seconds]
<MrZYX> Bundler.setup modifies $LOAD_PATH so that only the gems specified in the Gemfile and their dependencies can be loaded
LiohAu has joined #ruby
<MrZYX> Bundler.require requires the gems in the specified/the default group
mudmaster has quit [Ping timeout: 260 seconds]
<withnale_> but both of them expect the gem to be run from it's base directory?
preller has joined #ruby
<MrZYX> or a subdirectory of it iirc
nomenkun has quit [Ping timeout: 264 seconds]
TomRone has joined #ruby
_bart has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guiocavalcanti has quit [Remote host closed the connection]
<yan_> i'm trying to run 'bundle package' in a brand new gem dir, where i specified some depdencies in the gemspec just to collect a vendor/cache directory. however, when i run 'bundle package', i get the error: "Could not find gem 'tempgem (>= 0) ruby' in source at /home/user/tmp/tempgem", where tempgem is the temporary gem i created to collect dependencies. am i missing a step?
drumusician has joined #ruby
Azure has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mudmaster has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has joined #ruby
ItSANgo__ has quit [Quit: Leaving...]
Eiam has quit [Ping timeout: 260 seconds]
phipes has joined #ruby
RoryHughes has joined #ruby
mmitchel_ has joined #ruby
preller has quit [Ping timeout: 260 seconds]
ethlor has joined #ruby
culturel_ has joined #ruby
culturel_ has quit [Max SendQ exceeded]
_bart has quit []
snath has joined #ruby
culturel_ has joined #ruby
agjacome has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 240 seconds]
bogeyd6 has quit [Quit: Leaving]
mmitchell has quit [Ping timeout: 260 seconds]
crus has joined #ruby
culturel_ has quit [Client Quit]
mmitchel_ has quit [Ping timeout: 250 seconds]
phantummm has quit [Quit: phantummm]
jamblack has joined #ruby
fijimunk1i has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
preller has joined #ruby
fijimunkii has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
fridim_ has joined #ruby
RoryHughes has quit []
TomRone has joined #ruby
phantummm has joined #ruby
dogweather has quit []
burlyscudd has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
Stevo123 has joined #ruby
mlpinit_ has quit [Quit: Leaving...]
<Stevo123> anyone recommend a good Data aggregation framework? Pref one that accepts JSON as input
phantummm has quit [Client Quit]
nettoweb has quit [Quit: nettoweb]
noob101 has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
threesome has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<noob101> Can someone tell me if there is a bug because my code isn't executing so I can go to the next lesson.
<shevy> noob101 are you aware that people can not see your code that way?
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
vlad_starkov has joined #ruby
<shevy> one way for them to see it would be by pasting the ruby code you have a problem with, into a site like http://pastie.org/ - also, include the specific error message (copy/paste that message into the pastie would be best)
<noob101> shevy, just try it please. It's not working. Besides, the answers are at hint if you click it.
hogeo has joined #ruby
<noob101> ok
danman has quit [Quit: danman]
lewix has quit [Remote host closed the connection]
<shevy> that site is damn slow to load up
jamblack has quit [Quit: jamblack]
<shevy> it loads an irb for me embedded into a website
lewix has joined #ruby
iliketur_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<MrZYX> noob101: won't make an account so contact their support if you have trouble
ItSANgo has joined #ruby
duggiefr_ has joined #ruby
kirun has quit [Quit: Client exiting]
duggiefresh has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
<shevy> ohhh
<shevy> he is just advertizing?
nanoyak has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
Kovensky has quit [Quit: ZNC - http://znc.in]
<MrZYX> who knows
hogeo has quit [Ping timeout: 252 seconds]
<shevy> :(
jamblack has joined #ruby
<shevy> yeah... should have figured it from his answer... "click it"
ewnd9 has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
nadirvardar has joined #ruby
lewix has quit [Ping timeout: 260 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
Aserpent10 has left #ruby [#ruby]
Kovensky has joined #ruby
lethjakman has quit [Quit: WeeChat 0.4.0]
clamstar has quit [Ping timeout: 260 seconds]
petey has quit [Remote host closed the connection]
RoryHughes has joined #ruby
burlyscudd has joined #ruby
elux has quit [Quit: Bye!]
charliesome has joined #ruby
vlad_starkov has quit [Ping timeout: 250 seconds]
mudmaster has quit [Ping timeout: 252 seconds]
petey has joined #ruby
psyl0n has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
dallasm_ has joined #ruby
preller has quit [Ping timeout: 252 seconds]
psyl0n has joined #ruby
CaptainJet has quit [Read error: No route to host]
sambao21 has joined #ruby
lnormous has joined #ruby
RoryHughes has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Remote host closed the connection]
pagios has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
petey_ has joined #ruby
threesome has quit [Ping timeout: 250 seconds]
sambao21 has quit [Client Quit]
petey has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
doodlehaus has quit [Client Quit]
nettoweb has joined #ruby
nettoweb has quit [Remote host closed the connection]
<noob101> I can't pass this lesson, is there a bug? Can anyone please help me?
sambao21 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<noob101> My code : http://pastie.org/8559456
<shevy> what does the method return?
<MrZYX> noob101: I don't think anybody has done this here
<MrZYX> really, contact their support
<shevy> the value of @balance is not defined in the pastie you showed
cescalante is now known as ce_afk
<noob101> I did, I haven't received a response yet..
brugidou has quit [Ping timeout: 246 seconds]
preller has joined #ruby
<noob101> shevy, what do you suggest?
klaut has joined #ruby
eregon has joined #ruby
jibi has quit [Quit: .]
<shevy> noob101 see, it all starts by reducing the problem at hand to a level where others can reproduce it
<shevy> the code in itself is unusual because you directly define on an object, I assume
eregon_ has quit [Ping timeout: 272 seconds]
<shevy> def account.add_interest!
<shevy> using methods with ! is also unusual for that
nadirvar_ has joined #ruby
Eiam has joined #ruby
lsmola_ has quit [Ping timeout: 260 seconds]
brugidou has joined #ruby
peregrine81 has quit []
psyl0n has quit [Read error: Connection reset by peer]
<shevy> >> class Account; def initialize; @balance = 5.0; end; def add_interest(percentage); @interest = (@balance * percentage)/100; end; def report; puts 'The interest is now at '+@interest.to_s+'.'; end; end; account = Account.new; account.add_interest 3; account.report
<eval-in> shevy => The interest is now at 0.15. ... (https://eval.in/80461)
<shevy> noob101 ^^^ that is how one tends to usually use a class in ruby
<noob101> Thanks, let's see.
psyl0n has joined #ruby
<shevy> the code you showed on the pastie is atypical, rare to see, and seems to be unnecessary
nadirvardar has quit [Ping timeout: 260 seconds]
<Eiam> dangit pry
<Eiam> pry-rescue
<shevy> noob101 ruby allows you to define methods on a per-object basis usually, but there is often not a need to do so in the first place. the less features you have to use in order to solve your problem, the better really
<Eiam> anyone have any experience with pry-rescue? I can see it in my backtrace, pry-rescue/core_ext.rb :enable_rescuing! but I'm not actually getting a pry console at all, Thin just keeps on going..
<noob101> shevy
shastaky has joined #ruby
<Eiam> to test it I just made an empty route that calls a non existent function so we get a NoMethodError
<noob101> In LearnStreet, your code didn't work. But thanks for the code, it looks so nice.
<shevy> my code worked in the bot
preller has quit [Ping timeout: 272 seconds]
<shevy> no I won't click on that again sorry
<MrZYX> noob101: it relies on your session, for everybody else it displays the first lession and after that wants you to create an account
Stevo123 has quit [Quit: Stevo123]
<noob101> MrZYX, I do not need your help. Thank you.
<shevy> :D
shastaky_ has joined #ruby
<MrZYX> ...
<shevy> one day people will learn ruby the old, classical way
<shevy> writing scripts locally!
shastaky has quit [Ping timeout: 246 seconds]
shastaky_ has quit [Read error: Connection reset by peer]
drumusician has quit [Ping timeout: 248 seconds]
psyl0n has quit [Ping timeout: 240 seconds]
shastaky has joined #ruby
dallasm_ has quit [Ping timeout: 260 seconds]
preller has joined #ruby
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
freerobby has quit [Quit: Leaving.]
kenneth has joined #ruby
SteveBenner9 has joined #ruby
matheuscaceres has joined #ruby
fijimunk1i has quit [Ping timeout: 245 seconds]
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
CaptainJet has quit [Read error: Connection reset by peer]
<Eiam> banister: I summon thee!
kpshek has quit []
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Eiam> damn didn't work ;)
shastaky has quit [Ping timeout: 260 seconds]
jkhwan has quit [Remote host closed the connection]
CaptainJet has joined #ruby
jkhwan has joined #ruby
ylluminate has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
TheNumb has quit [Ping timeout: 245 seconds]
patteh has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
fella5s has quit [Read error: Connection reset by peer]
fella5s has joined #ruby
d45h has joined #ruby
patteh has joined #ruby
culturel_ has joined #ruby
TheNumb has joined #ruby
<Eiam> If i force Pry::rescue {} it works as expected
lewix has joined #ruby
<Eiam> I wonder if padrino is "handling" my exceptions for me even when I don't want it to
matheuscaceres has quit [Quit: matheuscaceres]
randomnick_ has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
funburn has joined #ruby
brennanMKE has joined #ruby
lewix has quit [Read error: No route to host]
danshultz has joined #ruby
jamblack has quit [Quit: jamblack]
jerius has quit []
w4pm has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
frustrum has joined #ruby
frustrum has quit [Client Quit]
frustrum has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
bradhe has quit [Remote host closed the connection]
thams has quit [Quit: thams]
samsonasu has quit [Quit: samsonasu]
ItSANgo has quit [Ping timeout: 248 seconds]
bubbajones has quit [Ping timeout: 246 seconds]
CaptainJet has quit [Read error: No route to host]
prc has quit [Quit: Leaving.]
petey has joined #ruby
pagioss has joined #ruby
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
bubbajones has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 248 seconds]
petey_ has quit [Ping timeout: 250 seconds]
shawnjgoff has quit [Ping timeout: 264 seconds]
ItSANgo has joined #ruby
CaptainJet has joined #ruby
iliketur_ has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
raphaelivan has joined #ruby
bradhe has joined #ruby
sparrovv has joined #ruby
nanoyak has joined #ruby
phipes has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
CaptainJet has joined #ruby
aspires has quit []
mojjojo has joined #ruby
Rainicorn has joined #ruby
phipes has joined #ruby
drumusician has joined #ruby
lmickh has quit [Quit: lmickh]
sparrovv has quit [Remote host closed the connection]
DeProdigy has quit [Ping timeout: 260 seconds]
samsonasu has joined #ruby
dima_ has quit [Remote host closed the connection]
simoz3 has quit [Ping timeout: 260 seconds]
LadyRainicorn has quit [Ping timeout: 260 seconds]
dima has joined #ruby
preller has quit [Ping timeout: 252 seconds]
Rainicorn has quit [Ping timeout: 246 seconds]
nowthatsamatt has joined #ruby
anderson has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 250 seconds]
noob101 has quit [Ping timeout: 272 seconds]
dima has quit [Ping timeout: 246 seconds]
davy__ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
TorpedoSkyline has quit [Changing host]
TorpedoSkyline has joined #ruby
typicalbender has joined #ruby
Thanatermesis has left #ruby ["ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ"]
phipes has quit [Remote host closed the connection]
preller has joined #ruby
hogeo has joined #ruby
davy_ has quit [Ping timeout: 248 seconds]
graft has quit [Ping timeout: 246 seconds]
davy_ has joined #ruby
davy__ has quit [Read error: Connection reset by peer]
kevind has joined #ruby
vlad_starkov has joined #ruby
mojjojo has quit [Quit: mojjojo]
hogeo has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: No buffer space available]
mojjojo has joined #ruby
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby
VTLob has quit [Quit: VTLob]
iliketur_ has quit [Quit: zzzzz…..]