apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
yankeefan04 has joined #ruby
malte_ has quit [Quit: malte_]
mneorr has quit [Remote host closed the connection]
cobragoat has joined #ruby
Bry8Star has quit [Remote host closed the connection]
pbertain has quit [Quit: pbertain]
angusiguess has joined #ruby
zeroeth has quit [Ping timeout: 245 seconds]
emmanuelux has joined #ruby
cobragoat has quit [Ping timeout: 260 seconds]
x0F has quit [Ping timeout: 256 seconds]
chrisnicola has joined #ruby
sambio has joined #ruby
sambio has joined #ruby
Bry8Star has joined #ruby
yankeefan04 has quit [Remote host closed the connection]
dreinull has quit [Remote host closed the connection]
senayar has quit [Quit: Quitte]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
atno has joined #ruby
marr has quit [Ping timeout: 252 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
kofno has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
Matip has quit [Quit: Leaving]
momomomomo has joined #ruby
ariedler has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
tomsthumb has joined #ruby
PixelCrumbs is now known as [PixelCrumbs]
kofno has quit [Ping timeout: 256 seconds]
yashshah has quit [Ping timeout: 252 seconds]
tootooroo has joined #ruby
[PixelCrumbs] is now known as ASDF___
ASDF___ is now known as PixelCrumbs
pskosinski has quit [Quit: pskosinski]
madhatter has quit [Ping timeout: 245 seconds]
PixelCrumbs is now known as _-
_- is now known as PixelCrumbs
beneggett has joined #ruby
huoxito has quit [Quit: Leaving]
yashshah has joined #ruby
emocakes has quit [Quit: emocakes]
huoxito has joined #ruby
x0F has joined #ruby
chrisnicola has joined #ruby
idkazuma has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
jacob__ has quit [Quit: Leaving]
justsee has quit [Ping timeout: 255 seconds]
yashshah has quit [Ping timeout: 240 seconds]
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
PixelCrumbs is now known as Pixel_Breaky
justsee has joined #ruby
nikeita has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
MrZYX is now known as MrZYX|off
emocakes has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
zeroeth has joined #ruby
shammancer_ has quit [Quit: Leaving.]
generalissimo has quit [Remote host closed the connection]
shammancer has joined #ruby
wargasm1 has joined #ruby
madhatter has joined #ruby
bradleyprice has quit [Remote host closed the connection]
emocakes has quit [Client Quit]
wmoxam has joined #ruby
wargasm has quit [Ping timeout: 255 seconds]
nikeita has left #ruby [#ruby]
danneu has joined #ruby
Sicp has quit [Quit: Leaving]
Pixel_Breaky is now known as PixelCrumbs
Bosox20051 has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
nikeita has joined #ruby
slainer68 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
xardas has quit [Ping timeout: 245 seconds]
tobym has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
hamakn has joined #ruby
alextan has joined #ruby
alextan has quit [Client Quit]
alextan has joined #ruby
alextan has left #ruby [#ruby]
jgrevich has quit [Ping timeout: 245 seconds]
nikeita has quit [Remote host closed the connection]
tobym has quit [Remote host closed the connection]
tobym has joined #ruby
<ntzrmtthihu777> anyone familiar with the openrgss gem? attempting to use it with the openrgss player but think I'm doin something wrong.
Mattix has joined #ruby
jgrevich has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
Proshot has quit [Quit: Leaving]
slainer68 has quit [Ping timeout: 252 seconds]
danneu has quit [Ping timeout: 252 seconds]
Andromeda has joined #ruby
callmeivan has joined #ruby
eka has joined #ruby
urbanmonk has joined #ruby
<Mattix> what should you overwrite to be able to do something like my_object[:my_instance_var] = "my value" ?
hiroyuki has quit [Read error: Connection reset by peer]
<Mattix> where my_object.class is Foo (it's not a hash)
urbanmonk has quit [Client Quit]
urbanmonk has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
PixelCrumbs has quit [Read error: Connection reset by peer]
urbanmonk has quit [Client Quit]
soulofpeace has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
ixti has quit [Quit: WeeChat 0.4.0]
jgrevich has joined #ruby
Skofo has quit [Ping timeout: 276 seconds]
urbanmonk has joined #ruby
Skofo has joined #ruby
<Mattix> ah, I got it, never mind
Vivekananda has joined #ruby
mahmoudimus has joined #ruby
<Vivekananda> Hey everyone. Is this a good place to ask beginner ruby questions ?
<Mattix> it is
megha has joined #ruby
<Vivekananda> very beginner and stupid ones ?
<Vivekananda> :)
<Mattix> probably
pbertain has joined #ruby
baba has quit [Ping timeout: 245 seconds]
<waxjar> ask away Vivekananda
Xeago has quit [Remote host closed the connection]
<Vivekananda> so is var = [a , b , c] correct ? if it not known what types are for a b c
Es0teric has joined #ruby
<Mattix> did you mean var = [:a, :b, :c] ?
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Mattix> ok a, b, c = 1, 2, 3; var = [a, b, c] ?
kofno has joined #ruby
<Mattix> err, or **
<waxjar> Vivekananda: depends on what you want to do, but that'd be valid Ruby code, yes.
mneorr has joined #ruby
jpfuentes2 has joined #ruby
<Mattix> it's weird it doesn't know the types though
<Vivekananda> Mattix: no. I just assign something to a variable but I have not predeclared what those elements are , whether objects or string objects or symbol objects
<Vivekananda> not declared as in literally declared
<Mattix> you should paste the code, the syntax is valid, the problem is somewhere else
<waxjar> you don't have to tell Ruby what kind of objects you're going to assign to a variable
<Vivekananda> ok so another one. I am trying to find all various ways of writing the poetic code so to speak so is x.[](1) valid
kofno_ has joined #ruby
<Vivekananda> waxjar: but I read that you have to assign variables before using them
<Vivekananda> I have not assigned so shoudl I get an error ?
niklasb has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
<Mattix> sure
<waxjar> yeah
<Mattix> but not a type error
<Mattix> "NameError: undefined local variable or method"
kofno has quit [Read error: Connection reset by peer]
<Mattix> that's why pry shows ^
angusiguess has joined #ruby
<Vivekananda> ok nice
<Vivekananda> so what about the meaning of x.[](1).
geggam has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 264 seconds]
<waxjar> [] is the method name
<Vivekananda> I learnt that there are various ways to write x.send(+,y)
Hanmac has quit [Ping timeout: 245 seconds]
geggam has joined #ruby
<Mattix> it's like doing x[1]
<Mattix> x = [1,2,3]; x[1] == x.[](1) == x.[] 1 == x.send :[], 1 == etc
<Vivekananda> Mattix: I wanted to know the various ways I can say
<Vivekananda> ok yes that is what I want to know
<Vivekananda> any reference I can use for such things ?
<waxjar> google for syntactic sugar in ruby, something useful will probably come up
<Mattix> >> [1,2,3].method(:[]).to_proc.call 1
<eval-in> Mattix => 2 (http://eval.in/15260)
<Mattix> lol
<Vivekananda> ok. I was hoping that the interpreter could give me detailed hints / clues as it does in java
<Vivekananda> ok next . if I say foo + bar then supposing one is string and other integer what happens ?
<Mattix> try it xD
chrishough has joined #ruby
<Vivekananda> hmm okay yes I should do that
DrShoggoth has quit [Ping timeout: 260 seconds]
nomenkun has quit [Remote host closed the connection]
razieliyo has joined #ruby
wargasm1 has quit [Ping timeout: 252 seconds]
r0bby has quit [Read error: Connection reset by peer]
<Vivekananda> ok got cannot convert fixnum into string
wargasm has joined #ruby
r0bby has joined #ruby
<Vivekananda> I leart that we can write "string" and %Q{string} for a string
<Vivekananda> but what does %Q{"a" , "b" , "c"} mean ?
jamesaxl has quit [Remote host closed the connection]
razieliyo has quit [Ping timeout: 256 seconds]
Arzaga has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
<Spooner> Vivekananda, The advantage of %Q{} is that it doesn't require you to escape quotes.
Mattix has quit [Read error: Connection reset by peer]
<Spooner> Vivekananda, That is the same as "\"a\" ,\ "b\" , \"c\""
Mattix has joined #ruby
<Vivekananda> yes but I thought that there can only be one string inside that structure
<Vivekananda> but am wrong
<Spooner> Vivekananda, It is only one string, but it contains double-quote characters.
LennyLinux has quit [Remote host closed the connection]
<Vivekananda> ooo ok hmm
<Vivekananda> that makes sense
<Spooner> It is also the same as: '"a" , "b" , "c"'
<Vivekananda> okay so I have this %q{"I, Robot", "PG-13"}, which of these regexes will capture it.? regexp = /"([^"]+)",\s*"([^"]+)"/ regexp = /"(.*)",\s*"(.*)"/. I thought the second would
<Vivekananda> I am doing a problem actually
<Spooner> Regarding your previous question about foo + bar where one is a string and one a number. You _could_ use str + num.to_s, but it is more usual to use "whatever#{num}" since #{} runs to_s for you.
<Vivekananda> the condition says that You may assume movie titles and ratings never contain double-quote marks. Within a single entry, a variable number of spaces (including 0) may appear between the comma after the title and the opening quote of the rating.
<Vivekananda> Spooner: I already tried that . It gave me the expected error , cannot convert fixnum
<Vivekananda> to string
shortcutmedia has quit [Ping timeout: 256 seconds]
<Spooner> You weren't using either #to_s or interpolation (#{}) then.
<Vivekananda> so for the regex the first one will include the double quotes. no ?
mattbl has quit [Quit: This computer has gone to sleep]
<Vivekananda> Spooner: I wasnot trying to . I was just trying to know what happens when I do this
<Vivekananda> or do that :)
<Vivekananda> just playing around. I dont actually want to add it at the moment. Very new to ruby
<Spooner> The reason the second one fails is because the .* will eat everything. You need .*? instead (or the other one that just looks for not quotes).
<Vivekananda> do you mean that the first one is correct ?
<Spooner> Actually, no, they both work fine.
<Spooner> You were misleading me there ;)
<Vivekananda> there is only one correct answer and I have 4 choices
Matt has joined #ruby
<Vivekananda> I marked it incorrectly but just want to know what the correct one would be
<Spooner> Well, run the code in irb and see for yourself.
<Vivekananda> for the next queestion
Matt is now known as Guest63549
<Vivekananda> irb will not tell me what is matched or not right ?
<Spooner> irb will tell you fine.
<Vivekananda> the 4 choices I have are regexp = /"([^"]+)",\s*"([^"]+)"/regexp = /"(.*)",\s*"(.*)"/regexp = /"(.*)", "(.*)"/ regexp = /(.*),\s*(.*)
<Spooner> [1] pry(main)> %q{"I Robot", "PG-13"} =~ /"(.*)",\s*"(.*)"/
<Spooner> => 0
<Vivekananda> hmm okay
<Spooner> 0 means it matches from the first character (nil means it doesn't match).
yoshie902a has joined #ruby
DrShoggoth has joined #ruby
mando has joined #ruby
drale2k has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
<yoshie902a> Hi, I tried [3,4].include?([3,4]), because I need to test if there is at least one match between two arrays. However, my code does not work. any good way to do this?
<Vivekananda> Spooner: I get zero for all
<Spooner> yoshie902a, You are asking if either 3 == [3, 4] or 4 == [3, 4] - that is, seeing if any of the members are equal to another array.
<Vivekananda> what does that mean ?
<Vivekananda> all match ??
<Spooner> Vivekananda, Yes, they will all _match_. However they don't all match correctly.
<Spooner> You need to check $1 and $2 to see if they are what you expect.
<Vivekananda> how do I write that ?
<Spooner> For example, the last one will include the quotes in the match.
<Vivekananda> a =~ regex get $1 or something
<yoshie902a> figured it out
sleetdrop has joined #ruby
<yoshie902a> array1 & array2 will give me the intersections
<yoshie902a> thanks!
ntzrmtthihu777 has left #ruby [#ruby]
<Spooner> yoshie902a, Yeah, I was going to suggest that.
<yoshie902a> Spooner: b/c your smart. I found it on google
stringoO has joined #ruby
mando has quit [Ping timeout: 248 seconds]
<Vivekananda> Spooner: how do I output $1 and $2?
bilalq_ has joined #ruby
bilalq_ has left #ruby [#ruby]
<Spooner> You can just type them into irb/pry after you've done the =~
ner0x has quit [Ping timeout: 248 seconds]
<Spooner> OR something like:
<Spooner> >> %q{"I Robot", "PG-13"} =~ /"(.*)",\s*"(.*)"/; [$1, $2]
<eval-in> Spooner => ["I Robot", "PG-13"] (http://eval.in/15261)
maletor has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<Spooner> The first two seem most correct, though one matches 1 or more characters between the quotes and the second one matches 0 or more. One seems best really.
* Spooner wanders off again.
tylersmith has joined #ruby
wmoxam has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby
nomenkun has joined #ruby
akashj87 has joined #ruby
slainer68 has joined #ruby
kofno_ has quit [Remote host closed the connection]
nomenkun has quit [Read error: Connection reset by peer]
akashj87 has quit [Disconnected by services]
chrisnicola has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
akashj87 has joined #ruby
danneu has joined #ruby
yshh has joined #ruby
Michae___ has joined #ruby
tomsthumb has joined #ruby
Michae___ is now known as jacklyn
danneu has quit [Read error: Operation timed out]
akashj87__ has joined #ruby
pitzips has quit [Ping timeout: 246 seconds]
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
akashj87 has quit [Disconnected by services]
akashj87__ has quit [Client Quit]
<Axsuul> Can anyone recommend me a good way to track which classes have a certain module included?
akashj87 has joined #ruby
ner0x has joined #ruby
Guest63549 has quit [Quit: This computer has gone to sleep]
chrisnicola has joined #ruby
<otters> >> /(b|a*)+c/ =~ "aaaaaaaaaaaaabaaaaac"
<eval-in> otters => 0 (http://eval.in/15262)
<otters> >> /(b|a*)+c$/ =~ "aaaaaaaaaaaaabaaaaac"
<eval-in> otters => 0 (http://eval.in/15263)
<otters> huh
akashj87__ has joined #ruby
<waxjar> Axsuul, do you really need to know if a module is included or do you just need to know wether or not in responds to a certain method?
dhruvasagar has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
akashj87 has quit [Ping timeout: 240 seconds]
<Axsuul> waxjar: I need an array of all classes that have this module included, but i suppose i can achieve the same thing if it responds to method, thanks!
newUser1234 has quit [Remote host closed the connection]
<waxjar> ah, in that case you can just do #is_a Mixin
<waxjar> *is_a?
angusiguess has quit [Ping timeout: 276 seconds]
michaelmartinez has joined #ruby
<tylersmith> Axsuul: you could use the included hook
<Axsuul> tylersmith: it's not reliable cause not all classes may have been loaded
michaelmartinez has quit [Client Quit]
<Axsuul> (rails)
akashj87__ has quit [Ping timeout: 240 seconds]
pilojo has joined #ruby
rcosta has quit [Remote host closed the connection]
<Vivekananda> ruby I think I will quit for now
<Vivekananda> :(
<Vivekananda> learn later I guess
rcosta has joined #ruby
<waxjar> Axsuul, a mixin would also be in the ancestors class method, if you're iterating over a list of classes
<pilojo> When i try to convert a value in an array to a string i get the error ":in `+': can't convert Array into String (TypeError)". When i use the .join function, i get "in `newgame': private method `join' called for "tranquil":String (NoMethodError)"
shevy has quit [Ping timeout: 255 seconds]
<Vivekananda> could someone look at this and tell me one thing. What is the expected output for this question. ? https://gist.github.com/anonymous/f526e93528e4ad4faa06
tommyvyo has quit [Quit:]
geggam has quit [Remote host closed the connection]
sayan has joined #ruby
momomomomo has joined #ruby
wsterling has joined #ruby
Matt has joined #ruby
Matt is now known as Guest22322
<Vivekananda> anyone here ?
<pilojo> Vivekananda: doesn't look like it
<Vivekananda> hmm
<Vivekananda> so any clues on what the problem wants
<Vivekananda> I was hoping to ask more question and learn more
<Vivekananda> like how does inheritance work in ruby ?
<pilojo> Vivekananda: i'm looking for help myself
<Vivekananda> pilojo: I am a beginner
<pilojo> Vivekananda: i started learning on tuesday
<Vivekananda> just begun :)
<Vivekananda> oo nice
<Vivekananda> which class ?
<Vivekananda> or just by yourself ?
<pilojo> Vivekananda: by myself
<pilojo> making an IRC bot
<pilojo> 600 lines in already
<Vivekananda> hmm nice
<pilojo> stuck with arrays, though
jeffreylevesque has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
shevy has joined #ruby
<welandC> What are you stuck on?
<pilojo> When i try to convert a value in an array to a string i get the error ":in `+': can't convert Array into String (TypeError)". When i use the .join function, i get "in `newgame': private method `join' called for "tranquil":String (NoMethodError)"
Vert has quit [Quit: No Ping reply in 180 seconds.]
<welandC> What's the line of code?
<pilojo> wolf1 = $wolves.to_s
<pilojo> $IRCSocket.puts("NOTICE "+wolf1+" :You are an angel. Use kill in a PM/notice to kill any of the following players: "+$joinlist.each{|x| print x, ", "})
<welandC> wolf1 = $wolves[index].to_s
<pilojo> making a werewolf game right now
<pilojo> whoops
beneggett has joined #ruby
<pilojo> i did have the index earlier
mrfjor has quit [Ping timeout: 245 seconds]
Vert has joined #ruby
<pilojo> it's the same error, however
radic has quit [Disconnected by services]
radic_ has joined #ruby
<welandC> $joinlist.join(", ")
Davey has joined #ruby
<pilojo> welandC: look at the second error
nomenkun has joined #ruby
<welandC> Then it doesn't recognize that variable as being an array.
Guest22322 has quit [Quit: This computer has gone to sleep]
<welandC> Did you initialize it as Array.new?
<pilojo> $wolves = Array.[]
<pilojo> does it need to be Array.new?
<welandC> I don't know what Array.[] would do.
<welandC> Do you play with irb when debugging?
<welandC> Try a few lines in it.
jacklyn has quit [Remote host closed the connection]
<pilojo> welandC: i looked at the ruby docs, but i'll try Array.new
<Vivekananda> welandC: could you look at my link too ? suggest what is expected of the answer?
nezumi has joined #ruby
<Vivekananda> I am not sure how values are stored in the reexes
<pilojo> welandC: even with Array.new i get the same errors
<welandC> pilojo: I'll take a peek if you post the code.
wildcard1 is now known as wildcard0
angusiguess has joined #ruby
<welandC> Vivekananda: what is your question? What do you need to do?
soasme has joined #ruby
<welandC> Print a list of movies with their ratings?
soasme has quit [Remote host closed the connection]
soasme has joined #ruby
yoshie902a has left #ruby [#ruby]
soasme has quit [Remote host closed the connection]
cyberarm has joined #ruby
yshh has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 240 seconds]
cyberarm has quit [Client Quit]
nomenkun has quit [Ping timeout: 256 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
Andromeda has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
jumpei has joined #ruby
<Vivekananda> welandC: my question is here . I have tried all the outputs . I am getting quotes for all outputs. question asks me not to get quotes for titles
<Spooner> welandC, You can create an array with just x = [] - Array.[] calls the index method on the class itself. It is the same as Array[]
<Spooner> Vivekananda, You aren't getting quotes on all of them. When you print out a string it has quotes around it.
<welandC> Vivekananda: You're outputting an array of strings. irb will put quotes around strings. If you puts the contents of the array, it won't contain strings.
marcdel has quit []
jumpei_ has joined #ruby
<Spooner> pilojo, Use [] to create a new array, not Array.new (use Array.new when you want to pass parameters to the constructor).
mattbl has joined #ruby
<Spooner> pilojo, Also, try not to use global variables. They are horrid ;)
<pilojo> Spooner: i still get the same errors as when i use Array.new or Array.[]
chrisnicola has joined #ruby
plains has quit [Ping timeout: 245 seconds]
<Spooner> pilojo, There is a lot of code there. What is the error?
<pilojo> Spooner: ehhh, they need to be accessed from many files, so i'm trying to keep them limited
<Vivekananda> Spooner: welandC how do I print the $1 and $2 out so that I can observe what the value is and none of the quotes not quotes stuff
<pilojo> Spooner: When i try to convert a value in an array to a string i get the error ":in `+': can't convert Array into String (TypeError)". When i use the .join function, i get "in `newgame': private method `join' called for "tranquil":String (NoMethodError)"
Es0teric has quit [Quit: Computer has gone to sleep.]
<Vivekananda> I tried print($1) but does not work
jumpei has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
<Spooner> pilojo, You call #join on an Array, not on a String.
<Spooner> pilojo, When concatenating strings, use interpolation, not addition.
<pilojo> Spooner: err, don't know how to do that
<Spooner> pilojo, "frog#{var}fish" not "frog" + var + "fish"
<pilojo> ah
memristor has joined #ruby
<Spooner> That automatically calls #to_s on var so it will be a string and happy ;)
Andromeda has joined #ruby
benlieb has joined #ruby
<Spooner> Also, use #require_relative rather than an absolute path for #require.
<pilojo> alright, i just started learning ruby on tuesday, so i'm still trying to get a hold of all the small features
<Spooner> And don't explicitly require with .rb - just the base name is correct.
<pilojo> Spooner: still getting ":in `+': can't convert Array into String (TypeError)
<pilojo> " with interpolation
<Spooner> You can't just stick an array into a string. How do you actually want it to be presented?
<pilojo> $IRCSocket.puts("NOTICE #{$wolves[0]} :You are an angel. Use kill in a PM/notice to kill any of the following players: "+$joinlist.each{|x| print x, ", "})
<kseifried> WHAAAAAA GLARGLE BLARGH!
DonRichie has quit [Read error: Connection reset by peer]
* kseifried sighs and apologizes
<Spooner> pilojo, You are still using + with a string then an array.
<Spooner> You actually want "...following players: #{$joinlist.join(", ")}"
pandawarrior has joined #ruby
ZachBeta has joined #ruby
<pilojo> oh, ok
<pilojo> so the problem was the end of the line? not the beginning
<Spooner> each returns the array.
<Spooner> Yes.
DonRichie has joined #ruby
<pilojo> whoops
<pandawarrior> hello people!
<Spooner> Still, you learned about proper interpolation, so that isn't bad ;)
<pilojo> not bad at all
pitzips has joined #ruby
<pandawarrior> cache.each_value {|val| print val}: leaves a '%' at the end
<pandawarrior> how can i get rid of it?
<Spooner> You need to give a bit more information, pandawarrior
<pandawarrior> i have a hash and i want to print these on one line
<Spooner> pilojo, Really, you want to be thinking about using classes, rather than globals + methods, but that is quite a big step up.
<pandawarrior> print all the values
<Spooner> And why does that "leave a % at the end"?
<pandawarrior> but at the end of the line i get a percentge sign
<pilojo> Spooner: i know C++, classes are not strange to me, but it's just that it's a new language, so i want to leave it basic for now
postmodern has quit [Quit: Leaving]
<pandawarrior> Spooner: not sure, that's what i was wondering..
<Spooner> pilojo, Ruby is a lot more OO than C++, so you need to think about classes soon ;)
<pilojo> oh?
<Spooner> pandawarrior, At the least, I'd use cache.values.join instead.
jumpei_ has quit [Remote host closed the connection]
<pilojo> i thought C++ was designed to be used for OOP because C wasn't OO
<pandawarrior> Spooner: will give that a go, cheers
<Spooner> pilojo, Yes, but there are degrees of OO. C++ is more OO than C, but that doesn't mean Ruby can't be more OO than that. E.g. even integers are objects in Ruby.
ZachBeta has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<pilojo> O.o
<Spooner> >> 4.class
<eval-in> Spooner => Fixnum (http://eval.in/15265)
<Spooner> pilojo, Also, instead of horrid $line[$line.index(":")...$line.index("!")].delete(":"), I'd recommend using a Regexp.
<pilojo> Spooner: i don't know regex... i'm working on learning it
<pilojo> small steps
sayan has joined #ruby
<pilojo> Spooner: how would i go about using an asynchronous timer?
<Spooner> pilojo, e.g. nick = $line.match(/:(.*?)!/).captures[0]
* Spooner shrugs.
<pilojo> Spooner: i want to wait 2 mins while still performing actions
<Spooner> Really depends on what you want to do.
<chessguy> pilojo: there's a famous quote from Alan Kay. he said "I invented the term OO, and C++ was not what I had in mind."
<Spooner> Right.
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<fryguy> pilojo: take a look at eventmachine
danneu has joined #ruby
<Spooner> You could create a thread and sleep in it, but that introduces a lot of horror!
pbertain has quit [Quit: pbertain]
memristor has quit [Read error: Connection reset by peer]
<pilojo> Spooner: O.o i've done multithreading and i can see how terrible that can turn out
brianherman has quit [Quit: Leaving]
<pilojo> infact i HAVE seen how terrible it normally turns out
pbertain has joined #ruby
aapzak has quit [Ping timeout: 245 seconds]
<Spooner> pilojo, Also, look at Array#sample to get rid of using Random directly.
<chessguy> i can't say i'd want to take on a multithreaded project right now outside of clojure
<Spooner> pilojo, $seer = $playerlist.sample
<pilojo> Spooner: thanks, as i said, i'm new to ruby and don't know the little details such as that
<pilojo> makes it a lot easier
<Spooner> pilojo, Look up Array, Enumerable and String online and have a browse.
aapzak has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
<Spooner> And Hash
<Vivekananda> how does a.respond_to?('class') work ?
<pilojo> Spooner: i have looked at the docs, but the problem is i don't know what to look for
<Vivekananda> and how will A.respond_to? work
<pilojo> it's sorta like trying to look up a word in a dictionary by it's definition
<Spooner> Vivekananda, Work? It is true if that object (a) implements the method #class
stringoO has quit [Quit: stringoO]
<Vivekananda> oo ok
forced_request has quit [Read error: Connection reset by peer]
<Spooner> Yes, but it is well worth the time to browse those core classes. You'll use them all the time and you need to be aware of what they can do.
<Vivekananda> Spooner: I tried a.respond_to?(class) and gave me an error. So what is the syntax for respond_to ?
<Vivekananda> does it take a string argument ?
<Spooner> a.respond_to?("class") or a.respond_to?(:class)
<Spooner> The latter is preferred.
<Vivekananda> hmm
chandankumar has joined #ruby
Heero` has joined #ruby
<Spooner> Yeah, you are another one who needs to work out how to use documentation ;)
kofno has joined #ruby
<Vivekananda> thanks fryguy
jpfuentes2 has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
generalissimo has joined #ruby
* Spooner leaves the newbies to the documentation.
pitzips has quit [Quit: Leaving]
shock_one has quit [Remote host closed the connection]
chrisnicola has quit [Quit: This computer has gone to sleep]
pac1 has quit [Ping timeout: 258 seconds]
danneu has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
<kseifried> the docs are good. we should praise the docs. sacrifice puppies to the docs. all hail the docs!
ananthakumaran has joined #ruby
Pochacco has joined #ruby
momomomomo has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
yashshah has joined #ruby
hiyakash_ has joined #ruby
hiyakashi has quit [Ping timeout: 245 seconds]
Arzaga has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
oponder has quit [Remote host closed the connection]
chrisnicola has joined #ruby
jpfuentes2 has joined #ruby
marcdel has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
<Vivekananda> is there a method called .ancestors ?
<fryguy> you tell us, you were just asking about a method to check to see what objects respond to
chrisnicola has quit [Client Quit]
<Vivekananda> fryguy: I looked on that site. did not find a .ancestors method
banisterfiend is now known as banister`sleep
<Vivekananda> there
<fryguy> Vivekananda: 1. TIAS, 2. use respond_to?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Vivekananda> what is TIAS ?
pilojo has left #ruby ["Leaving"]
<fryguy> try it and see
<Vivekananda> I tried respond to and it works fine
<Vivekananda> the problem is that I am doing some questions and all the answers match !! :)
<Vivekananda> :(
<Vivekananda> one is supposed to be incorrect
Heero has quit [Quit: Leaving]
<Vivekananda> there are 4 options basically and all appear to be true
<Vivekananda> b.respond_to?('class')a.superclass == b.classA.superclass == Ba.class.ancestors.include?(C)
<Vivekananda> sorry b.respond_to?('class') a.superclass == b.class A.superclass == B a.class.ancestors.include?(C)
<Vivekananda> I know that 2 and 3 are fine
<Vivekananda> and 1 also is okay so it leaves 4
<Vivekananda> but now 4 also works so I am stuck
<bnagy> it depends how the classes are set up
<bnagy> they're all valid syntax, yeah
<Vivekananda> here A is subclass of B and B is of C
Astral_ has joined #ruby
<Vivekananda> so so 2 is true and so is 3
<Vivekananda> I thought 1 or 4 would be false
<bnagy> ah wait,
<Vivekananda> but ..
<bnagy> a.superclass == b.class is wrong
chrisnicola has joined #ruby
<Vivekananda> bnagy: omg why ?
<bnagy> work it out, or test it
<Vivekananda> that is the first one I markeed true
momomomomo has quit [Quit: momomomomo]
Astralum has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
<bnagy> ... and? We don't do gold stars here
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
tobym has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
<Vivekananda> what is gold stars ?
<bnagy> fry em? mash em? stick em in a stew?
<bnagy> anyway, I don't know what you're looking at, and it's not really important - I gave you the answer, all you need to do is work out why it's correct
Arzaga has joined #ruby
<bnagy> which is easiest to do by just messing with irb for 30 seconds
<bnagy> or pry or whatever
<Vivekananda> bnagy: I got it. It was on the tutorial page also
shammancer has quit [Quit: Leaving.]
<Vivekananda> ;P
nomenkun has joined #ruby
bradleyprice has joined #ruby
Guedes has quit [Quit: Saindo]
momomomomo has joined #ruby
bigmac has joined #ruby
tylersmith has quit [Quit: tylersmith]
nomenkun has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
<Vivekananda> is Array an instance of Class ?
<Vivekananda> no right ?
pyacks has joined #ruby
<Vivekananda> bnagy: is Array an instance of Class
freakazoid0223 has quit [Ping timeout: 248 seconds]
yoshie902a has joined #ruby
chrishough has quit [Quit: chrishough]
<yoshie902a> I'm trying to delete all records with a foreign key = 10, I tried, Documents.find_all_by_user_id(13).destroy_all, but I get a NoMethodError: undefined method `destroy_all' for []:Array. What am I doing wrong?
DrShoggoth has quit [Quit: Leaving]
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
<yoshie902a> oops, sorry that was a rails questions
momomomomo has quit [Quit: momomomomo]
<Vivekananda> have to pick out correct choices. I thought only 2 is correct but I am wrong . Array is an instance of Class.When self is used within the definition of an instance method, it refers to the current instance of the class.Ruby supports multiple inheritance.Public methods of a class cannot be redefined after an instance of that class is instantiated.
Matt has joined #ruby
Matt is now known as Guest40834
yshh has joined #ruby
<Vivekananda> have to pick out correct choices. I thought only 2 is correct but I am wrong 1. Array is an instance of Class. 2.When self is used within the definition of an instance method, it refers to the current instance of the class. 3.Ruby supports multiple inheritance. 2.Public methods of a class cannot be redefined after an instance of that class is instantiated.
chrisnicola has quit [Quit: This computer has gone to sleep]
dmiller2 has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
<Vivekananda> anyone here ?
<Vivekananda> fryguy: you around ? busy ?
yshh has quit [Ping timeout: 256 seconds]
<fryguy> Vivekananda: ?
<Vivekananda> a question
<Vivekananda> above
<Vivekananda> I pasted
<Vivekananda> I know that 3 is wrong
<fryguy> i don't see a question
<Vivekananda> have to pick out correct choices. I thought only 2 is correct but I am wrong 1. Array is an instance of Class. 2.When self is used within the definition of an instance method, it refers to the current instance of the class. 3.Ruby supports multiple inheritance. 2.Public methods of a class cannot be redefined after an instance of that class is instantiated.
<fryguy> what's the question
<Vivekananda> just pasted it above
<fryguy> that's not a question
<Vivekananda> have 4 choices and to pick the true one
<Vivekananda> ok so my question is Array an instance of Class
<Vivekananda> I think not coz first they are not objects
shammancer has joined #ruby
yshh has joined #ruby
<Vivekananda> sorry everything is an object right
<Spooner> Vivekananda, Try Array.class and find out for yourself.
<Vivekananda> ok so Class.ancestors does not gimme Class
PixelCrumbs has joined #ruby
Spooner has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
<Vivekananda> Spooner: hmm that gives me class
hiyakash_ has quit [Quit: お前は知りすぎた]
danneu has joined #ruby
<Vivekananda> Also I know 3 is wrong
shammancer has quit [Client Quit]
dummies_freelanc has joined #ruby
<Vivekananda> and so is 4 coz all methods of a class can be redefined whenever right ?
<Vivekananda> public or private ?
fbernier has quit [Read error: Connection reset by peer]
<dummies_freelanc> hello i need write one script in ruby that parse csv to squlite3
<fryguy> dummies_freelanc: plenty of CSV gems available, plenty of sqlite gems available, should be straightforward
<dummies_freelanc> ok .. but ... can guide ?
<fryguy> first 2 google responses
<dummies_freelanc> thanks
shock_one has joined #ruby
chessguy has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
yoshie902a has left #ruby [#ruby]
danneu has quit [Ping timeout: 252 seconds]
jacobw has quit [Quit: WeeChat 0.4.0]
nezumi has quit [Ping timeout: 252 seconds]
<bnagy> Vivekananda: this is not #domyhomeworkforme
araujo has quit [Quit: Leaving]
seich- has quit [Quit: See you guys later]
<bnagy> people here are happy to help, but will lose patience when you behave poorly
<bnagy> examples include: highlighting people for no reason, pasting huge chunks of text over and over, begging for help when you clearly haven't even tested in irb
<Vivekananda> bnagy: yep I know and dont wish to do that either. but to make a question intelligible I have to give the context. For example I tried Array.ancestors but it did not show the "Class" class. I did not know that it wont and hence marked it wrong
dhruvasagar has quit [Read error: Operation timed out]
akashj87 has joined #ruby
zeroeth has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Quit: Leaving.]
Pochacco has quit [Quit: Pochacco]
xll11 has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
wsterling has quit [Remote host closed the connection]
shammancer has joined #ruby
dhruvasagar has joined #ruby
<Vivekananda> absolutely agree. Sorry to bother you. I thought you were around and I was trying to ask a question not doing it for no reason :(.
r0bby has quit [Ping timeout: 276 seconds]
plains has joined #ruby
slainer68 has quit [Remote host closed the connection]
verysoftoiletppr has quit []
seich- has joined #ruby
pen has joined #ruby
pen has quit [Remote host closed the connection]
chrisnicola has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777> having issue includeing a gem, little help?
<Vivekananda> HI again everyone. Can I use << on a.writer
a_a_g has joined #ruby
<ntzrmtthihu777> *requiring a gem
<bnagy> ntzrmtthihu777: could you rephrase that in terms of a question that can actually be answered? :)
PixelCrumbs has quit [Read error: Connection reset by peer]
PixelCrumbs has joined #ruby
zeroeth has joined #ruby
zeroeth has quit [Client Quit]
dmiller2 has quit [Ping timeout: 256 seconds]
<bnagy> 95% of "I can't require x" are 1. You spelled it wrong 2. require 'rubygems' or 3. bundler sucks
<Vivekananda> By a.writer I mean writer is an write accessor to the object
alanjc has joined #ruby
<bnagy> Vivekananda: that's not how att_accessor works
<bnagy> it creates getter ad setter methods for an @ivar
danneu has joined #ruby
<bnagy> so what you can do with it is entirely dependent on the nature of the ivar you're accessing
pandawarrior has quit [Quit: Leaving.]
<Vivekananda> I have a variable which has a writer accessor. I am guessing ( not sure) that the return type on saying a.varX where varX has the write accessor would take an argument but return nothing
PixelCrumbs has quit [Read error: Connection reset by peer]
<bnagy> well don't guess. Write the code.
PixelCrumbs has joined #ruby
Skofo has quit [Ping timeout: 260 seconds]
<ntzrmtthihu777> bnagy: well I need the rubysdl gem, so I put as the first two lines of my script require 'rubygems' and require 'rubysdl'/gem 'rubysdl', but it does not works.
<waxjar> did you install the gem first?
verysoftoiletppr has joined #ruby
<ntzrmtthihu777> yeah, not that n00bish XD. and my mistake, that error has left, lost my train of thought.
<Vivekananda> I would need an example to write the correct syntax for it . I dont know how to test the return type for a method call
newUser1234 has joined #ruby
PixelCrumbs has quit [Read error: Connection reset by peer]
PixelCru_ has joined #ruby
<bnagy> Vivekananda: you need to actually write some code in irb
<bnagy> tryruby.org or something
<bnagy> there is no 'return type' for a method call. A method will return an object.
PixelCru_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
<Vivekananda> bnagy: ok am trying to look for a few examples to write the code. Btw if you dont mind my asking , where are you from ?
angusiguess has quit [Ping timeout: 264 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
<bnagy> lots of dofferent places
<bnagy> something like tryruby or rubymonk ( I think ) or ruby the hard way etc will start you from 0
yshh has quit [Read error: Connection reset by peer]
<ntzrmtthihu777> ah, that's what my problem was. even though I required rubygems and gem'ed rubysdl when I run the code it gives me uninitialized constant Bitmap::SDL
Yakko has joined #ruby
yshh has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
bradleyprice has quit [Remote host closed the connection]
tommyvyo has joined #ruby
wsterling has joined #ruby
Bosox20051 has quit [Quit: Leaving]
kofno has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
tomsthumb has quit [Quit: Leaving.]
danneu has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
danneu has joined #ruby
wsterling has quit [Ping timeout: 264 seconds]
tish has quit [Quit: Leaving.]
kofno has quit [Ping timeout: 256 seconds]
marwinism has quit [Ping timeout: 252 seconds]
yshh has quit [Remote host closed the connection]
verysoftoiletppr has quit []
ananthakumaran has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
snorkdude has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
emocakes has joined #ruby
marwinism has joined #ruby
ner0x has quit [Remote host closed the connection]
chrisnicola has joined #ruby
matayam has joined #ruby
mahmoudimus has joined #ruby
BSaboia has quit [Remote host closed the connection]
<Vivekananda> does a method always return something in ruby ?
akashj87__ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Yakko has quit [Remote host closed the connection]
dmerrick has joined #ruby
alek_b_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
musl has quit [Read error: Connection reset by peer]
grn has quit [Read error: Connection reset by peer]
grn has joined #ruby
Kruppe has quit [Remote host closed the connection]
musl has joined #ruby
<snorkdude> Anyone here have any experience writing oauth api wrappers?
<bnagy> yes
<bnagy> d'oh :) yes, a method always returns something
shammancer has quit [Quit: Leaving.]
akashj87 has quit [Ping timeout: 240 seconds]
alek_b has quit [Ping timeout: 240 seconds]
shammancer has joined #ruby
nortel has left #ruby [#ruby]
dhruvasagar has quit [Ping timeout: 245 seconds]
akashj87__ has quit [Client Quit]
dhruvasagar has joined #ruby
dmerrick has quit [Ping timeout: 256 seconds]
breakingthings has quit []
PixelCrumbs has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
danneu has quit [Ping timeout: 252 seconds]
danneu has joined #ruby
tommyvyo has quit [Quit:]
GhettoCode has joined #ruby
rcosta has quit [Remote host closed the connection]
huoxito has quit [Ping timeout: 248 seconds]
matayam has quit [Remote host closed the connection]
nezumi has joined #ruby
shammancer has quit [Quit: Leaving.]
shammancer has joined #ruby
a_a_g has quit [Quit: Leaving.]
huoxito has joined #ruby
<snorkdude> Anyone here have any experience writing oauth api wrappers?
arya has joined #ruby
rippa has joined #ruby
sayan has joined #ruby
angusiguess has joined #ruby
marty_mcfly has joined #ruby
nomenkun has joined #ruby
arya has quit [Ping timeout: 248 seconds]
fschuindt has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
angusiguess has quit [Ping timeout: 255 seconds]
julio has joined #ruby
arya has joined #ruby
snorkdude has quit [Quit: snorkdude]
nomenkun has quit [Ping timeout: 256 seconds]
beneggett has joined #ruby
wsterling has joined #ruby
vlad_starkov has joined #ruby
chandankumar has quit [Ping timeout: 240 seconds]
ixolit has joined #ruby
ixolit has left #ruby [#ruby]
d2dchat has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 248 seconds]
subbyyy has quit [Ping timeout: 248 seconds]
mxweas has joined #ruby
answer_42 has joined #ruby
chrisnicola has joined #ruby
divout has joined #ruby
DesertFoxATX has quit [Quit: Leaving]
etcetera has joined #ruby
wald0 has joined #ruby
<wald0> in the last weeks i was interested on learn perl, but now i think that ruby is more interesting than perl, unfortunately i have not any book of ruby in my dir of ebooks, anybody can suggest me a good one ?
indyrl has left #ruby [#ruby]
emocakes has quit [Quit: emocakes]
arya has quit [Ping timeout: 248 seconds]
xpen has joined #ruby
emocakes has joined #ruby
yshh has joined #ruby
arya has joined #ruby
yshh has quit [Ping timeout: 245 seconds]
<Hanmac> wald0: http://www.ruby-lang.org/en/documentation/ there are Manuals, maybe this is something for you
chandankumar has joined #ruby
answer_42 has quit [Quit: WeeChat 0.4.0]
<Vivekananda> Can someone explain why I get this st = "Hello, howdy "
<Vivekananda> => "Hello, howdy "
<Vivekananda> irb(main):072:0> st.split(/[^a-z^A-Z]/)
<Vivekananda> => ["Hello", "", "howdy"]
<Vivekananda> irb(main):073:0>
<Vivekananda> ow sorry should use pastebin
decoponio has joined #ruby
emdub has quit [Read error: Operation timed out]
tomzx_mac has quit [Ping timeout: 256 seconds]
tomsthumb has joined #ruby
wallerdev has quit [Quit: wallerdev]
<wald0> thx Hanmac
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Quit: Space~~~]
<kseifried> to rock around the clock IS TRICKY!!!!
<kseifried> HER HAIR IS KIND OF CURLY!!!
arya has quit [Ping timeout: 248 seconds]
Heero` has quit [Ping timeout: 245 seconds]
sambio has quit []
BizarreCake has joined #ruby
adkron has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
bricker`LA has joined #ruby
arya has joined #ruby
<wald0> im thinking to learn ruby by using it with a set of C api libs (ffi bindings), this means that im not going to (almost) lose the speed impact uf using ruby instead of C ? (because these bindings in ffi comes from C ones)
<kseifried> dude
<kseifried> speed is an illusion
<wald0> sorry for my english, i hope you* understand what i mean
whitedawg has joined #ruby
<kseifried> illusion are sim,ply attachment to floompf
<wald0> kseifried: aparently ruby is much slower than C
<kseifried> yes and not
<kseifried> so .. you want speed? use pythin
<kseifried> python
beneggett has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 256 seconds]
<kseifried> also plz define speed =)
<wald0> mmh, you mean that python is faster than ruby ?
<wald0> performance*
<kseifried> no
<kseifried> define performance
<kseifried> numerial? work queues?
guest_user is now known as himsin
<wald0> generically talking, so im not talking about something specific, just brainstorming about what ruby can give me and how
* kseifried fires a 3.6cm rubber ball at 59.7M/s at wald0's head
<kseifried> wald0, ": so...
plains has quit [Read error: Operation timed out]
<kseifried> what;s yer phone #
<kseifried> ?
kristofers has joined #ruby
* wald0 confused
<Hanmac> wald0 i wrote bindings for C++ libs, also 3D stuff that uses GPU ... i got the same FPS with ruby than with C++ thanks to the bindings
<kseifried> so basically it depends
<kseifried> yeah
adkron has quit [Ping timeout: 245 seconds]
<wald0> Hanmac: ah, thanks, thats what i wanted to know :)
<kseifried> so for me, I'm the cloud security guy, so ruby is the glue language
<kseifried> performance? who gives a shit
<kseifried> it's all 8core 64gig ram beasts
<kseifried> who cares
EPIK has quit [Ping timeout: 256 seconds]
emocakes has quit [Quit: emocakes]
<kseifried> geht schnel! hooosh hooosh!
<kseifried> =)
<right1> i find myself waiting on network io most of the time
<kseifried> uhmm sec
<right1> ruby good enough for me and feeds my laziness by gixing me really convenient regex
<wald0> kevinfagan: the ppl that is worried about performance, of course, and the poor ppl that runs slower computers like with 500 mb ram or less
<kseifried> read parts 2, 3 and 4
<wald0> oh sorry, i meant kseifried
<kseifried> wok queues FTW!
<kseifried> haha
<kseifried> so AWS MINI is 640 megs ram
<kseifried> wald0, : whats yer #?
love_color_text has joined #ruby
nari has joined #ruby
<wald0> kseifried: wanna cam ?
<kseifried> I am (206) 905-9462
<kseifried> see u naked? ick.
<kseifried> "kurtseifried" on skype
<kseifried> but I pretend to know about performance
robscomputer_ has joined #ruby
<kseifried> friend me (?) on linkedin or skype or whatveer that sjt is now
angusiguess has joined #ruby
<wald0> differences from C: There’s no macros or preprocessor. No casts. No pointers (nor pointer arithmetic). No typedefs, sizeof, nor enums.
* wald0 hides
nomenkun has joined #ruby
* kseifried gevunchnslekklete wald0 mit der schluckende ausgeschiende schnurwelmunde LECKERLICKE!
<kseifried> wald0: don't fuck with a guy called "kurt" who called his first born "Wolfgang" =)
alanjc has quit [Read error: Connection reset by peer]
<wald0> kseifried: how old are you ?
<kseifried> uhmm35
* kseifried is an old guy
<kseifried> another 2 mohts and I am 36 :P
chrisnicola has joined #ruby
<kseifried> that's one reason I like red hat, lots of old people like me with kids
angusiguess has quit [Ping timeout: 256 seconds]
<kseifried> like on SRT, oldest kid is 12, youngest is... 3 weeks or so? good mix
robscomputer_ has quit [Remote host closed the connection]
robscomputer_ has joined #ruby
marty_mcfly has quit [Ping timeout: 264 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
<kseifried> wald0: Red Hat is nice in that it's an older tech firm now, about 1/3 of the peeps have kids and shit
<wald0> innovation is also good :)
<kseifried> I made it a condition of employment, I can take 2-4 hours a day when I need to hang with my kids.
<kseifried> so unless I'm doing critical response, fuck you, I'm gone.
<kseifried> my boss has the same and like almost half my coworkers, same boat.
<kseifried> "gone for 2 hours, parents teacher meeting" etc.
<wald0> that doesn't sounds much confident
<kseifried> red hat is good this way. lots of peeps with kinder =)
emergion has joined #ruby
wsterling has joined #ruby
ntzrmtthihu777 has quit [Quit: Lost terminal]
benlieb has joined #ruby
<bnagy> huh. seifried. I know (of) you.
kofno has joined #ruby
<bnagy> had no idea you did ruby :)
<kseifried> oh shit
<kseifried> this scares me
<kseifried> I don't do ruby per se
<kseifried> but
<kseifried> I am the lcoud security guy
<kseifried> at rht
akashj87 has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
<right1> why is there so much stuf online that sayas ruby cant do lookbehind
<kseifried> and ruby is the cloud glue language
<bnagy> does that involve kvm security per se, or overall cloudy concepts?
<right1> (?<=crap)
<right1> seems to work fine
<kseifried> so like 1995, perl was der schnizzle ausgeschnichnizisht! like ruby is now =)
<kseifried> and not it's ruby
<bnagy> heh, except it's still not a first class citizen among *nix systems scripting languages :)
<kseifried> bnagy: RHT p[ays me to make shit not go KERBLAM
Guest40834 has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 276 seconds]
<kseifried> bnagy: it's a first+ class now
etcetera has quit []
* kseifried tries to remembers what he can publicly say
<kseifried> ruby is def. a first class citizen at RHT
wsterling has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
xpen has quit [Ping timeout: 255 seconds]
<Hanmac> right1 lookbehind does not work with 1.8 i think
<kseifried> 1.8 .. holy cow
<right1> im using 193
<kseifried> well fuck me
<right1> i just install whatever's the new version for ruby since im not really that big on it yet
dummies_freelanc has left #ruby [#ruby]
<kseifried> it's public
<kseifried> I did not now that part was public now
<kseifried> know
<bnagy> huh, nice
<bnagy> I mean, I couldn't give a shit about rails, but having a proper software collection for reasonable ruby under yum is nice
<bnagy> I just hate rpm distros, sorry :)
<right1> yeah currently i only use ruby to generate java code and do simple web requests
<bnagy> it's very old fear from experiences in the distant past
<right1> im kinda annoyed by how empty the r-docs are for net::http but i guess i get enough out of it
kofno has quit [Ping timeout: 256 seconds]
<kseifried> so...
<kseifried> shit where to start
<kseifried> yeah
<kseifried> bnagy, : honestly.. RHT is really trying to do the right thing
<kseifried> on many levels.
* kseifried points to the whole rubygems code signing BS/etc :P
<bnagy> what do you consider 'cloud' anyway? I use a metric shitton of KVM virtual machines in a cluster
<kseifried> bnagy, : call me =)
<bnagy> and if you have stuff that lets me add some rubyness to that I at least need to look at it
<kseifried> (206) 905-9462
<love_color_text> my company loves RHT, but ive influenced them towards debian distros. seeing you right now kseifried, making an effort to support, makes me want to support RHT
<kseifried> love_color_text, meh. so the cool thing ith RHT is we contribute a lot ot upstream
<kseifried> why? because we are lazy =)
<kseifried> if upstream fixes it we don't have to
<kseifried> love_color_text, : also we make installer and shit so it all "just works"
<kseifried> which is useful too
<kseifried> to use and to you
nightfalcon has quit [Ping timeout: 245 seconds]
<kseifried> low: you know fwiemer?
<kseifried> love_color_text, rather
<love_color_text> no i dont
vlad_starkov has quit [Remote host closed the connection]
PixelCrumbs is now known as Sarcasm
darthdeus has joined #ruby
Sarcasm is now known as PixelCrumbs
<bnagy> kseifried: if you have some relevant tech, shoot me some links and I'll check it out. I had awful problems before with centos / infiniband and bleeding KVM stuff, but I guess I could look at FC
<kseifried> bnagy, pign me on skypre
<kseifried> kurtseifried
<bnagy> otherwise I'll google around at some point
<wald0> if i want to move from bash to ruby, how its meant to be used the commands ? (my bash scripts is almost running commands)
chandankumar has quit [Ping timeout: 245 seconds]
<bnagy> wald0: ruby isn't a shell, but you can use shebangs to make ruby scripts into 'commands'
<bnagy> kinda
<kseifried> uh,... system()?
<kseifried> shebangs? hah. I wish shebang me ;)
<kseifried> bnagy: "phone" me or skype my ass. I'm old. irc is text shizzle
<wald0> bnagy: can you give me a fast example ?
<love_color_text> bnagy: yep that's what i consider cloud too. i host my sinatra/rails/ruby apps with on debian guests under a KVM. the host is Centos but once I had KVM it was hands off
<kseifried> I really need to push my cloud presentation out publicly
<kseifried> but in a nbutshell
<wald0> kseifried: why you want so much skype ?
<wald0> kseifried: help
<kseifried> wald0, I am 35. I have twin boys, 2.5 yars old. they have utterly fucked up my arms
<wald0> kseifried: commands
emergion has quit [Quit: Computer has gone to sleep.]
<kseifried> so talky talk = less pain
<bnagy> wald0: #!/usr/bin/env ruby \\ `rm -rf /`
benlieb has quit [Quit: benlieb]
<wald0> bnagy: using `` ? mmh, doesn't looks very reliable
* kseifried can now crack his ankles, arms. wrists, neck, shoulders and rib cage
<kseifried> I can literally
<kseifried> turns 120degree and Crr-rr-RACK myselg
MrZYX|off is now known as MrZYX
<wald0> bnagy: suppose that i want to use the rsync command over 2 directories, which are meant to be used with variables, how i should do that ?
* kseifried snaps his ankles and sighs
<love_color_text> kseifried: sending you a skype request. next time my CTO asks me if we should consider Red Hat I'll skype you
<wald0> kseifried: !shutdown
<kseifried> love_color_text, works for me
<love_color_text> thanks
<bnagy> wald0: you can do interpolation `scp #{from} #{to}`
<wald0> ah, this looks a little better, hum
<kseifried> love_color_text: no see your request yet
fschuindt has quit [Quit: Computer has gone to sleep.]
rickruby has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
himsin has quit [Ping timeout: 258 seconds]
dhruvasagar has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
predator117 has joined #ruby
<wald0> bnagy: this seems to be a better method: %x( echo -e "a\nb\nc" | grep b )
vlad_starkov has joined #ruby
* wald0 starts to like ruby
akam-it has joined #ruby
newUser1234 has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
lewix has joined #ruby
cespare has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
bricker`1A has joined #ruby
elaptics is now known as elaptics`away
angusiguess has joined #ruby
DonRichie has quit [Ping timeout: 248 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
DonRichie has joined #ruby
kristofers has quit []
angusiguess has quit [Ping timeout: 245 seconds]
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
cryptopsy has joined #ruby
GhettoCode has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
<cryptopsy> how to uninstall rvm after running $ \curl -L https://get.rvm.io | bash -s stable --ruby
<cryptopsy> ?
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
<MrZYX> rvm implode
wsterling has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
<Hanmac> or rvm self-destruct :P
wsterling has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
julio has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
timonv has joined #ruby
<cryptopsy> can't find lvm
<cryptopsy> rvm*
<MrZYX> then rm -Rf ~/.rvm
<cryptopsy> thanks
robbyoconnor has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
emdub has joined #ruby
grzywacz has joined #ruby
marr has joined #ruby
soulofpeace has quit [Ping timeout: 264 seconds]
emdub has quit [Ping timeout: 252 seconds]
swex_ has joined #ruby
swex has quit [Ping timeout: 256 seconds]
danneu has quit [Ping timeout: 252 seconds]
echevemaster has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
justsee has quit [Ping timeout: 256 seconds]
Morkel has quit [Quit: Morkel]
vlad_starkov has quit [Remote host closed the connection]
rickruby has joined #ruby
Andromeda has quit [Remote host closed the connection]
Neomex has joined #ruby
vlad_starkov has joined #ruby
rickruby has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
nimred has quit [Quit: leaving]
emdub has joined #ruby
cryptopsy has left #ruby [#ruby]
marr has quit [Read error: Connection reset by peer]
malte_ has joined #ruby
senayar has joined #ruby
yshh has joined #ruby
nimred has joined #ruby
lewix_ has joined #ruby
Zolo has joined #ruby
chandankumar has joined #ruby
nimred has quit [Client Quit]
m8 has joined #ruby
lewix has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
grzywacz has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
jdunck has joined #ruby
whitedawg has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 256 seconds]
whitedawg has joined #ruby
whitedawg has quit [Client Quit]
tootooroo has quit [Read error: Connection reset by peer]
wsterling has joined #ruby
sayan has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 264 seconds]
tootooroo has joined #ruby
emergion has joined #ruby
kofno has joined #ruby
Proshot has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Zolo has quit [Remote host closed the connection]
predator117 has joined #ruby
wsterling has quit [Ping timeout: 255 seconds]
decentrality has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
whitedawg has joined #ruby
emergion has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
emergion has joined #ruby
justsee has joined #ruby
Xeago has joined #ruby
security has joined #ruby
megha has quit [Ping timeout: 252 seconds]
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
anderse has joined #ruby
akashj87 has quit [Ping timeout: 245 seconds]
herbnerder has left #ruby [#ruby]
DI2uNk has joined #ruby
sonda has joined #ruby
ggbozzo has joined #ruby
DI2uNk has quit [Client Quit]
sayan has joined #ruby
DI2uNk has joined #ruby
DI2uNk has quit [Client Quit]
jdrap has joined #ruby
robscomp_ has joined #ruby
mneorr has joined #ruby
ggbozzo has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
robscomputer_ has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
spider-mario has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
banister`sleep has quit [Remote host closed the connection]
shortcutmedia has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
banister`sleep has joined #ruby
enriclluelles has joined #ruby
akashj87 has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
PixelCrumbs is now known as OresomeBot_
OresomeBot_ is now known as PixelCrumbs
Burgestrand has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
mneorr has joined #ruby
postmodern has joined #ruby
sayan has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Politoed has quit [Ping timeout: 252 seconds]
Politoed has joined #ruby
nomenkun has quit [Ping timeout: 276 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
malte_ has quit [Quit: malte_]
eldariof has joined #ruby
h8R has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
oponder has joined #ruby
Catbuntu has joined #ruby
lewix_ has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Remote host closed the connection]
kofno has joined #ruby
tish has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
idkazuma has joined #ruby
marr has joined #ruby
enriclluelles has quit [Remote host closed the connection]
huoxito has quit [Ping timeout: 248 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
idkazuma has quit [Remote host closed the connection]
piotr has joined #ruby
piotr__ has quit [Ping timeout: 252 seconds]
shevy has quit [Read error: Operation timed out]
Elhu has joined #ruby
Pochacco has joined #ruby
sayan has joined #ruby
AlSquire has joined #ruby
backjlack has joined #ruby
Elhu has quit [Client Quit]
eka has joined #ruby
oponder has quit [Read error: Connection reset by peer]
oponder has joined #ruby
huoxito has joined #ruby
maxmanders has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
tish has quit [Quit: Leaving.]
slainer68 has quit [Ping timeout: 248 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
Neomex has quit [Quit: Neomex]
mneorr has quit [Remote host closed the connection]
niklasb has joined #ruby
haxrbyte has joined #ruby
niceguyjames has joined #ruby
backjlack has quit [Remote host closed the connection]
idkazuma has joined #ruby
nomenkun has joined #ruby
Bry8Star has quit [Remote host closed the connection]
Catbuntu has quit [Read error: Connection reset by peer]
Catbuntu has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
jdrap has quit [Quit: jdrap]
<shock_one> Is there a shorter way to sort a hash by values than sort_by {|_key, value| value} ?
stoffus has joined #ruby
crackfu has quit [Remote host closed the connection]
<shock_one> And don't tell me about sort_by {|_k, v| v}
<Hanmac> :P sort_by {|_, value| value}
<Hanmac> or someting like that
workmad3 has quit [Ping timeout: 245 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
AlSquire has joined #ruby
end_guy has quit [Ping timeout: 276 seconds]
Vivekananda has quit [Ping timeout: 256 seconds]
<apeiros> sort_by(&:last)
<shock_one> So, I can't pass some magic symbol to sort_by, right?
<apeiros> no. no magic in ruby. sorry.
DrCode has quit [Ping timeout: 276 seconds]
olivier_bK has joined #ruby
<shock_one> I didn't see your comment. I was talking exactly about this :last thing. There is magic!
<shock_one> Thank you, guys.
<Xeago> I really dislike hashes being ordered, don't know what it is..
DrCode has joined #ruby
<apeiros> It's only magic to the uninaugurated
artm has joined #ruby
nari has quit [Ping timeout: 252 seconds]
artm has left #ruby [#ruby]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
xardas has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
__main__ has quit [Ping timeout: 252 seconds]
LennyLinux has joined #ruby
hamakn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
BSaboia has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
pac1 has joined #ruby
k610 has joined #ruby
jacobw has joined #ruby
Bry8Star has joined #ruby
hamakn has quit [Ping timeout: 252 seconds]
<charliesome> apeiros: sort_by{&:last) is a cool hack but it doesnt really communicate intent
end_guy has joined #ruby
sayan has joined #ruby
vlad_starkov has joined #ruby
marr has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 255 seconds]
iphands_ has joined #ruby
dhruvasagar has joined #ruby
sleetdrop has quit [Ping timeout: 245 seconds]
chendo has joined #ruby
<apeiros> charliesome: agreed
ToApolytoXaos has joined #ruby
* apeiros off, cupboarding my electronic equipment -> disco :-(
backjlack has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
whitedawg has quit [Quit: Leaving.]
razieliyo has joined #ruby
maxmanders has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
darthdeus has left #ruby ["Linkinus - http://linkinus.com"]
sayan has quit [Read error: Connection reset by peer]
aapzak has joined #ruby
ToApolytoXaos has quit [Read error: Connection reset by peer]
niceguyjames has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
ToApolytoXaos has joined #ruby
ToApolytoXaos has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
staafl has joined #ruby
chussenot has joined #ruby
whitedawg has joined #ruby
idkazuma has quit [Remote host closed the connection]
chussenot has quit [Client Quit]
dhruvasagar has quit [Read error: Operation timed out]
iphands_ has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby
razieliyo has quit [Ping timeout: 256 seconds]
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
razieliyo has joined #ruby
dmerrick has joined #ruby
idkazuma has joined #ruby
br4ndon has joined #ruby
cjk101010 has joined #ruby
ToApolytoXaos has joined #ruby
PixelCrumbs is now known as Pixel_Zzzzz
Pixel_Zzzzz has quit [Remote host closed the connection]
hashmal has joined #ruby
nomenkun has joined #ruby
dmerrick has quit [Ping timeout: 256 seconds]
emmanuelux has joined #ruby
__main__ has joined #ruby
k610 has quit [Ping timeout: 264 seconds]
marcdel has quit []
nomenkun has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
predator117 has quit [Ping timeout: 252 seconds]
iphands_ has joined #ruby
emocakes has joined #ruby
kofno has joined #ruby
sayan has joined #ruby
DarthGandalf has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 256 seconds]
drale2k has joined #ruby
Xeano has joined #ruby
predator117 has joined #ruby
kiri has quit [Ping timeout: 276 seconds]
Xeano has left #ruby ["Leaving"]
BSaboia has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
iphands_ has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 245 seconds]
platzhirsch has joined #ruby
idkazuma has quit [Remote host closed the connection]
<platzhirsch> Any idea how I can access the HTTP header values in a hash-key fashion? WIth Net::HTTP.start I open a block and read the header with http.head('/'). Now I can only iterate with .each over the key value pairs, but [] accessor does not work
grzywacz has joined #ruby
tenmilestereo has joined #ruby
malte_ has joined #ruby
rubarlion has joined #ruby
backjlack has quit [Remote host closed the connection]
Czupa has joined #ruby
herbnerder has joined #ruby
herbnerder has left #ruby [#ruby]
backjlack has joined #ruby
nezumi has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
ndngvr` has quit [Ping timeout: 256 seconds]
kristofers has joined #ruby
rubarlion has quit [Ping timeout: 264 seconds]
whowantstolivef1 has joined #ruby
mityaz has joined #ruby
mneorr has joined #ruby
solidoodlesuppor has joined #ruby
kiri has joined #ruby
vlad_starkov has joined #ruby
beneggett has joined #ruby
chessguy has joined #ruby
wmoxam has joined #ruby
predator117 has joined #ruby
predator117 has quit [Remote host closed the connection]
predator117 has joined #ruby
slainer68 has joined #ruby
_bart has joined #ruby
subbyyy has joined #ruby
verysoftoiletppr has joined #ruby
rburton- has quit [Quit: Leaving...]
nomenkun has joined #ruby
swex_ has quit [Read error: No route to host]
sayan has quit [Ping timeout: 256 seconds]
swex has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
sanjeev has joined #ruby
<sanjeev> hi
sanjeev has quit [Remote host closed the connection]
sailias has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
tish has joined #ruby
Czupa has quit [Ping timeout: 248 seconds]
pskosinski has joined #ruby
Czupa has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 276 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
atno has quit [Remote host closed the connection]
br4ndon has quit [Read error: Connection reset by peer]
br4ndon has joined #ruby
postmodern has quit [Quit: Leaving]
ndngvr has joined #ruby
cjk101010 has joined #ruby
atno has joined #ruby
br4ndon_ has joined #ruby
nari has joined #ruby
whitedawg has quit [Quit: Leaving.]
sayan has joined #ruby
angusiguess has joined #ruby
newUser1234 has joined #ruby
br4ndon has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
pavilionXP has joined #ruby
danslo has joined #ruby
thisirs has joined #ruby
danslo has quit [Client Quit]
danslo has joined #ruby
ndngvr has quit [Ping timeout: 246 seconds]
rburton- has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
hiyakashi has joined #ruby
whitedawg has joined #ruby
nikeita has joined #ruby
sonda has quit [Read error: Connection reset by peer]
emocakes has quit [Quit: emocakes]
justsee has quit [Ping timeout: 245 seconds]
Kruppe has joined #ruby
spygame has joined #ruby
chimkan has quit [Quit: chimkan]
sepp2k has joined #ruby
swex has quit [Read error: No route to host]
<spygame> hey, i'm playing around with RTanque and building my own bot. i wanted to know if there's a way i can detect enemy fire. For example if some bot aims and fires at me can i use sensors to detect fire coming at me ?
rburton- has quit [Ping timeout: 245 seconds]
rubarlion has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
himsin has joined #ruby
nikeita has quit [Ping timeout: 256 seconds]
chandankumar has joined #ruby
vise890 has joined #ruby
vise890 has left #ruby [#ruby]
niceguyjames has joined #ruby
nikeita has joined #ruby
nikeita has quit [Remote host closed the connection]
vise890 has joined #ruby
peta_ has joined #ruby
<peta_> hi guys
JohnBat26 has joined #ruby
love_color_text has joined #ruby
generalissimo has joined #ruby
_maes_ has quit [Ping timeout: 256 seconds]
rismoney has joined #ruby
newUser1234 has quit [Remote host closed the connection]
mmitchell has joined #ruby
swex has joined #ruby
pioz has joined #ruby
dayepa1 has quit [Read error: Connection reset by peer]
dayepa has joined #ruby
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
julio has joined #ruby
nomenkun has joined #ruby
k610 has joined #ruby
julio has quit [Client Quit]
sambio has quit [Client Quit]
idkazuma has joined #ruby
sonda has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
idkazuma has quit [Remote host closed the connection]
rocket has joined #ruby
rocket is now known as Guest38867
<Xeago> yesterday i bbq'ed today it snows
slainer68 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
senayar has quit [Ping timeout: 248 seconds]
Rioji has joined #ruby
Quebert has quit [Ping timeout: 252 seconds]
vise890 has quit [Quit: Leaving]
pavilionXP has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
heftig has quit [Quit: Quitting]
chimkan has joined #ruby
kofno has joined #ruby
seich- has quit [Quit: See you guys later]
wallerdev has joined #ruby
<shevy> hehe Xeago
mercwithamouth has joined #ruby
seich- has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
subbyyy has quit [Ping timeout: 245 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
heftig has joined #ruby
chandankumar has joined #ruby
huoxito has quit [Quit: Leaving]
Neomex has joined #ruby
aytch has quit [Remote host closed the connection]
<Hanmac> shevy i think when i sing something like "let it snow" then i will be punished from everyone :P
goganchic has joined #ruby
rubarlion has quit [Quit: rubarlion]
goganchic has quit [Read error: Connection reset by peer]
br4ndon has joined #ruby
br4ndon_ has quit [Ping timeout: 256 seconds]
chandankumar has quit [Ping timeout: 252 seconds]
Pochacco has quit [Ping timeout: 245 seconds]
backjlack has quit [Read error: Connection reset by peer]
arya has joined #ruby
tenmilestereo has quit [Ping timeout: 260 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
atmosx has joined #ruby
slainer68 has joined #ruby
chimkan has quit [Quit: chimkan]
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
love_color_text has quit [Remote host closed the connection]
chandankumar has joined #ruby
backjlack has joined #ruby
marty_mcfly has joined #ruby
AlSquire has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
arya has joined #ruby
zph has joined #ruby
ddd has quit [Quit: restarting tmux]
Amnesthesia has quit [Read error: Connection reset by peer]
ddd has joined #ruby
chimkan_ has joined #ruby
whitedawg has quit [Quit: Leaving.]
decoponio has quit [Quit: Leaving...]
grzywacz has quit [Ping timeout: 256 seconds]
Amnesthesia has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
yashshah has quit [Ping timeout: 245 seconds]
ddd has quit [Client Quit]
nari has quit [Read error: Operation timed out]
ddd has joined #ruby
ddd has quit [Client Quit]
ddd has joined #ruby
lewix has joined #ruby
ddd has quit [Client Quit]
danneu has joined #ruby
nomenkun has joined #ruby
ddd has joined #ruby
mose has joined #ruby
tobym has joined #ruby
BSaboia has joined #ruby
ddd has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
Vivekananda has joined #ruby
<Vivekananda> hey everyone
kbouwser has joined #ruby
EPIK has joined #ruby
ddd has joined #ruby
sayan has quit [Read error: Connection reset by peer]
zph has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
peta_ has quit [Quit: peta_]
security is now known as fire
chandankumar has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
tish has quit [Quit: Leaving.]
stringoO has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
stringoO has quit [Read error: Connection reset by peer]
stringoO has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
chessguy has quit [Read error: Connection reset by peer]
chessguy has joined #ruby
whitedawg has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
chessguy has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
<Vivekananda> Hhey everyone. In emacs autoindent works only on end of line is typed.
chessguy has joined #ruby
<Vivekananda> But what is it for ruby ? I dnt know and hence autoindent is not working
pyacks has quit [Ping timeout: 276 seconds]
iMe has joined #ruby
Bry8Star has joined #ruby
arya has joined #ruby
stringo0 has joined #ruby
ddd has quit [Quit: ok restarting with no tmux. just means I will disconnect when done]
stringo0 has quit [Client Quit]
ddd has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
cjk101010 has quit [Ping timeout: 245 seconds]
<Vivekananda> anyone here and using emacs
maxmanders has joined #ruby
stringoO has quit [Read error: Connection reset by peer]
cjk101010 has joined #ruby
Jueecy has joined #ruby
<Jueecy> Hello
danneu1 has joined #ruby
<Jueecy> Is there a way to check if a file `a.rb` exists before calling `require_relative('../anotherfolder/a')`?
<waxjar> hello
<Hanmac> Jueecy: File.exists?
<Jueecy> Hanmac: Should I go with `File.exists? "../anotherfolder/a.rb"` ?
<Morrolan> File.file? might be preferrable, since it makes sure that it's actually a file and not just a folder.
k610 has quit [Quit: Leaving]
danneu has quit [Ping timeout: 252 seconds]
<cha1tanya> Vivekananda, you can use ruby-mode
<Jueecy> Morrolan: but how can I use `File.file?` with relative paths? It is currently returning `false` when it should return `true`...
TheFuzzball has quit [Ping timeout: 276 seconds]
aytch has joined #ruby
<Vivekananda> cha1tanya: yep. I already see that the major mode says ruby but not sure if it is the same thing coz I did not install ruby-mode
<Vivekananda> Does it come by default in emacs 24 ?
TheFuzzball has joined #ruby
lewix has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<cha1tanya> Vivekananda, check your init.el
lewix has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
jpfuentes2 has joined #ruby
<Morrolan> Jueecy: Might want to output the result of Dir.pwd to make sure that the current directory is what you think it is.
dhruvasagar has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<Vivekananda> cha1tanya: where is it locaated in ubuntu? the init.el ? the .emacs is in the /home
<Vivekananda> but I see that there is a ruby mode alright in M-x ruby tab
<Vivekananda> I mean when I type that
<cha1tanya> Vivekananda, so you have ruby-mode installed
tobym has quit [Remote host closed the connection]
chandankumar has joined #ruby
<Vivekananda> cha1tanya: yes I think so
<cha1tanya> Vivekananda, for auto-indent in ruby-mode you can press TAB key
<cha1tanya> that line will be indented automatically
<Vivekananda> I found this site http://peter.peca.dk/art_Emacs_Ruby_Mode.html
Catbuntu has quit [Read error: Connection reset by peer]
BSaboia has quit [Ping timeout: 264 seconds]
lewix has quit [Ping timeout: 276 seconds]
Akuma has quit [Read error: Connection reset by peer]
<Vivekananda> cha1tanya: thanks that site worked and now on enter I have the indent too. I have two other things though that bother. One is that everytime I open emacs it changes to some font color and background but I wanted to change that to another. I go to options and choose and then when I restart it is still the same
cha1tanya has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<Jueecy> Morrolan: that fixed my issue, thanks
tobym has joined #ruby
<Morrolan> Jueecy: Good to hear. :)
angusiguess has joined #ruby
maxmanders has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
lewix has joined #ruby
moos3 has joined #ruby
<Mattix> how do you tell what gem is using if you require curl or curb?
lewix_ has joined #ruby
<Mattix> in both cases I have Curl::Easy, so I don't know what lib I'm using...
<Mattix> ah, it's "gem which", I guess
pyacks has joined #ruby
Andromeda has joined #ruby
workmad3 has joined #ruby
<Mattix> ok, gem which curl and gem which curb gives me the same, are they alias or what?
chrisnicola has joined #ruby
rgoodwin has left #ruby ["Textual IRC Client: www.textualapp.com"]
aytch has quit [Remote host closed the connection]
kirun has joined #ruby
lewix has quit [Ping timeout: 255 seconds]
haxrbyte has quit [Remote host closed the connection]
Akuma has joined #ruby
backjlack has quit [Remote host closed the connection]
Guedes has quit [Ping timeout: 257 seconds]
tobym has quit [Remote host closed the connection]
cha1tanya has joined #ruby
backjlack has joined #ruby
maycon_ has joined #ruby
hashpuppy_ has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
spygame has quit [Ping timeout: 245 seconds]
maycon has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
nari has joined #ruby
Neomex has quit [Ping timeout: 256 seconds]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
ddd has quit [Quit: Lost terminal]
love_color_text has joined #ruby
julian-delphiki has joined #ruby
cjk101010 has quit [Ping timeout: 264 seconds]
RagingDave has joined #ruby
nari has quit [Ping timeout: 245 seconds]
heftig has quit [Ping timeout: 245 seconds]
bean has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
shortcutmedia has quit [Quit: Leaving]
cjk101010 has joined #ruby
Andromeda has quit [Remote host closed the connection]
brum has joined #ruby
heftig has joined #ruby
Elhu has joined #ruby
whitedawg has quit [Quit: Leaving.]
codecop has joined #ruby
cjk101010 has quit [Read error: Operation timed out]
ZachBeta has joined #ruby
jokke has quit [Ping timeout: 256 seconds]
sks has joined #ruby
jokke has joined #ruby
sks has left #ruby [#ruby]
cjk101010 has joined #ruby
br4ndon_ has joined #ruby
dmiller2 has joined #ruby
marty_mcfly has quit [Ping timeout: 248 seconds]
brum has quit [Remote host closed the connection]
rcosta has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
jlebrech has joined #ruby
jgrevich has joined #ruby
aef_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
hashpuppy_ has left #ruby [#ruby]
moos3 has quit [Quit: Computer has gone to sleep.]
thernull has joined #ruby
br4ndon has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
tomzx_mac has joined #ruby
aef has joined #ruby
pioz has joined #ruby
dmiller2 has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
beiter has joined #ruby
mmitchell has quit [Remote host closed the connection]
<shevy> guys
<shevy> I have old code that confuses me
<shevy> two ways:
<shevy> require 'foo'
<shevy> module Bla
<shevy> vs.
<shevy> module Bla
<shevy> require 'foo'
<shevy> is there any real difference between these two at all?
ph^ has quit [Remote host closed the connection]
Arzaga has joined #ruby
ph^ has joined #ruby
Neomex has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
cjk101010 has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
aef has quit [Remote host closed the connection]
Neandre has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dmiller2 has joined #ruby
ph^ has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
Nahra has quit [Remote host closed the connection]
ddd has joined #ruby
<shock_one> shevy, yes, if you have functions with the same names in both, they will be overwritten.
moos3 has joined #ruby
platzhirsch has left #ruby [#ruby]
<shock_one> Or, rather shadowed.
<ddd> the last one loaded will win
chrisnicola has quit [Quit: This computer has gone to sleep]
danslo has quit [Quit: danslo]
<shevy> hmm
<shevy> I wonder if this is the same with load() as well, in the above example
Neandre has joined #ruby
<shevy> apparently, in the past, I put requires even in the middle of a .rb file
<shevy> today this confuses me
Nahra has joined #ruby
chrisnicola has joined #ruby
bricker`1A has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
dmiller2 has quit [Ping timeout: 251 seconds]
<Vivekananda> hey there
Neomex has quit [Quit: Neomex]
<Vivekananda> everyone
atmosx has quit [Quit: And so the story goes…]
Arzaga has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
rburton- has joined #ruby
chussenot has quit [Client Quit]
mpereira has quit [Ping timeout: 260 seconds]
arya has joined #ruby
nopolitica has joined #ruby
danneu2 has joined #ruby
apeiros has joined #ruby
danneu1 has quit [Read error: Connection reset by peer]
whitedawg has joined #ruby
BizarreCake has joined #ruby
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
<shevy> Vivekananda hi
<shevy> Vive Kanada!
chessguy has quit [Remote host closed the connection]
<Vivekananda> shevy: lo why did you separate it out ? :)
<Vivekananda> so I am learning ruby and did somequestions yesterday
<Vivekananda> today am going to try some programming
<shevy> Vivekananda I dunno, it seemed easier to read for my poor eyes
<shevy> wedontwritelikethishereeither,yousee?
<shevy> good
<shevy> ruby is an elegant programming language
rburton- has quit [Ping timeout: 252 seconds]
<shevy> but you must "think" in it
marty_mcfly has joined #ruby
<shevy> it's like cooking
<shevy> you put stuff into a pot, heat it, and hope that something useful comes out
Skofo has joined #ruby
<shevy> in ruby you do that usually by invoking .methods on an object
<Vivekananda> shevy: :). It is a name and the combination means something but separating wont unless you do it the right snake_case
<Vivekananda> so vive_kananda wont but vivek_ananda would
<Vivekananda> if you really want to separate it that is
<Vivekananda> :)
<Vivekananda> although the combination has a much better meaning :)
<shevy> yeah
<shevy> seems IRC names are not allowed with ' ' inside
<shevy> :(
<shevy> else I would be called "s h e v y"
<shevy> hahaha
<Vivekananda> lol
<Vivekananda> so shevy where are you from ?
<Vivekananda> me you can guess I guess
<Vivekananda> :)
<shevy> Vivekananda central europa, austria, vienna
<Vivekananda> oo nice. The land of arnold
<shevy> Vivekananda well that could still be many towns, so I dont know
<shevy> Vivekananda he abandoned it for the big USA :(
<Vivekananda> Well yep sadly but that is is how I know him so .... :)
<MrZYX> that's a loss? :P
Arzaga has joined #ruby
mneorr has joined #ruby
<Vivekananda> MrZYX: Leaving one's own country to me is one of the bad things to do
<Vivekananda> I am currently in US though but completely leaving mine
<Vivekananda> would be sad
<MrZYX> hm guess I'm not very pariotic
<shevy> Vivekananda well, big countries can be very appealing
nezumi has joined #ruby
<shevy> and Arnie wanted to make money
<shevy> and father ten children with 6 different women :P
danslo has joined #ruby
maycon_ has quit [Changing host]
maycon_ has joined #ruby
<shevy> MrZYX are you pariotic, parrotic or patriotic? ;)
maycon_ is now known as maycon__
<shevy> I think after the internet, old nation boundaries are not that important anymore
<MrZYX> ^
Matt has joined #ruby
Matt is now known as Guest40809
<MrZYX> well, not sure if I would say because of the internet, but general globalization
<Vivekananda> MrZYX: More than being patriotic is about origins of oneself. I cannot but revel in that whereever I go.
monkegjinni has quit [Remote host closed the connection]
<MrZYX> there's nothing to protect anymore
blacktulip has joined #ruby
Guest40809 has left #ruby [#ruby]
<Vivekananda> shevy: and MrZYX btw I am very new to ruby and trying to get hands on code snippets to run. You guys okay if I ask stupid questions :(
Davey has joined #ruby
<MrZYX> sure, that's what this channel is for ;)
Opettaja has joined #ruby
<Vivekananda> like what is a method or what does it do ? I will try running it but sometime people get irritated pretty fast by stupid questions
<shevy> Vivekananda you must ask
<shevy> Vivekananda, do you know what a function is
malte_ has quit [Ping timeout: 276 seconds]
<ddd> think of a method as a verb. its an action some object can take.
<Vivekananda> no . Right now I am doing problems from an online course and this is not homework from college but I just want to learn
<shevy> Vivekananda questions are ok, sometimes people do not read the answers though
<Vivekananda> so am tryinig
<ddd> like class MyClass ; def say_hello ; puts "Hi there!" ; end ; end
<shevy> Vivekananda ok do you know unit operations or streamline processing... like in chemical engineering. a function, takes input, modifies it, and can give you output, ok?
<Vivekananda> right now I know basics a little eg variable assignment and then small loops and not very sure of how to write things like a split or reject
<ddd> when you do myClass = MyClass.new ; myClass.say_hello you see how its a verb? its 'doing' something? thats a method.
lkba has joined #ruby
<shevy> Vivekananda a method is just a function that is attached to an object
<ddd> methods do something as opposed to variables which hold something (the 'state' of that object)
danslo has quit [Client Quit]
<shevy> cat.meow()
<Vivekananda> the first question is to design a palindrome and my approach is to
<shevy> Vivekananda palindrome is easy. ATTA
dagnachew has joined #ruby
cha1tanya has quit [Ping timeout: 245 seconds]
<shevy> split in the middle, then proceed one way and check if it is the same character on the other way
<Vivekananda> shevy yes I knwo but I want to code it
<shevy> AT|TA
bwlang has joined #ruby
<shevy> split up the task
<shevy> 1) split into middle of string
<shevy> "ATTTTA".size / 2 # => 3
<Vivekananda> shevy lol now see that is what I did not know. I was trying to get the input in one string then call reverse on it to get the reversed string and then do a comparison
arietis has joined #ruby
<ddd> and that doesn't actually modify thye string. it just counts the number of elements (characters) and then uses that result in the / 2 portion, returning the result (3)
<Vivekananda> shevy first , what does #=> abracadabra mean ?
dagnachew has quit [Client Quit]
<Vivekananda> I see that at a lot of places but dont understand
<ddd> output from irb session
<julian-delphiki> #=> just means the result
dagnachew has joined #ruby
<ddd> irb (interactive ruby) uses that to show the output/result of something
mmitchell has joined #ruby
<ddd> type irb at your console, then type in 3 + 3
<ddd> you'll see the same thing he showed
<Vivekananda> julian-delphiki: so it is just like a ruby comment ?
rcosta has quit [Remote host closed the connection]
<julian-delphiki> >> true unless "ATTA".reverse == "ATTA"
<eval-in> julian-delphiki => nil (http://eval.in/15312)
<MrZYX> # are comments, yeah
<julian-delphiki> >> true if "ATTA".reverse == "ATTA"
<eval-in> julian-delphiki => true (http://eval.in/15313)
<julian-delphiki> weee
mmitchell has quit [Remote host closed the connection]
kofno has joined #ruby
<ddd> the # usually gets tacked on to distinguish it from the hash rocket (=>)
<Vivekananda> julian-delphiki: if you are talking to me I can honestly say , I know only english and my country's language and nothing else. :(
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
<Vivekananda> I cannot understand what you are saying
<Vivekananda> ddd: I am reading your lines
<ddd> he was passing something to the channel bot
<ddd> the >> there was for the bot to pick it up and know it was being spoken to
sambio has quit [Client Quit]
<Vivekananda> so ddd and shevy will my logic work . I guess it would right ?
<MrZYX> yup, it will
<ddd> sorry, was looking elsewhere. yes, as MrZYX said, it will
<shevy> Vivekananda #=> is just common return in IRB, do you know IRB?
<Vivekananda> I have been trying it since yesterday
<shevy> Vivekananda start IRB and then do: class Test; end; test = Test.new
<shevy> ok good
<shevy> keep on using it
<Vivekananda> for returns I usually click return
<shevy> eventually your brain will understand things
<shevy> click??
<shevy> do you use windows?
<Vivekananda> nope
<Vivekananda> linux
<ddd> he's probably using a browser based irb session thing
<shevy> ohhhh
<shevy> I see
<Vivekananda> ubuntu
<Vivekananda> I dont like windows much
<Vivekananda> lol
<ddd> ubuntu doens't have you click anything for irb
<Vivekananda> after started using ubuntu
<ddd> you open a terminal, type in irb and use it (if you have ruby installed)
<ddd> no clicking
<Vivekananda> o no I meant I just key in irb at the cli and it starts
kofno has quit [Ping timeout: 256 seconds]
<Vivekananda> yes I know
<Vivekananda> did I say clicking somewhere ?
<ddd> oh you use ubuntu's command lancher. i get it
<ddd> yes
dagnachew has quit [Quit: WeeChat 0.4.0]
<ddd> Vivekananda | for returns I usually click return
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
<Vivekananda> ddd no no I just open a terminal plain and simple and key in irb and it gets me to the irb prompt
dagnachew has joined #ruby
<Vivekananda> then I type the code or type in emacs and past it and then press return
<ddd> well thats why shevy was like 'click???'
<ddd> it made no sense
<Vivekananda> is all I do
<Vivekananda> ooo sorry my bad then
<shevy> ewww ubuntu :P
<Vivekananda> lol
<Vivekananda> hahaha
<ddd> hey leave muh ubuntu alone :)
<shevy> Vivekananda I tell you how I use things here
<ddd> since the dogs pissed on my MBP and fried it, its either windows, or linux. and for linux i prefer ubuntu
<Vivekananda> if I did not better or know anything I would guess you are a gal shevy
<Vivekananda> lol
<shevy> for IRC, I have xchat running in a window that fills 70% of my screen, in the lower left I have KDE konsole
mmitchell has joined #ruby
<ddd> (told my friggin wife to put them in the cage overnight, but nooooo, what do *I* know)
<shevy> Vivekananda nah, I am male
<Vivekananda> ahh okay my bad again
<Vivekananda> ok enough bads
<ddd> Vivekananda: wouldn't matter. many ectremely smart and talented women coders
<shevy> Vivekananda in bash, I use "q" to toggle between bash, and irb
<ddd> err extremely even
<shevy> so I type q, and IRB is started. I press q in irb, then I am back to bash again
<shevy> this way I can very quickly test ruby code
dagnachew has quit [Client Quit]
<Vivekananda> so guys now I have the logic and am trying to code but that is the hard part
<ddd> i run a screen or tmux session with multiple tabs.
<ddd> to each's own
<Vivekananda> lol coz normally that is supposed to be the easy part
<shevy> ddd I never managed to get into screen :(
dagnachew has joined #ruby
<MrZYX> Vivekananda: only in the beginning, soon the logic will become the hard part ;)
<Vivekananda> yes and that would be better
<ddd> i don't like screen compared to tmux, but having an issue with display when running irssi in it
<shevy> Vivekananda just break up things into sub-tasks, and solve them
chimkan_ has quit [Quit: chimkan_]
<ddd> so using screen for now until i figure out wtf is going on
<shevy> ddd I kinda love GUIs
Arzaga has quit [Quit: Computer has gone to sleep.]
<Vivekananda> so now I know my logic but I dont own the tools. How should I go about it. Eg how do If find that if I say normalString = inputString ; will not be wrong code
<ddd> like i said to each's own. been using linux since kernel 1.0.8, so i've been command line most of my 'career' with computers
<ddd> never really got into guis. *I* find them to get in my way a lot. but thats probably because i've been a command line freak for so long
mmitchell has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Vivekananda> and then reverseString = inputString.reverse something something
io_syl has joined #ruby
nightfalcon has joined #ruby
baba has joined #ruby
<Vivekananda> ddd in that casee I would like to get some tips from you
natd has joined #ruby
<shevy> ddd the perfect GUI has not been built yet, indeed
<Vivekananda> one thing for sure that I recall now is suppose I want to copy files
fire has quit [Ping timeout: 245 seconds]
<Vivekananda> from one folder to the other
<ddd> cp -ax or cp -R
Guedes has joined #ruby
<ddd> if you want to recursively copy
<shevy> Vivekananda just use aliases
<shevy> I use cpr for cp -R because I am too lazy to type
<ddd> hehe
<ddd> took longer to set up the alias than it does to type the char ;)
<Vivekananda> now for the gui it is easy to pick the ones I need and say copy and then paste it works. But to do that in a cli would be a monumental task
ChronocityLC has joined #ruby
<Vivekananda> coz I am not doing -R and not doing something like cp all text files
<Vivekananda> so not doing cp -R *.txt
<ddd> Vivekananda: oh regexp works for that. like if you want to copy all .rb files from one dir to another then: cp -R *.rb newdir/
wald0 has quit [Quit: leaving]
<Vivekananda> so how do I use cli for this
<ddd> or remove the -R if you only want those in the current dir
<Vivekananda> ddd that is what I meant. Suppose the files I want to copy are -- video and music and then hmm let us see okay one source code one and leave the rest
osvico has quit [Ping timeout: 246 seconds]
<ddd> or expandively you could do: find ./ -type f -name *.rb -exec cp {} newdir/ \;
<ddd> or something like that
<ddd> :)
<Vivekananda> this kind of pick and choose I can do in GUI but in cli it would be like doing it 10 times for each file
<Vivekananda> sorry one time for each file
dagnachew has quit [Quit: WeeChat 0.4.0]
<ddd> cp *.{mp4,mpeg,mp3,mov} newdir/
dagnachew has joined #ruby
<ddd> add -R to go through all subdirs, you can 'man cp' to see the switch(es) to limit how deeply to recurse
<Vivekananda> but I will go to these things later I guess. coming back to the problem. Guys please tell me how to go about finding things out. For example how does the .reverse work.
freakazoid0223 has joined #ruby
<ddd> that would copy all files ending in mp4, mpeg, mp3, and mov to the new dir
moos3 has quit [Quit: Computer has gone to sleep.]
rcosta has joined #ruby
snorkdude has joined #ruby
<ddd> it works by writing out each character starting at the last one and workin backwards. (think of the string as an array. so it goes from String.length and basically works back to element 0 in the string outputing the result at the end
<ddd> )
<Vivekananda> ddd yes but you will have to know what the suffix is for them. I am trying to explain the predicament that suppose I just use the mouse. then I include all folder + files I want in a single sweep and do cut and paste in a separate location
<Vivekananda> not so fast or simple in cli right
oponder has quit [Read error: Connection reset by peer]
<ddd> no not really since i doubt there's a lot of commonality between everything except extension
oponder has joined #ruby
<ddd> you could write a script i suppose that used 'head -n1' to look at the first line of each file or use 'file' to see what type it was and then do whatever you wanted. but you'd have to write it first
<ddd> nowhere near as fast at cmdline for stuff like that. thats where GUIs shine (or at least eh libs they're built with)
<Vivekananda> ddd for the .reverse, I used it as a generic case and what I meant was 1. I know that there is a method like that but I now need to know it well and how it is used and a few examples. where do I find all these. 2. how do I debug code in say emacs ( I think I will use the irb but does it debug too ) ?
<ddd> :shrug: which is why i say to each's own
Jueecy has left #ruby ["Leaving..."]
<ddd> you find it by looking at ruby-lang.org's site under Documentation and look at core and stdlib
<ddd> or use ri to hunt for docs (like 'ri .reverse')
<ddd> this is part and parcel of programming
brennanMKE has joined #ruby
<Vivekananda> yes so I am trying to know them :)
<ddd> as you get more and more familiar with ruby you'll have to hunt less and less, except for more esoteric things
<MrZYX> (click Methods, type reverse in the search)
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<Vivekananda> hey does ruby have pointers too !!
<Vivekananda> omg
<ddd> no you're seeing the C source that implements that method
<Vivekananda> oww that is bad news :(. I am learning pointers but not nearly there
mmitchell has joined #ruby
<Vivekananda> oo okay
girija has joined #ruby
subbyyy has joined #ruby
<ddd> gotta go. wife and kids are home
<Vivekananda> okay
<Vivekananda> so that page is helpful and gave me what happens with reverse. Now my question is how do I see more examples
Neomex has joined #ruby
tommyvyo has joined #ruby
monkegjinni has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
natd has quit [Quit: Leaving]
<MrZYX> examples for reverse?
predator117 has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
predator117 has joined #ruby
br4ndon_ has quit [Quit: Lorem ipsum dolor sit amet]
br4ndon has joined #ruby
rcosta has quit [Remote host closed the connection]
yashshah has joined #ruby
waxjar has quit [Ping timeout: 264 seconds]
divout has quit [Quit: Leaving.]
waxjar has joined #ruby
rickruby has joined #ruby
girija has quit [Ping timeout: 276 seconds]
maycon__ has quit [Quit: Saindo]
x0F has quit [Ping timeout: 260 seconds]
chandankumar has quit [Ping timeout: 260 seconds]
markalanevans has joined #ruby
marr has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
peta_ has joined #ruby
Neomex has quit [Quit: Neomex]
d2dchat has joined #ruby
rcosta has joined #ruby
love_color_text has quit [Ping timeout: 245 seconds]
mikemac has quit [Read error: Connection reset by peer]
<Vivekananda> MrZYX: yep but I guess I can now just try on irb. but what would be great to go to a site which gives me all the nitty gritty things about reverse eg what will happen if I try to reverse something like a => (" I am :*(&&*) a good person) and then s = " a , \" I am happy" " and then s.reverse
<Vivekananda> or something like dont do this or do that
<Vivekananda> kind of things with examples
<MrZYX> for "what will happen if"-questions you have irb
<MrZYX> just try it out
crazymykl has joined #ruby
KellyLSB has quit [Ping timeout: 246 seconds]
KellyLSB has joined #ruby
<Vivekananda> yep I knwo that but also the thing is --- for things like what I should know about ruby strings it would be good to have that and examples somewhere otherwise I will never knwo those things that I have not tried out but are essential to know
jlebrech has quit [Ping timeout: 246 seconds]
<julian-delphiki> typically you would just read the docs
<julian-delphiki> you could also do project euler problems
<MrZYX> yup
<julian-delphiki> or ruby koans
chandankumar has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.0]
kiri has quit [Read error: Operation timed out]
x0F has joined #ruby
banjara has joined #ruby
ph^ has joined #ruby
hse-hoens has quit [Ping timeout: 252 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
jlebrech has joined #ruby
love_color_text has joined #ruby
memristor has joined #ruby
hoens has joined #ruby
jetblack has joined #ruby
sayan has joined #ruby
perun__ has joined #ruby
<Vivekananda> julian-delphiki: thanks for the helpful stuff
<Vivekananda> so I have to locate the site for the project euler problems
<Vivekananda> I liked the ruby monks approach though
<Vivekananda> like give you some reading then a problem based on it then more reading and so on
tjbiddle has joined #ruby
<Vivekananda> that helps
slainer68 has joined #ruby
kofno has joined #ruby
<Vivekananda> julian-delphiki: were you referring to the docs link that MrZYX gave me above. I found another link for ruby and am confused which is what
<MrZYX> they are all the same, just different formats
<Vivekananda> oo ok thanks
<Vivekananda> so now where is this project euler
<julian-delphiki> google it, sir
d2dchat has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
<Vivekananda> yes I know :)
love_color_text has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
jetblack has quit [Remote host closed the connection]
<razieliyo> I'm starting to love ruby
kofno has quit [Ping timeout: 256 seconds]
<Vivekananda> so first baby steps . Tell me how to do this https://gist.github.com/anonymous/ff3a94e9cbed7b0b2f68#file-gistfile1-txt
<Vivekananda> razieliyo: you are new to it ?
workmad3 has joined #ruby
<razieliyo> Vivekananda: yes, I'm using it because of gosu and need for speed
jgrevich has quit [Ping timeout: 276 seconds]
jgrevich_ has joined #ruby
<Vivekananda> gosu ??
<razieliyo> yes, it's a graphical lib
<Vivekananda> and what has nfs got to do with it ?
nopolitica has quit [Quit: leaving]
<Vivekananda> are you an nfs programmer ?
<razieliyo> nfs?
<razieliyo> what is nfs?
<Vivekananda> need for speed the game of course
<razieliyo> lol not
<razieliyo> I said it because I need speed of programming lol
<razieliyo> hahahaha
ariedler has joined #ruby
<razieliyo> I mean because it's incredible huge the lines of code you can get rid of
<razieliyo> I've been learning it for a while, of course, and now using it
<MrZYX> Vivekananda: you can compare strings with == http://rubydoc.info/stdlib/core/String#%3D%3D-instance_method
jetblack has joined #ruby
<Vivekananda> MrZYX: in the irb if I want to know about a method of a class how do I do that ?
<Vivekananda> ClassName.methods gives me all of them
bean has joined #ruby
<MrZYX> I'm sorry? what do you want to know about a method?
nezumi has joined #ruby
jgrevich has joined #ruby
sayan has quit [Read error: Connection reset by peer]
jgrevich_ has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Ping timeout: 252 seconds]
mmitchell has quit [Remote host closed the connection]
jgrevich has quit [Read error: Connection reset by peer]
julian-delphiki has quit [Ping timeout: 260 seconds]
<Vivekananda> so I want to know what is the correct way of calling (string.reverse).each and what does it do
<Vivekananda> ie the method signature and implementation
<Vivekananda> can I do that or irb or do I have to look it up on docs ?
<MrZYX> you have to read the docs
<Vivekananda> also how do I type in multiple lines of code before executing on irb
<MrZYX> there's ri which is like man for ruby
<MrZYX> and there's pry with pry-doc which could show you the documentation of a method inline
<Vivekananda> so inside irb I say ri String.each ?
<MrZYX> no, outside
<Hanmac> Vivekananda: there is no each for String
<MrZYX> Hanmac: heh, let ri tell him that ;)
<shevy> I removed ri
<Vivekananda> why ?
memristor has quit [Read error: Connection reset by peer]
<shevy> it's an unusable pile of shit really
<Vivekananda> shevy really
<Vivekananda> then what did you get in place.
<shevy> yeah
<Vivekananda> ONline lookups would take much longer wont they ?
<shevy> Vivekananda dunno, I pile up things into my local knowledge base
[eDu] has joined #ruby
<Vivekananda> hmm that is an interesting way of doing it
<shevy> but takes too much time
<Vivekananda> and is to me scary too :)
<shevy> ruby is my main language though, so it is ok
<Vivekananda> okay so I have to look at how iterators work in ruby
monkegjinni has quit [Remote host closed the connection]
<shevy> it is easy
<shevy> it is always the same
<shevy> .each
<shevy> .each_pair
Rioji has quit [Remote host closed the connection]
<shevy> .each_girl
<MrZYX> don't confuse him ;P
<shevy> Vivekananda, look at http://ruby-doc.org/core-2.0/Enumerable.html and read through the names on the left side once
<shevy> then at least your brain has read the method names once
<shevy> in a few weeks you have mnemoed it all very well
berdario has joined #ruby
realDAB has joined #ruby
<shevy> MrZYX I think newcomers are ALWAYS confused :)
<MrZYX> I don't think confusion is a binary state
<MrZYX> you can add to it
<berdario> Hi, I'm trying to understand the behavior of the debug module, regarding the source file
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<Vivekananda> shevy: lol well kind of. Not confused but have lesser tools at the moment.e.g I see that I need an array or a comma separated list or something similar to iterate
<Vivekananda> but I dont know now how to iterate over the String I have
<berdario> but it doesn't explain why this is... only that "sourcefile is std-in"
<Vivekananda> Btw shoudl I install ri ? MrZYX ?
<berdario> if I run a script with "ruby -rdebug file.rb" I don't have such a problem
<Vivekananda> It is not there in ubuntu as a default
tootooroo has quit [Ping timeout: 240 seconds]
<berdario> but, even weirder: the behavior on jruby is different
<shevy> Vivekananda you can split up a string
<shevy> Vivekananda test it in IRB always
<MrZYX> Vivekananda: give it a try, give all the different online docs a try, give the local html documentation a try, give pry with pry-doc a try. Choose the tool that you like the most
<shevy> Vivekananda, one way is this: "abc".split(//) # => ["a", "b", "c"]
<shevy> Vivekananda .split will give you an Array. you can use .each on that array to iterate over it
<shevy> *over its contents
<berdario> (whoops, I just realized that the SO answer I linked isn't the right one)
<shevy> Vivekananda, The three core classes of ruby are String, Hash and Array. there are also Numbers (Fixnum, Integer etc..) but they are not that important compared to the other 3
jgrevich has joined #ruby
<MrZYX> shevy why not String#each_char for your example?
catphish has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<berdario> shevy: have you ever used the debug module?
<shevy> MrZYX dunno really
<shevy> berdario nope, my software is never allowed to become too complex
<berdario> ok, is someone here who does?
himsin has quit [Ping timeout: 245 seconds]
bigmac_ has joined #ruby
Skofo has quit [Ping timeout: 255 seconds]
<Vivekananda> So another question. when I do this a = "Hell0" then b = a then a =" hi " and then print b it is still hello
<Vivekananda> how does this work A?
<Vivekananda> sorry work ?
<Vivekananda> ie. why is b not hi ?
danneu2 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
jdrap has joined #ruby
stoffus has quit []
<berdario> Vivekananda: `b` is a reference to the string "Hell0", not to the object `a`
<MrZYX> "Hell0" and "hi" are the objects, with a = "Hell0" you store a reference to the object in a, with a = b you copy that reference, with b = "hi" you overwrite that reference, not the object
<catphish> a = "hi" creates an instance of string and assigns it to the variable a
<berdario> (not sure if "reference" is the right terminology for ruby)
<catphish> it doesn't modify the object that a pointed to before
bigmac has quit [Ping timeout: 259 seconds]
whowantstolivef1 has quit [Ping timeout: 256 seconds]
<Vivekananda> so in the last step b is pointing to hello and a changes ?
beneggett has joined #ruby
<Vivekananda> I encountered another thing the other day in java and was curious
<berdario> yes
<catphish> try a.replace("hi")
<catphish> that will modify the object that both variables point to
<catphish> but otherwise, "variable = something" will just change where that variable points, it wont affects the object it pointed to
indigenous has left #ruby [#ruby]
<Vivekananda> so what happened was that I defined a field f = new A; then inside a method I did -- void mymethod(int f) { f = new B }
<Vivekananda> now when I print the value of f it gave A whenver outside but always gave B when inside that method
b0oh has joined #ruby
jonathanwallace1 has quit [Ping timeout: 264 seconds]
<catphish> that's C code
<catphish> try ruby
wmoxam has joined #ruby
b0oh has quit [Client Quit]
<berdario> he said Java... btw in java you ought to have void mymethod (Integer f)
<berdario> not `int`
realDAB has quit [Quit: realDAB]
<catphish> oh ok
<berdario> (if I remember correctly)
b0oh has joined #ruby
<Vivekananda> On the other hand I know that if I do f = new A ; void mymethod( ) { f = x } then f changes and is the same f that is declared int he field outside
akam-it has quit [Remote host closed the connection]
<MrZYX> yup that is called scope but has very little to do with changing the reference vs the object itself
<Vivekananda> no but I was curious if the same thing happens in ruby . I was told that this happens across languages and also there is something called shadowing
<Vivekananda> :)
arya has left #ruby [#ruby]
arya has joined #ruby
<heftig> berdario: no, int exists as well
<Vivekananda> but guess will first try running my program
<heftig> berdario: Integer is the boxed type (an int contained in an Object)
<Vivekananda> heftig: is the primitive an Integer the class
<Vivekananda> so I guess it can take an argument of the type int
<berdario> heftig: yes, but I don't think that you can assign an Object to a value type
<catphish> i avoid stacking identically named variables at all cost
sayan has joined #ruby
snorkdude has quit [Quit: snorkdude]
<berdario> (I know about autoboxing, but I think the compiler would complain... I'm not 100% sure btw)
<heftig> well, right. you can't create an int using "new"
<Vivekananda> berdario: Oo ok that is what you meant , yep yep you are correct
catphish has left #ruby ["Leaving"]
<Vivekananda> I should have written object f or something
<heftig> though maybe if you B was Integer, the compiler would automatically unbox
<heftig> s/you //
<Vivekananda> Integer works though
tootooroo has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
mneorr has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 245 seconds]
nezumi has quit [Ping timeout: 240 seconds]
chimkan_ has joined #ruby
jgrevich has joined #ruby
<heftig> it'd be the same in java, by the way. String a = "foo"; String b = a; a = "bar"; doesn't change b, either
sonda has quit [Remote host closed the connection]
<berdario> heftig: maybe you can help me? I was trying to understand the debug module
<heftig> debug module?
<berdario> heftig: yes, "-r debug" as an argument or "require 'debug'"
artofraw has joined #ruby
<heftig> never used that, sorry
<berdario> heftig: do you know someone who does?
<heftig> no
<berdario> ok, btw... if you have a ruby script with you
<berdario> if you launch ruby -rdebug script.rb
<berdario> and then press "l"
<berdario> you'll see the source code of the script
<berdario> but if you put require 'debug' in your script, and launch it with "ruby script.rb"
<berdario> and then press "l"
adambeynon has joined #ruby
Sicp has joined #ruby
<berdario> it'll complain, with "No sourcefile available"
apeiros has quit [Read error: Connection reset by peer]
<berdario> actually, it'll say "No sourcefile available for script.rb"
wmoxam has quit [Ping timeout: 255 seconds]
<artofraw> does it make a difference if you do array.uniq; array vs. array.uniq! as the last lines in a method definition?
<Vivekananda> btw everyone how do I run multilines in the irb ?
mneorr has joined #ruby
apeiros has joined #ruby
<Vivekananda> like run after entering the entire code ie more than one line ?
<berdario> and this is quite weird, given that the pwd shouldn't have changed
GhettoCode has joined #ruby
marcdel has joined #ruby
<berdario> Vivekananda: it'll run every expression right away
<berdario> that is, it'll define a class, as soon as you close the definition with the proper "end" token
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<Vivekananda> berdario: yes but I wish to run like five lines together
<Vivekananda> if it runs each line wont that mess up things ?
<Vivekananda> also I have ruby 1.8 . Should I upgrade to ruby 2.0 ?
<Vivekananda> on ubuntu I mean ?
<berdario> Vivekananda: ok, then you might try to put all the lines on a single one, and separate the expressions with ";"
<MrZYX> artofraw: yes, bang mehtods tend to return nil if nothing was changed
Xeago has joined #ruby
<MrZYX> Vivekananda: yes
Elhu has joined #ruby
<MrZYX> ruby 1.8 support will end soo
<MrZYX> n
<Vivekananda> hmm . ooo I see that if I copy and paste lines from the text editor it runs all the lines as a whole
<MrZYX> and you shouldn't learn an outdated language anyway
<Vivekananda> MrZYX: hmm so which is the latest ?
<MrZYX> 2.0
<berdario> Vivekananda: I don't know how much you're copypasting, but you're better off requiring the module (and possibly using debug, or a fancier shell like pry)
Quebert has joined #ruby
<artofraw> MrZYX: but with sort! this is not the case
<Vivekananda> hmm
<berdario> Vivekananda: unfortunately, the debian packaging for ruby isn't really up-to-date imho... you might want to use some of the tools that'll manage your ruby install
<Vivekananda> okay one things at a time I should first upgrade to 2
<Vivekananda> berdario: oo ok . Then how to do it ?
<berdario> I use rbenv, but there're also rvm and other tools
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
vlad_starkov has quit [Remote host closed the connection]
<MrZYX> artofraw: tend to ;) my rule of thumb is to assume they do if I don't know better
workmad3 has joined #ruby
rocket has joined #ruby
<Vivekananda> berdario: okay so I download this script ( is it ? ) and install it ? Also I dont wish to install test versions/nightlies
<Vivekananda> will it do that ?
rocket is now known as Guest1797
<MrZYX> berdario: in ruby you require files not modules or packages ;)
[eDu] has quit [Quit: [eDu]]
Guest38867 has quit [Ping timeout: 256 seconds]
<berdario> Vivekananda: yes, you can install stable versions... but unfortunately the install process will actually compile the interpreter on your machine, so that's not as fast as apt-get installing something
<berdario> the other tool I've been suggested recently is https://github.com/postmodern/chruby
<berdario> MrZYX: uh, you're right... I'm somewhat new to ruby
_if has joined #ruby
<MrZYX> it's okay, just saying
<Vivekananda> MrZYX: so I shoudl go for chruby or rbenv?
Quebert has quit [Ping timeout: 245 seconds]
Ontolog has joined #ruby
<berdario> Vivekananda: another nice thing you'll get with these tools, is that (aside from having the latest stable ruby), you actually have different environments (one for each project, for example) and all of them are in your $HOME tipically, so you can install gems without root privileges
<Vivekananda> I have no clue what gems are
<MrZYX> Vivekananda: tried neither, I'm somewhat still stuck to RVM
<Vivekananda> I started ruby like one day ago
<Vivekananda> stuck ??
<Vivekananda> you mean that is good ?
<MrZYX> well, many people are switching to rbenv or chruby
zph has joined #ruby
<Vivekananda> hmm okay then rbenv it is
Tricon has joined #ruby
<Vivekananda> now I will have to first uninstall ruby and ri ?
<MrZYX> no
<Vivekananda> or do I proceed from here itself ?
xll11 has joined #ruby
<MrZYX> just follow the readme for rbenv, do not make any additional assumptions ;)
<Vivekananda> also does it install ri and the pry by default ?
<xll11> Anyone vouch for Pragmatic ruby pickaxe book
<xll11> ?
<berdario> Vivekananda: you don't need to remove anything, it can coexist with no problems
<Vivekananda> okay
<Vivekananda> berdario: the thing is I have a ver old comp and very less space
<Vivekananda> so ...
hoens has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<waxjar> it's a few MBs i think
Sicp has quit [Changing host]
Sicp has joined #ruby
kofno has joined #ruby
vlad_starkov has joined #ruby
tomku has quit [Read error: Operation timed out]
kn330 has joined #ruby
tomku has joined #ruby
nomadic has quit [Ping timeout: 245 seconds]
kenichi has quit [Ping timeout: 258 seconds]
chimkan_ has quit [Quit: chimkan_]
prime has quit [Ping timeout: 258 seconds]
kenichi has joined #ruby
kzrl has quit [Ping timeout: 258 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
tootooroo has joined #ruby
breadtk has quit [Ping timeout: 256 seconds]
kofno has quit [Ping timeout: 248 seconds]
lyubenblagoev has joined #ruby
kzrl has joined #ruby
chessguy has joined #ruby
breadtk has joined #ruby
teddyp1cker has joined #ruby
dross_ has joined #ruby
dross has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
<Vivekananda> reading the steps. during the first one it says using git to clone the current version but the current is not the most stable versoin
prime has joined #ruby
ner0x has joined #ruby
<Vivekananda> how do I clone the stable one ?
nomadic has joined #ruby
thomsch has joined #ruby
<waxjar> Vivekananda, it's in the README...
<waxjar> under upgrading, ill give that, but still
banjara has quit [Quit: Leaving.]
chessguy has quit [Read error: Connection reset by peer]
classix has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
<Vivekananda> waxjar: IN the readme it says This will get you going with the latest version of rbenv and make it easy to fork and contribute any changes back upstream.
<Vivekananda> $ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
Elhu has quit [Quit: Computer has gone to sleep.]
classix has joined #ruby
<Vivekananda> so that is the latest versoin ( might or might not be the stable one :()
b0oh has quit [Quit: Leaving.]
<waxjar> [21:09:23] <waxjar> under upgrading, ill give that, but still
<berdario> Vivekananda: that's only rbenv though
<Vivekananda> okay
<Vivekananda> so I am fine with installing that berdario ?
mpereira has joined #ruby
<oponder> Vivekananda: Sometimes you just gotta try something and see what happens
<berdario> Vivekananda: yes, generally I wouldn't worry terribly about using the latest revision of a small and well tested software
<Vivekananda> berdario: ok sure I am trying it
<berdario> (that is, rbenv is somewhat small, ruby itself is huge)
Heero has joined #ruby
<oponder> its good to become resourceful on your own. Give it a good 45mins of googling, trying stuff, and looking through the docs before asking a question. Looking up information is a skill like any other that can be trained and practiced.
<berdario> oponder: Vivekananda whoops, I just checked apt-cache right now out of curiosity
<berdario> turns out that maybe you can actually apt-get install rbenv
<Vivekananda> oo nice
arya has joined #ruby
<Vivekananda> but what version ?
vlad_starkov has quit [Remote host closed the connection]
<Vivekananda> apt-get is normally behind a little isnt it ?
<berdario> (I installed it from git, also because to me the bash/zsh integration is of no use since I don't use either)
<berdario> I'm on ubuntu 12.10, and the version is 0.3.0-1
generalissimo has quit [Remote host closed the connection]
<Vivekananda> in apt-get the available versoin is 0.1.2
_if has left #ruby [#ruby]
<Vivekananda> I am on ubuntu 12.04 but not gnome , lubuntu
<Vivekananda> so should I go the git route ?
sayan has quit [Ping timeout: 256 seconds]
indyrl has joined #ruby
<berdario> Vivekananda: yes, it's probably more bothersome to deal with an older version that to handle things with git
<Vivekananda> yep
mercwithamouth has quit [Ping timeout: 264 seconds]
<Vivekananda> my thoughts ar ethe same
<berdario> apparently, rbenv doesn't have a branch for each release... maybe they have a tag for 0.4... and you could probably checkout it to avoid staying on the bleeding edge
Quebert has joined #ruby
<Vivekananda> berdario: command ?? how to I mean ?
<artofraw> is there a point passing instatiating a block variable if it's not used anywhere inside the block?
IceDragon has joined #ruby
<berdario> Vivekananda: I've never used git tags
<MrZYX> git checkout tagname
<Vivekananda> MrZYX: currently I have $ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv.
<MrZYX> yup
<Vivekananda> so what changes here ?
<MrZYX> that will clone the repo
beneggett has quit [Quit: Computer has gone to sleep.]
<MrZYX> then cd into it
<MrZYX> git tag to list the available tags
<Vivekananda> yep ok
<Vivekananda> let me proceed then
jdrap has quit [Quit: jdrap]
<Vivekananda> so cloning the repo does not harm ?
<MrZYX> how could it?
<Vivekananda> I mean will it not clone and copy the bleeding edge version too ?
<MrZYX> a git repository always has the full history
pyx has joined #ruby
Guest1797 has quit [Ping timeout: 252 seconds]
razibog has joined #ruby
<Vivekananda> hmm okay. So then when I am cloning , am I getting the building binaries for all earlier versions too ? even ones I dont plan to use ?
<bean> no
<MrZYX> what are"building binaries"?
<bean> its probably building the rbenv stuff.
<MrZYX> rbenv is not just shellscript?
<Vivekananda> hmm What I understood( incorrectly ?) is that the repository contains all the code for any program or atleast the executables for it with all the revisions
<Vivekananda> so if I clone it it means I am getting all those files no ?
jdrap has joined #ruby
marty_mcfly has quit [Read error: Operation timed out]
Rioji has joined #ruby
<MrZYX> shipping binaries with git is rare, especially since git so much more efficient in handling text
slainer68 has joined #ruby
<Vivekananda> hmm
<Vivekananda> I did not read the entire article
Iszak has joined #ruby
baphled has joined #ruby
Quebert has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
verysoftoiletppr has quit []
chandankumar has quit [Ping timeout: 257 seconds]
Rioji has quit [Ping timeout: 256 seconds]
verysoftoiletppr has joined #ruby
baroquebobcat has joined #ruby
brennanMKE has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
mahmoudimus has joined #ruby
rickruby_ has joined #ruby
<Vivekananda> MrZYX: berdario said above that I should not clone the very latest git version. HOw do I accomplish that ?
Czupa has quit [Remote host closed the connection]
jdrap has quit [Quit: jdrap]
Nisha has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<MrZYX> ask berdario, git always if gives you the full history of a repository, you can switch the current working tree to any version of it then
Nisha has quit [Client Quit]
rickruby has quit [Ping timeout: 256 seconds]
_if has joined #ruby
<waxjar> Vivekananda, it's in the README like i said, you can find it under Upgrading.
rickruby_ has quit [Ping timeout: 248 seconds]
lewix_ has quit [Remote host closed the connection]
ner0x has joined #ruby
realDAB has joined #ruby
pyx has quit [Quit: WeeChat 0.4.0]
vlad_starkov has joined #ruby
thomsch has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
pioz has joined #ruby
mercwithamouth has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
elaptics`away is now known as elaptics
mercwithamouth has quit [Ping timeout: 276 seconds]
pioz has quit [Quit: This computer has gone to sleep]
vyrus001 has joined #ruby
<vyrus001> having issues installing json gem on windows using the x64 devkit => http://pastebin.com/XimYeCrB
jdrap has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
knapper_tech has joined #ruby
melnik has joined #ruby
kofno has joined #ruby
robbyoconnor has quit [Read error: No route to host]
lyubenblagoev has quit [Ping timeout: 264 seconds]
<melnik> hi, why do I get deadlock in the simple code http://pastie.org/7355562 ?
mmitchell has joined #ruby
himsin has joined #ruby
MehLaptop has joined #ruby
<Vivekananda> I am on the step---- $ exec $SHELL -l
kofno has quit [Ping timeout: 248 seconds]
wald0 has joined #ruby
<Vivekananda> how do I exit this shell and also what do I use this shell for aprt from install ?
zph has quit [Quit: Computer has gone to sleep.]
<wald0> im learning "ruby in twenty minutes" and im starting to love it, playing with irb, and I have a question: how i can enable "tab" to autocomplete things like Math.sqrt ?
<Vivekananda> wald0: not sure if an interactive shell would do that
<MrZYX> wald0: uhm, use pry? :P
<wald0> Vivekananda: well, in fact im more interested to have such feature on my editor (vim), any tip ?
Elhu has quit [Quit: Computer has gone to sleep.]
chrisnicola has quit [Quit: This computer has gone to sleep]
<Vivekananda> MrZYX: would be the man. I started only yesterday :)
<Morrolan> require 'irb/completion' if you don't want to use pry for some reason. ;)
<berdario> Vivekananda: you don't strictly need to exec, to exit the shell you can just close the gnome-terminal
<Vivekananda> berdario: I am trying to return to the main prompt
niceguyjames has joined #ruby
discopig has joined #ruby
<wald0> MrZYX: thx, looks interesting, im going to give a try :)
DIADLO has joined #ruby
sambio has joined #ruby
sambio has joined #ruby
sambio has quit [Changing host]
<wald0> when i do "gem install something" it is installed in user/local mode ? (and where? linux/debian)
DIADLO has left #ruby [#ruby]
<berdario> Vivekananda: do you already have ruby-build installed?
<Xeago> wald0: I have tab completion in irb, thought it came by default
<Vivekananda> MrZYX: I cloned the repo and cd d into it and tags give me v0.3.0 and v 0. 4. 0
<Vivekananda> berdario: ON that step right now
shock_one has quit [Ping timeout: 260 seconds]
razibog has quit [Quit: Leaving.]
swex has quit [Remote host closed the connection]
swex has joined #ruby
philcrissman has joined #ruby
melnik has quit [Quit: KVIrc 4.0.2 Insomnia http://www.kvirc.net/]
crackfu has joined #ruby
<waxjar> wald0, you can check where a gem is installed with gem which gemname
kiri has joined #ruby
wmoxam has joined #ruby
<Vivekananda> berdario: done
<Vivekananda> I see the files but I just did the cloning and I see an install file in there
<Vivekananda> I just did git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
<Vivekananda> but I see an install file in the ruby-build
eldariof has quit []
cantonic_ has joined #ruby
workmad3 has joined #ruby
apeiros has joined #ruby
robbyoconnor has joined #ruby
monkegjinni has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
teddyp1cker has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<Vivekananda> hmm okay problems
<Vivekananda> it says rbenv not installed
nomenkun has joined #ruby
<Vivekananda> why is that
* Vivekananda is not sure
nomenkun has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 252 seconds]
<Vivekananda> should probably log back oout and in
br4ndon has joined #ruby
sayan has joined #ruby
* Vivekananda off for a little rest
anderse has joined #ruby
havenwood has joined #ruby
berdario has quit [Ping timeout: 256 seconds]
brum has joined #ruby
jpfuentes2 has joined #ruby
berdario has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
timonv has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
teddyp1cker has joined #ruby
thone_ has joined #ruby
banjara has joined #ruby
Elhu has joined #ruby
arya has quit [Ping timeout: 248 seconds]
dmerrick has joined #ruby
Tricon has quit [Quit: Leaving...]
kristofers has quit []
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 256 seconds]
keymone_ has joined #ruby
keymone has quit [Ping timeout: 252 seconds]
keymone_ is now known as keymone
Tectonic has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
tootooroo has quit [Ping timeout: 264 seconds]
arya has joined #ruby
banjara has quit [Quit: Leaving.]
dmerrick has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
<artofraw> guys, doesn't mri 1.9.3 throw "unused variable" warnings?
brennanMKE has quit [Remote host closed the connection]
sayan has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
<Hanmac1> artofraw: do you mean while building or at runtime?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<artofraw> at runtime, I have this http://pastie.org/7356077 and it doesn't generate warnings for the unused block params (a & b)
<artofraw> I thought it should..
brennanMKE has joined #ruby
<cantonic> hey there. can anyone recommend a ruby framework similar to Rails for writing mobile apps? (android and ios)
<Vivekananda> berdario: are you there or gone ? MrZYX
<Xeago> cantonic: sinatra is cool
<Vivekananda> not sure of your time zones so probably should not ping
<cantonic> Xeago: for mobile apps?
<Xeago> also look at padrino if you want a more 'complete' experience
<Xeago> cantonic: define mobile apsp
<cantonic> Xeago: native apps for android and ios
<Xeago> html+javascript+css designed for smaller screens
<Xeago> and you are looking for something like rails?
<cantonic> Xeago: i would use Rails for mobile websites, but i need to write native apps now
<Xeago> ie. a web development stack
<cantonic> yeah
mengu has quit [Ping timeout: 256 seconds]
<Xeago> my recommendation is when going native stay native and abstract at the data
<cantonic> i am pretty familiar with rails. I know that mobile app development is made with native C, but maybe there is a ruby framwork which works well
<Xeago> what?
<Xeago> native c, you can't run native c on tons of devices
<apeiros> actually it's objC for iPhone and java for android
<Xeago> iOS won't let you run native-c, it will only let you run c as objC
<apeiros> don't know about windows phone, but who would f'ing care?
<cantonic> Xeago: i have heard of http://mobiruby.org/ but don't have any experience with it
<Xeago> (and c as objC is different)
<Xeago> there is rubymotion
<Xeago> or soemthing like that
<apeiros> yupp
<apeiros> and ruboto for android
<apeiros> (rubymotion is correct)
mmitchell has quit [Remote host closed the connection]
<cantonic> thank you guys. that was what i was searching for. Does anyone have experience with mobiruby?
<cantonic> or is that something completely different?
<Xeago> I have used mruby, but I doubt it is comparable
<jdrap> can someone give some link about "mobiruby vs ruby motion" ??
<jdrap> or some advice
<jdrap> I can't find something clear
<Xeago> jdrap: try it yourself
nomenkun has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<jdrap> I already have a ruby motion license and I think that it is awesome
<cantonic> Xeago and apeiros: thank you guys. I will try them out. Hope there are not many downsides of using ruby frameworks for mobile app development
realDAB has quit [Quit: realDAB]
philcrissman has quit [Remote host closed the connection]
<jdrap> I'm gonna give a try to mobiruby as well :)
mercwithamouth has joined #ruby
* apeiros has a rubymotion license too and still not used it :(
<apeiros> bought it the very hour I heard about it
<Xeago> apeiros: is time the limiting factor?
<berdario> Vivekananda: I'm back... my brother killed the power of the access point... and then I had to help out my mother to create a pdf out of a csv -_-
<cantonic> jdrap: would love to read about your experience. are you blogging it somewhere?
<Vivekananda> hmm nice
<Vivekananda> you mom does CS too ?
<apeiros> Xeago: to a good extent, yes
<Vivekananda> wow !! nice
centipedefarmer has joined #ruby
<Xeago> apeiros: bummer, thats the hardest thing for me to help with..
<Vivekananda> my computer says rbenv not installed
jlebrech has quit [Ping timeout: 252 seconds]
<Vivekananda> I wonder why
<cantonic> i wish we could just use a framework like Rails and still use all the functionalities of a mobile phone
<Xeago> cantonic: that statement makes no sense
<cantonic> Xeago: why not?
<Xeago> and would give you a really insecure experience
<Xeago> consider 10k installs
realDAB has joined #ruby
<berdario> no, she's sort of a lawyer... she uses excel on windows xp... and unlike Libreoffice, excel doesn't prompt you for the separator when opening a .csv, and gets wrong the encoding (or rather, has horrible defaults), so I had to gave her proper data
<Xeago> you don't want 1000 database connections going over cellular network
<berdario> Vivekananda: you cloned ruby-build into .rbenv/plugins , right ?
<workmad3> cantonic: the problem with cross-platform frameworks (and there are many of them) is that they end up with either lowest-common-denominator of features, or end up doing crappy re-implementations of things like UI features, or just do something like package up an HTML/JS setup into an app-like structure and run it through a phone browser
<workmad3> Xeago: I don't think cantonic means a 'rails-like framework' in the sense of 'an MVC framework with an ORM'. I think he means an easy-to-use framework for doing mobile apps across multiple mobile platforms
<cantonic> exactly. thanks workmad3
nomenkun has quit [Ping timeout: 264 seconds]
<Xeago> in my opinion and limited experience you are better off keeping it on the native development tools and abstracting at the data layer
mpereira has quit [Ping timeout: 255 seconds]
<workmad3> Xeago: I agree, with at least some mobile development under my belt :)
<cantonic> sorry for my bad explanation. my restricted english skills are blamable for that :P
bwlang has quit [Quit: bwlang]
rippa has quit [Ping timeout: 240 seconds]
<Xeago> cantonic: even then, I see Rails besides Ruby, just like I see the ADK besides Java
<Xeago> Learn their respective frameworks and you will want the same somewhere else
<Xeago> after a while if you ddin't get crazy of java/objC
<Xeago> also, it absoultely SUCKS that android is stuck on Java6'ish
Guedes has quit [Read error: Connection reset by peer]
<Vivekananda> berdario: a little off the beaten track
<cantonic> Xeago: what i mean is something like that: http://www.mosync.com/
<berdario> Vivekananda: does it says "The program 'rbenv' is currently not installed. You can install it by typing:"
<berdario> ?
<cantonic> just found it on google.
<Xeago> cantonic: I stay as far away from that as I can
<Vivekananda> the thing is I have an old computer and so I install things via symlinks sometimes so I have a link to the .rbenv to a different folder
<Xeago> if anything I would use sencha
<Vivekananda> yes it does
tootooroo has joined #ruby
<cantonic> Xeago: will have a look at it. thx
kofno has joined #ruby
<berdario> Vivekananda: have you closed gnome-terminal and reopened it?
<Xeago> sencha is really iOS opinionated and influenced
Skofo has joined #ruby
thisirs has quit [Remote host closed the connection]
<berdario> ahhh
<berdario> Vivekananda: ok, I did the same
realDAB has quit [Quit: realDAB]
<Vivekananda> I have
<Vivekananda> but I guess will have to restart
<Vivekananda> or logout and back in
<Vivekananda> or something
<fryguy> Vivekananda: or just run a login shell instead
<Vivekananda> fryguy: hey there. Well I tried exec SHELL -l and it runs fine
workmad3 has quit [Ping timeout: 252 seconds]
<Vivekananda> in there also it says rbenv is not installed
jdrap has quit [Quit: jdrap]
<cantonic> Xeago: have you ever heard of Rhodes? ( http://www.motorola.com/Business/US-EN/RhoMobile+Suite/Rhodes )
<fryguy> Vivekananda: where did you add the line to set up rbenv when you start shells?
<berdario> Vivekananda: ok, have you changed your $PATH ?
mpereira has joined #ruby
zph has joined #ruby
<cantonic> brb. need to get some coffee
philcrissman has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
kofno has quit [Ping timeout: 264 seconds]
<Vivekananda> fryguy: I am just following the instructions here - https://github.com/sstephenson/rbenv#upgrading
zph has quit [Client Quit]
<Xeago> cantonic: no
<fryguy> Vivekananda: so you already had it installed and working? and then you upgraded?
tvw has joined #ruby
greenarrow has joined #ruby
<Vivekananda> fryguy: I am on ubuntu so ruby was installed but not rbenv
<Vivekananda> I just started to install it based on the recos here
<fryguy> Vivekananda: ok, so you need to follow the installation steps, not the upgrading steps
<Vivekananda> and did till step 5
rburton- has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
<Vivekananda> fryguy: yep sorry wrong link did I give you ?
<Vivekananda> It is the same page but isnt it ?
<Vivekananda> let me try to log out and log back in
<fryguy> Vivekananda: pastebin your .bash_proflie
Proshot has quit [Quit: Leaving]
Skylab has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Rumsteak has joined #ruby
Ontolog has joined #ruby
<Vivekananda> fryguy: the page said to not use .bash_profile and so I used the .profile here is the pastehttps://gist.github.com/anonymous/ac8285451ef3b472f03e
<Vivekananda> sorry
<Rumsteak> What does $\ mean in this expression ? `git ls-files`.split($\)
Sicp has quit [Quit: Leaving]
<havenwood> Rumsteak: The input record separator.
<apeiros> $\ is one of those pre-defined global variables
monkegjinni has quit [Remote host closed the connection]
<apeiros> and havenwood seems to know which is which by heart - if you don't, search for "Zenspiders ruby quickref"
<apeiros> it lists all of them
kbouwser has quit [Ping timeout: 252 seconds]
<havenwood> apeiros: Naw, I looked at the quickref. :P
baphled has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
jdunck_ has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
whitedawg has quit [Quit: Leaving.]
<Rumsteak> havenwood: thanks I bookmark this one
<havenwood> Rumsteak: Note that $/ has an associated global: $-0
<havenwood> Also: $RS or $INPUT_RECORD_SEPARATOR
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
Vivekananda has quit [Remote host closed the connection]
<havenwood> Plenty of aliases...
<Rumsteak> ok
anderse has quit [Quit: anderse]
motto has joined #ruby
m8 has quit [Read error: Operation timed out]
backjlack has quit [Remote host closed the connection]
memristor has joined #ruby
atmosx has joined #ruby
mengu has joined #ruby
<havenwood> Just started learning C, but I'm impressed how much you can make it look like Ruby at least in uber-trivial examples: https://gist.github.com/havenwood/5332581
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
chrisnicola has joined #ruby
Ng|Adonixx4798 has joined #ruby
Ng|Adonixx4798 has joined #ruby
Ng|Adonixx4798 has quit [Changing host]
memristor has quit [Read error: Connection reset by peer]
<apeiros> havenwood: C even has blocks now…
Trudko has joined #ruby
<Trudko> Guys Installed rbenv then I installed passenger gem but passenger command is not in path not sure if I should do something with rbenv or I should add to path myself
<havenwood> apeiros: Really?? C11?
<apeiros> no idea which version. afaik apple introduced them to make stuff like grand central dispatch easier to use
<havenwood> Trudko: Always seems like the rbenv solution is: rbenv rehash
pioz has joined #ruby
<Trudko> havenwood: :D so it was in my case too :D
wallerdev has joined #ruby
adkron has joined #ruby
<Trudko> btw I am doing installation guid for my simnple rails installation should I set ruby my app need as global always?
<Trudko> I mean if there some other apps using other ruby it might mess things up?!
<razieliyo> is it okay to convert an integer to an enum?
<razieliyo> I mean
<razieliyo> I have a module: module X foo=1, bar=2, baz=3 end
axxT has quit [Read error: Operation timed out]
<havenwood> Trudko: A convention now shared by rvm, chruby and rbenv is to put a .ruby-version file in the project dir to specify which Ruby to use.
<razieliyo> I want to get a random value
mercwithamouth has quit [Ping timeout: 260 seconds]
zph has joined #ruby
<havenwood> razieliyo: [foo, bar, baz].sample
<razieliyo> havenwood: thanks
doritostains has joined #ruby
beiter has quit [Quit: beiter]
mityaz has quit [Quit: See ya!]
codecop has quit [Remote host closed the connection]
jdunck_ has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
<razieliyo> havenwood: I would have to change my module to an array, isn't it?
Burgestrand has quit [Quit: Burgestrand]
Mohan__ has quit [Read error: Operation timed out]
zph has quit [Client Quit]
<razieliyo> nothing, didn't say anything, fine
<razieliyo> I understood it
memristor has joined #ruby
sepp2k has quit [Quit: Leaving.]
MehLaptop has quit [Remote host closed the connection]
Burgestrand has joined #ruby
<razieliyo> it's weird
<razieliyo> the sample method doesn't work in my irb
spider-mario has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
Vivekananda has joined #ruby
<Vivekananda> so hey back everyone. Ok I think I have it working now
jetblack has quit [Remote host closed the connection]
<Vivekananda> So fryguy and berdario hey there
<Vivekananda> I have it working now
<berdario> good
<Vivekananda> I mean till the rbevn working
mercwithamouth has joined #ruby
<razieliyo> Note that in Ruby 1.8.7 it exists under the unfortunate name choice -> problem fixed =/
zastern has joined #ruby
<Vivekananda> I am getting the rbevn funcationality . Now what do I install ?
<Vivekananda> which verson ?
<Vivekananda> I mean how do I get the options
<berdario> latest: it's there in the topic: 2.0.0-è0
<berdario> 2.0.0-p0
mengu has quit [Quit: This computer has gone to sleep]
<berdario> rbenv help install
<zastern> I'm missing something about this code - https://gist.github.com/5332648 - probably due to being bad at math. I don't get why the loop establishes if something is prime or not prime. For example with the number 9, it should end up getting to (9-1) % 8, which = 1, which means is_prime won't get set to false. What am I misunderstanding about this?
<Vivekananda> yep I got it rbenv intall -l
<zastern> Bad at math AND ruby :)
<Vivekananda> so the versions available and of interest are 2.0.0-p0 2.0.0-preview1 2.0.0-preview2 2.0.0-rc1 2.0.0-rc2 2.1.0-dev
Elhu has quit [Quit: Computer has gone to sleep.]
<Vivekananda> what is rc1 and 2 btw berdario ?
<berdario> release candidate
<apeiros> release candidat
<apeiros> +e
<Vivekananda> and p0 is ?
<apeiros> and you should delete 2.0.0-preview1 2.0.0-preview2 2.0.0-rc1 2.0.0-rc2
<apeiros> patchlevel
<Vivekananda> apeiros: I remember I talked to you someplace else too but I forgot wheree :)
<berdario> apeiros: since we're mentioning it... why does ruby have such huge patchlevel numbers?
wargasm has quit [Ping timeout: 252 seconds]
<apeiros> berdario: because that's how those japanese devs roll
<Vivekananda> I dont have those on my system. They were just the output of the rbdev install -l command
<Vivekananda> It had a huge list but I only included the latest ones
<Vivekananda> ok so I am looking for p0 is it ? Is it the stable one ?
<berdario> apeiros: also, have you ever used require 'debug' ?
<Morrolan> zastern: 8 % 8 will result in 0, and not in 1.
<berdario> Vivekananda: yes
<apeiros> berdario: no, why?
<Morrolan> zastern: % returns the remainder of the division.
<berdario> apeiros: I'm trying to find information on it
<zastern> i do know what modulus is but...
<berdario> but noone seems to have ever used it :(
<zastern> its n % i, not n-1 % i
<Vivekananda> btw where is it going to install ruby ?
<zastern> so it does divide the 9 by 8 in the end
<zastern> at least as I understand it?
<waxjar> i do my debugging with puts, really
<Vivekananda> also can I delete the ubntu install using the rbdev ?
wargasm has joined #ruby
<berdario> Villadelfia: ~/.rbenv/versions by default
<waxjar> pp if i feel fancy
maxmanders has quit [Quit: Computer has gone to sleep.]
jetblack has joined #ruby
<berdario> Vivekananda: yes, you can apt-get remove rbenv... but I wouldn't remove ruby itself, unless you're really tight on space
<berdario> waxjar: yes, you're not the first one I've heard such things from
<zastern> So for example if we use 11 which is prime, it should do 11 / 10, return 1, as the remainder and then set not_prime = false. What am I missing?
xardas has quit [Ping timeout: 276 seconds]
<Vivekananda> berdario: o no what I meant is I have 1.8 versoin installed on the system as default via canonical. Can I remove that version via the rbenv ?
<Vivekananda> via ubuntu canonical I mean
<Morrolan> zastern: is_prime gets set to false if the remainder is 0.
<zastern> I get that.
<berdario> remove the system ruby via rbenv? no
<zastern> But the way I'm reading it the last iteration should always have a remainder of 1, because its n / n-1
<Vivekananda> berdario: but that is just sitting there and of no use
bluOxigen has joined #ruby
<berdario> Vivekananda: if you want to remove it, apt-get remove ruby
<Vivekananda> I want to remove it if it is not any hassle. Also where does rbenv install the new ruby files ?
<berdario> ops, I mentioned another guy before
<Vivekananda> I hope that will not mess with the rbenv ruby install
<berdario> Vivekananda: ~/.rbenv/versions by default
<Morrolan> zastern: Correct. And since 1 != 0, the assignment inside the condition will not happen during this last iteration.
centipedefarmer has quit [Remote host closed the connection]
plains has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
<berdario> Vivekananda: it shouldn't... rbenv is mostly (all?) shell scripts
<zastern> Morrolan: right but the way im reading it, the iteration should ALWAYS end with a remainder of 1
<Morrolan> Yes, but how does that influence the algorithm?
<zastern> since you always end up dividing a number by itself minus one in the end. im definitely missing something
<Vivekananda> berdario: hmm okay . Btw I keyed in rbenv install 2.0.0-p0 and it is taking a long timee to downlaod
<Vivekananda> why is that ?
danneu2 has joined #ruby
<Vivekananda> happenning ?
<Morrolan> zastern: It mainly shows that this algorithm is doing more iterations than it would have to do.
rburton- has quit [Quit: Leaving...]
<Vivekananda> I also want to know which directory it will install the thing in and how big the download is
GhettoCode has quit [Quit: Computer has gone to sleep.]
<zastern> Morrolan: I get that, but I'm still missing something.
<berdario> Vivekananda: don't know... I only did that once... it wasn't quick, but it wasn't terrible
<berdario> I already told you the directory
<zastern> It should always return 1 in the end, and never ever set is_prime to false
<zastern> which means i must be not understanding this code
<Vivekananda> berdario: gotcha
<Morrolan> zastern: Well, no. In the case of "9", for example, it would iterate from 2..8. Now when it reaches '3' it'll do a 9%3, which is 0. During that iteration is_prime gets set to false.
<zastern> Morrolan: right, but it doesnt stop iterating there does it
<zastern> itll then go to 4
<Vivekananda> berdario: will it also install the r1 for 2.0 and also the pry shell ?
<zastern> oh wait but it does nothing unless it == 0
<zastern> i get it
<berdario> Vivekananda: uhm, I don't know if it's because of the docs, or what... but my ruby-2.0 install, seems to weigh 362MB
<zastern> so the other iterations dont matter
<zastern> Morrolan: I get it now, thanks!
<Morrolan> zastern: Ah, I now see what you meant. Yep, if the condition doesn't evaluate to true, it'll simply do nothing. :)
<Morrolan> Good to hear. :)
<berdario> Vivekananda: yes and no... to install pry, just gem install pry after you got ruby set up
<zastern> Morrolan: I don't math gud.
<Morrolan> Heh, you did realise quite quickly that it's doing more work than it would have to, though. :)
<Vivekananda> berdario: whistle !! hmm that is a a decent weight
ckrailo has joined #ruby
<Vivekananda> hmm
apeiros has quit [Remote host closed the connection]
<berdario> yes, I have an ssd... 362MB seems a bit of a waste
nomenkun has joined #ruby
rburton- has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
<berdario> yes, 162MB are of documentation
arya has joined #ruby
alx- has joined #ruby
<berdario> then, 73 more MB of ri
<waxjar> wow, didn't realise docs took that much space
tjbiddle has joined #ruby
<berdario> (and some more doc for the gems)
atmosx has quit [Quit: And so the story goes…]
<Vivekananda> still running ......
<Vivekananda> the download dis done now installing
<berdario> utf8tbl_8c_source.html <-- this is huge... 2.6 alone
ckrailo has quit [Ping timeout: 276 seconds]
<berdario> 2.6MB
nomenkun has quit [Ping timeout: 264 seconds]
<waxjar> hmm.. my ri folder is 6.4 MB
<berdario> basically is the source code, dumped into an html page... and the source code is mostly a giant table for encoding conversions
tjbiddle has quit [Quit: tjbiddle]
kofno has joined #ruby
adkron has joined #ruby
crackfu has quit [Remote host closed the connection]
alanp_ has quit [Read error: Connection reset by peer]
jdunck has joined #ruby
chipotle_ has joined #ruby
alanp has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
mercwithamouth has quit [Ping timeout: 245 seconds]
kofno has quit [Ping timeout: 256 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
lele has quit [Ping timeout: 246 seconds]
zastern has quit [Remote host closed the connection]
vise890 has joined #ruby
lele has joined #ruby
keyvan has joined #ruby
chessguy has joined #ruby
x0F has quit [Ping timeout: 260 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
love_color_text has quit [Ping timeout: 276 seconds]
Tricon has joined #ruby
chrisnicola has joined #ruby
memristor has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
chrishunt has joined #ruby
centipedefarmer has joined #ruby
<Vivekananda> berdario: hey there . my install failed it says --- The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
ner0x has quit [Quit: Leaving]
<berdario> Vivekananda: is it running ok, but without openssl, or it failed indeed?
<berdario> usually, when compiling you need to install the headers, from a package like libopenssl-dev
<Vivekananda> berdario: I did nothing but do what the site told me to :(
jonathanwallace has joined #ruby
<berdario> Vivekananda: apt-get install openssl-dev and try again
nezumi has joined #ruby
<_bart> Hi all, I'm looking at https://github.com/nateware/redis-objects and I see counters are stored at model_name:id:field_name. But how do I change that? I have a model called Identity and a model called Brand. I want to count the related posts for that identity, but that's different for every brand. So I want counters like identity:identity_id:brand_id:field_name, for example: identity:1:2:related.posts = 4 and identity:1:2:related.posts = 5
<Vivekananda> yes am going to
<_bart> any ideas?
<Vivekananda> updating ubuntu first though
postmodern has joined #ruby
nateberkopec has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
rburton- has quit [Quit: Leaving...]
<_bart> I considered a hash on identity:id:related.posts, but that would not have the benefits of a counter dataset in Redis (no race conditions with INCR and stuff like that)
jonahR_ has joined #ruby
atno has quit [Ping timeout: 246 seconds]
jonahR has quit [Ping timeout: 276 seconds]
jonahR_ is now known as jonahR
zph has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
chipotle_ has quit [Quit: cya]
philcrissman has quit [Remote host closed the connection]
arya has quit [Ping timeout: 276 seconds]
Skylab has quit [Quit: Skylab]
centipedefarmer has quit [Remote host closed the connection]
RagingDave has quit [Quit: Ex-Chat]
centipedefarmer has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
BaconRose has joined #ruby
Xeago has quit [Remote host closed the connection]
iMe has quit [Quit: Textual IRC Client: www.textualapp.com]
<waxjar> berdario, i can't reproduce the error you get
<berdario> waxjar: really?
Opettaja has quit [Quit: WeeChat 0.4.0]
centipedefarmer has quit [Read error: Operation timed out]
<berdario> waxjar: I tried just now also with my system ruby (ruby1.9.1, and it's the same)
elaptics is now known as elaptics`away
iphands_ has joined #ruby
<berdario> waxjar: it's missing the `l`
idkazuma has joined #ruby
<waxjar> ah, didn't read again, of course :p
<waxjar> yep, same output :(
artofraw has quit [Remote host closed the connection]
ZachBeta has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
<_bart> How does def method_name=(some_value) work?
<_bart> What's that called?
emocakes has joined #ruby
<waxjar> it's just the name of the method
<_bart> I only know without the =
<waxjar> x.name = value is syntactic sugar for x.name=(value)
Skylab has joined #ruby
<berdario> waxjar: good, I was starting to doubt my sanity :)
bluOxigen has quit [Ping timeout: 252 seconds]
robscomp_ has quit [Remote host closed the connection]
robscomputer_ has joined #ruby
niklasb has quit [Read error: Operation timed out]
bluesun has joined #ruby
alx- has quit [Quit: alx-]
jonathanwallace has quit [Ping timeout: 248 seconds]
gabrielrotbart has joined #ruby
jaredrhine has joined #ruby
artofraw has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
bitcycle has joined #ruby
arya has joined #ruby
IceDragon has quit [Ping timeout: 256 seconds]
atno has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
IceDragon has joined #ruby
ZachBeta has joined #ruby
<bluesun> quit
bluesun has quit [Quit: leaving]
nomenkun has joined #ruby
kenneth has quit [Quit: kenneth]
vise890 has quit [Remote host closed the connection]
<bitcycle> Hey all. Can someone here advise me on how to dump any variable to string? In python it would be variable.__repr__() or str(variable).
Skylab has quit [Quit: Skylab]
ZachBeta has quit [Client Quit]
vise890 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Morrolan> bitcycle: .to_s is always worth a shot.
kirun has quit [Quit: Client exiting]
nomenkun has quit [Ping timeout: 245 seconds]
idkazuma has quit [Remote host closed the connection]
atno has quit [Ping timeout: 264 seconds]
<berdario> bitcycle: repr() equivalent is .inspect() and str() is .to_s() as Morrolan said
`p has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
artofraw has quit [Remote host closed the connection]
kofno has joined #ruby
Tricon has quit [Quit: Linkinus - http://linkinus.com]
tommyvyo has quit [Quit:]
marty_mcfly has joined #ruby
pavilionXP has joined #ruby
brennanMKE has quit [Remote host closed the connection]
iphands_ has quit [Ping timeout: 248 seconds]
kofno has quit [Ping timeout: 264 seconds]
<bitcycle> berdario: Sweet! Thanks man.
brennanMKE has joined #ruby
ZachBeta has joined #ruby
mengu has joined #ruby
MrZYX is now known as MrZYX|off
Iszak has joined #ruby
mercwithamouth has joined #ruby
kenneth has joined #ruby
Vivekananda has joined #ruby
calmyournerves is now known as Guest
predator217 has joined #ruby
atno has joined #ruby
vise890 has quit [Quit: Leaving]
predator117 has quit [Ping timeout: 256 seconds]
chipotle_ has joined #ruby
chipotle_ has quit [Changing host]
chipotle_ has joined #ruby
<bitcycle> Hey all. Can someone advise me on where I can get help on writing c++ that creates a ruby object, passes it into a ruby script, and gets a ruby object (string) back?
etcetera has joined #ruby
bwlang has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
Iszak has quit [Quit: Computer has gone to sleep.]
tobym has joined #ruby
havenwood has quit [Remote host closed the connection]
Iszak has joined #ruby
chessguy has quit [Ping timeout: 252 seconds]
motto has quit [Quit: Sto andando via]
ZachBeta has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
etcetera has quit []
beneggett has joined #ruby
<Vivekananda> hey everyone I have a ubuntu problem
<Vivekananda> an dthe ubuntu channel is not reponding to it
<Vivekananda> :(
ZachBeta has joined #ruby
Heero` has joined #ruby
huoxito has joined #ruby
ZachBeta has quit [Client Quit]
freerobby has joined #ruby
callmeivan has quit [Ping timeout: 252 seconds]
<sam113101> I'd answer your question if I wasn't banned from the channel for no reason
bitcycle has quit [Ping timeout: 245 seconds]
<berdario> Vivekananda: I'm going to sleep soon, but what's the problem?
<Vivekananda> sam113101: then I will ping you
<Vivekananda> oww berdario okay
<Vivekananda> I am going to practice ruby though
<Vivekananda> the thing is that my lubuntu was workign okay but since a few days the fonts have gone white
<Vivekananda> so wwhite background and white fonts
<Vivekananda> :)
tobym_ has joined #ruby
jekotia has joined #ruby
<berdario> Vivekananda: have you already tried in a different desktop session? like xfce?
<felixjet> anyone have an idea on a channel where i can ask something about login with fb/twitter/etc ?
<sam113101> does it happen with both Qt and Gtk apps?
tobym has quit [Read error: Connection reset by peer]
<felixjet> maybe it could be solved here but... kinda offtopic xD
<berdario> Vivekananda: also, does it happen if you create a new user and login with that?
<Vivekananda> berdario: hmm not checked
<Vivekananda> let me try
wchun has quit [Read error: Operation timed out]
etcetera has joined #ruby
mpajor_op5 has quit [Read error: Operation timed out]
mpajor_op5 has joined #ruby
jetblack has quit [Quit: leaving]
Vivekananda has quit [Remote host closed the connection]
tobym_ has quit [Remote host closed the connection]
callmeivan has joined #ruby
kofno has joined #ruby
karpuragauram has joined #ruby
<berdario> bye!
berdario has quit [Remote host closed the connection]
Targen has joined #ruby
razieliyo has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
Vivekananda has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
ner0x has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
chipotle_ has quit [Quit: cya]
Trudko has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 1.9.0.17/2009122204]]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jetblack has joined #ruby
nkts has joined #ruby
bricker`LA has joined #ruby
ZachBeta has joined #ruby
fryguy has quit [Quit: WeeChat 0.3.9.2]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
Vivekananda has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
Heero` has quit [Quit: Leaving]
Nisstyre-laptop is now known as Nisstyre
emmanuelux has quit [Ping timeout: 256 seconds]
huoxito has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
idkazuma has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]