apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
thecodethinker has quit [Quit: WeeChat 0.4.1]
CaptainJet has quit [Ping timeout: 252 seconds]
geggam has quit [Quit: commuting]
ss_ has joined #ruby
nifty has quit [Ping timeout: 260 seconds]
_gautam has quit [Remote host closed the connection]
CaptainJet has joined #ruby
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jlast has quit [Remote host closed the connection]
kitak has joined #ruby
gregoriokusows-1 has joined #ruby
Lewix has joined #ruby
gregoriokusowski has quit [Ping timeout: 260 seconds]
Megtastique has joined #ruby
rudisimo has quit []
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
juarlex has quit [Remote host closed the connection]
terrellt has quit [Quit: Do fish get thirsty?]
yjmsf20_ has joined #ruby
closer has joined #ruby
jtdowney has joined #ruby
yjmsf20 has quit [Read error: Operation timed out]
Jdubs__ has quit [Remote host closed the connection]
Jdubs has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
binaryhat has joined #ruby
saarinen has quit [Quit: saarinen]
<shevy> when I do p object
<shevy> what method is called?
_Andres has joined #ruby
<soahccc> Kernel#p
<soahccc> which is "puts whatever.inspect" iirc
subbyyy_ has joined #ruby
<shevy> hmmm
<shevy> oh
<jtdowney> shevy: #inspect is called on the target
havenwood has quit [Remote host closed the connection]
aspires has quit []
<shevy> \o/
<shevy> it works, thanks
dukz has joined #ruby
jonahR has joined #ruby
jonahR has quit [Client Quit]
freezey has quit [Remote host closed the connection]
mlpinit has joined #ruby
zxd has joined #ruby
Wolland has joined #ruby
ayumin has joined #ruby
_1_thedude has joined #ruby
chrisseaton has quit []
IceDragon has quit [Ping timeout: 245 seconds]
Megtastique has quit []
IceDragon has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
xpirator has joined #ruby
Jdubs has quit [Remote host closed the connection]
Aryasam has joined #ruby
_1_thedude has quit [Quit: WhatsChat IRC Android APP]
thenovices has joined #ruby
<ddd> ok this is going to sound severely convoluted because I don't think I know how to explain this right. Its an active record question. but here it is
<ddd> lets try it this way. i want the query that populates @user.rescue_groups collection to also populate each member in that collection's associated shelters so ther eis only 1 db query to make @user.rescue_groups *and* @user.rescue_groups.each do |rg| rg.shelters populated. so both are done with a single query.
ayumin has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
Es0teric has joined #ruby
<ddd> the user will probably own just 1 rescue but some can run 3 or 4. each rescue group has a shelters collection on it. I want every RG the user owns to have their respective shelters collection loaded at the same time I populate @user.rescue_groups and do it, if possible, with the single db query that populated @user.rescue_groups
<ddd> only way i know how to explain that
<ddd> oh i was thinking i had to do a where, or a .joins
<ddd> hrmm. ok lemme digest this. thanks centrx
yarou has quit [Quit: This computer has gone to sleep]
szerated_ has joined #ruby
yasushi has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
deens has quit [Remote host closed the connection]
dukz has quit [Ping timeout: 260 seconds]
brandonjmckay_ has joined #ruby
diegovio1 has quit [Quit: WeeChat 0.4.2]
brandonjmckay_ has quit [Client Quit]
wald0 has joined #ruby
diegoviola has joined #ruby
deens has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
vky has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
brandonjmckay has quit [Ping timeout: 272 seconds]
cads has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
styped has joined #ruby
Cephalostrum has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
jaimef has quit [Excess Flood]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
zeade has quit [Quit: Leaving.]
b00stfr3ak has quit [Ping timeout: 248 seconds]
Cephalostrum has joined #ruby
dayepa has quit [Quit: dayepa]
mklappstuhl has joined #ruby
joshwines_ has joined #ruby
jaimef has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
Seich has joined #ruby
dayepa has joined #ruby
Seich has quit [Remote host closed the connection]
Seich has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Remote host closed the connection]
freezey has quit [Read error: Operation timed out]
predator117 has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
dayepa1 has joined #ruby
yarou has joined #ruby
lkba has joined #ruby
cashnguns has joined #ruby
dayepa has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
thenovices has quit [Remote host closed the connection]
dayepa has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pietr0 has quit [Quit: pietr0]
nanoyak has joined #ruby
kenndel has joined #ruby
agjacome has quit [Ping timeout: 252 seconds]
<godd2> shevy: Kernel#p also returns the object instead of nil like puts does
Virtualize has joined #ruby
fgo has joined #ruby
mneorr has joined #ruby
ephemerian has quit [Quit: Leaving.]
peregrin_ has quit []
dayepa1 has quit [Ping timeout: 276 seconds]
cads has joined #ruby
dayepa1 has joined #ruby
<shevy> yeah I needed #inspect
<shevy> to display ansi escape code
monkegjinni has joined #ruby
Virtualize has quit [Client Quit]
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
dayepa has quit [Ping timeout: 276 seconds]
mneorr_ has quit [Ping timeout: 276 seconds]
RagingDave has joined #ruby
agent_white has joined #ruby
rootshift has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
robustus has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 265 seconds]
starkhalo has quit [Ping timeout: 272 seconds]
heidi has quit [Quit: Leaving.]
whomp has joined #ruby
zumba_addict has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
robustus has joined #ruby
Hobogrammer_ is now known as Hobogrammer
dayepa has joined #ruby
Hobogrammer has quit [Quit: Leaving]
jlast has joined #ruby
Hobogrammer has joined #ruby
tkuchiki has joined #ruby
subbyyy_ has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
bjhaid has quit [Ping timeout: 245 seconds]
danijoo has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
keen__ has quit [Ping timeout: 272 seconds]
dayepa has quit [Remote host closed the connection]
dayepa has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
w4pm has joined #ruby
mneorr has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
mneorr has joined #ruby
lidenbrock has joined #ruby
dayepa1 has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
kiki_lamb has quit [Quit: leaving]
kiki_lamb has joined #ruby
Butcho has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
synergy__ has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
synergy_ has joined #ruby
dayepa has quit [Ping timeout: 276 seconds]
ayumin has joined #ruby
zxd has quit []
fella7s has quit [Read error: Connection reset by peer]
bricker is now known as bricker`away
dayepa1 has quit [Ping timeout: 276 seconds]
mneorr has joined #ruby
dayepa has joined #ruby
recurrence has joined #ruby
recurrence has quit [Client Quit]
alexfreidah has joined #ruby
samsonasu has joined #ruby
ayumin has quit [Ping timeout: 272 seconds]
heidi has joined #ruby
whowantstolivefo has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
<pontiki> hiyo
marr has quit [Ping timeout: 253 seconds]
thenovices has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
lidenbrock has quit []
alexfreidah has quit [Ping timeout: 276 seconds]
cads has quit [Ping timeout: 272 seconds]
amacgregor__ has quit [Ping timeout: 276 seconds]
agjacome has joined #ruby
agjacome has quit [Client Quit]
dayepa has quit [Ping timeout: 276 seconds]
dayepa has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
thenovices has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
Bira has quit [Remote host closed the connection]
dayepa1 has joined #ruby
Bira has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mikepack has joined #ruby
<shevy> hey pontiki
dayepa has quit [Ping timeout: 276 seconds]
e62 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
styped has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
nanoyak has quit [Quit: Computer has gone to sleep.]
cads has joined #ruby
ehc has quit [Read error: Operation timed out]
Red_Onyx has joined #ruby
dayepa has joined #ruby
<pontiki> hi shevy
mikepack has quit [Ping timeout: 246 seconds]
dayepa1 has quit [Ping timeout: 276 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Seich has quit [Quit: Computer has gone to sleep.]
mehlah has quit [Ping timeout: 252 seconds]
Seich has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
szerated_ has quit [Ping timeout: 265 seconds]
Bira has quit [Remote host closed the connection]
cads has quit [Read error: Connection reset by peer]
cads has joined #ruby
dayepa1 has joined #ruby
e62 has quit [Ping timeout: 252 seconds]
i_s has quit [Remote host closed the connection]
mikepack has joined #ruby
vlad_starkov has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
dayepa has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
cads has quit [Client Quit]
Virtualize has joined #ruby
nhhagen has joined #ruby
thumpba has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 248 seconds]
thumpba has joined #ruby
pel_daniel has left #ruby [#ruby]
szerated_ has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
dayepa has joined #ruby
pwh has quit []
keen__ has joined #ruby
deens has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 276 seconds]
<RubyPanther> plruby.so: undefined symbol: rb_cData # any ideas?
alexfreidah has joined #ruby
cj3kim has joined #ruby
nhhagen has quit [Ping timeout: 245 seconds]
<shevy> huh
vky has quit [Ping timeout: 246 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
soba has joined #ruby
funburn has joined #ruby
dayepa has quit [Ping timeout: 276 seconds]
xpirator has quit [Quit: Leaving...]
bbloom has quit [Ping timeout: 252 seconds]
dayepa has joined #ruby
<shevy> object.c:VALUE rb_cData;
<shevy> object.c: rb_cData = rb_define_class("Data", rb_cObject);
<shevy> it's right in object.c
<shevy> whatever that means
fijimunkii has quit [Ping timeout: 245 seconds]
chomskiii has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
chomskiii has joined #ruby
apeiros has joined #ruby
dayepa1 has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
troyready has quit [Read error: Operation timed out]
<RubyPanther> maybe it isn't finding the dynamic linked ruby?
nari has joined #ruby
szerated_ has quit [Ping timeout: 265 seconds]
dayepa has quit [Ping timeout: 276 seconds]
dayepa has joined #ruby
phutchins has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
subbyyy_ has joined #ruby
Seich has joined #ruby
xpirator has joined #ruby
kenndel has joined #ruby
glaksmono has joined #ruby
darthdeus has quit [Quit: Leaving...]
eka has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
peregrin_ has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
szerated_ has joined #ruby
<glaksmono> anyone is using capybara?
starkhalo has joined #ruby
m00nlight has joined #ruby
Virtualize has quit [Quit: Leaving...]
dayepa has quit [Ping timeout: 276 seconds]
<pontiki> probably
jlast has quit [Ping timeout: 252 seconds]
dayepa has joined #ruby
DrCode has joined #ruby
Virtualize has joined #ruby
alexfreidah has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
blischalk has joined #ruby
dayepa1 has joined #ruby
Lewix has joined #ruby
sungai_keruh has joined #ruby
mlpinit has quit [Remote host closed the connection]
dayepa has quit [Remote host closed the connection]
alexfreidah has joined #ruby
popl has joined #ruby
popl has joined #ruby
ayumin has joined #ruby
darthdeus has joined #ruby
dayepa has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
tt1187 has quit [Ping timeout: 246 seconds]
gja has joined #ruby
deens has joined #ruby
cj3kim has quit [Remote host closed the connection]
dayepa1 has quit [Ping timeout: 276 seconds]
dik_dak has joined #ruby
ayumin has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
RagingDave has quit [Quit: Ex-Chat]
michael_mbp has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
gja has quit [Client Quit]
thenovices has joined #ruby
dayepa has quit [Ping timeout: 276 seconds]
bbloom has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
senayar has quit [Remote host closed the connection]
dj21 has quit [Quit: leaving]
dayepa has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
meatherly has joined #ruby
thenovices has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
chinkung has quit [Quit: Bye!]
dayepa1 has joined #ruby
bbloom has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
cbetta is now known as cbetta_afk
kenndel has joined #ruby
gregoriokusows-1 has quit [Quit: gregoriokusows-1]
rickruby has quit [Remote host closed the connection]
alekst has quit [Quit: Leaving...]
mocfive has quit [Remote host closed the connection]
clevermatt has quit [Remote host closed the connection]
hiall has quit [Quit: hiall]
danshultz has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 276 seconds]
clevermatt has joined #ruby
dayepa has joined #ruby
danshultz has joined #ruby
shevy has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 276 seconds]
lioninawhat has joined #ruby
digital-ghost has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
Aryasam has joined #ruby
<glaksmono> pontiki, are you using capybara?
<glaksmono> i've been struggling on this issue.. of not being able to execute javascript..
dayepa2 has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
Caleb has joined #ruby
smiller has joined #ruby
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
bradhe has joined #ruby
deens has quit [Remote host closed the connection]
Caleb is now known as Guest40087
Butcho has joined #ruby
Butcho has quit [Max SendQ exceeded]
kenndel has quit [Read error: Connection reset by peer]
Butcho has joined #ruby
dayepa1 has joined #ruby
firewater5 has joined #ruby
dayepa has quit [Ping timeout: 276 seconds]
Targen has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
<firewater5> Hey, so currently working on a puzzle. Basically, the puzzle is related to making classes and make it pass. I am familiar with making classes. However, this one starts out with just saying @thing=Thing.new. Then does @thing.name="name" and then tests it and says @thing.name.should=="Name". I'm confused on how you do this.
jcarouth has quit [Excess Flood]
<firewater5> Basically, I made a class called Thing.
Cephalostrum has joined #ruby
jcarouth has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
<firewater5> Then thought of doing an def intialize method.
<bnagy> glaksmono: are you using poltergeist?
<firewater5> But, nothing is really initalized in the above.
Cephalostrum has joined #ruby
dayepa2 has quit [Ping timeout: 276 seconds]
<firewater5> How do you make the thing have a name when no name is made?
<firewater5> through an accessor :name?
binaryhat has quit [Quit: Leaving]
<bnagy> that would do it
subbyyy_ has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
kenndel has joined #ruby
<firewater5> So, I did this then.
smiller has quit [Ping timeout: 272 seconds]
<firewater5> I put accessor :name at the top of the class.
<bnagy> attr_accessor
<firewater5> Then how do I make the thing where it is making it equal to "name" get into the calss?
<firewater5> Sorry, attr_accessor, that is what I put.
<firewater5> attr_accessor :name.
randomnick_ has quit [Quit: Leaving]
<firewater5> Do I thend do this:
<bnagy> >> ''
<firewater5> def initialize
Guest40087 has quit [Quit: Guest40087]
<bnagy> crap still no eval-in
<firewater5> @name=name
<firewater5> end
mansi has quit [Remote host closed the connection]
sethen has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
<firewater5> yeah, no?
<bnagy> no you don't need to
e62 has joined #ruby
mansi has joined #ruby
<firewater5> Then how do you mess with the attr_accessor?
<firewater5> Sorry, I am new at this.
<bnagy> if you class is Thing then t=Thing.new; t.name="Whatever"
<firewater5> Yes, that is what its doing.
dayepa has joined #ruby
<bnagy> well that's it. What remains unclear?
Spami has quit [Quit: This computer has gone to sleep]
<firewater5> How would you then manipulate t.name?
<firewater5> In the class itself?
Seich has joined #ruby
<firewater5> So, lets say t.name="Whatever"
<firewater5> You want then t.name.should=="whatever"
<firewater5> How could you make it go .downcase?
<bnagy> well that part is just your test
guinslym has joined #ruby
<bnagy> t.name will ( in the example ) return "Whatever"
mikepack has joined #ruby
<bnagy> if you want to downcase it you do it like you would downcase any other string
mansi has quit [Ping timeout: 245 seconds]
e62 has quit [Ping timeout: 260 seconds]
<firewater5> I try to do it.
<firewater5> So, fine, I have attr_accessor :title
<firewater5> That gets set to whatever is passed to it.
<firewater5> Is there a way to then play with it somehow and manipulate :title in the class?
<firewater5> Do you set it in def initalize?
<bnagy> no
<firewater5> and then set it to a @variable?
<bnagy> you access it directly
<bnagy> you just asked both of those questions 2 minutes ago
Hanmac1 has joined #ruby
rickruby has joined #ruby
ewnd9 has joined #ruby
<firewater5> Well, I'm playing with it and its not working. But I guess I will keep playing with it.
mikepack has quit [Ping timeout: 245 seconds]
<guinslym> Hi! (1..9).to_a gives me an array. and [*1..9] gives me also an array but I don't understand the * character cause it's not a function where can I find the doc for * (does it have a special name cause I don't find the info in the doc)
<bnagy> a_thing.name = "Fred"; a_thing.name = "Barry" # name is now Barry; a_thing.name.downcase! # name is now barry
<bnagy> guinslym: magic word to google is 'splat'
mneorr has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 276 seconds]
<firewater5> Your doing that outside the class though.
<firewater5> How would you accomplish that within the class itself?
mneorr has joined #ruby
<bnagy> firewater5: why would you want to do that?
<guinslym> bnagy, thks!
<firewater5> That is what the puzzle wants me to do.
<bnagy> the name is an instance variable - each instance of the class has its own name
dayepa has joined #ruby
<glaksmono> bnagy, no i'm not using poltergeist
<firewater5> it wants me to manipulate what is passed to it.
Hanmac has quit [Ping timeout: 272 seconds]
<bnagy> glaksmono: ok, well try that :)
gja has quit [Quit: This computer has gone to sleep]
<glaksmono> bnagy, i tried... and i'm getting these errors...
<bnagy> js driver for capyara. It's quite good.
<glaksmono> bnagy, well.. something with $ isn't found..
bradhe has quit [Ping timeout: 265 seconds]
<bnagy> firewater5: if it wants blah.name = "fred" to result in blah.name => "Fred" then you want an attr_reader and an actual setter method def name= new_name
dayepa1 has joined #ruby
Gooder` has quit [Remote host closed the connection]
<glaksmono> bnagy, i tried.. and it had problem with something that $ isn't found..
phutchins has quit [Ping timeout: 276 seconds]
mneorr has quit [Ping timeout: 253 seconds]
<firewater5> bnagy: Sigh, I'm lost now :/.
<firewater5> I know attr_reader just reads it.
<firewater5> But, basically, the test isn't calling a method like that.
<firewater5> Its just being passed a name
<firewater5> And it then turns it into a capital.
<firewater5> name
alexfreidah has quit [Ping timeout: 276 seconds]
<bnagy> firewater5: whatever you are doing to learn ruby is not sinking in. Try something else, or the same thing again
<bnagy> you appear to have no grasp at all of instance variables and methods
<bnagy> so find something on that
<firewater5> I am going to keep trying at this, I already made a ruby gem.
<firewater5> I am now learning through puzzles, yes I have a lot to learn. But I'm not stopping now.
<firewater5> bnagy: I understand what they are. But I am trying to fit them into a puzzle.
<firewater5> I'm used to making my own.
<firewater5> In my own programs.
<firewater5> Not solving a puzzle like this which requires me to code differently.
dayepa has quit [Ping timeout: 276 seconds]
carif has joined #ruby
rickruby has quit [Remote host closed the connection]
<firewater5> For example, I am trying to do :name.upcase! and it says .upcase! not recognized for symbols.
<firewater5> Which :name is a symbol.
wald0 has quit [Ping timeout: 252 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
kenndel has quit [Read error: Connection reset by peer]
<bnagy> show code
Aryasam has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
iamjarvo_ has joined #ruby
Aryasam has joined #ruby
dayepa1 has quit [Ping timeout: 276 seconds]
<firewater5> bnagy: For example, I'm used to initalizing name like this. @name=Name.new("Name")
<firewater5> I am not used to setting it as @name=Name.new
<firewater5> THen adding a name later.
dayepa has joined #ruby
seoaqua has joined #ruby
charliesome has joined #ruby
Evixion has joined #ruby
carif has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
<firewater5> solved it.
<firewater5> I did it my way too.
<bnagy> class Person; attr_reader :name; def name= new_name; # YOUR CODE HERE; end; end
<firewater5> You just do attr_accessor
kenndel has joined #ruby
<firewater5> then do the initialize thing you said not to do.
<firewater5> And then manipulate it by making a def title method.
michael_mbp has quit [Excess Flood]
carif has joined #ruby
Seich has quit [Quit: Lingo - http://www.lingoirc.com]
michael_mbp has joined #ruby
<bnagy> uh.. ok cool whatever
<firewater5> bnagy: Sorry that came off arguementative.
<firewater5> bnagy: I'm meaning that I solved it was all.
jlast has quit [Ping timeout: 272 seconds]
<firewater5> bnagy: Thanks for trying to help though.
adthul_ has quit [Quit: Leaving]
<agent_white> firewater5: That is good, but generally best to listen to those who are more knowledgable.
<firewater5> bnagy: That was just meants to say I solved it was all, lol :).
<agent_white> That way, in the future, you do things correctly instead of making a nice spaghetti dinner.
<firewater5> agent_white: I was, I took what they said and played with the code. Again, I don't claim to be that knowledgabl.e
<firewater5> agent_white: It's not really spaghetti the way I have it.
<Ponyo> Is there a way to use a string as a function name to dynamically call a function?
<firewater5> But I could be wrong.
<bnagy> Ponyo: use send
seoaqua has quit [Ping timeout: 245 seconds]
kenndel has quit [Read error: Connection reset by peer]
Barrin6 has joined #ruby
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seoaqua has joined #ruby
CaptainJet has quit []
Butcho has joined #ruby
mercwithamouth has joined #ruby
CaptainJet has joined #ruby
ss_ has quit [Remote host closed the connection]
<firewater5> agent_white: What is wrong with first doing initalize?
<Ponyo> is there a way to test if the function exists first before calling send?
ss_ has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<bnagy> Ponyo: yep, use respond_to?
dayepa has quit [Ping timeout: 276 seconds]
<Ponyo> ty
Butcho has quit [Client Quit]
axl_ has joined #ruby
ehc has joined #ruby
<firewater5> agent_white: I also tried the way bnagy said and its not working.
<firewater5> bnagy: I did try you way, it wont work.
<bnagy> uh huh
Fire-Dragon-DoL has quit [Quit: Leaving.]
<firewater5> bnagy: I'm not saying you are wrong, but I'm confused why its not working.
<bnagy> gist your code and we can tell you
szerated_ has quit [Quit: Ex-Chat]
<bnagy> waffling about snippets and then saying "it doesn't work" is not useful
seoaqua has quit [Ping timeout: 245 seconds]
w4pm has quit [Read error: Operation timed out]
szerated_ has joined #ruby
browndawg has joined #ruby
Butcho has joined #ruby
ss_ has quit [Ping timeout: 248 seconds]
<firewater5> This is my current code that WORKS.
<firewater5> I tried what you did, mutliple ways, and it does not work.
Butcho has quit [Client Quit]
Butcho has joined #ruby
dayepa has joined #ruby
<bnagy> 11:00 < bnagy> class Person; attr_reader :name; def name= new_name; # YOUR CODE HERE; end; end
<bnagy> ^^ that will work, you just need to add one line of code
heidi has quit [Quit: Leaving.]
<bnagy> p=Person.new; p.name="fred"; p.name => "Fred"
<firewater5> bnagy: Can I ask why my code would be bad though?
<firewater5> Over what you are doing?
<bnagy> you're using an accessor along with a getter
thomasxie has joined #ruby
dukz has quit [Remote host closed the connection]
<bnagy> your attr_accessor may as well just be attr_writer
<firewater5> Ok, and what is the def name=new_name part?
<bnagy> and there's no reason to assign the name in initialize. Some classes that makes sense, some others it is cumbersome to set every single thing in initialize
<firewater5> new_name isn't anything is it? It doesn't seem like a way to pass a parameter.
Butcho has quit [Client Quit]
<bnagy> it's a method arg
jlast has joined #ruby
teenwolf has joined #ruby
amacgregor_ has joined #ruby
thomasxie has left #ruby [#ruby]
Hobogrammer has joined #ruby
thenovices has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
Butcho has joined #ruby
<firewater5> #YOUR CODE HERE. Should that be new_name.capitalize?
<bnagy> it should definitely be something
<firewater5> bnagy: Because that doesn't work.
<firewater5> That is why I am asking.
<bnagy> there are an infinite number of things that won't work
<firewater5> So, what does work in this case?
radic has quit [Ping timeout: 252 seconds]
<firewater5> Your saying to do it this way, but I really am not seeing it.
<bnagy> that's kind of the bit you're supposed to work out
sepp2k has quit [Read error: Connection reset by peer]
<firewater5> I did, my code worked. I tried your way and its giving me a bunch of errors.
szerated_ has quit [Ping timeout: 246 seconds]
narcan has joined #ruby
dayepa has quit [Ping timeout: 276 seconds]
Butcho has quit [Client Quit]
<firewater5> Nevermind, thanks anyways for the help bnagy.
radic has joined #ruby
<bnagy> this is why understanding what you're doing is good
<firewater5> bnagy: Hints why I am learning.
jlast has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
<firewater5> bnagy: I'm sure there are things you don't know either.
thenovices has quit [Ping timeout: 252 seconds]
firewater5 has quit [Quit: Page closed]
dayepa has joined #ruby
szerated_ has joined #ruby
szerated_ has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
brianpWins has quit [Remote host closed the connection]
dseitz has joined #ruby
ss_ has joined #ruby
mary5030 has joined #ruby
amacgregor__ has joined #ruby
kizzx21 has quit [Quit: Leaving.]
danijoo_ has quit [Read error: Connection reset by peer]
seoaqua has joined #ruby
danijoo has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
glaksmono has quit [Quit: This computer has gone to sleep]
baroquebobcat has joined #ruby
Aryasam has quit [Ping timeout: 276 seconds]
Aryasam has joined #ruby
DaZ has quit [Read error: Operation timed out]
seoaqua has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
seoaqua has joined #ruby
danshultz has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
seoaqua_ has joined #ruby
nhhagen has joined #ruby
nwertman_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
duggiefresh has quit [Remote host closed the connection]
browndawg has joined #ruby
freerobby has quit [Quit: Leaving.]
carif has quit [Quit: Ex-Chat]
duggiefresh has joined #ruby
blischalk has quit [Quit: Leaving]
seoaqua has quit [Ping timeout: 252 seconds]
gja has joined #ruby
mikepack has joined #ruby
nhhagen has quit [Ping timeout: 248 seconds]
Targen has joined #ruby
thenovices has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
masterkorp has joined #ruby
<masterkorp> heu
<masterkorp> how do i get gem to use a specific version of a gem
yacks has joined #ruby
<masterkorp> i updated my gems but i need capistrano 2
Hanmac has joined #ruby
mikepack has quit [Ping timeout: 276 seconds]
knigitz has joined #ruby
subbyyy_ has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
ttlnow has quit [Quit: Lost terminal]
avalarion has joined #ruby
<seoaqua_> gem install xxx -v 0.0.0
mercwithamouth has quit [Ping timeout: 276 seconds]
prc has left #ruby [#ruby]
<seoaqua_> can anyone see me? i was disconnected several times
clamstar has joined #ruby
peregrin_ has quit []
ehc has quit [Quit: ehc]
jcarouth has quit [Excess Flood]
jcarouth has joined #ruby
ss_ has quit [Remote host closed the connection]
ss_ has joined #ruby
thesheff17 has joined #ruby
shadoi has quit [Quit: Leaving.]
<masterkorp> seoaqua_: i can
braincrash has quit [Quit: bye bye]
<masterkorp> seoaqua_: hmm, how do i list the versions?
<masterkorp> i basically want the lastest 2.x
<seoaqua_> masterkorp, gem list? this is from local
joshwines_ has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<seoaqua_> masterkorp, maybe `gem search`. i usually query from rubygems.org
<masterkorp> i want to list the remotes
b00stfr3ak has joined #ruby
braincrash has joined #ruby
ss_ has quit [Ping timeout: 245 seconds]
<seoaqua_> and u can check out https://www.ruby-toolbox.com
kate_r has joined #ruby
freezey has joined #ruby
justsee_ has quit [Quit: leaving]
justsee has joined #ruby
yasushi has joined #ruby
CaptainJet has quit []
s2013 has joined #ruby
sec^nd has quit [Ping timeout: 240 seconds]
s2013 has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
MatthewsFace has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
kenndel has joined #ruby
stryek has joined #ruby
Virtualize has quit [Quit: Leaving...]
sec^nd has joined #ruby
dku has joined #ruby
freerobby has joined #ruby
Kneferilis has quit [Ping timeout: 252 seconds]
Foomusic has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
frx has joined #ruby
frx has left #ruby [#ruby]
SCommette has joined #ruby
jlast has joined #ruby
masterkorp has left #ruby ["WeeChat 0.3.8"]
thenovices has quit [Remote host closed the connection]
ewnd9_ has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
iliketurtles has joined #ruby
redbaritone has joined #ruby
redbaritone has quit [Quit: redbaritone]
jlast has quit [Ping timeout: 276 seconds]
clevermatt has quit [Remote host closed the connection]
subbyyy_ has quit [Read error: Connection reset by peer]
speakingcode has joined #ruby
freerobby has joined #ruby
sergicles has quit [Quit: sergicles]
<speakingcode> having a paradigm meltdown
Foomusic has joined #ruby
ehc has joined #ruby
ehc has quit [Client Quit]
<speakingcode> i can implement a solution using just hashes/arrays, or i could go all out OO and define classes fr the actual objects and the actors on them, or some mix of the two, or...
<speakingcode> don't really see the advantage of the OO approach in this case b/c ruby doesn't provide the static type safety of say, java... hmmm
freerobby has quit [Ping timeout: 252 seconds]
bbloom has joined #ruby
Virtualize has joined #ruby
<bnagy> don't use classes as just containers
<bnagy> if the classes have no methods, then you should be using a core class like Array etc
<speakingcode> i agree. just kind of philosophically pondering, so i'll ask why not?
<bnagy> it makes the code deceptive
<speakingcode> maybe i will need behavior later, for instance
likemike has quit [Ping timeout: 252 seconds]
kenndel has quit [Read error: Connection reset by peer]
<bnagy> like making a class just so you can go container.blah instead of container[:blah] is irritating to someone else trying to read your code
freezey has quit [Remote host closed the connection]
<speakingcode> like say.. [ {name: "john doe", age: 3}, {name: "jane doe", age 4}] vs defining a person class and having an array of person objects that each have name and age
vlad_starkov has joined #ruby
<bnagy> it just depends what else you want to do with that object
<bnagy> I have seen people use Struct to get .. not really type safety, but a level of type-forgetfulness-protection
<bnagy> imho I don't like it much, but it's a style
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<speakingcode> so like class Person < Struct.new(:name, :age) ?
vlad_starkov has quit [Read error: Connection reset by peer]
<bnagy> yeah I think that's how it works
<bnagy> you can put in classes and stuff, can't you?
<speakingcode> not sure
<speakingcode> not sure what you mean exactly by the question :)
duggiefresh has quit [Remote host closed the connection]
<speakingcode> coming from a java background i lean toward the class approach, but then coming from javascript i lean toward "literal" objects (hashes/arrays)
<bnagy> hm, no maybe I just dreamed that
<speakingcode> of course hash and array members can't be behavior, that i know of.. maybe procs? heh.
mansi has joined #ruby
<speakingcode> so many style possibilities with ruby
e62 has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has quit [Quit: WeeChat 0.4.2]
rickruby has joined #ruby
kenndel has joined #ruby
Sawbones has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
e62 has quit [Ping timeout: 245 seconds]
<Sawbones> Could someone give me a basic ruby project to hone my skill with the language?
tejas has joined #ruby
funburn has quit [Quit: funburn]
gja has quit [Ping timeout: 276 seconds]
<bnagy> koans
danshultz has joined #ruby
<bnagy> project euler
bubbajones has quit [Ping timeout: 246 seconds]
thenovices has joined #ruby
CodeBunny has joined #ruby
bubbajones has joined #ruby
alexfreidah has joined #ruby
<agent_white> ciwolsey: Just to make you think about it like you're doing now?
<agent_white> mt
aagdbl has joined #ruby
ambushsabre has left #ruby ["rip"]
<Sawbones> Eh
Sawbones has quit [Remote host closed the connection]
<speakingcode> Sawbones: ruby koans will get you familiar with the mechanics of the language and common functions of std lib. so things like assignment, comparisons, arrays, hashes, and so forth
Liothen has quit [Quit: System of a down……]
tejas has quit [Quit: This computer has gone to sleep]
Deele has joined #ruby
<speakingcode> strings, loops, ranges, enummerables, yadda yadda
danshultz has quit [Ping timeout: 276 seconds]
thenovices has quit [Ping timeout: 272 seconds]
alexfreidah has quit [Ping timeout: 252 seconds]
sensen has joined #ruby
diegoviola has joined #ruby
lifestream has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
axl_ has quit [Quit: axl_]
amclain has joined #ruby
Virtualize has quit [Quit: Leaving...]
phansch has quit [Client Quit]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sparrovv has joined #ruby
subbyyy_ has joined #ruby
audle has joined #ruby
bubbajones has quit [Ping timeout: 260 seconds]
sailias has quit [Read error: Operation timed out]
rakm has quit [Quit: Connection closed for inactivity]
IceDragon has quit [Quit: Space~~~]
Soliah has quit [Quit: Soliah]
CodeBunny has quit [Read error: Connection reset by peer]
sparrovv has quit [Ping timeout: 276 seconds]
ahmedelgabri has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
subbyyy_ has quit [Ping timeout: 272 seconds]
meatherly has quit [Remote host closed the connection]
bombsite has joined #ruby
<bombsite> hello!
Jdubs has joined #ruby
<bombsite> I'm trying to learn ruby on rails
<audle> hi. I was trying to make a html table from an array of arrays. I tried to nest inside of my erb file like this: https://gist.github.com/anonymous/b02c99fa4c26bfde455a but it didn't work. what is a good way to accomplish this kind of task?
<bombsite> what would be a good point to start from?
<bombsite> like make a website with heroku and stuff?
meatherl_ has joined #ruby
jonahR has joined #ruby
Vitor has quit [Disconnected by services]
<bombsite> thanks popl
<popl> bombsite: Rule #1: Rails is not Ruby. There is a channel dedicated to Rails.
<popl> Aptly named #rubyonrails
<bombsite> sorry. can you link me?
<bombsite> hmm. i can't join
<popl> Why can't you join?
<bombsite> nvm
<bombsite> I didn't identify my username
<bombsite> thanks
Vitor_ has joined #ruby
aspires_ has joined #ruby
mspah_ has joined #ruby
<popl> good luck
dku has quit [Quit: Bye]
MatthewsFace has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
<habhooB> Rule #2: We don't talk about Ruby on Rails.
<habhooB> Rule #3: If this is your first time in #ruby, you have to fight!
sassamo has quit [Remote host closed the connection]
sLi_ has quit [Remote host closed the connection]
sassamo has joined #ruby
darthdeus has quit [Quit: Leaving...]
sLi_ has joined #ruby
<Red_Onyx> I like #3
gregf has joined #ruby
bombsite has quit [Quit: Page closed]
jlast has quit [Ping timeout: 260 seconds]
codezomb has joined #ruby
sassamo has quit [Ping timeout: 246 seconds]
<sungai_keruh> i like #2
SCommette has quit [Quit: SCommette]
lioninawhat has quit [Remote host closed the connection]
sLi_ has quit [Ping timeout: 272 seconds]
<pontiki> audle: someone answer your question yet?
<audle> pontiki, not yet
aqua__ has joined #ruby
<gregf> anyone have a better way of doing this? https://gist.github.com/gregf/8450287
duggiefresh has joined #ruby
<pontiki> audle: the inner loop variable, sub_list, should not have an instance variable @ on it
seoaqua has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
pu22l3r_ has joined #ruby
freerobby has joined #ruby
<pontiki> gregf: that's a nice way to do that
fgo has quit []
KicStart has joined #ruby
<audle> oh :p thank you
Spami has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<gregf> pontiki: good enough, thanks
yasushi has quit [Remote host closed the connection]
yacks has quit [Read error: Operation timed out]
magoo has quit [Ping timeout: 265 seconds]
thenovices has joined #ruby
bubbajones has joined #ruby
stryek has quit [Quit: Leaving]
juarlex has joined #ruby
aqua__ has quit [Ping timeout: 246 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
teenwolf has quit [Quit: Leaving...]
e62 has joined #ruby
seoaqua has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby
duggiefresh has quit [Remote host closed the connection]
thenovices has quit [Ping timeout: 252 seconds]
lifestream has left #ruby ["Leaving"]
seoaqua__ has joined #ruby
seoaqua_ has quit [Ping timeout: 272 seconds]
e62 has quit [Ping timeout: 252 seconds]
Guest17428 has quit [Ping timeout: 260 seconds]
seoaqua has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
seoaqua has joined #ruby
seoaqua__ has quit [Ping timeout: 260 seconds]
CodeBunny has joined #ruby
audle has quit [Quit: Leaving]
Red_Onyx has quit [Quit: Leaving]
browndawg has quit [Quit: Leaving.]
seoaqua has quit [Ping timeout: 245 seconds]
seoaqua has joined #ruby
bbloom has quit [Ping timeout: 272 seconds]
KicStart has left #ruby [#ruby]
rickruby has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bubbajones has quit [Ping timeout: 276 seconds]
mikepack has joined #ruby
fijimunkii has joined #ruby
rickruby has joined #ruby
<ddd> woo, i learned something new tonight. you can pass in vars to a block that are block-lock. def my_meth ; x = 0; 5.times { |i;x| x =+ i ; puts x } ; puts x ; end # the TIL is the ;x
<ddd> didn't know you could do that in ruby. never seen that done until tonight
likemike has joined #ruby
<centrx> ddd, It's the same with a comma
vlad_starkov has quit [Read error: Connection reset by peer]
seoaqua has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 248 seconds]
<ddd> oh? i thought the comma was for any additionals like for a hash.each {|k,v| } so if there aren't enough args to tjhe block to fill all the requested params, it makes it into a block-local?
seoaqua has joined #ruby
dukz has joined #ruby
rickruby has quit [Ping timeout: 260 seconds]
meatherl_ has quit [Remote host closed the connection]
gja has joined #ruby
sLi_ has joined #ruby
<centrx> ddd, I just tested it and I get the same result..
seoaqua_ has joined #ruby
<ddd> nice!
nanoyak has joined #ruby
BrixSat has quit [Remote host closed the connection]
aagdbl has quit [Quit: Leaving]
<ddd> so to get a 3rd var for the block with a has just add a , and a var like |k,v,accum|
aagdbl has joined #ruby
BrixSat has joined #ruby
<ddd> i can find use for that. ruby always finds ways to teach me something. i love this language!
funburn has joined #ruby
seoaqua has quit [Ping timeout: 245 seconds]
gja has quit [Client Quit]
fijimunkii has quit [Ping timeout: 276 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
OdNairy has joined #ruby
vlad_starkov has joined #ruby
whomp has quit [Ping timeout: 276 seconds]
<bnagy> don't do it
seoaqua has joined #ruby
mocfive has joined #ruby
<bnagy> it's a stupid 'feature'
<bnagy> it's really just an arity abuse
fijimunkii has joined #ruby
<bnagy> it's for optional block args afair
sLi_ has quit [Ping timeout: 248 seconds]
<bnagy> if you want to declare a block local for yourself then do it in the body
seoaqua_ has quit [Ping timeout: 245 seconds]
<ddd> what is the diff? why is it not good to use the block args?
gja has quit [Client Quit]
<ddd> i know its an optional non-default, but i don't get why not to declare them there
diegoviola has joined #ruby
<centrx> ddd, What would the use case be?
seoaqua has quit [Ping timeout: 246 seconds]
<centrx> ddd, Why not use a different variable name? Seems like it would be a misleading feature (I didn't know about this)
<ddd> only one i can think of off the top of my head (since I just learned it tonight) would be an in-block accumulator
gja has joined #ruby
<bnagy> declare it outside the ||
top4o has quit [Read error: Connection reset by peer]
gja has quit [Changing host]
gja has joined #ruby
<ddd> like either for integer math, or possibly for contatentation built from each successive element (string).
<centrx> ddd, That is a perfect use case for inject/reduce
<ddd> bnagy got it.
<ddd> centrx i was just commenting on a neat little feature i didn't know you could do with blocks
<bnagy> oh you mean an accum over multiple invocations of the block? Pretty sure it won't do that
<centrx> Sorry I wasn't trying to get on your case
<bnagy> that's what inject's for
<centrx> ddd, Ruby 1.8 used to do this for variables defined in the block
<ddd> bnagy 5.times {|i;x| } # it will stick around through the 5 times then die when the block actually ends
<ddd> interesting.
top4o has joined #ruby
<centrx> ddd, So when that was changed in Ruby 1.9, I guess they added this semicolon feature to support both
Spami has quit [Quit: This computer has gone to sleep]
<ddd> i just learned the difference tonight between each and map as well. each returns the original collection unmodified, map returns the modified by default
<ddd> little things i'm picking up along the way.
danijoo has quit [Read error: Connection reset by peer]
<ddd> centrx got it. i guess its just a little feature i didn't know about and thought was cool mainly because i didn't know it *could* do that
<bnagy> ddd: demonstrate?
danijoo has joined #ruby
<bnagy> 5.times {|i;x| p i; x||=0; x+=i;p x} that seems to do what I expect?
<ddd> little tight in the grouping. gimme a sec to read that
<ddd> first iteration i would be 0, x would be initialized to 0, x would be 0, and x would be 0
<ddd> 2nd iteration i would be 1, x would be 0 already, x would be set to 1, p x would output 1
<ddd> or should if the book is right
seoaqua_ has joined #ruby
<ddd> yeah its right
<ddd> according to pry at least
<centrx> x = 0; 1.times { |i;x| x = 2; puts x }; puts x
narcan has quit [Read error: No route to host]
<ddd> 0 and 2
OdNairy has quit [Ping timeout: 272 seconds]
<bnagy> that's just scope
<ddd> 0 outside, 2 inside, 0 outside
<bnagy> but x doesn't accumulate at all
fijimunkii has quit [Ping timeout: 245 seconds]
<centrx> but it seems to do that with the comma too...
<ddd> bnagy oh yeah, not implying that it jumps scope
<ddd> oh i see what you're saying
sensen has quit [Ping timeout: 272 seconds]
<bnagy> every iteration in the thing I pasted it is initialized to 0 and the x+=i
<ddd> yeah you're right. it should be 10 right if it did?
<ddd> or higher actually
iamjarvo_ has quit [Ping timeout: 265 seconds]
<bnagy> 10
<ddd> ok i see your point.
<bnagy> sum of 0..4 is 4*5 / 2
bricker`LA has quit [Ping timeout: 276 seconds]
<ddd> hrmm. so there is no way to accumulate through block iterations?
bricker`LA has joined #ruby
<ddd> inside the block i mean
<bnagy> not afaik
<ddd> its just always zzt fresh run, fresh reinitialized block
<ddd> gotcha
<bnagy> well the block will use local vars in its scope, that's the most common way, you can also use inject
aagdbl0 has joined #ruby
aagdbl1 has joined #ruby
<centrx> a = 1; [2].each { |;a| p a }; a
<bnagy> but inject cheats by passing in the return value of each yield
aagdbl1 has quit [Client Quit]
aagdbl has quit [Disconnected by services]
seoaqua_ has quit [Ping timeout: 245 seconds]
<ddd> ah, so its basically a trap/wrapper to snag the return value for injection
<ddd> doesn't do anything.. special
Evixion has quit [Ping timeout: 252 seconds]
mspah_ has quit [Quit: This computer has gone to sleep]
<ddd> supposed to be a ? at the end of that. hit enter too fast
OdNairy has joined #ruby
<ddd> ok the ri docs say it creates a accum var named memor, or if you use a symbol instead it creates a method named 'memo'. so does that mean you can overwrite or extend that method? i take it that would be a monkey patch to Enumerable directly
seoaqua has joined #ruby
<ddd> s/memor/memo/
<bnagy> cannot parse
Barrin6 has quit [Quit: Leaving]
sLi_ has joined #ruby
agent_white has quit [Ping timeout: 272 seconds]
<ddd> docs say that with inject, it creates an accumulator var named 'memo'. which does what you said. sticks the return value from the last iter into 'memo'. but it says that if you specify a symbol instead, it makes a method named 'memo'
<ddd> so in order to modify (since ruby lets you mod just about anything) that memo method would be to monkey patch Enumerable directly, correct?
yacks has joined #ruby
<ddd> so if i wanted to do .. whatever (some work).. on that value passed into the memo method, i'd have to MP the Enmerable declaration for that memo method
<bnagy> ohh you just mean like inject :+
Scient has quit [Ping timeout: 246 seconds]
<ddd> yeah
Martxel has quit [Ping timeout: 252 seconds]
mnemon has quit [Remote host closed the connection]
mnemon has joined #ruby
vadviktor_ has joined #ruby
seoaqua has quit [Ping timeout: 245 seconds]
Haegin has quit [Ping timeout: 260 seconds]
<bnagy> it sends whatever method to the memo obj with the current elem as an arg
Martxel has joined #ruby
vadviktor has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
Martxel is now known as Guest22852
Scient has joined #ruby
agent_white has joined #ruby
sLi_ has quit [Remote host closed the connection]
<bnagy> erm [1,2,3,4].inject([9], :push) for example
Haegin has joined #ruby
mr_red has quit [Ping timeout: 272 seconds]
<agent_white> What's the point of using |a;b| over |a,b| ?
sLi_ has joined #ruby
<agent_white> What's the point of using |a;b| over |a,b| ?
<ddd> i got it. thanks for that bnagy
<agent_white> Whoa
<agent_white> Sorry for the triple posting there, timed out and didn't notice.
jlast has joined #ruby
mr_red has joined #ruby
<agent_white> ddd/bnagy: Either of you guys respond to that by chance?
Spami has joined #ruby
<ddd> yeah hate to say it but in a way i don't get the diff between , and ;. i thought with the , the block args?/params? would slurp up any args like the splat did, while ; *specifically* created a block-local var
<bnagy> I didn't - afaik, none
<ddd> but centrx said different, that it didn't matter which 'style' you used
<bnagy> I think it's there for optional args for some forms of block proc lambda whatever
<bnagy> like some of them aren't strict on arity
<agent_white> Hmmm... so comma separated-anything in Ruby can be separated by newlines instead?
<agent_white> Or is that taking it too far? ;P
<bnagy> but I don't use that, ever, so I don't know for sure / in detail :)
<ddd> no this is specifically for block args
<agent_white> Rather, comma-separated args
<ddd> bnagy whats the right word for that? arg right?
<agent_white> Ahhh
<ddd> |arg, arg|
<centrx> |grr, grr|
<ddd> hehe
seoaqua_ has joined #ruby
sensen has joined #ruby
<ddd> arg is whats passed in, the actual value, param is the placeholder?
rickruby has quit [Ping timeout: 272 seconds]
<agent_white> param is what's expected, arg is what is sent?
bricker`LA has quit [Remote host closed the connection]
<ddd> there's a technical diff, i just don't remember the exactness of the diff
<agent_white> ddd: yes! (?) :D
bricker`LA has joined #ruby
sLi_ has quit [Ping timeout: 272 seconds]
<ddd> yeah thats what i thought. param is expected, arg is the actual
jlast has quit [Ping timeout: 246 seconds]
<agent_white> ddd: I think that's it, an argument has no basis without parameters to argue against.
mocfive has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<ddd> hehe good way to put it ;)
<agent_white> Or agree upon, I suppose. #matzisnice_wearenice
mocfive has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<ddd> i know what folks mean when they use either word, just couldn't remember the exact difference
<ddd> but i like the way you put it. makes it really clear in a short sentence
seoaqua has joined #ruby
<ddd> anyways, that was my TIL for the early morning :)
amacgregor__ has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
seoaqua_ has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<agent_white> ddd: Hahah me too, except for the late night! ;)
dazeddev has joined #ruby
mocfive has quit [Ping timeout: 252 seconds]
h_kon has joined #ruby
seoaqua_ has joined #ruby
thenovices has joined #ruby
<ddd> i've been pulling a crapload of them lately.
<ddd> my wife's ticked, but i'm an insomniac. whatami supposed to do? just stare at the walls?
nfk has quit [Read error: Operation timed out]
seoaqua has quit [Ping timeout: 260 seconds]
tyl has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
thenovices has quit [Ping timeout: 248 seconds]
seoaqua_ has quit [Ping timeout: 248 seconds]
bubbajones has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
seoaqua_ has joined #ruby
top4o has quit [Read error: Connection reset by peer]
pranny has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
zipper has joined #ruby
zipper is now known as urbanslug
yasushi has joined #ruby
<agent_white> Hahah exactly. I try to explain that it's the only time for 'computer stuff', but that flys like a brick D:
bricker`LA has quit [Ping timeout: 246 seconds]
pu22l3r_ has quit [Remote host closed the connection]
nhhagen has joined #ruby
bricker`LA has joined #ruby
<ddd> pretty much
mercwithamouth has quit [Ping timeout: 246 seconds]
seoaqua_ has quit [Ping timeout: 252 seconds]
seoaqua has joined #ruby
amclain has quit [Quit: Leaving]
tylersmith has quit [Remote host closed the connection]
<speakingcode> is there a value that can be sent to an object via #send that will make the object return itself?
<speakingcode> so like, x.send('field') returns x.field, can i pass something to x.send to get x back?
mansi has joined #ruby
juarlex has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 260 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
gja has joined #ruby
heftig has quit [Quit: Quitting]
iamjarvo has quit [Ping timeout: 246 seconds]
<bricker`LA> speakingcode: Object#tap
seoaqua has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aagdbl1 has joined #ruby
xpirator has quit [Ping timeout: 272 seconds]
<speakingcode> bricker`LA: elaborate?
yacks has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
<ddd> ah you'd have to do a @obj.tap {} to get @obj back. blank block
b00stfr3ak has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
sassamo has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
<speakingcode> no it must be something i can pass to .send()
<popl> why?
monkegjinni has joined #ruby
<popl> what are you trying to do?
<speakingcode> well, i have a kind of special generalized 'sorting' method that will 'sort' items based on value of a field, the field being a parameter to the method, but i want to handle the case where the value of the object itself can be the value to 'sort' on (i'm not actually sorting but close enough in concept)
<bricker`LA> speakingcode: x.tap { |x| x.send('field') } #=> x
alexfreidah has joined #ruby
aagdbl0 has quit [Ping timeout: 276 seconds]
<bricker`LA> speakingcode: "it must be something I can pass to .send()" in that case you can override send()
himsin has joined #ruby
<speakingcode> bricker`LA: but then that defeats the other cases
<speakingcode> i can't override send
<speakingcode> x can be any type, it's unknown
monkegjinni has quit [Remote host closed the connection]
<popl> What are you trying to do?
<speakingcode> i've explained what i'm trying to do
<popl> No, not really.
wildroman2 has joined #ruby
<speakingcode> i have a generic method that does an operation on a collection of items, based on the value of one of the fields of those items, the field itself being a parameter of the method
apeiros has quit [Ping timeout: 252 seconds]
<popl> This is your idea for implementing a solution to your problem. What is your problem?
<speakingcode> works fine, using item.send(field) (where again field is a local var/param to the method), except in the case of say strings or numbers
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
dukz has quit [Remote host closed the connection]
<speakingcode> the problem - as i said - is generalizing a method that does a particular operation on a collection of items
<speakingcode> tpo be specific it is for generating a directed graph where all nodes in the graph have in and out degree of 1 and no node is connected to another node in it's group, where its group is determined by the value of the parameterized field
alexfreidah has quit [Ping timeout: 245 seconds]
<popl> Do you know about RGL?
<speakingcode> in the case of simple objects like strings and numbers, tho, the grouping should be on the "value of the item itself" and not a subfield. all things in ruby being objects, i figured 'primitive' types have a special field that gives the 'literal' value... perhaps inspect or to_s ?/
sungai_keruh has quit [Quit: Leaving]
sassamo has quit [Ping timeout: 252 seconds]
<speakingcode> i'm not asking for advice on design decisions
dukz has joined #ruby
<speakingcode> the goal of the exercise isn't to find a library or package to include
<popl> Is that a no or a yes?
<speakingcode> it's a division by 0
<speakingcode> the purpose here is for analysis and study of particular algorithms and making a generic method in this way allows me to analyze behavior on different sets of data interchangeably
monkegjinni has joined #ruby
dawkirst has joined #ruby
<speakingcode> i'm not interested in using any abstraction because by very definition that defeats the goal of mechanical analysis
<popl> So you haven't heard of RGL?
Aryasam has quit [Ping timeout: 276 seconds]
m4rcu5 has joined #ruby
<speakingcode> yes, but again that's irrelevant
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
<speakingcode> olve an application of graphing
<speakingcode> whoops. i'm not trying to solve an application of graphing*
<bricker`LA> speakingcode: "but then that defeats the other cases" what?
<speakingcode> bricker`LA: referring to using #tap
<speakingcode> i don't _always_ want to return the object itself
<bricker`LA> speakingcode: highly discouraged: https://gist.github.com/bricker/8450988
<agent_white> Object.send(:dup) ?
<speakingcode> bricker`LA: do you know what generic typing is?
<bricker`LA> *sigh* good bye
klaut has joined #ruby
binw has quit [Read error: Connection reset by peer]
<speakingcode> i suppose it would work if i applied the monkeypatch to Object itself
<speakingcode> actually no i don't think it would, nm
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
kiri has quit [Ping timeout: 252 seconds]
brandon has joined #ruby
brandon is now known as Guest53099
hukl has joined #ruby
hukl has quit [Remote host closed the connection]
dagobah has joined #ruby
binw has joined #ruby
kiri has joined #ruby
centrx has quit [Quit: Leaving]
aspires_ has quit []
starkhalo has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
sLi_ has joined #ruby
<bricker`LA> speakingcode: to answer the last question in the gist, every object respond to to_s
<bricker`LA> responds*
<bricker`LA> in most cases it's useless for grouping though (memory address)
sec^nd has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 272 seconds]
<bricker`LA> In the case of strings, it would be okay, because string.to_s just returns itself
<bricker`LA> Would be okay for integers too
subbyyy_ has joined #ruby
sec^nd has joined #ruby
nathancahill has joined #ruby
<speakingcode> bricker`LA: right. so what i am asking is if there is some message that can go to send that will return the object itself for _any_ object, of any type
<bricker`LA> speakingcode: no.
jprovazn has joined #ruby
sLi_ has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
MissionCritical has quit [Ping timeout: 252 seconds]
_tpavel has joined #ruby
DaZ has joined #ruby
Aryasam has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
dagobah has quit [Remote host closed the connection]
_tpavel has quit [Client Quit]
skaflem has joined #ruby
dagobah has joined #ruby
meatherly has joined #ruby
wildroman2 has quit [Remote host closed the connection]
camilasan has joined #ruby
wallerdev has quit [Quit: wallerdev]
gsvolt has quit [Ping timeout: 265 seconds]
Guest53099 has quit [Ping timeout: 272 seconds]
Mission-Critical has joined #ruby
wildroman2 has joined #ruby
John445 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
meatherly has quit [Ping timeout: 248 seconds]
aganov has joined #ruby
DJJeff has joined #ruby
cbetta_afk is now known as cbetta
gja has joined #ruby
<RubyPanther> speakingcode: foo.send(:instance_eval, :self.to_s)
freakcult has joined #ruby
<RubyPanther> X.0
brandon_ has joined #ruby
freakcult has quit [Client Quit]
habanany has joined #ruby
mansi has joined #ruby
mikepack has joined #ruby
ws2k3 is now known as yctn
habanany has quit [Max SendQ exceeded]
habanany has joined #ruby
wildroman2 has quit [Remote host closed the connection]
existensil has quit [Quit: leaving]
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
<bricker`LA> lul
Mission-Critical is now known as MissionCritical
<agent_white> I need moar meta in my whiskey to understand this
mansi has quit [Ping timeout: 260 seconds]
gsvolt has joined #ruby
<bricker`LA> agent_white: he a) Wants a method to return itself, b) can't use tap, c) must use #send, d) can't override #send
mikepack has quit [Ping timeout: 272 seconds]
kobain has quit []
<popl> e) doesn't want design decisions, f) has a silly design
<popl> :P
<bricker`LA> you know, simple!
cbetta is now known as cbetta_afk
<popl> s/decisions/suggestions/
cbetta_afk is now known as cbetta
Sid05 has joined #ruby
tylersmith has joined #ruby
andikr has joined #ruby
sassamo has joined #ruby
<speakingcode> it was a rather simple question, but it is the likeness of arrogance to complicate and circumvent a simple question in lack of a simple answer.
<speakingcode> and your criteria for a is inaccurate. it's not a method to return itself, it was asking if there is a value that can be passed ot send that will cause the receiving object to return itself, in order to more generalize a method which is using send to achieve its task
<bricker`LA> speakingcode: I told you the answer: Not without overriding send, which you say you can't do.
samsonasu has quit [Quit: samsonasu]
<bricker`LA> speakingcode: #send takes certain arguments, the documentation is there, you can go look at it.
<speakingcode> if someone asks a question about something and you don't understand their motivations or criteria, don't just assume they don't know wtf they are doing simply because you don't know wtf they are doing. heh
<bricker`LA> speakingcode: Did you look at the documentation for Object#send?
Kneferilis has joined #ruby
<speakingcode> bricker`LA: yes
Lewix has quit [Remote host closed the connection]
<bricker`LA> Then why are you asking us if it takes an argument that will cause it to return the object?
tylersmith has quit [Ping timeout: 272 seconds]
sassamo has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
<bricker`LA> speakingcode: Do you not understand the documentation? Object#send takes a symbol or string (the name of the method to send), and a variable number of arguments to send to that method. That's it. You can't change that without overriding #send.
XenoWolf_ has quit [Read error: Operation timed out]
<speakingcode> ok i could rephrase it as. do objects have a method which returns themself? i.e. an identity function. better?
<bricker`LA> speakingcode: Yes. Object#tap .
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<bricker`LA> speakingcode: Identity function? Object#object_id . Object#hash, perhaps.
urbanslug has quit [Quit: leaving]
zipper has joined #ruby
LekeFly has joined #ruby
<speakingcode> how can i call tap via send?
<agent_white> speakingcode: It sounds more like you haven't really provided 'motivations or criteria', other than assuming graph-logic is too difficult for people in this room.
<speakingcode> foo.send('tap') => no block given
<bricker`LA> speakingcode: Did you look at the documentation for Object#tap ?
amundj has quit [Read error: Connection reset by peer]
zipper has quit [Client Quit]
<speakingcode> yes, i see it takes a block but i cant infer how to pass the block when calling tap via send
amundj has joined #ruby
sergicles has joined #ruby
puppeh has joined #ruby
blackmesa has joined #ruby
<speakingcode> ah, foo.send('tap') {} works
<puppeh> what exactly is the "ruby heap"?
<bricker`LA> speakingcode: you do it the same way tht you do it with #tap
<agent_white> 23:54
<speakingcode> where it stores objects, etc puppeh, to be vague... http://izumi.plan99.net/blog/index.php/2007/10/12/how-the-ruby-heap-is-implemented/
ozgun has joined #ruby
Sid05 has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
sethen has quit [Quit: Leaving]
<puppeh> speakingcode: so it's different from the standard heap in the memory?
<speakingcode> puppeh: not sure what you're asking
Spami has joined #ruby
<puppeh> I've heard "the ruby heap" and "the system heap". Are those different?
DJJeff has left #ruby [#ruby]
<speakingcode> probably not but that would really depend on context and usage of the terms
<canton7> ruby manages its own heap iirc - it has its own allocator and garbage collector
ferr has joined #ruby
<speakingcode> your OS has its own stacks and heaps, and one may be referring to that when saying 'system heap'
zipper has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<speakingcode> i'm making some assumptions about the ruby implementation that i don't truly know, though
zxd has joined #ruby
<John445> anyone use OPAL?
meatherly has joined #ruby
zipper is now known as urbanslug
freakcult has joined #ruby
kevinykchan has joined #ruby
rickruby has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
einarj has joined #ruby
meatherly has quit [Ping timeout: 276 seconds]
MrZYX|off is now known as MrZYX
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
jlast has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
freakcult has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Remote host closed the connection]
<puppeh> speakingcode: does the term "heap" as used in "the ruby heap" has any relation to the data structure "heap"?
<bnagy> there's basically no such thing as a system heap
freakcult has joined #ruby
<bnagy> there's a c runtime heap
<bnagy> every ruby runtime has a heap
rickruby has quit [Ping timeout: 276 seconds]
<bnagy> hell some browsers even have their own heap implementations
<speakingcode> puppeh: yeah. a heap is a heap, per the data structure
camilasan has quit [Read error: Operation timed out]
<bnagy> MS Office used to have a completely different heap to the rest of msvcrt
amacgregor_ has joined #ruby
<puppeh> In this article: http://en.wikipedia.org/wiki/Memory_management it says "Memory requests are satisfied by allocating portions from a large pool of memory called the heap".
<puppeh> ^^ so where is this heap implemented? at which level?
txdv has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 252 seconds]
<speakingcode> depends on context puppeh
<bnagy> there is no one single heap implementation
txdv has joined #ruby
<bnagy> heap is just a catch-all term for 'dynamic memory that is not stack'
<puppeh> hm I see..
freerobby has joined #ruby
agent_white has quit [Quit: gnight]
<speakingcode> hm yeah actually i may have mispoke saying a heap is like the heap data structure, which is a true where every node is > it's children or whatever
ferr has quit [Quit: Lost terminal]
<speakingcode> s/true/tree
<bnagy> if you want broad brush concepts, stack is usually used for stuff like static variables ( say you call a method with '3' as an arg ) heap is used for bigger allocations, like a string or an image in memory or whatever
heftig has joined #ruby
snyp has joined #ruby
<speakingcode> no i think static variables are usually in heap actually
<speakingcode> stack is local variables
<bnagy> yeah ok, I meant func args :)
<snyp> Can I add a member variable anytime I want, like thru a member function, by prefixing @ to the var's name?
<speakingcode> yes snyp
<snyp> ah thanks
<puppeh> so when we say 'heap' we 're talking about the region of the memory that a runtime/VM implements? for ex. ruby heap, the C heap, the Java heap etc.?
<bnagy> doesn't have to be
<bnagy> an app can just roll its own heap
<bnagy> which used to ( sadly ) be quite common
<speakingcode> so when you call a method, what is happening is a block of memory on the stack gets reserved and a pointer moves up to that blocks beginning, and on that block you have some data - local variables to that method, the memory address of the calling method's stack block (return pointer), and pointers to any data on the heap (like static vars and such) and pointers to program code (i think program code goes in heap too, can't recall)
<puppeh> what confuses me is a concrete definition of the 'ruby heap' vs all the other possible 'heaps'
<bnagy> stack grows 'down'
<puppeh> like the 'OS heap'..I'm having a hard time understanding where exactly it's implemented
freerobby has quit [Ping timeout: 252 seconds]
<speakingcode> puppeh: think of it like ruby is a virtual machine
<puppeh> I know about static and dynamic allocations and the stack
<speakingcode> and that virtual machine has it's own stack and heap
<puppeh> aha
subbyyy_ has quit [Ping timeout: 260 seconds]
<speakingcode> may not be entirely correct, but easy enough to think about it that way
<puppeh> it's just that this wikipedia article for example: http://en.wikipedia.org/wiki/Memory_management talks about the 'heap' like it's something standard in the system..
<bnagy> it's a concept
<speakingcode> at any rate, consider it logically 'isolated' from the 'system heap' that like, c programs, are using
guinslym has quit [Ping timeout: 252 seconds]
<bnagy> uh
thenovices has joined #ruby
<bnagy> no
<puppeh> yeah, but this talks like it's something concrete, no? "Memory requests are satisfied by allocating portions from a large pool of memory called the heap"
kewubenduben has quit [Read error: Connection reset by peer]
<puppeh> that's a confusing article..
brtdv has joined #ruby
kewubenduben has joined #ruby
<speakingcode> ultimately it depends on implementation of the language compiler/interpreter, and implementation of the OS. details vary
<speakingcode> bnagy: was that uh no @ my C comment?
<bnagy> yeah.. a lot of the things you said tbh
Jetchisel has quit [Ping timeout: 256 seconds]
<bnagy> but it's not really important
<speakingcode> yeah, i mean, i'm fudging it up to make it conceptually digestible for him, but also b/c i don't know much about ruby implementation. kind of projecting JVM detials onto it ;-p
freakcult has quit [Remote host closed the connection]
freakcult has joined #ruby
<bnagy> like, stack is much easier
<bnagy> because of how closely it's related to the machine language
<bnagy> whether that actually x64 etc or a VM
dfranciosi has joined #ruby
<bnagy> well any vm / machine that has a stack pointer :<
thenovices has quit [Ping timeout: 246 seconds]
<speakingcode> hmm not sure about that. i think dalvik VM is stackless, for instance
<speakingcode> oh nm
<speakingcode> misread your comment. saw "any has" not "any that has"
<puppeh> aren't there also register-based VMs?
<bnagy> well the stack pointer is just a register as well
Es0teric has quit [Quit: Computer has gone to sleep.]
<bnagy> but you can have VMs with arbitrary numbers of registers
<bnagy> in which case they can just use register addressing for anything you'd use a stack for on say x86
<speakingcode> i would imagine the actual 'ruby heap' is pretty closely "mapped" to the 'system heap' esp considering ruby is implemented in c
John445 has quit [Quit: John445]
<bnagy> makes it easier to reason about code on those vms
Es0teric has joined #ruby
<bnagy> MRI is in C
<speakingcode> yeah referring to MRI of course
renklaf_ is now known as falkn0r
<puppeh> speakingcode: what is the "system heap"?
<bnagy> but I think that the ruby C vm uses its own heap
<bnagy> last I checked anyway :(
<bnagy> there really isn't one
falkn0r is now known as renklaf
bluOxigen has joined #ruby
<bnagy> unless you mean like kernel pool
<puppeh> bnagy: yes it does
<speakingcode> bnagy: but where does that live in the big scheme of memory from the OS point of view?
<bnagy> userland processes can kind of do wtf they want
<bnagy> the wonder of virtual addressing
<speakingcode> nod
jonahR has quit [Quit: jonahR]
<bnagy> puppeh: do you want to know for any actual reason?
<speakingcode> so even something that appears as a contiguous block of memory to a java application, may not be? i dunno maybe it is. fuckit. you learn this stuff, then you realize you don't care anymore :-)
jonahR has joined #ruby
jonahR has quit [Client Quit]
<bnagy> cause that makes it easier to answer :D
<bnagy> well a contiguous block of _virtual_ memory could be, yeah, anywhere
holderbaum has joined #ruby
holderbaum has quit [Client Quit]
michael_mbp has quit [Excess Flood]
<bnagy> also a contiguous heap block could be kind of anywhere :/
michael_mbp has joined #ruby
<bnagy> cause of chunks blah blah
<bnagy> depending on impl
mansi has joined #ruby
<bnagy> BASICALLY IT'S HARD OK
<speakingcode> WRITE ALL THE THINGS IN ASSEMBLY
<speakingcode> lol
Xeago has joined #ruby
<Takumo> write all the things in COBOL!
hiall_ has joined #ruby
yasushi has joined #ruby
<bnagy> which assembly? :<
troessner has joined #ruby
<bnagy> man arm is so amazing
apeiros has joined #ruby
<speakingcode> x86 at&t-flavored asm
<bnagy> and then you get to thumb, and the new instructions, and then intel gets involved
<bnagy> and then.. shitty death
<bnagy> x86 is just flat out awful
<speakingcode> why arm amazing? risc?
<bnagy> yeah and more logical registers and assignable pc and and and
Spami has quit [Quit: This computer has gone to sleep]
<speakingcode> cool
snyp has quit [Quit: Leaving]
mansi has quit [Ping timeout: 252 seconds]
<bnagy> also fwiw at&t syntax is crap
<bnagy> only linux hippies use it :D
<popl> :(
<bnagy> shit be backwards
seoaqua_ has joined #ruby
<bnagy> right I had better go troll elsewhere
<speakingcode> i mean, i didn't say it with any kind of claim of intimate understanding or praise lol. just came to mind. i really only touched asm in school, and most of that was actually on a made-up architecture called 'ASM - A Simple Machine' with like 16 instructions
hiall_ has quit [Quit: hiall_]
kreantos has joined #ruby
alexfreidah has joined #ruby
relix has joined #ruby
Muslim has joined #ruby
<Muslim> Selamun Aleikum
<Muslim> Support the movement of having Muslim holidays recognized in the school year, throughout the United States of America. https://petitions.whitehouse.gov/ (Surely join this important survey) CLiK: Email this link to your friends and family: http://wh.gov/l8f51 Elhamdullillah
seoaqua_ has quit [Ping timeout: 265 seconds]
jhaals has joined #ruby
timonv has joined #ruby
seoaqua has joined #ruby
Muslim was kicked from #ruby by apeiros [political agendas are not welcome here]
Muslim has joined #ruby
<speakingcode> gtfo. church n state bro.
sassamo has joined #ruby
Muslim was kicked from #ruby by apeiros [political agendas are not welcome here]
<apeiros> speakingcode: please stay civil, thank you.
camilasan has joined #ruby
<speakingcode> apeiros: sorry. that was meant as a jestful cheer for the kick
<apeiros> np, just telling :)
kitak has quit [Remote host closed the connection]
<apeiros> things sometimes escalate quickly
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
alexfreidah has quit [Ping timeout: 276 seconds]
wdiechmann has joined #ruby
seoaqua has quit [Ping timeout: 252 seconds]
sassamo has quit [Ping timeout: 248 seconds]
marr has joined #ruby
seoaqua has joined #ruby
Deejay_ has joined #ruby
roolo has joined #ruby
claymore has joined #ruby
dukz has quit [Remote host closed the connection]
seoaqua_ has joined #ruby
seoaqua_ has quit [Client Quit]
mehlah has joined #ruby
puppeh has quit [Quit: Leaving...]
seoaqua has quit [Ping timeout: 248 seconds]
Deejay_ has quit [Client Quit]
dawkirst has quit [Ping timeout: 248 seconds]
guinslym has joined #ruby
camilasan has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
gancl has joined #ruby
mklappstuhl has joined #ruby
seoaqua has joined #ruby
Aryasam has joined #ruby
mircoblitz has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dukz has joined #ruby
holderbaum has joined #ruby
Deejay_ has joined #ruby
seoaqua_ has joined #ruby
weems has quit [Read error: Connection reset by peer]
nvrch has joined #ruby
<mircoblitz> Hi, I am no programming noob, but a ruby noob and I need to finish some communication with the Jira6 REST-API. So far so good. But I don't get it managed to send a working POST to the API. Here are the parts on my code. Can someone please tell me what I am doing wron? http://pastebin.com/ygwmEYX5
seoaqua has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
meatherly has joined #ruby
ohwhoa has joined #ruby
<juo> so i have questions about .. and ....
<juo> * ...
<juo> on a range
<juo> are these methods in standard library?
<juo> I can't find them in the documentation
<juo> and was wondering if they're just aliases for upto
<juo> because it seems odd that i can't do (9..5).to_a
<speakingcode> yeah they are
<speakingcode> ... excludes the end value, .. includes it
camilasan has quit [Remote host closed the connection]
<speakingcode> (they are in standard lib, i mean)
<juo> so that means they're implemented in C ?
camilasan has joined #ruby
<speakingcode> to_a works fine for me
<apeiros> juo: ... and .. are not methods, mind you
<apeiros> it's syntax
<juo> (9..5).to_a work for you?
seoaqua_ has quit [Ping timeout: 272 seconds]
<tobiasvl> >> (9..5).to_a
<juo> 1.9.3-p125 :001 > (9..5).to_a => []
* juo tries in ruby-2.0.0-p353
<juo> nope
<apeiros> it will return an empty array there too
<juo> still doesn't work
<apeiros> yes, it does work. it just doesn't do what you want from it.
<speakingcode> juo: that's empty because your range is
<Hanmac1> use that: 9.downto(5).to_a #=> [9, 8, 7, 6, 5]
Hanmac1 is now known as Hanmac
Es0teric has quit [Quit: Computer has gone to sleep.]
<speakingcode> juo: try (5..9).to_a
meatherly has quit [Ping timeout: 246 seconds]
<juo> [5, 6, 7, 8, 9]
<juo> as expected
<juo> why can't a range go backwards?
<apeiros> ranges with begin > end will always return an empty array with to_a
<apeiros> because there's no way to get from begin to end using .succ
seoaqua_ has joined #ruby
<apeiros> which is what Range uses to enumerate the discrete values in the range
<speakingcode> what does .succ stand for?
<juo> ah, ok
Jetchisel has joined #ruby
<apeiros> succeeding, successor, whatever
<juo> successive ?
yasushi has quit [Remote host closed the connection]
<speakingcode> some of the abreviated method names in the std lib annoy me
<apeiros> yeah, me too
<tobiasvl> succ is a very normal abbreviation
<apeiros> it's still an abbreviation
jlast has joined #ruby
<speakingcode> one that isn't clear. may be normal but i've never seen it before
camilasan has quit [Ping timeout: 265 seconds]
* Hanmac knows that Symbols can Succ too ,P
<apeiros> tobiasvl: well, too bad that in ruby it's not a bijective function
<tobiasvl> true ;)
<apeiros> so none of those listed in the WP article apply :)
<tobiasvl> hang on yes it is
<tobiasvl> what
kate_r has joined #ruby
<apeiros> no, it's not
<apeiros> Integer#succ is
<apeiros> String#succ is not
<tobiasvl> ah. yeah
<apeiros> and Whatever#succ might do whatever it pleases
ephemerian has joined #ruby
<tobiasvl> yep
<tobiasvl> gotcha
<Hanmac> like Symbol#succ does whatever it pleases ;P
<apeiros> I'm not a fan of String#succ not being bijective btw.
olivier_bK has joined #ruby
seoaqua_ has quit [Ping timeout: 260 seconds]
camilasan has joined #ruby
wdiechmann has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
<Hanmac> the problem is that Integer#prev makes sense ... String#prev not so much
wdiechmann has joined #ruby
seoaqua_ has joined #ruby
shaunbaker has joined #ruby
<Hanmac> apeiros: for sample "1.2.9".succ and "1.2.09".succ works a bit different ...
gregoriokusowski has joined #ruby
hiall_ has joined #ruby
mircoblitz has quit [Quit: mircoblitz]
<popl> That's interesting.
<popl> '.' is unaffected
freerobby has quit [Ping timeout: 252 seconds]
<popl> Is that explicitly with versioning in mind?
nari has quit [Ping timeout: 276 seconds]
mircoblitz has joined #ruby
seoaqua_ has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
<Hanmac> popl: yeah i think it has todo with version magic ;P
mojjojo has joined #ruby
<Hanmac> popl: "-" "/" ":" and other non alpha numeric are ignored too
<popl> interesting
habanany has quit [Ping timeout: 248 seconds]
w1xz has joined #ruby
postmodern has quit [Quit: Leaving]
<mircoblitz> Hi, I am no programming noob, but a ruby noob and I need to finish some communication with the Jira6 REST-API. So far so good. But I don't get it managed to send a working POST to the API. Here are the parts on my code. Can someone please tell me what I am doing wron? http://pastebin.com/ygwmEYX5
<popl> >> "***".succ
<popl> Is eval-in broken or just ignoring me?
blaxter_ has joined #ruby
Es0teric has joined #ruby
echevemaster has quit [Remote host closed the connection]
Es0teric has quit [Max SendQ exceeded]
<Hanmac> popl: your string returns "***".succ #> "**+" it seems it only works if it looks like a version number
<popl> Thanks Hanmac.
<popl> I think eval-in is ignoring me.
<popl> I tried it in irb too.
ehaliewicz has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
<popl> OBJ_INFECT() # sounds sinister
<apeiros> Hanmac: String#pred makes no sense in terms of current String#succ implementation
mansi has joined #ruby
<apeiros> Hanmac: it's incorrect that there's no meaningful String#pred implementation.
timonv_ has quit [Ping timeout: 252 seconds]
<Hanmac> yeah thats what i tryed to show with my samples
<apeiros> popl: eval-in is moody in recent days
<popl> Moody does not compute. What's wrong with it?
ferr has joined #ruby
<apeiros> no idea, it's not my bot
<popl> Whose bot is it?
<Hanmac> its charliesome 's bot
dik_dak has quit [Quit: Leaving]
<popl> I was about to ask if it belonged to one of the absentee founders. ;P
<popl> but I reminded myself there's only one founder of #ruby
mikepack has quit [Ping timeout: 260 seconds]
<popl> "
mansi has quit [Ping timeout: 252 seconds]
speakingcode has quit [Ping timeout: 276 seconds]
jibi has quit [Ping timeout: 264 seconds]
wildroman2 has joined #ruby
<joonty> apeiros, Hanmac, popl: I have my own eval bot if you would like?
<apeiros> only if it has provisions against channel spamming
<joonty> apeiros: no, it's pretty basic atm
<apeiros> then preferably not
<joonty> but it's open sourced
jibi has joined #ruby
<joonty> so you could grab the code and play with it
fella5s has joined #ruby
Zai00 has joined #ruby
<nvrch> :(
<nvrch> miss
<apeiros> I don't really have the time to play with foreign projects
<charliesome> is my broken again
<charliesome> my bot*
<apeiros> charliesome: yopp
<charliesome> fuckckckck
<charliesome> ok
<charliesome> lets fix this for good
virt|away has quit [Read error: Connection reset by peer]
TMM has joined #ruby
<charliesome> fuck using activerecord in a threaded program it ends in tears
cascalheira has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
<apeiros> worker thread?
ArchBeOS-work has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
kenndel_ has joined #ruby
sassamo has joined #ruby
virt|away has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
ArchBeOS-work has joined #ruby
Hobogrammer has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros> def ar(&job); @ar_jobs << job); end
chomskiii has joined #ruby
mircoblitz has quit [Quit: mircoblitz]
<apeiros> ar do SomeModel.whatever end
<charliesome> apeiros: oh yes that could work
<charliesome> i'll do that
Xeago has joined #ruby
<charliesome> less effort
<apeiros> well, if you need the return value it gets more complex, but I think I've built stuff like that
ahmedelgabri has quit [Remote host closed the connection]
mostlybadfly has quit [Ping timeout: 245 seconds]
<Hanmac> charliesome: i have a feature request for the bot ... would it be possible to allow that i can send the bot private messages (so it does not answer into the channel?)
njs126 has quit [Read error: Operation timed out]
Xeago has quit [Read error: Connection reset by peer]
<apeiros> charliesome: but I thought AR was thread safe? ping tenderlove about it?
mgorbach has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Operation timed out]
Xeago has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Xeago has quit [Remote host closed the connection]
<charliesome> apeiros: maybe but I'd have to do some serious digging to make a useful bug report
wdiechmann has quit [Quit: wdiechmann]
robbyoconnor has joined #ruby
<charliesome> i'll get around to it at some point
phansch has joined #ruby
kenndel has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
mostlybadsky has joined #ruby
wdiechmann has joined #ruby
rootshift has joined #ruby
njs126 has joined #ruby
<apeiros> charliesome: good luck ;-)
wildroman2 has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 272 seconds]
mgorbach has joined #ruby
<popl> put the source on github, charliesome :)
<charliesome> popl: who's to say it isn;t?
<charliesome> (it's private)
TejasDinkar has joined #ruby
<popl> Sorry, I meant to imply that you should make it publicly available on github (my bad).
m00nlight has quit [Quit: Konversation terminated!]
Xeago has quit [Ping timeout: 245 seconds]
gja has quit [Ping timeout: 245 seconds]
maycon has quit [Ping timeout: 252 seconds]
AndChat| has joined #ruby
<charliesome> i'm considering it
<charliesome> it has a bunch of creds in it at the moment lol
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
camilasan has quit [Remote host closed the connection]
<charliesome> >> 1+2
timonv has joined #ruby
<eval-in> charliesome => 3 (https://eval.in/90296)
<popl> >> "***".succ
<eval-in> popl => "**+" (https://eval.in/90297)
<popl> \o/
lkba has quit [Ping timeout: 265 seconds]
<popl> WICKED
ferr has quit [Read error: Connection reset by peer]
<popl> >> "
<eval-in> popl => "
<popl> haha
<charliesome> Hanmac: so the reason you can't privmsg it right now is it uses the channel to determine the language it should use
<Hanmac> oh ok that makes sense
ahmedelgabri has joined #ruby
chrisseaton has joined #ruby
camilasan has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
AndChat| has quit [Ping timeout: 245 seconds]
Fractional has joined #ruby
<Fractional> Could someone tell me why these sorting algorithms return wrong? https://gist.github.com/Freddan962/f5704bdeed0325405fa6
<Fractional> They all return the same array.
amacgregor_ has quit [Quit: Leaving]
nanoyak has quit [Quit: Computer has gone to sleep.]
<Fractional> # => [1, 2, 4, 5, 6, 3, 77]
Bekey has joined #ruby
<apeiros> Fractional: because you don't modify the array
aaronmcadam has joined #ruby
<Bekey> Bit of a first timer... http://pastebin.com/XHU5rU1g what's the obvious mistake here?
<apeiros> x = [1,2,3]; a = x[0]; b = 9 # <-- this does not modify x[0]
<Fractional> Apeiros: Then why do some of the values swap?
<apeiros> Bekey: `Python27/Scripts/custom/games.rb` <-- funny…
<Bekey> apeiros, skype bot :p
<mikecmpbll> hehh
Fractional has quit [Remote host closed the connection]
<apeiros> Fractional: they don't. only in selectionsort you actually modify the array.
<Bekey> apeiros, runs through a python library, but essentially only opens up files like .sh and .rb and listens for print messages
<mikecmpbll> Bekey: {"Bekey"} is a syntax error
jonathanwallace has joined #ruby
<Bekey> oh I need a key because it's a hash not an array.. mikecmpbll ?
<mikecmpbll> yes.
<Bekey> Thank you!
wdiechmann has quit [Quit: wdiechmann]
<mikecmpbll> do you want a hash, or an array?
<apeiros> Bekey: {"Bekey"} is not a valid hash
<Bekey> more of an array really
<apeiros> ah
Hanmac1 has joined #ruby
<apeiros> mikecmpbll: already answered
<mikecmpbll> then use ["Bekey"]
<apeiros> -:
<mikecmpbll> :)
wdiechmann has joined #ruby
marcgg_ has joined #ruby
<Bekey> Thank you, another question.. Any idea how sevabot might pass arguments to my .rb files? Like "!command <arg>"
jonathanwallace has quit [Client Quit]
Hanmac has quit [Ping timeout: 245 seconds]
meatherly has joined #ruby
MrPopinjay has joined #ruby
DaZ has quit [Read error: Operation timed out]
<MrPopinjay> Hi all. Can someone explain how the $1 after a regexp works please? Or tell me what they are called so I can google it? :)
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> MrPopinjay: it's a C function which pretends to be a global variable
<MrPopinjay> Hi again apeiros
mojjojo has quit [Quit: mojjojo]
<MrPopinjay> So effectly when we do a regexp we get a load of global variables that consist of the parts of the regex? And they are replaced each time a new one is run?
marcgg has quit [Ping timeout: 245 seconds]
<DouweM_> yup
<mikecmpbll> the capture groups.
<MrPopinjay> Sounds fiddly. I'm not a huge fan of global variables
<mikecmpbll> but like apeiros said, they're not global variables.
<apeiros> mikecmpbll: not just. there's also $`, $', $& and $~
<MrPopinjay> Oh?
<mikecmpbll> they're defined per thread
<MrPopinjay> Ah, that's nicer
<apeiros> they're afaik even more local than thread
<mikecmpbll> yeah i dunno too much about them tbh
<apeiros> they've some kind of stackframe scoping too. I haven't bothered to figure the details.
<MrPopinjay> Do they have a name?
Jetchisel has joined #ruby
<apeiros> MrPopinjay: "globals"
<DouweM_> yeah, the stackframe scoping is the worst
<MrPopinjay> Thanks
<apeiros> MrPopinjay: and `ri Regexp` probably >> google
chrisseaton has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
telling_ is now known as telling
telling has quit [Changing host]
telling has joined #ruby
synergy_ has quit [Remote host closed the connection]
sLi_ has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
<Hanmac> MrPopinjay: http://www.ruby-doc.org/core-2.1.0/doc/globals_rdoc.html#label-Pre-defined+variables "$1 The Nth group of the last successful match. May be > 1. "
jonathanwallace has joined #ruby
mojjojo has joined #ruby
zeeraw has joined #ruby
<MrPopinjay> Thanks again everyone
vlad_starkov has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 276 seconds]
<MrPopinjay> Hanmac: Some of these look really useful!
jprovazn has quit [Quit: Leaving]
<Hanmac> hm the info about the variables is not complete ... some of them are read only and that should stand there in the list ...
freerobby has joined #ruby
sLi_ has quit [Ping timeout: 260 seconds]
<apeiros> $= is the most awesome horribly global variable
eka has joined #ruby
<Hanmac> ok for some it is standing there that they are read-only
krz has joined #ruby
vlad_starkov has joined #ruby
<apeiros> lol, 10 years of ruby and I didn't know about TRUE, FALSE and NIL
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<DouweM_> Why do those even exist
freerobby has quit [Ping timeout: 248 seconds]
h_kon has quit [Remote host closed the connection]
<apeiros> because… I have no f'ing clue
Hanmac1 has joined #ruby
DaZ has joined #ruby
<popl> whats OBJ_INFECT?
po10 has joined #ruby
<mikecmpbll> "The global value true is the only instance of class TrueClass and represents a logically true value in boolean expressions. "
<mikecmpbll> well that's not true
<mikecmpbll> >> TRUE.class
<eval-in> mikecmpbll => TrueClass (https://eval.in/90317)
<mikecmpbll> ironic
ahmedelgabri has quit [Remote host closed the connection]
<popl> thank you DouweM_
thenovices has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
<popl> Oh brother
<DouweM_> popl: ;)
<apeiros> mikecmpbll: um, yes, it's true
<apeiros> TrueClass only has a single instance
<tobiasvl> yeah it is true
<tobiasvl> irb(main):003:0> TRUE.object_id
<tobiasvl> => 2
<tobiasvl> irb(main):004:0> true.object_id
<tobiasvl> => 2
<mikecmpbll> but true, and TRUE?
<apeiros> that you can assign that instance to multiple variables doesn't change that
<mikecmpbll> orly
<mikecmpbll> yeah
<mikecmpbll> good point.
<apeiros> I assume TRUE existed before true
<apeiros> since true is a special syntax construct, while TRUE is an ordinary constant
<popl> DouweM_: This is my first time looking at the source code for MRI.
<LiohAu> when executing this line : "bundle_id = %x[defaults read '#{ENV["APP_BUNDLE_PATH"]}/Info.plist' CFBundleIdentifier]" it seems that "bundle_id" contains a newline char, how can I tell %x to do not include the new line ?
<Hanmac1> "TRUE was true before it was cool" ;P
<DouweM_> popl: it means that if your original object is tainted, so will the resulting object be
Hanmac1 is now known as Hanmac
<DouweM_> popl: rxr.whitequark.org will come in very handy
<apeiros> LiohAu: you can't. but you can do string manipulation on the result.
<LiohAu> apeiros: isn't there another way ?
<LiohAu> like not using %x but using something else that would not return the new line ?
<mikecmpbll> :\
nomenkun has joined #ruby
<apeiros> LiohAu: why'd you want another way?
<apeiros> what's wrong with processing the result you get?
<mikecmpbll> yeah that's from the module which also adds a method to remove the word "cat" from any string.
<mikecmpbll> heh..
<popl> the cats theme is becoming a serious problem
<LiohAu> because I don't like triming a string that comes from another binary
<apeiros> LiohAu: well, too bad then.
<popl> That sounds vaguely euphemistic.
<LiohAu> the \n is not part of the result, it's the shell that is adding it (i guess ?)
<apeiros> actually it is
<apeiros> `` returns the stdout as is
gwb3 has quit [Quit: leaving]
<apeiros> if it ends with a newline, it's part of the output
gwb3 has joined #ruby
<LiohAu> well you're right :(
<LiohAu> thought it was the shell
<apeiros> `ruby -e 'print "hi"'` # => "hi" -- no newline
cbetta is now known as cbetta_afk
thenovices has quit [Ping timeout: 276 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<apeiros> LiohAu: .chomp is trivial. jump over your shadow already
* apeiros off for lunch
wildroman2 has joined #ruby
timonv has quit [Remote host closed the connection]
Thanatermesis has joined #ruby
timonv has joined #ruby
DouweM_ has quit [Ping timeout: 245 seconds]
timonv has quit [Read error: Connection reset by peer]
blaxter_ is now known as blaxter
agjacome has joined #ruby
fdsdfs has joined #ruby
timonv_ has joined #ruby
yjmsf20_ is now known as yjmsf20
<LiohAu> apeiros: thx for chomp
h_kon has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
fdsdfs has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.2]
wald0 has joined #ruby
ferr has joined #ruby
mercwithamouth has joined #ruby
ferr has quit [Client Quit]
wdiechmann has quit [Quit: wdiechmann]
mengu has joined #ruby
alexherbo2 has joined #ruby
wdiechmann has joined #ruby
antonishen has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby
justsee has joined #ruby
alexfreidah has joined #ruby
ritek has joined #ruby
alol has quit [Ping timeout: 272 seconds]
gancl has quit []
antonishen has joined #ruby
ritek has quit [Changing host]
ritek has joined #ruby
ritek has quit [Changing host]
ritek has joined #ruby
alol has joined #ruby
darthdeus has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
darthdeus has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
lectrick has quit [Ping timeout: 264 seconds]
justsee has quit [Ping timeout: 246 seconds]
mengu has quit [Read error: No route to host]
alexfreidah has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
clevermatt has joined #ruby
lectrick has joined #ruby
ferr has joined #ruby
wildroman2 has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 248 seconds]
Fractional has joined #ruby
<Fractional> Sorry for leaving so abruptly Apeiros.
<Fractional> apeiros: How does it then change some of the number in the correct order but not all of them?
guinslym has quit [Ping timeout: 276 seconds]
camilasan has quit [Remote host closed the connection]
zoscoy has joined #ruby
albertgrala has joined #ruby
gregoriokusowski has quit [Ping timeout: 252 seconds]
mircoblitz has joined #ruby
Jetchisel has joined #ruby
MrZYX is now known as MrZYX|off
pushpak has joined #ruby
jprovazn has joined #ruby
Xeago has joined #ruby
iamjarvo_ has joined #ruby
ritek has quit [Read error: Connection reset by peer]
ExxKA has joined #ruby
ritek has joined #ruby
ExxKA has left #ruby [#ruby]
sensen has quit [Quit: leaving]
zegerjan has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
iamjarvo_ has quit [Ping timeout: 272 seconds]
maasha has joined #ruby
vim_shim_ has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
vim_shim_ has joined #ruby
rickruby has joined #ruby
diegoviola has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 252 seconds]
mircoblitz has quit [Quit: mircoblitz]
<maasha> I am a getting a uninitialized stream (IOError), so I must be missing something, but I fail to see what: https://gist.github.com/maasha/750431940c63b08b97a9
ocline``` has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 272 seconds]
rickruby has quit [Ping timeout: 272 seconds]
Aryasam has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
tvw has joined #ruby
<soahccc> #
habanany has joined #ruby
Wolland has quit [Remote host closed the connection]
Jdubs_ has joined #ruby
Hanmac has joined #ruby
phansch has quit [Quit: Leaving]
jlast has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jdubs has quit [Ping timeout: 246 seconds]
ahmedelgabri has joined #ruby
freerobby has joined #ruby
Aryasam has joined #ruby
camilasan has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
varfoo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
wdiechmann has quit [Quit: wdiechmann]
ss_ has joined #ruby
shime has joined #ruby
karupanerura is now known as zz_karupanerura
wdiechmann has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
habanany has quit [Max SendQ exceeded]
habanany has joined #ruby
_Andres has joined #ruby
mklappstuhl has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
thenovices has joined #ruby
diegoviola has quit [Ping timeout: 276 seconds]
diegoviola has joined #ruby
maroloccio has joined #ruby
_Andres has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
<shevy> dumdedum
thenovices has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
<popl> shevy: Who are you calling dumb?
mojjojo has joined #ruby
_Andres has joined #ruby
LekeFly has joined #ruby
dukz has quit [Remote host closed the connection]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
jtdowney has joined #ruby
mikepack has joined #ruby
soba has quit [Ping timeout: 276 seconds]
<shevy> ur mom!
<shevy> I tried to rewrite my ancient MUD that I once wrote in ruby (though not 100% finished it was)
jtdowney has quit [Remote host closed the connection]
<shevy> in the middle of it I gave up :(
mansi has joined #ruby
dkamioka has joined #ruby
_Andres has quit [Ping timeout: 246 seconds]
jtdowney has joined #ruby
fusi0n has joined #ruby
vlad_starkov has joined #ruby
jtdowney has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 272 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
mklappst_ has joined #ruby
TejasDinkar has quit [Quit: This computer has gone to sleep]
mostlybadsky is now known as mostlybadfly
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
dblessing has joined #ruby
XenoWolf has joined #ruby
TejasDinkar has joined #ruby
arefaslani has joined #ruby
wildroman2 has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
QKO has quit [Read error: Operation timed out]
jprovazn has quit [Read error: Operation timed out]
sassamo has joined #ruby
jprovazn has joined #ruby
jprovazn is now known as jprovazn_
QKO has joined #ruby
nari has joined #ruby
mikecmpbll has joined #ruby
diegoviola has joined #ruby
<shevy> hmmm guys
<shevy> in LPC, methods on objects will by default return 0 (should equal to false)
wald0 has quit [Ping timeout: 272 seconds]
<shevy> I mean even when the method does not exist
Thanatermesis has quit [Ping timeout: 260 seconds]
MrPopinjay has quit [Quit: leaving]
<shevy> in ruby, how to best simulate this behaviour? method_missing defaultung to return false? I dont really like that hmmmm
<shevy> *defaulting
iamjarvo has joined #ruby
mircoblitz has joined #ruby
wald0 has joined #ruby
monkegjinni has quit []
sassamo has quit [Ping timeout: 272 seconds]
<mircoblitz> Hi, I have an array full of strings and i want to join it to one String with an EOL (End of line) after each Line. How can I do this in ruby. I found that @arr.join("\n") does not work.
<mikecmpbll> shevy: foobar = obj.respond_to?(:method) && obj.method
<mikecmpbll> perhaps.
<mikecmpbll> mircoblitz: why doesn't it work?
<shevy> mikecmpbll hmm let me think
<mircoblitz> mikecmpbll: It joins, but when I output it, tehre are no EOL's
<shevy> mikecmpbll that way I could avoid having to use method_missing() ?
<mikecmpbll> shevy: yes
<shevy> mircoblitz what is an EOL
<mikecmpbll> shevy: alternatively you could leverage active support's try()
<workmad3> mircoblitz: 'no EOLs' means what?
<shevy> the only EOL I know is "\n"
umje has joined #ruby
<mircoblitz> EOL = End of line or Line break
<umje> where is the ruby root on a debian?
<shevy> umje in hell!!!
<workmad3> mircoblitz: that the string is one line with \n between them, because you're outputting with something that inspects the string?
mechanicles has joined #ruby
<shevy> umje what precisely do you mean with "root" in this context? the --prefix option to where it was installed?
<mikecmpbll> i'd put money on that
iamjarvo has quit [Ping timeout: 252 seconds]
DouweM has quit [Quit: Leaving...]
<umje> "Copy sample scm.yml file from the plugin directory to #{RAILS_ROOT}/config/ and modify it:"
<shevy> umje "gem env" output should usually give that latter path
<umje> Where can I find the config folder so to say
phutchins has joined #ruby
<shevy> RAILS_ROOT is a custom constant
jprovazn_ is now known as jprovazn
<mircoblitz> I do a puts with the string. I haveno clue it that does manipulate it
<Hanmac> umje oh its a #rubyonrails question ;P
<shevy> unlikely that it has to do with debian
phansch has joined #ruby
<workmad3> mircoblitz: and what does that give as output?
<shevy> I would assume that RAILS_ROOT points to the base directory where the rails app resides
<workmad3> mircoblitz: lots of separate lines?
TejasDinkar has quit [Quit: This computer has gone to sleep]
<mircoblitz> workmad3: Just one line with all elements of the string
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
TejasDinkar has joined #ruby
<workmad3> mircoblitz: ok, gonna need to see some code then pls
* Hanmac has enough from rails ... the next user that wants something about rails in this channel doesn't get any support form me anymore
<workmad3> mircoblitz: gist.github.com
<mircoblitz> Arrrgghhh
dangerousdave has joined #ruby
arefaslani has quit [Remote host closed the connection]
<mircoblitz> Sry my bad. got it. Was to dumb for some minutes. I have overseen a line of code a collegue added. there he cutted out the /n
<mircoblitz> Sry for bothering
<workmad3> haha
Aryasam has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Remote host closed the connection]
<workmad3> that would do it :D
<mircoblitz> I felt so puzzled :-)
mojjojo has quit [Quit: mojjojo]
arefaslani has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
DouweM has joined #ruby
dkamioka has quit [Remote host closed the connection]
<shevy> GOOD THAT IT WAS A COLLEAGUE
wildroman2 has joined #ruby
<shevy> IF IT WOULD HAVE BEEN YOU, EVIL LAUGHTER WOULD BE IN THE ROOM NOW!
freezey has joined #ruby
huttan- has joined #ruby
Thanatermesis has joined #ruby
arefaslani has quit [Remote host closed the connection]
jtdowney has joined #ruby
jtdowney has quit [Max SendQ exceeded]
kiri has quit [Ping timeout: 248 seconds]
dukz has joined #ruby
puppeh has joined #ruby
jtdowney has joined #ruby
<mikecmpbll> lmfao
dkamioka has joined #ruby
jtdowney has quit [Max SendQ exceeded]
freezey has quit [Remote host closed the connection]
browndawg has joined #ruby
meatherly has joined #ruby
mojjojo has joined #ruby
Xiti has quit [Quit: Leaving]
<TheLarkInn> Good morning #ruby!
aagdbl1 has quit [Quit: Leaving]
ferr has quit [Read error: Connection reset by peer]
Bira has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
meatherly has quit [Ping timeout: 248 seconds]
amritanshu_RnD has joined #ruby
kreantos has quit [Ping timeout: 252 seconds]
Fractional has quit [Remote host closed the connection]
jlast has joined #ruby
kiri has joined #ruby
dkamioka has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
huttan- has quit [Ping timeout: 276 seconds]
marcofernandez has quit [Ping timeout: 246 seconds]
DouweM has quit [Quit: Leaving...]
kreantos has joined #ruby
pedda has joined #ruby
freerobby has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
yalue has joined #ruby
ewnd9_ has quit [Ping timeout: 276 seconds]
danshultz has joined #ruby
LekeFly has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
Bofu2U has quit [Quit: I outta here.]
<shevy> hi Inn
shaunbaker has quit [Remote host closed the connection]
decoponio has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
sbos99 has joined #ruby
Rydekull has quit [Changing host]
Rydekull has joined #ruby
Bofu2U has joined #ruby
dukz has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
* Hanmac still knows the greeting text from the Tavern is Diablo I
Wolland has joined #ruby
tkuchiki has joined #ruby
thenovices has joined #ruby
mircoblitz has quit [Quit: mircoblitz]
habanany has quit [Ping timeout: 260 seconds]
julweber has joined #ruby
dukz has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
marcofernandez has joined #ruby
ewnd9_ has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
sailias has joined #ruby
thenovices has quit [Ping timeout: 245 seconds]
ringaroses has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
Signum has left #ruby [#ruby]
TejasDinkar has quit [Quit: This computer has gone to sleep]
dukz has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
ghr has joined #ruby
phansch has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
jacobat_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
marcofernandez has quit [Ping timeout: 245 seconds]
jacobat has quit [Ping timeout: 276 seconds]
relix has joined #ruby
razibog has joined #ruby
dkamioka has joined #ruby
razibog has quit [Client Quit]
Xeago has joined #ruby
jkamenik has joined #ruby
albertgrala has quit [Quit: Leaving]
habanany has joined #ruby
<puppeh> msg NickServ VERIFY REGISTER puppeh xwnfrzwyjwmm
<puppeh> oops :P
puppeh has left #ruby ["Leaving..."]
dkamioka has quit [Remote host closed the connection]
fedez77 has joined #ruby
phansch has joined #ruby
Aryasam has joined #ruby
g0bl1n has joined #ruby
<ArchBeOS-work> How do I post data to an existing sinatra route within another sinatra route? i dont want to re-write the route since the code in it works perfectly, and the calling route is just a "batch" version of the call
Liothen has joined #ruby
sassamo has joined #ruby
ahmedelg_ has joined #ruby
dkamioka has joined #ruby
phutchins has quit [Quit: Lost terminal]
habanany has quit [Ping timeout: 245 seconds]
huttan- has joined #ruby
ahmedelgabri has quit [Ping timeout: 245 seconds]
funburn has quit [Quit: funburn]
<maasha> puppeh hurray for password reuse
dkamioka has quit [Remote host closed the connection]
<shevy> maasha haha
<shevy> as if anyone would really care ;P
sassamo has quit [Ping timeout: 276 seconds]
yasushi has joined #ruby
jovon has joined #ruby
mircoblitz has joined #ruby
mircoblitz has quit [Client Quit]
pranny has quit [Quit: Leaving.]
Lewix has joined #ruby
<maasha> shevy: at least you can get a really cool nickname ...
ewnd9_ has quit [Ping timeout: 272 seconds]
<maasha> </sarcasm>
<shevy> puppeh sounds slang
shaunbaker has joined #ruby
<shevy> like shevayh
<shevy> maasha sounds indian
ixti has joined #ruby
thejoecarroll has quit [Quit: ZNC - http://znc.in]
varfoo has quit [Quit: WeeChat 0.4.0]
mechanicles has quit [Remote host closed the connection]
psst has quit [Disconnected by services]
<maasha> OK, so I am using named piped for IPC, but it hangs more often than not (completes ok, when not hanging): https://gist.github.com/maasha/fb5edb93ea40788e6783
e62 has joined #ruby
psst has joined #ruby
<maasha> workmad3: ^^ class Pipe again ... :o)
mercwithamouth has joined #ruby
<shevy> when I have a choice between method_missing() returning false and nil (either of one)
psst is now known as Guest7655
Guest7655 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
<shevy> what would be better? I could default to nil, or to false, but perhaps false conflicts with other methods already defined, or perhaps nil conflicts with other methods already defined
marcofernandez has joined #ruby
thejoecarroll has joined #ruby
Guest7655 has joined #ruby
<shevy> I suppose true and false both contain more information than nil from a design point of view
<shevy> as true and false would be a togglable switch state (on / off), nil however would be more like off but not even similar to off
MrZYX|off is now known as MrZYX
sailias has quit [Ping timeout: 252 seconds]
<Hanmac> maasha: why using mkfifo and not IO::pipe ?
huttan-_ has joined #ruby
brtdv has quit []
<apeiros> 14:16 shevy: I suppose true and false both contain more information than nil from a design point of view
puppeh has joined #ruby
<apeiros> interesting statement
huttan- has quit [Ping timeout: 260 seconds]
puppeh has left #ruby ["Leaving..."]
<maasha> Hanmac: I read somewhere that anonymous pipes (i.e. IO::pipe) is for communication between parent and child processes only.
camilasa_ has quit [Remote host closed the connection]
<apeiros> never really considered it, but I think intuitively I'd have categorized nil as a scalar too. curious whether that holds.
huttan-_ has quit [Read error: Connection reset by peer]
marcofernandez has quit [Quit: 전 이만 갑니다.]
<maasha> Hanmac: and I have no idea is IO::pipe will work with Parallel.
<maasha> s/is/if
<Hanmac> maasha: its used like that in the sample ... but i think it works without child processsess too ... (hm you could split your Pipe class into many little child processes but i dont its what you want)
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
<shevy> apeiros yeah I did not think about it so far yet, but I want to simulate LPC, and I am not sure how to do it. mikecmpbll gave me one way, the other way is with method_missing defaulting to false. But my MUD-objects already have some methods ... some can return true, some false, if they return false, the method_missing false would possibly mask that... perhaps I could let method_missing return nil instead hmm
ringaroses has quit [Quit: Leaving]
<shevy> I think I am going back to pencil and paper and draw a structure
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
drumusician has joined #ruby
huttan- has joined #ruby
senayar has quit [Remote host closed the connection]
Speed has joined #ruby
ahmedelg_ has quit [Remote host closed the connection]
<maasha> Hanmac: anyways, I suspect there is a design flaw causing the hang because the pipe is not being cleared - and I suspect that would be the same with mkfifo or IO::Pipe (if the latter works in this case)
<maasha> Hanmac: but sometimes it works - so that is a start.
<maasha> _must_ _be_ _positive_
kreantos has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
kreantos has joined #ruby
Virtualize has joined #ruby
ringaroses has joined #ruby
Virtualize has quit [Client Quit]
mark_locklear has joined #ruby
ahmedelgabri has joined #ruby
sLi_ has joined #ruby
jlast has joined #ruby
zegerjan has quit [Quit: WeeChat 0.4.2]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
freerobby has joined #ruby
askz has joined #ruby
Xeago_ has joined #ruby
RaCx has joined #ruby
julweber has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
Fractional has joined #ruby
kpshek has joined #ruby
sLi_ has quit [Ping timeout: 245 seconds]
krawchyk has joined #ruby
lioninawhat has joined #ruby
sassamo has joined #ruby
senayar has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
breakingthings has joined #ruby
clamstar has joined #ruby
skattyadz has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 252 seconds]
dennis__ has joined #ruby
kaldrenon has joined #ruby
Gonzih has joined #ruby
deavidsedice has quit [Ping timeout: 252 seconds]
coder_neo has joined #ruby
lioninawhat has quit [Remote host closed the connection]
mary5030 has joined #ruby
thenovices has joined #ruby
pu22l3r_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
duggiefresh has joined #ruby
<maasha> Hanmac: IO.pipe works nicely
Xeago has joined #ruby
pu22l3r_ has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
Lorn_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Hanmac> maasha: did you already updated the gist with IO.pipe?
Sawbones has joined #ruby
ewnd9_ has joined #ruby
klaut has joined #ruby
<maasha> Hanmac: one sec
ringaroses has quit [Quit: Leaving]
pu22l3r_ has quit [Remote host closed the connection]
julweber has joined #ruby
<maasha> Hanmac: bonus: it seems to be not hanging anymore and the code is cleaner. However, it appears to be twice as slow?
pu22l3r_ has joined #ruby
pu22l3r_ has quit [Client Quit]
thenovices has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
<Hanmac> maasha: what about that ? @commands.each_cons(2) {|c_in,c_out| c_out.input, c_in.output = IO.pipe }
RaCx has quit [Quit: Computer has gone to sleep.]
<maasha> Hanmac: magic :o) - my knowledge Ruby methods is too limited
bean has joined #ruby
pu22l3r_ has joined #ruby
duggiefresh has quit [Remote host closed the connection]
mary5030 has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
popl has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
kpshek has quit []
brtdv has joined #ruby
Aryasam has quit [Quit: Bye]
burlyscudd has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
<maasha> Hanmac: gist updated. I think it looks good :o)
huttan- has quit [Ping timeout: 272 seconds]
clevermatt has quit [Remote host closed the connection]
<shevy> hehe
<shevy> "I think it looks good"
<shevy> I will top this
<shevy> "My code is super awesome"
<Vitor_> hehe
IceyEC has joined #ruby
clevermatt has joined #ruby
arefaslani has joined #ruby
<maasha> shevy: while humming "with a little help from my friends" ...
wildroman2 has quit [Remote host closed the connection]
<maasha> though I can't stand Beatles
maycon has joined #ruby
<shevy> I liked yellow submarine
<shevy> Imagine all the people was also a good one
<shevy> the melodies are kinda super simple though
_5kg has quit [Ping timeout: 265 seconds]
mengu has quit [Remote host closed the connection]
<shevy> "Ohrwurm" in german... catchy tune... I don't like such simple structures too much
_5kg has joined #ruby
krawchyk has quit []
Virtualize has joined #ruby
<Hanmac> something that crawls into your brain ... dies ... and then drives you crazy ;P
krawchyk has joined #ruby
<shevy> hehe
<shevy> yeah
<shevy> maasha, you see, german is a kinda sick language
<shevy> Ohr = ear, wurm = worm
tkuchiki has joined #ruby
<maasha> Hanmac: toxoplamosis
camilasan has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pu22l3r_ has quit [Remote host closed the connection]
kpshek has joined #ruby
mojjojo has quit [Quit: mojjojo]
pu22l3r has joined #ruby
<cout> toxo is awesome
mojjojo has joined #ruby
mikecmpbll has joined #ruby
<shevy> lol
<shevy> lsd is awesome
<shevy> now combine lsd and toxoplasmosis
danshultz has quit [Read error: Connection reset by peer]
<shevy> PURE AWESOMENESS
danshultz has joined #ruby
<cout> lsd is not awesome
<shevy> :<
ahmedelgabri has quit [Remote host closed the connection]
<Hanmac> shevy do you know the game "antichamber" ? ;P
Lewix has quit [Remote host closed the connection]
<shevy> hmm no
<shevy> only the movie the Cube
ffranz has joined #ruby
<Hanmac> shevy: http://cheezburger.com/7996046592 << also read the comments about
maoko has joined #ruby
Lewix has joined #ruby
mengu has joined #ruby
<Hanmac> Quote: "Portal uses logic to solve puzzles. This game throws logic out of the window and asks you to solve the puzzles.  - Oh also, the window is now a wall."
<shevy> can a module add instance variables to a class?
maycon has quit [Ping timeout: 246 seconds]
<shevy> when it is mixed in
<cout> sure
pranny has joined #ruby
Es0teric has joined #ruby
<Hanmac> in ruby everything can do everything ... and also can be everything ;D
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
Es0teric has quit [Max SendQ exceeded]
Lewix has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
Fractional has quit [Remote host closed the connection]
<shevy> hmm
thenovices has joined #ruby
Sawbones has quit []
vlad_starkov has joined #ruby
<zxd> http://pastebin.com/bREgu8Hi prints ERROR: can't convert String into Integer
sbos99 has quit [Quit: Leaving]
pranny has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
coderhs has joined #ruby
bluenemo has joined #ruby
<Hanmac> zxd ni what line?
<Hanmac> *in
<zxd> version = rvm_user['version'] || node['rvm']['version']
mlpinit has joined #ruby
samsonasu has joined #ruby
<zxd> it could be that this code is missing alot of data to make a conclusion of why this would be
<Hanmac> then either rvm_user or node or node['rvm'] is an Array and not a Hash
Gonzih has quit [Ping timeout: 272 seconds]
jeskola has joined #ruby
<cout> hmm, an Alot of Data...
CogitoErgoSum has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<zxd> Hanmac: he did use Array(node['rvm']['user_installs']).each does that have anything to do with the problem?
Bira has joined #ruby
dkamioka has joined #ruby
Megtastique has joined #ruby
<zxd> Array
mlpinit has quit [Remote host closed the connection]
<Hanmac> hm no it should not ... depending what node['rvm']['user_installs'] was defore
mlpinit has joined #ruby
samsonasu has quit [Ping timeout: 248 seconds]
<shevy> Hanmac, is there a way to include instance variables that are initialize in a module somehow, upon include time?
<shevy> well i got it mostly, I can just call another method
<workmad3> shevy: sure, 'def self.included(base); base.instance_variable_set(:@whatever, "hi there")'
<shevy> ohhhh
<Hanmac> shevy the module can have an initialize method too ... but then the class initialize method does need to call super
<shevy> lemme try the self.included one, that would seem the most elegant
<workmad3> shevy: that would obviously set instance variables on the class you included it in though
<workmad3> shevy: not set them on all created instances (which would require an initialize method)
lioninawhat has joined #ruby
lioninawhat has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
lioninawhat has joined #ruby
freerobby has joined #ruby
dkamioka has quit [Ping timeout: 272 seconds]
coder_neo has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
Gonzih has joined #ruby
lioninawhat has quit [Remote host closed the connection]
shaunbaker has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
marr has quit [Ping timeout: 252 seconds]
razibog has joined #ruby
MarcWeber has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
pranny has joined #ruby
<MarcWeber> which module is providing 4.days so that I can subtsract from now easily?
<workmad3> MarcWeber: that's part of activesupport
<shevy> I think this is in Activ... ah :)
<workmad3> MarcWeber: it also has 4.days.ago
bluenemo has quit [Remote host closed the connection]
<workmad3> MarcWeber: rather than having to do Time.now - 4.days
freerobby has joined #ruby
<MarcWeber> Time.now - 4.days would be just good enough..
burlyscudd has quit [Quit: Leaving.]
fantazo has joined #ruby
Gonzih has quit [Ping timeout: 245 seconds]
t0m0_ has joined #ruby
shime has quit [Ping timeout: 272 seconds]
<t0m0_> Hey guys
<t0m0_> does anyone here use vim as an IDE?
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<MarcWeber> t0m0_: Just put your specific question.
<MarcWeber> Eventually join #vim ..
arefaslani has quit [Ping timeout: 245 seconds]
<t0m0_> I'm aleady on #vim
yasushi has quit [Remote host closed the connection]
<t0m0_> no one is on that could help :(
wildroman2 has joined #ruby
chrisseaton has joined #ruby
pixelgremlins has quit [Read error: Connection reset by peer]
<t0m0_> I'm having issues with the neocomplete plugin and it loading the 'rails' candidates via rubyComplete
RaCx has quit [Quit: Computer has gone to sleep.]
<MarcWeber> neocomplete also has github page (if you think its a bug) - otherwise try the mailinglist of Vim - its very helpful often - but may require to wait up to 2 days.
g3orge has joined #ruby
timonv_ has quit [Remote host closed the connection]
peregrin_ has joined #ruby
<t0m0_> I don't think it's a bug
Rennex_ is now known as Rennex
sailias has joined #ruby
mansi has joined #ruby
arefaslani has joined #ruby
Megtastique has quit []
<Hanmac> t0m0_: it could be a rails bug ;P
jlast has quit [Remote host closed the connection]
pixelgremlins has joined #ruby
<t0m0_> :P nah definitely me being a nub
<t0m0_> It's picking up the ruby stuff
<t0m0_> and I can get rails candidates by Ctrl X Ctrl O
wald0_ has joined #ruby
<t0m0_> but the fuzzy autocomplete never loads them automatically
<t0m0_> I can link to my vimrc if anyone has the time to help me out.
wald0_ has quit [Client Quit]
skattyadz has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
yacks has joined #ruby
duggiefresh has joined #ruby
_maes_ has joined #ruby
lioninawhat has joined #ruby
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ruby
meatherly has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
pixelgremlins_ba has joined #ruby
burlyscudd has joined #ruby
DouweM has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
nifty has joined #ruby
momomomomo has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
pixelgremlins has quit [Ping timeout: 246 seconds]
nicklink483 has joined #ruby
nicklink483 is now known as godd2
<shevy> eeeks vim
<godd2> Eeeek: The Cat
lioninawhat has quit [Ping timeout: 245 seconds]
mlpinit_ has joined #ruby
gja has joined #ruby
<Hanmac> using rails in vim ... yet another way to make the own life more painful ;P
ahmedelgabri has joined #ruby
<workmad3> Hanmac: nothing wrong with rails + vim :P
Bekey has quit [Quit: http://i.imgur.com/ZPFpVHr.gif]
timonv has joined #ruby
RaCx has joined #ruby
sLi_ has joined #ruby
iamjarvo has joined #ruby
t0m0_ has quit []
mlpinit has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
shredding has joined #ruby
ahmedelgabri has quit [Ping timeout: 252 seconds]
<shevy> I am happy, gcc 4.8.2 has been compiled and seems to work
<shevy> now only my arch nemesis, glibc, is left to be tackled ...
Jdubs has joined #ruby
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
angusiguess has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
huttan- has joined #ruby
mikepack has joined #ruby
meatherly has joined #ruby
julweber has quit [Remote host closed the connection]
subbyyy_ has joined #ruby
yasushi has joined #ruby
dblessing has joined #ruby
coder_neo has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
XenoWolf has quit [Remote host closed the connection]
LekeFly has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
huttan- has quit [Ping timeout: 272 seconds]
tt1187 has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
nateberkopec has joined #ruby
<Takumo> So I've got an rspec test to check that when an API returns invalid JSON it throws an Error
<Takumo> however the test is failing because the error is thrown, even though I have expect(@client.method).to raise_exception MyGem::Error
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
freezey has joined #ruby
kpshek has quit []
coderhs has quit [Read error: Connection timed out]
deavid has joined #ruby
<momomomomo> Takumo: are you looking for raise_error
h_kon has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 240 seconds]
kotk has joined #ruby
<momomomomo> ah, never mind, they're aliased
St_Marx has joined #ruby
coderhs has joined #ruby
skattyadz has left #ruby [#ruby]
MattStratton has joined #ruby
Targen has quit [Ping timeout: 272 seconds]
ahmedelgabri has joined #ruby
h_kon has joined #ruby
bjhaid has joined #ruby
<Takumo> Failure/Error: expect(@client.get("/api/v1/invalid")).to raise_exception Unfuddled::Error
<Takumo> Unfuddled::Error:
jlast has joined #ruby
<Takumo> 757: unexpected token at 'Invalid Response'
ss_ has quit [Remote host closed the connection]
<Takumo> That's what I'm getting from rspec, which seems really... odd
h_kon has quit [Remote host closed the connection]
ss_ has joined #ruby
wonderworld has joined #ruby
BaconOverflow has joined #ruby
fedesilva has joined #ruby
Bira has joined #ruby
phansch has quit [Quit: Leaving]
Cephalostrum has joined #ruby
mojjojo has quit [Quit: mojjojo]
CogitoErgoSum has quit [Ping timeout: 252 seconds]
<MrZYX> try expect { @client.get("/api/v1/invalid") }.to raise_exception Unfuddled::Error
urbanslug is now known as LjL-Alps
CogitoErgoSum has joined #ruby
<Takumo> ah yes
gja has quit [Quit: This computer has gone to sleep]
kiri has quit [Ping timeout: 245 seconds]
jeskola has quit [Quit: Leaving]
LjL-Alps has quit [Disconnected by services]
phansch has joined #ruby
jacobat_ is now known as jacobat
<Takumo> that did it MrZYX , should've remembered to pass a block for that
<wonderworld> hi, i am new to ruby. i want to include HTML from an external file. it works, but ruby escapes the HTML so it doesn't show up correct in the browser. this is what i did: <div id="custom-header"><%= IO.read("/tmp/page.htm") %></div> . results in: <div id="custom-header">&lt;h1&gt;ok&lt;/H1&gt;</div> how would i disable the escaping of the file? tnx.
mojjojo has joined #ruby
zipper has joined #ruby
zipper is now known as urbanslug
<MrZYX> <%!= %>
<MrZYX> (I assume s/ruby/rails/)
kiri has joined #ruby
subbyyy_ has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ss_ has quit [Ping timeout: 272 seconds]
<wonderworld> MrZYX: yes, its Ruby on Rails
kreantos has quit [Ping timeout: 272 seconds]
<MrZYX> in the future check #rubyonrail
<MrZYX> s
<wonderworld> ok
vlad_starkov has quit [Remote host closed the connection]
<Takumo> MrZYX: Let's see how my test coverage goes now, should be 100% now
arefasla_ has joined #ruby
shime has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
arefaslani has quit [Ping timeout: 246 seconds]
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
kobain has joined #ruby
kpshek has joined #ruby
mlpinit has joined #ruby
wildroman2 has quit [Remote host closed the connection]
kreantos has joined #ruby
browndawg has quit [Quit: Leaving.]
arefaslani has joined #ruby
nari has quit [Read error: Operation timed out]
jedimind has joined #ruby
jonathanwallace has quit [Quit: ZNC - http://znc.in]
arefasl__ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mklappst_ has quit [Remote host closed the connection]
arefasla_ has quit [Ping timeout: 246 seconds]
gja has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nwertman has joined #ruby
ahmedelgabri has quit []
OdNairy has joined #ruby
arefaslani has quit [Ping timeout: 260 seconds]
mlpinit_ has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
chrisseaton has quit []
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
coder_neo has quit [Ping timeout: 252 seconds]
ahmedelgabri has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
wildroman2 has joined #ruby
momomomomo has joined #ruby
kiri has quit [Read error: Connection timed out]
kpshek has quit []
mlpinit has quit [Ping timeout: 246 seconds]
kiri has joined #ruby
<shevy> 100% tests
<shevy> PERFECTIon
<shevy> NO BUGS
shaunbak_ has joined #ruby
huttan- has joined #ruby
interactionjaxsn has joined #ruby
<Takumo> 99.13% so far, but the untested method isn't used and probably won't be.
jonathanwallace has joined #ruby
<sickweezle> AUGH! Necrotic code! Kill it! KILL IT!
<sickweezle> Don't let it eat your brains!
stryek has joined #ruby
Megtastique has joined #ruby
<momomomomo> >:o won't 100% coverage eat your brains/
CogitoErgoSum has quit [Ping timeout: 276 seconds]
CogitoErgoSum has joined #ruby
julweber has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
<shevy> yes
<shevy> better aim for 99,99% coverage only
julweber has quit [Remote host closed the connection]
<momomomomo> or better yet, be pragmatic about it
<momomomomo> and don't aim for 100% coverage
julweber has joined #ruby
Pixels_ has joined #ruby
devdazed has quit [Ping timeout: 265 seconds]
<shevy> can I go for 0.1% coverage?
Hobogrammer has quit [Ping timeout: 272 seconds]
huttan- has quit [Ping timeout: 272 seconds]
tobago has joined #ruby
Pixels has quit [Ping timeout: 246 seconds]
<zxd> Hanmac: if I remove rvm user_installs hash from this file it dosen't crash with can't convert string into integer, but as you can see it is hash is it not? http://pastebin.com/3Pg469uL it's json format
devdazed has joined #ruby
tobago has quit [Remote host closed the connection]
<zxd> it isn't array is it?
<apeiros> zxd: that paste is not json
<Hanmac> json strings should be parsed with json
<apeiros> not valid one at least
deavid has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
tylersmith has joined #ruby
<zxd> the editor removed the quotes maybe that's what's missing
<apeiros> odd editor…
vlad_starkov has joined #ruby
burlyscudd has joined #ruby
<shevy> that's what you get when you use emacs
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
duggiefresh has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
arefasl__ has quit [Remote host closed the connection]
<Takumo> shevy: I use emacs, its wonderful :)
<zxd> it's a weird json higlight syntax in vim the double quotes can only be seen when I hover my cursor over the line
duggiefresh has joined #ruby
<Takumo> switched to it from Vi
<zxd> very annoying in fact going to remove that now
<DouweM> even then, shouldn't copying include the quotes :/
himsin has quit [Quit: himsin]
MatthewsFace has joined #ruby
renklaf has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Cephalostrum has joined #ruby
<zxd> the terminal dosen't see it I copied with the Mice
samsonasu has joined #ruby
<shevy> how many mice do you have
rippa has joined #ruby
* apeiros off for commute
<shevy> I keep a few in reserve myself :-)
shime has quit [Ping timeout: 248 seconds]
* Hanmac has somewhere reserve mice too ... and a mace also somewhere ;D
vlad_starkov has quit [Ping timeout: 252 seconds]
wald0 has quit [Quit: Lost terminal]
<zxd> * Added **concealing** of double quotes, for a minimalist [CoffeeScript](http://coffeescript.org/)-inspired look.
<zxd> * *This requires Vim 7.3+.* To disable it add `let g:vim_json_syntax_conceal = 0` to your `.vimrc`.
shaunbak_ has quit [Remote host closed the connection]
browndawg has joined #ruby
<soahccc> shevy: I recently repaired why scroll wheal but you can't imagine how much crap is in there... 2 times worse than my keyboard and I crumble a lot :D
<soahccc> s/why/my
chrisseaton has joined #ruby
<shevy> hehe
<shevy> my mother has a non-functioning scroll wheel, whenever I have to fix her win-7 computer, it drives me crazy
mercwithamouth has quit [Ping timeout: 265 seconds]
ss_ has joined #ruby
shaunbaker has joined #ruby
rickruby has joined #ruby
baroquebobcat has joined #ruby
fusi0n has quit [Quit: .]
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
Hamburglr has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
<soahccc> shevy: scroll wheel on windows is always broken without KatMouse if you ask me :)
RaCx has joined #ruby
jprovazn is now known as jprovazn_afk
deavid has joined #ruby
IceDragon has joined #ruby
mojjojo has quit [Quit: mojjojo]
ss_ has quit [Ping timeout: 272 seconds]
troyready has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
e62 has quit [Ping timeout: 264 seconds]
nari has joined #ruby
mojjojo has joined #ruby
rickruby has quit [Remote host closed the connection]
guinslym has joined #ruby
rayners has joined #ruby
rudisimo has joined #ruby
gja has joined #ruby
samsonasu has quit [Quit: samsonasu]
shaunbaker has quit [Remote host closed the connection]
<sweeper> shevy: christmas present opportunity :v
pranny has quit [Quit: Leaving.]
umje has quit []
wald0 has joined #ruby
spyderman4g63 has quit []
maasha has quit [Ping timeout: 272 seconds]
mark_locklear has quit [Ping timeout: 246 seconds]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
kreantos has quit [Ping timeout: 252 seconds]
samsonasu has joined #ruby
Cephalostrum has joined #ruby
kevind has joined #ruby
iamjarvo has quit [Quit: leaving]
mercwithamouth has joined #ruby
iamjarvo has joined #ruby
senayar has quit [Remote host closed the connection]
wald0 has quit [Client Quit]
senayar has joined #ruby
kreantos has joined #ruby
shaunbaker has joined #ruby
teddyp1cker has joined #ruby
teddyp1cker has quit [Client Quit]
razibog has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
sambao21 has quit [Quit: Computer has gone to sleep.]
geggam has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
Jdubs has joined #ruby
apeiros has joined #ruby
Jdubs has quit [Remote host closed the connection]
dangerousdave has joined #ruby
dkamioka has joined #ruby
nari has quit [Ping timeout: 245 seconds]
godd2 has joined #ruby
mikepack has joined #ruby
Fraeon has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
_bart has joined #ruby
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
mhenrixon has joined #ruby
nwertman has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kep has joined #ruby
pel_daniel has joined #ruby
joechrysler has joined #ruby
mikecmpbll has joined #ruby
senj has joined #ruby
beardedninja has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
linduxed has quit [Ping timeout: 276 seconds]
Fraeon has joined #ruby
zxd has quit [Ping timeout: 272 seconds]
beardedninja has joined #ruby
<shevy> hmm
Zess has joined #ruby
shaunbaker has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
nwertman has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<shevy> question
Virtualize has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
<shevy> if I have file foo.rb that pulls in 3 requires, and then I have a file called bar.rb which pulls in file foo.rb
<shevy> I won't have to require these three requires again in bar.rb right?
<DouweM> right
<apeiros> still should
<apeiros> always require all dependencies
lethjakman has joined #ruby
yasushi has quit [Remote host closed the connection]
mhenrixon is now known as mhenrixon|afk
allaire has joined #ruby
sLi_ has quit []
ahawkins has quit [Quit: leaving]
<shevy> hmm
CaptainJet has joined #ruby
max96at has joined #ruby
sLi_ has joined #ruby
huttan- has joined #ruby
jdguzman has quit [Quit: Textual IRC Client: www.textualapp.com]
godd2 has quit [Ping timeout: 272 seconds]
canton7-mac has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
phansch has quit [Quit: Leaving]
mhenrixon|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razibog has joined #ruby
mojjojo has quit [Quit: mojjojo]
weems has joined #ruby
linduxed has joined #ruby
OdNairy has joined #ruby
wdiechmann has quit [Quit: wdiechmann]
Fractional has joined #ruby
<Fractional> array.each do |nr, i| array.each do |nr2, j| puts array[j] end end
Foomusic has quit [Ping timeout: 245 seconds]
<Fractional> Why does this give "no implicit conversion from nil to integer"?
huttan- has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
sLi__ has joined #ruby
Gonzih has joined #ruby
<apeiros> because array.each yields only a single value (the item)
<apeiros> hence only nr and nr2 have a value, i and j are both nil
zxd has joined #ruby
Guest36743 is now known as ixx
<apeiros> and array[nil] raises that exception
sLi__ has quit [Client Quit]
Zap-W_ has joined #ruby
razibog has quit [Client Quit]
<Fractional> *sighs* so sorry Apeiros.
wildroman2 has quit [Remote host closed the connection]
<apeiros> why sorry?
<Fractional> Had each_with_index on the first loop but not on the second.
<Fractional> Because I overlooked such a easy mistake.
<apeiros> *shrug*
<apeiros> learning inevitably comes with mistakes
axl_ has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DouweM_ has joined #ruby
Neomex has joined #ruby
zxd has quit [Ping timeout: 246 seconds]
Jdubs has joined #ruby
DouweM has quit [Ping timeout: 248 seconds]
aganov has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
pixelgremlins_ba is now known as pixelgremlins
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
Zap-W_ has quit [Ping timeout: 245 seconds]
Cephalostrum has joined #ruby
sambao21 has joined #ruby
RaCx has joined #ruby
frx has joined #ruby
zxd has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
wallerdev has joined #ruby
tt1187 has quit [Ping timeout: 252 seconds]
albertgrala has joined #ruby
shime has joined #ruby
Jdubs has quit [Ping timeout: 272 seconds]
jprovazn_afk is now known as jprovazn
digital-ghost has joined #ruby
browndawg has left #ruby [#ruby]
ozgun has quit [Quit: Leaving]
Zap-W_ has joined #ruby
FScottFitzgerald has joined #ruby
Foomusic has joined #ruby
<Fractional> apeiros: Got any good resources for practicing recursion or algorithm writing?
Cephalostrum has quit [Client Quit]
<po10> I'm clueless, having problems building a ruby application on OS X.. Does anyone have a minute to help?
<apeiros> not really. the classical recursion examples are IMO horrible as they're actually problems best solved *without* recursion
Zap-W_ is now known as zxd_
<po10> This is what I'm trying to build https://github.com/lian/shamir-secret-sharing
<momomomomo> merge sort
baroquebobcat has joined #ruby
<apeiros> Fractional: you could write a method traversing directories, finding a file by a property
<momomomomo> build a merge sort in c
zxd has quit [Ping timeout: 276 seconds]
Xeago_ has quit [Remote host closed the connection]
zxd_ is now known as zxd
<momomomomo> or, Fractional build merge sort in ruby
Xeago has joined #ruby
<Fractional> momomomomo: Sounds like a great idea!
allaire has quit []
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Fractional> apeiros: Could you elaborate a bit? :)
nomenkun has quit [Read error: Connection reset by peer]
<apeiros> Fractional: example use: find_files("starting/directory") { |file| if_block_returns_true_this_file_is_returned }
burlyscudd has quit [Quit: Leaving.]
<apeiros> write it without the use of Dir.glob with **
SCommette has quit [Quit: SCommette]
nomenkun has joined #ruby
fire has joined #ruby
<waxjar> maybe try to implement #map, #select, #reduce, etc recursively, pick up some functional programming along the way :D
vlad_starkov has joined #ruby
<soahccc> apeiros: Is "require 'find'" allowed? :D
freezey has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 248 seconds]
jonahR has joined #ruby
wildroman2 has joined #ruby
Hobogrammer has joined #ruby
wildroman2 has quit [Remote host closed the connection]
freezey has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
<apeiros> soahccc: no, that's cheating
deens has joined #ruby
Cephalostrum has joined #ruby
samsonasu has quit [Quit: samsonasu]
maletor has joined #ruby
rickruby has joined #ruby
<canton7-mac> Fractional, work through it with a pen and paper. it'll become obvious
claymore has quit [Ping timeout: 272 seconds]
<Fractional> canton7, isn't nr the same as array[i]?
e62 has joined #ruby
<canton7-mac> Fractional, it's the line 4 difference which is causing the problem methinks
burlyscudd has joined #ruby
atmosx has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Neomex has joined #ruby
<Fractional> canton7-mac: If I change it all the numbers in the array is set to 1
ahmedelgabri has quit [Remote host closed the connection]
sputnik13 has joined #ruby
nathancahill has quit [Quit: nathancahill]
brtdv has quit [Ping timeout: 276 seconds]
jlebrech has joined #ruby
FScottFitzgerald has left #ruby [#ruby]
deens has quit []
guinslym has quit [Ping timeout: 272 seconds]
claymore has joined #ruby
Neomex has quit [Client Quit]
ctp has quit [Quit: Leaving...]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
burlyscudd has quit [Client Quit]
<momomomomo> Fractional: describe your issue
e62 has quit [Ping timeout: 272 seconds]
<Fractional> momomomomo, they return different things even though nr should be the same as array[i]? :S
marr has joined #ruby
<waxjar> Fractional: you're updating the original array, the indices are updated as you go
<momomomomo> nr.dup
[_aeris_] is now known as _aeris_
<momomomomo> aux = nr should be aux = nr.dup
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<momomomomo> likewise with nr2
kate_r has joined #ruby
maletor has quit [Read error: Connection reset by peer]
<Fractional> momomomomo, "can't dup fixnum"'
senj has joined #ruby
<momomomomo> erm hm
CogitoErgoSum has quit [Ping timeout: 245 seconds]
CogitoErgoSum has joined #ruby
tkuchiki has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<Hanmac> Fractional: "Ruby is Magic" try this: array[i], array[j] = nr2, nr
tkuchiki has joined #ruby
pietr0 has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
<Fractional> => [1, 1, 1, 1, 1..]
samsonasu has joined #ruby
<Hanmac> hmm
vlad_starkov has joined #ruby
shaunbaker has joined #ruby
rickruby has quit [Remote host closed the connection]
_aeris_ is now known as [_aeris_]
sambao21 has quit [Quit: Computer has gone to sleep.]
starkhalo has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
nathancahill has joined #ruby
<apeiros> Fractional: you replace the value e.g. at index 0, but your nr still retains the old value
claymore has joined #ruby
atmosx has quit [Quit: Lost in trance]
<Fractional> apeiros: So I have to access it by array[i]..?
gja has quit [Quit: This computer has gone to sleep]
<apeiros> that's one approach (and probably the easiest)
jtdowney has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
[_aeris_] is now known as _aeris_
tkuchiki has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
<Fractional> apeiros: Ok, thanks :P
<canton7-mac> btw, to switch two values, you can do a, b = b, a
yfeldblum has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
senayar has joined #ruby
m8 has joined #ruby
davidk has joined #ruby
dagobah has quit [Quit: Leaving...]
shime has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
davidk is now known as Guest96159
<Fractional> canton7, Thanks for the tip! :D
amritanshu_RnD has quit [Quit: Leaving]
Guest96159 is now known as davidhq
bamdad has joined #ruby
alexfreidah has joined #ruby
pioz has joined #ruby
Bira has quit []
<mikecmpbll> also you can move the aux = .. line out one loop.
Voodoofish430 has joined #ruby
brisbin has quit [Quit: WeeChat 0.4.2]
shaunbaker has joined #ruby
aspires has joined #ruby
maycon has joined #ruby
maycon has joined #ruby
pioz has quit [Client Quit]
<shevy> hmm is it good to do this inside of a class:
<shevy> if defined? @some_ivar_here
<shevy> or is there a better way
coderhs has joined #ruby
mjc_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
FScottFitzgerald has joined #ruby
mjc_ has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
<mikecmpbll> shevy: there's other ways, dunno about better.
<DouweM_> depends on what you want to do. if you want to check whether the ivar's defined, that's the way to do it. better depends on what you wanna do
phansch has joined #ruby
camilasa_ has quit []
<mikecmpbll> instance_variables.include?(:some_ivar_here) for example.
rmorello has joined #ruby
<shevy> hmm
<mikecmpbll> :@some_ivar_here*
brisbin has joined #ruby
shaunbaker has joined #ruby
urbanslug has quit [Quit: Lost terminal]
bricker`LA has joined #ruby
albertgrala has quit [Quit: Leaving]
nwertman has quit [Remote host closed the connection]
juarlex has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
maletor has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
mjc_ has quit [Client Quit]
<apeiros> mikecmpbll, shevy: instance_variable_defined?
mjc_ has joined #ruby
<apeiros> doesn't need to generate an array and then search it
alexfreidah has quit [Ping timeout: 272 seconds]
Zai00 has quit [Quit: Zai00]
mjc_ has quit [Client Quit]
<mikecmpbll> apeiros: oh yeah, forgot about that one
mjc_ has joined #ruby
<mikecmpbll> i'd use that, shevy.
e62 has joined #ruby
<shevy> so many ways
maletor has quit [Client Quit]
<mikecmpbll> instance_variable_set too if you needed that
shaunbaker has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
roolo has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
bricker`1A has joined #ruby
tvw has quit []
tvw has joined #ruby
ephemerian has left #ruby [#ruby]
<apeiros> shevy: IMO having to test for ivar presence (not in debugging) is an anti-pattern (there are legitimate situations, but those are quite rare)
danijoo has joined #ruby
g0bl1n has quit [Ping timeout: 245 seconds]
<apeiros> it usually indicates that you're either not properly initializing your object, or that you abuse the ivar system as a Hash
<Hanmac> shevy & apeiros: you can also do this: o.instance_exec { defined?(@a) } ;D
LekeFly has joined #ruby
<apeiros> Hanmac: yeah, he had plain defined? before
bricker`LA has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
kreantos has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
jhaals has joined #ruby
<shevy> apeiros what if I want to be flexible, where input can be (a) missing (b) a string (c) a hash, and depending on this type of input I wish to automatically deduce a change in certain of these @ivars?
rubyracer has joined #ruby
<apeiros> shevy: that usually doesn't change *which* ivars are set
senayar has quit [Remote host closed the connection]
jrist_ has joined #ruby
dangerousdave has joined #ruby
kreantos has joined #ruby
FScottFitzgerald has quit []
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckrailo_ is now known as ckrailo
maletor has joined #ruby
huttan- has joined #ruby
maycon has quit [Ping timeout: 272 seconds]
Zess has quit [Quit: Leaving]
julweber has quit [Remote host closed the connection]
frog0909 has joined #ruby
tvw has quit []
havenwood has joined #ruby
burlyscudd has joined #ruby
tvw has joined #ruby
allaire has joined #ruby
einarj has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
g0bl1n has joined #ruby
tvw has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
heftig has joined #ruby
spyderman4g63 has joined #ruby
huttan- has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
mansi has quit [Remote host closed the connection]
glaksmono has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mansi has joined #ruby
senayar has joined #ruby
Fractional has quit [Quit: Leaving]
_aeris_ is now known as [_aeris_]
canton7-mac has quit [Quit: Leaving]
<soahccc> oha now they're pushing :) , Support for Ruby version 1.9.3 will end on February 23, 2015.
joshu has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
duggiefresh has quit [Remote host closed the connection]
mansi_ has joined #ruby
enebo has quit [Quit: enebo]
joshu has joined #ruby
senayar has joined #ruby
nanoyak has joined #ruby
jragon has joined #ruby
mansi has quit [Read error: Connection reset by peer]
julweber has joined #ruby
nvrch has quit [Quit: nvrch]
shredding has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Caleb has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Caleb is now known as Guest41562
<shevy> ONE YEAR
jrist_ has quit [Quit: o no u din't]
jrist_ has joined #ruby
Pixels_ is now known as Pixels
andikr has quit [Remote host closed the connection]
Soda has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
freezey has quit [Remote host closed the connection]
fedesilv_ has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
kep has quit [Quit: WeeChat 0.4.2]
Czupa has joined #ruby
mercwithamouth has joined #ruby
fedesilva has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
Hobogrammer_ has joined #ruby
nanoyak has quit [Ping timeout: 252 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
freezey has joined #ruby
brandonjmckay has joined #ruby
zeeraw has joined #ruby
<apeiros> soahccc: ok, so they seem to want to support 3 major releases at the same time
<apeiros> since 2.2 is scheduled for christmas 2014
<shevy> I just moved from 1.8.x to 1.9.x !
<apeiros> shevy: that move is much more difficult than 1.9 to 2.0 or 2.1
bamdad has quit [Quit: bamdad]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<soahccc> I used the perf version or whatever since it came out and using 2 wherever possible
Hobogrammer has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
nanoyak has joined #ruby
fantazo has quit [Ping timeout: 245 seconds]
lethjakm1 has joined #ruby
charlies_ has joined #ruby
SCommette has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
Spleeze has quit [Ping timeout: 252 seconds]
msx__ has joined #ruby
msx has quit [Ping timeout: 252 seconds]
jlebrech has joined #ruby
wildroman2 has quit []
wildroman2 has joined #ruby
blandflakes has joined #ruby
<shevy> perf?
charliesome has quit [Ping timeout: 272 seconds]
<apeiros> shevy: some patches to improve rubys performance
teddyp1cker has quit [Ping timeout: 252 seconds]
thenovices has quit [Remote host closed the connection]
<shevy> ah
jlebrech has quit [Client Quit]
<shevy> hmm
duggiefresh has joined #ruby
<shevy> what do you guys think of versions of gems that include the release date
<shevy> like the version being DDMMYYYY or YYYYMMDD with or without . or - or /
Cephalostrum has joined #ruby
<DouweM_> semver all the way
Cephalostrum has quit [Max SendQ exceeded]
<shevy> so version foobar-20140104
SilentHobo has joined #ruby
<apeiros> if it includes the date, then iso8601 format: yyyymmdd
<workmad3> shevy: YYYYMMDD > DDMMYYYY
<shevy> workmad3 hehehe
Spleeze has joined #ruby
<MrZYX> I think it's ugly
<DouweM_> I don't like dates in version numbers, but yeah, iso8601 if you have to
<shevy> workmad3 for this purpose, I only wanted to compare any date one to the non-date variants
<workmad3> shevy: if you use YYYYMMDD, then your releases are lexcially ordered
pskosinski has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
julweber has quit [Remote host closed the connection]
<workmad3> shevy: non-date variant is preferable, IMO... with a date as a release then you're limited to one release in a day
<workmad3> shevy: or the use of some other version info in it
<bhaak> may I nitpick? yyyy-mm-dd is iso8601, not yyyymmdd
<shevy> hmm
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
<workmad3> bhaak: both are iso8601
mark_locklear has joined #ruby
<workmad3> bhaak: the - are optional
<shevy> and what if it includes both a semantic version and also date?
freezey has quit [Remote host closed the connection]
<DouweM_> why would you include a date in the first place
devyn has quit [Ping timeout: 252 seconds]
kaldrenon has quit [Remote host closed the connection]
<shevy> DouweM_ so that people know instantly when it was released
Cephalostrum has joined #ruby
<DouweM_> who cares
Cephalostrum has quit [Max SendQ exceeded]
<shevy> people
devyn has joined #ruby
jrist_ has quit [Remote host closed the connection]
<shevy> :-)
<bhaak> workmad3: hmm, you are right. why did I forget that?
<apeiros> bhaak: iso8601 defines a plethora of formats
samsonasu has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
samsonasu_ has joined #ruby
<workmad3> DouweM_: it's not that uncommon for something like a nightly build number ;)
<bhaak> apeiros: well I hope he won't use 2014-W04!
<apeiros> but all share big-endianness
<bhaak> or a time period
<DouweM_> workmad3: oh, I know, but it's definitely not the norm with gems
iceden has joined #ruby
<shevy> well
<DouweM_> and a release date in itself doesn't tell me anything
Hobogrammer_ has quit [Ping timeout: 245 seconds]
<shevy> yeah
<DouweM_> a version released a month ago could be state of the art of 30 versions old
<bhaak> I actually like to see how old a release is at a glance
<shevy> ramaze 2012.12.08
melfy has quit [Ping timeout: 252 seconds]
chiel has quit [Ping timeout: 252 seconds]
andredieb has quit [Ping timeout: 252 seconds]
TMM has quit [Quit: Ex-Chat]
wmoxam has joined #ruby
aryaching has quit []
<shevy> I did not find many examples like this though
<bhaak> but semantic versioning gives you also some interesting info if done right
<RubyPanther> The reason YYYYMMDD is popular is not the ISO number, or the .'s, it is the order and that it is the only order that is unambiguous
<DouweM_> bhaak: yeah
<shevy> although I did find a swissmatch-location thingy 0.1.2.201304 ;-)
vlad_starkov has quit [Remote host closed the connection]
<DouweM_> just go with semver, date alone doesn't tell me anything
<DouweM_> with nightly builds the notable exception
<shevy> so far I went with semver all the time
chiel has joined #ruby
shaunbaker has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
godd2 has joined #ruby
aryaching has joined #ruby
rootshift has joined #ruby
Spami has joined #ruby
<apeiros> shevy: yeah, swissmatch contains the date because it indicates what from what date the included data is
charlies_ has quit [Ping timeout: 252 seconds]
relix has quit [Ping timeout: 252 seconds]
<apeiros> reminds me that an update is overdue
gregf has quit [Quit: WeeChat 0.4.2]
bmn has quit [Ping timeout: 252 seconds]
brandonblack has quit [Ping timeout: 252 seconds]
Killerkeksdose has joined #ruby
saarinen has joined #ruby
andredieb has joined #ruby
andredieb has quit [Changing host]
andredieb has joined #ruby
bamdad has joined #ruby
bamdad has quit [Client Quit]
Killerkeksdose_ has quit [Ping timeout: 252 seconds]
moppersmurf has quit [Ping timeout: 252 seconds]
juo has quit [Ping timeout: 252 seconds]
melfy has joined #ruby
charliesome has joined #ruby
<soahccc> shevy: That perf version I was referring to is a backport of ruby 2's garbage collector to 1.9.3
relix has joined #ruby
tt1187 has joined #ruby
centrx has joined #ruby
heftig has quit [Ping timeout: 252 seconds]
brandonblack has joined #ruby
yfeldblum has joined #ruby
Cephalostrum has joined #ruby
yacks has quit [Quit: Leaving]
Cephalostrum has quit [Max SendQ exceeded]
[_aeris_] is now known as _aeris_
Cephalostrum has joined #ruby
juo has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
bmn has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
aaronmcada has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
troessner has quit [Quit: Leaving]
SilentHobo is now known as Hobogrammer
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
Gonzih has quit [Ping timeout: 272 seconds]
wedgeV has joined #ruby
moppersmurf has joined #ruby
Cephalostrum has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
Cephalostrum has quit [Max SendQ exceeded]
burlyscudd has quit [Quit: Leaving.]
klaut has quit [Remote host closed the connection]
wonderworld has quit [Remote host closed the connection]
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
teddyp1cker has joined #ruby
moppersmurf has joined #ruby
aaronmcadam has quit [Ping timeout: 245 seconds]
Cephalostrum has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
RaCx has joined #ruby
moppersmurf has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
duggiefresh has quit [Read error: Connection reset by peer]
moppersmurf has joined #ruby
duggiefresh has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
peregrin_ has quit []
lethjakm1 is now known as lethjakman
aaronmcada has quit [Ping timeout: 272 seconds]
ahmedelgabri has joined #ruby
lxsameer has joined #ruby
coderhs has quit [Read error: Connection timed out]
<lxsameer> hey guys what does "->" do ?
<DouweM_> stabby lambda
holderbaum has quit [Quit: leaving]
mocfive has joined #ruby
mengu has quit [Remote host closed the connection]
<apeiros> hurray for contextless questions
<apeiros> -> is totally a superator!
ghr has quit [Quit: Computer has gone to sleep.]
coderhs has joined #ruby
<centrx> Hey guys, what is the difference between ":", ";", ",", and "."?
moppersmurf has joined #ruby
<DouweM_> lol
jrist_ has joined #ruby
timonv has quit [Remote host closed the connection]
moppersmurf has quit [Max SendQ exceeded]
<lxsameer> DouweM_: thanks budyy
OdNairy has joined #ruby
magoo has joined #ruby
freezey has joined #ruby
moppersmurf has joined #ruby
<DouweM_> apeiros: -> is not a valid superator though ;)
<apeiros> DouweM_: sure? I'd think -> should work as a superator
Xeago has quit [Read error: Connection reset by peer]
<DouweM_> must end in - ~ or +, because it uses the unary operators
<apeiros> ah, I see, yes
lmickh has joined #ruby
<apeiros> too bad
snath has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<soahccc> lxsameer: A tip from my side: http://www.symbolhound.com/
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<lxsameer> soahccc: good point
<soahccc> hmm it's broken for me though :<
nathancahill has quit [Quit: nathancahill]
teddyp1cker has quit []
juarlex has quit []
godd2 has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
huttan- has joined #ruby
Hanmac1 has joined #ruby
peregrin_ has joined #ruby
kaldrenon has joined #ruby
Targen has joined #ruby
centrx has quit [Quit: Leaving]
bbloom has joined #ruby
bbloom has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
ohwhoa has quit [Quit: woah!]
Hanmac has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
yazdmich has quit [Ping timeout: 252 seconds]
huttan- has quit [Ping timeout: 248 seconds]
Cooler__ has joined #ruby
yarou_ has joined #ruby
moppersmurf has quit [Ping timeout: 252 seconds]
CodeBunny has joined #ruby
melfy has quit [Ping timeout: 252 seconds]
njs126 has quit [Ping timeout: 252 seconds]
yarou has quit [Ping timeout: 252 seconds]
Cooler_ has quit [Ping timeout: 252 seconds]
tchebb has quit [Ping timeout: 252 seconds]
onewheelskyward has quit [Ping timeout: 252 seconds]
elaptics has quit [Ping timeout: 252 seconds]
LostMonk has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
telling has quit [Ping timeout: 252 seconds]
Advocation has joined #ruby
darthdeus has quit [Quit: Leaving...]
mocfive has quit [Remote host closed the connection]
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
zeade has joined #ruby
<soahccc> What exactly is tap doing? It somehow kills my proxy object :(
mhenrixon has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
lioninawhat has joined #ruby
Xeago_ has joined #ruby
Jdubs has joined #ruby
<DouweM_> soahccc: `block.call(self); self` essentially
elaptics has joined #ruby
onewheelskyward has joined #ruby
melfy has joined #ruby
yazdmich has joined #ruby
tchebb has joined #ruby
<DouweM_> not just essentially, that's exactly what it does: http://ruby-doc.org/core-2.1.0/Object.html#method-i-tap (check the source)
lioninawhat has quit [Remote host closed the connection]
Xeago_ has quit [Read error: Connection reset by peer]
<soahccc> DouweM_: Interesting... I do "yield presenter if block_given?" and that block gets the proxy. presenter.tap{|rec| rec.is_not_the_proxy }
Xeago has joined #ruby
RaCx has joined #ruby
<DouweM_> tap could've been overridden or delegated to what the presenter is presenting
<soahccc> ahh okay got it. it uses self which doesn't hit the proxy but the record
Xeago_ has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
<DouweM_> not quite
Czupa has quit [Remote host closed the connection]
<DouweM_> presenter#tap calls record#tap, so self ends up being the record
Xeago__ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heidi has joined #ruby
melfy has quit [Quit: Whoops!]
melfy has joined #ruby
zxd has quit [Ping timeout: 248 seconds]
njs126 has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
Hobogrammer has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
SCommette has quit [Quit: SCommette]
Xeago_ has quit [Ping timeout: 276 seconds]
moppersmurf has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
enebo has joined #ruby
moppersmurf has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
moppersmurf has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
moppersmurf has joined #ruby
moppersmurf has quit [Max SendQ exceeded]
mneorr has quit [Remote host closed the connection]
mansi_ has joined #ruby
e62 has quit [Ping timeout: 272 seconds]
mansi has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
moppersmurf has joined #ruby
coderhs has quit [Read error: Connection timed out]
RaCx has quit [Quit: Computer has gone to sleep.]
clamstar has quit [Quit: Computer has gone to sleep.]
vky has joined #ruby
f0ster has joined #ruby
fire has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
w4pm has joined #ruby
<f0ster> hello.. i am trying to use bundler with a small piece of ruby code (one small script), but i can't see to get it to work, I assume this should be possible with bundler? https://gist.github.com/f0ster/8460940
Macaveli has joined #ruby
ephemerian has joined #ruby
g0bl1n has quit [Ping timeout: 245 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<canton7> f0ster, done a bundle install?
mneorr has quit [Ping timeout: 245 seconds]
thenovices has joined #ruby
godd2 has joined #ruby
chrisseaton has quit []
QKO has quit [Ping timeout: 272 seconds]
<canton7> and you shouldn't need to bundle exec unless you're on your deployment machine
<canton7> read http://bundler.io/
sambao21 has joined #ruby
iugin has joined #ruby
<f0ster> canton7: yes
QKO has joined #ruby
klaut has joined #ruby
<f0ster> i already read this, i'm just trying to be overly explicit since it's not working
blaxter has quit [Quit: foo]
samsonasu_ has quit [Quit: samsonasu_]
apeiros has quit [Remote host closed the connection]
<soahccc> f0ster: Not sure but the only difference I see between mine and yours is that I do Bundle.require(:default)
<f0ster> okay
apeiros has joined #ruby
<soahccc> Bundler.require(:default, :development) to be precise
<soahccc> default takes all gems not in a group I think
<f0ster> I also tried explicitly doing , require 'guard-haml'
darthdeus has joined #ruby
mneorr has joined #ruby
<iugin> Hi guys! sorry for the disturb.. I have built a webapp for videocall using voip... I need someone to perform a test of communication using chrome and firefox! Please I do not know how to do! If someone is interested please contact me in pvt! sorry for the disturb!
clamstar has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
thenovices has quit [Ping timeout: 248 seconds]
<f0ster> soahccc: that helped.. looks like i am not using guard properly somehow, watch_haml.rb:9:in `<main>': undefined method `guard' for main:Object (NoMethodError)
hiall_ has quit [Ping timeout: 245 seconds]
<RubyPanther> iugin: you need to find or build a loopback for your voip solution so you can test.
jtdowney has quit []
rh1n0 has joined #ruby
brianpWins has joined #ruby
<f0ster> lol, because i don't have 'guard'
* f0ster facepalms
<RubyPanther> Then you can even automate tests, and let the computer handle all of the "can I hear myself now?" stuff
<iugin> ahahah yes, but the problem is that I have never tested it trough internet
<iugin> always from my Pc in my room and the other pc in the kitchen :) anyway no problem :)
<RubyPanther> You don't need to test things through the internet, you only need to test them through TCP/UDP/whatever
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
kotk has quit [Ping timeout: 272 seconds]
DouweM_ has quit [Read error: Connection reset by peer]
<RubyPanther> automation is what you're lacking
Cephalostrum has joined #ruby
<RubyPanther> As long as there are kittens in the tubes, the internet will be forced forwards
<iugin> uhmm and for the speed?
jprovazn has quit [Quit: Odcházím]
<iugin> I can install a squid proxy for decrease the connection speed..
<RubyPanther> You can throttle the speed you get in an automated tool
<iugin> ah ok
<RubyPanther> Even if you're looking at it by hand to test the video quality you need to throttle the speed so you can find out the minimum "acceptable" bandwidth
coderhs has joined #ruby
<RubyPanther> You save time by investing in automation, it isn't a luxury
thenovices has joined #ruby
RaCx has joined #ruby
kirun has joined #ruby
mojjojo has joined #ruby
tyl has joined #ruby
alexfreidah has joined #ruby
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
gja has quit [Quit: This computer has gone to sleep]
Hobogrammer has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
mneorr has quit [Remote host closed the connection]
tvw has joined #ruby
mneorr has joined #ruby
alexfreidah has quit [Ping timeout: 245 seconds]
katterstrophe has joined #ruby
julweber has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
nathancahill has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
mehlah has quit [Quit: Leaving...]
Advocation has quit [Quit: Advocation]
kreantos has quit [Read error: Connection reset by peer]
gja has joined #ruby
nanoyak has joined #ruby
kiri has quit [Ping timeout: 272 seconds]
Neomex has joined #ruby
nwertman has joined #ruby
Neomex has quit [Client Quit]
kreantos has joined #ruby
sambao21 has joined #ruby
kreantos has quit [Remote host closed the connection]
katterstrophe has quit [Remote host closed the connection]
katterstrophe has joined #ruby
burlyscudd has joined #ruby
fusi0n has joined #ruby
julweber has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 245 seconds]
kiri has joined #ruby
yfeldblum has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
sparrovv has joined #ruby
coderhs has quit [Read error: Connection timed out]
i_s has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
colonolGron has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
ewnd9_ has quit [Ping timeout: 260 seconds]
dblessing has quit [Quit: dblessing]
huttan- has joined #ruby
yfeldblum has joined #ruby
dfranciosi has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
i_s has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mansi has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
jasonwebster has joined #ruby
dblessing has joined #ruby
heftig has joined #ruby
Hanmac has joined #ruby
mneorr has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
huttan- has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
mehlah has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
freerobby has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
chomskiii has joined #ruby
mehlah has quit [Client Quit]
mocfive has quit [Remote host closed the connection]
katterstrophe has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
thenovices has quit [Remote host closed the connection]
mocfive has joined #ruby
ehaliewicz has joined #ruby
vlad_starkov has joined #ruby
Xeago__ has quit [Remote host closed the connection]
iugin has quit [Quit: Leaving]
byprdct has joined #ruby
nwertman has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rubyracer has joined #ruby
freerobby has joined #ruby
Wolland has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
nanoyak has quit [Quit: Computer has gone to sleep.]
<soahccc> Oha since when does Chrome indicate tabs creating noise? :o best feature ever
byprdct has quit [Ping timeout: 272 seconds]
f0ster has quit [Ping timeout: 245 seconds]
jtdowney has joined #ruby
<shevy> lol
jasonwebster has quit [Quit: Computer has gone to sleep.]
Jdubs has joined #ruby
Fractional has joined #ruby
chrisseaton has joined #ruby
reset has joined #ruby
<Fractional> Ruby :D
sambao21 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Wolland has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby
<soahccc> silent updates are better than "surprise eggs" <- (that is probably not the correct translation xD)
byprdct has joined #ruby
krawchyk has quit []
vky has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
decoponio has quit [Quit: Leaving...]
<TheLarkInn> Oh hai Fractional
petertretyakov has joined #ruby
alvaro_o has joined #ruby
Jdubs has quit [Remote host closed the connection]
Gonzih has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<Fractional> TheLarkInn: Hello there :)
<TheLarkInn> Hows it going?
mocfive has joined #ruby
<Fractional> TheLarkInn: Fine thanks and you?
knuton has joined #ruby
knuton has left #ruby [#ruby]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
crazymykl has quit [Remote host closed the connection]
<TheLarkInn> I'm doing good. Living life between struggling with cocoa/obj-c bindings and convincing my friend to learn ruby via www.codacademy.com
gja has quit [Quit: This computer has gone to sleep]
<TheLarkInn> So he can stop bugging me for help :-P
<Fractional> I wish my friends would be interested in learning Ruby. They are not =/
lethjakman has quit [Ping timeout: 272 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest7655 has quit [Ping timeout: 276 seconds]
<TheLarkInn> Most of my dev friends are all Obj-C/cocoa since I work for a company that makes Mac apps. But this one likes ruby and wants to learn it. Howver he's too lazy to just read a course or tutorial.
<TheLarkInn> I had the most success with codacademy.com as far as free goes.
gja has joined #ruby
maletor has joined #ruby
mikepack has quit [Remote host closed the connection]
rakm has joined #ruby
<soahccc> I wish my friends would know Obj-C :(
whomp has joined #ruby
lethjakman has joined #ruby
_tpavel has joined #ruby
<Hanmac> i wish i would have never seen obj-c code ... ;P
samsonasu has joined #ruby
chrisseaton has quit []
<shevy> I wish Obj-C would die in a fire
DaZ has quit [Ping timeout: 246 seconds]
reset has quit [Quit: Leaving...]
_tpavel has quit [Client Quit]
drumusician has quit [Ping timeout: 260 seconds]
SirCmpwn has quit [Ping timeout: 260 seconds]
Jake232 has joined #ruby
<cout> shevy: why?
interactionjaxsn has quit [Remote host closed the connection]
<cout> shevy: I mean it could be worse (it could be c++)
<soahccc> Wasn't apple interested in macruby or whatever it was? I read an article that they have invested and that there might be some interesting outcomes in the future
danijoo has quit [Remote host closed the connection]
<shevy> cout c++ should also die
<cout> soahccc: yes, they hired laurent to work on it
danijoo has joined #ruby
<cout> shevy: not gonna happen though. C++ is too good at what it does.
Xiti has joined #ruby
heidi has quit [Quit: Leaving.]
mehlah has joined #ruby
<shevy> the same can be said about any other C-like language
Cicatrice1 has joined #ruby
Cicatrice1 has left #ruby [#ruby]
<lupine> reducing developers to sobbing messes?
<jtdowney> soahccc: they sponsored macruby development at one point
heidi has joined #ruby
<shevy> does macruby work?
<jtdowney> now those guys moved to work on rubymotion
<jtdowney> it did/does
crazymykl has joined #ruby
<jtdowney> think it is mostly used in rubymotion now
lxsameer has quit [Quit: Leaving]
pushpak has joined #ruby
dangerousdave has joined #ruby
<soahccc> hmm unfortunately... ios or not I really hope they don't do the MS way in merging it completely together
ce_afk is now known as cescalante
chomskiii has quit [Read error: Connection reset by peer]
DaZ has joined #ruby
chomskiii has joined #ruby
magoo has quit [Quit: WeeChat 0.4.2]
Trickydee has joined #ruby
jlast_ has joined #ruby
DrShoggoth has quit [Quit: Leaving]
crazymykl has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
<TheLarkInn> There are some things that I shamelessly love about objective-C, methods tell you right when you read them, exactly what object type should be returned when using that method
<lupine> a type system?
jerius has quit [Ping timeout: 245 seconds]
<lupine> how very vulgar :p
jlast has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
burlyscudd1 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
jerius has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
Jdubs has joined #ruby
kate_r has quit [Quit: Textual IRC Client: www.textualapp.com]
Jdubs has quit [Remote host closed the connection]
MrJoshua has quit [Read error: No route to host]
VTLob has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
kate_r has joined #ruby
Hobogrammer has joined #ruby
MrJoshua has joined #ruby
rh1n0 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bbloom has joined #ruby
Wolland has joined #ruby
mikepack has joined #ruby
burlyscudd1 has quit [Ping timeout: 265 seconds]
gja has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
brisbin has quit [Quit: WeeChat 0.4.2]
burlyscudd has joined #ruby
brisbin has joined #ruby
cbetta is now known as cbetta_afk
DrShoggoth has joined #ruby
danijoo_ has joined #ruby
mikepack has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
phansch_ has joined #ruby
terrellt_ has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch has quit [Ping timeout: 245 seconds]
danijoo has quit [Ping timeout: 248 seconds]
aaronmcadam has joined #ruby
postmodern has joined #ruby
terrellt_ is now known as terrellt
ahmedelgabri has quit []
reset has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
chomskiii has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
chomskiii has joined #ruby
mneorr has quit [Remote host closed the connection]
thenovices has joined #ruby
mneorr has joined #ruby
danijoo_ is now known as danijoo
thenovices has quit [Remote host closed the connection]
dik_dak has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
kristiandelay has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
danshultz has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 272 seconds]
yxhuvud has quit [Remote host closed the connection]
nwertman has joined #ruby
amedeiro_ has joined #ruby
yxhuvud has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
robert__ has joined #ruby
robert__ has joined #ruby
thenovices has joined #ruby
wildroman2 has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
gja has quit [Quit: This computer has gone to sleep]
robert_ has quit [Ping timeout: 246 seconds]
cout is now known as timelord_cout
thenovices has quit [Remote host closed the connection]
techsilo has joined #ruby
SCommette has quit [Quit: SCommette]
Macaveli has joined #ruby
w4pm has joined #ruby
Foomusic has quit [Quit: Leaving]
kofno has joined #ruby
kofno has quit [Changing host]
kofno has joined #ruby
Virtualize has joined #ruby
Virtualize has quit [Client Quit]
danshultz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
aspires has quit []
freerobby has joined #ruby
m8 has quit [Quit: Sto andando via]
aagdbl has joined #ruby
shime has joined #ruby
burlyscudd has quit [Quit: Leaving.]
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lethjakman has quit [Read error: Connection reset by peer]
deception has joined #ruby
mocfive has joined #ruby
reset has quit [Quit: Leaving...]
pothibo has joined #ruby
colonolGron has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
lockweel has joined #ruby
danshultz has joined #ruby
MatthewsFace has joined #ruby
<Hanmac> workmad3: did you see this scene? http://youtu.be/zvwYCbBWxT8
colonolGron has joined #ruby
SCommette has joined #ruby
drumusician has joined #ruby
jedimind has quit [Quit: heading home, back in a bit]
aspires has joined #ruby
dkamioka has quit [Remote host closed the connection]
SirCmpwn has joined #ruby
_bart has quit []
timonv has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
asteros has joined #ruby
ctp has joined #ruby
petertretyakov has quit [Remote host closed the connection]
aaronmcadam has quit [Quit: Leaving...]
burlyscudd has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
chrisseaton has joined #ruby
ctp has quit [Client Quit]
Jetchisel has joined #ruby
jlast_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<zumba_addict> so guys, i'm confused with rack. Is rack part of ruby or rails?
snath has joined #ruby
<MrZYX> rack is used by ruby on rails
<zumba_addict> got it
<MrZYX> it's an interface between your ruby application and your application server
<zumba_addict> it's because, i'm encountering an issue regarding https
senayar has joined #ruby
<zumba_addict> i read that rack can be used to listen on SSL
tvw has quit []
<zumba_addict> oops
<zumba_addict> can't be used
<zumba_addict> right now, our localhost listens on port 9292
<zumba_addict> I execute our app locally by typing rack
<zumba_addict> rackup
RaCx has joined #ruby
<MrZYX> rackup starts webrick for me
<zumba_addict> on our app, we have an env.rb file and it has our endpoint. We have 2 remote REST api servers, one listens on http only and the other one listens on https. It only works when it points to http
<zumba_addict> yes, same thing here, webrick 1.3.1
freezey has quit [Remote host closed the connection]
<zumba_addict> once I change my endpoint in env.rb file to point to our remote https server, accessing our local app via IE will fail
<MrZYX> then apply the fix
burlyscudd1 has joined #ruby
<zumba_addict> I was told to make rackup listen on https
burlyscudd1 has quit [Read error: Connection reset by peer]
<MrZYX> (quality of problem description = quality of answers)
<zumba_addict> but from my research, it can't be
fantazo has joined #ruby
yalue has quit [Quit: Leaving]
thenovices has joined #ruby
<MrZYX> you know we can't magically know what "accessing our local app via IE will fail" or "we have an env.rb file and it has our endpoint" could even mean?
sambao21 has quit [Quit: Computer has gone to sleep.]
alexfreidah has joined #ruby
Spami has joined #ruby
bean has joined #ruby
<blandflakes> i've been digging around through various libraries - anybody know of a solid gem that adds kerberos authentication to a rack service? using sinatra if that helps
burlyscudd has quit [Read error: Operation timed out]
<zumba_addict> oh, sorry, I didn't know i was confusing
phansch_ is now known as phansch
phinfonet has joined #ruby
maycon has joined #ruby
Jdubs has joined #ruby
thenovices has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 272 seconds]
techsilo has quit []
mneorr has joined #ruby
DouweM has joined #ruby
Gonzih has quit [Ping timeout: 245 seconds]
<zumba_addict> We access our local application via http://localhost:9292. When our env.rb's REST api endpoint varible points to https://api.abc.com and when we try to sign in to http://localhost:9292 using IE9, we think that IE9 doesn't like accessing resources when protocols are different, http -> https. However, it works fine in Chrome but we need to make it work in IE9. I was thinking that I should configured rackup so that it liste
<zumba_addict> on HTTPs. However, the research(stackoverflow) I did yesterday says that rackup can't be configured to listen on HTTPS.
klaut_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
alexfreidah has quit [Ping timeout: 272 seconds]
deception has quit [Quit: Goodbye]
danshultz has joined #ruby
jlast has joined #ruby
<MrZYX> you're still assuming that we know how your app works. I can't imagine how the protocol used by your backend to talk to an API should affect the frontend
<zumba_addict> When I configure env.rb to point to our regular http REST api server,http://api2.abc.com, it works fine on IE9
mhenrixon has joined #ruby
<jtdowney> also there are quite a few rack servers that can support ssl, such as thin
yaymukund has joined #ruby
<zumba_addict> I read thin yesterday
<MrZYX> even webrick does
<jtdowney> or rather HTTPS
<zumba_addict> ah, that's great news MrZYX
<MrZYX> rackup probably just doesn't provide the interface
<zumba_addict> i want to try it
<zumba_addict> o
fedez77 has quit [Ping timeout: 272 seconds]
<zumba_addict> oh
<MrZYX> no one forces you to run your application via rackup
<jokke> hello
<yaymukund> I'm dealing with a dumb soap api and have to get things like `response[:a][:b][:c][:d]` where a,b,c,d are really long. What's the cleanest way to do that?
<zumba_addict> but it's been started by rackup for many months and I'm not very good in ruby
yoshie902a has joined #ruby
<zumba_addict> I was just hoping i can help with the fixing
<yoshie902a> has anyone seen this issue before? https://github.com/ueno/ruby-gpgme/issues/26
<zumba_addict> the guys have been troubleshooting it for 3 weeks now with no luck
<yoshie902a> any recommendations on how to trouble shoot and fix it would be helpful
<zumba_addict> would it be a huge task to migrate from rackup to thin?
<MrZYX> no
<yaymukund> I probably just try to split response[:a]oh I can do response[:a]\(newline)[:b]\(newline)[:c]
<MrZYX> that's what rack is for
<MrZYX> to make that pluggable
<zumba_addict> will the build be migrated?
<yaymukund> yuck
klaut_ has quit [Ping timeout: 252 seconds]
<MrZYX> zumba_addict: again. stop assuming that we know how the hell your system looks like. we have no idea. zero.
<zumba_addict> ok, please point me to some documents about thin that I can start reading
nickakavic has joined #ruby
<zumba_addict> do you want to see it? I can pm it to you
<MrZYX> no, if you can't make up a proper problem description it's not worth my time
<jokke> i'm having a hard time to figure out a solution for the following problem: i have methods which all in the end call another method (same for all) with different parameters. I also want all of these methods to be able to be passed a block so that the params will be passed to the block instead of the other method.. Are you following? Hard to explain maybe.. Anyway, i want to prevent code duplication and don't
<jokke> know how..
<zumba_addict> I think I described it properly
tvw has joined #ruby
<zumba_addict> jtdowney: did you understand the problem I was having when I explained it above?
colonolGron has left #ruby [#ruby]
yoshie902a has quit [Client Quit]
<zumba_addict> I'll try again :)
hiall has joined #ruby
<zumba_addict> 1. When accessing http://localhost:9292 using IE9 and when endpoint is pointing to https, IE9 complains with invalid character. But I think it's complaining about cross origin resource sharing (http -> https)
<zumba_addict> However, when I access http://localhost:9292 using Chrome and when endpoint is pointing to https, it's fine
<zumba_addict> No changes in the code and it works fine in Chrome.
<MrZYX> jokke: maybe something simple like, def call_block_or_other_method(*args); if block_given?; yield *args; else other_method(*args); end; def foo(&block); call_block_or_other_method("foo", "bar", &block); end; ?
allaire has quit []
<zumba_addict> Now, when I change endpoint to point to http REST api, IE9 will work fine
<zumba_addict> I think that is very clear now MrZYX
<MrZYX> zumba_addict: isyour REST api actually not a REST api but your asset server?
<zumba_addict> it's a REST api
<MrZYX> then it makes no sense at all at me
<MrZYX> I just don't know what you'd need to get wrong in application design to achieve that
glundgren has joined #ruby
nickakavic has left #ruby ["Textual IRC Client: www.textualapp.com"]
ocline has joined #ruby
<zumba_addict> i think there is a problem with the way our Apache was configured'
olivier_bK has joined #ruby
<zumba_addict> the apache responds with 302 - Moved temporaritly and provides another https link
mneorr_ has joined #ruby
guinslym has joined #ruby
freezey has joined #ruby
<MrZYX> is the fact that your rails app is a rails app actually not of interest and it's merely serving a javascript app and injects your "endpoint" into it?
<zumba_addict> yup, that's correct
<MrZYX> see there's your problem
<MrZYX> I needed to make a lot of assumptions you never provided
<zumba_addict> k
ckinni has joined #ruby
<MrZYX> that's why it never was a proper problem description
bamdad has joined #ruby
<zumba_addict> k
mneorr_ has quit [Remote host closed the connection]
justinxreese has quit [Ping timeout: 246 seconds]
bamdad has quit [Client Quit]
rburton- has joined #ruby
mneorr_ has joined #ruby
<jokke> MrZYX: thing is, i would have to write that every time
<zumba_addict> it's really weird that when endpoint is pointing to our https link, IE9 doesn't like it. It's fine with Chrome
<MrZYX> jokke: don't see what's there more to abstract than the if/elese
<jokke> mh
justinxreese has joined #ruby
<jokke> yeah i guess so..
mneorr has quit [Ping timeout: 245 seconds]
<zumba_addict> I want to try using https in rack but don't know where to start
<MrZYX> if you want to avoid the &block in method def, you can do &Proc.new when calling the helper, though that's a bit more opague IMO
klaut has quit [Read error: Connection reset by peer]
<zumba_addict> or I thin Thin was suggested earlier
<zumba_addict> thin/think
klaut has joined #ruby
<MrZYX> zumba_addict: I think your app just needs to server a proper CORS header
<MrZYX> but the people at #rubyonrails certainly have more experience with that
<zumba_addict> ok
mercwithamouth has quit [Ping timeout: 252 seconds]
agjacome has quit [Quit: leaving]
cbetta_afk is now known as cbetta
glundgren has left #ruby [#ruby]
momomomomo has quit [Quit: momomomomo]
kindjal has joined #ruby
mercwithamouth has joined #ruby
ArchBeOS-work has quit [Quit: Leaving]
bjhaid has quit [Ping timeout: 246 seconds]
colonolGron has joined #ruby
CodeBunny has joined #ruby
Zai00 has joined #ruby
VTLob has quit [Quit: VTLob]
aspires has quit []
<MrZYX> zumba_addict: https://github.com/cyu/rack-cors might be all you need
sambao21 has joined #ruby
<zumba_addict> very cool
<zumba_addict> thanks!
reset has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
MattStratton has quit [Ping timeout: 248 seconds]
dallasm_ has joined #ruby
SCommette has quit [Quit: SCommette]
lkba has quit [Ping timeout: 245 seconds]
dallasm_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 245 seconds]
Zai00 has left #ruby [#ruby]
SCommette has joined #ruby
reebs has joined #ruby
b00stfr31k has joined #ruby
mocfive has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
jtdowney has quit []
rayners has quit [Ping timeout: 272 seconds]
rayners has joined #ruby
colonolGron has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
Guest7655 has joined #ruby
vky has joined #ruby
sayan has joined #ruby
senayar has joined #ruby
jovon has quit [Quit: Leaving]
aspires has joined #ruby
Guest7655 has left #ruby [#ruby]
Guest7655 has joined #ruby
tannerburson_ has joined #ruby
tannerburson has quit [Ping timeout: 260 seconds]
tannerburson_ is now known as tannerburson
bjhaid has joined #ruby
burlyscudd has joined #ruby
sparrovv has quit [Remote host closed the connection]
mneorr_ has quit [Remote host closed the connection]
iamsean has joined #ruby
Gonzih has joined #ruby
mneorr has joined #ruby
araujo has joined #ruby
vky has quit [Ping timeout: 246 seconds]
Cephalostrum has quit [Remote host closed the connection]
Cephalostrum has joined #ruby
predator117 has joined #ruby
reset has quit [Quit: Leaving...]
funburn has joined #ruby
dreinull has joined #ruby
b00stfr31k has quit [Ping timeout: 246 seconds]
phansch has quit [Quit: Leaving]
claymore has quit [Ping timeout: 245 seconds]
Gonzih has quit [Ping timeout: 252 seconds]
<dreinull> Array#map question: If I skip an entry in my enumerator, it inserts nil. Is there a way to still skip without creating a nil value? (I can comapact, no problem, just asking)
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freakcult has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Ping timeout: 252 seconds]
<shevy> dreinull perhaps via next? I am not sure it can skip though, as it passes all values to that block
claymore has joined #ruby
<apeiros> dreinull: no. map's contract is that it maps each element
<MrZYX> dreinull: select before you map
freakcult has joined #ruby
<apeiros> i.e., the resulting array has the same size as the input array
<soahccc> dreinull or compact after
rankine has joined #ruby
<Hanmac> shevy "next" does not work i tested it
lkba has joined #ruby
Sawbones has joined #ruby
CogitoErgoSum has quit [Quit: Leaving]
<shevy> Hanmac I am listening to old 1990s music right now!
end_guy has quit [Remote host closed the connection]
momomomomo has joined #ruby
<Sawbones> Ok, so if symbols are values then why in capistrano is this a thing: `set :user, 'deploy'`
mark_locklear has quit [Ping timeout: 276 seconds]
<Hanmac> shevy listen to this: http://www.youtube.com/watch?v=QUx2tOYwL2Q
<Sawbones> set is obviously a method
centrx has joined #ruby
reebs has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> and you pass it two values
<apeiros> :user and 'deploy'
habanany has joined #ruby
asteros has quit [Quit: asteros]
Soda has quit [Remote host closed the connection]
bricker`away is now known as bricker`work
IceyEC has quit [Quit: IceyEC]
edwardthefma has joined #ruby
<edwardthefma> hey all
asteros has joined #ruby
lockweel has quit [Ping timeout: 245 seconds]
<soahccc> Hanmac: Reminds me of this http://www.youtube.com/watch?v=_5BWWzzwlF0
ValicekB has quit [Read error: Connection reset by peer]
<Sawbones> pl
<Sawbones> ok*
<Sawbones> but why
joechrysler has quit [Quit: Leaving...]
<Sawbones> Why not call setUser('deploy')
<Sawbones> oh snap, might be setting a hash
<Sawbones> -that moment of magic-
wildroman2 has quit []
fedesilv_ has quit [Remote host closed the connection]
<apeiros> Sawbones: because you probably can set arbitrary values
<Sawbones> apeiros: arbitrary values?
<Sawbones> like in a hash?
<Sawbones> orrrr?
<apeiros> set :foobarboozles, 'rabarbara'
robbyoconnor has joined #ruby
<Sawbones> ok
iamjarvo has joined #ruby
<Sawbones> but what I'm trying to get at is why it would use a symbol
<apeiros> also, if it's ruby, it'd be user=, not setUser. at the very least set_user :-p
<apeiros> Sawbones: why not?
<apeiros> or: what else?
lockweel has joined #ruby
<dreinull> shevy, soahccc my solution so far
<Sawbones> set 'user' 'deploy'
<apeiros> the purpose of a symbol is to identify stuff. perfect fit.
<dreinull> apeiros: ok, well...
Jetchisel has quit [Ping timeout: 252 seconds]
<Sawbones> but every says that symbols are not keys, they are values....
sambao21 has quit [Quit: Computer has gone to sleep.]
<dreinull> MrZYX: not very effective, may as well compact
<apeiros> Sawbones: errr, you realize that *keys* are *values*?
<dreinull> ok, I'll leave it then. No problem
Trickydee has quit [Quit: Textual IRC Client: www.textualapp.com]
Fractional has quit [Ping timeout: 272 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
yoshie902a has joined #ruby
<edwardthefma> im looking for a good example of copy pasting a file with ruby
<apeiros> edwardthefma: require 'fileutils'; FileUtils.cp(from, to)
<brisbin> system("cp -v from to") # ?
* apeiros smacks brisbin
<brisbin> ;)
kaldrenon has quit [Remote host closed the connection]
<mjc_> system, yuck
<brisbin> aka you're using the wrong tool
mocfive has joined #ruby
farn has quit [Read error: Connection reset by peer]
nanoyak has quit [Ping timeout: 272 seconds]
tziOm has quit [Read error: Operation timed out]
gasbakid has joined #ruby
clamstar has joined #ruby
ValicekB has joined #ruby
tziOm has joined #ruby
claymore has quit [Quit: Leaving]
farn has joined #ruby
<miah> i'd much rather use FileUtils than system(cp)
<miah> i write softawre for systems automation (mostly chef, but lots of other things too)
nanoyak has joined #ruby
<miah> recently i wrote a class that uses the Rubygems TarPackage class because you can never trust tar to be tar
<miah> its different in gnu, bsd, sysv, etc
sambao21 has joined #ruby
<shevy> Yes!
<miah> my code isn't perfect, and could certainly use some improvements. but i can test it and verify that it will work correctly across platforms much easier
mercwithamouth has quit [Ping timeout: 252 seconds]
darthdeus has quit [Quit: Leaving...]
<shevy> your code is perfect!
<miah> i think that its always good to note that you (or your code) are not perfect. also that you occassionally fail at things.
<shevy> I am motivating everyone today!
<miah> it helps beginners who are new see that even people who seem to know what they are talking about are also human
<miah> well <3 i appreciate it
mercwithamouth has joined #ruby
brianpWins has quit [Quit: brianpWins]
<miah> people are sometimes too mean on the internet (myself included)
<shevy> Indeed!
spider-mario has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 252 seconds]
allaire has joined #ruby
mklappstuhl has joined #ruby
<shevy> brisbin if you want your scripts to run on windows too, FileUtils is the way to go!
<miah> indeeds
sparrovv has joined #ruby
yoshie902a has quit [Quit: yoshie902a]
<miah> also, make sure you use File.join rather than "/my/file/path" as File.join will use the correct FILE_SEPPERATOR
kristiandelay has quit [Remote host closed the connection]
failshell has quit []
reset has joined #ruby
<canton7> (not that windows cares about using forward slashes)
<apeiros> miah: just that so far on all known OSes FILE_SEPARATOR is "/"
<apeiros> that includes windows
maveonair has joined #ruby
maveonair has quit [Client Quit]
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
<miah> interesting
chrisseaton has joined #ruby
<canton7> the main advantage imo of File.join is that it doesn't matter if you have leading/trailing slashes - File.join('one/', '/two') is the same as File.join('one', 'two'), etc
ss_ has joined #ruby
<miah> canton7: true
<apeiros> I used to use File.join, but given the above fact, I stopped
<apeiros> string interpolation is IMO less annoying
allaire has quit [Client Quit]
<miah> i tend to just pass my var's to file.join to render what i want
<canton7> horses for courses
<apeiros> especially if your parts are not full names, e.g. "foo_#{id}/bar_#{name}"
<miah> you can still pass a interpolated string to file.join
<miah> file.join("foo_#{id}", "bar_#{name}") is valid
Jetchisel has joined #ruby
<apeiros> that said, I still want to make a path template class, to have things like turning an ID 4085954778 into f3/8a/b8/da
<apeiros> miah: I know. but more work for no gain
<miah> i agree mostly
yoshie902a has joined #ruby
<shevy> hmm
bbloom has quit [Ping timeout: 272 seconds]
rubyracer has quit [Quit: Konversation terminated!]
<edwardthefma> change the frome and to to the filename and dir
<shevy> File.join('one/', '////two') # => "one////two"
<edwardthefma> ?
<shevy> that confuses me though. are paths with several successive / valid?
<edwardthefma> miah
reset has quit [Quit: Leaving...]
<apeiros> shevy: the shell iirc reduces them to a single slash
<apeiros> don't know how system APIs deal with it
<edwardthefma> or do i need to wright somthing to define from and to
<miah> hrm?
<apeiros> edwardthefma: they are variables
shadoi has joined #ruby
blackmesa has joined #ruby
<apeiros> they should contain strings with the path of the files
momomomomo has quit [Quit: momomomomo]
<Sawbones> clear
<Sawbones> whoops
<Sawbones> not my terminal window >_<
ctp has joined #ruby
EngierkO has quit [Quit: Textual IRC Client: www.textualapp.com]
mercwithamouth has quit [Ping timeout: 252 seconds]
<Sawbones> What I wanted to ask was, what is being passed to this method:
<Sawbones> validates :name, presence: true
<Sawbones> what is presence: true?
<apeiros> a hash
<shevy> Sawbones that looks like a hash but a bit fucked up
<apeiros> `validates :name, presence: true` is sugar for `validates(:name, {presence: true})`
<shevy> been simpler in the old days with =>
<Sawbones> That's right out of a Rails snippets
<apeiros> and `{presence: true}` is an alternative to writing `{:presence => true}`
<shevy> Sawbones guess who pioneered the whole foo: bla syntax ... the railsers! ;)
<terrellt> Hash rockets ftw.
<Sawbones> hmm interesting, now that I know the code might make more sense
<apeiros> oh dear deary me…
<shevy> the railsers are innocent on the stabby lambda though
<shevy> that was after matz had some sake already
<shevy> big ufo => small ufo ->
yoshie902a has quit [Quit: yoshie902a]
<shevy> complete ufo <=>
iamjarvo has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 246 seconds]
binw has quit [Read error: Connection reset by peer]
yoshie902a has joined #ruby
<jokke> i'm having some trouble with a sinatra url-shortener i hacked together.. Seems to have problems with ampersands in the passed urls. Can you spot the possible problem? https://paste.jreinert.com/eQqJuB/
nanoyak has quit [Quit: Computer has gone to sleep.]
nifty has quit [Ping timeout: 245 seconds]
<jokke> ah
<jokke> makes sense now
<shevy> hehe
Wolland has quit [Remote host closed the connection]
Xeago has joined #ruby
nanoyak has joined #ruby
<yoshie902a> hi, I've been stuck on this issue for a few days, if anyone has an idea to solve it, please let me know. https://github.com/ueno/ruby-gpgme/issues/26
binw has joined #ruby
VTLob has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
w4pm has quit [Ping timeout: 252 seconds]
breakingthings has quit []
jerius has quit []
<bnagy> looks like a bug with that lib
danijoo has quit [Read error: Connection reset by peer]
edwardthefma has quit [Quit: Leaving]
jragon has quit [Ping timeout: 272 seconds]
danijoo has joined #ruby
yazdmich has quit [Changing host]
yazdmich has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
lfox has joined #ruby
fantazo has quit [Ping timeout: 260 seconds]
nanoyak has quit [Read error: Operation timed out]
Sawbones has quit []
danshultz has quit [Remote host closed the connection]
frx has left #ruby [#ruby]
<Hanmac> shevy look https://github.com/rdoc/rdoc/issues/284 my issue is getting fixed :P
nanoyak has joined #ruby
w4pm has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<shevy> we don't need rdoc anyway
Xeago has joined #ruby
Xeago_ has joined #ruby
shime has quit [Ping timeout: 252 seconds]
_bart has joined #ruby
<shevy> Hanmac if I manage to compile glibc and have it run, I will switch to ruby-2.1 even if my yaml files won't work!
doodlehaus has quit [Remote host closed the connection]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
olivier_bK has quit [Ping timeout: 252 seconds]
Xeago has quit [Read error: Operation timed out]
doodlehaus has joined #ruby
Cephalostrum has joined #ruby
Hobogrammer has quit [Quit: Leaving]
Hobogrammer has joined #ruby
r0bby_ has joined #ruby
justsee has quit [Quit: leaving]
justsee has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 252 seconds]
<shevy> hmm
<shevy> is there a simple way to alias class methods, without class << self ?
terrellt has quit [Quit: Always try to be modest, and be proud about it!]
drumusician has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Ping timeout: 246 seconds]
ffranz has quit [Quit: Leaving]
nanoyak has joined #ruby
Guedes0 has joined #ruby
mansi has quit [Remote host closed the connection]
<apeiros> shevy: define Object#alias_singleton_method
lockweel has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
rudisimo has quit [Read error: Connection reset by peer]
rudisimo|away has joined #ruby
kirun has quit [Quit: Client exiting]
fijimunkii has joined #ruby
lockweel has joined #ruby
baroquebobcat has joined #ruby
dblessing has quit [Quit: dblessing]
mansi has quit [Ping timeout: 265 seconds]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sergicles has quit [Quit: sergicles]
cescalante is now known as ce_afk
<apeiros> shevy: not good enough?
sailias has quit [Ping timeout: 252 seconds]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mocfive has quit [Remote host closed the connection]
jrist_ is now known as jrist-afk
jrist-afk is now known as jrist
dreinull has quit [Quit: leaving]
brianpWins has joined #ruby
mocfive has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
peregrin_ has quit []
lethjakman has joined #ruby
<lethjakman> is the best way to passin hash params like: def fun rest
<lethjakman> ?
yasushi has joined #ruby
<lethjakman> pass in*
<shevy> apeiros you mean extending class Object ?
<Hanmac> shevy look at this scene : http://www.youtube.com/watch?v=q8FvM8H_0-k
alexfreidah has joined #ruby
<apeiros> shevy: yes
SCommette has quit [Quit: SCommette]
<shevy> Hanmac you watch really STRANGE stuff man
<Hanmac> lethjakman: in 2.0+ you can use def fun(**args);end for hash options
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<lethjakman> Hanmac: does that have an advantage?
<Hanmac> shevy watch it and comment later
strabcz has joined #ruby
<shevy> apeiros hmm. I used to modify many parts of the ruby stdlib in the past, I still do that for local use. A problem I eventually had was that when I package up things into a gem, I'd have to distribute these modifications at well, which isn't that good, so I kinda stopped doing that
<Hanmac> lethjakman: yes when using with other option args
<lethjakman> ahhh ok
<shevy> 5 years ago I thought the facets gem was cool, now I am no longer so sure
<apeiros> shevy: then no, there's no nicer way than class << self
strabcz has quit [Client Quit]
mercwithamouth has joined #ruby
<shevy> Hanmac this is SICK, what is that thing doing
<ddd> shaving a yak with a butter knife
<shevy> apeiros ok
r0bby_ has quit [Read error: No route to host]
mocfive has quit [Ping timeout: 245 seconds]
<shevy> Hanmac I don't get these things, I grew up with tom and jerry. that's just grusome there!
maroloccio has quit [Quit: WeeChat 0.4.2]
<ddd> hanmac shevy is absolutely on point. you want some STRANGE shit
EngierkO has joined #ruby
<ddd> s/want/watch/
<ddd> maybe want too, idk
alexfreidah has quit [Ping timeout: 245 seconds]
freezey has quit [Ping timeout: 248 seconds]
<shevy> the japanese tend to be on the extreme scales. either it's extremely awesome or extremely STRANGE
<Hanmac> shevy did you already watched the whole scene? (this ball was a nuclear weapon ... directly pointing to the MC's head ;P and the girl thought the only way against it was to hit the ball with a bat)
yasushi has quit [Ping timeout: 272 seconds]
<shevy> Hanmac my head hurts
<Hanmac> shevy or both
lockweel has quit [Ping timeout: 245 seconds]
peregrin_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yoshie902a has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
<ddd> i have such weird friends, lol
chrismerrill has joined #ruby
rezzack has joined #ruby
rayners has quit [Remote host closed the connection]
w4pm has joined #ruby
rburton- has quit [Quit: Leaving...]
mocfive has joined #ruby
prc has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrismerrill has left #ruby [#ruby]
io_syl has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
IcyDragon has joined #ruby
IceDragon has quit [Disconnected by services]
RaCx has quit [Quit: Computer has gone to sleep.]
IcyDragon is now known as IceDragon
Guedes0 has quit [Ping timeout: 252 seconds]
pu22l3r_ has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
lorelei has joined #ruby
lorelei is now known as Guest58434
lioninawhat has joined #ruby
Guest58434 has joined #ruby
Guest58434 has quit [Changing host]
burlyscudd has quit [Quit: Leaving.]
vky has joined #ruby
Guest58434 has quit [Client Quit]
yaymukund has quit [Ping timeout: 245 seconds]
pu22l3r has quit [Ping timeout: 272 seconds]
lorelei_ has quit [Ping timeout: 272 seconds]
sayan has quit [Quit: Leaving]
CaptainJet has quit []
nanoyak has quit [Ping timeout: 245 seconds]
lorelei_ has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
vky has quit [Ping timeout: 246 seconds]
nanoyak has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jimeh has quit [Remote host closed the connection]
jimeh has joined #ruby
yfeldblum has quit [Remote host closed the connection]
MindfulMonk has joined #ruby
jlast has quit [Remote host closed the connection]
Guedes0 has joined #ruby
thesheff17 has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
yasushi has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
Beoran_ has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
yfeldblum has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
shinobi_one has joined #ruby
<shinobi_one> `1 == 1 && 5` returns 5, can someone explain this?
freakcult has quit [Quit: Lost terminal]
maycon has quit [Ping timeout: 272 seconds]
<Hanmac> shinobi_one: what did you excepted?
<shinobi_one> Hanmac: I wouldn't exepect anything. I wouldn't expect this syntax to be valid lol.
fijimunkii has quit [Read error: Connection reset by peer]
<Hanmac> for sample
<Hanmac> >> 1 && 5
<eval-in> Hanmac => 5 (https://eval.in/90717)
<Hanmac> 1 || 5
<Hanmac> >> 1 || 5
<eval-in> Hanmac => 1 (https://eval.in/90718)
<shinobi_one> Those make senxe
<shinobi_one> sense*
reckio has joined #ruby
<mjc_> shinobi_one: it's a handy shortcut
<mjc_> the rest of the expression is true so it returns a truthy value
<shinobi_one> a handy shortcut that doesn't read well unless you know about it I guess
<DouweM> shinobi_one: why do those make sense but not 1 == 1 && 5?
rudisimo|away is now known as rudisimo
vim_shim_ has quit [Read error: Connection reset by peer]
<shinobi_one> DouweM: because it looks like 1 == (1 && 5) although it's not I get that
<DouweM> ah right, but that's just operator precedence
vim_shim_ has joined #ruby
fedesilva has joined #ruby
e62 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
fijimunkii has joined #ruby
Xeago_ has quit [Remote host closed the connection]
reckio has left #ruby [#ruby]
gasbakid has quit [Remote host closed the connection]
Nightmare has quit [Ping timeout: 276 seconds]
lorelei_ has quit [Ping timeout: 272 seconds]
Beoran_ has joined #ruby
Wolland has joined #ruby
samuel02 has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Client Quit]
Targen has quit [Ping timeout: 276 seconds]
reset has joined #ruby
reset has quit [Client Quit]
<lethjakman> hey, I'm trynig to do a conditional validation like this: https://gist.github.com/lethjakman/8465776
<lethjakman> but when I have "if item_id.nil?" it tells me that it can't find item_id, but when I remove that validation it's clearly there
<lethjakman> any clue what's going on?
sec^nd has quit [Remote host closed the connection]
Sawbones has joined #ruby
ss_ has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
<Sawbones> hey guys what's the question mark that comes after some methods?
geggam has quit [Quit: commute]
ss has joined #ruby
sec^nd has joined #ruby
ss is now known as Guest3512
burlyscudd has joined #ruby
<lethjakman> Sawbones: in methods it's just a question. with attributes you can use it to verify truthiness
<lethjakman> s/question/question mark/
lmickh has quit [Remote host closed the connection]
<Sawbones> so like....isvalid?
mocfive has quit [Remote host closed the connection]
yoshie902a has joined #ruby
klaut has quit [Remote host closed the connection]
rudisimo has quit []
danshultz has joined #ruby
mocfive has joined #ruby
mojjojo has joined #ruby
Sawbones has quit [Remote host closed the connection]
<DouweM> lethjakman: the if is now evaluated when the class itself is loaded for the first time
<DouweM> lethjakman: you need the :if option with a lambda
freerobby has quit [Quit: Leaving.]
<lethjakman> DouweM: just found that actually! thank you :)
<DouweM> that's why the error says there's no item_id on Class!
Guest3512 has quit [Ping timeout: 252 seconds]
<lethjakman> it seems to work in a string too...
<DouweM> what seems to what?
<soahccc> Sawbones: yeah methods ending with a question mark indicates a boolean return value. the "is" prefix is not common in the ruby world though
<yoshie902a> I'm getting a " Inappropriate ioctl for device" error, and it has something to do with permissions. I'm not sure how to trouble shoot this. I've googled and googled, but not getting anywhere. any recommendations?
shadoi has quit [Quit: Leaving.]
<lethjakman> seems to control the validation
<DouweM> just in-line like that? no it doesn't
<lethjakman> DouweM: this: validates :name, presence: true, if: "item_id.nil?"
<DouweM> that should work, but a lambda looks nicer
<DouweM> the current `if name.nil?` definitely doesn't work though
<lethjakman> DouweM: what do you mean?
<DouweM> and RE your "with attributes you can use it to verify truthiness" nope, those are just methods as well, named #{attribute}?
<lethjakman> DouweM: what does the lambda version look like?
pu22l3r_ has joined #ruby
<DouweM> validates :name, presence: true, if: lambda { |sale| sale.item_id.nil? }
<lethjakman> I thouhgt you could do ~> for a lambda too...is that wrong?
<DouweM> and your `validates :item_id, presence: true if name.nil?` definitely doesn't do what you want, if that's what you were implying
<DouweM> right, stabby lambda. I don't like it, some do
drim has joined #ruby
<lethjakman> it tells me unexpected >
<DouweM> with -> it'd be if: ->(sale) { sale.item_id.nil? }
apeiros has quit [Remote host closed the connection]
<lethjakman> ahhh it's not ~
<lethjakman> DouweM: where is that sale var coming froM?
mocfive has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
<DouweM> it's an argument to the lambda
<DouweM> like methods args
tvw has quit []
<lethjakman> DouweM: is it the same as self?
danshultz has quit [Ping timeout: 245 seconds]
<drim> can I do something like this ? def emails<<(email) ?
<DouweM> it's assigned with the sale in question
<DouweM> not sure if self is the sale in those lambdas
<DouweM> drim: no
mneorr_ has joined #ruby
meatherly has quit [Remote host closed the connection]
mneorr_ has quit [Remote host closed the connection]
<lethjakman> drim: what are you wanting to do?
unixpro1970 has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
g3orge has quit [Quit: WeeChat 0.4.2]
<lethjakman> hrm ok
<lethjakman> thank you
<drim> override << on the properties emails
iamsean has quit [Ping timeout: 272 seconds]