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
orionstein is now known as orionstein_away
jonr22_ has joined #ruby
Lewix_ has quit [Remote host closed the connection]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 265 seconds]
jonr22_ is now known as jonr22
DropsOfSerenity has joined #ruby
jonr22 has left #ruby [#ruby]
jonr22 has joined #ruby
arubin has quit []
Tentra has quit [Quit: Rage quit!]
rossssssssss has quit [Remote host closed the connection]
coca_rails has joined #ruby
Mon_Ouie has quit [Ping timeout: 253 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
p4d4w4n has joined #ruby
cameronbarton has joined #ruby
coldie has quit []
tylersmith has quit [Ping timeout: 252 seconds]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flame_ has joined #ruby
Hanmac has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
gf3 has joined #ruby
shime has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
predator117 has quit [Ping timeout: 264 seconds]
mootpointer has joined #ruby
predator117 has joined #ruby
tylersmith has joined #ruby
mlpinit has joined #ruby
benlieb has joined #ruby
psyl0n has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
mlpinit_ has quit [Ping timeout: 250 seconds]
flame_ has quit [Quit: Computer has gone to sleep.]
kcombs has quit [Ping timeout: 252 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
Ox6abe has joined #ruby
Ox6abe_ has quit [Ping timeout: 252 seconds]
bigoldrock3 has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
bigoldrock has joined #ruby
raphaelivan has joined #ruby
mgberlin has quit [Quit: mgberlin]
Ox6abe has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Duckily has quit [Quit: Duckily]
kcombs has joined #ruby
Ox6abe has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
p4d4w4n has joined #ruby
b00stfr3ak has quit [Quit: leaving]
djdarkbeat has quit [Quit: djdarkbeat]
simoz2 has joined #ruby
p4d4w4n has quit [Client Quit]
AlSquirrel has quit [Quit: This computer has gone to sleep]
mootpointer has quit [Quit: Exit, pursued by a bear.]
kitak has joined #ruby
RTG` has quit [Ping timeout: 256 seconds]
RTG` has joined #ruby
p4d4w4n has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
simoz has quit [Ping timeout: 252 seconds]
iliketur_ has joined #ruby
yfeldblum has joined #ruby
Ox6abe has quit [Ping timeout: 265 seconds]
ekarlso has quit [Changing host]
ekarlso has joined #ruby
simoz has joined #ruby
simoz3 has joined #ruby
preller has quit [Ping timeout: 272 seconds]
simoz2 has quit [Ping timeout: 250 seconds]
Thanatermesis has joined #ruby
Xeago has quit [Remote host closed the connection]
joshu has quit [Quit: Computer has gone to sleep.]
mlpinit_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mgberlin has joined #ruby
wald0 has joined #ruby
simoz has quit [Ping timeout: 246 seconds]
joshu has joined #ruby
Heskie has quit []
maletor has joined #ruby
goleldar has joined #ruby
danman has quit [Quit: danman]
zz_karupanerura is now known as karupanerura
siwica has joined #ruby
<wald0> i need a good lib to parse my "getopts", posix if possible, powerful, etc, which one is suggested ?
vlad_st__ has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
nobitanobi has quit [Quit: Leaving]
preller has joined #ruby
vlad_starkov has joined #ruby
<matti> So many of them.
<benlieb> Can anyone help me troubleshoot why RedCloth is not installing? https://gist.github.com/pixelterra/7938148
<matti> optparse, trollop
mlpinit has quit [Ping timeout: 272 seconds]
mgberlin_ has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
<matti> benlieb: Either bad C code or gcc/$CC is strict/broken.
bradhe has quit [Remote host closed the connection]
<matti> benlieb: What platform?
g0bl1n has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
<benlieb> mac 10.8.5
mgberlin has quit [Ping timeout: 246 seconds]
mgberlin_ is now known as mgberlin
apeiros has joined #ruby
<benlieb> I think it might be a ruby version issue. Installing RedCloth 4.0.2 fails
apeiros has quit [Read error: Connection reset by peer]
<benlieb> but 4.2.9 succeeds
vlad_starkov has quit [Read error: Connection reset by peer]
Thanatermesis has quit [Ping timeout: 256 seconds]
<benlieb> I'm porting an old rails app (2.1.1) to rails 4.0.2, and I want to use all of the old gems where possible without upgrading initially, just to minimize problems.
wald0 has quit [Ping timeout: 265 seconds]
<matti> benlieb: That would rather indicate that RC 4.2.9 is fixed.
mansi has joined #ruby
blackratdog has joined #ruby
<benlieb> matti: several versions of RedCloth failed to install.
mneorr has quit [Remote host closed the connection]
<benlieb> I'm using ruby 2.0.0, so maybe they weren't ready for that...
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Liothen has quit [Quit: System of a down……]
wald0 has joined #ruby
mneorr has joined #ruby
<matti> Ah.
<matti> Sorry.
<matti> I see what they've done.
<matti> benlieb: It is API differnce.
g0bl1n has joined #ruby
<matti> benlieb: It can be easily fixed.
blackratdog has quit [Client Quit]
<matti> benlieb: Do you want a patch?
simoz3 has quit [Ping timeout: 246 seconds]
<benlieb> matti: do I need one?
michaeldeol has joined #ruby
<matti> For 2.x yes.
<matti> With 4.0.2
<matti> That uses older things.
sawtooth has joined #ruby
<matti> Unless newer version works for you ;]
batchitcray has quit [Ping timeout: 245 seconds]
mikeg has quit [Remote host closed the connection]
<benlieb> Do you think the RC 4.2.9 won't work where 4.0.1 did?
<benlieb> I don't really know.
<benlieb> I guess I'll see.
Duckily has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<matti> ;]
whysosad has quit [Ping timeout: 250 seconds]
KmartSqrl has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
kevind has quit [Quit: kevind]
simoz3 has joined #ruby
jamesaanderson has joined #ruby
cameronbarton has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
michaeldeol has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
okinomo has joined #ruby
wald0 has joined #ruby
mikepack has joined #ruby
sailias has joined #ruby
jojo5 has joined #ruby
dhruvasagar has joined #ruby
<jojo5> Hey, is there anyone here?
<matti> Ye
goleldar has quit [Remote host closed the connection]
duggiefresh has joined #ruby
klaut has quit [Remote host closed the connection]
<jojo5> Hey, so, I am currently in the process of self teaching myself ruby programming. Already made a gem and a small program on my own. However, I was curious if anyone had any advice on self learning.
goleldar has joined #ruby
<jojo5> Anyone done it and got good enough to even get a job?
h0rrorvacui has quit [Quit: Leaving]
<pushp0p> jojo5: yes
<pushp0p> sort of easy to get a job with rails
wald0 has quit [Read error: Connection reset by peer]
drumusician has quit [Ping timeout: 252 seconds]
<matti> I think majority of self-taught people are in the industry
<pushp0p> learn some computer science while you're at it
<jojo5> pushp0p: I am eventually going into that, learning rails.
allaire has quit []
<pushp0p> it's not that hard to get a job if you really, really try hard
<jojo5> Are people cool with helping on here too if I have questions on a project I'm working on too. If I got stuck on part of a program for example?
djdarkbeat has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
Thanatermesis has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
<jojo5> Guess not ;).
goleldar has quit [Ping timeout: 260 seconds]
wald0 has joined #ruby
aroop has quit [Ping timeout: 240 seconds]
wc- has quit [Quit: wc-]
rootshift has joined #ruby
juarlex has quit []
jgrevich has joined #ruby
peregrine81 has quit []
<jojo5> Anyhow, anyone have ideas of where to go if I needed help?
sevenseacat has joined #ruby
<jojo5> AKA, I don't have teachers or a college professor to go to for help if I get lost for example.
marr has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
anomaly_ has quit [Read error: Connection reset by peer]
jojo5 has quit [Quit: Page closed]
VTLob has quit [Quit: VTLob]
<benlieb> jojo5: this is a fine place for help when you need it.
<endash> hrm what does `,=` mean
<benlieb> but since people are busy, they expect you to have googled it first
<benlieb> or maybe searched stack overflow
anomaly_ has joined #ruby
Thanatermesis has quit [Ping timeout: 252 seconds]
wald0 has quit [Ping timeout: 252 seconds]
<benlieb> and after that, ask a SPECIFIC question. No need to ask if you can ask a question
<benlieb> and don't piss anyone off :) which is surprisingly easy for some folks around these parts :)
mgberlin has quit [Quit: mgberlin]
wald0 has joined #ruby
goleldar has joined #ruby
<benlieb> also hang out in RubyOnRails, people give plenty of help
<endash> ah it's equiv to = blah.first
chrisja has quit [Quit: leaving]
spyderman4g63 has quit []
<benlieb> jojo5 left the chatroom. before waiting for a response. Already PISSED ME OFF>
KmartSqrl has quit []
<endash> haha
robustus has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
robustus|Off has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 252 seconds]
<bricker> Okay: http://www.ruby-doc.org/core-2.0.0/Method.html#method-i-arity I fully understand how arity() works. But I don't understand *why* it works that way. Is it historical, or is there some reasoning to it?
<bricker> (For variable arguments I mean)
hellome has joined #ruby
<bricker> I guess if all you have to work with is numbers, the way they do it makes most sense
ewnd9 has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pel_daniel has left #ruby [#ruby]
psyl0n has quit [Remote host closed the connection]
osvico has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
heidi has quit [Quit: Leaving.]
hellome has quit [Remote host closed the connection]
<benlieb> bricker: I agree that's weird
<benlieb> seems like an array would be better
batchitcray has joined #ruby
hellome has joined #ruby
xcv has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 272 seconds]
<bricker> benlieb: how would that look? (if you had it your way)
ffranz has joined #ruby
Bira has joined #ruby
<benlieb> bricker: never need to use this, but it seems like the only info they are giving you with the number method is the number of required args, and if the method has a variable number of args.
reach has quit [Read error: Connection reset by peer]
<benlieb> so why not [3,true]
mojjojo has quit [Quit: mojjojo]
akonny has quit [Quit: akonny]
djdarkbeat has quit [Quit: djdarkbeat]
mercwithamouth has joined #ruby
<benlieb> but I'm sure there's a good reason :)
Konst2 has joined #ruby
Konst has quit [Ping timeout: 245 seconds]
<benlieb> I don't write programming languages, I just use them :)
thirdeye has joined #ruby
r0bby_ has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
r0bby_ has joined #ruby
fedesilva has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
hellome has quit [Read error: Connection reset by peer]
hellome has joined #ruby
DeProdigy has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
timonv has joined #ruby
mdpatrick has joined #ruby
Jdubs has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
DeProdigy has joined #ruby
reset has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has joined #ruby
kobain has quit []
lyanchih has joined #ruby
kobain has joined #ruby
kobain has quit [Remote host closed the connection]
danman has joined #ruby
tkuchiki has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
bogeyd6 has joined #ruby
mikepack has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 265 seconds]
peregrine81 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
fedesilva has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
tylersmith has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
rootshift has quit [Quit: rootshift]
nobitanobi has joined #ruby
mneorr has joined #ruby
duggiefresh has quit [Remote host closed the connection]
xcv has joined #ruby
tylersmith has quit [Remote host closed the connection]
nobitanobi is now known as asdasdsad
asdasdsad is now known as nobitanobi
maletor has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
fedesilva has joined #ruby
fgo has joined #ruby
fijimunkii has joined #ruby
fandikurnia01 has joined #ruby
fedesilva has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
Voodoofish430 has quit [Quit: Leaving.]
wc- has joined #ruby
gazarsgo has joined #ruby
gdoteof has joined #ruby
ephemerian has quit [Quit: Leaving.]
fedesilva has joined #ruby
<gdoteof> anyone use compass? i am not super familiar with ruby; and am not sure how the paths work. http://compass-recipes.moox.fr/#quickstart <-- im following this 'guide' and everytime time i try and do an @import in my sass i get a missing file
fedesilva has quit [Remote host closed the connection]
gazarsgo has left #ruby [#ruby]
<gdoteof> i have confimed that the 'recipes' i am attempting to use are in /var/lib/gems/1.9.1/gems/compass-recipes-0.3.0/stylesheets/recipes/
<gdoteof> but it appears they aren't actually looking there
fedesilva has joined #ruby
jonahR has joined #ruby
fedesilva has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
bigoldrock has quit [Ping timeout: 272 seconds]
lmickh has quit [Quit: lmickh]
michaeldeol has joined #ruby
nhunzaker has joined #ruby
volty has quit [Quit: Konversation terminated!]
falood has joined #ruby
benlieb has quit [Quit: benlieb]
Zesty has joined #ruby
jonahR has quit [Quit: jonahR]
benlieb has joined #ruby
DropsOfSerenity has joined #ruby
hakunin has joined #ruby
coca_rails has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Markvilla has joined #ruby
ambushsabre has quit [Remote host closed the connection]
maletor has joined #ruby
KS has joined #ruby
L8D has joined #ruby
mercwithamouth has joined #ruby
frankperez87 has joined #ruby
s2013 has joined #ruby
skiddex2 has joined #ruby
<frankperez87> Hi everyone. How can i have 1 thing looping non stop, while having another part of the script still respond to user input or other actions. The idea is to have a piece of information that can change each second get updated while at the same time being able to interact with the program. This is a terminal program btw.
snath has joined #ruby
CpuID has joined #ruby
fedesilva has joined #ruby
ffranz has quit [Ping timeout: 260 seconds]
fijimunk1i has joined #ruby
yacks has joined #ruby
<fuzzyfuzz> Like a forked/subprocess?
brianpWins has quit [Ping timeout: 260 seconds]
fijimunkii has quit [Ping timeout: 246 seconds]
fgo has quit [Remote host closed the connection]
fijimunk1i is now known as fijimunkii
maletor has quit [Quit: Computer has gone to sleep.]
mgberlin has joined #ruby
<platzhirsch> I am in the refactoring spiral... heeeeeelp, I cannot get out
<platzhirsch> one step forward, three backwards
<ddd> hahaha platzhirsch thats a typical off day for me. so easy to get into that pattern too
<bricker`LA> platzhirsch: git reset --hard
<bricker`LA> platzhirsch: yw
<ddd> bricker`LA, cheater ;)
klaut has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<platzhirsch> I just have to face some demons I left for half-dead in my project code
<platzhirsch> now they haunt me and I guess nows the point for seal them forever in the git history :o
<ddd> platzhirsch, yeah i'm putting off my work on dtf for that exact reason. i left a whole pack of demons in THAT code base :shudder:
<ddd> not ready to shake them out
<platzhirsch> shag or shake?
<ddd> i've another project thankfully keeping me busy atm
saarinen has quit [Quit: saarinen]
<ddd> hmm, i'd rather not shag a demon if you don't mind
<platzhirsch> sorry, watching too much Misfits
<ddd> heh
michael_lee has joined #ruby
jojo9 has joined #ruby
phipes has quit [Remote host closed the connection]
DropsOfSerenity has quit [Quit: Peace.]
<jojo9> Does ruby have a helpful method that lets you move the first letter of a string to the end of a word?
p4d4w4n has joined #ruby
<jojo9> Or do you have to do that manually with arrays?
klaut has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
<Jamo> afaik, such doesnt exist
fedesilva has quit [Remote host closed the connection]
<Jamo> may I ask why you need to do it? :)
raphaelivan has quit [Quit: Leaving.]
<jojo9> I'm teaching myself ruby, its one of the problems. Its like the ruby Kohns. I am looking through the docs but dont see anything.
ehc has quit [Quit: ehc]
<ddd> jojo9, get The Well-Grounded Rubyist (manning.com/black2 or black3)
jgrevich has quit [Ping timeout: 246 seconds]
<ddd> i'd suggest black3 since its the newest release. but either will work for learning ruby and learning well
<jojo9> I might look into it.
<jojo9> I'm not brand new to ruby, I have made a gem before.
<jojo9> I am sort of new though.
<jojo9> I already went through an online class on it.
<jojo9> I think working on stuff at this point is the best way.
<Jamo> I like this also, http://eloquentruby.com/ might be already few years old
Jdubs has joined #ruby
psyl0n has joined #ruby
fedesilva has joined #ruby
<jojo9> But, long of the short, if I want to do something like this "john" and change it to "ohnj", I would have to find a way to manually do that myself?
existensil has quit [Quit: leaving]
<jojo9> I figure there may be a useful thing in ruby docs that did this, but maybe not.
mary5030 has quit [Remote host closed the connection]
fedesilva has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 250 seconds]
<frankperez87> Looks like I can use threads to run multiple things concurrently. Is there a way in ruby for cli applications to only have the data replace a line of text. What im doing is looping through the results of my memory usage, and writing it to the screen. I want it to just overwrite the 1 line of results instead of returning a new line each time.
preller has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
osvico has quit [Ping timeout: 246 seconds]
Konst2 has quit [Ping timeout: 246 seconds]
psyl0n has quit [Ping timeout: 265 seconds]
simoz3 has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has joined #ruby
benlieb has quit [Quit: benlieb]
xcv has quit [Remote host closed the connection]
<Jamo> jojo9: afaik, you need to make it yourself
CpuID has quit [Quit: This computer has gone to sleep]
<jojo9> Jamo: I found a way you can do it. You use gsub.
xcv has joined #ruby
pu22l3r has joined #ruby
<Jamo> ok. great
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
h0rrorvacui has joined #ruby
gdoteof has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
reach has joined #ruby
mosscollum has joined #ruby
<jojo9> Jamo: I found this in stack, but I don't understand what it is doing, can you help explain?: mystring.gsub(/^([a-z]+)-(\w+)/, '\2(\1)')
ambushsabre has joined #ruby
<Jamo> intresting solution, it basically uses regular expressions to switch places
norm has quit [Ping timeout: 245 seconds]
<jojo9> Yeah, I really don't understand regular expressions very well :/.
freggles has quit [Remote host closed the connection]
<Jamo> umm
<jojo9> I think that is the problem.
<jojo9> Although, I tried it in irb, and I don't think it works.
xcv has quit [Ping timeout: 260 seconds]
<Jamo> oh now I understand
<Jamo> that regex turns string like "hello-world" to "world(hello)"
RTG` has quit [Read error: Connection reset by peer]
RTG` has joined #ruby
<jojo9> Oh, I think I have a better, easier solution
<Jamo> ^([a-z]+) looks for string containing only letters a-z
<jojo9> Jamo: I meant, do you know a good website that explains regular expressions?
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<jojo9> It doesn't do me much good, because I know there are millions of different conbinations
<jojo9> To just know that one.
<jojo9> I guess.
thirdeye has quit [Remote host closed the connection]
gdoteof has joined #ruby
<Jamo> it doesent explain those too much but its quick to try
<jojo9> Ok, I will try to play with that some.
thirdeye has joined #ruby
<jojo9> The solution someone else showed was using the []
<jojo9> method for string
<jojo9> just using them to swap things around.
skiddex2 has left #ruby [#ruby]
<jojo9> seem easier.
preller has quit [Ping timeout: 272 seconds]
Konst has joined #ruby
<Jamo> I cant remember, but like 8 first chapters of this http://www.amazon.com/Introduction-Theory-Computation-Michael-Sipser/dp/0534950973 could help you to understad regular expressions
skulker has joined #ruby
<Jamo> but thats quite deep stuff :)
<jojo9> Jamo: I think rjhunters link is what I may be looking for, lol.
<jojo9> rjhunter: Is regex basically short for regular expressions?
<rjhunter> jojo9: yup
<jojo9> rjhunter: Yep, that is exactly what I needed, thanks :).
<jojo9> Jamo: Not that your link isn't helpful :P.
<rjhunter> jojo9: you'll also hear "regexp" sometimes. they all mean the same thing.
<jojo9> rjhunter: Its basically the jibberish between the // things right?
<jojo9> rjhunter: In oversimplified terms.
<rjhunter> jojo9: that's one way to think of it :-)
thirdeye has quit [Ping timeout: 252 seconds]
<Jamo> jojo9: this should work: "str".gsub(/^(.)(.+)/, '\2\1')
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
<jojo9> Jamo: Thanks for that, but I'm going to try the solution where you simply use word[3..10+]word[1].
<Jamo> I dont like idea about solving exercises for others, but that might help you to understanf that
simoz3 has joined #ruby
<jojo9> Basically solves the problem in a simplier way :P.
<Jamo> yep
<jojo9> Jamo: I may copy/paste it though, you don't have to solve the problems for me.
<Jamo> :)
<jojo9> I'm mainly looking for help is all, not for someone to solve the problem for me :P.
mneorr has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
maletor has joined #ruby
thirdeye has joined #ruby
<Jamo> yea
celeryman has quit [Ping timeout: 246 seconds]
<Jamo> once again I cant figure out how I actually wanted so say that :D
danman has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
nari has joined #ruby
nobitanobi has quit [Remote host closed the connection]
_5kg has quit [Read error: Connection reset by peer]
<jojo9> Jamo: What do you mean?
_5kg has joined #ruby
<jojo9> Jamo: This was my solution btw after searching arouund + playing around in the compiler: "#{word[1..wordnum]}#{word[0]}"+"ay"
tris has quit [Quit: Leaving]
<jojo9> I like it because it seems simpler.
<Jamo> as being a teaching assistant in university, I dont like the idea of someone just sharing correct solution, just like I did
<jojo9> Oh
<jojo9> Yeah, I'm in a catch 22 situation.
<jojo9> I need help, but don't have a teacher to help (because I'm learning on my own).
wudofyr has quit [Ping timeout: 260 seconds]
<jojo9> So IDK.
<jojo9> At least in classes, they give you "answers", then have you learn on your own.
<jojo9> I guess, idk
<jojo9> .
<jojo9> wordnum==the length of the word btw.
wudofyr has joined #ruby
mosscollum has quit [Quit: mosscollum]
hadees has joined #ruby
tylersmith has joined #ruby
primenum has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
tris has joined #ruby
mordocai_ has joined #ruby
michaeldeol has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
davy_ has quit [Remote host closed the connection]
<bnagy> >> w="blah"; w.split('').rotate.join
<eval-in_> bnagy => "lahb" (https://eval.in/78870)
<bnagy> mmm tasty lahb.
<ddd> bnagy, what is that bot? it a hubot or something? or a custom write?
troyready has quit [Ping timeout: 250 seconds]
okinomo has quit [Ping timeout: 246 seconds]
<bnagy> charliesome's thing
<bnagy> is-a niice
michaeldeol has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
p4d4w4n has quit [Quit: This computer has gone to sleep]
<ddd> i have a hubot running but its' eval and ruby eval scripting is busted up.
<ddd> was wondering if this one was OSS
<bnagy> not afaik, I think we asked before
<ddd> idk js well enough to fix it
<ddd> gotcha
Hanmac has joined #ruby
nhunzaker has quit [Remote host closed the connection]
bnjamin has quit [Remote host closed the connection]
<jojo9> bnagy: What did I do, I'm confused?
larissa has joined #ruby
<bnagy> you're asking what you did to become confused?
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<jojo9> bnagy: Yes, I'm going back to coding :p.
<jojo9> bnagy: Sorry, I was lost.
<bnagy> regex will do that
<jojo9> That is why I avoided it in my solution :P.
<jojo9> I need to work through that tutorial though.
<jojo9> It looks really helpful.
<jojo9> Its completely foreign to me right now.
<jojo9> It gets used to many times and is evidently really useful too, so I need to learn it too though it seems.
DeProdigy has quit [Ping timeout: 246 seconds]
gja has joined #ruby
_bart has joined #ruby
Jdubs has quit [Remote host closed the connection]
danshultz has joined #ruby
varfoo has joined #ruby
batchitcray has quit [Ping timeout: 250 seconds]
mordocai_ has quit [Quit: Page closed]
mneorr has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
timonv has joined #ruby
jkhwan has quit [Remote host closed the connection]
Megtastique has quit []
io_syl has quit []
carif has quit [Quit: Ex-Chat]
havenwood has quit [Remote host closed the connection]
cjsarette has joined #ruby
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
g0bl1n has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 252 seconds]
frozzenfire has joined #ruby
nettoweb has joined #ruby
osvico has joined #ruby
KS has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 265 seconds]
<frozzenfire> Hello everyone, I am having a lot of difficulties here installing RVM on my mac. Could someone help please? I am learning how to code in Ruby on Rails and I'm stuck at the setup itself... http://hastebin.com/coyetatobe.vhdl
fijimunkii has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
jkhwan has joined #ruby
jkhwan has quit [Client Quit]
taion809 has quit [Quit: No Ping reply in 180 seconds.]
jojo9 has quit [Quit: Page closed]
reach has quit [Remote host closed the connection]
taion809 has joined #ruby
<bnagy> both #rvm and #rubyonrails have dedicated channels
frozzenfire has left #ruby [#ruby]
dodosan has joined #ruby
jkhwan has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<sevenseacat> so he went straight to #rubyonrails and then they sent him straight to #rvm
reach has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
nettoweb has quit [Quit: nettoweb]
<bnagy> \o/
fgo has quit [Ping timeout: 246 seconds]
Bira has quit []
araujo has quit [Quit: Leaving]
marcgg has joined #ruby
<platzhirsch> It's not possible to get the name of a local variable as a string, isn't it?
vlad_starkov has joined #ruby
dodosan has quit [Remote host closed the connection]
saarinen has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
brianpWins has joined #ruby
<bnagy> >> foo = 3; local_variables
<eval-in_> bnagy => [:foo] (https://eval.in/78872)
gja has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
codeFiend has quit [Quit: codeFiend]
marcgg_ has quit [Ping timeout: 260 seconds]
<platzhirsch> woop
mary5030 has joined #ruby
juarlex has joined #ruby
juarlex has quit [Client Quit]
goleldar has quit [Remote host closed the connection]
freakazoid0223 has quit [Ping timeout: 240 seconds]
juarlex has joined #ruby
<platzhirsch> bnagy: perfect
goleldar has joined #ruby
<platzhirsch> because I need to pass the methods variable names into a hash where the keys have the same name
Nogbit has joined #ruby
<bnagy> sounds awful
<platzhirsch> bnagy: sure, only way to pass variables when rendering a partial in Ruby on R#@%&
<platzhirsch> sorry for the swearing
mary5030 has quit [Ping timeout: 245 seconds]
goleldar has quit [Ping timeout: 246 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
gja has joined #ruby
blueOxigen has joined #ruby
frankperez87 has left #ruby [#ruby]
cjsarette has quit [Ping timeout: 252 seconds]
<platzhirsch> local_variables.each_with_object({}) { |variable, locals| locals[variable] = eval variable.to_s }
krazee has joined #ruby
simoz4 has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
ixti has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
freakazoid0223 has joined #ruby
<platzhirsch> first time I used eval
<RubyPanther> platzhirsch: don't do a nasty eval, do send( var )
Konst has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
Andrevan has joined #ruby
simoz3 has quit [Ping timeout: 252 seconds]
blueOxigen has quit [Ping timeout: 245 seconds]
<platzhirsch> uhh, better
<platzhirsch> ah no, I need it for the local variable
<platzhirsch> send only works on methods
bluOxigen has joined #ruby
coldmethod has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
digital-ghost has quit [Remote host closed the connection]
d45h has joined #ruby
<RubyPanther> so why don't you have an accessor? add one
preller has quit [Ping timeout: 246 seconds]
<platzhirsch> RubyPanther: I want to turn method arguments into a hash where the key is the method argument name and the value the actual argument value
sensen has joined #ruby
<RubyPanther> you're killing kittens, you're going to destroy the internet
okinomo has joined #ruby
<platzhirsch> I don't care, to hell with them
<RubyPanther> platzhirsch: Right, so there is no reason to need locals
jonr22 has quit [Remote host closed the connection]
simoz4 has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
<rjhunter> surely there is a happier way to achieve what you're doing
_bart has quit [Remote host closed the connection]
<platzhirsch> well I am simply wrapping that whole call into a method so it does not clutter up my view file
d45h has quit [Ping timeout: 250 seconds]
coldmethod has joined #ruby
jonr22_ has joined #ruby
<platzhirsch> cause render partial: 'shared/dropdown_menu', locals: { changer: @repositories, entities: @repository.snapshots, display: @metric } starts to get too long
jonr22 has quit [Read error: Connection reset by peer]
<platzhirsch> although... it's a lot more readable, ah stone the crows then it takes two..three lines, who cares
mercwithamouth has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
preller has joined #ruby
michaeldeol has joined #ruby
coca_rails has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
jonr22_ has quit [Remote host closed the connection]
mootpointer has joined #ruby
batchitcray has joined #ruby
jonr22 has joined #ruby
skulker has quit [Remote host closed the connection]
lmickh has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
caveat- has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 250 seconds]
lewix has quit [Remote host closed the connection]
Jetchisel has quit [Ping timeout: 260 seconds]
ttlnowz has joined #ruby
bnjamin has joined #ruby
zeade has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
fgo has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
hadees has quit [Quit: hadees]
jonathanwallace has joined #ruby
browndawg has joined #ruby
maletor has joined #ruby
fijimunkii has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
maletor has quit [Client Quit]
radic has quit [Disconnected by services]
radic_ has joined #ruby
bigoldrock1 has joined #ruby
<platzhirsch> so I guess it's friends don't let friends use eval?
jonahR has joined #ruby
Konst has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
<RubyPanther> and "#send means never having to say eval STRING"
kayloos has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
DeProdigy has joined #ruby
kcombs has quit [Ping timeout: 246 seconds]
<platzhirsch> RubyPanther: well of course, who would use eval if you use send, but it was not applicable in this case
<platzhirsch> if you can use send*
lmickh has quit [Quit: lmickh]
thirdeye has quit [Remote host closed the connection]
peregrine81 has quit []
Spami has quit [Quit: This computer has gone to sleep]
thirdeye has joined #ruby
juarlex has quit [Remote host closed the connection]
gianlucadv has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
k00000 has joined #ruby
bigoldrock1 has quit [Ping timeout: 245 seconds]
lyanchih has quit [Quit: lyanchih]
DeProdigy has quit [Ping timeout: 250 seconds]
pu22l3r has joined #ruby
k00000 is now known as mt_thor
<RubyPanther> platzhirsch: my point was, send covers the use cases where you would otherwise need eval. In this case you're right, you don't need either.
<platzhirsch> =P
<platzhirsch> RubyPanther: do you have any legitimate use cases for eval
thirdeye has quit [Ping timeout: 252 seconds]
hiyosi_ has quit [Read error: Operation timed out]
sailias has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
Jetchisel has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<RubyPanther> platzhirsch: some sort of interpreter front end where the data is actually code that isn't stored somewhere
<platzhirsch> yeah, thought so
<RubyPanther> we can do all of our metaprogramming tricks without it
fgo has quit [Remote host closed the connection]
braincrash has joined #ruby
_maes_ has joined #ruby
pu22l3r has joined #ruby
wc- has quit [Quit: wc-]
vlad_starkov has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
preller has quit [Ping timeout: 250 seconds]
mt_thor has quit [Quit: Lingo - http://www.lingoirc.com]
primenum has quit [Ping timeout: 272 seconds]
skulker has joined #ruby
JohnBat26 has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
kaldrenon has joined #ruby
bnjamin has quit [Ping timeout: 252 seconds]
clamstar has joined #ruby
jkhwan has quit [Remote host closed the connection]
preller has joined #ruby
skulker has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
Spami has joined #ruby
simoz4 has joined #ruby
clamstar has quit [Client Quit]
jkhwan has joined #ruby
freerobby has quit [Quit: Leaving.]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
hiyosi_ has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
lewix has joined #ruby
echevemaster has joined #ruby
Hanmac1 has joined #ruby
hiyosi_ has quit [Ping timeout: 250 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
dukz has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
jamesaanderson has joined #ruby
mercwithamouth has quit [Quit: Lost terminal]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
lyanchih has joined #ruby
djdarkbeat has joined #ruby
rburton- has joined #ruby
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby
fijimunkii has joined #ruby
zastern has quit [Read error: Operation timed out]
vlad_starkov has quit [Read error: Connection reset by peer]
zastern has joined #ruby
jhn has joined #ruby
zeade has quit [Quit: Leaving.]
IceDragon has quit [Quit: Space~~~]
michaeldeol has quit [Ping timeout: 250 seconds]
timonv has joined #ruby
LostMonk- is now known as Lostmonk
Lostmonk has quit [Quit: Leaving]
s2013 has joined #ruby
lewix has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
Lostmonk has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
amacgregor_ has joined #ruby
amacgregor__ has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
w4pm has quit [Ping timeout: 264 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
yacks has quit [Ping timeout: 250 seconds]
emocakes has quit [Quit: Linkinus - http://linkinus.com]
Nogbit has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
s2013 has quit [Remote host closed the connection]
freerobby has joined #ruby
soba has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
d45h has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
terrellt has quit [Ping timeout: 260 seconds]
rjhunter has quit [Remote host closed the connection]
duggiefresh has joined #ruby
jkhwan has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
d45h has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 246 seconds]
codeFiend has joined #ruby
it_tard has joined #ruby
Nogbit has joined #ruby
codeFiend has quit [Client Quit]
coca_rails has joined #ruby
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
thirdeye has joined #ruby
iidot has left #ruby ["see ya"]
skulker has joined #ruby
nowthatsamatt has joined #ruby
funburn has quit [Quit: funburn]
vlad_starkov has joined #ruby
thirdeye has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
jkhwan has quit [Remote host closed the connection]
Nogbit has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby
nwertman has joined #ruby
mgberlin has quit [Quit: mgberlin]
doodlehaus has quit []
bnjamin has joined #ruby
rezzack has quit [Ping timeout: 264 seconds]
anomaly_ has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
s2013 has joined #ruby
preller has quit [Ping timeout: 246 seconds]
lewix has joined #ruby
wc- has joined #ruby
coca_rails has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 252 seconds]
rh1n0 has quit [Quit: Textual IRC Client: www.textualapp.com]
jhn has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
phipes has joined #ruby
pu22l3r has quit [Remote host closed the connection]
preller has joined #ruby
sc00l has joined #ruby
nomenkun has joined #ruby
lewix has quit [Ping timeout: 246 seconds]
weems has quit [Quit: Leaving]
sc00l has left #ruby [#ruby]
dhruvasagar has quit [Read error: Connection reset by peer]
hiyosi_ has joined #ruby
dhruvasagar has joined #ruby
sensen has quit [Ping timeout: 250 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
lewix has joined #ruby
hiyosi_ has quit [Ping timeout: 246 seconds]
primenum has joined #ruby
Jdubs has joined #ruby
simoz5 has joined #ruby
mootpointer has joined #ruby
simoz4 has quit [Ping timeout: 246 seconds]
dev__ has joined #ruby
nomenkun has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
sensen has joined #ruby
yfeldblum has joined #ruby
michaeldeol has joined #ruby
CaptainJet has quit []
OdNairy has joined #ruby
duggiefresh has quit [Remote host closed the connection]
jkhwan has joined #ruby
sayan has joined #ruby
lemonsparrow has joined #ruby
bnjamin has quit [Ping timeout: 246 seconds]
h0rrorvacui has quit [Read error: Connection reset by peer]
jkhwan has quit [Remote host closed the connection]
Guest82348 has quit [Ping timeout: 272 seconds]
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
michaeldeol has quit [Remote host closed the connection]
ehc has joined #ruby
michaeldeol has joined #ruby
DrShoggoth has quit [Quit: Leaving]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
mrj has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
michaeldeol has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
nadirvardar has joined #ruby
kostine has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
MattStratton has joined #ruby
h0rrorvacui has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
skulker has joined #ruby
Alina-malina has joined #ruby
timonv has joined #ruby
havenwood has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
anomaly_ has quit [Read error: Connection reset by peer]
preller has quit [Ping timeout: 252 seconds]
h0rrorvacui has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
anomaly_ has joined #ruby
michaeldeol has joined #ruby
skulker has quit [Ping timeout: 272 seconds]
simoz6 has joined #ruby
simoz5 has quit [Ping timeout: 260 seconds]
kiri has joined #ruby
simoz7 has joined #ruby
preller has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
sergicles has quit [Quit: sergicles]
simoz6 has quit [Ping timeout: 250 seconds]
h0rrorvacui has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pranny has joined #ruby
iaj has quit [Ping timeout: 260 seconds]
maroloccio has quit [Quit: WeeChat 0.4.1]
bricker`LA has quit [Ping timeout: 264 seconds]
Jdubs_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mengu has joined #ruby
coca_rails has joined #ruby
kayloos has quit []
iaj has joined #ruby
Jdubs has quit [Ping timeout: 246 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
sensen has quit [Ping timeout: 246 seconds]
kaldrenon has quit [Remote host closed the connection]
sensen has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi_ has joined #ruby
Monie has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Monie has quit [Max SendQ exceeded]
Monie has joined #ruby
Clooth has quit [Quit: Linkinus - http://linkinus.com]
anomaly_ has quit [Read error: Connection reset by peer]
noop has joined #ruby
dukz has quit [Remote host closed the connection]
anomaly_ has joined #ruby
ppppaul has joined #ruby
hiyosi_ has quit [Ping timeout: 260 seconds]
michaeldeol has left #ruby [#ruby]
dev__ has quit [Ping timeout: 250 seconds]
dukz has joined #ruby
LexicalScope has joined #ruby
preller has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
charliesome has joined #ruby
bnjamin has joined #ruby
tagrudev has joined #ruby
kevinykchan has quit [Client Quit]
preller has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
kevinykchan has joined #ruby
Mon_Ouie has joined #ruby
nomenkun has joined #ruby
ehc has quit [Quit: ehc]
wc- has quit [Quit: wc-]
dhruvasagar has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
bricker`LA has joined #ruby
simoz7 has quit [Ping timeout: 252 seconds]
skulker has joined #ruby
viuo has joined #ruby
viuo has quit [Client Quit]
scruple has joined #ruby
Xeago has quit [Remote host closed the connection]
freerobby has joined #ruby
<platzhirsch> Any shorter way to get the array out of another array where all other elements are different than [:a, [], 5].select { |i| i.is_a?(Array) }.first
coldmethod has quit [Remote host closed the connection]
Konst has quit [Ping timeout: 245 seconds]
browndawg has quit [Quit: Leaving.]
existensil has joined #ruby
skulker has quit [Ping timeout: 246 seconds]
bnjamin_ has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
<Mon_Ouie> I don't know what yo mean by "where all other elements are different", but select { … }.first is like Enumerable#find
jonr22 has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
<existensil> just discovered there are 4 different built-in databases in the ruby stdlib. 3 of them are different implementations of DBM. weird.
<lewix> platzhirsch:
<lewix> >> [:a, [], 5].take_while { |i| i.is_a?(Array) }
<eval-in_> lewix => [] (https://eval.in/78999)
<platzhirsch> nice
jonr22 has quit [Ping timeout: 265 seconds]
vkam has joined #ruby
vkam has left #ruby [#ruby]
relix has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
scruple has quit [Quit: leaving]
Mon_Ouie has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dukz has quit [Remote host closed the connection]
Konst has joined #ruby
batchitcray has quit [Quit: Lost terminal]
jezen has joined #ruby
parduse is now known as Guest31008
Guest31008 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
parduse has joined #ruby
timonv has quit [Remote host closed the connection]
Arzaga has joined #ruby
mootpointer has joined #ruby
scruple has joined #ruby
pranny has quit [Read error: Connection reset by peer]
Nogbit has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
scruple has quit [Client Quit]
tylershipe has joined #ruby
aagdbl1 has joined #ruby
okinomo has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Gonzih has joined #ruby
saarinen has joined #ruby
jprovazn has joined #ruby
saarinen has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 246 seconds]
larissa has quit [Quit: Leaving]
dukz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
d45h has joined #ruby
dukz has joined #ruby
aagdbl1 has quit [Quit: Leaving.]
akonny has joined #ruby
Lewix_ has joined #ruby
Underbyte has quit [Read error: Connection reset by peer]
hiyosi_ has joined #ruby
Underbyte has joined #ruby
<pipecloud> existensil: I'm a fan of SDBM.
mootpointer has quit [Quit: ENOCAFFEINE.]
w1xz has joined #ruby
browndawg has joined #ruby
jaredrhine has quit [Read error: Operation timed out]
amacgregor has joined #ruby
amritanshu_RnD has joined #ruby
<pipecloud> existensil: I know DBM, GDBM, and SDBM. What's the other?
hiyosi_ has quit [Ping timeout: 246 seconds]
amacgregor__ has quit [Ping timeout: 246 seconds]
mburns has quit [Ping timeout: 272 seconds]
zz_N00D is now known as CripperZ
platzhirsch has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
CripperZ is now known as N00D
charliesome has joined #ruby
io_syl has quit []
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 is now known as aagdbl
iliketur_ has joined #ruby
_5kg has quit [Ping timeout: 246 seconds]
_5kg has joined #ruby
djdb has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
shevy has quit [Ping timeout: 245 seconds]
amundj has joined #ruby
w4pm has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
LexicalScope has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
aryaching has quit []
yugui is now known as yugui_zzz
flubba has quit [Remote host closed the connection]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
flubba has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
jaredrhine has joined #ruby
mburns has joined #ruby
skulker has joined #ruby
coca_rails has joined #ruby
preller has quit [Ping timeout: 272 seconds]
flubba has quit [Ping timeout: 250 seconds]
dh64 has joined #ruby
buzzybron has joined #ruby
<buzzybron> how should i name my classes? in camel case or in seperated with underscore?
yfeldblum has quit [Read error: Connection reset by peer]
<buzzybron> say This_Is_A_Class or ThisIsAClass ?
buzzybron has left #ruby [#ruby]
buzzybron has joined #ruby
dagobah has joined #ruby
yfeldblum has joined #ruby
andikr has joined #ruby
<sevenseacat> latter
<kostine> buzzybron: camel case
dhruvasagar has quit [Quit: leaving]
<kostine> file name would be this_is_a_class.rb
jezen has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 245 seconds]
pwestlund_away is now known as pwestlund
coca_rails has quit [Ping timeout: 245 seconds]
<buzzybron> no underscores?
shevy has joined #ruby
<buzzybron> so class name is using camel case and then file name small case with underscore
<buzzybron> is that right?
Arzaga has quit [Remote host closed the connection]
<lewix> yes
preller has joined #ruby
dhruvasagar has joined #ruby
vlad_starkov has joined #ruby
freerobby has joined #ruby
<buzzybron> arigato!
gja has joined #ruby
blo has quit [Ping timeout: 240 seconds]
amacgregor_ has joined #ruby
Xeago has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
preller has quit [Ping timeout: 260 seconds]
amacgregor_ has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
amacgregor has quit [Read error: Connection reset by peer]
<bricker`LA> I have an array of objects, and the objects have their `eql?` and `==` method defined so that if they have the same ID and same class then they're considered equal. How do I get `uniq` to honor this? Documentation says "It compares values using their hash and eql? methods for efficiency.", so I guess I'm missing something regarding the "hash" bit
blo has joined #ruby
noname001__ has joined #ruby
lsmola has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
preller has joined #ruby
phipes has quit [Remote host closed the connection]
<lewix> bricker`LA: you can still use uniq with a block
brtdv has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
klaut has joined #ruby
<bricker`LA> lewix: ah. I defined the "#hash" method for the objects and that seems to have worked. Is there anything wrong with doing it that way?
dhruvasagar has quit [Read error: Connection reset by peer]
phansch has joined #ruby
ahawkins has joined #ruby
<lewix> bricker`LA: can i see the code. I'm curious
ewnd9 has joined #ruby
Nilium has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Read error: Connection reset by peer]
avril14th has quit [Remote host closed the connection]
<bricker`LA> lewix: This is basically what I did https://gist.github.com/bricker/7941261
<bricker`LA> lewix: without the #hash method defines, [a1, a2, a3].uniq just returns the 3 articles again
dseitz has joined #ruby
<bricker`LA> defined*
<bricker`LA> lewix: tbh I just copied this stuff from ActiveRecord
<bricker`LA> but hey it works
dhruvasagar has joined #ruby
carraroj has joined #ruby
jezen has joined #ruby
Gonzih has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jezen_ has joined #ruby
xorgnak__ has quit [Remote host closed the connection]
anomaly_ has quit [Read error: Connection reset by peer]
jhaals has joined #ruby
Nilium has joined #ruby
anomaly_ has joined #ruby
braoru has joined #ruby
jezen has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
dEPy has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
<lewix> bricker`LA: I have no idea how it works, if you don't either you could still simply do that https://gist.github.com/6ewis/7941346
cjsarette has joined #ruby
krazee has quit [Ping timeout: 272 seconds]
jhaals has quit [Ping timeout: 250 seconds]
primenum has quit [Ping timeout: 252 seconds]
<bricker`LA> lewix: yeah that could work too
jhaals has joined #ruby
aganov has joined #ruby
hiyosi_ has joined #ruby
skaflem has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
phansch_ has joined #ruby
<lewix> bricker`LA: #hash Compute a hash-code for this hash. Two hashes with the same content will have the same hash code - from the doc so now we know why it's working
Monie has joined #ruby
alup has joined #ruby
hiyosi_ has quit [Ping timeout: 246 seconds]
phansch has quit [Ping timeout: 246 seconds]
shime has joined #ruby
cseader has quit [Ping timeout: 250 seconds]
ephemerian has joined #ruby
weems has joined #ruby
h0rrorvacui has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
whysosad has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
SeySayux has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
dfranciosi has joined #ruby
skulker has joined #ruby
SeySayux has joined #ruby
zoee has joined #ruby
mootpointer has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch_ is now known as phansch
skulker has quit [Ping timeout: 252 seconds]
carraroj has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
rootshift has joined #ruby
seoNinjaWarrior has quit [Ping timeout: 264 seconds]
camilasan has quit []
jonr22 has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
joaoh82 has quit [Remote host closed the connection]
nvrch has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
obs has joined #ruby
ace_striker has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
olivier_bK has joined #ruby
Inoperable has left #ruby ["rectified"]
jonr22 has quit [Ping timeout: 272 seconds]
Markvilla has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
Inoperable has joined #ruby
freerobby has joined #ruby
anomaly_ has joined #ruby
wiiikiii has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
carraroj has joined #ruby
_Andres has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
marr has joined #ruby
msuszczy has joined #ruby
Markvilla has quit [Read error: Connection reset by peer]
drumusician has joined #ruby
SirCmpwn has joined #ruby
wiiikiii has quit [Remote host closed the connection]
funburn has joined #ruby
<SirCmpwn> I don't know much about ruby, but I'm trying to deploy a rails app on arch linux
<SirCmpwn> I installed the rails gem, but I can't figure out where the 'cap' command comes from
<SirCmpwn> as far as I can tell, it's used for deployment, right?
claymore has joined #ruby
<dseitz> capistrano
sensen_ has joined #ruby
sensen_ has quit [Changing host]
sensen_ has joined #ruby
<SirCmpwn> gem install --no-ri --no-rdoc capistrano
<SirCmpwn> ?
wiiikiii has joined #ruby
carraroj has quit [Read error: Operation timed out]
<SirCmpwn> I don't get the 'cap' command after running that
freerobby1 has quit [Ping timeout: 272 seconds]
<SirCmpwn> oh, whoops
<SirCmpwn> it'd help if I read the output
<SirCmpwn> need to update my path, sorry for bothering you
<dseitz> depending on your env. you may need to rehash
<dseitz> no it's ok
<SirCmpwn> yeah, got it after updating my path with the gem bin
browndawg has left #ruby [#ruby]
sensen has quit [Ping timeout: 265 seconds]
Vaibhav_Rajput has joined #ruby
<dseitz> awesome, #rubyonrails is available for any rails-related-issues :)
<SirCmpwn> thanks, I expect to have some because it's not quite working
<Vaibhav_Rajput> how to handle Connection reset by peer - SSL_connect (Errno::ECONNRESET)
<dseitz> Is this related to a gem install, Vaibhav_Rajput ?
dhruvasagar has quit [Read error: Connection reset by peer]
<Hanmac1> we have a politican named peer .. try to blame him ;P
FL1SK has joined #ruby
troessner has joined #ruby
dhruvasagar has joined #ruby
krazee has joined #ruby
rdark has joined #ruby
barratt has joined #ruby
zipper has quit [Ping timeout: 250 seconds]
amacgregor has joined #ruby
cjsarette has quit [Ping timeout: 272 seconds]
gja has joined #ruby
<Vaibhav_Rajput> dseitz, no it is not related to gem.
amacgregor__ has joined #ruby
yfeldblum has joined #ruby
<Vaibhav_Rajput> sometimes one of the api server gives Connection reset by peer - SSL_connect (Errno::ECONNRESET)
wallerdev has quit [Quit: wallerdev]
maroloccio has joined #ruby
<dseitz> run `rake about`
nadirvardar has quit [Quit: Computer has gone to sleep.]
<dseitz> pipe that to a gist
jhchabran has quit [Read error: Operation timed out]
amacgregor_ has quit [Ping timeout: 246 seconds]
<dseitz> and share that with the team in #rubyonrails [just because you're getting a better response rate there]
yacks has joined #ruby
mrnugget has joined #ruby
wiiikiii has left #ruby [#ruby]
blaxter_ has joined #ruby
<Vaibhav_Rajput> the error is in ruby script.
<Vaibhav_Rajput> not in rails.
<Vaibhav_Rajput> it is just ruby script
fandikurnia01 has quit [Read error: Connection reset by peer]
<Vaibhav_Rajput> there is no rake file.
wiiikiii has joined #ruby
djtf has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
wiiikiii has quit [Quit: wiiikiii]
<dseitz> Okay
yfeldblum has quit [Ping timeout: 250 seconds]
djtf has quit [Client Quit]
lewix has quit [Remote host closed the connection]
zipper has joined #ruby
<dseitz> Well it's typically related to either a) openssl version directly b) the script has some configuration that needs to be adjusted
lewix has joined #ruby
lewix has quit [Remote host closed the connection]
gtsiftsis has joined #ruby
aapzak has quit [Ping timeout: 252 seconds]
Lewix_ is now known as lewix_
lewix has joined #ruby
blackmes1 has joined #ruby
lewix has quit [Disconnected by services]
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
burgess has joined #ruby
aapzak has joined #ruby
sayan has quit [Quit: Leaving]
burgess has quit [Client Quit]
N00D is now known as zz_N00D
roolo has joined #ruby
charliesome has joined #ruby
wiiikiii has joined #ruby
wiiikiii has quit [Client Quit]
coca_rails has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
timonv has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
hogeo_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
wiiikiii has joined #ruby
carraroj has joined #ruby
Konst has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
Konst has joined #ruby
larssmit has joined #ruby
h_kon has joined #ruby
sevenseacat has quit [Quit: Leaving.]
hiyosi_ has joined #ruby
TMM has joined #ruby
funburn has quit [Quit: funburn]
apeiros has joined #ruby
sayan has joined #ruby
aagdbl has quit [Quit: Leaving.]
hiyosi_ has quit [Ping timeout: 260 seconds]
whysomad has joined #ruby
_bart has joined #ruby
skulker has joined #ruby
phansch is now known as phansch^
Hanmac1 is now known as Hanmac
whysosad has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
preller has quit [Ping timeout: 246 seconds]
skulker has quit [Ping timeout: 260 seconds]
shime has quit [Ping timeout: 272 seconds]
w4pm has joined #ruby
gigetoo has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 272 seconds]
preller has joined #ruby
weszlem has joined #ruby
gigetoo has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
aagdbl has joined #ruby
jprovazn has quit [Quit: Odcházím]
blaxter_ is now known as blaxter
joaoh82 has joined #ruby
mikecmpbll has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
timonv has joined #ruby
freerobby has joined #ruby
joaoh82 has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
_Andres has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 250 seconds]
hamakn has quit [Remote host closed the connection]
binaryplease has joined #ruby
kraljev2 has joined #ruby
<kraljev2> Hey guys
<kraljev2> I'm just taken aback by ruby memory usage
Heskie has joined #ruby
nettoweb has joined #ruby
preller has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
<kraljev2> this piece of code
<kraljev2> a = Array.new 1_000_000 do
<kraljev2> 'x' * 1000
<kraljev2> end
<kraljev2> takes 1,1 GIG of memory
camilasan has joined #ruby
gregoriokusowski has joined #ruby
<dseitz> Short lived program executing a lot of junk data really fast?
sepp2k has joined #ruby
<apeiros> kraljev2: yeah, that's easy to fix. just apply some fearies and pixy dust
<apeiros> kraljev2: seriously, what did you think? that it magically does not use memory?
h_kon has quit [Remote host closed the connection]
<dseitz> Depending on how quickly the GC can catch up your allocations; naturally reviewing your code I would expect large short-term memory usage
<dseitz> You created this problem :)
gja has joined #ruby
weszlem has quit []
<apeiros> 'x' = 1 byte (+ ~20 byte per object overhead, but lets ignore that for the moment)
Heskie has quit []
<apeiros> 1 byte * 1000 * 1_000_000 = 1_000_000_000 bytes
<apeiros> = 1GiB
preller has joined #ruby
<apeiros> so again, I ask, what did you expect? magic?
olivier_bK has quit [Quit: Quitte]
yfeldblum has joined #ruby
heftig has quit [Quit: Quitting]
p4d4w4n has joined #ruby
decoponio has joined #ruby
pixelgremlins has quit [Ping timeout: 240 seconds]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
mk_qi has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<workmad3> apeiros: technically, 1 * 1000 * 1000 * 1000 == 1GB, and 1 * 1024 * 1024 * 1024 == 1GiB
allsystemsarego has joined #ruby
<apeiros> damn, using the wrong prefixes again. yes. GB.
* apeiros just got up
<workmad3> excuses :P
<apeiros> sure. but valid ones!
blueOxigen has joined #ruby
mrfoto has joined #ruby
<shevy> kraljev2 well you told ruby specifically to create all these arrays
<apeiros> I wake up, read my tweets and what happened? dogecoins! http://www.digitaltrends.com/social-media/wow-dogecoin-bitcoin/
<shevy> dodgecoins?
yfeldblum has quit [Ping timeout: 252 seconds]
pixelgremlins has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
<Hanmac> apeiros: no problem, activesupport still didnt learn about GiB ;P
<dseitz> kraljev2: You could be more aggressive with tuning GC; but expect your application to slow a bit
BizarreCake has joined #ruby
<apeiros> dseitz: in his snippet, he doesn't release the object
maroloccio has quit [Quit: WeeChat 0.4.1]
<dseitz> I used to employ a pattern to sweep expensive operations after a few iterations
<apeiros> also iirc ruby will not return claimed memory to the OS
ewnd9 has joined #ruby
karupanerura is now known as zz_karupanerura
dukz has quit [Remote host closed the connection]
<apeiros> doesn't need to either, a modern OS will just "virtualize" unused memory
carraroj has quit [Read error: Operation timed out]
coca_rails has joined #ruby
timonv has joined #ruby
<dseitz> Indeed. This was specific to a platform that had a constraint (iOS)
<dseitz> Where the pattern is, free ram or prepare for your app to be terminated :)
diegoviola has quit [Quit: WeeChat 0.4.2]
mengu has quit [Remote host closed the connection]
amoli has joined #ruby
buzzybron has left #ruby [#ruby]
<apeiros> anyway, no word from kraljev2, so I guess he just wanted to let the world know how upset he was that ruby did what he asked it to do…
vlad_starkov has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
<kraljev2> well, I'm working on an aplication where every byte is important
blackmes1 has joined #ruby
<kraljev2> so, naturally I know that 1GB is a natural usage
<kraljev2> is there any way to get around that object overhead?
GreatSUN has joined #ruby
<kraljev2> what is stored in those 20B exactly
<GreatSUN> rehi
<workmad3> kraljev2: keeping memory use down is critical for your project?
<kraljev2> string length, that's ok
ewnd9 has quit [Ping timeout: 252 seconds]
<lewix> 02:10 kraljev2: a = Array.new 1_000_000 do | what does it do
<kraljev2> that is just example
<apeiros> kraljev2: do it in C then.
<kraljev2> used to demonstrate memory usage
<workmad3> ^^
<apeiros> and no
<apeiros> can't get around per-object overhead.
jprovazn has joined #ruby
cbetta_afk is now known as cbetta
<workmad3> apeiros: create fewer objects? </troll>
<matti> workmad3: ;]
<apeiros> workmad3: still has per-object overhead :-p</counter-troll-with-science!>
<matti> Haha troll with sience.
<matti> science*
<workmad3> apeiros: bah, damn you and your correctness!
soba has quit [Ping timeout: 265 seconds]
robertjpayne has joined #ruby
<apeiros> lewix: Array.new(N) { … } creates an array with N elements in it, populated by the return value of the block
<robertjpayne> Is it possible to store a block and pass it directly to Array.map later on?
<apeiros> robertjpayne: yes
Konst has quit [Ping timeout: 265 seconds]
<apeiros> def foo(&block) @block = block; end; def bar; @some_ary.map(&@block); end
<lewix> apeiros: I thought that 1_000_000 meant something, that's why I asked
<apeiros> lewix: yes, it means one million
<lewix> apeiros: what about the '_'
shime has joined #ruby
<apeiros> you can write 100 as 1_0_0. ruby ignores single underscores in integers.
<lewix> ah
<lewix> good to know
<lewix> thanks
<apeiros> indeed. makes large integers much easier to read
hiyosi_ has joined #ruby
<robertjpayne> apeiros: thanks missed the & when passing it to map
skulker has joined #ruby
lyanchih has quit [Read error: Operation timed out]
akonny has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
hiyosi_ has quit [Ping timeout: 260 seconds]
<lewix> apeiros: also, i believe that Array.new(N) {} creates an array with N elements in it, pass the index of each element to the block then populate the array with the return values of the block
skulker has quit [Ping timeout: 250 seconds]
icedp has quit [Quit: _]
kitak has quit [Remote host closed the connection]
gianlucadv has joined #ruby
sensen_ has quit [Quit: leaving]
ahawkins_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ahawkins has quit [Read error: Operation timed out]
jonr22 has joined #ruby
Konst has joined #ruby
mojjojo has joined #ruby
zarul has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
nari has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
h_kon has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
klaut has quit [Remote host closed the connection]
skattyadz has joined #ruby
amacgregor has joined #ruby
joaoh82 has joined #ruby
psyl0n has joined #ruby
amacgregor_ has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
amacgregor__ has quit [Ping timeout: 246 seconds]
pranny has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
<GreatSUN> lewix: you believe or you know?
<GreatSUN> :D
gja has joined #ruby
<lewix> GreatSUN: I was being polite
<lewix> smh
icedp has joined #ruby
<GreatSUN> lewix: you think someone can learn something if you are polite?
amacgregor has quit [Ping timeout: 246 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
<shevy> GreatSUN he just doesnt wanna get kick-banned!!!
<GreatSUN> shevy: whooohooo :D
<lewix> shevy: like I care
colonolGron has joined #ruby
<lewix> =)
bluenemo has joined #ruby
cbetta is now known as cbetta_afk
<shevy> I actually did not know that 1_0_0 is valid
<lewix> is it so hard to believe that polite people still exist out there
<GreatSUN> lewix: you care else you just say luser :D
<shevy> the pickaxe only mentioned things like 100_000 for "better to read" :(
<shevy> easier to read, rather
<shevy> lewix yeah
p4d4w4n has joined #ruby
<workmad3> lewix: fuck yeah... :P
<shevy> :)
<lewix> shevy: yea it could come in handy
<GreatSUN> lewix: to be polite is not always nice
<shevy> we'd need like a mix of "learn to program", and the pickaxe book, all online... being the official ruby documentation!
<lewix> GreatSUN: rub me the wrong way, and maybe you'll see my other face
<GreatSUN> lewix: sometimes you just need to tell the truth instead of being polite, cause elsewise people stuck with the shit they are in
okinomo has joined #ruby
* shevy rubs lewix's little toe counter-clockwise
<shevy> hey GreatSUN
Fire-Dragon-DoL has joined #ruby
<GreatSUN> lewix: no, thanks, my wife would show me a finger before :D
<shevy> be impolite now if you dare to :D
<shevy> omg... manhandled by his wife...
<GreatSUN> shevy: that "learn to program" sounds good
<GreatSUN> shevy: maybe I can offer some content
<shevy> it was nice, but it's like... 10 years old now
<shevy> we have like ruby 2.1 now
<shevy> not me cuz I am still on 1.9.x but everyone else has it now
<GreatSUN> <-- is too old :-(
<shevy> GreatSUN yeah, something a bit like a wiki... collaborative editing
<GreatSUN> shevy: I have to work with 1.8.7, too
vlad_starkov has quit [Read error: Connection reset by peer]
<shevy> 1.8.x was awesome
<GreatSUN> I'd like to work with 2.1, but there is no offer...
<shevy> what do you mean, an offer?
joaoh82 has quit [Remote host closed the connection]
<GreatSUN> shevy: I am just a programmer who has to program stuff with the environment others give him to work with
<GreatSUN> they don't ask me what would be best
freerobby has joined #ruby
<shevy> ah I see
joaoh82_ has joined #ruby
<GreatSUN> LUNCH
<GreatSUN> bbl
mojjojo has quit [Quit: mojjojo]
h_kon has quit [Remote host closed the connection]
ahawkins_ has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 246 seconds]
okinomo has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
freerobby has quit [Read error: Operation timed out]
liamkeily has joined #ruby
camilasan has quit [Remote host closed the connection]
atm1 has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
camilasan has joined #ruby
olivier_bK has joined #ruby
bnjamin_ has quit [Remote host closed the connection]
liamkeily has quit [Ping timeout: 246 seconds]
aagdbl has quit [Quit: Leaving.]
eka has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
dross is now known as rbot
dEPy has joined #ruby
rbot is now known as dross
kraljev2 has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
joaoh82_ has quit [Remote host closed the connection]
otero has joined #ruby
banister has joined #ruby
carraroj has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ixti has joined #ruby
depesz has joined #ruby
dEPy has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Speed has joined #ruby
<depesz> hi. how can I split given String into an array, when I want each two characters of original string to become element of array. So "depesz" would become ["de", "pe", "sz"] ?
g0bl1n has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
<joshu> I just installed the latest stable ruby 2.0.0p353 and it came with gem 2.0.14. Is it best practice to update the gem system using gem update --system?
<shevy> >> "depesz".scan /../
<eval-in_> shevy => ["de", "pe", "sz"] (https://eval.in/79075)
<shevy> depesz ^^^
fgo has quit [Remote host closed the connection]
<depesz> thanks shevy
<shevy> joshu dunno. I always download the latest rubygems from source, then install that http://rubyforge.org/frs/?group_id=126&release_id=23118
hamakn has joined #ruby
lukasz_k has joined #ruby
<shevy> but I do this mostly because I also keep local backups of gems, so I can install ruby stuff when I am offline too
joaoh82 has joined #ruby
<matti> depesz: Do you even read documentation or use Google? ;]
sayan has quit [Ping timeout: 250 seconds]
lukasz_k has left #ruby [#ruby]
<shevy> doesn't gem update --system actually updates all gems?
<depesz> matti: a lot. i tried split, unpack and match.
<matti> ;s
<depesz> matti: "scan" somehow didn't caught my attention
nari has joined #ruby
ppppaul has quit [Read error: Connection reset by peer]
<joshu> shevy ah ok. but essentially the ruby version and the gem version are treated as two separate "systems" and keeping them both updated with a stable release is advised?
<joshu> shevy no idea
<shevy> yeah they can be different
<joshu> i thought it just updated the "gem"
kraljev2 has joined #ruby
olivier_bK has quit [Read error: Operation timed out]
<shevy> dunno myself
<shevy> all I do with gems is "gem install bla.gem" :D
<kraljev2> is ist possible to have uninitialized variable in ruby?
<shevy> kraljev2 sure it is "possible"
<Xeago> >> foo = nil
<eval-in_> Xeago => nil (https://eval.in/79080)
yfeldblum has quit [Ping timeout: 245 seconds]
<joshu> hehe sure I'm just curious to understand how ruby devs maintain their systems so I can do the same ;)
<kraljev2> this is initialized with null
<shevy> kraljev2 the ruby parser can be picky though. you should initialize all variables always
<shevy> what the heck is null
<Xeago> kraljev2: null != nill
predator117 has joined #ruby
<Xeago> -l
<shevy> why are you using strange words kraljev2
Criztian has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy> and why does Xeago typo
<shevy> :)
<shevy> we now have nill!
<shevy> the fat brother of nil
h_kon has joined #ruby
<Xeago> because this is a qwerty
<Xeago> and not a compass
<shevy> hehe cool
timonv has joined #ruby
<shevy> I have a qwertz one here
<Xeago> horrible german!
<Xeago> DIE!
<shevy> :(
<Xeago> ;3
hamakn has quit [Ping timeout: 246 seconds]
<shevy> I need my umlauts
<Xeago> so, have alt'keys for them
preller has quit [Ping timeout: 252 seconds]
<shevy> æ
camilasan has quit [Read error: Connection reset by peer]
jhchabran has joined #ruby
<shevy> kraljev2 what language did you use a lot before ruby?
camilasan has joined #ruby
<kraljev2> C
klaut has joined #ruby
_Andres has joined #ruby
depesz has left #ruby [#ruby]
<kraljev2> there you can have just
<kraljev2> int table[10000]
Speed has left #ruby ["WeeChat 0.4.2"]
<Xeago> kraljev2: that is actually initialized
<kraljev2> and save the CPU time filling this with null pointers
<Xeago> depending on your Cx
<kraljev2> no, it's not in case of a heap variable
<kraljev2> eg. not global
<Xeago> not guaranteed
<Hanmac> kraljev2: like that? ;P
<Hanmac> >> foo =nil if false; foo
<eval-in_> Hanmac => nil (https://eval.in/79083)
<kraljev2> Hanmac, that is probably the closest thing. :)
amacgregor_ has quit [Ping timeout: 245 seconds]
coca_rails has joined #ruby
splstn has joined #ruby
<Xeago> how is that different from foo=nil?
<Xeago> >> foo = :foo if false;foo
<eval-in_> Xeago => nil (https://eval.in/79084)
timonv has quit [Ping timeout: 265 seconds]
<Xeago> ah
<shevy> the ruby parser is a big cheater
<Xeago> it leaks
<workmad3> Xeago: the 'if false' stops the assignment from happening
gja has quit [Quit: This computer has gone to sleep]
<workmad3> Xeago: but the local var is created simply from the ruby parser getting 'foo = '
<shevy> damn cheater... should be murdered, that bastard
<workmad3> Xeago: see also 'a = a'
<shevy> Hanmac did you file new bug reports lately
<shevy> >> a = a
<eval-in_> shevy => nil (https://eval.in/79086)
<shevy> >> a = b
<eval-in_> shevy => undefined local variable or method `b' for main:Object (NameError) ... (https://eval.in/79088)
<workmad3> also of note... local variable assignment is different from constant assignment...
<workmad3> >> Foo = Foo
<eval-in_> workmad3 => uninitialized constant Foo (NameError) ... (https://eval.in/79095)
vlad_starkov has joined #ruby
xcv has joined #ruby
kostine has quit [Quit: kostine]
skulker has joined #ruby
mrnugget has quit [Quit: mrnugget]
dEPy has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
vlad_sta_ has joined #ruby
_bart has quit []
<shevy> cool
<shevy> kraljev2, you see, the ruby parser is a huge cheater
aagdbl has joined #ruby
<shevy> it's one of the scariest things matz ever created
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
heftig has joined #ruby
skulker has quit [Ping timeout: 245 seconds]
AlSquirrel has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
mrnugget has joined #ruby
<shevy> there are probably some dead people scattered in its source code
hiyosi_ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
gja has joined #ruby
SHyx0rmZ has joined #ruby
hiyosi_ has quit [Ping timeout: 246 seconds]
<shevy> guys, got a quick question
<shevy> with private, inside a class, I make all subsequent method definitions private
<shevy> is there something like public too?
<shevy> like, so that I could add one line of private, the next 10 methods are private, but the very last method in a class would not be private
<jlebrech> i've got this recursive function that uses nokogiri to check the parents of elements, is there a built in function i should know for doing an ancestor search?
aagdbl has quit [Quit: Leaving.]
jprovazn_ has joined #ruby
funburn has quit [Quit: funburn]
jprovazn has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
<workmad3> shevy: there's 'public' yes
<workmad3> >> class Foo; private; def foo; end; public; def bar; end; end; Foo.new.bar
<eval-in_> workmad3 => nil (https://eval.in/79103)
<workmad3> >> class Foo; private; def foo; end; public; def bar; end; end; Foo.new.foo
<eval-in_> workmad3 => private method `foo' called for #<Foo:0x40d7cf40> (NoMethodError) ... (https://eval.in/79104)
mojjojo has quit [Quit: mojjojo]
jonathanwallace has joined #ruby
<workmad3> shevy: same as with private, and protected, public can either be used on its own to set all subsequent methods to public visibility, or with a set of symbol params to mark just those methods as public
dzan has quit [Ping timeout: 260 seconds]
<shevy> ok
ewnd9 has joined #ruby
p4d4w4n has joined #ruby
DouweM has joined #ruby
<shevy> hmm
<shevy> def foo
<shevy> end; public :foo
<shevy> vs
<shevy> public
<shevy> def foo # and end on next line
<shevy> hmmmmm
mklappstuhl has joined #ruby
<workmad3> shevy: I believe in 2.1 you can even do 'public def foo; end'
<shevy> whoa
<workmad3> as 'def' got change to return the name of the newly defined method :)
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<workmad3> *changed
<shevy> aha
<shevy> def returns something now?
<DouweM> yup, :method_name
<shevy> can we then do things like
<workmad3> in 2.1 MRI anyway
<shevy> name = def foo; end
<DouweM> yup
<workmad3> not sure how rubinius or jruby are handling the change there...
<shevy> who uses these anyway
<shevy> :P
<workmad3> as rubinius always returned something from 'def'... but it's not :method_name :)
flame_ has joined #ruby
<shevy> why was it changed though?
<workmad3> because someone suggested that it might make sense? :)
<shevy> hmm
<shevy> Hanmac was it you?
<DouweM> workmad3: what did Rubinius return?
<workmad3> DouweM: I think it was a rubinius compiled method object
<workmad3> not certain on that front though... would need to google to check :)
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<DouweM> yup, Rubinius::CompiledMethod
colonolGron has quit [Quit: leaving]
kostine has joined #ruby
kostine has quit [Client Quit]
ua has joined #ruby
<kraljev2> is switch to rubinuis seamless
lukasz_k has joined #ruby
<kraljev2> or do i have to change the code, and to what extent?
skattyadz has left #ruby [#ruby]
<DouweM> kraljev2: it's supposed to be seamless, but there are some incompatibilities like the Ruby 2.1 `def` return value thing described above
ahegyi has joined #ruby
<Hanmac> shevy hm no i wasnt but i recomented too
<shevy> hehehe
splstn has quit [Remote host closed the connection]
ExxKA has joined #ruby
dzan has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
stormbytes has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
stormbytes has quit [Client Quit]
stormbytes has joined #ruby
freerobby has joined #ruby
sayan has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Feuerbach has joined #ruby
falood has quit [Remote host closed the connection]
rootshift has quit [Quit: rootshift]
<Feuerbach> Is there a simple way to ensure that a splice a[x..y] is empty whenever x>y, even if y is negative? Or do I have to write an if statement for that case?
gja has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
anderson has quit [Ping timeout: 240 seconds]
toss has joined #ruby
binaryplease has quit [Read error: No route to host]
mikecmpbll has joined #ruby
<toss> can I migrate ruby on rails website to wordpress?
zoee has joined #ruby
jonr22 has joined #ruby
gja has joined #ruby
mklappstuhl has joined #ruby
mojjojo has joined #ruby
fgo has quit [Remote host closed the connection]
<DouweM> toss: Rails and Wordpress are not comparable at all, so that's a very weird question
robbyoconnor has quit [Ping timeout: 245 seconds]
gja has quit [Client Quit]
phansch^ has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
fgo has joined #ruby
robbyoconnor has joined #ruby
jonahR has quit [Quit: jonahR]
anderson has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
osvico has joined #ruby
yfeldblum has joined #ruby
A124 has quit [Read error: Connection reset by peer]
<Hanmac> Feuerbach: arnt you looking for a[x,y] or similar?
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Mon_Ouie has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
klaut has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
<Feuerbach> Hanmac: doesn't look like it. e.g. ((1..10).to_a)[2,1] gives me [3]
bnjamin has joined #ruby
gja has quit [Client Quit]
yfeldblum has quit [Ping timeout: 246 seconds]
flame_ has quit [Quit: Computer has gone to sleep.]
<Feuerbach> oh, the second number is the number of elements
<Feuerbach> I see
akonny has quit [Quit: akonny]
<Hanmac> or:
<Hanmac> >> (1..10).to_a[2..-8]
<eval-in_> Hanmac => [3] (https://eval.in/79120)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<Feuerbach> yeah, I could use that. Something like a[x,y-x+1], I suppose
<Feuerbach> thanks Hanmac
jonr22 has quit [Ping timeout: 245 seconds]
frankperez87 has joined #ruby
obs has quit [Remote host closed the connection]
zeeraw has joined #ruby
fragmachine has joined #ruby
_Andres has joined #ruby
sevenseacat has joined #ruby
gja has joined #ruby
fragmachine has quit [Client Quit]
<frankperez87> What would be the best way to return output from a command and pass in a variable as one of the arguments. The command is run o the linux box first. for instance output = `ps -ef | head -#{number}`
bogeyd6 has quit [Read error: Connection reset by peer]
bnjamin has quit [Ping timeout: 272 seconds]
ghatak has joined #ruby
joaoh82 has quit [Remote host closed the connection]
obs has joined #ruby
noop has quit [Ping timeout: 246 seconds]
<ghatak> Hi, I want to make some changes to a JSON file, it has nested data structures, I want to be able to change some keys and save it back, while maitain indentation, can someone point me in right direction?
fedesilva has joined #ruby
sergicles has joined #ruby
<DouweM> ghatak: you want to maintain the same indentation used before, or just some indentation? and why do you care about indentation anyway?
gja has quit [Client Quit]
banister has joined #ruby
<lukasz_k> ghatak: you can use #pretty_generate http://www.ruby-doc.org/stdlib-1.9.3/libdoc/json/rdoc/JSON.html#method-i-pretty_generate to get nicely formatted JSON
<ghatak> DouweM: maintain previous indentation, reason is that primary consumers of those JSON files are humans, used to modify on command line
avril14th has joined #ruby
soapee45 has joined #ruby
<ghatak> lukasz_k: thank you mr Kuwaja
akonny has joined #ruby
gja has joined #ruby
relix has joined #ruby
danshultz has joined #ruby
akonny has quit [Client Quit]
gja has quit [Client Quit]
d45h has quit []
Feuerbach has quit [Ping timeout: 250 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
rootshift has joined #ruby
sarlalian has quit [Ping timeout: 272 seconds]
d45h has joined #ruby
hogeo_ has quit [Remote host closed the connection]
djdarkbeat has quit [Ping timeout: 250 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ahawkins has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sec^nd has quit [Ping timeout: 240 seconds]
soapee45 has quit [Quit: Page closed]
siwica has joined #ruby
matheuscaceres has joined #ruby
joshwines_ has quit [Remote host closed the connection]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
gja has joined #ruby
hiyosi_ has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has joined #ruby
Vaibhav_Rajput has quit [Quit: Leaving]
skaflem has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
joaoh82 has joined #ruby
anomaly_ has quit [Remote host closed the connection]
zeeraw has joined #ruby
fedesilva has quit [Remote host closed the connection]
gregoriokusowski has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
jamesaanderson has joined #ruby
zoee has joined #ruby
postmodern has quit [Quit: Leaving]
alpha123 has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 272 seconds]
alpha123 has joined #ruby
Lachezar has joined #ruby
dfranciosi has quit [Remote host closed the connection]
yalue has joined #ruby
g0bl1n has quit [Ping timeout: 272 seconds]
malkomalko has joined #ruby
<Lachezar> Hey all… N00B here, having basic problems: ".gemrc" has "gemhome:/home/user/development/ruby/gems", "gem install rhc", byt then "~/develipment/ruby/gems/bin/rhc" yields "Could not find rhc (>= 0) amongst [] (Gem::LoadError)"
<Lachezar> gem list shows a bunch of gems are there
iajrz has joined #ruby
<iajrz> DouweM: are you here?
<DouweM> iajrz: sure am
klaut has quit [Ping timeout: 265 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
<iajrz> DouweM: your site project at github has no license. Can I use my fork for my personal homepage + GPL my version?
drumusician has quit [Ping timeout: 260 seconds]
<Lachezar> Do I need to set up additional environment?
bnjamin has joined #ruby
gregoriokusowski has joined #ruby
freerobby has joined #ruby
<iajrz> > still haven't worked on the fork~
<DouweM> iajrz: I don't want anyone to use my version verbatim, but if I judge your fork sufficiently different, I don't have a problem with it.
skattyadz has joined #ruby
gja has joined #ruby
Hanmac1 has joined #ruby
<iajrz> DouweM: Fair enough :) I'll let you know when I think I'm good enough to go... thanks
ewnd9 has quit [Ping timeout: 250 seconds]
ffranz has joined #ruby
<DouweM> iajrz: you can PM me anytime
freerobby has quit [Ping timeout: 246 seconds]
<iajrz> thanks again :D
atno has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
gja has quit [Client Quit]
gja has joined #ruby
skattyadz has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
taion809 has quit [Disconnected by services]
taion809 has joined #ruby
* Lachezar had to explicitly add GEM_HOME environment variable :-/
taion809 has quit [Disconnected by services]
taion809 has joined #ruby
shime has quit [Ping timeout: 250 seconds]
stetho has joined #ruby
agjacome has joined #ruby
atno has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
skattyadz has left #ruby [#ruby]
justsee has quit [Ping timeout: 252 seconds]
falood has joined #ruby
weems has quit [Read error: Connection reset by peer]
rootshift has quit [Quit: rootshift]
lyanchih has joined #ruby
fijimunkii has quit [Ping timeout: 246 seconds]
dfranciosi has joined #ruby
whysobad has joined #ruby
krawchyk has joined #ruby
coca_rails has joined #ruby
whysomad has quit [Ping timeout: 250 seconds]
frankperez87 has quit [Quit: Leaving.]
Guest16500 has quit [Changing host]
Guest16500 has joined #ruby
Guest16500 is now known as digifiv5e
mmitchell has joined #ruby
mark_locklear has joined #ruby
OdNairy has quit [Remote host closed the connection]
Lachezar has quit [Quit: Back to coding.]
OdNairy has joined #ruby
falood has quit [Remote host closed the connection]
kobain has joined #ruby
_Andres has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
tkuchiki has quit [Remote host closed the connection]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
osvico has quit [Ping timeout: 246 seconds]
amoli has quit []
jerius has joined #ruby
nettoweb has quit [Quit: nettoweb]
jerius has quit [Client Quit]
mklappst_ has joined #ruby
wiiikiii has quit [Remote host closed the connection]
Duckily has quit [Quit: Duckily]
jkamenik has joined #ruby
intuxicated has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
cbetta_afk is now known as cbetta
mklappstuhl has quit [Ping timeout: 250 seconds]
rootshift has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
xcthulhu has joined #ruby
slacko has joined #ruby
slacko has quit []
<toss> DouweM so yo usay I can't do this?
<toss> can I migrate ruby on rails website to wordpress?
<toss> I mean I know they are not compatible
<toss> :)
<toss> but can it be done?
intuxicated has joined #ruby
echevemaster has quit [Ping timeout: 250 seconds]
<kraljev2> you have to do a manual rewrite
<kraljev2> and that's going to cost
<kraljev2> you'll be better off buying ruby hosting
larissa has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
<shevy> toss unlikely. isn't wordpress written in php?
xcv has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<canton7> you can create a wordpress website which does the same things as a rails website. but you're creating it from scratch
zeeraw has joined #ruby
<atno> not if you use a framework to build it
<workmad3> and depending on the rails app, it could be a really hefty amount of work to recreate it in wordpress
johnnyfuchs has joined #ruby
havenwood has joined #ruby
mary5030 has joined #ruby
clamstar has joined #ruby
hogeo has joined #ruby
cbetta is now known as cbetta_afk
Hanmac has joined #ruby
w4pm has joined #ruby
breakingthings has joined #ruby
nowthatsamatt has joined #ruby
<DouweM> toss: if we're talking a Rails blog rather than an entire Rails website, moving those posts over to WordPress shouldn't be too hard, but if this is an entire custom Rails site, recreating it using WordPress is gonna mean rewriting it from scratch
nisstyre has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
tylershipe has quit [Remote host closed the connection]
tylershipe has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
hogeo has quit [Ping timeout: 260 seconds]
ndngvr has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
LadyRainicorn has joined #ruby
ws2k3 has quit [Ping timeout: 272 seconds]
Tritania has quit [Ping timeout: 272 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
ndngvr` has quit [Read error: Connection reset by peer]
ws2k3 has joined #ruby
<kraljev2> he could keep the database
<kraljev2> the problem is only the application code
shime has joined #ruby
mengu has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
Tritania has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
ikawnoclast has joined #ruby
mlpinit has joined #ruby
jonr22 has joined #ruby
jezen_ has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
jezen has joined #ruby
freerobby has joined #ruby
akonny has joined #ruby
Thanatermesis has joined #ruby
tonni has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 252 seconds]
mlpinit_ has joined #ruby
tonni has joined #ruby
RaCx has joined #ruby
jezen has quit [Client Quit]
hamakn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fijimunkii has joined #ruby
joaoh82 has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
hamakn has joined #ruby
intuxicated has quit [Ping timeout: 260 seconds]
tonni_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
tonni has quit [Read error: Connection reset by peer]
akonny has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
Sawbones has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
akonny has joined #ruby
cyclamen has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby
jerius has joined #ruby
Rollabunna has joined #ruby
intuxicated has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joast has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pranny has quit [Quit: Leaving.]
h_kon has quit [Remote host closed the connection]
mengu has joined #ruby
mikecmpbll has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d has joined #ruby
joast has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
flowerhack_ is now known as flowerhack
Hanmac1 has joined #ruby
jamesaanderson has joined #ruby
nisstyre has quit [Quit: Leaving]
jamesaanderson has quit [Max SendQ exceeded]
skattyadz has joined #ruby
jamesaanderson has joined #ruby
parduse has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
nomenkun has quit [Remote host closed the connection]
clamstar has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
yacks has quit [Quit: Leaving]
freerobby has joined #ruby
iamjarvo has joined #ruby
yacks has joined #ruby
d45h has quit [Ping timeout: 252 seconds]
s2013 has quit [Remote host closed the connection]
Hanmac has joined #ruby
gazarsgo has joined #ruby
<gazarsgo> anyone generate a static list of requires based on a gemfile ?
d45h has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
g0bl1n has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<shevy> gazarsgo not me
<shevy> gazarsgo but that should be trivial
cantonic has quit [Read error: Connection reset by peer]
matheuscaceres has joined #ruby
<gazarsgo> should it ?
toss has quit []
cantonic has joined #ruby
<kraljev2> typo workaround :)
otero has quit [Ping timeout: 260 seconds]
thesheff17 has joined #ruby
<lukasz_k> gazarsgo: that's for tricks like "ruby -rubygems script.rb"
<gazarsgo> i wish the general concern was with being fast rather than being tricky
amundj has quit [Ping timeout: 250 seconds]
<gazarsgo> how can i find the Kernel module in ruby source ? i don't see it in C code or a .rb
<kraljev2> that's an ugly workaround
banister has joined #ruby
<gazarsgo> trying to see what's upstream of the rubygems monkeypatch on require :(
jchristi has joined #ruby
clamstar has joined #ruby
Sawbones has quit []
carraroj has joined #ruby
zz_N00D is now known as CripperZ
sailias has joined #ruby
ephemerian has quit [Quit: Leaving.]
krz has quit [Quit: WeeChat 0.4.2]
CripperZ is now known as N00D
krz has joined #ruby
lyanchih has quit [Quit: lyanchih]
krz has quit [Changing host]
krz has joined #ruby
randomnick_ has joined #ruby
blaxter has quit [Quit: foo]
malkomalko has quit []
Feuerbach has joined #ruby
djdarkbeat has joined #ruby
skattyadz has quit [Quit: skattyadz]
sarlalian has joined #ruby
dhruvasagar has joined #ruby
_Andres has joined #ruby
s2013 has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
yfeldblum has joined #ruby
LexicalScope has joined #ruby
sevenseacat has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
clamstar has quit [Read error: Connection reset by peer]
lmickh has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
djdarkbeat has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
akonny has joined #ruby
blackmesa has joined #ruby
peregrine81 has joined #ruby
L8D has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Remote host closed the connection]
<kraljev2> may I ask how come this ugly hack is in the main ruby source tree?
ehc has joined #ruby
<canton7> hah!
<canton7> at least it's documented :)
<DouweM> hah, nice
<gazarsgo> kraljev2: you must not have read much of the main ruby source tree…
<kraljev2> you're right, I haven't
<kraljev2> you mean there are even uglier things there?
<gazarsgo> did you miss my question earlier ?
deavid has quit [Read error: Operation timed out]
p4d4w4n has joined #ruby
TMM has quit [Read error: Operation timed out]
jalcine has quit [Read error: Operation timed out]
gf3 has quit [Read error: Operation timed out]
amritanshu_RnD has quit [Read error: Connection reset by peer]
yan_ has quit [Read error: Operation timed out]
slash_nick has quit [Read error: Operation timed out]
<gazarsgo> "trying to see what's upstream of the rubygems monkeypatch on require"
djdarkbeat has joined #ruby
yan_ has joined #ruby
zoee has joined #ruby
slash_nick has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
duggiefresh has joined #ruby
gf3 has joined #ruby
jhn has joined #ruby
darrik has quit [Read error: Operation timed out]
poutine has quit [Read error: Operation timed out]
Rylee has quit [Read error: Operation timed out]
havv has joined #ruby
x0nic has quit [Read error: Operation timed out]
TorpedoSkyline has quit [Read error: Operation timed out]
deavid has joined #ruby
darrik has joined #ruby
Rylee has joined #ruby
x0nic has joined #ruby
poutine has joined #ruby
TorpedoSkyline has joined #ruby
pranny has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
pranny1 has joined #ruby
zeeraw has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<shevy> gazarsgo ruby is very fast
hogeo has joined #ruby
Megtastique has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
gianlucadv has quit [Ping timeout: 260 seconds]
<gazarsgo> i would like to help make it faster, do you know where i can find module Kernel def require ?
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<shevy> gazarsgo have you extracted the ruby tarball archive ?
joaoh82 has joined #ruby
hamakn has quit [Remote host closed the connection]
<gazarsgo> i just cloned the ruby repo because github search isn't so great
<gazarsgo> i was hoping someone would be like 'aha, i know the problem you're having, and it's because of X, fixed in pull request Y that lands in next release"
<shevy> ok so you have a repo available
<shevy> in the official documentation you can see things like this:
<shevy> on top right side of each of these paragraphs is a "toggle source" button
<shevy> when you click it, it shows you the C code behind it:
coca_rails has joined #ruby
pranny has quit [Ping timeout: 265 seconds]
<shevy> rb_f_require(VALUE obj, VALUE fname) { return rb_require_safe(fname, rb_safe_level());}
<shevy> so then you can grep -r for that
<gazarsgo> ok, i was afraid it was in the C code, thanks
<shevy> yeah it's in C :(
<shevy> found it
<shevy> It seems to be in load.c
<shevy> load.c:rb_f_require(VALUE obj, VALUE fname)
<shevy> and one header definition
<gazarsgo> what documents the API exposed in ruby to c calls ?
<shevy> include/ruby/intern.h:VALUE rb_f_require(VALUE, VALUE);
<shevy> not really sure how this is created
<gazarsgo> like how do i know that rb_f_require maps into Kernel::require besides rubydoc ?
<shevy> about 4 years ago, we did not have such a docu available online
<shevy> hmm
heftig has quit [Quit: Quitting]
<shevy> perhaps via the commandline ri ?
<shevy> I am not sure, I gave up on ri years ago
fedesilva has joined #ruby
<shevy> "ri Kernel#require" or something like that, but as for how to get output from this into the respective C ... no idea
ahawkins has quit [Quit: leaving]
<shevy> gazarsgo but I think it follows a pattern
kreisys has joined #ruby
<shevy> for instance, class Array in pure ruby
kreisys has quit [Read error: Connection reset by peer]
<shevy> array = Array.new
<shevy> should be this in C
<shevy> VALUE array; array = rb_ary_new();
Sawbones has joined #ruby
<shevy> so there may always be a leading rb_
<shevy> no idea where the f_ comes in from rb_f_require ...
<LadyRainicorn> file?
<gazarsgo> load.c
coca_rails has quit [Ping timeout: 245 seconds]
ww26 has left #ruby [#ruby]
mklappst_ has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
<shevy> hmm...
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<shevy> kraljev2 it was to allowy ruby -rubygems
<shevy> on the commandline
jlast has joined #ruby
<shevy> they could make it ruby -rrubygems
<kraljev2> doesn't matter, this problem should be solved on the arg parsing level
BizarreCake has joined #ruby
garndt has joined #ruby
<gazarsgo> there is a lot of ruby code written to avoid writing c code :(
<LadyRainicorn> You don't have to require rubygems anymore, so who cares?
<canton7> they don't want to make a general solution - you shouldn't be able to do both '-rrubyisawesome' and '-rubyisawesome' for a random package 'rubyisawesome'. It's just an exception provided by rubygems for rubygems
joaoh82 has quit [Remote host closed the connection]
<gazarsgo> LadyRainicorn: do you know why rubygems is moving into core but it still has a monkeypatch on require ?
zoee has quit [Quit: Leaving]
<LadyRainicorn> It's not a monkeypatch, it's a separate library.
<LadyRainicorn> And probably backwards compatibility.
<shevy> gazarsgo it's now automatically required since 1.9.x
OdNairy has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
<gazarsgo> that's a monkey patch
<canton7> yeah it's not modifying the core at all. they've just created a library 'ubygems'. I would publish a library called 'ubyisawesome' which requires 'rubyisawesome'
<canton7> ah I see that
aspires_ has joined #ruby
<canton7> that was from before rubygems was properly integrated iirc?
iamjarvo has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
<shevy> last commit 2 months ago
jedimind has joined #ruby
<shevy> is core_ext/ a standard name for modifications of core things?
<gazarsgo> seems to be
<DouweM> it is
<shevy> damn
<shevy> I always went for core/ :(
ValicekB has quit [Ping timeout: 252 seconds]
baordog_ has joined #ruby
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
<workmad3> shevy: it's just common naming convention, nothing special about it
<shevy> hey I am a good ruby citizen
<shevy> I'll go with the flow
jalcine has joined #ruby
<DouweM> workmad3: common naming conventions are what keeps us sane, though
<DouweM> all programming conventions are, really
interactionjaxsn has joined #ruby
<workmad3> DouweM: you're sane? lucky you :P
<kraljev2> convensions like 2 spaces for indentation
<kraljev2> is that Matz's bullshit?
anomaly_ has joined #ruby
<DouweM> workmad3: :P
<shevy> kraljev2 no
<DouweM> kraljev2: 2 spaces ftw
<kraljev2> whose then
<shevy> kraljev2 what do you suggest
<kraljev2> 2 spaces is too little
<DouweM> kraljev2: but I have no idea where it originated
<kraljev2> i suggest 3 or 4
otero has joined #ruby
<DouweM> kraljev2: how so
<shevy> 3
<shevy> are you crazy
larssmit has quit [Read error: Connection reset by peer]
<shevy> why not 66
<kraljev2> or just tabs, so we don't have to argue about how many spaces :)
nomenkun has joined #ruby
<kraljev2> exactly, shevy
Ox6abe has joined #ruby
<kraljev2> good argument for tabs
<kraljev2> :)
<shevy> tabs are better than 3
<shevy> 4 spaces is better than tab
<shevy> 2 spaces is better than 4 spaces
<DouweM> using tabs breaks down when you want to align stuff rather than indent
<shevy> yeah
<DouweM> because people may configure their tab widths differently
<kraljev2> and tell me
<kraljev2> how many times have you aligned something in ruby
<shevy> all the time
<DouweM> really, we should use tabs for indentation, spaces for alignment, but I've never seen an editor smart enough to do that
<kraljev2> tabs for indentation, spaces for alignment
<shevy> I adorn my comments with ascii
<DouweM> yeah, I align all the time
xrosex has joined #ruby
<canton7> { \n :foo => 'bar \n :bar => 'baz' \n } for example
<shevy> my comments are prettier than ruby code
<xrosex> Does anyone know if ruby shoes gui supports text movement with the mouse ?
<kraljev2> We laugh at MS for having \r\n for line break, right? ? :D
<shevy> no, I have only pity for MS
<DouweM> canton7: that could be seen as indentation, though
<shevy> google killed them :(
geggam has joined #ruby
<shevy> they even brought back that start button
<canton7> DouweM, I should have picked an example with different-length keys. I'm thinking of aligning the '=>'s
<gazarsgo> so who works on rubygems and 'properly integrating' it ?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<DouweM> canton7: ah, my mistake. yeah, def. same goes for regular var assignment
pranny1 has quit [Quit: Leaving.]
<shevy> gazarsgo drbrain on #rubygems
<gazarsgo> thanks
<canton7> DouweM, more my complete lack of clarity :P
enebo has joined #ruby
lfox has joined #ruby
lukasz_k has left #ruby ["WeeChat 0.4.0"]
<workmad3> kraljev2: mixed tabs and spaces make matz sad :(
<shevy> hahaha :D
<DouweM> inconsistent mixing makes everyone sad
lyanchih has joined #ruby
Hanmac1 has joined #ruby
<shevy> and when matz is sad
<kraljev2> they are not mixed
<shevy> his english will get worse
<kraljev2> a space never touches a tab!!!!
<DouweM> shevy: lol
lmickh has quit [Quit: lmickh]
pu22l3r has joined #ruby
<kraljev2> therefore they are not mixed
<shevy> kraljev2 you never use spaces when you use tabs?
<kraljev2> I do, for alignment
<workmad3> kraljev2: ok... so how do you keep things consistent if you're aligning a 2-line parameter list?
<shevy> do you align comments as well? :>
kostine has joined #ruby
<kraljev2> i usually tab comments so they are in line with the code they represent
agjacome has quit [Ping timeout: 252 seconds]
<shevy> I used to do that too
<kraljev2> they are not at the begining of the line
Hanmac has quit [Ping timeout: 246 seconds]
<workmad3> not that it really matters tbh... the whole reason there's always arguments about tabs v spaces is because it's a bike-shed argument that has no correct answer
<DouweM> bike shedding ftw
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kraljev2> what is more correct - \r\n or just \n for line break?
<canton7> there will be a correct answer when editors support "tabs for indentation, spaces for alignment" :P
sambao21 has joined #ruby
<workmad3> kraljev2: that depends... am I supporting electronic typewriters?
<DouweM> kraljev2: why the hell do we need a carriage return on a computer?
hiyosi_ has quit [Quit: WeeChat 0.4.1]
<kraljev2> why do we need two spaces to represent one action/ entity
sayan has joined #ruby
<canton7> DouweM, just \r is useful for re-writing the current line ;)
<kraljev2> I'd like we dropped this convetion
<kraljev2> no language has anything stupid like this
<kraljev2> let everybody write as they wish
<kraljev2> and let colaborating groups decide for their own
nomenkun has quit [Remote host closed the connection]
cyclamen has quit [Remote host closed the connection]
tylersmith has joined #ruby
<pontiki> protocols are what makes communication possible
Anarch has left #ruby [#ruby]
<pontiki> especially with machines which are blindingly stupid
ValicekB has joined #ruby
gf3 has quit [Quit: ZNC - http://znc.in]
<shevy> kraljev2 you can already write ruby code how you wish here, the ruby parser does not care if you use tabs or spaces or butterflies
<pontiki> and using something which is blindingly stupid as an intermediary, we have to use the protocols that work with them to talk to each other
<kraljev2> yes, but ruby devs kick me in the butt then :D
<shevy> nah
<shevy> matz writes mostly C code
<kraljev2> ruby is about doing thins multiple ways, * vs #join, #recude vs #inject
parduse has joined #ruby
po10 has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
<shevy> kraljev2 well there are often ways which are inferior to other ways
mary5030 has joined #ruby
<gazarsgo> that's because 2 spaces is correct :)
po10 has joined #ruby
binaryplease has joined #ruby
kiri has quit [Quit: Leaving]
Ox6abe has quit [Remote host closed the connection]
po10 has quit [Max SendQ exceeded]
<shevy> kraljev2 take python for instance
<shevy> kraljev2 in python you must indent
po10 has joined #ruby
joaoh82 has joined #ruby
xrosex has quit [Read error: Connection reset by peer]
shawnjgoff has joined #ruby
po10 has quit [Max SendQ exceeded]
xcv has joined #ruby
po10 has joined #ruby
<DouweM> kraljev2: you say "let colaborating groups decide for their own", which is exactly what happens. it just happens to be so that the entire Ruby open-source community is one large collaborating group
mengu has quit [Remote host closed the connection]
<shawnjgoff> I'm in a session with pry; in another terminal I installed a gem. When I require the gem, it can't find it. Is there a way to load this gem without restarting my runtime?
jprovazn_ has quit [Quit: Leaving]
akonny has quit [Quit: akonny]
snath has quit [Ping timeout: 252 seconds]
Sawbones has quit []
moss has joined #ruby
moss has quit [Client Quit]
acrussell has joined #ruby
<shevy> shawnjgoff hmm I think in theory there should be to have it reload everything
mojjojo has quit [Quit: mojjojo]
nowthatsamatt has joined #ruby
sepp2k has quit [Quit: Leaving.]
mosscollum has joined #ruby
jonahR has joined #ruby
<shevy> perhaps it works by adding to $LOAD_PATH
<shawnjgoff> Okay, thanks.
<mrfoto> shawnjgoff: reload!
<mrfoto> is the command
<shawnjgoff> Thanks, mr_red1
<shawnjgoff> oops... mrfoto
xcthulhu has joined #ruby
FL1SK has quit [Remote host closed the connection]
klaut has joined #ruby
FL1SK has joined #ruby
larssmit has joined #ruby
ahegyi has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
larssmit has quit [Client Quit]
avril14th_ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ww26 has joined #ruby
hogeo has joined #ruby
joaoh82 has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 252 seconds]
preller has quit [Read error: Operation timed out]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
kevind has joined #ruby
jamesaanderson has joined #ruby
anomaly_ has quit [Ping timeout: 256 seconds]
xcthulhu has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
gtsiftsis has quit [Quit: Leaving]
mojjojo has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
akonny has joined #ruby
spike|spiegel has quit [Ping timeout: 260 seconds]
jerius has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
havv has quit [Quit: Page closed]
jerius has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
preller has joined #ruby
akonny has quit [Read error: Connection reset by peer]
xcthulhu has joined #ruby
xcthulhu has quit [Client Quit]
bean__ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
drag00n has joined #ruby
lmickh has joined #ruby
plagueweezle is now known as sickweezle
sayan has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
b00stfr3ak has joined #ruby
end_guy has quit [Remote host closed the connection]
zipper has quit [Quit: Lost terminal]
wc- has joined #ruby
klaut has joined #ruby
DeProdigy has joined #ruby
tylersmith has joined #ruby
pwestlund is now known as pwestlund_away
klaut has quit [Remote host closed the connection]
w4pm has joined #ruby
Ox6abe has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
Monie has joined #ruby
Hanmac has joined #ruby
coca_rails has joined #ruby
coldmethod has joined #ruby
jonathanwallace has joined #ruby
xcthulhu has joined #ruby
shime has quit [Ping timeout: 252 seconds]
<gazarsgo> shevy: you mentioned it would be trivial ? :)
Hanmac1 has quit [Ping timeout: 272 seconds]
coldmethod has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 245 seconds]
coldmethod has joined #ruby
pixelgremlins_ba has joined #ruby
LexicalScope` has joined #ruby
nari has quit [Ping timeout: 246 seconds]
bluenemo has quit [Remote host closed the connection]
w4pm has quit [Read error: Operation timed out]
pixelgremlins has quit [Read error: Connection reset by peer]
LexicalScope has quit [Read error: Connection reset by peer]
juarlex has joined #ruby
Underbyte has quit [Quit: Linkinus - http://linkinus.com]
ambushsabre has joined #ruby
danman has joined #ruby
DeProdigy has quit [Ping timeout: 252 seconds]
brtdv has quit []
juarlex has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
elux has joined #ruby
anderson has quit [Quit: Leaving]
chrisja has joined #ruby
hamakn has joined #ruby
juarlex has joined #ruby
mansi has joined #ruby
LadyRainicorn has quit [Quit: Bye]
enebo has quit [Quit: enebo]
intuxicated has quit [Ping timeout: 272 seconds]
kraljev2 has left #ruby [#ruby]
CaptainJet has joined #ruby
<shevy> it should, yeah
fedesilv_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Hanmac1 has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jlebrech> if i move my spec file to spec/ folder I can't load the ruby file i'm testing with require '../myfile' how come?
hamakn has quit [Ping timeout: 250 seconds]
binaryplease has quit [Ping timeout: 250 seconds]
thirdeye has joined #ruby
fedesilva has quit [Ping timeout: 272 seconds]
johnnyfuchs has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
LexicalScope` has quit [Ping timeout: 252 seconds]
<b00stfr3ak> try require_relative and see if that fixes it
<gazarsgo> shevy: yeah well i'm stuck :(
<gazarsgo> i'm inside the rubygems monkey patch trying to see every path that comes through
joaoh82 has joined #ruby
<gazarsgo> but it calls out ot the C code in a lot of places
wald0 has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
<wald0> I have a problem in my debian trying to install Pry
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wald0> it shows me an error about RDoc
<jlebrech> b00stfr3ak: ooh thanks :)
<avril14th_> wald0: --no-rdoc ?
nari has joined #ruby
<avril14th_> :)
<wald0> but i dont see any reported issue on the github project, this is strange because seems like a but that should affect to thousands ppl
p4d4w4n has quit [Read error: Connection reset by peer]
digital-ghost has joined #ruby
puppeh has joined #ruby
JohnBat26 has joined #ruby
<puppeh> when i'm inside 2 blocks
<puppeh> (ie. a block is nested in another) how can I break out of the 2 blocks when I'm on the inner block?
<mrfoto> puppeh: raise an exception and catch it outside the second block?
<pontiki> rethink your design
<mrfoto> and what pontiki said :P
SteveBenner9 has joined #ruby
Criztian has joined #ruby
sec^nd has joined #ruby
jonahR has quit [Quit: jonahR]
<Hanmac1> puppeh: use throw catch
<puppeh> I see
<puppeh> thx
Hanmac1 is now known as Hanmac
<wald0> avril14th_: seems like still showing the same error
mojjojo has quit [Ping timeout: 245 seconds]
sumark has quit [Remote host closed the connection]
<avril14th_> tried --no-ri --no-rdoc ? what's the error?
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
MrZYX|off is now known as MrZYX
arietis has joined #ruby
sumark has joined #ruby
<banister> puppeh: throw/catch
tylersmith has joined #ruby
bean__ has joined #ruby
RaCx_ has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
RaCx has quit [Ping timeout: 246 seconds]
RaCx_ is now known as RaCx
AlSquire has joined #ruby
aganov has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
fgo has quit [Remote host closed the connection]
cameronbarton has joined #ruby
fgo has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
ckinni has joined #ruby
gf3 has joined #ruby
craigp has joined #ruby
Bira has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
lsoa has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
obs has quit [Remote host closed the connection]
<shevy> I found a great quote from "The C programming language"
<shevy> "The indentation emphasizes the logical structure of the program."
<mrfoto> Nearly everybody is convinced that every style but their own is ugly and unreadable. Leave out the "but their own" and they're probably right...
<mrfoto> -- Jerry Coffin (on indentation)
RaCx has joined #ruby
<shevy> Jerry in the coffin
<zzak> wald0: whats the error?
kostine has quit [Quit: kostine]
<zzak> wald0: also what version of ruby & rubygems?
<zzak> and did you install via package manager?
jlebrech has quit [Quit: Konversation terminated!]
kostine has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
AlSquirrel has joined #ruby
phansch has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
sguselnikov has joined #ruby
lyanchih has quit [Quit: lyanchih]
senj has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
arietis has quit [Read error: Connection reset by peer]
iaj has quit [Read error: Operation timed out]
randomnick_ has quit [Read error: Operation timed out]
rippa has joined #ruby
rumours has quit [Read error: Operation timed out]
chiel has quit [Read error: Operation timed out]
thomasvs has quit [Read error: Operation timed out]
spinx^_ has joined #ruby
rumours has joined #ruby
Criztian_ has joined #ruby
Schmidt has quit [Read error: Operation timed out]
thomasvs has joined #ruby
thomasvs has quit [Changing host]
thomasvs has joined #ruby
rossssssssss has joined #ruby
Schmidt has joined #ruby
xcthulhu has joined #ruby
DeProdigy has joined #ruby
cantonic_ has joined #ruby
whysomad has joined #ruby
iaj has joined #ruby
MattStratton has joined #ruby
SteveBenner09 has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
Baluse has joined #ruby
<Baluse> hello
Criztian_ has quit [Excess Flood]
RaCx has joined #ruby
<platzhirsch> okay, back to the grind
<Baluse> is there a way in ruby to know if client got the response ?
jkamenik1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Criztian_ has joined #ruby
<lectrick> Baluse: Can you be more specific?
testslav1 has joined #ruby
thomasvs has quit [*.net *.split]
rumours has quit [*.net *.split]
spinx^_ has quit [*.net *.split]
AlSquire has quit [*.net *.split]
Criztian has quit [*.net *.split]
SteveBenner9 has quit [*.net *.split]
CaptainJet has quit [*.net *.split]
parduse has quit [*.net *.split]
geggam has quit [*.net *.split]
lfox has quit [*.net *.split]
djdarkbeat has quit [*.net *.split]
TorpedoSkyline has quit [*.net *.split]
Rollabunna has quit [*.net *.split]
tonni_ has quit [*.net *.split]
jchristi has quit [*.net *.split]
jkamenik has quit [*.net *.split]
whysobad has quit [*.net *.split]
bnjamin has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
lkba has quit [*.net *.split]
Nilium has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
shevy has quit [*.net *.split]
reach has quit [*.net *.split]
hakunin has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
ninegrid has quit [*.net *.split]
xk_id has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
testslave has quit [*.net *.split]
rotor has quit [*.net *.split]
poguez has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
siefca has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
lancepantz has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
wmoxam has quit [*.net *.split]
gazoombo has quit [*.net *.split]
dekz has quit [*.net *.split]
tr4656_ has quit [*.net *.split]
spinx^ has quit [*.net *.split]
Guest27653 has quit [*.net *.split]
yellow5 has quit [*.net *.split]
MonsieurApple has quit [*.net *.split]
philtr has quit [*.net *.split]
rblackwe has quit [*.net *.split]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
chiel has joined #ruby
TorpedoSkyline_ has joined #ruby
weems has joined #ruby
Hanmac has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
randomnick_ has joined #ruby
hakunin has joined #ruby
tr4656 has joined #ruby
kaichanvong has joined #ruby
xcthulhu has quit [Client Quit]
CaptainJet has joined #ruby
parduse has joined #ruby
sambao21 has joined #ruby
<Baluse> client makes a call to /api/get_pending then server returns the response. But how can I be sure that it arrived ?
philtr has joined #ruby
dangerousdave has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Baluse> and no read timeout etc ,or connection was cut during response ?
rblackwe has joined #ruby
Rollabunna has joined #ruby
thomasvs has joined #ruby
jchristi has joined #ruby
lfox has joined #ruby
geggam has joined #ruby
djdarkbeat has joined #ruby
tonni_ has joined #ruby
lkba has joined #ruby
SHyx0rmZ has joined #ruby
reach has joined #ruby
thedonvaughn has joined #ruby
xk_id has joined #ruby
Emmanuel_Chanel has joined #ruby
Nilium has joined #ruby
Fire-Dragon-DoL has joined #ruby
bricker`LA has joined #ruby
shevy has joined #ruby
poguez has joined #ruby
wmoxam has joined #ruby
dekz has joined #ruby
ninegrid has joined #ruby
Guest27653 has joined #ruby
lancepantz has joined #ruby
siefca has joined #ruby
gazoombo has joined #ruby
<popl> Baluse: What do you mean by call?
Gnubie_ has joined #ruby
rotor has joined #ruby
MonsieurApple has joined #ruby
weeb1e has joined #ruby
MonsieurApple has quit [Changing host]
MonsieurApple has joined #ruby
rblackwe has quit [Max SendQ exceeded]
noname001__ has quit [Ping timeout: 245 seconds]
<Baluse> web service
vlad_starkov has joined #ruby
<Baluse> a http request
spinx^ has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
user258467 has quit [Quit: Quitte]
rumours has joined #ruby
tylershipe has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 245 seconds]
tylershipe has joined #ruby
alup has quit [Quit: Leaving]
bnjamin has joined #ruby
robonerd has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
nvrch has quit [Quit: nvrch]
<jhn> Baluse: http uses tcp, tcp guarantees the delivery.
jibi has joined #ruby
rblackwe has joined #ruby
Hamled has joined #ruby
tvl has joined #ruby
Rennex_ has joined #ruby
flori_ has joined #ruby
yellow5 has joined #ruby
bnagy_ has joined #ruby
jinxD_ has joined #ruby
tommylom1ykins has joined #ruby
haukur has joined #ruby
jinxD has quit [Write error: Broken pipe]
bricker`1A has joined #ruby
bnagy has quit [Write error: Broken pipe]
Hamled|Erp has quit [Write error: Broken pipe]
flori has quit [Write error: Broken pipe]
jpun has quit [Write error: Broken pipe]
xguinness] has quit [Write error: Broken pipe]
G has quit [Write error: Broken pipe]
w1xz has joined #ruby
Eiam has quit [Ping timeout: 338 seconds]
yo61 has quit [Ping timeout: 338 seconds]
tommyvyo has quit [Ping timeout: 338 seconds]
R33C3_ has quit [Ping timeout: 338 seconds]
ce_afk is now known as cescalante
dawkirst has quit [Ping timeout: 338 seconds]
stkowski has joined #ruby
nomadic has quit [Ping timeout: 338 seconds]
wykydtron has quit [Ping timeout: 338 seconds]
pagios has quit [Ping timeout: 338 seconds]
bluehavana_ has quit [Ping timeout: 338 seconds]
kapowaz_ has quit [Ping timeout: 338 seconds]
TheShaun has quit [Ping timeout: 338 seconds]
SegFaultAX has quit [Ping timeout: 338 seconds]
aetaric has quit [Ping timeout: 338 seconds]
daveedo has quit [Ping timeout: 338 seconds]
tommylommykins has quit [Write error: Broken pipe]
tobiasvl has quit [Write error: Broken pipe]
Rennex has quit [Write error: Broken pipe]
aetaric_ has joined #ruby
tvl is now known as tobiasvl
tommyvyo has joined #ruby
Deele has joined #ruby
yo61 has joined #ruby
R33C3_ has joined #ruby
bluehavana_ has joined #ruby
ghatak has quit [Ping timeout: 246 seconds]
Rollabun_ has joined #ruby
nomadic_ has joined #ruby
kapowaz_ has joined #ruby
TheShaun_ has joined #ruby
aetaric_ is now known as aetaric
wmoxam_ has joined #ruby
TheShaun_ is now known as TheShaun
tylershipe has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
camilasan has quit []
dhruvasagar has joined #ruby
xk_id_ has joined #ruby
brandon has joined #ruby
wmoxam_ has quit [Client Quit]
thedonva1ghn has joined #ruby
wmoxam_ has joined #ruby
andikr has quit [Read error: Connection reset by peer]
ninegrid_ has joined #ruby
brandon is now known as Guest61817
wmoxam has quit [Disconnected by services]
msuszczy has quit [Quit: leaving]
wmoxam_ has quit [Client Quit]
wmoxam has joined #ruby
iamjarvo has joined #ruby
<sec^nd> I thought ruby could only extend one class, isn't class TheClass < FirstClass; extend SecondClass; end allowing multiple inheritance?
Davedo has joined #ruby
SegFaultAX has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
Nilium has quit [Disconnected by services]
dawkirst_ has joined #ruby
Nilium_ has joined #ruby
wykydtron has joined #ruby
G has joined #ruby
jpun has joined #ruby
cantonic_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
shime has joined #ruby
geggam_ has joined #ruby
<sec^nd> extend does class methods and include does instance methods
MissionCritical has joined #ruby
lancepantz_ has joined #ruby
intuxicated has joined #ruby
rumours has quit [*.net *.split]
MonsieurApple has quit [*.net *.split]
Rollabunna has quit [*.net *.split]
jchristi has quit [*.net *.split]
thomasvs has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
lfox has quit [*.net *.split]
djdarkbeat has quit [*.net *.split]
geggam has quit [*.net *.split]
tonni_ has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
lkba has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
shevy has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
ninegrid has quit [*.net *.split]
xk_id has quit [*.net *.split]
reach has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
poguez has quit [*.net *.split]
siefca has quit [*.net *.split]
dekz has quit [*.net *.split]
lancepantz has quit [*.net *.split]
gazoombo has quit [*.net *.split]
Guest27653 has quit [*.net *.split]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
lancepantz_ is now known as lancepantz
lkba has joined #ruby
juarlex has quit [Remote host closed the connection]
rootshift has quit [Quit: rootshift]
Tamal has joined #ruby
thelamest has quit [Ping timeout: 252 seconds]
mlpinit_ has quit [Remote host closed the connection]
bricker`1A is now known as bricker`LA
joaoh82 has quit [Remote host closed the connection]
Olipro has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
yalue has quit [Quit: Leaving]
<platzhirsch> I will never learn the UNIX console statement for seek and replace, I have to write it somewhere in front of me...
Olipro has joined #ruby
<popl> huh?
wallerdev has joined #ruby
rumours has joined #ruby
xguinness] has joined #ruby
poguez has joined #ruby
MonsieurApple has joined #ruby
Fire-Dragon-DoL has joined #ruby
thomasvs has joined #ruby
siefca has joined #ruby
djdarkbeat has joined #ruby
gazoombo has joined #ruby
pagioss has joined #ruby
dekz has joined #ruby
davy_ has joined #ruby
end_guy has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo_ has joined #ruby
braoru has quit [Remote host closed the connection]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nogbit has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
Ox6abe has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 272 seconds]
joaoh82 has joined #ruby
cameronbarton has joined #ruby
yfeldblum has quit [Remote host closed the connection]
shevy has joined #ruby
thelamest has joined #ruby
flubba has joined #ruby
Emmanuel_Chanel has joined #ruby
saarinen has joined #ruby
jchristi has joined #ruby
siwica has joined #ruby
mlpinit has joined #ruby
<popl> platzhirsch: You just need to use find more, is all. :P
<platzhirsch> I don't find http://explainshell.com very useful in this case
Olipro has quit [Max SendQ exceeded]
<popl> platzhirsch: http://wiki.bash-hackers.org/doku.php # much better resource
saarinen has quit [Client Quit]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<popl> also #bash here on freenode
Olipro has joined #ruby
_Andres has joined #ruby
<platzhirsch> I understand already all the components, but explainshell seems to fail
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
dagobah has quit [Remote host closed the connection]
<popl> So complain to the maintainer.
<popl> :)
yfeldblum has joined #ruby
saarinen has joined #ruby
flubba has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
saarinen has joined #ruby
dangerousdave has joined #ruby
MonsieurApple has quit [Read error: Operation timed out]
soulcake has quit [Ping timeout: 260 seconds]
poguez has quit [Read error: Connection reset by peer]
poguez has joined #ruby
dekz has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
dekz_ has joined #ruby
kcantwel has joined #ruby
tylershipe has joined #ruby
anomaly_ has quit [Ping timeout: 252 seconds]
soulcake has joined #ruby
heftig has joined #ruby
MonsieurApple has joined #ruby
flubba has joined #ruby
tonni has joined #ruby
timonv has quit [Remote host closed the connection]
Kar- has joined #ruby
geggam_ is now known as geggam
geggam has quit [Quit: Leaving]
bean has quit [Read error: Connection reset by peer]
flubba has quit [Remote host closed the connection]
geggam has joined #ruby
bean has joined #ruby
haukur has quit []
fijimunk1i has joined #ruby
geekbri has quit [Read error: Connection reset by peer]
aspires_ has quit []
pel_daniel has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
robert_ has joined #ruby
bigoldrock1 has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
cameronbarton has quit [Quit: cameronbarton]
skinny_much has quit [Ping timeout: 245 seconds]
DanKnox has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 245 seconds]
dreamchaser has quit [Ping timeout: 252 seconds]
onewheelskyward has quit [Ping timeout: 252 seconds]
the_mentat has quit [Ping timeout: 260 seconds]
peck_ has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
fijimunkii has quit [Ping timeout: 246 seconds]
yellow5 has quit [Quit: time to go!]
derebos has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
mesamoo has joined #ruby
anderson has joined #ruby
gf3 has quit [Ping timeout: 245 seconds]
fflush has quit [Ping timeout: 252 seconds]
ffranz has quit [Ping timeout: 246 seconds]
dh64 has quit [Ping timeout: 246 seconds]
yellow5 has joined #ruby
jkhwan has quit [Remote host closed the connection]
Muz has quit [Ping timeout: 246 seconds]
benlieb has quit [Client Quit]
yjmsf20 has quit [Read error: Connection reset by peer]
skinny_much has joined #ruby
kaiza has joined #ruby
Nogbit has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
Voodoofish430 has joined #ruby
Muz has joined #ruby
lewellyn has quit [Remote host closed the connection]
lewellyn has joined #ruby
bricker has joined #ruby
kevind_ has joined #ruby
MattStratton has quit [Ping timeout: 246 seconds]
fflush has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenichi has quit [Quit: ZNC - http://znc.in]
zipper has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
kenichi has joined #ruby
bgy has joined #ruby
<bgy> hi
<platzhirsch> hi
mlpinit has quit [Quit: Leaving...]
kenichi has quit [Client Quit]
kenichi has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
cjsarette has joined #ruby
kevind_ is now known as kevind
gf3 has joined #ruby
Guest5266 has joined #ruby
krazee has quit [Ping timeout: 272 seconds]
primenum has joined #ruby
sambao21 has joined #ruby
onewheelskyward has joined #ruby
peck_ has joined #ruby
the_mentat has joined #ruby
DanKnox has joined #ruby
reach has joined #ruby
coca_rails has joined #ruby
workweezle has joined #ruby
troyready has joined #ruby
nwertman has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
<mrfoto> hi
RaCx has quit [Ping timeout: 246 seconds]
xguinness] has quit [Read error: Operation timed out]
saarinen has quit [Quit: saarinen]
xguinness] has joined #ruby
RaCx has joined #ruby
MonsieurApple has quit [Read error: Operation timed out]
gazoombo has quit [Read error: Operation timed out]
gazoombo has joined #ruby
MonsieurApple has joined #ruby
ffranz has joined #ruby
Nogbit has joined #ruby
<existensil> pipecloud: PStore
joaoh82 has quit [Ping timeout: 265 seconds]
mrnugget has quit [Ping timeout: 264 seconds]
<existensil> (answering your question from many hours ago. the 4th db type available in ruby stdlib)
xcthulhu has joined #ruby
dhruvasagar has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
kcantwel has quit [Quit: Computer has gone to sleep.]
TMM has quit [Quit: Ex-Chat]
phansch has quit [Remote host closed the connection]
xcthulhu has quit [Client Quit]
dfranciosi has quit []
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
xcthulhu has joined #ruby
Baluse has quit []
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
matheuscaceres has joined #ruby
cbetta_afk is now known as cbetta
cjsarette has quit [Ping timeout: 246 seconds]
krazee has joined #ruby
rubyracer has joined #ruby
kpshek has joined #ruby
freerobby has quit [Quit: Leaving.]
iamjarvo_ has quit [Ping timeout: 252 seconds]
KmartSqrl has joined #ruby
freerobby has joined #ruby
nwertman has joined #ruby
bgy has left #ruby ["Leaving"]
Alina-malina has quit [Quit: Leaving]
anomaly_ has joined #ruby
Alina-malina has joined #ruby
spike|spiegel has joined #ruby
jonr22 has joined #ruby
kpshek has quit [Client Quit]
tharindu_ has joined #ruby
roolo has quit [Remote host closed the connection]
moi2 has joined #ruby
stetho has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
vlad_sta_ has joined #ruby
kpshek has joined #ruby
lfox has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
DeProdigy has quit [Ping timeout: 250 seconds]
platzhirsch has quit [Ping timeout: 272 seconds]
vlad_sta_ has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jonr22 has quit [Ping timeout: 246 seconds]
kenichi has quit [Quit: ZNC - http://znc.in]
mosscollum has quit [Quit: mosscollum]
kenichi has joined #ruby
xcv has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
xcv has joined #ruby
bigoldrock1 has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 250 seconds]
mrfoto has quit []
dukz has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
yekta has joined #ruby
ambushsabre has joined #ruby
benlieb has quit [Quit: benlieb]
platzhirsch has joined #ruby
gverri has joined #ruby
davy_ has quit [Remote host closed the connection]
mark_locklear has joined #ruby
xcv has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Remote host closed the connection]
primenum has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby
sguselnikov has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wc- has quit [Quit: wc-]
bnjamin has quit [Remote host closed the connection]
davy_ has joined #ruby
maletor has joined #ruby
sambao21 has joined #ruby
nwertman has quit [Remote host closed the connection]
itamaryu has quit [Quit: Connection closed for inactivity]
Hanmac1 has joined #ruby
devdazed has quit [Quit: Bye]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
robertjpayne has quit [Remote host closed the connection]
zeeraw has joined #ruby
zeeraw has quit [Client Quit]
yekta has quit [Quit: yekta]
w4pm has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
thumpba has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
mosscollum has joined #ruby
arietis has joined #ruby
elux has quit [Quit: Leaving...]
elux has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
xcthulhu has joined #ruby
joaoh82 has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
iliketur_ has joined #ruby
IceDragon has joined #ruby
xcthulhu has quit [Client Quit]
preller has quit [Ping timeout: 260 seconds]
avril14th_ has quit [Read error: Connection reset by peer]
atno__ has joined #ruby
Hanmac has joined #ruby
cbetta is now known as cbetta_afk
atno has quit [Read error: Connection reset by peer]
Feuerbach has quit [Ping timeout: 260 seconds]
rdark has quit [Quit: leaving]
flubba has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 250 seconds]
cameronbarton has joined #ruby
RoryHughes has joined #ruby
echevemaster has joined #ruby
reach has quit [Remote host closed the connection]
goleldar has joined #ruby
blaxter_ has joined #ruby
troessner has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
preller has joined #ruby
Hanmac1 has joined #ruby
benlieb has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
mosscollum has quit [Quit: mosscollum]
cantonic has joined #ruby
Kneferilis has quit [Ping timeout: 264 seconds]
kaiza has quit [Read error: Connection reset by peer]
mosscollum has joined #ruby
blaxter_ has quit [Client Quit]
Hanmac has quit [Ping timeout: 260 seconds]
kaiza has joined #ruby
joaoh82 has joined #ruby
barratt has quit [Ping timeout: 272 seconds]
SHyx0rmZ has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lewix has joined #ruby
banister has joined #ruby
lewix has quit [Remote host closed the connection]
saarinen has joined #ruby
Hanmac has joined #ruby
jamesaanderson has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
<pontiki> hmmm.... having problems pulling from rubygems..
Hanmac1 has quit [Ping timeout: 252 seconds]
_Andres has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 260 seconds]
gianlucadv has joined #ruby
brianpWins has quit [Ping timeout: 245 seconds]
duggiefresh has joined #ruby
kobain has quit []
intuxicated has quit [Ping timeout: 252 seconds]
<shevy> pontiki they are radically changing things
Ox6abe has joined #ruby
<shevy> <indirect> shevy: stats are disabled until they can be reimplemented in a way that doesn't take down redis and the site sometimes
<pontiki> crud
<pontiki> trying to get a build running on travis
anomaly_ has quit [Ping timeout: 256 seconds]
<shevy> I wouldn't be surprised if there is more shit coming that way
Ox6abe has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<pontiki> ok, working now
Myk267 has quit [Quit: Myk267]
Hanmac has quit [Ping timeout: 264 seconds]
ExxKA has quit [Quit: Leaving]
zeade has joined #ruby
lewix has joined #ruby
marr has joined #ruby
d45h has quit []
ewnd9 has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
interactionjaxsn has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
coca_rails has joined #ruby
tylersmith has joined #ruby
dik_dak has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Ping timeout: 246 seconds]
elux has quit [Quit: Leaving...]
w1xz has quit [Quit: ZZZzzz…]
subbyyy has joined #ruby
jnoob22_ has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
Czupa has joined #ruby
jnoob22_ has joined #ruby
werdnativ has joined #ruby
craigp has quit [Remote host closed the connection]
<werdnativ> Does anyone know what's the latest word on autoload being deprecated? https://bugs.ruby-lang.org/issues/5653
thumpba has joined #ruby
elux has joined #ruby
<werdnativ> Is it still undecided?
w1xz has joined #ruby
<Hanmac1> werdnativ: as far as i know you still should not use it in new code
preller has quit [Ping timeout: 250 seconds]
jnoob22_ has quit [Client Quit]
iliketur_ has quit [Quit: zzzzz…..]
jnoob22_ has joined #ruby
<werdnativ> Thanks, just wondering since it's a pretty basic piece, and no word on it since 2.0 or upcoming 2.1…
<banister> werdnativ i hate autoload
<banister> more than i hate hell and all montagues
<banister> it's also trivial to implement yourself if you need to
dhruvasagar has quit [Ping timeout: 245 seconds]
po10 has quit [Quit: /]
<werdnativ> yeah, const_missing...
atno has joined #ruby
phansch has joined #ruby
jkhwan has joined #ruby
phipes has joined #ruby
Advocation has joined #ruby
jkhwan has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
elux has quit [Quit: Leaving...]
atno__ has quit [Ping timeout: 260 seconds]
<banister> werdnativ u r const_missing
SHyx0rmZ has joined #ruby
<werdnativ> I am?
jkhwan has joined #ruby
xcthulhu has joined #ruby
ckinni has joined #ruby
workmad3 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
krazee has quit [Remote host closed the connection]
juarlex has joined #ruby
Liquid-- has joined #ruby
iliketur_ has joined #ruby
vlad_starkov has joined #ruby
fgo has joined #ruby
sambao21 has joined #ruby
MrZYX is now known as MrZYX|off
Naoe-Kanno has joined #ruby
<joshu> is it a best practice to update RubyGems or to use the version that is bundled with each Ruby version?
<shevy> always update joshu
<shevy> werdnativ matz does not like autoload and will deprecate, then remove it
phipes has quit []
<joshu> shevy ok I'm researching this to better understand what people do. Is there a mechanism for keeping it RubyGems up to date automatically or do you just run gem update --system when you remember to?
Bira has quit [Remote host closed the connection]
tylersmi_ has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
<shevy> nono
vlad_sta_ has quit [Ping timeout: 260 seconds]
<shevy> I myself never use gem update --system so I can not tell you whether to use it or not
juarlex has quit [Ping timeout: 248 seconds]
tylersmith has quit [Read error: Connection reset by peer]
phipes has joined #ruby
devdazed has joined #ruby
fijimunk1i has quit [Ping timeout: 246 seconds]
siwica has quit [Ping timeout: 260 seconds]
Eiam has joined #ruby
mickthenick has joined #ruby
Bira has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
anomaly_ has joined #ruby
siwica has joined #ruby
mengu has joined #ruby
OdNairy has quit [Ping timeout: 246 seconds]
robonerd has joined #ruby
DeProdigy has joined #ruby
preller has joined #ruby
tylersmi_ has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby
<shevy> I think you can just do "gem update" or something
<shevy> but I don't do that either, I always download a tarball, and save it in my local backups
barratt has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
mib_mib has joined #ruby
kaiza has joined #ruby
<joshu> shevy and you do this whenever there is a new ruby gems version?
<mib_mib> hi - i want to wrap every line of code with a before method and after method - how would one go about that?
Ox6abe has joined #ruby
<mib_mib> is there any notion of lines? or would i have to do it to specific objects
workmad3 has quit [Ping timeout: 248 seconds]
<shevy> joshu well, no... I do it when I don't feel lazy :)
<shevy> most of the time I am lazy
Rollabun_ has quit [Ping timeout: 246 seconds]
<shevy> but I updated perhaps 4 weeks ago or something
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<shevy> my current gem version is 2.1.7
<shevy> no idea if that is the latest
choobie has joined #ruby
<DouweM> mib_mib: what are you trying to accomplish?
<joshu> hehe ok how would one be informed of new updates to ruby gems..silly question but do you subscribe to a github repo or?
DeProdigy has quit [Ping timeout: 264 seconds]
<DouweM> joshu: run `bundle outdated` every so often
Ox6abe_ has joined #ruby
<joshu> shevy yeah 2.1.7 is latest...mine is 2.0.14 as bundled with * ruby-2.0.0-p353
Xeago has quit [Remote host closed the connection]
OdNairy has joined #ruby
Solnse has joined #ruby
<joshu> DouweM isn't that just for the gems themselves and not the RubyGem system?
brianpWins has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
<shevy> joshu not sure... I have some kind of build tools
<workweezle> Perhaps a silly question, but is a given version range of 'gem' (command) coupled with a certain version range of ruby?
<shevy> then I sometimes do "url rubygems", this gets copied to my xorg buffer, then I paste this directly into a firefox tab and see if there are new versions
Liquid-- has quit [Quit: Computer has gone to sleep.]
<shevy> which I find too tedious
fijimunkii has joined #ruby
<shevy> so I dont update that often
<shevy> :P
gazarsgo has quit [Quit: gazarsgo]
Ox6abe_ has quit [Ping timeout: 260 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
<joshu> shevy hehe...some of these things could probably be more obvious and require less user intervention
geekbri has quit []
roolo has joined #ruby
gazarsgo has joined #ruby
<shevy> I think there are specific in-gem ways to do that
<DouweM> joshu: ah, you're right about `bundle outdated`. I misinterpreted your question
<joshu> DouweM no worries
rossssssssss has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
<shevy> joschi, kill DouweM
<shevy> :>
<DouweM> :|
<shevy> damn
pushpak has joined #ruby
<shevy> I failed at tab completion
bricker has joined #ruby
<shevy> joshu, kill both joschi and DouweM to make up for my mistake please
<DouweM> that's not the biggest issue I have with that message
<shevy> lol
elux has joined #ruby
phipes has quit [Remote host closed the connection]
<shevy> ok, let's make love, not war
drag00n has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
<wald0> which kind of "love" ?
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
<joshu> hehe
duggiefresh has joined #ruby
<DouweM> the kind of love I feel for the food I'm about to make. See ya later :P
mib_mib has quit [Quit: Page closed]
anomaly_ has quit [Ping timeout: 252 seconds]
<shevy> wald0 well... hipster love
<wald0> ah, that sounds good! :)
mengu has quit [Remote host closed the connection]
<shevy> ok, time for lipsticks and makeup...
shime has joined #ruby
* shevy gets changed ...
kenichi has quit [Quit: ZNC - http://znc.in]
luke_ has joined #ruby
kostine has quit [Quit: kostine]
_Andres has joined #ruby
<platzhirsch> When I want a drop_while for the opposite direction, would I simply use reverse?
barratt has quit [Read error: Connection reset by peer]
drag00n has joined #ruby
digifiv5e has quit [Quit: quit]
x1337807x has joined #ruby
preller has quit [Read error: Operation timed out]
<shevy> guess so... can't we test it in ruby code?
xcv has joined #ruby
<platzhirsch> :o
alpha123_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
nobitanobi has joined #ruby
phipes has joined #ruby
alpha123 has quit [Ping timeout: 246 seconds]
matheuscaceres has quit [Quit: matheuscaceres]
Naoe-Kanno has quit [Ping timeout: 265 seconds]
<joshu> shevy haha special pair programming session this evening :P
relix has joined #ruby
<platzhirsch> well it works, just wondered if there is an obvious alternative
<platzhirsch> with Whiskey and boxing match on disagreements
<pushp0p> lol hipster startup
jhn has quit [Ping timeout: 272 seconds]
<platzhirsch> Yeah, hire me. I am looking for a job
<platzhirsch> I won't fight though, that's for the proletarian programmers
h0rrorvacui has joined #ruby
DeProdigy has joined #ruby
intuxicated has joined #ruby
workmad3 has joined #ruby
Advocation has quit [Quit: Advocation]
alpha123_ is now known as alpha123
DrShoggoth has joined #ruby
bricker_ has joined #ruby
bricker_ is now known as bricker`work
aspires_ has joined #ruby
bricker has quit [Disconnected by services]
vlad_starkov has quit [Remote host closed the connection]
bricker`work is now known as bricker
ylluminate` has quit [Ping timeout: 252 seconds]
kaiza has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
Liquid-- has joined #ruby
preller has joined #ruby
cbetta_afk is now known as cbetta
yeboot has joined #ruby
SHyx0rmZ has joined #ruby
mickthenick has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
beneggett has joined #ruby
SHyx0rmZ has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
nwertman has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
preller has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
rossssssssss has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
wald0 has quit [Quit: Lost terminal]
mickthenick has joined #ruby
interactionjaxsn has joined #ruby
Kruppe has joined #ruby
robbyoconnor has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Eiam has joined #ruby
Astralum has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
tylersmith has joined #ruby
Advocation has joined #ruby
kreisys has joined #ruby
preller has joined #ruby
chrisja has quit [Quit: leaving]
mikepack has joined #ruby
KmartSqrl has quit []
MattStratton has joined #ruby
Bira has quit []
MattStratton has quit [Max SendQ exceeded]
Mon_Ouie has quit [Ping timeout: 272 seconds]
Briareos1 has joined #ruby
snath has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
gazarsgo has quit [Quit: gazarsgo]
<shevy> Hanmac, when will your wxwidgets bindings be gem-ready
Czupa has quit [Remote host closed the connection]
timonv has joined #ruby
<Hanmac> not this year ;P (i am currnetly try to document the initialize function with that many options)
gazarsgo has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
noop has joined #ruby
Thanatermesis has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
dopie has quit [Read error: Connection reset by peer]
cbetta is now known as cbetta_afk
decoponio has quit [Quit: Leaving...]
<shevy> :<
<shevy> not this year!
<shevy> that's 20 days more
goleldar has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
mneorr has joined #ruby
MrZYX|off is now known as MrZYX
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
nobitanobi has quit [Ping timeout: 252 seconds]
mneorr has quit [Ping timeout: 241 seconds]
bluOxigen has joined #ruby
nobitanobi has joined #ruby
kenichi has joined #ruby
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
juarlex has joined #ruby
intuxicated has quit [Read error: No route to host]
Ox6abe has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
<sec^nd> hello
<sec^nd> shevy:
MattStratton has joined #ruby
kirun has joined #ruby
<sec^nd> How do I check if a class contains a variable?
<sec^nd> I want to loop a hash and see if my class contains the variable and if so then call function on said variable
SHyx0rmZ has joined #ruby
iliketur_ has joined #ruby
<sec^nd> Hanmac: ?
jkhwan has quit [Remote host closed the connection]
<platzhirsch> variable? Better using a method or attribute_accessors? Then it would be obj.respond_to?(:method_name)
w4pm has joined #ruby
<sec^nd> kk
mickthenick has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
<platzhirsch> Your method is always the interface to your object, the proper way to interact with it
<Hanmac> sec^nd: Object#instance_variable_defined?
tylershi_ has joined #ruby
<shevy> sec^nd what kind of variable
sp3_ has joined #ruby
<sec^nd> shevy: I'm guessing its probably a attribute_accessor
<shevy> sec^nd you don't have to loop btw, you can use .find and .select directly
jkhwan has joined #ruby
mickthenick has joined #ruby
Es0teric has joined #ruby
<shevy> in both methods, you put your check condition into the block
<shevy> >> %(a bc def ).select {|e| e.size == 2 }
<eval-in_> shevy => private method `select' called for "a bc def ":String (NoMethodError) ... (https://eval.in/79190)
tvw has quit []
<shevy> oops
<shevy> >> %w( a bc def ).select {|e| e.size == 2 }
<eval-in_> shevy => ["bc"] (https://eval.in/79191)
tharindu_ has quit [Quit: Leaving...]
nobitanobi has quit [Read error: Connection reset by peer]
<sec^nd> shevy: I have a hash with value names, if they exists on my object I want to call the object.set method with the values
w4pm has quit [Ping timeout: 264 seconds]
tylershipe has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
<shevy> .has_value?
preller has quit [Ping timeout: 272 seconds]
<shevy> >> hash = { :a => "bcd", :e => "fghi"}; hash.has_value? :e
<eval-in_> shevy => false (https://eval.in/79192)
<shevy> oops
<shevy> >> hash = { :a => "bcd", :e => "fghi"}; hash.has_value? 'bcd'
<eval-in_> shevy => true (https://eval.in/79193)
<sec^nd> shevy: actually I'm lookping the hash and checking a class for values not the hash
mickthenick has quit [Client Quit]
<sec^nd> how do I iterate a hashes key values by the way? map ?
eka has quit [Ping timeout: 246 seconds]
<slash_nick> sec^nd: each
vlad_starkov has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sec^nd> slash_nick: thanks
Hanmac1 has joined #ruby
eldariof has joined #ruby
sp3_ has quit [Ping timeout: 240 seconds]
coldmethod1 has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
nwertman has quit [Ping timeout: 272 seconds]
mickthenick has joined #ruby
eldariof has quit [Client Quit]
preller has joined #ruby
noop has quit [Ping timeout: 245 seconds]
cbetta_afk is now known as cbetta
Ox6abe_ has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
g0bl1n has quit [Ping timeout: 246 seconds]
coldmethod has quit [Ping timeout: 246 seconds]
<shevy> sec^nd there is also .each_pair
ambushsabre has joined #ruby
gja has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Ox6abe has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
derebos has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
saarinen has quit [Quit: saarinen]
beneggett has joined #ruby
thumpba has quit [Remote host closed the connection]
banister has quit [Ping timeout: 248 seconds]
thumpba has joined #ruby
mneorr has joined #ruby
DrShoggoth has joined #ruby
elux has quit [Quit: Leaving...]
eka has joined #ruby
thumpba_ has joined #ruby
gja has quit [Ping timeout: 240 seconds]
thumpba has quit [Remote host closed the connection]
iajrz has quit [Quit: Page closed]
dhruvasagar has quit [Ping timeout: 252 seconds]
juarlex has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
ambushsabre has quit [Ping timeout: 245 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
aroop has joined #ruby
d2dchat has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ambushsabre has joined #ruby
ambushsabre has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
froy has quit [Quit: kablam!]
RaCx has quit [Ping timeout: 246 seconds]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
RaCx has joined #ruby
MattStratton has quit [Read error: Operation timed out]
sambao21 has joined #ruby
Ox6abe_ has quit [Remote host closed the connection]
sheap has joined #ruby
Hanmac has joined #ruby
Stevo123 has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
tylershi_ has quit [Remote host closed the connection]
tylershipe has joined #ruby
iMe has quit [Quit: Bye Bye]
Hanmac1 has quit [Ping timeout: 245 seconds]
colonolGron has joined #ruby
Spami has joined #ruby
araujo has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Hanmac1 has joined #ruby
iMe has joined #ruby
<sec^nd> What is a good free open source ruby ide which works on linux?
<sec^nd> Hanmac: shevy
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
araujo has joined #ruby
Xeago has joined #ruby
rezzack has joined #ruby
<Solnse> I use sublime text 3.
<sec^nd> I need a debugger
<sec^nd> Can sublime text do that
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Sawbones has joined #ruby
<Stevo123> pay the $100 and get RubyMine
Hanmac has quit [Ping timeout: 265 seconds]
<alpha123> Or just use Vim....
* alpha123 hides
<sec^nd> Stevo123: I said open source and free
<sec^nd> alpha123: I am ;D
<alpha123> Yay! :D
<Solnse> so write tests to debug your own code.
<DouweM> sublime is the shit, but it's not an IDE
<Solnse> right
<Stevo123> The tools save you time and thus make you more money. It pays for itself
<MrZYX> sublime recently got a plugin for it, didn't try it yet: https://sublime.wbond.net/packages/Ruby%20Debugger
tylershipe has quit [Ping timeout: 264 seconds]
<MrZYX> I just use pry and my terminal for debugging ruby
<DouweM> MrZYX: that looks great
<DouweM> but yeah, I'm comfortable just using pry
tylershipe has joined #ruby
phantummm has quit [Quit: phantummm]
banister has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
<shime> MrZYX: that's more than enough
flame_ has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
Stevo123 has quit [Quit: Stevo123]
<DouweM> Has anyone gotten SublimeCodeIntel to work for Ruby?
robbyoconnor has joined #ruby
<DouweM> It's supposed to be supported, but I had a lot of trouble getting it running when I last tried, and eventually just gave up
preller has quit [Read error: Operation timed out]
Solnse has quit [Remote host closed the connection]
bitcycle has joined #ruby
Criztian_ has quit [Remote host closed the connection]
<bitcycle> Hey all. I have to write functional tests, and writing them in ruby makes the most sense for our shop. I'm wondering what library is most commonly used to write tests in ruby?
alvaro_o has joined #ruby
goleldar has joined #ruby
<joshu> bitcycle hi rspec or minitest
coca_rails has joined #ruby
<shevy> sec^nd dunno I still use bluefish 1.0.8
<bitcycle> joshu: I was thinking of using rspec, but what is the tradeoff? Are ther other more hip frameworks that do things that rspec can't or won't do?
<shevy> an IDE seems not necessary that much in ruby
<alpha123> sec^nd: Have you tried https://github.com/astashov/vim-ruby-debugger?
<DouweM> bitcycle: RSpec is the most popular and I can't think of anything it doesn't do that other frameworks do
<bitcycle> DouweM: Cool. Thanks for that. I think I'll move forward with it.
saarinen has joined #ruby
ValicekB has joined #ruby
saarinen has quit [Client Quit]
coca_rails has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
edwards151 has joined #ruby
coca_rails has joined #ruby
preller has joined #ruby
<platzhirsch> Is the singleton module useful in Ruby or should I use something else
<banister> bitcycle 'bacon' is teh coolest
<platzhirsch> looks fine to me
<banister> platzhirsch i just use class methods on modules
failshell has joined #ruby
saarinen has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
danman has quit [Remote host closed the connection]
<platzhirsch> Yeah, but in this case I need objects for the Rails model, so..
danman has joined #ruby
<platzhirsch> How's your mental pilgrimage to the Ruby core going on banister
coca_rails has quit [Read error: Connection reset by peer]
<banister> not really interested in ruby core
sheap has left #ruby [#ruby]
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
<banister> more interested in my own strange experiments which would never be accepted ;)
fijimunk1i has joined #ruby
<platzhirsch> ^^
coca_rails has joined #ruby
mickthenick has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
bean_ has joined #ruby
preller has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
bluOxigen has quit [Ping timeout: 241 seconds]
acrussell has quit [Quit: Leaving.]
shedd has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 241 seconds]
xcv has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 264 seconds]
it_tard has quit [Remote host closed the connection]
tylershipe has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylershipe has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
DeProdigy has quit [Ping timeout: 240 seconds]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
nwertman has joined #ruby
m8 has joined #ruby
gja has joined #ruby
anomaly_ has quit [Remote host closed the connection]
DeProdigy has joined #ruby
anomaly_ has joined #ruby
cbetta is now known as cbetta_afk
nwertman has quit [Read error: Operation timed out]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
nwertman has joined #ruby
jibi has quit [Quit: Reconnecting]
jibi has joined #ruby
jibi has quit [Client Quit]
jibi has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
mneorr has joined #ruby
coca_rails has quit [Remote host closed the connection]
mark_locklear has quit [Quit: Leaving]
coca_rails has joined #ruby
nwertman has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
polaco is now known as polaco_zZz
prc has joined #ruby
gadgetoid has left #ruby [#ruby]
wallerdev has joined #ruby
prc has left #ruby [#ruby]
nwertman has joined #ruby
prc has joined #ruby
jonr22 has joined #ruby
prc has left #ruby [#ruby]
benlieb has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
tylersmith has quit [Read error: Connection reset by peer]
mickthenick has joined #ruby
sambao21 has joined #ruby
tylersmith has joined #ruby
timonv has joined #ruby
prc has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
mickthenick has quit [Client Quit]
kiwi_34296 has joined #ruby
kiwi_34296 has left #ruby [#ruby]
Jdubs has joined #ruby
mickthenick has joined #ruby
phansch has quit [Remote host closed the connection]
failshell has quit []
jonr22 has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Ping timeout: 250 seconds]
thumpba_ has quit [Remote host closed the connection]
mickthenick has quit [Client Quit]
derebos has joined #ruby
thumpba has joined #ruby
derebos has quit [Client Quit]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
DeProdigy has quit [Ping timeout: 265 seconds]
terrellt has joined #ruby
preller has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
tonni_ has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Parker0 has joined #ruby
tylershipe has quit []
allsystemsarego has quit [Quit: Leaving]
nanoyak_ has joined #ruby
nanoyak has quit [Ping timeout: 265 seconds]
mgberlin has joined #ruby
preller has joined #ruby
Nilium_ is now known as Nilium
Nilium is now known as Nilium_
Nilium_ is now known as Nilium__
Nilium__ is now known as Nilium
gazarsgo has quit [Quit: gazarsgo]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
otero has quit [Ping timeout: 260 seconds]
DeProdigy has joined #ruby
mengu has quit [Client Quit]
xcthulhu has joined #ruby
gazarsgo has joined #ruby
<Parker0> Does anyone have issues with connecting to IRC?
lkba has quit [Ping timeout: 252 seconds]
<Parker0> I cannot connect via textual or Linkinus
gja has quit [Quit: This computer has gone to sleep]
robbyoconnor has joined #ruby
colonolGron has quit [Read error: Operation timed out]
luke_ has quit [Quit: Linkinus - http://linkinus.com]
pel_daniel has quit [Ping timeout: 246 seconds]
flame_ has joined #ruby
benlieb has quit [Quit: benlieb]
tylersmi_ has joined #ruby
elux has joined #ruby
Feuerbach has joined #ruby
p0wn3d has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
aspires_ has quit []
peregrine81 has quit []
peregrine81 has joined #ruby
colonolGron has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
postmodern has joined #ruby
d2dchat has quit [Remote host closed the connection]
peregrine81 has joined #ruby
saarinen has quit [Quit: saarinen]
preller has quit [Ping timeout: 260 seconds]
shedd has quit [Remote host closed the connection]
mickthenick has joined #ruby
tjbiddle has joined #ruby
Astral_ has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Azure has quit [Quit: My MBP went to sleep.]
jonathanwallace has quit [Ping timeout: 250 seconds]
Monie has joined #ruby
mikepack has quit [Remote host closed the connection]
lkba has joined #ruby
<platzhirsch> Parker0: no, just sometimes when my ISP is screwing around
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
Advocation has quit [Quit: Advocation]
Azure has joined #ruby
<platzhirsch> I have overwritten self.inherited without calling super at the end…
<platzhirsch> *rollseye*
maletor has quit [Quit: Computer has gone to sleep.]
Ox6abe has joined #ruby
Hanmac1 has joined #ruby
pushp0p has quit [Quit: leaving]
kraljev8 has joined #ruby
<kraljev8> what is the best way to convert hash with string keys to symbol ones?
<kraljev8> the hash is nested.
Hanmac has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
<platzhirsch> kraljev8: have a look at how Rails implements this, they have .symbolize_keys
<platzhirsch> Why do you need symbols?
<kraljev8> seems easier to type
danshultz has quit [Remote host closed the connection]
Ox6abe has quit [Remote host closed the connection]
<platzhirsch> kraljev8: symbols are not garbage collected
danshultz has joined #ruby
<MrZYX> kraljev8: is your hash user input?
<kraljev8> in rails, do you get your POST data with symbols?
<MrZYX> you get them as HashWithIndifferentAccess iirc
<kraljev8> it is post data, therefore a DOS is possible
iliketur_ has quit [Read error: Connection reset by peer]
ikawnoclast has quit [Quit: ikawnoclast]
<kraljev8> but is that really feasible
<MrZYX> yes
cbetta_afk is now known as cbetta
maletor has joined #ruby
iliketur_ has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
Jetchisel has joined #ruby
<kraljev8> how does rails do that?
iliketur_ has joined #ruby
DeProdigy has quit [Ping timeout: 240 seconds]
<DouweM> they're not stored in the params hash using symbols, they're stored using strings. the conversion from symbol->string is done on access
<DouweM> so you can't just DDoS by sending a lot of POST/GET keys
blandflakes has quit [Quit: Page closed]
<DouweM> See #convert_key
mickthenick has left #ruby [#ruby]
mickthenick has joined #ruby
mickthenick has left #ruby [#ruby]
mmcdaris has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Ping timeout: 240 seconds]
peregrine81 has quit []
nwertman_ has joined #ruby
elux has quit [Quit: Leaving...]
DeProdigy has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
mmitchell has quit []
interactionjaxsn has quit [Remote host closed the connection]
coca_rails has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
zipper has quit [Quit: Lost terminal]
mgberlin has quit [Quit: mgberlin]
ffranz has quit [Ping timeout: 250 seconds]
tylersmi_ has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
tylersmith has joined #ruby
jkhwan has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<kraljev8> does symbol also have 20 byte object overhead?
<kraljev8> per instance?
Kar- has quit [Remote host closed the connection]
tylersmi_ has joined #ruby
pel_daniel has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
maroloccio has joined #ruby
<DouweM> kraljev8: they're pretty straightforward objects, so yeah, I'd assume so
drag00n has quit [Read error: Operation timed out]
workweezle has left #ruby [#ruby]
kostine has joined #ruby
bean_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tesuji has joined #ruby
havenwood has joined #ruby
mneorr_ has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
jamesaanderson has joined #ruby
pagioss is now known as pagios
mneorr has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Max SendQ exceeded]
tjbiddle has quit [Quit: tjbiddle]
dik_dak has quit [Quit: Leaving]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
gazarsgo has quit [Quit: gazarsgo]
jamesaanderson has joined #ruby
mneorr_ has quit [Remote host closed the connection]
jamesaanderson has quit [Max SendQ exceeded]
siwica has quit [Ping timeout: 250 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
g0bl1n has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
shime has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Max SendQ exceeded]
darrik has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mneorr_ has joined #ruby
lfox has quit [Ping timeout: 265 seconds]
stkowski has joined #ruby
jamesaanderson has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maletor has joined #ruby
mgberlin has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit []
kraljev8 has left #ruby [#ruby]
kiwi_8855 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
jamesaanderson has quit [Client Quit]
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
breakingthings has quit []
johnnyfuchs has quit [Quit: Leaving.]
nanoyak_ has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mneorr has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
<platzhirsch> What exactly is meant with 20 byte object overhead?
frem has joined #ruby
mneorr has joined #ruby
<platzhirsch> I mean.. are there non-object primitives in Ruby? ^^
fedesilv_ has quit [Remote host closed the connection]
agent_white has joined #ruby
tannerburson has quit [Quit: tannerburson]
<Mon_Ouie> platzhirsch: Fixnums/nil/true/false where the data are stored in the reference itself (in most implementations anyway)
danman has quit [Quit: danman]
xk_id_ has quit [Quit:
danman has joined #ruby
danman has quit [Client Quit]
Astral_ has quit [Ping timeout: 260 seconds]
<frem> I'm having trouble reading a (huge) CSV that has some foreign characters in it. https://gist.github.com/jamesgecko/4c72555e484269c1929c
pel_daniel has quit [Read error: Connection timed out]
bean__ has joined #ruby
mneorr has quit [Remote host closed the connection]
<frem> I tried forcing the encoding as utf-8, but that didn't do anything
DeProdigy has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
stormbytes has quit [Ping timeout: 246 seconds]
fijimunk1i has quit [Ping timeout: 265 seconds]
<frem> I'm having trouble figuring out what the file's encoding is.
abderrahmane has joined #ruby
Gu_______ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
CpuID has joined #ruby
mneorr has quit [Remote host closed the connection]
klaut has joined #ruby
benzrf has joined #ruby
<benzrf> hi, what's the correct way to create a singleton?
<benzrf> Object.new + class << it?
xk_id has joined #ruby
cgore has quit [Remote host closed the connection]
mneorr has joined #ruby
<benzrf> oh neat
Rollabunna has joined #ruby
Hanmac has joined #ruby
funburn has quit [Quit: funburn]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
L8D has joined #ruby
xk_id has quit [Client Quit]
pdtpatr1ck has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
Gu_______ has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
cmedeiros has quit [Ping timeout: 272 seconds]
kiwi_8855 has quit [Read error: Connection reset by peer]
funburn has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807_ has joined #ruby
anderson has joined #ruby
xcthulhu has joined #ruby
goleldar has quit [Remote host closed the connection]
peregrine81 has quit []
x1337807x has quit [Ping timeout: 260 seconds]
goleldar has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
mosscollum has quit [Quit: mosscollum]
rubyracer has quit [Quit: Konversation terminated!]
s8p3 has joined #ruby
<benzrf> is stringio not a default
goleldar has quit [Remote host closed the connection]
xcthulhu has quit [Client Quit]
<MrZYX> ? it's in stdlib
jonathanwallace has joined #ruby
<benzrf> hmm
goleldar has joined #ruby
<benzrf> it wasnt imported by default
* benzrf shrugs
<benzrf> *required
<MrZYX> yes, that's what core vs stdlib is
<benzrf> oh derf- p
<benzrf> *derp
<benzrf> i misunderstood you
<benzrf> ok awesome
<benzrf> i just finished a small and probably horribly-performing lib for parsing based on Parsec
<benzrf> =D
xcthulhu has joined #ruby
xcthulhu has quit [Client Quit]
ua has quit [Read error: Connection reset by peer]
abderrahmane has quit [Quit: abderrahmane]
<benzrf> hmm, I have several static values that depend on each other
<benzrf> is the only way to do that to have methods that calculate them?
<shevy> oh no
<shevy> benzrf is here
<shevy> :>
jonr22 has joined #ruby
<benzrf> shevy: luk wut i made
<shevy> in haskell?
Ox6abe has joined #ruby
goleldar has quit [Ping timeout: 264 seconds]
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
<benzrf> i called it rsec cuz it's a parsing lib based loosely off of parsec
<shevy> indeed
<shevy> that can only be haskell
<benzrf> excuse me but thats clearly ruby
danshultz has joined #ruby
<shevy> it looks alien to me
maroloccio has quit [Quit: WeeChat 0.4.1]
<benzrf> ;)
<benzrf> it is a DSL
<shevy> def term
<shevy> list | sym | num
<shevy> I've never seen that before
maroloccio has joined #ruby
<benzrf> term returns a parser that will parse either list or sym or num
<shevy> ~string(')')
<benzrf> duh
gregoriokusowski has quit [Quit: gregoriokusowski]
<benzrf> string makes a parser that parses the string you give it
lewix has quit [Remote host closed the connection]
<benzrf> the ~ in a block passed to #parser will apply a parser
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mmcdaris has left #ruby [#ruby]
<benzrf> maybe takes a parser and gives you a parser that either parses that or returns nil on fail
<benzrf> *by default failing to parse causes an exc
mosscollum has joined #ruby
mosscollum has quit [Client Quit]
s2013 has joined #ruby
<benzrf> sep_by takes a parser and another parser and parses a list of the first one separated by the second one
jkhwan has joined #ruby
jonr22 has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
<benzrf> if I run that I can feed it the string '(34 foo '(1 2) bar (baz 3))
<benzrf> ignore leading quote
<benzrf> and it gives
<benzrf> (34 foo '(1 2) bar (baz 3))
<benzrf> [34, "foo", ["quote", [1, 2]], "bar", ["baz", 3]]
<benzrf> oops
osvico has joined #ruby
<benzrf> parsec is much neater because this kind of thing is inherently monadic
RoryHughes has quit []
Ox6abe has quit [Ping timeout: 240 seconds]
<benzrf> *when done this way
<benzrf> or something like that
sailias has quit [Quit: Leaving.]
<benzrf> shevy: they're all in methods instead of being assigned to vars because of circular deps
<benzrf> shevy: term refers to list & vice versa, so you cant use vars :[
<benzrf> that's the kind of thing that works better in HS
danshultz has quit [Ping timeout: 240 seconds]
Liquid-- has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> shevy: wanna try it :-D
<benzrf> it probably will cause a stack overflow if you try to parse anything real
DeProdigy has joined #ruby
<shevy> my brain was not able to deal with it
<shevy> it's totally alien
<shevy> like a different language
mansi has quit [Remote host closed the connection]
invsblduck has joined #ruby
<shevy> all I understood was that ... you parse something
jkhwan has quit [Ping timeout: 272 seconds]
<benzrf> it's a DSL for parsing, based off of Parsec [which is a haskell lib]
<platzhirsch> I see a wall of benzrf
cflat has joined #ruby
<shevy> I just realize that your input looks a lot like lisp
<benzrf> hah
<benzrf> shevy: it's supposed to be
<invsblduck> wow, Gem, you fail me right now...
<benzrf> this is for parsing simple sexprs
<invsblduck> How does one determine which gem a file belongs to?
<invsblduck> There is no such command?
<shevy> invsblduck dont think you can
<benzrf> shevy: the idea is that create parsers, then you make new parsers by combining the old ones
<invsblduck> The equivalent of dpkg -S or rpm -qf or pacman -Qo ...
<invsblduck> shevy: i don't think so either.
<MrZYX> invsblduck: a "file"?
<platzhirsch> invsblduck: How can you own a gem? The gem belongs to the world
<benzrf> shevy: a parser takes a string or an IO-style thing and then returns a value
claymore has quit [Quit: Leaving]
<shevy> MrZYX like "gem, give me all files that are part of a given .gem project"
<platzhirsch> Slightly modified quote of Knuth about owning numbers :D
<MrZYX> invsblduck: if you have the path to the file you have the gem
<MrZYX> shevy: I understood it the other way around
<invsblduck> MrZYX: /home/duck/.gem/ruby/1.9.3/bin/berks-api
<shevy> yeah but if he has an array, he can run .include? on that
<MrZYX> a bin files, gotcha
<shevy> a duck!
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* platzhirsch shoots the duck
<platzhirsch> quack no more
<shevy> invsblduck any module when you do vim /home/duck/.gem/ruby/1.9.3/bin/berks-api
<platzhirsch> Vegan Ruby code does no duck typing
Mon_Ouie has quit [Ping timeout: 245 seconds]
<shevy> require 'berkshelf/api/srv_ctl'
<shevy> there you go!
<benzrf> holy shit this lib really is super slow
<benzrf> :D
<shevy> good
Myk267 has joined #ruby
<shevy> the less people use it...
<shevy> :D
<benzrf> well i didnt design it for performance
<shevy> GOOD
<benzrf> shevy: it's quite simple
<shevy> but slow
<invsblduck> platzhirsch: sorry if my question was poor, i thought yours was worse ;p
<shevy> lol
DeProdigy has quit [Ping timeout: 245 seconds]
<benzrf> shevy: a parser is an object with a #parse method that takes a string or something with read/tell/seek
mary5030 has quit [Remote host closed the connection]
RoryHughes has joined #ruby
<platzhirsch> invsblduck: oh there actually a duck in your name
<benzrf> shevy: then the method returns some kind of meaningful representation
<platzhirsch> I haven't noticed, was just babbling around
<benzrf> shevy: you combine simple parsers to make complicated parsers
<shevy> cool
<invsblduck> platzhirsch: oh i thought you hated me lol
<shevy> I did not notice either
<platzhirsch> no ^^
mary5030 has joined #ruby
<shevy> I only looked at /home/duck
<invsblduck> haha
kaldrenon has joined #ruby
<shevy> benzrf yeah you have some super simple parser that can be combined for the weirdest parser ever
colonolGron has quit [Quit: leaving]
<benzrf> shevy: so if 'list' parses a lisp list string into a ruby list, 'sym' turns a lisp symbol into a string, and 'num' turns a number string into a Fixnum, then 'list | sym | num' returns a parser that will try to parse each of those in order and return the first that succeeds
<benzrf> shevy: so it can parse any of those things
Mage_Dude has joined #ruby
<benzrf> shevy: there are a few operators, like |, that you can use on parsers to combine them
maroloccio has quit [Quit: WeeChat 0.4.1]
<benzrf> shevy: you can also use the 'parser' method to turn a block into a parser
terrellt has quit [Quit: Do fish get thirsty?]
<platzhirsch> invsblduck: so I had a poor question? :'(
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> shevy: within a block passed to #parser, prepending a parser value with ~ will run it on the current input
<invsblduck> shevy: MrZYX: so if you have a script in ~/.gem/ruby/1.9.3/bin, it may not be easy to determine which gem generated it. Without inspecting each installed gem.
Matriks has joined #ruby
<benzrf> shevy: so something like 'parser {~string("wat"); ~string("oh")}' creates a parser that will parse the string "watoh" and return "oh"
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> shevy: and that's the whole thing
<MrZYX> invsblduck: once you got a require related to it there's gem which
<benzrf> rsec.rb is actually only 217 lines
mary5030 has quit [Ping timeout: 240 seconds]
<benzrf> i wrote it over the last 2-3 hours
blaskovicz has joined #ruby
<invsblduck> MrZYX: ah right-
<invsblduck> MrZYX: that gem's not actually installed, hence my confusion :)
<invsblduck> MrZYX: that answers my question though
<Mage_Dude> Is there a way to set ENV['force'] = yes when launching a 'bundle exec rake' type command from a command prompt? (Not familiar with Ruby at all)
<MrZYX> Mage_Dude: great thing is: you don't need to, just standard unix environment stuff: force=yes bundle exec rake
<invsblduck> 15:11:40 platzhirsch | invsblduck: How can you own a gem? The gem belongs to the world <-- Then i thought you shot me and said quack no more, so I accused you of a poor question :P Sry.
<platzhirsch> xDD
jchristi has quit [Ping timeout: 260 seconds]
s2013 has quit [Ping timeout: 248 seconds]
colluphid has joined #ruby
charliesome has joined #ruby
<invsblduck> platzhirsch: i was asking which *gem* owns a file on disk, so, "how can you own a gem? it belongs to the world" seemed like not such a good response at the point in which you killed me. ;-)
DeProdigy has joined #ruby
<colluphid> what is the hash sign called when you use it like this: puts "#{NETINFO[:gate]}"
<platzhirsch> Indeed, I find the question interesting :P
<MrZYX> colluphid: not sure it has a name, the concept is called string interpolation
<benzrf> dang ruby's exc is slooooow
<platzhirsch> invsblduck: well, don't mind me. I am just the #ruby clown
terrellt has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
davy_ has joined #ruby
<invsblduck> colluphid: i don't think dave thomas gives it a fancy name in the pickaxe book
<invsblduck> thx guys bbl
_Andres has joined #ruby
kevind has quit [Quit: kevind]
Rennex_ is now known as Rennex
DeProdigy has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
Myk267 has quit [Quit: Myk267]
<colluphid> MrZYX: thx, found what I was looking for with string interpolation
FL1SK has quit [Remote host closed the connection]
FL1SK has joined #ruby
N00D is now known as zz_N00D
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 246 seconds]
terrellt has quit [Ping timeout: 265 seconds]
nwertman_ has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 272 seconds]
<Mage_Dude> MrZYX: Cool, I like easy. :)
nadirvardar has joined #ruby
`MArceLL` has quit []
Parker0 has quit [Ping timeout: 272 seconds]
shawnjgoff has quit [Ping timeout: 246 seconds]
kpshek has quit []
bnagy_ is now known as bnagy
KaaK has joined #ruby
s2013 has joined #ruby
jlast has quit [Remote host closed the connection]
bean has quit [Changing host]
bean has joined #ruby
davy_ has quit [Remote host closed the connection]
reach has joined #ruby
jkhwan has joined #ruby
nwertman has joined #ruby
aspires_ has joined #ruby
Xeago has quit [Remote host closed the connection]
tylersmi_ has quit [Ping timeout: 240 seconds]
FL1SK has quit [Remote host closed the connection]
FL1SK has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
mgberlin has quit [Quit: mgberlin]
benlieb has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
flubba has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
Gues_____ has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
freggles has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
funburn has quit [Quit: funburn]
kaldrenon has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
pel_daniel has joined #ruby
jle` has quit [Ping timeout: 246 seconds]
shedd has joined #ruby
shedd has quit [Remote host closed the connection]
shedd has joined #ruby
<platzhirsch> Yard is really Javaish
jamesaanderson has quit [Max SendQ exceeded]
<benzrf> platzhirsch: whats yard?
<platzhirsch> benzrf: http://yardoc.org/
mneorr has quit []
preller has quit [Ping timeout: 265 seconds]
lethjakman has joined #ruby
<lethjakman> what does $ mean in ruby?
<lethjakman> like $var = 'blah'
nowthatsamatt has joined #ruby
<MrZYX> lethjakman: global variable. Also forget they exist now
<benzrf> lethjakman: global var
<benzrf> DON'T USE THEM
preller has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<platzhirsch> imo the only doc tool that should be used :P
edwards151 has quit []
jkhwan has joined #ruby
jamesaanderson has joined #ruby
reach has quit []
pel_daniel has left #ruby [#ruby]
shawnjgoff has joined #ruby
tbrock has joined #ruby
ce_afk is now known as cescalante
kevind has joined #ruby
_Andres has joined #ruby
Gues_____ is now known as Parker0
sambao21 has quit [Quit: Computer has gone to sleep.]
kevind has quit [Client Quit]
<lethjakman> why's that?
<benzrf> lethjakman: global vars are eeeevil
<lethjakman> I've never used them, saw them on SO though
<benzrf> they make it hard to encapsulate code
<lethjakman> well when used wrong I would agree with that.
<lethjakman> but for config?
<MrZYX> config is CONSTANT
<benzrf> use a dict or something and pass it around
jamesaanderson has quit [Client Quit]
<benzrf> or keep it in a visible place
<benzrf> do *not* use a global var!
<benzrf> btw ruby's namespace & require system is really getting on my nerves
<benzrf> likemike:
<benzrf> *like
<lethjakman> MrZYX: what do you mean it's constant? like it's frozen?
<benzrf> super majorly
<platzhirsch> So, global variables are for the vitrine, or a zoo
stkowski has quit [Ping timeout: 260 seconds]
<MrZYX> lethjakman: I mean it rarely changes during program execution, thus use constants for it. If it does change use an object assigned to a constant
<shevy> benzrf it's a simplistic system with all the pros and cons about when using a simplistic system
<benzrf> shevy: python's is just as simple and it's awesome
<benzrf> in fact python's is _simpler)
<benzrf> *simpler
w4pm has joined #ruby
_Andres has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
<platzhirsch> Yeah, but Python is also stone age
<benzrf> u wot
jamesaanderson has quit [Max SendQ exceeded]
RoryHughes has quit []
ghatak has joined #ruby
RoryHughes has joined #ruby
shawnjgoff has quit [Quit: Leaving]
<platzhirsch> That meme looks British
volty has joined #ruby
<benzrf> in what way is py stone age
<lethjakman> but...whitespace.
<benzrf> hahaha
<benzrf> whitespace is the shit
<benzrf> seriously its so great
<platzhirsch> The syntax gives me the creep and I always get mad when programming Python
<benzrf> why mad?
jamesaanderson has joined #ruby
FL1SK has quit [Remote host closed the connection]
<benlieb> what does the -> do here: scope :published, -> { where(published: true) }
preller has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Max SendQ exceeded]
FL1SK has joined #ruby
<benlieb> is that a proc?
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> lambda
<MrZYX> benlieb: yes, one of the lambda subtype
<benzrf> similar to a proc but with different rules for args and returns
rossssssssss has quit [Remote host closed the connection]